From 11a757ce1bd33f2e4e9702e850d33feda86ae4f1 Mon Sep 17 00:00:00 2001 From: zhangruiming Date: Fri, 16 Aug 2019 15:25:07 +0800 Subject: [PATCH 001/202] Fix issue 14301, Add unit test for issue 14301 --- phalcon/Helper/Str.zep | 4 ++-- tests/unit/Helper/Str/IncludesCest.php | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/phalcon/Helper/Str.zep b/phalcon/Helper/Str.zep index 5b73d842be5..f23f583bf14 100644 --- a/phalcon/Helper/Str.zep +++ b/phalcon/Helper/Str.zep @@ -361,9 +361,9 @@ class Str final public static function includes(string! needle, string! haystack) -> bool { if function_exists("mb_strpos") { - return (bool) mb_strpos(haystack, needle); + return (bool) false !== mb_strpos(haystack, needle); } else { - return (bool) strpos(haystack, needle); + return (bool) false !== strpos(haystack, needle); } } diff --git a/tests/unit/Helper/Str/IncludesCest.php b/tests/unit/Helper/Str/IncludesCest.php index e9b1d14939c..a54514f4556 100644 --- a/tests/unit/Helper/Str/IncludesCest.php +++ b/tests/unit/Helper/Str/IncludesCest.php @@ -33,5 +33,8 @@ public function helperStrIncludes(UnitTester $I) $actual = Str::includes('unknown', $source); $I->assertFalse($actual); + + $actual = Str::includes('Mary', $source); + $I->assertTrue($actual); } } From 955420b849ae02b1e0b1ecdabe0d4522bd7b4886 Mon Sep 17 00:00:00 2001 From: zhangruiming Date: Mon, 19 Aug 2019 14:55:00 +0800 Subject: [PATCH 002/202] Remove the in Phalcon\Helper\Str::includes; Add changelog --- CHANGELOG-4.0.md | 1 + phalcon/Helper/Str.zep | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG-4.0.md b/CHANGELOG-4.0.md index 2d31fd80d07..7c993101de4 100644 --- a/CHANGELOG-4.0.md +++ b/CHANGELOG-4.0.md @@ -10,6 +10,7 @@ - `Phalcon\Mvc\Collection::cancelOperation()` now returns `true` on success. - Fixed `Phalcon\Application\AbstractApplication` interfaces for `registerModules()`, `setDefaultModule()` and `setEventsManager()` [#14293](https://github.com/phalcon/cphalcon/issues/14293) - Fixed `Phalcon\Paginator\Adapter\QueryBuilder` to throw exception on incorrect parameter [#14299](https://github.com/phalcon/cphalcon/issues/14299) +- Fixed `Phalcon\Helper\Str::includes()` to return correct result [#14301](https://github.com/phalcon/cphalcon/issues/14301) ## Removed - Removed dead libsodium-related code. It was never called in PHP >= 7.0. diff --git a/phalcon/Helper/Str.zep b/phalcon/Helper/Str.zep index f23f583bf14..1a65c69ddea 100644 --- a/phalcon/Helper/Str.zep +++ b/phalcon/Helper/Str.zep @@ -361,9 +361,9 @@ class Str final public static function includes(string! needle, string! haystack) -> bool { if function_exists("mb_strpos") { - return (bool) false !== mb_strpos(haystack, needle); + return false !== mb_strpos(haystack, needle); } else { - return (bool) false !== strpos(haystack, needle); + return false !== strpos(haystack, needle); } } From 1f10a9246c8029ee7fc2d7f8d11a237ce506d15b Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Mon, 19 Aug 2019 12:31:20 +0300 Subject: [PATCH 003/202] Update CHANGELOG-4.0.md --- CHANGELOG-4.0.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG-4.0.md b/CHANGELOG-4.0.md index 7c993101de4..7cef36d1756 100644 --- a/CHANGELOG-4.0.md +++ b/CHANGELOG-4.0.md @@ -1,4 +1,6 @@ # [4.0.0](https://github.com/phalcon/cphalcon/releases/tag/v4.0.0) (2019-xx-xx) +## Fixed +- Fixed `Phalcon\Helper\Str::includes` to return correct result [#14301](https://github.com/phalcon/cphalcon/issues/14301) # [4.0.0-beta.2](https://github.com/phalcon/cphalcon/releases/tag/v4.0.0-beta.2) (2019-08-18) @@ -10,7 +12,6 @@ - `Phalcon\Mvc\Collection::cancelOperation()` now returns `true` on success. - Fixed `Phalcon\Application\AbstractApplication` interfaces for `registerModules()`, `setDefaultModule()` and `setEventsManager()` [#14293](https://github.com/phalcon/cphalcon/issues/14293) - Fixed `Phalcon\Paginator\Adapter\QueryBuilder` to throw exception on incorrect parameter [#14299](https://github.com/phalcon/cphalcon/issues/14299) -- Fixed `Phalcon\Helper\Str::includes()` to return correct result [#14301](https://github.com/phalcon/cphalcon/issues/14301) ## Removed - Removed dead libsodium-related code. It was never called in PHP >= 7.0. From 34aaefd6e5a023279afe600eb19d4a853038b128 Mon Sep 17 00:00:00 2001 From: Ruud Boon Date: Mon, 19 Aug 2019 15:56:33 +0200 Subject: [PATCH 004/202] Move Logger to root of Phalcon. Fixes issue #14263 --- phalcon/{Logger => }/Logger.zep | 2 +- phalcon/Logger/Adapter/AbstractAdapter.zep | 2 +- phalcon/Logger/Adapter/Syslog.zep | 2 +- phalcon/Logger/Formatter/AbstractFormatter.zep | 2 +- phalcon/Logger/LoggerFactory.zep | 2 +- tests/_data/fixtures/Traits/LoggerTrait.php | 2 +- tests/unit/Logger/Adapter/Noop/AddCest.php | 2 +- tests/unit/Logger/Adapter/Noop/ProcessCest.php | 2 +- tests/unit/Logger/Adapter/Stream/AddCest.php | 2 +- tests/unit/Logger/Adapter/Stream/CloseCest.php | 2 +- tests/unit/Logger/Adapter/Stream/ProcessCest.php | 2 +- tests/unit/Logger/Adapter/Syslog/AddCest.php | 2 +- tests/unit/Logger/Adapter/Syslog/ProcessCest.php | 2 +- tests/unit/Logger/Formatter/Json/FormatCest.php | 2 +- tests/unit/Logger/Formatter/Json/InterpolateCest.php | 2 +- tests/unit/Logger/Formatter/Line/FormatCest.php | 2 +- tests/unit/Logger/Formatter/Line/InterpolateCest.php | 2 +- tests/unit/Logger/Formatter/Syslog/FormatCest.php | 2 +- tests/unit/Logger/Formatter/Syslog/InterpolateCest.php | 2 +- tests/unit/Logger/Item/GetContextCest.php | 2 +- tests/unit/Logger/Item/GetMessageCest.php | 2 +- tests/unit/Logger/Item/GetNameCest.php | 2 +- tests/unit/Logger/Item/GetTimeCest.php | 2 +- tests/unit/Logger/Item/GetTypeCest.php | 2 +- tests/unit/Logger/Logger/AddAdapterCest.php | 2 +- tests/unit/Logger/Logger/ConstructCest.php | 2 +- tests/unit/Logger/Logger/ExcludeAdaptersCest.php | 2 +- tests/unit/Logger/Logger/GetAdapterCest.php | 2 +- tests/unit/Logger/Logger/GetAdaptersCest.php | 2 +- tests/unit/Logger/Logger/GetNameCest.php | 2 +- tests/unit/Logger/Logger/LogCest.php | 2 +- tests/unit/Logger/Logger/RemoveAdapterCest.php | 2 +- tests/unit/Logger/Logger/SetAdaptersCest.php | 2 +- tests/unit/Logger/LoggerFactory/LoadCest.php | 2 +- tests/unit/Logger/LoggerFactory/NewInstanceCest.php | 2 +- 35 files changed, 35 insertions(+), 35 deletions(-) rename phalcon/{Logger => }/Logger.zep (99%) diff --git a/phalcon/Logger/Logger.zep b/phalcon/Logger.zep similarity index 99% rename from phalcon/Logger/Logger.zep rename to phalcon/Logger.zep index def61cc76ca..60c425bc089 100644 --- a/phalcon/Logger/Logger.zep +++ b/phalcon/Logger.zep @@ -8,7 +8,7 @@ * file that was distributed with this source code. */ -namespace Phalcon\Logger; +namespace Phalcon; use Psr\Log\LoggerInterface; use Psr\Log\InvalidArgumentException; diff --git a/phalcon/Logger/Adapter/AbstractAdapter.zep b/phalcon/Logger/Adapter/AbstractAdapter.zep index 3c652a98cb3..f0a71dd8f9e 100644 --- a/phalcon/Logger/Adapter/AbstractAdapter.zep +++ b/phalcon/Logger/Adapter/AbstractAdapter.zep @@ -10,7 +10,7 @@ namespace Phalcon\Logger\Adapter; -use Phalcon\Logger\Logger; +use Phalcon\Logger; use Phalcon\Logger\Adapter\AdapterInterface; use Phalcon\Logger\Exception; use Phalcon\Logger\Formatter\FormatterInterface; diff --git a/phalcon/Logger/Adapter/Syslog.zep b/phalcon/Logger/Adapter/Syslog.zep index 1cf59df1fba..3ac80203b3c 100644 --- a/phalcon/Logger/Adapter/Syslog.zep +++ b/phalcon/Logger/Adapter/Syslog.zep @@ -11,7 +11,7 @@ namespace Phalcon\Logger\Adapter; use LogicException; -use Phalcon\Logger\Logger; +use Phalcon\Logger; use Phalcon\Logger\Adapter; use Phalcon\Logger\Exception; use Phalcon\Logger\Formatter\FormatterInterface; diff --git a/phalcon/Logger/Formatter/AbstractFormatter.zep b/phalcon/Logger/Formatter/AbstractFormatter.zep index bdaf1ae9f27..24d775479f3 100644 --- a/phalcon/Logger/Formatter/AbstractFormatter.zep +++ b/phalcon/Logger/Formatter/AbstractFormatter.zep @@ -10,7 +10,7 @@ namespace Phalcon\Logger\Formatter; -use Phalcon\Logger\Logger; +use Phalcon\Logger; abstract class AbstractFormatter implements FormatterInterface { diff --git a/phalcon/Logger/LoggerFactory.zep b/phalcon/Logger/LoggerFactory.zep index 17b3cc5b097..0abbdb0c776 100644 --- a/phalcon/Logger/LoggerFactory.zep +++ b/phalcon/Logger/LoggerFactory.zep @@ -12,7 +12,7 @@ namespace Phalcon\Logger; use Phalcon\Config; use Phalcon\Helper\Arr; -use Phalcon\Logger\Logger; +use Phalcon\Logger; use Phalcon\Logger\AdapterFactory; /** diff --git a/tests/_data/fixtures/Traits/LoggerTrait.php b/tests/_data/fixtures/Traits/LoggerTrait.php index 9e8088d2339..4836f04870b 100644 --- a/tests/_data/fixtures/Traits/LoggerTrait.php +++ b/tests/_data/fixtures/Traits/LoggerTrait.php @@ -14,7 +14,7 @@ use function logsDir; use Phalcon\Logger\Adapter\Stream; -use Phalcon\Logger\Logger; +use Phalcon\Logger; use UnitTester; trait LoggerTrait diff --git a/tests/unit/Logger/Adapter/Noop/AddCest.php b/tests/unit/Logger/Adapter/Noop/AddCest.php index 5d504ab1759..83b6f8ea4e3 100644 --- a/tests/unit/Logger/Adapter/Noop/AddCest.php +++ b/tests/unit/Logger/Adapter/Noop/AddCest.php @@ -14,7 +14,7 @@ use Phalcon\Logger\Adapter\Noop; use Phalcon\Logger\Item; -use Phalcon\Logger\Logger; +use Phalcon\Logger; use UnitTester; class AddCest diff --git a/tests/unit/Logger/Adapter/Noop/ProcessCest.php b/tests/unit/Logger/Adapter/Noop/ProcessCest.php index f0005afa4b6..92a5cd72ce0 100644 --- a/tests/unit/Logger/Adapter/Noop/ProcessCest.php +++ b/tests/unit/Logger/Adapter/Noop/ProcessCest.php @@ -14,7 +14,7 @@ use Phalcon\Logger\Adapter\Noop; use Phalcon\Logger\Item; -use Phalcon\Logger\Logger; +use Phalcon\Logger; use UnitTester; class ProcessCest diff --git a/tests/unit/Logger/Adapter/Stream/AddCest.php b/tests/unit/Logger/Adapter/Stream/AddCest.php index 8b8446adaa8..29edfb85c6e 100644 --- a/tests/unit/Logger/Adapter/Stream/AddCest.php +++ b/tests/unit/Logger/Adapter/Stream/AddCest.php @@ -14,7 +14,7 @@ use Phalcon\Logger\Adapter\Stream; use Phalcon\Logger\Item; -use Phalcon\Logger\Logger; +use Phalcon\Logger; use UnitTester; class AddCest diff --git a/tests/unit/Logger/Adapter/Stream/CloseCest.php b/tests/unit/Logger/Adapter/Stream/CloseCest.php index 7754f9cebde..ac154586a8e 100644 --- a/tests/unit/Logger/Adapter/Stream/CloseCest.php +++ b/tests/unit/Logger/Adapter/Stream/CloseCest.php @@ -14,7 +14,7 @@ use Phalcon\Logger\Adapter\Stream; use Phalcon\Logger\Item; -use Phalcon\Logger\Logger; +use Phalcon\Logger; use UnitTester; class CloseCest diff --git a/tests/unit/Logger/Adapter/Stream/ProcessCest.php b/tests/unit/Logger/Adapter/Stream/ProcessCest.php index d045a845e40..b2e0a6e37ca 100644 --- a/tests/unit/Logger/Adapter/Stream/ProcessCest.php +++ b/tests/unit/Logger/Adapter/Stream/ProcessCest.php @@ -15,7 +15,7 @@ use Phalcon\Logger\Adapter\Stream; use Phalcon\Logger\Exception; use Phalcon\Logger\Item; -use Phalcon\Logger\Logger; +use Phalcon\Logger; use UnitTester; class ProcessCest diff --git a/tests/unit/Logger/Adapter/Syslog/AddCest.php b/tests/unit/Logger/Adapter/Syslog/AddCest.php index 6327cb6d0c8..5d20758e2ab 100644 --- a/tests/unit/Logger/Adapter/Syslog/AddCest.php +++ b/tests/unit/Logger/Adapter/Syslog/AddCest.php @@ -27,7 +27,7 @@ function closelog() use Phalcon\Logger\Adapter\Syslog; use Phalcon\Logger\Item; - use Phalcon\Logger\Logger; + use Phalcon\Logger; use UnitTester; class AddCest diff --git a/tests/unit/Logger/Adapter/Syslog/ProcessCest.php b/tests/unit/Logger/Adapter/Syslog/ProcessCest.php index 1cccce5dc98..2fbfe7da7a2 100644 --- a/tests/unit/Logger/Adapter/Syslog/ProcessCest.php +++ b/tests/unit/Logger/Adapter/Syslog/ProcessCest.php @@ -14,7 +14,7 @@ use Phalcon\Logger\Adapter\Syslog; use Phalcon\Logger\Item; -use Phalcon\Logger\Logger; +use Phalcon\Logger; use UnitTester; class ProcessCest diff --git a/tests/unit/Logger/Formatter/Json/FormatCest.php b/tests/unit/Logger/Formatter/Json/FormatCest.php index 12dff910e0a..ddcdc5a853b 100644 --- a/tests/unit/Logger/Formatter/Json/FormatCest.php +++ b/tests/unit/Logger/Formatter/Json/FormatCest.php @@ -14,7 +14,7 @@ use Phalcon\Logger\Formatter\Json; use Phalcon\Logger\Item; -use Phalcon\Logger\Logger; +use Phalcon\Logger; use UnitTester; use const PHP_EOL; diff --git a/tests/unit/Logger/Formatter/Json/InterpolateCest.php b/tests/unit/Logger/Formatter/Json/InterpolateCest.php index 164e1c6f2ca..d4c568e6ebe 100644 --- a/tests/unit/Logger/Formatter/Json/InterpolateCest.php +++ b/tests/unit/Logger/Formatter/Json/InterpolateCest.php @@ -14,7 +14,7 @@ use Phalcon\Logger\Formatter\Json; use Phalcon\Logger\Item; -use Phalcon\Logger\Logger; +use Phalcon\Logger; use UnitTester; class InterpolateCest diff --git a/tests/unit/Logger/Formatter/Line/FormatCest.php b/tests/unit/Logger/Formatter/Line/FormatCest.php index 7c6e04ed99a..b87ae9a2b14 100644 --- a/tests/unit/Logger/Formatter/Line/FormatCest.php +++ b/tests/unit/Logger/Formatter/Line/FormatCest.php @@ -14,7 +14,7 @@ use Phalcon\Logger\Formatter\Line; use Phalcon\Logger\Item; -use Phalcon\Logger\Logger; +use Phalcon\Logger; use UnitTester; use const PHP_EOL; diff --git a/tests/unit/Logger/Formatter/Line/InterpolateCest.php b/tests/unit/Logger/Formatter/Line/InterpolateCest.php index a803e4be13f..6049f323f0a 100644 --- a/tests/unit/Logger/Formatter/Line/InterpolateCest.php +++ b/tests/unit/Logger/Formatter/Line/InterpolateCest.php @@ -14,7 +14,7 @@ use Phalcon\Logger\Formatter\Line; use Phalcon\Logger\Item; -use Phalcon\Logger\Logger; +use Phalcon\Logger; use UnitTester; class InterpolateCest diff --git a/tests/unit/Logger/Formatter/Syslog/FormatCest.php b/tests/unit/Logger/Formatter/Syslog/FormatCest.php index 91c6275f5d9..c081a611f9c 100644 --- a/tests/unit/Logger/Formatter/Syslog/FormatCest.php +++ b/tests/unit/Logger/Formatter/Syslog/FormatCest.php @@ -14,7 +14,7 @@ use Phalcon\Logger\Formatter\Syslog; use Phalcon\Logger\Item; -use Phalcon\Logger\Logger; +use Phalcon\Logger; use UnitTester; class FormatCest diff --git a/tests/unit/Logger/Formatter/Syslog/InterpolateCest.php b/tests/unit/Logger/Formatter/Syslog/InterpolateCest.php index 1e17ab0ebfb..ab0057e398f 100644 --- a/tests/unit/Logger/Formatter/Syslog/InterpolateCest.php +++ b/tests/unit/Logger/Formatter/Syslog/InterpolateCest.php @@ -14,7 +14,7 @@ use Phalcon\Logger\Formatter\Syslog; use Phalcon\Logger\Item; -use Phalcon\Logger\Logger; +use Phalcon\Logger; use UnitTester; class InterpolateCest diff --git a/tests/unit/Logger/Item/GetContextCest.php b/tests/unit/Logger/Item/GetContextCest.php index 18786edb32f..3e9b41cacd5 100644 --- a/tests/unit/Logger/Item/GetContextCest.php +++ b/tests/unit/Logger/Item/GetContextCest.php @@ -13,7 +13,7 @@ namespace Phalcon\Test\Unit\Logger\Item; use Phalcon\Logger\Item; -use Phalcon\Logger\Logger; +use Phalcon\Logger; use UnitTester; class GetContextCest diff --git a/tests/unit/Logger/Item/GetMessageCest.php b/tests/unit/Logger/Item/GetMessageCest.php index 7343215aa24..c0552a5aa51 100644 --- a/tests/unit/Logger/Item/GetMessageCest.php +++ b/tests/unit/Logger/Item/GetMessageCest.php @@ -13,7 +13,7 @@ namespace Phalcon\Test\Unit\Logger\Item; use Phalcon\Logger\Item; -use Phalcon\Logger\Logger; +use Phalcon\Logger; use UnitTester; class GetMessageCest diff --git a/tests/unit/Logger/Item/GetNameCest.php b/tests/unit/Logger/Item/GetNameCest.php index d4db17401e4..eff96b83549 100644 --- a/tests/unit/Logger/Item/GetNameCest.php +++ b/tests/unit/Logger/Item/GetNameCest.php @@ -13,7 +13,7 @@ namespace Phalcon\Test\Unit\Logger\Item; use Phalcon\Logger\Item; -use Phalcon\Logger\Logger; +use Phalcon\Logger; use UnitTester; class GetNameCest diff --git a/tests/unit/Logger/Item/GetTimeCest.php b/tests/unit/Logger/Item/GetTimeCest.php index cc009c22e5e..02323930c7e 100644 --- a/tests/unit/Logger/Item/GetTimeCest.php +++ b/tests/unit/Logger/Item/GetTimeCest.php @@ -13,7 +13,7 @@ namespace Phalcon\Test\Unit\Logger\Item; use Phalcon\Logger\Item; -use Phalcon\Logger\Logger; +use Phalcon\Logger; use UnitTester; class GetTimeCest diff --git a/tests/unit/Logger/Item/GetTypeCest.php b/tests/unit/Logger/Item/GetTypeCest.php index cba94bf23ec..f85c95c2fd9 100644 --- a/tests/unit/Logger/Item/GetTypeCest.php +++ b/tests/unit/Logger/Item/GetTypeCest.php @@ -13,7 +13,7 @@ namespace Phalcon\Test\Unit\Logger\Item; use Phalcon\Logger\Item; -use Phalcon\Logger\Logger; +use Phalcon\Logger; use UnitTester; class GetTypeCest diff --git a/tests/unit/Logger/Logger/AddAdapterCest.php b/tests/unit/Logger/Logger/AddAdapterCest.php index a0fb1040bc0..3d49f6a362b 100644 --- a/tests/unit/Logger/Logger/AddAdapterCest.php +++ b/tests/unit/Logger/Logger/AddAdapterCest.php @@ -13,7 +13,7 @@ namespace Phalcon\Test\Unit\Logger\Logger; use Phalcon\Logger\Adapter\Stream; -use Phalcon\Logger\Logger; +use Phalcon\Logger; use UnitTester; class AddAdapterCest diff --git a/tests/unit/Logger/Logger/ConstructCest.php b/tests/unit/Logger/Logger/ConstructCest.php index 477337b632e..5f68e236853 100644 --- a/tests/unit/Logger/Logger/ConstructCest.php +++ b/tests/unit/Logger/Logger/ConstructCest.php @@ -15,7 +15,7 @@ use Phalcon\Logger\Adapter\Stream; use Phalcon\Logger\Exception; use Phalcon\Logger\Formatter\Json; -use Phalcon\Logger\Logger; +use Phalcon\Logger; use Phalcon\Test\Fixtures\Traits\LoggerTrait; use Psr\Log\LoggerInterface; use UnitTester; diff --git a/tests/unit/Logger/Logger/ExcludeAdaptersCest.php b/tests/unit/Logger/Logger/ExcludeAdaptersCest.php index bdef50544d9..1cbd375532a 100644 --- a/tests/unit/Logger/Logger/ExcludeAdaptersCest.php +++ b/tests/unit/Logger/Logger/ExcludeAdaptersCest.php @@ -13,7 +13,7 @@ namespace Phalcon\Test\Unit\Logger\Logger; use Phalcon\Logger\Adapter\Stream; -use Phalcon\Logger\Logger; +use Phalcon\Logger; use UnitTester; class ExcludeAdaptersCest diff --git a/tests/unit/Logger/Logger/GetAdapterCest.php b/tests/unit/Logger/Logger/GetAdapterCest.php index 7fc11c4d84e..0e633f739d0 100644 --- a/tests/unit/Logger/Logger/GetAdapterCest.php +++ b/tests/unit/Logger/Logger/GetAdapterCest.php @@ -14,7 +14,7 @@ use Phalcon\Logger\Adapter\Stream; use Phalcon\Logger\Exception; -use Phalcon\Logger\Logger; +use Phalcon\Logger; use UnitTester; class GetAdapterCest diff --git a/tests/unit/Logger/Logger/GetAdaptersCest.php b/tests/unit/Logger/Logger/GetAdaptersCest.php index 312200a8526..27d424db95e 100644 --- a/tests/unit/Logger/Logger/GetAdaptersCest.php +++ b/tests/unit/Logger/Logger/GetAdaptersCest.php @@ -13,7 +13,7 @@ namespace Phalcon\Test\Unit\Logger\Logger; use Phalcon\Logger\Adapter\Stream; -use Phalcon\Logger\Logger; +use Phalcon\Logger; use UnitTester; class GetAdaptersCest diff --git a/tests/unit/Logger/Logger/GetNameCest.php b/tests/unit/Logger/Logger/GetNameCest.php index ce41c9797db..906af1eb72c 100644 --- a/tests/unit/Logger/Logger/GetNameCest.php +++ b/tests/unit/Logger/Logger/GetNameCest.php @@ -12,7 +12,7 @@ namespace Phalcon\Test\Unit\Logger\Logger; -use Phalcon\Logger\Logger; +use Phalcon\Logger; use UnitTester; class GetNameCest diff --git a/tests/unit/Logger/Logger/LogCest.php b/tests/unit/Logger/Logger/LogCest.php index 0663ad1fa78..632a2d24e18 100644 --- a/tests/unit/Logger/Logger/LogCest.php +++ b/tests/unit/Logger/Logger/LogCest.php @@ -13,7 +13,7 @@ namespace Phalcon\Test\Unit\Logger\Logger; use Phalcon\Logger\Adapter\Stream; -use Phalcon\Logger\Logger; +use Phalcon\Logger; use UnitTester; class LogCest diff --git a/tests/unit/Logger/Logger/RemoveAdapterCest.php b/tests/unit/Logger/Logger/RemoveAdapterCest.php index 8d8271d12bc..8bcd3f6923f 100644 --- a/tests/unit/Logger/Logger/RemoveAdapterCest.php +++ b/tests/unit/Logger/Logger/RemoveAdapterCest.php @@ -14,7 +14,7 @@ use Phalcon\Logger\Adapter\Stream; use Phalcon\Logger\Exception; -use Phalcon\Logger\Logger; +use Phalcon\Logger; use UnitTester; class RemoveAdapterCest diff --git a/tests/unit/Logger/Logger/SetAdaptersCest.php b/tests/unit/Logger/Logger/SetAdaptersCest.php index 7e89567ce82..2914b113d10 100644 --- a/tests/unit/Logger/Logger/SetAdaptersCest.php +++ b/tests/unit/Logger/Logger/SetAdaptersCest.php @@ -13,7 +13,7 @@ namespace Phalcon\Test\Unit\Logger\Logger; use Phalcon\Logger\Adapter\Stream; -use Phalcon\Logger\Logger; +use Phalcon\Logger; use UnitTester; class SetAdaptersCest diff --git a/tests/unit/Logger/LoggerFactory/LoadCest.php b/tests/unit/Logger/LoggerFactory/LoadCest.php index f7259af4e4c..34f7a1eb9bb 100644 --- a/tests/unit/Logger/LoggerFactory/LoadCest.php +++ b/tests/unit/Logger/LoggerFactory/LoadCest.php @@ -13,7 +13,7 @@ namespace Phalcon\Test\Unit\Logger\LoggerFactory; use Phalcon\Logger\AdapterFactory; -use Phalcon\Logger\Logger; +use Phalcon\Logger; use Phalcon\Logger\LoggerFactory; use Phalcon\Test\Fixtures\Traits\FactoryTrait; use UnitTester; diff --git a/tests/unit/Logger/LoggerFactory/NewInstanceCest.php b/tests/unit/Logger/LoggerFactory/NewInstanceCest.php index cbffc0d4b40..2c975800e20 100644 --- a/tests/unit/Logger/LoggerFactory/NewInstanceCest.php +++ b/tests/unit/Logger/LoggerFactory/NewInstanceCest.php @@ -13,7 +13,7 @@ namespace Phalcon\Test\Unit\Logger\LoggerFactory; use Phalcon\Logger\AdapterFactory; -use Phalcon\Logger\Logger; +use Phalcon\Logger; use Phalcon\Logger\LoggerFactory; use Psr\Log\LoggerInterface; use UnitTester; From 521067ab7a3eddd2da2846df3d48cbef91c76f18 Mon Sep 17 00:00:00 2001 From: Ruud Boon Date: Mon, 19 Aug 2019 16:20:59 +0200 Subject: [PATCH 005/202] Updated changelog to include fix #14263 --- CHANGELOG-4.0.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG-4.0.md b/CHANGELOG-4.0.md index 7cef36d1756..38c3b3a23ae 100644 --- a/CHANGELOG-4.0.md +++ b/CHANGELOG-4.0.md @@ -1,6 +1,7 @@ # [4.0.0](https://github.com/phalcon/cphalcon/releases/tag/v4.0.0) (2019-xx-xx) ## Fixed - Fixed `Phalcon\Helper\Str::includes` to return correct result [#14301](https://github.com/phalcon/cphalcon/issues/14301) +- Fixed `Phalcon\Logger` moved to correct namespave [#14263](https://github.com/phalcon/cphalcon/issues/14263) # [4.0.0-beta.2](https://github.com/phalcon/cphalcon/releases/tag/v4.0.0-beta.2) (2019-08-18) From 3c6aa259443e4767de91a9c27f41d4d1f84f7026 Mon Sep 17 00:00:00 2001 From: Ruud Boon Date: Mon, 19 Aug 2019 18:10:30 +0200 Subject: [PATCH 006/202] Fixed typo in changelog --- CHANGELOG-4.0.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG-4.0.md b/CHANGELOG-4.0.md index 38c3b3a23ae..86cb89f7cf6 100644 --- a/CHANGELOG-4.0.md +++ b/CHANGELOG-4.0.md @@ -1,7 +1,7 @@ # [4.0.0](https://github.com/phalcon/cphalcon/releases/tag/v4.0.0) (2019-xx-xx) ## Fixed - Fixed `Phalcon\Helper\Str::includes` to return correct result [#14301](https://github.com/phalcon/cphalcon/issues/14301) -- Fixed `Phalcon\Logger` moved to correct namespave [#14263](https://github.com/phalcon/cphalcon/issues/14263) +- Fixed `Phalcon\Logger` moved to correct namespace [#14263](https://github.com/phalcon/cphalcon/issues/14263) # [4.0.0-beta.2](https://github.com/phalcon/cphalcon/releases/tag/v4.0.0-beta.2) (2019-08-18) From d921aa13a9c389bb85e386453dc9937e485ca26c Mon Sep 17 00:00:00 2001 From: Ruud Boon Date: Mon, 19 Aug 2019 19:40:33 +0200 Subject: [PATCH 007/202] Removed old logger c files --- ext/phalcon/logger.zep.c | 923 +++++++++++++++++++++++++++++++++++++++ ext/phalcon/logger.zep.h | 205 +++++++++ 2 files changed, 1128 insertions(+) create mode 100644 ext/phalcon/logger.zep.c create mode 100644 ext/phalcon/logger.zep.h diff --git a/ext/phalcon/logger.zep.c b/ext/phalcon/logger.zep.c new file mode 100644 index 00000000000..2a5d1accb94 --- /dev/null +++ b/ext/phalcon/logger.zep.c @@ -0,0 +1,923 @@ + +#ifdef HAVE_CONFIG_H +#include "../ext_config.h" +#endif + +#include +#include "../php_ext.h" +#include "../ext.h" + +#include +#include +#include + +#include "kernel/main.h" +#include "kernel/object.h" +#include "kernel/fcall.h" +#include "ext/spl/spl_exceptions.h" +#include "kernel/exception.h" +#include "kernel/operators.h" +#include "kernel/memory.h" +#include "kernel/array.h" +#include "kernel/time.h" +#include "kernel/string.h" + + +/** + * This file is part of the Phalcon Framework. + * + * (c) Phalcon Team + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ +/** + * Phalcon\Logger + * + * This component offers logging capabilities for your application. The + * component accepts multiple adapters, working also as a multiple logger. + * Phalcon\Logger implements PSR-3. + * + *```php + * use Phalcon\Logger; + * use Phalcon\Logger\Adapter\Stream; + * + * $adapter1 = new Stream('/logs/first-log.log'); + * $adapter2 = new Stream('/remote/second-log.log'); + * $adapter3 = new Stream('/manager/third-log.log'); + * + * $logger = new Logger( + * 'messages', + * [ + * 'local' => $adapter1, + * 'remote' => $adapter2, + * 'manager' => $adapter3, + * ] + * ); + * + * // Log to all adapters + * $logger->error('Something went wrong'); + * + * // Log to specific adapters + * $logger + * ->excludeAdapters(['manager']) + * ->info('This does not go to the "manager" logger); + *``` + */ +ZEPHIR_INIT_CLASS(Phalcon_Logger) { + + ZEPHIR_REGISTER_CLASS(Phalcon, Logger, phalcon, logger, phalcon_logger_method_entry, 0); + + /** + * The adapter stack + * + * @var AdapterInterface[] + */ + zend_declare_property_null(phalcon_logger_ce, SL("adapters"), ZEND_ACC_PROTECTED TSRMLS_CC); + + /** + * @var string + */ + zend_declare_property_string(phalcon_logger_ce, SL("name"), "", ZEND_ACC_PROTECTED TSRMLS_CC); + + /** + * The excluded adapters for this log process + * + * @var AdapterInterface[] + */ + zend_declare_property_null(phalcon_logger_ce, SL("excluded"), ZEND_ACC_PROTECTED TSRMLS_CC); + + phalcon_logger_ce->create_object = zephir_init_properties_Phalcon_Logger; + zephir_declare_class_constant_long(phalcon_logger_ce, SL("ALERT"), 2); + + zephir_declare_class_constant_long(phalcon_logger_ce, SL("CRITICAL"), 1); + + zephir_declare_class_constant_long(phalcon_logger_ce, SL("CUSTOM"), 8); + + zephir_declare_class_constant_long(phalcon_logger_ce, SL("DEBUG"), 7); + + zephir_declare_class_constant_long(phalcon_logger_ce, SL("EMERGENCY"), 0); + + zephir_declare_class_constant_long(phalcon_logger_ce, SL("ERROR"), 3); + + zephir_declare_class_constant_long(phalcon_logger_ce, SL("INFO"), 6); + + zephir_declare_class_constant_long(phalcon_logger_ce, SL("NOTICE"), 5); + + zephir_declare_class_constant_long(phalcon_logger_ce, SL("WARNING"), 4); + + zend_class_implements(phalcon_logger_ce TSRMLS_CC, 1, zephir_get_internal_ce(SL("psr\\log\\loggerinterface"))); + return SUCCESS; + +} + +/** + * Constructor. + * + * @param string name The name of the logger + * @param array adapters The collection of adapters to be used for logging (default []) + */ +PHP_METHOD(Phalcon_Logger, __construct) { + + zend_long ZEPHIR_LAST_CALL_STATUS; + zval adapters; + zval *name_param = NULL, *adapters_param = NULL; + zval name; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&name); + ZVAL_UNDEF(&adapters); + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 1, &name_param, &adapters_param); + + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be of the type string") TSRMLS_CC); + RETURN_MM_NULL(); + } + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { + zephir_get_strval(&name, name_param); + } else { + ZEPHIR_INIT_VAR(&name); + ZVAL_EMPTY_STRING(&name); + } + if (!adapters_param) { + ZEPHIR_INIT_VAR(&adapters); + array_init(&adapters); + } else { + ZEPHIR_OBS_COPY_OR_DUP(&adapters, adapters_param); + } + + + zephir_update_property_zval(this_ptr, SL("name"), &name); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "setadapters", NULL, 0, &adapters); + zephir_check_call_status(); + ZEPHIR_MM_RESTORE(); + +} + +/** + * Add an adapter to the stack. For processing we use FIFO + * + * @param string name The name of the adapter + * @param adapter The adapter to add to the stack + */ +PHP_METHOD(Phalcon_Logger, addAdapter) { + + zval *name_param = NULL, *adapter, adapter_sub; + zval name; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&name); + ZVAL_UNDEF(&adapter_sub); + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 2, 0, &name_param, &adapter); + + zephir_get_strval(&name, name_param); + + + zephir_update_property_array(this_ptr, SL("adapters"), &name, adapter); + RETURN_THIS(); + +} + +/** + * Action must be taken immediately. + * + * Example: Entire website down, database unavailable, etc. This should + * trigger the SMS alerts and wake you up. + * + * @param string message + */ +PHP_METHOD(Phalcon_Logger, alert) { + + zval _0; + zend_long ZEPHIR_LAST_CALL_STATUS; + zval context; + zval *message, message_sub, *context_param = NULL, _1; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&message_sub); + ZVAL_UNDEF(&_1); + ZVAL_UNDEF(&context); + ZVAL_UNDEF(&_0); + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 1, &message, &context_param); + + if (!context_param) { + ZEPHIR_INIT_VAR(&context); + array_init(&context); + } else { + zephir_get_arrval(&context, context_param); + } + + + zephir_get_strval(&_0, message); + ZVAL_LONG(&_1, 2); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "addmessage", NULL, 0, &_1, &_0, &context); + zephir_check_call_status(); + ZEPHIR_MM_RESTORE(); + +} + +/** + * Critical conditions. + * + * Example: Application component unavailable, unexpected exception. + * + * @param string message + */ +PHP_METHOD(Phalcon_Logger, critical) { + + zval _0; + zend_long ZEPHIR_LAST_CALL_STATUS; + zval context; + zval *message, message_sub, *context_param = NULL, _1; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&message_sub); + ZVAL_UNDEF(&_1); + ZVAL_UNDEF(&context); + ZVAL_UNDEF(&_0); + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 1, &message, &context_param); + + if (!context_param) { + ZEPHIR_INIT_VAR(&context); + array_init(&context); + } else { + zephir_get_arrval(&context, context_param); + } + + + zephir_get_strval(&_0, message); + ZVAL_LONG(&_1, 1); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "addmessage", NULL, 0, &_1, &_0, &context); + zephir_check_call_status(); + ZEPHIR_MM_RESTORE(); + +} + +/** + * Detailed debug information. + * + * @param string message + */ +PHP_METHOD(Phalcon_Logger, debug) { + + zval _0; + zend_long ZEPHIR_LAST_CALL_STATUS; + zval context; + zval *message, message_sub, *context_param = NULL, _1; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&message_sub); + ZVAL_UNDEF(&_1); + ZVAL_UNDEF(&context); + ZVAL_UNDEF(&_0); + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 1, &message, &context_param); + + if (!context_param) { + ZEPHIR_INIT_VAR(&context); + array_init(&context); + } else { + zephir_get_arrval(&context, context_param); + } + + + zephir_get_strval(&_0, message); + ZVAL_LONG(&_1, 7); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "addmessage", NULL, 0, &_1, &_0, &context); + zephir_check_call_status(); + ZEPHIR_MM_RESTORE(); + +} + +/** + * Runtime errors that do not require immediate action but should typically + * be logged and monitored. + * + * @param string message + */ +PHP_METHOD(Phalcon_Logger, error) { + + zval _0; + zend_long ZEPHIR_LAST_CALL_STATUS; + zval context; + zval *message, message_sub, *context_param = NULL, _1; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&message_sub); + ZVAL_UNDEF(&_1); + ZVAL_UNDEF(&context); + ZVAL_UNDEF(&_0); + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 1, &message, &context_param); + + if (!context_param) { + ZEPHIR_INIT_VAR(&context); + array_init(&context); + } else { + zephir_get_arrval(&context, context_param); + } + + + zephir_get_strval(&_0, message); + ZVAL_LONG(&_1, 3); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "addmessage", NULL, 0, &_1, &_0, &context); + zephir_check_call_status(); + ZEPHIR_MM_RESTORE(); + +} + +/** + * System is unusable. + * + * @param string message + */ +PHP_METHOD(Phalcon_Logger, emergency) { + + zval _0; + zend_long ZEPHIR_LAST_CALL_STATUS; + zval context; + zval *message, message_sub, *context_param = NULL, _1; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&message_sub); + ZVAL_UNDEF(&_1); + ZVAL_UNDEF(&context); + ZVAL_UNDEF(&_0); + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 1, &message, &context_param); + + if (!context_param) { + ZEPHIR_INIT_VAR(&context); + array_init(&context); + } else { + zephir_get_arrval(&context, context_param); + } + + + zephir_get_strval(&_0, message); + ZVAL_LONG(&_1, 0); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "addmessage", NULL, 0, &_1, &_0, &context); + zephir_check_call_status(); + ZEPHIR_MM_RESTORE(); + +} + +/** + * Exclude certain adapters. + */ +PHP_METHOD(Phalcon_Logger, excludeAdapters) { + + zend_long ZEPHIR_LAST_CALL_STATUS; + zval *adapters_param = NULL, __$true, name, registered, *_0, _1; + zval adapters; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&adapters); + ZVAL_BOOL(&__$true, 1); + ZVAL_UNDEF(&name); + ZVAL_UNDEF(®istered); + ZVAL_UNDEF(&_1); + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 0, 1, &adapters_param); + + if (!adapters_param) { + ZEPHIR_INIT_VAR(&adapters); + array_init(&adapters); + } else { + zephir_get_arrval(&adapters, adapters_param); + } + + + zephir_read_property(®istered, this_ptr, SL("adapters"), PH_NOISY_CC | PH_READONLY); + zephir_is_iterable(&adapters, 0, "phalcon/Logger.zep", 185); + if (Z_TYPE_P(&adapters) == IS_ARRAY) { + ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&adapters), _0) + { + ZEPHIR_INIT_NVAR(&name); + ZVAL_COPY(&name, _0); + if (zephir_array_isset(®istered, &name)) { + zephir_update_property_array(this_ptr, SL("excluded"), &name, &__$true); + } + } ZEND_HASH_FOREACH_END(); + } else { + ZEPHIR_CALL_METHOD(NULL, &adapters, "rewind", NULL, 0); + zephir_check_call_status(); + while (1) { + ZEPHIR_CALL_METHOD(&_1, &adapters, "valid", NULL, 0); + zephir_check_call_status(); + if (!zend_is_true(&_1)) { + break; + } + ZEPHIR_CALL_METHOD(&name, &adapters, "current", NULL, 0); + zephir_check_call_status(); + if (zephir_array_isset(®istered, &name)) { + zephir_update_property_array(this_ptr, SL("excluded"), &name, &__$true); + } + ZEPHIR_CALL_METHOD(NULL, &adapters, "next", NULL, 0); + zephir_check_call_status(); + } + } + ZEPHIR_INIT_NVAR(&name); + RETURN_THIS(); + +} + +/** + * Returns an adapter from the stack + * + * @param string name The name of the adapter + * + * @throws + */ +PHP_METHOD(Phalcon_Logger, getAdapter) { + + zval *name_param = NULL, adapter, adapters, _0; + zval name; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&name); + ZVAL_UNDEF(&adapter); + ZVAL_UNDEF(&adapters); + ZVAL_UNDEF(&_0); + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &name_param); + + zephir_get_strval(&name, name_param); + + + zephir_read_property(&_0, this_ptr, SL("adapters"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CPY_WRT(&adapters, &_0); + ZEPHIR_OBS_VAR(&adapter); + if (!(zephir_array_isset_fetch(&adapter, &adapters, &name, 0 TSRMLS_CC))) { + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_logger_exception_ce, "Adapter does not exist for this logger", "phalcon/Logger.zep", 202); + return; + } + RETURN_CCTOR(&adapter); + +} + +/** + * Returns the adapter stack array + * + * @return AdapterInterface[] + */ +PHP_METHOD(Phalcon_Logger, getAdapters) { + + zval *this_ptr = getThis(); + + + RETURN_MEMBER(getThis(), "adapters"); + +} + +/** + * Returns the name of the logger + */ +PHP_METHOD(Phalcon_Logger, getName) { + + zval *this_ptr = getThis(); + + + RETURN_MEMBER(getThis(), "name"); + +} + +/** + * Interesting events. + * + * Example: User logs in, SQL logs. + * + * @param string message + */ +PHP_METHOD(Phalcon_Logger, info) { + + zval _0; + zend_long ZEPHIR_LAST_CALL_STATUS; + zval context; + zval *message, message_sub, *context_param = NULL, _1; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&message_sub); + ZVAL_UNDEF(&_1); + ZVAL_UNDEF(&context); + ZVAL_UNDEF(&_0); + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 1, &message, &context_param); + + if (!context_param) { + ZEPHIR_INIT_VAR(&context); + array_init(&context); + } else { + zephir_get_arrval(&context, context_param); + } + + + zephir_get_strval(&_0, message); + ZVAL_LONG(&_1, 6); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "addmessage", NULL, 0, &_1, &_0, &context); + zephir_check_call_status(); + ZEPHIR_MM_RESTORE(); + +} + +/** + * Logs with an arbitrary level. + * + * @param mixed level + * @param string message + */ +PHP_METHOD(Phalcon_Logger, log) { + + zval _0; + zend_long ZEPHIR_LAST_CALL_STATUS; + zval context; + zval *level, level_sub, *message, message_sub, *context_param = NULL, intLevel; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&level_sub); + ZVAL_UNDEF(&message_sub); + ZVAL_UNDEF(&intLevel); + ZVAL_UNDEF(&context); + ZVAL_UNDEF(&_0); + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 2, 1, &level, &message, &context_param); + + if (!context_param) { + ZEPHIR_INIT_VAR(&context); + array_init(&context); + } else { + zephir_get_arrval(&context, context_param); + } + + + ZEPHIR_CALL_METHOD(&intLevel, this_ptr, "getlevelnumber", NULL, 412, level); + zephir_check_call_status(); + zephir_get_strval(&_0, message); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "addmessage", NULL, 0, level, &_0, &context); + zephir_check_call_status(); + ZEPHIR_MM_RESTORE(); + +} + +/** + * Normal but significant events. + * + * @param string message + */ +PHP_METHOD(Phalcon_Logger, notice) { + + zval _0; + zend_long ZEPHIR_LAST_CALL_STATUS; + zval context; + zval *message, message_sub, *context_param = NULL, _1; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&message_sub); + ZVAL_UNDEF(&_1); + ZVAL_UNDEF(&context); + ZVAL_UNDEF(&_0); + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 1, &message, &context_param); + + if (!context_param) { + ZEPHIR_INIT_VAR(&context); + array_init(&context); + } else { + zephir_get_arrval(&context, context_param); + } + + + zephir_get_strval(&_0, message); + ZVAL_LONG(&_1, 5); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "addmessage", NULL, 0, &_1, &_0, &context); + zephir_check_call_status(); + ZEPHIR_MM_RESTORE(); + +} + +/** + * Removes an adapter from the stack + * + * @param string name The name of the adapter + * + * @throws + */ +PHP_METHOD(Phalcon_Logger, removeAdapter) { + + zval *name_param = NULL, adapters, _0; + zval name; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&name); + ZVAL_UNDEF(&adapters); + ZVAL_UNDEF(&_0); + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &name_param); + + zephir_get_strval(&name, name_param); + + + zephir_read_property(&_0, this_ptr, SL("adapters"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CPY_WRT(&adapters, &_0); + if (1 != zephir_array_isset(&adapters, &name)) { + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_logger_exception_ce, "Adapter does not exist for this logger", "phalcon/Logger.zep", 277); + return; + } + zephir_array_unset(&adapters, &name, PH_SEPARATE); + zephir_update_property_zval(this_ptr, SL("adapters"), &adapters); + RETURN_THIS(); + +} + +/** + * Sets the adapters stack overriding what is already there + * + * @param array adapters An array of adapters + */ +PHP_METHOD(Phalcon_Logger, setAdapters) { + + zval *adapters_param = NULL; + zval adapters; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&adapters); + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &adapters_param); + + ZEPHIR_OBS_COPY_OR_DUP(&adapters, adapters_param); + + + zephir_update_property_zval(this_ptr, SL("adapters"), &adapters); + RETURN_THIS(); + +} + +/** + * Exceptional occurrences that are not errors. + * + * Example: Use of deprecated APIs, poor use of an API, undesirable things + * that are not necessarily wrong. + * + * @param string message + */ +PHP_METHOD(Phalcon_Logger, warning) { + + zval _0; + zend_long ZEPHIR_LAST_CALL_STATUS; + zval context; + zval *message, message_sub, *context_param = NULL, _1; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&message_sub); + ZVAL_UNDEF(&_1); + ZVAL_UNDEF(&context); + ZVAL_UNDEF(&_0); + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 1, &message, &context_param); + + if (!context_param) { + ZEPHIR_INIT_VAR(&context); + array_init(&context); + } else { + zephir_get_arrval(&context, context_param); + } + + + zephir_get_strval(&_0, message); + ZVAL_LONG(&_1, 4); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "addmessage", NULL, 0, &_1, &_0, &context); + zephir_check_call_status(); + ZEPHIR_MM_RESTORE(); + +} + +/** + * Adds a message to each handler for processing + * + * @param int level + * @param string message + * + * @throws + */ +PHP_METHOD(Phalcon_Logger, addMessage) { + + zend_string *_5; + zend_ulong _4; + zval context; + zval message; + zval *level_param = NULL, *message_param = NULL, *context_param = NULL, adapter, key, excluded, levelName, levels, item, registered, _0, _1, *_2, _3, _6; + zend_long level, ZEPHIR_LAST_CALL_STATUS; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&adapter); + ZVAL_UNDEF(&key); + ZVAL_UNDEF(&excluded); + ZVAL_UNDEF(&levelName); + ZVAL_UNDEF(&levels); + ZVAL_UNDEF(&item); + ZVAL_UNDEF(®istered); + ZVAL_UNDEF(&_0); + ZVAL_UNDEF(&_1); + ZVAL_UNDEF(&_3); + ZVAL_UNDEF(&_6); + ZVAL_UNDEF(&message); + ZVAL_UNDEF(&context); + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 2, 1, &level_param, &message_param, &context_param); + + level = zephir_get_intval(level_param); + zephir_get_strval(&message, message_param); + if (!context_param) { + ZEPHIR_INIT_VAR(&context); + array_init(&context); + } else { + zephir_get_arrval(&context, context_param); + } + + + ZEPHIR_OBS_VAR(®istered); + zephir_read_property(®istered, this_ptr, SL("adapters"), PH_NOISY_CC); + zephir_read_property(&_0, this_ptr, SL("excluded"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CPY_WRT(&excluded, &_0); + if (zephir_fast_count_int(®istered TSRMLS_CC) == 0) { + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_logger_exception_ce, "No adapters specified", "phalcon/Logger.zep", 328); + return; + } + ZEPHIR_CALL_METHOD(&levels, this_ptr, "getlevels", NULL, 0); + zephir_check_call_status(); + ZEPHIR_OBS_VAR(&levelName); + if (!(zephir_array_isset_long_fetch(&levelName, &levels, level, 0 TSRMLS_CC))) { + ZEPHIR_OBS_NVAR(&levelName); + zephir_array_fetch_long(&levelName, &levels, 8, PH_NOISY, "phalcon/Logger.zep", 334 TSRMLS_CC); + } + ZEPHIR_INIT_VAR(&item); + object_init_ex(&item, phalcon_logger_item_ce); + ZEPHIR_INIT_VAR(&_1); + zephir_time(&_1); + ZVAL_LONG(&_0, level); + ZEPHIR_CALL_METHOD(NULL, &item, "__construct", NULL, 413, &message, &levelName, &_0, &_1, &context); + zephir_check_call_status(); + zephir_is_iterable(®istered, 0, "phalcon/Logger.zep", 351); + if (Z_TYPE_P(®istered) == IS_ARRAY) { + ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(®istered), _4, _5, _2) + { + ZEPHIR_INIT_NVAR(&key); + if (_5 != NULL) { + ZVAL_STR_COPY(&key, _5); + } else { + ZVAL_LONG(&key, _4); + } + ZEPHIR_INIT_NVAR(&adapter); + ZVAL_COPY(&adapter, _2); + if (!(zephir_array_isset(&excluded, &key))) { + ZEPHIR_CALL_METHOD(NULL, &adapter, "process", NULL, 0, &item); + zephir_check_call_status(); + } + } ZEND_HASH_FOREACH_END(); + } else { + ZEPHIR_CALL_METHOD(NULL, ®istered, "rewind", NULL, 0); + zephir_check_call_status(); + while (1) { + ZEPHIR_CALL_METHOD(&_3, ®istered, "valid", NULL, 0); + zephir_check_call_status(); + if (!zend_is_true(&_3)) { + break; + } + ZEPHIR_CALL_METHOD(&key, ®istered, "key", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&adapter, ®istered, "current", NULL, 0); + zephir_check_call_status(); + if (!(zephir_array_isset(&excluded, &key))) { + ZEPHIR_CALL_METHOD(NULL, &adapter, "process", NULL, 0, &item); + zephir_check_call_status(); + } + ZEPHIR_CALL_METHOD(NULL, ®istered, "next", NULL, 0); + zephir_check_call_status(); + } + } + ZEPHIR_INIT_NVAR(&adapter); + ZEPHIR_INIT_NVAR(&key); + ZEPHIR_INIT_VAR(&_6); + array_init(&_6); + zephir_update_property_zval(this_ptr, SL("excluded"), &_6); + RETURN_MM_BOOL(1); + +} + +/** + * Returns an array of log levels with integer to string conversion + */ +PHP_METHOD(Phalcon_Logger, getLevels) { + + zval *this_ptr = getThis(); + + + zephir_create_array(return_value, 9, 0 TSRMLS_CC); + add_index_stringl(return_value, 2, SL("alert")); + add_index_stringl(return_value, 1, SL("critical")); + add_index_stringl(return_value, 7, SL("debug")); + add_index_stringl(return_value, 0, SL("emergency")); + add_index_stringl(return_value, 3, SL("error")); + add_index_stringl(return_value, 6, SL("info")); + add_index_stringl(return_value, 5, SL("notice")); + add_index_stringl(return_value, 4, SL("warning")); + add_index_stringl(return_value, 8, SL("custom")); + return; + +} + +/** + * Converts the level from string/word to an integer + * + * @param string|int level + */ +PHP_METHOD(Phalcon_Logger, getLevelNumber) { + + zend_long ZEPHIR_LAST_CALL_STATUS; + zval *level, level_sub, levelName, numberLevel, levels, _0$$3; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&level_sub); + ZVAL_UNDEF(&levelName); + ZVAL_UNDEF(&numberLevel); + ZVAL_UNDEF(&levels); + ZVAL_UNDEF(&_0$$3); + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &level); + + + + if (Z_TYPE_P(level) == IS_STRING) { + ZEPHIR_INIT_VAR(&levelName); + zephir_fast_strtolower(&levelName, level); + ZEPHIR_CALL_METHOD(&_0$$3, this_ptr, "getlevels", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_FUNCTION(&levels, "array_flip", NULL, 162, &_0$$3); + zephir_check_call_status(); + if (zephir_array_isset_fetch(&numberLevel, &levels, &levelName, 1 TSRMLS_CC)) { + RETURN_CTOR(&numberLevel); + } + } else if (zephir_is_numeric(level)) { + ZEPHIR_CALL_METHOD(&levels, this_ptr, "getlevels", NULL, 0); + zephir_check_call_status(); + ZEPHIR_OBS_VAR(&numberLevel); + if (zephir_array_isset_fetch(&numberLevel, &levels, level, 0 TSRMLS_CC)) { + RETURN_CTOR(&numberLevel); + } + } + RETURN_MM_LONG(8); + +} + +zend_object *zephir_init_properties_Phalcon_Logger(zend_class_entry *class_type TSRMLS_DC) { + + zval _0, _2, _1$$3, _3$$4; + ZVAL_UNDEF(&_0); + ZVAL_UNDEF(&_2); + ZVAL_UNDEF(&_1$$3); + ZVAL_UNDEF(&_3$$4); + + ZEPHIR_MM_GROW(); + + { + zval local_this_ptr, *this_ptr = &local_this_ptr; + ZEPHIR_CREATE_OBJECT(this_ptr, class_type); + zephir_read_property(&_0, this_ptr, SL("excluded"), PH_NOISY_CC | PH_READONLY); + if (Z_TYPE_P(&_0) == IS_NULL) { + ZEPHIR_INIT_VAR(&_1$$3); + array_init(&_1$$3); + zephir_update_property_zval(this_ptr, SL("excluded"), &_1$$3); + } + zephir_read_property(&_2, this_ptr, SL("adapters"), PH_NOISY_CC | PH_READONLY); + if (Z_TYPE_P(&_2) == IS_NULL) { + ZEPHIR_INIT_VAR(&_3$$4); + array_init(&_3$$4); + zephir_update_property_zval(this_ptr, SL("adapters"), &_3$$4); + } + ZEPHIR_MM_RESTORE(); + return Z_OBJ_P(this_ptr); + } + +} + diff --git a/ext/phalcon/logger.zep.h b/ext/phalcon/logger.zep.h new file mode 100644 index 00000000000..2e3ebc748e2 --- /dev/null +++ b/ext/phalcon/logger.zep.h @@ -0,0 +1,205 @@ + +extern zend_class_entry *phalcon_logger_ce; + +ZEPHIR_INIT_CLASS(Phalcon_Logger); + +PHP_METHOD(Phalcon_Logger, __construct); +PHP_METHOD(Phalcon_Logger, addAdapter); +PHP_METHOD(Phalcon_Logger, alert); +PHP_METHOD(Phalcon_Logger, critical); +PHP_METHOD(Phalcon_Logger, debug); +PHP_METHOD(Phalcon_Logger, error); +PHP_METHOD(Phalcon_Logger, emergency); +PHP_METHOD(Phalcon_Logger, excludeAdapters); +PHP_METHOD(Phalcon_Logger, getAdapter); +PHP_METHOD(Phalcon_Logger, getAdapters); +PHP_METHOD(Phalcon_Logger, getName); +PHP_METHOD(Phalcon_Logger, info); +PHP_METHOD(Phalcon_Logger, log); +PHP_METHOD(Phalcon_Logger, notice); +PHP_METHOD(Phalcon_Logger, removeAdapter); +PHP_METHOD(Phalcon_Logger, setAdapters); +PHP_METHOD(Phalcon_Logger, warning); +PHP_METHOD(Phalcon_Logger, addMessage); +PHP_METHOD(Phalcon_Logger, getLevels); +PHP_METHOD(Phalcon_Logger, getLevelNumber); +zend_object *zephir_init_properties_Phalcon_Logger(zend_class_entry *class_type TSRMLS_DC); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger___construct, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, name) +#endif + ZEND_ARG_ARRAY_INFO(0, adapters, 0) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_logger_addadapter, 0, 2, Phalcon\\Logger, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_logger_addadapter, 0, 2, IS_OBJECT, "Phalcon\\Logger", 0) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, name) +#endif + ZEND_ARG_OBJ_INFO(0, adapter, Phalcon\\Logger\\Adapter\\AdapterInterface, 0) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_alert, 0, 0, 1) + ZEND_ARG_INFO(0, message) + ZEND_ARG_ARRAY_INFO(0, context, 0) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_critical, 0, 0, 1) + ZEND_ARG_INFO(0, message) + ZEND_ARG_ARRAY_INFO(0, context, 0) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_debug, 0, 0, 1) + ZEND_ARG_INFO(0, message) + ZEND_ARG_ARRAY_INFO(0, context, 0) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_error, 0, 0, 1) + ZEND_ARG_INFO(0, message) + ZEND_ARG_ARRAY_INFO(0, context, 0) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_emergency, 0, 0, 1) + ZEND_ARG_INFO(0, message) + ZEND_ARG_ARRAY_INFO(0, context, 0) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_logger_excludeadapters, 0, 0, Phalcon\\Logger, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_logger_excludeadapters, 0, 0, IS_OBJECT, "Phalcon\\Logger", 0) +#endif + ZEND_ARG_ARRAY_INFO(0, adapters, 0) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_logger_getadapter, 0, 1, Phalcon\\Logger\\Adapter\\AdapterInterface, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_logger_getadapter, 0, 1, IS_OBJECT, "Phalcon\\Logger\\Adapter\\AdapterInterface", 0) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, name) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_logger_getadapters, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_logger_getadapters, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_logger_getname, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_logger_getname, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_info, 0, 0, 1) + ZEND_ARG_INFO(0, message) + ZEND_ARG_ARRAY_INFO(0, context, 0) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_log, 0, 0, 2) + ZEND_ARG_INFO(0, level) + ZEND_ARG_INFO(0, message) + ZEND_ARG_ARRAY_INFO(0, context, 0) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_notice, 0, 0, 1) + ZEND_ARG_INFO(0, message) + ZEND_ARG_ARRAY_INFO(0, context, 0) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_logger_removeadapter, 0, 1, Phalcon\\Logger, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_logger_removeadapter, 0, 1, IS_OBJECT, "Phalcon\\Logger", 0) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, name) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_logger_setadapters, 0, 1, Phalcon\\Logger, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_logger_setadapters, 0, 1, IS_OBJECT, "Phalcon\\Logger", 0) +#endif + ZEND_ARG_ARRAY_INFO(0, adapters, 0) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_warning, 0, 0, 1) + ZEND_ARG_INFO(0, message) + ZEND_ARG_ARRAY_INFO(0, context, 0) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_logger_addmessage, 0, 2, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_logger_addmessage, 0, 2, _IS_BOOL, NULL, 0) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, level, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, level) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, message, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, message) +#endif + ZEND_ARG_ARRAY_INFO(0, context, 0) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_logger_getlevels, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_logger_getlevels, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_logger_getlevelnumber, 0, 1, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_logger_getlevelnumber, 0, 1, IS_LONG, NULL, 0) +#endif + ZEND_ARG_INFO(0, level) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(phalcon_logger_method_entry) { + PHP_ME(Phalcon_Logger, __construct, arginfo_phalcon_logger___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Logger, addAdapter, arginfo_phalcon_logger_addadapter, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger, alert, arginfo_phalcon_logger_alert, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger, critical, arginfo_phalcon_logger_critical, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger, debug, arginfo_phalcon_logger_debug, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger, error, arginfo_phalcon_logger_error, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger, emergency, arginfo_phalcon_logger_emergency, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger, excludeAdapters, arginfo_phalcon_logger_excludeadapters, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger, getAdapter, arginfo_phalcon_logger_getadapter, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger, getAdapters, arginfo_phalcon_logger_getadapters, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger, getName, arginfo_phalcon_logger_getname, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger, info, arginfo_phalcon_logger_info, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger, log, arginfo_phalcon_logger_log, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger, notice, arginfo_phalcon_logger_notice, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger, removeAdapter, arginfo_phalcon_logger_removeadapter, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger, setAdapters, arginfo_phalcon_logger_setadapters, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger, warning, arginfo_phalcon_logger_warning, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger, addMessage, arginfo_phalcon_logger_addmessage, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Logger, getLevels, arginfo_phalcon_logger_getlevels, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Logger, getLevelNumber, arginfo_phalcon_logger_getlevelnumber, ZEND_ACC_PRIVATE) + PHP_FE_END +}; From a6e3de413bf568639e593d338e9cb0d2458faecc Mon Sep 17 00:00:00 2001 From: Ruud Boon Date: Mon, 19 Aug 2019 19:45:44 +0200 Subject: [PATCH 008/202] Removed old logger c files --- ext/phalcon/logger/logger.zep.c | 941 -------------------------------- ext/phalcon/logger/logger.zep.h | 205 ------- 2 files changed, 1146 deletions(-) delete mode 100644 ext/phalcon/logger/logger.zep.c delete mode 100644 ext/phalcon/logger/logger.zep.h diff --git a/ext/phalcon/logger/logger.zep.c b/ext/phalcon/logger/logger.zep.c deleted file mode 100644 index 87c209c3cb2..00000000000 --- a/ext/phalcon/logger/logger.zep.c +++ /dev/null @@ -1,941 +0,0 @@ - -#ifdef HAVE_CONFIG_H -#include "../../ext_config.h" -#endif - -#include -#include "../../php_ext.h" -#include "../../ext.h" - -#include -#include -#include - -#include "kernel/main.h" -#include "kernel/object.h" -#include "kernel/fcall.h" -#include "ext/spl/spl_exceptions.h" -#include "kernel/exception.h" -#include "kernel/operators.h" -#include "kernel/memory.h" -#include "kernel/array.h" -#include "kernel/time.h" -#include "kernel/string.h" - - -/** - * This file is part of the Phalcon Framework. - * - * (c) Phalcon Team - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ -/** - * Phalcon\Logger - * - * This component offers logging capabilities for your application. The - * component accepts multiple adapters, working also as a multiple logger. - * Phalcon\Logger implements PSR-3. - * - *```php - * use Phalcon\Logger; - * use Phalcon\Logger\Adapter\Stream; - * - * $adapter1 = new Stream('/logs/first-log.log'); - * $adapter2 = new Stream('/remote/second-log.log'); - * $adapter3 = new Stream('/manager/third-log.log'); - * - * $logger = new Logger( - * 'messages', - * [ - * 'local' => $adapter1, - * 'remote' => $adapter2, - * 'manager' => $adapter3, - * ] - * ); - * - * // Log to all adapters - * $logger->error('Something went wrong'); - * - * // Log to specific adapters - * $logger - * ->excludeAdapters(['manager']) - * ->info('This does not go to the "manager" logger); - *``` - */ -ZEPHIR_INIT_CLASS(Phalcon_Logger_Logger) { - - ZEPHIR_REGISTER_CLASS(Phalcon\\Logger, Logger, phalcon, logger_logger, phalcon_logger_logger_method_entry, 0); - - /** - * The adapter stack - * - * @var AdapterInterface[] - */ - zend_declare_property_null(phalcon_logger_logger_ce, SL("adapters"), ZEND_ACC_PROTECTED TSRMLS_CC); - - /** - * @var string - */ - zend_declare_property_string(phalcon_logger_logger_ce, SL("name"), "", ZEND_ACC_PROTECTED TSRMLS_CC); - - /** - * The excluded adapters for this log process - * - * @var AdapterInterface[] - */ - zend_declare_property_null(phalcon_logger_logger_ce, SL("excluded"), ZEND_ACC_PROTECTED TSRMLS_CC); - - phalcon_logger_logger_ce->create_object = zephir_init_properties_Phalcon_Logger_Logger; - zephir_declare_class_constant_long(phalcon_logger_logger_ce, SL("ALERT"), 2); - - zephir_declare_class_constant_long(phalcon_logger_logger_ce, SL("CRITICAL"), 1); - - zephir_declare_class_constant_long(phalcon_logger_logger_ce, SL("CUSTOM"), 8); - - zephir_declare_class_constant_long(phalcon_logger_logger_ce, SL("DEBUG"), 7); - - zephir_declare_class_constant_long(phalcon_logger_logger_ce, SL("EMERGENCY"), 0); - - zephir_declare_class_constant_long(phalcon_logger_logger_ce, SL("ERROR"), 3); - - zephir_declare_class_constant_long(phalcon_logger_logger_ce, SL("INFO"), 6); - - zephir_declare_class_constant_long(phalcon_logger_logger_ce, SL("NOTICE"), 5); - - zephir_declare_class_constant_long(phalcon_logger_logger_ce, SL("WARNING"), 4); - - zend_class_implements(phalcon_logger_logger_ce TSRMLS_CC, 1, zephir_get_internal_ce(SL("psr\\log\\loggerinterface"))); - return SUCCESS; - -} - -/** - * Constructor. - * - * @param string name The name of the logger - * @param array adapters The collection of adapters to be used for logging (default []) - */ -PHP_METHOD(Phalcon_Logger_Logger, __construct) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval adapters; - zval *name_param = NULL, *adapters_param = NULL; - zval name; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&adapters); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &name_param, &adapters_param); - - if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { - zephir_get_strval(&name, name_param); - } else { - ZEPHIR_INIT_VAR(&name); - ZVAL_EMPTY_STRING(&name); - } - if (!adapters_param) { - ZEPHIR_INIT_VAR(&adapters); - array_init(&adapters); - } else { - ZEPHIR_OBS_COPY_OR_DUP(&adapters, adapters_param); - } - - - zephir_update_property_zval(this_ptr, SL("name"), &name); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "setadapters", NULL, 0, &adapters); - zephir_check_call_status(); - ZEPHIR_MM_RESTORE(); - -} - -/** - * Add an adapter to the stack. For processing we use FIFO - * - * @param string name The name of the adapter - * @param adapter The adapter to add to the stack - */ -PHP_METHOD(Phalcon_Logger_Logger, addAdapter) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *name_param = NULL, *adapter, adapter_sub; - zval name; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&adapter_sub); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 2, 0, &name_param, &adapter); - - zephir_get_strval(&name, name_param); - - - zephir_update_property_array(this_ptr, SL("adapters"), &name, adapter); - RETURN_THIS(); - -} - -/** - * Action must be taken immediately. - * - * Example: Entire website down, database unavailable, etc. This should - * trigger the SMS alerts and wake you up. - * - * @param string message - */ -PHP_METHOD(Phalcon_Logger_Logger, alert) { - - zval _0; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval context; - zval *message, message_sub, *context_param = NULL, _1; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&message_sub); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&context); - ZVAL_UNDEF(&_0); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &message, &context_param); - - if (!context_param) { - ZEPHIR_INIT_VAR(&context); - array_init(&context); - } else { - zephir_get_arrval(&context, context_param); - } - - - zephir_get_strval(&_0, message); - ZVAL_LONG(&_1, 2); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "addmessage", NULL, 0, &_1, &_0, &context); - zephir_check_call_status(); - ZEPHIR_MM_RESTORE(); - -} - -/** - * Critical conditions. - * - * Example: Application component unavailable, unexpected exception. - * - * @param string message - */ -PHP_METHOD(Phalcon_Logger_Logger, critical) { - - zval _0; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval context; - zval *message, message_sub, *context_param = NULL, _1; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&message_sub); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&context); - ZVAL_UNDEF(&_0); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &message, &context_param); - - if (!context_param) { - ZEPHIR_INIT_VAR(&context); - array_init(&context); - } else { - zephir_get_arrval(&context, context_param); - } - - - zephir_get_strval(&_0, message); - ZVAL_LONG(&_1, 1); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "addmessage", NULL, 0, &_1, &_0, &context); - zephir_check_call_status(); - ZEPHIR_MM_RESTORE(); - -} - -/** - * Detailed debug information. - * - * @param string message - */ -PHP_METHOD(Phalcon_Logger_Logger, debug) { - - zval _0; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval context; - zval *message, message_sub, *context_param = NULL, _1; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&message_sub); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&context); - ZVAL_UNDEF(&_0); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &message, &context_param); - - if (!context_param) { - ZEPHIR_INIT_VAR(&context); - array_init(&context); - } else { - zephir_get_arrval(&context, context_param); - } - - - zephir_get_strval(&_0, message); - ZVAL_LONG(&_1, 7); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "addmessage", NULL, 0, &_1, &_0, &context); - zephir_check_call_status(); - ZEPHIR_MM_RESTORE(); - -} - -/** - * Runtime errors that do not require immediate action but should typically - * be logged and monitored. - * - * @param string message - */ -PHP_METHOD(Phalcon_Logger_Logger, error) { - - zval _0; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval context; - zval *message, message_sub, *context_param = NULL, _1; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&message_sub); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&context); - ZVAL_UNDEF(&_0); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &message, &context_param); - - if (!context_param) { - ZEPHIR_INIT_VAR(&context); - array_init(&context); - } else { - zephir_get_arrval(&context, context_param); - } - - - zephir_get_strval(&_0, message); - ZVAL_LONG(&_1, 3); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "addmessage", NULL, 0, &_1, &_0, &context); - zephir_check_call_status(); - ZEPHIR_MM_RESTORE(); - -} - -/** - * System is unusable. - * - * @param string message - */ -PHP_METHOD(Phalcon_Logger_Logger, emergency) { - - zval _0; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval context; - zval *message, message_sub, *context_param = NULL, _1; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&message_sub); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&context); - ZVAL_UNDEF(&_0); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &message, &context_param); - - if (!context_param) { - ZEPHIR_INIT_VAR(&context); - array_init(&context); - } else { - zephir_get_arrval(&context, context_param); - } - - - zephir_get_strval(&_0, message); - ZVAL_LONG(&_1, 0); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "addmessage", NULL, 0, &_1, &_0, &context); - zephir_check_call_status(); - ZEPHIR_MM_RESTORE(); - -} - -/** - * Exclude certain adapters. - */ -PHP_METHOD(Phalcon_Logger_Logger, excludeAdapters) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *adapters_param = NULL, __$true, name, registered, *_0, _1; - zval adapters; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&adapters); - ZVAL_BOOL(&__$true, 1); - ZVAL_UNDEF(&name); - ZVAL_UNDEF(®istered); - ZVAL_UNDEF(&_1); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 0, 1, &adapters_param); - - if (!adapters_param) { - ZEPHIR_INIT_VAR(&adapters); - array_init(&adapters); - } else { - zephir_get_arrval(&adapters, adapters_param); - } - - - zephir_read_property(®istered, this_ptr, SL("adapters"), PH_NOISY_CC | PH_READONLY); - zephir_is_iterable(&adapters, 0, "phalcon/Logger/Logger.zep", 185); - if (Z_TYPE_P(&adapters) == IS_ARRAY) { - ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&adapters), _0) - { - ZEPHIR_INIT_NVAR(&name); - ZVAL_COPY(&name, _0); - if (zephir_array_isset(®istered, &name)) { - zephir_update_property_array(this_ptr, SL("excluded"), &name, &__$true); - } - } ZEND_HASH_FOREACH_END(); - } else { - ZEPHIR_CALL_METHOD(NULL, &adapters, "rewind", NULL, 0); - zephir_check_call_status(); - while (1) { - ZEPHIR_CALL_METHOD(&_1, &adapters, "valid", NULL, 0); - zephir_check_call_status(); - if (!zend_is_true(&_1)) { - break; - } - ZEPHIR_CALL_METHOD(&name, &adapters, "current", NULL, 0); - zephir_check_call_status(); - if (zephir_array_isset(®istered, &name)) { - zephir_update_property_array(this_ptr, SL("excluded"), &name, &__$true); - } - ZEPHIR_CALL_METHOD(NULL, &adapters, "next", NULL, 0); - zephir_check_call_status(); - } - } - ZEPHIR_INIT_NVAR(&name); - RETURN_THIS(); - -} - -/** - * Returns an adapter from the stack - * - * @param string name The name of the adapter - * - * @throws - */ -PHP_METHOD(Phalcon_Logger_Logger, getAdapter) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *name_param = NULL, adapter, adapters, _0; - zval name; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&adapter); - ZVAL_UNDEF(&adapters); - ZVAL_UNDEF(&_0); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &name_param); - - zephir_get_strval(&name, name_param); - - - zephir_read_property(&_0, this_ptr, SL("adapters"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CPY_WRT(&adapters, &_0); - ZEPHIR_OBS_VAR(&adapter); - if (!(zephir_array_isset_fetch(&adapter, &adapters, &name, 0 TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_logger_exception_ce, "Adapter does not exist for this logger", "phalcon/Logger/Logger.zep", 202); - return; - } - RETURN_CCTOR(&adapter); - -} - -/** - * Returns the adapter stack array - * - * @return AdapterInterface[] - */ -PHP_METHOD(Phalcon_Logger_Logger, getAdapters) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "adapters"); - -} - -/** - * Returns the name of the logger - */ -PHP_METHOD(Phalcon_Logger_Logger, getName) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "name"); - -} - -/** - * Interesting events. - * - * Example: User logs in, SQL logs. - * - * @param string message - */ -PHP_METHOD(Phalcon_Logger_Logger, info) { - - zval _0; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval context; - zval *message, message_sub, *context_param = NULL, _1; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&message_sub); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&context); - ZVAL_UNDEF(&_0); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &message, &context_param); - - if (!context_param) { - ZEPHIR_INIT_VAR(&context); - array_init(&context); - } else { - zephir_get_arrval(&context, context_param); - } - - - zephir_get_strval(&_0, message); - ZVAL_LONG(&_1, 6); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "addmessage", NULL, 0, &_1, &_0, &context); - zephir_check_call_status(); - ZEPHIR_MM_RESTORE(); - -} - -/** - * Logs with an arbitrary level. - * - * @param mixed level - * @param string message - */ -PHP_METHOD(Phalcon_Logger_Logger, log) { - - zval _0; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval context; - zval *level, level_sub, *message, message_sub, *context_param = NULL, intLevel; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&level_sub); - ZVAL_UNDEF(&message_sub); - ZVAL_UNDEF(&intLevel); - ZVAL_UNDEF(&context); - ZVAL_UNDEF(&_0); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 2, 1, &level, &message, &context_param); - - if (!context_param) { - ZEPHIR_INIT_VAR(&context); - array_init(&context); - } else { - zephir_get_arrval(&context, context_param); - } - - - ZEPHIR_CALL_METHOD(&intLevel, this_ptr, "getlevelnumber", NULL, 417, level); - zephir_check_call_status(); - zephir_get_strval(&_0, message); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "addmessage", NULL, 0, level, &_0, &context); - zephir_check_call_status(); - ZEPHIR_MM_RESTORE(); - -} - -/** - * Normal but significant events. - * - * @param string message - */ -PHP_METHOD(Phalcon_Logger_Logger, notice) { - - zval _0; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval context; - zval *message, message_sub, *context_param = NULL, _1; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&message_sub); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&context); - ZVAL_UNDEF(&_0); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &message, &context_param); - - if (!context_param) { - ZEPHIR_INIT_VAR(&context); - array_init(&context); - } else { - zephir_get_arrval(&context, context_param); - } - - - zephir_get_strval(&_0, message); - ZVAL_LONG(&_1, 5); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "addmessage", NULL, 0, &_1, &_0, &context); - zephir_check_call_status(); - ZEPHIR_MM_RESTORE(); - -} - -/** - * Removes an adapter from the stack - * - * @param string name The name of the adapter - * - * @throws - */ -PHP_METHOD(Phalcon_Logger_Logger, removeAdapter) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *name_param = NULL, adapters, _0; - zval name; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&adapters); - ZVAL_UNDEF(&_0); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &name_param); - - zephir_get_strval(&name, name_param); - - - zephir_read_property(&_0, this_ptr, SL("adapters"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CPY_WRT(&adapters, &_0); - if (1 != zephir_array_isset(&adapters, &name)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_logger_exception_ce, "Adapter does not exist for this logger", "phalcon/Logger/Logger.zep", 277); - return; - } - zephir_array_unset(&adapters, &name, PH_SEPARATE); - zephir_update_property_zval(this_ptr, SL("adapters"), &adapters); - RETURN_THIS(); - -} - -/** - * Sets the adapters stack overriding what is already there - * - * @param array adapters An array of adapters - */ -PHP_METHOD(Phalcon_Logger_Logger, setAdapters) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *adapters_param = NULL; - zval adapters; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&adapters); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &adapters_param); - - ZEPHIR_OBS_COPY_OR_DUP(&adapters, adapters_param); - - - zephir_update_property_zval(this_ptr, SL("adapters"), &adapters); - RETURN_THIS(); - -} - -/** - * Exceptional occurrences that are not errors. - * - * Example: Use of deprecated APIs, poor use of an API, undesirable things - * that are not necessarily wrong. - * - * @param string message - */ -PHP_METHOD(Phalcon_Logger_Logger, warning) { - - zval _0; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval context; - zval *message, message_sub, *context_param = NULL, _1; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&message_sub); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&context); - ZVAL_UNDEF(&_0); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &message, &context_param); - - if (!context_param) { - ZEPHIR_INIT_VAR(&context); - array_init(&context); - } else { - zephir_get_arrval(&context, context_param); - } - - - zephir_get_strval(&_0, message); - ZVAL_LONG(&_1, 4); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "addmessage", NULL, 0, &_1, &_0, &context); - zephir_check_call_status(); - ZEPHIR_MM_RESTORE(); - -} - -/** - * Adds a message to each handler for processing - * - * @param int level - * @param string message - * - * @throws - */ -PHP_METHOD(Phalcon_Logger_Logger, addMessage) { - - zend_string *_5; - zend_ulong _4; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval context; - zval message; - zval *level_param = NULL, *message_param = NULL, *context_param = NULL, adapter, key, excluded, levelName, levels, item, registered, _0, _1, *_2, _3, _6; - zend_long level, ZEPHIR_LAST_CALL_STATUS; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&adapter); - ZVAL_UNDEF(&key); - ZVAL_UNDEF(&excluded); - ZVAL_UNDEF(&levelName); - ZVAL_UNDEF(&levels); - ZVAL_UNDEF(&item); - ZVAL_UNDEF(®istered); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&_3); - ZVAL_UNDEF(&_6); - ZVAL_UNDEF(&message); - ZVAL_UNDEF(&context); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 2, 1, &level_param, &message_param, &context_param); - - level = zephir_get_intval(level_param); - zephir_get_strval(&message, message_param); - if (!context_param) { - ZEPHIR_INIT_VAR(&context); - array_init(&context); - } else { - zephir_get_arrval(&context, context_param); - } - - - ZEPHIR_OBS_VAR(®istered); - zephir_read_property(®istered, this_ptr, SL("adapters"), PH_NOISY_CC); - zephir_read_property(&_0, this_ptr, SL("excluded"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CPY_WRT(&excluded, &_0); - if (zephir_fast_count_int(®istered TSRMLS_CC) == 0) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_logger_exception_ce, "No adapters specified", "phalcon/Logger/Logger.zep", 328); - return; - } - ZEPHIR_CALL_METHOD(&levels, this_ptr, "getlevels", NULL, 0); - zephir_check_call_status(); - ZEPHIR_OBS_VAR(&levelName); - if (!(zephir_array_isset_long_fetch(&levelName, &levels, level, 0 TSRMLS_CC))) { - ZEPHIR_OBS_NVAR(&levelName); - zephir_array_fetch_long(&levelName, &levels, 8, PH_NOISY, "phalcon/Logger/Logger.zep", 334 TSRMLS_CC); - } - ZEPHIR_INIT_VAR(&item); - object_init_ex(&item, phalcon_logger_item_ce); - ZEPHIR_INIT_VAR(&_1); - zephir_time(&_1); - ZVAL_LONG(&_0, level); - ZEPHIR_CALL_METHOD(NULL, &item, "__construct", NULL, 418, &message, &levelName, &_0, &_1, &context); - zephir_check_call_status(); - zephir_is_iterable(®istered, 0, "phalcon/Logger/Logger.zep", 351); - if (Z_TYPE_P(®istered) == IS_ARRAY) { - ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(®istered), _4, _5, _2) - { - ZEPHIR_INIT_NVAR(&key); - if (_5 != NULL) { - ZVAL_STR_COPY(&key, _5); - } else { - ZVAL_LONG(&key, _4); - } - ZEPHIR_INIT_NVAR(&adapter); - ZVAL_COPY(&adapter, _2); - if (!(zephir_array_isset(&excluded, &key))) { - ZEPHIR_CALL_METHOD(NULL, &adapter, "process", NULL, 0, &item); - zephir_check_call_status(); - } - } ZEND_HASH_FOREACH_END(); - } else { - ZEPHIR_CALL_METHOD(NULL, ®istered, "rewind", NULL, 0); - zephir_check_call_status(); - while (1) { - ZEPHIR_CALL_METHOD(&_3, ®istered, "valid", NULL, 0); - zephir_check_call_status(); - if (!zend_is_true(&_3)) { - break; - } - ZEPHIR_CALL_METHOD(&key, ®istered, "key", NULL, 0); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&adapter, ®istered, "current", NULL, 0); - zephir_check_call_status(); - if (!(zephir_array_isset(&excluded, &key))) { - ZEPHIR_CALL_METHOD(NULL, &adapter, "process", NULL, 0, &item); - zephir_check_call_status(); - } - ZEPHIR_CALL_METHOD(NULL, ®istered, "next", NULL, 0); - zephir_check_call_status(); - } - } - ZEPHIR_INIT_NVAR(&adapter); - ZEPHIR_INIT_NVAR(&key); - ZEPHIR_INIT_VAR(&_6); - array_init(&_6); - zephir_update_property_zval(this_ptr, SL("excluded"), &_6); - RETURN_MM_BOOL(1); - -} - -/** - * Returns an array of log levels with integer to string conversion - */ -PHP_METHOD(Phalcon_Logger_Logger, getLevels) { - - zval *this_ptr = getThis(); - - - zephir_create_array(return_value, 9, 0 TSRMLS_CC); - add_index_stringl(return_value, 2, SL("alert")); - add_index_stringl(return_value, 1, SL("critical")); - add_index_stringl(return_value, 7, SL("debug")); - add_index_stringl(return_value, 0, SL("emergency")); - add_index_stringl(return_value, 3, SL("error")); - add_index_stringl(return_value, 6, SL("info")); - add_index_stringl(return_value, 5, SL("notice")); - add_index_stringl(return_value, 4, SL("warning")); - add_index_stringl(return_value, 8, SL("custom")); - return; - -} - -/** - * Converts the level from string/word to an integer - * - * @param string|int level - */ -PHP_METHOD(Phalcon_Logger_Logger, getLevelNumber) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *level, level_sub, levelName, numberLevel, levels, _0$$3; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&level_sub); - ZVAL_UNDEF(&levelName); - ZVAL_UNDEF(&numberLevel); - ZVAL_UNDEF(&levels); - ZVAL_UNDEF(&_0$$3); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &level); - - - - if (Z_TYPE_P(level) == IS_STRING) { - ZEPHIR_INIT_VAR(&levelName); - zephir_fast_strtolower(&levelName, level); - ZEPHIR_CALL_METHOD(&_0$$3, this_ptr, "getlevels", NULL, 0); - zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&levels, "array_flip", NULL, 162, &_0$$3); - zephir_check_call_status(); - if (zephir_array_isset_fetch(&numberLevel, &levels, &levelName, 1 TSRMLS_CC)) { - RETURN_CTOR(&numberLevel); - } - } else if (zephir_is_numeric(level)) { - ZEPHIR_CALL_METHOD(&levels, this_ptr, "getlevels", NULL, 0); - zephir_check_call_status(); - ZEPHIR_OBS_VAR(&numberLevel); - if (zephir_array_isset_fetch(&numberLevel, &levels, level, 0 TSRMLS_CC)) { - RETURN_CTOR(&numberLevel); - } - } - RETURN_MM_LONG(8); - -} - -zend_object *zephir_init_properties_Phalcon_Logger_Logger(zend_class_entry *class_type TSRMLS_DC) { - - zval _0, _2, _1$$3, _3$$4; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_2); - ZVAL_UNDEF(&_1$$3); - ZVAL_UNDEF(&_3$$4); - - ZEPHIR_MM_GROW(); - - { - zval local_this_ptr, *this_ptr = &local_this_ptr; - ZEPHIR_CREATE_OBJECT(this_ptr, class_type); - zephir_read_property(&_0, this_ptr, SL("excluded"), PH_NOISY_CC | PH_READONLY); - if (Z_TYPE_P(&_0) == IS_NULL) { - ZEPHIR_INIT_VAR(&_1$$3); - array_init(&_1$$3); - zephir_update_property_zval(this_ptr, SL("excluded"), &_1$$3); - } - zephir_read_property(&_2, this_ptr, SL("adapters"), PH_NOISY_CC | PH_READONLY); - if (Z_TYPE_P(&_2) == IS_NULL) { - ZEPHIR_INIT_VAR(&_3$$4); - array_init(&_3$$4); - zephir_update_property_zval(this_ptr, SL("adapters"), &_3$$4); - } - ZEPHIR_MM_RESTORE(); - return Z_OBJ_P(this_ptr); - } - -} - diff --git a/ext/phalcon/logger/logger.zep.h b/ext/phalcon/logger/logger.zep.h deleted file mode 100644 index 20ee3f16e2e..00000000000 --- a/ext/phalcon/logger/logger.zep.h +++ /dev/null @@ -1,205 +0,0 @@ - -extern zend_class_entry *phalcon_logger_logger_ce; - -ZEPHIR_INIT_CLASS(Phalcon_Logger_Logger); - -PHP_METHOD(Phalcon_Logger_Logger, __construct); -PHP_METHOD(Phalcon_Logger_Logger, addAdapter); -PHP_METHOD(Phalcon_Logger_Logger, alert); -PHP_METHOD(Phalcon_Logger_Logger, critical); -PHP_METHOD(Phalcon_Logger_Logger, debug); -PHP_METHOD(Phalcon_Logger_Logger, error); -PHP_METHOD(Phalcon_Logger_Logger, emergency); -PHP_METHOD(Phalcon_Logger_Logger, excludeAdapters); -PHP_METHOD(Phalcon_Logger_Logger, getAdapter); -PHP_METHOD(Phalcon_Logger_Logger, getAdapters); -PHP_METHOD(Phalcon_Logger_Logger, getName); -PHP_METHOD(Phalcon_Logger_Logger, info); -PHP_METHOD(Phalcon_Logger_Logger, log); -PHP_METHOD(Phalcon_Logger_Logger, notice); -PHP_METHOD(Phalcon_Logger_Logger, removeAdapter); -PHP_METHOD(Phalcon_Logger_Logger, setAdapters); -PHP_METHOD(Phalcon_Logger_Logger, warning); -PHP_METHOD(Phalcon_Logger_Logger, addMessage); -PHP_METHOD(Phalcon_Logger_Logger, getLevels); -PHP_METHOD(Phalcon_Logger_Logger, getLevelNumber); -zend_object *zephir_init_properties_Phalcon_Logger_Logger(zend_class_entry *class_type TSRMLS_DC); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_logger___construct, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, name) -#endif - ZEND_ARG_ARRAY_INFO(0, adapters, 0) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_logger_logger_addadapter, 0, 2, Phalcon\\Logger\\Logger, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_logger_logger_addadapter, 0, 2, IS_OBJECT, "Phalcon\\Logger\\Logger", 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, name) -#endif - ZEND_ARG_OBJ_INFO(0, adapter, Phalcon\\Logger\\Adapter\\AdapterInterface, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_logger_alert, 0, 0, 1) - ZEND_ARG_INFO(0, message) - ZEND_ARG_ARRAY_INFO(0, context, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_logger_critical, 0, 0, 1) - ZEND_ARG_INFO(0, message) - ZEND_ARG_ARRAY_INFO(0, context, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_logger_debug, 0, 0, 1) - ZEND_ARG_INFO(0, message) - ZEND_ARG_ARRAY_INFO(0, context, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_logger_error, 0, 0, 1) - ZEND_ARG_INFO(0, message) - ZEND_ARG_ARRAY_INFO(0, context, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_logger_emergency, 0, 0, 1) - ZEND_ARG_INFO(0, message) - ZEND_ARG_ARRAY_INFO(0, context, 0) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_logger_logger_excludeadapters, 0, 0, Phalcon\\Logger\\Logger, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_logger_logger_excludeadapters, 0, 0, IS_OBJECT, "Phalcon\\Logger\\Logger", 0) -#endif - ZEND_ARG_ARRAY_INFO(0, adapters, 0) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_logger_logger_getadapter, 0, 1, Phalcon\\Logger\\Adapter\\AdapterInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_logger_logger_getadapter, 0, 1, IS_OBJECT, "Phalcon\\Logger\\Adapter\\AdapterInterface", 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, name) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_logger_logger_getadapters, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_logger_logger_getadapters, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_logger_logger_getname, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_logger_logger_getname, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_logger_info, 0, 0, 1) - ZEND_ARG_INFO(0, message) - ZEND_ARG_ARRAY_INFO(0, context, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_logger_log, 0, 0, 2) - ZEND_ARG_INFO(0, level) - ZEND_ARG_INFO(0, message) - ZEND_ARG_ARRAY_INFO(0, context, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_logger_notice, 0, 0, 1) - ZEND_ARG_INFO(0, message) - ZEND_ARG_ARRAY_INFO(0, context, 0) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_logger_logger_removeadapter, 0, 1, Phalcon\\Logger\\Logger, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_logger_logger_removeadapter, 0, 1, IS_OBJECT, "Phalcon\\Logger\\Logger", 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, name) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_logger_logger_setadapters, 0, 1, Phalcon\\Logger\\Logger, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_logger_logger_setadapters, 0, 1, IS_OBJECT, "Phalcon\\Logger\\Logger", 0) -#endif - ZEND_ARG_ARRAY_INFO(0, adapters, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_logger_warning, 0, 0, 1) - ZEND_ARG_INFO(0, message) - ZEND_ARG_ARRAY_INFO(0, context, 0) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_logger_logger_addmessage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_logger_logger_addmessage, 0, 2, _IS_BOOL, NULL, 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, level, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, level) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, message, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, message) -#endif - ZEND_ARG_ARRAY_INFO(0, context, 0) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_logger_logger_getlevels, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_logger_logger_getlevels, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_logger_logger_getlevelnumber, 0, 1, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_logger_logger_getlevelnumber, 0, 1, IS_LONG, NULL, 0) -#endif - ZEND_ARG_INFO(0, level) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(phalcon_logger_logger_method_entry) { - PHP_ME(Phalcon_Logger_Logger, __construct, arginfo_phalcon_logger_logger___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Logger_Logger, addAdapter, arginfo_phalcon_logger_logger_addadapter, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Logger, alert, arginfo_phalcon_logger_logger_alert, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Logger, critical, arginfo_phalcon_logger_logger_critical, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Logger, debug, arginfo_phalcon_logger_logger_debug, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Logger, error, arginfo_phalcon_logger_logger_error, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Logger, emergency, arginfo_phalcon_logger_logger_emergency, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Logger, excludeAdapters, arginfo_phalcon_logger_logger_excludeadapters, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Logger, getAdapter, arginfo_phalcon_logger_logger_getadapter, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Logger, getAdapters, arginfo_phalcon_logger_logger_getadapters, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Logger, getName, arginfo_phalcon_logger_logger_getname, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Logger, info, arginfo_phalcon_logger_logger_info, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Logger, log, arginfo_phalcon_logger_logger_log, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Logger, notice, arginfo_phalcon_logger_logger_notice, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Logger, removeAdapter, arginfo_phalcon_logger_logger_removeadapter, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Logger, setAdapters, arginfo_phalcon_logger_logger_setadapters, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Logger, warning, arginfo_phalcon_logger_logger_warning, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Logger, addMessage, arginfo_phalcon_logger_logger_addmessage, ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Logger_Logger, getLevels, arginfo_phalcon_logger_logger_getlevels, ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Logger_Logger, getLevelNumber, arginfo_phalcon_logger_logger_getlevelnumber, ZEND_ACC_PRIVATE) - PHP_FE_END -}; From 7f84c58ccf784a1ac659d4ea921512cbf07bdb4a Mon Sep 17 00:00:00 2001 From: Sid Roberts Date: Tue, 20 Aug 2019 07:32:44 +0900 Subject: [PATCH 009/202] Travis now uses default MySQL version --- .ci/install-mysql-5.7.sh | 23 ----------------------- .travis.yml | 1 - 2 files changed, 24 deletions(-) delete mode 100755 .ci/install-mysql-5.7.sh diff --git a/.ci/install-mysql-5.7.sh b/.ci/install-mysql-5.7.sh deleted file mode 100755 index bba4a20d2cc..00000000000 --- a/.ci/install-mysql-5.7.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env bash -# -# This file is part of the Phalcon Framework. -# -# (c) Phalcon Team -# -# For the full copyright and license information, please view the -# LICENSE.txt file that was distributed with this source code. - -# Ensure that this is being run inside a CI container -if [ "${CI}" != "true" ] -then - (>&2 echo "This script is designed to run inside a CI container only.") - (>&2 echo "Aborting.") - exit 1 -fi - -echo mysql-apt-config mysql-apt-config/select-server select mysql-5.7 | sudo debconf-set-selections -wget -q https://dev.mysql.com/get/mysql-apt-config_0.7.3-1_all.deb -sudo dpkg --install mysql-apt-config_0.7.3-1_all.deb 1> /dev/null -sudo apt-get update -q 1> /dev/null -sudo apt-get install -q -y --allow-unauthenticated -o Dpkg::Options::=--force-confnew mysql-server 1> /dev/null -sudo mysql_upgrade 1> /dev/null diff --git a/.travis.yml b/.travis.yml index e2506521b69..bf4fe5b94ac 100644 --- a/.travis.yml +++ b/.travis.yml @@ -67,7 +67,6 @@ before_install: - source .ci/export-variables.sh install: - - .ci/install-mysql-5.7.sh - .ci/setup-dbs.sh - .ci/pear-setup.sh - .ci/install-re2c.sh From a25c7f5e21f1e81c74089e920381f60152ae03b4 Mon Sep 17 00:00:00 2001 From: zhangruiming Date: Tue, 20 Aug 2019 14:56:26 +0800 Subject: [PATCH 010/202] Fixed issue 14314 --- phalcon/Session/Adapter/AbstractAdapter.zep | 5 ++++- tests/integration/Session/Adapter/Redis/ReadCest.php | 8 ++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/phalcon/Session/Adapter/AbstractAdapter.zep b/phalcon/Session/Adapter/AbstractAdapter.zep index 80ef48ed2dc..4e30ed5c72c 100644 --- a/phalcon/Session/Adapter/AbstractAdapter.zep +++ b/phalcon/Session/Adapter/AbstractAdapter.zep @@ -53,7 +53,10 @@ abstract class AbstractAdapter implements SessionHandlerInterface */ public function read(var id) -> string { - return this->adapter->get(id); + var data; + let data = this->adapter->get(id); + + return is_null(data) ? "" : data; } /** diff --git a/tests/integration/Session/Adapter/Redis/ReadCest.php b/tests/integration/Session/Adapter/Redis/ReadCest.php index 3183c78a82c..550f0954b38 100644 --- a/tests/integration/Session/Adapter/Redis/ReadCest.php +++ b/tests/integration/Session/Adapter/Redis/ReadCest.php @@ -28,14 +28,14 @@ public function _before(IntegrationTester $I) } /** - * Tests Phalcon\Session\Adapter\Redis :: write() + * Tests Phalcon\Session\Adapter\Redis :: read() * * @author Phalcon Team * @since 2018-11-13 */ public function sessionAdapterRedisRead(IntegrationTester $I) { - $I->wantToTest('Session\Adapter\Redis - write()'); + $I->wantToTest('Session\Adapter\Redis - read()'); $adapter = $this->getSessionRedis(); $value = uniqid(); @@ -45,5 +45,9 @@ public function sessionAdapterRedisRead(IntegrationTester $I) $actual = $adapter->read('test1'); $I->assertEquals($expected, $actual); $I->sendCommandToRedis('del', 'sess-reds-test1'); + + $I->assertNotNull( + $adapter->read('test1') + ); } } From 53125e776cea8d71d441a015a544fce64516dec8 Mon Sep 17 00:00:00 2001 From: zhangruiming Date: Tue, 20 Aug 2019 15:16:40 +0800 Subject: [PATCH 011/202] add changelog; add unit tests for Phalcon\Session\Adapter\Libmemcached::read() --- CHANGELOG-4.0.md | 1 + tests/integration/Session/Adapter/Libmemcached/ReadCest.php | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG-4.0.md b/CHANGELOG-4.0.md index 86cb89f7cf6..851f3102cce 100644 --- a/CHANGELOG-4.0.md +++ b/CHANGELOG-4.0.md @@ -2,6 +2,7 @@ ## Fixed - Fixed `Phalcon\Helper\Str::includes` to return correct result [#14301](https://github.com/phalcon/cphalcon/issues/14301) - Fixed `Phalcon\Logger` moved to correct namespace [#14263](https://github.com/phalcon/cphalcon/issues/14263) +- Fixed `Phalcon\Session\Adapter\read` to return ""(empty string) when `Session/Adapter/*::get()` return null [#14314](https://github.com/phalcon/cphalcon/issues/14314) # [4.0.0-beta.2](https://github.com/phalcon/cphalcon/releases/tag/v4.0.0-beta.2) (2019-08-18) diff --git a/tests/integration/Session/Adapter/Libmemcached/ReadCest.php b/tests/integration/Session/Adapter/Libmemcached/ReadCest.php index d063a1799a8..32cb2741df6 100644 --- a/tests/integration/Session/Adapter/Libmemcached/ReadCest.php +++ b/tests/integration/Session/Adapter/Libmemcached/ReadCest.php @@ -49,5 +49,9 @@ public function sessionAdapterLibmemcachedRead(IntegrationTester $I) ); $I->removeFromLibmemcached('sess-memc-test1'); + + $I->assertNotNull( + $adapter->read('test1') + ); } } From 904d63b4b4b41102fae4959db1e8d6bebf3ff677 Mon Sep 17 00:00:00 2001 From: Ruud Boon Date: Tue, 20 Aug 2019 09:56:50 +0200 Subject: [PATCH 012/202] Update CHANGELOG-4.0.md Mentioned AbstractAdapter in changelog --- CHANGELOG-4.0.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG-4.0.md b/CHANGELOG-4.0.md index 851f3102cce..8a6ecb11412 100644 --- a/CHANGELOG-4.0.md +++ b/CHANGELOG-4.0.md @@ -2,7 +2,7 @@ ## Fixed - Fixed `Phalcon\Helper\Str::includes` to return correct result [#14301](https://github.com/phalcon/cphalcon/issues/14301) - Fixed `Phalcon\Logger` moved to correct namespace [#14263](https://github.com/phalcon/cphalcon/issues/14263) -- Fixed `Phalcon\Session\Adapter\read` to return ""(empty string) when `Session/Adapter/*::get()` return null [#14314](https://github.com/phalcon/cphalcon/issues/14314) +- Fixed `Phalcon\Session\Adapter\AbstractAdapter::read()` to return ""(empty string) when `Session/Adapter/*::get()` returns null [#14314](https://github.com/phalcon/cphalcon/issues/14314) # [4.0.0-beta.2](https://github.com/phalcon/cphalcon/releases/tag/v4.0.0-beta.2) (2019-08-18) From d64931a18cdb1aebfcbe7c4c1a47e303352e52d3 Mon Sep 17 00:00:00 2001 From: zhangruiming <34259006+ZhangRuiMingZRM@users.noreply.github.com> Date: Tue, 20 Aug 2019 22:17:07 +0800 Subject: [PATCH 013/202] Update phalcon/Session/Adapter/AbstractAdapter.zep Co-Authored-By: Serghei Iakovlev --- phalcon/Session/Adapter/AbstractAdapter.zep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phalcon/Session/Adapter/AbstractAdapter.zep b/phalcon/Session/Adapter/AbstractAdapter.zep index 4e30ed5c72c..02b198a5039 100644 --- a/phalcon/Session/Adapter/AbstractAdapter.zep +++ b/phalcon/Session/Adapter/AbstractAdapter.zep @@ -56,7 +56,7 @@ abstract class AbstractAdapter implements SessionHandlerInterface var data; let data = this->adapter->get(id); - return is_null(data) ? "" : data; + return null === data ? "" : data; } /** From 4d4006d21fc768b532fc5409e2e3c1139b630a1f Mon Sep 17 00:00:00 2001 From: Ruud Boon Date: Thu, 22 Aug 2019 09:42:53 +0200 Subject: [PATCH 014/202] Exceptions in Phalcon should extend \Phalcon\Exception Fixed - Phalcon\Cache\Exception - Phalcon\Cache\InvalidArgumentException - Phalcon\Collection\Exception --- CHANGELOG-4.0.md | 3 +++ phalcon/Cache/Exception/Exception.zep | 2 +- phalcon/Cache/Exception/InvalidArgumentException.zep | 2 +- phalcon/Collection/Exception.zep | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG-4.0.md b/CHANGELOG-4.0.md index 8a6ecb11412..67696d64c73 100644 --- a/CHANGELOG-4.0.md +++ b/CHANGELOG-4.0.md @@ -3,6 +3,9 @@ - Fixed `Phalcon\Helper\Str::includes` to return correct result [#14301](https://github.com/phalcon/cphalcon/issues/14301) - Fixed `Phalcon\Logger` moved to correct namespace [#14263](https://github.com/phalcon/cphalcon/issues/14263) - Fixed `Phalcon\Session\Adapter\AbstractAdapter::read()` to return ""(empty string) when `Session/Adapter/*::get()` returns null [#14314](https://github.com/phalcon/cphalcon/issues/14314) +- Fixed `Phalcon\Cache\Exception` to extend Phalcon\Exception +- Fixed `Phalcon\Cache\InvalidArgumentException` to extend Phalcon\Exception +- Fixed `Phalcon\Collection\Exception` to extend Phalcon\Exception # [4.0.0-beta.2](https://github.com/phalcon/cphalcon/releases/tag/v4.0.0-beta.2) (2019-08-18) diff --git a/phalcon/Cache/Exception/Exception.zep b/phalcon/Cache/Exception/Exception.zep index 64d4c229871..60c81161c7f 100644 --- a/phalcon/Cache/Exception/Exception.zep +++ b/phalcon/Cache/Exception/Exception.zep @@ -13,7 +13,7 @@ namespace Phalcon\Cache\Exception; /** * Exceptions thrown in Phalcon\Cache will use this class */ -class Exception extends \Exception implements \Psr\SimpleCache\CacheException +class Exception extends \Phalcon\Exception implements \Psr\SimpleCache\CacheException { } diff --git a/phalcon/Cache/Exception/InvalidArgumentException.zep b/phalcon/Cache/Exception/InvalidArgumentException.zep index fc0b22f6094..8bd06f5db23 100644 --- a/phalcon/Cache/Exception/InvalidArgumentException.zep +++ b/phalcon/Cache/Exception/InvalidArgumentException.zep @@ -13,7 +13,7 @@ namespace Phalcon\Cache\Exception; /** * Exceptions thrown in Phalcon\Cache will use this class */ -class InvalidArgumentException extends \Exception implements \Psr\SimpleCache\InvalidArgumentException +class InvalidArgumentException extends \Phalcon\Exception implements \Psr\SimpleCache\InvalidArgumentException { } diff --git a/phalcon/Collection/Exception.zep b/phalcon/Collection/Exception.zep index d705f159082..a99fbd5c280 100644 --- a/phalcon/Collection/Exception.zep +++ b/phalcon/Collection/Exception.zep @@ -15,6 +15,6 @@ use Throwable; /** * Exceptions for the Collection object */ -class Exception extends \Exception implements Throwable +class Exception extends \Phalcon\Exception implements Throwable { } From ac8ab40362ac3021dd6d181d2ad73e6d910ceef5 Mon Sep 17 00:00:00 2001 From: zhangruiming Date: Fri, 23 Aug 2019 21:04:40 +0800 Subject: [PATCH 015/202] fixed issue 14324 --- phalcon/Storage/Adapter/AbstractAdapter.zep | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/phalcon/Storage/Adapter/AbstractAdapter.zep b/phalcon/Storage/Adapter/AbstractAdapter.zep index 4bcd565aefd..295fb91c324 100644 --- a/phalcon/Storage/Adapter/AbstractAdapter.zep +++ b/phalcon/Storage/Adapter/AbstractAdapter.zep @@ -192,11 +192,13 @@ abstract class AbstractAdapter implements AdapterInterface { string className; - if unlikely null === this->serializerFactory { + if unlikely (null === this->serializer && null === this->serializerFactory) { throw new Exception("A valid serializer is required"); } - let className = strtolower(this->defaultSerializer), - this->serializer = this->serializerFactory->newInstance(className); + if !(typeof this->serializer == "object" && this->serializer instanceof SerializerInterface) { + let className = strtolower(this->defaultSerializer), + this->serializer = this->serializerFactory->newInstance(className); + } } } From 2202036d9a76f5b8495aa026f67bf0cae5b73abe Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Sun, 25 Aug 2019 13:57:13 -0400 Subject: [PATCH 016/202] [4.0.x] - Corrected tests (domain) and boxfiles for latest zephir --- tests/_ci/nanobox/boxfile.7.2.yml | 7 +++---- tests/_ci/nanobox/boxfile.7.3.yml | 7 +++---- tests/unit/Debug/GetCssSourcesCest.php | 2 +- tests/unit/Debug/GetJsSourcesCest.php | 2 +- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/tests/_ci/nanobox/boxfile.7.2.yml b/tests/_ci/nanobox/boxfile.7.2.yml index ee9820493fc..5ccd45a088b 100644 --- a/tests/_ci/nanobox/boxfile.7.2.yml +++ b/tests/_ci/nanobox/boxfile.7.2.yml @@ -26,7 +26,6 @@ run.config: - simplexml - tokenizer - yaml - - zephir_parser - xml - xmlwriter - zip @@ -70,7 +69,7 @@ run.config: ) - echo -e 'extension=psr.so' >> "/data/etc/php/dev_php.ini" #=========================================================================== - # msgpack extension compilation + # Msgpack extension compilation - | ( CURRENT_FOLDER=$(pwd) @@ -89,7 +88,7 @@ run.config: ) - echo -e 'extension=msgpack.so' >> "/data/etc/php/dev_php.ini" #=========================================================================== - # php-zephir-parser extension compilation + # Zephir Parser - | ( CURRENT_FOLDER=$(pwd) @@ -120,7 +119,7 @@ run.config: - echo -e 'apc.enable_cli=1' >> "/data/etc/php/dev_php.ini" #=========================================================================== # Get the Zephir phar - - wget --no-clobber -O /data/bin/zephir https://github.com/phalcon/zephir/releases/download/0.12.0/zephir.phar + - wget --no-clobber -O /data/bin/zephir https://github.com/phalcon/zephir/releases/download/0.12.2/zephir.phar - chmod +x /data/bin/zephir data.memcached: diff --git a/tests/_ci/nanobox/boxfile.7.3.yml b/tests/_ci/nanobox/boxfile.7.3.yml index d089f099445..a98db732c5a 100644 --- a/tests/_ci/nanobox/boxfile.7.3.yml +++ b/tests/_ci/nanobox/boxfile.7.3.yml @@ -26,7 +26,6 @@ run.config: - simplexml - tokenizer - yaml - - zephir_parser - xml - xmlwriter - zip @@ -71,7 +70,7 @@ run.config: ) - echo -e 'extension=psr.so' >> "/data/etc/php/dev_php.ini" #=========================================================================== - # msgpack extension compilation + # Msgpack extension compilation - | ( CURRENT_FOLDER=$(pwd) @@ -90,7 +89,7 @@ run.config: ) - echo -e 'extension=msgpack.so' >> "/data/etc/php/dev_php.ini" #=========================================================================== - # php-zephir-parser extension compilation + # Zephir Parser - | ( CURRENT_FOLDER=$(pwd) @@ -121,7 +120,7 @@ run.config: - echo -e 'apc.enable_cli=1' >> "/data/etc/php/dev_php.ini" #=========================================================================== # Get the Zephir phar - - wget --no-clobber -O /data/bin/zephir https://github.com/phalcon/zephir/releases/download/0.12.0/zephir.phar + - wget --no-clobber -O /data/bin/zephir https://github.com/phalcon/zephir/releases/download/0.12.2/zephir.phar - chmod +x /data/bin/zephir data.memcached: diff --git a/tests/unit/Debug/GetCssSourcesCest.php b/tests/unit/Debug/GetCssSourcesCest.php index e412dc86808..0a63fb7f7dc 100644 --- a/tests/unit/Debug/GetCssSourcesCest.php +++ b/tests/unit/Debug/GetCssSourcesCest.php @@ -28,7 +28,7 @@ public function debugGetCssSources(UnitTester $I) { $I->wantToTest('Debug - getCssSources()'); $debug = new Debug(); - $uri = 'https://assets.phalconphp.com/debug/4.0.x/'; + $uri = 'https://assets.phalcon.io/debug/4.0.x/'; $expected = sprintf( "wantToTest('Debug - getJsSources()'); $debug = new Debug(); - $uri = 'https://assets.phalconphp.com/debug/4.0.x/'; + $uri = 'https://assets.phalcon.io/debug/4.0.x/'; $expected = sprintf( '' . From 92fb873c51d7f93894b461c4058db3e70f673ac6 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Sun, 25 Aug 2019 13:57:36 -0400 Subject: [PATCH 017/202] [4.0.x] - Corrected assets domain --- phalcon/Debug.zep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phalcon/Debug.zep b/phalcon/Debug.zep index 991aceb1a84..c20b67ec390 100644 --- a/phalcon/Debug.zep +++ b/phalcon/Debug.zep @@ -57,7 +57,7 @@ class Debug /** * @var string */ - protected uri = "https://assets.phalconphp.com/debug/4.0.x/"; + protected uri = "https://assets.phalcon.io/debug/4.0.x/"; /** * Clears are variables added previously From e4e2d9b243f09d4faa81b36ab9cbac29cb9e6e96 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Sun, 25 Aug 2019 13:57:46 -0400 Subject: [PATCH 018/202] [4.0.x] - Changed Headers::set to return self for a more fluent interface --- phalcon/Http/Response/Headers.zep | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/phalcon/Http/Response/Headers.zep b/phalcon/Http/Response/Headers.zep index 9a76d54e23f..046f2b9294d 100644 --- a/phalcon/Http/Response/Headers.zep +++ b/phalcon/Http/Response/Headers.zep @@ -48,13 +48,15 @@ class Headers implements HeadersInterface /** * Removes a header to be sent at the end of the request */ - public function remove(string header) + public function remove(string header) -> { var headers; let headers = this->headers; unset headers[header]; let this->headers = headers; + + return this; } /** @@ -103,17 +105,21 @@ class Headers implements HeadersInterface /** * Sets a header to be sent at the end of the request */ - public function set(string name, string value) + public function set(string name, string value) -> { let this->headers[name] = value; + + return this; } /** * Sets a raw header to be sent at the end of the request */ - public function setRaw(string header) + public function setRaw(string header) -> { let this->headers[header] = null; + + return this; } /** From d60b7689715492ac1ecf186eb844b986d66886c8 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Sun, 25 Aug 2019 14:00:06 -0400 Subject: [PATCH 019/202] [4.0.x] - Updated changelog --- CHANGELOG-4.0.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG-4.0.md b/CHANGELOG-4.0.md index 67696d64c73..c26b0b1ca6d 100644 --- a/CHANGELOG-4.0.md +++ b/CHANGELOG-4.0.md @@ -1,4 +1,7 @@ # [4.0.0](https://github.com/phalcon/cphalcon/releases/tag/v4.0.0) (2019-xx-xx) +## Changed +- Changed `Phalcon\Http\Headers\set()` to return self for a more fluent interface + ## Fixed - Fixed `Phalcon\Helper\Str::includes` to return correct result [#14301](https://github.com/phalcon/cphalcon/issues/14301) - Fixed `Phalcon\Logger` moved to correct namespace [#14263](https://github.com/phalcon/cphalcon/issues/14263) From abeb75f42b4de250b7be3ed4fcbfa7321d64893a Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Sun, 25 Aug 2019 14:18:00 -0400 Subject: [PATCH 020/202] [4.0.x] - Changed domain name --- phalcon/Acl/Adapter/AbstractAdapter.zep | 2 +- phalcon/Acl/Adapter/AdapterInterface.zep | 2 +- phalcon/Acl/Adapter/Memory.zep | 2 +- phalcon/Acl/Component.zep | 2 +- phalcon/Acl/ComponentAware.zep | 2 +- phalcon/Acl/ComponentInterface.zep | 2 +- phalcon/Acl/Enum.zep | 2 +- phalcon/Acl/Exception.zep | 2 +- phalcon/Acl/Role.zep | 2 +- phalcon/Acl/RoleAware.zep | 2 +- phalcon/Acl/RoleInterface.zep | 2 +- phalcon/Annotations/Adapter/AbstractAdapter.zep | 2 +- phalcon/Annotations/Adapter/AdapterInterface.zep | 2 +- phalcon/Annotations/Adapter/Apcu.zep | 2 +- phalcon/Annotations/Adapter/Memory.zep | 2 +- phalcon/Annotations/Adapter/Stream.zep | 2 +- phalcon/Annotations/Annotation.zep | 2 +- phalcon/Annotations/AnnotationsFactory.zep | 2 +- phalcon/Annotations/Collection.zep | 2 +- phalcon/Annotations/Exception.zep | 2 +- phalcon/Annotations/Reader.zep | 2 +- phalcon/Annotations/ReaderInterface.zep | 2 +- phalcon/Annotations/Reflection.zep | 2 +- phalcon/Application/AbstractApplication.zep | 2 +- phalcon/Application/Exception.zep | 2 +- phalcon/Assets/Asset.zep | 2 +- phalcon/Assets/Asset/Css.zep | 2 +- phalcon/Assets/Asset/Js.zep | 2 +- phalcon/Assets/AssetInterface.zep | 2 +- phalcon/Assets/Collection.zep | 2 +- phalcon/Assets/Exception.zep | 2 +- phalcon/Assets/FilterInterface.zep | 2 +- phalcon/Assets/Filters/CssMin.zep | 2 +- phalcon/Assets/Filters/JsMin.zep | 2 +- phalcon/Assets/Filters/None.zep | 2 +- phalcon/Assets/Inline.zep | 2 +- phalcon/Assets/Inline/Css.zep | 2 +- phalcon/Assets/Inline/Js.zep | 2 +- phalcon/Assets/Manager.zep | 2 +- phalcon/Cache.zep | 2 +- phalcon/Cache/Adapter/AdapterInterface.zep | 2 +- phalcon/Cache/Adapter/Apcu.zep | 2 +- phalcon/Cache/Adapter/Libmemcached.zep | 2 +- phalcon/Cache/Adapter/Memory.zep | 2 +- phalcon/Cache/Adapter/Redis.zep | 2 +- phalcon/Cache/Adapter/Stream.zep | 2 +- phalcon/Cache/AdapterFactory.zep | 2 +- phalcon/Cache/CacheFactory.zep | 2 +- phalcon/Cache/Exception/Exception.zep | 2 +- phalcon/Cache/Exception/InvalidArgumentException.zep | 2 +- phalcon/Cli/Console.zep | 2 +- phalcon/Cli/Console/Exception.zep | 2 +- phalcon/Cli/Dispatcher.zep | 2 +- phalcon/Cli/Dispatcher/Exception.zep | 2 +- phalcon/Cli/DispatcherInterface.zep | 2 +- phalcon/Cli/Router.zep | 2 +- phalcon/Cli/Router/Exception.zep | 2 +- phalcon/Cli/Router/Route.zep | 2 +- phalcon/Cli/Router/RouteInterface.zep | 2 +- phalcon/Cli/RouterInterface.zep | 2 +- phalcon/Cli/Task.zep | 2 +- phalcon/Cli/TaskInterface.zep | 2 +- phalcon/Collection.zep | 2 +- phalcon/Collection/Exception.zep | 2 +- phalcon/Collection/ReadOnly.zep | 2 +- phalcon/Config.zep | 2 +- phalcon/Config/Adapter/Grouped.zep | 2 +- phalcon/Config/Adapter/Ini.zep | 2 +- phalcon/Config/Adapter/Json.zep | 2 +- phalcon/Config/Adapter/Php.zep | 2 +- phalcon/Config/Adapter/Yaml.zep | 2 +- phalcon/Config/ConfigFactory.zep | 2 +- phalcon/Config/Exception.zep | 2 +- phalcon/Container.zep | 2 +- phalcon/Crypt.zep | 2 +- phalcon/Crypt/CryptInterface.zep | 2 +- phalcon/Crypt/Exception.zep | 2 +- phalcon/Crypt/Mismatch.zep | 2 +- phalcon/Db/AbstractDb.zep | 2 +- phalcon/Db/Adapter/PdoFactory.zep | 2 +- phalcon/Db/Dialect.zep | 2 +- phalcon/Db/Dialect/Mysql.zep | 2 +- phalcon/Db/Dialect/Postgresql.zep | 2 +- phalcon/Db/Dialect/Sqlite.zep | 2 +- phalcon/Db/DialectInterface.zep | 2 +- phalcon/Db/Enum.zep | 2 +- phalcon/Db/Exception.zep | 2 +- phalcon/Db/Index.zep | 2 +- phalcon/Db/IndexInterface.zep | 2 +- phalcon/Db/Profiler.zep | 2 +- phalcon/Db/Profiler/Item.zep | 2 +- phalcon/Db/RawValue.zep | 4 ++-- phalcon/Db/Reference.zep | 2 +- phalcon/Db/ReferenceInterface.zep | 2 +- phalcon/Db/Result/Pdo.zep | 2 +- phalcon/Db/ResultInterface.zep | 2 +- phalcon/Debug.zep | 6 +++--- phalcon/Debug/Dump.zep | 2 +- phalcon/Debug/Exception.zep | 2 +- phalcon/Di.zep | 6 +++--- phalcon/Di/DiInterface.zep | 2 +- phalcon/Di/Exception.zep | 2 +- phalcon/Di/Exception/ServiceResolutionException.zep | 4 ++-- phalcon/Di/FactoryDefault.zep | 2 +- phalcon/Di/FactoryDefault/Cli.zep | 2 +- phalcon/Di/Injectable.zep | 2 +- phalcon/Di/InjectionAwareInterface.zep | 2 +- phalcon/Di/Service.zep | 2 +- phalcon/Di/Service/Builder.zep | 2 +- phalcon/Di/ServiceInterface.zep | 2 +- phalcon/Di/ServiceProviderInterface.zep | 2 +- phalcon/Dispatcher/AbstractDispatcher.zep | 2 +- phalcon/Dispatcher/DispatcherInterface.zep | 2 +- phalcon/Dispatcher/Exception.zep | 2 +- phalcon/Domain/Payload/Payload.zep | 2 +- phalcon/Domain/Payload/PayloadFactory.zep | 2 +- phalcon/Domain/Payload/PayloadInterface.zep | 2 +- phalcon/Domain/Payload/ReadableInterface.zep | 2 +- phalcon/Domain/Payload/Status.zep | 2 +- phalcon/Domain/Payload/WriteableInterface.zep | 2 +- phalcon/Escaper.zep | 2 +- phalcon/Escaper/EscaperInterface.zep | 2 +- phalcon/Escaper/Exception.zep | 2 +- phalcon/Events/Event.zep | 2 +- phalcon/Events/EventInterface.zep | 2 +- phalcon/Events/EventsAwareInterface.zep | 2 +- phalcon/Events/Exception.zep | 2 +- phalcon/Events/Manager.zep | 2 +- phalcon/Events/ManagerInterface.zep | 2 +- phalcon/Exception.zep | 2 +- phalcon/Factory/AbstractFactory.zep | 2 +- phalcon/Factory/Exception.zep | 2 +- phalcon/Filter/Exception.zep | 2 +- phalcon/Filter/Filter.zep | 2 +- phalcon/Filter/FilterFactory.zep | 4 ++-- phalcon/Filter/FilterInterface.zep | 2 +- phalcon/Filter/Sanitize/AbsInt.zep | 2 +- phalcon/Filter/Sanitize/Alnum.zep | 2 +- phalcon/Filter/Sanitize/Alpha.zep | 2 +- phalcon/Filter/Sanitize/BoolVal.zep | 2 +- phalcon/Filter/Sanitize/Email.zep | 2 +- phalcon/Filter/Sanitize/FloatVal.zep | 2 +- phalcon/Filter/Sanitize/IntVal.zep | 2 +- phalcon/Filter/Sanitize/Lower.zep | 2 +- phalcon/Filter/Sanitize/LowerFirst.zep | 2 +- phalcon/Filter/Sanitize/Regex.zep | 2 +- phalcon/Filter/Sanitize/Remove.zep | 2 +- phalcon/Filter/Sanitize/Replace.zep | 2 +- phalcon/Filter/Sanitize/Special.zep | 2 +- phalcon/Filter/Sanitize/SpecialFull.zep | 2 +- phalcon/Filter/Sanitize/StringVal.zep | 2 +- phalcon/Filter/Sanitize/Striptags.zep | 2 +- phalcon/Filter/Sanitize/Trim.zep | 2 +- phalcon/Filter/Sanitize/Upper.zep | 2 +- phalcon/Filter/Sanitize/UpperFirst.zep | 2 +- phalcon/Filter/Sanitize/UpperWords.zep | 2 +- phalcon/Filter/Sanitize/Url.zep | 2 +- phalcon/Firewall/Adapter/AbstractAdapter.zep | 2 +- phalcon/Firewall/Adapter/Acl.zep | 2 +- phalcon/Firewall/Adapter/AdapterInterface.zep | 2 +- phalcon/Firewall/Adapter/Annotations.zep | 2 +- phalcon/Firewall/Adapter/Micro/Acl.zep | 2 +- phalcon/Firewall/Exception.zep | 2 +- phalcon/Flash/AbstractFlash.zep | 2 +- phalcon/Flash/Direct.zep | 2 +- phalcon/Flash/Exception.zep | 2 +- phalcon/Flash/FlashInterface.zep | 2 +- phalcon/Flash/Session.zep | 2 +- phalcon/Forms/Element/AbstractElement.zep | 2 +- phalcon/Forms/Element/Check.zep | 2 +- phalcon/Forms/Element/Date.zep | 2 +- phalcon/Forms/Element/ElementInterface.zep | 2 +- phalcon/Forms/Element/Email.zep | 2 +- phalcon/Forms/Element/File.zep | 2 +- phalcon/Forms/Element/Hidden.zep | 2 +- phalcon/Forms/Element/Numeric.zep | 2 +- phalcon/Forms/Element/Password.zep | 2 +- phalcon/Forms/Element/Radio.zep | 2 +- phalcon/Forms/Element/Select.zep | 2 +- phalcon/Forms/Element/Submit.zep | 2 +- phalcon/Forms/Element/Text.zep | 2 +- phalcon/Forms/Element/TextArea.zep | 2 +- phalcon/Forms/Exception.zep | 2 +- phalcon/Forms/Form.zep | 2 +- phalcon/Forms/Manager.zep | 2 +- phalcon/Helper/Exception.zep | 2 +- phalcon/Html/Attributes.zep | 2 +- phalcon/Html/Attributes/AttributesInterface.zep | 2 +- phalcon/Html/Attributes/RenderInterface.zep | 2 +- phalcon/Html/Breadcrumbs.zep | 2 +- phalcon/Html/Exception.zep | 2 +- phalcon/Html/Helper/AbstractHelper.zep | 2 +- phalcon/Html/Helper/Anchor.zep | 2 +- phalcon/Html/Helper/AnchorRaw.zep | 2 +- phalcon/Html/Helper/Body.zep | 2 +- phalcon/Html/Helper/Button.zep | 2 +- phalcon/Html/Helper/Close.zep | 2 +- phalcon/Html/Helper/Element.zep | 2 +- phalcon/Html/Helper/ElementRaw.zep | 2 +- phalcon/Html/Helper/Form.zep | 2 +- phalcon/Html/Helper/Img.zep | 2 +- phalcon/Html/Helper/Label.zep | 2 +- phalcon/Html/Helper/TextArea.zep | 2 +- phalcon/Html/Tag.zep | 6 +++--- phalcon/Html/TagFactory.zep | 2 +- phalcon/Http/Cookie.zep | 2 +- phalcon/Http/Cookie/Exception.zep | 2 +- phalcon/Http/CookieInterface.zep | 2 +- phalcon/Http/Message/AbstractCommon.zep | 2 +- phalcon/Http/Message/AbstractMessage.zep | 2 +- phalcon/Http/Message/AbstractRequest.zep | 2 +- .../Message/Exception/InvalidArgumentException.zep | 2 +- phalcon/Http/Message/Request.zep | 2 +- phalcon/Http/Message/RequestFactory.zep | 2 +- phalcon/Http/Message/Response.zep | 2 +- phalcon/Http/Message/ResponseFactory.zep | 2 +- phalcon/Http/Message/ServerRequest.zep | 2 +- phalcon/Http/Message/ServerRequestFactory.zep | 2 +- phalcon/Http/Message/Stream.zep | 2 +- phalcon/Http/Message/Stream/Input.zep | 2 +- phalcon/Http/Message/Stream/Memory.zep | 2 +- phalcon/Http/Message/Stream/Temp.zep | 2 +- phalcon/Http/Message/StreamFactory.zep | 2 +- phalcon/Http/Message/UploadedFile.zep | 2 +- phalcon/Http/Message/UploadedFileFactory.zep | 2 +- phalcon/Http/Message/Uri.zep | 2 +- phalcon/Http/Message/UriFactory.zep | 2 +- phalcon/Http/Request.zep | 2 +- phalcon/Http/Request/Exception.zep | 2 +- phalcon/Http/Request/File.zep | 2 +- phalcon/Http/Request/FileInterface.zep | 2 +- phalcon/Http/RequestInterface.zep | 2 +- phalcon/Http/Response.zep | 2 +- phalcon/Http/Response/Cookies.zep | 2 +- phalcon/Http/Response/CookiesInterface.zep | 2 +- phalcon/Http/Response/Exception.zep | 2 +- phalcon/Http/Response/Headers.zep | 2 +- phalcon/Http/Response/HeadersInterface.zep | 2 +- phalcon/Http/ResponseInterface.zep | 2 +- phalcon/Http/Server/AbstractMiddleware.zep | 2 +- phalcon/Http/Server/AbstractRequestHandler.zep | 2 +- phalcon/Image/Adapter/AbstractAdapter.zep | 2 +- phalcon/Image/Adapter/AdapterInterface.zep | 2 +- phalcon/Image/Adapter/Gd.zep | 2 +- phalcon/Image/Adapter/Imagick.zep | 2 +- phalcon/Image/Enum.zep | 2 +- phalcon/Image/Exception.zep | 2 +- phalcon/Image/ImageFactory.zep | 2 +- phalcon/Kernel.zep | 2 +- phalcon/Loader.zep | 2 +- phalcon/Loader/Exception.zep | 2 +- phalcon/Logger.zep | 2 +- phalcon/Logger/Adapter/AbstractAdapter.zep | 2 +- phalcon/Logger/Adapter/AdapterInterface.zep | 2 +- phalcon/Logger/Adapter/Noop.zep | 2 +- phalcon/Logger/Adapter/Stream.zep | 2 +- phalcon/Logger/Adapter/Syslog.zep | 2 +- phalcon/Logger/AdapterFactory.zep | 2 +- phalcon/Logger/Exception.zep | 2 +- phalcon/Logger/Formatter/AbstractFormatter.zep | 2 +- phalcon/Logger/Formatter/FormatterInterface.zep | 2 +- phalcon/Logger/Formatter/Json.zep | 2 +- phalcon/Logger/Formatter/Line.zep | 2 +- phalcon/Logger/Formatter/Syslog.zep | 2 +- phalcon/Logger/Item.zep | 2 +- phalcon/Logger/LoggerFactory.zep | 2 +- phalcon/Messages/Exception.zep | 2 +- phalcon/Messages/Message.zep | 2 +- phalcon/Messages/MessageInterface.zep | 2 +- phalcon/Messages/Messages.zep | 2 +- phalcon/Mvc/Application.zep | 2 +- phalcon/Mvc/Application/Exception.zep | 2 +- phalcon/Mvc/Collection.zep | 2 +- phalcon/Mvc/Collection/Behavior.zep | 2 +- phalcon/Mvc/Collection/Behavior/SoftDelete.zep | 2 +- phalcon/Mvc/Collection/Behavior/Timestampable.zep | 2 +- phalcon/Mvc/Collection/BehaviorInterface.zep | 2 +- phalcon/Mvc/Collection/Document.zep | 2 +- phalcon/Mvc/Collection/Exception.zep | 2 +- phalcon/Mvc/Collection/Manager.zep | 2 +- phalcon/Mvc/Collection/ManagerInterface.zep | 2 +- phalcon/Mvc/CollectionInterface.zep | 2 +- phalcon/Mvc/Controller.zep | 2 +- phalcon/Mvc/Controller/BindModelInterface.zep | 2 +- phalcon/Mvc/ControllerInterface.zep | 2 +- phalcon/Mvc/Dispatcher.zep | 2 +- phalcon/Mvc/Dispatcher/Exception.zep | 2 +- phalcon/Mvc/DispatcherInterface.zep | 2 +- phalcon/Mvc/EntityInterface.zep | 2 +- phalcon/Mvc/Micro.zep | 2 +- phalcon/Mvc/Micro/Collection.zep | 2 +- phalcon/Mvc/Micro/CollectionInterface.zep | 2 +- phalcon/Mvc/Micro/Exception.zep | 2 +- phalcon/Mvc/Micro/LazyLoader.zep | 2 +- phalcon/Mvc/Micro/MiddlewareInterface.zep | 2 +- phalcon/Mvc/Model/Behavior.zep | 2 +- phalcon/Mvc/Model/Behavior/SoftDelete.zep | 2 +- phalcon/Mvc/Model/Behavior/Timestampable.zep | 2 +- phalcon/Mvc/Model/BehaviorInterface.zep | 2 +- phalcon/Mvc/Model/Binder.zep | 2 +- phalcon/Mvc/Model/Binder/BindableInterface.zep | 2 +- phalcon/Mvc/Model/BinderInterface.zep | 2 +- phalcon/Mvc/Model/Criteria.zep | 2 +- phalcon/Mvc/Model/CriteriaInterface.zep | 2 +- phalcon/Mvc/Model/Exception.zep | 2 +- phalcon/Mvc/Model/Manager.zep | 2 +- phalcon/Mvc/Model/ManagerInterface.zep | 2 +- phalcon/Mvc/Model/MetaData.zep | 2 +- phalcon/Mvc/Model/MetaData/Apcu.zep | 2 +- phalcon/Mvc/Model/MetaData/Libmemcached.zep | 2 +- phalcon/Mvc/Model/MetaData/Memory.zep | 2 +- phalcon/Mvc/Model/MetaData/Redis.zep | 2 +- phalcon/Mvc/Model/MetaData/Strategy/Annotations.zep | 2 +- phalcon/Mvc/Model/MetaData/Strategy/Introspection.zep | 2 +- phalcon/Mvc/Model/MetaData/StrategyInterface.zep | 2 +- phalcon/Mvc/Model/MetaData/Stream.zep | 2 +- phalcon/Mvc/Model/MetaDataInterface.zep | 2 +- phalcon/Mvc/Model/Query.zep | 2 +- phalcon/Mvc/Model/Query/Builder.zep | 2 +- phalcon/Mvc/Model/Query/BuilderInterface.zep | 2 +- phalcon/Mvc/Model/Query/Lang.zep | 2 +- phalcon/Mvc/Model/Query/Status.zep | 2 +- phalcon/Mvc/Model/Query/StatusInterface.zep | 2 +- phalcon/Mvc/Model/QueryInterface.zep | 2 +- phalcon/Mvc/Model/Relation.zep | 2 +- phalcon/Mvc/Model/RelationInterface.zep | 2 +- phalcon/Mvc/Model/ResultInterface.zep | 2 +- phalcon/Mvc/Model/Resultset.zep | 2 +- phalcon/Mvc/Model/Resultset/Complex.zep | 2 +- phalcon/Mvc/Model/Resultset/Simple.zep | 2 +- phalcon/Mvc/Model/ResultsetInterface.zep | 2 +- phalcon/Mvc/Model/Row.zep | 2 +- phalcon/Mvc/Model/Transaction.zep | 2 +- phalcon/Mvc/Model/Transaction/Exception.zep | 2 +- phalcon/Mvc/Model/Transaction/Failed.zep | 2 +- phalcon/Mvc/Model/Transaction/Manager.zep | 2 +- phalcon/Mvc/Model/Transaction/ManagerInterface.zep | 2 +- phalcon/Mvc/Model/TransactionInterface.zep | 2 +- phalcon/Mvc/Model/ValidationFailed.zep | 2 +- phalcon/Mvc/ModuleDefinitionInterface.zep | 2 +- phalcon/Mvc/Router.zep | 2 +- phalcon/Mvc/Router/Annotations.zep | 2 +- phalcon/Mvc/Router/Exception.zep | 2 +- phalcon/Mvc/Router/Group.zep | 2 +- phalcon/Mvc/Router/GroupInterface.zep | 2 +- phalcon/Mvc/Router/Route.zep | 2 +- phalcon/Mvc/Router/RouteInterface.zep | 2 +- phalcon/Mvc/RouterInterface.zep | 2 +- phalcon/Mvc/View.zep | 2 +- phalcon/Mvc/View/Engine/AbstractEngine.zep | 2 +- phalcon/Mvc/View/Engine/EngineInterface.zep | 2 +- phalcon/Mvc/View/Engine/Php.zep | 2 +- phalcon/Mvc/View/Engine/Volt.zep | 2 +- phalcon/Mvc/View/Engine/Volt/Compiler.zep | 2 +- phalcon/Mvc/View/Engine/Volt/Exception.zep | 2 +- phalcon/Mvc/View/Exception.zep | 2 +- phalcon/Mvc/View/Simple.zep | 2 +- phalcon/Mvc/ViewBaseInterface.zep | 2 +- phalcon/Mvc/ViewInterface.zep | 2 +- phalcon/Paginator/Adapter/AbstractAdapter.zep | 2 +- phalcon/Paginator/Adapter/AdapterInterface.zep | 2 +- phalcon/Paginator/Adapter/Model.zep | 2 +- phalcon/Paginator/Adapter/NativeArray.zep | 2 +- phalcon/Paginator/Adapter/QueryBuilder.zep | 2 +- phalcon/Paginator/Exception.zep | 2 +- phalcon/Paginator/PaginatorFactory.zep | 2 +- phalcon/Paginator/Repository.zep | 2 +- phalcon/Paginator/RepositoryInterface.zep | 2 +- phalcon/Plugin.zep | 2 +- phalcon/Registry.zep | 2 +- phalcon/Security.zep | 2 +- phalcon/Security/Exception.zep | 2 +- phalcon/Security/Random.zep | 2 +- phalcon/Storage/Adapter/AbstractAdapter.zep | 2 +- phalcon/Storage/Adapter/AdapterInterface.zep | 2 +- phalcon/Storage/Adapter/Apcu.zep | 2 +- phalcon/Storage/Adapter/Libmemcached.zep | 2 +- phalcon/Storage/Adapter/Memory.zep | 2 +- phalcon/Storage/Adapter/Redis.zep | 2 +- phalcon/Storage/Adapter/Stream.zep | 2 +- phalcon/Storage/AdapterFactory.zep | 2 +- phalcon/Storage/Exception.zep | 2 +- phalcon/Storage/Serializer/AbstractSerializer.zep | 2 +- phalcon/Storage/Serializer/Base64.zep | 2 +- phalcon/Storage/Serializer/Igbinary.zep | 2 +- phalcon/Storage/Serializer/Json.zep | 2 +- phalcon/Storage/Serializer/Msgpack.zep | 2 +- phalcon/Storage/Serializer/None.zep | 2 +- phalcon/Storage/Serializer/Php.zep | 2 +- phalcon/Storage/Serializer/SerializerInterface.zep | 2 +- phalcon/Storage/SerializerFactory.zep | 2 +- phalcon/Tag.zep | 10 +++++----- phalcon/Tag/Exception.zep | 2 +- phalcon/Tag/Select.zep | 2 +- phalcon/Text.zep | 2 +- phalcon/Translate/Adapter/AbstractAdapter.zep | 2 +- phalcon/Translate/Adapter/AdapterInterface.zep | 2 +- phalcon/Translate/Adapter/Csv.zep | 2 +- phalcon/Translate/Adapter/Gettext.zep | 2 +- phalcon/Translate/Adapter/NativeArray.zep | 2 +- phalcon/Translate/Exception.zep | 2 +- phalcon/Translate/Interpolator/AssociativeArray.zep | 2 +- phalcon/Translate/Interpolator/IndexedArray.zep | 2 +- .../Translate/Interpolator/InterpolatorInterface.zep | 2 +- phalcon/Translate/InterpolatorFactory.zep | 2 +- phalcon/Translate/TranslateFactory.zep | 2 +- phalcon/Url.zep | 4 ++-- phalcon/Url/Exception.zep | 2 +- phalcon/Url/UrlInterface.zep | 2 +- phalcon/Validation.zep | 2 +- phalcon/Validation/AbstractCombinedFieldsValidator.zep | 2 +- phalcon/Validation/AbstractValidator.zep | 2 +- phalcon/Validation/AbstractValidatorComposite.zep | 2 +- phalcon/Validation/Exception.zep | 2 +- phalcon/Validation/ValidationInterface.zep | 2 +- phalcon/Validation/Validator/Alnum.zep | 2 +- phalcon/Validation/Validator/Alpha.zep | 2 +- phalcon/Validation/Validator/Between.zep | 2 +- phalcon/Validation/Validator/Callback.zep | 2 +- phalcon/Validation/Validator/Confirmation.zep | 2 +- phalcon/Validation/Validator/CreditCard.zep | 2 +- phalcon/Validation/Validator/Date.zep | 2 +- phalcon/Validation/Validator/Digit.zep | 2 +- phalcon/Validation/Validator/Email.zep | 2 +- phalcon/Validation/Validator/Exception.zep | 2 +- phalcon/Validation/Validator/ExclusionIn.zep | 2 +- phalcon/Validation/Validator/File.zep | 2 +- phalcon/Validation/Validator/File/AbstractFile.zep | 2 +- phalcon/Validation/Validator/File/MimeType.zep | 2 +- phalcon/Validation/Validator/File/Resolution/Equal.zep | 2 +- phalcon/Validation/Validator/File/Resolution/Max.zep | 2 +- phalcon/Validation/Validator/File/Resolution/Min.zep | 2 +- phalcon/Validation/Validator/File/Size/Equal.zep | 2 +- phalcon/Validation/Validator/File/Size/Max.zep | 2 +- phalcon/Validation/Validator/File/Size/Min.zep | 2 +- phalcon/Validation/Validator/Identical.zep | 2 +- phalcon/Validation/Validator/InclusionIn.zep | 2 +- phalcon/Validation/Validator/Ip.zep | 2 +- phalcon/Validation/Validator/Numericality.zep | 2 +- phalcon/Validation/Validator/PresenceOf.zep | 2 +- phalcon/Validation/Validator/Regex.zep | 2 +- phalcon/Validation/Validator/StringLength.zep | 2 +- phalcon/Validation/Validator/StringLength/Max.zep | 2 +- phalcon/Validation/Validator/StringLength/Min.zep | 2 +- phalcon/Validation/Validator/Uniqueness.zep | 2 +- phalcon/Validation/Validator/Url.zep | 2 +- phalcon/Validation/ValidatorCompositeInterface.zep | 2 +- phalcon/Validation/ValidatorFactory.zep | 2 +- phalcon/Validation/ValidatorInterface.zep | 2 +- phalcon/Version.zep | 2 +- 450 files changed, 464 insertions(+), 464 deletions(-) diff --git a/phalcon/Acl/Adapter/AbstractAdapter.zep b/phalcon/Acl/Adapter/AbstractAdapter.zep index 4909b5910d4..104cec95b95 100644 --- a/phalcon/Acl/Adapter/AbstractAdapter.zep +++ b/phalcon/Acl/Adapter/AbstractAdapter.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Acl/Adapter/AdapterInterface.zep b/phalcon/Acl/Adapter/AdapterInterface.zep index 94266d6fc2b..7a4882c71d0 100644 --- a/phalcon/Acl/Adapter/AdapterInterface.zep +++ b/phalcon/Acl/Adapter/AdapterInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Acl/Adapter/Memory.zep b/phalcon/Acl/Adapter/Memory.zep index 9bd0f128b14..a76db5ea8fd 100644 --- a/phalcon/Acl/Adapter/Memory.zep +++ b/phalcon/Acl/Adapter/Memory.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Acl/Component.zep b/phalcon/Acl/Component.zep index 5c01b71d43e..f5cb698b5a8 100644 --- a/phalcon/Acl/Component.zep +++ b/phalcon/Acl/Component.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Acl/ComponentAware.zep b/phalcon/Acl/ComponentAware.zep index 3351c30ae7b..178f4e09f03 100644 --- a/phalcon/Acl/ComponentAware.zep +++ b/phalcon/Acl/ComponentAware.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Acl/ComponentInterface.zep b/phalcon/Acl/ComponentInterface.zep index 9b626c80451..cc2669e9eb2 100644 --- a/phalcon/Acl/ComponentInterface.zep +++ b/phalcon/Acl/ComponentInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Acl/Enum.zep b/phalcon/Acl/Enum.zep index c41cb29c41c..248be9f9170 100644 --- a/phalcon/Acl/Enum.zep +++ b/phalcon/Acl/Enum.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Acl/Exception.zep b/phalcon/Acl/Exception.zep index d25ae49dc44..ddfa7070e2b 100644 --- a/phalcon/Acl/Exception.zep +++ b/phalcon/Acl/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Acl/Role.zep b/phalcon/Acl/Role.zep index 6ca4f68ac6b..ff517968278 100644 --- a/phalcon/Acl/Role.zep +++ b/phalcon/Acl/Role.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Acl/RoleAware.zep b/phalcon/Acl/RoleAware.zep index 2211957c3dc..b9c509c3bd0 100644 --- a/phalcon/Acl/RoleAware.zep +++ b/phalcon/Acl/RoleAware.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Acl/RoleInterface.zep b/phalcon/Acl/RoleInterface.zep index db90af3909f..edb85e85e0b 100644 --- a/phalcon/Acl/RoleInterface.zep +++ b/phalcon/Acl/RoleInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Annotations/Adapter/AbstractAdapter.zep b/phalcon/Annotations/Adapter/AbstractAdapter.zep index 36b7ee63144..b8dd7e4896e 100644 --- a/phalcon/Annotations/Adapter/AbstractAdapter.zep +++ b/phalcon/Annotations/Adapter/AbstractAdapter.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Annotations/Adapter/AdapterInterface.zep b/phalcon/Annotations/Adapter/AdapterInterface.zep index 5acc1ed8a90..abeba717a91 100644 --- a/phalcon/Annotations/Adapter/AdapterInterface.zep +++ b/phalcon/Annotations/Adapter/AdapterInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Annotations/Adapter/Apcu.zep b/phalcon/Annotations/Adapter/Apcu.zep index 5103c85a19c..70c6fed024a 100644 --- a/phalcon/Annotations/Adapter/Apcu.zep +++ b/phalcon/Annotations/Adapter/Apcu.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Annotations/Adapter/Memory.zep b/phalcon/Annotations/Adapter/Memory.zep index d7e7b80021a..cb455e0b03a 100644 --- a/phalcon/Annotations/Adapter/Memory.zep +++ b/phalcon/Annotations/Adapter/Memory.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Annotations/Adapter/Stream.zep b/phalcon/Annotations/Adapter/Stream.zep index e0ff91470d1..a5bea072e10 100644 --- a/phalcon/Annotations/Adapter/Stream.zep +++ b/phalcon/Annotations/Adapter/Stream.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Annotations/Annotation.zep b/phalcon/Annotations/Annotation.zep index 2f1afe433f7..b02241ad2ab 100644 --- a/phalcon/Annotations/Annotation.zep +++ b/phalcon/Annotations/Annotation.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Annotations/AnnotationsFactory.zep b/phalcon/Annotations/AnnotationsFactory.zep index 690afdf1b04..8fb0091c182 100644 --- a/phalcon/Annotations/AnnotationsFactory.zep +++ b/phalcon/Annotations/AnnotationsFactory.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Annotations/Collection.zep b/phalcon/Annotations/Collection.zep index 967b44b54f4..d0b93d6ec2f 100644 --- a/phalcon/Annotations/Collection.zep +++ b/phalcon/Annotations/Collection.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Annotations/Exception.zep b/phalcon/Annotations/Exception.zep index 768f81647a0..d789c83d913 100644 --- a/phalcon/Annotations/Exception.zep +++ b/phalcon/Annotations/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Annotations/Reader.zep b/phalcon/Annotations/Reader.zep index 6f493dba534..8526552956c 100644 --- a/phalcon/Annotations/Reader.zep +++ b/phalcon/Annotations/Reader.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Annotations/ReaderInterface.zep b/phalcon/Annotations/ReaderInterface.zep index 5df316be973..3865600e8e1 100644 --- a/phalcon/Annotations/ReaderInterface.zep +++ b/phalcon/Annotations/ReaderInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Annotations/Reflection.zep b/phalcon/Annotations/Reflection.zep index 2d8afdac2c9..f98942fd805 100644 --- a/phalcon/Annotations/Reflection.zep +++ b/phalcon/Annotations/Reflection.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Application/AbstractApplication.zep b/phalcon/Application/AbstractApplication.zep index b5151c5f679..f064920d930 100644 --- a/phalcon/Application/AbstractApplication.zep +++ b/phalcon/Application/AbstractApplication.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Application/Exception.zep b/phalcon/Application/Exception.zep index 2112872832c..1916e35752d 100644 --- a/phalcon/Application/Exception.zep +++ b/phalcon/Application/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Assets/Asset.zep b/phalcon/Assets/Asset.zep index cafcda65f2e..8fb0e864d21 100644 --- a/phalcon/Assets/Asset.zep +++ b/phalcon/Assets/Asset.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Assets/Asset/Css.zep b/phalcon/Assets/Asset/Css.zep index 16a54363dbe..44b3b02859c 100644 --- a/phalcon/Assets/Asset/Css.zep +++ b/phalcon/Assets/Asset/Css.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Assets/Asset/Js.zep b/phalcon/Assets/Asset/Js.zep index 030180d4a3d..fb26600a202 100644 --- a/phalcon/Assets/Asset/Js.zep +++ b/phalcon/Assets/Asset/Js.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Assets/AssetInterface.zep b/phalcon/Assets/AssetInterface.zep index 80c1205796c..0db81cc79a8 100644 --- a/phalcon/Assets/AssetInterface.zep +++ b/phalcon/Assets/AssetInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Assets/Collection.zep b/phalcon/Assets/Collection.zep index 0174623133c..67bd6756987 100644 --- a/phalcon/Assets/Collection.zep +++ b/phalcon/Assets/Collection.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Assets/Exception.zep b/phalcon/Assets/Exception.zep index 98bbc194a36..efca6b67993 100644 --- a/phalcon/Assets/Exception.zep +++ b/phalcon/Assets/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Assets/FilterInterface.zep b/phalcon/Assets/FilterInterface.zep index cce7da6d69d..f887ee328b5 100644 --- a/phalcon/Assets/FilterInterface.zep +++ b/phalcon/Assets/FilterInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Assets/Filters/CssMin.zep b/phalcon/Assets/Filters/CssMin.zep index 49d5fedb3ed..9014562c03e 100644 --- a/phalcon/Assets/Filters/CssMin.zep +++ b/phalcon/Assets/Filters/CssMin.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Assets/Filters/JsMin.zep b/phalcon/Assets/Filters/JsMin.zep index ff6baae1ff8..002c32f023c 100644 --- a/phalcon/Assets/Filters/JsMin.zep +++ b/phalcon/Assets/Filters/JsMin.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Assets/Filters/None.zep b/phalcon/Assets/Filters/None.zep index c186c98d8c5..1a87fd7e1bf 100644 --- a/phalcon/Assets/Filters/None.zep +++ b/phalcon/Assets/Filters/None.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Assets/Inline.zep b/phalcon/Assets/Inline.zep index 0e98a038c51..71b33fca501 100644 --- a/phalcon/Assets/Inline.zep +++ b/phalcon/Assets/Inline.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Assets/Inline/Css.zep b/phalcon/Assets/Inline/Css.zep index 738968e9f24..689c414d9c8 100644 --- a/phalcon/Assets/Inline/Css.zep +++ b/phalcon/Assets/Inline/Css.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Assets/Inline/Js.zep b/phalcon/Assets/Inline/Js.zep index c98cd70f4bb..2a19d987ff8 100644 --- a/phalcon/Assets/Inline/Js.zep +++ b/phalcon/Assets/Inline/Js.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Assets/Manager.zep b/phalcon/Assets/Manager.zep index 7eb0c4a3979..e5b1ac10a11 100644 --- a/phalcon/Assets/Manager.zep +++ b/phalcon/Assets/Manager.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Cache.zep b/phalcon/Cache.zep index 9a69b8c5fa1..342dfca9d21 100644 --- a/phalcon/Cache.zep +++ b/phalcon/Cache.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Cache/Adapter/AdapterInterface.zep b/phalcon/Cache/Adapter/AdapterInterface.zep index b7ac70dbd19..e118af93a85 100644 --- a/phalcon/Cache/Adapter/AdapterInterface.zep +++ b/phalcon/Cache/Adapter/AdapterInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Cache/Adapter/Apcu.zep b/phalcon/Cache/Adapter/Apcu.zep index be292feb2f9..1ed18a445b3 100644 --- a/phalcon/Cache/Adapter/Apcu.zep +++ b/phalcon/Cache/Adapter/Apcu.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Cache/Adapter/Libmemcached.zep b/phalcon/Cache/Adapter/Libmemcached.zep index 06438f3c82e..71fc6085d26 100644 --- a/phalcon/Cache/Adapter/Libmemcached.zep +++ b/phalcon/Cache/Adapter/Libmemcached.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Cache/Adapter/Memory.zep b/phalcon/Cache/Adapter/Memory.zep index f0ced68b341..ea7407ec93f 100644 --- a/phalcon/Cache/Adapter/Memory.zep +++ b/phalcon/Cache/Adapter/Memory.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Cache/Adapter/Redis.zep b/phalcon/Cache/Adapter/Redis.zep index dc5d1274b80..738f7a681a1 100644 --- a/phalcon/Cache/Adapter/Redis.zep +++ b/phalcon/Cache/Adapter/Redis.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Cache/Adapter/Stream.zep b/phalcon/Cache/Adapter/Stream.zep index c5bf06b467c..60bf7c19bdf 100644 --- a/phalcon/Cache/Adapter/Stream.zep +++ b/phalcon/Cache/Adapter/Stream.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Cache/AdapterFactory.zep b/phalcon/Cache/AdapterFactory.zep index e0033075cfc..afd6a32b018 100644 --- a/phalcon/Cache/AdapterFactory.zep +++ b/phalcon/Cache/AdapterFactory.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Cache/CacheFactory.zep b/phalcon/Cache/CacheFactory.zep index b956174d5b3..d1a604e2875 100644 --- a/phalcon/Cache/CacheFactory.zep +++ b/phalcon/Cache/CacheFactory.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Cache/Exception/Exception.zep b/phalcon/Cache/Exception/Exception.zep index 60c81161c7f..2f848281796 100644 --- a/phalcon/Cache/Exception/Exception.zep +++ b/phalcon/Cache/Exception/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Cache/Exception/InvalidArgumentException.zep b/phalcon/Cache/Exception/InvalidArgumentException.zep index 8bd06f5db23..c4050f43bde 100644 --- a/phalcon/Cache/Exception/InvalidArgumentException.zep +++ b/phalcon/Cache/Exception/InvalidArgumentException.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Cli/Console.zep b/phalcon/Cli/Console.zep index d6696cb12e4..3b27e0d7b8b 100644 --- a/phalcon/Cli/Console.zep +++ b/phalcon/Cli/Console.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Cli/Console/Exception.zep b/phalcon/Cli/Console/Exception.zep index c025167e4c5..6d2504d9705 100644 --- a/phalcon/Cli/Console/Exception.zep +++ b/phalcon/Cli/Console/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Cli/Dispatcher.zep b/phalcon/Cli/Dispatcher.zep index 018e974290f..8b1d8825cf4 100644 --- a/phalcon/Cli/Dispatcher.zep +++ b/phalcon/Cli/Dispatcher.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Cli/Dispatcher/Exception.zep b/phalcon/Cli/Dispatcher/Exception.zep index 3ac443c9076..e5192f50934 100644 --- a/phalcon/Cli/Dispatcher/Exception.zep +++ b/phalcon/Cli/Dispatcher/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Cli/DispatcherInterface.zep b/phalcon/Cli/DispatcherInterface.zep index d3e062431f3..75808f20d28 100644 --- a/phalcon/Cli/DispatcherInterface.zep +++ b/phalcon/Cli/DispatcherInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Cli/Router.zep b/phalcon/Cli/Router.zep index 5bb582fdb92..d9a61cc31d4 100644 --- a/phalcon/Cli/Router.zep +++ b/phalcon/Cli/Router.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Cli/Router/Exception.zep b/phalcon/Cli/Router/Exception.zep index e6bdc8324ea..62c88d37fe3 100644 --- a/phalcon/Cli/Router/Exception.zep +++ b/phalcon/Cli/Router/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Cli/Router/Route.zep b/phalcon/Cli/Router/Route.zep index 361caf00561..ade21fa03c3 100644 --- a/phalcon/Cli/Router/Route.zep +++ b/phalcon/Cli/Router/Route.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Cli/Router/RouteInterface.zep b/phalcon/Cli/Router/RouteInterface.zep index 896144e1368..8348d9f5aa6 100644 --- a/phalcon/Cli/Router/RouteInterface.zep +++ b/phalcon/Cli/Router/RouteInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Cli/RouterInterface.zep b/phalcon/Cli/RouterInterface.zep index 1b37dd5e77d..1f1a4e7316e 100644 --- a/phalcon/Cli/RouterInterface.zep +++ b/phalcon/Cli/RouterInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Cli/Task.zep b/phalcon/Cli/Task.zep index 6a89c8147f5..d367d059226 100644 --- a/phalcon/Cli/Task.zep +++ b/phalcon/Cli/Task.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Cli/TaskInterface.zep b/phalcon/Cli/TaskInterface.zep index c4f93f8823d..addbfa66322 100644 --- a/phalcon/Cli/TaskInterface.zep +++ b/phalcon/Cli/TaskInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Collection.zep b/phalcon/Collection.zep index 64023aef24f..1104c1d0910 100644 --- a/phalcon/Collection.zep +++ b/phalcon/Collection.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Collection/Exception.zep b/phalcon/Collection/Exception.zep index a99fbd5c280..e27dd45a4f5 100644 --- a/phalcon/Collection/Exception.zep +++ b/phalcon/Collection/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Collection/ReadOnly.zep b/phalcon/Collection/ReadOnly.zep index 351fca2f3ab..505d0d8f448 100644 --- a/phalcon/Collection/ReadOnly.zep +++ b/phalcon/Collection/ReadOnly.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * -* (c) Phalcon Team +* (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Config.zep b/phalcon/Config.zep index 3a448df62c2..b29739c77ee 100644 --- a/phalcon/Config.zep +++ b/phalcon/Config.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Config/Adapter/Grouped.zep b/phalcon/Config/Adapter/Grouped.zep index a4e2c527cc8..1acfc48261e 100644 --- a/phalcon/Config/Adapter/Grouped.zep +++ b/phalcon/Config/Adapter/Grouped.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Config/Adapter/Ini.zep b/phalcon/Config/Adapter/Ini.zep index 87c856f0e8c..c518e43e048 100644 --- a/phalcon/Config/Adapter/Ini.zep +++ b/phalcon/Config/Adapter/Ini.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Config/Adapter/Json.zep b/phalcon/Config/Adapter/Json.zep index 113da95bc04..7bf36b57bb0 100644 --- a/phalcon/Config/Adapter/Json.zep +++ b/phalcon/Config/Adapter/Json.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Config/Adapter/Php.zep b/phalcon/Config/Adapter/Php.zep index b7e50e66eed..3f78d593aae 100644 --- a/phalcon/Config/Adapter/Php.zep +++ b/phalcon/Config/Adapter/Php.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Config/Adapter/Yaml.zep b/phalcon/Config/Adapter/Yaml.zep index f627171e359..a5fbf857413 100644 --- a/phalcon/Config/Adapter/Yaml.zep +++ b/phalcon/Config/Adapter/Yaml.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Config/ConfigFactory.zep b/phalcon/Config/ConfigFactory.zep index c308ce3abce..51e0f3006ff 100644 --- a/phalcon/Config/ConfigFactory.zep +++ b/phalcon/Config/ConfigFactory.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Config/Exception.zep b/phalcon/Config/Exception.zep index f2934809d66..3f532e5deaa 100644 --- a/phalcon/Config/Exception.zep +++ b/phalcon/Config/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Container.zep b/phalcon/Container.zep index 3427c6d18a0..a4cbdba075a 100644 --- a/phalcon/Container.zep +++ b/phalcon/Container.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Crypt.zep b/phalcon/Crypt.zep index 4fd8995d821..f5f4d439205 100644 --- a/phalcon/Crypt.zep +++ b/phalcon/Crypt.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Crypt/CryptInterface.zep b/phalcon/Crypt/CryptInterface.zep index b04f82c9704..ce9cbe53186 100644 --- a/phalcon/Crypt/CryptInterface.zep +++ b/phalcon/Crypt/CryptInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Crypt/Exception.zep b/phalcon/Crypt/Exception.zep index 13e8733d53f..0571c57ed57 100644 --- a/phalcon/Crypt/Exception.zep +++ b/phalcon/Crypt/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Crypt/Mismatch.zep b/phalcon/Crypt/Mismatch.zep index 9cca441e32b..1193e809468 100644 --- a/phalcon/Crypt/Mismatch.zep +++ b/phalcon/Crypt/Mismatch.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Db/AbstractDb.zep b/phalcon/Db/AbstractDb.zep index a1eb8ac3bb6..8bfa327e1f9 100644 --- a/phalcon/Db/AbstractDb.zep +++ b/phalcon/Db/AbstractDb.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Db/Adapter/PdoFactory.zep b/phalcon/Db/Adapter/PdoFactory.zep index 2e835b08859..7100ef899b8 100644 --- a/phalcon/Db/Adapter/PdoFactory.zep +++ b/phalcon/Db/Adapter/PdoFactory.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Db/Dialect.zep b/phalcon/Db/Dialect.zep index 90a8470f554..f32177e9ae6 100644 --- a/phalcon/Db/Dialect.zep +++ b/phalcon/Db/Dialect.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Db/Dialect/Mysql.zep b/phalcon/Db/Dialect/Mysql.zep index ceb28a705f5..0985f28d419 100644 --- a/phalcon/Db/Dialect/Mysql.zep +++ b/phalcon/Db/Dialect/Mysql.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Db/Dialect/Postgresql.zep b/phalcon/Db/Dialect/Postgresql.zep index d636ff9cafd..c0bfa98e9e2 100644 --- a/phalcon/Db/Dialect/Postgresql.zep +++ b/phalcon/Db/Dialect/Postgresql.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Db/Dialect/Sqlite.zep b/phalcon/Db/Dialect/Sqlite.zep index 8793b47cc60..e773d055143 100644 --- a/phalcon/Db/Dialect/Sqlite.zep +++ b/phalcon/Db/Dialect/Sqlite.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Db/DialectInterface.zep b/phalcon/Db/DialectInterface.zep index 7a3f7c64932..115957c1038 100644 --- a/phalcon/Db/DialectInterface.zep +++ b/phalcon/Db/DialectInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Db/Enum.zep b/phalcon/Db/Enum.zep index 430c3329e29..836bcf9fb57 100644 --- a/phalcon/Db/Enum.zep +++ b/phalcon/Db/Enum.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Db/Exception.zep b/phalcon/Db/Exception.zep index 00927941f8b..2361f2bed32 100644 --- a/phalcon/Db/Exception.zep +++ b/phalcon/Db/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Db/Index.zep b/phalcon/Db/Index.zep index e70c3c80502..3d575c8a5ec 100644 --- a/phalcon/Db/Index.zep +++ b/phalcon/Db/Index.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Db/IndexInterface.zep b/phalcon/Db/IndexInterface.zep index d322315356f..ec6e83611dd 100644 --- a/phalcon/Db/IndexInterface.zep +++ b/phalcon/Db/IndexInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Db/Profiler.zep b/phalcon/Db/Profiler.zep index c49119de276..d62431e6843 100644 --- a/phalcon/Db/Profiler.zep +++ b/phalcon/Db/Profiler.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Db/Profiler/Item.zep b/phalcon/Db/Profiler/Item.zep index 3a32edb715e..ca0d60dcd9f 100644 --- a/phalcon/Db/Profiler/Item.zep +++ b/phalcon/Db/Profiler/Item.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Db/RawValue.zep b/phalcon/Db/RawValue.zep index 1d85d745d7e..6bc2609a5ce 100644 --- a/phalcon/Db/RawValue.zep +++ b/phalcon/Db/RawValue.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -18,7 +18,7 @@ namespace Phalcon\Db; *```php * $subscriber = new Subscribers(); * - * $subscriber->email = "andres@phalconphp.com"; + * $subscriber->email = "andres@phalcon.io"; * $subscriber->createdAt = new \Phalcon\Db\RawValue("now()"); * * $subscriber->save(); diff --git a/phalcon/Db/Reference.zep b/phalcon/Db/Reference.zep index 5ff90fb93b1..aee44110f7e 100644 --- a/phalcon/Db/Reference.zep +++ b/phalcon/Db/Reference.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Db/ReferenceInterface.zep b/phalcon/Db/ReferenceInterface.zep index dd916b21abb..2aa823cfc88 100644 --- a/phalcon/Db/ReferenceInterface.zep +++ b/phalcon/Db/ReferenceInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Db/Result/Pdo.zep b/phalcon/Db/Result/Pdo.zep index d11f94bd560..55fab7b50e7 100644 --- a/phalcon/Db/Result/Pdo.zep +++ b/phalcon/Db/Result/Pdo.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Db/ResultInterface.zep b/phalcon/Db/ResultInterface.zep index 6360b7c7846..9c81602dcca 100644 --- a/phalcon/Db/ResultInterface.zep +++ b/phalcon/Db/ResultInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Debug.zep b/phalcon/Debug.zep index c20b67ec390..7654009ef88 100644 --- a/phalcon/Debug.zep +++ b/phalcon/Debug.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -125,7 +125,7 @@ class Debug var link; let link = [ - "action": "https://docs.phalconphp.com/" . Version::getPart(Version::VERSION_MAJOR) . "." . Version::getPart(Version::VERSION_MEDIUM) . "/en/", + "action": "https://docs.phalcon.io/" . Version::getPart(Version::VERSION_MAJOR) . "." . Version::getPart(Version::VERSION_MEDIUM) . "/en/", "text" : Version::get(), "local" : false, "target": "_new" @@ -618,7 +618,7 @@ class Debug /** * Generate a link to the official docs */ - let classNameWithLink = "" . className . ""; + let classNameWithLink = "" . className . ""; } else { let classReflection = new ReflectionClass(className); diff --git a/phalcon/Debug/Dump.zep b/phalcon/Debug/Dump.zep index c888c06b60c..da2b3be8f90 100644 --- a/phalcon/Debug/Dump.zep +++ b/phalcon/Debug/Dump.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Debug/Exception.zep b/phalcon/Debug/Exception.zep index 760bfef3fea..15355690d08 100644 --- a/phalcon/Debug/Exception.zep +++ b/phalcon/Debug/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Di.zep b/phalcon/Di.zep index f3681f69142..23b6ea14e84 100644 --- a/phalcon/Di.zep +++ b/phalcon/Di.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -379,7 +379,7 @@ class Di implements DiInterface * ]; * ``` * - * @link https://docs.phalconphp.com/en/latest/reference/di.html + * @link https://docs.phalcon.io/en/latest/reference/di.html */ public function loadFromPhp(string! filePath) -> void { @@ -421,7 +421,7 @@ class Di implements DiInterface * className: \Acme\User * ``` * - * @link https://docs.phalconphp.com/en/latest/reference/di.html + * @link https://docs.phalcon.io/en/latest/reference/di.html */ public function loadFromYaml(string! filePath, array! callbacks = null) -> void { diff --git a/phalcon/Di/DiInterface.zep b/phalcon/Di/DiInterface.zep index d5e8e03c756..ae286a47dbc 100644 --- a/phalcon/Di/DiInterface.zep +++ b/phalcon/Di/DiInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Di/Exception.zep b/phalcon/Di/Exception.zep index 9138f98caba..85b246178b0 100644 --- a/phalcon/Di/Exception.zep +++ b/phalcon/Di/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Di/Exception/ServiceResolutionException.zep b/phalcon/Di/Exception/ServiceResolutionException.zep index d851797d30a..0ff35819b90 100644 --- a/phalcon/Di/Exception/ServiceResolutionException.zep +++ b/phalcon/Di/Exception/ServiceResolutionException.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -11,7 +11,7 @@ namespace Phalcon\Di\Exception; use Phalcon\Di\Exception\ServiceResolutionException; - + /** * Phalcon\Di\Exception\ServiceResolutionException */ diff --git a/phalcon/Di/FactoryDefault.zep b/phalcon/Di/FactoryDefault.zep index feff8d8b88b..184865deb0b 100644 --- a/phalcon/Di/FactoryDefault.zep +++ b/phalcon/Di/FactoryDefault.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Di/FactoryDefault/Cli.zep b/phalcon/Di/FactoryDefault/Cli.zep index f1df7f1882f..f91ff82db47 100644 --- a/phalcon/Di/FactoryDefault/Cli.zep +++ b/phalcon/Di/FactoryDefault/Cli.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Di/Injectable.zep b/phalcon/Di/Injectable.zep index f76015b9030..cc45ae35bc9 100644 --- a/phalcon/Di/Injectable.zep +++ b/phalcon/Di/Injectable.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Di/InjectionAwareInterface.zep b/phalcon/Di/InjectionAwareInterface.zep index 0a3d69e9ba7..b7d0be0da11 100644 --- a/phalcon/Di/InjectionAwareInterface.zep +++ b/phalcon/Di/InjectionAwareInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Di/Service.zep b/phalcon/Di/Service.zep index acefb5a4667..07e1bea5036 100644 --- a/phalcon/Di/Service.zep +++ b/phalcon/Di/Service.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Di/Service/Builder.zep b/phalcon/Di/Service/Builder.zep index c27fc58c895..aed059aabd0 100644 --- a/phalcon/Di/Service/Builder.zep +++ b/phalcon/Di/Service/Builder.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Di/ServiceInterface.zep b/phalcon/Di/ServiceInterface.zep index e1aaacb8410..b5738f67167 100644 --- a/phalcon/Di/ServiceInterface.zep +++ b/phalcon/Di/ServiceInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Di/ServiceProviderInterface.zep b/phalcon/Di/ServiceProviderInterface.zep index 11327967b9e..ec5e71c75c6 100644 --- a/phalcon/Di/ServiceProviderInterface.zep +++ b/phalcon/Di/ServiceProviderInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Dispatcher/AbstractDispatcher.zep b/phalcon/Dispatcher/AbstractDispatcher.zep index 5aad0cc9a5a..806ba8a0858 100644 --- a/phalcon/Dispatcher/AbstractDispatcher.zep +++ b/phalcon/Dispatcher/AbstractDispatcher.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Dispatcher/DispatcherInterface.zep b/phalcon/Dispatcher/DispatcherInterface.zep index d82dd1758d9..1825865dd5a 100644 --- a/phalcon/Dispatcher/DispatcherInterface.zep +++ b/phalcon/Dispatcher/DispatcherInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Dispatcher/Exception.zep b/phalcon/Dispatcher/Exception.zep index d897cbf30ab..6a973841340 100644 --- a/phalcon/Dispatcher/Exception.zep +++ b/phalcon/Dispatcher/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Domain/Payload/Payload.zep b/phalcon/Domain/Payload/Payload.zep index b3d8d7129fb..857b6366c9c 100644 --- a/phalcon/Domain/Payload/Payload.zep +++ b/phalcon/Domain/Payload/Payload.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Domain/Payload/PayloadFactory.zep b/phalcon/Domain/Payload/PayloadFactory.zep index 0a89bab2eae..a7058f859c3 100644 --- a/phalcon/Domain/Payload/PayloadFactory.zep +++ b/phalcon/Domain/Payload/PayloadFactory.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Domain/Payload/PayloadInterface.zep b/phalcon/Domain/Payload/PayloadInterface.zep index b131dcc2c3e..464e6d865d8 100644 --- a/phalcon/Domain/Payload/PayloadInterface.zep +++ b/phalcon/Domain/Payload/PayloadInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Domain/Payload/ReadableInterface.zep b/phalcon/Domain/Payload/ReadableInterface.zep index a615f49a482..a2576242877 100644 --- a/phalcon/Domain/Payload/ReadableInterface.zep +++ b/phalcon/Domain/Payload/ReadableInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Domain/Payload/Status.zep b/phalcon/Domain/Payload/Status.zep index 7d2a3433ea0..7a6b97796a2 100644 --- a/phalcon/Domain/Payload/Status.zep +++ b/phalcon/Domain/Payload/Status.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Domain/Payload/WriteableInterface.zep b/phalcon/Domain/Payload/WriteableInterface.zep index 50635ccf181..f1688260a62 100644 --- a/phalcon/Domain/Payload/WriteableInterface.zep +++ b/phalcon/Domain/Payload/WriteableInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Escaper.zep b/phalcon/Escaper.zep index 32e6545d050..e4e13e809a6 100644 --- a/phalcon/Escaper.zep +++ b/phalcon/Escaper.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Escaper/EscaperInterface.zep b/phalcon/Escaper/EscaperInterface.zep index bd6ef33ae3d..4a5d853657d 100644 --- a/phalcon/Escaper/EscaperInterface.zep +++ b/phalcon/Escaper/EscaperInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Escaper/Exception.zep b/phalcon/Escaper/Exception.zep index 5675bd12706..e9a3e039ee9 100644 --- a/phalcon/Escaper/Exception.zep +++ b/phalcon/Escaper/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Events/Event.zep b/phalcon/Events/Event.zep index 8d086fdee30..f594bd3012e 100644 --- a/phalcon/Events/Event.zep +++ b/phalcon/Events/Event.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Events/EventInterface.zep b/phalcon/Events/EventInterface.zep index 0061db4b2a6..c2c609868c6 100644 --- a/phalcon/Events/EventInterface.zep +++ b/phalcon/Events/EventInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Events/EventsAwareInterface.zep b/phalcon/Events/EventsAwareInterface.zep index 9e202405adb..649174b28f3 100644 --- a/phalcon/Events/EventsAwareInterface.zep +++ b/phalcon/Events/EventsAwareInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Events/Exception.zep b/phalcon/Events/Exception.zep index 8d7bde30af6..80da1342478 100644 --- a/phalcon/Events/Exception.zep +++ b/phalcon/Events/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Events/Manager.zep b/phalcon/Events/Manager.zep index 3f6566493e8..8e2b8e4ce9f 100644 --- a/phalcon/Events/Manager.zep +++ b/phalcon/Events/Manager.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Events/ManagerInterface.zep b/phalcon/Events/ManagerInterface.zep index ca1491e58a4..b3450d90864 100644 --- a/phalcon/Events/ManagerInterface.zep +++ b/phalcon/Events/ManagerInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Exception.zep b/phalcon/Exception.zep index 45c11db60c3..82a1e757003 100644 --- a/phalcon/Exception.zep +++ b/phalcon/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Factory/AbstractFactory.zep b/phalcon/Factory/AbstractFactory.zep index 07c9f4994ac..591c6db122a 100644 --- a/phalcon/Factory/AbstractFactory.zep +++ b/phalcon/Factory/AbstractFactory.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Factory/Exception.zep b/phalcon/Factory/Exception.zep index f73393fbd2d..99367b0bef6 100644 --- a/phalcon/Factory/Exception.zep +++ b/phalcon/Factory/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Filter/Exception.zep b/phalcon/Filter/Exception.zep index 02f3e759e09..aad3e262ca6 100644 --- a/phalcon/Filter/Exception.zep +++ b/phalcon/Filter/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Filter/Filter.zep b/phalcon/Filter/Filter.zep index b75b46753d6..ccdc2653aed 100644 --- a/phalcon/Filter/Filter.zep +++ b/phalcon/Filter/Filter.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Filter/FilterFactory.zep b/phalcon/Filter/FilterFactory.zep index 7c062326ddc..ba092c636a4 100644 --- a/phalcon/Filter/FilterFactory.zep +++ b/phalcon/Filter/FilterFactory.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class FilterFactory this->getAdapters() ); } - + protected function getAdapters() -> array { return [ diff --git a/phalcon/Filter/FilterInterface.zep b/phalcon/Filter/FilterInterface.zep index 5acf336d57c..70d165b2c08 100644 --- a/phalcon/Filter/FilterInterface.zep +++ b/phalcon/Filter/FilterInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Filter/Sanitize/AbsInt.zep b/phalcon/Filter/Sanitize/AbsInt.zep index e12a1a27bf9..b1fb7f9edb5 100644 --- a/phalcon/Filter/Sanitize/AbsInt.zep +++ b/phalcon/Filter/Sanitize/AbsInt.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Filter/Sanitize/Alnum.zep b/phalcon/Filter/Sanitize/Alnum.zep index 323e20f4119..5c3c9dc8e16 100644 --- a/phalcon/Filter/Sanitize/Alnum.zep +++ b/phalcon/Filter/Sanitize/Alnum.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Filter/Sanitize/Alpha.zep b/phalcon/Filter/Sanitize/Alpha.zep index 48f5020ea14..18dc72f4a29 100644 --- a/phalcon/Filter/Sanitize/Alpha.zep +++ b/phalcon/Filter/Sanitize/Alpha.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Filter/Sanitize/BoolVal.zep b/phalcon/Filter/Sanitize/BoolVal.zep index 10ea38959a2..636650047b1 100644 --- a/phalcon/Filter/Sanitize/BoolVal.zep +++ b/phalcon/Filter/Sanitize/BoolVal.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Filter/Sanitize/Email.zep b/phalcon/Filter/Sanitize/Email.zep index e60c6d056c9..0d207a08283 100644 --- a/phalcon/Filter/Sanitize/Email.zep +++ b/phalcon/Filter/Sanitize/Email.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Filter/Sanitize/FloatVal.zep b/phalcon/Filter/Sanitize/FloatVal.zep index 8473b2da928..fedfcd5cc7d 100644 --- a/phalcon/Filter/Sanitize/FloatVal.zep +++ b/phalcon/Filter/Sanitize/FloatVal.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Filter/Sanitize/IntVal.zep b/phalcon/Filter/Sanitize/IntVal.zep index 25e50a27b1d..6ac0e637d2f 100644 --- a/phalcon/Filter/Sanitize/IntVal.zep +++ b/phalcon/Filter/Sanitize/IntVal.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Filter/Sanitize/Lower.zep b/phalcon/Filter/Sanitize/Lower.zep index f113216fbbb..7da165d8941 100644 --- a/phalcon/Filter/Sanitize/Lower.zep +++ b/phalcon/Filter/Sanitize/Lower.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Filter/Sanitize/LowerFirst.zep b/phalcon/Filter/Sanitize/LowerFirst.zep index 1458149c914..eed5ae14d3f 100644 --- a/phalcon/Filter/Sanitize/LowerFirst.zep +++ b/phalcon/Filter/Sanitize/LowerFirst.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Filter/Sanitize/Regex.zep b/phalcon/Filter/Sanitize/Regex.zep index 6e6abc0efd8..75b377c2de9 100644 --- a/phalcon/Filter/Sanitize/Regex.zep +++ b/phalcon/Filter/Sanitize/Regex.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Filter/Sanitize/Remove.zep b/phalcon/Filter/Sanitize/Remove.zep index 8b2109fb1c1..07f4f36f7e2 100644 --- a/phalcon/Filter/Sanitize/Remove.zep +++ b/phalcon/Filter/Sanitize/Remove.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Filter/Sanitize/Replace.zep b/phalcon/Filter/Sanitize/Replace.zep index dbeede2e118..103bdc62e62 100644 --- a/phalcon/Filter/Sanitize/Replace.zep +++ b/phalcon/Filter/Sanitize/Replace.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Filter/Sanitize/Special.zep b/phalcon/Filter/Sanitize/Special.zep index b7fe8741dbe..d2a7c575777 100644 --- a/phalcon/Filter/Sanitize/Special.zep +++ b/phalcon/Filter/Sanitize/Special.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Filter/Sanitize/SpecialFull.zep b/phalcon/Filter/Sanitize/SpecialFull.zep index 5329ab0f0de..298e743a55f 100644 --- a/phalcon/Filter/Sanitize/SpecialFull.zep +++ b/phalcon/Filter/Sanitize/SpecialFull.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Filter/Sanitize/StringVal.zep b/phalcon/Filter/Sanitize/StringVal.zep index e4abd58e570..b4cb9edff7c 100644 --- a/phalcon/Filter/Sanitize/StringVal.zep +++ b/phalcon/Filter/Sanitize/StringVal.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Filter/Sanitize/Striptags.zep b/phalcon/Filter/Sanitize/Striptags.zep index 7e3a58bb96f..13769f09071 100644 --- a/phalcon/Filter/Sanitize/Striptags.zep +++ b/phalcon/Filter/Sanitize/Striptags.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Filter/Sanitize/Trim.zep b/phalcon/Filter/Sanitize/Trim.zep index 1950268093e..2e343c7bd14 100644 --- a/phalcon/Filter/Sanitize/Trim.zep +++ b/phalcon/Filter/Sanitize/Trim.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Filter/Sanitize/Upper.zep b/phalcon/Filter/Sanitize/Upper.zep index 1c1099c3029..c6574fbb255 100644 --- a/phalcon/Filter/Sanitize/Upper.zep +++ b/phalcon/Filter/Sanitize/Upper.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Filter/Sanitize/UpperFirst.zep b/phalcon/Filter/Sanitize/UpperFirst.zep index d480a91e4d0..7c16ad6338f 100644 --- a/phalcon/Filter/Sanitize/UpperFirst.zep +++ b/phalcon/Filter/Sanitize/UpperFirst.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Filter/Sanitize/UpperWords.zep b/phalcon/Filter/Sanitize/UpperWords.zep index 44d04fd5333..6c2941724af 100644 --- a/phalcon/Filter/Sanitize/UpperWords.zep +++ b/phalcon/Filter/Sanitize/UpperWords.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Filter/Sanitize/Url.zep b/phalcon/Filter/Sanitize/Url.zep index 29b74630cf1..f1578cadb93 100644 --- a/phalcon/Filter/Sanitize/Url.zep +++ b/phalcon/Filter/Sanitize/Url.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Firewall/Adapter/AbstractAdapter.zep b/phalcon/Firewall/Adapter/AbstractAdapter.zep index 06c9923d393..ed3914562b9 100644 --- a/phalcon/Firewall/Adapter/AbstractAdapter.zep +++ b/phalcon/Firewall/Adapter/AbstractAdapter.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Firewall/Adapter/Acl.zep b/phalcon/Firewall/Adapter/Acl.zep index 10dc4c9fd6c..31f2e1db963 100644 --- a/phalcon/Firewall/Adapter/Acl.zep +++ b/phalcon/Firewall/Adapter/Acl.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Firewall/Adapter/AdapterInterface.zep b/phalcon/Firewall/Adapter/AdapterInterface.zep index 654ed5feb8f..a9e01b06a1a 100644 --- a/phalcon/Firewall/Adapter/AdapterInterface.zep +++ b/phalcon/Firewall/Adapter/AdapterInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Firewall/Adapter/Annotations.zep b/phalcon/Firewall/Adapter/Annotations.zep index bba011c19a9..ea9721db293 100644 --- a/phalcon/Firewall/Adapter/Annotations.zep +++ b/phalcon/Firewall/Adapter/Annotations.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Firewall/Adapter/Micro/Acl.zep b/phalcon/Firewall/Adapter/Micro/Acl.zep index 94cc1516f0c..16dacad116f 100644 --- a/phalcon/Firewall/Adapter/Micro/Acl.zep +++ b/phalcon/Firewall/Adapter/Micro/Acl.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Firewall/Exception.zep b/phalcon/Firewall/Exception.zep index 2accb67c1d9..f87ef2191e7 100644 --- a/phalcon/Firewall/Exception.zep +++ b/phalcon/Firewall/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Flash/AbstractFlash.zep b/phalcon/Flash/AbstractFlash.zep index cdb95154b2c..b23ce44b692 100644 --- a/phalcon/Flash/AbstractFlash.zep +++ b/phalcon/Flash/AbstractFlash.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Flash/Direct.zep b/phalcon/Flash/Direct.zep index ebebfc2bf60..6214754069f 100644 --- a/phalcon/Flash/Direct.zep +++ b/phalcon/Flash/Direct.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Flash/Exception.zep b/phalcon/Flash/Exception.zep index e0c84f77cbf..0381628d23c 100644 --- a/phalcon/Flash/Exception.zep +++ b/phalcon/Flash/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Flash/FlashInterface.zep b/phalcon/Flash/FlashInterface.zep index 7155e1a4ca9..f398a82b2b6 100644 --- a/phalcon/Flash/FlashInterface.zep +++ b/phalcon/Flash/FlashInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Flash/Session.zep b/phalcon/Flash/Session.zep index 6045c8d765b..49447a8161b 100644 --- a/phalcon/Flash/Session.zep +++ b/phalcon/Flash/Session.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Forms/Element/AbstractElement.zep b/phalcon/Forms/Element/AbstractElement.zep index 75811aa3b0c..06033ec63be 100644 --- a/phalcon/Forms/Element/AbstractElement.zep +++ b/phalcon/Forms/Element/AbstractElement.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Forms/Element/Check.zep b/phalcon/Forms/Element/Check.zep index e532794258e..2a720affebb 100644 --- a/phalcon/Forms/Element/Check.zep +++ b/phalcon/Forms/Element/Check.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Forms/Element/Date.zep b/phalcon/Forms/Element/Date.zep index ceb0515c242..4a2c4f02c05 100644 --- a/phalcon/Forms/Element/Date.zep +++ b/phalcon/Forms/Element/Date.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Forms/Element/ElementInterface.zep b/phalcon/Forms/Element/ElementInterface.zep index 2e2744c6ee8..44cb1d2159c 100644 --- a/phalcon/Forms/Element/ElementInterface.zep +++ b/phalcon/Forms/Element/ElementInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Forms/Element/Email.zep b/phalcon/Forms/Element/Email.zep index 4c6c259757a..d545371dad3 100644 --- a/phalcon/Forms/Element/Email.zep +++ b/phalcon/Forms/Element/Email.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Forms/Element/File.zep b/phalcon/Forms/Element/File.zep index 6e6a69bf66b..d34d4908aeb 100644 --- a/phalcon/Forms/Element/File.zep +++ b/phalcon/Forms/Element/File.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Forms/Element/Hidden.zep b/phalcon/Forms/Element/Hidden.zep index 51df539f65d..00518d3e134 100644 --- a/phalcon/Forms/Element/Hidden.zep +++ b/phalcon/Forms/Element/Hidden.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Forms/Element/Numeric.zep b/phalcon/Forms/Element/Numeric.zep index 56539c0b7a5..9c38978a80a 100644 --- a/phalcon/Forms/Element/Numeric.zep +++ b/phalcon/Forms/Element/Numeric.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Forms/Element/Password.zep b/phalcon/Forms/Element/Password.zep index e413b399a3b..a14ca10d7b9 100644 --- a/phalcon/Forms/Element/Password.zep +++ b/phalcon/Forms/Element/Password.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Forms/Element/Radio.zep b/phalcon/Forms/Element/Radio.zep index 9b7b65749e7..551e29e4f78 100644 --- a/phalcon/Forms/Element/Radio.zep +++ b/phalcon/Forms/Element/Radio.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Forms/Element/Select.zep b/phalcon/Forms/Element/Select.zep index 2c90876f826..4748eac7b49 100644 --- a/phalcon/Forms/Element/Select.zep +++ b/phalcon/Forms/Element/Select.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Forms/Element/Submit.zep b/phalcon/Forms/Element/Submit.zep index 09bbc1bde57..d8a5035d022 100644 --- a/phalcon/Forms/Element/Submit.zep +++ b/phalcon/Forms/Element/Submit.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Forms/Element/Text.zep b/phalcon/Forms/Element/Text.zep index 1ee293f13ba..31d6e601ae1 100644 --- a/phalcon/Forms/Element/Text.zep +++ b/phalcon/Forms/Element/Text.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Forms/Element/TextArea.zep b/phalcon/Forms/Element/TextArea.zep index 8250e635f81..0135d232e2d 100644 --- a/phalcon/Forms/Element/TextArea.zep +++ b/phalcon/Forms/Element/TextArea.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Forms/Exception.zep b/phalcon/Forms/Exception.zep index dcfec59bb5e..ab8b48c7435 100644 --- a/phalcon/Forms/Exception.zep +++ b/phalcon/Forms/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Forms/Form.zep b/phalcon/Forms/Form.zep index 73a1f5e3627..c5148032e23 100644 --- a/phalcon/Forms/Form.zep +++ b/phalcon/Forms/Form.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Forms/Manager.zep b/phalcon/Forms/Manager.zep index 8e358314d4f..f3be87c082e 100644 --- a/phalcon/Forms/Manager.zep +++ b/phalcon/Forms/Manager.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Helper/Exception.zep b/phalcon/Helper/Exception.zep index 1c429ece6d0..8a7d1a3066d 100644 --- a/phalcon/Helper/Exception.zep +++ b/phalcon/Helper/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Html/Attributes.zep b/phalcon/Html/Attributes.zep index b2c0584e5b9..c60eaa759e3 100644 --- a/phalcon/Html/Attributes.zep +++ b/phalcon/Html/Attributes.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Html/Attributes/AttributesInterface.zep b/phalcon/Html/Attributes/AttributesInterface.zep index 4dc5cb934b4..46377b6b9da 100644 --- a/phalcon/Html/Attributes/AttributesInterface.zep +++ b/phalcon/Html/Attributes/AttributesInterface.zep @@ -1,7 +1,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Html/Attributes/RenderInterface.zep b/phalcon/Html/Attributes/RenderInterface.zep index d53bcd9812b..272acee8f25 100644 --- a/phalcon/Html/Attributes/RenderInterface.zep +++ b/phalcon/Html/Attributes/RenderInterface.zep @@ -1,7 +1,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Html/Breadcrumbs.zep b/phalcon/Html/Breadcrumbs.zep index 121a1ab13da..1bae7dc4cb5 100644 --- a/phalcon/Html/Breadcrumbs.zep +++ b/phalcon/Html/Breadcrumbs.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Html/Exception.zep b/phalcon/Html/Exception.zep index 3886558b43e..c8afaf259fd 100644 --- a/phalcon/Html/Exception.zep +++ b/phalcon/Html/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Html/Helper/AbstractHelper.zep b/phalcon/Html/Helper/AbstractHelper.zep index 5d42c84f64c..bb6edd3afae 100644 --- a/phalcon/Html/Helper/AbstractHelper.zep +++ b/phalcon/Html/Helper/AbstractHelper.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Html/Helper/Anchor.zep b/phalcon/Html/Helper/Anchor.zep index a0b8cfbac54..f6eb88cac8b 100644 --- a/phalcon/Html/Helper/Anchor.zep +++ b/phalcon/Html/Helper/Anchor.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Html/Helper/AnchorRaw.zep b/phalcon/Html/Helper/AnchorRaw.zep index e732f15f288..c0a65bb5949 100644 --- a/phalcon/Html/Helper/AnchorRaw.zep +++ b/phalcon/Html/Helper/AnchorRaw.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Html/Helper/Body.zep b/phalcon/Html/Helper/Body.zep index 95371a1f84b..cbbb2aa1fdd 100644 --- a/phalcon/Html/Helper/Body.zep +++ b/phalcon/Html/Helper/Body.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Html/Helper/Button.zep b/phalcon/Html/Helper/Button.zep index 7014f369a89..8204ff96e85 100644 --- a/phalcon/Html/Helper/Button.zep +++ b/phalcon/Html/Helper/Button.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Html/Helper/Close.zep b/phalcon/Html/Helper/Close.zep index bf7f6d9355f..007b284acaf 100644 --- a/phalcon/Html/Helper/Close.zep +++ b/phalcon/Html/Helper/Close.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Html/Helper/Element.zep b/phalcon/Html/Helper/Element.zep index e8743032114..d987bb2dde1 100644 --- a/phalcon/Html/Helper/Element.zep +++ b/phalcon/Html/Helper/Element.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Html/Helper/ElementRaw.zep b/phalcon/Html/Helper/ElementRaw.zep index d78d6fc7df3..ddeee15286d 100644 --- a/phalcon/Html/Helper/ElementRaw.zep +++ b/phalcon/Html/Helper/ElementRaw.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Html/Helper/Form.zep b/phalcon/Html/Helper/Form.zep index 0f6edda2f2e..5b94141fb60 100644 --- a/phalcon/Html/Helper/Form.zep +++ b/phalcon/Html/Helper/Form.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Html/Helper/Img.zep b/phalcon/Html/Helper/Img.zep index ceaa0732cea..778b4ba1e0d 100644 --- a/phalcon/Html/Helper/Img.zep +++ b/phalcon/Html/Helper/Img.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Html/Helper/Label.zep b/phalcon/Html/Helper/Label.zep index fde7134912a..a117023191b 100644 --- a/phalcon/Html/Helper/Label.zep +++ b/phalcon/Html/Helper/Label.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Html/Helper/TextArea.zep b/phalcon/Html/Helper/TextArea.zep index d92ed12e0a9..c2e6b53b922 100644 --- a/phalcon/Html/Helper/TextArea.zep +++ b/phalcon/Html/Helper/TextArea.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Html/Tag.zep b/phalcon/Html/Tag.zep index 021ee43c634..01e779b5878 100644 --- a/phalcon/Html/Tag.zep +++ b/phalcon/Html/Tag.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -1047,7 +1047,7 @@ class Tag implements InjectionAwareInterface * ); * * echo $tag->link( - * 'https://phalconphp.com/', + * 'https://phalcon.io/', * 'Phalcon!', * [ * 'local' => false, @@ -1055,7 +1055,7 @@ class Tag implements InjectionAwareInterface * ); * * echo $tag->link( - * 'https://phalconphp.com/', + * 'https://phalcon.io/', * 'Phalcon!', * [ * 'local' => false, diff --git a/phalcon/Html/TagFactory.zep b/phalcon/Html/TagFactory.zep index d165989b3d6..7388d13a711 100644 --- a/phalcon/Html/TagFactory.zep +++ b/phalcon/Html/TagFactory.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Http/Cookie.zep b/phalcon/Http/Cookie.zep index 36e3ff8b0b6..874e8d352c0 100644 --- a/phalcon/Http/Cookie.zep +++ b/phalcon/Http/Cookie.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Http/Cookie/Exception.zep b/phalcon/Http/Cookie/Exception.zep index e4eec9285ff..ccb7e088151 100644 --- a/phalcon/Http/Cookie/Exception.zep +++ b/phalcon/Http/Cookie/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Http/CookieInterface.zep b/phalcon/Http/CookieInterface.zep index dbddf32f0fc..501a562407b 100644 --- a/phalcon/Http/CookieInterface.zep +++ b/phalcon/Http/CookieInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Http/Message/AbstractCommon.zep b/phalcon/Http/Message/AbstractCommon.zep index 17e9894a518..281396bca33 100644 --- a/phalcon/Http/Message/AbstractCommon.zep +++ b/phalcon/Http/Message/AbstractCommon.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Http/Message/AbstractMessage.zep b/phalcon/Http/Message/AbstractMessage.zep index 88ee8ef5b49..961bdf941f5 100644 --- a/phalcon/Http/Message/AbstractMessage.zep +++ b/phalcon/Http/Message/AbstractMessage.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Http/Message/AbstractRequest.zep b/phalcon/Http/Message/AbstractRequest.zep index 04c58c950be..6adbf3bbc25 100644 --- a/phalcon/Http/Message/AbstractRequest.zep +++ b/phalcon/Http/Message/AbstractRequest.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Http/Message/Exception/InvalidArgumentException.zep b/phalcon/Http/Message/Exception/InvalidArgumentException.zep index b0173d12e30..956cf704b67 100644 --- a/phalcon/Http/Message/Exception/InvalidArgumentException.zep +++ b/phalcon/Http/Message/Exception/InvalidArgumentException.zep @@ -1,7 +1,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Http/Message/Request.zep b/phalcon/Http/Message/Request.zep index dc1121ad4d7..3163d7fe005 100644 --- a/phalcon/Http/Message/Request.zep +++ b/phalcon/Http/Message/Request.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Http/Message/RequestFactory.zep b/phalcon/Http/Message/RequestFactory.zep index fb93e5ffc7b..f9262c3b8a1 100644 --- a/phalcon/Http/Message/RequestFactory.zep +++ b/phalcon/Http/Message/RequestFactory.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Http/Message/Response.zep b/phalcon/Http/Message/Response.zep index 3fe794095ea..8b580c41830 100644 --- a/phalcon/Http/Message/Response.zep +++ b/phalcon/Http/Message/Response.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Http/Message/ResponseFactory.zep b/phalcon/Http/Message/ResponseFactory.zep index 085da6f9734..b8cd1808df2 100644 --- a/phalcon/Http/Message/ResponseFactory.zep +++ b/phalcon/Http/Message/ResponseFactory.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Http/Message/ServerRequest.zep b/phalcon/Http/Message/ServerRequest.zep index ba9743a63e9..739d5856b7e 100644 --- a/phalcon/Http/Message/ServerRequest.zep +++ b/phalcon/Http/Message/ServerRequest.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * -* (c) Phalcon Team +* (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Http/Message/ServerRequestFactory.zep b/phalcon/Http/Message/ServerRequestFactory.zep index 35592cc5f0d..dbef761f1a5 100644 --- a/phalcon/Http/Message/ServerRequestFactory.zep +++ b/phalcon/Http/Message/ServerRequestFactory.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * -* (c) Phalcon Team +* (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Http/Message/Stream.zep b/phalcon/Http/Message/Stream.zep index 58a2db6432b..f77baae1cdd 100644 --- a/phalcon/Http/Message/Stream.zep +++ b/phalcon/Http/Message/Stream.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Http/Message/Stream/Input.zep b/phalcon/Http/Message/Stream/Input.zep index 2c61357220b..9a014492908 100644 --- a/phalcon/Http/Message/Stream/Input.zep +++ b/phalcon/Http/Message/Stream/Input.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Http/Message/Stream/Memory.zep b/phalcon/Http/Message/Stream/Memory.zep index 5ac77287fa5..61f78445b1d 100644 --- a/phalcon/Http/Message/Stream/Memory.zep +++ b/phalcon/Http/Message/Stream/Memory.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Http/Message/Stream/Temp.zep b/phalcon/Http/Message/Stream/Temp.zep index 1e6bbfadb12..97a7453d67b 100644 --- a/phalcon/Http/Message/Stream/Temp.zep +++ b/phalcon/Http/Message/Stream/Temp.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Http/Message/StreamFactory.zep b/phalcon/Http/Message/StreamFactory.zep index f72f4c67dbd..265b9fb852f 100644 --- a/phalcon/Http/Message/StreamFactory.zep +++ b/phalcon/Http/Message/StreamFactory.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Http/Message/UploadedFile.zep b/phalcon/Http/Message/UploadedFile.zep index 4aa4d9fbc75..3fb5a0ba1b7 100644 --- a/phalcon/Http/Message/UploadedFile.zep +++ b/phalcon/Http/Message/UploadedFile.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Http/Message/UploadedFileFactory.zep b/phalcon/Http/Message/UploadedFileFactory.zep index 5ba01773a61..5a574907c8b 100644 --- a/phalcon/Http/Message/UploadedFileFactory.zep +++ b/phalcon/Http/Message/UploadedFileFactory.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Http/Message/Uri.zep b/phalcon/Http/Message/Uri.zep index ba634ea3654..167d5a058c7 100644 --- a/phalcon/Http/Message/Uri.zep +++ b/phalcon/Http/Message/Uri.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Http/Message/UriFactory.zep b/phalcon/Http/Message/UriFactory.zep index ce9e6305fa1..aaaab547985 100644 --- a/phalcon/Http/Message/UriFactory.zep +++ b/phalcon/Http/Message/UriFactory.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Http/Request.zep b/phalcon/Http/Request.zep index c812331f6f8..58ef166cfb3 100644 --- a/phalcon/Http/Request.zep +++ b/phalcon/Http/Request.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Http/Request/Exception.zep b/phalcon/Http/Request/Exception.zep index a21cdf64e5b..fdee2b8c0c9 100644 --- a/phalcon/Http/Request/Exception.zep +++ b/phalcon/Http/Request/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Http/Request/File.zep b/phalcon/Http/Request/File.zep index 76d77289302..17db285ff65 100644 --- a/phalcon/Http/Request/File.zep +++ b/phalcon/Http/Request/File.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Http/Request/FileInterface.zep b/phalcon/Http/Request/FileInterface.zep index 954f3488921..eaa9b180646 100644 --- a/phalcon/Http/Request/FileInterface.zep +++ b/phalcon/Http/Request/FileInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Http/RequestInterface.zep b/phalcon/Http/RequestInterface.zep index cf3109ced0b..95999150b7e 100644 --- a/phalcon/Http/RequestInterface.zep +++ b/phalcon/Http/RequestInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Http/Response.zep b/phalcon/Http/Response.zep index 5def2a68cf2..c5e6051f8ad 100644 --- a/phalcon/Http/Response.zep +++ b/phalcon/Http/Response.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Http/Response/Cookies.zep b/phalcon/Http/Response/Cookies.zep index 3097f8a6c33..e5e8b3dc5a9 100644 --- a/phalcon/Http/Response/Cookies.zep +++ b/phalcon/Http/Response/Cookies.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Http/Response/CookiesInterface.zep b/phalcon/Http/Response/CookiesInterface.zep index dac96d4a988..6992ba9ef4f 100644 --- a/phalcon/Http/Response/CookiesInterface.zep +++ b/phalcon/Http/Response/CookiesInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Http/Response/Exception.zep b/phalcon/Http/Response/Exception.zep index 5817a930bfd..63a36456702 100644 --- a/phalcon/Http/Response/Exception.zep +++ b/phalcon/Http/Response/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Http/Response/Headers.zep b/phalcon/Http/Response/Headers.zep index 046f2b9294d..fdee5fd2f9d 100644 --- a/phalcon/Http/Response/Headers.zep +++ b/phalcon/Http/Response/Headers.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Http/Response/HeadersInterface.zep b/phalcon/Http/Response/HeadersInterface.zep index c879ca51b98..bf01dc93e3e 100644 --- a/phalcon/Http/Response/HeadersInterface.zep +++ b/phalcon/Http/Response/HeadersInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Http/ResponseInterface.zep b/phalcon/Http/ResponseInterface.zep index 4b4a93f273f..1678f1f86a3 100644 --- a/phalcon/Http/ResponseInterface.zep +++ b/phalcon/Http/ResponseInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Http/Server/AbstractMiddleware.zep b/phalcon/Http/Server/AbstractMiddleware.zep index 606193660f6..2cb7bc9b3b4 100644 --- a/phalcon/Http/Server/AbstractMiddleware.zep +++ b/phalcon/Http/Server/AbstractMiddleware.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Http/Server/AbstractRequestHandler.zep b/phalcon/Http/Server/AbstractRequestHandler.zep index 5617bd1f614..a19f8f41eaf 100644 --- a/phalcon/Http/Server/AbstractRequestHandler.zep +++ b/phalcon/Http/Server/AbstractRequestHandler.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Image/Adapter/AbstractAdapter.zep b/phalcon/Image/Adapter/AbstractAdapter.zep index e0f514bb20e..c8e1a5becdb 100644 --- a/phalcon/Image/Adapter/AbstractAdapter.zep +++ b/phalcon/Image/Adapter/AbstractAdapter.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Image/Adapter/AdapterInterface.zep b/phalcon/Image/Adapter/AdapterInterface.zep index 8bc0c204e68..0ffd4ba4ebd 100644 --- a/phalcon/Image/Adapter/AdapterInterface.zep +++ b/phalcon/Image/Adapter/AdapterInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Image/Adapter/Gd.zep b/phalcon/Image/Adapter/Gd.zep index 7b07407bc08..3c1577b4010 100644 --- a/phalcon/Image/Adapter/Gd.zep +++ b/phalcon/Image/Adapter/Gd.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Image/Adapter/Imagick.zep b/phalcon/Image/Adapter/Imagick.zep index c8c248acab9..ac54337477c 100644 --- a/phalcon/Image/Adapter/Imagick.zep +++ b/phalcon/Image/Adapter/Imagick.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Image/Enum.zep b/phalcon/Image/Enum.zep index c57f8612244..14148049765 100644 --- a/phalcon/Image/Enum.zep +++ b/phalcon/Image/Enum.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Image/Exception.zep b/phalcon/Image/Exception.zep index 5f3863db8c5..de3de802b81 100644 --- a/phalcon/Image/Exception.zep +++ b/phalcon/Image/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Image/ImageFactory.zep b/phalcon/Image/ImageFactory.zep index fec3387c947..db29b2504f7 100644 --- a/phalcon/Image/ImageFactory.zep +++ b/phalcon/Image/ImageFactory.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Kernel.zep b/phalcon/Kernel.zep index 3b9efbcc0d5..30eb1dad869 100644 --- a/phalcon/Kernel.zep +++ b/phalcon/Kernel.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Loader.zep b/phalcon/Loader.zep index 6cbf96f4491..14603f65115 100644 --- a/phalcon/Loader.zep +++ b/phalcon/Loader.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Loader/Exception.zep b/phalcon/Loader/Exception.zep index 05ab9fc3d4b..cf09eb9f24e 100644 --- a/phalcon/Loader/Exception.zep +++ b/phalcon/Loader/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Logger.zep b/phalcon/Logger.zep index 60c425bc089..1b28573bef2 100644 --- a/phalcon/Logger.zep +++ b/phalcon/Logger.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Logger/Adapter/AbstractAdapter.zep b/phalcon/Logger/Adapter/AbstractAdapter.zep index f0a71dd8f9e..5b2d5f14af5 100644 --- a/phalcon/Logger/Adapter/AbstractAdapter.zep +++ b/phalcon/Logger/Adapter/AbstractAdapter.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Logger/Adapter/AdapterInterface.zep b/phalcon/Logger/Adapter/AdapterInterface.zep index 0216aff9e45..64cd69785de 100644 --- a/phalcon/Logger/Adapter/AdapterInterface.zep +++ b/phalcon/Logger/Adapter/AdapterInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Logger/Adapter/Noop.zep b/phalcon/Logger/Adapter/Noop.zep index 4864187dc88..1c42573a381 100644 --- a/phalcon/Logger/Adapter/Noop.zep +++ b/phalcon/Logger/Adapter/Noop.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Logger/Adapter/Stream.zep b/phalcon/Logger/Adapter/Stream.zep index 8ef047c1dd9..afef4ada0f3 100644 --- a/phalcon/Logger/Adapter/Stream.zep +++ b/phalcon/Logger/Adapter/Stream.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Logger/Adapter/Syslog.zep b/phalcon/Logger/Adapter/Syslog.zep index 3ac80203b3c..3c862f93e22 100644 --- a/phalcon/Logger/Adapter/Syslog.zep +++ b/phalcon/Logger/Adapter/Syslog.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Logger/AdapterFactory.zep b/phalcon/Logger/AdapterFactory.zep index 241bffc734a..32bdb877222 100644 --- a/phalcon/Logger/AdapterFactory.zep +++ b/phalcon/Logger/AdapterFactory.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Logger/Exception.zep b/phalcon/Logger/Exception.zep index 5a6dba8371a..3116a7a1f36 100644 --- a/phalcon/Logger/Exception.zep +++ b/phalcon/Logger/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Logger/Formatter/AbstractFormatter.zep b/phalcon/Logger/Formatter/AbstractFormatter.zep index 24d775479f3..7950b87b4ce 100644 --- a/phalcon/Logger/Formatter/AbstractFormatter.zep +++ b/phalcon/Logger/Formatter/AbstractFormatter.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Logger/Formatter/FormatterInterface.zep b/phalcon/Logger/Formatter/FormatterInterface.zep index 91dbe6c629c..ece110e266a 100644 --- a/phalcon/Logger/Formatter/FormatterInterface.zep +++ b/phalcon/Logger/Formatter/FormatterInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Logger/Formatter/Json.zep b/phalcon/Logger/Formatter/Json.zep index a15b997a426..fcb84a92f8f 100644 --- a/phalcon/Logger/Formatter/Json.zep +++ b/phalcon/Logger/Formatter/Json.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Logger/Formatter/Line.zep b/phalcon/Logger/Formatter/Line.zep index 982633435bf..693193423a1 100644 --- a/phalcon/Logger/Formatter/Line.zep +++ b/phalcon/Logger/Formatter/Line.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Logger/Formatter/Syslog.zep b/phalcon/Logger/Formatter/Syslog.zep index d641c6d0f3c..a8db5033a07 100644 --- a/phalcon/Logger/Formatter/Syslog.zep +++ b/phalcon/Logger/Formatter/Syslog.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Logger/Item.zep b/phalcon/Logger/Item.zep index 93a7af48011..6599bbe11be 100644 --- a/phalcon/Logger/Item.zep +++ b/phalcon/Logger/Item.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Logger/LoggerFactory.zep b/phalcon/Logger/LoggerFactory.zep index 0abbdb0c776..f6107f090bd 100644 --- a/phalcon/Logger/LoggerFactory.zep +++ b/phalcon/Logger/LoggerFactory.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Messages/Exception.zep b/phalcon/Messages/Exception.zep index dc3c84fc55a..3a9d8bdf1ab 100644 --- a/phalcon/Messages/Exception.zep +++ b/phalcon/Messages/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Messages/Message.zep b/phalcon/Messages/Message.zep index b27841e4eab..59e0ad5cf82 100644 --- a/phalcon/Messages/Message.zep +++ b/phalcon/Messages/Message.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Messages/MessageInterface.zep b/phalcon/Messages/MessageInterface.zep index 024f1463a4b..6428abd26ed 100644 --- a/phalcon/Messages/MessageInterface.zep +++ b/phalcon/Messages/MessageInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Messages/Messages.zep b/phalcon/Messages/Messages.zep index b595b0853d1..1a64a0f1ce8 100644 --- a/phalcon/Messages/Messages.zep +++ b/phalcon/Messages/Messages.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Application.zep b/phalcon/Mvc/Application.zep index d5de2a921ce..b9189a2aaf6 100644 --- a/phalcon/Mvc/Application.zep +++ b/phalcon/Mvc/Application.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Application/Exception.zep b/phalcon/Mvc/Application/Exception.zep index ad96df0c1ab..00006eba016 100644 --- a/phalcon/Mvc/Application/Exception.zep +++ b/phalcon/Mvc/Application/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Collection.zep b/phalcon/Mvc/Collection.zep index 73a410ef18b..42d0213a4ae 100644 --- a/phalcon/Mvc/Collection.zep +++ b/phalcon/Mvc/Collection.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Collection/Behavior.zep b/phalcon/Mvc/Collection/Behavior.zep index 751352eb142..1b5c7614b23 100644 --- a/phalcon/Mvc/Collection/Behavior.zep +++ b/phalcon/Mvc/Collection/Behavior.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Collection/Behavior/SoftDelete.zep b/phalcon/Mvc/Collection/Behavior/SoftDelete.zep index 055dc20fd7f..f1e250dab44 100644 --- a/phalcon/Mvc/Collection/Behavior/SoftDelete.zep +++ b/phalcon/Mvc/Collection/Behavior/SoftDelete.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Collection/Behavior/Timestampable.zep b/phalcon/Mvc/Collection/Behavior/Timestampable.zep index 538c2bded48..ba762339172 100644 --- a/phalcon/Mvc/Collection/Behavior/Timestampable.zep +++ b/phalcon/Mvc/Collection/Behavior/Timestampable.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Collection/BehaviorInterface.zep b/phalcon/Mvc/Collection/BehaviorInterface.zep index b17460959da..ffa3bb458fa 100644 --- a/phalcon/Mvc/Collection/BehaviorInterface.zep +++ b/phalcon/Mvc/Collection/BehaviorInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Collection/Document.zep b/phalcon/Mvc/Collection/Document.zep index 05386160ca5..f3d63118d7d 100644 --- a/phalcon/Mvc/Collection/Document.zep +++ b/phalcon/Mvc/Collection/Document.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Collection/Exception.zep b/phalcon/Mvc/Collection/Exception.zep index e598db6ac71..e3a3e5109c3 100644 --- a/phalcon/Mvc/Collection/Exception.zep +++ b/phalcon/Mvc/Collection/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Collection/Manager.zep b/phalcon/Mvc/Collection/Manager.zep index d41ff9cc25e..be75a26c86f 100644 --- a/phalcon/Mvc/Collection/Manager.zep +++ b/phalcon/Mvc/Collection/Manager.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Collection/ManagerInterface.zep b/phalcon/Mvc/Collection/ManagerInterface.zep index b3eeb52aae6..7f9ffb5156e 100644 --- a/phalcon/Mvc/Collection/ManagerInterface.zep +++ b/phalcon/Mvc/Collection/ManagerInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/CollectionInterface.zep b/phalcon/Mvc/CollectionInterface.zep index c79cfd2f426..e671923cf39 100644 --- a/phalcon/Mvc/CollectionInterface.zep +++ b/phalcon/Mvc/CollectionInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Controller.zep b/phalcon/Mvc/Controller.zep index 77ebcf71a3f..c6dddfe6d97 100644 --- a/phalcon/Mvc/Controller.zep +++ b/phalcon/Mvc/Controller.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Controller/BindModelInterface.zep b/phalcon/Mvc/Controller/BindModelInterface.zep index a1f8484d9c7..f3f87036cdb 100644 --- a/phalcon/Mvc/Controller/BindModelInterface.zep +++ b/phalcon/Mvc/Controller/BindModelInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/ControllerInterface.zep b/phalcon/Mvc/ControllerInterface.zep index 53dc7fdca84..a22b0a6d307 100644 --- a/phalcon/Mvc/ControllerInterface.zep +++ b/phalcon/Mvc/ControllerInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Dispatcher.zep b/phalcon/Mvc/Dispatcher.zep index 8599fcf692b..8d5c779b133 100644 --- a/phalcon/Mvc/Dispatcher.zep +++ b/phalcon/Mvc/Dispatcher.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Dispatcher/Exception.zep b/phalcon/Mvc/Dispatcher/Exception.zep index 625215efada..ebe1afdd0d9 100644 --- a/phalcon/Mvc/Dispatcher/Exception.zep +++ b/phalcon/Mvc/Dispatcher/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/DispatcherInterface.zep b/phalcon/Mvc/DispatcherInterface.zep index 2a187f5fe94..827ac4308ab 100644 --- a/phalcon/Mvc/DispatcherInterface.zep +++ b/phalcon/Mvc/DispatcherInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/EntityInterface.zep b/phalcon/Mvc/EntityInterface.zep index 4295d4a57bd..f281765f58b 100644 --- a/phalcon/Mvc/EntityInterface.zep +++ b/phalcon/Mvc/EntityInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Micro.zep b/phalcon/Mvc/Micro.zep index 32c551d31ee..ddef0d18c4d 100644 --- a/phalcon/Mvc/Micro.zep +++ b/phalcon/Mvc/Micro.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Micro/Collection.zep b/phalcon/Mvc/Micro/Collection.zep index 206de6659b2..e8c9a3b4f9e 100644 --- a/phalcon/Mvc/Micro/Collection.zep +++ b/phalcon/Mvc/Micro/Collection.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Micro/CollectionInterface.zep b/phalcon/Mvc/Micro/CollectionInterface.zep index bd27039f02c..5d6b435e2c8 100644 --- a/phalcon/Mvc/Micro/CollectionInterface.zep +++ b/phalcon/Mvc/Micro/CollectionInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Micro/Exception.zep b/phalcon/Mvc/Micro/Exception.zep index 24c7b5c8a89..e6746f34a4d 100644 --- a/phalcon/Mvc/Micro/Exception.zep +++ b/phalcon/Mvc/Micro/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Micro/LazyLoader.zep b/phalcon/Mvc/Micro/LazyLoader.zep index 5033aea0256..701fd7335cf 100644 --- a/phalcon/Mvc/Micro/LazyLoader.zep +++ b/phalcon/Mvc/Micro/LazyLoader.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Micro/MiddlewareInterface.zep b/phalcon/Mvc/Micro/MiddlewareInterface.zep index c3a5ec91569..30a043cbfa6 100644 --- a/phalcon/Mvc/Micro/MiddlewareInterface.zep +++ b/phalcon/Mvc/Micro/MiddlewareInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/Behavior.zep b/phalcon/Mvc/Model/Behavior.zep index a987dde6139..b7f21ef86ea 100644 --- a/phalcon/Mvc/Model/Behavior.zep +++ b/phalcon/Mvc/Model/Behavior.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/Behavior/SoftDelete.zep b/phalcon/Mvc/Model/Behavior/SoftDelete.zep index b8587339fbb..ddeaf059d4a 100644 --- a/phalcon/Mvc/Model/Behavior/SoftDelete.zep +++ b/phalcon/Mvc/Model/Behavior/SoftDelete.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/Behavior/Timestampable.zep b/phalcon/Mvc/Model/Behavior/Timestampable.zep index 89451530674..fbb94a53613 100644 --- a/phalcon/Mvc/Model/Behavior/Timestampable.zep +++ b/phalcon/Mvc/Model/Behavior/Timestampable.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/BehaviorInterface.zep b/phalcon/Mvc/Model/BehaviorInterface.zep index 2b8cff00866..63c0536c049 100644 --- a/phalcon/Mvc/Model/BehaviorInterface.zep +++ b/phalcon/Mvc/Model/BehaviorInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/Binder.zep b/phalcon/Mvc/Model/Binder.zep index 01e10e7f58f..db9f5b759e1 100644 --- a/phalcon/Mvc/Model/Binder.zep +++ b/phalcon/Mvc/Model/Binder.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/Binder/BindableInterface.zep b/phalcon/Mvc/Model/Binder/BindableInterface.zep index 751163eceb7..d8fc8370fb5 100644 --- a/phalcon/Mvc/Model/Binder/BindableInterface.zep +++ b/phalcon/Mvc/Model/Binder/BindableInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/BinderInterface.zep b/phalcon/Mvc/Model/BinderInterface.zep index f8886a048d9..f298d0ed0bc 100644 --- a/phalcon/Mvc/Model/BinderInterface.zep +++ b/phalcon/Mvc/Model/BinderInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/Criteria.zep b/phalcon/Mvc/Model/Criteria.zep index bf1e5f516db..68d4db13809 100644 --- a/phalcon/Mvc/Model/Criteria.zep +++ b/phalcon/Mvc/Model/Criteria.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/CriteriaInterface.zep b/phalcon/Mvc/Model/CriteriaInterface.zep index 4ba3261f928..070dd87ffa4 100644 --- a/phalcon/Mvc/Model/CriteriaInterface.zep +++ b/phalcon/Mvc/Model/CriteriaInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/Exception.zep b/phalcon/Mvc/Model/Exception.zep index fdf5d94d329..2400ce056f3 100644 --- a/phalcon/Mvc/Model/Exception.zep +++ b/phalcon/Mvc/Model/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/Manager.zep b/phalcon/Mvc/Model/Manager.zep index 27b99d81924..28ffa344bd3 100644 --- a/phalcon/Mvc/Model/Manager.zep +++ b/phalcon/Mvc/Model/Manager.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/ManagerInterface.zep b/phalcon/Mvc/Model/ManagerInterface.zep index 868675ce08a..146d6c8cf61 100644 --- a/phalcon/Mvc/Model/ManagerInterface.zep +++ b/phalcon/Mvc/Model/ManagerInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/MetaData.zep b/phalcon/Mvc/Model/MetaData.zep index 627ec024154..a8eb22c524c 100644 --- a/phalcon/Mvc/Model/MetaData.zep +++ b/phalcon/Mvc/Model/MetaData.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/MetaData/Apcu.zep b/phalcon/Mvc/Model/MetaData/Apcu.zep index ecb31517bf4..754ec7c3dbe 100644 --- a/phalcon/Mvc/Model/MetaData/Apcu.zep +++ b/phalcon/Mvc/Model/MetaData/Apcu.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/MetaData/Libmemcached.zep b/phalcon/Mvc/Model/MetaData/Libmemcached.zep index 3c86737294d..045dfae3172 100644 --- a/phalcon/Mvc/Model/MetaData/Libmemcached.zep +++ b/phalcon/Mvc/Model/MetaData/Libmemcached.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/MetaData/Memory.zep b/phalcon/Mvc/Model/MetaData/Memory.zep index d31e6a38d51..c7e9b9cea62 100644 --- a/phalcon/Mvc/Model/MetaData/Memory.zep +++ b/phalcon/Mvc/Model/MetaData/Memory.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/MetaData/Redis.zep b/phalcon/Mvc/Model/MetaData/Redis.zep index 71b8198f262..aa68f20aae1 100644 --- a/phalcon/Mvc/Model/MetaData/Redis.zep +++ b/phalcon/Mvc/Model/MetaData/Redis.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/MetaData/Strategy/Annotations.zep b/phalcon/Mvc/Model/MetaData/Strategy/Annotations.zep index 73eb3979b78..4a6ac96addc 100644 --- a/phalcon/Mvc/Model/MetaData/Strategy/Annotations.zep +++ b/phalcon/Mvc/Model/MetaData/Strategy/Annotations.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/MetaData/Strategy/Introspection.zep b/phalcon/Mvc/Model/MetaData/Strategy/Introspection.zep index 6fda5273f23..d3952028150 100644 --- a/phalcon/Mvc/Model/MetaData/Strategy/Introspection.zep +++ b/phalcon/Mvc/Model/MetaData/Strategy/Introspection.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/MetaData/StrategyInterface.zep b/phalcon/Mvc/Model/MetaData/StrategyInterface.zep index 666027c77ba..ab1e0beec07 100644 --- a/phalcon/Mvc/Model/MetaData/StrategyInterface.zep +++ b/phalcon/Mvc/Model/MetaData/StrategyInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/MetaData/Stream.zep b/phalcon/Mvc/Model/MetaData/Stream.zep index 92e0c7b5ebd..6e023b6d594 100644 --- a/phalcon/Mvc/Model/MetaData/Stream.zep +++ b/phalcon/Mvc/Model/MetaData/Stream.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/MetaDataInterface.zep b/phalcon/Mvc/Model/MetaDataInterface.zep index 7da62908156..8e54b908c77 100644 --- a/phalcon/Mvc/Model/MetaDataInterface.zep +++ b/phalcon/Mvc/Model/MetaDataInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/Query.zep b/phalcon/Mvc/Model/Query.zep index 7ce972a89dc..b4b0587eb57 100644 --- a/phalcon/Mvc/Model/Query.zep +++ b/phalcon/Mvc/Model/Query.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/Query/Builder.zep b/phalcon/Mvc/Model/Query/Builder.zep index 9a7fb25793d..ce492395d6b 100644 --- a/phalcon/Mvc/Model/Query/Builder.zep +++ b/phalcon/Mvc/Model/Query/Builder.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/Query/BuilderInterface.zep b/phalcon/Mvc/Model/Query/BuilderInterface.zep index afd0fabc7b1..43562cd9691 100644 --- a/phalcon/Mvc/Model/Query/BuilderInterface.zep +++ b/phalcon/Mvc/Model/Query/BuilderInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/Query/Lang.zep b/phalcon/Mvc/Model/Query/Lang.zep index 029a09dcd48..a4e63c36c28 100644 --- a/phalcon/Mvc/Model/Query/Lang.zep +++ b/phalcon/Mvc/Model/Query/Lang.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/Query/Status.zep b/phalcon/Mvc/Model/Query/Status.zep index 0fcf6a6ef94..61a920d0980 100644 --- a/phalcon/Mvc/Model/Query/Status.zep +++ b/phalcon/Mvc/Model/Query/Status.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/Query/StatusInterface.zep b/phalcon/Mvc/Model/Query/StatusInterface.zep index 26d12c053db..81ea917f218 100644 --- a/phalcon/Mvc/Model/Query/StatusInterface.zep +++ b/phalcon/Mvc/Model/Query/StatusInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/QueryInterface.zep b/phalcon/Mvc/Model/QueryInterface.zep index 0b7c12590d9..a3d4b7f81fe 100644 --- a/phalcon/Mvc/Model/QueryInterface.zep +++ b/phalcon/Mvc/Model/QueryInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/Relation.zep b/phalcon/Mvc/Model/Relation.zep index 0836bfc6161..4750b9f224f 100644 --- a/phalcon/Mvc/Model/Relation.zep +++ b/phalcon/Mvc/Model/Relation.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/RelationInterface.zep b/phalcon/Mvc/Model/RelationInterface.zep index 6819ae38242..8ca84a538eb 100644 --- a/phalcon/Mvc/Model/RelationInterface.zep +++ b/phalcon/Mvc/Model/RelationInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/ResultInterface.zep b/phalcon/Mvc/Model/ResultInterface.zep index 8a774e690d6..0eba2e02a3c 100644 --- a/phalcon/Mvc/Model/ResultInterface.zep +++ b/phalcon/Mvc/Model/ResultInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/Resultset.zep b/phalcon/Mvc/Model/Resultset.zep index 4e141803156..14472bea75f 100644 --- a/phalcon/Mvc/Model/Resultset.zep +++ b/phalcon/Mvc/Model/Resultset.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/Resultset/Complex.zep b/phalcon/Mvc/Model/Resultset/Complex.zep index 9655c214733..e50834c436a 100644 --- a/phalcon/Mvc/Model/Resultset/Complex.zep +++ b/phalcon/Mvc/Model/Resultset/Complex.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/Resultset/Simple.zep b/phalcon/Mvc/Model/Resultset/Simple.zep index 713613f3a47..f49f1c5bf35 100644 --- a/phalcon/Mvc/Model/Resultset/Simple.zep +++ b/phalcon/Mvc/Model/Resultset/Simple.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/ResultsetInterface.zep b/phalcon/Mvc/Model/ResultsetInterface.zep index e3ba5ffa424..fa5c5cad7b1 100644 --- a/phalcon/Mvc/Model/ResultsetInterface.zep +++ b/phalcon/Mvc/Model/ResultsetInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/Row.zep b/phalcon/Mvc/Model/Row.zep index 2d6106e1391..dccb8344e45 100644 --- a/phalcon/Mvc/Model/Row.zep +++ b/phalcon/Mvc/Model/Row.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/Transaction.zep b/phalcon/Mvc/Model/Transaction.zep index 75bfaa210f5..85fa38ec8db 100644 --- a/phalcon/Mvc/Model/Transaction.zep +++ b/phalcon/Mvc/Model/Transaction.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/Transaction/Exception.zep b/phalcon/Mvc/Model/Transaction/Exception.zep index 1b3f9a83adb..be43768c166 100644 --- a/phalcon/Mvc/Model/Transaction/Exception.zep +++ b/phalcon/Mvc/Model/Transaction/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/Transaction/Failed.zep b/phalcon/Mvc/Model/Transaction/Failed.zep index ab58d9a997a..1b2b625cf7a 100644 --- a/phalcon/Mvc/Model/Transaction/Failed.zep +++ b/phalcon/Mvc/Model/Transaction/Failed.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/Transaction/Manager.zep b/phalcon/Mvc/Model/Transaction/Manager.zep index d3b513a9b6f..8780c835b74 100644 --- a/phalcon/Mvc/Model/Transaction/Manager.zep +++ b/phalcon/Mvc/Model/Transaction/Manager.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/Transaction/ManagerInterface.zep b/phalcon/Mvc/Model/Transaction/ManagerInterface.zep index e6bd389eab3..b07ddc39843 100644 --- a/phalcon/Mvc/Model/Transaction/ManagerInterface.zep +++ b/phalcon/Mvc/Model/Transaction/ManagerInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/TransactionInterface.zep b/phalcon/Mvc/Model/TransactionInterface.zep index 2d10ec4d3ab..59e413e06d0 100644 --- a/phalcon/Mvc/Model/TransactionInterface.zep +++ b/phalcon/Mvc/Model/TransactionInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Model/ValidationFailed.zep b/phalcon/Mvc/Model/ValidationFailed.zep index 40cf3fb2464..f2f7a44cba8 100644 --- a/phalcon/Mvc/Model/ValidationFailed.zep +++ b/phalcon/Mvc/Model/ValidationFailed.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/ModuleDefinitionInterface.zep b/phalcon/Mvc/ModuleDefinitionInterface.zep index 9a5a7c744c3..9f0fde06745 100644 --- a/phalcon/Mvc/ModuleDefinitionInterface.zep +++ b/phalcon/Mvc/ModuleDefinitionInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Router.zep b/phalcon/Mvc/Router.zep index 838cbe8a54d..96847abd163 100644 --- a/phalcon/Mvc/Router.zep +++ b/phalcon/Mvc/Router.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Router/Annotations.zep b/phalcon/Mvc/Router/Annotations.zep index 776fcad34a1..6cdeb39acf8 100644 --- a/phalcon/Mvc/Router/Annotations.zep +++ b/phalcon/Mvc/Router/Annotations.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Router/Exception.zep b/phalcon/Mvc/Router/Exception.zep index 9433b6e5a1b..3ff43b606ac 100644 --- a/phalcon/Mvc/Router/Exception.zep +++ b/phalcon/Mvc/Router/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Router/Group.zep b/phalcon/Mvc/Router/Group.zep index 87fc8e5d4b5..02214228d6b 100644 --- a/phalcon/Mvc/Router/Group.zep +++ b/phalcon/Mvc/Router/Group.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Router/GroupInterface.zep b/phalcon/Mvc/Router/GroupInterface.zep index f64a0410f77..93e8fa577e2 100644 --- a/phalcon/Mvc/Router/GroupInterface.zep +++ b/phalcon/Mvc/Router/GroupInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Router/Route.zep b/phalcon/Mvc/Router/Route.zep index 5e69dd7421b..b5675aa9043 100644 --- a/phalcon/Mvc/Router/Route.zep +++ b/phalcon/Mvc/Router/Route.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/Router/RouteInterface.zep b/phalcon/Mvc/Router/RouteInterface.zep index 23b7fe2567b..defd581db93 100644 --- a/phalcon/Mvc/Router/RouteInterface.zep +++ b/phalcon/Mvc/Router/RouteInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/RouterInterface.zep b/phalcon/Mvc/RouterInterface.zep index 03fe082fade..53ce4a0ecb3 100644 --- a/phalcon/Mvc/RouterInterface.zep +++ b/phalcon/Mvc/RouterInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/View.zep b/phalcon/Mvc/View.zep index e661e1207e6..20676111ab6 100644 --- a/phalcon/Mvc/View.zep +++ b/phalcon/Mvc/View.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/View/Engine/AbstractEngine.zep b/phalcon/Mvc/View/Engine/AbstractEngine.zep index e244596df19..a193da8ee21 100644 --- a/phalcon/Mvc/View/Engine/AbstractEngine.zep +++ b/phalcon/Mvc/View/Engine/AbstractEngine.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/View/Engine/EngineInterface.zep b/phalcon/Mvc/View/Engine/EngineInterface.zep index 2beaa63068c..fc4d412a3a3 100644 --- a/phalcon/Mvc/View/Engine/EngineInterface.zep +++ b/phalcon/Mvc/View/Engine/EngineInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/View/Engine/Php.zep b/phalcon/Mvc/View/Engine/Php.zep index 62207099745..d85101b5ba1 100644 --- a/phalcon/Mvc/View/Engine/Php.zep +++ b/phalcon/Mvc/View/Engine/Php.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/View/Engine/Volt.zep b/phalcon/Mvc/View/Engine/Volt.zep index 3b7900d08e4..b9efaea41eb 100644 --- a/phalcon/Mvc/View/Engine/Volt.zep +++ b/phalcon/Mvc/View/Engine/Volt.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/View/Engine/Volt/Compiler.zep b/phalcon/Mvc/View/Engine/Volt/Compiler.zep index f4a90380af5..7896d543800 100644 --- a/phalcon/Mvc/View/Engine/Volt/Compiler.zep +++ b/phalcon/Mvc/View/Engine/Volt/Compiler.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/View/Engine/Volt/Exception.zep b/phalcon/Mvc/View/Engine/Volt/Exception.zep index 381b91a982e..ba53335ce4e 100644 --- a/phalcon/Mvc/View/Engine/Volt/Exception.zep +++ b/phalcon/Mvc/View/Engine/Volt/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/View/Exception.zep b/phalcon/Mvc/View/Exception.zep index 12fe258cc9e..7c83e6b09ce 100644 --- a/phalcon/Mvc/View/Exception.zep +++ b/phalcon/Mvc/View/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/View/Simple.zep b/phalcon/Mvc/View/Simple.zep index 54fa5b79d14..d09f627cb4d 100644 --- a/phalcon/Mvc/View/Simple.zep +++ b/phalcon/Mvc/View/Simple.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/ViewBaseInterface.zep b/phalcon/Mvc/ViewBaseInterface.zep index c078ff25f42..b710dbb6e9c 100644 --- a/phalcon/Mvc/ViewBaseInterface.zep +++ b/phalcon/Mvc/ViewBaseInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Mvc/ViewInterface.zep b/phalcon/Mvc/ViewInterface.zep index ca36c22071a..0f811d89cd5 100644 --- a/phalcon/Mvc/ViewInterface.zep +++ b/phalcon/Mvc/ViewInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Paginator/Adapter/AbstractAdapter.zep b/phalcon/Paginator/Adapter/AbstractAdapter.zep index df566bfd313..f2910922a94 100644 --- a/phalcon/Paginator/Adapter/AbstractAdapter.zep +++ b/phalcon/Paginator/Adapter/AbstractAdapter.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Paginator/Adapter/AdapterInterface.zep b/phalcon/Paginator/Adapter/AdapterInterface.zep index 393b593e03b..98b27facf66 100644 --- a/phalcon/Paginator/Adapter/AdapterInterface.zep +++ b/phalcon/Paginator/Adapter/AdapterInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Paginator/Adapter/Model.zep b/phalcon/Paginator/Adapter/Model.zep index fd0c44136ac..6871b80db5c 100644 --- a/phalcon/Paginator/Adapter/Model.zep +++ b/phalcon/Paginator/Adapter/Model.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Paginator/Adapter/NativeArray.zep b/phalcon/Paginator/Adapter/NativeArray.zep index 8ccab3bd15d..a15c964b5c2 100644 --- a/phalcon/Paginator/Adapter/NativeArray.zep +++ b/phalcon/Paginator/Adapter/NativeArray.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Paginator/Adapter/QueryBuilder.zep b/phalcon/Paginator/Adapter/QueryBuilder.zep index 0206fce2f0b..c5ec0f387b4 100644 --- a/phalcon/Paginator/Adapter/QueryBuilder.zep +++ b/phalcon/Paginator/Adapter/QueryBuilder.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Paginator/Exception.zep b/phalcon/Paginator/Exception.zep index 066bde994f2..181dd91e1e3 100644 --- a/phalcon/Paginator/Exception.zep +++ b/phalcon/Paginator/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Paginator/PaginatorFactory.zep b/phalcon/Paginator/PaginatorFactory.zep index e4e6a196223..2a9967ffba6 100644 --- a/phalcon/Paginator/PaginatorFactory.zep +++ b/phalcon/Paginator/PaginatorFactory.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Paginator/Repository.zep b/phalcon/Paginator/Repository.zep index 37d2c66af55..03cc2ca8ada 100644 --- a/phalcon/Paginator/Repository.zep +++ b/phalcon/Paginator/Repository.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Paginator/RepositoryInterface.zep b/phalcon/Paginator/RepositoryInterface.zep index fd60f2dbd12..86fdf386cd4 100644 --- a/phalcon/Paginator/RepositoryInterface.zep +++ b/phalcon/Paginator/RepositoryInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Plugin.zep b/phalcon/Plugin.zep index 8bcbdd06421..0359cd7f579 100644 --- a/phalcon/Plugin.zep +++ b/phalcon/Plugin.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Registry.zep b/phalcon/Registry.zep index 028bfd96d69..5d57e1fd2a6 100644 --- a/phalcon/Registry.zep +++ b/phalcon/Registry.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Security.zep b/phalcon/Security.zep index b6218886a91..4c8e1d75828 100644 --- a/phalcon/Security.zep +++ b/phalcon/Security.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Security/Exception.zep b/phalcon/Security/Exception.zep index 96c4b90d8e9..16191189a4e 100644 --- a/phalcon/Security/Exception.zep +++ b/phalcon/Security/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Security/Random.zep b/phalcon/Security/Random.zep index f37f37b9f9d..5d269675158 100644 --- a/phalcon/Security/Random.zep +++ b/phalcon/Security/Random.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Storage/Adapter/AbstractAdapter.zep b/phalcon/Storage/Adapter/AbstractAdapter.zep index 4bcd565aefd..4b2e2dab8f0 100644 --- a/phalcon/Storage/Adapter/AbstractAdapter.zep +++ b/phalcon/Storage/Adapter/AbstractAdapter.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Storage/Adapter/AdapterInterface.zep b/phalcon/Storage/Adapter/AdapterInterface.zep index 37c3d4a9eba..215dc7c3252 100644 --- a/phalcon/Storage/Adapter/AdapterInterface.zep +++ b/phalcon/Storage/Adapter/AdapterInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Storage/Adapter/Apcu.zep b/phalcon/Storage/Adapter/Apcu.zep index 8cd6b671f4a..0ea8d34f5b2 100644 --- a/phalcon/Storage/Adapter/Apcu.zep +++ b/phalcon/Storage/Adapter/Apcu.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Storage/Adapter/Libmemcached.zep b/phalcon/Storage/Adapter/Libmemcached.zep index f82fb51578d..25258b93a89 100644 --- a/phalcon/Storage/Adapter/Libmemcached.zep +++ b/phalcon/Storage/Adapter/Libmemcached.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Storage/Adapter/Memory.zep b/phalcon/Storage/Adapter/Memory.zep index 984ae8819b4..2e55d8a28e5 100644 --- a/phalcon/Storage/Adapter/Memory.zep +++ b/phalcon/Storage/Adapter/Memory.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Storage/Adapter/Redis.zep b/phalcon/Storage/Adapter/Redis.zep index af08ae33ec9..5138655e169 100644 --- a/phalcon/Storage/Adapter/Redis.zep +++ b/phalcon/Storage/Adapter/Redis.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Storage/Adapter/Stream.zep b/phalcon/Storage/Adapter/Stream.zep index 0fe85faa332..cb9785d1cb8 100644 --- a/phalcon/Storage/Adapter/Stream.zep +++ b/phalcon/Storage/Adapter/Stream.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Storage/AdapterFactory.zep b/phalcon/Storage/AdapterFactory.zep index a3310be5b2a..47b514f535d 100644 --- a/phalcon/Storage/AdapterFactory.zep +++ b/phalcon/Storage/AdapterFactory.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Storage/Exception.zep b/phalcon/Storage/Exception.zep index 2088620bcef..e1b0943cd84 100644 --- a/phalcon/Storage/Exception.zep +++ b/phalcon/Storage/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Storage/Serializer/AbstractSerializer.zep b/phalcon/Storage/Serializer/AbstractSerializer.zep index 36c3cd57611..f610ac809d5 100644 --- a/phalcon/Storage/Serializer/AbstractSerializer.zep +++ b/phalcon/Storage/Serializer/AbstractSerializer.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Storage/Serializer/Base64.zep b/phalcon/Storage/Serializer/Base64.zep index e536e849483..884585df710 100644 --- a/phalcon/Storage/Serializer/Base64.zep +++ b/phalcon/Storage/Serializer/Base64.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Storage/Serializer/Igbinary.zep b/phalcon/Storage/Serializer/Igbinary.zep index d1adac1ea77..ba9860b8600 100644 --- a/phalcon/Storage/Serializer/Igbinary.zep +++ b/phalcon/Storage/Serializer/Igbinary.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Storage/Serializer/Json.zep b/phalcon/Storage/Serializer/Json.zep index 8a8ce5b06cb..c9004085ced 100644 --- a/phalcon/Storage/Serializer/Json.zep +++ b/phalcon/Storage/Serializer/Json.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Storage/Serializer/Msgpack.zep b/phalcon/Storage/Serializer/Msgpack.zep index 3068d6e6451..809b8d40fc1 100644 --- a/phalcon/Storage/Serializer/Msgpack.zep +++ b/phalcon/Storage/Serializer/Msgpack.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Storage/Serializer/None.zep b/phalcon/Storage/Serializer/None.zep index 590ec38be42..64fdf797e4c 100644 --- a/phalcon/Storage/Serializer/None.zep +++ b/phalcon/Storage/Serializer/None.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Storage/Serializer/Php.zep b/phalcon/Storage/Serializer/Php.zep index d9c081468f0..8d344540cc0 100644 --- a/phalcon/Storage/Serializer/Php.zep +++ b/phalcon/Storage/Serializer/Php.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Storage/Serializer/SerializerInterface.zep b/phalcon/Storage/Serializer/SerializerInterface.zep index 865be475858..03ad24f1fcf 100644 --- a/phalcon/Storage/Serializer/SerializerInterface.zep +++ b/phalcon/Storage/Serializer/SerializerInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Storage/SerializerFactory.zep b/phalcon/Storage/SerializerFactory.zep index b3fbd5f7cce..26816683425 100644 --- a/phalcon/Storage/SerializerFactory.zep +++ b/phalcon/Storage/SerializerFactory.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Tag.zep b/phalcon/Tag.zep index 44222fec0c9..d699f92ae3b 100644 --- a/phalcon/Tag.zep +++ b/phalcon/Tag.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -785,11 +785,11 @@ class Tag * ] * ); * - * echo Phalcon\Tag::linkTo("http://phalconphp.com/", "Phalcon", false); + * echo Phalcon\Tag::linkTo("http://phalcon.io/", "Phalcon", false); * * echo Phalcon\Tag::linkTo( * [ - * "http://phalconphp.com/", + * "http://phalcon.io/", * "Phalcon Home", * false, * ] @@ -797,7 +797,7 @@ class Tag * * echo Phalcon\Tag::linkTo( * [ - * "http://phalconphp.com/", + * "http://phalcon.io/", * "Phalcon Home", * "local" => false, * ] @@ -805,7 +805,7 @@ class Tag * * echo Phalcon\Tag::linkTo( * [ - * "action" => "http://phalconphp.com/", + * "action" => "http://phalcon.io/", * "text" => "Phalcon Home", * "local" => false, * "target" => "_new" diff --git a/phalcon/Tag/Exception.zep b/phalcon/Tag/Exception.zep index 3bb90ac6836..c32474f39d7 100644 --- a/phalcon/Tag/Exception.zep +++ b/phalcon/Tag/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Tag/Select.zep b/phalcon/Tag/Select.zep index 10dd99b7195..e2f6e38f9aa 100644 --- a/phalcon/Tag/Select.zep +++ b/phalcon/Tag/Select.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Text.zep b/phalcon/Text.zep index 487c16e2f0e..606c83a7814 100644 --- a/phalcon/Text.zep +++ b/phalcon/Text.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Translate/Adapter/AbstractAdapter.zep b/phalcon/Translate/Adapter/AbstractAdapter.zep index d401516926a..891bad5398f 100644 --- a/phalcon/Translate/Adapter/AbstractAdapter.zep +++ b/phalcon/Translate/Adapter/AbstractAdapter.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Translate/Adapter/AdapterInterface.zep b/phalcon/Translate/Adapter/AdapterInterface.zep index 0a59c8c7316..7950e94d7fc 100644 --- a/phalcon/Translate/Adapter/AdapterInterface.zep +++ b/phalcon/Translate/Adapter/AdapterInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Translate/Adapter/Csv.zep b/phalcon/Translate/Adapter/Csv.zep index 0ce3c153b30..2d499583684 100644 --- a/phalcon/Translate/Adapter/Csv.zep +++ b/phalcon/Translate/Adapter/Csv.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Translate/Adapter/Gettext.zep b/phalcon/Translate/Adapter/Gettext.zep index 448feb39336..a03c4530c09 100644 --- a/phalcon/Translate/Adapter/Gettext.zep +++ b/phalcon/Translate/Adapter/Gettext.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Translate/Adapter/NativeArray.zep b/phalcon/Translate/Adapter/NativeArray.zep index 147756b452f..ff652689cc4 100644 --- a/phalcon/Translate/Adapter/NativeArray.zep +++ b/phalcon/Translate/Adapter/NativeArray.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Translate/Exception.zep b/phalcon/Translate/Exception.zep index caad6818a38..27421d6e991 100644 --- a/phalcon/Translate/Exception.zep +++ b/phalcon/Translate/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Translate/Interpolator/AssociativeArray.zep b/phalcon/Translate/Interpolator/AssociativeArray.zep index 44553bd13b7..5d72bb262ad 100644 --- a/phalcon/Translate/Interpolator/AssociativeArray.zep +++ b/phalcon/Translate/Interpolator/AssociativeArray.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Translate/Interpolator/IndexedArray.zep b/phalcon/Translate/Interpolator/IndexedArray.zep index 5e151eb0f19..0deda1b56fb 100644 --- a/phalcon/Translate/Interpolator/IndexedArray.zep +++ b/phalcon/Translate/Interpolator/IndexedArray.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Translate/Interpolator/InterpolatorInterface.zep b/phalcon/Translate/Interpolator/InterpolatorInterface.zep index a8f7306c6e4..756ee6efd4c 100644 --- a/phalcon/Translate/Interpolator/InterpolatorInterface.zep +++ b/phalcon/Translate/Interpolator/InterpolatorInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Translate/InterpolatorFactory.zep b/phalcon/Translate/InterpolatorFactory.zep index 921f6366b80..9050fa9a2fd 100644 --- a/phalcon/Translate/InterpolatorFactory.zep +++ b/phalcon/Translate/InterpolatorFactory.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Translate/TranslateFactory.zep b/phalcon/Translate/TranslateFactory.zep index 1b65b9eec27..ec89a56dff8 100644 --- a/phalcon/Translate/TranslateFactory.zep +++ b/phalcon/Translate/TranslateFactory.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Url.zep b/phalcon/Url.zep index 9e95e6f4e71..d0c63dbefea 100644 --- a/phalcon/Url.zep +++ b/phalcon/Url.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -85,7 +85,7 @@ class Url implements UrlInterface, InjectionAwareInterface * * // Generate an absolute URL by setting the third parameter as false. * echo $url->get( - * "https://phalconphp.com/", + * "https://phalcon.io/", * null, * false * ); diff --git a/phalcon/Url/Exception.zep b/phalcon/Url/Exception.zep index d0dc2484781..3e067a5abd3 100644 --- a/phalcon/Url/Exception.zep +++ b/phalcon/Url/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Url/UrlInterface.zep b/phalcon/Url/UrlInterface.zep index 09b66aad5f6..5e483ad4fe7 100644 --- a/phalcon/Url/UrlInterface.zep +++ b/phalcon/Url/UrlInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation.zep b/phalcon/Validation.zep index 65221fa37b4..f9171e8d268 100644 --- a/phalcon/Validation.zep +++ b/phalcon/Validation.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/AbstractCombinedFieldsValidator.zep b/phalcon/Validation/AbstractCombinedFieldsValidator.zep index 94f18be5a61..c283775766b 100644 --- a/phalcon/Validation/AbstractCombinedFieldsValidator.zep +++ b/phalcon/Validation/AbstractCombinedFieldsValidator.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/AbstractValidator.zep b/phalcon/Validation/AbstractValidator.zep index f04b92ca9d7..4f41bf5d774 100644 --- a/phalcon/Validation/AbstractValidator.zep +++ b/phalcon/Validation/AbstractValidator.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/AbstractValidatorComposite.zep b/phalcon/Validation/AbstractValidatorComposite.zep index 0c1415a9305..2ce9ece51ce 100644 --- a/phalcon/Validation/AbstractValidatorComposite.zep +++ b/phalcon/Validation/AbstractValidatorComposite.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/Exception.zep b/phalcon/Validation/Exception.zep index 7024c706936..f1230b030c3 100644 --- a/phalcon/Validation/Exception.zep +++ b/phalcon/Validation/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/ValidationInterface.zep b/phalcon/Validation/ValidationInterface.zep index 3fadd39123d..00a02c93290 100644 --- a/phalcon/Validation/ValidationInterface.zep +++ b/phalcon/Validation/ValidationInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/Validator/Alnum.zep b/phalcon/Validation/Validator/Alnum.zep index a46a35f6a2e..f5f25d3b3bd 100644 --- a/phalcon/Validation/Validator/Alnum.zep +++ b/phalcon/Validation/Validator/Alnum.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/Validator/Alpha.zep b/phalcon/Validation/Validator/Alpha.zep index dae1e0403a1..809885e885c 100644 --- a/phalcon/Validation/Validator/Alpha.zep +++ b/phalcon/Validation/Validator/Alpha.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/Validator/Between.zep b/phalcon/Validation/Validator/Between.zep index d92ed9b1da6..d92699cb676 100644 --- a/phalcon/Validation/Validator/Between.zep +++ b/phalcon/Validation/Validator/Between.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/Validator/Callback.zep b/phalcon/Validation/Validator/Callback.zep index 049fcafe88a..9bb2b0cdba0 100644 --- a/phalcon/Validation/Validator/Callback.zep +++ b/phalcon/Validation/Validator/Callback.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/Validator/Confirmation.zep b/phalcon/Validation/Validator/Confirmation.zep index 1fe7e1b06ef..cbaafff8428 100644 --- a/phalcon/Validation/Validator/Confirmation.zep +++ b/phalcon/Validation/Validator/Confirmation.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/Validator/CreditCard.zep b/phalcon/Validation/Validator/CreditCard.zep index ff23579b4c7..a2b902930f8 100644 --- a/phalcon/Validation/Validator/CreditCard.zep +++ b/phalcon/Validation/Validator/CreditCard.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/Validator/Date.zep b/phalcon/Validation/Validator/Date.zep index 9cfba9c0dee..c33883b74b8 100644 --- a/phalcon/Validation/Validator/Date.zep +++ b/phalcon/Validation/Validator/Date.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/Validator/Digit.zep b/phalcon/Validation/Validator/Digit.zep index b0eacab7028..e7f1a22b50b 100644 --- a/phalcon/Validation/Validator/Digit.zep +++ b/phalcon/Validation/Validator/Digit.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/Validator/Email.zep b/phalcon/Validation/Validator/Email.zep index d545bd04bc3..02509bf7e79 100644 --- a/phalcon/Validation/Validator/Email.zep +++ b/phalcon/Validation/Validator/Email.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/Validator/Exception.zep b/phalcon/Validation/Validator/Exception.zep index c3f03e1bdd9..731624fd194 100644 --- a/phalcon/Validation/Validator/Exception.zep +++ b/phalcon/Validation/Validator/Exception.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/Validator/ExclusionIn.zep b/phalcon/Validation/Validator/ExclusionIn.zep index 0e204fb9acc..4012b2a8289 100644 --- a/phalcon/Validation/Validator/ExclusionIn.zep +++ b/phalcon/Validation/Validator/ExclusionIn.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/Validator/File.zep b/phalcon/Validation/Validator/File.zep index b08a7f29030..c9e5b5dbdb6 100644 --- a/phalcon/Validation/Validator/File.zep +++ b/phalcon/Validation/Validator/File.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/Validator/File/AbstractFile.zep b/phalcon/Validation/Validator/File/AbstractFile.zep index 5288cfc7699..8280ae93002 100644 --- a/phalcon/Validation/Validator/File/AbstractFile.zep +++ b/phalcon/Validation/Validator/File/AbstractFile.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/Validator/File/MimeType.zep b/phalcon/Validation/Validator/File/MimeType.zep index eb0044d673e..cf03f7e9bbe 100644 --- a/phalcon/Validation/Validator/File/MimeType.zep +++ b/phalcon/Validation/Validator/File/MimeType.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/Validator/File/Resolution/Equal.zep b/phalcon/Validation/Validator/File/Resolution/Equal.zep index 05ed351297b..37c0bc52da8 100644 --- a/phalcon/Validation/Validator/File/Resolution/Equal.zep +++ b/phalcon/Validation/Validator/File/Resolution/Equal.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/Validator/File/Resolution/Max.zep b/phalcon/Validation/Validator/File/Resolution/Max.zep index 8f8ce769d68..619770b0dc7 100644 --- a/phalcon/Validation/Validator/File/Resolution/Max.zep +++ b/phalcon/Validation/Validator/File/Resolution/Max.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/Validator/File/Resolution/Min.zep b/phalcon/Validation/Validator/File/Resolution/Min.zep index dcc86bdfbaa..7fb0a6990f8 100644 --- a/phalcon/Validation/Validator/File/Resolution/Min.zep +++ b/phalcon/Validation/Validator/File/Resolution/Min.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/Validator/File/Size/Equal.zep b/phalcon/Validation/Validator/File/Size/Equal.zep index dd487d23bf8..e8ea0f3cf79 100644 --- a/phalcon/Validation/Validator/File/Size/Equal.zep +++ b/phalcon/Validation/Validator/File/Size/Equal.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/Validator/File/Size/Max.zep b/phalcon/Validation/Validator/File/Size/Max.zep index 52524664256..fdb8769ae42 100644 --- a/phalcon/Validation/Validator/File/Size/Max.zep +++ b/phalcon/Validation/Validator/File/Size/Max.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/Validator/File/Size/Min.zep b/phalcon/Validation/Validator/File/Size/Min.zep index 1880a0f0a37..94b88690429 100644 --- a/phalcon/Validation/Validator/File/Size/Min.zep +++ b/phalcon/Validation/Validator/File/Size/Min.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/Validator/Identical.zep b/phalcon/Validation/Validator/Identical.zep index fde2472c2d5..955aeee3945 100644 --- a/phalcon/Validation/Validator/Identical.zep +++ b/phalcon/Validation/Validator/Identical.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/Validator/InclusionIn.zep b/phalcon/Validation/Validator/InclusionIn.zep index 4abcbb5a798..e9e95646d15 100644 --- a/phalcon/Validation/Validator/InclusionIn.zep +++ b/phalcon/Validation/Validator/InclusionIn.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/Validator/Ip.zep b/phalcon/Validation/Validator/Ip.zep index dd9f7da3dd2..fa47efec4e2 100644 --- a/phalcon/Validation/Validator/Ip.zep +++ b/phalcon/Validation/Validator/Ip.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/Validator/Numericality.zep b/phalcon/Validation/Validator/Numericality.zep index 1ae30704d9d..872aefb4a31 100644 --- a/phalcon/Validation/Validator/Numericality.zep +++ b/phalcon/Validation/Validator/Numericality.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/Validator/PresenceOf.zep b/phalcon/Validation/Validator/PresenceOf.zep index 99a9a82d1ea..427007c09fe 100644 --- a/phalcon/Validation/Validator/PresenceOf.zep +++ b/phalcon/Validation/Validator/PresenceOf.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/Validator/Regex.zep b/phalcon/Validation/Validator/Regex.zep index 1f0f750783f..a3ecb9d77ee 100644 --- a/phalcon/Validation/Validator/Regex.zep +++ b/phalcon/Validation/Validator/Regex.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/Validator/StringLength.zep b/phalcon/Validation/Validator/StringLength.zep index 070453448f2..d68c6fc3d85 100644 --- a/phalcon/Validation/Validator/StringLength.zep +++ b/phalcon/Validation/Validator/StringLength.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/Validator/StringLength/Max.zep b/phalcon/Validation/Validator/StringLength/Max.zep index aa3ec272b16..3d067c4ba38 100644 --- a/phalcon/Validation/Validator/StringLength/Max.zep +++ b/phalcon/Validation/Validator/StringLength/Max.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/Validator/StringLength/Min.zep b/phalcon/Validation/Validator/StringLength/Min.zep index e1dbbaa7327..4bd9bc9dfdd 100644 --- a/phalcon/Validation/Validator/StringLength/Min.zep +++ b/phalcon/Validation/Validator/StringLength/Min.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/Validator/Uniqueness.zep b/phalcon/Validation/Validator/Uniqueness.zep index 6b50850b778..f553eb3670d 100644 --- a/phalcon/Validation/Validator/Uniqueness.zep +++ b/phalcon/Validation/Validator/Uniqueness.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/Validator/Url.zep b/phalcon/Validation/Validator/Url.zep index 73c8e7a4a25..47bd22237c2 100644 --- a/phalcon/Validation/Validator/Url.zep +++ b/phalcon/Validation/Validator/Url.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/ValidatorCompositeInterface.zep b/phalcon/Validation/ValidatorCompositeInterface.zep index a0c04c4db56..f8876510fa3 100644 --- a/phalcon/Validation/ValidatorCompositeInterface.zep +++ b/phalcon/Validation/ValidatorCompositeInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/ValidatorFactory.zep b/phalcon/Validation/ValidatorFactory.zep index aa04c8ccfd6..251ee61e00f 100644 --- a/phalcon/Validation/ValidatorFactory.zep +++ b/phalcon/Validation/ValidatorFactory.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Validation/ValidatorInterface.zep b/phalcon/Validation/ValidatorInterface.zep index 6951f8336f7..5aa05607033 100644 --- a/phalcon/Validation/ValidatorInterface.zep +++ b/phalcon/Validation/ValidatorInterface.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/phalcon/Version.zep b/phalcon/Version.zep index 985642e9ffb..cf7a62b0969 100644 --- a/phalcon/Version.zep +++ b/phalcon/Version.zep @@ -2,7 +2,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. From da181472fb94ad60dfc6e30ba2fde8e1e5a354ce Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Sun, 25 Aug 2019 14:26:28 -0400 Subject: [PATCH 021/202] [4.0.x] - Updated the domain name in the comments --- tests/_ci/generate-test-stubs.php | 6 +-- tests/_ci/nanobox/setup-dbs-nanobox.sh | 2 +- .../_data/fixtures/Acl/TestComponentAware.php | 2 +- tests/_data/fixtures/Acl/TestRoleAware.php | 2 +- .../fixtures/Acl/TestRoleComponentAware.php | 2 +- .../_data/fixtures/Annotations/TestClass.php | 2 +- .../fixtures/Annotations/TestClassNs.php | 2 +- .../fixtures/Annotations/TestInvalid.php | 2 +- tests/_data/fixtures/Assets/CustomTag.php | 2 +- tests/_data/fixtures/Assets/TrimFilter.php | 4 +- .../_data/fixtures/Assets/UppercaseFilter.php | 4 +- .../fixtures/Cache/Adapter/Libmemcached.php | 2 +- tests/_data/fixtures/Db/Profiler.php | 2 +- tests/_data/fixtures/Db/ProfilerListener.php | 2 +- .../_data/fixtures/Di/InjectableComponent.php | 8 ++-- tests/_data/fixtures/Di/SimpleComponent.php | 8 ++-- tests/_data/fixtures/Di/SomeComponent.php | 8 ++-- .../_data/fixtures/Di/SomeServiceProvider.php | 4 +- tests/_data/fixtures/Events/ComponentX.php | 2 +- tests/_data/fixtures/Events/ComponentY.php | 2 +- tests/_data/fixtures/Filter/Sanitize/IPv4.php | 2 +- tests/_data/fixtures/Firewall/BindingRole.php | 2 +- tests/_data/fixtures/Firewall/RoleObject.php | 2 +- .../Forms/ContactFormPublicProperties.php | 2 +- .../Forms/ContactFormSettersGetters.php | 2 +- tests/_data/fixtures/Forms/ValidationForm.php | 2 +- tests/_data/fixtures/Helpers/TagHelper.php | 18 ++++---- tests/_data/fixtures/Helpers/TagSetup.php | 6 +-- .../fixtures/Helpers/TranslateCsvHelper.php | 10 ++--- .../Helpers/TranslateGettextHelper.php | 10 ++--- .../Helpers/TranslateNativeArrayHelper.php | 12 +++--- tests/_data/fixtures/Http/PhpStream.php | 2 +- .../Http/Server/MiddlewareFixture.php | 2 +- .../Http/Server/RequestHandlerFixture.php | 2 +- .../Listener/CustomAuthorizationListener.php | 2 +- .../_data/fixtures/Listener/FirstListener.php | 2 +- .../NegotiateAuthorizationListener.php | 2 +- .../fixtures/Listener/SecondListener.php | 2 +- .../_data/fixtures/Listener/ThirdListener.php | 2 +- .../fixtures/Listener/ViewCompileListener.php | 2 +- .../fixtures/Micro/HttpMethodHandler.php | 2 +- tests/_data/fixtures/Micro/MyMiddleware.php | 2 +- .../_data/fixtures/Micro/MyMiddlewareStop.php | 2 +- tests/_data/fixtures/Micro/RestHandler.php | 2 +- .../fixtures/Mvc/View/AfterRenderListener.php | 2 +- .../fixtures/Mvc/View/Engine/Mustache.php | 2 +- tests/_data/fixtures/Mvc/View/Engine/Twig.php | 2 +- .../fixtures/Mvc/View/IteratorObject.php | 2 +- tests/_data/fixtures/Service/HelloService.php | 2 +- .../fixtures/Storage/Adapter/Libmemcached.php | 2 +- tests/_data/fixtures/Traits/ApcuTrait.php | 2 +- .../_data/fixtures/Traits/Cache/FileTrait.php | 2 +- .../Traits/Cache/LibmemcachedTrait.php | 2 +- .../_data/fixtures/Traits/CollectionTrait.php | 2 +- tests/_data/fixtures/Traits/ConfigTrait.php | 26 ++++++------ tests/_data/fixtures/Traits/CookieTrait.php | 2 +- tests/_data/fixtures/Traits/CryptTrait.php | 2 +- tests/_data/fixtures/Traits/Db/MysqlTrait.php | 16 +++---- .../fixtures/Traits/Db/PostgresqlTrait.php | 16 +++---- tests/_data/fixtures/Traits/DiTrait.php | 2 +- tests/_data/fixtures/Traits/DialectTrait.php | 2 +- tests/_data/fixtures/Traits/FactoryTrait.php | 2 +- tests/_data/fixtures/Traits/FirewallTrait.php | 2 +- tests/_data/fixtures/Traits/GdTrait.php | 2 +- tests/_data/fixtures/Traits/ImagickTrait.php | 2 +- .../fixtures/Traits/LibmemcachedTrait.php | 2 +- tests/_data/fixtures/Traits/LoaderTrait.php | 2 +- tests/_data/fixtures/Traits/LoggerTrait.php | 2 +- tests/_data/fixtures/Traits/OptionsTrait.php | 2 +- tests/_data/fixtures/Traits/RedisTrait.php | 4 +- tests/_data/fixtures/Traits/RouterTrait.php | 2 +- .../_data/fixtures/Traits/SessionBagTrait.php | 2 +- tests/_data/fixtures/Traits/SessionTrait.php | 2 +- .../_data/fixtures/Traits/TagHelperTrait.php | 10 ++--- tests/_data/fixtures/Traits/TagSetupTrait.php | 4 +- .../fixtures/Traits/TranslateArrayTrait.php | 2 +- .../fixtures/Traits/TranslateCsvTrait.php | 2 +- .../fixtures/Traits/TranslateGettextTrait.php | 2 +- .../_data/fixtures/Traits/ValidationTrait.php | 10 ++--- tests/_data/fixtures/Traits/VersionTrait.php | 6 +-- tests/_data/fixtures/Traits/ViewTrait.php | 2 +- .../Translate/Adapter/NativeAdapter.php | 2 +- .../fixtures/controllers/AboutController.php | 2 +- .../controllers/Firewall/FourController.php | 2 +- .../controllers/Firewall/OneController.php | 2 +- .../controllers/Firewall/ThreeController.php | 2 +- .../controllers/Firewall/TwoController.php | 2 +- .../fixtures/controllers/MainController.php | 2 +- .../Micro/Collections/PersonasController.php | 2 +- .../Collections/PersonasLazyController.php | 2 +- .../fixtures/controllers/MicroController.php | 2 +- .../NamespacedAnnotationController.php | 2 +- .../controllers/ProductsController.php | 2 +- .../fixtures/controllers/RobotsController.php | 2 +- .../controllers/ViewRequestController.php | 2 +- tests/_data/fixtures/metadata/robots.php | 8 ++-- tests/_data/fixtures/models/Abonnes.php | 2 +- .../fixtures/models/AlbumORama/Albums.php | 2 +- .../fixtures/models/AlbumORama/Artists.php | 2 +- .../fixtures/models/AlbumORama/Songs.php | 2 +- .../fixtures/models/Annotations/Robot.php | 2 +- .../_data/fixtures/models/BodyParts/Body.php | 2 +- .../_data/fixtures/models/BodyParts/Head.php | 2 +- .../_data/fixtures/models/Boutique/Robots.php | 2 +- .../fixtures/models/Boutique/Robotters.php | 2 +- .../_data/fixtures/models/Cacheable/Model.php | 2 +- .../_data/fixtures/models/Cacheable/Parts.php | 2 +- .../fixtures/models/Cacheable/Robots.php | 2 +- .../fixtures/models/Cacheable/RobotsParts.php | 2 +- tests/_data/fixtures/models/Childs.php | 2 +- tests/_data/fixtures/models/Customers.php | 2 +- tests/_data/fixtures/models/Deles.php | 2 +- .../fixtures/models/Dynamic/Personas.php | 2 +- .../fixtures/models/Dynamic/Personers.php | 2 +- .../_data/fixtures/models/Dynamic/Robots.php | 2 +- tests/_data/fixtures/models/GossipRobots.php | 2 +- tests/_data/fixtures/models/I1534.php | 2 +- tests/_data/fixtures/models/Language.php | 2 +- tests/_data/fixtures/models/LanguageI18n.php | 2 +- .../fixtures/models/ModelWithStringField.php | 2 +- .../fixtures/models/News/Subscribers.php | 2 +- .../_data/fixtures/models/PackageDetails.php | 2 +- tests/_data/fixtures/models/Packages.php | 2 +- tests/_data/fixtures/models/Parts.php | 2 +- tests/_data/fixtures/models/Parts2.php | 2 +- tests/_data/fixtures/models/People.php | 2 +- tests/_data/fixtures/models/Personas.php | 2 +- tests/_data/fixtures/models/Personers.php | 2 +- tests/_data/fixtures/models/Personnes.php | 2 +- tests/_data/fixtures/models/Pessoas.php | 2 +- tests/_data/fixtures/models/Products.php | 2 +- tests/_data/fixtures/models/Prueba.php | 2 +- .../_data/fixtures/models/Relations/Deles.php | 2 +- .../fixtures/models/Relations/M2MParts.php | 2 +- .../fixtures/models/Relations/M2MRobots.php | 2 +- .../models/Relations/M2MRobotsParts.php | 2 +- .../models/Relations/RelationsParts.php | 2 +- .../models/Relations/RelationsRobots.php | 2 +- .../models/Relations/RelationsRobotsParts.php | 2 +- .../fixtures/models/Relations/Robots.php | 2 +- .../fixtures/models/Relations/RobotsParts.php | 2 +- .../fixtures/models/Relations/Robotters.php | 2 +- .../models/Relations/RobottersDeles.php | 2 +- .../fixtures/models/Relations/Some/Deles.php | 2 +- .../fixtures/models/Relations/Some/Parts.php | 2 +- .../models/Relations/Some/Products.php | 2 +- .../fixtures/models/Relations/Some/Robots.php | 2 +- .../models/Relations/Some/RobotsParts.php | 2 +- .../models/Relations/Some/Robotters.php | 2 +- .../models/Relations/Some/RobottersDeles.php | 2 +- tests/_data/fixtures/models/Robos.php | 2 +- tests/_data/fixtures/models/Robots.php | 2 +- tests/_data/fixtures/models/Robots2.php | 2 +- .../_data/fixtures/models/RobotsExtended.php | 2 +- tests/_data/fixtures/models/RobotsParts.php | 2 +- tests/_data/fixtures/models/Robotters.php | 2 +- .../_data/fixtures/models/RobottersDeles.php | 2 +- tests/_data/fixtures/models/Robotto.php | 2 +- tests/_data/fixtures/models/Select.php | 2 +- .../_data/fixtures/models/Snapshot/Parts.php | 2 +- .../fixtures/models/Snapshot/Personas.php | 2 +- .../fixtures/models/Snapshot/Requests.php | 2 +- .../_data/fixtures/models/Snapshot/Robots.php | 2 +- .../fixtures/models/Snapshot/RobotsParts.php | 2 +- .../fixtures/models/Snapshot/Robotters.php | 2 +- .../fixtures/models/Snapshot/Subscribers.php | 2 +- tests/_data/fixtures/models/Some/Deles.php | 2 +- tests/_data/fixtures/models/Some/Parts.php | 2 +- tests/_data/fixtures/models/Some/Products.php | 2 +- tests/_data/fixtures/models/Some/Robots.php | 2 +- .../fixtures/models/Some/RobotsParts.php | 2 +- .../_data/fixtures/models/Some/Robotters.php | 2 +- .../fixtures/models/Some/RobottersDeles.php | 2 +- .../fixtures/models/Statistics/AgeStats.php | 2 +- .../fixtures/models/Statistics/CityStats.php | 2 +- .../models/Statistics/CountryStats.php | 2 +- .../models/Statistics/GenderStats.php | 2 +- tests/_data/fixtures/models/Stock.php | 2 +- tests/_data/fixtures/models/Store/Parts.php | 2 +- tests/_data/fixtures/models/Store/Robots.php | 2 +- .../fixtures/models/Store/RobotsParts.php | 2 +- tests/_data/fixtures/models/Subscribers.php | 2 +- tests/_data/fixtures/models/Subscriptores.php | 2 +- tests/_data/fixtures/models/Users.php | 2 +- .../fixtures/models/Validation/Robots.php | 2 +- .../models/Validation/Subscriptores.php | 2 +- .../_data/fixtures/modules/backend/Module.php | 8 ++-- .../fixtures/modules/frontend/Module.php | 8 ++-- tests/_data/fixtures/resultsets/Stats.php | 2 +- tests/_support/Helper/PhalconCacheFile.php | 4 +- tests/_support/Helper/PhalconLibmemcached.php | 2 +- tests/_support/Helper/Unit.php | 2 +- tests/cli/Cli/Console/ConstructCest.php | 4 +- tests/cli/Cli/Console/GetModuleCest.php | 6 +-- tests/cli/Cli/Console/GetModulesCest.php | 6 +-- tests/cli/Cli/Console/GetSetDICest.php | 4 +- .../Cli/Console/GetSetDefaultModuleCest.php | 4 +- .../Cli/Console/GetSetEventsManagerCest.php | 4 +- tests/cli/Cli/Console/HandleCest.php | 4 +- tests/cli/Cli/Console/RegisterModulesCest.php | 4 +- tests/cli/Cli/Console/SetArgumentCest.php | 4 +- tests/cli/Cli/Console/UnderscoreGetCest.php | 4 +- tests/cli/Cli/ConsoleCest.php | 2 +- .../Cli/Dispatcher/CallActionMethodCest.php | 2 +- tests/cli/Cli/Dispatcher/DispatchCest.php | 4 +- tests/cli/Cli/Dispatcher/ForwardCest.php | 4 +- .../cli/Cli/Dispatcher/GetActionNameCest.php | 4 +- .../Cli/Dispatcher/GetActionSuffixCest.php | 4 +- .../Cli/Dispatcher/GetActiveMethodCest.php | 4 +- .../cli/Cli/Dispatcher/GetActiveTaskCest.php | 4 +- .../cli/Cli/Dispatcher/GetBoundModelsCest.php | 4 +- .../Dispatcher/GetDefaultNamespaceCest.php | 4 +- .../Cli/Dispatcher/GetHandlerClassCest.php | 4 +- .../Cli/Dispatcher/GetHandlerSuffixCest.php | 2 +- tests/cli/Cli/Dispatcher/GetLastTaskCest.php | 4 +- .../cli/Cli/Dispatcher/GetModelBinderCest.php | 4 +- .../cli/Cli/Dispatcher/GetModuleNameCest.php | 4 +- .../Cli/Dispatcher/GetNamespaceNameCest.php | 4 +- tests/cli/Cli/Dispatcher/GetOptionCest.php | 4 +- tests/cli/Cli/Dispatcher/GetOptionsCest.php | 4 +- tests/cli/Cli/Dispatcher/GetParamCest.php | 2 +- tests/cli/Cli/Dispatcher/GetParamsCest.php | 2 +- .../Cli/Dispatcher/GetReturnedValueCest.php | 4 +- tests/cli/Cli/Dispatcher/GetSetDICest.php | 4 +- .../Dispatcher/GetSetEventsManagerCest.php | 4 +- tests/cli/Cli/Dispatcher/GetTaskNameCest.php | 4 +- .../cli/Cli/Dispatcher/GetTaskSuffixCest.php | 4 +- tests/cli/Cli/Dispatcher/HasOptionCest.php | 4 +- tests/cli/Cli/Dispatcher/HasParamCest.php | 2 +- tests/cli/Cli/Dispatcher/IsFinishedCest.php | 4 +- .../cli/Cli/Dispatcher/SetActionNameCest.php | 4 +- .../Cli/Dispatcher/SetActionSuffixCest.php | 4 +- .../Cli/Dispatcher/SetDefaultActionCest.php | 4 +- .../Dispatcher/SetDefaultNamespaceCest.php | 4 +- .../cli/Cli/Dispatcher/SetDefaultTaskCest.php | 4 +- .../Cli/Dispatcher/SetHandlerSuffixCest.php | 4 +- .../cli/Cli/Dispatcher/SetModelBinderCest.php | 4 +- .../cli/Cli/Dispatcher/SetModuleNameCest.php | 4 +- .../Cli/Dispatcher/SetNamespaceNameCest.php | 4 +- tests/cli/Cli/Dispatcher/SetOptionsCest.php | 4 +- tests/cli/Cli/Dispatcher/SetParamCest.php | 2 +- tests/cli/Cli/Dispatcher/SetParamsCest.php | 2 +- .../Cli/Dispatcher/SetReturnedValueCest.php | 4 +- tests/cli/Cli/Dispatcher/SetTaskNameCest.php | 4 +- .../cli/Cli/Dispatcher/SetTaskSuffixCest.php | 4 +- tests/cli/Cli/Dispatcher/WasForwardedCest.php | 4 +- tests/cli/Cli/DispatcherCest.php | 2 +- tests/cli/Cli/Router/AddCest.php | 4 +- tests/cli/Cli/Router/ConstructCest.php | 4 +- tests/cli/Cli/Router/GetActionNameCest.php | 4 +- tests/cli/Cli/Router/GetMatchedRouteCest.php | 4 +- tests/cli/Cli/Router/GetMatchesCest.php | 4 +- tests/cli/Cli/Router/GetModuleNameCest.php | 4 +- tests/cli/Cli/Router/GetParamsCest.php | 4 +- tests/cli/Cli/Router/GetRouteByIdCest.php | 2 +- tests/cli/Cli/Router/GetRouteByNameCest.php | 2 +- tests/cli/Cli/Router/GetRoutesCest.php | 2 +- tests/cli/Cli/Router/GetSetDICest.php | 2 +- tests/cli/Cli/Router/GetTaskNameCest.php | 4 +- tests/cli/Cli/Router/HandleCest.php | 4 +- .../cli/Cli/Router/Route/BeforeMatchCest.php | 2 +- .../Cli/Router/Route/CompilePatternCest.php | 4 +- tests/cli/Cli/Router/Route/ConstructCest.php | 4 +- tests/cli/Cli/Router/Route/ConvertCest.php | 2 +- tests/cli/Cli/Router/Route/DelimiterCest.php | 4 +- .../Router/Route/ExtractNamedParamsCest.php | 4 +- .../Cli/Router/Route/GetBeforeMatchCest.php | 4 +- .../Router/Route/GetCompiledPatternCest.php | 4 +- .../Cli/Router/Route/GetConvertersCest.php | 4 +- .../cli/Cli/Router/Route/GetDelimiterCest.php | 4 +- .../Cli/Router/Route/GetDescriptionCest.php | 2 +- tests/cli/Cli/Router/Route/GetNameCest.php | 4 +- tests/cli/Cli/Router/Route/GetPathsCest.php | 2 +- tests/cli/Cli/Router/Route/GetPatternCest.php | 4 +- .../Cli/Router/Route/GetReversedPathsCest.php | 2 +- tests/cli/Cli/Router/Route/GetRouteIdCest.php | 4 +- .../cli/Cli/Router/Route/ReConfigureCest.php | 4 +- tests/cli/Cli/Router/Route/ResetCest.php | 4 +- .../Cli/Router/Route/SetDescriptionCest.php | 2 +- tests/cli/Cli/Router/Route/SetNameCest.php | 4 +- tests/cli/Cli/Router/SetDefaultActionCest.php | 4 +- tests/cli/Cli/Router/SetDefaultModuleCest.php | 4 +- tests/cli/Cli/Router/SetDefaultTaskCest.php | 4 +- tests/cli/Cli/Router/SetDefaultsCest.php | 4 +- tests/cli/Cli/Router/WasMatchedCest.php | 4 +- tests/cli/Cli/RouterCest.php | 2 +- tests/cli/Cli/Task/ConstructCest.php | 4 +- tests/cli/Cli/Task/GetEventsManagerCest.php | 4 +- tests/cli/Cli/Task/GetSetDICest.php | 4 +- tests/cli/Cli/Task/SetEventsManagerCest.php | 4 +- tests/cli/Cli/Task/UnderscoreGetCest.php | 4 +- tests/cli/Cli/TaskCest.php | 2 +- .../cli/Di/FactoryDefault/Cli/AttemptCest.php | 4 +- .../Di/FactoryDefault/Cli/ConstructCest.php | 6 +-- tests/cli/Di/FactoryDefault/Cli/GetCest.php | 4 +- .../Di/FactoryDefault/Cli/GetDefaultCest.php | 4 +- .../Cli/GetInternalEventsManagerCest.php | 4 +- .../cli/Di/FactoryDefault/Cli/GetRawCest.php | 4 +- .../Di/FactoryDefault/Cli/GetServiceCest.php | 4 +- .../Di/FactoryDefault/Cli/GetServicesCest.php | 4 +- .../Di/FactoryDefault/Cli/GetSharedCest.php | 4 +- tests/cli/Di/FactoryDefault/Cli/HasCest.php | 4 +- .../Di/FactoryDefault/Cli/LoadFromPhpCest.php | 4 +- .../FactoryDefault/Cli/LoadFromYamlCest.php | 4 +- .../FactoryDefault/Cli/OffsetExistsCest.php | 4 +- .../Di/FactoryDefault/Cli/OffsetGetCest.php | 4 +- .../Di/FactoryDefault/Cli/OffsetSetCest.php | 4 +- .../Di/FactoryDefault/Cli/OffsetUnsetCest.php | 4 +- .../Di/FactoryDefault/Cli/RegisterCest.php | 4 +- .../cli/Di/FactoryDefault/Cli/RemoveCest.php | 4 +- tests/cli/Di/FactoryDefault/Cli/ResetCest.php | 4 +- tests/cli/Di/FactoryDefault/Cli/SetCest.php | 4 +- .../Di/FactoryDefault/Cli/SetDefaultCest.php | 4 +- .../Cli/SetInternalEventsManagerCest.php | 4 +- .../cli/Di/FactoryDefault/Cli/SetRawCest.php | 4 +- .../Di/FactoryDefault/Cli/SetSharedCest.php | 4 +- .../FactoryDefault/Cli/UnderscoreCallCest.php | 4 +- .../Cli/WasFreshInstanceCest.php | 4 +- .../Db/Adapter/Pdo/DbDescribeMysqlCest.php | 12 +++--- .../Adapter/Pdo/DbDescribePostgresqlCest.php | 8 ++-- .../Db/Adapter/Pdo/Mysql/AddColumnCest.php | 4 +- .../Adapter/Pdo/Mysql/AddForeignKeyCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/AddIndexCest.php | 4 +- .../Adapter/Pdo/Mysql/AddPrimaryKeyCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/AffectedRowsCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/BeginCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/CloseCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/CommitCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/ConnectCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/ConstructCest.php | 4 +- .../Pdo/Mysql/ConvertBoundParamsCest.php | 4 +- .../Adapter/Pdo/Mysql/CreateSavepointCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/CreateTableCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/CreateViewCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/DeleteCest.php | 4 +- .../Adapter/Pdo/Mysql/DescribeColumnsCest.php | 4 +- .../Adapter/Pdo/Mysql/DescribeIndexesCest.php | 4 +- .../Pdo/Mysql/DescribeReferencesCest.php | 6 +-- .../Db/Adapter/Pdo/Mysql/DropColumnCest.php | 4 +- .../Adapter/Pdo/Mysql/DropForeignKeyCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/DropIndexCest.php | 4 +- .../Adapter/Pdo/Mysql/DropPrimaryKeyCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/DropTableCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/DropViewCest.php | 4 +- .../Pdo/Mysql/EscapeIdentifierCest.php | 2 +- .../Db/Adapter/Pdo/Mysql/EscapeStringCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/ExecuteCest.php | 4 +- .../Adapter/Pdo/Mysql/ExecutePreparedCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/FetchAllCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/FetchColumnCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/FetchOneCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/ForUpdateCest.php | 4 +- .../Pdo/Mysql/GetColumnDefinitionCest.php | 4 +- .../Adapter/Pdo/Mysql/GetColumnListCest.php | 4 +- .../Adapter/Pdo/Mysql/GetConnectionIdCest.php | 4 +- .../Pdo/Mysql/GetDefaultIdValueCest.php | 4 +- .../Adapter/Pdo/Mysql/GetDefaultValueCest.php | 4 +- .../Adapter/Pdo/Mysql/GetDescriptorCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/GetDialectCest.php | 4 +- .../Adapter/Pdo/Mysql/GetDialectTypeCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/GetErrorInfoCest.php | 4 +- .../Pdo/Mysql/GetEventsManagerCest.php | 4 +- .../Pdo/Mysql/GetInternalHandlerCest.php | 4 +- .../GetNestedTransactionSavepointNameCest.php | 4 +- .../Pdo/Mysql/GetRealSQLStatementCest.php | 4 +- .../Adapter/Pdo/Mysql/GetSQLBindTypesCest.php | 4 +- .../Adapter/Pdo/Mysql/GetSQLStatementCest.php | 4 +- .../Adapter/Pdo/Mysql/GetSqlVariablesCest.php | 4 +- .../Pdo/Mysql/GetTransactionLevelCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/GetTypeCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/InsertAsDictCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/InsertCest.php | 4 +- ...IsNestedTransactionsWithSavepointsCest.php | 4 +- .../Pdo/Mysql/IsUnderTransactionCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/LastInsertIdCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/LimitCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/ListTablesCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/ListViewsCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/ModifyColumnCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/PrepareCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/QueryCest.php | 4 +- .../Pdo/Mysql/ReleaseSavepointCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/RollbackCest.php | 4 +- .../Pdo/Mysql/RollbackSavepointCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/SetDialectCest.php | 4 +- .../Pdo/Mysql/SetEventsManagerCest.php | 4 +- ...etNestedTransactionsWithSavepointsCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/SharedLockCest.php | 4 +- .../Pdo/Mysql/SupportSequencesCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/TableExistsCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/TableOptionsCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/UpdateAsDictCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/UpdateCest.php | 4 +- .../Pdo/Mysql/UseExplicitIdValueCest.php | 4 +- .../Db/Adapter/Pdo/Mysql/ViewExistsCest.php | 4 +- .../integration/Db/Adapter/Pdo/MysqlCest.php | 2 +- .../Adapter/Pdo/Postgresql/AddColumnCest.php | 4 +- .../Pdo/Postgresql/AddForeignKeyCest.php | 4 +- .../Adapter/Pdo/Postgresql/AddIndexCest.php | 4 +- .../Pdo/Postgresql/AddPrimaryKeyCest.php | 4 +- .../Pdo/Postgresql/AffectedRowsCest.php | 4 +- .../Db/Adapter/Pdo/Postgresql/BeginCest.php | 4 +- .../Db/Adapter/Pdo/Postgresql/CloseCest.php | 4 +- .../Db/Adapter/Pdo/Postgresql/CommitCest.php | 4 +- .../Db/Adapter/Pdo/Postgresql/ConnectCest.php | 4 +- .../Adapter/Pdo/Postgresql/ConstructCest.php | 4 +- .../Pdo/Postgresql/ConvertBoundParamsCest.php | 4 +- .../Pdo/Postgresql/CreateSavepointCest.php | 4 +- .../Pdo/Postgresql/CreateTableCest.php | 4 +- .../Adapter/Pdo/Postgresql/CreateViewCest.php | 4 +- .../Db/Adapter/Pdo/Postgresql/DeleteCest.php | 4 +- .../Pdo/Postgresql/DescribeColumnsCest.php | 4 +- .../Pdo/Postgresql/DescribeIndexesCest.php | 4 +- .../Pdo/Postgresql/DescribeReferencesCest.php | 2 +- .../Adapter/Pdo/Postgresql/DropColumnCest.php | 4 +- .../Pdo/Postgresql/DropForeignKeyCest.php | 4 +- .../Adapter/Pdo/Postgresql/DropIndexCest.php | 4 +- .../Pdo/Postgresql/DropPrimaryKeyCest.php | 4 +- .../Adapter/Pdo/Postgresql/DropTableCest.php | 4 +- .../Adapter/Pdo/Postgresql/DropViewCest.php | 4 +- .../Pdo/Postgresql/EscapeIdentifierCest.php | 4 +- .../Pdo/Postgresql/EscapeStringCest.php | 4 +- .../Db/Adapter/Pdo/Postgresql/ExecuteCest.php | 4 +- .../Pdo/Postgresql/ExecutePreparedCest.php | 4 +- .../Adapter/Pdo/Postgresql/FetchAllCest.php | 4 +- .../Pdo/Postgresql/FetchColumnCest.php | 4 +- .../Adapter/Pdo/Postgresql/FetchOneCest.php | 4 +- .../Adapter/Pdo/Postgresql/ForUpdateCest.php | 4 +- .../Postgresql/GetColumnDefinitionCest.php | 4 +- .../Pdo/Postgresql/GetColumnListCest.php | 4 +- .../Pdo/Postgresql/GetConnectionIdCest.php | 4 +- .../Pdo/Postgresql/GetDefaultIdValueCest.php | 4 +- .../Pdo/Postgresql/GetDefaultValueCest.php | 4 +- .../Pdo/Postgresql/GetDescriptorCest.php | 4 +- .../Adapter/Pdo/Postgresql/GetDialectCest.php | 4 +- .../Pdo/Postgresql/GetDialectTypeCest.php | 4 +- .../Pdo/Postgresql/GetErrorInfoCest.php | 4 +- .../Pdo/Postgresql/GetEventsManagerCest.php | 4 +- .../Pdo/Postgresql/GetInternalHandlerCest.php | 4 +- .../GetNestedTransactionSavepointNameCest.php | 4 +- .../Postgresql/GetRealSQLStatementCest.php | 4 +- .../Pdo/Postgresql/GetSQLBindTypesCest.php | 4 +- .../Pdo/Postgresql/GetSQLStatementCest.php | 4 +- .../Pdo/Postgresql/GetSqlVariablesCest.php | 4 +- .../Postgresql/GetTransactionLevelCest.php | 4 +- .../Db/Adapter/Pdo/Postgresql/GetTypeCest.php | 4 +- .../Pdo/Postgresql/InsertAsDictCest.php | 4 +- .../Db/Adapter/Pdo/Postgresql/InsertCest.php | 4 +- ...IsNestedTransactionsWithSavepointsCest.php | 4 +- .../Pdo/Postgresql/IsUnderTransactionCest.php | 4 +- .../Pdo/Postgresql/LastInsertIdCest.php | 4 +- .../Db/Adapter/Pdo/Postgresql/LimitCest.php | 4 +- .../Adapter/Pdo/Postgresql/ListTablesCest.php | 4 +- .../Adapter/Pdo/Postgresql/ListViewsCest.php | 4 +- .../Pdo/Postgresql/ModifyColumnCest.php | 4 +- .../Db/Adapter/Pdo/Postgresql/PrepareCest.php | 4 +- .../Db/Adapter/Pdo/Postgresql/QueryCest.php | 4 +- .../Pdo/Postgresql/ReleaseSavepointCest.php | 4 +- .../Adapter/Pdo/Postgresql/RollbackCest.php | 4 +- .../Pdo/Postgresql/RollbackSavepointCest.php | 4 +- .../Adapter/Pdo/Postgresql/SetDialectCest.php | 4 +- .../Pdo/Postgresql/SetEventsManagerCest.php | 4 +- ...etNestedTransactionsWithSavepointsCest.php | 4 +- .../Adapter/Pdo/Postgresql/SharedLockCest.php | 4 +- .../Pdo/Postgresql/SupportSequencesCest.php | 4 +- .../Pdo/Postgresql/TableExistsCest.php | 4 +- .../Pdo/Postgresql/TableOptionsCest.php | 4 +- .../Pdo/Postgresql/UpdateAsDictCest.php | 4 +- .../Db/Adapter/Pdo/Postgresql/UpdateCest.php | 4 +- .../Pdo/Postgresql/UseExplicitIdValueCest.php | 4 +- .../Adapter/Pdo/Postgresql/ViewExistsCest.php | 4 +- .../Db/Adapter/Pdo/PostgresqlCest.php | 2 +- .../Db/Adapter/Pdo/Sqlite/AddColumnCest.php | 4 +- .../Adapter/Pdo/Sqlite/AddForeignKeyCest.php | 4 +- .../Db/Adapter/Pdo/Sqlite/AddIndexCest.php | 4 +- .../Adapter/Pdo/Sqlite/AddPrimaryKeyCest.php | 4 +- .../Adapter/Pdo/Sqlite/AffectedRowsCest.php | 4 +- .../Db/Adapter/Pdo/Sqlite/BeginCest.php | 4 +- .../Db/Adapter/Pdo/Sqlite/CloseCest.php | 4 +- .../Db/Adapter/Pdo/Sqlite/CommitCest.php | 4 +- .../Db/Adapter/Pdo/Sqlite/ConnectCest.php | 4 +- .../Db/Adapter/Pdo/Sqlite/ConstructCest.php | 4 +- .../Pdo/Sqlite/ConvertBoundParamsCest.php | 4 +- .../Pdo/Sqlite/CreateSavepointCest.php | 4 +- .../Db/Adapter/Pdo/Sqlite/CreateTableCest.php | 4 +- .../Db/Adapter/Pdo/Sqlite/CreateViewCest.php | 4 +- .../Db/Adapter/Pdo/Sqlite/DeleteCest.php | 4 +- .../Pdo/Sqlite/DescribeColumnsCest.php | 4 +- .../Pdo/Sqlite/DescribeIndexesCest.php | 4 +- .../Pdo/Sqlite/DescribeReferencesCest.php | 4 +- .../Db/Adapter/Pdo/Sqlite/DropColumnCest.php | 4 +- .../Adapter/Pdo/Sqlite/DropForeignKeyCest.php | 4 +- .../Db/Adapter/Pdo/Sqlite/DropIndexCest.php | 4 +- .../Adapter/Pdo/Sqlite/DropPrimaryKeyCest.php | 4 +- .../Db/Adapter/Pdo/Sqlite/DropTableCest.php | 4 +- .../Db/Adapter/Pdo/Sqlite/DropViewCest.php | 4 +- .../Pdo/Sqlite/EscapeIdentifierCest.php | 4 +- .../Adapter/Pdo/Sqlite/EscapeStringCest.php | 4 +- .../Db/Adapter/Pdo/Sqlite/ExecuteCest.php | 4 +- .../Pdo/Sqlite/ExecutePreparedCest.php | 4 +- .../Db/Adapter/Pdo/Sqlite/FetchAllCest.php | 4 +- .../Db/Adapter/Pdo/Sqlite/FetchColumnCest.php | 4 +- .../Db/Adapter/Pdo/Sqlite/FetchOneCest.php | 4 +- .../Db/Adapter/Pdo/Sqlite/ForUpdateCest.php | 4 +- .../Pdo/Sqlite/GetColumnDefinitionCest.php | 4 +- .../Adapter/Pdo/Sqlite/GetColumnListCest.php | 4 +- .../Pdo/Sqlite/GetConnectionIdCest.php | 4 +- .../Pdo/Sqlite/GetDefaultIdValueCest.php | 4 +- .../Pdo/Sqlite/GetDefaultValueCest.php | 4 +- .../Adapter/Pdo/Sqlite/GetDescriptorCest.php | 4 +- .../Db/Adapter/Pdo/Sqlite/GetDialectCest.php | 4 +- .../Adapter/Pdo/Sqlite/GetDialectTypeCest.php | 4 +- .../Adapter/Pdo/Sqlite/GetErrorInfoCest.php | 4 +- .../Pdo/Sqlite/GetEventsManagerCest.php | 4 +- .../Pdo/Sqlite/GetInternalHandlerCest.php | 4 +- .../GetNestedTransactionSavepointNameCest.php | 4 +- .../Pdo/Sqlite/GetRealSQLStatementCest.php | 4 +- .../Pdo/Sqlite/GetSQLBindTypesCest.php | 4 +- .../Pdo/Sqlite/GetSQLStatementCest.php | 4 +- .../Pdo/Sqlite/GetSqlVariablesCest.php | 4 +- .../Pdo/Sqlite/GetTransactionLevelCest.php | 4 +- .../Db/Adapter/Pdo/Sqlite/GetTypeCest.php | 4 +- .../Adapter/Pdo/Sqlite/InsertAsDictCest.php | 4 +- .../Db/Adapter/Pdo/Sqlite/InsertCest.php | 4 +- ...IsNestedTransactionsWithSavepointsCest.php | 4 +- .../Pdo/Sqlite/IsUnderTransactionCest.php | 4 +- .../Adapter/Pdo/Sqlite/LastInsertIdCest.php | 4 +- .../Db/Adapter/Pdo/Sqlite/LimitCest.php | 4 +- .../Db/Adapter/Pdo/Sqlite/ListTablesCest.php | 4 +- .../Db/Adapter/Pdo/Sqlite/ListViewsCest.php | 4 +- .../Adapter/Pdo/Sqlite/ModifyColumnCest.php | 4 +- .../Db/Adapter/Pdo/Sqlite/PrepareCest.php | 4 +- .../Db/Adapter/Pdo/Sqlite/QueryCest.php | 4 +- .../Pdo/Sqlite/ReleaseSavepointCest.php | 4 +- .../Db/Adapter/Pdo/Sqlite/RollbackCest.php | 4 +- .../Pdo/Sqlite/RollbackSavepointCest.php | 4 +- .../Db/Adapter/Pdo/Sqlite/SetDialectCest.php | 4 +- .../Pdo/Sqlite/SetEventsManagerCest.php | 4 +- ...etNestedTransactionsWithSavepointsCest.php | 4 +- .../Db/Adapter/Pdo/Sqlite/SharedLockCest.php | 4 +- .../Pdo/Sqlite/SupportSequencesCest.php | 4 +- .../Db/Adapter/Pdo/Sqlite/TableExistsCest.php | 4 +- .../Adapter/Pdo/Sqlite/TableOptionsCest.php | 4 +- .../Adapter/Pdo/Sqlite/UpdateAsDictCest.php | 4 +- .../Db/Adapter/Pdo/Sqlite/UpdateCest.php | 4 +- .../Pdo/Sqlite/UseExplicitIdValueCest.php | 4 +- .../Db/Adapter/Pdo/Sqlite/ViewExistsCest.php | 4 +- .../Db/Adapter/PdoFactory/LoadCest.php | 6 +-- .../Db/Adapter/PdoFactory/NewInstanceCest.php | 4 +- tests/integration/Db/Column/ConstantsCest.php | 4 +- tests/integration/Db/Column/ConstructCest.php | 4 +- .../Db/Column/GetAfterPositionCest.php | 4 +- .../integration/Db/Column/GetBindTypeCest.php | 4 +- .../integration/Db/Column/GetDefaultCest.php | 4 +- tests/integration/Db/Column/GetNameCest.php | 4 +- tests/integration/Db/Column/GetScaleCest.php | 4 +- tests/integration/Db/Column/GetSizeCest.php | 4 +- tests/integration/Db/Column/GetTypeCest.php | 4 +- .../Db/Column/GetTypeReferenceCest.php | 4 +- .../Db/Column/GetTypeValuesCest.php | 4 +- .../integration/Db/Column/HasDefaultCest.php | 6 +-- .../Db/Column/IsAutoIncrementCest.php | 6 +-- tests/integration/Db/Column/IsFirstCest.php | 4 +- tests/integration/Db/Column/IsNotNullCest.php | 4 +- tests/integration/Db/Column/IsNumericCest.php | 4 +- tests/integration/Db/Column/IsPrimaryCest.php | 4 +- .../integration/Db/Column/IsUnsignedCest.php | 4 +- tests/integration/Db/ColumnCest.php | 2 +- tests/integration/Db/DbBindCest.php | 8 ++-- tests/integration/Db/DbCest.php | 4 +- .../Db/Dialect/Mysql/AddColumnCest.php | 4 +- .../Db/Dialect/Mysql/AddForeignKeyCest.php | 4 +- .../Db/Dialect/Mysql/AddIndexCest.php | 4 +- .../Db/Dialect/Mysql/AddPrimaryKeyCest.php | 4 +- .../Db/Dialect/Mysql/CreateSavepointCest.php | 4 +- .../Db/Dialect/Mysql/CreateTableCest.php | 4 +- .../Db/Dialect/Mysql/CreateViewCest.php | 4 +- .../Db/Dialect/Mysql/DescribeColumnsCest.php | 4 +- .../Db/Dialect/Mysql/DescribeIndexesCest.php | 4 +- .../Dialect/Mysql/DescribeReferencesCest.php | 4 +- .../Db/Dialect/Mysql/DropColumnCest.php | 2 +- .../Db/Dialect/Mysql/DropForeignKeyCest.php | 2 +- .../Db/Dialect/Mysql/DropIndexCest.php | 2 +- .../Db/Dialect/Mysql/DropPrimaryKeyCest.php | 4 +- .../Db/Dialect/Mysql/DropTableCest.php | 2 +- .../Db/Dialect/Mysql/DropViewCest.php | 4 +- .../Db/Dialect/Mysql/EscapeCest.php | 4 +- .../Db/Dialect/Mysql/EscapeSchemaCest.php | 4 +- .../Db/Dialect/Mysql/ForUpdateCest.php | 4 +- .../Dialect/Mysql/GetColumnDefinitionCest.php | 4 +- .../Db/Dialect/Mysql/GetColumnListCest.php | 4 +- .../Dialect/Mysql/GetCustomFunctionsCest.php | 4 +- .../Dialect/Mysql/GetForeignKeyChecksCest.php | 4 +- .../Db/Dialect/Mysql/GetSqlColumnCest.php | 4 +- .../Db/Dialect/Mysql/GetSqlExpressionCest.php | 4 +- .../Db/Dialect/Mysql/GetSqlTableCest.php | 4 +- .../Db/Dialect/Mysql/LimitCest.php | 4 +- .../Db/Dialect/Mysql/ListTablesCest.php | 4 +- .../Db/Dialect/Mysql/ListViewsCest.php | 4 +- .../Db/Dialect/Mysql/ModifyColumnCest.php | 6 +-- .../Mysql/RegisterCustomFunctionCest.php | 4 +- .../Db/Dialect/Mysql/ReleaseSavepointCest.php | 4 +- .../Dialect/Mysql/RollbackSavepointCest.php | 4 +- .../Db/Dialect/Mysql/SelectCest.php | 4 +- .../Db/Dialect/Mysql/SharedLockCest.php | 2 +- .../Mysql/SupportsReleaseSavepointsCest.php | 4 +- .../Dialect/Mysql/SupportsSavepointsCest.php | 4 +- .../Db/Dialect/Mysql/TableExistsCest.php | 2 +- .../Db/Dialect/Mysql/TableOptionsCest.php | 4 +- .../Db/Dialect/Mysql/TruncateTableCest.php | 2 +- .../Db/Dialect/Mysql/ViewExistsCest.php | 4 +- .../Db/Dialect/Postgresql/AddColumnCest.php | 4 +- .../Dialect/Postgresql/AddForeignKeyCest.php | 4 +- .../Db/Dialect/Postgresql/AddIndexCest.php | 4 +- .../Dialect/Postgresql/AddPrimaryKeyCest.php | 4 +- .../Postgresql/CreateSavepointCest.php | 4 +- .../Db/Dialect/Postgresql/CreateTableCest.php | 4 +- .../Db/Dialect/Postgresql/CreateViewCest.php | 4 +- .../Postgresql/DescribeColumnsCest.php | 4 +- .../Postgresql/DescribeIndexesCest.php | 4 +- .../Postgresql/DescribeReferencesCest.php | 4 +- .../Db/Dialect/Postgresql/DropColumnCest.php | 2 +- .../Dialect/Postgresql/DropForeignKeyCest.php | 2 +- .../Db/Dialect/Postgresql/DropIndexCest.php | 2 +- .../Dialect/Postgresql/DropPrimaryKeyCest.php | 4 +- .../Db/Dialect/Postgresql/DropTableCest.php | 2 +- .../Db/Dialect/Postgresql/DropViewCest.php | 4 +- .../Db/Dialect/Postgresql/EscapeCest.php | 4 +- .../Dialect/Postgresql/EscapeSchemaCest.php | 4 +- .../Db/Dialect/Postgresql/ForUpdateCest.php | 4 +- .../Postgresql/GetColumnDefinitionCest.php | 4 +- .../Dialect/Postgresql/GetColumnListCest.php | 4 +- .../Postgresql/GetCustomFunctionsCest.php | 4 +- .../Dialect/Postgresql/GetSqlColumnCest.php | 4 +- .../Postgresql/GetSqlExpressionCest.php | 4 +- .../Db/Dialect/Postgresql/GetSqlTableCest.php | 4 +- .../Db/Dialect/Postgresql/LimitCest.php | 4 +- .../Db/Dialect/Postgresql/ListTablesCest.php | 4 +- .../Db/Dialect/Postgresql/ListViewsCest.php | 4 +- .../Dialect/Postgresql/ModifyColumnCest.php | 6 +-- .../Postgresql/RegisterCustomFunctionCest.php | 4 +- .../Postgresql/ReleaseSavepointCest.php | 4 +- .../Postgresql/RollbackSavepointCest.php | 4 +- .../Db/Dialect/Postgresql/SelectCest.php | 4 +- .../Db/Dialect/Postgresql/SharedLockCest.php | 4 +- .../SupportsReleaseSavepointsCest.php | 4 +- .../Postgresql/SupportsSavepointsCest.php | 4 +- .../Db/Dialect/Postgresql/TableExistsCest.php | 2 +- .../Dialect/Postgresql/TableOptionsCest.php | 4 +- .../Dialect/Postgresql/TruncateTableCest.php | 2 +- .../Db/Dialect/Postgresql/ViewExistsCest.php | 4 +- .../Db/Dialect/Sqlite/AddColumnCest.php | 4 +- .../Db/Dialect/Sqlite/AddForeignKeyCest.php | 2 +- .../Db/Dialect/Sqlite/AddIndexCest.php | 4 +- .../Db/Dialect/Sqlite/AddPrimaryKeyCest.php | 2 +- .../Db/Dialect/Sqlite/CreateSavepointCest.php | 4 +- .../Db/Dialect/Sqlite/CreateTableCest.php | 4 +- .../Db/Dialect/Sqlite/CreateViewCest.php | 4 +- .../Db/Dialect/Sqlite/DescribeColumnsCest.php | 4 +- .../Db/Dialect/Sqlite/DescribeIndexCest.php | 4 +- .../Db/Dialect/Sqlite/DescribeIndexesCest.php | 4 +- .../Dialect/Sqlite/DescribeReferencesCest.php | 4 +- .../Db/Dialect/Sqlite/DropColumnCest.php | 2 +- .../Db/Dialect/Sqlite/DropForeignKeyCest.php | 2 +- .../Db/Dialect/Sqlite/DropIndexCest.php | 2 +- .../Db/Dialect/Sqlite/DropPrimaryKeyCest.php | 2 +- .../Db/Dialect/Sqlite/DropTableCest.php | 2 +- .../Db/Dialect/Sqlite/DropViewCest.php | 4 +- .../Db/Dialect/Sqlite/EscapeCest.php | 4 +- .../Db/Dialect/Sqlite/EscapeSchemaCest.php | 4 +- .../Db/Dialect/Sqlite/ForUpdateCest.php | 4 +- .../Sqlite/GetColumnDefinitionCest.php | 4 +- .../Db/Dialect/Sqlite/GetColumnListCest.php | 4 +- .../Dialect/Sqlite/GetCustomFunctionsCest.php | 4 +- .../Db/Dialect/Sqlite/GetSqlColumnCest.php | 4 +- .../Dialect/Sqlite/GetSqlExpressionCest.php | 4 +- .../Db/Dialect/Sqlite/GetSqlTableCest.php | 4 +- .../Db/Dialect/Sqlite/LimitCest.php | 4 +- .../Db/Dialect/Sqlite/ListIndexesSqlCest.php | 4 +- .../Db/Dialect/Sqlite/ListTablesCest.php | 4 +- .../Db/Dialect/Sqlite/ListViewsCest.php | 4 +- .../Db/Dialect/Sqlite/ModifyColumnCest.php | 2 +- .../Sqlite/RegisterCustomFunctionCest.php | 4 +- .../Dialect/Sqlite/ReleaseSavepointCest.php | 4 +- .../Dialect/Sqlite/RollbackSavepointCest.php | 4 +- .../Db/Dialect/Sqlite/SelectCest.php | 4 +- .../Db/Dialect/Sqlite/SharedLockCest.php | 4 +- .../Sqlite/SupportsReleaseSavepointsCest.php | 4 +- .../Dialect/Sqlite/SupportsSavepointsCest.php | 4 +- .../Db/Dialect/Sqlite/TableExistsCest.php | 4 +- .../Db/Dialect/Sqlite/TableOptionsCest.php | 4 +- .../Db/Dialect/Sqlite/TruncateTableCest.php | 2 +- .../Db/Dialect/Sqlite/ViewExistsCest.php | 4 +- tests/integration/Db/Index/ConstructCest.php | 4 +- tests/integration/Db/Index/GetColumnsCest.php | 2 +- tests/integration/Db/Index/GetNameCest.php | 2 +- tests/integration/Db/Index/GetTypeCest.php | 2 +- .../Db/Profiler/GetLastProfileCest.php | 2 +- .../Profiler/GetNumberTotalStatementsCest.php | 2 +- .../Db/Profiler/GetProfilesCest.php | 4 +- .../Profiler/GetTotalElapsedSecondsCest.php | 4 +- .../Db/Profiler/Item/GetFinalTimeCest.php | 4 +- .../Db/Profiler/Item/GetInitialTimeCest.php | 4 +- .../Db/Profiler/Item/GetSqlBindTypesCest.php | 4 +- .../Db/Profiler/Item/GetSqlStatementCest.php | 4 +- .../Db/Profiler/Item/GetSqlVariablesCest.php | 4 +- .../Item/GetTotalElapsedSecondsCest.php | 4 +- .../Db/Profiler/Item/SetFinalTimeCest.php | 4 +- .../Db/Profiler/Item/SetInitialTimeCest.php | 4 +- .../Db/Profiler/Item/SetSqlBindTypesCest.php | 4 +- .../Db/Profiler/Item/SetSqlStatementCest.php | 4 +- .../Db/Profiler/Item/SetSqlVariablesCest.php | 4 +- tests/integration/Db/Profiler/ResetCest.php | 2 +- .../Db/Profiler/StartProfileCest.php | 4 +- .../Db/Profiler/StopProfileCest.php | 4 +- .../integration/Db/RawValue/ConstructCest.php | 2 +- .../integration/Db/RawValue/GetValueCest.php | 2 +- .../integration/Db/RawValue/ToStringCest.php | 2 +- .../Db/Reference/ConstructCest.php | 4 +- .../Db/Reference/GetColumnsCest.php | 2 +- .../integration/Db/Reference/GetNameCest.php | 2 +- .../Db/Reference/GetOnDeleteCest.php | 2 +- .../Db/Reference/GetOnUpdateCest.php | 2 +- .../Db/Reference/GetReferencedColumnsCest.php | 2 +- .../Db/Reference/GetReferencedSchemaCest.php | 4 +- .../Db/Reference/GetReferencedTableCest.php | 2 +- .../Db/Reference/GetSchemaNameCest.php | 4 +- .../Db/Result/Pdo/ConstructCest.php | 4 +- .../Db/Result/Pdo/DataSeekCest.php | 4 +- .../integration/Db/Result/Pdo/ExecuteCest.php | 4 +- .../Db/Result/Pdo/FetchAllCest.php | 4 +- .../Db/Result/Pdo/FetchArrayCest.php | 4 +- tests/integration/Db/Result/Pdo/FetchCest.php | 4 +- .../Db/Result/Pdo/GetInternalResultCest.php | 4 +- .../integration/Db/Result/Pdo/NumRowsCest.php | 4 +- .../Db/Result/Pdo/SetFetchModeCest.php | 4 +- tests/integration/Db/SetupCest.php | 4 +- .../Firewall/Adapter/Acl/AfterBindingCest.php | 2 +- .../Adapter/Acl/BeforeExecuteRouteCest.php | 2 +- .../Firewall/Adapter/Acl/ConstructCest.php | 4 +- .../Adapter/Acl/GetAclServiceNameCest.php | 4 +- .../Adapter/Acl/GetActiveIdentityCest.php | 4 +- .../Adapter/Acl/GetActiveRoleCest.php | 4 +- .../Adapter/Acl/GetBoundModelsKeyMapCest.php | 4 +- .../Adapter/Acl/GetDispatcherCest.php | 4 +- .../Adapter/Acl/GetModuleSeparatorCest.php | 4 +- .../Adapter/Acl/GetRoleCacheCallbackCest.php | 4 +- .../Adapter/Acl/GetRoleCallbackCest.php | 4 +- .../Adapter/Acl/GetSetDefaultAccessCest.php | 4 +- .../Adapter/Acl/GetSetEventsManagerCest.php | 4 +- .../Adapter/Acl/IsAlwaysResolvingRoleCest.php | 4 +- .../Acl/IsMultiModuleConfigurationCest.php | 4 +- .../Adapter/Acl/SetAclServiceNameCest.php | 4 +- .../Acl/SetAlwaysResolvingRoleCest.php | 4 +- .../Adapter/Acl/SetBoundModelsKeyMapCest.php | 2 +- .../Firewall/Adapter/Acl/SetCacheCest.php | 4 +- .../Adapter/Acl/SetModuleSeparatorCest.php | 4 +- .../Adapter/Acl/SetRoleCacheCallbackCest.php | 4 +- .../Adapter/Acl/SetRoleCallbackCest.php | 4 +- .../Acl/UseMultiModuleConfigurationCest.php | 2 +- .../Annotations/BeforeExecuteRouteCest.php | 4 +- .../Adapter/Annotations/ConstructCest.php | 4 +- .../Annotations/GetActiveIdentityCest.php | 4 +- .../Adapter/Annotations/GetActiveRoleCest.php | 4 +- .../Annotations/GetAnnotationsAdapterCest.php | 4 +- .../Adapter/Annotations/GetDispatcherCest.php | 4 +- .../Annotations/GetRoleCallbackCest.php | 4 +- .../Annotations/GetSetDefaultAccessCest.php | 4 +- .../Annotations/GetSetEventsManagerCest.php | 4 +- .../Annotations/IsAlwaysResolvingRoleCest.php | 4 +- .../SetAlwaysResolvingRoleCest.php | 4 +- .../Annotations/SetAnnotationsAdapterCest.php | 4 +- .../Adapter/Annotations/SetCacheCest.php | 4 +- .../Annotations/SetRoleCallbackCest.php | 4 +- .../Adapter/Micro/Acl/AfterBindingCest.php | 4 +- .../Micro/Acl/BeforeExecuteRouteCest.php | 4 +- .../Adapter/Micro/Acl/ConstructCest.php | 4 +- .../Micro/Acl/GetAclServiceNameCest.php | 4 +- .../Micro/Acl/GetActiveIdentityCest.php | 4 +- .../Adapter/Micro/Acl/GetActiveRoleCest.php | 4 +- .../Micro/Acl/GetBoundModelsKeyMapCest.php | 4 +- .../Micro/Acl/GetComponentNameCest.php | 4 +- .../Adapter/Micro/Acl/GetMicroCest.php | 4 +- .../Micro/Acl/GetRoleCacheCallbackCest.php | 4 +- .../Adapter/Micro/Acl/GetRoleCallbackCest.php | 4 +- .../Micro/Acl/GetSetDefaultAccessCest.php | 4 +- .../Micro/Acl/GetSetEventsManagerCest.php | 4 +- .../Micro/Acl/IsAlwaysResolvingRoleCest.php | 4 +- .../Acl/IsRouteNameConfigurationCest.php | 4 +- .../Micro/Acl/SetAclServiceNameCest.php | 4 +- .../Micro/Acl/SetAlwaysResolvingRoleCest.php | 4 +- .../Micro/Acl/SetBoundModelsKeyMapCest.php | 4 +- .../Adapter/Micro/Acl/SetCacheCest.php | 4 +- .../Micro/Acl/SetComponentNameCest.php | 4 +- .../Micro/Acl/SetRoleCacheCallbackCest.php | 4 +- .../Adapter/Micro/Acl/SetRoleCallbackCest.php | 4 +- .../Acl/SetRouteNameConfigurationCest.php | 4 +- .../Forms/Element/Check/AddFilterCest.php | 4 +- .../Forms/Element/Check/AddValidatorCest.php | 4 +- .../Forms/Element/Check/AddValidatorsCest.php | 4 +- .../Forms/Element/Check/AppendMessageCest.php | 4 +- .../Forms/Element/Check/ClearCest.php | 4 +- .../Forms/Element/Check/ConstructCest.php | 4 +- .../Forms/Element/Check/GetAttributeCest.php | 4 +- .../Forms/Element/Check/GetAttributesCest.php | 4 +- .../Forms/Element/Check/GetDefaultCest.php | 4 +- .../Forms/Element/Check/GetFiltersCest.php | 4 +- .../Forms/Element/Check/GetLabelCest.php | 4 +- .../Forms/Element/Check/GetMessagesCest.php | 4 +- .../Forms/Element/Check/GetSetFormCest.php | 2 +- .../Forms/Element/Check/GetSetNameCest.php | 2 +- .../Forms/Element/Check/GetUserOptionCest.php | 4 +- .../Element/Check/GetUserOptionsCest.php | 4 +- .../Forms/Element/Check/GetValidatorsCest.php | 4 +- .../Forms/Element/Check/GetValueCest.php | 4 +- .../Forms/Element/Check/HasMessagesCest.php | 4 +- .../Forms/Element/Check/LabelCest.php | 4 +- .../Element/Check/PrepareAttributesCest.php | 4 +- .../Forms/Element/Check/RenderCest.php | 2 +- .../Forms/Element/Check/SetAttributeCest.php | 4 +- .../Forms/Element/Check/SetAttributesCest.php | 4 +- .../Forms/Element/Check/SetDefaultCest.php | 4 +- .../Forms/Element/Check/SetFiltersCest.php | 4 +- .../Forms/Element/Check/SetLabelCest.php | 4 +- .../Forms/Element/Check/SetMessagesCest.php | 4 +- .../Forms/Element/Check/SetUserOptionCest.php | 4 +- .../Element/Check/SetUserOptionsCest.php | 4 +- .../Forms/Element/Check/ToStringCest.php | 2 +- .../Forms/Element/Date/AddFilterCest.php | 4 +- .../Forms/Element/Date/AddValidatorCest.php | 4 +- .../Forms/Element/Date/AddValidatorsCest.php | 4 +- .../Forms/Element/Date/AppendMessageCest.php | 4 +- .../Forms/Element/Date/ClearCest.php | 4 +- .../Forms/Element/Date/ConstructCest.php | 4 +- .../Forms/Element/Date/GetAttributeCest.php | 4 +- .../Forms/Element/Date/GetAttributesCest.php | 4 +- .../Forms/Element/Date/GetDefaultCest.php | 4 +- .../Forms/Element/Date/GetFiltersCest.php | 4 +- .../Forms/Element/Date/GetLabelCest.php | 4 +- .../Forms/Element/Date/GetMessagesCest.php | 4 +- .../Forms/Element/Date/GetSetFormCest.php | 2 +- .../Forms/Element/Date/GetSetNameCest.php | 2 +- .../Forms/Element/Date/GetUserOptionCest.php | 4 +- .../Forms/Element/Date/GetUserOptionsCest.php | 4 +- .../Forms/Element/Date/GetValidatorsCest.php | 4 +- .../Forms/Element/Date/GetValueCest.php | 4 +- .../Forms/Element/Date/HasMessagesCest.php | 4 +- .../Forms/Element/Date/LabelCest.php | 4 +- .../Element/Date/PrepareAttributesCest.php | 4 +- .../Forms/Element/Date/RenderCest.php | 2 +- .../Forms/Element/Date/SetAttributeCest.php | 4 +- .../Forms/Element/Date/SetAttributesCest.php | 4 +- .../Forms/Element/Date/SetDefaultCest.php | 4 +- .../Forms/Element/Date/SetFiltersCest.php | 4 +- .../Forms/Element/Date/SetLabelCest.php | 4 +- .../Forms/Element/Date/SetMessagesCest.php | 4 +- .../Forms/Element/Date/SetUserOptionCest.php | 4 +- .../Forms/Element/Date/SetUserOptionsCest.php | 4 +- .../Forms/Element/Date/ToStringCest.php | 2 +- .../Forms/Element/Email/AddFilterCest.php | 4 +- .../Forms/Element/Email/AddValidatorCest.php | 4 +- .../Forms/Element/Email/AddValidatorsCest.php | 4 +- .../Forms/Element/Email/AppendMessageCest.php | 4 +- .../Forms/Element/Email/ClearCest.php | 4 +- .../Forms/Element/Email/ConstructCest.php | 4 +- .../Forms/Element/Email/GetAttributeCest.php | 4 +- .../Forms/Element/Email/GetAttributesCest.php | 4 +- .../Forms/Element/Email/GetDefaultCest.php | 4 +- .../Forms/Element/Email/GetFiltersCest.php | 4 +- .../Forms/Element/Email/GetLabelCest.php | 4 +- .../Forms/Element/Email/GetMessagesCest.php | 4 +- .../Forms/Element/Email/GetSetFormCest.php | 2 +- .../Forms/Element/Email/GetSetNameCest.php | 2 +- .../Forms/Element/Email/GetUserOptionCest.php | 4 +- .../Element/Email/GetUserOptionsCest.php | 4 +- .../Forms/Element/Email/GetValidatorsCest.php | 4 +- .../Forms/Element/Email/GetValueCest.php | 4 +- .../Forms/Element/Email/HasMessagesCest.php | 4 +- .../Forms/Element/Email/LabelCest.php | 4 +- .../Element/Email/PrepareAttributesCest.php | 4 +- .../Forms/Element/Email/RenderCest.php | 2 +- .../Forms/Element/Email/SetAttributeCest.php | 4 +- .../Forms/Element/Email/SetAttributesCest.php | 4 +- .../Forms/Element/Email/SetDefaultCest.php | 4 +- .../Forms/Element/Email/SetFiltersCest.php | 4 +- .../Forms/Element/Email/SetLabelCest.php | 4 +- .../Forms/Element/Email/SetMessagesCest.php | 4 +- .../Forms/Element/Email/SetUserOptionCest.php | 4 +- .../Element/Email/SetUserOptionsCest.php | 4 +- .../Forms/Element/Email/ToStringCest.php | 2 +- .../Forms/Element/File/AddFilterCest.php | 4 +- .../Forms/Element/File/AddValidatorCest.php | 4 +- .../Forms/Element/File/AddValidatorsCest.php | 4 +- .../Forms/Element/File/AppendMessageCest.php | 4 +- .../Forms/Element/File/ClearCest.php | 4 +- .../Forms/Element/File/ConstructCest.php | 4 +- .../Forms/Element/File/GetAttributeCest.php | 4 +- .../Forms/Element/File/GetAttributesCest.php | 4 +- .../Forms/Element/File/GetDefaultCest.php | 4 +- .../Forms/Element/File/GetFiltersCest.php | 4 +- .../Forms/Element/File/GetLabelCest.php | 4 +- .../Forms/Element/File/GetMessagesCest.php | 4 +- .../Forms/Element/File/GetSetFormCest.php | 2 +- .../Forms/Element/File/GetSetNameCest.php | 2 +- .../Forms/Element/File/GetUserOptionCest.php | 4 +- .../Forms/Element/File/GetUserOptionsCest.php | 4 +- .../Forms/Element/File/GetValidatorsCest.php | 4 +- .../Forms/Element/File/GetValueCest.php | 4 +- .../Forms/Element/File/HasMessagesCest.php | 4 +- .../Forms/Element/File/LabelCest.php | 4 +- .../Element/File/PrepareAttributesCest.php | 4 +- .../Forms/Element/File/RenderCest.php | 2 +- .../Forms/Element/File/SetAttributeCest.php | 4 +- .../Forms/Element/File/SetAttributesCest.php | 4 +- .../Forms/Element/File/SetDefaultCest.php | 4 +- .../Forms/Element/File/SetFiltersCest.php | 4 +- .../Forms/Element/File/SetLabelCest.php | 4 +- .../Forms/Element/File/SetMessagesCest.php | 4 +- .../Forms/Element/File/SetUserOptionCest.php | 4 +- .../Forms/Element/File/SetUserOptionsCest.php | 4 +- .../Forms/Element/File/ToStringCest.php | 2 +- .../Forms/Element/Hidden/AddFilterCest.php | 4 +- .../Forms/Element/Hidden/AddValidatorCest.php | 4 +- .../Element/Hidden/AddValidatorsCest.php | 4 +- .../Element/Hidden/AppendMessageCest.php | 4 +- .../Forms/Element/Hidden/ClearCest.php | 4 +- .../Forms/Element/Hidden/ConstructCest.php | 4 +- .../Forms/Element/Hidden/GetAttributeCest.php | 4 +- .../Element/Hidden/GetAttributesCest.php | 4 +- .../Forms/Element/Hidden/GetDefaultCest.php | 4 +- .../Forms/Element/Hidden/GetFiltersCest.php | 4 +- .../Forms/Element/Hidden/GetLabelCest.php | 4 +- .../Forms/Element/Hidden/GetMessagesCest.php | 4 +- .../Forms/Element/Hidden/GetSetFormCest.php | 2 +- .../Forms/Element/Hidden/GetSetNameCest.php | 2 +- .../Element/Hidden/GetUserOptionCest.php | 4 +- .../Element/Hidden/GetUserOptionsCest.php | 4 +- .../Element/Hidden/GetValidatorsCest.php | 4 +- .../Forms/Element/Hidden/GetValueCest.php | 4 +- .../Forms/Element/Hidden/HasMessagesCest.php | 4 +- .../Forms/Element/Hidden/LabelCest.php | 4 +- .../Element/Hidden/PrepareAttributesCest.php | 4 +- .../Forms/Element/Hidden/RenderCest.php | 2 +- .../Forms/Element/Hidden/SetAttributeCest.php | 4 +- .../Element/Hidden/SetAttributesCest.php | 4 +- .../Forms/Element/Hidden/SetDefaultCest.php | 4 +- .../Forms/Element/Hidden/SetFiltersCest.php | 4 +- .../Forms/Element/Hidden/SetLabelCest.php | 4 +- .../Forms/Element/Hidden/SetMessagesCest.php | 4 +- .../Element/Hidden/SetUserOptionCest.php | 4 +- .../Element/Hidden/SetUserOptionsCest.php | 4 +- .../Forms/Element/Hidden/ToStringCest.php | 2 +- .../Forms/Element/Numeric/AddFilterCest.php | 4 +- .../Element/Numeric/AddValidatorCest.php | 4 +- .../Element/Numeric/AddValidatorsCest.php | 4 +- .../Element/Numeric/AppendMessageCest.php | 4 +- .../Forms/Element/Numeric/ClearCest.php | 4 +- .../Forms/Element/Numeric/ConstructCest.php | 4 +- .../Element/Numeric/GetAttributeCest.php | 4 +- .../Element/Numeric/GetAttributesCest.php | 4 +- .../Forms/Element/Numeric/GetDefaultCest.php | 4 +- .../Forms/Element/Numeric/GetFiltersCest.php | 4 +- .../Forms/Element/Numeric/GetLabelCest.php | 4 +- .../Forms/Element/Numeric/GetMessagesCest.php | 4 +- .../Forms/Element/Numeric/GetSetFormCest.php | 2 +- .../Forms/Element/Numeric/GetSetNameCest.php | 2 +- .../Element/Numeric/GetUserOptionCest.php | 4 +- .../Element/Numeric/GetUserOptionsCest.php | 4 +- .../Element/Numeric/GetValidatorsCest.php | 4 +- .../Forms/Element/Numeric/GetValueCest.php | 4 +- .../Forms/Element/Numeric/HasMessagesCest.php | 4 +- .../Forms/Element/Numeric/LabelCest.php | 4 +- .../Element/Numeric/PrepareAttributesCest.php | 4 +- .../Forms/Element/Numeric/RenderCest.php | 2 +- .../Element/Numeric/SetAttributeCest.php | 4 +- .../Element/Numeric/SetAttributesCest.php | 4 +- .../Forms/Element/Numeric/SetDefaultCest.php | 4 +- .../Forms/Element/Numeric/SetFiltersCest.php | 4 +- .../Forms/Element/Numeric/SetLabelCest.php | 4 +- .../Forms/Element/Numeric/SetMessagesCest.php | 4 +- .../Element/Numeric/SetUserOptionCest.php | 4 +- .../Element/Numeric/SetUserOptionsCest.php | 4 +- .../Forms/Element/Numeric/ToStringCest.php | 2 +- .../Forms/Element/Password/AddFilterCest.php | 4 +- .../Element/Password/AddValidatorCest.php | 4 +- .../Element/Password/AddValidatorsCest.php | 4 +- .../Element/Password/AppendMessageCest.php | 4 +- .../Forms/Element/Password/ClearCest.php | 4 +- .../Forms/Element/Password/ConstructCest.php | 4 +- .../Element/Password/GetAttributeCest.php | 4 +- .../Element/Password/GetAttributesCest.php | 4 +- .../Forms/Element/Password/GetDefaultCest.php | 4 +- .../Forms/Element/Password/GetFiltersCest.php | 4 +- .../Forms/Element/Password/GetLabelCest.php | 4 +- .../Element/Password/GetMessagesCest.php | 4 +- .../Forms/Element/Password/GetSetFormCest.php | 2 +- .../Forms/Element/Password/GetSetNameCest.php | 2 +- .../Element/Password/GetUserOptionCest.php | 4 +- .../Element/Password/GetUserOptionsCest.php | 4 +- .../Element/Password/GetValidatorsCest.php | 4 +- .../Forms/Element/Password/GetValueCest.php | 4 +- .../Element/Password/HasMessagesCest.php | 4 +- .../Forms/Element/Password/LabelCest.php | 4 +- .../Password/PrepareAttributesCest.php | 4 +- .../Forms/Element/Password/RenderCest.php | 2 +- .../Element/Password/SetAttributeCest.php | 4 +- .../Element/Password/SetAttributesCest.php | 4 +- .../Forms/Element/Password/SetDefaultCest.php | 4 +- .../Forms/Element/Password/SetFiltersCest.php | 4 +- .../Forms/Element/Password/SetLabelCest.php | 4 +- .../Element/Password/SetMessagesCest.php | 4 +- .../Element/Password/SetUserOptionCest.php | 4 +- .../Element/Password/SetUserOptionsCest.php | 4 +- .../Forms/Element/Password/ToStringCest.php | 2 +- .../Forms/Element/Radio/AddFilterCest.php | 4 +- .../Forms/Element/Radio/AddValidatorCest.php | 4 +- .../Forms/Element/Radio/AddValidatorsCest.php | 4 +- .../Forms/Element/Radio/AppendMessageCest.php | 4 +- .../Forms/Element/Radio/ClearCest.php | 4 +- .../Forms/Element/Radio/ConstructCest.php | 4 +- .../Forms/Element/Radio/GetAttributeCest.php | 4 +- .../Forms/Element/Radio/GetAttributesCest.php | 4 +- .../Forms/Element/Radio/GetDefaultCest.php | 4 +- .../Forms/Element/Radio/GetFiltersCest.php | 4 +- .../Forms/Element/Radio/GetLabelCest.php | 4 +- .../Forms/Element/Radio/GetMessagesCest.php | 4 +- .../Forms/Element/Radio/GetSetFormCest.php | 2 +- .../Forms/Element/Radio/GetSetNameCest.php | 2 +- .../Forms/Element/Radio/GetUserOptionCest.php | 4 +- .../Element/Radio/GetUserOptionsCest.php | 4 +- .../Forms/Element/Radio/GetValidatorsCest.php | 4 +- .../Forms/Element/Radio/GetValueCest.php | 4 +- .../Forms/Element/Radio/HasMessagesCest.php | 4 +- .../Forms/Element/Radio/LabelCest.php | 4 +- .../Element/Radio/PrepareAttributesCest.php | 4 +- .../Forms/Element/Radio/RenderCest.php | 2 +- .../Forms/Element/Radio/SetAttributeCest.php | 4 +- .../Forms/Element/Radio/SetAttributesCest.php | 4 +- .../Forms/Element/Radio/SetDefaultCest.php | 4 +- .../Forms/Element/Radio/SetFiltersCest.php | 4 +- .../Forms/Element/Radio/SetLabelCest.php | 4 +- .../Forms/Element/Radio/SetMessagesCest.php | 4 +- .../Forms/Element/Radio/SetUserOptionCest.php | 4 +- .../Element/Radio/SetUserOptionsCest.php | 4 +- .../Forms/Element/Radio/ToStringCest.php | 2 +- .../Forms/Element/Select/AddFilterCest.php | 4 +- .../Forms/Element/Select/AddOptionCest.php | 2 +- .../Forms/Element/Select/AddValidatorCest.php | 4 +- .../Element/Select/AddValidatorsCest.php | 4 +- .../Element/Select/AppendMessageCest.php | 4 +- .../Forms/Element/Select/ClearCest.php | 4 +- .../Forms/Element/Select/ConstructCest.php | 4 +- .../Forms/Element/Select/GetAttributeCest.php | 4 +- .../Element/Select/GetAttributesCest.php | 4 +- .../Forms/Element/Select/GetDefaultCest.php | 4 +- .../Forms/Element/Select/GetFiltersCest.php | 4 +- .../Forms/Element/Select/GetLabelCest.php | 4 +- .../Forms/Element/Select/GetMessagesCest.php | 4 +- .../Forms/Element/Select/GetOptionsCest.php | 4 +- .../Forms/Element/Select/GetSetFormCest.php | 2 +- .../Forms/Element/Select/GetSetNameCest.php | 2 +- .../Element/Select/GetUserOptionCest.php | 4 +- .../Element/Select/GetUserOptionsCest.php | 4 +- .../Element/Select/GetValidatorsCest.php | 4 +- .../Forms/Element/Select/GetValueCest.php | 4 +- .../Forms/Element/Select/HasMessagesCest.php | 4 +- .../Forms/Element/Select/LabelCest.php | 4 +- .../Element/Select/PrepareAttributesCest.php | 4 +- .../Forms/Element/Select/RenderCest.php | 4 +- .../Forms/Element/Select/SetAttributeCest.php | 4 +- .../Element/Select/SetAttributesCest.php | 4 +- .../Forms/Element/Select/SetDefaultCest.php | 4 +- .../Forms/Element/Select/SetFiltersCest.php | 4 +- .../Forms/Element/Select/SetLabelCest.php | 4 +- .../Forms/Element/Select/SetMessagesCest.php | 4 +- .../Forms/Element/Select/SetOptionsCest.php | 4 +- .../Element/Select/SetUserOptionCest.php | 4 +- .../Element/Select/SetUserOptionsCest.php | 4 +- .../Forms/Element/Select/ToStringCest.php | 4 +- .../Forms/Element/Submit/AddFilterCest.php | 4 +- .../Forms/Element/Submit/AddValidatorCest.php | 4 +- .../Element/Submit/AddValidatorsCest.php | 4 +- .../Element/Submit/AppendMessageCest.php | 4 +- .../Forms/Element/Submit/ClearCest.php | 4 +- .../Forms/Element/Submit/ConstructCest.php | 4 +- .../Forms/Element/Submit/GetAttributeCest.php | 4 +- .../Element/Submit/GetAttributesCest.php | 4 +- .../Forms/Element/Submit/GetDefaultCest.php | 4 +- .../Forms/Element/Submit/GetFiltersCest.php | 4 +- .../Forms/Element/Submit/GetLabelCest.php | 4 +- .../Forms/Element/Submit/GetMessagesCest.php | 4 +- .../Forms/Element/Submit/GetSetFormCest.php | 2 +- .../Forms/Element/Submit/GetSetNameCest.php | 2 +- .../Element/Submit/GetUserOptionCest.php | 4 +- .../Element/Submit/GetUserOptionsCest.php | 4 +- .../Element/Submit/GetValidatorsCest.php | 4 +- .../Forms/Element/Submit/GetValueCest.php | 4 +- .../Forms/Element/Submit/HasMessagesCest.php | 4 +- .../Forms/Element/Submit/LabelCest.php | 4 +- .../Element/Submit/PrepareAttributesCest.php | 4 +- .../Forms/Element/Submit/RenderCest.php | 2 +- .../Forms/Element/Submit/SetAttributeCest.php | 4 +- .../Element/Submit/SetAttributesCest.php | 4 +- .../Forms/Element/Submit/SetDefaultCest.php | 4 +- .../Forms/Element/Submit/SetFiltersCest.php | 4 +- .../Forms/Element/Submit/SetLabelCest.php | 4 +- .../Forms/Element/Submit/SetMessagesCest.php | 4 +- .../Element/Submit/SetUserOptionCest.php | 4 +- .../Element/Submit/SetUserOptionsCest.php | 4 +- .../Forms/Element/Submit/ToStringCest.php | 2 +- .../Forms/Element/Text/AddFilterCest.php | 4 +- .../Forms/Element/Text/AddValidatorCest.php | 4 +- .../Forms/Element/Text/AddValidatorsCest.php | 4 +- .../Forms/Element/Text/AppendMessageCest.php | 4 +- .../Forms/Element/Text/ClearCest.php | 4 +- .../Forms/Element/Text/ConstructCest.php | 4 +- .../Forms/Element/Text/GetAttributeCest.php | 4 +- .../Forms/Element/Text/GetAttributesCest.php | 4 +- .../Forms/Element/Text/GetDefaultCest.php | 4 +- .../Forms/Element/Text/GetFiltersCest.php | 4 +- .../Forms/Element/Text/GetLabelCest.php | 4 +- .../Forms/Element/Text/GetMessagesCest.php | 4 +- .../Forms/Element/Text/GetSetFormCest.php | 2 +- .../Forms/Element/Text/GetSetNameCest.php | 2 +- .../Forms/Element/Text/GetUserOptionCest.php | 4 +- .../Forms/Element/Text/GetUserOptionsCest.php | 4 +- .../Forms/Element/Text/GetValidatorsCest.php | 4 +- .../Forms/Element/Text/GetValueCest.php | 4 +- .../Forms/Element/Text/HasMessagesCest.php | 4 +- .../Forms/Element/Text/LabelCest.php | 4 +- .../Element/Text/PrepareAttributesCest.php | 4 +- .../Forms/Element/Text/RenderCest.php | 2 +- .../Forms/Element/Text/SetAttributeCest.php | 4 +- .../Forms/Element/Text/SetAttributesCest.php | 4 +- .../Forms/Element/Text/SetDefaultCest.php | 4 +- .../Forms/Element/Text/SetFiltersCest.php | 4 +- .../Forms/Element/Text/SetLabelCest.php | 2 +- .../Forms/Element/Text/SetMessagesCest.php | 4 +- .../Forms/Element/Text/SetUserOptionCest.php | 4 +- .../Forms/Element/Text/SetUserOptionsCest.php | 4 +- .../Forms/Element/Text/ToStringCest.php | 2 +- .../Forms/Element/TextArea/AddFilterCest.php | 4 +- .../Element/TextArea/AddValidatorCest.php | 4 +- .../Element/TextArea/AddValidatorsCest.php | 4 +- .../Element/TextArea/AppendMessageCest.php | 4 +- .../Forms/Element/TextArea/ClearCest.php | 4 +- .../Forms/Element/TextArea/ConstructCest.php | 4 +- .../Element/TextArea/GetAttributeCest.php | 4 +- .../Element/TextArea/GetAttributesCest.php | 4 +- .../Forms/Element/TextArea/GetDefaultCest.php | 4 +- .../Forms/Element/TextArea/GetFiltersCest.php | 4 +- .../Forms/Element/TextArea/GetLabelCest.php | 4 +- .../Element/TextArea/GetMessagesCest.php | 4 +- .../Forms/Element/TextArea/GetSetFormCest.php | 2 +- .../Forms/Element/TextArea/GetSetNameCest.php | 2 +- .../Element/TextArea/GetUserOptionCest.php | 4 +- .../Element/TextArea/GetUserOptionsCest.php | 4 +- .../Element/TextArea/GetValidatorsCest.php | 4 +- .../Forms/Element/TextArea/GetValueCest.php | 4 +- .../Element/TextArea/HasMessagesCest.php | 4 +- .../Forms/Element/TextArea/LabelCest.php | 4 +- .../TextArea/PrepareAttributesCest.php | 4 +- .../Forms/Element/TextArea/RenderCest.php | 2 +- .../Element/TextArea/SetAttributeCest.php | 4 +- .../Element/TextArea/SetAttributesCest.php | 4 +- .../Forms/Element/TextArea/SetDefaultCest.php | 4 +- .../Forms/Element/TextArea/SetFiltersCest.php | 4 +- .../Forms/Element/TextArea/SetLabelCest.php | 4 +- .../Element/TextArea/SetMessagesCest.php | 4 +- .../Element/TextArea/SetUserOptionCest.php | 4 +- .../Element/TextArea/SetUserOptionsCest.php | 4 +- .../Forms/Element/TextArea/ToStringCest.php | 2 +- tests/integration/Forms/Element/TextCest.php | 4 +- tests/integration/Forms/Form/AddCest.php | 4 +- tests/integration/Forms/Form/BindCest.php | 4 +- tests/integration/Forms/Form/ClearCest.php | 22 +++++----- .../integration/Forms/Form/ConstructCest.php | 4 +- tests/integration/Forms/Form/CountCest.php | 4 +- .../integration/Forms/Form/GetActionCest.php | 4 +- .../Forms/Form/GetAttributesCest.php | 4 +- tests/integration/Forms/Form/GetCest.php | 2 +- tests/integration/Forms/Form/GetDICest.php | 4 +- .../Forms/Form/GetElementsCest.php | 2 +- .../integration/Forms/Form/GetEntityCest.php | 2 +- .../Forms/Form/GetEventsManagerCest.php | 4 +- tests/integration/Forms/Form/GetLabelCest.php | 4 +- .../Forms/Form/GetMessagesCest.php | 2 +- .../Forms/Form/GetMessagesForCest.php | 4 +- .../Forms/Form/GetSetActionCest.php | 4 +- .../Forms/Form/GetUserOptionCest.php | 2 +- .../Forms/Form/GetUserOptionsCest.php | 2 +- .../Forms/Form/GetValidationCest.php | 4 +- tests/integration/Forms/Form/GetValueCest.php | 4 +- tests/integration/Forms/Form/HasCest.php | 2 +- .../Forms/Form/HasMessagesForCest.php | 2 +- tests/integration/Forms/Form/IsValidCest.php | 6 +-- tests/integration/Forms/Form/IteratorCest.php | 2 +- tests/integration/Forms/Form/LabelCest.php | 4 +- tests/integration/Forms/Form/RemoveCest.php | 4 +- tests/integration/Forms/Form/RenderCest.php | 4 +- .../integration/Forms/Form/SetActionCest.php | 4 +- .../Forms/Form/SetAttributesCest.php | 4 +- tests/integration/Forms/Form/SetDICest.php | 4 +- .../integration/Forms/Form/SetEntityCest.php | 2 +- .../Forms/Form/SetEventsManagerCest.php | 4 +- .../Forms/Form/SetUserOptionCest.php | 2 +- .../Forms/Form/SetUserOptionsCest.php | 2 +- .../Forms/Form/SetValidationCest.php | 2 +- .../Forms/Form/UnderscoreGetCest.php | 4 +- tests/integration/Forms/FormCest.php | 2 +- tests/integration/Forms/FormElementsCest.php | 10 ++--- tests/integration/Forms/FormsCest.php | 8 ++-- .../integration/Forms/Manager/CreateCest.php | 2 +- .../integration/Forms/Manager/GetSetCest.php | 2 +- tests/integration/Forms/Manager/HasCest.php | 2 +- .../Mvc/Application/ConstructCest.php | 4 +- .../Mvc/Application/GetDefaultModuleCest.php | 4 +- .../Mvc/Application/GetEventsManagerCest.php | 4 +- .../Mvc/Application/GetModuleCest.php | 6 +-- .../Mvc/Application/GetModulesCest.php | 6 +-- .../Mvc/Application/GetSetDICest.php | 4 +- .../Mvc/Application/HandleCest.php | 2 +- .../Mvc/Application/RegisterModulesCest.php | 2 +- .../SendCookiesOnHandleRequestCest.php | 4 +- .../SendHeadersOnHandleRequestCest.php | 4 +- .../Mvc/Application/SetDefaultModuleCest.php | 4 +- .../Mvc/Application/SetEventsManagerCest.php | 4 +- .../Mvc/Application/UnderscoreGetCest.php | 4 +- .../Mvc/Application/UseImplicitViewCest.php | 4 +- .../Mvc/Collection/AggregateCest.php | 4 +- .../Mvc/Collection/AppendMessageCest.php | 4 +- .../Mvc/Collection/Behavior/ConstructCest.php | 4 +- .../Collection/Behavior/MissingMethodCest.php | 4 +- .../Mvc/Collection/Behavior/NotifyCest.php | 4 +- .../Behavior/SoftDelete/ConstructCest.php | 4 +- .../Behavior/SoftDelete/MissingMethodCest.php | 4 +- .../Behavior/SoftDelete/NotifyCest.php | 4 +- .../Behavior/Timestampable/ConstructCest.php | 4 +- .../Timestampable/MissingMethodCest.php | 4 +- .../Behavior/Timestampable/NotifyCest.php | 4 +- .../Mvc/Collection/CloneResultCest.php | 4 +- .../Mvc/Collection/ConstructCest.php | 4 +- .../integration/Mvc/Collection/CountCest.php | 4 +- .../integration/Mvc/Collection/CreateCest.php | 4 +- .../Mvc/Collection/CreateIfNotExistCest.php | 4 +- .../integration/Mvc/Collection/DeleteCest.php | 4 +- .../Collection/Document/OffsetExistsCest.php | 4 +- .../Mvc/Collection/Document/OffsetGetCest.php | 4 +- .../Mvc/Collection/Document/OffsetSetCest.php | 4 +- .../Collection/Document/OffsetUnsetCest.php | 4 +- .../Collection/Document/ReadAttributeCest.php | 4 +- .../Mvc/Collection/Document/ToArrayCest.php | 4 +- .../Document/WriteAttributeCest.php | 4 +- .../Mvc/Collection/FindByIdCest.php | 4 +- tests/integration/Mvc/Collection/FindCest.php | 4 +- .../Mvc/Collection/FindFirstCest.php | 4 +- .../Mvc/Collection/FireEventCancelCest.php | 4 +- .../Mvc/Collection/FireEventCest.php | 4 +- .../Collection/GetCollectionManagerCest.php | 4 +- .../Mvc/Collection/GetConnectionCest.php | 4 +- .../Collection/GetConnectionServiceCest.php | 4 +- .../integration/Mvc/Collection/GetDICest.php | 4 +- .../Mvc/Collection/GetDirtyStateCest.php | 4 +- .../integration/Mvc/Collection/GetIdCest.php | 4 +- .../Mvc/Collection/GetMessagesCest.php | 4 +- .../Collection/GetReservedAttributesCest.php | 4 +- .../Mvc/Collection/GetSourceCest.php | 4 +- .../Collection/Manager/AddBehaviorCest.php | 4 +- .../Collection/Manager/GetConnectionCest.php | 4 +- .../Manager/GetConnectionServiceCest.php | 4 +- .../Manager/GetCustomEventsManagerCest.php | 4 +- .../Mvc/Collection/Manager/GetDICest.php | 4 +- .../Manager/GetEventsManagerCest.php | 4 +- .../Manager/GetLastInitializedCest.php | 4 +- .../Collection/Manager/GetServiceNameCest.php | 4 +- .../Mvc/Collection/Manager/InitializeCest.php | 4 +- .../Collection/Manager/IsInitializedCest.php | 4 +- .../Manager/IsUsingImplicitObjectIdsCest.php | 4 +- .../Collection/Manager/MissingMethodCest.php | 4 +- .../Collection/Manager/NotifyEventCest.php | 4 +- .../Manager/SetConnectionServiceCest.php | 4 +- .../Manager/SetCustomEventsManagerCest.php | 4 +- .../Mvc/Collection/Manager/SetDICest.php | 4 +- .../Manager/SetEventsManagerCest.php | 4 +- .../Collection/Manager/SetServiceNameCest.php | 4 +- .../Manager/UseImplicitObjectIdsCest.php | 4 +- .../Mvc/Collection/ReadAttributeCest.php | 4 +- .../Mvc/Collection/Refactor-BehaviorCest.php | 8 ++-- tests/integration/Mvc/Collection/SaveCest.php | 4 +- .../Mvc/Collection/SerializeCest.php | 4 +- .../Collection/SetConnectionServiceCest.php | 4 +- .../integration/Mvc/Collection/SetDICest.php | 4 +- .../Mvc/Collection/SetDirtyStateCest.php | 4 +- .../integration/Mvc/Collection/SetIdCest.php | 4 +- .../Mvc/Collection/SkipOperationCest.php | 4 +- .../Mvc/Collection/SummatoryCest.php | 4 +- .../Mvc/Collection/ToArrayCest.php | 4 +- .../Mvc/Collection/UnserializeCest.php | 4 +- .../integration/Mvc/Collection/UpdateCest.php | 4 +- .../Collection/ValidationHasFailedCest.php | 4 +- .../Mvc/Collection/WriteAttributeCest.php | 4 +- .../Mvc/Controller/ConstructCest.php | 4 +- .../integration/Mvc/Controller/GetDICest.php | 4 +- .../Mvc/Controller/GetEventsManagerCest.php | 4 +- .../integration/Mvc/Controller/SetDICest.php | 4 +- .../Mvc/Controller/SetEventsManagerCest.php | 4 +- .../Mvc/Controller/UnderscoreGetCest.php | 4 +- .../Mvc/Dispatcher/CallActionMethodCest.php | 2 +- .../Mvc/Dispatcher/DispatchCest.php | 2 +- .../Mvc/Dispatcher/ForwardCest.php | 4 +- .../Mvc/Dispatcher/GetActionSuffixCest.php | 4 +- .../Dispatcher/GetActiveControllerCest.php | 4 +- .../Mvc/Dispatcher/GetActiveMethodCest.php | 4 +- .../Mvc/Dispatcher/GetBoundModelsCest.php | 4 +- .../Mvc/Dispatcher/GetControllerClassCest.php | 6 +-- .../Mvc/Dispatcher/GetControllerNameCest.php | 4 +- .../Dispatcher/GetDefaultNamespaceCest.php | 4 +- .../Mvc/Dispatcher/GetEventsManagerCest.php | 4 +- .../Mvc/Dispatcher/GetHandlerClassCest.php | 4 +- .../Mvc/Dispatcher/GetHandlerSuffixCest.php | 2 +- .../Mvc/Dispatcher/GetLastControllerCest.php | 2 +- .../Mvc/Dispatcher/GetModelBinderCest.php | 4 +- .../Mvc/Dispatcher/GetModuleNameCest.php | 4 +- .../Mvc/Dispatcher/GetNamespaceNameCest.php | 4 +- .../Mvc/Dispatcher/GetParamCest.php | 4 +- .../Mvc/Dispatcher/GetParamsCest.php | 4 +- .../Dispatcher/GetPreviousActionNameCest.php | 4 +- .../GetPreviousControllerNameCest.php | 4 +- .../GetPreviousNamespaceNameCest.php | 4 +- .../Mvc/Dispatcher/GetReturnedValueCest.php | 4 +- .../Mvc/Dispatcher/GetSetActionNameCest.php | 4 +- .../Mvc/Dispatcher/GetSetDICest.php | 2 +- .../Mvc/Dispatcher/HasParamCest.php | 4 +- .../Mvc/Dispatcher/Helper/BaseDispatcher.php | 8 ++-- .../Dispatcher/Helper/DispatcherListener.php | 8 ++-- ...stAfterExecuteRouteExceptionController.php | 8 ++-- ...TestAfterExecuteRouteForwardController.php | 8 ++-- ...AfterExecuteRouteReturnFalseController.php | 8 ++-- ...tBeforeExecuteRouteExceptionController.php | 8 ++-- ...estBeforeExecuteRouteForwardController.php | 8 ++-- ...eforeExecuteRouteReturnFalseController.php | 8 ++-- .../DispatcherTestDefaultController.php | 8 ++-- ...atcherTestDefaultNoNamespaceController.php | 8 ++-- .../DispatcherTestDefaultSimpleController.php | 8 ++-- .../DispatcherTestDefaultTwoController.php | 8 ++-- ...tcherTestInitializeExceptionController.php | 8 ++-- ...patcherTestInitializeForwardController.php | 8 ++-- ...herTestInitializeReturnFalseController.php | 8 ++-- .../Mvc/Dispatcher/IsFinishedCest.php | 4 +- .../Refactor-DispatcherAfterDispatchCest.php | 10 ++--- ...factor-DispatcherAfterDispatchLoopCest.php | 10 ++--- ...factor-DispatcherAfterExecuteRouteCest.php | 10 ++--- ...-DispatcherAfterExecuteRouteMethodCest.php | 10 ++--- ...Refactor-DispatcherAfterInitializeCest.php | 10 ++--- .../Refactor-DispatcherBeforeDispatchCest.php | 10 ++--- ...actor-DispatcherBeforeDispatchLoopCest.php | 10 ++--- ...actor-DispatcherBeforeExecuteRouteCest.php | 10 ++--- ...DispatcherBeforeExecuteRouteMethodCest.php | 10 ++--- .../Dispatcher/Refactor-DispatcherCest.php | 10 ++--- ...efactor-DispatcherInitializeMethodCest.php | 10 ++--- .../Mvc/Dispatcher/Refactor-ForwardCest.php | 6 +-- .../Mvc/Dispatcher/SetActionSuffixCest.php | 4 +- .../Mvc/Dispatcher/SetControllerNameCest.php | 4 +- .../Dispatcher/SetControllerSuffixCest.php | 2 +- .../Mvc/Dispatcher/SetDefaultActionCest.php | 4 +- .../Dispatcher/SetDefaultControllerCest.php | 4 +- .../Dispatcher/SetDefaultNamespaceCest.php | 4 +- .../Mvc/Dispatcher/SetEventsManagerCest.php | 4 +- .../Mvc/Dispatcher/SetHandlerSuffixCest.php | 2 +- .../Mvc/Dispatcher/SetModelBinderCest.php | 4 +- .../Mvc/Dispatcher/SetModuleNameCest.php | 4 +- .../Mvc/Dispatcher/SetNamespaceNameCest.php | 4 +- .../Mvc/Dispatcher/SetParamCest.php | 4 +- .../Mvc/Dispatcher/SetParamsCest.php | 4 +- .../Mvc/Dispatcher/SetReturnedValueCest.php | 4 +- .../Mvc/Dispatcher/WasForwardedCest.php | 4 +- .../Mvc/Micro/AfterBindingCest.php | 2 +- tests/integration/Mvc/Micro/AfterCest.php | 2 +- tests/integration/Mvc/Micro/BeforeCest.php | 2 +- .../Mvc/Micro/Collection/DeleteCest.php | 2 +- .../Mvc/Micro/Collection/GetCest.php | 2 +- .../Mvc/Micro/Collection/GetHandlerCest.php | 4 +- .../Mvc/Micro/Collection/GetHandlersCest.php | 4 +- .../Mvc/Micro/Collection/GetPrefixCest.php | 4 +- .../Mvc/Micro/Collection/HeadCest.php | 2 +- .../Mvc/Micro/Collection/IsLazyCest.php | 2 +- .../Mvc/Micro/Collection/MapCest.php | 4 +- .../Mvc/Micro/Collection/MapViaCest.php | 2 +- .../Mvc/Micro/Collection/OptionsCest.php | 2 +- .../Mvc/Micro/Collection/PatchCest.php | 2 +- .../Mvc/Micro/Collection/PostCest.php | 2 +- .../Mvc/Micro/Collection/PutCest.php | 2 +- .../Mvc/Micro/Collection/SetHandlerCest.php | 4 +- .../Mvc/Micro/Collection/SetLazyCest.php | 2 +- .../Mvc/Micro/Collection/SetPrefixCest.php | 4 +- tests/integration/Mvc/Micro/ConstructCest.php | 4 +- tests/integration/Mvc/Micro/DeleteCest.php | 2 +- tests/integration/Mvc/Micro/ErrorCest.php | 2 +- tests/integration/Mvc/Micro/FinishCest.php | 2 +- .../Mvc/Micro/GetActiveHandlerCest.php | 4 +- .../Mvc/Micro/GetBoundModelsCest.php | 4 +- tests/integration/Mvc/Micro/GetCest.php | 2 +- .../Mvc/Micro/GetEventsManagerCest.php | 4 +- .../integration/Mvc/Micro/GetHandlersCest.php | 2 +- .../Mvc/Micro/GetModelBinderCest.php | 4 +- .../Mvc/Micro/GetReturnedValueCest.php | 4 +- tests/integration/Mvc/Micro/GetRouterCest.php | 4 +- .../integration/Mvc/Micro/GetServiceCest.php | 2 +- tests/integration/Mvc/Micro/GetSetDICest.php | 4 +- .../Mvc/Micro/GetSharedServiceCest.php | 4 +- tests/integration/Mvc/Micro/HandleCest.php | 2 +- .../integration/Mvc/Micro/HasServiceCest.php | 2 +- tests/integration/Mvc/Micro/HeadCest.php | 2 +- .../Mvc/Micro/LazyLoader/CallMethodCest.php | 4 +- .../Mvc/Micro/LazyLoader/ConstructCest.php | 4 +- .../Micro/LazyLoader/GetDefinitionCest.php | 4 +- tests/integration/Mvc/Micro/MapCest.php | 4 +- tests/integration/Mvc/Micro/MountCest.php | 4 +- tests/integration/Mvc/Micro/NotFoundCest.php | 2 +- .../Mvc/Micro/OffsetExistsCest.php | 2 +- tests/integration/Mvc/Micro/OffsetGetCest.php | 2 +- tests/integration/Mvc/Micro/OffsetSetCest.php | 2 +- .../integration/Mvc/Micro/OffsetUnsetCest.php | 2 +- tests/integration/Mvc/Micro/OptionsCest.php | 2 +- tests/integration/Mvc/Micro/PatchCest.php | 2 +- tests/integration/Mvc/Micro/PostCest.php | 2 +- tests/integration/Mvc/Micro/PutCest.php | 2 +- .../Refactor-MicroMvcCollectionsCest.php | 2 +- .../Mvc/Micro/SetActiveHandlerCest.php | 4 +- .../Mvc/Micro/SetEventsManagerCest.php | 4 +- .../Mvc/Micro/SetModelBinderCest.php | 4 +- .../Mvc/Micro/SetResponseHandlerCest.php | 2 +- .../integration/Mvc/Micro/SetServiceCest.php | 4 +- tests/integration/Mvc/Micro/StopCest.php | 4 +- .../Mvc/Micro/UnderscoreGetCest.php | 4 +- .../integration/Mvc/Model/AddBehaviorCest.php | 4 +- .../Mvc/Model/AppendMessageCest.php | 4 +- tests/integration/Mvc/Model/AssignCest.php | 2 +- tests/integration/Mvc/Model/AverageCest.php | 2 +- .../Behavior/SoftDelete/ConstructCest.php | 4 +- .../Behavior/SoftDelete/MissingMethodCest.php | 2 +- .../Model/Behavior/SoftDelete/NotifyCest.php | 4 +- .../Behavior/Timestampable/ConstructCest.php | 4 +- .../Timestampable/MissingMethodCest.php | 2 +- .../Behavior/Timestampable/NotifyCest.php | 4 +- .../Mvc/Model/Binder/BindToHandlerCest.php | 4 +- .../Mvc/Model/Binder/ConstructCest.php | 4 +- .../Mvc/Model/Binder/GetBoundModelsCest.php | 4 +- .../Mvc/Model/Binder/GetCacheCest.php | 4 +- .../Model/Binder/GetOriginalValuesCest.php | 4 +- .../Mvc/Model/Binder/SetCacheCest.php | 4 +- .../integration/Mvc/Model/CloneResultCest.php | 4 +- .../Mvc/Model/CloneResultMapCest.php | 4 +- .../Mvc/Model/CloneResultMapHydrateCest.php | 4 +- tests/integration/Mvc/Model/ConstructCest.php | 4 +- tests/integration/Mvc/Model/CreateCest.php | 4 +- .../Mvc/Model/Criteria/AndWhereCest.php | 4 +- .../Mvc/Model/Criteria/BetweenWhereCest.php | 4 +- .../Mvc/Model/Criteria/BindCest.php | 4 +- .../Mvc/Model/Criteria/BindTypesCest.php | 4 +- .../Mvc/Model/Criteria/CacheCest.php | 4 +- .../Mvc/Model/Criteria/ColumnsCest.php | 4 +- .../Mvc/Model/Criteria/ConditionsCest.php | 4 +- .../Mvc/Model/Criteria/CreateBuilderCest.php | 4 +- .../Mvc/Model/Criteria/DistinctCest.php | 4 +- .../Mvc/Model/Criteria/ExecuteCest.php | 4 +- .../Mvc/Model/Criteria/ForUpdateCest.php | 4 +- .../Mvc/Model/Criteria/FromInputCest.php | 4 +- .../Mvc/Model/Criteria/GetColumnsCest.php | 4 +- .../Mvc/Model/Criteria/GetConditionsCest.php | 4 +- .../Mvc/Model/Criteria/GetGroupByCest.php | 4 +- .../Mvc/Model/Criteria/GetHavingCest.php | 4 +- .../Mvc/Model/Criteria/GetLimitCest.php | 4 +- .../Mvc/Model/Criteria/GetModelNameCest.php | 4 +- .../Mvc/Model/Criteria/GetOrderByCest.php | 4 +- .../Mvc/Model/Criteria/GetParamsCest.php | 4 +- .../Mvc/Model/Criteria/GetSetDICest.php | 4 +- .../Mvc/Model/Criteria/GetWhereCest.php | 4 +- .../Mvc/Model/Criteria/GroupByCest.php | 4 +- .../Mvc/Model/Criteria/HavingCest.php | 4 +- .../Mvc/Model/Criteria/InWhereCest.php | 4 +- .../Mvc/Model/Criteria/InnerJoinCest.php | 4 +- .../Mvc/Model/Criteria/JoinCest.php | 4 +- .../Mvc/Model/Criteria/LeftJoinCest.php | 4 +- .../Mvc/Model/Criteria/LimitCest.php | 4 +- .../Model/Criteria/NotBetweenWhereCest.php | 4 +- .../Mvc/Model/Criteria/NotInWhereCest.php | 4 +- .../Mvc/Model/Criteria/OrWhereCest.php | 4 +- .../Mvc/Model/Criteria/OrderByCest.php | 4 +- .../Mvc/Model/Criteria/RightJoinCest.php | 4 +- .../Mvc/Model/Criteria/SetModelNameCest.php | 4 +- .../Mvc/Model/Criteria/SharedLockCest.php | 4 +- .../Mvc/Model/Criteria/WhereCest.php | 4 +- tests/integration/Mvc/Model/DeleteCest.php | 4 +- tests/integration/Mvc/Model/DumpCest.php | 4 +- tests/integration/Mvc/Model/FindCest.php | 4 +- tests/integration/Mvc/Model/FindFirstCest.php | 12 +++--- .../Mvc/Model/FireEventCancelCest.php | 4 +- tests/integration/Mvc/Model/FireEventCest.php | 4 +- .../Mvc/Model/GetChangedFieldsCest.php | 4 +- .../Mvc/Model/GetDirtyStateCest.php | 4 +- .../Mvc/Model/GetEventsManagerCest.php | 4 +- .../integration/Mvc/Model/GetMessagesCest.php | 4 +- .../Mvc/Model/GetModelsManagerCest.php | 4 +- .../Mvc/Model/GetModelsMetaDataCest.php | 4 +- .../Mvc/Model/GetOldSnapshotDataCest.php | 4 +- .../Mvc/Model/GetOperationMadeCest.php | 4 +- .../Mvc/Model/GetReadConnectionCest.php | 4 +- .../Model/GetReadConnectionServiceCest.php | 4 +- .../integration/Mvc/Model/GetRelatedCest.php | 2 +- tests/integration/Mvc/Model/GetSchemaCest.php | 4 +- .../Mvc/Model/GetSnapshotDataCest.php | 4 +- tests/integration/Mvc/Model/GetSourceCest.php | 4 +- .../Mvc/Model/GetTransactionCest.php | 4 +- .../Mvc/Model/GetUpdatedFieldsCest.php | 4 +- .../Mvc/Model/GetWriteConnectionCest.php | 4 +- .../Model/GetWriteConnectionServiceCest.php | 4 +- .../integration/Mvc/Model/HasChangedCest.php | 2 +- .../Mvc/Model/HasSnapshotDataCest.php | 4 +- .../integration/Mvc/Model/HasUpdatedCest.php | 4 +- .../Mvc/Model/IsRelationshipLoadedCest.php | 2 +- .../Mvc/Model/JsonSerializeCest.php | 4 +- .../Mvc/Model/Manager/AddBehaviorCest.php | 4 +- .../Mvc/Model/Manager/AddBelongsToCest.php | 4 +- .../Mvc/Model/Manager/AddHasManyCest.php | 4 +- .../Model/Manager/AddHasManyToManyCest.php | 4 +- .../Mvc/Model/Manager/AddHasOneCest.php | 4 +- .../Manager/ClearReusableObjectsCest.php | 4 +- .../Mvc/Model/Manager/CreateBuilderCest.php | 4 +- .../Mvc/Model/Manager/CreateQueryCest.php | 4 +- .../Mvc/Model/Manager/DestructCest.php | 4 +- .../Mvc/Model/Manager/ExecuteQueryCest.php | 4 +- .../Mvc/Model/Manager/ExistsBelongsToCest.php | 2 +- .../Mvc/Model/Manager/ExistsHasManyCest.php | 2 +- .../Model/Manager/ExistsHasManyToManyCest.php | 4 +- .../Mvc/Model/Manager/ExistsHasOneCest.php | 4 +- .../Mvc/Model/Manager/GetBelongsToCest.php | 4 +- .../Model/Manager/GetBelongsToRecordsCest.php | 4 +- .../Manager/GetCustomEventsManagerCest.php | 4 +- .../Mvc/Model/Manager/GetDICest.php | 4 +- .../Model/Manager/GetEventsManagerCest.php | 4 +- .../Mvc/Model/Manager/GetHasManyCest.php | 4 +- .../Model/Manager/GetHasManyRecordsCest.php | 4 +- .../Model/Manager/GetHasManyToManyCest.php | 4 +- .../Model/Manager/GetHasOneAndHasManyCest.php | 4 +- .../Mvc/Model/Manager/GetHasOneCest.php | 4 +- .../Model/Manager/GetHasOneRecordsCest.php | 4 +- .../Model/Manager/GetLastInitializedCest.php | 4 +- .../Mvc/Model/Manager/GetLastQueryCest.php | 4 +- .../Mvc/Model/Manager/GetModelPrefixCest.php | 2 +- .../Mvc/Model/Manager/GetModelSchemaCest.php | 4 +- .../Mvc/Model/Manager/GetModelSourceCest.php | 4 +- .../Model/Manager/GetReadConnectionCest.php | 4 +- .../Manager/GetReadConnectionServiceCest.php | 4 +- .../Model/Manager/GetRelationByAliasCest.php | 4 +- .../Model/Manager/GetRelationRecordsCest.php | 2 +- .../Model/Manager/GetRelationsBetweenCest.php | 4 +- .../Mvc/Model/Manager/GetRelationsCest.php | 4 +- .../Model/Manager/GetReusableRecordsCest.php | 4 +- .../Model/Manager/GetWriteConnectionCest.php | 4 +- .../Manager/GetWriteConnectionServiceCest.php | 4 +- .../Mvc/Model/Manager/InitializeCest.php | 4 +- .../Mvc/Model/Manager/IsInitializedCest.php | 4 +- .../Model/Manager/IsKeepingSnapshotsCest.php | 4 +- .../Manager/IsUsingDynamicUpdateCest.php | 4 +- .../Manager/IsVisibleModelPropertyCest.php | 4 +- .../Mvc/Model/Manager/KeepSnapshotsCest.php | 4 +- .../Mvc/Model/Manager/LoadCest.php | 4 +- .../Mvc/Model/Manager/MissingMethodCest.php | 4 +- .../Mvc/Model/Manager/NotifyEventCest.php | 4 +- .../Manager/SetConnectionServiceCest.php | 4 +- .../Manager/SetCustomEventsManagerCest.php | 4 +- .../Mvc/Model/Manager/SetDICest.php | 4 +- .../Model/Manager/SetEventsManagerCest.php | 4 +- .../Mvc/Model/Manager/SetModelPrefixCest.php | 2 +- .../Mvc/Model/Manager/SetModelSchemaCest.php | 4 +- .../Mvc/Model/Manager/SetModelSourceCest.php | 4 +- .../Manager/SetReadConnectionServiceCest.php | 4 +- .../Model/Manager/SetReusableRecordsCest.php | 4 +- .../Manager/SetWriteConnectionServiceCest.php | 4 +- .../UnderscoreGetConnectionServiceCest.php | 4 +- .../Model/Manager/UseDynamicUpdateCest.php | 4 +- .../Mvc/Model/MetaData/Apcu/ConstructCest.php | 4 +- .../Model/MetaData/Apcu/GetAttributesCest.php | 4 +- .../Apcu/GetAutomaticCreateAttributesCest.php | 4 +- .../Apcu/GetAutomaticUpdateAttributesCest.php | 4 +- .../Model/MetaData/Apcu/GetBindTypesCest.php | 4 +- .../Model/MetaData/Apcu/GetColumnMapCest.php | 4 +- .../Model/MetaData/Apcu/GetDataTypesCest.php | 4 +- .../MetaData/Apcu/GetDataTypesNumericCest.php | 4 +- .../MetaData/Apcu/GetDefaultValuesCest.php | 4 +- .../Apcu/GetEmptyStringAttributesCest.php | 4 +- .../MetaData/Apcu/GetIdentityFieldCest.php | 4 +- .../Apcu/GetNonPrimaryKeyAttributesCest.php | 4 +- .../Apcu/GetNotNullAttributesCest.php | 4 +- .../Apcu/GetPrimaryKeyAttributesCest.php | 4 +- .../MetaData/Apcu/GetReverseColumnMapCest.php | 4 +- .../Mvc/Model/MetaData/Apcu/GetSetDICest.php | 4 +- .../Model/MetaData/Apcu/GetStrategyCest.php | 4 +- .../Model/MetaData/Apcu/HasAttributeCest.php | 4 +- .../Mvc/Model/MetaData/Apcu/IsEmptyCest.php | 4 +- .../Mvc/Model/MetaData/Apcu/ReadCest.php | 4 +- .../Model/MetaData/Apcu/ReadColumnMapCest.php | 4 +- .../MetaData/Apcu/ReadColumnMapIndexCest.php | 4 +- .../Model/MetaData/Apcu/ReadMetaDataCest.php | 4 +- .../MetaData/Apcu/ReadMetaDataIndexCest.php | 4 +- .../Mvc/Model/MetaData/Apcu/ResetCest.php | 4 +- .../Apcu/SetAutomaticCreateAttributesCest.php | 4 +- .../Apcu/SetAutomaticUpdateAttributesCest.php | 4 +- .../Apcu/SetEmptyStringAttributesCest.php | 4 +- .../Model/MetaData/Apcu/SetStrategyCest.php | 4 +- .../Mvc/Model/MetaData/Apcu/WriteCest.php | 4 +- .../MetaData/Apcu/WriteMetaDataIndexCest.php | 4 +- .../Mvc/Model/MetaData/GetAttributesCest.php | 4 +- .../GetAutomaticCreateAttributesCest.php | 4 +- .../GetAutomaticUpdateAttributesCest.php | 4 +- .../Mvc/Model/MetaData/GetBindTypesCest.php | 4 +- .../Mvc/Model/MetaData/GetColumnMapCest.php | 4 +- .../Mvc/Model/MetaData/GetDataTypesCest.php | 4 +- .../MetaData/GetDataTypesNumericCest.php | 4 +- .../Model/MetaData/GetDefaultValuesCest.php | 4 +- .../MetaData/GetEmptyStringAttributesCest.php | 4 +- .../Model/MetaData/GetIdentityFieldCest.php | 4 +- .../GetNonPrimaryKeyAttributesCest.php | 4 +- .../MetaData/GetNotNullAttributesCest.php | 4 +- .../MetaData/GetPrimaryKeyAttributesCest.php | 4 +- .../MetaData/GetReverseColumnMapCest.php | 4 +- .../Mvc/Model/MetaData/GetSetDICest.php | 4 +- .../Mvc/Model/MetaData/GetStrategyCest.php | 4 +- .../Mvc/Model/MetaData/HasAttributeCest.php | 4 +- .../Mvc/Model/MetaData/IsEmptyCest.php | 4 +- .../MetaData/Libmemcached/ConstructCest.php | 4 +- .../Libmemcached/GetAttributesCest.php | 4 +- .../GetAutomaticCreateAttributesCest.php | 4 +- .../GetAutomaticUpdateAttributesCest.php | 4 +- .../Libmemcached/GetBindTypesCest.php | 4 +- .../Libmemcached/GetColumnMapCest.php | 4 +- .../Libmemcached/GetDataTypesCest.php | 4 +- .../Libmemcached/GetDataTypesNumericCest.php | 4 +- .../Libmemcached/GetDefaultValuesCest.php | 4 +- .../GetEmptyStringAttributesCest.php | 4 +- .../Libmemcached/GetIdentityFieldCest.php | 4 +- .../GetNonPrimaryKeyAttributesCest.php | 4 +- .../Libmemcached/GetNotNullAttributesCest.php | 4 +- .../GetPrimaryKeyAttributesCest.php | 4 +- .../Libmemcached/GetReverseColumnMapCest.php | 4 +- .../MetaData/Libmemcached/GetSetDICest.php | 4 +- .../MetaData/Libmemcached/GetStrategyCest.php | 4 +- .../Libmemcached/HasAttributeCest.php | 4 +- .../MetaData/Libmemcached/IsEmptyCest.php | 4 +- .../Model/MetaData/Libmemcached/ReadCest.php | 4 +- .../Libmemcached/ReadColumnMapCest.php | 4 +- .../Libmemcached/ReadColumnMapIndexCest.php | 4 +- .../Libmemcached/ReadMetaDataCest.php | 4 +- .../Libmemcached/ReadMetaDataIndexCest.php | 4 +- .../Model/MetaData/Libmemcached/ResetCest.php | 4 +- .../SetAutomaticCreateAttributesCest.php | 4 +- .../SetAutomaticUpdateAttributesCest.php | 4 +- .../SetEmptyStringAttributesCest.php | 4 +- .../MetaData/Libmemcached/SetStrategyCest.php | 4 +- .../Model/MetaData/Libmemcached/WriteCest.php | 6 +-- .../Libmemcached/WriteMetaDataIndexCest.php | 4 +- .../Model/MetaData/Memory/ConstructCest.php | 6 +-- .../MetaData/Memory/GetAttributesCest.php | 4 +- .../GetAutomaticCreateAttributesCest.php | 4 +- .../GetAutomaticUpdateAttributesCest.php | 4 +- .../MetaData/Memory/GetBindTypesCest.php | 4 +- .../MetaData/Memory/GetColumnMapCest.php | 4 +- .../MetaData/Memory/GetDataTypesCest.php | 4 +- .../Memory/GetDataTypesNumericCest.php | 4 +- .../MetaData/Memory/GetDefaultValuesCest.php | 4 +- .../Memory/GetEmptyStringAttributesCest.php | 4 +- .../MetaData/Memory/GetIdentityFieldCest.php | 4 +- .../Memory/GetNonPrimaryKeyAttributesCest.php | 4 +- .../Memory/GetNotNullAttributesCest.php | 4 +- .../Memory/GetPrimaryKeyAttributesCest.php | 4 +- .../Memory/GetReverseColumnMapCest.php | 4 +- .../Model/MetaData/Memory/GetSetDICest.php | 4 +- .../Model/MetaData/Memory/GetStrategyCest.php | 4 +- .../MetaData/Memory/HasAttributeCest.php | 4 +- .../Mvc/Model/MetaData/Memory/IsEmptyCest.php | 4 +- .../Mvc/Model/MetaData/Memory/ReadCest.php | 4 +- .../MetaData/Memory/ReadColumnMapCest.php | 4 +- .../Memory/ReadColumnMapIndexCest.php | 4 +- .../MetaData/Memory/ReadMetaDataCest.php | 4 +- .../MetaData/Memory/ReadMetaDataIndexCest.php | 4 +- .../Mvc/Model/MetaData/Memory/ResetCest.php | 4 +- .../SetAutomaticCreateAttributesCest.php | 4 +- .../SetAutomaticUpdateAttributesCest.php | 4 +- .../Memory/SetEmptyStringAttributesCest.php | 4 +- .../Model/MetaData/Memory/SetStrategyCest.php | 4 +- .../Mvc/Model/MetaData/Memory/WriteCest.php | 4 +- .../Memory/WriteMetaDataIndexCest.php | 4 +- .../Mvc/Model/MetaData/ReadCest.php | 4 +- .../Mvc/Model/MetaData/ReadColumnMapCest.php | 4 +- .../Model/MetaData/ReadColumnMapIndexCest.php | 4 +- .../Mvc/Model/MetaData/ReadMetaDataCest.php | 4 +- .../Model/MetaData/ReadMetaDataIndexCest.php | 4 +- .../Model/MetaData/Redis/ConstructCest.php | 4 +- .../MetaData/Redis/GetAttributesCest.php | 4 +- .../GetAutomaticCreateAttributesCest.php | 4 +- .../GetAutomaticUpdateAttributesCest.php | 4 +- .../Model/MetaData/Redis/GetBindTypesCest.php | 4 +- .../Model/MetaData/Redis/GetColumnMapCest.php | 4 +- .../Model/MetaData/Redis/GetDataTypesCest.php | 4 +- .../Redis/GetDataTypesNumericCest.php | 4 +- .../MetaData/Redis/GetDefaultValuesCest.php | 4 +- .../Redis/GetEmptyStringAttributesCest.php | 4 +- .../MetaData/Redis/GetIdentityFieldCest.php | 4 +- .../Redis/GetNonPrimaryKeyAttributesCest.php | 4 +- .../Redis/GetNotNullAttributesCest.php | 4 +- .../Redis/GetPrimaryKeyAttributesCest.php | 4 +- .../Redis/GetReverseColumnMapCest.php | 4 +- .../Mvc/Model/MetaData/Redis/GetSetDICest.php | 4 +- .../Model/MetaData/Redis/GetStrategyCest.php | 4 +- .../Model/MetaData/Redis/HasAttributeCest.php | 4 +- .../Mvc/Model/MetaData/Redis/IsEmptyCest.php | 4 +- .../Mvc/Model/MetaData/Redis/ReadCest.php | 4 +- .../MetaData/Redis/ReadColumnMapCest.php | 4 +- .../MetaData/Redis/ReadColumnMapIndexCest.php | 4 +- .../Model/MetaData/Redis/ReadMetaDataCest.php | 4 +- .../MetaData/Redis/ReadMetaDataIndexCest.php | 4 +- .../Mvc/Model/MetaData/Redis/ResetCest.php | 4 +- .../SetAutomaticCreateAttributesCest.php | 4 +- .../SetAutomaticUpdateAttributesCest.php | 4 +- .../Redis/SetEmptyStringAttributesCest.php | 4 +- .../Model/MetaData/Redis/SetStrategyCest.php | 4 +- .../Mvc/Model/MetaData/Redis/WriteCest.php | 4 +- .../MetaData/Redis/WriteMetaDataIndexCest.php | 4 +- .../Mvc/Model/MetaData/ResetCest.php | 4 +- .../SetAutomaticCreateAttributesCest.php | 4 +- .../SetAutomaticUpdateAttributesCest.php | 4 +- .../MetaData/SetEmptyStringAttributesCest.php | 4 +- .../Mvc/Model/MetaData/SetStrategyCest.php | 4 +- .../Annotations/GetColumnMapsCest.php | 4 +- .../Strategy/Annotations/GetMetaDataCest.php | 4 +- .../Introspection/GetColumnMapsCest.php | 4 +- .../Introspection/GetMetaDataCest.php | 4 +- .../Strategy/Refactor-AnnotationsCest.php | 2 +- .../Model/MetaData/Stream/ConstructCest.php | 4 +- .../MetaData/Stream/GetAttributesCest.php | 4 +- .../GetAutomaticCreateAttributesCest.php | 4 +- .../GetAutomaticUpdateAttributesCest.php | 4 +- .../MetaData/Stream/GetBindTypesCest.php | 4 +- .../MetaData/Stream/GetColumnMapCest.php | 4 +- .../MetaData/Stream/GetDataTypesCest.php | 4 +- .../Stream/GetDataTypesNumericCest.php | 4 +- .../MetaData/Stream/GetDefaultValuesCest.php | 4 +- .../Stream/GetEmptyStringAttributesCest.php | 4 +- .../MetaData/Stream/GetIdentityFieldCest.php | 4 +- .../Stream/GetNonPrimaryKeyAttributesCest.php | 4 +- .../Stream/GetNotNullAttributesCest.php | 4 +- .../Stream/GetPrimaryKeyAttributesCest.php | 4 +- .../Stream/GetReverseColumnMapCest.php | 4 +- .../Model/MetaData/Stream/GetSetDICest.php | 4 +- .../Model/MetaData/Stream/GetStrategyCest.php | 4 +- .../MetaData/Stream/HasAttributeCest.php | 4 +- .../Mvc/Model/MetaData/Stream/IsEmptyCest.php | 4 +- .../Mvc/Model/MetaData/Stream/ReadCest.php | 4 +- .../MetaData/Stream/ReadColumnMapCest.php | 4 +- .../Stream/ReadColumnMapIndexCest.php | 4 +- .../MetaData/Stream/ReadMetaDataCest.php | 4 +- .../MetaData/Stream/ReadMetaDataIndexCest.php | 4 +- .../Mvc/Model/MetaData/Stream/ResetCest.php | 4 +- .../SetAutomaticCreateAttributesCest.php | 4 +- .../SetAutomaticUpdateAttributesCest.php | 4 +- .../Stream/SetEmptyStringAttributesCest.php | 4 +- .../Model/MetaData/Stream/SetStrategyCest.php | 4 +- .../Mvc/Model/MetaData/Stream/WriteCest.php | 6 +-- .../Stream/WriteMetaDataIndexCest.php | 4 +- .../Mvc/Model/MetaData/WriteCest.php | 4 +- .../Model/MetaData/WriteMetaDataIndexCest.php | 4 +- .../Mvc/Model/Query/Builder/AddFromCest.php | 4 +- .../Mvc/Model/Query/Builder/AndHavingCest.php | 4 +- .../Mvc/Model/Query/Builder/AndWhereCest.php | 4 +- .../Model/Query/Builder/AutoescapeCest.php | 4 +- .../Model/Query/Builder/BetweenHavingCest.php | 4 +- .../Model/Query/Builder/BetweenWhereCest.php | 4 +- .../Mvc/Model/Query/Builder/ColumnsCest.php | 4 +- .../Mvc/Model/Query/Builder/ConstructCest.php | 4 +- .../Mvc/Model/Query/Builder/DistinctCest.php | 2 +- .../Mvc/Model/Query/Builder/ForUpdateCest.php | 4 +- .../Mvc/Model/Query/Builder/FromCest.php | 4 +- .../Model/Query/Builder/GetBindParamsCest.php | 4 +- .../Model/Query/Builder/GetBindTypesCest.php | 4 +- .../Model/Query/Builder/GetColumnsCest.php | 4 +- .../Model/Query/Builder/GetDistinctCest.php | 4 +- .../Mvc/Model/Query/Builder/GetFromCest.php | 4 +- .../Model/Query/Builder/GetGroupByCest.php | 4 +- .../Mvc/Model/Query/Builder/GetHavingCest.php | 4 +- .../Mvc/Model/Query/Builder/GetJoinsCest.php | 4 +- .../Mvc/Model/Query/Builder/GetLimitCest.php | 4 +- .../Mvc/Model/Query/Builder/GetModelsCest.php | 8 ++-- .../Mvc/Model/Query/Builder/GetOffsetCest.php | 4 +- .../Model/Query/Builder/GetOrderByCest.php | 4 +- .../Mvc/Model/Query/Builder/GetPhqlCest.php | 2 +- .../Mvc/Model/Query/Builder/GetQueryCest.php | 4 +- .../Mvc/Model/Query/Builder/GetSetDICest.php | 4 +- .../Mvc/Model/Query/Builder/GetWhereCest.php | 4 +- .../Mvc/Model/Query/Builder/GroupByCest.php | 2 +- .../Mvc/Model/Query/Builder/HavingCest.php | 4 +- .../Mvc/Model/Query/Builder/InHavingCest.php | 4 +- .../Mvc/Model/Query/Builder/InWhereCest.php | 4 +- .../Mvc/Model/Query/Builder/InnerJoinCest.php | 4 +- .../Mvc/Model/Query/Builder/JoinCest.php | 4 +- .../Mvc/Model/Query/Builder/LeftJoinCest.php | 4 +- .../Mvc/Model/Query/Builder/LimitCest.php | 4 +- .../Query/Builder/NotBetweenHavingCest.php | 4 +- .../Query/Builder/NotBetweenWhereCest.php | 4 +- .../Model/Query/Builder/NotInHavingCest.php | 4 +- .../Model/Query/Builder/NotInWhereCest.php | 4 +- .../Mvc/Model/Query/Builder/OffsetCest.php | 4 +- .../Mvc/Model/Query/Builder/OrHavingCest.php | 4 +- .../Mvc/Model/Query/Builder/OrWhereCest.php | 4 +- .../Mvc/Model/Query/Builder/OrderByCest.php | 2 +- .../Mvc/Model/Query/Builder/RightJoinCest.php | 4 +- .../Model/Query/Builder/SetBindParamsCest.php | 4 +- .../Model/Query/Builder/SetBindTypesCest.php | 4 +- .../Mvc/Model/Query/Builder/WhereCest.php | 4 +- .../integration/Mvc/Model/Query/CacheCest.php | 4 +- .../integration/Mvc/Model/Query/CleanCest.php | 4 +- .../Mvc/Model/Query/ConstructCest.php | 4 +- .../Mvc/Model/Query/ExecuteCest.php | 4 +- .../Mvc/Model/Query/GetBindParamsCest.php | 4 +- .../Mvc/Model/Query/GetBindTypesCest.php | 4 +- .../Mvc/Model/Query/GetCacheCest.php | 4 +- .../Mvc/Model/Query/GetCacheOptionsCest.php | 4 +- .../Mvc/Model/Query/GetIntermediateCest.php | 4 +- .../Mvc/Model/Query/GetSetDICest.php | 4 +- .../Mvc/Model/Query/GetSetTransactionCest.php | 2 +- .../Mvc/Model/Query/GetSingleResultCest.php | 4 +- .../Mvc/Model/Query/GetSqlCest.php | 4 +- .../Mvc/Model/Query/GetTypeCest.php | 4 +- .../Mvc/Model/Query/GetUniqueRowCest.php | 4 +- .../Mvc/Model/Query/Lang/ParsePHQLCest.php | 4 +- .../integration/Mvc/Model/Query/ParseCest.php | 4 +- .../Mvc/Model/Query/Refactor-BuilderCest.php | 4 +- .../Mvc/Model/Query/SetBindParamsCest.php | 4 +- .../Mvc/Model/Query/SetBindTypesCest.php | 4 +- .../Mvc/Model/Query/SetIntermediateCest.php | 4 +- .../Mvc/Model/Query/SetSharedLockCest.php | 4 +- .../Mvc/Model/Query/SetTypeCest.php | 4 +- .../Mvc/Model/Query/SetUniqueRowCest.php | 4 +- .../Mvc/Model/Query/Status/ConstructCest.php | 4 +- .../Model/Query/Status/GetMessagesCest.php | 4 +- .../Mvc/Model/Query/Status/GetModelCest.php | 4 +- .../Mvc/Model/Query/Status/SuccessCest.php | 4 +- tests/integration/Mvc/Model/QueryCest.php | 4 +- .../Mvc/Model/ReadAttributeCest.php | 2 +- .../Mvc/Model/Refactor-BinderCest.php | 8 ++-- .../Mvc/Model/Refactor-CriteriaCest.php | 8 ++-- .../Model/Refactor-DynamicOperationsCest.php | 6 +-- .../Mvc/Model/Refactor-ManagerCest.php | 4 +- .../Mvc/Model/Refactor-QueryOldCest.php | 8 ++-- .../Mvc/Model/Refactor-RelationsCest.php | 2 +- .../Mvc/Model/Refactor-ResultsetClassCest.php | 2 +- .../Mvc/Model/Refactor-SnapshotCest.php | 6 +-- tests/integration/Mvc/Model/RefreshCest.php | 4 +- .../Mvc/Model/Relation/ConstructCest.php | 4 +- .../Mvc/Model/Relation/GetFieldsCest.php | 2 +- .../Mvc/Model/Relation/GetForeignKeyCest.php | 4 +- .../Relation/GetIntermediateFieldsCest.php | 4 +- .../Relation/GetIntermediateModelCest.php | 4 +- .../GetIntermediateReferencedFieldsCest.php | 4 +- .../Mvc/Model/Relation/GetOptionCest.php | 2 +- .../Mvc/Model/Relation/GetOptionsCest.php | 2 +- .../Mvc/Model/Relation/GetParamsCest.php | 2 +- .../Relation/GetReferencedFieldsCest.php | 4 +- .../Model/Relation/GetReferencedModelCest.php | 2 +- .../Mvc/Model/Relation/GetTypeCest.php | 2 +- .../Mvc/Model/Relation/IsForeignKeyCest.php | 2 +- .../Mvc/Model/Relation/IsReusableCest.php | 4 +- .../Mvc/Model/Relation/IsThroughCest.php | 4 +- .../Relation/SetIntermediateRelationCest.php | 4 +- .../Model/Resultset/Complex/ConstructCest.php | 4 +- .../Mvc/Model/Resultset/Complex/CountCest.php | 4 +- .../Model/Resultset/Complex/CurrentCest.php | 4 +- .../Model/Resultset/Complex/DeleteCest.php | 4 +- .../Model/Resultset/Complex/FilterCest.php | 4 +- .../Model/Resultset/Complex/GetCacheCest.php | 4 +- .../Model/Resultset/Complex/GetFirstCest.php | 4 +- .../Resultset/Complex/GetHydrateModeCest.php | 4 +- .../Model/Resultset/Complex/GetLastCest.php | 4 +- .../Resultset/Complex/GetMessagesCest.php | 4 +- .../Model/Resultset/Complex/GetTypeCest.php | 4 +- .../Model/Resultset/Complex/IsFreshCest.php | 4 +- .../Resultset/Complex/JsonSerializeCest.php | 4 +- .../Mvc/Model/Resultset/Complex/KeyCest.php | 4 +- .../Mvc/Model/Resultset/Complex/NextCest.php | 4 +- .../Resultset/Complex/OffsetExistsCest.php | 4 +- .../Model/Resultset/Complex/OffsetGetCest.php | 4 +- .../Model/Resultset/Complex/OffsetSetCest.php | 4 +- .../Resultset/Complex/OffsetUnsetCest.php | 4 +- .../Model/Resultset/Complex/RewindCest.php | 4 +- .../Mvc/Model/Resultset/Complex/SeekCest.php | 4 +- .../Model/Resultset/Complex/SerializeCest.php | 4 +- .../Resultset/Complex/SetHydrateModeCest.php | 4 +- .../Resultset/Complex/SetIsFreshCest.php | 4 +- .../Model/Resultset/Complex/ToArrayCest.php | 4 +- .../Resultset/Complex/UnserializeCest.php | 4 +- .../Model/Resultset/Complex/UpdateCest.php | 4 +- .../Mvc/Model/Resultset/Complex/ValidCest.php | 4 +- .../Mvc/Model/Resultset/ConstructCest.php | 4 +- .../Mvc/Model/Resultset/CountCest.php | 4 +- .../Mvc/Model/Resultset/CurrentCest.php | 4 +- .../Mvc/Model/Resultset/DeleteCest.php | 4 +- .../Mvc/Model/Resultset/FilterCest.php | 4 +- .../Mvc/Model/Resultset/GetCacheCest.php | 4 +- .../Mvc/Model/Resultset/GetFirstCest.php | 4 +- .../Model/Resultset/GetHydrateModeCest.php | 4 +- .../Mvc/Model/Resultset/GetLastCest.php | 4 +- .../Mvc/Model/Resultset/GetMessagesCest.php | 4 +- .../Mvc/Model/Resultset/GetTypeCest.php | 4 +- .../Mvc/Model/Resultset/IsFreshCest.php | 4 +- .../Mvc/Model/Resultset/JsonSerializeCest.php | 4 +- .../Mvc/Model/Resultset/KeyCest.php | 4 +- .../Mvc/Model/Resultset/NextCest.php | 4 +- .../Mvc/Model/Resultset/OffsetExistsCest.php | 4 +- .../Mvc/Model/Resultset/OffsetGetCest.php | 4 +- .../Mvc/Model/Resultset/OffsetSetCest.php | 4 +- .../Mvc/Model/Resultset/OffsetUnsetCest.php | 4 +- .../Model/Resultset/Refactor-ComplexCest.php | 4 +- .../Model/Resultset/Refactor-SimpleCest.php | 6 +-- .../Mvc/Model/Resultset/RewindCest.php | 4 +- .../Mvc/Model/Resultset/SeekCest.php | 4 +- .../Mvc/Model/Resultset/SerializeCest.php | 4 +- .../Model/Resultset/SetHydrateModeCest.php | 4 +- .../Mvc/Model/Resultset/SetIsFreshCest.php | 4 +- .../Model/Resultset/Simple/ConstructCest.php | 6 +-- .../Mvc/Model/Resultset/Simple/CountCest.php | 4 +- .../Model/Resultset/Simple/CurrentCest.php | 4 +- .../Mvc/Model/Resultset/Simple/DeleteCest.php | 4 +- .../Mvc/Model/Resultset/Simple/FilterCest.php | 4 +- .../Model/Resultset/Simple/GetCacheCest.php | 4 +- .../Model/Resultset/Simple/GetFirstCest.php | 4 +- .../Resultset/Simple/GetHydrateModeCest.php | 4 +- .../Model/Resultset/Simple/GetLastCest.php | 4 +- .../Resultset/Simple/GetMessagesCest.php | 4 +- .../Model/Resultset/Simple/GetTypeCest.php | 4 +- .../Model/Resultset/Simple/IsFreshCest.php | 4 +- .../Resultset/Simple/JsonSerializeCest.php | 4 +- .../Mvc/Model/Resultset/Simple/KeyCest.php | 4 +- .../Mvc/Model/Resultset/Simple/NextCest.php | 4 +- .../Resultset/Simple/OffsetExistsCest.php | 4 +- .../Model/Resultset/Simple/OffsetGetCest.php | 4 +- .../Model/Resultset/Simple/OffsetSetCest.php | 4 +- .../Resultset/Simple/OffsetUnsetCest.php | 4 +- .../Mvc/Model/Resultset/Simple/RewindCest.php | 4 +- .../Mvc/Model/Resultset/Simple/SeekCest.php | 4 +- .../Model/Resultset/Simple/SerializeCest.php | 4 +- .../Resultset/Simple/SetHydrateModeCest.php | 4 +- .../Model/Resultset/Simple/SetIsFreshCest.php | 4 +- .../Model/Resultset/Simple/ToArrayCest.php | 4 +- .../Resultset/Simple/UnserializeCest.php | 4 +- .../Mvc/Model/Resultset/Simple/UpdateCest.php | 4 +- .../Mvc/Model/Resultset/Simple/ValidCest.php | 4 +- .../Mvc/Model/Resultset/ToArrayCest.php | 4 +- .../Mvc/Model/Resultset/UnserializeCest.php | 4 +- .../Mvc/Model/Resultset/UpdateCest.php | 4 +- .../Mvc/Model/Resultset/ValidCest.php | 4 +- .../Mvc/Model/Row/JsonSerializeCest.php | 2 +- .../Mvc/Model/Row/OffsetExistsCest.php | 2 +- .../Mvc/Model/Row/OffsetGetCest.php | 2 +- .../Mvc/Model/Row/OffsetSetCest.php | 2 +- .../Mvc/Model/Row/OffsetUnsetCest.php | 2 +- .../Mvc/Model/Row/ReadWriteAttributeCest.php | 2 +- .../Mvc/Model/Row/SetDirtyStateCest.php | 4 +- .../integration/Mvc/Model/Row/ToArrayCest.php | 2 +- tests/integration/Mvc/Model/SaveCest.php | 4 +- tests/integration/Mvc/Model/SerializeCest.php | 4 +- .../Mvc/Model/SetConnectionServiceCest.php | 4 +- .../Mvc/Model/SetDirtyStateCest.php | 4 +- .../Mvc/Model/SetEventsManagerCest.php | 4 +- .../Mvc/Model/SetOldSnapshotDataCest.php | 4 +- .../Model/SetReadConnectionServiceCest.php | 4 +- .../Mvc/Model/SetSnapshotDataCest.php | 4 +- .../Mvc/Model/SetTransactionCest.php | 4 +- .../Model/SetWriteConnectionServiceCest.php | 4 +- tests/integration/Mvc/Model/SetupCest.php | 4 +- .../Mvc/Model/SkipOperationCest.php | 4 +- tests/integration/Mvc/Model/ToArrayCest.php | 2 +- .../Mvc/Model/Transaction/BeginCest.php | 4 +- .../Mvc/Model/Transaction/CommitCest.php | 4 +- .../Mvc/Model/Transaction/ConstructCest.php | 4 +- .../Model/Transaction/GetConnectionCest.php | 4 +- .../Mvc/Model/Transaction/GetMessagesCest.php | 4 +- .../Mvc/Model/Transaction/IsManagedCest.php | 2 +- .../Mvc/Model/Transaction/IsValidCest.php | 4 +- .../Manager/CollectTransactionsCest.php | 4 +- .../Model/Transaction/Manager/CommitCest.php | 4 +- .../Transaction/Manager/ConstructCest.php | 4 +- .../Mvc/Model/Transaction/Manager/GetCest.php | 4 +- .../Model/Transaction/Manager/GetDICest.php | 4 +- .../Transaction/Manager/GetDbServiceCest.php | 4 +- .../Manager/GetOrCreateTransactionCest.php | 4 +- .../Manager/GetRollbackPendentCest.php | 4 +- .../Mvc/Model/Transaction/Manager/HasCest.php | 4 +- .../Transaction/Manager/NotifyCommitCest.php | 4 +- .../Manager/NotifyRollbackCest.php | 4 +- .../Transaction/Manager/RollbackCest.php | 4 +- .../Manager/RollbackPendentCest.php | 4 +- .../Model/Transaction/Manager/SetDICest.php | 4 +- .../Transaction/Manager/SetDbServiceCest.php | 4 +- .../Manager/SetRollbackPendentCest.php | 4 +- .../Transaction/Refactor-ManagerCest.php | 8 ++-- .../Mvc/Model/Transaction/RollbackCest.php | 6 +-- .../Transaction/SetIsNewTransactionCest.php | 4 +- .../Transaction/SetRollbackOnAbortCest.php | 4 +- .../Transaction/SetRollbackedRecordCest.php | 4 +- .../Transaction/SetTransactionManagerCest.php | 4 +- .../Mvc/Model/UnderscoreCallCest.php | 4 +- .../Mvc/Model/UnderscoreCallStaticCest.php | 4 +- .../Mvc/Model/UnderscoreGetCest.php | 2 +- .../Mvc/Model/UnderscoreIssetCest.php | 2 +- .../Mvc/Model/UnderscoreSetCest.php | 2 +- .../integration/Mvc/Model/UnserializeCest.php | 4 +- tests/integration/Mvc/Model/UpdateCest.php | 4 +- .../Mvc/Model/ValidationHasFailedCest.php | 4 +- .../Mvc/Model/WriteAttributeCest.php | 2 +- tests/integration/Mvc/ModelCest.php_check | 8 ++-- .../Mvc/Refactor-ControllersCest.php | 8 ++-- tests/integration/Mvc/Refactor-MicroCest.php | 2 +- tests/integration/Mvc/Refactor-ModelCest.php | 10 ++--- tests/integration/Mvc/Refactor-RouterCest.php | 36 ++++++++-------- .../Mvc/Refactor-ViewEnginesCest.php | 16 +++---- .../Mvc/Refactor-ViewTest.php_check | 6 +-- tests/integration/Mvc/Router/AddCest.php | 2 +- .../integration/Mvc/Router/AddConnectCest.php | 2 +- .../integration/Mvc/Router/AddDeleteCest.php | 2 +- tests/integration/Mvc/Router/AddGetCest.php | 2 +- tests/integration/Mvc/Router/AddHeadCest.php | 2 +- .../integration/Mvc/Router/AddOptionsCest.php | 2 +- tests/integration/Mvc/Router/AddPatchCest.php | 2 +- tests/integration/Mvc/Router/AddPostCest.php | 2 +- tests/integration/Mvc/Router/AddPurgeCest.php | 2 +- tests/integration/Mvc/Router/AddPutCest.php | 2 +- tests/integration/Mvc/Router/AddTraceCest.php | 2 +- .../Mvc/Router/Annotations/AddCest.php | 4 +- .../Mvc/Router/Annotations/AddConnectCest.php | 4 +- .../Mvc/Router/Annotations/AddDeleteCest.php | 4 +- .../Mvc/Router/Annotations/AddGetCest.php | 4 +- .../Mvc/Router/Annotations/AddHeadCest.php | 4 +- .../Annotations/AddModuleResourceCest.php | 4 +- .../Mvc/Router/Annotations/AddOptionsCest.php | 4 +- .../Mvc/Router/Annotations/AddPatchCest.php | 4 +- .../Mvc/Router/Annotations/AddPostCest.php | 4 +- .../Mvc/Router/Annotations/AddPurgeCest.php | 4 +- .../Mvc/Router/Annotations/AddPutCest.php | 4 +- .../Router/Annotations/AddResourceCest.php | 4 +- .../Mvc/Router/Annotations/AddTraceCest.php | 4 +- .../Mvc/Router/Annotations/AttachCest.php | 4 +- .../Mvc/Router/Annotations/ClearCest.php | 4 +- .../Mvc/Router/Annotations/ConstructCest.php | 4 +- .../Router/Annotations/GetActionNameCest.php | 4 +- .../Annotations/GetControllerNameCest.php | 4 +- .../Router/Annotations/GetDefaultsCest.php | 4 +- .../Annotations/GetEventsManagerCest.php | 4 +- .../Router/Annotations/GetKeyRouteIdsCest.php | 4 +- .../Annotations/GetKeyRouteNamesCest.php | 4 +- .../Annotations/GetMatchedRouteCest.php | 4 +- .../Mvc/Router/Annotations/GetMatchesCest.php | 4 +- .../Router/Annotations/GetModuleNameCest.php | 4 +- .../Annotations/GetNamespaceNameCest.php | 4 +- .../Mvc/Router/Annotations/GetParamsCest.php | 4 +- .../Router/Annotations/GetResourcesCest.php | 4 +- .../Router/Annotations/GetRouteByIdCest.php | 4 +- .../Router/Annotations/GetRouteByNameCest.php | 4 +- .../Mvc/Router/Annotations/GetRoutesCest.php | 4 +- .../Mvc/Router/Annotations/GetSetDICest.php | 4 +- .../Mvc/Router/Annotations/HandleCest.php | 4 +- .../Annotations/IsExactControllerNameCest.php | 2 +- .../Mvc/Router/Annotations/MountCest.php | 4 +- .../Mvc/Router/Annotations/NotFoundCest.php | 4 +- .../ProcessActionAnnotationCest.php | 4 +- .../ProcessControllerAnnotationCest.php | 4 +- .../Annotations/RemoveExtraSlashesCest.php | 4 +- .../Annotations/SetActionSuffixCest.php | 4 +- .../Annotations/SetControllerSuffixCest.php | 4 +- .../Annotations/SetDefaultActionCest.php | 4 +- .../Annotations/SetDefaultControllerCest.php | 4 +- .../Annotations/SetDefaultModuleCest.php | 4 +- .../Annotations/SetDefaultNamespaceCest.php | 4 +- .../Router/Annotations/SetDefaultsCest.php | 4 +- .../Annotations/SetEventsManagerCest.php | 4 +- .../Router/Annotations/SetKeyRouteIdsCest.php | 4 +- .../Annotations/SetKeyRouteNamesCest.php | 4 +- .../Mvc/Router/Annotations/WasMatchedCest.php | 4 +- tests/integration/Mvc/Router/AttachCest.php | 4 +- tests/integration/Mvc/Router/ClearCest.php | 2 +- .../integration/Mvc/Router/ConstructCest.php | 4 +- .../Mvc/Router/GetActionNameCest.php | 4 +- .../Mvc/Router/GetControllerNameCest.php | 4 +- .../Mvc/Router/GetEventsManagerCest.php | 4 +- .../Mvc/Router/GetKeyRouteIdsCest.php | 4 +- .../Mvc/Router/GetKeyRouteNamesCest.php | 4 +- .../Mvc/Router/GetMatchedRouteCest.php | 4 +- .../integration/Mvc/Router/GetMatchesCest.php | 4 +- .../Mvc/Router/GetModuleNameCest.php | 4 +- .../Mvc/Router/GetNamespaceNameCest.php | 4 +- .../integration/Mvc/Router/GetParamsCest.php | 4 +- .../Mvc/Router/GetRouteByIdCest.php | 4 +- .../Mvc/Router/GetRouteByNameCest.php | 4 +- .../integration/Mvc/Router/GetRoutesCest.php | 2 +- tests/integration/Mvc/Router/GetSetDICest.php | 2 +- .../Mvc/Router/GetSetDefaultsCest.php | 2 +- .../integration/Mvc/Router/Group/AddCest.php | 2 +- .../Mvc/Router/Group/AddConnectCest.php | 2 +- .../Mvc/Router/Group/AddDeleteCest.php | 2 +- .../Mvc/Router/Group/AddGetCest.php | 2 +- .../Mvc/Router/Group/AddHeadCest.php | 2 +- .../Mvc/Router/Group/AddOptionsCest.php | 2 +- .../Mvc/Router/Group/AddPatchCest.php | 2 +- .../Mvc/Router/Group/AddPostCest.php | 2 +- .../Mvc/Router/Group/AddPurgeCest.php | 2 +- .../Mvc/Router/Group/AddPutCest.php | 2 +- .../Mvc/Router/Group/AddTraceCest.php | 2 +- .../Mvc/Router/Group/BeforeMatchCest.php | 4 +- .../Mvc/Router/Group/ClearCest.php | 2 +- .../Mvc/Router/Group/ConstructCest.php | 4 +- .../Mvc/Router/Group/GetBeforeMatchCest.php | 4 +- .../Mvc/Router/Group/GetHostnameCest.php | 4 +- .../Mvc/Router/Group/GetPathsCest.php | 4 +- .../Mvc/Router/Group/GetRoutesCest.php | 2 +- .../Mvc/Router/Group/GetSetPrefixCest.php | 2 +- .../Mvc/Router/Group/SetHostnameCest.php | 4 +- .../Mvc/Router/Group/SetPathsCest.php | 4 +- tests/integration/Mvc/Router/HandleCest.php | 4 +- .../Mvc/Router/IsExactControllerNameCest.php | 2 +- tests/integration/Mvc/Router/MountCest.php | 4 +- tests/integration/Mvc/Router/NotFoundCest.php | 4 +- .../Mvc/Router/Refactor-AnnotationsCest.php | 2 +- .../Mvc/Router/Refactor-GroupCest.php | 14 +++---- .../Mvc/Router/RemoveExtraSlashesCest.php | 4 +- .../Mvc/Router/Route/BeforeMatchCest.php | 4 +- .../Mvc/Router/Route/CompilePatternCest.php | 4 +- .../Mvc/Router/Route/ConstructCest.php | 4 +- .../Mvc/Router/Route/ConvertCest.php | 4 +- .../Router/Route/ExtractNamedParamsCest.php | 4 +- .../Mvc/Router/Route/GetBeforeMatchCest.php | 4 +- .../Router/Route/GetCompiledPatternCest.php | 4 +- .../Mvc/Router/Route/GetConvertersCest.php | 4 +- .../Mvc/Router/Route/GetGroupCest.php | 4 +- .../Mvc/Router/Route/GetHostnameCest.php | 4 +- .../Mvc/Router/Route/GetHttpMethodsCest.php | 4 +- .../Mvc/Router/Route/GetIdCest.php | 4 +- .../Mvc/Router/Route/GetMatchCest.php | 4 +- .../Mvc/Router/Route/GetNameCest.php | 4 +- .../Mvc/Router/Route/GetPathsCest.php | 4 +- .../Mvc/Router/Route/GetPatternCest.php | 4 +- .../Mvc/Router/Route/GetReversedPathsCest.php | 4 +- .../Mvc/Router/Route/GetRouteIdCest.php | 4 +- .../Mvc/Router/Route/GetRoutePathsCest.php | 4 +- .../Mvc/Router/Route/MatchCest.php | 4 +- .../Mvc/Router/Route/ReConfigureCest.php | 4 +- .../Mvc/Router/Route/ResetCest.php | 4 +- .../Mvc/Router/Route/SetGroupCest.php | 4 +- .../Mvc/Router/Route/SetHostnameCest.php | 4 +- .../Mvc/Router/Route/SetHttpMethodsCest.php | 4 +- .../Mvc/Router/Route/SetNameCest.php | 4 +- .../integration/Mvc/Router/Route/ViaCest.php | 4 +- tests/integration/Mvc/Router/SetDICest.php | 4 +- .../Mvc/Router/SetDefaultActionCest.php | 2 +- .../Mvc/Router/SetDefaultControllerCest.php | 2 +- .../Mvc/Router/SetDefaultModuleCest.php | 2 +- .../Mvc/Router/SetDefaultNamespaceCest.php | 2 +- .../Mvc/Router/SetEventsManagerCest.php | 4 +- .../Mvc/Router/SetKeyRouteIdsCest.php | 4 +- .../Mvc/Router/SetKeyRouteNamesCest.php | 4 +- .../integration/Mvc/Router/WasMatchedCest.php | 4 +- .../Mvc/View/CleanTemplateAfterCest.php | 4 +- .../Mvc/View/CleanTemplateBeforeCest.php | 4 +- tests/integration/Mvc/View/ConstructCest.php | 4 +- tests/integration/Mvc/View/DisableCest.php | 4 +- .../integration/Mvc/View/DisableLevelCest.php | 4 +- tests/integration/Mvc/View/EnableCest.php | 4 +- .../Mvc/View/Engine/Php/ConstructCest.php | 4 +- .../Mvc/View/Engine/Php/GetContentCest.php | 2 +- .../View/Engine/Php/GetEventsManagerCest.php | 4 +- .../Mvc/View/Engine/Php/GetSetDICest.php | 2 +- .../Mvc/View/Engine/Php/GetViewCest.php | 2 +- .../Mvc/View/Engine/Php/PartialCest.php | 4 +- .../Mvc/View/Engine/Php/RenderCest.php | 4 +- .../View/Engine/Php/SetEventsManagerCest.php | 4 +- .../Mvc/View/Engine/Php/UnderscoreGetCest.php | 4 +- .../Mvc/View/Engine/Volt/CallMacroCest.php | 4 +- .../Engine/Volt/Compiler/AddExtensionCest.php | 4 +- .../Engine/Volt/Compiler/AddFilterCest.php | 6 +-- .../Engine/Volt/Compiler/AddFunctionCest.php | 6 +-- .../Volt/Compiler/AttributeReaderCest.php | 4 +- .../Volt/Compiler/CompileAutoEscapeCest.php | 4 +- .../Engine/Volt/Compiler/CompileCacheCest.php | 4 +- .../Engine/Volt/Compiler/CompileCallCest.php | 4 +- .../Engine/Volt/Compiler/CompileCaseCest.php | 4 +- .../View/Engine/Volt/Compiler/CompileCest.php | 4 +- .../Engine/Volt/Compiler/CompileDoCest.php | 4 +- .../Engine/Volt/Compiler/CompileEchoCest.php | 4 +- .../Volt/Compiler/CompileElseIfCest.php | 2 +- .../Engine/Volt/Compiler/CompileFileCest.php | 6 +-- .../Volt/Compiler/CompileForElseCest.php | 4 +- .../Volt/Compiler/CompileForeachCest.php | 4 +- .../Engine/Volt/Compiler/CompileIfCest.php | 2 +- .../Volt/Compiler/CompileIncludeCest.php | 4 +- .../Engine/Volt/Compiler/CompileMacroCest.php | 4 +- .../Volt/Compiler/CompileReturnCest.php | 4 +- .../Engine/Volt/Compiler/CompileSetCest.php | 4 +- .../Volt/Compiler/CompileStringCest.php | 6 +-- .../Volt/Compiler/CompileSwitchCest.php | 4 +- .../Engine/Volt/Compiler/ConstructCest.php | 4 +- .../Engine/Volt/Compiler/ExpressionCest.php | 4 +- .../Volt/Compiler/FireExtensionEventCest.php | 4 +- .../Engine/Volt/Compiler/FunctionCallCest.php | 4 +- .../Compiler/GetCompiledTemplatePathCest.php | 4 +- .../Volt/Compiler/GetExtensionsCest.php | 4 +- .../Engine/Volt/Compiler/GetFiltersCest.php | 4 +- .../Engine/Volt/Compiler/GetFunctionsCest.php | 4 +- .../Engine/Volt/Compiler/GetOptionCest.php | 4 +- .../Engine/Volt/Compiler/GetOptionsCest.php | 4 +- .../Engine/Volt/Compiler/GetSetDICest.php | 2 +- .../Volt/Compiler/GetTemplatePathCest.php | 4 +- .../Volt/Compiler/GetUniquePrefixCest.php | 4 +- .../View/Engine/Volt/Compiler/ParseCest.php | 8 ++-- .../Engine/Volt/Compiler/ResolveTestCest.php | 4 +- .../Engine/Volt/Compiler/SetOptionCest.php | 4 +- .../Engine/Volt/Compiler/SetOptionsCest.php | 4 +- .../Volt/Compiler/SetUniquePrefixCest.php | 4 +- .../Mvc/View/Engine/Volt/CompilerCest.php | 4 +- .../View/Engine/Volt/CompilerFilesCest.php | 4 +- .../Mvc/View/Engine/Volt/ConstructCest.php | 4 +- .../View/Engine/Volt/ConvertEncodingCest.php | 4 +- .../Mvc/View/Engine/Volt/GetCompilerCest.php | 4 +- .../Mvc/View/Engine/Volt/GetContentCest.php | 2 +- .../Mvc/View/Engine/Volt/GetSetDICest.php | 2 +- .../Engine/Volt/GetSetEventsManagerCest.php | 4 +- .../View/Engine/Volt/GetSetOptionsCest.php | 2 +- .../Mvc/View/Engine/Volt/GetViewCest.php | 2 +- .../Mvc/View/Engine/Volt/IsIncludedCest.php | 4 +- .../Mvc/View/Engine/Volt/LengthCest.php | 4 +- .../Mvc/View/Engine/Volt/PartialCest.php | 4 +- .../Mvc/View/Engine/Volt/RenderCest.php | 6 +-- .../Mvc/View/Engine/Volt/SliceCest.php | 4 +- .../Mvc/View/Engine/Volt/SortCest.php | 4 +- .../View/Engine/Volt/UnderscoreGetCest.php | 4 +- tests/integration/Mvc/View/ExistsCest.php | 2 +- tests/integration/Mvc/View/FinishCest.php | 4 +- .../Mvc/View/GetActionNameCest.php | 2 +- .../Mvc/View/GetActiveRenderPathCest.php | 4 +- .../integration/Mvc/View/GetBasePathCest.php | 4 +- .../Mvc/View/GetControllerNameCest.php | 2 +- .../Mvc/View/GetParamsToViewCest.php | 4 +- tests/integration/Mvc/View/GetPartialCest.php | 4 +- .../Mvc/View/GetRegisteredEnginesCest.php | 4 +- tests/integration/Mvc/View/GetRenderCest.php | 4 +- .../Mvc/View/GetRenderLevelCest.php | 4 +- .../Mvc/View/GetSetContentCest.php | 2 +- tests/integration/Mvc/View/GetSetDICest.php | 4 +- .../Mvc/View/GetSetEventsManagerCest.php | 4 +- .../integration/Mvc/View/GetSetLayoutCest.php | 4 +- .../Mvc/View/GetSetLayoutsDirCest.php | 2 +- .../Mvc/View/GetSetMainViewCest.php | 2 +- .../Mvc/View/GetSetPartialsDirCest.php | 2 +- .../Mvc/View/GetSetRenderLevelCest.php | 2 +- tests/integration/Mvc/View/GetSetVarCest.php | 2 +- .../Mvc/View/GetSetViewsDirCest.php | 2 +- tests/integration/Mvc/View/IsDisabledCest.php | 4 +- tests/integration/Mvc/View/PartialCest.php | 4 +- tests/integration/Mvc/View/PickCest.php | 4 +- .../Mvc/View/RegisterEnginesCest.php | 2 +- tests/integration/Mvc/View/RenderCest.php | 4 +- tests/integration/Mvc/View/ResetCest.php | 4 +- .../integration/Mvc/View/SetBasePathCest.php | 4 +- .../Mvc/View/SetParamToViewCest.php | 4 +- .../Mvc/View/SetTemplateAfterCest.php | 4 +- .../Mvc/View/SetTemplateBeforeCest.php | 4 +- tests/integration/Mvc/View/SetVarsCest.php | 4 +- .../Mvc/View/Simple/ConstructCest.php | 4 +- .../View/Simple/GetActiveRenderPathCest.php | 4 +- .../View/Simple/GetRegisteredEnginesCest.php | 2 +- .../Mvc/View/Simple/GetSetContentCest.php | 4 +- .../Mvc/View/Simple/GetSetDICest.php | 4 +- .../View/Simple/GetSetEventsManagerCest.php | 4 +- .../View/Simple/GetSetParamsToViewCest.php | 4 +- .../Mvc/View/Simple/GetSetVarCest.php | 4 +- .../Mvc/View/Simple/GetSetViewsDirCest.php | 4 +- .../Mvc/View/Simple/PartialCest.php | 4 +- .../Mvc/View/Simple/RegisterEnginesCest.php | 4 +- .../Mvc/View/Simple/RenderCest.php | 2 +- .../Mvc/View/Simple/SetVarsCest.php | 4 +- .../Mvc/View/Simple/UnderscoreGetSetCest.php | 4 +- tests/integration/Mvc/View/StartCest.php | 4 +- tests/integration/Mvc/View/ToStringCest.php | 4 +- .../Mvc/View/UnderscoreGetSetCest.php | 2 +- .../Mvc/View/UnderscoreIssetCest.php | 2 +- .../Paginator/Adapter/Model/ConstructCest.php | 4 +- .../Paginator/Adapter/Model/GetLimitCest.php | 4 +- .../Paginator/Adapter/Model/PaginateCest.php | 2 +- .../Adapter/Model/SetCurrentPageCest.php | 4 +- .../Paginator/Adapter/Model/SetLimitCest.php | 4 +- .../Adapter/Model/SetRepositoryCest.php | 4 +- .../Adapter/NativeArray/ConstructCest.php | 4 +- .../Adapter/NativeArray/GetLimitCest.php | 4 +- .../Adapter/NativeArray/PaginateCest.php | 4 +- .../NativeArray/SetCurrentPageCest.php | 4 +- .../Adapter/NativeArray/SetLimitCest.php | 4 +- .../Adapter/NativeArray/SetRepositoryCest.php | 4 +- .../Adapter/QueryBuilder/ConstructCest.php | 4 +- .../QueryBuilder/GetCurrentPageCest.php | 4 +- .../Adapter/QueryBuilder/GetSetLimitCest.php | 2 +- .../QueryBuilder/GetSetQueryBuilderCest.php | 2 +- .../Adapter/QueryBuilder/PaginateCest.php | 4 +- .../Refactor-PaginatorQueryBuilderCest.php | 2 +- .../QueryBuilder/SetCurrentPageCest.php | 4 +- .../QueryBuilder/SetRepositoryCest.php | 4 +- .../Paginator/PaginatorFactory/LoadCest.php | 2 +- .../PaginatorFactory/NewInstanceCest.php | 4 +- .../Paginator/Repository/GetAliasesCest.php | 4 +- .../Paginator/Repository/GetCurrentCest.php | 4 +- .../Paginator/Repository/GetFirstCest.php | 4 +- .../Paginator/Repository/GetItemsCest.php | 4 +- .../Paginator/Repository/GetLastCest.php | 4 +- .../Paginator/Repository/GetLimitCest.php | 4 +- .../Paginator/Repository/GetNextCest.php | 4 +- .../Paginator/Repository/GetPreviousCest.php | 4 +- .../Repository/GetTotalItemsCest.php | 4 +- .../Paginator/Repository/SetAliasesCest.php | 4 +- .../Repository/SetPropertiesCest.php | 4 +- .../Repository/UnderscoreGetCest.php | 4 +- tests/integration/Plugin/GetDICest.php | 4 +- .../Plugin/GetEventsManagerCest.php | 4 +- tests/integration/Plugin/SetDICest.php | 4 +- .../Plugin/SetEventsManagerCest.php | 4 +- .../integration/Plugin/UnderscoreGetCest.php | 4 +- tests/integration/Refactor-ValidationCest.php | 4 +- .../Adapter/Libmemcached/CloseCest.php | 4 +- .../Adapter/Libmemcached/ConstructCest.php | 4 +- .../Adapter/Libmemcached/DestroyCest.php | 4 +- .../Session/Adapter/Libmemcached/GcCest.php | 4 +- .../Session/Adapter/Libmemcached/OpenCest.php | 4 +- .../Session/Adapter/Libmemcached/ReadCest.php | 4 +- .../Adapter/Libmemcached/WriteCest.php | 4 +- .../Session/Adapter/Noop/CloseCest.php | 4 +- .../Session/Adapter/Noop/ConstructCest.php | 4 +- .../Session/Adapter/Noop/DestroyCest.php | 4 +- .../Session/Adapter/Noop/GcCest.php | 4 +- .../Session/Adapter/Noop/OpenCest.php | 4 +- .../Session/Adapter/Noop/ReadCest.php | 4 +- .../Session/Adapter/Noop/WriteCest.php | 4 +- .../Session/Adapter/Redis/CloseCest.php | 4 +- .../Session/Adapter/Redis/ConstructCest.php | 4 +- .../Session/Adapter/Redis/DestroyCest.php | 4 +- .../Session/Adapter/Redis/GcCest.php | 4 +- .../Session/Adapter/Redis/OpenCest.php | 4 +- .../Session/Adapter/Redis/ReadCest.php | 4 +- .../Session/Adapter/Redis/WriteCest.php | 4 +- .../Session/Adapter/Stream/CloseCest.php | 4 +- .../Session/Adapter/Stream/ConstructCest.php | 4 +- .../Session/Adapter/Stream/DestroyCest.php | 4 +- .../Session/Adapter/Stream/GcCest.php | 4 +- .../Session/Adapter/Stream/OpenCest.php | 4 +- .../Session/Adapter/Stream/ReadCest.php | 4 +- .../Session/Adapter/Stream/WriteCest.php | 4 +- tests/integration/Session/Bag/ClearCest.php | 4 +- .../integration/Session/Bag/ConstructCest.php | 4 +- tests/integration/Session/Bag/CountCest.php | 4 +- tests/integration/Session/Bag/GetCest.php | 4 +- .../Session/Bag/GetIteratorCest.php | 4 +- .../integration/Session/Bag/GetSetDICest.php | 4 +- tests/integration/Session/Bag/HasCest.php | 4 +- tests/integration/Session/Bag/InitCest.php | 4 +- .../Session/Bag/JsonSerializeCest.php | 4 +- tests/integration/Session/Bag/RemoveCest.php | 4 +- .../integration/Session/Bag/SerializeCest.php | 4 +- tests/integration/Session/Bag/SetCest.php | 4 +- tests/integration/Session/Bag/ToArrayCest.php | 4 +- tests/integration/Session/Bag/ToJsonCest.php | 4 +- .../Session/Bag/UnserializeCest.php | 4 +- .../integration/Session/Factory/LoadCest.php | 2 +- .../Session/Manager/ConstructCest.php | 4 +- .../Session/Manager/ExistsDestroyCest.php | 6 +-- .../Session/Manager/GetSetCest.php | 4 +- .../Session/Manager/GetSetDICest.php | 4 +- .../Session/Manager/GetSetHandlerCest.php | 4 +- .../Session/Manager/GetSetIdCest.php | 4 +- .../Session/Manager/GetSetNameCest.php | 8 ++-- .../Session/Manager/GetSetOptionsCest.php | 6 +-- tests/integration/Session/Manager/HasCest.php | 4 +- .../Session/Manager/RegenerateIdCest.php | 4 +- .../Session/Manager/RemoveCest.php | 4 +- .../Session/Manager/StatusCest.php | 4 +- .../Session/Manager/UnderscoreGetSetCest.php | 4 +- .../Session/Manager/UnderscoreIssetCest.php | 4 +- .../Session/Manager/UnderscoreUnsetCest.php | 4 +- tests/integration/Url/GetBasePathCest.php | 4 +- tests/integration/Url/GetBaseUriCest.php | 4 +- tests/integration/Url/GetCest.php | 14 +++---- tests/integration/Url/GetSetBasePathCest.php | 4 +- tests/integration/Url/GetSetBaseUriCest.php | 6 +-- tests/integration/Url/GetSetDICest.php | 4 +- .../Url/GetSetStaticBaseUriCest.php | 10 ++--- .../integration/Url/GetStaticBaseUriCest.php | 4 +- tests/integration/Url/GetStaticCest.php | 8 ++-- tests/integration/Url/PathCest.php | 4 +- tests/integration/Url/Refactor-UrlCest.php | 4 +- tests/integration/Url/SetBasePathCest.php | 4 +- tests/integration/Url/SetBaseUriCest.php | 4 +- .../integration/Url/SetStaticBaseUriCest.php | 4 +- tests/integration/Validation/AddCest.php | 2 +- .../Validation/AppendMessageCest.php | 4 +- tests/integration/Validation/BindCest.php | 2 +- .../integration/Validation/ConstructCest.php | 2 +- tests/integration/Validation/GetDataCest.php | 2 +- .../integration/Validation/GetEntityCest.php | 2 +- .../Validation/GetEventsManagerCest.php | 4 +- .../integration/Validation/GetFiltersCest.php | 2 +- tests/integration/Validation/GetLabelCest.php | 4 +- .../Validation/GetMessagesCest.php | 4 +- tests/integration/Validation/GetSetDICest.php | 4 +- .../Validation/GetValidatorsCest.php | 4 +- tests/integration/Validation/GetValueCest.php | 4 +- tests/integration/Validation/RuleCest.php | 2 +- tests/integration/Validation/RulesCest.php | 2 +- .../Validation/SetDefaultMessagesCest.php | 4 +- .../integration/Validation/SetEntityCest.php | 2 +- .../Validation/SetEventsManagerCest.php | 4 +- .../integration/Validation/SetFiltersCest.php | 2 +- .../integration/Validation/SetLabelsCest.php | 4 +- .../Validation/SetValidatorsCest.php | 2 +- .../Validation/UnderscoreGetCest.php | 4 +- tests/integration/Validation/ValidateCest.php | 4 +- .../integration/Validation/ValidationCest.php | 10 ++--- .../Validator/Alnum/ConstructCest.php | 4 +- .../Validator/Alnum/GetOptionCest.php | 4 +- .../Validator/Alnum/HasOptionCest.php | 4 +- .../Validator/Alnum/SetOptionCest.php | 4 +- .../Validator/Alnum/ValidateCest.php | 2 +- .../Validator/Alpha/ConstructCest.php | 4 +- .../Validator/Alpha/GetOptionCest.php | 4 +- .../Validator/Alpha/HasOptionCest.php | 4 +- .../Validator/Alpha/SetOptionCest.php | 4 +- .../Validator/Alpha/ValidateCest.php | 8 ++-- .../Validator/Between/ConstructCest.php | 4 +- .../Validator/Between/GetOptionCest.php | 4 +- .../Validator/Between/HasOptionCest.php | 4 +- .../Validator/Between/SetOptionCest.php | 4 +- .../Validator/Between/ValidateCest.php | 2 +- .../Validator/Callback/ConstructCest.php | 4 +- .../Validator/Callback/GetOptionCest.php | 4 +- .../Validator/Callback/HasOptionCest.php | 4 +- .../Validator/Callback/SetOptionCest.php | 4 +- .../Validator/Callback/ValidateCest.php | 2 +- .../Validator/Confirmation/ConstructCest.php | 4 +- .../Validator/Confirmation/GetOptionCest.php | 4 +- .../Validator/Confirmation/HasOptionCest.php | 4 +- .../Validator/Confirmation/SetOptionCest.php | 4 +- .../Validator/Confirmation/ValidateCest.php | 2 +- .../Validation/Validator/ConstructCest.php | 4 +- .../Validator/CreditCard/ConstructCest.php | 4 +- .../Validator/CreditCard/GetOptionCest.php | 4 +- .../Validator/CreditCard/HasOptionCest.php | 4 +- .../Validator/CreditCard/SetOptionCest.php | 4 +- .../Validator/CreditCard/ValidateCest.php | 2 +- .../Validator/Date/ConstructCest.php | 4 +- .../Validator/Date/GetOptionCest.php | 4 +- .../Validator/Date/HasOptionCest.php | 4 +- .../Validator/Date/SetOptionCest.php | 4 +- .../Validator/Date/ValidateCest.php | 4 +- .../Validation/Validator/DateCest.php | 2 +- .../Validator/Digit/ConstructCest.php | 4 +- .../Validator/Digit/GetOptionCest.php | 4 +- .../Validator/Digit/HasOptionCest.php | 4 +- .../Validator/Digit/SetOptionCest.php | 4 +- .../Validator/Digit/ValidateCest.php | 4 +- .../Validation/Validator/DigitCest.php | 2 +- .../Validator/Email/ConstructCest.php | 4 +- .../Validator/Email/GetOptionCest.php | 4 +- .../Validator/Email/HasOptionCest.php | 4 +- .../Validator/Email/SetOptionCest.php | 4 +- .../Validator/Email/ValidateCest.php | 4 +- .../Validation/Validator/EmailCest.php | 2 +- .../Validator/ExclusionIn/ConstructCest.php | 4 +- .../Validator/ExclusionIn/GetOptionCest.php | 4 +- .../Validator/ExclusionIn/HasOptionCest.php | 4 +- .../Validator/ExclusionIn/SetOptionCest.php | 4 +- .../Validator/ExclusionIn/ValidateCest.php | 4 +- .../Validation/Validator/ExclusionInCest.php | 2 +- .../Validator/File/ConstructCest.php | 4 +- .../Validator/File/GetOptionCest.php | 4 +- .../Validator/File/HasOptionCest.php | 4 +- .../Validator/File/IsAllowEmptyCest.php | 4 +- .../Validator/File/SetOptionCest.php | 4 +- .../Validator/File/ValidateCest.php | 4 +- .../Validation/Validator/GetOptionCest.php | 4 +- .../Validation/Validator/HasOptionCest.php | 4 +- .../Validator/Identical/ConstructCest.php | 4 +- .../Validator/Identical/GetOptionCest.php | 4 +- .../Validator/Identical/HasOptionCest.php | 4 +- .../Validator/Identical/SetOptionCest.php | 4 +- .../Validator/Identical/ValidateCest.php | 4 +- .../Validation/Validator/IdenticalCest.php | 2 +- .../Validator/InclusionIn/ConstructCest.php | 4 +- .../Validator/InclusionIn/GetOptionCest.php | 4 +- .../Validator/InclusionIn/HasOptionCest.php | 4 +- .../Validator/InclusionIn/SetOptionCest.php | 4 +- .../Validator/InclusionIn/ValidateCest.php | 4 +- .../Validation/Validator/InclusionInCest.php | 2 +- .../Validation/Validator/Ip/ConstructCest.php | 4 +- .../Validation/Validator/Ip/GetOptionCest.php | 4 +- .../Validation/Validator/Ip/HasOptionCest.php | 4 +- .../Validation/Validator/Ip/SetOptionCest.php | 4 +- .../Validation/Validator/Ip/ValidateCest.php | 2 +- .../Validator/Numericality/ConstructCest.php | 4 +- .../Validator/Numericality/GetOptionCest.php | 4 +- .../Validator/Numericality/HasOptionCest.php | 4 +- .../Validator/Numericality/SetOptionCest.php | 4 +- .../Validator/Numericality/ValidateCest.php | 4 +- .../Validation/Validator/NumericalityCest.php | 2 +- .../Validator/PresenceOf/ConstructCest.php | 4 +- .../Validator/PresenceOf/GetOptionCest.php | 4 +- .../Validator/PresenceOf/HasOptionCest.php | 4 +- .../Validator/PresenceOf/SetOptionCest.php | 4 +- .../Validator/PresenceOf/ValidateCest.php | 4 +- .../Validation/Validator/PresenceOfCest.php | 6 +-- .../Validator/Regex/ConstructCest.php | 4 +- .../Validator/Regex/GetOptionCest.php | 4 +- .../Validator/Regex/HasOptionCest.php | 4 +- .../Validator/Regex/SetOptionCest.php | 4 +- .../Validator/Regex/ValidateCest.php | 4 +- .../Validation/Validator/RegexCest.php | 2 +- .../Validation/Validator/SetOptionCest.php | 4 +- .../Validator/StringLength/ConstructCest.php | 4 +- .../Validator/StringLength/GetOptionCest.php | 4 +- .../StringLength/GetTemplateCest.php | 4 +- .../StringLength/GetTemplatesCest.php | 4 +- .../StringLength/GetValidatorsCest.php | 4 +- .../Validator/StringLength/HasOptionCest.php | 4 +- .../StringLength/Max/ConstructCest.php | 4 +- .../StringLength/Max/GetOptionCest.php | 4 +- .../StringLength/Max/GetTemplateCest.php | 4 +- .../StringLength/Max/GetTemplatesCest.php | 4 +- .../StringLength/Max/HasOptionCest.php | 4 +- .../StringLength/Max/MessageFactoryCest.php | 4 +- .../StringLength/Max/SetOptionCest.php | 4 +- .../StringLength/Max/SetTemplateCest.php | 4 +- .../StringLength/Max/SetTemplatesCest.php | 4 +- .../StringLength/Max/ValidateCest.php | 4 +- .../StringLength/MessageFactoryCest.php | 4 +- .../StringLength/Min/ConstructCest.php | 4 +- .../StringLength/Min/GetOptionCest.php | 4 +- .../StringLength/Min/GetTemplateCest.php | 4 +- .../StringLength/Min/GetTemplatesCest.php | 4 +- .../StringLength/Min/HasOptionCest.php | 4 +- .../StringLength/Min/MessageFactoryCest.php | 4 +- .../StringLength/Min/SetOptionCest.php | 4 +- .../StringLength/Min/SetTemplateCest.php | 4 +- .../StringLength/Min/SetTemplatesCest.php | 4 +- .../StringLength/Min/ValidateCest.php | 2 +- .../Validator/StringLength/SetOptionCest.php | 4 +- .../StringLength/SetTemplateCest.php | 4 +- .../StringLength/SetTemplatesCest.php | 4 +- .../Validator/StringLength/ValidateCest.php | 10 ++--- .../Validator/Uniqueness/ConstructCest.php | 4 +- .../Validator/Uniqueness/GetOptionCest.php | 4 +- .../Validator/Uniqueness/HasOptionCest.php | 4 +- .../Validator/Uniqueness/SetOptionCest.php | 4 +- .../Validator/Uniqueness/ValidateCest.php | 4 +- .../Validation/Validator/UniquenessCest.php | 2 +- .../Validator/Url/ConstructCest.php | 4 +- .../Validator/Url/GetOptionCest.php | 4 +- .../Validator/Url/HasOptionCest.php | 4 +- .../Validator/Url/SetOptionCest.php | 4 +- .../Validation/Validator/Url/ValidateCest.php | 12 +++--- .../Validation/Validator/ValidateCest.php | 4 +- .../Validation/ValidatorFactory/LoadCest.php | 6 +-- .../ValidatorFactory/NewInstanceCest.php | 4 +- tests/shim.php | 2 +- .../Adapter/Memory/AddComponentAccessCest.php | 8 ++-- .../Acl/Adapter/Memory/AddComponentCest.php | 8 ++-- .../Acl/Adapter/Memory/AddInheritCest.php | 4 +- tests/unit/Acl/Adapter/Memory/AddRoleCest.php | 12 +++--- tests/unit/Acl/Adapter/Memory/AllowCest.php | 8 ++-- .../unit/Acl/Adapter/Memory/ConstructCest.php | 10 ++--- tests/unit/Acl/Adapter/Memory/DenyCest.php | 4 +- .../Memory/DropComponentAccessCest.php | 4 +- .../Adapter/Memory/GetActiveAccessCest.php | 6 +-- .../Adapter/Memory/GetActiveComponentCest.php | 6 +-- .../Adapter/Memory/GetActiveFunctionCest.php | 2 +- ...ActiveFunctionCustomArgumentsCountCest.php | 4 +- .../Acl/Adapter/Memory/GetActiveKeyCest.php | 2 +- .../Acl/Adapter/Memory/GetActiveRoleCest.php | 6 +-- .../Acl/Adapter/Memory/GetComponentsCest.php | 4 +- .../unit/Acl/Adapter/Memory/GetRolesCest.php | 4 +- .../Memory/GetSetDefaultActionCest.php | 6 +-- .../Memory/GetSetEventsManagerCest.php | 4 +- .../GetSetNoArgumentsDefaultActionCest.php | 6 +-- .../unit/Acl/Adapter/Memory/IsAllowedCest.php | 10 ++--- .../Acl/Adapter/Memory/IsComponentCest.php | 6 +-- tests/unit/Acl/Adapter/Memory/IsRoleCest.php | 6 +-- tests/unit/Acl/Component/ConstructCest.php | 8 ++-- .../unit/Acl/Component/GetDescriptionCest.php | 6 +-- tests/unit/Acl/Component/GetNameCest.php | 4 +- tests/unit/Acl/Component/ToStringCest.php | 4 +- tests/unit/Acl/Role/ConstructCest.php | 8 ++-- tests/unit/Acl/Role/GetDescriptionCest.php | 6 +-- tests/unit/Acl/Role/GetNameCest.php | 4 +- tests/unit/Acl/Role/ToStringCest.php | 4 +- .../Adapter/Apcu/ConstructCest.php | 4 +- .../unit/Annotations/Adapter/Apcu/GetCest.php | 4 +- .../Adapter/Apcu/GetMethodCest.php | 4 +- .../Adapter/Apcu/GetMethodsCest.php | 4 +- .../Adapter/Apcu/GetPropertiesCest.php | 4 +- .../Adapter/Apcu/GetPropertyCest.php | 4 +- .../Adapter/Apcu/GetReaderCest.php | 4 +- .../Annotations/Adapter/Apcu/ReadCest.php | 4 +- .../Adapter/Apcu/SetReaderCest.php | 4 +- .../Annotations/Adapter/Apcu/WriteCest.php | 4 +- tests/unit/Annotations/Adapter/ApcuCest.php | 2 +- .../Annotations/Adapter/Memory/GetCest.php | 4 +- .../Adapter/Memory/GetMethodCest.php | 4 +- .../Adapter/Memory/GetMethodsCest.php | 4 +- .../Adapter/Memory/GetPropertiesCest.php | 4 +- .../Adapter/Memory/GetPropertyCest.php | 4 +- .../Adapter/Memory/GetReaderCest.php | 4 +- .../Annotations/Adapter/Memory/ReadCest.php | 4 +- .../Adapter/Memory/SetReaderCest.php | 4 +- .../Annotations/Adapter/Memory/WriteCest.php | 4 +- tests/unit/Annotations/Adapter/MemoryCest.php | 2 +- .../Adapter/Stream/ConstructCest.php | 4 +- .../Annotations/Adapter/Stream/GetCest.php | 4 +- .../Adapter/Stream/GetMethodCest.php | 4 +- .../Adapter/Stream/GetMethodsCest.php | 4 +- .../Adapter/Stream/GetPropertiesCest.php | 4 +- .../Adapter/Stream/GetPropertyCest.php | 4 +- .../Adapter/Stream/GetReaderCest.php | 4 +- .../Annotations/Adapter/Stream/ReadCest.php | 4 +- .../Adapter/Stream/SetReaderCest.php | 4 +- .../Annotations/Adapter/Stream/WriteCest.php | 4 +- tests/unit/Annotations/Adapter/StreamCest.php | 2 +- .../Annotations/Annotation/ConstructCest.php | 4 +- .../Annotation/GetArgumentCest.php | 4 +- .../Annotation/GetArgumentsCest.php | 4 +- .../Annotation/GetExprArgumentsCest.php | 4 +- .../Annotation/GetExpressionCest.php | 4 +- .../Annotations/Annotation/GetNameCest.php | 4 +- .../Annotation/GetNamedArgumentCest.php | 4 +- .../Annotation/GetNamedParameterCest.php | 4 +- .../Annotation/HasArgumentCest.php | 4 +- .../Annotation/NumberArgumentsCest.php | 4 +- .../AnnotationsFactory/LoadCest.php | 6 +-- .../AnnotationsFactory/NewInstanceCest.php | 4 +- .../Annotations/Collection/ConstructCest.php | 4 +- .../unit/Annotations/Collection/CountCest.php | 4 +- .../Annotations/Collection/CurrentCest.php | 4 +- .../Annotations/Collection/GetAllCest.php | 4 +- .../Collection/GetAnnotationsCest.php | 4 +- tests/unit/Annotations/Collection/GetCest.php | 4 +- tests/unit/Annotations/Collection/HasCest.php | 4 +- tests/unit/Annotations/Collection/KeyCest.php | 4 +- .../unit/Annotations/Collection/NextCest.php | 4 +- .../Annotations/Collection/RewindCest.php | 4 +- .../unit/Annotations/Collection/ValidCest.php | 4 +- tests/unit/Annotations/Reader/ParseCest.php | 8 ++-- .../Annotations/Reader/ParseDocBlockCest.php | 4 +- .../Annotations/Reflection/ConstructCest.php | 4 +- .../Reflection/GetClassAnnotationsCest.php | 6 +-- .../Reflection/GetMethodsAnnotationsCest.php | 6 +-- .../GetPropertiesAnnotationsCest.php | 6 +-- .../Reflection/GetReflectionDataCest.php | 4 +- tests/unit/Annotations/ReflectionCest.php | 4 +- tests/unit/Assets/Asset/ConstructCest.php | 14 +++---- tests/unit/Assets/Asset/Css/ConstructCest.php | 12 +++--- .../unit/Assets/Asset/Css/GetAssetKeyCest.php | 4 +- .../Assets/Asset/Css/GetAttributesCest.php | 4 +- .../unit/Assets/Asset/Css/GetContentCest.php | 4 +- tests/unit/Assets/Asset/Css/GetFilterCest.php | 4 +- tests/unit/Assets/Asset/Css/GetLocalCest.php | 6 +-- tests/unit/Assets/Asset/Css/GetPathCest.php | 4 +- .../Asset/Css/GetRealSourcePathCest.php | 6 +-- .../Asset/Css/GetRealTargetPathCest.php | 4 +- .../Assets/Asset/Css/GetRealTargetUriCest.php | 4 +- .../Assets/Asset/Css/GetSourcePathCest.php | 4 +- .../Assets/Asset/Css/GetTargetPathCest.php | 4 +- .../Assets/Asset/Css/GetTargetUriCest.php | 4 +- tests/unit/Assets/Asset/Css/GetTypeCest.php | 4 +- .../unit/Assets/Asset/Css/GetVersionCest.php | 4 +- .../Assets/Asset/Css/IsAutoVersionCest.php | 4 +- .../Assets/Asset/Css/SetAttributesCest.php | 4 +- .../Assets/Asset/Css/SetAutoVersionCest.php | 4 +- tests/unit/Assets/Asset/Css/SetFilterCest.php | 4 +- tests/unit/Assets/Asset/Css/SetLocalCest.php | 4 +- tests/unit/Assets/Asset/Css/SetPathCest.php | 4 +- .../Assets/Asset/Css/SetSourcePathCest.php | 4 +- .../Assets/Asset/Css/SetTargetPathCest.php | 4 +- .../Assets/Asset/Css/SetTargetUriCest.php | 4 +- tests/unit/Assets/Asset/Css/SetTypeCest.php | 4 +- .../unit/Assets/Asset/Css/SetVersionCest.php | 4 +- tests/unit/Assets/Asset/GetAssetKeyCest.php | 4 +- tests/unit/Assets/Asset/GetAttributesCest.php | 4 +- tests/unit/Assets/Asset/GetContentCest.php | 4 +- tests/unit/Assets/Asset/GetFilterCest.php | 4 +- tests/unit/Assets/Asset/GetLocalCest.php | 6 +-- tests/unit/Assets/Asset/GetPathCest.php | 4 +- .../Assets/Asset/GetRealSourcePathCest.php | 6 +-- .../Assets/Asset/GetRealTargetPathCest.php | 6 +-- .../Assets/Asset/GetRealTargetUriCest.php | 6 +-- tests/unit/Assets/Asset/GetSourcePathCest.php | 6 +-- tests/unit/Assets/Asset/GetTargetPathCest.php | 6 +-- tests/unit/Assets/Asset/GetTargetUriCest.php | 10 ++--- tests/unit/Assets/Asset/GetTypeCest.php | 4 +- tests/unit/Assets/Asset/GetVersionCest.php | 4 +- tests/unit/Assets/Asset/IsAutoVersionCest.php | 4 +- tests/unit/Assets/Asset/Js/ConstructCest.php | 12 +++--- .../unit/Assets/Asset/Js/GetAssetKeyCest.php | 4 +- .../Assets/Asset/Js/GetAttributesCest.php | 4 +- tests/unit/Assets/Asset/Js/GetContentCest.php | 4 +- tests/unit/Assets/Asset/Js/GetFilterCest.php | 4 +- tests/unit/Assets/Asset/Js/GetLocalCest.php | 6 +-- tests/unit/Assets/Asset/Js/GetPathCest.php | 4 +- .../Assets/Asset/Js/GetRealSourcePathCest.php | 6 +-- .../Assets/Asset/Js/GetRealTargetPathCest.php | 4 +- .../Assets/Asset/Js/GetRealTargetUriCest.php | 4 +- .../Assets/Asset/Js/GetSourcePathCest.php | 4 +- .../Assets/Asset/Js/GetTargetPathCest.php | 4 +- .../unit/Assets/Asset/Js/GetTargetUriCest.php | 4 +- tests/unit/Assets/Asset/Js/GetTypeCest.php | 4 +- tests/unit/Assets/Asset/Js/GetVersionCest.php | 4 +- .../Assets/Asset/Js/IsAutoVersionCest.php | 4 +- .../Assets/Asset/Js/SetAttributesCest.php | 4 +- .../Assets/Asset/Js/SetAutoVersionCest.php | 4 +- tests/unit/Assets/Asset/Js/SetFilterCest.php | 4 +- tests/unit/Assets/Asset/Js/SetLocalCest.php | 4 +- tests/unit/Assets/Asset/Js/SetPathCest.php | 4 +- .../Assets/Asset/Js/SetSourcePathCest.php | 4 +- .../Assets/Asset/Js/SetTargetPathCest.php | 4 +- .../unit/Assets/Asset/Js/SetTargetUriCest.php | 4 +- tests/unit/Assets/Asset/Js/SetTypeCest.php | 4 +- tests/unit/Assets/Asset/Js/SetVersionCest.php | 4 +- tests/unit/Assets/Asset/SetAttributesCest.php | 4 +- .../unit/Assets/Asset/SetAutoVersionCest.php | 4 +- tests/unit/Assets/Asset/SetFilterCest.php | 4 +- tests/unit/Assets/Asset/SetLocalCest.php | 6 +-- tests/unit/Assets/Asset/SetPathCest.php | 6 +-- tests/unit/Assets/Asset/SetSourcePathCest.php | 6 +-- tests/unit/Assets/Asset/SetTargetPathCest.php | 6 +-- tests/unit/Assets/Asset/SetTargetUriCest.php | 6 +-- tests/unit/Assets/Asset/SetTypeCest.php | 4 +- tests/unit/Assets/Asset/SetVersionCest.php | 4 +- tests/unit/Assets/Collection/AddCest.php | 6 +-- tests/unit/Assets/Collection/AddCssCest.php | 4 +- .../unit/Assets/Collection/AddFilterCest.php | 4 +- .../unit/Assets/Collection/AddInlineCest.php | 4 +- .../Assets/Collection/AddInlineCssCest.php | 4 +- .../Assets/Collection/AddInlineJsCest.php | 4 +- tests/unit/Assets/Collection/AddJsCest.php | 4 +- .../unit/Assets/Collection/ConstructCest.php | 4 +- tests/unit/Assets/Collection/CountCest.php | 4 +- tests/unit/Assets/Collection/CurrentCest.php | 4 +- .../unit/Assets/Collection/GetAssetsCest.php | 4 +- .../Assets/Collection/GetAttributesCest.php | 4 +- tests/unit/Assets/Collection/GetCodesCest.php | 4 +- .../unit/Assets/Collection/GetFiltersCest.php | 4 +- tests/unit/Assets/Collection/GetJoinCest.php | 4 +- tests/unit/Assets/Collection/GetLocalCest.php | 4 +- .../Assets/Collection/GetPositionCest.php | 4 +- .../unit/Assets/Collection/GetPrefixCest.php | 4 +- .../Collection/GetRealTargetPathCest.php | 4 +- .../Assets/Collection/GetSourcePathCest.php | 4 +- .../Assets/Collection/GetTargetLocalCest.php | 4 +- .../Assets/Collection/GetTargetPathCest.php | 4 +- .../Assets/Collection/GetTargetUriCest.php | 4 +- .../unit/Assets/Collection/GetVersionCest.php | 4 +- tests/unit/Assets/Collection/HasCest.php | 4 +- .../Assets/Collection/IsAutoVersionCest.php | 4 +- tests/unit/Assets/Collection/JoinCest.php | 4 +- tests/unit/Assets/Collection/KeyCest.php | 4 +- tests/unit/Assets/Collection/NextCest.php | 4 +- tests/unit/Assets/Collection/RewindCest.php | 4 +- .../Assets/Collection/SetAttributesCest.php | 4 +- .../Assets/Collection/SetAutoVersionCest.php | 4 +- .../unit/Assets/Collection/SetFiltersCest.php | 4 +- tests/unit/Assets/Collection/SetLocalCest.php | 4 +- .../unit/Assets/Collection/SetPrefixCest.php | 4 +- .../Assets/Collection/SetSourcePathCest.php | 4 +- .../Assets/Collection/SetTargetLocalCest.php | 4 +- .../Assets/Collection/SetTargetPathCest.php | 4 +- .../Assets/Collection/SetTargetUriCest.php | 4 +- .../unit/Assets/Collection/SetVersionCest.php | 4 +- tests/unit/Assets/Collection/ValidCest.php | 4 +- .../Assets/Filters/Cssmin/ConstructCest.php | 4 +- .../unit/Assets/Filters/Cssmin/FilterCest.php | 20 ++++----- .../Assets/Filters/Jsmin/ConstructCest.php | 10 ++--- .../unit/Assets/Filters/Jsmin/FilterCest.php | 16 +++---- tests/unit/Assets/Filters/None/FilterCest.php | 4 +- tests/unit/Assets/Inline/ConstructCest.php | 22 +++++----- .../unit/Assets/Inline/Css/ConstructCest.php | 12 +++--- .../Assets/Inline/Css/GetAssetKeyCest.php | 4 +- .../Assets/Inline/Css/GetAttributesCest.php | 4 +- .../unit/Assets/Inline/Css/GetContentCest.php | 4 +- .../unit/Assets/Inline/Css/GetFilterCest.php | 4 +- tests/unit/Assets/Inline/Css/GetTypeCest.php | 4 +- .../Assets/Inline/Css/SetAttributesCest.php | 4 +- .../unit/Assets/Inline/Css/SetFilterCest.php | 4 +- tests/unit/Assets/Inline/Css/SetTypeCest.php | 4 +- tests/unit/Assets/Inline/GetAssetKeyCest.php | 4 +- .../unit/Assets/Inline/GetAttributesCest.php | 4 +- tests/unit/Assets/Inline/GetContentCest.php | 4 +- tests/unit/Assets/Inline/GetFilterCest.php | 4 +- tests/unit/Assets/Inline/GetTypeCest.php | 4 +- tests/unit/Assets/Inline/Js/ConstructCest.php | 12 +++--- .../unit/Assets/Inline/Js/GetAssetKeyCest.php | 4 +- .../Assets/Inline/Js/GetAttributesCest.php | 4 +- .../unit/Assets/Inline/Js/GetContentCest.php | 4 +- tests/unit/Assets/Inline/Js/GetFilterCest.php | 4 +- tests/unit/Assets/Inline/Js/GetTypeCest.php | 4 +- .../Assets/Inline/Js/SetAttributesCest.php | 4 +- tests/unit/Assets/Inline/Js/SetFilterCest.php | 4 +- tests/unit/Assets/Inline/Js/SetTypeCest.php | 4 +- .../unit/Assets/Inline/SetAttributesCest.php | 4 +- tests/unit/Assets/Inline/SetFilterCest.php | 4 +- tests/unit/Assets/Inline/SetTypeCest.php | 4 +- .../Assets/Manager/AddAssetByTypeCest.php | 4 +- tests/unit/Assets/Manager/AddAssetCest.php | 6 +-- tests/unit/Assets/Manager/AddCssCest.php | 6 +-- .../Manager/AddInlineCodeByTypeCest.php | 4 +- .../unit/Assets/Manager/AddInlineCodeCest.php | 4 +- .../unit/Assets/Manager/AddInlineCssCest.php | 4 +- tests/unit/Assets/Manager/AddInlineJsCest.php | 2 +- tests/unit/Assets/Manager/AddJsCest.php | 4 +- .../Manager/CollectionAssetsByTypeCest.php | 4 +- tests/unit/Assets/Manager/CollectionCest.php | 4 +- tests/unit/Assets/Manager/ConstructCest.php | 4 +- tests/unit/Assets/Manager/ExistsCest.php | 2 +- tests/unit/Assets/Manager/GetCest.php | 4 +- .../Assets/Manager/GetCollectionsCest.php | 4 +- tests/unit/Assets/Manager/GetCssCest.php | 4 +- tests/unit/Assets/Manager/GetJsCest.php | 4 +- tests/unit/Assets/Manager/GetOptionsCest.php | 4 +- tests/unit/Assets/Manager/GetSetDICest.php | 2 +- tests/unit/Assets/Manager/OutputCest.php | 4 +- tests/unit/Assets/Manager/OutputCssCest.php | 8 ++-- .../unit/Assets/Manager/OutputInlineCest.php | 4 +- .../Assets/Manager/OutputInlineCssCest.php | 4 +- .../Assets/Manager/OutputInlineJsCest.php | 4 +- tests/unit/Assets/Manager/OutputJsCest.php | 6 +-- .../Assets/Manager/SetAutoVersionCest.php | 2 +- tests/unit/Assets/Manager/SetCest.php | 4 +- tests/unit/Assets/Manager/SetOptionsCest.php | 4 +- .../Assets/Manager/UseImplicitOutputCest.php | 4 +- tests/unit/Assets/ManagerCest.php | 20 ++++----- tests/unit/Assets/ManagerTest.php_ | 24 +++++------ tests/unit/Cache/Adapter/Apcu/ClearCest.php | 6 +-- .../unit/Cache/Adapter/Apcu/ConstructCest.php | 4 +- .../unit/Cache/Adapter/Apcu/DecrementCest.php | 4 +- tests/unit/Cache/Adapter/Apcu/DeleteCest.php | 8 ++-- .../Cache/Adapter/Apcu/GetAdapterCest.php | 4 +- .../Adapter/Apcu/GetDefaultSerializerCest.php | 4 +- tests/unit/Cache/Adapter/Apcu/GetKeysCest.php | 4 +- .../unit/Cache/Adapter/Apcu/GetPrefixCest.php | 6 +-- tests/unit/Cache/Adapter/Apcu/GetSetCest.php | 4 +- tests/unit/Cache/Adapter/Apcu/HasCest.php | 4 +- .../unit/Cache/Adapter/Apcu/IncrementCest.php | 4 +- .../Adapter/Apcu/SetDefaultSerializerCest.php | 4 +- .../Cache/Adapter/Libmemcached/ClearCest.php | 6 +-- .../Adapter/Libmemcached/ConstructCest.php | 8 ++-- .../Adapter/Libmemcached/DecrementCest.php | 4 +- .../Cache/Adapter/Libmemcached/DeleteCest.php | 8 ++-- .../Adapter/Libmemcached/GetAdapterCest.php | 4 +- .../Libmemcached/GetDefaultSerializerCest.php | 4 +- .../Adapter/Libmemcached/GetKeysCest.php | 4 +- .../Adapter/Libmemcached/GetPrefixCest.php | 6 +-- .../Cache/Adapter/Libmemcached/GetSetCest.php | 6 +-- .../Cache/Adapter/Libmemcached/HasCest.php | 4 +- .../Adapter/Libmemcached/IncrementCest.php | 4 +- .../Libmemcached/SetDefaultSerializerCest.php | 4 +- tests/unit/Cache/Adapter/Memory/ClearCest.php | 6 +-- .../Cache/Adapter/Memory/ConstructCest.php | 4 +- .../Cache/Adapter/Memory/DecrementCest.php | 4 +- .../unit/Cache/Adapter/Memory/DeleteCest.php | 8 ++-- .../Cache/Adapter/Memory/GetAdapterCest.php | 4 +- .../Memory/GetDefaultSerializerCest.php | 4 +- .../unit/Cache/Adapter/Memory/GetKeysCest.php | 4 +- .../Cache/Adapter/Memory/GetPrefixCest.php | 6 +-- .../unit/Cache/Adapter/Memory/GetSetCest.php | 4 +- tests/unit/Cache/Adapter/Memory/HasCest.php | 4 +- .../Cache/Adapter/Memory/IncrementCest.php | 4 +- .../Memory/SetDefaultSerializerCest.php | 4 +- tests/unit/Cache/Adapter/Redis/ClearCest.php | 6 +-- .../Cache/Adapter/Redis/ConstructCest.php | 4 +- .../Cache/Adapter/Redis/DecrementCest.php | 4 +- tests/unit/Cache/Adapter/Redis/DeleteCest.php | 8 ++-- .../Cache/Adapter/Redis/GetAdapterCest.php | 4 +- .../Redis/GetDefaultSerializerCest.php | 4 +- .../unit/Cache/Adapter/Redis/GetKeysCest.php | 4 +- .../Cache/Adapter/Redis/GetPrefixCest.php | 6 +-- tests/unit/Cache/Adapter/Redis/GetSetCest.php | 12 +++--- tests/unit/Cache/Adapter/Redis/HasCest.php | 4 +- .../Cache/Adapter/Redis/IncrementCest.php | 4 +- .../Redis/SetDefaultSerializerCest.php | 4 +- tests/unit/Cache/Adapter/Stream/ClearCest.php | 6 +-- .../Cache/Adapter/Stream/ConstructCest.php | 6 +-- .../Cache/Adapter/Stream/DecrementCest.php | 4 +- .../unit/Cache/Adapter/Stream/DeleteCest.php | 8 ++-- .../Cache/Adapter/Stream/GetAdapterCest.php | 4 +- .../Stream/GetDefaultSerializerCest.php | 4 +- .../unit/Cache/Adapter/Stream/GetKeysCest.php | 4 +- .../Cache/Adapter/Stream/GetPrefixCest.php | 6 +-- .../unit/Cache/Adapter/Stream/GetSetCest.php | 8 ++-- tests/unit/Cache/Adapter/Stream/HasCest.php | 4 +- .../Cache/Adapter/Stream/IncrementCest.php | 4 +- .../Stream/SetDefaultSerializerCest.php | 4 +- .../Cache/AdapterFactory/NewInstanceCest.php | 6 +-- tests/unit/Cache/Cache/ClearCest.php | 4 +- tests/unit/Cache/Cache/ConstructCest.php | 4 +- tests/unit/Cache/Cache/DeleteCest.php | 6 +-- tests/unit/Cache/Cache/DeleteMultipleCest.php | 6 +-- tests/unit/Cache/Cache/GetAdapterCest.php | 4 +- tests/unit/Cache/Cache/GetMultipleCest.php | 6 +-- tests/unit/Cache/Cache/GetSetCest.php | 6 +-- tests/unit/Cache/Cache/HasCest.php | 6 +-- tests/unit/Cache/Cache/SetMultipleCest.php | 6 +-- tests/unit/Cache/CacheFactory/LoadCest.php | 6 +-- .../Cache/CacheFactory/NewInstanceCest.php | 4 +- .../unit/Collection/Collection/ClearCest.php | 4 +- .../Collection/Collection/ConstructCest.php | 4 +- .../unit/Collection/Collection/CountCest.php | 4 +- tests/unit/Collection/Collection/GetCest.php | 4 +- .../Collection/Collection/GetIteratorCest.php | 4 +- tests/unit/Collection/Collection/HasCest.php | 6 +-- tests/unit/Collection/Collection/InitCest.php | 4 +- .../Collection/JsonSerializeCest.php | 4 +- .../unit/Collection/Collection/RemoveCest.php | 4 +- .../Collection/Collection/SerializeCest.php | 4 +- tests/unit/Collection/Collection/SetCest.php | 4 +- .../Collection/Collection/ToArrayCest.php | 4 +- .../unit/Collection/Collection/ToJsonCest.php | 4 +- .../Collection/Collection/UnserializeCest.php | 4 +- .../Collection/ReadCollection/ClearCest.php | 4 +- .../ReadCollection/ConstructCest.php | 4 +- .../Collection/ReadCollection/CountCest.php | 4 +- .../Collection/ReadCollection/GetCest.php | 4 +- .../ReadCollection/GetIteratorCest.php | 4 +- .../Collection/ReadCollection/HasCest.php | 6 +-- .../Collection/ReadCollection/InitCest.php | 4 +- .../ReadCollection/JsonSerializeCest.php | 4 +- .../Collection/ReadCollection/RemoveCest.php | 4 +- .../ReadCollection/SerializeCest.php | 4 +- .../Collection/ReadCollection/SetCest.php | 4 +- .../Collection/ReadCollection/ToArrayCest.php | 4 +- .../Collection/ReadCollection/ToJsonCest.php | 4 +- .../ReadCollection/UnserializeCest.php | 4 +- .../Config/Adapter/Grouped/ConstructCest.php | 4 +- .../unit/Config/Adapter/Grouped/CountCest.php | 4 +- tests/unit/Config/Adapter/Grouped/GetCest.php | 4 +- .../Adapter/Grouped/GetPathDelimiterCest.php | 4 +- .../unit/Config/Adapter/Grouped/MergeCest.php | 4 +- .../Adapter/Grouped/OffsetExistsCest.php | 4 +- .../Config/Adapter/Grouped/OffsetGetCest.php | 4 +- .../Config/Adapter/Grouped/OffsetSetCest.php | 4 +- .../Adapter/Grouped/OffsetUnsetCest.php | 4 +- .../unit/Config/Adapter/Grouped/PathCest.php | 6 +-- .../Adapter/Grouped/SetPathDelimiterCest.php | 4 +- .../Config/Adapter/Grouped/ToArrayCest.php | 2 +- .../unit/Config/Adapter/Ini/ConstructCest.php | 6 +-- tests/unit/Config/Adapter/Ini/CountCest.php | 4 +- tests/unit/Config/Adapter/Ini/GetCest.php | 4 +- .../Adapter/Ini/GetPathDelimiterCest.php | 4 +- tests/unit/Config/Adapter/Ini/MergeCest.php | 4 +- .../Config/Adapter/Ini/OffsetExistsCest.php | 4 +- .../unit/Config/Adapter/Ini/OffsetGetCest.php | 4 +- .../unit/Config/Adapter/Ini/OffsetSetCest.php | 4 +- .../Config/Adapter/Ini/OffsetUnsetCest.php | 4 +- tests/unit/Config/Adapter/Ini/PathCest.php | 6 +-- .../Adapter/Ini/SetPathDelimiterCest.php | 4 +- tests/unit/Config/Adapter/Ini/ToArrayCest.php | 2 +- .../Config/Adapter/Json/ConstructCest.php | 4 +- tests/unit/Config/Adapter/Json/CountCest.php | 4 +- tests/unit/Config/Adapter/Json/GetCest.php | 4 +- .../Adapter/Json/GetPathDelimiterCest.php | 4 +- tests/unit/Config/Adapter/Json/MergeCest.php | 4 +- .../Config/Adapter/Json/OffsetExistsCest.php | 4 +- .../Config/Adapter/Json/OffsetGetCest.php | 4 +- .../Config/Adapter/Json/OffsetSetCest.php | 4 +- .../Config/Adapter/Json/OffsetUnsetCest.php | 4 +- tests/unit/Config/Adapter/Json/PathCest.php | 6 +-- .../Adapter/Json/SetPathDelimiterCest.php | 4 +- .../unit/Config/Adapter/Json/ToArrayCest.php | 4 +- .../unit/Config/Adapter/Php/ConstructCest.php | 4 +- tests/unit/Config/Adapter/Php/CountCest.php | 4 +- tests/unit/Config/Adapter/Php/GetCest.php | 4 +- .../Adapter/Php/GetPathDelimiterCest.php | 4 +- tests/unit/Config/Adapter/Php/MergeCest.php | 4 +- .../Config/Adapter/Php/OffsetExistsCest.php | 4 +- .../unit/Config/Adapter/Php/OffsetGetCest.php | 4 +- .../unit/Config/Adapter/Php/OffsetSetCest.php | 4 +- .../Config/Adapter/Php/OffsetUnsetCest.php | 4 +- tests/unit/Config/Adapter/Php/PathCest.php | 6 +-- .../Adapter/Php/SetPathDelimiterCest.php | 4 +- tests/unit/Config/Adapter/Php/ToArrayCest.php | 4 +- .../Config/Adapter/Yaml/ConstructCest.php | 6 +-- tests/unit/Config/Adapter/Yaml/CountCest.php | 4 +- tests/unit/Config/Adapter/Yaml/GetCest.php | 4 +- .../Adapter/Yaml/GetPathDelimiterCest.php | 4 +- tests/unit/Config/Adapter/Yaml/MergeCest.php | 4 +- .../Config/Adapter/Yaml/OffsetExistsCest.php | 4 +- .../Config/Adapter/Yaml/OffsetGetCest.php | 4 +- .../Config/Adapter/Yaml/OffsetSetCest.php | 4 +- .../Config/Adapter/Yaml/OffsetUnsetCest.php | 4 +- tests/unit/Config/Adapter/Yaml/PathCest.php | 6 +-- .../Adapter/Yaml/SetPathDelimiterCest.php | 4 +- .../unit/Config/Adapter/Yaml/ToArrayCest.php | 4 +- tests/unit/Config/Config/ConfigCest.php | 4 +- tests/unit/Config/Config/ConstructCest.php | 4 +- tests/unit/Config/Config/CountCest.php | 4 +- tests/unit/Config/Config/GetCest.php | 2 +- .../Config/Config/GetPathDelimiterCest.php | 4 +- tests/unit/Config/Config/MergeCest.php | 8 ++-- tests/unit/Config/Config/OffsetExistsCest.php | 4 +- tests/unit/Config/Config/OffsetGetCest.php | 4 +- tests/unit/Config/Config/OffsetSetCest.php | 4 +- tests/unit/Config/Config/OffsetUnsetCest.php | 4 +- tests/unit/Config/Config/PathCest.php | 6 +-- .../Config/Config/SetPathDelimiterCest.php | 4 +- tests/unit/Config/Config/ToArrayCest.php | 4 +- tests/unit/Config/ConfigFactory/LoadCest.php | 6 +-- .../Config/ConfigFactory/NewInstanceCest.php | 4 +- tests/unit/Container/ConstructCest.php | 4 +- tests/unit/Container/GetCest.php | 4 +- tests/unit/Container/HasCest.php | 4 +- tests/unit/Crypt/ConstructCest.php | 6 +-- tests/unit/Crypt/DecryptBase64Cest.php | 2 +- tests/unit/Crypt/DecryptCest.php | 2 +- tests/unit/Crypt/EncryptBase64Cest.php | 4 +- tests/unit/Crypt/EncryptCest.php | 8 ++-- tests/unit/Crypt/GetAuthDataCest.php | 4 +- tests/unit/Crypt/GetAuthTagCest.php | 4 +- tests/unit/Crypt/GetAuthTagLengthCest.php | 4 +- tests/unit/Crypt/GetAvailableCiphersCest.php | 4 +- .../unit/Crypt/GetAvailableHashAlgosCest.php | 4 +- tests/unit/Crypt/GetHashAlgoCest.php | 4 +- tests/unit/Crypt/GetKeyCest.php | 4 +- tests/unit/Crypt/GetSetCipherCest.php | 6 +-- tests/unit/Crypt/SetAuthDataCest.php | 4 +- tests/unit/Crypt/SetAuthTagCest.php | 4 +- tests/unit/Crypt/SetAuthTagLengthCest.php | 4 +- tests/unit/Crypt/SetHashAlgoCest.php | 4 +- tests/unit/Crypt/SetKeyCest.php | 4 +- tests/unit/Crypt/SetPaddingCest.php | 4 +- tests/unit/Crypt/UseSigningCest.php | 4 +- tests/unit/Debug/ClearVarsCest.php | 4 +- tests/unit/Debug/DebugVarCest.php | 4 +- tests/unit/Debug/Dump/AllCest.php | 4 +- tests/unit/Debug/Dump/ConstructCest.php | 4 +- tests/unit/Debug/Dump/GetSetDetailedCest.php | 4 +- tests/unit/Debug/Dump/OneCest.php | 6 +-- tests/unit/Debug/Dump/SetStylesCest.php | 6 +-- tests/unit/Debug/Dump/ToJsonCest.php | 4 +- tests/unit/Debug/Dump/VariableCest.php | 6 +-- tests/unit/Debug/Dump/VariablesCest.php | 4 +- tests/unit/Debug/GetCssSourcesCest.php | 4 +- tests/unit/Debug/GetJsSourcesCest.php | 4 +- tests/unit/Debug/GetVersionCest.php | 6 +-- tests/unit/Debug/HaltCest.php | 4 +- tests/unit/Debug/ListenCest.php | 4 +- tests/unit/Debug/ListenExceptionsCest.php | 4 +- tests/unit/Debug/ListenLowSeverityCest.php | 4 +- tests/unit/Debug/OnUncaughtExceptionCest.php | 4 +- .../unit/Debug/OnUncaughtLowSeverityCest.php | 4 +- tests/unit/Debug/SetBlacklistCest.php | 4 +- tests/unit/Debug/SetShowBackTraceCest.php | 4 +- tests/unit/Debug/SetShowFileFragmentCest.php | 4 +- tests/unit/Debug/SetShowFilesCest.php | 4 +- tests/unit/Debug/SetUriCest.php | 4 +- tests/unit/Di/AttemptCest.php | 4 +- tests/unit/Di/ConstructCest.php | 4 +- tests/unit/Di/DiCest.php | 36 ++++++++-------- tests/unit/Di/Exception/ConstructCest.php | 4 +- .../ContainerServiceNotFoundCest.php | 4 +- tests/unit/Di/Exception/GetCodeCest.php | 4 +- tests/unit/Di/Exception/GetFileCest.php | 4 +- tests/unit/Di/Exception/GetLineCest.php | 4 +- tests/unit/Di/Exception/GetMessageCest.php | 4 +- tests/unit/Di/Exception/GetPreviousCest.php | 4 +- .../Di/Exception/GetTraceAsStringCest.php | 4 +- tests/unit/Di/Exception/GetTraceCest.php | 4 +- .../ConstructCest.php | 4 +- .../ContainerServiceNotFoundCest.php | 4 +- .../GetCodeCest.php | 4 +- .../GetFileCest.php | 4 +- .../GetLineCest.php | 4 +- .../GetMessageCest.php | 4 +- .../GetPreviousCest.php | 4 +- .../GetTraceAsStringCest.php | 4 +- .../GetTraceCest.php | 4 +- .../ToStringCest.php | 4 +- .../ServiceResolutionException/WakeupCest.php | 4 +- tests/unit/Di/Exception/ToStringCest.php | 4 +- tests/unit/Di/Exception/WakeupCest.php | 4 +- tests/unit/Di/FactoryDefault/AttemptCest.php | 4 +- .../Di/FactoryDefault/Cli/AttemptCest.php | 4 +- .../Di/FactoryDefault/Cli/ConstructCest.php | 4 +- tests/unit/Di/FactoryDefault/Cli/GetCest.php | 4 +- .../Di/FactoryDefault/Cli/GetDefaultCest.php | 4 +- .../Cli/GetInternalEventsManagerCest.php | 4 +- .../unit/Di/FactoryDefault/Cli/GetRawCest.php | 4 +- .../Di/FactoryDefault/Cli/GetServiceCest.php | 4 +- .../Di/FactoryDefault/Cli/GetServicesCest.php | 4 +- .../Di/FactoryDefault/Cli/GetSharedCest.php | 4 +- tests/unit/Di/FactoryDefault/Cli/HasCest.php | 4 +- .../Di/FactoryDefault/Cli/LoadFromPhpCest.php | 4 +- .../FactoryDefault/Cli/LoadFromYamlCest.php | 4 +- .../FactoryDefault/Cli/OffsetExistsCest.php | 4 +- .../Di/FactoryDefault/Cli/OffsetGetCest.php | 4 +- .../Di/FactoryDefault/Cli/OffsetSetCest.php | 4 +- .../Di/FactoryDefault/Cli/OffsetUnsetCest.php | 4 +- .../Di/FactoryDefault/Cli/RegisterCest.php | 4 +- .../unit/Di/FactoryDefault/Cli/RemoveCest.php | 4 +- .../unit/Di/FactoryDefault/Cli/ResetCest.php | 4 +- tests/unit/Di/FactoryDefault/Cli/SetCest.php | 4 +- .../Di/FactoryDefault/Cli/SetDefaultCest.php | 4 +- .../Cli/SetInternalEventsManagerCest.php | 4 +- .../unit/Di/FactoryDefault/Cli/SetRawCest.php | 4 +- .../Di/FactoryDefault/Cli/SetSharedCest.php | 4 +- .../FactoryDefault/Cli/UnderscoreCallCest.php | 4 +- .../unit/Di/FactoryDefault/ConstructCest.php | 6 +-- tests/unit/Di/FactoryDefault/GetCest.php | 4 +- .../unit/Di/FactoryDefault/GetDefaultCest.php | 4 +- .../GetInternalEventsManagerCest.php | 4 +- tests/unit/Di/FactoryDefault/GetRawCest.php | 4 +- .../unit/Di/FactoryDefault/GetServiceCest.php | 4 +- .../Di/FactoryDefault/GetServicesCest.php | 4 +- .../unit/Di/FactoryDefault/GetSharedCest.php | 4 +- tests/unit/Di/FactoryDefault/HasCest.php | 4 +- .../Di/FactoryDefault/LoadFromPhpCest.php | 4 +- .../Di/FactoryDefault/LoadFromYamlCest.php | 4 +- .../Di/FactoryDefault/OffsetExistsCest.php | 4 +- .../unit/Di/FactoryDefault/OffsetGetCest.php | 4 +- .../unit/Di/FactoryDefault/OffsetSetCest.php | 4 +- .../Di/FactoryDefault/OffsetUnsetCest.php | 4 +- tests/unit/Di/FactoryDefault/RegisterCest.php | 4 +- tests/unit/Di/FactoryDefault/RemoveCest.php | 4 +- tests/unit/Di/FactoryDefault/ResetCest.php | 4 +- tests/unit/Di/FactoryDefault/SetCest.php | 4 +- .../unit/Di/FactoryDefault/SetDefaultCest.php | 4 +- .../SetInternalEventsManagerCest.php | 4 +- tests/unit/Di/FactoryDefault/SetRawCest.php | 4 +- .../unit/Di/FactoryDefault/SetSharedCest.php | 4 +- .../Di/FactoryDefault/UnderscoreCallCest.php | 4 +- .../FactoryDefault/WasFreshInstanceCest.php | 4 +- tests/unit/Di/GetCest.php | 4 +- tests/unit/Di/GetDefaultCest.php | 4 +- .../unit/Di/GetInternalEventsManagerCest.php | 4 +- tests/unit/Di/GetRawCest.php | 4 +- tests/unit/Di/GetServiceCest.php | 4 +- tests/unit/Di/GetServicesCest.php | 4 +- tests/unit/Di/GetSetDefaultCest.php | 2 +- tests/unit/Di/GetSharedCest.php | 4 +- tests/unit/Di/HasCest.php | 2 +- tests/unit/Di/Injectable/GetDICest.php | 4 +- .../Di/Injectable/GetEventsManagerCest.php | 4 +- tests/unit/Di/Injectable/SetDICest.php | 4 +- .../Di/Injectable/SetEventsManagerCest.php | 4 +- .../unit/Di/Injectable/UnderscoreGetCest.php | 4 +- tests/unit/Di/LoadFromPhpCest.php | 4 +- tests/unit/Di/LoadFromYamlCest.php | 4 +- tests/unit/Di/OffsetExistsCest.php | 2 +- tests/unit/Di/OffsetGetCest.php | 4 +- tests/unit/Di/OffsetSetCest.php | 4 +- tests/unit/Di/OffsetUnsetCest.php | 2 +- tests/unit/Di/RegisterCest.php | 4 +- tests/unit/Di/RemoveCest.php | 2 +- tests/unit/Di/ResetCest.php | 4 +- tests/unit/Di/Service/Builder/BuildCest.php | 4 +- tests/unit/Di/Service/ConstructCest.php | 4 +- tests/unit/Di/Service/GetDefinitionCest.php | 2 +- tests/unit/Di/Service/GetNameCest.php | 4 +- tests/unit/Di/Service/GetParameterCest.php | 4 +- tests/unit/Di/Service/IsResolvedCest.php | 4 +- tests/unit/Di/Service/IsSharedCest.php | 2 +- tests/unit/Di/Service/ResolveCest.php | 4 +- tests/unit/Di/Service/SetDefinitionCest.php | 4 +- tests/unit/Di/Service/SetParameterCest.php | 4 +- tests/unit/Di/Service/SetSharedCest.php | 2 +- .../unit/Di/Service/SetSharedInstanceCest.php | 4 +- tests/unit/Di/ServiceCest.php | 4 +- tests/unit/Di/SetCest.php | 4 +- tests/unit/Di/SetDefaultCest.php | 4 +- .../unit/Di/SetInternalEventsManagerCest.php | 4 +- tests/unit/Di/SetRawCest.php | 4 +- tests/unit/Di/SetSharedCest.php | 4 +- tests/unit/Di/UnderscoreCallCest.php | 4 +- .../unit/Dispatcher/CallActionMethodCest.php | 4 +- tests/unit/Dispatcher/DispatchCest.php | 4 +- tests/unit/Dispatcher/ForwardCest.php | 4 +- tests/unit/Dispatcher/GetActionNameCest.php | 4 +- tests/unit/Dispatcher/GetActionSuffixCest.php | 4 +- tests/unit/Dispatcher/GetActiveMethodCest.php | 4 +- tests/unit/Dispatcher/GetBoundModelsCest.php | 4 +- tests/unit/Dispatcher/GetDICest.php | 4 +- .../Dispatcher/GetDefaultNamespaceCest.php | 4 +- .../unit/Dispatcher/GetEventsManagerCest.php | 4 +- tests/unit/Dispatcher/GetHandlerClassCest.php | 4 +- .../unit/Dispatcher/GetHandlerSuffixCest.php | 4 +- tests/unit/Dispatcher/GetModelBinderCest.php | 4 +- tests/unit/Dispatcher/GetModuleNameCest.php | 4 +- .../unit/Dispatcher/GetNamespaceNameCest.php | 4 +- tests/unit/Dispatcher/GetParamCest.php | 4 +- tests/unit/Dispatcher/GetParamsCest.php | 4 +- .../unit/Dispatcher/GetReturnedValueCest.php | 4 +- tests/unit/Dispatcher/HasParamCest.php | 4 +- tests/unit/Dispatcher/IsFinishedCest.php | 4 +- tests/unit/Dispatcher/SetActionNameCest.php | 4 +- tests/unit/Dispatcher/SetActionSuffixCest.php | 4 +- tests/unit/Dispatcher/SetDICest.php | 4 +- .../unit/Dispatcher/SetDefaultActionCest.php | 4 +- .../Dispatcher/SetDefaultNamespaceCest.php | 4 +- .../unit/Dispatcher/SetEventsManagerCest.php | 4 +- .../unit/Dispatcher/SetHandlerSuffixCest.php | 4 +- tests/unit/Dispatcher/SetModelBinderCest.php | 4 +- tests/unit/Dispatcher/SetModuleNameCest.php | 4 +- .../unit/Dispatcher/SetNamespaceNameCest.php | 4 +- tests/unit/Dispatcher/SetParamCest.php | 4 +- tests/unit/Dispatcher/SetParamsCest.php | 4 +- .../unit/Dispatcher/SetReturnedValueCest.php | 4 +- tests/unit/Dispatcher/WasForwardedCest.php | 4 +- .../Payload/Payload/GetSetExtrasCest.php | 4 +- .../Payload/Payload/GetSetInputCest.php | 4 +- .../Payload/Payload/GetSetMessagesCest.php | 4 +- .../Payload/Payload/GetSetOutputCest.php | 4 +- .../Payload/Payload/GetSetStatusCest.php | 4 +- .../Domain/Payload/Payload/StatusCest.php | 4 +- .../PayloadFactory/NewInstanceCest.php | 4 +- tests/unit/Escaper/DetectEncodingCest.php | 4 +- tests/unit/Escaper/EscapeCssCest.php | 6 +-- tests/unit/Escaper/EscapeHtmlAttrCest.php | 4 +- tests/unit/Escaper/EscapeHtmlCest.php | 4 +- tests/unit/Escaper/EscapeJsCest.php | 4 +- tests/unit/Escaper/EscapeUrlCest.php | 8 ++-- tests/unit/Escaper/GetSetEncodingCest.php | 4 +- tests/unit/Escaper/NormalizeEncodingCest.php | 4 +- tests/unit/Escaper/SetDoubleEncodeCest.php | 4 +- tests/unit/Escaper/SetHtmlQuoteTypeCest.php | 4 +- tests/unit/Events/Event/ConstructCest.php | 4 +- tests/unit/Events/Event/GetSetDataCest.php | 2 +- tests/unit/Events/Event/GetSourceCest.php | 2 +- tests/unit/Events/Event/GetTypeCest.php | 2 +- tests/unit/Events/Event/IsCancelableCest.php | 2 +- tests/unit/Events/Event/IsStoppedCest.php | 2 +- tests/unit/Events/Event/SetTypeCest.php | 2 +- tests/unit/Events/Event/StopCest.php | 4 +- .../Manager/ArePrioritiesEnabledCest.php | 2 +- tests/unit/Events/Manager/AttachCest.php | 4 +- .../Events/Manager/CollectResponsesCest.php | 4 +- tests/unit/Events/Manager/DetachAllCest.php | 4 +- tests/unit/Events/Manager/DetachCest.php | 4 +- .../Events/Manager/EnablePrioritiesCest.php | 4 +- tests/unit/Events/Manager/FireCest.php | 4 +- tests/unit/Events/Manager/FireQueueCest.php | 4 +- .../unit/Events/Manager/GetListenersCest.php | 4 +- .../unit/Events/Manager/GetResponsesCest.php | 4 +- .../unit/Events/Manager/HasListenersCest.php | 4 +- .../unit/Events/Manager/IsCollectingCest.php | 4 +- tests/unit/Events/ManagerCest.php | 6 +-- tests/unit/Filter/Filter/ConstructCest.php | 4 +- tests/unit/Filter/Filter/CustomCest.php | 6 +-- tests/unit/Filter/Filter/GetSetHasCest.php | 10 ++--- .../Filter/Filter/SanitizeMultipleCest.php | 10 ++--- .../Filter/FilterFactory/NewInstanceCest.php | 6 +-- tests/unit/Filter/Sanitize/AbsIntCest.php | 4 +- tests/unit/Filter/Sanitize/AlnumCest.php | 4 +- tests/unit/Filter/Sanitize/AlphaCest.php | 4 +- tests/unit/Filter/Sanitize/BoolValCest.php | 4 +- tests/unit/Filter/Sanitize/EmailCest.php | 4 +- tests/unit/Filter/Sanitize/FloatValCest.php | 6 +-- tests/unit/Filter/Sanitize/IntValCest.php | 4 +- tests/unit/Filter/Sanitize/LowerCest.php | 4 +- tests/unit/Filter/Sanitize/LowerFirstCest.php | 4 +- tests/unit/Filter/Sanitize/RegexCest.php | 4 +- tests/unit/Filter/Sanitize/RemoveCest.php | 4 +- tests/unit/Filter/Sanitize/ReplaceCest.php | 4 +- tests/unit/Filter/Sanitize/SpecialCest.php | 4 +- .../unit/Filter/Sanitize/SpecialFullCest.php | 2 +- tests/unit/Filter/Sanitize/StringValCest.php | 4 +- tests/unit/Filter/Sanitize/StriptagsCest.php | 4 +- tests/unit/Filter/Sanitize/TrimCest.php | 4 +- tests/unit/Filter/Sanitize/UpperCest.php | 4 +- tests/unit/Filter/Sanitize/UpperFirstCest.php | 4 +- tests/unit/Filter/Sanitize/UpperWordsCest.php | 4 +- tests/unit/Filter/Sanitize/UrlCest.php | 4 +- tests/unit/Flash/ClearCest.php | 4 +- tests/unit/Flash/ConstructCest.php | 4 +- tests/unit/Flash/Direct/ClearCest.php | 4 +- tests/unit/Flash/Direct/ConstructCest.php | 4 +- tests/unit/Flash/Direct/ErrorCest.php | 4 +- .../Flash/Direct/FlashDirectCustomCSSCest.php | 2 +- .../Flash/Direct/FlashDirectEmptyCSSCest.php | 2 +- tests/unit/Flash/Direct/GetAutoescapeCest.php | 4 +- .../Flash/Direct/GetCustomTemplateCest.php | 4 +- tests/unit/Flash/Direct/GetDICest.php | 4 +- .../Flash/Direct/GetEscaperServiceCest.php | 4 +- tests/unit/Flash/Direct/Helper/FlashBase.php | 20 ++++----- tests/unit/Flash/Direct/MessageCest.php | 4 +- tests/unit/Flash/Direct/NoticeCest.php | 4 +- tests/unit/Flash/Direct/OutputCest.php | 4 +- tests/unit/Flash/Direct/OutputMessageCest.php | 4 +- tests/unit/Flash/Direct/SetAutoescapeCest.php | 4 +- .../Flash/Direct/SetAutomaticHtmlCest.php | 4 +- tests/unit/Flash/Direct/SetCssClassesCest.php | 4 +- .../Flash/Direct/SetCustomTemplateCest.php | 4 +- tests/unit/Flash/Direct/SetDICest.php | 4 +- .../Flash/Direct/SetEscaperServiceCest.php | 4 +- .../Flash/Direct/SetImplicitFlushCest.php | 4 +- tests/unit/Flash/Direct/SuccessCest.php | 4 +- tests/unit/Flash/Direct/WarningCest.php | 4 +- tests/unit/Flash/DirectCest.php | 6 +-- tests/unit/Flash/ErrorCest.php | 4 +- tests/unit/Flash/GetAutoescapeCest.php | 4 +- tests/unit/Flash/GetCustomTemplateCest.php | 4 +- tests/unit/Flash/GetDICest.php | 4 +- tests/unit/Flash/GetEscaperServiceCest.php | 4 +- tests/unit/Flash/MessageCest.php | 4 +- tests/unit/Flash/NoticeCest.php | 4 +- tests/unit/Flash/OutputMessageCest.php | 4 +- tests/unit/Flash/Session/ClearCest.php | 4 +- tests/unit/Flash/Session/ConstructCest.php | 4 +- tests/unit/Flash/Session/ErrorCest.php | 4 +- .../unit/Flash/Session/GetAutoescapeCest.php | 4 +- .../Flash/Session/GetCustomTemplateCest.php | 4 +- tests/unit/Flash/Session/GetDICest.php | 4 +- .../Flash/Session/GetEscaperServiceCest.php | 4 +- tests/unit/Flash/Session/GetMessagesCest.php | 4 +- tests/unit/Flash/Session/HasCest.php | 4 +- tests/unit/Flash/Session/MessageCest.php | 4 +- tests/unit/Flash/Session/NoticeCest.php | 4 +- tests/unit/Flash/Session/OutputCest.php | 4 +- .../unit/Flash/Session/OutputMessageCest.php | 4 +- .../unit/Flash/Session/SetAutoescapeCest.php | 4 +- .../Flash/Session/SetAutomaticHtmlCest.php | 4 +- .../unit/Flash/Session/SetCssClassesCest.php | 4 +- .../Flash/Session/SetCustomTemplateCest.php | 4 +- tests/unit/Flash/Session/SetDICest.php | 4 +- .../Flash/Session/SetEscaperServiceCest.php | 4 +- .../Flash/Session/SetImplicitFlushCest.php | 4 +- tests/unit/Flash/Session/SuccessCest.php | 4 +- tests/unit/Flash/Session/WarningCest.php | 4 +- tests/unit/Flash/SessionCest.php | 8 ++-- tests/unit/Flash/SetAutoescapeCest.php | 4 +- tests/unit/Flash/SetAutomaticHtmlCest.php | 4 +- tests/unit/Flash/SetCssClassesCest.php | 4 +- tests/unit/Flash/SetCustomTemplateCest.php | 4 +- tests/unit/Flash/SetDICest.php | 4 +- tests/unit/Flash/SetEscaperServiceCest.php | 4 +- tests/unit/Flash/SetImplicitFlushCest.php | 4 +- tests/unit/Flash/SuccessCest.php | 4 +- tests/unit/Flash/WarningCest.php | 4 +- tests/unit/Helper/Arr/ArrayToObjectCest.php | 4 +- tests/unit/Helper/Arr/ChunkCest.php | 6 +-- tests/unit/Helper/Arr/FirstCest.php | 6 +-- tests/unit/Helper/Arr/FirstKeyCest.php | 6 +-- tests/unit/Helper/Arr/FlattenCest.php | 6 +-- tests/unit/Helper/Arr/GetCest.php | 8 ++-- tests/unit/Helper/Arr/GroupCest.php | 8 ++-- tests/unit/Helper/Arr/HasCest.php | 4 +- tests/unit/Helper/Arr/IsUniqueCest.php | 4 +- tests/unit/Helper/Arr/LastCest.php | 6 +-- tests/unit/Helper/Arr/LastKeyCest.php | 6 +-- tests/unit/Helper/Arr/OrderCest.php | 4 +- tests/unit/Helper/Arr/PluckCest.php | 6 +-- tests/unit/Helper/Arr/SetCest.php | 10 ++--- tests/unit/Helper/Arr/SliceLeftCest.php | 4 +- tests/unit/Helper/Arr/SliceRightCest.php | 4 +- tests/unit/Helper/Arr/SplitCest.php | 4 +- tests/unit/Helper/Arr/ValidateAllCest.php | 4 +- tests/unit/Helper/Arr/ValidateAnyCest.php | 4 +- tests/unit/Helper/Arr/WhiteListCest.php | 4 +- tests/unit/Helper/Number/BetweenCest.php | 4 +- tests/unit/Helper/Str/CamelizeCest.php | 4 +- tests/unit/Helper/Str/ConcatCest.php | 4 +- tests/unit/Helper/Str/CountVowelsCest.php | 4 +- tests/unit/Helper/Str/DecapitalizeCest.php | 4 +- tests/unit/Helper/Str/DirFromFileCest.php | 4 +- tests/unit/Helper/Str/DirSeparatorCest.php | 4 +- tests/unit/Helper/Str/DynamicCest.php | 4 +- tests/unit/Helper/Str/EndsWithCest.php | 12 +++--- tests/unit/Helper/Str/FirstBetweenCest.php | 4 +- tests/unit/Helper/Str/HumanizeCest.php | 4 +- tests/unit/Helper/Str/IncludesCest.php | 4 +- tests/unit/Helper/Str/IncrementCest.php | 14 +++---- tests/unit/Helper/Str/IsAnagramCest.php | 4 +- tests/unit/Helper/Str/IsLowerCest.php | 4 +- tests/unit/Helper/Str/IsPalindromeCest.php | 4 +- tests/unit/Helper/Str/IsUpperCest.php | 4 +- tests/unit/Helper/Str/LowerCest.php | 4 +- tests/unit/Helper/Str/RandomCest.php | 16 +++---- tests/unit/Helper/Str/ReduceSlashesCest.php | 4 +- tests/unit/Helper/Str/StartsWithCest.php | 12 +++--- tests/unit/Helper/Str/UncamelizeCest.php | 4 +- tests/unit/Helper/Str/UnderscoreCest.php | 4 +- tests/unit/Helper/Str/UpperCest.php | 4 +- tests/unit/Html/Attributes/ClearCest.php | 4 +- tests/unit/Html/Attributes/ConstructCest.php | 4 +- tests/unit/Html/Attributes/CountCest.php | 4 +- tests/unit/Html/Attributes/GetCest.php | 4 +- .../unit/Html/Attributes/GetIteratorCest.php | 4 +- tests/unit/Html/Attributes/HasCest.php | 6 +-- tests/unit/Html/Attributes/InitCest.php | 4 +- .../Html/Attributes/JsonSerializeCest.php | 4 +- .../unit/Html/Attributes/OffsetExistsCest.php | 4 +- tests/unit/Html/Attributes/OffsetGetCest.php | 4 +- tests/unit/Html/Attributes/OffsetSetCest.php | 2 +- .../unit/Html/Attributes/OffsetUnsetCest.php | 4 +- tests/unit/Html/Attributes/RemoveCest.php | 4 +- tests/unit/Html/Attributes/RenderCest.php | 2 +- tests/unit/Html/Attributes/SerializeCest.php | 4 +- tests/unit/Html/Attributes/SetCest.php | 4 +- tests/unit/Html/Attributes/ToArrayCest.php | 4 +- tests/unit/Html/Attributes/ToJsonCest.php | 4 +- tests/unit/Html/Attributes/ToStringCest.php | 2 +- .../Html/Attributes/UnderscoreGetCest.php | 4 +- .../Html/Attributes/UnderscoreIsSetCest.php | 4 +- .../Html/Attributes/UnderscoreSetCest.php | 4 +- .../Html/Attributes/UnderscoreUnsetCest.php | 4 +- .../unit/Html/Attributes/UnserializeCest.php | 4 +- tests/unit/Html/Breadcrumbs/AddCest.php | 4 +- tests/unit/Html/Breadcrumbs/ClearCest.php | 4 +- .../Html/Breadcrumbs/GetSetSeparatorCest.php | 4 +- tests/unit/Html/Breadcrumbs/RemoveCest.php | 4 +- tests/unit/Html/Breadcrumbs/RenderCest.php | 4 +- tests/unit/Html/Breadcrumbs/ToArrayCest.php | 4 +- tests/unit/Html/Helper/AnchorCest.php | 2 +- tests/unit/Html/Helper/AnchorRawCest.php | 2 +- tests/unit/Html/Helper/BodyCest.php | 2 +- tests/unit/Html/Helper/ButtonCest.php | 2 +- tests/unit/Html/Helper/CloseCest.php | 2 +- tests/unit/Html/Helper/ElementCest.php | 2 +- tests/unit/Html/Helper/ElementRawCest.php | 2 +- tests/unit/Html/Helper/FormCest.php | 2 +- tests/unit/Html/Helper/ImgCest.php | 2 +- tests/unit/Html/Helper/LabelCest.php | 2 +- tests/unit/Html/Helper/TextAreaCest.php | 2 +- tests/unit/Html/Tag/AppendTitleCest.php | 14 +++---- tests/unit/Html/Tag/ButtonCest.php | 2 +- tests/unit/Html/Tag/ClearCest.php | 4 +- tests/unit/Html/Tag/ConstantsCest.php | 4 +- tests/unit/Html/Tag/ElementCest.php | 12 +++--- tests/unit/Html/Tag/ElementCloseCest.php | 6 +-- tests/unit/Html/Tag/EndFormCest.php | 6 +-- tests/unit/Html/Tag/FormCest.php | 4 +- tests/unit/Html/Tag/FriendlyTitleCest.php | 20 ++++----- tests/unit/Html/Tag/GetSetDICest.php | 4 +- tests/unit/Html/Tag/GetSetDocTypeCest.php | 4 +- tests/unit/Html/Tag/GetTitleCest.php | 6 +-- tests/unit/Html/Tag/GetTitleSeparatorCest.php | 4 +- tests/unit/Html/Tag/GetValueCest.php | 8 ++-- tests/unit/Html/Tag/HasValueCest.php | 6 +-- tests/unit/Html/Tag/ImageCest.php | 18 ++++---- tests/unit/Html/Tag/InputCheckboxCest.php | 2 +- tests/unit/Html/Tag/InputColorCest.php | 2 +- tests/unit/Html/Tag/InputDateCest.php | 2 +- tests/unit/Html/Tag/InputDateTimeCest.php | 2 +- .../unit/Html/Tag/InputDateTimeLocalCest.php | 2 +- tests/unit/Html/Tag/InputEmailCest.php | 2 +- tests/unit/Html/Tag/InputFileCest.php | 2 +- tests/unit/Html/Tag/InputHiddenCest.php | 2 +- tests/unit/Html/Tag/InputImageCest.php | 2 +- tests/unit/Html/Tag/InputMonthCest.php | 2 +- tests/unit/Html/Tag/InputNumericCest.php | 2 +- tests/unit/Html/Tag/InputPasswordCest.php | 2 +- tests/unit/Html/Tag/InputRadioCest.php | 2 +- tests/unit/Html/Tag/InputRangeCest.php | 2 +- tests/unit/Html/Tag/InputSearchCest.php | 2 +- tests/unit/Html/Tag/InputTelCest.php | 2 +- tests/unit/Html/Tag/InputTextCest.php | 2 +- tests/unit/Html/Tag/InputTimeCest.php | 2 +- tests/unit/Html/Tag/InputUrlCest.php | 2 +- tests/unit/Html/Tag/InputWeekCest.php | 2 +- tests/unit/Html/Tag/JavascriptCest.php | 8 ++-- tests/unit/Html/Tag/LinkCest.php | 28 ++++++------- tests/unit/Html/Tag/PrependTitleCest.php | 14 +++---- tests/unit/Html/Tag/RenderTitleCest.php | 4 +- tests/unit/Html/Tag/ResetCest.php | 2 +- tests/unit/Html/Tag/SelectCest.php | 24 +++++------ tests/unit/Html/Tag/SetAttributeCest.php | 4 +- tests/unit/Html/Tag/SetAttributesCest.php | 4 +- tests/unit/Html/Tag/SetTitleCest.php | 4 +- tests/unit/Html/Tag/SetTitleSeparatorCest.php | 4 +- tests/unit/Html/Tag/StylesheetCest.php | 10 ++--- tests/unit/Html/Tag/SubmitCest.php | 2 +- tests/unit/Html/Tag/TextAreaCest.php | 12 +++--- .../unit/Html/TagFactory/NewInstanceCest.php | 4 +- tests/unit/Http/Cookie/ConstructCest.php | 4 +- tests/unit/Http/Cookie/CookieCest.php | 10 ++--- tests/unit/Http/Cookie/DeleteCest.php | 4 +- tests/unit/Http/Cookie/GetDICest.php | 4 +- tests/unit/Http/Cookie/GetDomainCest.php | 4 +- tests/unit/Http/Cookie/GetExpirationCest.php | 4 +- tests/unit/Http/Cookie/GetHttpOnlyCest.php | 4 +- tests/unit/Http/Cookie/GetNameCest.php | 4 +- tests/unit/Http/Cookie/GetPathCest.php | 4 +- tests/unit/Http/Cookie/GetSecureCest.php | 4 +- tests/unit/Http/Cookie/GetValueCest.php | 4 +- .../Http/Cookie/IsUsingEncryptionCest.php | 4 +- tests/unit/Http/Cookie/RestoreCest.php | 4 +- tests/unit/Http/Cookie/SendCest.php | 4 +- tests/unit/Http/Cookie/SetDICest.php | 4 +- tests/unit/Http/Cookie/SetDomainCest.php | 4 +- tests/unit/Http/Cookie/SetExpirationCest.php | 4 +- tests/unit/Http/Cookie/SetHttpOnlyCest.php | 4 +- tests/unit/Http/Cookie/SetPathCest.php | 4 +- tests/unit/Http/Cookie/SetSecureCest.php | 4 +- tests/unit/Http/Cookie/SetSignKeyCest.php | 4 +- tests/unit/Http/Cookie/SetValueCest.php | 4 +- tests/unit/Http/Cookie/ToStringCest.php | 4 +- tests/unit/Http/Cookie/UseEncryptionCest.php | 4 +- tests/unit/Http/Helper/HttpBase.php | 34 +++++++-------- .../Http/Message/Request/ConstructCest.php | 12 +++--- .../unit/Http/Message/Request/GetBodyCest.php | 6 +-- .../Http/Message/Request/GetHeaderCest.php | 6 +-- .../Message/Request/GetHeaderLineCest.php | 6 +-- .../Http/Message/Request/GetHeadersCest.php | 8 ++-- .../Http/Message/Request/GetMethodCest.php | 8 ++-- .../Request/GetProtocolVersionCest.php | 4 +- .../Message/Request/GetRequestTargetCest.php | 4 +- .../unit/Http/Message/Request/GetUriCest.php | 4 +- .../Http/Message/Request/HasHeaderCest.php | 6 +-- .../Message/Request/WithAddedHeaderCest.php | 10 ++--- .../Http/Message/Request/WithBodyCest.php | 4 +- .../Http/Message/Request/WithHeaderCest.php | 8 ++-- .../Http/Message/Request/WithMethodCest.php | 4 +- .../Request/WithProtocolVersionCest.php | 8 ++-- .../Message/Request/WithRequestTargetCest.php | 6 +-- .../unit/Http/Message/Request/WithUriCest.php | 4 +- .../Message/Request/WithoutHeaderCest.php | 4 +- .../Message/RequestFactory/ConstructCest.php | 4 +- .../RequestFactory/CreateRequestCest.php | 4 +- .../Http/Message/Response/ConstructCest.php | 4 +- .../Http/Message/Response/GetBodyCest.php | 6 +-- .../Http/Message/Response/GetHeaderCest.php | 6 +-- .../Message/Response/GetHeaderLineCest.php | 6 +-- .../Http/Message/Response/GetHeadersCest.php | 6 +-- .../Response/GetProtocolVersionCest.php | 4 +- .../Message/Response/GetReasonPhraseCest.php | 6 +-- .../Message/Response/GetStatusCodeCest.php | 6 +-- .../Http/Message/Response/HasHeaderCest.php | 6 +-- .../Message/Response/WithAddedHeaderCest.php | 6 +-- .../Http/Message/Response/WithBodyCest.php | 4 +- .../Http/Message/Response/WithHeaderCest.php | 4 +- .../Response/WithProtocolVersionCest.php | 6 +-- .../Http/Message/Response/WithStatusCest.php | 10 ++--- .../Message/Response/WithoutHeaderCest.php | 4 +- .../Message/ResponseFactory/ConstructCest.php | 4 +- .../ResponseFactory/CreateResponseCest.php | 4 +- .../Message/ServerRequest/ConstructCest.php | 4 +- .../ServerRequest/GetAttributeCest.php | 6 +-- .../ServerRequest/GetAttributesCest.php | 6 +-- .../Message/ServerRequest/GetBodyCest.php | 6 +-- .../ServerRequest/GetCookieParamsCest.php | 6 +-- .../Message/ServerRequest/GetHeaderCest.php | 6 +-- .../ServerRequest/GetHeaderLineCest.php | 6 +-- .../Message/ServerRequest/GetHeadersCest.php | 8 ++-- .../Message/ServerRequest/GetMethodCest.php | 8 ++-- .../ServerRequest/GetParsedBodyCest.php | 6 +-- .../ServerRequest/GetProtocolVersionCest.php | 8 ++-- .../ServerRequest/GetQueryParamsCest.php | 6 +-- .../ServerRequest/GetRequestTargetCest.php | 4 +- .../ServerRequest/GetServerParamsCest.php | 6 +-- .../ServerRequest/GetUploadedFilesCest.php | 8 ++-- .../Http/Message/ServerRequest/GetUriCest.php | 4 +- .../Message/ServerRequest/HasHeaderCest.php | 6 +-- .../ServerRequest/WithAddedHeaderCest.php | 6 +-- .../ServerRequest/WithAttributeCest.php | 4 +- .../Message/ServerRequest/WithBodyCest.php | 4 +- .../ServerRequest/WithCookieParamsCest.php | 4 +- .../Message/ServerRequest/WithHeaderCest.php | 4 +- .../Message/ServerRequest/WithMethodCest.php | 4 +- .../ServerRequest/WithParsedBodyCest.php | 4 +- .../ServerRequest/WithProtocolVersionCest.php | 4 +- .../ServerRequest/WithQueryParamsCest.php | 4 +- .../ServerRequest/WithRequestTargetCest.php | 4 +- .../ServerRequest/WithUploadedFilesCest.php | 6 +-- .../Message/ServerRequest/WithUriCest.php | 4 +- .../ServerRequest/WithoutAttributeCest.php | 4 +- .../ServerRequest/WithoutHeaderCest.php | 4 +- .../ServerRequestFactory/ConstructCest.php | 4 +- .../CreateServerRequestCest.php | 4 +- .../Message/ServerRequestFactory/LoadCest.php | 26 ++++++------ tests/unit/Http/Message/Stream/CloseCest.php | 6 +-- .../Http/Message/Stream/ConstructCest.php | 6 +-- tests/unit/Http/Message/Stream/DetachCest.php | 4 +- tests/unit/Http/Message/Stream/EofCest.php | 8 ++-- .../Http/Message/Stream/GetContentsCest.php | 8 ++-- .../Http/Message/Stream/GetMetadataCest.php | 8 ++-- .../unit/Http/Message/Stream/GetSizeCest.php | 8 ++-- .../Message/Stream/Input/ConstructCest.php | 4 +- .../Message/Stream/Input/GetContentsCest.php | 4 +- .../Message/Stream/Input/IsReadableCest.php | 4 +- .../Message/Stream/Input/IsSeekableCest.php | 4 +- .../Message/Stream/Input/IsWritableCest.php | 4 +- .../Http/Message/Stream/Input/ReadCest.php | 4 +- .../Message/Stream/Input/ToStringCest.php | 4 +- .../Http/Message/Stream/IsReadableCest.php | 6 +-- .../Http/Message/Stream/IsSeekableCest.php | 6 +-- .../Http/Message/Stream/IsWritableCest.php | 6 +-- .../Message/Stream/Memory/ConstructCest.php | 4 +- .../Message/Stream/Memory/IsReadableCest.php | 4 +- .../Message/Stream/Memory/IsSeekableCest.php | 4 +- .../Message/Stream/Memory/IsWritableCest.php | 4 +- tests/unit/Http/Message/Stream/ReadCest.php | 6 +-- tests/unit/Http/Message/Stream/RewindCest.php | 6 +-- tests/unit/Http/Message/Stream/SeekCest.php | 8 ++-- .../Http/Message/Stream/SetStreamCest.php | 4 +- tests/unit/Http/Message/Stream/TellCest.php | 6 +-- .../Message/Stream/Temp/ConstructCest.php | 4 +- .../Message/Stream/Temp/IsReadableCest.php | 4 +- .../Message/Stream/Temp/IsSeekableCest.php | 4 +- .../Message/Stream/Temp/IsWritableCest.php | 4 +- .../unit/Http/Message/Stream/ToStringCest.php | 4 +- tests/unit/Http/Message/Stream/WriteCest.php | 8 ++-- .../Message/StreamFactory/ConstructCest.php | 4 +- .../StreamFactory/CreateStreamCest.php | 4 +- .../CreateStreamFromFileCest.php | 4 +- .../CreateStreamFromResourceCest.php | 6 +-- .../Message/UploadedFile/ConstructCest.php | 10 ++--- .../UploadedFile/GetClientFilenameCest.php | 4 +- .../UploadedFile/GetClientMediaTypeCest.php | 4 +- .../Message/UploadedFile/GetErrorCest.php | 4 +- .../Http/Message/UploadedFile/GetSizeCest.php | 4 +- .../Message/UploadedFile/GetStreamCest.php | 10 ++--- .../Http/Message/UploadedFile/MoveToCest.php | 10 ++--- .../UploadedFileFactory/ConstructCest.php | 4 +- .../CreateUploadedFileCest.php | 4 +- tests/unit/Http/Message/Uri/ConstructCest.php | 4 +- .../Http/Message/Uri/GetAuthorityCest.php | 4 +- .../unit/Http/Message/Uri/GetFragmentCest.php | 6 +-- tests/unit/Http/Message/Uri/GetHostCest.php | 6 +-- tests/unit/Http/Message/Uri/GetPathCest.php | 6 +-- tests/unit/Http/Message/Uri/GetPortCest.php | 6 +-- tests/unit/Http/Message/Uri/GetQueryCest.php | 6 +-- tests/unit/Http/Message/Uri/GetSchemeCest.php | 6 +-- .../unit/Http/Message/Uri/GetUserInfoCest.php | 10 ++--- tests/unit/Http/Message/Uri/ToStringCest.php | 8 ++-- .../Http/Message/Uri/WithFragmentCest.php | 6 +-- tests/unit/Http/Message/Uri/WithHostCest.php | 6 +-- tests/unit/Http/Message/Uri/WithPathCest.php | 10 ++--- tests/unit/Http/Message/Uri/WithPortCest.php | 6 +-- tests/unit/Http/Message/Uri/WithQueryCest.php | 8 ++-- .../unit/Http/Message/Uri/WithSchemeCest.php | 8 ++-- .../Http/Message/Uri/WithUserInfoCest.php | 6 +-- .../Http/Message/UriFactory/ConstructCest.php | 4 +- .../Http/Message/UriFactory/CreateUriCest.php | 4 +- tests/unit/Http/Request/AuthHeaderCest.php | 10 ++--- tests/unit/Http/Request/ConstructCest.php | 4 +- .../unit/Http/Request/File/ConstructCest.php | 4 +- tests/unit/Http/Request/File/GetErrorCest.php | 4 +- .../Http/Request/File/GetExtensionCest.php | 4 +- tests/unit/Http/Request/File/GetKeyCest.php | 4 +- tests/unit/Http/Request/File/GetNameCest.php | 4 +- .../Http/Request/File/GetRealTypeCest.php | 4 +- tests/unit/Http/Request/File/GetSizeCest.php | 4 +- .../Http/Request/File/GetTempNameCest.php | 4 +- tests/unit/Http/Request/File/GetTypeCest.php | 4 +- .../Http/Request/File/IsUploadedFileCest.php | 4 +- tests/unit/Http/Request/File/MoveToCest.php | 4 +- tests/unit/Http/Request/FileCest.php | 4 +- .../Http/Request/GetAcceptableContentCest.php | 4 +- tests/unit/Http/Request/GetBasicAuthCest.php | 4 +- tests/unit/Http/Request/GetBestAcceptCest.php | 4 +- .../unit/Http/Request/GetBestCharsetCest.php | 4 +- .../unit/Http/Request/GetBestLanguageCest.php | 4 +- tests/unit/Http/Request/GetCest.php | 4 +- .../Http/Request/GetClientAddressCest.php | 4 +- .../Http/Request/GetClientCharsetsCest.php | 4 +- .../unit/Http/Request/GetContentTypeCest.php | 2 +- tests/unit/Http/Request/GetDigestAuthCest.php | 4 +- .../unit/Http/Request/GetFilteredPostCest.php | 6 +-- .../unit/Http/Request/GetFilteredPutCest.php | 4 +- .../Http/Request/GetFilteredQueryCest.php | 4 +- .../unit/Http/Request/GetHTTPRefererCest.php | 4 +- tests/unit/Http/Request/GetHeaderCest.php | 8 ++-- tests/unit/Http/Request/GetHeadersCest.php | 4 +- tests/unit/Http/Request/GetHttpHostCest.php | 6 +-- .../GetHttpMethodParameterOverrideCest.php | 4 +- .../unit/Http/Request/GetJsonRawBodyCest.php | 4 +- tests/unit/Http/Request/GetLanguagesCest.php | 4 +- tests/unit/Http/Request/GetMethodCest.php | 4 +- tests/unit/Http/Request/GetPortCest.php | 4 +- tests/unit/Http/Request/GetPostCest.php | 4 +- tests/unit/Http/Request/GetPutCest.php | 4 +- tests/unit/Http/Request/GetQueryCest.php | 4 +- tests/unit/Http/Request/GetRawBodyCest.php | 4 +- tests/unit/Http/Request/GetSchemeCest.php | 6 +-- .../Http/Request/GetServerAddressCest.php | 6 +-- tests/unit/Http/Request/GetServerCest.php | 4 +- tests/unit/Http/Request/GetServerNameCest.php | 4 +- tests/unit/Http/Request/GetSetDICest.php | 4 +- tests/unit/Http/Request/GetURICest.php | 4 +- .../Http/Request/GetUploadedFilesCest.php | 4 +- tests/unit/Http/Request/GetUserAgentCest.php | 4 +- tests/unit/Http/Request/HasCest.php | 4 +- tests/unit/Http/Request/HasFilesCest.php | 4 +- tests/unit/Http/Request/HasHeaderCest.php | 2 +- tests/unit/Http/Request/HasPostCest.php | 4 +- tests/unit/Http/Request/HasPutCest.php | 4 +- tests/unit/Http/Request/HasQueryCest.php | 4 +- tests/unit/Http/Request/HasServerCest.php | 4 +- tests/unit/Http/Request/IsAjaxCest.php | 6 +-- tests/unit/Http/Request/IsConnectCest.php | 4 +- tests/unit/Http/Request/IsDeleteCest.php | 4 +- tests/unit/Http/Request/IsGetCest.php | 4 +- tests/unit/Http/Request/IsHeadCest.php | 4 +- tests/unit/Http/Request/IsMethodCest.php | 4 +- tests/unit/Http/Request/IsOptionsCest.php | 4 +- tests/unit/Http/Request/IsPatchCest.php | 4 +- tests/unit/Http/Request/IsPostCest.php | 4 +- tests/unit/Http/Request/IsPurgeCest.php | 4 +- tests/unit/Http/Request/IsPutCest.php | 4 +- tests/unit/Http/Request/IsSecureCest.php | 6 +-- tests/unit/Http/Request/IsSoapCest.php | 6 +-- .../Http/Request/IsStrictHostCheckCest.php | 4 +- tests/unit/Http/Request/IsTraceCest.php | 4 +- .../Http/Request/IsValidHttpMethodCest.php | 4 +- tests/unit/Http/Request/RequestCest.php | 18 ++++---- .../SetHttpMethodParameterOverrideCest.php | 4 +- .../Http/Request/SetParameterFiltersCest.php | 4 +- .../Http/Request/SetStrictHostCheckCest.php | 4 +- .../unit/Http/Response/AppendContentCest.php | 4 +- tests/unit/Http/Response/ConstructCest.php | 4 +- .../Http/Response/Cookies/ConstructCest.php | 4 +- .../unit/Http/Response/Cookies/DeleteCest.php | 4 +- tests/unit/Http/Response/Cookies/GetCest.php | 4 +- .../Http/Response/Cookies/GetCookiesCest.php | 4 +- .../unit/Http/Response/Cookies/GetDICest.php | 4 +- tests/unit/Http/Response/Cookies/HasCest.php | 4 +- .../Cookies/IsUsingEncryptionCest.php | 4 +- .../unit/Http/Response/Cookies/ResetCest.php | 4 +- tests/unit/Http/Response/Cookies/SendCest.php | 4 +- tests/unit/Http/Response/Cookies/SetCest.php | 4 +- .../unit/Http/Response/Cookies/SetDICest.php | 4 +- .../Http/Response/Cookies/SetSignKeyCest.php | 4 +- .../Response/Cookies/UseEncryptionCest.php | 4 +- tests/unit/Http/Response/CookiesCest.php | 10 ++--- tests/unit/Http/Response/GetContentCest.php | 4 +- tests/unit/Http/Response/GetCookiesCest.php | 4 +- tests/unit/Http/Response/GetDICest.php | 4 +- .../Http/Response/GetEventsManagerCest.php | 4 +- tests/unit/Http/Response/GetHeadersCest.php | 4 +- .../Http/Response/GetReasonPhraseCest.php | 4 +- .../unit/Http/Response/GetStatusCodeCest.php | 4 +- tests/unit/Http/Response/HasHeaderCest.php | 4 +- tests/unit/Http/Response/Headers/GetCest.php | 4 +- tests/unit/Http/Response/Headers/HasCest.php | 4 +- .../unit/Http/Response/Headers/RemoveCest.php | 4 +- .../unit/Http/Response/Headers/ResetCest.php | 4 +- tests/unit/Http/Response/Headers/SendCest.php | 4 +- tests/unit/Http/Response/Headers/SetCest.php | 4 +- .../unit/Http/Response/Headers/SetRawCest.php | 4 +- .../Http/Response/Headers/ToArrayCest.php | 4 +- tests/unit/Http/Response/HeadersCest.php | 20 ++++----- tests/unit/Http/Response/IsSentCest.php | 4 +- tests/unit/Http/Response/RedirectCest.php | 10 ++--- tests/unit/Http/Response/RemoveHeaderCest.php | 2 +- tests/unit/Http/Response/ResetHeadersCest.php | 4 +- tests/unit/Http/Response/ResponseCest.php | 4 +- tests/unit/Http/Response/SendCest.php | 4 +- tests/unit/Http/Response/SendCookiesCest.php | 4 +- tests/unit/Http/Response/SendHeadersCest.php | 4 +- tests/unit/Http/Response/SetCacheCest.php | 2 +- tests/unit/Http/Response/SetContentCest.php | 4 +- .../Http/Response/SetContentLengthCest.php | 2 +- .../unit/Http/Response/SetContentTypeCest.php | 6 +-- tests/unit/Http/Response/SetCookiesCest.php | 4 +- tests/unit/Http/Response/SetDICest.php | 4 +- tests/unit/Http/Response/SetEtagCest.php | 2 +- .../Http/Response/SetEventsManagerCest.php | 4 +- tests/unit/Http/Response/SetExpiresCest.php | 4 +- .../unit/Http/Response/SetFileToSendCest.php | 4 +- tests/unit/Http/Response/SetHeaderCest.php | 6 +-- tests/unit/Http/Response/SetHeadersCest.php | 6 +-- .../unit/Http/Response/SetJsonContentCest.php | 4 +- .../Http/Response/SetLastModifiedCest.php | 4 +- .../unit/Http/Response/SetNotModifiedCest.php | 4 +- tests/unit/Http/Response/SetRawHeaderCest.php | 4 +- .../unit/Http/Response/SetStatusCodeCest.php | 4 +- .../Http/Server/Middleware/ConstructCest.php | 4 +- .../Http/Server/Middleware/ProcessCest.php | 4 +- .../Server/RequestHandler/ConstructCest.php | 4 +- .../Http/Server/RequestHandler/HandleCest.php | 4 +- .../unit/Image/Adapter/Gd/BackgroundCest.php | 4 +- tests/unit/Image/Adapter/Gd/BlurCest.php | 4 +- tests/unit/Image/Adapter/Gd/CheckCest.php | 4 +- tests/unit/Image/Adapter/Gd/ConstructCest.php | 4 +- tests/unit/Image/Adapter/Gd/CropCest.php | 6 +-- tests/unit/Image/Adapter/Gd/DestructCest.php | 4 +- tests/unit/Image/Adapter/Gd/FlipCest.php | 4 +- tests/unit/Image/Adapter/Gd/GetHeightCest.php | 6 +-- tests/unit/Image/Adapter/Gd/GetImageCest.php | 4 +- tests/unit/Image/Adapter/Gd/GetMimeCest.php | 6 +-- .../unit/Image/Adapter/Gd/GetRealpathCest.php | 4 +- tests/unit/Image/Adapter/Gd/GetTypeCest.php | 6 +-- .../unit/Image/Adapter/Gd/GetVersionCest.php | 4 +- tests/unit/Image/Adapter/Gd/GetWidthCest.php | 6 +-- .../Image/Adapter/Gd/LiquidRescaleCest.php | 4 +- tests/unit/Image/Adapter/Gd/MaskCest.php | 4 +- tests/unit/Image/Adapter/Gd/PixelateCest.php | 4 +- .../unit/Image/Adapter/Gd/ReflectionCest.php | 4 +- tests/unit/Image/Adapter/Gd/RenderCest.php | 4 +- tests/unit/Image/Adapter/Gd/ResizeCest.php | 6 +-- tests/unit/Image/Adapter/Gd/RotateCest.php | 4 +- tests/unit/Image/Adapter/Gd/SaveCest.php | 4 +- tests/unit/Image/Adapter/Gd/SharpenCest.php | 4 +- tests/unit/Image/Adapter/Gd/TextCest.php | 4 +- tests/unit/Image/Adapter/Gd/WatermarkCest.php | 10 ++--- .../Image/Adapter/Imagick/BackgroundCest.php | 4 +- tests/unit/Image/Adapter/Imagick/BlurCest.php | 4 +- .../unit/Image/Adapter/Imagick/CheckCest.php | 4 +- tests/unit/Image/Adapter/Imagick/CropCest.php | 4 +- tests/unit/Image/Adapter/Imagick/FlipCest.php | 4 +- .../Image/Adapter/Imagick/GetHeightCest.php | 4 +- .../Image/Adapter/Imagick/GetImageCest.php | 4 +- .../Imagick/GetInternalImInstanceCest.php | 4 +- .../Image/Adapter/Imagick/GetMimeCest.php | 4 +- .../Image/Adapter/Imagick/GetRealpathCest.php | 4 +- .../Image/Adapter/Imagick/GetTypeCest.php | 4 +- .../Image/Adapter/Imagick/GetWidthCest.php | 4 +- .../Adapter/Imagick/LiquidRescaleCest.php | 4 +- tests/unit/Image/Adapter/Imagick/MaskCest.php | 4 +- .../Image/Adapter/Imagick/PixelateCest.php | 4 +- .../Image/Adapter/Imagick/ReflectionCest.php | 4 +- .../unit/Image/Adapter/Imagick/RenderCest.php | 4 +- .../unit/Image/Adapter/Imagick/ResizeCest.php | 4 +- .../unit/Image/Adapter/Imagick/RotateCest.php | 4 +- tests/unit/Image/Adapter/Imagick/SaveCest.php | 4 +- .../Adapter/Imagick/SetResourceLimitCest.php | 4 +- .../Image/Adapter/Imagick/SharpenCest.php | 4 +- tests/unit/Image/Adapter/Imagick/TextCest.php | 4 +- .../Image/Adapter/Imagick/WatermarkCest.php | 4 +- tests/unit/Image/ImageFactory/LoadCest.php | 6 +-- .../Image/ImageFactory/NewInstanceCest.php | 4 +- tests/unit/Kernel/PreComputeHashKeyCest.php | 4 +- tests/unit/Loader/AutoLoadCest.php | 4 +- tests/unit/Loader/GetCheckedPathCest.php | 4 +- tests/unit/Loader/GetClassesCest.php | 2 +- tests/unit/Loader/GetDirsCest.php | 2 +- tests/unit/Loader/GetEventsManagerCest.php | 4 +- tests/unit/Loader/GetExtensionsCest.php | 4 +- tests/unit/Loader/GetFilesCest.php | 2 +- tests/unit/Loader/GetFoundPathCest.php | 4 +- tests/unit/Loader/GetNamespacesCest.php | 2 +- tests/unit/Loader/LoadFilesCest.php | 4 +- tests/unit/Loader/LoaderCest.php | 2 +- tests/unit/Loader/RegisterCest.php | 4 +- tests/unit/Loader/RegisterClassesCest.php | 2 +- tests/unit/Loader/RegisterDirsCest.php | 2 +- tests/unit/Loader/RegisterFilesCest.php | 2 +- tests/unit/Loader/RegisterNamespacesCest.php | 2 +- tests/unit/Loader/SetEventsManagerCest.php | 4 +- tests/unit/Loader/SetExtensionsCest.php | 2 +- .../Loader/SetFileCheckingCallbackCest.php | 6 +-- tests/unit/Loader/UnregisterCest.php | 4 +- tests/unit/Logger/Adapter/Noop/AddCest.php | 4 +- tests/unit/Logger/Adapter/Noop/BeginCest.php | 4 +- tests/unit/Logger/Adapter/Noop/CloseCest.php | 4 +- tests/unit/Logger/Adapter/Noop/CommitCest.php | 6 +-- .../Logger/Adapter/Noop/GetFormatterCest.php | 4 +- .../Logger/Adapter/Noop/InTransactionCest.php | 4 +- .../unit/Logger/Adapter/Noop/ProcessCest.php | 4 +- .../unit/Logger/Adapter/Noop/RollbackCest.php | 4 +- .../Logger/Adapter/Noop/SetFormatterCest.php | 4 +- tests/unit/Logger/Adapter/Stream/AddCest.php | 2 +- .../unit/Logger/Adapter/Stream/BeginCest.php | 2 +- .../unit/Logger/Adapter/Stream/CloseCest.php | 2 +- .../unit/Logger/Adapter/Stream/CommitCest.php | 2 +- .../Adapter/Stream/GetFormatterCest.php | 2 +- .../Logger/Adapter/Stream/GetNameCest.php | 2 +- .../Adapter/Stream/InTransactionCest.php | 2 +- .../Logger/Adapter/Stream/ProcessCest.php | 2 +- .../Logger/Adapter/Stream/RollbackCest.php | 2 +- .../Adapter/Stream/SetFormatterCest.php | 2 +- tests/unit/Logger/Adapter/Syslog/AddCest.php | 4 +- .../unit/Logger/Adapter/Syslog/BeginCest.php | 4 +- .../unit/Logger/Adapter/Syslog/CloseCest.php | 4 +- .../unit/Logger/Adapter/Syslog/CommitCest.php | 6 +-- .../Adapter/Syslog/GetFormatterCest.php | 4 +- .../Adapter/Syslog/InTransactionCest.php | 4 +- .../Logger/Adapter/Syslog/ProcessCest.php | 4 +- .../Logger/Adapter/Syslog/RollbackCest.php | 4 +- .../Adapter/Syslog/SetFormatterCest.php | 4 +- .../Logger/AdapterFactory/NewInstanceCest.php | 4 +- .../unit/Logger/Formatter/Json/FormatCest.php | 6 +-- .../Formatter/Json/GetDateFormatCest.php | 4 +- .../Logger/Formatter/Json/InterpolateCest.php | 6 +-- .../Formatter/Json/SetDateFormatCest.php | 4 +- .../unit/Logger/Formatter/Line/FormatCest.php | 6 +-- .../Formatter/Line/GetDateFormatCest.php | 2 +- .../Logger/Formatter/Line/GetFormatCest.php | 4 +- .../Logger/Formatter/Line/InterpolateCest.php | 6 +-- .../Formatter/Line/SetDateFormatCest.php | 2 +- .../Logger/Formatter/Line/SetFormatCest.php | 2 +- .../Logger/Formatter/Syslog/FormatCest.php | 2 +- .../Formatter/Syslog/InterpolateCest.php | 6 +-- tests/unit/Logger/Item/GetContextCest.php | 2 +- tests/unit/Logger/Item/GetMessageCest.php | 2 +- tests/unit/Logger/Item/GetNameCest.php | 4 +- tests/unit/Logger/Item/GetTimeCest.php | 2 +- tests/unit/Logger/Item/GetTypeCest.php | 2 +- tests/unit/Logger/Logger/AddAdapterCest.php | 2 +- tests/unit/Logger/Logger/AlertCest.php | 2 +- tests/unit/Logger/Logger/ConstructCest.php | 4 +- tests/unit/Logger/Logger/CriticalCest.php | 2 +- tests/unit/Logger/Logger/DebugCest.php | 2 +- tests/unit/Logger/Logger/EmergencyCest.php | 2 +- tests/unit/Logger/Logger/ErrorCest.php | 2 +- .../Logger/Logger/ExcludeAdaptersCest.php | 2 +- tests/unit/Logger/Logger/GetAdapterCest.php | 2 +- tests/unit/Logger/Logger/GetAdaptersCest.php | 2 +- tests/unit/Logger/Logger/GetNameCest.php | 2 +- tests/unit/Logger/Logger/InfoCest.php | 2 +- tests/unit/Logger/Logger/LogCest.php | 2 +- tests/unit/Logger/Logger/NoticeCest.php | 2 +- .../unit/Logger/Logger/RemoveAdapterCest.php | 2 +- tests/unit/Logger/Logger/SetAdaptersCest.php | 2 +- tests/unit/Logger/Logger/WarningCest.php | 2 +- tests/unit/Logger/LoggerFactory/LoadCest.php | 6 +-- .../Logger/LoggerFactory/NewInstanceCest.php | 4 +- tests/unit/Messages/Message/ConstructCest.php | 8 ++-- .../unit/Messages/Message/GetSetCodeCest.php | 4 +- .../unit/Messages/Message/GetSetFieldCest.php | 4 +- .../Messages/Message/GetSetMessageCest.php | 4 +- .../Messages/Message/GetSetMetaDataCest.php | 4 +- .../unit/Messages/Message/GetSetTypeCest.php | 4 +- .../Messages/Message/JsonSerializeCest.php | 4 +- tests/unit/Messages/Message/ToStringCest.php | 6 +-- .../Messages/Messages/AppendMessageCest.php | 4 +- .../Messages/Messages/AppendMessagesCest.php | 6 +-- .../unit/Messages/Messages/ConstructCest.php | 4 +- tests/unit/Messages/Messages/CountCest.php | 4 +- tests/unit/Messages/Messages/CurrentCest.php | 4 +- tests/unit/Messages/Messages/FilterCest.php | 4 +- .../Messages/Messages/JsonSerializeCest.php | 4 +- tests/unit/Messages/Messages/KeyCest.php | 4 +- tests/unit/Messages/Messages/NextCest.php | 4 +- .../Messages/Messages/OffsetExistsCest.php | 4 +- .../Messages/Messages/OffsetGetSetCest.php | 4 +- .../Messages/Messages/OffsetUnsetCest.php | 4 +- tests/unit/Messages/Messages/RewindCest.php | 4 +- tests/unit/Messages/Messages/ValidCest.php | 4 +- tests/unit/Registry/ClearCest.php | 4 +- tests/unit/Registry/ConstructCest.php | 4 +- tests/unit/Registry/CountCest.php | 4 +- tests/unit/Registry/GetCest.php | 4 +- tests/unit/Registry/GetIteratorCest.php | 4 +- tests/unit/Registry/HasCest.php | 4 +- tests/unit/Registry/InitCest.php | 4 +- tests/unit/Registry/JsonSerializeCest.php | 4 +- tests/unit/Registry/OffsetExistsCest.php | 2 +- tests/unit/Registry/OffsetGetCest.php | 2 +- tests/unit/Registry/OffsetSetCest.php | 2 +- tests/unit/Registry/OffsetUnsetCest.php | 2 +- tests/unit/Registry/RemoveCest.php | 4 +- tests/unit/Registry/SerializeCest.php | 4 +- tests/unit/Registry/SetCest.php | 4 +- tests/unit/Registry/ToArrayCest.php | 4 +- tests/unit/Registry/ToJsonCest.php | 4 +- tests/unit/Registry/UnderscoreGetCest.php | 2 +- tests/unit/Registry/UnderscoreIsSetCest.php | 2 +- tests/unit/Registry/UnderscoreSetCest.php | 2 +- tests/unit/Registry/UnderscoreUnsetCest.php | 2 +- tests/unit/Registry/UnserializeCest.php | 4 +- tests/unit/Security/CheckHashCest.php | 4 +- tests/unit/Security/CheckTokenCest.php | 4 +- tests/unit/Security/ComputeHmacCest.php | 4 +- tests/unit/Security/ConstructCest.php | 6 +-- tests/unit/Security/GetRandomCest.php | 2 +- tests/unit/Security/GetRequestTokenCest.php | 4 +- tests/unit/Security/GetSaltBytesCest.php | 4 +- tests/unit/Security/GetSetDefaultHashCest.php | 4 +- tests/unit/Security/GetSetRandomBytesCest.php | 4 +- tests/unit/Security/GetSetWorkFactorCest.php | 2 +- tests/unit/Security/GetTokenAndKeyCest.php | 4 +- tests/unit/Security/HashCest.php | 4 +- tests/unit/Security/IsLegacyHashCest.php | 2 +- tests/unit/Security/Random/Base58Cest.php | 4 +- tests/unit/Security/Random/Base62Cest.php | 4 +- tests/unit/Security/Random/Base64Cest.php | 4 +- tests/unit/Security/Random/Base64SafeCest.php | 4 +- tests/unit/Security/Random/BytesCest.php | 4 +- tests/unit/Security/Random/HexCest.php | 4 +- tests/unit/Security/Random/NumberCest.php | 4 +- tests/unit/Security/Random/UuidCest.php | 6 +-- tests/unit/Session/ManagerCest.php | 4 +- tests/unit/Storage/Adapter/Apcu/ClearCest.php | 6 +-- .../Storage/Adapter/Apcu/ConstructCest.php | 4 +- .../Storage/Adapter/Apcu/DecrementCest.php | 4 +- .../unit/Storage/Adapter/Apcu/DeleteCest.php | 8 ++-- .../Storage/Adapter/Apcu/GetAdapterCest.php | 4 +- .../unit/Storage/Adapter/Apcu/GetKeysCest.php | 4 +- .../Storage/Adapter/Apcu/GetPrefixCest.php | 6 +-- .../unit/Storage/Adapter/Apcu/GetSetCest.php | 4 +- .../Apcu/GetSetDefaultSerializerCest.php | 4 +- tests/unit/Storage/Adapter/Apcu/HasCest.php | 4 +- .../Storage/Adapter/Apcu/IncrementCest.php | 4 +- .../Adapter/Libmemcached/ClearCest.php | 6 +-- .../Adapter/Libmemcached/ConstructCest.php | 8 ++-- .../Adapter/Libmemcached/DecrementCest.php | 4 +- .../Adapter/Libmemcached/DeleteCest.php | 8 ++-- .../Adapter/Libmemcached/GetAdapterCest.php | 4 +- .../Adapter/Libmemcached/GetKeysCest.php | 4 +- .../Adapter/Libmemcached/GetPrefixCest.php | 6 +-- .../Adapter/Libmemcached/GetSetCest.php | 6 +-- .../GetSetDefaultSerializerCest.php | 4 +- .../Storage/Adapter/Libmemcached/HasCest.php | 4 +- .../Adapter/Libmemcached/IncrementCest.php | 4 +- .../unit/Storage/Adapter/Memory/ClearCest.php | 6 +-- .../Storage/Adapter/Memory/ConstructCest.php | 4 +- .../Storage/Adapter/Memory/DecrementCest.php | 4 +- .../Storage/Adapter/Memory/DeleteCest.php | 8 ++-- .../Storage/Adapter/Memory/GetAdapterCest.php | 4 +- .../Storage/Adapter/Memory/GetKeysCest.php | 4 +- .../Storage/Adapter/Memory/GetPrefixCest.php | 6 +-- .../Storage/Adapter/Memory/GetSetCest.php | 4 +- .../Memory/GetSetDefaultSerializerCest.php | 4 +- tests/unit/Storage/Adapter/Memory/HasCest.php | 4 +- .../Storage/Adapter/Memory/IncrementCest.php | 4 +- .../unit/Storage/Adapter/Redis/ClearCest.php | 6 +-- .../Storage/Adapter/Redis/ConstructCest.php | 6 +-- .../Storage/Adapter/Redis/DecrementCest.php | 4 +- .../unit/Storage/Adapter/Redis/DeleteCest.php | 8 ++-- .../Storage/Adapter/Redis/GetAdapterCest.php | 4 +- .../Storage/Adapter/Redis/GetKeysCest.php | 4 +- .../Storage/Adapter/Redis/GetPrefixCest.php | 6 +-- .../unit/Storage/Adapter/Redis/GetSetCest.php | 12 +++--- .../Redis/GetSetDefaultSerializerCest.php | 4 +- tests/unit/Storage/Adapter/Redis/HasCest.php | 4 +- .../Storage/Adapter/Redis/IncrementCest.php | 4 +- .../unit/Storage/Adapter/Stream/ClearCest.php | 6 +-- .../Storage/Adapter/Stream/ConstructCest.php | 6 +-- .../Storage/Adapter/Stream/DecrementCest.php | 4 +- .../Storage/Adapter/Stream/DeleteCest.php | 8 ++-- .../Storage/Adapter/Stream/GetAdapterCest.php | 4 +- .../Storage/Adapter/Stream/GetKeysCest.php | 4 +- .../Storage/Adapter/Stream/GetPrefixCest.php | 6 +-- .../Storage/Adapter/Stream/GetSetCest.php | 8 ++-- .../Stream/GetSetDefaultSerializerCest.php | 4 +- tests/unit/Storage/Adapter/Stream/HasCest.php | 4 +- .../Storage/Adapter/Stream/IncrementCest.php | 4 +- .../AdapterFactory/NewInstanceCest.php | 6 +-- .../Storage/Serializer/Base64/GetDataCest.php | 4 +- .../Serializer/Base64/SerializeCest.php | 6 +-- .../Storage/Serializer/Base64/SetDataCest.php | 4 +- .../Serializer/Base64/UnserializeCest.php | 6 +-- .../Serializer/Igbinary/GetDataCest.php | 4 +- .../Serializer/Igbinary/SerializeCest.php | 4 +- .../Serializer/Igbinary/SetDataCest.php | 4 +- .../Serializer/Igbinary/UnserializeCest.php | 4 +- .../Storage/Serializer/Json/GetDataCest.php | 4 +- .../Storage/Serializer/Json/SerializeCest.php | 4 +- .../Storage/Serializer/Json/SetDataCest.php | 4 +- .../Serializer/Json/UnserializeCest.php | 4 +- .../Serializer/Msgpack/GetDataCest.php | 4 +- .../Serializer/Msgpack/SerializeCest.php | 4 +- .../Serializer/Msgpack/SetDataCest.php | 4 +- .../Serializer/Msgpack/UnserializeCest.php | 4 +- .../Storage/Serializer/None/GetDataCest.php | 4 +- .../Storage/Serializer/None/SerializeCest.php | 4 +- .../Storage/Serializer/None/SetDataCest.php | 4 +- .../Serializer/None/UnserializeCest.php | 4 +- .../Storage/Serializer/Php/GetDataCest.php | 4 +- .../Storage/Serializer/Php/SerializeCest.php | 4 +- .../Storage/Serializer/Php/SetDataCest.php | 4 +- .../Serializer/Php/UnserializeCest.php | 4 +- .../SerializerFactory/NewInstanceCest.php | 6 +-- tests/unit/Tag/AppendTitleCest.php | 12 +++--- tests/unit/Tag/CheckFieldCest.php | 4 +- tests/unit/Tag/ColorFieldCest.php | 2 +- tests/unit/Tag/DateFieldCest.php | 2 +- tests/unit/Tag/DateTimeFieldCest.php | 2 +- tests/unit/Tag/DateTimeLocalFieldCest.php | 2 +- tests/unit/Tag/DisplayToCest.php | 4 +- tests/unit/Tag/EmailFieldCest.php | 2 +- tests/unit/Tag/EndFormCest.php | 4 +- tests/unit/Tag/FileFieldCest.php | 2 +- tests/unit/Tag/FormCest.php | 4 +- tests/unit/Tag/FriendlyTitleCest.php | 22 +++++----- tests/unit/Tag/GetDICest.php | 4 +- tests/unit/Tag/GetDocTypeCest.php | 24 +++++------ tests/unit/Tag/GetEscaperCest.php | 4 +- tests/unit/Tag/GetEscaperServiceCest.php | 4 +- tests/unit/Tag/GetTitleCest.php | 4 +- tests/unit/Tag/GetTitleSeparatorCest.php | 4 +- tests/unit/Tag/GetUrlServiceCest.php | 4 +- tests/unit/Tag/GetValueCest.php | 4 +- tests/unit/Tag/HasValueCest.php | 4 +- tests/unit/Tag/HiddenFieldCest.php | 2 +- tests/unit/Tag/ImageCest.php | 42 +++++++++---------- tests/unit/Tag/ImageInputCest.php | 18 ++++---- tests/unit/Tag/JavascriptIncludeCest.php | 12 +++--- tests/unit/Tag/LinkToCest.php | 34 +++++++-------- tests/unit/Tag/MonthFieldCest.php | 2 +- tests/unit/Tag/NumericFieldCest.php | 2 +- tests/unit/Tag/PasswordFieldCest.php | 2 +- tests/unit/Tag/PrependTitleCest.php | 12 +++--- tests/unit/Tag/RadioFieldCest.php | 4 +- tests/unit/Tag/RangeFieldCest.php | 2 +- tests/unit/Tag/RenderAttributesCest.php | 4 +- tests/unit/Tag/RenderTitleCest.php | 4 +- tests/unit/Tag/ResetInputCest.php | 8 ++-- tests/unit/Tag/SearchFieldCest.php | 2 +- tests/unit/Tag/Select/SelectFieldCest.php | 4 +- tests/unit/Tag/SelectCest.php | 2 +- tests/unit/Tag/SelectStaticCest.php | 36 ++++++++-------- tests/unit/Tag/SetAutoescapeCest.php | 4 +- tests/unit/Tag/SetDICest.php | 4 +- tests/unit/Tag/SetDefaultCest.php | 2 +- tests/unit/Tag/SetDefaultsCest.php | 4 +- tests/unit/Tag/SetDocTypeCest.php | 4 +- tests/unit/Tag/SetTitleCest.php | 4 +- tests/unit/Tag/SetTitleSeparatorCest.php | 4 +- tests/unit/Tag/StylesheetLinkCest.php | 28 ++++++------- tests/unit/Tag/SubmitButtonCest.php | 18 ++++---- tests/unit/Tag/TagHtmlCest.php | 12 +++--- tests/unit/Tag/TagHtmlCloseCest.php | 6 +-- tests/unit/Tag/TelFieldCest.php | 2 +- tests/unit/Tag/TextAreaCest.php | 20 ++++----- tests/unit/Tag/TextFieldCest.php | 2 +- tests/unit/Tag/TimeFieldCest.php | 2 +- tests/unit/Tag/UrlFieldCest.php | 2 +- tests/unit/Tag/WeekFieldCest.php | 2 +- tests/unit/Text/CamelizeCest.php | 4 +- tests/unit/Text/ConcatCest.php | 4 +- tests/unit/Text/DynamicCest.php | 4 +- tests/unit/Text/EndsWithCest.php | 12 +++--- tests/unit/Text/HumanizeCest.php | 4 +- tests/unit/Text/IncrementCest.php | 14 +++---- tests/unit/Text/LowerCest.php | 4 +- tests/unit/Text/RandomCest.php | 16 +++---- tests/unit/Text/ReduceSlashesCest.php | 4 +- tests/unit/Text/StartsWithCest.php | 12 +++--- tests/unit/Text/UncamelizeCest.php | 4 +- tests/unit/Text/UnderscoreCest.php | 4 +- tests/unit/Text/UpperCest.php | 4 +- .../Translate/Adapter/Csv/ArrayAccessCest.php | 4 +- .../Translate/Adapter/Csv/ConstructCest.php | 6 +-- .../unit/Translate/Adapter/Csv/ExistsCest.php | 4 +- .../Adapter/Csv/OffsetExistsCest.php | 4 +- .../Translate/Adapter/Csv/OffsetGetCest.php | 4 +- .../Translate/Adapter/Csv/OffsetSetCest.php | 4 +- .../Translate/Adapter/Csv/OffsetUnsetCest.php | 4 +- .../unit/Translate/Adapter/Csv/QueryCest.php | 2 +- tests/unit/Translate/Adapter/Csv/TCest.php | 2 +- .../Translate/Adapter/Csv/UnderscoreCest.php | 2 +- .../Adapter/Gettext/ConstructCest.php | 4 +- .../Translate/Adapter/Gettext/ExistsCest.php | 4 +- .../Adapter/Gettext/GetCategoryCest.php | 4 +- .../Gettext/GetSetDefaultDomainCest.php | 4 +- .../Adapter/Gettext/GetSetDirectoryCest.php | 4 +- .../Adapter/Gettext/GetSetLocaleCest.php | 4 +- .../Translate/Adapter/Gettext/NqueryCest.php | 4 +- .../Adapter/Gettext/OffsetExistsCest.php | 4 +- .../Adapter/Gettext/OffsetGetCest.php | 4 +- .../Adapter/Gettext/OffsetSetCest.php | 4 +- .../Adapter/Gettext/OffsetUnsetCest.php | 4 +- .../Translate/Adapter/Gettext/QueryCest.php | 4 +- .../Adapter/Gettext/ResetDomainCest.php | 4 +- .../Adapter/Gettext/SetDomainCest.php | 4 +- .../unit/Translate/Adapter/Gettext/TCest.php | 2 +- .../Adapter/Gettext/UnderscoreCest.php | 4 +- .../Adapter/NativeArray/ArrayAccessCest.php | 4 +- .../Adapter/NativeArray/ConstructCest.php | 6 +-- .../Adapter/NativeArray/ExistsCest.php | 4 +- .../Adapter/NativeArray/NotFoundCest.php | 10 ++--- .../Adapter/NativeArray/OffsetExistsCest.php | 4 +- .../Adapter/NativeArray/OffsetGetCest.php | 4 +- .../Adapter/NativeArray/OffsetSetCest.php | 4 +- .../Adapter/NativeArray/OffsetUnsetCest.php | 4 +- .../Adapter/NativeArray/QueryCest.php | 2 +- .../Translate/Adapter/NativeArray/TCest.php | 2 +- .../Adapter/NativeArray/UnderscoreCest.php | 2 +- .../ReplacePlaceholdersCest.php | 4 +- .../IndexedArray/InterpolatorCest.php | 4 +- .../IndexedArray/ReplacePlaceholdersCest.php | 4 +- .../InterpolatorFactory/NewInstanceCest.php | 6 +-- .../Translate/TranslateFactory/LoadCest.php | 2 +- .../TranslateFactory/NewInstanceCest.php | 4 +- tests/unit/Version/ConstantsCest.php | 4 +- tests/unit/Version/GetCest.php | 6 +-- tests/unit/Version/GetIdCest.php | 6 +-- tests/unit/Version/GetPartCest.php | 4 +- tests/unit/_bootstrap.php | 2 +- 4185 files changed, 8690 insertions(+), 8690 deletions(-) diff --git a/tests/_ci/generate-test-stubs.php b/tests/_ci/generate-test-stubs.php index faf5c944fc5..a59aa124694 100644 --- a/tests/_ci/generate-test-stubs.php +++ b/tests/_ci/generate-test-stubs.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -16,7 +16,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -31,7 +31,7 @@ class %m%Cest /** * %type% Tests %ns% :: %sm%() * - * @author Phalcon Team + * @author Phalcon Team * @since %d% */ public function %nn%%m%(%type%Tester $I) diff --git a/tests/_ci/nanobox/setup-dbs-nanobox.sh b/tests/_ci/nanobox/setup-dbs-nanobox.sh index 8ec8a9dedc7..99609211935 100755 --- a/tests/_ci/nanobox/setup-dbs-nanobox.sh +++ b/tests/_ci/nanobox/setup-dbs-nanobox.sh @@ -2,7 +2,7 @@ # # This file is part of the Phalcon Framework. # -# (c) Phalcon Team +# (c) Phalcon Team # # For the full copyright and license information, please view the LICENSE.txt # file that was distributed with this source code. diff --git a/tests/_data/fixtures/Acl/TestComponentAware.php b/tests/_data/fixtures/Acl/TestComponentAware.php index cb2060d04b8..a89e544f24c 100644 --- a/tests/_data/fixtures/Acl/TestComponentAware.php +++ b/tests/_data/fixtures/Acl/TestComponentAware.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Acl/TestRoleAware.php b/tests/_data/fixtures/Acl/TestRoleAware.php index 7135d5ea46e..c6a2de29191 100644 --- a/tests/_data/fixtures/Acl/TestRoleAware.php +++ b/tests/_data/fixtures/Acl/TestRoleAware.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Acl/TestRoleComponentAware.php b/tests/_data/fixtures/Acl/TestRoleComponentAware.php index 1d6a4592324..ab46c2b88e9 100644 --- a/tests/_data/fixtures/Acl/TestRoleComponentAware.php +++ b/tests/_data/fixtures/Acl/TestRoleComponentAware.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Annotations/TestClass.php b/tests/_data/fixtures/Annotations/TestClass.php index cae0abc887c..eb7d00c77e3 100644 --- a/tests/_data/fixtures/Annotations/TestClass.php +++ b/tests/_data/fixtures/Annotations/TestClass.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Annotations/TestClassNs.php b/tests/_data/fixtures/Annotations/TestClassNs.php index b0c2a5a85e6..f974d30b567 100644 --- a/tests/_data/fixtures/Annotations/TestClassNs.php +++ b/tests/_data/fixtures/Annotations/TestClassNs.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Annotations/TestInvalid.php b/tests/_data/fixtures/Annotations/TestInvalid.php index 956e8969aaf..3fd755c7883 100644 --- a/tests/_data/fixtures/Annotations/TestInvalid.php +++ b/tests/_data/fixtures/Annotations/TestInvalid.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Assets/CustomTag.php b/tests/_data/fixtures/Assets/CustomTag.php index 7bd6ee37337..84852c9217e 100644 --- a/tests/_data/fixtures/Assets/CustomTag.php +++ b/tests/_data/fixtures/Assets/CustomTag.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Assets/TrimFilter.php b/tests/_data/fixtures/Assets/TrimFilter.php index f4a77e42308..977f8c23cb4 100644 --- a/tests/_data/fixtures/Assets/TrimFilter.php +++ b/tests/_data/fixtures/Assets/TrimFilter.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -18,7 +18,7 @@ class TrimFilter implements FilterInterface /** * Trims the input * - * @author Nikolaos Dimopoulos + * @author Nikolaos Dimopoulos * @since 2014-10-05 */ public function filter(string $content): string diff --git a/tests/_data/fixtures/Assets/UppercaseFilter.php b/tests/_data/fixtures/Assets/UppercaseFilter.php index 7abda4dc909..3859a73a67c 100644 --- a/tests/_data/fixtures/Assets/UppercaseFilter.php +++ b/tests/_data/fixtures/Assets/UppercaseFilter.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -18,7 +18,7 @@ class UppercaseFilter implements FilterInterface /** * Converts the input to uppercase * - * @author Nikolaos Dimopoulos + * @author Nikolaos Dimopoulos * @since 2014-10-05 */ public function filter(string $content): string diff --git a/tests/_data/fixtures/Cache/Adapter/Libmemcached.php b/tests/_data/fixtures/Cache/Adapter/Libmemcached.php index 9dbe0cf0f46..199e0832f00 100644 --- a/tests/_data/fixtures/Cache/Adapter/Libmemcached.php +++ b/tests/_data/fixtures/Cache/Adapter/Libmemcached.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Db/Profiler.php b/tests/_data/fixtures/Db/Profiler.php index 159286f3351..3c88fc03025 100644 --- a/tests/_data/fixtures/Db/Profiler.php +++ b/tests/_data/fixtures/Db/Profiler.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Db/ProfilerListener.php b/tests/_data/fixtures/Db/ProfilerListener.php index 9113677fc2b..4e4a551442e 100644 --- a/tests/_data/fixtures/Db/ProfilerListener.php +++ b/tests/_data/fixtures/Db/ProfilerListener.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Di/InjectableComponent.php b/tests/_data/fixtures/Di/InjectableComponent.php index d3ddc1ada00..9e5ae02a791 100644 --- a/tests/_data/fixtures/Di/InjectableComponent.php +++ b/tests/_data/fixtures/Di/InjectableComponent.php @@ -4,15 +4,15 @@ * InjectableComponent class * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Phalcon Team + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Phalcon Team * * The contents of this file are subject to the New BSD License that is * bundled with this package in the file 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class InjectableComponent diff --git a/tests/_data/fixtures/Di/SimpleComponent.php b/tests/_data/fixtures/Di/SimpleComponent.php index 7b25cdf300a..51e4dd54810 100644 --- a/tests/_data/fixtures/Di/SimpleComponent.php +++ b/tests/_data/fixtures/Di/SimpleComponent.php @@ -4,15 +4,15 @@ * SimpleComponent class * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Phalcon Team + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Phalcon Team * * The contents of this file are subject to the New BSD License that is * bundled with this package in the file 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class SimpleComponent diff --git a/tests/_data/fixtures/Di/SomeComponent.php b/tests/_data/fixtures/Di/SomeComponent.php index b04bc057f2b..2c6ca6daa4b 100644 --- a/tests/_data/fixtures/Di/SomeComponent.php +++ b/tests/_data/fixtures/Di/SomeComponent.php @@ -4,15 +4,15 @@ * SomeComponent class * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Phalcon Team + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Phalcon Team * * The contents of this file are subject to the New BSD License that is * bundled with this package in the file 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class SomeComponent diff --git a/tests/_data/fixtures/Di/SomeServiceProvider.php b/tests/_data/fixtures/Di/SomeServiceProvider.php index 3694f7ed898..6478a14a8ec 100644 --- a/tests/_data/fixtures/Di/SomeServiceProvider.php +++ b/tests/_data/fixtures/Di/SomeServiceProvider.php @@ -3,14 +3,14 @@ +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2017 Phalcon Team (https://phalconphp.com) | + | Copyright (c) 2011-2017 Phalcon Team (https://phalcon.io) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file 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. | + | to license@phalcon.io so we can send you a copy immediately. | +------------------------------------------------------------------------+ */ diff --git a/tests/_data/fixtures/Events/ComponentX.php b/tests/_data/fixtures/Events/ComponentX.php index aa7b4ef62c0..23bf6cb1449 100644 --- a/tests/_data/fixtures/Events/ComponentX.php +++ b/tests/_data/fixtures/Events/ComponentX.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Events/ComponentY.php b/tests/_data/fixtures/Events/ComponentY.php index 92af677f0f4..ff9e0711b05 100644 --- a/tests/_data/fixtures/Events/ComponentY.php +++ b/tests/_data/fixtures/Events/ComponentY.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Filter/Sanitize/IPv4.php b/tests/_data/fixtures/Filter/Sanitize/IPv4.php index e09c2b4f48c..bf676e4ad37 100644 --- a/tests/_data/fixtures/Filter/Sanitize/IPv4.php +++ b/tests/_data/fixtures/Filter/Sanitize/IPv4.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Firewall/BindingRole.php b/tests/_data/fixtures/Firewall/BindingRole.php index 05cbc3da787..a57c252f3f8 100644 --- a/tests/_data/fixtures/Firewall/BindingRole.php +++ b/tests/_data/fixtures/Firewall/BindingRole.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Firewall/RoleObject.php b/tests/_data/fixtures/Firewall/RoleObject.php index 5a7d0b4ad36..6afae77e471 100644 --- a/tests/_data/fixtures/Firewall/RoleObject.php +++ b/tests/_data/fixtures/Firewall/RoleObject.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Forms/ContactFormPublicProperties.php b/tests/_data/fixtures/Forms/ContactFormPublicProperties.php index 474b36d4aa9..121d9f11a3d 100644 --- a/tests/_data/fixtures/Forms/ContactFormPublicProperties.php +++ b/tests/_data/fixtures/Forms/ContactFormPublicProperties.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Forms/ContactFormSettersGetters.php b/tests/_data/fixtures/Forms/ContactFormSettersGetters.php index ca5b3898b5a..2ff83c0c5e2 100644 --- a/tests/_data/fixtures/Forms/ContactFormSettersGetters.php +++ b/tests/_data/fixtures/Forms/ContactFormSettersGetters.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Forms/ValidationForm.php b/tests/_data/fixtures/Forms/ValidationForm.php index 9ebc087568f..c098b83cafa 100644 --- a/tests/_data/fixtures/Forms/ValidationForm.php +++ b/tests/_data/fixtures/Forms/ValidationForm.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Helpers/TagHelper.php b/tests/_data/fixtures/Helpers/TagHelper.php index 46e3c2fc97c..16f9f479635 100644 --- a/tests/_data/fixtures/Helpers/TagHelper.php +++ b/tests/_data/fixtures/Helpers/TagHelper.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -28,7 +28,7 @@ class TagHelper extends TagSetup /** * Tests Phalcon\Tag :: weekField() - string as a parameter * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagFieldStringParameter(UnitTester $I) @@ -50,7 +50,7 @@ public function tagFieldStringParameter(UnitTester $I) /** * Tests Phalcon\Tag :: weekField() - array as a parameter * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagFieldArrayParameter(UnitTester $I) @@ -76,7 +76,7 @@ public function tagFieldArrayParameter(UnitTester $I) /** * Tests Phalcon\Tag :: weekField() - array as a parameters and id in it * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagFieldArrayParameterWithId(UnitTester $I) @@ -105,7 +105,7 @@ public function tagFieldArrayParameterWithId(UnitTester $I) /** * Tests Phalcon\Tag :: weekField() - name and no id in parameter * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagFieldArrayParameterWithNameNoId(UnitTester $I) @@ -133,7 +133,7 @@ public function tagFieldArrayParameterWithNameNoId(UnitTester $I) /** * Tests Phalcon\Tag :: weekField() - setDefault * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagFieldWithSetDefault(UnitTester $I) @@ -162,7 +162,7 @@ public function tagFieldWithSetDefault(UnitTester $I) /** * Tests Phalcon\Tag :: weekField() - displayTo * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagFieldWithDisplayTo(UnitTester $I) @@ -191,7 +191,7 @@ public function tagFieldWithDisplayTo(UnitTester $I) /** * Tests Phalcon\Tag :: weekField() - setDefault and element not present * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagFieldWithSetDefaultElementNotPresent(UnitTester $I) @@ -220,7 +220,7 @@ public function tagFieldWithSetDefaultElementNotPresent(UnitTester $I) /** * Tests Phalcon\Tag :: weekField() - displayTo and element not present * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagFieldWithDisplayToElementNotPresent(UnitTester $I) diff --git a/tests/_data/fixtures/Helpers/TagSetup.php b/tests/_data/fixtures/Helpers/TagSetup.php index 8f61400e4df..510c29f6d69 100644 --- a/tests/_data/fixtures/Helpers/TagSetup.php +++ b/tests/_data/fixtures/Helpers/TagSetup.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -37,7 +37,7 @@ public function _before(UnitTester $I) /** * Converts a doctype code to a string output * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-04 * * @return string @@ -144,7 +144,7 @@ protected function runDoctypeTest(UnitTester $I, int $doctype) /** * Converts a doctype code to a string output * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-04 * * @return string diff --git a/tests/_data/fixtures/Helpers/TranslateCsvHelper.php b/tests/_data/fixtures/Helpers/TranslateCsvHelper.php index 981aba06d37..3e36a6225b5 100644 --- a/tests/_data/fixtures/Helpers/TranslateCsvHelper.php +++ b/tests/_data/fixtures/Helpers/TranslateCsvHelper.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -62,7 +62,7 @@ public function translateAdapterCsvQuery(UnitTester $I, Example $data) * * @dataProvider getQueryProvider * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-12 */ public function translateAdapterCsvVariableSubstitutionNoVariables(UnitTester $I, Example $data) @@ -100,7 +100,7 @@ public function translateAdapterCsvVariableSubstitutionNoVariables(UnitTester $I * * @dataProvider getQueryOneVariable * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-12 */ public function translateAdapterCsvVariableSubstitutionOneVariable(UnitTester $I, Example $data) @@ -131,7 +131,7 @@ public function translateAdapterCsvVariableSubstitutionOneVariable(UnitTester $I * * @dataProvider getQueryTwoVariables * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-12 */ public function translateAdapterCsvVariableSubstitutionTwoVariable(UnitTester $I, Example $data) @@ -166,7 +166,7 @@ public function translateAdapterCsvVariableSubstitutionTwoVariable(UnitTester $I /** * Tests Phalcon\Translate\Adapter\Csv :: query() - array access and UTF8 strings * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-12 */ public function testWithArrayAccessAndUTF8Strings(UnitTester $I) diff --git a/tests/_data/fixtures/Helpers/TranslateGettextHelper.php b/tests/_data/fixtures/Helpers/TranslateGettextHelper.php index 4d84fecc227..cf693ba294c 100644 --- a/tests/_data/fixtures/Helpers/TranslateGettextHelper.php +++ b/tests/_data/fixtures/Helpers/TranslateGettextHelper.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -62,7 +62,7 @@ public function translateAdapterGettextQuery(UnitTester $I, Example $data) * * @dataProvider getQueryProvider * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-12 */ public function translateAdapterGettextVariableSubstitutionNoVariables(UnitTester $I, Example $data) @@ -100,7 +100,7 @@ public function translateAdapterGettextVariableSubstitutionNoVariables(UnitTeste * * @dataProvider getQueryOneVariable * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-12 */ public function translateAdapterGettextVariableSubstitutionOneVariable(UnitTester $I, Example $data) @@ -131,7 +131,7 @@ public function translateAdapterGettextVariableSubstitutionOneVariable(UnitTeste * * @dataProvider getQueryTwoVariables * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-12 */ public function translateAdapterGettextVariableSubstitutionTwoVariable(UnitTester $I, Example $data) @@ -166,7 +166,7 @@ public function translateAdapterGettextVariableSubstitutionTwoVariable(UnitTeste /** * Tests Phalcon\Translate\Adapter\Gettext :: query() - array access and UTF8 strings * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-12 */ public function testWithArrayAccessAndUTF8Strings(UnitTester $I) diff --git a/tests/_data/fixtures/Helpers/TranslateNativeArrayHelper.php b/tests/_data/fixtures/Helpers/TranslateNativeArrayHelper.php index af597745599..c39fa3bb266 100644 --- a/tests/_data/fixtures/Helpers/TranslateNativeArrayHelper.php +++ b/tests/_data/fixtures/Helpers/TranslateNativeArrayHelper.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -28,7 +28,7 @@ class TranslateNativeArrayHelper * * @dataProvider getQueryProvider * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function translateAdapterNativearrayQuery(UnitTester $I, Example $data) @@ -64,7 +64,7 @@ public function translateAdapterNativearrayQuery(UnitTester $I, Example $data) * * @dataProvider getQueryProvider * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-12 */ public function translateAdapterNativearrayVariableSubstitutionNoVariables(UnitTester $I, Example $data) @@ -104,7 +104,7 @@ public function translateAdapterNativearrayVariableSubstitutionNoVariables(UnitT * * @dataProvider getQueryOneVariable * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-12 */ public function translateAdapterNativearrayVariableSubstitutionOneVariable(UnitTester $I, Example $data) @@ -137,7 +137,7 @@ public function translateAdapterNativearrayVariableSubstitutionOneVariable(UnitT * * @dataProvider getQueryTwoVariables * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-12 */ public function translateAdapterNativearrayVariableSubstitutionTwoVariable(UnitTester $I, Example $data) @@ -174,7 +174,7 @@ public function translateAdapterNativearrayVariableSubstitutionTwoVariable(UnitT /** * Tests Phalcon\Translate\Adapter\NativeArray :: query() - array access and UTF8 strings * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-12 */ public function testWithArrayAccessAndUTF8Strings(UnitTester $I) diff --git a/tests/_data/fixtures/Http/PhpStream.php b/tests/_data/fixtures/Http/PhpStream.php index a02c09e4a59..b3e48310eff 100644 --- a/tests/_data/fixtures/Http/PhpStream.php +++ b/tests/_data/fixtures/Http/PhpStream.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Http/Server/MiddlewareFixture.php b/tests/_data/fixtures/Http/Server/MiddlewareFixture.php index bc2d1cd0f4f..4dce660822d 100644 --- a/tests/_data/fixtures/Http/Server/MiddlewareFixture.php +++ b/tests/_data/fixtures/Http/Server/MiddlewareFixture.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Http/Server/RequestHandlerFixture.php b/tests/_data/fixtures/Http/Server/RequestHandlerFixture.php index b99b8950efe..a1a42120247 100644 --- a/tests/_data/fixtures/Http/Server/RequestHandlerFixture.php +++ b/tests/_data/fixtures/Http/Server/RequestHandlerFixture.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Listener/CustomAuthorizationListener.php b/tests/_data/fixtures/Listener/CustomAuthorizationListener.php index 0b01bedaaf8..2c3e08c2ec2 100644 --- a/tests/_data/fixtures/Listener/CustomAuthorizationListener.php +++ b/tests/_data/fixtures/Listener/CustomAuthorizationListener.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Listener/FirstListener.php b/tests/_data/fixtures/Listener/FirstListener.php index f4bfa370525..12c18544c4a 100644 --- a/tests/_data/fixtures/Listener/FirstListener.php +++ b/tests/_data/fixtures/Listener/FirstListener.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Listener/NegotiateAuthorizationListener.php b/tests/_data/fixtures/Listener/NegotiateAuthorizationListener.php index f4e1711c99b..3b8e42c824c 100644 --- a/tests/_data/fixtures/Listener/NegotiateAuthorizationListener.php +++ b/tests/_data/fixtures/Listener/NegotiateAuthorizationListener.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Listener/SecondListener.php b/tests/_data/fixtures/Listener/SecondListener.php index 517e09f2267..4b27160b607 100644 --- a/tests/_data/fixtures/Listener/SecondListener.php +++ b/tests/_data/fixtures/Listener/SecondListener.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Listener/ThirdListener.php b/tests/_data/fixtures/Listener/ThirdListener.php index e1d80932984..4e78d3377a3 100644 --- a/tests/_data/fixtures/Listener/ThirdListener.php +++ b/tests/_data/fixtures/Listener/ThirdListener.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Listener/ViewCompileListener.php b/tests/_data/fixtures/Listener/ViewCompileListener.php index 584b792ee43..78ea9383aa8 100644 --- a/tests/_data/fixtures/Listener/ViewCompileListener.php +++ b/tests/_data/fixtures/Listener/ViewCompileListener.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Micro/HttpMethodHandler.php b/tests/_data/fixtures/Micro/HttpMethodHandler.php index 5e188732a1b..ad9aa7631a4 100644 --- a/tests/_data/fixtures/Micro/HttpMethodHandler.php +++ b/tests/_data/fixtures/Micro/HttpMethodHandler.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Micro/MyMiddleware.php b/tests/_data/fixtures/Micro/MyMiddleware.php index eddd5d7ad2d..b326b3d8c97 100644 --- a/tests/_data/fixtures/Micro/MyMiddleware.php +++ b/tests/_data/fixtures/Micro/MyMiddleware.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Micro/MyMiddlewareStop.php b/tests/_data/fixtures/Micro/MyMiddlewareStop.php index e196e784431..5c9a05e6339 100644 --- a/tests/_data/fixtures/Micro/MyMiddlewareStop.php +++ b/tests/_data/fixtures/Micro/MyMiddlewareStop.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Micro/RestHandler.php b/tests/_data/fixtures/Micro/RestHandler.php index 9796abac96a..d85cbe41d7b 100644 --- a/tests/_data/fixtures/Micro/RestHandler.php +++ b/tests/_data/fixtures/Micro/RestHandler.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Mvc/View/AfterRenderListener.php b/tests/_data/fixtures/Mvc/View/AfterRenderListener.php index df18460be90..4389d9fe065 100644 --- a/tests/_data/fixtures/Mvc/View/AfterRenderListener.php +++ b/tests/_data/fixtures/Mvc/View/AfterRenderListener.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Mvc/View/Engine/Mustache.php b/tests/_data/fixtures/Mvc/View/Engine/Mustache.php index 8c339fe6f4b..74f0f60c0c7 100644 --- a/tests/_data/fixtures/Mvc/View/Engine/Mustache.php +++ b/tests/_data/fixtures/Mvc/View/Engine/Mustache.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Mvc/View/Engine/Twig.php b/tests/_data/fixtures/Mvc/View/Engine/Twig.php index 8bbac27f51b..774eae93acf 100644 --- a/tests/_data/fixtures/Mvc/View/Engine/Twig.php +++ b/tests/_data/fixtures/Mvc/View/Engine/Twig.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Mvc/View/IteratorObject.php b/tests/_data/fixtures/Mvc/View/IteratorObject.php index 0f7cd32eb4c..cfb0c5c55b2 100644 --- a/tests/_data/fixtures/Mvc/View/IteratorObject.php +++ b/tests/_data/fixtures/Mvc/View/IteratorObject.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Service/HelloService.php b/tests/_data/fixtures/Service/HelloService.php index 336bf4f44ad..472bb558f55 100644 --- a/tests/_data/fixtures/Service/HelloService.php +++ b/tests/_data/fixtures/Service/HelloService.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Storage/Adapter/Libmemcached.php b/tests/_data/fixtures/Storage/Adapter/Libmemcached.php index 99e81c1196e..dae318a6e36 100644 --- a/tests/_data/fixtures/Storage/Adapter/Libmemcached.php +++ b/tests/_data/fixtures/Storage/Adapter/Libmemcached.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Traits/ApcuTrait.php b/tests/_data/fixtures/Traits/ApcuTrait.php index dcf796acd3b..ff5c83ed388 100644 --- a/tests/_data/fixtures/Traits/ApcuTrait.php +++ b/tests/_data/fixtures/Traits/ApcuTrait.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Traits/Cache/FileTrait.php b/tests/_data/fixtures/Traits/Cache/FileTrait.php index 657beff823f..bca75a9f0c9 100644 --- a/tests/_data/fixtures/Traits/Cache/FileTrait.php +++ b/tests/_data/fixtures/Traits/Cache/FileTrait.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Traits/Cache/LibmemcachedTrait.php b/tests/_data/fixtures/Traits/Cache/LibmemcachedTrait.php index 141c81d6a04..79b1991bfec 100644 --- a/tests/_data/fixtures/Traits/Cache/LibmemcachedTrait.php +++ b/tests/_data/fixtures/Traits/Cache/LibmemcachedTrait.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Traits/CollectionTrait.php b/tests/_data/fixtures/Traits/CollectionTrait.php index d732811cd75..541c5010e2e 100644 --- a/tests/_data/fixtures/Traits/CollectionTrait.php +++ b/tests/_data/fixtures/Traits/CollectionTrait.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Traits/ConfigTrait.php b/tests/_data/fixtures/Traits/ConfigTrait.php index 2432019668b..9ede65879a4 100644 --- a/tests/_data/fixtures/Traits/ConfigTrait.php +++ b/tests/_data/fixtures/Traits/ConfigTrait.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -69,7 +69,7 @@ trait ConfigTrait /** * Tests Phalcon\Config\Adapter\* :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ private function checkConstruct(UnitTester $I, string $adapter = '') @@ -105,7 +105,7 @@ private function getMessage(string $adapter = ''): string * * @return Config|Ini|Json|Php|Yaml * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ private function getConfig(string $adapter = '') @@ -199,7 +199,7 @@ private function checkCount(UnitTester $I, string $adapter = '') /** * Tests Phalcon\Config\Adapter\* :: get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ private function checkGet(UnitTester $I, string $adapter = '') @@ -222,7 +222,7 @@ private function checkGet(UnitTester $I, string $adapter = '') /** * Tests Phalcon\Config\Adapter\* :: getPathDelimiter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ private function checkGetPathDelimiter(UnitTester $I, string $adapter = '') @@ -259,7 +259,7 @@ private function checkGetPathDelimiter(UnitTester $I, string $adapter = '') /** * Tests Phalcon\Config\Adapter\* :: merge() - exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-19 */ private function checkMergeException(UnitTester $I, string $adapter = '') @@ -285,7 +285,7 @@ function () use ($config) { /** * Tests Phalcon\Config\Adapter\* :: offsetExists() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ private function checkOffsetExists(UnitTester $I, string $adapter = '') @@ -307,7 +307,7 @@ private function checkOffsetExists(UnitTester $I, string $adapter = '') /** * Tests Phalcon\Config\Adapter\* :: offsetGet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ private function checkOffsetGet(UnitTester $I, string $adapter = '') @@ -330,7 +330,7 @@ private function checkOffsetGet(UnitTester $I, string $adapter = '') /** * Tests Phalcon\Config\Adapter\* :: offsetSet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ private function checkOffsetSet(UnitTester $I, string $adapter = '') @@ -355,7 +355,7 @@ private function checkOffsetSet(UnitTester $I, string $adapter = '') /** * Tests Phalcon\Config\Adapter\* :: offsetUnset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ private function checkOffsetUnset(UnitTester $I, string $adapter = '') @@ -412,7 +412,7 @@ private function checkPath(UnitTester $I, string $adapter = '') /** * Tests Phalcon\Config\Adapter\* :: path() - default * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ private function checkPathDefault(UnitTester $I, string $adapter = '') @@ -435,7 +435,7 @@ private function checkPathDefault(UnitTester $I, string $adapter = '') /** * Tests Phalcon\Config\Adapter\* :: setPathDelimiter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ private function checkSetPathDelimiter(UnitTester $I, string $adapter = '') @@ -474,7 +474,7 @@ private function checkSetPathDelimiter(UnitTester $I, string $adapter = '') /** * Tests Phalcon\Config\Adapter\* :: toArray() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ private function checkToArray(UnitTester $I, string $adapter = '') diff --git a/tests/_data/fixtures/Traits/CookieTrait.php b/tests/_data/fixtures/Traits/CookieTrait.php index 084713205cf..b7731acc77d 100644 --- a/tests/_data/fixtures/Traits/CookieTrait.php +++ b/tests/_data/fixtures/Traits/CookieTrait.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Traits/CryptTrait.php b/tests/_data/fixtures/Traits/CryptTrait.php index 27aef9ea500..c7305fbd2bd 100644 --- a/tests/_data/fixtures/Traits/CryptTrait.php +++ b/tests/_data/fixtures/Traits/CryptTrait.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Traits/Db/MysqlTrait.php b/tests/_data/fixtures/Traits/Db/MysqlTrait.php index 114abdcc573..e0fe598ec07 100644 --- a/tests/_data/fixtures/Traits/Db/MysqlTrait.php +++ b/tests/_data/fixtures/Traits/Db/MysqlTrait.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ trait MysqlTrait protected $connection = null; /** - * @author Phalcon Team + * @author Phalcon Team * @since 2018-10-26 */ public function _before() @@ -52,7 +52,7 @@ abstract protected function setDiMysql(); /** * Returns the database schema; MySql does not have a schema * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-10-26 */ protected function getSchemaName(): string @@ -63,7 +63,7 @@ protected function getSchemaName(): string /** * Return the array of expected columns * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-10-26 */ protected function getExpectedColumns(): array @@ -83,7 +83,7 @@ protected function getExpectedColumns(): array /** * Return the array of columns * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-10-26 */ protected function getColumns(): array @@ -642,7 +642,7 @@ protected function getColumns(): array /** * Return the array of expected indexes * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-10-26 */ protected function getExpectedIndexes(): array @@ -658,7 +658,7 @@ protected function getExpectedIndexes(): array /** * Return the array of expected references * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-10-26 */ protected function getExpectedReferences(): array @@ -692,7 +692,7 @@ protected function getExpectedReferences(): array /** * Returns the database name * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-10-26 */ protected function getDatabaseName(): string diff --git a/tests/_data/fixtures/Traits/Db/PostgresqlTrait.php b/tests/_data/fixtures/Traits/Db/PostgresqlTrait.php index bcdd93f11d3..ef4feea1c9a 100644 --- a/tests/_data/fixtures/Traits/Db/PostgresqlTrait.php +++ b/tests/_data/fixtures/Traits/Db/PostgresqlTrait.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ trait PostgresqlTrait protected $connection = null; /** - * @author Phalcon Team + * @author Phalcon Team * @since 2018-10-26 */ public function _before() @@ -51,7 +51,7 @@ abstract protected function setDiPostgresql(); /** * Returns the database schema; * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-10-26 */ protected function getSchemaName(): string @@ -62,7 +62,7 @@ protected function getSchemaName(): string /** * Return the array of expected columns * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-10-26 */ protected function getExpectedColumns(): array @@ -82,7 +82,7 @@ protected function getExpectedColumns(): array /** * Return the array of columns * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-10-26 */ protected function getColumns(): array @@ -641,7 +641,7 @@ protected function getColumns(): array /** * Return the array of expected indexes * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-10-26 */ protected function getExpectedIndexes(): array @@ -657,7 +657,7 @@ protected function getExpectedIndexes(): array /** * Return the array of expected references * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-10-26 */ protected function getExpectedReferences(): array @@ -691,7 +691,7 @@ protected function getExpectedReferences(): array /** * Returns the database name * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-10-26 */ protected function getDatabaseName(): string diff --git a/tests/_data/fixtures/Traits/DiTrait.php b/tests/_data/fixtures/Traits/DiTrait.php index 5e2cbf830b5..6a015d2d8d4 100644 --- a/tests/_data/fixtures/Traits/DiTrait.php +++ b/tests/_data/fixtures/Traits/DiTrait.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Traits/DialectTrait.php b/tests/_data/fixtures/Traits/DialectTrait.php index 0d198819ed7..61f3e258e14 100644 --- a/tests/_data/fixtures/Traits/DialectTrait.php +++ b/tests/_data/fixtures/Traits/DialectTrait.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Traits/FactoryTrait.php b/tests/_data/fixtures/Traits/FactoryTrait.php index 0f21ccabac8..4d09623c24c 100644 --- a/tests/_data/fixtures/Traits/FactoryTrait.php +++ b/tests/_data/fixtures/Traits/FactoryTrait.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Traits/FirewallTrait.php b/tests/_data/fixtures/Traits/FirewallTrait.php index 9cd7f52eba2..7287ce51517 100644 --- a/tests/_data/fixtures/Traits/FirewallTrait.php +++ b/tests/_data/fixtures/Traits/FirewallTrait.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Traits/GdTrait.php b/tests/_data/fixtures/Traits/GdTrait.php index 5a917d8c6e6..4fce64ef91e 100644 --- a/tests/_data/fixtures/Traits/GdTrait.php +++ b/tests/_data/fixtures/Traits/GdTrait.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Traits/ImagickTrait.php b/tests/_data/fixtures/Traits/ImagickTrait.php index e218b7a54a8..0df90f062f1 100644 --- a/tests/_data/fixtures/Traits/ImagickTrait.php +++ b/tests/_data/fixtures/Traits/ImagickTrait.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Traits/LibmemcachedTrait.php b/tests/_data/fixtures/Traits/LibmemcachedTrait.php index b48e5f8d934..b344f4e0d57 100644 --- a/tests/_data/fixtures/Traits/LibmemcachedTrait.php +++ b/tests/_data/fixtures/Traits/LibmemcachedTrait.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Traits/LoaderTrait.php b/tests/_data/fixtures/Traits/LoaderTrait.php index 8f2c7855d02..7b58ceb87d7 100644 --- a/tests/_data/fixtures/Traits/LoaderTrait.php +++ b/tests/_data/fixtures/Traits/LoaderTrait.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Traits/LoggerTrait.php b/tests/_data/fixtures/Traits/LoggerTrait.php index 4836f04870b..a263b601158 100644 --- a/tests/_data/fixtures/Traits/LoggerTrait.php +++ b/tests/_data/fixtures/Traits/LoggerTrait.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Traits/OptionsTrait.php b/tests/_data/fixtures/Traits/OptionsTrait.php index 273d3c792cc..2cffc7c3aee 100644 --- a/tests/_data/fixtures/Traits/OptionsTrait.php +++ b/tests/_data/fixtures/Traits/OptionsTrait.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Traits/RedisTrait.php b/tests/_data/fixtures/Traits/RedisTrait.php index 2adfc94e103..440c9bbf52d 100644 --- a/tests/_data/fixtures/Traits/RedisTrait.php +++ b/tests/_data/fixtures/Traits/RedisTrait.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ trait RedisTrait public function _before(UnitTester $I) { $I->checkExtensionIsLoaded('redis'); - + $this->options = $this->getOptions(); } diff --git a/tests/_data/fixtures/Traits/RouterTrait.php b/tests/_data/fixtures/Traits/RouterTrait.php index 2cf325e4698..0e74e424178 100644 --- a/tests/_data/fixtures/Traits/RouterTrait.php +++ b/tests/_data/fixtures/Traits/RouterTrait.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Traits/SessionBagTrait.php b/tests/_data/fixtures/Traits/SessionBagTrait.php index f65afd77005..0a58e74401d 100644 --- a/tests/_data/fixtures/Traits/SessionBagTrait.php +++ b/tests/_data/fixtures/Traits/SessionBagTrait.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Traits/SessionTrait.php b/tests/_data/fixtures/Traits/SessionTrait.php index 30bfa03618c..a9fff058031 100644 --- a/tests/_data/fixtures/Traits/SessionTrait.php +++ b/tests/_data/fixtures/Traits/SessionTrait.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Traits/TagHelperTrait.php b/tests/_data/fixtures/Traits/TagHelperTrait.php index 5b5287f2586..9867a7d58be 100644 --- a/tests/_data/fixtures/Traits/TagHelperTrait.php +++ b/tests/_data/fixtures/Traits/TagHelperTrait.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ trait TagHelperTrait /** * Tests Phalcon\Tag :: input*() * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagField(UnitTester $I) @@ -65,7 +65,7 @@ abstract protected function testFieldParameter( /** * Tests Phalcon\Tag :: input*() - parameters and id in it * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagFieldParameterWithId(UnitTester $I) @@ -100,7 +100,7 @@ public function tagFieldParameterWithId(UnitTester $I) /** * Tests Phalcon\Tag :: input*() - setAttribute * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagFieldWithSetAttribute(UnitTester $I) @@ -137,7 +137,7 @@ public function tagFieldWithSetAttribute(UnitTester $I) /** * Tests Phalcon\Tag :: input*() - setAttribute and element not present * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagFieldWithSetAttributeElementNotPresent(UnitTester $I) diff --git a/tests/_data/fixtures/Traits/TagSetupTrait.php b/tests/_data/fixtures/Traits/TagSetupTrait.php index a2bacc310c1..e60cfee313a 100644 --- a/tests/_data/fixtures/Traits/TagSetupTrait.php +++ b/tests/_data/fixtures/Traits/TagSetupTrait.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ trait TagSetupTrait /** * Constructor * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-10-26 */ public function _before(UnitTester $I) diff --git a/tests/_data/fixtures/Traits/TranslateArrayTrait.php b/tests/_data/fixtures/Traits/TranslateArrayTrait.php index 7d5d5e187a4..600d67ad126 100644 --- a/tests/_data/fixtures/Traits/TranslateArrayTrait.php +++ b/tests/_data/fixtures/Traits/TranslateArrayTrait.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Traits/TranslateCsvTrait.php b/tests/_data/fixtures/Traits/TranslateCsvTrait.php index 2d7b4d7144a..a5da2e20db5 100644 --- a/tests/_data/fixtures/Traits/TranslateCsvTrait.php +++ b/tests/_data/fixtures/Traits/TranslateCsvTrait.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Traits/TranslateGettextTrait.php b/tests/_data/fixtures/Traits/TranslateGettextTrait.php index 66f4d7a3103..ab52dbefc92 100644 --- a/tests/_data/fixtures/Traits/TranslateGettextTrait.php +++ b/tests/_data/fixtures/Traits/TranslateGettextTrait.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Traits/ValidationTrait.php b/tests/_data/fixtures/Traits/ValidationTrait.php index ba6a98a1de5..f0639485c36 100644 --- a/tests/_data/fixtures/Traits/ValidationTrait.php +++ b/tests/_data/fixtures/Traits/ValidationTrait.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ trait ValidationTrait /** * Tests Phalcon\Validation\Validator\* :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ private function checkConstruct(IntegrationTester $I, ValidatorInterface $validator) @@ -51,7 +51,7 @@ private function getMessage(ValidatorInterface $validator, string $method): stri /** * Tests Phalcon\Validation\Validator\* :: getOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ private function checkGetOption(IntegrationTester $I, ValidatorInterface $validator) @@ -74,7 +74,7 @@ private function checkGetOption(IntegrationTester $I, ValidatorInterface $valida /** * Tests Phalcon\Validation\Validator\* :: hasOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ private function checkHasOption(IntegrationTester $I, ValidatorInterface $validator) @@ -94,7 +94,7 @@ private function checkHasOption(IntegrationTester $I, ValidatorInterface $valida /** * Tests Phalcon\Validation\Validator\* :: setOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ private function checkSetOption(IntegrationTester $I, ValidatorInterface $validator) diff --git a/tests/_data/fixtures/Traits/VersionTrait.php b/tests/_data/fixtures/Traits/VersionTrait.php index fa24f2609de..eee26c5277d 100644 --- a/tests/_data/fixtures/Traits/VersionTrait.php +++ b/tests/_data/fixtures/Traits/VersionTrait.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -17,7 +17,7 @@ trait VersionTrait /** * Translates a number to a special version string (alpha, beta, RC) * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ protected function numberToSpecial(string $number): string @@ -45,7 +45,7 @@ protected function numberToSpecial(string $number): string /** * Translates a special version (alpha, beta, RC) to a version number * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ protected function specialToNumber(string $input): string diff --git a/tests/_data/fixtures/Traits/ViewTrait.php b/tests/_data/fixtures/Traits/ViewTrait.php index 92617d98d02..1f0a6b80812 100644 --- a/tests/_data/fixtures/Traits/ViewTrait.php +++ b/tests/_data/fixtures/Traits/ViewTrait.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/Translate/Adapter/NativeAdapter.php b/tests/_data/fixtures/Translate/Adapter/NativeAdapter.php index 33fdfe9b451..b8616cdf5f6 100644 --- a/tests/_data/fixtures/Translate/Adapter/NativeAdapter.php +++ b/tests/_data/fixtures/Translate/Adapter/NativeAdapter.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/controllers/AboutController.php b/tests/_data/fixtures/controllers/AboutController.php index 1b61a9a1188..b188c663078 100644 --- a/tests/_data/fixtures/controllers/AboutController.php +++ b/tests/_data/fixtures/controllers/AboutController.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/controllers/Firewall/FourController.php b/tests/_data/fixtures/controllers/Firewall/FourController.php index 7c773e5fca3..ae1576200c3 100644 --- a/tests/_data/fixtures/controllers/Firewall/FourController.php +++ b/tests/_data/fixtures/controllers/Firewall/FourController.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/controllers/Firewall/OneController.php b/tests/_data/fixtures/controllers/Firewall/OneController.php index e14d0fe09c2..8b23544739f 100644 --- a/tests/_data/fixtures/controllers/Firewall/OneController.php +++ b/tests/_data/fixtures/controllers/Firewall/OneController.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/controllers/Firewall/ThreeController.php b/tests/_data/fixtures/controllers/Firewall/ThreeController.php index 3de53c150c8..4b83b9732e1 100644 --- a/tests/_data/fixtures/controllers/Firewall/ThreeController.php +++ b/tests/_data/fixtures/controllers/Firewall/ThreeController.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/controllers/Firewall/TwoController.php b/tests/_data/fixtures/controllers/Firewall/TwoController.php index 4b297555281..155c75c846b 100644 --- a/tests/_data/fixtures/controllers/Firewall/TwoController.php +++ b/tests/_data/fixtures/controllers/Firewall/TwoController.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/controllers/MainController.php b/tests/_data/fixtures/controllers/MainController.php index 1979c54bf7f..71ad284cf04 100644 --- a/tests/_data/fixtures/controllers/MainController.php +++ b/tests/_data/fixtures/controllers/MainController.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/controllers/Micro/Collections/PersonasController.php b/tests/_data/fixtures/controllers/Micro/Collections/PersonasController.php index 73997904977..a1536db7678 100644 --- a/tests/_data/fixtures/controllers/Micro/Collections/PersonasController.php +++ b/tests/_data/fixtures/controllers/Micro/Collections/PersonasController.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/controllers/Micro/Collections/PersonasLazyController.php b/tests/_data/fixtures/controllers/Micro/Collections/PersonasLazyController.php index 0df8d55af5d..421f4812fdd 100644 --- a/tests/_data/fixtures/controllers/Micro/Collections/PersonasLazyController.php +++ b/tests/_data/fixtures/controllers/Micro/Collections/PersonasLazyController.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/controllers/MicroController.php b/tests/_data/fixtures/controllers/MicroController.php index ad4b19ce984..39e634f4996 100644 --- a/tests/_data/fixtures/controllers/MicroController.php +++ b/tests/_data/fixtures/controllers/MicroController.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/controllers/NamespacedAnnotationController.php b/tests/_data/fixtures/controllers/NamespacedAnnotationController.php index 3d76b0aefbc..defcebeb9fd 100644 --- a/tests/_data/fixtures/controllers/NamespacedAnnotationController.php +++ b/tests/_data/fixtures/controllers/NamespacedAnnotationController.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/controllers/ProductsController.php b/tests/_data/fixtures/controllers/ProductsController.php index 3f1c21afba7..9c4ecb2ee71 100644 --- a/tests/_data/fixtures/controllers/ProductsController.php +++ b/tests/_data/fixtures/controllers/ProductsController.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/controllers/RobotsController.php b/tests/_data/fixtures/controllers/RobotsController.php index f5475227bb6..b009c8e0975 100644 --- a/tests/_data/fixtures/controllers/RobotsController.php +++ b/tests/_data/fixtures/controllers/RobotsController.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/controllers/ViewRequestController.php b/tests/_data/fixtures/controllers/ViewRequestController.php index 78b41676470..9f9534c867c 100644 --- a/tests/_data/fixtures/controllers/ViewRequestController.php +++ b/tests/_data/fixtures/controllers/ViewRequestController.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/metadata/robots.php b/tests/_data/fixtures/metadata/robots.php index 31afda2f72d..3188f3dd08c 100644 --- a/tests/_data/fixtures/metadata/robots.php +++ b/tests/_data/fixtures/metadata/robots.php @@ -3,15 +3,15 @@ * Fixture for Robots model * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Nikolaos Dimopoulos + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Nikolaos Dimopoulos * * The contents of this file are subject to the New BSD License that is * bundled with this package in the file 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ return [ diff --git a/tests/_data/fixtures/models/Abonnes.php b/tests/_data/fixtures/models/Abonnes.php index 0dc5d71b655..0670962cc5d 100644 --- a/tests/_data/fixtures/models/Abonnes.php +++ b/tests/_data/fixtures/models/Abonnes.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/AlbumORama/Albums.php b/tests/_data/fixtures/models/AlbumORama/Albums.php index 351f14f8330..7925dbcafbd 100644 --- a/tests/_data/fixtures/models/AlbumORama/Albums.php +++ b/tests/_data/fixtures/models/AlbumORama/Albums.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/AlbumORama/Artists.php b/tests/_data/fixtures/models/AlbumORama/Artists.php index 28c08cb98b5..4dd54d2023d 100644 --- a/tests/_data/fixtures/models/AlbumORama/Artists.php +++ b/tests/_data/fixtures/models/AlbumORama/Artists.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/AlbumORama/Songs.php b/tests/_data/fixtures/models/AlbumORama/Songs.php index a7f8231db70..56c656f1868 100644 --- a/tests/_data/fixtures/models/AlbumORama/Songs.php +++ b/tests/_data/fixtures/models/AlbumORama/Songs.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Annotations/Robot.php b/tests/_data/fixtures/models/Annotations/Robot.php index c1c4bab92b4..fc2e1bf7acc 100644 --- a/tests/_data/fixtures/models/Annotations/Robot.php +++ b/tests/_data/fixtures/models/Annotations/Robot.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/BodyParts/Body.php b/tests/_data/fixtures/models/BodyParts/Body.php index c40b96c8532..a678772e2e0 100644 --- a/tests/_data/fixtures/models/BodyParts/Body.php +++ b/tests/_data/fixtures/models/BodyParts/Body.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/BodyParts/Head.php b/tests/_data/fixtures/models/BodyParts/Head.php index 60dbf17fd1f..37f4e8f645a 100644 --- a/tests/_data/fixtures/models/BodyParts/Head.php +++ b/tests/_data/fixtures/models/BodyParts/Head.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Boutique/Robots.php b/tests/_data/fixtures/models/Boutique/Robots.php index dbdcb1b0d97..2a494948bf9 100644 --- a/tests/_data/fixtures/models/Boutique/Robots.php +++ b/tests/_data/fixtures/models/Boutique/Robots.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Boutique/Robotters.php b/tests/_data/fixtures/models/Boutique/Robotters.php index a424516f25f..3bd8be5e65a 100644 --- a/tests/_data/fixtures/models/Boutique/Robotters.php +++ b/tests/_data/fixtures/models/Boutique/Robotters.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Cacheable/Model.php b/tests/_data/fixtures/models/Cacheable/Model.php index f52e05f012f..2863698203f 100644 --- a/tests/_data/fixtures/models/Cacheable/Model.php +++ b/tests/_data/fixtures/models/Cacheable/Model.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Cacheable/Parts.php b/tests/_data/fixtures/models/Cacheable/Parts.php index fcb0b682566..7de9701e441 100644 --- a/tests/_data/fixtures/models/Cacheable/Parts.php +++ b/tests/_data/fixtures/models/Cacheable/Parts.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Cacheable/Robots.php b/tests/_data/fixtures/models/Cacheable/Robots.php index e8416c9e1d7..84f86fe2070 100644 --- a/tests/_data/fixtures/models/Cacheable/Robots.php +++ b/tests/_data/fixtures/models/Cacheable/Robots.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Cacheable/RobotsParts.php b/tests/_data/fixtures/models/Cacheable/RobotsParts.php index e9fb1cc134f..826d884a994 100644 --- a/tests/_data/fixtures/models/Cacheable/RobotsParts.php +++ b/tests/_data/fixtures/models/Cacheable/RobotsParts.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Childs.php b/tests/_data/fixtures/models/Childs.php index f85e4521182..8d9f7c66cb3 100644 --- a/tests/_data/fixtures/models/Childs.php +++ b/tests/_data/fixtures/models/Childs.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Customers.php b/tests/_data/fixtures/models/Customers.php index 09d77ac4cc4..fef178d1c71 100644 --- a/tests/_data/fixtures/models/Customers.php +++ b/tests/_data/fixtures/models/Customers.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Deles.php b/tests/_data/fixtures/models/Deles.php index 135624bd2f5..f1aaa9307c7 100644 --- a/tests/_data/fixtures/models/Deles.php +++ b/tests/_data/fixtures/models/Deles.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Dynamic/Personas.php b/tests/_data/fixtures/models/Dynamic/Personas.php index 99e7f9621be..3f64e3a102c 100644 --- a/tests/_data/fixtures/models/Dynamic/Personas.php +++ b/tests/_data/fixtures/models/Dynamic/Personas.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Dynamic/Personers.php b/tests/_data/fixtures/models/Dynamic/Personers.php index 1824698f1fe..17c575d2778 100644 --- a/tests/_data/fixtures/models/Dynamic/Personers.php +++ b/tests/_data/fixtures/models/Dynamic/Personers.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Dynamic/Robots.php b/tests/_data/fixtures/models/Dynamic/Robots.php index 695f42fbd82..ae6eb420ac9 100644 --- a/tests/_data/fixtures/models/Dynamic/Robots.php +++ b/tests/_data/fixtures/models/Dynamic/Robots.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/GossipRobots.php b/tests/_data/fixtures/models/GossipRobots.php index 051e77591fb..f45f8b3c1a0 100644 --- a/tests/_data/fixtures/models/GossipRobots.php +++ b/tests/_data/fixtures/models/GossipRobots.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/I1534.php b/tests/_data/fixtures/models/I1534.php index 7c5dcf3ebb0..3faa9ab6b12 100644 --- a/tests/_data/fixtures/models/I1534.php +++ b/tests/_data/fixtures/models/I1534.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Language.php b/tests/_data/fixtures/models/Language.php index a01076291f5..ac20ed48bda 100644 --- a/tests/_data/fixtures/models/Language.php +++ b/tests/_data/fixtures/models/Language.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/LanguageI18n.php b/tests/_data/fixtures/models/LanguageI18n.php index 2859df35d1d..dc4b661643f 100644 --- a/tests/_data/fixtures/models/LanguageI18n.php +++ b/tests/_data/fixtures/models/LanguageI18n.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/ModelWithStringField.php b/tests/_data/fixtures/models/ModelWithStringField.php index ff052f0e0cd..d819a102331 100644 --- a/tests/_data/fixtures/models/ModelWithStringField.php +++ b/tests/_data/fixtures/models/ModelWithStringField.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/News/Subscribers.php b/tests/_data/fixtures/models/News/Subscribers.php index 47b64b950b1..612432d0047 100644 --- a/tests/_data/fixtures/models/News/Subscribers.php +++ b/tests/_data/fixtures/models/News/Subscribers.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/PackageDetails.php b/tests/_data/fixtures/models/PackageDetails.php index 630a5c98a59..5ab06381005 100644 --- a/tests/_data/fixtures/models/PackageDetails.php +++ b/tests/_data/fixtures/models/PackageDetails.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Packages.php b/tests/_data/fixtures/models/Packages.php index 4306948473c..31236998669 100644 --- a/tests/_data/fixtures/models/Packages.php +++ b/tests/_data/fixtures/models/Packages.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Parts.php b/tests/_data/fixtures/models/Parts.php index bfb45cb9e08..2bb8ef84209 100644 --- a/tests/_data/fixtures/models/Parts.php +++ b/tests/_data/fixtures/models/Parts.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Parts2.php b/tests/_data/fixtures/models/Parts2.php index 923843e1307..28638035fca 100644 --- a/tests/_data/fixtures/models/Parts2.php +++ b/tests/_data/fixtures/models/Parts2.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/People.php b/tests/_data/fixtures/models/People.php index 63100873a76..42332fb8ece 100644 --- a/tests/_data/fixtures/models/People.php +++ b/tests/_data/fixtures/models/People.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Personas.php b/tests/_data/fixtures/models/Personas.php index 28c6cb486cb..9508e04c96e 100644 --- a/tests/_data/fixtures/models/Personas.php +++ b/tests/_data/fixtures/models/Personas.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Personers.php b/tests/_data/fixtures/models/Personers.php index 7d21fe17a08..dc7a4bace86 100644 --- a/tests/_data/fixtures/models/Personers.php +++ b/tests/_data/fixtures/models/Personers.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Personnes.php b/tests/_data/fixtures/models/Personnes.php index 78c003f1959..425fb45cd18 100644 --- a/tests/_data/fixtures/models/Personnes.php +++ b/tests/_data/fixtures/models/Personnes.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Pessoas.php b/tests/_data/fixtures/models/Pessoas.php index 460b4a5216b..97cfd7f0607 100644 --- a/tests/_data/fixtures/models/Pessoas.php +++ b/tests/_data/fixtures/models/Pessoas.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Products.php b/tests/_data/fixtures/models/Products.php index 9329d8f3f2c..ec7d09c76cc 100644 --- a/tests/_data/fixtures/models/Products.php +++ b/tests/_data/fixtures/models/Products.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Prueba.php b/tests/_data/fixtures/models/Prueba.php index 0850b481cb6..c1b75443756 100644 --- a/tests/_data/fixtures/models/Prueba.php +++ b/tests/_data/fixtures/models/Prueba.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Relations/Deles.php b/tests/_data/fixtures/models/Relations/Deles.php index 496bf461e20..00a34a8bfdc 100644 --- a/tests/_data/fixtures/models/Relations/Deles.php +++ b/tests/_data/fixtures/models/Relations/Deles.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Relations/M2MParts.php b/tests/_data/fixtures/models/Relations/M2MParts.php index b5bffb1843c..3b1335ef53d 100644 --- a/tests/_data/fixtures/models/Relations/M2MParts.php +++ b/tests/_data/fixtures/models/Relations/M2MParts.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Relations/M2MRobots.php b/tests/_data/fixtures/models/Relations/M2MRobots.php index 0bae9ab7c1b..d2ad51913e9 100644 --- a/tests/_data/fixtures/models/Relations/M2MRobots.php +++ b/tests/_data/fixtures/models/Relations/M2MRobots.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Relations/M2MRobotsParts.php b/tests/_data/fixtures/models/Relations/M2MRobotsParts.php index 69f23c62da3..e8dc79f1b91 100644 --- a/tests/_data/fixtures/models/Relations/M2MRobotsParts.php +++ b/tests/_data/fixtures/models/Relations/M2MRobotsParts.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Relations/RelationsParts.php b/tests/_data/fixtures/models/Relations/RelationsParts.php index e7c872de86d..44c7e71112e 100644 --- a/tests/_data/fixtures/models/Relations/RelationsParts.php +++ b/tests/_data/fixtures/models/Relations/RelationsParts.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Relations/RelationsRobots.php b/tests/_data/fixtures/models/Relations/RelationsRobots.php index f3744454496..adef8eb553d 100644 --- a/tests/_data/fixtures/models/Relations/RelationsRobots.php +++ b/tests/_data/fixtures/models/Relations/RelationsRobots.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Relations/RelationsRobotsParts.php b/tests/_data/fixtures/models/Relations/RelationsRobotsParts.php index 91bac98ddd6..888872be4ee 100644 --- a/tests/_data/fixtures/models/Relations/RelationsRobotsParts.php +++ b/tests/_data/fixtures/models/Relations/RelationsRobotsParts.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Relations/Robots.php b/tests/_data/fixtures/models/Relations/Robots.php index 2b5eeef5af9..140dea65e1b 100644 --- a/tests/_data/fixtures/models/Relations/Robots.php +++ b/tests/_data/fixtures/models/Relations/Robots.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Relations/RobotsParts.php b/tests/_data/fixtures/models/Relations/RobotsParts.php index 07805702df8..0a93ad514a0 100644 --- a/tests/_data/fixtures/models/Relations/RobotsParts.php +++ b/tests/_data/fixtures/models/Relations/RobotsParts.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Relations/Robotters.php b/tests/_data/fixtures/models/Relations/Robotters.php index a60b924ba73..fb480922be2 100644 --- a/tests/_data/fixtures/models/Relations/Robotters.php +++ b/tests/_data/fixtures/models/Relations/Robotters.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Relations/RobottersDeles.php b/tests/_data/fixtures/models/Relations/RobottersDeles.php index 265a258822d..a9ee59eea7b 100644 --- a/tests/_data/fixtures/models/Relations/RobottersDeles.php +++ b/tests/_data/fixtures/models/Relations/RobottersDeles.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Relations/Some/Deles.php b/tests/_data/fixtures/models/Relations/Some/Deles.php index 8f7960e64a0..839e6b17204 100644 --- a/tests/_data/fixtures/models/Relations/Some/Deles.php +++ b/tests/_data/fixtures/models/Relations/Some/Deles.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Relations/Some/Parts.php b/tests/_data/fixtures/models/Relations/Some/Parts.php index cd12e486e9b..b3958691ab4 100644 --- a/tests/_data/fixtures/models/Relations/Some/Parts.php +++ b/tests/_data/fixtures/models/Relations/Some/Parts.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Relations/Some/Products.php b/tests/_data/fixtures/models/Relations/Some/Products.php index 670dd8d8557..1615835aa7a 100644 --- a/tests/_data/fixtures/models/Relations/Some/Products.php +++ b/tests/_data/fixtures/models/Relations/Some/Products.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Relations/Some/Robots.php b/tests/_data/fixtures/models/Relations/Some/Robots.php index a24b3cac9f0..1bf562f7d0f 100644 --- a/tests/_data/fixtures/models/Relations/Some/Robots.php +++ b/tests/_data/fixtures/models/Relations/Some/Robots.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Relations/Some/RobotsParts.php b/tests/_data/fixtures/models/Relations/Some/RobotsParts.php index f0cb280fc3a..83127c3832b 100644 --- a/tests/_data/fixtures/models/Relations/Some/RobotsParts.php +++ b/tests/_data/fixtures/models/Relations/Some/RobotsParts.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Relations/Some/Robotters.php b/tests/_data/fixtures/models/Relations/Some/Robotters.php index 5460cfa0412..e84b568cb31 100644 --- a/tests/_data/fixtures/models/Relations/Some/Robotters.php +++ b/tests/_data/fixtures/models/Relations/Some/Robotters.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Relations/Some/RobottersDeles.php b/tests/_data/fixtures/models/Relations/Some/RobottersDeles.php index 8b4b5aabb6c..f1e966daf2a 100644 --- a/tests/_data/fixtures/models/Relations/Some/RobottersDeles.php +++ b/tests/_data/fixtures/models/Relations/Some/RobottersDeles.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Robos.php b/tests/_data/fixtures/models/Robos.php index db32255dada..522d49c5862 100644 --- a/tests/_data/fixtures/models/Robos.php +++ b/tests/_data/fixtures/models/Robos.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Robots.php b/tests/_data/fixtures/models/Robots.php index 7db15bc7caa..7d33e7d9448 100644 --- a/tests/_data/fixtures/models/Robots.php +++ b/tests/_data/fixtures/models/Robots.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Robots2.php b/tests/_data/fixtures/models/Robots2.php index 746cf291890..7e20f6a9ca9 100644 --- a/tests/_data/fixtures/models/Robots2.php +++ b/tests/_data/fixtures/models/Robots2.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/RobotsExtended.php b/tests/_data/fixtures/models/RobotsExtended.php index ba591667706..c68a6678569 100644 --- a/tests/_data/fixtures/models/RobotsExtended.php +++ b/tests/_data/fixtures/models/RobotsExtended.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/RobotsParts.php b/tests/_data/fixtures/models/RobotsParts.php index 390b08c2a10..8794a909e3b 100644 --- a/tests/_data/fixtures/models/RobotsParts.php +++ b/tests/_data/fixtures/models/RobotsParts.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Robotters.php b/tests/_data/fixtures/models/Robotters.php index ac9ddeca803..f111c0ed195 100644 --- a/tests/_data/fixtures/models/Robotters.php +++ b/tests/_data/fixtures/models/Robotters.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/RobottersDeles.php b/tests/_data/fixtures/models/RobottersDeles.php index ec77c6fa5da..f0c2a10ec95 100644 --- a/tests/_data/fixtures/models/RobottersDeles.php +++ b/tests/_data/fixtures/models/RobottersDeles.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Robotto.php b/tests/_data/fixtures/models/Robotto.php index 83c10add71c..e801fae8b68 100644 --- a/tests/_data/fixtures/models/Robotto.php +++ b/tests/_data/fixtures/models/Robotto.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Select.php b/tests/_data/fixtures/models/Select.php index ea429263c03..ae98d31a11a 100644 --- a/tests/_data/fixtures/models/Select.php +++ b/tests/_data/fixtures/models/Select.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Snapshot/Parts.php b/tests/_data/fixtures/models/Snapshot/Parts.php index da029a2a094..e714b3f7d0c 100644 --- a/tests/_data/fixtures/models/Snapshot/Parts.php +++ b/tests/_data/fixtures/models/Snapshot/Parts.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Snapshot/Personas.php b/tests/_data/fixtures/models/Snapshot/Personas.php index d022084a95b..bbe8099e154 100644 --- a/tests/_data/fixtures/models/Snapshot/Personas.php +++ b/tests/_data/fixtures/models/Snapshot/Personas.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Snapshot/Requests.php b/tests/_data/fixtures/models/Snapshot/Requests.php index 0404562f748..8cf39ea5563 100644 --- a/tests/_data/fixtures/models/Snapshot/Requests.php +++ b/tests/_data/fixtures/models/Snapshot/Requests.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Snapshot/Robots.php b/tests/_data/fixtures/models/Snapshot/Robots.php index a5bdfc5302b..c586fba140a 100644 --- a/tests/_data/fixtures/models/Snapshot/Robots.php +++ b/tests/_data/fixtures/models/Snapshot/Robots.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Snapshot/RobotsParts.php b/tests/_data/fixtures/models/Snapshot/RobotsParts.php index 6459dd87a89..cd75e0b9685 100644 --- a/tests/_data/fixtures/models/Snapshot/RobotsParts.php +++ b/tests/_data/fixtures/models/Snapshot/RobotsParts.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Snapshot/Robotters.php b/tests/_data/fixtures/models/Snapshot/Robotters.php index e1374fe3f07..366fa8daf67 100644 --- a/tests/_data/fixtures/models/Snapshot/Robotters.php +++ b/tests/_data/fixtures/models/Snapshot/Robotters.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Snapshot/Subscribers.php b/tests/_data/fixtures/models/Snapshot/Subscribers.php index 42cbc9499ea..adf2f2309c6 100644 --- a/tests/_data/fixtures/models/Snapshot/Subscribers.php +++ b/tests/_data/fixtures/models/Snapshot/Subscribers.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Some/Deles.php b/tests/_data/fixtures/models/Some/Deles.php index 88180a6c90d..39b6e7a1ddc 100644 --- a/tests/_data/fixtures/models/Some/Deles.php +++ b/tests/_data/fixtures/models/Some/Deles.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Some/Parts.php b/tests/_data/fixtures/models/Some/Parts.php index 5edb2c30ff9..247e91c4acc 100644 --- a/tests/_data/fixtures/models/Some/Parts.php +++ b/tests/_data/fixtures/models/Some/Parts.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Some/Products.php b/tests/_data/fixtures/models/Some/Products.php index bbb339fdbb9..ee7a2a222a5 100644 --- a/tests/_data/fixtures/models/Some/Products.php +++ b/tests/_data/fixtures/models/Some/Products.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Some/Robots.php b/tests/_data/fixtures/models/Some/Robots.php index 8028dc3cf70..64ad6cddc98 100644 --- a/tests/_data/fixtures/models/Some/Robots.php +++ b/tests/_data/fixtures/models/Some/Robots.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Some/RobotsParts.php b/tests/_data/fixtures/models/Some/RobotsParts.php index 22e2a7fc6ca..e1d49c49504 100644 --- a/tests/_data/fixtures/models/Some/RobotsParts.php +++ b/tests/_data/fixtures/models/Some/RobotsParts.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Some/Robotters.php b/tests/_data/fixtures/models/Some/Robotters.php index cef1991f897..4e735b0360d 100644 --- a/tests/_data/fixtures/models/Some/Robotters.php +++ b/tests/_data/fixtures/models/Some/Robotters.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Some/RobottersDeles.php b/tests/_data/fixtures/models/Some/RobottersDeles.php index a27d35a8c72..d670b0a99ad 100644 --- a/tests/_data/fixtures/models/Some/RobottersDeles.php +++ b/tests/_data/fixtures/models/Some/RobottersDeles.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Statistics/AgeStats.php b/tests/_data/fixtures/models/Statistics/AgeStats.php index 59124ca0b80..376dd6fb275 100644 --- a/tests/_data/fixtures/models/Statistics/AgeStats.php +++ b/tests/_data/fixtures/models/Statistics/AgeStats.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Statistics/CityStats.php b/tests/_data/fixtures/models/Statistics/CityStats.php index 915233f93a7..4d8bc201888 100644 --- a/tests/_data/fixtures/models/Statistics/CityStats.php +++ b/tests/_data/fixtures/models/Statistics/CityStats.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Statistics/CountryStats.php b/tests/_data/fixtures/models/Statistics/CountryStats.php index b9a9310cea3..43a67b9a532 100644 --- a/tests/_data/fixtures/models/Statistics/CountryStats.php +++ b/tests/_data/fixtures/models/Statistics/CountryStats.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Statistics/GenderStats.php b/tests/_data/fixtures/models/Statistics/GenderStats.php index 80d888791e2..8bc9405b37d 100644 --- a/tests/_data/fixtures/models/Statistics/GenderStats.php +++ b/tests/_data/fixtures/models/Statistics/GenderStats.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Stock.php b/tests/_data/fixtures/models/Stock.php index 5eecc75944e..f95b644e0bc 100644 --- a/tests/_data/fixtures/models/Stock.php +++ b/tests/_data/fixtures/models/Stock.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Store/Parts.php b/tests/_data/fixtures/models/Store/Parts.php index 90ed7785243..1cc6860556b 100644 --- a/tests/_data/fixtures/models/Store/Parts.php +++ b/tests/_data/fixtures/models/Store/Parts.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Store/Robots.php b/tests/_data/fixtures/models/Store/Robots.php index 7d4ce1d1f0c..834b6d60744 100644 --- a/tests/_data/fixtures/models/Store/Robots.php +++ b/tests/_data/fixtures/models/Store/Robots.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Store/RobotsParts.php b/tests/_data/fixtures/models/Store/RobotsParts.php index 039347f0c9f..1c0823d3b29 100644 --- a/tests/_data/fixtures/models/Store/RobotsParts.php +++ b/tests/_data/fixtures/models/Store/RobotsParts.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Subscribers.php b/tests/_data/fixtures/models/Subscribers.php index 7abe3dbbdaa..009d79665b8 100644 --- a/tests/_data/fixtures/models/Subscribers.php +++ b/tests/_data/fixtures/models/Subscribers.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Subscriptores.php b/tests/_data/fixtures/models/Subscriptores.php index a5b092b9c3b..70a53fd090c 100644 --- a/tests/_data/fixtures/models/Subscriptores.php +++ b/tests/_data/fixtures/models/Subscriptores.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Users.php b/tests/_data/fixtures/models/Users.php index d2a63cb6145..8d91a5168d2 100644 --- a/tests/_data/fixtures/models/Users.php +++ b/tests/_data/fixtures/models/Users.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Validation/Robots.php b/tests/_data/fixtures/models/Validation/Robots.php index 788923e1164..94ba6417f73 100644 --- a/tests/_data/fixtures/models/Validation/Robots.php +++ b/tests/_data/fixtures/models/Validation/Robots.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/models/Validation/Subscriptores.php b/tests/_data/fixtures/models/Validation/Subscriptores.php index ec25a90b2b4..b84e8c9c0b2 100644 --- a/tests/_data/fixtures/models/Validation/Subscriptores.php +++ b/tests/_data/fixtures/models/Validation/Subscriptores.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_data/fixtures/modules/backend/Module.php b/tests/_data/fixtures/modules/backend/Module.php index 9f02cd4a262..bc88f4643e8 100644 --- a/tests/_data/fixtures/modules/backend/Module.php +++ b/tests/_data/fixtures/modules/backend/Module.php @@ -12,15 +12,15 @@ * Backend Module * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Nikolaos Dimopoulos + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Nikolaos Dimopoulos * * The contents of this file are subject to the New BSD License that is * bundled with this package in the file 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class Module implements ModuleDefinitionInterface diff --git a/tests/_data/fixtures/modules/frontend/Module.php b/tests/_data/fixtures/modules/frontend/Module.php index f192aad5263..f0bd9b84581 100644 --- a/tests/_data/fixtures/modules/frontend/Module.php +++ b/tests/_data/fixtures/modules/frontend/Module.php @@ -12,15 +12,15 @@ * Frontend Module * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Nikolaos Dimopoulos + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Nikolaos Dimopoulos * * The contents of this file are subject to the New BSD License that is * bundled with this package in the file 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class Module implements ModuleDefinitionInterface diff --git a/tests/_data/fixtures/resultsets/Stats.php b/tests/_data/fixtures/resultsets/Stats.php index 9362c46b3e5..cb16d2dbaaf 100644 --- a/tests/_data/fixtures/resultsets/Stats.php +++ b/tests/_data/fixtures/resultsets/Stats.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_support/Helper/PhalconCacheFile.php b/tests/_support/Helper/PhalconCacheFile.php index 66cad910d72..0bff67ee21a 100644 --- a/tests/_support/Helper/PhalconCacheFile.php +++ b/tests/_support/Helper/PhalconCacheFile.php @@ -18,13 +18,13 @@ * Module for testing backend cache adapters * * @copyright (c) 2011-2017 Phalcon Team - * @link https://phalconphp.com + * @link https://phalcon.io * * The contents of this file are subject to the New BSD License that is * bundled with this package in the file 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class PhalconCacheFile extends Filesystem diff --git a/tests/_support/Helper/PhalconLibmemcached.php b/tests/_support/Helper/PhalconLibmemcached.php index 98299c39d07..6214adc26ed 100644 --- a/tests/_support/Helper/PhalconLibmemcached.php +++ b/tests/_support/Helper/PhalconLibmemcached.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/_support/Helper/Unit.php b/tests/_support/Helper/Unit.php index a7a64c871f4..cea73936c5e 100644 --- a/tests/_support/Helper/Unit.php +++ b/tests/_support/Helper/Unit.php @@ -80,7 +80,7 @@ public function skipTest(string $message) * * @since 2014-09-13 * - * @author Nikos Dimopoulos + * @author Nikos Dimopoulos */ public function getNewFileName(string $prefix = '', string $suffix = 'log'): string { diff --git a/tests/cli/Cli/Console/ConstructCest.php b/tests/cli/Cli/Console/ConstructCest.php index 694aa698de1..1d7ec232a71 100644 --- a/tests/cli/Cli/Console/ConstructCest.php +++ b/tests/cli/Cli/Console/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ class ConstructCest /** * Tests Phalcon\Cli\Console :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @author Nathan Edwards diff --git a/tests/cli/Cli/Console/GetModuleCest.php b/tests/cli/Cli/Console/GetModuleCest.php index 103810213fe..d80b8b913a2 100644 --- a/tests/cli/Cli/Console/GetModuleCest.php +++ b/tests/cli/Cli/Console/GetModuleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class GetModuleCest /** * Tests Phalcon\Cli\Console :: getModule() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @author Nathan Edwards @@ -63,7 +63,7 @@ public function cliConsoleGetModule(CliTester $I) /** * Tests Phalcon\Cli\Console :: getModule() - non-existent * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @author Nathan Edwards diff --git a/tests/cli/Cli/Console/GetModulesCest.php b/tests/cli/Cli/Console/GetModulesCest.php index 808fe351b2a..aed245026ee 100644 --- a/tests/cli/Cli/Console/GetModulesCest.php +++ b/tests/cli/Cli/Console/GetModulesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class GetModulesCest /** * Tests Phalcon\Cli\Console :: getModules() - empty * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @author Nathan Edwards @@ -44,7 +44,7 @@ public function cliConsoleGetModulesEmpty(CliTester $I) /** * Tests Phalcon\Cli\Console :: getModules() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @author Nathan Edwards diff --git a/tests/cli/Cli/Console/GetSetDICest.php b/tests/cli/Cli/Console/GetSetDICest.php index 5758a53f0a2..bd9d24369f5 100644 --- a/tests/cli/Cli/Console/GetSetDICest.php +++ b/tests/cli/Cli/Console/GetSetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class GetSetDICest /** * Tests Phalcon\Cli\Console :: getDI()/setDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliConsoleGetSetDI(CliTester $I) diff --git a/tests/cli/Cli/Console/GetSetDefaultModuleCest.php b/tests/cli/Cli/Console/GetSetDefaultModuleCest.php index 686f1b0a96b..8a1994db07e 100644 --- a/tests/cli/Cli/Console/GetSetDefaultModuleCest.php +++ b/tests/cli/Cli/Console/GetSetDefaultModuleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class GetSetDefaultModuleCest * Tests Phalcon\Cli\Console :: getDefaultModule() * Tests Phalcon\Cli\Console :: setDefaultModule() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @author Nathan Edwards diff --git a/tests/cli/Cli/Console/GetSetEventsManagerCest.php b/tests/cli/Cli/Console/GetSetEventsManagerCest.php index 2cf86f0ea02..04904f269ff 100644 --- a/tests/cli/Cli/Console/GetSetEventsManagerCest.php +++ b/tests/cli/Cli/Console/GetSetEventsManagerCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class GetSetEventsManagerCest * Tests Phalcon\Cli\Console :: getEventsManager() * Tests Phalcon\Cli\Console :: setEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @author Nathan Edwards diff --git a/tests/cli/Cli/Console/HandleCest.php b/tests/cli/Cli/Console/HandleCest.php index 182bca0d7cd..398b2794bb7 100644 --- a/tests/cli/Cli/Console/HandleCest.php +++ b/tests/cli/Cli/Console/HandleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class HandleCest /** * Tests Phalcon\Cli\Console :: handle() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliConsoleHandle(CliTester $I) diff --git a/tests/cli/Cli/Console/RegisterModulesCest.php b/tests/cli/Cli/Console/RegisterModulesCest.php index a2e944853f1..60c54f67593 100644 --- a/tests/cli/Cli/Console/RegisterModulesCest.php +++ b/tests/cli/Cli/Console/RegisterModulesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class RegisterModulesCest /** * Tests Phalcon\Cli\Console :: registerModules() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @author Nathan Edwards diff --git a/tests/cli/Cli/Console/SetArgumentCest.php b/tests/cli/Cli/Console/SetArgumentCest.php index 34320d8ebcc..4b326894fc8 100644 --- a/tests/cli/Cli/Console/SetArgumentCest.php +++ b/tests/cli/Cli/Console/SetArgumentCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class SetArgumentCest /** * Tests Phalcon\Cli\Console :: setArgument() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @author Nathan Edwards diff --git a/tests/cli/Cli/Console/UnderscoreGetCest.php b/tests/cli/Cli/Console/UnderscoreGetCest.php index cd180df8903..089ac02f895 100644 --- a/tests/cli/Cli/Console/UnderscoreGetCest.php +++ b/tests/cli/Cli/Console/UnderscoreGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class UnderscoreGetCest /** * Tests Phalcon\Cli\Console :: __get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @author Nathan Edwards diff --git a/tests/cli/Cli/ConsoleCest.php b/tests/cli/Cli/ConsoleCest.php index b6fdb8b7ebb..2a5b04095bc 100644 --- a/tests/cli/Cli/ConsoleCest.php +++ b/tests/cli/Cli/ConsoleCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/cli/Cli/Dispatcher/CallActionMethodCest.php b/tests/cli/Cli/Dispatcher/CallActionMethodCest.php index ed4cc9706d3..28812a8031e 100644 --- a/tests/cli/Cli/Dispatcher/CallActionMethodCest.php +++ b/tests/cli/Cli/Dispatcher/CallActionMethodCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/cli/Cli/Dispatcher/DispatchCest.php b/tests/cli/Cli/Dispatcher/DispatchCest.php index 5ea5b3f7b83..1c3a215b62c 100644 --- a/tests/cli/Cli/Dispatcher/DispatchCest.php +++ b/tests/cli/Cli/Dispatcher/DispatchCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -29,7 +29,7 @@ public function _before(CliTester $I) /** * Tests Phalcon\Cli\Dispatcher :: dispatch() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliDispatcherDispatch(CliTester $I) diff --git a/tests/cli/Cli/Dispatcher/ForwardCest.php b/tests/cli/Cli/Dispatcher/ForwardCest.php index a678314fe37..8b94fb3ef3e 100644 --- a/tests/cli/Cli/Dispatcher/ForwardCest.php +++ b/tests/cli/Cli/Dispatcher/ForwardCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ForwardCest /** * Tests Phalcon\Cli\Dispatcher :: forward() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliDispatcherForward(CliTester $I) diff --git a/tests/cli/Cli/Dispatcher/GetActionNameCest.php b/tests/cli/Cli/Dispatcher/GetActionNameCest.php index baef6c4a3ef..bdd4be926f8 100644 --- a/tests/cli/Cli/Dispatcher/GetActionNameCest.php +++ b/tests/cli/Cli/Dispatcher/GetActionNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetActionNameCest /** * Tests Phalcon\Cli\Dispatcher :: getActionName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliDispatcherGetActionName(CliTester $I) diff --git a/tests/cli/Cli/Dispatcher/GetActionSuffixCest.php b/tests/cli/Cli/Dispatcher/GetActionSuffixCest.php index d72d4ef5e0c..2ea0608bddb 100644 --- a/tests/cli/Cli/Dispatcher/GetActionSuffixCest.php +++ b/tests/cli/Cli/Dispatcher/GetActionSuffixCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetActionSuffixCest /** * Tests Phalcon\Cli\Dispatcher :: getActionSuffix() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliDispatcherGetActionSuffix(CliTester $I) diff --git a/tests/cli/Cli/Dispatcher/GetActiveMethodCest.php b/tests/cli/Cli/Dispatcher/GetActiveMethodCest.php index fa6ae308ae0..91d33747554 100644 --- a/tests/cli/Cli/Dispatcher/GetActiveMethodCest.php +++ b/tests/cli/Cli/Dispatcher/GetActiveMethodCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetActiveMethodCest /** * Tests Phalcon\Cli\Dispatcher :: getActiveMethod() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliDispatcherGetActiveMethod(CliTester $I) diff --git a/tests/cli/Cli/Dispatcher/GetActiveTaskCest.php b/tests/cli/Cli/Dispatcher/GetActiveTaskCest.php index 6e35fca9948..d080597ee1e 100644 --- a/tests/cli/Cli/Dispatcher/GetActiveTaskCest.php +++ b/tests/cli/Cli/Dispatcher/GetActiveTaskCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetActiveTaskCest /** * Tests Phalcon\Cli\Dispatcher :: getActiveTask() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliDispatcherGetActiveTask(CliTester $I) diff --git a/tests/cli/Cli/Dispatcher/GetBoundModelsCest.php b/tests/cli/Cli/Dispatcher/GetBoundModelsCest.php index 970136e01df..59a8a0878c6 100644 --- a/tests/cli/Cli/Dispatcher/GetBoundModelsCest.php +++ b/tests/cli/Cli/Dispatcher/GetBoundModelsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetBoundModelsCest /** * Tests Phalcon\Cli\Dispatcher :: getBoundModels() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliDispatcherGetBoundModels(CliTester $I) diff --git a/tests/cli/Cli/Dispatcher/GetDefaultNamespaceCest.php b/tests/cli/Cli/Dispatcher/GetDefaultNamespaceCest.php index 9b60051eb2d..5f8262d578c 100644 --- a/tests/cli/Cli/Dispatcher/GetDefaultNamespaceCest.php +++ b/tests/cli/Cli/Dispatcher/GetDefaultNamespaceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetDefaultNamespaceCest /** * Tests Phalcon\Cli\Dispatcher :: getDefaultNamespace() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliDispatcherGetDefaultNamespace(CliTester $I) diff --git a/tests/cli/Cli/Dispatcher/GetHandlerClassCest.php b/tests/cli/Cli/Dispatcher/GetHandlerClassCest.php index 9bcf00d5d4c..bf660b3028f 100644 --- a/tests/cli/Cli/Dispatcher/GetHandlerClassCest.php +++ b/tests/cli/Cli/Dispatcher/GetHandlerClassCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetHandlerClassCest /** * Tests Phalcon\Cli\Dispatcher :: getHandlerClass() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliDispatcherGetHandlerClass(CliTester $I) diff --git a/tests/cli/Cli/Dispatcher/GetHandlerSuffixCest.php b/tests/cli/Cli/Dispatcher/GetHandlerSuffixCest.php index c94cbdb0093..b484b98e811 100644 --- a/tests/cli/Cli/Dispatcher/GetHandlerSuffixCest.php +++ b/tests/cli/Cli/Dispatcher/GetHandlerSuffixCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/cli/Cli/Dispatcher/GetLastTaskCest.php b/tests/cli/Cli/Dispatcher/GetLastTaskCest.php index 56db621a379..e1c3aade54c 100644 --- a/tests/cli/Cli/Dispatcher/GetLastTaskCest.php +++ b/tests/cli/Cli/Dispatcher/GetLastTaskCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetLastTaskCest /** * Tests Phalcon\Cli\Dispatcher :: getLastTask() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliDispatcherGetLastTask(CliTester $I) diff --git a/tests/cli/Cli/Dispatcher/GetModelBinderCest.php b/tests/cli/Cli/Dispatcher/GetModelBinderCest.php index cb43de9fc7a..ffcd0d31b5d 100644 --- a/tests/cli/Cli/Dispatcher/GetModelBinderCest.php +++ b/tests/cli/Cli/Dispatcher/GetModelBinderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetModelBinderCest /** * Tests Phalcon\Cli\Dispatcher :: getModelBinder() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliDispatcherGetModelBinder(CliTester $I) diff --git a/tests/cli/Cli/Dispatcher/GetModuleNameCest.php b/tests/cli/Cli/Dispatcher/GetModuleNameCest.php index 7193a56e2dc..d5079d25b1c 100644 --- a/tests/cli/Cli/Dispatcher/GetModuleNameCest.php +++ b/tests/cli/Cli/Dispatcher/GetModuleNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetModuleNameCest /** * Tests Phalcon\Cli\Dispatcher :: getModuleName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliDispatcherGetModuleName(CliTester $I) diff --git a/tests/cli/Cli/Dispatcher/GetNamespaceNameCest.php b/tests/cli/Cli/Dispatcher/GetNamespaceNameCest.php index cf9ad63172f..f886eea8780 100644 --- a/tests/cli/Cli/Dispatcher/GetNamespaceNameCest.php +++ b/tests/cli/Cli/Dispatcher/GetNamespaceNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetNamespaceNameCest /** * Tests Phalcon\Cli\Dispatcher :: getNamespaceName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliDispatcherGetNamespaceName(CliTester $I) diff --git a/tests/cli/Cli/Dispatcher/GetOptionCest.php b/tests/cli/Cli/Dispatcher/GetOptionCest.php index 7c512f3a4c7..c1dd87f5dc0 100644 --- a/tests/cli/Cli/Dispatcher/GetOptionCest.php +++ b/tests/cli/Cli/Dispatcher/GetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetOptionCest /** * Tests Phalcon\Cli\Dispatcher :: getOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliDispatcherGetOption(CliTester $I) diff --git a/tests/cli/Cli/Dispatcher/GetOptionsCest.php b/tests/cli/Cli/Dispatcher/GetOptionsCest.php index fb61249283a..c34ea83757c 100644 --- a/tests/cli/Cli/Dispatcher/GetOptionsCest.php +++ b/tests/cli/Cli/Dispatcher/GetOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetOptionsCest /** * Tests Phalcon\Cli\Dispatcher :: getOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliDispatcherGetOptions(CliTester $I) diff --git a/tests/cli/Cli/Dispatcher/GetParamCest.php b/tests/cli/Cli/Dispatcher/GetParamCest.php index d75fee340e8..77691e71cef 100644 --- a/tests/cli/Cli/Dispatcher/GetParamCest.php +++ b/tests/cli/Cli/Dispatcher/GetParamCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/cli/Cli/Dispatcher/GetParamsCest.php b/tests/cli/Cli/Dispatcher/GetParamsCest.php index db3e4779f17..a006a6df43a 100644 --- a/tests/cli/Cli/Dispatcher/GetParamsCest.php +++ b/tests/cli/Cli/Dispatcher/GetParamsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/cli/Cli/Dispatcher/GetReturnedValueCest.php b/tests/cli/Cli/Dispatcher/GetReturnedValueCest.php index 576b8a386d1..078fd4c592e 100644 --- a/tests/cli/Cli/Dispatcher/GetReturnedValueCest.php +++ b/tests/cli/Cli/Dispatcher/GetReturnedValueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetReturnedValueCest /** * Tests Phalcon\Cli\Dispatcher :: getReturnedValue() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliDispatcherGetReturnedValue(CliTester $I) diff --git a/tests/cli/Cli/Dispatcher/GetSetDICest.php b/tests/cli/Cli/Dispatcher/GetSetDICest.php index cca6b308f63..8e736bb9559 100644 --- a/tests/cli/Cli/Dispatcher/GetSetDICest.php +++ b/tests/cli/Cli/Dispatcher/GetSetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class GetSetDICest /** * Tests Phalcon\Cli\Dispatcher :: getDI()/setDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliDispatcherGetSetDI(CliTester $I) diff --git a/tests/cli/Cli/Dispatcher/GetSetEventsManagerCest.php b/tests/cli/Cli/Dispatcher/GetSetEventsManagerCest.php index 7e610d435df..4badd36fbf4 100644 --- a/tests/cli/Cli/Dispatcher/GetSetEventsManagerCest.php +++ b/tests/cli/Cli/Dispatcher/GetSetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetSetEventsManagerCest /** * Tests Phalcon\Cli\Dispatcher :: getEventsManager()/setEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliDispatcherGetSetEventsManager(CliTester $I) diff --git a/tests/cli/Cli/Dispatcher/GetTaskNameCest.php b/tests/cli/Cli/Dispatcher/GetTaskNameCest.php index c630294cb6c..62cbf5c56a8 100644 --- a/tests/cli/Cli/Dispatcher/GetTaskNameCest.php +++ b/tests/cli/Cli/Dispatcher/GetTaskNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetTaskNameCest /** * Tests Phalcon\Cli\Dispatcher :: getTaskName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliDispatcherGetTaskName(CliTester $I) diff --git a/tests/cli/Cli/Dispatcher/GetTaskSuffixCest.php b/tests/cli/Cli/Dispatcher/GetTaskSuffixCest.php index ce65b0ba98d..290069f72ce 100644 --- a/tests/cli/Cli/Dispatcher/GetTaskSuffixCest.php +++ b/tests/cli/Cli/Dispatcher/GetTaskSuffixCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetTaskSuffixCest /** * Tests Phalcon\Cli\Dispatcher :: getTaskSuffix() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliDispatcherGetTaskSuffix(CliTester $I) diff --git a/tests/cli/Cli/Dispatcher/HasOptionCest.php b/tests/cli/Cli/Dispatcher/HasOptionCest.php index 3ec54614c5a..12bfc368ae8 100644 --- a/tests/cli/Cli/Dispatcher/HasOptionCest.php +++ b/tests/cli/Cli/Dispatcher/HasOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class HasOptionCest /** * Tests Phalcon\Cli\Dispatcher :: hasOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliDispatcherHasOption(CliTester $I) diff --git a/tests/cli/Cli/Dispatcher/HasParamCest.php b/tests/cli/Cli/Dispatcher/HasParamCest.php index 1392f4ef9ae..1c3c382a87b 100644 --- a/tests/cli/Cli/Dispatcher/HasParamCest.php +++ b/tests/cli/Cli/Dispatcher/HasParamCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/cli/Cli/Dispatcher/IsFinishedCest.php b/tests/cli/Cli/Dispatcher/IsFinishedCest.php index e40c98a147d..0297a658f98 100644 --- a/tests/cli/Cli/Dispatcher/IsFinishedCest.php +++ b/tests/cli/Cli/Dispatcher/IsFinishedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class IsFinishedCest /** * Tests Phalcon\Cli\Dispatcher :: isFinished() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliDispatcherIsFinished(CliTester $I) diff --git a/tests/cli/Cli/Dispatcher/SetActionNameCest.php b/tests/cli/Cli/Dispatcher/SetActionNameCest.php index 39544217ea9..3002e7974c2 100644 --- a/tests/cli/Cli/Dispatcher/SetActionNameCest.php +++ b/tests/cli/Cli/Dispatcher/SetActionNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetActionNameCest /** * Tests Phalcon\Cli\Dispatcher :: setActionName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliDispatcherSetActionName(CliTester $I) diff --git a/tests/cli/Cli/Dispatcher/SetActionSuffixCest.php b/tests/cli/Cli/Dispatcher/SetActionSuffixCest.php index b33daa148d6..378e4456c46 100644 --- a/tests/cli/Cli/Dispatcher/SetActionSuffixCest.php +++ b/tests/cli/Cli/Dispatcher/SetActionSuffixCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetActionSuffixCest /** * Tests Phalcon\Cli\Dispatcher :: setActionSuffix() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliDispatcherSetActionSuffix(CliTester $I) diff --git a/tests/cli/Cli/Dispatcher/SetDefaultActionCest.php b/tests/cli/Cli/Dispatcher/SetDefaultActionCest.php index ff6905d26a7..207f973f0b7 100644 --- a/tests/cli/Cli/Dispatcher/SetDefaultActionCest.php +++ b/tests/cli/Cli/Dispatcher/SetDefaultActionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetDefaultActionCest /** * Tests Phalcon\Cli\Dispatcher :: setDefaultAction() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliDispatcherSetDefaultAction(CliTester $I) diff --git a/tests/cli/Cli/Dispatcher/SetDefaultNamespaceCest.php b/tests/cli/Cli/Dispatcher/SetDefaultNamespaceCest.php index 931b82fd721..443ff51ec9c 100644 --- a/tests/cli/Cli/Dispatcher/SetDefaultNamespaceCest.php +++ b/tests/cli/Cli/Dispatcher/SetDefaultNamespaceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetDefaultNamespaceCest /** * Tests Phalcon\Cli\Dispatcher :: setDefaultNamespace() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliDispatcherSetDefaultNamespace(CliTester $I) diff --git a/tests/cli/Cli/Dispatcher/SetDefaultTaskCest.php b/tests/cli/Cli/Dispatcher/SetDefaultTaskCest.php index e7e6d11e5d8..2a59c6ad91d 100644 --- a/tests/cli/Cli/Dispatcher/SetDefaultTaskCest.php +++ b/tests/cli/Cli/Dispatcher/SetDefaultTaskCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetDefaultTaskCest /** * Tests Phalcon\Cli\Dispatcher :: setDefaultTask() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliDispatcherSetDefaultTask(CliTester $I) diff --git a/tests/cli/Cli/Dispatcher/SetHandlerSuffixCest.php b/tests/cli/Cli/Dispatcher/SetHandlerSuffixCest.php index fd0de50b1e8..8a8f696be36 100644 --- a/tests/cli/Cli/Dispatcher/SetHandlerSuffixCest.php +++ b/tests/cli/Cli/Dispatcher/SetHandlerSuffixCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetHandlerSuffixCest /** * Tests Phalcon\Cli\Dispatcher :: setHandlerSuffix() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliDispatcherSetHandlerSuffix(CliTester $I) diff --git a/tests/cli/Cli/Dispatcher/SetModelBinderCest.php b/tests/cli/Cli/Dispatcher/SetModelBinderCest.php index a20b8eb96f0..4aa030a77d7 100644 --- a/tests/cli/Cli/Dispatcher/SetModelBinderCest.php +++ b/tests/cli/Cli/Dispatcher/SetModelBinderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetModelBinderCest /** * Tests Phalcon\Cli\Dispatcher :: setModelBinder() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliDispatcherSetModelBinder(CliTester $I) diff --git a/tests/cli/Cli/Dispatcher/SetModuleNameCest.php b/tests/cli/Cli/Dispatcher/SetModuleNameCest.php index d83a0767ed7..de188f282d4 100644 --- a/tests/cli/Cli/Dispatcher/SetModuleNameCest.php +++ b/tests/cli/Cli/Dispatcher/SetModuleNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetModuleNameCest /** * Tests Phalcon\Cli\Dispatcher :: setModuleName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliDispatcherSetModuleName(CliTester $I) diff --git a/tests/cli/Cli/Dispatcher/SetNamespaceNameCest.php b/tests/cli/Cli/Dispatcher/SetNamespaceNameCest.php index ea8078f6652..208c81d5f0e 100644 --- a/tests/cli/Cli/Dispatcher/SetNamespaceNameCest.php +++ b/tests/cli/Cli/Dispatcher/SetNamespaceNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetNamespaceNameCest /** * Tests Phalcon\Cli\Dispatcher :: setNamespaceName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliDispatcherSetNamespaceName(CliTester $I) diff --git a/tests/cli/Cli/Dispatcher/SetOptionsCest.php b/tests/cli/Cli/Dispatcher/SetOptionsCest.php index 4e5c441d818..9207616dd77 100644 --- a/tests/cli/Cli/Dispatcher/SetOptionsCest.php +++ b/tests/cli/Cli/Dispatcher/SetOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetOptionsCest /** * Tests Phalcon\Cli\Dispatcher :: setOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliDispatcherSetOptions(CliTester $I) diff --git a/tests/cli/Cli/Dispatcher/SetParamCest.php b/tests/cli/Cli/Dispatcher/SetParamCest.php index 926d0585f1b..d549c3b817c 100644 --- a/tests/cli/Cli/Dispatcher/SetParamCest.php +++ b/tests/cli/Cli/Dispatcher/SetParamCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/cli/Cli/Dispatcher/SetParamsCest.php b/tests/cli/Cli/Dispatcher/SetParamsCest.php index 413453d40b8..121d9d0191d 100644 --- a/tests/cli/Cli/Dispatcher/SetParamsCest.php +++ b/tests/cli/Cli/Dispatcher/SetParamsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/cli/Cli/Dispatcher/SetReturnedValueCest.php b/tests/cli/Cli/Dispatcher/SetReturnedValueCest.php index 41a6841476f..44df6318e82 100644 --- a/tests/cli/Cli/Dispatcher/SetReturnedValueCest.php +++ b/tests/cli/Cli/Dispatcher/SetReturnedValueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetReturnedValueCest /** * Tests Phalcon\Cli\Dispatcher :: setReturnedValue() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliDispatcherSetReturnedValue(CliTester $I) diff --git a/tests/cli/Cli/Dispatcher/SetTaskNameCest.php b/tests/cli/Cli/Dispatcher/SetTaskNameCest.php index 0a4d931c8a3..69b14bc4988 100644 --- a/tests/cli/Cli/Dispatcher/SetTaskNameCest.php +++ b/tests/cli/Cli/Dispatcher/SetTaskNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetTaskNameCest /** * Tests Phalcon\Cli\Dispatcher :: setTaskName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliDispatcherSetTaskName(CliTester $I) diff --git a/tests/cli/Cli/Dispatcher/SetTaskSuffixCest.php b/tests/cli/Cli/Dispatcher/SetTaskSuffixCest.php index 95233134eee..b2b8b61582f 100644 --- a/tests/cli/Cli/Dispatcher/SetTaskSuffixCest.php +++ b/tests/cli/Cli/Dispatcher/SetTaskSuffixCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetTaskSuffixCest /** * Tests Phalcon\Cli\Dispatcher :: setTaskSuffix() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliDispatcherSetTaskSuffix(CliTester $I) diff --git a/tests/cli/Cli/Dispatcher/WasForwardedCest.php b/tests/cli/Cli/Dispatcher/WasForwardedCest.php index e17bceb5744..4fe163a8499 100644 --- a/tests/cli/Cli/Dispatcher/WasForwardedCest.php +++ b/tests/cli/Cli/Dispatcher/WasForwardedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class WasForwardedCest /** * Tests Phalcon\Cli\Dispatcher :: wasForwarded() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliDispatcherWasForwarded(CliTester $I) diff --git a/tests/cli/Cli/DispatcherCest.php b/tests/cli/Cli/DispatcherCest.php index f6d7991ca22..8030fd90fb9 100644 --- a/tests/cli/Cli/DispatcherCest.php +++ b/tests/cli/Cli/DispatcherCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/cli/Cli/Router/AddCest.php b/tests/cli/Cli/Router/AddCest.php index 0ac59fbf0c4..3b9a8341d96 100644 --- a/tests/cli/Cli/Router/AddCest.php +++ b/tests/cli/Cli/Router/AddCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class AddCest /** * Tests Phalcon\Cli\Router :: add() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliRouterAdd(CliTester $I) diff --git a/tests/cli/Cli/Router/ConstructCest.php b/tests/cli/Cli/Router/ConstructCest.php index 65e6e560cad..01e0f823821 100644 --- a/tests/cli/Cli/Router/ConstructCest.php +++ b/tests/cli/Cli/Router/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ConstructCest /** * Tests Phalcon\Cli\Router :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliRouterConstruct(CliTester $I) diff --git a/tests/cli/Cli/Router/GetActionNameCest.php b/tests/cli/Cli/Router/GetActionNameCest.php index 2045495faea..bb7e8155960 100644 --- a/tests/cli/Cli/Router/GetActionNameCest.php +++ b/tests/cli/Cli/Router/GetActionNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetActionNameCest /** * Tests Phalcon\Cli\Router :: getActionName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliRouterGetActionName(CliTester $I) diff --git a/tests/cli/Cli/Router/GetMatchedRouteCest.php b/tests/cli/Cli/Router/GetMatchedRouteCest.php index c2a4eee51f1..c84b01f53fb 100644 --- a/tests/cli/Cli/Router/GetMatchedRouteCest.php +++ b/tests/cli/Cli/Router/GetMatchedRouteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetMatchedRouteCest /** * Tests Phalcon\Cli\Router :: getMatchedRoute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliRouterGetMatchedRoute(CliTester $I) diff --git a/tests/cli/Cli/Router/GetMatchesCest.php b/tests/cli/Cli/Router/GetMatchesCest.php index cdce2fc54cd..ba116b1f84f 100644 --- a/tests/cli/Cli/Router/GetMatchesCest.php +++ b/tests/cli/Cli/Router/GetMatchesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetMatchesCest /** * Tests Phalcon\Cli\Router :: getMatches() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliRouterGetMatches(CliTester $I) diff --git a/tests/cli/Cli/Router/GetModuleNameCest.php b/tests/cli/Cli/Router/GetModuleNameCest.php index b895fbb3651..9b1f9615d39 100644 --- a/tests/cli/Cli/Router/GetModuleNameCest.php +++ b/tests/cli/Cli/Router/GetModuleNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetModuleNameCest /** * Tests Phalcon\Cli\Router :: getModuleName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliRouterGetModuleName(CliTester $I) diff --git a/tests/cli/Cli/Router/GetParamsCest.php b/tests/cli/Cli/Router/GetParamsCest.php index b91bb69e778..25e32d11c3a 100644 --- a/tests/cli/Cli/Router/GetParamsCest.php +++ b/tests/cli/Cli/Router/GetParamsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetParamsCest /** * Tests Phalcon\Cli\Router :: getParams() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliRouterGetParams(CliTester $I) diff --git a/tests/cli/Cli/Router/GetRouteByIdCest.php b/tests/cli/Cli/Router/GetRouteByIdCest.php index e717019743c..549a3f395bc 100644 --- a/tests/cli/Cli/Router/GetRouteByIdCest.php +++ b/tests/cli/Cli/Router/GetRouteByIdCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/cli/Cli/Router/GetRouteByNameCest.php b/tests/cli/Cli/Router/GetRouteByNameCest.php index 01c68a3dac4..ff735664841 100644 --- a/tests/cli/Cli/Router/GetRouteByNameCest.php +++ b/tests/cli/Cli/Router/GetRouteByNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/cli/Cli/Router/GetRoutesCest.php b/tests/cli/Cli/Router/GetRoutesCest.php index 035e3ffb4c5..a09178b5d3d 100644 --- a/tests/cli/Cli/Router/GetRoutesCest.php +++ b/tests/cli/Cli/Router/GetRoutesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/cli/Cli/Router/GetSetDICest.php b/tests/cli/Cli/Router/GetSetDICest.php index c78a02009fe..fe3c33c23c5 100644 --- a/tests/cli/Cli/Router/GetSetDICest.php +++ b/tests/cli/Cli/Router/GetSetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/cli/Cli/Router/GetTaskNameCest.php b/tests/cli/Cli/Router/GetTaskNameCest.php index 7e8d5f7e64e..7fd9d940d82 100644 --- a/tests/cli/Cli/Router/GetTaskNameCest.php +++ b/tests/cli/Cli/Router/GetTaskNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetTaskNameCest /** * Tests Phalcon\Cli\Router :: getTaskName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliRouterGetTaskName(CliTester $I) diff --git a/tests/cli/Cli/Router/HandleCest.php b/tests/cli/Cli/Router/HandleCest.php index eb134b7ff1b..c7cfa375063 100644 --- a/tests/cli/Cli/Router/HandleCest.php +++ b/tests/cli/Cli/Router/HandleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class HandleCest /** * Tests Phalcon\Cli\Router :: handle() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliRouterHandle(CliTester $I) diff --git a/tests/cli/Cli/Router/Route/BeforeMatchCest.php b/tests/cli/Cli/Router/Route/BeforeMatchCest.php index 74f577d48df..01ccffc325b 100644 --- a/tests/cli/Cli/Router/Route/BeforeMatchCest.php +++ b/tests/cli/Cli/Router/Route/BeforeMatchCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/cli/Cli/Router/Route/CompilePatternCest.php b/tests/cli/Cli/Router/Route/CompilePatternCest.php index 21759e43e2f..964121faef0 100644 --- a/tests/cli/Cli/Router/Route/CompilePatternCest.php +++ b/tests/cli/Cli/Router/Route/CompilePatternCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class CompilePatternCest /** * Tests Phalcon\Cli\Router\Route :: compilePattern() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliRouterRouteCompilePattern(CliTester $I) diff --git a/tests/cli/Cli/Router/Route/ConstructCest.php b/tests/cli/Cli/Router/Route/ConstructCest.php index f7ee5e208f6..6860fd74cfb 100644 --- a/tests/cli/Cli/Router/Route/ConstructCest.php +++ b/tests/cli/Cli/Router/Route/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ConstructCest /** * Tests Phalcon\Cli\Router\Route :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliRouterRouteConstruct(CliTester $I) diff --git a/tests/cli/Cli/Router/Route/ConvertCest.php b/tests/cli/Cli/Router/Route/ConvertCest.php index d9300ac422c..f1d5a15bb98 100644 --- a/tests/cli/Cli/Router/Route/ConvertCest.php +++ b/tests/cli/Cli/Router/Route/ConvertCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/cli/Cli/Router/Route/DelimiterCest.php b/tests/cli/Cli/Router/Route/DelimiterCest.php index 839daacb205..58eb985deef 100644 --- a/tests/cli/Cli/Router/Route/DelimiterCest.php +++ b/tests/cli/Cli/Router/Route/DelimiterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class DelimiterCest /** * Tests Phalcon\Cli\Router\Route :: delimiter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliRouterRouteDelimiter(CliTester $I) diff --git a/tests/cli/Cli/Router/Route/ExtractNamedParamsCest.php b/tests/cli/Cli/Router/Route/ExtractNamedParamsCest.php index 1b31b72b9f0..60d157dc43a 100644 --- a/tests/cli/Cli/Router/Route/ExtractNamedParamsCest.php +++ b/tests/cli/Cli/Router/Route/ExtractNamedParamsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ExtractNamedParamsCest /** * Tests Phalcon\Cli\Router\Route :: extractNamedParams() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliRouterRouteExtractNamedParams(CliTester $I) diff --git a/tests/cli/Cli/Router/Route/GetBeforeMatchCest.php b/tests/cli/Cli/Router/Route/GetBeforeMatchCest.php index 07103b7d471..b3beeb6bc53 100644 --- a/tests/cli/Cli/Router/Route/GetBeforeMatchCest.php +++ b/tests/cli/Cli/Router/Route/GetBeforeMatchCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetBeforeMatchCest /** * Tests Phalcon\Cli\Router\Route :: getBeforeMatch() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliRouterRouteGetBeforeMatch(CliTester $I) diff --git a/tests/cli/Cli/Router/Route/GetCompiledPatternCest.php b/tests/cli/Cli/Router/Route/GetCompiledPatternCest.php index c38b47a1eb7..11641644f44 100644 --- a/tests/cli/Cli/Router/Route/GetCompiledPatternCest.php +++ b/tests/cli/Cli/Router/Route/GetCompiledPatternCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetCompiledPatternCest /** * Tests Phalcon\Cli\Router\Route :: getCompiledPattern() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliRouterRouteGetCompiledPattern(CliTester $I) diff --git a/tests/cli/Cli/Router/Route/GetConvertersCest.php b/tests/cli/Cli/Router/Route/GetConvertersCest.php index 36047cec7c5..e8e26e0412c 100644 --- a/tests/cli/Cli/Router/Route/GetConvertersCest.php +++ b/tests/cli/Cli/Router/Route/GetConvertersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetConvertersCest /** * Tests Phalcon\Cli\Router\Route :: getConverters() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliRouterRouteGetConverters(CliTester $I) diff --git a/tests/cli/Cli/Router/Route/GetDelimiterCest.php b/tests/cli/Cli/Router/Route/GetDelimiterCest.php index bdccea266db..3929b9ddcb4 100644 --- a/tests/cli/Cli/Router/Route/GetDelimiterCest.php +++ b/tests/cli/Cli/Router/Route/GetDelimiterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetDelimiterCest /** * Tests Phalcon\Cli\Router\Route :: getDelimiter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliRouterRouteGetDelimiter(CliTester $I) diff --git a/tests/cli/Cli/Router/Route/GetDescriptionCest.php b/tests/cli/Cli/Router/Route/GetDescriptionCest.php index 80021a58cab..2d09e48e354 100644 --- a/tests/cli/Cli/Router/Route/GetDescriptionCest.php +++ b/tests/cli/Cli/Router/Route/GetDescriptionCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/cli/Cli/Router/Route/GetNameCest.php b/tests/cli/Cli/Router/Route/GetNameCest.php index 5e9bd491565..338e87ffec4 100644 --- a/tests/cli/Cli/Router/Route/GetNameCest.php +++ b/tests/cli/Cli/Router/Route/GetNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetNameCest /** * Tests Phalcon\Cli\Router\Route :: getName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliRouterRouteGetName(CliTester $I) diff --git a/tests/cli/Cli/Router/Route/GetPathsCest.php b/tests/cli/Cli/Router/Route/GetPathsCest.php index db1d7c39991..a48ccb28aaf 100644 --- a/tests/cli/Cli/Router/Route/GetPathsCest.php +++ b/tests/cli/Cli/Router/Route/GetPathsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/cli/Cli/Router/Route/GetPatternCest.php b/tests/cli/Cli/Router/Route/GetPatternCest.php index 079c231620a..fc9bae6f1fa 100644 --- a/tests/cli/Cli/Router/Route/GetPatternCest.php +++ b/tests/cli/Cli/Router/Route/GetPatternCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetPatternCest /** * Tests Phalcon\Cli\Router\Route :: getPattern() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliRouterRouteGetPattern(CliTester $I) diff --git a/tests/cli/Cli/Router/Route/GetReversedPathsCest.php b/tests/cli/Cli/Router/Route/GetReversedPathsCest.php index 232d2fe98f5..1e740fbaedc 100644 --- a/tests/cli/Cli/Router/Route/GetReversedPathsCest.php +++ b/tests/cli/Cli/Router/Route/GetReversedPathsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/cli/Cli/Router/Route/GetRouteIdCest.php b/tests/cli/Cli/Router/Route/GetRouteIdCest.php index c455402f588..bde10730339 100644 --- a/tests/cli/Cli/Router/Route/GetRouteIdCest.php +++ b/tests/cli/Cli/Router/Route/GetRouteIdCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetRouteIdCest /** * Tests Phalcon\Cli\Router\Route :: getRouteId() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliRouterRouteGetRouteId(CliTester $I) diff --git a/tests/cli/Cli/Router/Route/ReConfigureCest.php b/tests/cli/Cli/Router/Route/ReConfigureCest.php index a7223fa5ba8..8464ddbfb1e 100644 --- a/tests/cli/Cli/Router/Route/ReConfigureCest.php +++ b/tests/cli/Cli/Router/Route/ReConfigureCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ReConfigureCest /** * Tests Phalcon\Cli\Router\Route :: reConfigure() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliRouterRouteReConfigure(CliTester $I) diff --git a/tests/cli/Cli/Router/Route/ResetCest.php b/tests/cli/Cli/Router/Route/ResetCest.php index 9787b3d7325..f083d4a614c 100644 --- a/tests/cli/Cli/Router/Route/ResetCest.php +++ b/tests/cli/Cli/Router/Route/ResetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ResetCest /** * Tests Phalcon\Cli\Router\Route :: reset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliRouterRouteReset(CliTester $I) diff --git a/tests/cli/Cli/Router/Route/SetDescriptionCest.php b/tests/cli/Cli/Router/Route/SetDescriptionCest.php index 6488ee0dde1..00c5acb58ef 100644 --- a/tests/cli/Cli/Router/Route/SetDescriptionCest.php +++ b/tests/cli/Cli/Router/Route/SetDescriptionCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/cli/Cli/Router/Route/SetNameCest.php b/tests/cli/Cli/Router/Route/SetNameCest.php index 69d49b4f1e7..2c7f3ef580e 100644 --- a/tests/cli/Cli/Router/Route/SetNameCest.php +++ b/tests/cli/Cli/Router/Route/SetNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetNameCest /** * Tests Phalcon\Cli\Router\Route :: setName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliRouterRouteSetName(CliTester $I) diff --git a/tests/cli/Cli/Router/SetDefaultActionCest.php b/tests/cli/Cli/Router/SetDefaultActionCest.php index 926daf76137..521bfb5d118 100644 --- a/tests/cli/Cli/Router/SetDefaultActionCest.php +++ b/tests/cli/Cli/Router/SetDefaultActionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetDefaultActionCest /** * Tests Phalcon\Cli\Router :: setDefaultAction() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliRouterSetDefaultAction(CliTester $I) diff --git a/tests/cli/Cli/Router/SetDefaultModuleCest.php b/tests/cli/Cli/Router/SetDefaultModuleCest.php index 9d5e83204a8..8d86262a45c 100644 --- a/tests/cli/Cli/Router/SetDefaultModuleCest.php +++ b/tests/cli/Cli/Router/SetDefaultModuleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetDefaultModuleCest /** * Tests Phalcon\Cli\Router :: setDefaultModule() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliRouterSetDefaultModule(CliTester $I) diff --git a/tests/cli/Cli/Router/SetDefaultTaskCest.php b/tests/cli/Cli/Router/SetDefaultTaskCest.php index 0a6fbec60fa..3876ec913df 100644 --- a/tests/cli/Cli/Router/SetDefaultTaskCest.php +++ b/tests/cli/Cli/Router/SetDefaultTaskCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetDefaultTaskCest /** * Tests Phalcon\Cli\Router :: setDefaultTask() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliRouterSetDefaultTask(CliTester $I) diff --git a/tests/cli/Cli/Router/SetDefaultsCest.php b/tests/cli/Cli/Router/SetDefaultsCest.php index 89669821d58..25524966e5d 100644 --- a/tests/cli/Cli/Router/SetDefaultsCest.php +++ b/tests/cli/Cli/Router/SetDefaultsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetDefaultsCest /** * Tests Phalcon\Cli\Router :: setDefaults() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliRouterSetDefaults(CliTester $I) diff --git a/tests/cli/Cli/Router/WasMatchedCest.php b/tests/cli/Cli/Router/WasMatchedCest.php index 69103f31903..34eefdfa3bb 100644 --- a/tests/cli/Cli/Router/WasMatchedCest.php +++ b/tests/cli/Cli/Router/WasMatchedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class WasMatchedCest /** * Tests Phalcon\Cli\Router :: wasMatched() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliRouterWasMatched(CliTester $I) diff --git a/tests/cli/Cli/RouterCest.php b/tests/cli/Cli/RouterCest.php index 684152bf7c7..6d6b9d24f24 100644 --- a/tests/cli/Cli/RouterCest.php +++ b/tests/cli/Cli/RouterCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/cli/Cli/Task/ConstructCest.php b/tests/cli/Cli/Task/ConstructCest.php index cc2779aaebd..fb3e59f3cdd 100644 --- a/tests/cli/Cli/Task/ConstructCest.php +++ b/tests/cli/Cli/Task/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -28,7 +28,7 @@ public function _before(CliTester $I) /** * Tests Phalcon\Cli\Task :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliTaskConstruct(CliTester $I) diff --git a/tests/cli/Cli/Task/GetEventsManagerCest.php b/tests/cli/Cli/Task/GetEventsManagerCest.php index 2d3971d8540..6977e02f51c 100644 --- a/tests/cli/Cli/Task/GetEventsManagerCest.php +++ b/tests/cli/Cli/Task/GetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetEventsManagerCest /** * Tests Phalcon\Cli\Task :: getEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliTaskGetEventsManager(CliTester $I) diff --git a/tests/cli/Cli/Task/GetSetDICest.php b/tests/cli/Cli/Task/GetSetDICest.php index 8aa24756ffd..19426c9679e 100644 --- a/tests/cli/Cli/Task/GetSetDICest.php +++ b/tests/cli/Cli/Task/GetSetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetSetDICest /** * Tests Phalcon\Cli\Task :: getDI() / setDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliTaskGetSetDI(CliTester $I) diff --git a/tests/cli/Cli/Task/SetEventsManagerCest.php b/tests/cli/Cli/Task/SetEventsManagerCest.php index 54d0b91f147..4f842d88f96 100644 --- a/tests/cli/Cli/Task/SetEventsManagerCest.php +++ b/tests/cli/Cli/Task/SetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetEventsManagerCest /** * Tests Phalcon\Cli\Task :: setEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliTaskSetEventsManager(CliTester $I) diff --git a/tests/cli/Cli/Task/UnderscoreGetCest.php b/tests/cli/Cli/Task/UnderscoreGetCest.php index 274800f98ba..6b265afd2c5 100644 --- a/tests/cli/Cli/Task/UnderscoreGetCest.php +++ b/tests/cli/Cli/Task/UnderscoreGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class UnderscoreGetCest /** * Tests Phalcon\Cli\Task :: __get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cliTaskUnderscoreGet(CliTester $I) diff --git a/tests/cli/Cli/TaskCest.php b/tests/cli/Cli/TaskCest.php index 6728b66d2af..b96003dc6d7 100644 --- a/tests/cli/Cli/TaskCest.php +++ b/tests/cli/Cli/TaskCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/cli/Di/FactoryDefault/Cli/AttemptCest.php b/tests/cli/Di/FactoryDefault/Cli/AttemptCest.php index 90e5fd64842..44fcfc6a89f 100644 --- a/tests/cli/Di/FactoryDefault/Cli/AttemptCest.php +++ b/tests/cli/Di/FactoryDefault/Cli/AttemptCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class AttemptCest /** * Tests Phalcon\Di\FactoryDefault\Cli :: attempt() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function diFactorydefaultCliAttempt(CliTester $I) diff --git a/tests/cli/Di/FactoryDefault/Cli/ConstructCest.php b/tests/cli/Di/FactoryDefault/Cli/ConstructCest.php index 584d0b9fc1a..8bae17a3313 100644 --- a/tests/cli/Di/FactoryDefault/Cli/ConstructCest.php +++ b/tests/cli/Di/FactoryDefault/Cli/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -28,7 +28,7 @@ class ConstructCest /** * Tests Phalcon\Di\FactoryDefault\Cli :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function diFactorydefaultCliConstruct(CliTester $I) @@ -102,7 +102,7 @@ private function getServices(): array /** * Tests Phalcon\Di\FactoryDefault\Cli :: __construct() - Check services * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider getServices diff --git a/tests/cli/Di/FactoryDefault/Cli/GetCest.php b/tests/cli/Di/FactoryDefault/Cli/GetCest.php index 71b5e572a01..b59a5a86673 100644 --- a/tests/cli/Di/FactoryDefault/Cli/GetCest.php +++ b/tests/cli/Di/FactoryDefault/Cli/GetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetCest /** * Tests Phalcon\Di\FactoryDefault\Cli :: get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function diFactorydefaultCliGet(CliTester $I) diff --git a/tests/cli/Di/FactoryDefault/Cli/GetDefaultCest.php b/tests/cli/Di/FactoryDefault/Cli/GetDefaultCest.php index 44343ace80b..7886caffe6a 100644 --- a/tests/cli/Di/FactoryDefault/Cli/GetDefaultCest.php +++ b/tests/cli/Di/FactoryDefault/Cli/GetDefaultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetDefaultCest /** * Tests Phalcon\Di\FactoryDefault\Cli :: getDefault() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function diFactorydefaultCliGetDefault(CliTester $I) diff --git a/tests/cli/Di/FactoryDefault/Cli/GetInternalEventsManagerCest.php b/tests/cli/Di/FactoryDefault/Cli/GetInternalEventsManagerCest.php index 9176f8d3517..6df953113dc 100644 --- a/tests/cli/Di/FactoryDefault/Cli/GetInternalEventsManagerCest.php +++ b/tests/cli/Di/FactoryDefault/Cli/GetInternalEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetInternalEventsManagerCest /** * Tests Phalcon\Di\FactoryDefault\Cli :: getInternalEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function diFactorydefaultCliGetInternalEventsManager(CliTester $I) diff --git a/tests/cli/Di/FactoryDefault/Cli/GetRawCest.php b/tests/cli/Di/FactoryDefault/Cli/GetRawCest.php index 7ff03120f6d..841ac5ec234 100644 --- a/tests/cli/Di/FactoryDefault/Cli/GetRawCest.php +++ b/tests/cli/Di/FactoryDefault/Cli/GetRawCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetRawCest /** * Tests Phalcon\Di\FactoryDefault\Cli :: getRaw() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function diFactorydefaultCliGetRaw(CliTester $I) diff --git a/tests/cli/Di/FactoryDefault/Cli/GetServiceCest.php b/tests/cli/Di/FactoryDefault/Cli/GetServiceCest.php index b2a19839bcd..7d3183b97a5 100644 --- a/tests/cli/Di/FactoryDefault/Cli/GetServiceCest.php +++ b/tests/cli/Di/FactoryDefault/Cli/GetServiceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetServiceCest /** * Tests Phalcon\Di\FactoryDefault\Cli :: getService() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function diFactorydefaultCliGetService(CliTester $I) diff --git a/tests/cli/Di/FactoryDefault/Cli/GetServicesCest.php b/tests/cli/Di/FactoryDefault/Cli/GetServicesCest.php index a756bdc49f4..64359c6f67b 100644 --- a/tests/cli/Di/FactoryDefault/Cli/GetServicesCest.php +++ b/tests/cli/Di/FactoryDefault/Cli/GetServicesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetServicesCest /** * Tests Phalcon\Di\FactoryDefault\Cli :: getServices() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function diFactorydefaultCliGetServices(CliTester $I) diff --git a/tests/cli/Di/FactoryDefault/Cli/GetSharedCest.php b/tests/cli/Di/FactoryDefault/Cli/GetSharedCest.php index 3641abe0193..466ed945212 100644 --- a/tests/cli/Di/FactoryDefault/Cli/GetSharedCest.php +++ b/tests/cli/Di/FactoryDefault/Cli/GetSharedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetSharedCest /** * Tests Phalcon\Di\FactoryDefault\Cli :: getShared() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function diFactorydefaultCliGetShared(CliTester $I) diff --git a/tests/cli/Di/FactoryDefault/Cli/HasCest.php b/tests/cli/Di/FactoryDefault/Cli/HasCest.php index 5253af5ff81..d4f32cfe6a9 100644 --- a/tests/cli/Di/FactoryDefault/Cli/HasCest.php +++ b/tests/cli/Di/FactoryDefault/Cli/HasCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class HasCest /** * Tests Phalcon\Di\FactoryDefault\Cli :: has() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function diFactorydefaultCliHas(CliTester $I) diff --git a/tests/cli/Di/FactoryDefault/Cli/LoadFromPhpCest.php b/tests/cli/Di/FactoryDefault/Cli/LoadFromPhpCest.php index a854a400f2d..ad58c6e6d24 100644 --- a/tests/cli/Di/FactoryDefault/Cli/LoadFromPhpCest.php +++ b/tests/cli/Di/FactoryDefault/Cli/LoadFromPhpCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class LoadFromPhpCest /** * Tests Phalcon\Di\FactoryDefault\Cli :: loadFromPhp() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function diFactorydefaultCliLoadFromPhp(CliTester $I) diff --git a/tests/cli/Di/FactoryDefault/Cli/LoadFromYamlCest.php b/tests/cli/Di/FactoryDefault/Cli/LoadFromYamlCest.php index 6b4f5a36082..a0d0616ca75 100644 --- a/tests/cli/Di/FactoryDefault/Cli/LoadFromYamlCest.php +++ b/tests/cli/Di/FactoryDefault/Cli/LoadFromYamlCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class LoadFromYamlCest /** * Tests Phalcon\Di\FactoryDefault\Cli :: loadFromYaml() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function diFactorydefaultCliLoadFromYaml(CliTester $I) diff --git a/tests/cli/Di/FactoryDefault/Cli/OffsetExistsCest.php b/tests/cli/Di/FactoryDefault/Cli/OffsetExistsCest.php index 9eac2b2413c..cf945c85bfb 100644 --- a/tests/cli/Di/FactoryDefault/Cli/OffsetExistsCest.php +++ b/tests/cli/Di/FactoryDefault/Cli/OffsetExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class OffsetExistsCest /** * Tests Phalcon\Di\FactoryDefault\Cli :: offsetExists() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function diFactorydefaultCliOffsetExists(CliTester $I) diff --git a/tests/cli/Di/FactoryDefault/Cli/OffsetGetCest.php b/tests/cli/Di/FactoryDefault/Cli/OffsetGetCest.php index 98b70f75fe0..5e6c0c23537 100644 --- a/tests/cli/Di/FactoryDefault/Cli/OffsetGetCest.php +++ b/tests/cli/Di/FactoryDefault/Cli/OffsetGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class OffsetGetCest /** * Tests Phalcon\Di\FactoryDefault\Cli :: offsetGet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function diFactorydefaultCliOffsetGet(CliTester $I) diff --git a/tests/cli/Di/FactoryDefault/Cli/OffsetSetCest.php b/tests/cli/Di/FactoryDefault/Cli/OffsetSetCest.php index 4524e0b0ed2..bd26468dd6f 100644 --- a/tests/cli/Di/FactoryDefault/Cli/OffsetSetCest.php +++ b/tests/cli/Di/FactoryDefault/Cli/OffsetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class OffsetSetCest /** * Tests Phalcon\Di\FactoryDefault\Cli :: offsetSet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function diFactorydefaultCliOffsetSet(CliTester $I) diff --git a/tests/cli/Di/FactoryDefault/Cli/OffsetUnsetCest.php b/tests/cli/Di/FactoryDefault/Cli/OffsetUnsetCest.php index 2b7a59079dd..44f7f12e3bd 100644 --- a/tests/cli/Di/FactoryDefault/Cli/OffsetUnsetCest.php +++ b/tests/cli/Di/FactoryDefault/Cli/OffsetUnsetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class OffsetUnsetCest /** * Tests Phalcon\Di\FactoryDefault\Cli :: offsetUnset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function diFactorydefaultCliOffsetUnset(CliTester $I) diff --git a/tests/cli/Di/FactoryDefault/Cli/RegisterCest.php b/tests/cli/Di/FactoryDefault/Cli/RegisterCest.php index 0d2ca72d810..7c8b24845d3 100644 --- a/tests/cli/Di/FactoryDefault/Cli/RegisterCest.php +++ b/tests/cli/Di/FactoryDefault/Cli/RegisterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class RegisterCest /** * Tests Phalcon\Di\FactoryDefault\Cli :: register() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function diFactorydefaultCliRegister(CliTester $I) diff --git a/tests/cli/Di/FactoryDefault/Cli/RemoveCest.php b/tests/cli/Di/FactoryDefault/Cli/RemoveCest.php index fdfad522999..5681786995b 100644 --- a/tests/cli/Di/FactoryDefault/Cli/RemoveCest.php +++ b/tests/cli/Di/FactoryDefault/Cli/RemoveCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class RemoveCest /** * Tests Phalcon\Di\FactoryDefault\Cli :: remove() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function diFactorydefaultCliRemove(CliTester $I) diff --git a/tests/cli/Di/FactoryDefault/Cli/ResetCest.php b/tests/cli/Di/FactoryDefault/Cli/ResetCest.php index 37f4c677e51..b0515629024 100644 --- a/tests/cli/Di/FactoryDefault/Cli/ResetCest.php +++ b/tests/cli/Di/FactoryDefault/Cli/ResetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ResetCest /** * Tests Phalcon\Di\FactoryDefault\Cli :: reset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function diFactorydefaultCliReset(CliTester $I) diff --git a/tests/cli/Di/FactoryDefault/Cli/SetCest.php b/tests/cli/Di/FactoryDefault/Cli/SetCest.php index d33553123d9..f891e2b611b 100644 --- a/tests/cli/Di/FactoryDefault/Cli/SetCest.php +++ b/tests/cli/Di/FactoryDefault/Cli/SetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetCest /** * Tests Phalcon\Di\FactoryDefault\Cli :: set() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function diFactorydefaultCliSet(CliTester $I) diff --git a/tests/cli/Di/FactoryDefault/Cli/SetDefaultCest.php b/tests/cli/Di/FactoryDefault/Cli/SetDefaultCest.php index 84357a5c569..18bc924e555 100644 --- a/tests/cli/Di/FactoryDefault/Cli/SetDefaultCest.php +++ b/tests/cli/Di/FactoryDefault/Cli/SetDefaultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetDefaultCest /** * Tests Phalcon\Di\FactoryDefault\Cli :: setDefault() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function diFactorydefaultCliSetDefault(CliTester $I) diff --git a/tests/cli/Di/FactoryDefault/Cli/SetInternalEventsManagerCest.php b/tests/cli/Di/FactoryDefault/Cli/SetInternalEventsManagerCest.php index 04d8da51ab7..8b17e99e2db 100644 --- a/tests/cli/Di/FactoryDefault/Cli/SetInternalEventsManagerCest.php +++ b/tests/cli/Di/FactoryDefault/Cli/SetInternalEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetInternalEventsManagerCest /** * Tests Phalcon\Di\FactoryDefault\Cli :: setInternalEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function diFactorydefaultCliSetInternalEventsManager(CliTester $I) diff --git a/tests/cli/Di/FactoryDefault/Cli/SetRawCest.php b/tests/cli/Di/FactoryDefault/Cli/SetRawCest.php index 1bb7f46f5b1..23dc840e06a 100644 --- a/tests/cli/Di/FactoryDefault/Cli/SetRawCest.php +++ b/tests/cli/Di/FactoryDefault/Cli/SetRawCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetRawCest /** * Tests Phalcon\Di\FactoryDefault\Cli :: setRaw() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function diFactorydefaultCliSetRaw(CliTester $I) diff --git a/tests/cli/Di/FactoryDefault/Cli/SetSharedCest.php b/tests/cli/Di/FactoryDefault/Cli/SetSharedCest.php index 3a416b63c0a..b1a7c38ee4c 100644 --- a/tests/cli/Di/FactoryDefault/Cli/SetSharedCest.php +++ b/tests/cli/Di/FactoryDefault/Cli/SetSharedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetSharedCest /** * Tests Phalcon\Di\FactoryDefault\Cli :: setShared() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function diFactorydefaultCliSetShared(CliTester $I) diff --git a/tests/cli/Di/FactoryDefault/Cli/UnderscoreCallCest.php b/tests/cli/Di/FactoryDefault/Cli/UnderscoreCallCest.php index 8a1bd9e051e..f7daef69583 100644 --- a/tests/cli/Di/FactoryDefault/Cli/UnderscoreCallCest.php +++ b/tests/cli/Di/FactoryDefault/Cli/UnderscoreCallCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class UnderscoreCallCest /** * Tests Phalcon\Di\FactoryDefault\Cli :: __call() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function diFactorydefaultCliUnderscoreCall(CliTester $I) diff --git a/tests/cli/Di/FactoryDefault/Cli/WasFreshInstanceCest.php b/tests/cli/Di/FactoryDefault/Cli/WasFreshInstanceCest.php index 2100201e94e..7d003956b43 100644 --- a/tests/cli/Di/FactoryDefault/Cli/WasFreshInstanceCest.php +++ b/tests/cli/Di/FactoryDefault/Cli/WasFreshInstanceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class WasFreshInstanceCest /** * Tests Phalcon\Di\FactoryDefault\Cli :: wasFreshInstance() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function diFactorydefaultCliWasFreshInstance(CliTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/DbDescribeMysqlCest.php b/tests/integration/Db/Adapter/Pdo/DbDescribeMysqlCest.php index 88780de56fe..947c1097e38 100644 --- a/tests/integration/Db/Adapter/Pdo/DbDescribeMysqlCest.php +++ b/tests/integration/Db/Adapter/Pdo/DbDescribeMysqlCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -37,7 +37,7 @@ public function _after(IntegrationTester $I) /** * Tests Phalcon\Db :: Mysql * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbMySqlTableExists(IntegrationTester $I) @@ -64,7 +64,7 @@ public function dbMySqlTableExists(IntegrationTester $I) /** * Tests Phalcon\Db :: Mysql * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbMySqlDescribeColumns(IntegrationTester $I) @@ -85,7 +85,7 @@ public function dbMySqlDescribeColumns(IntegrationTester $I) /** * Tests Phalcon\Db :: Mysql * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbMySqlTableOptions(IntegrationTester $I) @@ -108,7 +108,7 @@ public function dbMySqlTableOptions(IntegrationTester $I) /** * Tests Phalcon\Db :: Mysql * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbMySqlDescribeIndexes(IntegrationTester $I) @@ -169,7 +169,7 @@ public function dbMySqlDescribeIndexes(IntegrationTester $I) /** * Tests Phalcon\Db :: Mysql * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbMySqlDescribeReferences(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/DbDescribePostgresqlCest.php b/tests/integration/Db/Adapter/Pdo/DbDescribePostgresqlCest.php index 49930736593..80fffab9a9a 100644 --- a/tests/integration/Db/Adapter/Pdo/DbDescribePostgresqlCest.php +++ b/tests/integration/Db/Adapter/Pdo/DbDescribePostgresqlCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -35,7 +35,7 @@ public function _after(IntegrationTester $I) /** * Tests Phalcon\Db :: Postgresql * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbPostgresqlDescribeColumns(IntegrationTester $I) @@ -58,7 +58,7 @@ public function dbPostgresqlDescribeColumns(IntegrationTester $I) /** * Tests Phalcon\Db :: Postgresql * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbPostgresqlDescribeIndexes(IntegrationTester $I) @@ -93,7 +93,7 @@ public function dbPostgresqlDescribeIndexes(IntegrationTester $I) /** * Tests Phalcon\Db :: Postgresql * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbPostgresqlDescribeReferences(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/AddColumnCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/AddColumnCest.php index f0f5d606276..129582275a2 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/AddColumnCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/AddColumnCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class AddColumnCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: addColumn() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlAddColumn(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/AddForeignKeyCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/AddForeignKeyCest.php index 77a2f3dd94a..b7574ddbc00 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/AddForeignKeyCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/AddForeignKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddForeignKeyCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: addForeignKey() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlAddForeignKey(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/AddIndexCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/AddIndexCest.php index 972417d4b99..fb564d0c487 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/AddIndexCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/AddIndexCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddIndexCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: addIndex() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlAddIndex(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/AddPrimaryKeyCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/AddPrimaryKeyCest.php index eefb7f10acb..63fc5f95ae0 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/AddPrimaryKeyCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/AddPrimaryKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddPrimaryKeyCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: addPrimaryKey() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlAddPrimaryKey(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/AffectedRowsCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/AffectedRowsCest.php index 5968ccb1442..22bff35468b 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/AffectedRowsCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/AffectedRowsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AffectedRowsCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: affectedRows() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlAffectedRows(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/BeginCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/BeginCest.php index f47c5514332..8742b0e4537 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/BeginCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/BeginCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class BeginCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: begin() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlBegin(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/CloseCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/CloseCest.php index fd7f8388ca3..874902663b7 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/CloseCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/CloseCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CloseCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: close() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlClose(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/CommitCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/CommitCest.php index a432087f59d..87ea60808e4 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/CommitCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/CommitCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CommitCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: commit() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlCommit(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/ConnectCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/ConnectCest.php index 132f0d86100..2e35a79c2ab 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/ConnectCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/ConnectCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConnectCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: connect() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlConnect(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/ConstructCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/ConstructCest.php index b43bad57e98..e848ad5f1c3 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/ConstructCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlConstruct(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/ConvertBoundParamsCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/ConvertBoundParamsCest.php index 1191dbca842..de241f28617 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/ConvertBoundParamsCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/ConvertBoundParamsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ConvertBoundParamsCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: convertBoundParams() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlConvertBoundParams(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/CreateSavepointCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/CreateSavepointCest.php index 54d8ce076e9..6ee868bc67a 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/CreateSavepointCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/CreateSavepointCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CreateSavepointCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: createSavepoint() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlCreateSavepoint(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/CreateTableCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/CreateTableCest.php index bb9eebaff2b..90b19a33fdd 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/CreateTableCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/CreateTableCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CreateTableCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: createTable() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlCreateTable(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/CreateViewCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/CreateViewCest.php index 8641e9f3391..94d251c190f 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/CreateViewCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/CreateViewCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CreateViewCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: createView() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlCreateView(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/DeleteCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/DeleteCest.php index 5f68eab4f86..42314336aed 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/DeleteCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/DeleteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class DeleteCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: delete() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlDelete(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/DescribeColumnsCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/DescribeColumnsCest.php index 48073bb2cec..eb43290a764 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/DescribeColumnsCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/DescribeColumnsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class DescribeColumnsCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: describeColumns() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlDescribeColumns(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/DescribeIndexesCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/DescribeIndexesCest.php index 973c8ea064f..8162ef1e114 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/DescribeIndexesCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/DescribeIndexesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class DescribeIndexesCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: describeIndexes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlDescribeIndexes(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/DescribeReferencesCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/DescribeReferencesCest.php index 30992fd8d47..60311a028c3 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/DescribeReferencesCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/DescribeReferencesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class DescribeReferencesCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: describeReferences() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlDescribeReferences(IntegrationTester $I) @@ -53,7 +53,7 @@ public function dbAdapterPdoMysqlDescribeReferences(IntegrationTester $I) /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: describeReferences() - count * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlDescribeReferencesCount(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/DropColumnCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/DropColumnCest.php index 8bacdf8e350..794f2c58746 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/DropColumnCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/DropColumnCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class DropColumnCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: dropColumn() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlDropColumn(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/DropForeignKeyCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/DropForeignKeyCest.php index 751e5321573..6ffd51e132e 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/DropForeignKeyCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/DropForeignKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class DropForeignKeyCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: dropForeignKey() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlDropForeignKey(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/DropIndexCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/DropIndexCest.php index 569b5f2e769..70b81675c5b 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/DropIndexCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/DropIndexCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class DropIndexCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: dropIndex() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlDropIndex(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/DropPrimaryKeyCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/DropPrimaryKeyCest.php index f270ef9e838..fdb178e4f69 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/DropPrimaryKeyCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/DropPrimaryKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class DropPrimaryKeyCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: dropPrimaryKey() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlDropPrimaryKey(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/DropTableCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/DropTableCest.php index ab71d5d05e6..70150fdf392 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/DropTableCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/DropTableCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class DropTableCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: dropTable() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlDropTable(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/DropViewCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/DropViewCest.php index 649b77107de..366c56c9c5e 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/DropViewCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/DropViewCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class DropViewCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: dropView() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlDropView(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/EscapeIdentifierCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/EscapeIdentifierCest.php index 4929e94fb6d..a5ab93b36ef 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/EscapeIdentifierCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/EscapeIdentifierCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/EscapeStringCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/EscapeStringCest.php index 5034456d85f..81db83ce153 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/EscapeStringCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/EscapeStringCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class EscapeStringCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: escapeString() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlEscapeString(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/ExecuteCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/ExecuteCest.php index 2a244a6e3d8..8f20820da39 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/ExecuteCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/ExecuteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ExecuteCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: execute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlExecute(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/ExecutePreparedCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/ExecutePreparedCest.php index c1e2125c08d..afdf2ea79c5 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/ExecutePreparedCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/ExecutePreparedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ExecutePreparedCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: executePrepared() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlExecutePrepared(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/FetchAllCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/FetchAllCest.php index f8d1ee4a620..a7484c92815 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/FetchAllCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/FetchAllCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class FetchAllCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: fetchAll() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlFetchAll(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/FetchColumnCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/FetchColumnCest.php index 0aec71b31ae..46da4b846be 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/FetchColumnCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/FetchColumnCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class FetchColumnCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: fetchColumn() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlFetchColumn(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/FetchOneCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/FetchOneCest.php index b2ea23a8084..3471c64f97b 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/FetchOneCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/FetchOneCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class FetchOneCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: fetchOne() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlFetchOne(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/ForUpdateCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/ForUpdateCest.php index 742fa9a432b..819f779ea84 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/ForUpdateCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/ForUpdateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ForUpdateCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: forUpdate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlForUpdate(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/GetColumnDefinitionCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/GetColumnDefinitionCest.php index 2efeca6975c..902049f4616 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/GetColumnDefinitionCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/GetColumnDefinitionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetColumnDefinitionCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: getColumnDefinition() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlGetColumnDefinition(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/GetColumnListCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/GetColumnListCest.php index 24f4cc0e5ed..7f09cf0ab73 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/GetColumnListCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/GetColumnListCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetColumnListCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: getColumnList() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlGetColumnList(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/GetConnectionIdCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/GetConnectionIdCest.php index 033277f8639..d9bb723d64a 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/GetConnectionIdCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/GetConnectionIdCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetConnectionIdCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: getConnectionId() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlGetConnectionId(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/GetDefaultIdValueCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/GetDefaultIdValueCest.php index 5a1e09bdb7f..1b12f9920eb 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/GetDefaultIdValueCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/GetDefaultIdValueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDefaultIdValueCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: getDefaultIdValue() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlGetDefaultIdValue(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/GetDefaultValueCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/GetDefaultValueCest.php index 526e79d276c..df9592290be 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/GetDefaultValueCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/GetDefaultValueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetDefaultValueCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: getDefaultValue() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlGetDefaultValue(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/GetDescriptorCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/GetDescriptorCest.php index 5ea3cfd95dc..6b0b7b6ddb1 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/GetDescriptorCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/GetDescriptorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDescriptorCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: getDescriptor() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlGetDescriptor(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/GetDialectCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/GetDialectCest.php index d38ad50b3bc..368dafe67d7 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/GetDialectCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/GetDialectCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDialectCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: getDialect() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlGetDialect(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/GetDialectTypeCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/GetDialectTypeCest.php index fde88f12585..005f8b75120 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/GetDialectTypeCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/GetDialectTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDialectTypeCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: getDialectType() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlGetDialectType(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/GetErrorInfoCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/GetErrorInfoCest.php index 272aa3bd503..f6e6694165d 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/GetErrorInfoCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/GetErrorInfoCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetErrorInfoCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: getErrorInfo() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlGetErrorInfo(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/GetEventsManagerCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/GetEventsManagerCest.php index cb900bbd3d4..32ce8c11780 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/GetEventsManagerCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/GetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetEventsManagerCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: getEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlGetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/GetInternalHandlerCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/GetInternalHandlerCest.php index 450051a568b..1790e58bc57 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/GetInternalHandlerCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/GetInternalHandlerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetInternalHandlerCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: getInternalHandler() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlGetInternalHandler(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/GetNestedTransactionSavepointNameCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/GetNestedTransactionSavepointNameCest.php index b9ea9752e64..21c807d6d40 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/GetNestedTransactionSavepointNameCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/GetNestedTransactionSavepointNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetNestedTransactionSavepointNameCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: getNestedTransactionSavepointName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlGetNestedTransactionSavepointName(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/GetRealSQLStatementCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/GetRealSQLStatementCest.php index 19ff3f05be6..caa7e03478b 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/GetRealSQLStatementCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/GetRealSQLStatementCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetRealSQLStatementCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: getRealSQLStatement() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlGetRealSQLStatement(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/GetSQLBindTypesCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/GetSQLBindTypesCest.php index 0219978626b..4148d952695 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/GetSQLBindTypesCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/GetSQLBindTypesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetSQLBindTypesCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: getSQLBindTypes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlGetSQLBindTypes(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/GetSQLStatementCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/GetSQLStatementCest.php index ed85d171f0d..317a19b31d6 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/GetSQLStatementCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/GetSQLStatementCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetSQLStatementCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: getSQLStatement() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlGetSQLStatement(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/GetSqlVariablesCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/GetSqlVariablesCest.php index 992253ed285..af2333fcf69 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/GetSqlVariablesCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/GetSqlVariablesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetSqlVariablesCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: getSqlVariables() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlGetSqlVariables(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/GetTransactionLevelCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/GetTransactionLevelCest.php index 30d3d5f6458..664135cf567 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/GetTransactionLevelCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/GetTransactionLevelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetTransactionLevelCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: getTransactionLevel() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlGetTransactionLevel(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/GetTypeCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/GetTypeCest.php index b40389b8701..b9082faea74 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/GetTypeCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/GetTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetTypeCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: getType() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlGetType(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/InsertAsDictCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/InsertAsDictCest.php index 32a78bdeb1e..b9f23418e03 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/InsertAsDictCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/InsertAsDictCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class InsertAsDictCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: insertAsDict() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlInsertAsDict(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/InsertCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/InsertCest.php index f20148fdea1..43618be55b0 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/InsertCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/InsertCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class InsertCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: insert() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlInsert(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/IsNestedTransactionsWithSavepointsCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/IsNestedTransactionsWithSavepointsCest.php index 92061fda9ca..420a406f569 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/IsNestedTransactionsWithSavepointsCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/IsNestedTransactionsWithSavepointsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class IsNestedTransactionsWithSavepointsCest * Tests Phalcon\Db\Adapter\Pdo\Mysql :: * isNestedTransactionsWithSavepoints() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlIsNestedTransactionsWithSavepoints(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/IsUnderTransactionCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/IsUnderTransactionCest.php index 502dc0c1fd9..d3e291b6366 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/IsUnderTransactionCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/IsUnderTransactionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class IsUnderTransactionCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: isUnderTransaction() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlIsUnderTransaction(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/LastInsertIdCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/LastInsertIdCest.php index 0135f0f26e9..35f4fc70184 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/LastInsertIdCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/LastInsertIdCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class LastInsertIdCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: lastInsertId() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlLastInsertId(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/LimitCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/LimitCest.php index 3027d090dc8..6d918a1ee84 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/LimitCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/LimitCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class LimitCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: limit() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlLimit(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/ListTablesCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/ListTablesCest.php index 7f1f7fb8a71..d1885cf7e99 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/ListTablesCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/ListTablesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -46,7 +46,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: listTables() * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-08-03 */ public function dbAdapterPdoMysqlListTables(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/ListViewsCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/ListViewsCest.php index 90eba1b16d3..ee42502db0d 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/ListViewsCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/ListViewsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ListViewsCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: listViews() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlListViews(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/ModifyColumnCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/ModifyColumnCest.php index dcb6c941c84..d2fe3da6244 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/ModifyColumnCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/ModifyColumnCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ModifyColumnCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: modifyColumn() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlModifyColumn(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/PrepareCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/PrepareCest.php index 6505a3c5469..8758de45b98 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/PrepareCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/PrepareCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class PrepareCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: prepare() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlPrepare(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/QueryCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/QueryCest.php index 64944619e4a..be7d8df8339 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/QueryCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/QueryCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -34,7 +34,7 @@ public function _after(IntegrationTester $I) /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: query() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlQuery(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/ReleaseSavepointCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/ReleaseSavepointCest.php index aaf8efcd8e4..250dfa65825 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/ReleaseSavepointCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/ReleaseSavepointCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ReleaseSavepointCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: releaseSavepoint() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlReleaseSavepoint(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/RollbackCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/RollbackCest.php index 7eed0e31c55..0663735c673 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/RollbackCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/RollbackCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class RollbackCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: rollback() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlRollback(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/RollbackSavepointCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/RollbackSavepointCest.php index f4f2dddfb9c..075c1703872 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/RollbackSavepointCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/RollbackSavepointCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class RollbackSavepointCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: rollbackSavepoint() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlRollbackSavepoint(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/SetDialectCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/SetDialectCest.php index 581a1564194..0510ce6f587 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/SetDialectCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/SetDialectCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetDialectCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: setDialect() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlSetDialect(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/SetEventsManagerCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/SetEventsManagerCest.php index ab80b2cc1e9..20c2d8c8344 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/SetEventsManagerCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/SetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetEventsManagerCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: setEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlSetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/SetNestedTransactionsWithSavepointsCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/SetNestedTransactionsWithSavepointsCest.php index 6b0baa8878e..d6c4d37b66f 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/SetNestedTransactionsWithSavepointsCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/SetNestedTransactionsWithSavepointsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class SetNestedTransactionsWithSavepointsCest * Tests Phalcon\Db\Adapter\Pdo\Mysql :: * setNestedTransactionsWithSavepoints() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlSetNestedTransactionsWithSavepoints(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/SharedLockCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/SharedLockCest.php index 1675b2b7452..e237dc373ab 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/SharedLockCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/SharedLockCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SharedLockCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: sharedLock() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlSharedLock(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/SupportSequencesCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/SupportSequencesCest.php index c35792d8170..e0b5972c7ff 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/SupportSequencesCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/SupportSequencesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SupportSequencesCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: supportSequences() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlSupportSequences(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/TableExistsCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/TableExistsCest.php index 0bd8ece8675..5591e6d3b24 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/TableExistsCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/TableExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ class TableExistsCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: tableExists() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlTableExists(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/TableOptionsCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/TableOptionsCest.php index 0927ee2b0f2..c7b48d221dc 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/TableOptionsCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/TableOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class TableOptionsCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: tableOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlTableOptions(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/UpdateAsDictCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/UpdateAsDictCest.php index d81b1596c8d..aefcdadd74a 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/UpdateAsDictCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/UpdateAsDictCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class UpdateAsDictCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: updateAsDict() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlUpdateAsDict(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/UpdateCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/UpdateCest.php index cd685038f78..eef649d1690 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/UpdateCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/UpdateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class UpdateCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: update() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlUpdate(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/UseExplicitIdValueCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/UseExplicitIdValueCest.php index 9374c46389c..fb9fde18de9 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/UseExplicitIdValueCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/UseExplicitIdValueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class UseExplicitIdValueCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: useExplicitIdValue() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlUseExplicitIdValue(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/ViewExistsCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/ViewExistsCest.php index 091b24062c2..c23facff459 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/ViewExistsCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/ViewExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ViewExistsCest /** * Tests Phalcon\Db\Adapter\Pdo\Mysql :: viewExists() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoMysqlViewExists(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/MysqlCest.php b/tests/integration/Db/Adapter/Pdo/MysqlCest.php index 310195e0539..5456bebb971 100644 --- a/tests/integration/Db/Adapter/Pdo/MysqlCest.php +++ b/tests/integration/Db/Adapter/Pdo/MysqlCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/AddColumnCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/AddColumnCest.php index 9bf1cc30cc7..ad906f9112e 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/AddColumnCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/AddColumnCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddColumnCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: addColumn() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlAddColumn(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/AddForeignKeyCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/AddForeignKeyCest.php index e00020a7b70..00ffc2058f6 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/AddForeignKeyCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/AddForeignKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddForeignKeyCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: addForeignKey() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlAddForeignKey(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/AddIndexCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/AddIndexCest.php index d45e60687db..f688ec02451 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/AddIndexCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/AddIndexCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddIndexCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: addIndex() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlAddIndex(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/AddPrimaryKeyCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/AddPrimaryKeyCest.php index 2a347312ee5..17b6394be84 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/AddPrimaryKeyCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/AddPrimaryKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddPrimaryKeyCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: addPrimaryKey() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlAddPrimaryKey(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/AffectedRowsCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/AffectedRowsCest.php index c3b9ebc2075..6af0e0e81b6 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/AffectedRowsCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/AffectedRowsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AffectedRowsCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: affectedRows() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlAffectedRows(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/BeginCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/BeginCest.php index 23fed326a5a..31dcebf9153 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/BeginCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/BeginCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class BeginCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: begin() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlBegin(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/CloseCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/CloseCest.php index e2fe4d89a13..38835b8e9b8 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/CloseCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/CloseCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CloseCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: close() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlClose(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/CommitCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/CommitCest.php index 717ca31f061..51bb940621f 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/CommitCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/CommitCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CommitCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: commit() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlCommit(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/ConnectCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/ConnectCest.php index fc3dc9fede0..92fe02ecafe 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/ConnectCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/ConnectCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConnectCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: connect() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlConnect(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/ConstructCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/ConstructCest.php index 9f7f50a86f9..230564c28f3 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/ConstructCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlConstruct(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/ConvertBoundParamsCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/ConvertBoundParamsCest.php index 27c6e61a131..c27126e5db2 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/ConvertBoundParamsCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/ConvertBoundParamsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConvertBoundParamsCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: convertBoundParams() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlConvertBoundParams(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/CreateSavepointCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/CreateSavepointCest.php index 9c6a3e76de6..f167d811c84 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/CreateSavepointCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/CreateSavepointCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CreateSavepointCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: createSavepoint() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlCreateSavepoint(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/CreateTableCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/CreateTableCest.php index ab35d484b38..5f068be49ea 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/CreateTableCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/CreateTableCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CreateTableCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: createTable() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlCreateTable(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/CreateViewCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/CreateViewCest.php index f9506b67f23..2cc957f36fc 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/CreateViewCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/CreateViewCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CreateViewCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: createView() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlCreateView(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/DeleteCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/DeleteCest.php index 598a8956368..5513db989d5 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/DeleteCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/DeleteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class DeleteCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: delete() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlDelete(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/DescribeColumnsCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/DescribeColumnsCest.php index a7ec0bae9d9..2f40c488cd7 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/DescribeColumnsCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/DescribeColumnsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ class DescribeColumnsCest * * @issue https://github.com/phalcon/phalcon-devtools/issues/853 * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-09-28 */ public function dbAdapterPdoPostgresqlDescribeColumns(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/DescribeIndexesCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/DescribeIndexesCest.php index f47c7401ae4..d1a8a4a8ef8 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/DescribeIndexesCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/DescribeIndexesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class DescribeIndexesCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: describeIndexes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlDescribeIndexes(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/DescribeReferencesCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/DescribeReferencesCest.php index c1a45e4789a..bed2bdf470c 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/DescribeReferencesCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/DescribeReferencesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/DropColumnCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/DropColumnCest.php index 10f6e08d31d..fb34555443b 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/DropColumnCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/DropColumnCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class DropColumnCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: dropColumn() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlDropColumn(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/DropForeignKeyCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/DropForeignKeyCest.php index 01f2653c9ba..a17fa3e0f6d 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/DropForeignKeyCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/DropForeignKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class DropForeignKeyCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: dropForeignKey() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlDropForeignKey(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/DropIndexCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/DropIndexCest.php index d5f25ae9c46..dfa35aa2de7 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/DropIndexCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/DropIndexCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class DropIndexCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: dropIndex() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlDropIndex(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/DropPrimaryKeyCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/DropPrimaryKeyCest.php index ddc806f1822..8e5ed9cd4bf 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/DropPrimaryKeyCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/DropPrimaryKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class DropPrimaryKeyCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: dropPrimaryKey() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlDropPrimaryKey(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/DropTableCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/DropTableCest.php index 3ba51b73762..47dc1dcfcec 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/DropTableCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/DropTableCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class DropTableCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: dropTable() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlDropTable(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/DropViewCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/DropViewCest.php index 32767e7a887..08b48fded81 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/DropViewCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/DropViewCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class DropViewCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: dropView() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlDropView(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/EscapeIdentifierCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/EscapeIdentifierCest.php index fcfe89e9aa6..936273f0239 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/EscapeIdentifierCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/EscapeIdentifierCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class EscapeIdentifierCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: escapeIdentifier() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlEscapeIdentifier(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/EscapeStringCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/EscapeStringCest.php index 6a0c223cac1..651654ec100 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/EscapeStringCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/EscapeStringCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class EscapeStringCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: escapeString() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlEscapeString(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/ExecuteCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/ExecuteCest.php index 7229535ae86..81eb8572091 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/ExecuteCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/ExecuteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ExecuteCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: execute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlExecute(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/ExecutePreparedCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/ExecutePreparedCest.php index 2db3adf53f5..f89572558a7 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/ExecutePreparedCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/ExecutePreparedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ExecutePreparedCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: executePrepared() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlExecutePrepared(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/FetchAllCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/FetchAllCest.php index 8d9b3be5be5..b1af2fa22ec 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/FetchAllCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/FetchAllCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class FetchAllCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: fetchAll() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlFetchAll(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/FetchColumnCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/FetchColumnCest.php index c9d59674232..fd52aedc2e9 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/FetchColumnCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/FetchColumnCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class FetchColumnCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: fetchColumn() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlFetchColumn(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/FetchOneCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/FetchOneCest.php index 194f7d102f7..280c29279aa 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/FetchOneCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/FetchOneCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class FetchOneCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: fetchOne() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlFetchOne(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/ForUpdateCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/ForUpdateCest.php index f0e0e01ac28..e1705142dc0 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/ForUpdateCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/ForUpdateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ForUpdateCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: forUpdate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlForUpdate(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/GetColumnDefinitionCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/GetColumnDefinitionCest.php index 41dbe3d63e0..167c4f0f194 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/GetColumnDefinitionCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/GetColumnDefinitionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetColumnDefinitionCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: getColumnDefinition() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlGetColumnDefinition(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/GetColumnListCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/GetColumnListCest.php index 65247d61f66..17b4cde5fec 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/GetColumnListCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/GetColumnListCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetColumnListCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: getColumnList() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlGetColumnList(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/GetConnectionIdCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/GetConnectionIdCest.php index 74bc9e6f0ce..68bddbe9c7c 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/GetConnectionIdCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/GetConnectionIdCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetConnectionIdCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: getConnectionId() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlGetConnectionId(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/GetDefaultIdValueCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/GetDefaultIdValueCest.php index 0328a32877c..2ab9d1537ce 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/GetDefaultIdValueCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/GetDefaultIdValueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDefaultIdValueCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: getDefaultIdValue() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlGetDefaultIdValue(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/GetDefaultValueCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/GetDefaultValueCest.php index ea7042c4336..6678497b46a 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/GetDefaultValueCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/GetDefaultValueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDefaultValueCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: getDefaultValue() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlGetDefaultValue(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/GetDescriptorCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/GetDescriptorCest.php index 4c37b25c7f3..9ae1b593c46 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/GetDescriptorCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/GetDescriptorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDescriptorCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: getDescriptor() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlGetDescriptor(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/GetDialectCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/GetDialectCest.php index 2caa6f1e497..e3d2f13bbe6 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/GetDialectCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/GetDialectCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDialectCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: getDialect() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlGetDialect(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/GetDialectTypeCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/GetDialectTypeCest.php index f2122ac31c8..d48bf85c638 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/GetDialectTypeCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/GetDialectTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDialectTypeCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: getDialectType() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlGetDialectType(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/GetErrorInfoCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/GetErrorInfoCest.php index 27c405a2ad4..60c44e1ec36 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/GetErrorInfoCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/GetErrorInfoCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetErrorInfoCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: getErrorInfo() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlGetErrorInfo(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/GetEventsManagerCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/GetEventsManagerCest.php index 2153bfb2fe0..7cae4041227 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/GetEventsManagerCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/GetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetEventsManagerCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: getEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlGetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/GetInternalHandlerCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/GetInternalHandlerCest.php index d9f18a4290a..f4247555999 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/GetInternalHandlerCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/GetInternalHandlerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetInternalHandlerCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: getInternalHandler() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlGetInternalHandler(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/GetNestedTransactionSavepointNameCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/GetNestedTransactionSavepointNameCest.php index 6230a5708bc..12a9bf40e5a 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/GetNestedTransactionSavepointNameCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/GetNestedTransactionSavepointNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class GetNestedTransactionSavepointNameCest * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: * getNestedTransactionSavepointName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlGetNestedTransactionSavepointName(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/GetRealSQLStatementCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/GetRealSQLStatementCest.php index abb4b0875c0..0ce0a7df5ee 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/GetRealSQLStatementCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/GetRealSQLStatementCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetRealSQLStatementCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: getRealSQLStatement() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlGetRealSQLStatement(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/GetSQLBindTypesCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/GetSQLBindTypesCest.php index 38bf13a3e12..2bb1ab96cf6 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/GetSQLBindTypesCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/GetSQLBindTypesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetSQLBindTypesCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: getSQLBindTypes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlGetSQLBindTypes(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/GetSQLStatementCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/GetSQLStatementCest.php index b81d046f333..fa150dcc366 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/GetSQLStatementCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/GetSQLStatementCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetSQLStatementCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: getSQLStatement() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlGetSQLStatement(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/GetSqlVariablesCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/GetSqlVariablesCest.php index eed8120d641..0bc6a843e96 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/GetSqlVariablesCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/GetSqlVariablesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetSqlVariablesCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: getSqlVariables() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlGetSqlVariables(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/GetTransactionLevelCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/GetTransactionLevelCest.php index 91518c87cc4..13ca22f9818 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/GetTransactionLevelCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/GetTransactionLevelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetTransactionLevelCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: getTransactionLevel() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlGetTransactionLevel(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/GetTypeCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/GetTypeCest.php index 623c404ea2f..eee33b0d1a7 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/GetTypeCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/GetTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetTypeCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: getType() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlGetType(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/InsertAsDictCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/InsertAsDictCest.php index 4084f9f2d18..76d5df1417f 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/InsertAsDictCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/InsertAsDictCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class InsertAsDictCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: insertAsDict() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlInsertAsDict(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/InsertCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/InsertCest.php index feecba3ad4b..f7743f5671a 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/InsertCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/InsertCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class InsertCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: insert() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlInsert(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/IsNestedTransactionsWithSavepointsCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/IsNestedTransactionsWithSavepointsCest.php index afc933b2a9a..93d4f510bfd 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/IsNestedTransactionsWithSavepointsCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/IsNestedTransactionsWithSavepointsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class IsNestedTransactionsWithSavepointsCest * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: * isNestedTransactionsWithSavepoints() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlIsNestedTransactionsWithSavepoints(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/IsUnderTransactionCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/IsUnderTransactionCest.php index dbc0ad85417..0f2292bae12 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/IsUnderTransactionCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/IsUnderTransactionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class IsUnderTransactionCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: isUnderTransaction() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlIsUnderTransaction(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/LastInsertIdCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/LastInsertIdCest.php index 7167ddd4352..b3ead5daf59 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/LastInsertIdCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/LastInsertIdCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class LastInsertIdCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: lastInsertId() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlLastInsertId(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/LimitCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/LimitCest.php index c72c8f5cff1..b9718af4e37 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/LimitCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/LimitCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class LimitCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: limit() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlLimit(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/ListTablesCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/ListTablesCest.php index 5dc3cdf18de..13f8952439d 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/ListTablesCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/ListTablesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ListTablesCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: listTables() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlListTables(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/ListViewsCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/ListViewsCest.php index 47636303082..5e1c27f6545 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/ListViewsCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/ListViewsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ListViewsCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: listViews() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlListViews(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/ModifyColumnCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/ModifyColumnCest.php index 3b5f306ff13..284a225fd30 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/ModifyColumnCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/ModifyColumnCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ModifyColumnCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: modifyColumn() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlModifyColumn(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/PrepareCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/PrepareCest.php index a89273e7d21..fe1f8ebfb73 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/PrepareCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/PrepareCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class PrepareCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: prepare() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlPrepare(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/QueryCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/QueryCest.php index 8d726c2c2d0..b3d291da109 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/QueryCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/QueryCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -34,7 +34,7 @@ public function _after(IntegrationTester $I) /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: query() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlQuery(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/ReleaseSavepointCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/ReleaseSavepointCest.php index 92604307097..1fcc1d2872d 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/ReleaseSavepointCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/ReleaseSavepointCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ReleaseSavepointCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: releaseSavepoint() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlReleaseSavepoint(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/RollbackCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/RollbackCest.php index e9566048c2a..5a7a1f7a734 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/RollbackCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/RollbackCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class RollbackCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: rollback() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlRollback(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/RollbackSavepointCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/RollbackSavepointCest.php index 40d93ecbddf..568b3d07dbc 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/RollbackSavepointCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/RollbackSavepointCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class RollbackSavepointCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: rollbackSavepoint() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlRollbackSavepoint(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/SetDialectCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/SetDialectCest.php index 91bf2a15a3d..4d2cafe5e69 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/SetDialectCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/SetDialectCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetDialectCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: setDialect() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlSetDialect(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/SetEventsManagerCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/SetEventsManagerCest.php index 649a56716f9..94a3449b3d4 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/SetEventsManagerCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/SetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetEventsManagerCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: setEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlSetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/SetNestedTransactionsWithSavepointsCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/SetNestedTransactionsWithSavepointsCest.php index 361a081129b..3f26f49a96c 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/SetNestedTransactionsWithSavepointsCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/SetNestedTransactionsWithSavepointsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class SetNestedTransactionsWithSavepointsCest * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: * setNestedTransactionsWithSavepoints() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlSetNestedTransactionsWithSavepoints(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/SharedLockCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/SharedLockCest.php index f6a4a04ae4a..a0eb0b86a7e 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/SharedLockCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/SharedLockCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SharedLockCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: sharedLock() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlSharedLock(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/SupportSequencesCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/SupportSequencesCest.php index 374e99a897c..b3104644a29 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/SupportSequencesCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/SupportSequencesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SupportSequencesCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: supportSequences() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlSupportSequences(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/TableExistsCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/TableExistsCest.php index 5bb90386420..ea7989f7b77 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/TableExistsCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/TableExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class TableExistsCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: tableExists() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlTableExists(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/TableOptionsCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/TableOptionsCest.php index 9a8d4f301e5..f649359df50 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/TableOptionsCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/TableOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class TableOptionsCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: tableOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlTableOptions(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/UpdateAsDictCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/UpdateAsDictCest.php index 86ecf4e72c6..b0562f689c3 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/UpdateAsDictCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/UpdateAsDictCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class UpdateAsDictCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: updateAsDict() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlUpdateAsDict(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/UpdateCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/UpdateCest.php index 22a736a33c6..da04fa2323a 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/UpdateCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/UpdateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class UpdateCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: update() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlUpdate(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/UseExplicitIdValueCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/UseExplicitIdValueCest.php index b35d03b426d..31e820e3c28 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/UseExplicitIdValueCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/UseExplicitIdValueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class UseExplicitIdValueCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: useExplicitIdValue() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlUseExplicitIdValue(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Postgresql/ViewExistsCest.php b/tests/integration/Db/Adapter/Pdo/Postgresql/ViewExistsCest.php index d1d91b9211e..f1c9bd3b271 100644 --- a/tests/integration/Db/Adapter/Pdo/Postgresql/ViewExistsCest.php +++ b/tests/integration/Db/Adapter/Pdo/Postgresql/ViewExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ViewExistsCest /** * Tests Phalcon\Db\Adapter\Pdo\Postgresql :: viewExists() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoPostgresqlViewExists(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/PostgresqlCest.php b/tests/integration/Db/Adapter/Pdo/PostgresqlCest.php index 2a6c623c8de..2c349417fb9 100644 --- a/tests/integration/Db/Adapter/Pdo/PostgresqlCest.php +++ b/tests/integration/Db/Adapter/Pdo/PostgresqlCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/AddColumnCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/AddColumnCest.php index 91e95ec9cc4..70ff3311a10 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/AddColumnCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/AddColumnCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddColumnCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: addColumn() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteAddColumn(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/AddForeignKeyCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/AddForeignKeyCest.php index 8afe97cbee0..1cec53831a2 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/AddForeignKeyCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/AddForeignKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddForeignKeyCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: addForeignKey() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteAddForeignKey(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/AddIndexCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/AddIndexCest.php index 47c140c8b9a..1d0e26de0d2 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/AddIndexCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/AddIndexCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddIndexCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: addIndex() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteAddIndex(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/AddPrimaryKeyCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/AddPrimaryKeyCest.php index 395a6939e19..b77956fc52d 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/AddPrimaryKeyCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/AddPrimaryKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddPrimaryKeyCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: addPrimaryKey() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteAddPrimaryKey(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/AffectedRowsCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/AffectedRowsCest.php index 787ec382cf2..7d4205ddfec 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/AffectedRowsCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/AffectedRowsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AffectedRowsCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: affectedRows() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteAffectedRows(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/BeginCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/BeginCest.php index ac592f721ca..7c565d5c014 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/BeginCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/BeginCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class BeginCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: begin() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteBegin(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/CloseCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/CloseCest.php index 230bf69ec06..47a597ceb56 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/CloseCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/CloseCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CloseCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: close() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteClose(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/CommitCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/CommitCest.php index 24a5a26fa1e..1d3cc2863ef 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/CommitCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/CommitCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CommitCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: commit() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteCommit(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/ConnectCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/ConnectCest.php index 743b101dbc8..b9a7db27a96 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/ConnectCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/ConnectCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConnectCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: connect() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteConnect(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/ConstructCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/ConstructCest.php index b0f4bb699b2..0b5f9f7641c 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/ConstructCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteConstruct(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/ConvertBoundParamsCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/ConvertBoundParamsCest.php index 56cf6b562a6..c74188ee811 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/ConvertBoundParamsCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/ConvertBoundParamsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConvertBoundParamsCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: convertBoundParams() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteConvertBoundParams(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/CreateSavepointCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/CreateSavepointCest.php index d3b3493f351..4f760a2b6b4 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/CreateSavepointCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/CreateSavepointCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CreateSavepointCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: createSavepoint() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteCreateSavepoint(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/CreateTableCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/CreateTableCest.php index 77b6831f344..852d6af5269 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/CreateTableCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/CreateTableCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CreateTableCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: createTable() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteCreateTable(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/CreateViewCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/CreateViewCest.php index 6d24f52a6eb..1183aa7a6f2 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/CreateViewCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/CreateViewCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CreateViewCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: createView() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteCreateView(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/DeleteCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/DeleteCest.php index 5ef79eb5a86..5ec648c34c6 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/DeleteCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/DeleteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class DeleteCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: delete() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteDelete(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/DescribeColumnsCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/DescribeColumnsCest.php index bc73cec501c..b9f582e157b 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/DescribeColumnsCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/DescribeColumnsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -31,7 +31,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: describeColumns() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteDescribeColumns(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/DescribeIndexesCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/DescribeIndexesCest.php index 3da355f7658..5d052466e37 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/DescribeIndexesCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/DescribeIndexesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -31,7 +31,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: describeIndexes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteDescribeIndexes(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/DescribeReferencesCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/DescribeReferencesCest.php index 1965116e24f..c91b3734190 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/DescribeReferencesCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/DescribeReferencesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -31,7 +31,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: describeReferences() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteDescribeReferences(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/DropColumnCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/DropColumnCest.php index d5154180094..21e80957787 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/DropColumnCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/DropColumnCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class DropColumnCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: dropColumn() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteDropColumn(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/DropForeignKeyCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/DropForeignKeyCest.php index 2039718413d..20584ea6fb0 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/DropForeignKeyCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/DropForeignKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class DropForeignKeyCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: dropForeignKey() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteDropForeignKey(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/DropIndexCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/DropIndexCest.php index 76cb5aa7be9..856b57dd6b0 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/DropIndexCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/DropIndexCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class DropIndexCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: dropIndex() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteDropIndex(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/DropPrimaryKeyCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/DropPrimaryKeyCest.php index 2245a6c3a8c..31b44992f16 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/DropPrimaryKeyCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/DropPrimaryKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class DropPrimaryKeyCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: dropPrimaryKey() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteDropPrimaryKey(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/DropTableCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/DropTableCest.php index c3a76ce3650..94267306651 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/DropTableCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/DropTableCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class DropTableCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: dropTable() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteDropTable(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/DropViewCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/DropViewCest.php index a34ab4e57bb..8c0b2fe0ba2 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/DropViewCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/DropViewCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class DropViewCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: dropView() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteDropView(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/EscapeIdentifierCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/EscapeIdentifierCest.php index 82576467ae5..b7fd60dc08b 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/EscapeIdentifierCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/EscapeIdentifierCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class EscapeIdentifierCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: escapeIdentifier() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteEscapeIdentifier(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/EscapeStringCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/EscapeStringCest.php index a1727e15d1a..bdf4b98bea0 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/EscapeStringCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/EscapeStringCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class EscapeStringCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: escapeString() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteEscapeString(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/ExecuteCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/ExecuteCest.php index 91227677d9b..b58e2d69ef8 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/ExecuteCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/ExecuteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ExecuteCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: execute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteExecute(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/ExecutePreparedCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/ExecutePreparedCest.php index 66014e0dc36..389f576d23b 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/ExecutePreparedCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/ExecutePreparedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ExecutePreparedCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: executePrepared() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteExecutePrepared(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/FetchAllCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/FetchAllCest.php index f8637628362..a99f93029f5 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/FetchAllCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/FetchAllCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class FetchAllCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: fetchAll() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteFetchAll(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/FetchColumnCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/FetchColumnCest.php index 8c11bcde73d..5acd46bff59 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/FetchColumnCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/FetchColumnCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class FetchColumnCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: fetchColumn() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteFetchColumn(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/FetchOneCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/FetchOneCest.php index 4e315be5582..2f4927e1b4e 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/FetchOneCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/FetchOneCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class FetchOneCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: fetchOne() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteFetchOne(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/ForUpdateCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/ForUpdateCest.php index c87934684d1..d5348fe0703 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/ForUpdateCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/ForUpdateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ForUpdateCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: forUpdate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteForUpdate(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/GetColumnDefinitionCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/GetColumnDefinitionCest.php index b21bdfae778..6d055f2b9b3 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/GetColumnDefinitionCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/GetColumnDefinitionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetColumnDefinitionCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: getColumnDefinition() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteGetColumnDefinition(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/GetColumnListCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/GetColumnListCest.php index c41aeaef80c..918a7302cbd 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/GetColumnListCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/GetColumnListCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetColumnListCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: getColumnList() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteGetColumnList(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/GetConnectionIdCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/GetConnectionIdCest.php index 10f01b93c98..51f9cad8fc2 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/GetConnectionIdCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/GetConnectionIdCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetConnectionIdCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: getConnectionId() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteGetConnectionId(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/GetDefaultIdValueCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/GetDefaultIdValueCest.php index 94def34a227..ef38c793cfc 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/GetDefaultIdValueCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/GetDefaultIdValueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDefaultIdValueCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: getDefaultIdValue() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteGetDefaultIdValue(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/GetDefaultValueCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/GetDefaultValueCest.php index 975bc00ca51..e87f6ebce24 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/GetDefaultValueCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/GetDefaultValueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDefaultValueCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: getDefaultValue() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteGetDefaultValue(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/GetDescriptorCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/GetDescriptorCest.php index 5132a426706..cbc6e79cd6c 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/GetDescriptorCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/GetDescriptorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDescriptorCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: getDescriptor() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteGetDescriptor(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/GetDialectCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/GetDialectCest.php index b31577508dc..ffd7bf7739b 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/GetDialectCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/GetDialectCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDialectCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: getDialect() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteGetDialect(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/GetDialectTypeCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/GetDialectTypeCest.php index 9b25c2c9b11..4f3f5d1e7c8 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/GetDialectTypeCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/GetDialectTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDialectTypeCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: getDialectType() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteGetDialectType(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/GetErrorInfoCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/GetErrorInfoCest.php index 192e4def60e..46fae35de8d 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/GetErrorInfoCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/GetErrorInfoCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetErrorInfoCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: getErrorInfo() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteGetErrorInfo(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/GetEventsManagerCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/GetEventsManagerCest.php index 7ad71020f88..5a285ac8123 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/GetEventsManagerCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/GetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetEventsManagerCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: getEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteGetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/GetInternalHandlerCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/GetInternalHandlerCest.php index 4cfeaf5025d..9ea74a6abca 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/GetInternalHandlerCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/GetInternalHandlerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetInternalHandlerCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: getInternalHandler() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteGetInternalHandler(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/GetNestedTransactionSavepointNameCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/GetNestedTransactionSavepointNameCest.php index 57fd40e7593..894dc1d32f2 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/GetNestedTransactionSavepointNameCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/GetNestedTransactionSavepointNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class GetNestedTransactionSavepointNameCest * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: * getNestedTransactionSavepointName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteGetNestedTransactionSavepointName(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/GetRealSQLStatementCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/GetRealSQLStatementCest.php index d97476bfb87..e9d3fe9204b 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/GetRealSQLStatementCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/GetRealSQLStatementCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetRealSQLStatementCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: getRealSQLStatement() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteGetRealSQLStatement(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/GetSQLBindTypesCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/GetSQLBindTypesCest.php index d430916f505..ebcfec1e454 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/GetSQLBindTypesCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/GetSQLBindTypesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetSQLBindTypesCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: getSQLBindTypes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteGetSQLBindTypes(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/GetSQLStatementCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/GetSQLStatementCest.php index c9f8d83657a..6546fde9b91 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/GetSQLStatementCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/GetSQLStatementCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetSQLStatementCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: getSQLStatement() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteGetSQLStatement(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/GetSqlVariablesCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/GetSqlVariablesCest.php index 757de6fbed3..bd5b7c8ba8a 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/GetSqlVariablesCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/GetSqlVariablesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetSqlVariablesCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: getSqlVariables() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteGetSqlVariables(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/GetTransactionLevelCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/GetTransactionLevelCest.php index f8bb0984cd2..431a7c616e5 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/GetTransactionLevelCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/GetTransactionLevelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetTransactionLevelCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: getTransactionLevel() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteGetTransactionLevel(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/GetTypeCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/GetTypeCest.php index 0acb7b1b3c9..555d345ca6d 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/GetTypeCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/GetTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetTypeCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: getType() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteGetType(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/InsertAsDictCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/InsertAsDictCest.php index ab317b13048..7f84884ca60 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/InsertAsDictCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/InsertAsDictCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class InsertAsDictCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: insertAsDict() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteInsertAsDict(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/InsertCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/InsertCest.php index cf695da2659..de6c0d3d7b5 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/InsertCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/InsertCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class InsertCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: insert() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteInsert(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/IsNestedTransactionsWithSavepointsCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/IsNestedTransactionsWithSavepointsCest.php index 945e5b05622..a8b3c2f036f 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/IsNestedTransactionsWithSavepointsCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/IsNestedTransactionsWithSavepointsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class IsNestedTransactionsWithSavepointsCest * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: * isNestedTransactionsWithSavepoints() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteIsNestedTransactionsWithSavepoints(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/IsUnderTransactionCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/IsUnderTransactionCest.php index d007fb2eaaf..6396bc379b1 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/IsUnderTransactionCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/IsUnderTransactionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class IsUnderTransactionCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: isUnderTransaction() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteIsUnderTransaction(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/LastInsertIdCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/LastInsertIdCest.php index 870f3567087..186adcd331c 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/LastInsertIdCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/LastInsertIdCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class LastInsertIdCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: lastInsertId() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteLastInsertId(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/LimitCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/LimitCest.php index 794fdb1b766..82e4add6b61 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/LimitCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/LimitCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class LimitCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: limit() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteLimit(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/ListTablesCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/ListTablesCest.php index 27aebaf5e70..80fe770e7c4 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/ListTablesCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/ListTablesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -30,7 +30,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: listTables() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteListTables(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/ListViewsCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/ListViewsCest.php index 4cc13f943e0..aec900da806 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/ListViewsCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/ListViewsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ListViewsCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: listViews() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteListViews(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/ModifyColumnCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/ModifyColumnCest.php index b7c3a14a636..9ed1893be34 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/ModifyColumnCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/ModifyColumnCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ModifyColumnCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: modifyColumn() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteModifyColumn(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/PrepareCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/PrepareCest.php index f2c57484d11..b7de4115e53 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/PrepareCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/PrepareCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class PrepareCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: prepare() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqlitePrepare(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/QueryCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/QueryCest.php index 601efb20d23..3488d4d103d 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/QueryCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/QueryCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -29,7 +29,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: query() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteQuery(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/ReleaseSavepointCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/ReleaseSavepointCest.php index 85a68ae4456..e1ed0a12943 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/ReleaseSavepointCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/ReleaseSavepointCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ReleaseSavepointCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: releaseSavepoint() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteReleaseSavepoint(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/RollbackCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/RollbackCest.php index 919afcfcfc4..8828f0ad4e0 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/RollbackCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/RollbackCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class RollbackCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: rollback() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteRollback(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/RollbackSavepointCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/RollbackSavepointCest.php index bf74a916ce4..7cd9859bb36 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/RollbackSavepointCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/RollbackSavepointCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class RollbackSavepointCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: rollbackSavepoint() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteRollbackSavepoint(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/SetDialectCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/SetDialectCest.php index 1cf87b66014..7f68847dd84 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/SetDialectCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/SetDialectCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetDialectCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: setDialect() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteSetDialect(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/SetEventsManagerCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/SetEventsManagerCest.php index 9835e5cfb26..c166c25cb6f 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/SetEventsManagerCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/SetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetEventsManagerCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: setEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteSetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/SetNestedTransactionsWithSavepointsCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/SetNestedTransactionsWithSavepointsCest.php index 38804cfe224..6bc9f9a576b 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/SetNestedTransactionsWithSavepointsCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/SetNestedTransactionsWithSavepointsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class SetNestedTransactionsWithSavepointsCest * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: * setNestedTransactionsWithSavepoints() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteSetNestedTransactionsWithSavepoints(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/SharedLockCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/SharedLockCest.php index 2a750b6bf78..577be726ccb 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/SharedLockCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/SharedLockCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SharedLockCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: sharedLock() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteSharedLock(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/SupportSequencesCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/SupportSequencesCest.php index 9acaa5abbf9..14f8cdc860c 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/SupportSequencesCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/SupportSequencesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SupportSequencesCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: supportSequences() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteSupportSequences(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/TableExistsCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/TableExistsCest.php index 4ca6e91c0ce..c36e5160380 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/TableExistsCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/TableExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -30,7 +30,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: tableExists() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteTableExists(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/TableOptionsCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/TableOptionsCest.php index 5acf3634a90..e2ccfdd78e9 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/TableOptionsCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/TableOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class TableOptionsCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: tableOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteTableOptions(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/UpdateAsDictCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/UpdateAsDictCest.php index 460448f5b17..e640e91c36e 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/UpdateAsDictCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/UpdateAsDictCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class UpdateAsDictCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: updateAsDict() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteUpdateAsDict(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/UpdateCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/UpdateCest.php index ccb3a107245..3b6bc5964b1 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/UpdateCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/UpdateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class UpdateCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: update() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteUpdate(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/UseExplicitIdValueCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/UseExplicitIdValueCest.php index f53225044cd..f341ef246e5 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/UseExplicitIdValueCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/UseExplicitIdValueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class UseExplicitIdValueCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: useExplicitIdValue() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteUseExplicitIdValue(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/ViewExistsCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/ViewExistsCest.php index df449ed525b..469c33a17f4 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/ViewExistsCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/ViewExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ViewExistsCest /** * Tests Phalcon\Db\Adapter\Pdo\Sqlite :: viewExists() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbAdapterPdoSqliteViewExists(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/PdoFactory/LoadCest.php b/tests/integration/Db/Adapter/PdoFactory/LoadCest.php index ff0adcd9d46..26f688e5200 100644 --- a/tests/integration/Db/Adapter/PdoFactory/LoadCest.php +++ b/tests/integration/Db/Adapter/PdoFactory/LoadCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -30,7 +30,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Db\Adapter\PdoFactory :: load() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-19 */ public function dbAdapterPdoFactoryLoad(IntegrationTester $I) @@ -46,7 +46,7 @@ public function dbAdapterPdoFactoryLoad(IntegrationTester $I) /** * Tests Phalcon\Db\Adapter\PdoFactory :: load() - array * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-19 */ public function dbAdapterPdoFactoryLoadArray(IntegrationTester $I) diff --git a/tests/integration/Db/Adapter/PdoFactory/NewInstanceCest.php b/tests/integration/Db/Adapter/PdoFactory/NewInstanceCest.php index 96f0eafd59e..a8066e797a3 100644 --- a/tests/integration/Db/Adapter/PdoFactory/NewInstanceCest.php +++ b/tests/integration/Db/Adapter/PdoFactory/NewInstanceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -28,7 +28,7 @@ class NewInstanceCest * * @dataProvider getProviders * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-19 */ public function dbAdapterPdoFactoryNewInstance(IntegrationTester $I, Example $example) diff --git a/tests/integration/Db/Column/ConstantsCest.php b/tests/integration/Db/Column/ConstantsCest.php index 4833ec9a36c..eb8a82c5f3a 100644 --- a/tests/integration/Db/Column/ConstantsCest.php +++ b/tests/integration/Db/Column/ConstantsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ConstantsCest /** * Tests Phalcon\Db\Column :: constants * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-10-26 */ public function checkClassConstants(IntegrationTester $I) diff --git a/tests/integration/Db/Column/ConstructCest.php b/tests/integration/Db/Column/ConstructCest.php index 4dd51b77f71..31fe3bbaa05 100644 --- a/tests/integration/Db/Column/ConstructCest.php +++ b/tests/integration/Db/Column/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ConstructCest /** * Tests Phalcon\Db\Column :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbColumnConstruct(IntegrationTester $I) diff --git a/tests/integration/Db/Column/GetAfterPositionCest.php b/tests/integration/Db/Column/GetAfterPositionCest.php index d5f986ed908..fb6cfca9bee 100644 --- a/tests/integration/Db/Column/GetAfterPositionCest.php +++ b/tests/integration/Db/Column/GetAfterPositionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class GetAfterPositionCest /** * Tests Phalcon\Db\Column :: getAfterPosition() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbColumnGetAfterPosition(IntegrationTester $I) diff --git a/tests/integration/Db/Column/GetBindTypeCest.php b/tests/integration/Db/Column/GetBindTypeCest.php index 2146fa27b9d..9ca6e7596e8 100644 --- a/tests/integration/Db/Column/GetBindTypeCest.php +++ b/tests/integration/Db/Column/GetBindTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class GetBindTypeCest /** * Tests Phalcon\Db\Column :: getBindType() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbColumnGetBindType(IntegrationTester $I) diff --git a/tests/integration/Db/Column/GetDefaultCest.php b/tests/integration/Db/Column/GetDefaultCest.php index 65f83cae57f..bbea7e9272b 100644 --- a/tests/integration/Db/Column/GetDefaultCest.php +++ b/tests/integration/Db/Column/GetDefaultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class GetDefaultCest /** * Tests Phalcon\Db\Column :: getDefault() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbColumnGetDefault(IntegrationTester $I) diff --git a/tests/integration/Db/Column/GetNameCest.php b/tests/integration/Db/Column/GetNameCest.php index f1245b2a385..726d81c572f 100644 --- a/tests/integration/Db/Column/GetNameCest.php +++ b/tests/integration/Db/Column/GetNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class GetNameCest /** * Tests Phalcon\Db\Column :: getName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbColumnGetName(IntegrationTester $I) diff --git a/tests/integration/Db/Column/GetScaleCest.php b/tests/integration/Db/Column/GetScaleCest.php index e47c838e6d9..dfb05580597 100644 --- a/tests/integration/Db/Column/GetScaleCest.php +++ b/tests/integration/Db/Column/GetScaleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class GetScaleCest /** * Tests Phalcon\Db\Column :: getScale() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbColumnGetScale(IntegrationTester $I) diff --git a/tests/integration/Db/Column/GetSizeCest.php b/tests/integration/Db/Column/GetSizeCest.php index f3596bb9b5f..dc81a5a8457 100644 --- a/tests/integration/Db/Column/GetSizeCest.php +++ b/tests/integration/Db/Column/GetSizeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class GetSizeCest /** * Tests Phalcon\Db\Column :: getSize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbColumnGetSize(IntegrationTester $I) diff --git a/tests/integration/Db/Column/GetTypeCest.php b/tests/integration/Db/Column/GetTypeCest.php index 461eae5e44d..7f15d4d3ca8 100644 --- a/tests/integration/Db/Column/GetTypeCest.php +++ b/tests/integration/Db/Column/GetTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class GetTypeCest /** * Tests Phalcon\Db\Column :: getType() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbColumnGetType(IntegrationTester $I) diff --git a/tests/integration/Db/Column/GetTypeReferenceCest.php b/tests/integration/Db/Column/GetTypeReferenceCest.php index 6aae6a8e2ee..6baa19cc12f 100644 --- a/tests/integration/Db/Column/GetTypeReferenceCest.php +++ b/tests/integration/Db/Column/GetTypeReferenceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetTypeReferenceCest /** * Tests Phalcon\Db\Column :: getTypeReference() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbColumnGetTypeReference(IntegrationTester $I) diff --git a/tests/integration/Db/Column/GetTypeValuesCest.php b/tests/integration/Db/Column/GetTypeValuesCest.php index f25e5f41f46..93edad5298e 100644 --- a/tests/integration/Db/Column/GetTypeValuesCest.php +++ b/tests/integration/Db/Column/GetTypeValuesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetTypeValuesCest /** * Tests Phalcon\Db\Column :: getTypeValues() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbColumnGetTypeValues(IntegrationTester $I) diff --git a/tests/integration/Db/Column/HasDefaultCest.php b/tests/integration/Db/Column/HasDefaultCest.php index 4db9d1e2d37..25806648a52 100644 --- a/tests/integration/Db/Column/HasDefaultCest.php +++ b/tests/integration/Db/Column/HasDefaultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class HasDefaultCest * * @dataProvider connectionProvider * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbColumnHasDefault(IntegrationTester $I, Example $example) @@ -49,7 +49,7 @@ public function dbColumnHasDefault(IntegrationTester $I, Example $example) /** * Returns the connections for each data provider * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ private function connectionProvider(): array diff --git a/tests/integration/Db/Column/IsAutoIncrementCest.php b/tests/integration/Db/Column/IsAutoIncrementCest.php index c824c246851..faef48dfb1c 100644 --- a/tests/integration/Db/Column/IsAutoIncrementCest.php +++ b/tests/integration/Db/Column/IsAutoIncrementCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class IsAutoIncrementCest * * @dataProvider connectionProvider * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbColumnIsAutoIncrement(IntegrationTester $I, Example $example) @@ -49,7 +49,7 @@ public function dbColumnIsAutoIncrement(IntegrationTester $I, Example $example) /** * Returns the connections for each data provider * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ private function connectionProvider(): array diff --git a/tests/integration/Db/Column/IsFirstCest.php b/tests/integration/Db/Column/IsFirstCest.php index b739e3e07d1..af6c7330f1d 100644 --- a/tests/integration/Db/Column/IsFirstCest.php +++ b/tests/integration/Db/Column/IsFirstCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class IsFirstCest /** * Tests Phalcon\Db\Column :: isFirst() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbColumnIsFirst(IntegrationTester $I) diff --git a/tests/integration/Db/Column/IsNotNullCest.php b/tests/integration/Db/Column/IsNotNullCest.php index 6ca1ebcaca4..5173f1d4134 100644 --- a/tests/integration/Db/Column/IsNotNullCest.php +++ b/tests/integration/Db/Column/IsNotNullCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class IsNotNullCest /** * Tests Phalcon\Db\Column :: isNotNull() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbColumnIsNotNull(IntegrationTester $I) diff --git a/tests/integration/Db/Column/IsNumericCest.php b/tests/integration/Db/Column/IsNumericCest.php index 37b324c13bd..d52921dee43 100644 --- a/tests/integration/Db/Column/IsNumericCest.php +++ b/tests/integration/Db/Column/IsNumericCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class IsNumericCest /** * Tests Phalcon\Db\Column :: isNumeric() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbColumnIsNumeric(IntegrationTester $I) diff --git a/tests/integration/Db/Column/IsPrimaryCest.php b/tests/integration/Db/Column/IsPrimaryCest.php index a6c58636600..59ab24e2401 100644 --- a/tests/integration/Db/Column/IsPrimaryCest.php +++ b/tests/integration/Db/Column/IsPrimaryCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class IsPrimaryCest /** * Tests Phalcon\Db\Column :: isPrimary() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbColumnIsPrimary(IntegrationTester $I) diff --git a/tests/integration/Db/Column/IsUnsignedCest.php b/tests/integration/Db/Column/IsUnsignedCest.php index 915a1254b53..6fd05c140ef 100644 --- a/tests/integration/Db/Column/IsUnsignedCest.php +++ b/tests/integration/Db/Column/IsUnsignedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class IsUnsignedCest /** * Tests Phalcon\Db\Column :: isUnsigned() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbColumnIsUnsigned(IntegrationTester $I) diff --git a/tests/integration/Db/ColumnCest.php b/tests/integration/Db/ColumnCest.php index 28786e7ab08..f8a9d12981b 100644 --- a/tests/integration/Db/ColumnCest.php +++ b/tests/integration/Db/ColumnCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/DbBindCest.php b/tests/integration/Db/DbBindCest.php index b03d3c8774b..224fd36fff9 100644 --- a/tests/integration/Db/DbBindCest.php +++ b/tests/integration/Db/DbBindCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -33,7 +33,7 @@ public function _after(IntegrationTester $I) /** * Tests Phalcon\Db :: Mysql * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbBindMySql(IntegrationTester $I) @@ -297,7 +297,7 @@ protected function executeBindByTypeTests(IntegrationTester $I, $connection) /** * Tests Phalcon\Db :: Postgresql * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbBindPostgresql(IntegrationTester $I) @@ -316,7 +316,7 @@ public function dbBindPostgresql(IntegrationTester $I) /** * Tests Phalcon\Db :: Sqlite * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbBindSqlite(IntegrationTester $I) diff --git a/tests/integration/Db/DbCest.php b/tests/integration/Db/DbCest.php index c9245c5e896..a68eaa3068e 100644 --- a/tests/integration/Db/DbCest.php +++ b/tests/integration/Db/DbCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -35,7 +35,7 @@ public function _after(IntegrationTester $I) /** * Tests Phalcon\Db * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider adaptersProvider diff --git a/tests/integration/Db/Dialect/Mysql/AddColumnCest.php b/tests/integration/Db/Dialect/Mysql/AddColumnCest.php index b502791bc11..b00a7c32a8e 100644 --- a/tests/integration/Db/Dialect/Mysql/AddColumnCest.php +++ b/tests/integration/Db/Dialect/Mysql/AddColumnCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class AddColumnCest /** * Tests Dialect::addColumn * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getAddColumnFixtures diff --git a/tests/integration/Db/Dialect/Mysql/AddForeignKeyCest.php b/tests/integration/Db/Dialect/Mysql/AddForeignKeyCest.php index 31adde75a04..0b9176c20dd 100644 --- a/tests/integration/Db/Dialect/Mysql/AddForeignKeyCest.php +++ b/tests/integration/Db/Dialect/Mysql/AddForeignKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class AddForeignKeyCest /** * Tests Phalcon\Db\Dialect\Mysql :: addForeignKey() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getAddForeignKeyFixtures diff --git a/tests/integration/Db/Dialect/Mysql/AddIndexCest.php b/tests/integration/Db/Dialect/Mysql/AddIndexCest.php index b5a9800c321..363e1329de7 100644 --- a/tests/integration/Db/Dialect/Mysql/AddIndexCest.php +++ b/tests/integration/Db/Dialect/Mysql/AddIndexCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class AddIndexCest /** * Tests Phalcon\Db\Dialect\Mysql :: addIndex() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getAddIndexFixtures diff --git a/tests/integration/Db/Dialect/Mysql/AddPrimaryKeyCest.php b/tests/integration/Db/Dialect/Mysql/AddPrimaryKeyCest.php index 7e5e8fbaf61..77a2656a011 100644 --- a/tests/integration/Db/Dialect/Mysql/AddPrimaryKeyCest.php +++ b/tests/integration/Db/Dialect/Mysql/AddPrimaryKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class AddPrimaryKeyCest /** * Tests Phalcon\Db\Dialect\Mysql :: addPrimaryKey() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getAddPrimaryKeyFixtures diff --git a/tests/integration/Db/Dialect/Mysql/CreateSavepointCest.php b/tests/integration/Db/Dialect/Mysql/CreateSavepointCest.php index 66cfba0338c..8f5c584f1da 100644 --- a/tests/integration/Db/Dialect/Mysql/CreateSavepointCest.php +++ b/tests/integration/Db/Dialect/Mysql/CreateSavepointCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class CreateSavepointCest /** * Tests Phalcon\Db\Dialect\Mysql :: createSavepoint() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 */ public function dbDialectMysqlCreateSavepoint(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Mysql/CreateTableCest.php b/tests/integration/Db/Dialect/Mysql/CreateTableCest.php index 87f1d68f5f5..49f24edb25d 100644 --- a/tests/integration/Db/Dialect/Mysql/CreateTableCest.php +++ b/tests/integration/Db/Dialect/Mysql/CreateTableCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class CreateTableCest /** * Tests Phalcon\Db\Dialect\Mysql :: createTable() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getCreateTableFixtures diff --git a/tests/integration/Db/Dialect/Mysql/CreateViewCest.php b/tests/integration/Db/Dialect/Mysql/CreateViewCest.php index 22c526d8e30..b1392c3e4eb 100644 --- a/tests/integration/Db/Dialect/Mysql/CreateViewCest.php +++ b/tests/integration/Db/Dialect/Mysql/CreateViewCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class CreateViewCest /** * Tests Phalcon\Db\Dialect\Mysql :: createView() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getCreateViewFixtures diff --git a/tests/integration/Db/Dialect/Mysql/DescribeColumnsCest.php b/tests/integration/Db/Dialect/Mysql/DescribeColumnsCest.php index 5fadc01debd..940b2080cc2 100644 --- a/tests/integration/Db/Dialect/Mysql/DescribeColumnsCest.php +++ b/tests/integration/Db/Dialect/Mysql/DescribeColumnsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class DescribeColumnsCest * @issue https://github.com/phalcon/cphalcon/issues/12536 * @issue https://github.com/phalcon/cphalcon/issues/11359 * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getDescribeColumnsFixtures diff --git a/tests/integration/Db/Dialect/Mysql/DescribeIndexesCest.php b/tests/integration/Db/Dialect/Mysql/DescribeIndexesCest.php index 52acdac6670..3b0bdfc8881 100644 --- a/tests/integration/Db/Dialect/Mysql/DescribeIndexesCest.php +++ b/tests/integration/Db/Dialect/Mysql/DescribeIndexesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class DescribeIndexesCest /** * Tests Phalcon\Db\Dialect\Mysql :: describeIndexes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectMysqlDescribeIndexes(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Mysql/DescribeReferencesCest.php b/tests/integration/Db/Dialect/Mysql/DescribeReferencesCest.php index 64d1ea8b505..904c85740e6 100644 --- a/tests/integration/Db/Dialect/Mysql/DescribeReferencesCest.php +++ b/tests/integration/Db/Dialect/Mysql/DescribeReferencesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class DescribeReferencesCest /** * Tests Phalcon\Db\Dialect\Mysql :: describeReferences() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getDescribeReferencesFixtures diff --git a/tests/integration/Db/Dialect/Mysql/DropColumnCest.php b/tests/integration/Db/Dialect/Mysql/DropColumnCest.php index a0acfebd112..32261ece884 100644 --- a/tests/integration/Db/Dialect/Mysql/DropColumnCest.php +++ b/tests/integration/Db/Dialect/Mysql/DropColumnCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Dialect/Mysql/DropForeignKeyCest.php b/tests/integration/Db/Dialect/Mysql/DropForeignKeyCest.php index 3051e6eb00a..9e7584cb20f 100644 --- a/tests/integration/Db/Dialect/Mysql/DropForeignKeyCest.php +++ b/tests/integration/Db/Dialect/Mysql/DropForeignKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Dialect/Mysql/DropIndexCest.php b/tests/integration/Db/Dialect/Mysql/DropIndexCest.php index ece7b1cd840..866a5fb51e6 100644 --- a/tests/integration/Db/Dialect/Mysql/DropIndexCest.php +++ b/tests/integration/Db/Dialect/Mysql/DropIndexCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Dialect/Mysql/DropPrimaryKeyCest.php b/tests/integration/Db/Dialect/Mysql/DropPrimaryKeyCest.php index 7e3e3b77ce3..ea0a9a90c9e 100644 --- a/tests/integration/Db/Dialect/Mysql/DropPrimaryKeyCest.php +++ b/tests/integration/Db/Dialect/Mysql/DropPrimaryKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class DropPrimaryKeyCest /** * Tests Phalcon\Db\Dialect\Mysql :: dropPrimaryKey() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getDropPrimaryKeyFixtures diff --git a/tests/integration/Db/Dialect/Mysql/DropTableCest.php b/tests/integration/Db/Dialect/Mysql/DropTableCest.php index 89ebd9c5e3d..f40ac550b40 100644 --- a/tests/integration/Db/Dialect/Mysql/DropTableCest.php +++ b/tests/integration/Db/Dialect/Mysql/DropTableCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Dialect/Mysql/DropViewCest.php b/tests/integration/Db/Dialect/Mysql/DropViewCest.php index 40e96fb277f..ca75ce203f5 100644 --- a/tests/integration/Db/Dialect/Mysql/DropViewCest.php +++ b/tests/integration/Db/Dialect/Mysql/DropViewCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class DropViewCest /** * Tests Phalcon\Db\Dialect\Mysql :: dropView() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getDropViewFixtures diff --git a/tests/integration/Db/Dialect/Mysql/EscapeCest.php b/tests/integration/Db/Dialect/Mysql/EscapeCest.php index 01b746c8e1f..e219fba8bca 100644 --- a/tests/integration/Db/Dialect/Mysql/EscapeCest.php +++ b/tests/integration/Db/Dialect/Mysql/EscapeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class EscapeCest /** * Tests Phalcon\Db\Dialect\Mysql :: escape() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectMysqlEscape(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Mysql/EscapeSchemaCest.php b/tests/integration/Db/Dialect/Mysql/EscapeSchemaCest.php index 0ba9089a9a3..d8d1ded2331 100644 --- a/tests/integration/Db/Dialect/Mysql/EscapeSchemaCest.php +++ b/tests/integration/Db/Dialect/Mysql/EscapeSchemaCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class EscapeSchemaCest /** * Tests Phalcon\Db\Dialect\Mysql :: escapeSchema() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectMysqlEscapeSchema(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Mysql/ForUpdateCest.php b/tests/integration/Db/Dialect/Mysql/ForUpdateCest.php index 604590678fe..bd0695f2bd7 100644 --- a/tests/integration/Db/Dialect/Mysql/ForUpdateCest.php +++ b/tests/integration/Db/Dialect/Mysql/ForUpdateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ForUpdateCest /** * Tests Phalcon\Db\Dialect\Mysql :: forUpdate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectMysqlForUpdate(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Mysql/GetColumnDefinitionCest.php b/tests/integration/Db/Dialect/Mysql/GetColumnDefinitionCest.php index 138776789e4..179c4ec4b28 100644 --- a/tests/integration/Db/Dialect/Mysql/GetColumnDefinitionCest.php +++ b/tests/integration/Db/Dialect/Mysql/GetColumnDefinitionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class GetColumnDefinitionCest /** * Tests Phalcon\Db\Dialect\Mysql :: getColumnDefinition() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getColumnDefinitionFixtures diff --git a/tests/integration/Db/Dialect/Mysql/GetColumnListCest.php b/tests/integration/Db/Dialect/Mysql/GetColumnListCest.php index 8a94e702efa..4945e3fcf9e 100644 --- a/tests/integration/Db/Dialect/Mysql/GetColumnListCest.php +++ b/tests/integration/Db/Dialect/Mysql/GetColumnListCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetColumnListCest /** * Tests Phalcon\Db\Dialect\Mysql :: getColumnList() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getColumnListFixtures diff --git a/tests/integration/Db/Dialect/Mysql/GetCustomFunctionsCest.php b/tests/integration/Db/Dialect/Mysql/GetCustomFunctionsCest.php index 3a277012b64..79fe5cf1c89 100644 --- a/tests/integration/Db/Dialect/Mysql/GetCustomFunctionsCest.php +++ b/tests/integration/Db/Dialect/Mysql/GetCustomFunctionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetCustomFunctionsCest /** * Tests Phalcon\Db\Dialect\Mysql :: getCustomFunctions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectMysqlGetCustomFunctions(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Mysql/GetForeignKeyChecksCest.php b/tests/integration/Db/Dialect/Mysql/GetForeignKeyChecksCest.php index 461cf085341..8ef454186ef 100644 --- a/tests/integration/Db/Dialect/Mysql/GetForeignKeyChecksCest.php +++ b/tests/integration/Db/Dialect/Mysql/GetForeignKeyChecksCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetForeignKeyChecksCest /** * Tests Phalcon\Db\Dialect\Mysql :: getForeignKeyChecks() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectMysqlGetForeignKeyChecks(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Mysql/GetSqlColumnCest.php b/tests/integration/Db/Dialect/Mysql/GetSqlColumnCest.php index f1cdabef225..50c9b072b52 100644 --- a/tests/integration/Db/Dialect/Mysql/GetSqlColumnCest.php +++ b/tests/integration/Db/Dialect/Mysql/GetSqlColumnCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetSqlColumnCest /** * Tests Phalcon\Db\Dialect\Mysql :: getSqlColumn() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectMysqlGetSqlColumn(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Mysql/GetSqlExpressionCest.php b/tests/integration/Db/Dialect/Mysql/GetSqlExpressionCest.php index f577d32a2d5..c7729dc439c 100644 --- a/tests/integration/Db/Dialect/Mysql/GetSqlExpressionCest.php +++ b/tests/integration/Db/Dialect/Mysql/GetSqlExpressionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetSqlExpressionCest /** * Tests Phalcon\Db\Dialect\Mysql :: getSqlExpression() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectMysqlGetSqlExpression(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Mysql/GetSqlTableCest.php b/tests/integration/Db/Dialect/Mysql/GetSqlTableCest.php index c78543fcdad..516d84fe976 100644 --- a/tests/integration/Db/Dialect/Mysql/GetSqlTableCest.php +++ b/tests/integration/Db/Dialect/Mysql/GetSqlTableCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetSqlTableCest /** * Tests Phalcon\Db\Dialect\Mysql :: getSqlTable() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectMysqlGetSqlTable(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Mysql/LimitCest.php b/tests/integration/Db/Dialect/Mysql/LimitCest.php index 73fc5d86afa..95a82c90c07 100644 --- a/tests/integration/Db/Dialect/Mysql/LimitCest.php +++ b/tests/integration/Db/Dialect/Mysql/LimitCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class LimitCest /** * Tests Phalcon\Db\Dialect\Mysql :: limit() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectMysqlLimit(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Mysql/ListTablesCest.php b/tests/integration/Db/Dialect/Mysql/ListTablesCest.php index ce9db91221b..08436e7b5ba 100644 --- a/tests/integration/Db/Dialect/Mysql/ListTablesCest.php +++ b/tests/integration/Db/Dialect/Mysql/ListTablesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ListTablesCest /** * Tests Phalcon\Db\Dialect\Mysql :: listTables() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectMysqlListTables(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Mysql/ListViewsCest.php b/tests/integration/Db/Dialect/Mysql/ListViewsCest.php index 67e448df63d..24768e46e6f 100644 --- a/tests/integration/Db/Dialect/Mysql/ListViewsCest.php +++ b/tests/integration/Db/Dialect/Mysql/ListViewsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ListViewsCest /** * Tests Phalcon\Db\Dialect\Mysql :: listViews() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getListViewFixtures diff --git a/tests/integration/Db/Dialect/Mysql/ModifyColumnCest.php b/tests/integration/Db/Dialect/Mysql/ModifyColumnCest.php index 77fa5963ae7..d53344d01e4 100644 --- a/tests/integration/Db/Dialect/Mysql/ModifyColumnCest.php +++ b/tests/integration/Db/Dialect/Mysql/ModifyColumnCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class ModifyColumnCest /** * Tests Phalcon\Db\Dialect\Mysql :: modifyColumn() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getModifyColumnFixtures @@ -55,7 +55,7 @@ public function dbDialectMysqlModifyColumn(IntegrationTester $I, Example $exampl /** * Tests Phalcon\Db\Dialect\Mysql :: modifyColumn() - bug 13012 * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-01-20 * @issue https://github.com/phalcon/cphalcon/issues/13012 */ diff --git a/tests/integration/Db/Dialect/Mysql/RegisterCustomFunctionCest.php b/tests/integration/Db/Dialect/Mysql/RegisterCustomFunctionCest.php index 9e8611d6a14..db2b7323af6 100644 --- a/tests/integration/Db/Dialect/Mysql/RegisterCustomFunctionCest.php +++ b/tests/integration/Db/Dialect/Mysql/RegisterCustomFunctionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class RegisterCustomFunctionCest /** * Tests Phalcon\Db\Dialect\Mysql :: registerCustomFunction() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectMysqlRegisterCustomFunction(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Mysql/ReleaseSavepointCest.php b/tests/integration/Db/Dialect/Mysql/ReleaseSavepointCest.php index 5a990d4ca2e..9c9f51b9fb8 100644 --- a/tests/integration/Db/Dialect/Mysql/ReleaseSavepointCest.php +++ b/tests/integration/Db/Dialect/Mysql/ReleaseSavepointCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ReleaseSavepointCest /** * Tests Phalcon\Db\Dialect\Mysql :: releaseSavepoint() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 */ public function dbDialectMysqlReleaseSavepoint(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Mysql/RollbackSavepointCest.php b/tests/integration/Db/Dialect/Mysql/RollbackSavepointCest.php index b754a4b5e8f..29930f885b5 100644 --- a/tests/integration/Db/Dialect/Mysql/RollbackSavepointCest.php +++ b/tests/integration/Db/Dialect/Mysql/RollbackSavepointCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class RollbackSavepointCest /** * Tests Phalcon\Db\Dialect\Mysql :: rollbackSavepoint() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 */ public function dbDialectMysqlRollbackSavepoint(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Mysql/SelectCest.php b/tests/integration/Db/Dialect/Mysql/SelectCest.php index 7c466e39c19..e50ffad405a 100644 --- a/tests/integration/Db/Dialect/Mysql/SelectCest.php +++ b/tests/integration/Db/Dialect/Mysql/SelectCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SelectCest /** * Tests Phalcon\Db\Dialect\Mysql :: select() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectMysqlSelect(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Mysql/SharedLockCest.php b/tests/integration/Db/Dialect/Mysql/SharedLockCest.php index a4c22d6bb64..4b814075f4f 100644 --- a/tests/integration/Db/Dialect/Mysql/SharedLockCest.php +++ b/tests/integration/Db/Dialect/Mysql/SharedLockCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Dialect/Mysql/SupportsReleaseSavepointsCest.php b/tests/integration/Db/Dialect/Mysql/SupportsReleaseSavepointsCest.php index 7e176c22a45..f38178ca6fb 100644 --- a/tests/integration/Db/Dialect/Mysql/SupportsReleaseSavepointsCest.php +++ b/tests/integration/Db/Dialect/Mysql/SupportsReleaseSavepointsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SupportsReleaseSavepointsCest /** * Tests Phalcon\Db\Dialect\Mysql :: supportsReleaseSavepoints() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 */ public function dbDialectMysqlSupportsReleaseSavepoints(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Mysql/SupportsSavepointsCest.php b/tests/integration/Db/Dialect/Mysql/SupportsSavepointsCest.php index 297fd948591..ad0bedad8f3 100644 --- a/tests/integration/Db/Dialect/Mysql/SupportsSavepointsCest.php +++ b/tests/integration/Db/Dialect/Mysql/SupportsSavepointsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SupportsSavepointsCest /** * Tests Phalcon\Db\Dialect\Mysql :: supportsSavepoints() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 */ public function dbDialectMysqlSupportsSavepoints(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Mysql/TableExistsCest.php b/tests/integration/Db/Dialect/Mysql/TableExistsCest.php index 051d6451d80..792f07b4ba8 100644 --- a/tests/integration/Db/Dialect/Mysql/TableExistsCest.php +++ b/tests/integration/Db/Dialect/Mysql/TableExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Dialect/Mysql/TableOptionsCest.php b/tests/integration/Db/Dialect/Mysql/TableOptionsCest.php index 391575c978c..c2d462389fe 100644 --- a/tests/integration/Db/Dialect/Mysql/TableOptionsCest.php +++ b/tests/integration/Db/Dialect/Mysql/TableOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class TableOptionsCest /** * Tests Phalcon\Db\Dialect\Mysql :: tableOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectMysqlTableOptions(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Mysql/TruncateTableCest.php b/tests/integration/Db/Dialect/Mysql/TruncateTableCest.php index 68a6a3f67f7..08fa3bb8382 100644 --- a/tests/integration/Db/Dialect/Mysql/TruncateTableCest.php +++ b/tests/integration/Db/Dialect/Mysql/TruncateTableCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Dialect/Mysql/ViewExistsCest.php b/tests/integration/Db/Dialect/Mysql/ViewExistsCest.php index edb335fc7d5..ca43e467866 100644 --- a/tests/integration/Db/Dialect/Mysql/ViewExistsCest.php +++ b/tests/integration/Db/Dialect/Mysql/ViewExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ViewExistsCest /** * Tests Phalcon\Db\Dialect\Mysql :: viewExists() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getViewExistsFixtures diff --git a/tests/integration/Db/Dialect/Postgresql/AddColumnCest.php b/tests/integration/Db/Dialect/Postgresql/AddColumnCest.php index 5616ade5306..508cf88552e 100644 --- a/tests/integration/Db/Dialect/Postgresql/AddColumnCest.php +++ b/tests/integration/Db/Dialect/Postgresql/AddColumnCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class AddColumnCest /** * Tests Dialect::addColumn * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getAddColumnFixtures diff --git a/tests/integration/Db/Dialect/Postgresql/AddForeignKeyCest.php b/tests/integration/Db/Dialect/Postgresql/AddForeignKeyCest.php index 086cf4e15cb..93a0707511b 100644 --- a/tests/integration/Db/Dialect/Postgresql/AddForeignKeyCest.php +++ b/tests/integration/Db/Dialect/Postgresql/AddForeignKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class AddForeignKeyCest /** * Tests Phalcon\Db\Dialect\Postgresql :: addForeignKey() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getAddForeignKeyFixtures diff --git a/tests/integration/Db/Dialect/Postgresql/AddIndexCest.php b/tests/integration/Db/Dialect/Postgresql/AddIndexCest.php index 41d82bf7c96..b6929324c49 100644 --- a/tests/integration/Db/Dialect/Postgresql/AddIndexCest.php +++ b/tests/integration/Db/Dialect/Postgresql/AddIndexCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class AddIndexCest /** * Tests Phalcon\Db\Dialect\Postgresql :: addIndex() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getAddIndexFixtures diff --git a/tests/integration/Db/Dialect/Postgresql/AddPrimaryKeyCest.php b/tests/integration/Db/Dialect/Postgresql/AddPrimaryKeyCest.php index f4f743c3db8..a7a8311181a 100644 --- a/tests/integration/Db/Dialect/Postgresql/AddPrimaryKeyCest.php +++ b/tests/integration/Db/Dialect/Postgresql/AddPrimaryKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class AddPrimaryKeyCest /** * Tests Phalcon\Db\Dialect\Postgresql :: addPrimaryKey() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getAddPrimaryKeyFixtures diff --git a/tests/integration/Db/Dialect/Postgresql/CreateSavepointCest.php b/tests/integration/Db/Dialect/Postgresql/CreateSavepointCest.php index 79d0a612472..84d727330f7 100644 --- a/tests/integration/Db/Dialect/Postgresql/CreateSavepointCest.php +++ b/tests/integration/Db/Dialect/Postgresql/CreateSavepointCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class CreateSavepointCest /** * Tests Phalcon\Db\Dialect\Postgresql :: createSavepoint() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 */ public function dbDialectPostgresqlCreateSavepoint(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Postgresql/CreateTableCest.php b/tests/integration/Db/Dialect/Postgresql/CreateTableCest.php index ae14822145a..c4c8bf9e85a 100644 --- a/tests/integration/Db/Dialect/Postgresql/CreateTableCest.php +++ b/tests/integration/Db/Dialect/Postgresql/CreateTableCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class CreateTableCest /** * Tests Phalcon\Db\Dialect\Postgresql :: createTable() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getCreateTableFixtures diff --git a/tests/integration/Db/Dialect/Postgresql/CreateViewCest.php b/tests/integration/Db/Dialect/Postgresql/CreateViewCest.php index 822b6ca521d..c0ee2d3e8bc 100644 --- a/tests/integration/Db/Dialect/Postgresql/CreateViewCest.php +++ b/tests/integration/Db/Dialect/Postgresql/CreateViewCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class CreateViewCest /** * Tests Phalcon\Db\Dialect\Postgresql :: createView() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getCreateViewFixtures diff --git a/tests/integration/Db/Dialect/Postgresql/DescribeColumnsCest.php b/tests/integration/Db/Dialect/Postgresql/DescribeColumnsCest.php index 762e5a5438d..1f0faf13cac 100644 --- a/tests/integration/Db/Dialect/Postgresql/DescribeColumnsCest.php +++ b/tests/integration/Db/Dialect/Postgresql/DescribeColumnsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class DescribeColumnsCest * @issue https://github.com/phalcon/cphalcon/issues/12536 * @issue https://github.com/phalcon/cphalcon/issues/11359 * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getDescribeColumnsFixtures diff --git a/tests/integration/Db/Dialect/Postgresql/DescribeIndexesCest.php b/tests/integration/Db/Dialect/Postgresql/DescribeIndexesCest.php index 7b269c414b7..37ccab1dabc 100644 --- a/tests/integration/Db/Dialect/Postgresql/DescribeIndexesCest.php +++ b/tests/integration/Db/Dialect/Postgresql/DescribeIndexesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class DescribeIndexesCest /** * Tests Phalcon\Db\Dialect\Postgresql :: describeIndexes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectPostgresqlDescribeIndexes(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Postgresql/DescribeReferencesCest.php b/tests/integration/Db/Dialect/Postgresql/DescribeReferencesCest.php index 76f094c9d06..238437322c7 100644 --- a/tests/integration/Db/Dialect/Postgresql/DescribeReferencesCest.php +++ b/tests/integration/Db/Dialect/Postgresql/DescribeReferencesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class DescribeReferencesCest /** * Tests Phalcon\Db\Dialect\Postgresql :: describeReferences() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getDescribeReferencesFixtures diff --git a/tests/integration/Db/Dialect/Postgresql/DropColumnCest.php b/tests/integration/Db/Dialect/Postgresql/DropColumnCest.php index 817d09edd38..9a0d877019b 100644 --- a/tests/integration/Db/Dialect/Postgresql/DropColumnCest.php +++ b/tests/integration/Db/Dialect/Postgresql/DropColumnCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Dialect/Postgresql/DropForeignKeyCest.php b/tests/integration/Db/Dialect/Postgresql/DropForeignKeyCest.php index 5358c4c7f1f..844d912be02 100644 --- a/tests/integration/Db/Dialect/Postgresql/DropForeignKeyCest.php +++ b/tests/integration/Db/Dialect/Postgresql/DropForeignKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Dialect/Postgresql/DropIndexCest.php b/tests/integration/Db/Dialect/Postgresql/DropIndexCest.php index 01814de544b..a32a49602e2 100644 --- a/tests/integration/Db/Dialect/Postgresql/DropIndexCest.php +++ b/tests/integration/Db/Dialect/Postgresql/DropIndexCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Dialect/Postgresql/DropPrimaryKeyCest.php b/tests/integration/Db/Dialect/Postgresql/DropPrimaryKeyCest.php index 661292db700..14e8db51356 100644 --- a/tests/integration/Db/Dialect/Postgresql/DropPrimaryKeyCest.php +++ b/tests/integration/Db/Dialect/Postgresql/DropPrimaryKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class DropPrimaryKeyCest /** * Tests Phalcon\Db\Dialect\Postgresql :: dropPrimaryKey() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getDropPrimaryKeyFixtures diff --git a/tests/integration/Db/Dialect/Postgresql/DropTableCest.php b/tests/integration/Db/Dialect/Postgresql/DropTableCest.php index 0b5ca358b30..d1a1c7673f0 100644 --- a/tests/integration/Db/Dialect/Postgresql/DropTableCest.php +++ b/tests/integration/Db/Dialect/Postgresql/DropTableCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Dialect/Postgresql/DropViewCest.php b/tests/integration/Db/Dialect/Postgresql/DropViewCest.php index 22e70761cde..f37dd065d4d 100644 --- a/tests/integration/Db/Dialect/Postgresql/DropViewCest.php +++ b/tests/integration/Db/Dialect/Postgresql/DropViewCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class DropViewCest /** * Tests Phalcon\Db\Dialect\Postgresql :: dropView() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getDropViewFixtures diff --git a/tests/integration/Db/Dialect/Postgresql/EscapeCest.php b/tests/integration/Db/Dialect/Postgresql/EscapeCest.php index 1d03c0f2cdc..e4cd31538e9 100644 --- a/tests/integration/Db/Dialect/Postgresql/EscapeCest.php +++ b/tests/integration/Db/Dialect/Postgresql/EscapeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class EscapeCest /** * Tests Phalcon\Db\Dialect\Postgresql :: escape() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectPostgresqlEscape(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Postgresql/EscapeSchemaCest.php b/tests/integration/Db/Dialect/Postgresql/EscapeSchemaCest.php index 228a9985d7f..047f07e1aec 100644 --- a/tests/integration/Db/Dialect/Postgresql/EscapeSchemaCest.php +++ b/tests/integration/Db/Dialect/Postgresql/EscapeSchemaCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class EscapeSchemaCest /** * Tests Phalcon\Db\Dialect\Postgresql :: escapeSchema() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectPostgresqlEscapeSchema(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Postgresql/ForUpdateCest.php b/tests/integration/Db/Dialect/Postgresql/ForUpdateCest.php index b1d1f0563aa..895b8dfd55f 100644 --- a/tests/integration/Db/Dialect/Postgresql/ForUpdateCest.php +++ b/tests/integration/Db/Dialect/Postgresql/ForUpdateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ForUpdateCest /** * Tests Phalcon\Db\Dialect\Postgresql :: forUpdate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectPostgresqlForUpdate(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Postgresql/GetColumnDefinitionCest.php b/tests/integration/Db/Dialect/Postgresql/GetColumnDefinitionCest.php index e620d425c13..f9b2bc8d10c 100644 --- a/tests/integration/Db/Dialect/Postgresql/GetColumnDefinitionCest.php +++ b/tests/integration/Db/Dialect/Postgresql/GetColumnDefinitionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class GetColumnDefinitionCest /** * Tests Phalcon\Db\Dialect\Postgresql :: getColumnDefinition() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getColumnDefinitionFixtures diff --git a/tests/integration/Db/Dialect/Postgresql/GetColumnListCest.php b/tests/integration/Db/Dialect/Postgresql/GetColumnListCest.php index 74c5a060627..a442470e54b 100644 --- a/tests/integration/Db/Dialect/Postgresql/GetColumnListCest.php +++ b/tests/integration/Db/Dialect/Postgresql/GetColumnListCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetColumnListCest /** * Tests Phalcon\Db\Dialect\Postgresql :: getColumnList() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getColumnListFixtures diff --git a/tests/integration/Db/Dialect/Postgresql/GetCustomFunctionsCest.php b/tests/integration/Db/Dialect/Postgresql/GetCustomFunctionsCest.php index 31da59d62d4..8c186e377a9 100644 --- a/tests/integration/Db/Dialect/Postgresql/GetCustomFunctionsCest.php +++ b/tests/integration/Db/Dialect/Postgresql/GetCustomFunctionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetCustomFunctionsCest /** * Tests Phalcon\Db\Dialect\Postgresql :: getCustomFunctions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectPostgresqlGetCustomFunctions(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Postgresql/GetSqlColumnCest.php b/tests/integration/Db/Dialect/Postgresql/GetSqlColumnCest.php index ad62ba1bc78..1c0a08bd0f3 100644 --- a/tests/integration/Db/Dialect/Postgresql/GetSqlColumnCest.php +++ b/tests/integration/Db/Dialect/Postgresql/GetSqlColumnCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetSqlColumnCest /** * Tests Phalcon\Db\Dialect\Postgresql :: getSqlColumn() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectPostgresqlGetSqlColumn(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Postgresql/GetSqlExpressionCest.php b/tests/integration/Db/Dialect/Postgresql/GetSqlExpressionCest.php index 969b154fd1f..b36457e5785 100644 --- a/tests/integration/Db/Dialect/Postgresql/GetSqlExpressionCest.php +++ b/tests/integration/Db/Dialect/Postgresql/GetSqlExpressionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetSqlExpressionCest /** * Tests Phalcon\Db\Dialect\Postgresql :: getSqlExpression() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectPostgresqlGetSqlExpression(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Postgresql/GetSqlTableCest.php b/tests/integration/Db/Dialect/Postgresql/GetSqlTableCest.php index 92b3615679b..498d49152a9 100644 --- a/tests/integration/Db/Dialect/Postgresql/GetSqlTableCest.php +++ b/tests/integration/Db/Dialect/Postgresql/GetSqlTableCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetSqlTableCest /** * Tests Phalcon\Db\Dialect\Postgresql :: getSqlTable() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectPostgresqlGetSqlTable(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Postgresql/LimitCest.php b/tests/integration/Db/Dialect/Postgresql/LimitCest.php index 13dd14cf0ec..e0c74ee8ec9 100644 --- a/tests/integration/Db/Dialect/Postgresql/LimitCest.php +++ b/tests/integration/Db/Dialect/Postgresql/LimitCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class LimitCest /** * Tests Phalcon\Db\Dialect\Postgresql :: limit() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectPostgresqlLimit(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Postgresql/ListTablesCest.php b/tests/integration/Db/Dialect/Postgresql/ListTablesCest.php index c5cacf9b72d..82a96c6018f 100644 --- a/tests/integration/Db/Dialect/Postgresql/ListTablesCest.php +++ b/tests/integration/Db/Dialect/Postgresql/ListTablesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ListTablesCest /** * Tests Phalcon\Db\Dialect\Postgresql :: listTables() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectPostgresqlListTables(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Postgresql/ListViewsCest.php b/tests/integration/Db/Dialect/Postgresql/ListViewsCest.php index bbbcda3ee63..d1ada36a53e 100644 --- a/tests/integration/Db/Dialect/Postgresql/ListViewsCest.php +++ b/tests/integration/Db/Dialect/Postgresql/ListViewsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ListViewsCest /** * Tests Phalcon\Db\Dialect\Postgresql :: listViews() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getListViewFixtures diff --git a/tests/integration/Db/Dialect/Postgresql/ModifyColumnCest.php b/tests/integration/Db/Dialect/Postgresql/ModifyColumnCest.php index 35239a3056a..65f738d1600 100644 --- a/tests/integration/Db/Dialect/Postgresql/ModifyColumnCest.php +++ b/tests/integration/Db/Dialect/Postgresql/ModifyColumnCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class ModifyColumnCest /** * Tests Phalcon\Db\Dialect\Postgresql :: modifyColumn() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getModifyColumnFixtures @@ -55,7 +55,7 @@ public function dbDialectPostgresqlModifyColumn(IntegrationTester $I, Example $e /** * Tests Phalcon\Db\Dialect\Postgresql :: modifyColumn() - bug 13012 * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-01-20 * @issue https://github.com/phalcon/cphalcon/issues/13012 */ diff --git a/tests/integration/Db/Dialect/Postgresql/RegisterCustomFunctionCest.php b/tests/integration/Db/Dialect/Postgresql/RegisterCustomFunctionCest.php index f284d2ac10e..ee0bf400ebc 100644 --- a/tests/integration/Db/Dialect/Postgresql/RegisterCustomFunctionCest.php +++ b/tests/integration/Db/Dialect/Postgresql/RegisterCustomFunctionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class RegisterCustomFunctionCest /** * Tests Phalcon\Db\Dialect\Postgresql :: registerCustomFunction() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectPostgresqlRegisterCustomFunction(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Postgresql/ReleaseSavepointCest.php b/tests/integration/Db/Dialect/Postgresql/ReleaseSavepointCest.php index 5085d77f82a..205069ca8df 100644 --- a/tests/integration/Db/Dialect/Postgresql/ReleaseSavepointCest.php +++ b/tests/integration/Db/Dialect/Postgresql/ReleaseSavepointCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ReleaseSavepointCest /** * Tests Phalcon\Db\Dialect\Postgresql :: releaseSavepoint() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 */ public function dbDialectPostgresqlReleaseSavepoint(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Postgresql/RollbackSavepointCest.php b/tests/integration/Db/Dialect/Postgresql/RollbackSavepointCest.php index a622215dffd..c79470af07e 100644 --- a/tests/integration/Db/Dialect/Postgresql/RollbackSavepointCest.php +++ b/tests/integration/Db/Dialect/Postgresql/RollbackSavepointCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class RollbackSavepointCest /** * Tests Phalcon\Db\Dialect\Postgresql :: rollbackSavepoint() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 */ public function dbDialectPostgresqlRollbackSavepoint(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Postgresql/SelectCest.php b/tests/integration/Db/Dialect/Postgresql/SelectCest.php index 080613afb4b..1261049a5ab 100644 --- a/tests/integration/Db/Dialect/Postgresql/SelectCest.php +++ b/tests/integration/Db/Dialect/Postgresql/SelectCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SelectCest /** * Tests Phalcon\Db\Dialect\Postgresql :: select() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectPostgresqlSelect(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Postgresql/SharedLockCest.php b/tests/integration/Db/Dialect/Postgresql/SharedLockCest.php index f960ff26481..5d5905ea884 100644 --- a/tests/integration/Db/Dialect/Postgresql/SharedLockCest.php +++ b/tests/integration/Db/Dialect/Postgresql/SharedLockCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SharedLockCest /** * Tests Phalcon\Db\Dialect\Postgresql :: sharedLock() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectPostgresqlSharedLock(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Postgresql/SupportsReleaseSavepointsCest.php b/tests/integration/Db/Dialect/Postgresql/SupportsReleaseSavepointsCest.php index 2ab83c07ceb..31ccb84c71b 100644 --- a/tests/integration/Db/Dialect/Postgresql/SupportsReleaseSavepointsCest.php +++ b/tests/integration/Db/Dialect/Postgresql/SupportsReleaseSavepointsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SupportsReleaseSavepointsCest /** * Tests Phalcon\Db\Dialect\Postgresql :: supportsReleaseSavepoints() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 */ public function dbDialectPostgresqlSupportsReleaseSavepoints(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Postgresql/SupportsSavepointsCest.php b/tests/integration/Db/Dialect/Postgresql/SupportsSavepointsCest.php index 62a01d2ede8..2fe3337904c 100644 --- a/tests/integration/Db/Dialect/Postgresql/SupportsSavepointsCest.php +++ b/tests/integration/Db/Dialect/Postgresql/SupportsSavepointsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SupportsSavepointsCest /** * Tests Phalcon\Db\Dialect\Postgresql :: supportsSavepoints() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 */ public function dbDialectPostgresqlSupportsSavepoints(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Postgresql/TableExistsCest.php b/tests/integration/Db/Dialect/Postgresql/TableExistsCest.php index 06bb685a80c..fabb78e6b6f 100644 --- a/tests/integration/Db/Dialect/Postgresql/TableExistsCest.php +++ b/tests/integration/Db/Dialect/Postgresql/TableExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Dialect/Postgresql/TableOptionsCest.php b/tests/integration/Db/Dialect/Postgresql/TableOptionsCest.php index 70994cf6013..01f5b2c2a83 100644 --- a/tests/integration/Db/Dialect/Postgresql/TableOptionsCest.php +++ b/tests/integration/Db/Dialect/Postgresql/TableOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class TableOptionsCest /** * Tests Phalcon\Db\Dialect\Postgresql :: tableOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectPostgresqlTableOptions(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Postgresql/TruncateTableCest.php b/tests/integration/Db/Dialect/Postgresql/TruncateTableCest.php index b98685a5624..a67107d2cf9 100644 --- a/tests/integration/Db/Dialect/Postgresql/TruncateTableCest.php +++ b/tests/integration/Db/Dialect/Postgresql/TruncateTableCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Dialect/Postgresql/ViewExistsCest.php b/tests/integration/Db/Dialect/Postgresql/ViewExistsCest.php index 49c3ca89c64..7e646b1e807 100644 --- a/tests/integration/Db/Dialect/Postgresql/ViewExistsCest.php +++ b/tests/integration/Db/Dialect/Postgresql/ViewExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ViewExistsCest /** * Tests Phalcon\Db\Dialect\Postgresql :: viewExists() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getViewExistsFixtures diff --git a/tests/integration/Db/Dialect/Sqlite/AddColumnCest.php b/tests/integration/Db/Dialect/Sqlite/AddColumnCest.php index 48ea4632d9b..648b0812e6e 100644 --- a/tests/integration/Db/Dialect/Sqlite/AddColumnCest.php +++ b/tests/integration/Db/Dialect/Sqlite/AddColumnCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class AddColumnCest /** * Tests Dialect::addColumn * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getAddColumnFixtures diff --git a/tests/integration/Db/Dialect/Sqlite/AddForeignKeyCest.php b/tests/integration/Db/Dialect/Sqlite/AddForeignKeyCest.php index ed0569c72d0..1d28c0a566e 100644 --- a/tests/integration/Db/Dialect/Sqlite/AddForeignKeyCest.php +++ b/tests/integration/Db/Dialect/Sqlite/AddForeignKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Dialect/Sqlite/AddIndexCest.php b/tests/integration/Db/Dialect/Sqlite/AddIndexCest.php index 47582d14702..c321bf22e64 100644 --- a/tests/integration/Db/Dialect/Sqlite/AddIndexCest.php +++ b/tests/integration/Db/Dialect/Sqlite/AddIndexCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class AddIndexCest /** * Tests Phalcon\Db\Dialect\Sqlite :: addIndex() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getAddIndexFixtures diff --git a/tests/integration/Db/Dialect/Sqlite/AddPrimaryKeyCest.php b/tests/integration/Db/Dialect/Sqlite/AddPrimaryKeyCest.php index 4a14be13a8e..27ae199c17a 100644 --- a/tests/integration/Db/Dialect/Sqlite/AddPrimaryKeyCest.php +++ b/tests/integration/Db/Dialect/Sqlite/AddPrimaryKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Dialect/Sqlite/CreateSavepointCest.php b/tests/integration/Db/Dialect/Sqlite/CreateSavepointCest.php index 5346b88a81e..f4f89e4e4b2 100644 --- a/tests/integration/Db/Dialect/Sqlite/CreateSavepointCest.php +++ b/tests/integration/Db/Dialect/Sqlite/CreateSavepointCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class CreateSavepointCest /** * Tests Phalcon\Db\Dialect\Sqlite :: createSavepoint() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 */ public function dbDialectSqliteCreateSavepoint(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Sqlite/CreateTableCest.php b/tests/integration/Db/Dialect/Sqlite/CreateTableCest.php index 501b2a4a99f..39a07685b4f 100644 --- a/tests/integration/Db/Dialect/Sqlite/CreateTableCest.php +++ b/tests/integration/Db/Dialect/Sqlite/CreateTableCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class CreateTableCest /** * Tests Phalcon\Db\Dialect\Sqlite :: createTable() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02- * * @dataProvider getCreateTableFixtures diff --git a/tests/integration/Db/Dialect/Sqlite/CreateViewCest.php b/tests/integration/Db/Dialect/Sqlite/CreateViewCest.php index 30d53d98e0c..e0a9d53112d 100644 --- a/tests/integration/Db/Dialect/Sqlite/CreateViewCest.php +++ b/tests/integration/Db/Dialect/Sqlite/CreateViewCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class CreateViewCest /** * Tests Phalcon\Db\Dialect\Sqlite :: createView() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getCreateViewFixtures diff --git a/tests/integration/Db/Dialect/Sqlite/DescribeColumnsCest.php b/tests/integration/Db/Dialect/Sqlite/DescribeColumnsCest.php index d4a8300580b..5e389646b55 100644 --- a/tests/integration/Db/Dialect/Sqlite/DescribeColumnsCest.php +++ b/tests/integration/Db/Dialect/Sqlite/DescribeColumnsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class DescribeColumnsCest * @issue https://github.com/phalcon/cphalcon/issues/12536 * @issue https://github.com/phalcon/cphalcon/issues/11359 * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getDescribeColumnsFixtures diff --git a/tests/integration/Db/Dialect/Sqlite/DescribeIndexCest.php b/tests/integration/Db/Dialect/Sqlite/DescribeIndexCest.php index 1e3b7a3ba41..8d122e8b2db 100644 --- a/tests/integration/Db/Dialect/Sqlite/DescribeIndexCest.php +++ b/tests/integration/Db/Dialect/Sqlite/DescribeIndexCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class DescribeIndexCest /** * Tests Phalcon\Db\Dialect\Sqlite :: describeIndex() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectSqliteDescribeIndex(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Sqlite/DescribeIndexesCest.php b/tests/integration/Db/Dialect/Sqlite/DescribeIndexesCest.php index 7e49b82d968..e4e407b4978 100644 --- a/tests/integration/Db/Dialect/Sqlite/DescribeIndexesCest.php +++ b/tests/integration/Db/Dialect/Sqlite/DescribeIndexesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class DescribeIndexesCest /** * Tests Phalcon\Db\Dialect\Sqlite :: describeIndexes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectSqliteDescribeIndexes(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Sqlite/DescribeReferencesCest.php b/tests/integration/Db/Dialect/Sqlite/DescribeReferencesCest.php index f2dc16d2d0e..5a71c90c300 100644 --- a/tests/integration/Db/Dialect/Sqlite/DescribeReferencesCest.php +++ b/tests/integration/Db/Dialect/Sqlite/DescribeReferencesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class DescribeReferencesCest /** * Tests Phalcon\Db\Dialect\Sqlite :: describeReferences() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getDescribeReferencesFixtures diff --git a/tests/integration/Db/Dialect/Sqlite/DropColumnCest.php b/tests/integration/Db/Dialect/Sqlite/DropColumnCest.php index 9a4cad29512..a0b65792743 100644 --- a/tests/integration/Db/Dialect/Sqlite/DropColumnCest.php +++ b/tests/integration/Db/Dialect/Sqlite/DropColumnCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Dialect/Sqlite/DropForeignKeyCest.php b/tests/integration/Db/Dialect/Sqlite/DropForeignKeyCest.php index 27c5e705cf3..0826212f1b6 100644 --- a/tests/integration/Db/Dialect/Sqlite/DropForeignKeyCest.php +++ b/tests/integration/Db/Dialect/Sqlite/DropForeignKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Dialect/Sqlite/DropIndexCest.php b/tests/integration/Db/Dialect/Sqlite/DropIndexCest.php index 247b09918c9..3c69aa2facd 100644 --- a/tests/integration/Db/Dialect/Sqlite/DropIndexCest.php +++ b/tests/integration/Db/Dialect/Sqlite/DropIndexCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Dialect/Sqlite/DropPrimaryKeyCest.php b/tests/integration/Db/Dialect/Sqlite/DropPrimaryKeyCest.php index 52e5dcce6c2..fda872cd393 100644 --- a/tests/integration/Db/Dialect/Sqlite/DropPrimaryKeyCest.php +++ b/tests/integration/Db/Dialect/Sqlite/DropPrimaryKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Dialect/Sqlite/DropTableCest.php b/tests/integration/Db/Dialect/Sqlite/DropTableCest.php index 558273d617d..7a9a92a6128 100644 --- a/tests/integration/Db/Dialect/Sqlite/DropTableCest.php +++ b/tests/integration/Db/Dialect/Sqlite/DropTableCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Dialect/Sqlite/DropViewCest.php b/tests/integration/Db/Dialect/Sqlite/DropViewCest.php index 5bc246dc732..32c96729c84 100644 --- a/tests/integration/Db/Dialect/Sqlite/DropViewCest.php +++ b/tests/integration/Db/Dialect/Sqlite/DropViewCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class DropViewCest /** * Tests Phalcon\Db\Dialect\Sqlite :: dropView() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getDropViewFixtures diff --git a/tests/integration/Db/Dialect/Sqlite/EscapeCest.php b/tests/integration/Db/Dialect/Sqlite/EscapeCest.php index 4dc30fe177f..637c8edab0e 100644 --- a/tests/integration/Db/Dialect/Sqlite/EscapeCest.php +++ b/tests/integration/Db/Dialect/Sqlite/EscapeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class EscapeCest /** * Tests Phalcon\Db\Dialect\Sqlite :: escape() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectSqliteEscape(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Sqlite/EscapeSchemaCest.php b/tests/integration/Db/Dialect/Sqlite/EscapeSchemaCest.php index 8da16cf2f32..885c70785b4 100644 --- a/tests/integration/Db/Dialect/Sqlite/EscapeSchemaCest.php +++ b/tests/integration/Db/Dialect/Sqlite/EscapeSchemaCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class EscapeSchemaCest /** * Tests Phalcon\Db\Dialect\Sqlite :: escapeSchema() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectSqliteEscapeSchema(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Sqlite/ForUpdateCest.php b/tests/integration/Db/Dialect/Sqlite/ForUpdateCest.php index 6d9fa6501bb..2894fd0d267 100644 --- a/tests/integration/Db/Dialect/Sqlite/ForUpdateCest.php +++ b/tests/integration/Db/Dialect/Sqlite/ForUpdateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ForUpdateCest /** * Tests Phalcon\Db\Dialect\Sqlite :: forUpdate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectSqliteForUpdate(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Sqlite/GetColumnDefinitionCest.php b/tests/integration/Db/Dialect/Sqlite/GetColumnDefinitionCest.php index d7e72643740..4d3d9572a07 100644 --- a/tests/integration/Db/Dialect/Sqlite/GetColumnDefinitionCest.php +++ b/tests/integration/Db/Dialect/Sqlite/GetColumnDefinitionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class GetColumnDefinitionCest /** * Tests Phalcon\Db\Dialect\Sqlite :: getColumnDefinition() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getColumnDefinitionFixtures diff --git a/tests/integration/Db/Dialect/Sqlite/GetColumnListCest.php b/tests/integration/Db/Dialect/Sqlite/GetColumnListCest.php index 25397df5548..b19aaa9a95e 100644 --- a/tests/integration/Db/Dialect/Sqlite/GetColumnListCest.php +++ b/tests/integration/Db/Dialect/Sqlite/GetColumnListCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetColumnListCest /** * Tests Phalcon\Db\Dialect\Sqlite :: getColumnList() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getColumnListFixtures diff --git a/tests/integration/Db/Dialect/Sqlite/GetCustomFunctionsCest.php b/tests/integration/Db/Dialect/Sqlite/GetCustomFunctionsCest.php index 2275bb2d62e..1465eddc160 100644 --- a/tests/integration/Db/Dialect/Sqlite/GetCustomFunctionsCest.php +++ b/tests/integration/Db/Dialect/Sqlite/GetCustomFunctionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetCustomFunctionsCest /** * Tests Phalcon\Db\Dialect\Sqlite :: getCustomFunctions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectSqliteGetCustomFunctions(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Sqlite/GetSqlColumnCest.php b/tests/integration/Db/Dialect/Sqlite/GetSqlColumnCest.php index 2ffc7e9712c..48f4388a4e7 100644 --- a/tests/integration/Db/Dialect/Sqlite/GetSqlColumnCest.php +++ b/tests/integration/Db/Dialect/Sqlite/GetSqlColumnCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetSqlColumnCest /** * Tests Phalcon\Db\Dialect\Sqlite :: getSqlColumn() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectSqliteGetSqlColumn(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Sqlite/GetSqlExpressionCest.php b/tests/integration/Db/Dialect/Sqlite/GetSqlExpressionCest.php index 47cceee21f8..7b9297f43d9 100644 --- a/tests/integration/Db/Dialect/Sqlite/GetSqlExpressionCest.php +++ b/tests/integration/Db/Dialect/Sqlite/GetSqlExpressionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetSqlExpressionCest /** * Tests Phalcon\Db\Dialect\Sqlite :: getSqlExpression() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectSqliteGetSqlExpression(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Sqlite/GetSqlTableCest.php b/tests/integration/Db/Dialect/Sqlite/GetSqlTableCest.php index f9e7d34707d..13960cd74c5 100644 --- a/tests/integration/Db/Dialect/Sqlite/GetSqlTableCest.php +++ b/tests/integration/Db/Dialect/Sqlite/GetSqlTableCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetSqlTableCest /** * Tests Phalcon\Db\Dialect\Sqlite :: getSqlTable() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectSqliteGetSqlTable(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Sqlite/LimitCest.php b/tests/integration/Db/Dialect/Sqlite/LimitCest.php index cfbfca0e7e8..e592381d8ac 100644 --- a/tests/integration/Db/Dialect/Sqlite/LimitCest.php +++ b/tests/integration/Db/Dialect/Sqlite/LimitCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class LimitCest /** * Tests Phalcon\Db\Dialect\Sqlite :: limit() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectSqliteLimit(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Sqlite/ListIndexesSqlCest.php b/tests/integration/Db/Dialect/Sqlite/ListIndexesSqlCest.php index aed09ca9536..721e44ba8f8 100644 --- a/tests/integration/Db/Dialect/Sqlite/ListIndexesSqlCest.php +++ b/tests/integration/Db/Dialect/Sqlite/ListIndexesSqlCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ListIndexesSqlCest /** * Tests Phalcon\Db\Dialect\Sqlite :: listIndexesSql() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectSqliteListIndexesSql(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Sqlite/ListTablesCest.php b/tests/integration/Db/Dialect/Sqlite/ListTablesCest.php index e1d4a1a5ec5..df7d2b94d27 100644 --- a/tests/integration/Db/Dialect/Sqlite/ListTablesCest.php +++ b/tests/integration/Db/Dialect/Sqlite/ListTablesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ListTablesCest /** * Tests Phalcon\Db\Dialect\Sqlite :: listTables() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectSqliteListTables(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Sqlite/ListViewsCest.php b/tests/integration/Db/Dialect/Sqlite/ListViewsCest.php index 846c38bb4b7..989d72bcc48 100644 --- a/tests/integration/Db/Dialect/Sqlite/ListViewsCest.php +++ b/tests/integration/Db/Dialect/Sqlite/ListViewsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ListViewsCest /** * Tests Phalcon\Db\Dialect\Sqlite :: listViews() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getListViewFixtures diff --git a/tests/integration/Db/Dialect/Sqlite/ModifyColumnCest.php b/tests/integration/Db/Dialect/Sqlite/ModifyColumnCest.php index ae0bb841852..bd7cc92f61e 100644 --- a/tests/integration/Db/Dialect/Sqlite/ModifyColumnCest.php +++ b/tests/integration/Db/Dialect/Sqlite/ModifyColumnCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Dialect/Sqlite/RegisterCustomFunctionCest.php b/tests/integration/Db/Dialect/Sqlite/RegisterCustomFunctionCest.php index e6d7714c99d..763509239df 100644 --- a/tests/integration/Db/Dialect/Sqlite/RegisterCustomFunctionCest.php +++ b/tests/integration/Db/Dialect/Sqlite/RegisterCustomFunctionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class RegisterCustomFunctionCest /** * Tests Phalcon\Db\Dialect\Sqlite :: registerCustomFunction() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectSqliteRegisterCustomFunction(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Sqlite/ReleaseSavepointCest.php b/tests/integration/Db/Dialect/Sqlite/ReleaseSavepointCest.php index c370cef0ec1..e1cba9c48bf 100644 --- a/tests/integration/Db/Dialect/Sqlite/ReleaseSavepointCest.php +++ b/tests/integration/Db/Dialect/Sqlite/ReleaseSavepointCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ReleaseSavepointCest /** * Tests Phalcon\Db\Dialect\Sqlite :: releaseSavepoint() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 */ public function dbDialectSqliteReleaseSavepoint(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Sqlite/RollbackSavepointCest.php b/tests/integration/Db/Dialect/Sqlite/RollbackSavepointCest.php index bb7fb22049e..7f389e2b858 100644 --- a/tests/integration/Db/Dialect/Sqlite/RollbackSavepointCest.php +++ b/tests/integration/Db/Dialect/Sqlite/RollbackSavepointCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class RollbackSavepointCest /** * Tests Phalcon\Db\Dialect\Sqlite :: rollbackSavepoint() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 */ public function dbDialectSqliteRollbackSavepoint(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Sqlite/SelectCest.php b/tests/integration/Db/Dialect/Sqlite/SelectCest.php index fb72a093ebd..d2193381953 100644 --- a/tests/integration/Db/Dialect/Sqlite/SelectCest.php +++ b/tests/integration/Db/Dialect/Sqlite/SelectCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SelectCest /** * Tests Phalcon\Db\Dialect\Sqlite :: select() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectSqliteSelect(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Sqlite/SharedLockCest.php b/tests/integration/Db/Dialect/Sqlite/SharedLockCest.php index 5adb39548c7..b51802493a8 100644 --- a/tests/integration/Db/Dialect/Sqlite/SharedLockCest.php +++ b/tests/integration/Db/Dialect/Sqlite/SharedLockCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SharedLockCest /** * Tests Phalcon\Db\Dialect\Sqlite :: sharedLock() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectSqliteSharedLock(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Sqlite/SupportsReleaseSavepointsCest.php b/tests/integration/Db/Dialect/Sqlite/SupportsReleaseSavepointsCest.php index 8cf44559d5b..8a73cc38473 100644 --- a/tests/integration/Db/Dialect/Sqlite/SupportsReleaseSavepointsCest.php +++ b/tests/integration/Db/Dialect/Sqlite/SupportsReleaseSavepointsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SupportsReleaseSavepointsCest /** * Tests Phalcon\Db\Dialect\Sqlite :: supportsReleaseSavepoints() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 */ public function dbDialectSqliteSupportsReleaseSavepoints(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Sqlite/SupportsSavepointsCest.php b/tests/integration/Db/Dialect/Sqlite/SupportsSavepointsCest.php index 4f541bfd171..e394376b16a 100644 --- a/tests/integration/Db/Dialect/Sqlite/SupportsSavepointsCest.php +++ b/tests/integration/Db/Dialect/Sqlite/SupportsSavepointsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SupportsSavepointsCest /** * Tests Phalcon\Db\Dialect\Sqlite :: supportsSavepoints() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 */ public function dbDialectSqliteSupportsSavepoints(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Sqlite/TableExistsCest.php b/tests/integration/Db/Dialect/Sqlite/TableExistsCest.php index 9dcc7030297..e773e1185fc 100644 --- a/tests/integration/Db/Dialect/Sqlite/TableExistsCest.php +++ b/tests/integration/Db/Dialect/Sqlite/TableExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class TableExistsCest /** * Tests Phalcon\Db\Dialect\Sqlite :: tableExists() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectSqliteTableExists(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Sqlite/TableOptionsCest.php b/tests/integration/Db/Dialect/Sqlite/TableOptionsCest.php index 5fcfe24109a..1b26bff4e0f 100644 --- a/tests/integration/Db/Dialect/Sqlite/TableOptionsCest.php +++ b/tests/integration/Db/Dialect/Sqlite/TableOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class TableOptionsCest /** * Tests Phalcon\Db\Dialect\Sqlite :: tableOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbDialectSqliteTableOptions(IntegrationTester $I) diff --git a/tests/integration/Db/Dialect/Sqlite/TruncateTableCest.php b/tests/integration/Db/Dialect/Sqlite/TruncateTableCest.php index f9270fcf459..fb524d746bf 100644 --- a/tests/integration/Db/Dialect/Sqlite/TruncateTableCest.php +++ b/tests/integration/Db/Dialect/Sqlite/TruncateTableCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Dialect/Sqlite/ViewExistsCest.php b/tests/integration/Db/Dialect/Sqlite/ViewExistsCest.php index d0b863c5ae6..672c9c5ddff 100644 --- a/tests/integration/Db/Dialect/Sqlite/ViewExistsCest.php +++ b/tests/integration/Db/Dialect/Sqlite/ViewExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ViewExistsCest /** * Tests Phalcon\Db\Dialect\Sqlite :: viewExists() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 * * @dataProvider getViewExistsFixtures diff --git a/tests/integration/Db/Index/ConstructCest.php b/tests/integration/Db/Index/ConstructCest.php index 12798d08275..5f314a59fa8 100644 --- a/tests/integration/Db/Index/ConstructCest.php +++ b/tests/integration/Db/Index/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ConstructCest /** * Tests Phalcon\Db\Index :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbIndexConstruct(IntegrationTester $I) diff --git a/tests/integration/Db/Index/GetColumnsCest.php b/tests/integration/Db/Index/GetColumnsCest.php index f353014693f..0a616eaf801 100644 --- a/tests/integration/Db/Index/GetColumnsCest.php +++ b/tests/integration/Db/Index/GetColumnsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Index/GetNameCest.php b/tests/integration/Db/Index/GetNameCest.php index cd43a443a75..6274ab70ed5 100644 --- a/tests/integration/Db/Index/GetNameCest.php +++ b/tests/integration/Db/Index/GetNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Index/GetTypeCest.php b/tests/integration/Db/Index/GetTypeCest.php index 4727ec5c34e..e978e1fedef 100644 --- a/tests/integration/Db/Index/GetTypeCest.php +++ b/tests/integration/Db/Index/GetTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Profiler/GetLastProfileCest.php b/tests/integration/Db/Profiler/GetLastProfileCest.php index 240989fa939..f26312aa388 100644 --- a/tests/integration/Db/Profiler/GetLastProfileCest.php +++ b/tests/integration/Db/Profiler/GetLastProfileCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Profiler/GetNumberTotalStatementsCest.php b/tests/integration/Db/Profiler/GetNumberTotalStatementsCest.php index 57cdebea553..0cef0230ae8 100644 --- a/tests/integration/Db/Profiler/GetNumberTotalStatementsCest.php +++ b/tests/integration/Db/Profiler/GetNumberTotalStatementsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Profiler/GetProfilesCest.php b/tests/integration/Db/Profiler/GetProfilesCest.php index 05ab02f840d..aa072aaec28 100644 --- a/tests/integration/Db/Profiler/GetProfilesCest.php +++ b/tests/integration/Db/Profiler/GetProfilesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetProfilesCest /** * Tests Phalcon\Db\Profiler :: getProfiles() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbProfilerGetProfiles(IntegrationTester $I) diff --git a/tests/integration/Db/Profiler/GetTotalElapsedSecondsCest.php b/tests/integration/Db/Profiler/GetTotalElapsedSecondsCest.php index 69a9b81163e..f4e720d7290 100644 --- a/tests/integration/Db/Profiler/GetTotalElapsedSecondsCest.php +++ b/tests/integration/Db/Profiler/GetTotalElapsedSecondsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetTotalElapsedSecondsCest /** * Tests Phalcon\Db\Profiler :: getTotalElapsedSeconds() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbProfilerGetTotalElapsedSeconds(IntegrationTester $I) diff --git a/tests/integration/Db/Profiler/Item/GetFinalTimeCest.php b/tests/integration/Db/Profiler/Item/GetFinalTimeCest.php index 7e64c73f36f..79ae9d39226 100644 --- a/tests/integration/Db/Profiler/Item/GetFinalTimeCest.php +++ b/tests/integration/Db/Profiler/Item/GetFinalTimeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetFinalTimeCest /** * Tests Phalcon\Db\Profiler\Item :: getFinalTime() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbProfilerItemGetFinalTime(IntegrationTester $I) diff --git a/tests/integration/Db/Profiler/Item/GetInitialTimeCest.php b/tests/integration/Db/Profiler/Item/GetInitialTimeCest.php index d39062c909f..c1f27e2ec1a 100644 --- a/tests/integration/Db/Profiler/Item/GetInitialTimeCest.php +++ b/tests/integration/Db/Profiler/Item/GetInitialTimeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetInitialTimeCest /** * Tests Phalcon\Db\Profiler\Item :: getInitialTime() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbProfilerItemGetInitialTime(IntegrationTester $I) diff --git a/tests/integration/Db/Profiler/Item/GetSqlBindTypesCest.php b/tests/integration/Db/Profiler/Item/GetSqlBindTypesCest.php index 3ee26a82939..17cc3d842e0 100644 --- a/tests/integration/Db/Profiler/Item/GetSqlBindTypesCest.php +++ b/tests/integration/Db/Profiler/Item/GetSqlBindTypesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetSqlBindTypesCest /** * Tests Phalcon\Db\Profiler\Item :: getSqlBindTypes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbProfilerItemGetSqlBindTypes(IntegrationTester $I) diff --git a/tests/integration/Db/Profiler/Item/GetSqlStatementCest.php b/tests/integration/Db/Profiler/Item/GetSqlStatementCest.php index d69996469bf..4976a30cf14 100644 --- a/tests/integration/Db/Profiler/Item/GetSqlStatementCest.php +++ b/tests/integration/Db/Profiler/Item/GetSqlStatementCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetSqlStatementCest /** * Tests Phalcon\Db\Profiler\Item :: getSqlStatement() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbProfilerItemGetSqlStatement(IntegrationTester $I) diff --git a/tests/integration/Db/Profiler/Item/GetSqlVariablesCest.php b/tests/integration/Db/Profiler/Item/GetSqlVariablesCest.php index c778914dabc..d39a76cffb5 100644 --- a/tests/integration/Db/Profiler/Item/GetSqlVariablesCest.php +++ b/tests/integration/Db/Profiler/Item/GetSqlVariablesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetSqlVariablesCest /** * Tests Phalcon\Db\Profiler\Item :: getSqlVariables() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbProfilerItemGetSqlVariables(IntegrationTester $I) diff --git a/tests/integration/Db/Profiler/Item/GetTotalElapsedSecondsCest.php b/tests/integration/Db/Profiler/Item/GetTotalElapsedSecondsCest.php index 7a258096962..5362496c0b0 100644 --- a/tests/integration/Db/Profiler/Item/GetTotalElapsedSecondsCest.php +++ b/tests/integration/Db/Profiler/Item/GetTotalElapsedSecondsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetTotalElapsedSecondsCest /** * Tests Phalcon\Db\Profiler\Item :: getTotalElapsedSeconds() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbProfilerItemGetTotalElapsedSeconds(IntegrationTester $I) diff --git a/tests/integration/Db/Profiler/Item/SetFinalTimeCest.php b/tests/integration/Db/Profiler/Item/SetFinalTimeCest.php index 68aa6a7a18d..dddadbff55e 100644 --- a/tests/integration/Db/Profiler/Item/SetFinalTimeCest.php +++ b/tests/integration/Db/Profiler/Item/SetFinalTimeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetFinalTimeCest /** * Tests Phalcon\Db\Profiler\Item :: setFinalTime() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbProfilerItemSetFinalTime(IntegrationTester $I) diff --git a/tests/integration/Db/Profiler/Item/SetInitialTimeCest.php b/tests/integration/Db/Profiler/Item/SetInitialTimeCest.php index 25aacbb82a8..432e5ea5f72 100644 --- a/tests/integration/Db/Profiler/Item/SetInitialTimeCest.php +++ b/tests/integration/Db/Profiler/Item/SetInitialTimeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetInitialTimeCest /** * Tests Phalcon\Db\Profiler\Item :: setInitialTime() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbProfilerItemSetInitialTime(IntegrationTester $I) diff --git a/tests/integration/Db/Profiler/Item/SetSqlBindTypesCest.php b/tests/integration/Db/Profiler/Item/SetSqlBindTypesCest.php index 89c7ba7aaf8..d34d121e703 100644 --- a/tests/integration/Db/Profiler/Item/SetSqlBindTypesCest.php +++ b/tests/integration/Db/Profiler/Item/SetSqlBindTypesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetSqlBindTypesCest /** * Tests Phalcon\Db\Profiler\Item :: setSqlBindTypes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbProfilerItemSetSqlBindTypes(IntegrationTester $I) diff --git a/tests/integration/Db/Profiler/Item/SetSqlStatementCest.php b/tests/integration/Db/Profiler/Item/SetSqlStatementCest.php index 5fcc846396e..ce4f8f82d2a 100644 --- a/tests/integration/Db/Profiler/Item/SetSqlStatementCest.php +++ b/tests/integration/Db/Profiler/Item/SetSqlStatementCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetSqlStatementCest /** * Tests Phalcon\Db\Profiler\Item :: setSqlStatement() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbProfilerItemSetSqlStatement(IntegrationTester $I) diff --git a/tests/integration/Db/Profiler/Item/SetSqlVariablesCest.php b/tests/integration/Db/Profiler/Item/SetSqlVariablesCest.php index f81593cf103..d5898a950c2 100644 --- a/tests/integration/Db/Profiler/Item/SetSqlVariablesCest.php +++ b/tests/integration/Db/Profiler/Item/SetSqlVariablesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetSqlVariablesCest /** * Tests Phalcon\Db\Profiler\Item :: setSqlVariables() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbProfilerItemSetSqlVariables(IntegrationTester $I) diff --git a/tests/integration/Db/Profiler/ResetCest.php b/tests/integration/Db/Profiler/ResetCest.php index 8d5eaccfa25..2257d7a20aa 100644 --- a/tests/integration/Db/Profiler/ResetCest.php +++ b/tests/integration/Db/Profiler/ResetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Profiler/StartProfileCest.php b/tests/integration/Db/Profiler/StartProfileCest.php index 71e6c3d9878..f6c1775e505 100644 --- a/tests/integration/Db/Profiler/StartProfileCest.php +++ b/tests/integration/Db/Profiler/StartProfileCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class StartProfileCest /** * Tests Phalcon\Db\Profiler :: startProfile() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbProfilerStartProfile(IntegrationTester $I) diff --git a/tests/integration/Db/Profiler/StopProfileCest.php b/tests/integration/Db/Profiler/StopProfileCest.php index efa5e472015..821214c911f 100644 --- a/tests/integration/Db/Profiler/StopProfileCest.php +++ b/tests/integration/Db/Profiler/StopProfileCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class StopProfileCest /** * Tests Phalcon\Db\Profiler :: stopProfile() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbProfilerStopProfile(IntegrationTester $I) diff --git a/tests/integration/Db/RawValue/ConstructCest.php b/tests/integration/Db/RawValue/ConstructCest.php index 18aeda17205..e0cdd6b8958 100644 --- a/tests/integration/Db/RawValue/ConstructCest.php +++ b/tests/integration/Db/RawValue/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/RawValue/GetValueCest.php b/tests/integration/Db/RawValue/GetValueCest.php index 65c7e347b94..449cda15c31 100644 --- a/tests/integration/Db/RawValue/GetValueCest.php +++ b/tests/integration/Db/RawValue/GetValueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/RawValue/ToStringCest.php b/tests/integration/Db/RawValue/ToStringCest.php index 094368aeb29..9a1a06604e3 100644 --- a/tests/integration/Db/RawValue/ToStringCest.php +++ b/tests/integration/Db/RawValue/ToStringCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Reference/ConstructCest.php b/tests/integration/Db/Reference/ConstructCest.php index df4909bd012..68ea9fb8304 100644 --- a/tests/integration/Db/Reference/ConstructCest.php +++ b/tests/integration/Db/Reference/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ConstructCest /** * Tests Phalcon\Db\Reference :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbReferenceConstruct(IntegrationTester $I) diff --git a/tests/integration/Db/Reference/GetColumnsCest.php b/tests/integration/Db/Reference/GetColumnsCest.php index 557710bca77..6fc5aa91ced 100644 --- a/tests/integration/Db/Reference/GetColumnsCest.php +++ b/tests/integration/Db/Reference/GetColumnsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Reference/GetNameCest.php b/tests/integration/Db/Reference/GetNameCest.php index 2739cadd258..d3212277fc9 100644 --- a/tests/integration/Db/Reference/GetNameCest.php +++ b/tests/integration/Db/Reference/GetNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Reference/GetOnDeleteCest.php b/tests/integration/Db/Reference/GetOnDeleteCest.php index cda2c258bfd..476d9d92e36 100644 --- a/tests/integration/Db/Reference/GetOnDeleteCest.php +++ b/tests/integration/Db/Reference/GetOnDeleteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Reference/GetOnUpdateCest.php b/tests/integration/Db/Reference/GetOnUpdateCest.php index b58a0c1b1e4..374e4ae2466 100644 --- a/tests/integration/Db/Reference/GetOnUpdateCest.php +++ b/tests/integration/Db/Reference/GetOnUpdateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Reference/GetReferencedColumnsCest.php b/tests/integration/Db/Reference/GetReferencedColumnsCest.php index d3845165971..e453a27b112 100644 --- a/tests/integration/Db/Reference/GetReferencedColumnsCest.php +++ b/tests/integration/Db/Reference/GetReferencedColumnsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Reference/GetReferencedSchemaCest.php b/tests/integration/Db/Reference/GetReferencedSchemaCest.php index 1a90b3b4a34..602c207ac57 100644 --- a/tests/integration/Db/Reference/GetReferencedSchemaCest.php +++ b/tests/integration/Db/Reference/GetReferencedSchemaCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetReferencedSchemaCest /** * Tests Phalcon\Db\Reference :: getReferencedSchema() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbReferenceGetReferencedSchema(IntegrationTester $I) diff --git a/tests/integration/Db/Reference/GetReferencedTableCest.php b/tests/integration/Db/Reference/GetReferencedTableCest.php index c8386165aad..ba5b406f381 100644 --- a/tests/integration/Db/Reference/GetReferencedTableCest.php +++ b/tests/integration/Db/Reference/GetReferencedTableCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Db/Reference/GetSchemaNameCest.php b/tests/integration/Db/Reference/GetSchemaNameCest.php index 9d6fe038e7a..9f730ff7598 100644 --- a/tests/integration/Db/Reference/GetSchemaNameCest.php +++ b/tests/integration/Db/Reference/GetSchemaNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetSchemaNameCest /** * Tests Phalcon\Db\Reference :: getSchemaName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbReferenceGetSchemaName(IntegrationTester $I) diff --git a/tests/integration/Db/Result/Pdo/ConstructCest.php b/tests/integration/Db/Result/Pdo/ConstructCest.php index e67689ae52c..ad06fa2da5c 100644 --- a/tests/integration/Db/Result/Pdo/ConstructCest.php +++ b/tests/integration/Db/Result/Pdo/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ConstructCest /** * Tests Phalcon\Db\Result\Pdo :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbResultPdoConstruct(IntegrationTester $I) diff --git a/tests/integration/Db/Result/Pdo/DataSeekCest.php b/tests/integration/Db/Result/Pdo/DataSeekCest.php index 1ce1164087d..0f9b03307dc 100644 --- a/tests/integration/Db/Result/Pdo/DataSeekCest.php +++ b/tests/integration/Db/Result/Pdo/DataSeekCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class DataSeekCest /** * Tests Phalcon\Db\Result\Pdo :: dataSeek() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbResultPdoDataSeek(IntegrationTester $I) diff --git a/tests/integration/Db/Result/Pdo/ExecuteCest.php b/tests/integration/Db/Result/Pdo/ExecuteCest.php index 999504d0e1c..18c1c8faa46 100644 --- a/tests/integration/Db/Result/Pdo/ExecuteCest.php +++ b/tests/integration/Db/Result/Pdo/ExecuteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ExecuteCest /** * Tests Phalcon\Db\Result\Pdo :: execute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbResultPdoExecute(IntegrationTester $I) diff --git a/tests/integration/Db/Result/Pdo/FetchAllCest.php b/tests/integration/Db/Result/Pdo/FetchAllCest.php index 570f67eabf7..80434063ba4 100644 --- a/tests/integration/Db/Result/Pdo/FetchAllCest.php +++ b/tests/integration/Db/Result/Pdo/FetchAllCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class FetchAllCest /** * Tests Phalcon\Db\Result\Pdo :: fetchAll() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbResultPdoFetchAll(IntegrationTester $I) diff --git a/tests/integration/Db/Result/Pdo/FetchArrayCest.php b/tests/integration/Db/Result/Pdo/FetchArrayCest.php index 10dd683cae7..b01f5258566 100644 --- a/tests/integration/Db/Result/Pdo/FetchArrayCest.php +++ b/tests/integration/Db/Result/Pdo/FetchArrayCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class FetchArrayCest /** * Tests Phalcon\Db\Result\Pdo :: fetchArray() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbResultPdoFetchArray(IntegrationTester $I) diff --git a/tests/integration/Db/Result/Pdo/FetchCest.php b/tests/integration/Db/Result/Pdo/FetchCest.php index 558327d0405..32702cb9236 100644 --- a/tests/integration/Db/Result/Pdo/FetchCest.php +++ b/tests/integration/Db/Result/Pdo/FetchCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class FetchCest /** * Tests Phalcon\Db\Result\Pdo :: fetch() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbResultPdoFetch(IntegrationTester $I) diff --git a/tests/integration/Db/Result/Pdo/GetInternalResultCest.php b/tests/integration/Db/Result/Pdo/GetInternalResultCest.php index b2f3763364c..daa696704ee 100644 --- a/tests/integration/Db/Result/Pdo/GetInternalResultCest.php +++ b/tests/integration/Db/Result/Pdo/GetInternalResultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetInternalResultCest /** * Tests Phalcon\Db\Result\Pdo :: getInternalResult() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbResultPdoGetInternalResult(IntegrationTester $I) diff --git a/tests/integration/Db/Result/Pdo/NumRowsCest.php b/tests/integration/Db/Result/Pdo/NumRowsCest.php index 86c61fcb435..fa71dc02c8a 100644 --- a/tests/integration/Db/Result/Pdo/NumRowsCest.php +++ b/tests/integration/Db/Result/Pdo/NumRowsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class NumRowsCest /** * Tests Phalcon\Db\Result\Pdo :: numRows() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbResultPdoNumRows(IntegrationTester $I) diff --git a/tests/integration/Db/Result/Pdo/SetFetchModeCest.php b/tests/integration/Db/Result/Pdo/SetFetchModeCest.php index 2cc3a62a58c..7a2936a0d7d 100644 --- a/tests/integration/Db/Result/Pdo/SetFetchModeCest.php +++ b/tests/integration/Db/Result/Pdo/SetFetchModeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetFetchModeCest /** * Tests Phalcon\Db\Result\Pdo :: setFetchMode() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbResultPdoSetFetchMode(IntegrationTester $I) diff --git a/tests/integration/Db/SetupCest.php b/tests/integration/Db/SetupCest.php index 6d8f4d4d8a9..ed19c2d5bee 100644 --- a/tests/integration/Db/SetupCest.php +++ b/tests/integration/Db/SetupCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetupCest /** * Tests Phalcon\Db :: setup() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dbSetup(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Acl/AfterBindingCest.php b/tests/integration/Firewall/Adapter/Acl/AfterBindingCest.php index 18b0faed93b..729e367ada6 100644 --- a/tests/integration/Firewall/Adapter/Acl/AfterBindingCest.php +++ b/tests/integration/Firewall/Adapter/Acl/AfterBindingCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Firewall/Adapter/Acl/BeforeExecuteRouteCest.php b/tests/integration/Firewall/Adapter/Acl/BeforeExecuteRouteCest.php index 0af5ef732f0..96e5e0dc3ed 100644 --- a/tests/integration/Firewall/Adapter/Acl/BeforeExecuteRouteCest.php +++ b/tests/integration/Firewall/Adapter/Acl/BeforeExecuteRouteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Firewall/Adapter/Acl/ConstructCest.php b/tests/integration/Firewall/Adapter/Acl/ConstructCest.php index 53577152efc..808b9089b2d 100644 --- a/tests/integration/Firewall/Adapter/Acl/ConstructCest.php +++ b/tests/integration/Firewall/Adapter/Acl/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ConstructCest /** * Tests Phalcon\Firewall\Adapter\Acl :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterAclConstruct(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Acl/GetAclServiceNameCest.php b/tests/integration/Firewall/Adapter/Acl/GetAclServiceNameCest.php index f169ea484fb..e848ca261bb 100644 --- a/tests/integration/Firewall/Adapter/Acl/GetAclServiceNameCest.php +++ b/tests/integration/Firewall/Adapter/Acl/GetAclServiceNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetAclServiceNameCest /** * Tests Phalcon\Firewall\Adapter\Acl :: getAclServiceName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterAclGetAclServiceName(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Acl/GetActiveIdentityCest.php b/tests/integration/Firewall/Adapter/Acl/GetActiveIdentityCest.php index 2dd97cfb1e1..0c7b6f04e33 100644 --- a/tests/integration/Firewall/Adapter/Acl/GetActiveIdentityCest.php +++ b/tests/integration/Firewall/Adapter/Acl/GetActiveIdentityCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetActiveIdentityCest /** * Tests Phalcon\Firewall\Adapter\Acl :: getActiveIdentity() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterAclGetActiveIdentity(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Acl/GetActiveRoleCest.php b/tests/integration/Firewall/Adapter/Acl/GetActiveRoleCest.php index 75a29344936..ec4af51e3a5 100644 --- a/tests/integration/Firewall/Adapter/Acl/GetActiveRoleCest.php +++ b/tests/integration/Firewall/Adapter/Acl/GetActiveRoleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetActiveRoleCest /** * Tests Phalcon\Firewall\Adapter\Acl :: getActiveRole() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterAclGetActiveRole(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Acl/GetBoundModelsKeyMapCest.php b/tests/integration/Firewall/Adapter/Acl/GetBoundModelsKeyMapCest.php index d1e46aaf6e9..72174e0b841 100644 --- a/tests/integration/Firewall/Adapter/Acl/GetBoundModelsKeyMapCest.php +++ b/tests/integration/Firewall/Adapter/Acl/GetBoundModelsKeyMapCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetBoundModelsKeyMapCest /** * Tests Phalcon\Firewall\Adapter\Acl :: getBoundModelsKeyMap() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterAclGetBoundModelsKeyMap(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Acl/GetDispatcherCest.php b/tests/integration/Firewall/Adapter/Acl/GetDispatcherCest.php index 12d55ea2f8d..19f7fff92eb 100644 --- a/tests/integration/Firewall/Adapter/Acl/GetDispatcherCest.php +++ b/tests/integration/Firewall/Adapter/Acl/GetDispatcherCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetDispatcherCest /** * Tests Phalcon\Firewall\Adapter\Acl :: getDispatcher() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterAclGetDispatcher(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Acl/GetModuleSeparatorCest.php b/tests/integration/Firewall/Adapter/Acl/GetModuleSeparatorCest.php index f94ab68fe64..993cbc53317 100644 --- a/tests/integration/Firewall/Adapter/Acl/GetModuleSeparatorCest.php +++ b/tests/integration/Firewall/Adapter/Acl/GetModuleSeparatorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetModuleSeparatorCest /** * Tests Phalcon\Firewall\Adapter\Acl :: getModuleSeparator() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterAclGetModuleSeparator(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Acl/GetRoleCacheCallbackCest.php b/tests/integration/Firewall/Adapter/Acl/GetRoleCacheCallbackCest.php index dd3b7e4635d..f6076979a83 100644 --- a/tests/integration/Firewall/Adapter/Acl/GetRoleCacheCallbackCest.php +++ b/tests/integration/Firewall/Adapter/Acl/GetRoleCacheCallbackCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetRoleCacheCallbackCest /** * Tests Phalcon\Firewall\Adapter\Acl :: getRoleCacheCallback() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterAclGetRoleCacheCallback(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Acl/GetRoleCallbackCest.php b/tests/integration/Firewall/Adapter/Acl/GetRoleCallbackCest.php index 99a4c4acd59..2166c9967d8 100644 --- a/tests/integration/Firewall/Adapter/Acl/GetRoleCallbackCest.php +++ b/tests/integration/Firewall/Adapter/Acl/GetRoleCallbackCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetRoleCallbackCest /** * Tests Phalcon\Firewall\Adapter\Acl :: getRoleCallback() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterAclGetRoleCallback(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Acl/GetSetDefaultAccessCest.php b/tests/integration/Firewall/Adapter/Acl/GetSetDefaultAccessCest.php index 08ae0f06070..545e4edcfd3 100644 --- a/tests/integration/Firewall/Adapter/Acl/GetSetDefaultAccessCest.php +++ b/tests/integration/Firewall/Adapter/Acl/GetSetDefaultAccessCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetSetDefaultAccessCest /** * Tests Phalcon\Firewall\Adapter\Acl :: getDefaultAccess() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterAclGetDefaultAccess(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Acl/GetSetEventsManagerCest.php b/tests/integration/Firewall/Adapter/Acl/GetSetEventsManagerCest.php index 0f6c6b847c8..35e3204a99d 100644 --- a/tests/integration/Firewall/Adapter/Acl/GetSetEventsManagerCest.php +++ b/tests/integration/Firewall/Adapter/Acl/GetSetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetSetEventsManagerCest * Tests Phalcon\Firewall\Adapter\Acl :: * getEventsManager()/setEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterAclGetSetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Acl/IsAlwaysResolvingRoleCest.php b/tests/integration/Firewall/Adapter/Acl/IsAlwaysResolvingRoleCest.php index 2b211bec5e3..f0311bf6b68 100644 --- a/tests/integration/Firewall/Adapter/Acl/IsAlwaysResolvingRoleCest.php +++ b/tests/integration/Firewall/Adapter/Acl/IsAlwaysResolvingRoleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class IsAlwaysResolvingRoleCest /** * Tests Phalcon\Firewall\Adapter\Acl :: isAlwaysResolvingRole() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterAclIsAlwaysResolvingRole(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Acl/IsMultiModuleConfigurationCest.php b/tests/integration/Firewall/Adapter/Acl/IsMultiModuleConfigurationCest.php index 13c58eaa3d2..637166114be 100644 --- a/tests/integration/Firewall/Adapter/Acl/IsMultiModuleConfigurationCest.php +++ b/tests/integration/Firewall/Adapter/Acl/IsMultiModuleConfigurationCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class IsMultiModuleConfigurationCest /** * Tests Phalcon\Firewall\Adapter\Acl :: isMultiModuleConfiguration() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterAclIsMultiModuleConfiguration(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Acl/SetAclServiceNameCest.php b/tests/integration/Firewall/Adapter/Acl/SetAclServiceNameCest.php index c2ae3c4aa88..f33fee3f80d 100644 --- a/tests/integration/Firewall/Adapter/Acl/SetAclServiceNameCest.php +++ b/tests/integration/Firewall/Adapter/Acl/SetAclServiceNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetAclServiceNameCest /** * Tests Phalcon\Firewall\Adapter\Acl :: setAclServiceName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterAclSetAclServiceName(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Acl/SetAlwaysResolvingRoleCest.php b/tests/integration/Firewall/Adapter/Acl/SetAlwaysResolvingRoleCest.php index a35bf0d0a82..626601eceb7 100644 --- a/tests/integration/Firewall/Adapter/Acl/SetAlwaysResolvingRoleCest.php +++ b/tests/integration/Firewall/Adapter/Acl/SetAlwaysResolvingRoleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetAlwaysResolvingRoleCest /** * Tests Phalcon\Firewall\Adapter\Acl :: setAlwaysResolvingRole() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterAclSetAlwaysResolvingRole(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Acl/SetBoundModelsKeyMapCest.php b/tests/integration/Firewall/Adapter/Acl/SetBoundModelsKeyMapCest.php index b90a6949c85..fdbbeee4c7e 100644 --- a/tests/integration/Firewall/Adapter/Acl/SetBoundModelsKeyMapCest.php +++ b/tests/integration/Firewall/Adapter/Acl/SetBoundModelsKeyMapCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Firewall/Adapter/Acl/SetCacheCest.php b/tests/integration/Firewall/Adapter/Acl/SetCacheCest.php index 6fe63f2a39a..3c427be1d00 100644 --- a/tests/integration/Firewall/Adapter/Acl/SetCacheCest.php +++ b/tests/integration/Firewall/Adapter/Acl/SetCacheCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -87,7 +87,7 @@ public function _after() /** * Tests Phalcon\Firewall\Adapter\Acl :: setCache() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterAclSetCache(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Acl/SetModuleSeparatorCest.php b/tests/integration/Firewall/Adapter/Acl/SetModuleSeparatorCest.php index e25f1f97256..ad2f8721ccc 100644 --- a/tests/integration/Firewall/Adapter/Acl/SetModuleSeparatorCest.php +++ b/tests/integration/Firewall/Adapter/Acl/SetModuleSeparatorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetModuleSeparatorCest /** * Tests Phalcon\Firewall\Adapter\Acl :: setModuleSeparator() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterAclSetModuleSeparator(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Acl/SetRoleCacheCallbackCest.php b/tests/integration/Firewall/Adapter/Acl/SetRoleCacheCallbackCest.php index eae06e13e9c..e427fd63d35 100644 --- a/tests/integration/Firewall/Adapter/Acl/SetRoleCacheCallbackCest.php +++ b/tests/integration/Firewall/Adapter/Acl/SetRoleCacheCallbackCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetRoleCacheCallbackCest /** * Tests Phalcon\Firewall\Adapter\Acl :: setRoleCacheCallback() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterAclSetRoleCacheCallback(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Acl/SetRoleCallbackCest.php b/tests/integration/Firewall/Adapter/Acl/SetRoleCallbackCest.php index 57b5b69b08d..92cb88d5e80 100644 --- a/tests/integration/Firewall/Adapter/Acl/SetRoleCallbackCest.php +++ b/tests/integration/Firewall/Adapter/Acl/SetRoleCallbackCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetRoleCallbackCest /** * Tests Phalcon\Firewall\Adapter\Acl :: setRoleCallback() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterAclSetRoleCallback(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Acl/UseMultiModuleConfigurationCest.php b/tests/integration/Firewall/Adapter/Acl/UseMultiModuleConfigurationCest.php index 47f2e07bdd4..7532f527739 100644 --- a/tests/integration/Firewall/Adapter/Acl/UseMultiModuleConfigurationCest.php +++ b/tests/integration/Firewall/Adapter/Acl/UseMultiModuleConfigurationCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Firewall/Adapter/Annotations/BeforeExecuteRouteCest.php b/tests/integration/Firewall/Adapter/Annotations/BeforeExecuteRouteCest.php index af1864b061f..9462ba41924 100644 --- a/tests/integration/Firewall/Adapter/Annotations/BeforeExecuteRouteCest.php +++ b/tests/integration/Firewall/Adapter/Annotations/BeforeExecuteRouteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -85,7 +85,7 @@ public function _after() * * @dataProvider getBeforeExecute * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterAnnotationsBeforeExecuteRoute(IntegrationTester $I, Example $example) diff --git a/tests/integration/Firewall/Adapter/Annotations/ConstructCest.php b/tests/integration/Firewall/Adapter/Annotations/ConstructCest.php index 51249bd1135..1099fa155bb 100644 --- a/tests/integration/Firewall/Adapter/Annotations/ConstructCest.php +++ b/tests/integration/Firewall/Adapter/Annotations/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ConstructCest /** * Tests Phalcon\Firewall\Adapter\Annotations :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterAnnotationsConstruct(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Annotations/GetActiveIdentityCest.php b/tests/integration/Firewall/Adapter/Annotations/GetActiveIdentityCest.php index 595ad5e74d0..c7e943964c5 100644 --- a/tests/integration/Firewall/Adapter/Annotations/GetActiveIdentityCest.php +++ b/tests/integration/Firewall/Adapter/Annotations/GetActiveIdentityCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetActiveIdentityCest /** * Tests Phalcon\Firewall\Adapter\Annotations :: getActiveIdentity() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterAnnotationsGetActiveIdentity(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Annotations/GetActiveRoleCest.php b/tests/integration/Firewall/Adapter/Annotations/GetActiveRoleCest.php index 8b9c2a42851..5007d307cec 100644 --- a/tests/integration/Firewall/Adapter/Annotations/GetActiveRoleCest.php +++ b/tests/integration/Firewall/Adapter/Annotations/GetActiveRoleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetActiveRoleCest /** * Tests Phalcon\Firewall\Adapter\Annotations :: getActiveRole() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterAnnotationsGetActiveRole(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Annotations/GetAnnotationsAdapterCest.php b/tests/integration/Firewall/Adapter/Annotations/GetAnnotationsAdapterCest.php index e96c0072590..4e4d518a1a0 100644 --- a/tests/integration/Firewall/Adapter/Annotations/GetAnnotationsAdapterCest.php +++ b/tests/integration/Firewall/Adapter/Annotations/GetAnnotationsAdapterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetAnnotationsAdapterCest /** * Tests Phalcon\Firewall\Adapter\Annotations :: getAnnotationsAdapter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterAnnotationsGetAnnotationsAdapter(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Annotations/GetDispatcherCest.php b/tests/integration/Firewall/Adapter/Annotations/GetDispatcherCest.php index dca1bf6230c..27651bc0043 100644 --- a/tests/integration/Firewall/Adapter/Annotations/GetDispatcherCest.php +++ b/tests/integration/Firewall/Adapter/Annotations/GetDispatcherCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetDispatcherCest /** * Tests Phalcon\Firewall\Adapter\Annotations :: getDispatcher() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterAnnotationsGetDispatcher(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Annotations/GetRoleCallbackCest.php b/tests/integration/Firewall/Adapter/Annotations/GetRoleCallbackCest.php index 0e909731006..3abbd9c8115 100644 --- a/tests/integration/Firewall/Adapter/Annotations/GetRoleCallbackCest.php +++ b/tests/integration/Firewall/Adapter/Annotations/GetRoleCallbackCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetRoleCallbackCest /** * Tests Phalcon\Firewall\Adapter\Annotations :: getRoleCallback() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterAnnotationsGetRoleCallback(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Annotations/GetSetDefaultAccessCest.php b/tests/integration/Firewall/Adapter/Annotations/GetSetDefaultAccessCest.php index 1cfb629516c..3b56b69c156 100644 --- a/tests/integration/Firewall/Adapter/Annotations/GetSetDefaultAccessCest.php +++ b/tests/integration/Firewall/Adapter/Annotations/GetSetDefaultAccessCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class GetSetDefaultAccessCest * Tests Phalcon\Firewall\Adapter\Annotations :: * getDefaultAccess()/setDefaultAccess() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterAnnotationsGetSetDefaultAccess(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Annotations/GetSetEventsManagerCest.php b/tests/integration/Firewall/Adapter/Annotations/GetSetEventsManagerCest.php index f6ca9ec8043..3782d13d86d 100644 --- a/tests/integration/Firewall/Adapter/Annotations/GetSetEventsManagerCest.php +++ b/tests/integration/Firewall/Adapter/Annotations/GetSetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class GetSetEventsManagerCest * Tests Phalcon\Firewall\Adapter\Annotations :: * getEventsManager()/setEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterAnnotationsGetSetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Annotations/IsAlwaysResolvingRoleCest.php b/tests/integration/Firewall/Adapter/Annotations/IsAlwaysResolvingRoleCest.php index 6a043507619..35ad5c90e2c 100644 --- a/tests/integration/Firewall/Adapter/Annotations/IsAlwaysResolvingRoleCest.php +++ b/tests/integration/Firewall/Adapter/Annotations/IsAlwaysResolvingRoleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class IsAlwaysResolvingRoleCest /** * Tests Phalcon\Firewall\Adapter\Annotations :: isAlwaysResolvingRole() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterAnnotationsIsAlwaysResolvingRole(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Annotations/SetAlwaysResolvingRoleCest.php b/tests/integration/Firewall/Adapter/Annotations/SetAlwaysResolvingRoleCest.php index 1bae36f1fc8..6e0b8e473f0 100644 --- a/tests/integration/Firewall/Adapter/Annotations/SetAlwaysResolvingRoleCest.php +++ b/tests/integration/Firewall/Adapter/Annotations/SetAlwaysResolvingRoleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetAlwaysResolvingRoleCest /** * Tests Phalcon\Firewall\Adapter\Annotations :: setAlwaysResolvingRole() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterAnnotationsSetAlwaysResolvingRole(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Annotations/SetAnnotationsAdapterCest.php b/tests/integration/Firewall/Adapter/Annotations/SetAnnotationsAdapterCest.php index 88f31664b30..10077a66850 100644 --- a/tests/integration/Firewall/Adapter/Annotations/SetAnnotationsAdapterCest.php +++ b/tests/integration/Firewall/Adapter/Annotations/SetAnnotationsAdapterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetAnnotationsAdapterCest /** * Tests Phalcon\Firewall\Adapter\Annotations :: setAnnotationsAdapter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterAnnotationsSetAnnotationsAdapter(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Annotations/SetCacheCest.php b/tests/integration/Firewall/Adapter/Annotations/SetCacheCest.php index f6b78e0b2da..6362ff9f6c3 100644 --- a/tests/integration/Firewall/Adapter/Annotations/SetCacheCest.php +++ b/tests/integration/Firewall/Adapter/Annotations/SetCacheCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -83,7 +83,7 @@ public function _after() /** * Tests Phalcon\Firewall\Adapter\Annotations :: setCache() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterAnnotationsSetCache(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Annotations/SetRoleCallbackCest.php b/tests/integration/Firewall/Adapter/Annotations/SetRoleCallbackCest.php index 75091e7f675..199b0d6f1a2 100644 --- a/tests/integration/Firewall/Adapter/Annotations/SetRoleCallbackCest.php +++ b/tests/integration/Firewall/Adapter/Annotations/SetRoleCallbackCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetRoleCallbackCest /** * Tests Phalcon\Firewall\Adapter\Annotations :: setRoleCallback() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterAnnotationsSetRoleCallback(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Micro/Acl/AfterBindingCest.php b/tests/integration/Firewall/Adapter/Micro/Acl/AfterBindingCest.php index c9a3ec9bcf7..06a87fd7207 100644 --- a/tests/integration/Firewall/Adapter/Micro/Acl/AfterBindingCest.php +++ b/tests/integration/Firewall/Adapter/Micro/Acl/AfterBindingCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -111,7 +111,7 @@ public function _after() /** * Tests Phalcon\Firewall\Adapter\Micro\Acl :: afterBinding() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterMicroAclAfterBinding(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Micro/Acl/BeforeExecuteRouteCest.php b/tests/integration/Firewall/Adapter/Micro/Acl/BeforeExecuteRouteCest.php index af120b5c8af..49eb47a96f2 100644 --- a/tests/integration/Firewall/Adapter/Micro/Acl/BeforeExecuteRouteCest.php +++ b/tests/integration/Firewall/Adapter/Micro/Acl/BeforeExecuteRouteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -116,7 +116,7 @@ public function _after() /** * Tests Phalcon\Firewall\Adapter\Micro\Acl :: beforeExecuteRoute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterMicroAclBeforeExecuteRoute(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Micro/Acl/ConstructCest.php b/tests/integration/Firewall/Adapter/Micro/Acl/ConstructCest.php index 6e9d17d5694..98241235238 100644 --- a/tests/integration/Firewall/Adapter/Micro/Acl/ConstructCest.php +++ b/tests/integration/Firewall/Adapter/Micro/Acl/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ConstructCest /** * Tests Phalcon\Firewall\Adapter\Micro\Acl :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterMicroAclConstruct(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Micro/Acl/GetAclServiceNameCest.php b/tests/integration/Firewall/Adapter/Micro/Acl/GetAclServiceNameCest.php index af714ede096..926fc9fd317 100644 --- a/tests/integration/Firewall/Adapter/Micro/Acl/GetAclServiceNameCest.php +++ b/tests/integration/Firewall/Adapter/Micro/Acl/GetAclServiceNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetAclServiceNameCest /** * Tests Phalcon\Firewall\Adapter\Micro\Acl :: getAclServiceName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterMicroAclGetAclServiceName(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Micro/Acl/GetActiveIdentityCest.php b/tests/integration/Firewall/Adapter/Micro/Acl/GetActiveIdentityCest.php index 6ccec7cdeec..b01c4b5e592 100644 --- a/tests/integration/Firewall/Adapter/Micro/Acl/GetActiveIdentityCest.php +++ b/tests/integration/Firewall/Adapter/Micro/Acl/GetActiveIdentityCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetActiveIdentityCest /** * Tests Phalcon\Firewall\Adapter\Micro\Acl :: getActiveIdentity() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterMicroAclGetActiveIdentity(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Micro/Acl/GetActiveRoleCest.php b/tests/integration/Firewall/Adapter/Micro/Acl/GetActiveRoleCest.php index ea1a2775de3..fd8c2c4d67a 100644 --- a/tests/integration/Firewall/Adapter/Micro/Acl/GetActiveRoleCest.php +++ b/tests/integration/Firewall/Adapter/Micro/Acl/GetActiveRoleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetActiveRoleCest /** * Tests Phalcon\Firewall\Adapter\Micro\Acl :: getActiveRole() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterMicroAclGetActiveRole(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Micro/Acl/GetBoundModelsKeyMapCest.php b/tests/integration/Firewall/Adapter/Micro/Acl/GetBoundModelsKeyMapCest.php index b175e4bbf98..8a1333443e7 100644 --- a/tests/integration/Firewall/Adapter/Micro/Acl/GetBoundModelsKeyMapCest.php +++ b/tests/integration/Firewall/Adapter/Micro/Acl/GetBoundModelsKeyMapCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetBoundModelsKeyMapCest /** * Tests Phalcon\Firewall\Adapter\Micro\Acl :: getBoundModelsKeyMap() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterMicroAclGetBoundModelsKeyMap(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Micro/Acl/GetComponentNameCest.php b/tests/integration/Firewall/Adapter/Micro/Acl/GetComponentNameCest.php index 2c38c7418b5..75aac7a05e9 100644 --- a/tests/integration/Firewall/Adapter/Micro/Acl/GetComponentNameCest.php +++ b/tests/integration/Firewall/Adapter/Micro/Acl/GetComponentNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetComponentNameCest /** * Tests Phalcon\Firewall\Adapter\Micro\Acl :: getComponentName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterMicroAclGetComponentName(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Micro/Acl/GetMicroCest.php b/tests/integration/Firewall/Adapter/Micro/Acl/GetMicroCest.php index 84445967fd9..7b6b23cc0b0 100644 --- a/tests/integration/Firewall/Adapter/Micro/Acl/GetMicroCest.php +++ b/tests/integration/Firewall/Adapter/Micro/Acl/GetMicroCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetMicroCest /** * Tests Phalcon\Firewall\Adapter\Micro\Acl :: getMicro() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterMicroAclGetMicro(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Micro/Acl/GetRoleCacheCallbackCest.php b/tests/integration/Firewall/Adapter/Micro/Acl/GetRoleCacheCallbackCest.php index 988417fbdc7..3836e2e26d1 100644 --- a/tests/integration/Firewall/Adapter/Micro/Acl/GetRoleCacheCallbackCest.php +++ b/tests/integration/Firewall/Adapter/Micro/Acl/GetRoleCacheCallbackCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetRoleCacheCallbackCest /** * Tests Phalcon\Firewall\Adapter\Micro\Acl :: getRoleCacheCallback() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterMicroAclGetRoleCacheCallback(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Micro/Acl/GetRoleCallbackCest.php b/tests/integration/Firewall/Adapter/Micro/Acl/GetRoleCallbackCest.php index f019b6de759..5d4b84248f3 100644 --- a/tests/integration/Firewall/Adapter/Micro/Acl/GetRoleCallbackCest.php +++ b/tests/integration/Firewall/Adapter/Micro/Acl/GetRoleCallbackCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetRoleCallbackCest /** * Tests Phalcon\Firewall\Adapter\Micro\Acl :: getRoleCallback() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterMicroAclGetRoleCallback(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Micro/Acl/GetSetDefaultAccessCest.php b/tests/integration/Firewall/Adapter/Micro/Acl/GetSetDefaultAccessCest.php index 7ce813f5bb7..4d5c8406229 100644 --- a/tests/integration/Firewall/Adapter/Micro/Acl/GetSetDefaultAccessCest.php +++ b/tests/integration/Firewall/Adapter/Micro/Acl/GetSetDefaultAccessCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetSetDefaultAccessCest * Tests Phalcon\Firewall\Adapter\Micro\Acl :: * getDefaultAccess()/setDefaultAccess() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterMicroAclGetSetDefaultAccess(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Micro/Acl/GetSetEventsManagerCest.php b/tests/integration/Firewall/Adapter/Micro/Acl/GetSetEventsManagerCest.php index 3c116e366cd..8f477fff3a8 100644 --- a/tests/integration/Firewall/Adapter/Micro/Acl/GetSetEventsManagerCest.php +++ b/tests/integration/Firewall/Adapter/Micro/Acl/GetSetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetSetEventsManagerCest * Tests Phalcon\Firewall\Adapter\Micro\Acl :: * getEventsManager()/setEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterMicroAclGetSetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Micro/Acl/IsAlwaysResolvingRoleCest.php b/tests/integration/Firewall/Adapter/Micro/Acl/IsAlwaysResolvingRoleCest.php index 66ac66d8252..4914e82ec21 100644 --- a/tests/integration/Firewall/Adapter/Micro/Acl/IsAlwaysResolvingRoleCest.php +++ b/tests/integration/Firewall/Adapter/Micro/Acl/IsAlwaysResolvingRoleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class IsAlwaysResolvingRoleCest /** * Tests Phalcon\Firewall\Adapter\Micro\Acl :: isAlwaysResolvingRole() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterMicroAclIsAlwaysResolvingRole(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Micro/Acl/IsRouteNameConfigurationCest.php b/tests/integration/Firewall/Adapter/Micro/Acl/IsRouteNameConfigurationCest.php index a93e358d961..17f30413eaf 100644 --- a/tests/integration/Firewall/Adapter/Micro/Acl/IsRouteNameConfigurationCest.php +++ b/tests/integration/Firewall/Adapter/Micro/Acl/IsRouteNameConfigurationCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class IsRouteNameConfigurationCest /** * Tests Phalcon\Firewall\Adapter\Micro\Acl :: isRouteNameConfiguration() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterMicroAclIsRouteNameConfiguration(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Micro/Acl/SetAclServiceNameCest.php b/tests/integration/Firewall/Adapter/Micro/Acl/SetAclServiceNameCest.php index 252d6b3294d..bcd0dabcd8a 100644 --- a/tests/integration/Firewall/Adapter/Micro/Acl/SetAclServiceNameCest.php +++ b/tests/integration/Firewall/Adapter/Micro/Acl/SetAclServiceNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetAclServiceNameCest /** * Tests Phalcon\Firewall\Adapter\Micro\Acl :: setAclServiceName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterMicroAclSetAclServiceName(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Micro/Acl/SetAlwaysResolvingRoleCest.php b/tests/integration/Firewall/Adapter/Micro/Acl/SetAlwaysResolvingRoleCest.php index dc61e8ab121..7f1a1a573e7 100644 --- a/tests/integration/Firewall/Adapter/Micro/Acl/SetAlwaysResolvingRoleCest.php +++ b/tests/integration/Firewall/Adapter/Micro/Acl/SetAlwaysResolvingRoleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetAlwaysResolvingRoleCest /** * Tests Phalcon\Firewall\Adapter\Micro\Acl :: setAlwaysResolvingRole() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterMicroAclSetAlwaysResolvingRole(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Micro/Acl/SetBoundModelsKeyMapCest.php b/tests/integration/Firewall/Adapter/Micro/Acl/SetBoundModelsKeyMapCest.php index 05330bf40f3..f78c7a1a5be 100644 --- a/tests/integration/Firewall/Adapter/Micro/Acl/SetBoundModelsKeyMapCest.php +++ b/tests/integration/Firewall/Adapter/Micro/Acl/SetBoundModelsKeyMapCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -108,7 +108,7 @@ public function _after() /** * Tests Phalcon\Firewall\Adapter\Micro\Acl :: setBoundModelsKeyMap() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterMicroAclSetBoundModelsKeyMap(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Micro/Acl/SetCacheCest.php b/tests/integration/Firewall/Adapter/Micro/Acl/SetCacheCest.php index bb252442f1f..7e24d9128ab 100644 --- a/tests/integration/Firewall/Adapter/Micro/Acl/SetCacheCest.php +++ b/tests/integration/Firewall/Adapter/Micro/Acl/SetCacheCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -110,7 +110,7 @@ public function _after() /** * Tests Phalcon\Firewall\Adapter\Micro\Acl :: setCache() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterMicroAclSetCache(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Micro/Acl/SetComponentNameCest.php b/tests/integration/Firewall/Adapter/Micro/Acl/SetComponentNameCest.php index 370512d5b5a..142cced30e5 100644 --- a/tests/integration/Firewall/Adapter/Micro/Acl/SetComponentNameCest.php +++ b/tests/integration/Firewall/Adapter/Micro/Acl/SetComponentNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetComponentNameCest /** * Tests Phalcon\Firewall\Adapter\Micro\Acl :: setComponentName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterMicroAclSetComponentName(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Micro/Acl/SetRoleCacheCallbackCest.php b/tests/integration/Firewall/Adapter/Micro/Acl/SetRoleCacheCallbackCest.php index d1611fc03df..c25037f80e5 100644 --- a/tests/integration/Firewall/Adapter/Micro/Acl/SetRoleCacheCallbackCest.php +++ b/tests/integration/Firewall/Adapter/Micro/Acl/SetRoleCacheCallbackCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetRoleCacheCallbackCest /** * Tests Phalcon\Firewall\Adapter\Micro\Acl :: setRoleCacheCallback() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterMicroAclSetRoleCacheCallback(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Micro/Acl/SetRoleCallbackCest.php b/tests/integration/Firewall/Adapter/Micro/Acl/SetRoleCallbackCest.php index b436c3c62dc..a279a325d49 100644 --- a/tests/integration/Firewall/Adapter/Micro/Acl/SetRoleCallbackCest.php +++ b/tests/integration/Firewall/Adapter/Micro/Acl/SetRoleCallbackCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetRoleCallbackCest /** * Tests Phalcon\Firewall\Adapter\Micro\Acl :: setRoleCallback() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterMicroAclSetRoleCallback(IntegrationTester $I) diff --git a/tests/integration/Firewall/Adapter/Micro/Acl/SetRouteNameConfigurationCest.php b/tests/integration/Firewall/Adapter/Micro/Acl/SetRouteNameConfigurationCest.php index 914dbc2a8f3..3c7c835acc8 100644 --- a/tests/integration/Firewall/Adapter/Micro/Acl/SetRouteNameConfigurationCest.php +++ b/tests/integration/Firewall/Adapter/Micro/Acl/SetRouteNameConfigurationCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -106,7 +106,7 @@ public function _after() /** * Tests Phalcon\Firewall\Adapter\Micro\Acl :: setRouteNameConfiguration() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-12 */ public function firewallAdapterMicroAclSetRouteNameConfiguration(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Check/AddFilterCest.php b/tests/integration/Forms/Element/Check/AddFilterCest.php index 0fe3743ce61..93c1da71616 100644 --- a/tests/integration/Forms/Element/Check/AddFilterCest.php +++ b/tests/integration/Forms/Element/Check/AddFilterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddFilterCest /** * Tests Phalcon\Forms\Element\Check :: addFilter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementCheckAddFilter(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Check/AddValidatorCest.php b/tests/integration/Forms/Element/Check/AddValidatorCest.php index 664d22216dd..43d7871f5af 100644 --- a/tests/integration/Forms/Element/Check/AddValidatorCest.php +++ b/tests/integration/Forms/Element/Check/AddValidatorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddValidatorCest /** * Tests Phalcon\Forms\Element\Check :: addValidator() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementCheckAddValidator(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Check/AddValidatorsCest.php b/tests/integration/Forms/Element/Check/AddValidatorsCest.php index 143b05bcccb..0f1dca07e84 100644 --- a/tests/integration/Forms/Element/Check/AddValidatorsCest.php +++ b/tests/integration/Forms/Element/Check/AddValidatorsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddValidatorsCest /** * Tests Phalcon\Forms\Element\Check :: addValidators() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementCheckAddValidators(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Check/AppendMessageCest.php b/tests/integration/Forms/Element/Check/AppendMessageCest.php index abb42eb12ee..b0b97182a84 100644 --- a/tests/integration/Forms/Element/Check/AppendMessageCest.php +++ b/tests/integration/Forms/Element/Check/AppendMessageCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AppendMessageCest /** * Tests Phalcon\Forms\Element\Check :: appendMessage() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementCheckAppendMessage(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Check/ClearCest.php b/tests/integration/Forms/Element/Check/ClearCest.php index 4a22eb811f3..dac7e1fcba4 100644 --- a/tests/integration/Forms/Element/Check/ClearCest.php +++ b/tests/integration/Forms/Element/Check/ClearCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ClearCest /** * Tests Phalcon\Forms\Element\Check :: clear() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementCheckClear(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Check/ConstructCest.php b/tests/integration/Forms/Element/Check/ConstructCest.php index ca2cac33225..c6f7a0b76e6 100644 --- a/tests/integration/Forms/Element/Check/ConstructCest.php +++ b/tests/integration/Forms/Element/Check/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Forms\Element\Check :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementCheckConstruct(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Check/GetAttributeCest.php b/tests/integration/Forms/Element/Check/GetAttributeCest.php index d31b9080daf..fa67b6ae7ce 100644 --- a/tests/integration/Forms/Element/Check/GetAttributeCest.php +++ b/tests/integration/Forms/Element/Check/GetAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAttributeCest /** * Tests Phalcon\Forms\Element\Check :: getAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementCheckGetAttribute(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Check/GetAttributesCest.php b/tests/integration/Forms/Element/Check/GetAttributesCest.php index 65e2b9a1522..602c1b3230c 100644 --- a/tests/integration/Forms/Element/Check/GetAttributesCest.php +++ b/tests/integration/Forms/Element/Check/GetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAttributesCest /** * Tests Phalcon\Forms\Element\Check :: getAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementCheckGetAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Check/GetDefaultCest.php b/tests/integration/Forms/Element/Check/GetDefaultCest.php index 322f7a98c43..b3382e54199 100644 --- a/tests/integration/Forms/Element/Check/GetDefaultCest.php +++ b/tests/integration/Forms/Element/Check/GetDefaultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDefaultCest /** * Tests Phalcon\Forms\Element\Check :: getDefault() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementCheckGetDefault(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Check/GetFiltersCest.php b/tests/integration/Forms/Element/Check/GetFiltersCest.php index b7867576415..c295951d55e 100644 --- a/tests/integration/Forms/Element/Check/GetFiltersCest.php +++ b/tests/integration/Forms/Element/Check/GetFiltersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetFiltersCest /** * Tests Phalcon\Forms\Element\Check :: getFilters() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementCheckGetFilters(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Check/GetLabelCest.php b/tests/integration/Forms/Element/Check/GetLabelCest.php index b1014d8d92a..6edf2ea0672 100644 --- a/tests/integration/Forms/Element/Check/GetLabelCest.php +++ b/tests/integration/Forms/Element/Check/GetLabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetLabelCest /** * Tests Phalcon\Forms\Element\Check :: getLabel() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementCheckGetLabel(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Check/GetMessagesCest.php b/tests/integration/Forms/Element/Check/GetMessagesCest.php index 528f29b3a7f..b9cfc24c10e 100644 --- a/tests/integration/Forms/Element/Check/GetMessagesCest.php +++ b/tests/integration/Forms/Element/Check/GetMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetMessagesCest /** * Tests Phalcon\Forms\Element\Check :: getMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementCheckGetMessages(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Check/GetSetFormCest.php b/tests/integration/Forms/Element/Check/GetSetFormCest.php index fa52b7db7eb..b32a1e17365 100644 --- a/tests/integration/Forms/Element/Check/GetSetFormCest.php +++ b/tests/integration/Forms/Element/Check/GetSetFormCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Check/GetSetNameCest.php b/tests/integration/Forms/Element/Check/GetSetNameCest.php index 8b802eca9da..8a9c142f819 100644 --- a/tests/integration/Forms/Element/Check/GetSetNameCest.php +++ b/tests/integration/Forms/Element/Check/GetSetNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Check/GetUserOptionCest.php b/tests/integration/Forms/Element/Check/GetUserOptionCest.php index b61a19e19f6..ee77ee64261 100644 --- a/tests/integration/Forms/Element/Check/GetUserOptionCest.php +++ b/tests/integration/Forms/Element/Check/GetUserOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetUserOptionCest /** * Tests Phalcon\Forms\Element\Check :: getUserOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementCheckGetUserOption(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Check/GetUserOptionsCest.php b/tests/integration/Forms/Element/Check/GetUserOptionsCest.php index ccbc3e5af89..fc03c5e82bf 100644 --- a/tests/integration/Forms/Element/Check/GetUserOptionsCest.php +++ b/tests/integration/Forms/Element/Check/GetUserOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetUserOptionsCest /** * Tests Phalcon\Forms\Element\Check :: getUserOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementCheckGetUserOptions(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Check/GetValidatorsCest.php b/tests/integration/Forms/Element/Check/GetValidatorsCest.php index d310bc5c058..673f482ab01 100644 --- a/tests/integration/Forms/Element/Check/GetValidatorsCest.php +++ b/tests/integration/Forms/Element/Check/GetValidatorsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetValidatorsCest /** * Tests Phalcon\Forms\Element\Check :: getValidators() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementCheckGetValidators(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Check/GetValueCest.php b/tests/integration/Forms/Element/Check/GetValueCest.php index abf55a5949b..19632800c80 100644 --- a/tests/integration/Forms/Element/Check/GetValueCest.php +++ b/tests/integration/Forms/Element/Check/GetValueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetValueCest /** * Tests Phalcon\Forms\Element\Check :: getValue() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementCheckGetValue(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Check/HasMessagesCest.php b/tests/integration/Forms/Element/Check/HasMessagesCest.php index 8db230f4451..eae78f0840c 100644 --- a/tests/integration/Forms/Element/Check/HasMessagesCest.php +++ b/tests/integration/Forms/Element/Check/HasMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class HasMessagesCest /** * Tests Phalcon\Forms\Element\Check :: hasMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementCheckHasMessages(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Check/LabelCest.php b/tests/integration/Forms/Element/Check/LabelCest.php index 42cec0fd790..4f5cdec62ca 100644 --- a/tests/integration/Forms/Element/Check/LabelCest.php +++ b/tests/integration/Forms/Element/Check/LabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class LabelCest /** * Tests Phalcon\Forms\Element\Check :: label() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementCheckLabel(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Check/PrepareAttributesCest.php b/tests/integration/Forms/Element/Check/PrepareAttributesCest.php index af196d6ec74..abb7712efca 100644 --- a/tests/integration/Forms/Element/Check/PrepareAttributesCest.php +++ b/tests/integration/Forms/Element/Check/PrepareAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class PrepareAttributesCest /** * Tests Phalcon\Forms\Element\Check :: prepareAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementCheckPrepareAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Check/RenderCest.php b/tests/integration/Forms/Element/Check/RenderCest.php index cb7b0f2e2ed..621930b5a43 100644 --- a/tests/integration/Forms/Element/Check/RenderCest.php +++ b/tests/integration/Forms/Element/Check/RenderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Check/SetAttributeCest.php b/tests/integration/Forms/Element/Check/SetAttributeCest.php index 547285a427e..62e074502e2 100644 --- a/tests/integration/Forms/Element/Check/SetAttributeCest.php +++ b/tests/integration/Forms/Element/Check/SetAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetAttributeCest /** * Tests Phalcon\Forms\Element\Check :: setAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementCheckSetAttribute(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Check/SetAttributesCest.php b/tests/integration/Forms/Element/Check/SetAttributesCest.php index 644787da6ca..c5ba5173d44 100644 --- a/tests/integration/Forms/Element/Check/SetAttributesCest.php +++ b/tests/integration/Forms/Element/Check/SetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetAttributesCest /** * Tests Phalcon\Forms\Element\Check :: setAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementCheckSetAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Check/SetDefaultCest.php b/tests/integration/Forms/Element/Check/SetDefaultCest.php index ef7c78b75cf..0beaf31c54a 100644 --- a/tests/integration/Forms/Element/Check/SetDefaultCest.php +++ b/tests/integration/Forms/Element/Check/SetDefaultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetDefaultCest /** * Tests Phalcon\Forms\Element\Check :: setDefault() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementCheckSetDefault(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Check/SetFiltersCest.php b/tests/integration/Forms/Element/Check/SetFiltersCest.php index 2649fbba3e7..eecd30894d6 100644 --- a/tests/integration/Forms/Element/Check/SetFiltersCest.php +++ b/tests/integration/Forms/Element/Check/SetFiltersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetFiltersCest /** * Tests Phalcon\Forms\Element\Check :: setFilters() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementCheckSetFilters(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Check/SetLabelCest.php b/tests/integration/Forms/Element/Check/SetLabelCest.php index a036c0995f4..707d886885f 100644 --- a/tests/integration/Forms/Element/Check/SetLabelCest.php +++ b/tests/integration/Forms/Element/Check/SetLabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetLabelCest /** * Tests Phalcon\Forms\Element\Check :: setLabel() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementCheckSetLabel(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Check/SetMessagesCest.php b/tests/integration/Forms/Element/Check/SetMessagesCest.php index 1885ed0b854..a50073373d8 100644 --- a/tests/integration/Forms/Element/Check/SetMessagesCest.php +++ b/tests/integration/Forms/Element/Check/SetMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetMessagesCest /** * Tests Phalcon\Forms\Element\Check :: setMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementCheckSetMessages(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Check/SetUserOptionCest.php b/tests/integration/Forms/Element/Check/SetUserOptionCest.php index 7a6548b99bd..96e9e4a6c8c 100644 --- a/tests/integration/Forms/Element/Check/SetUserOptionCest.php +++ b/tests/integration/Forms/Element/Check/SetUserOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetUserOptionCest /** * Tests Phalcon\Forms\Element\Check :: setUserOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementCheckSetUserOption(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Check/SetUserOptionsCest.php b/tests/integration/Forms/Element/Check/SetUserOptionsCest.php index af3a53c0b58..b974cdcafc3 100644 --- a/tests/integration/Forms/Element/Check/SetUserOptionsCest.php +++ b/tests/integration/Forms/Element/Check/SetUserOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetUserOptionsCest /** * Tests Phalcon\Forms\Element\Check :: setUserOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementCheckSetUserOptions(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Check/ToStringCest.php b/tests/integration/Forms/Element/Check/ToStringCest.php index 3474cc2c3b1..771c910aa48 100644 --- a/tests/integration/Forms/Element/Check/ToStringCest.php +++ b/tests/integration/Forms/Element/Check/ToStringCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Date/AddFilterCest.php b/tests/integration/Forms/Element/Date/AddFilterCest.php index 0eaf1cec1b4..ac2b469dbec 100644 --- a/tests/integration/Forms/Element/Date/AddFilterCest.php +++ b/tests/integration/Forms/Element/Date/AddFilterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddFilterCest /** * Tests Phalcon\Forms\Element\Date :: addFilter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementDateAddFilter(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Date/AddValidatorCest.php b/tests/integration/Forms/Element/Date/AddValidatorCest.php index c47f3137dbe..795d7ce382c 100644 --- a/tests/integration/Forms/Element/Date/AddValidatorCest.php +++ b/tests/integration/Forms/Element/Date/AddValidatorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddValidatorCest /** * Tests Phalcon\Forms\Element\Date :: addValidator() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementDateAddValidator(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Date/AddValidatorsCest.php b/tests/integration/Forms/Element/Date/AddValidatorsCest.php index a405167a754..6031d8b8742 100644 --- a/tests/integration/Forms/Element/Date/AddValidatorsCest.php +++ b/tests/integration/Forms/Element/Date/AddValidatorsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddValidatorsCest /** * Tests Phalcon\Forms\Element\Date :: addValidators() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementDateAddValidators(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Date/AppendMessageCest.php b/tests/integration/Forms/Element/Date/AppendMessageCest.php index 07a0bca6e02..52a5975763c 100644 --- a/tests/integration/Forms/Element/Date/AppendMessageCest.php +++ b/tests/integration/Forms/Element/Date/AppendMessageCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AppendMessageCest /** * Tests Phalcon\Forms\Element\Date :: appendMessage() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementDateAppendMessage(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Date/ClearCest.php b/tests/integration/Forms/Element/Date/ClearCest.php index 634d595f417..b7966d40d10 100644 --- a/tests/integration/Forms/Element/Date/ClearCest.php +++ b/tests/integration/Forms/Element/Date/ClearCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ClearCest /** * Tests Phalcon\Forms\Element\Date :: clear() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementDateClear(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Date/ConstructCest.php b/tests/integration/Forms/Element/Date/ConstructCest.php index 7bb871c2d88..dfddfc9bcef 100644 --- a/tests/integration/Forms/Element/Date/ConstructCest.php +++ b/tests/integration/Forms/Element/Date/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Forms\Element\Date :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementDateConstruct(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Date/GetAttributeCest.php b/tests/integration/Forms/Element/Date/GetAttributeCest.php index 0811055fc42..b1984109dcd 100644 --- a/tests/integration/Forms/Element/Date/GetAttributeCest.php +++ b/tests/integration/Forms/Element/Date/GetAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAttributeCest /** * Tests Phalcon\Forms\Element\Date :: getAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementDateGetAttribute(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Date/GetAttributesCest.php b/tests/integration/Forms/Element/Date/GetAttributesCest.php index e215437f202..11674dbec34 100644 --- a/tests/integration/Forms/Element/Date/GetAttributesCest.php +++ b/tests/integration/Forms/Element/Date/GetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAttributesCest /** * Tests Phalcon\Forms\Element\Date :: getAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementDateGetAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Date/GetDefaultCest.php b/tests/integration/Forms/Element/Date/GetDefaultCest.php index 3c33570faf9..e3a217922e3 100644 --- a/tests/integration/Forms/Element/Date/GetDefaultCest.php +++ b/tests/integration/Forms/Element/Date/GetDefaultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDefaultCest /** * Tests Phalcon\Forms\Element\Date :: getDefault() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementDateGetDefault(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Date/GetFiltersCest.php b/tests/integration/Forms/Element/Date/GetFiltersCest.php index 5ef51345fe8..ed88c9ea39b 100644 --- a/tests/integration/Forms/Element/Date/GetFiltersCest.php +++ b/tests/integration/Forms/Element/Date/GetFiltersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetFiltersCest /** * Tests Phalcon\Forms\Element\Date :: getFilters() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementDateGetFilters(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Date/GetLabelCest.php b/tests/integration/Forms/Element/Date/GetLabelCest.php index 6668fc6d64a..38f5be5d599 100644 --- a/tests/integration/Forms/Element/Date/GetLabelCest.php +++ b/tests/integration/Forms/Element/Date/GetLabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetLabelCest /** * Tests Phalcon\Forms\Element\Date :: getLabel() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementDateGetLabel(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Date/GetMessagesCest.php b/tests/integration/Forms/Element/Date/GetMessagesCest.php index 6519a23716f..06262c062aa 100644 --- a/tests/integration/Forms/Element/Date/GetMessagesCest.php +++ b/tests/integration/Forms/Element/Date/GetMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetMessagesCest /** * Tests Phalcon\Forms\Element\Date :: getMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementDateGetMessages(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Date/GetSetFormCest.php b/tests/integration/Forms/Element/Date/GetSetFormCest.php index cfccbec8a49..fe83d51a3a3 100644 --- a/tests/integration/Forms/Element/Date/GetSetFormCest.php +++ b/tests/integration/Forms/Element/Date/GetSetFormCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Date/GetSetNameCest.php b/tests/integration/Forms/Element/Date/GetSetNameCest.php index a1483b7df9a..e3543068469 100644 --- a/tests/integration/Forms/Element/Date/GetSetNameCest.php +++ b/tests/integration/Forms/Element/Date/GetSetNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Date/GetUserOptionCest.php b/tests/integration/Forms/Element/Date/GetUserOptionCest.php index ba1f8801a71..0c4a1c2abf2 100644 --- a/tests/integration/Forms/Element/Date/GetUserOptionCest.php +++ b/tests/integration/Forms/Element/Date/GetUserOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetUserOptionCest /** * Tests Phalcon\Forms\Element\Date :: getUserOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementDateGetUserOption(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Date/GetUserOptionsCest.php b/tests/integration/Forms/Element/Date/GetUserOptionsCest.php index e9f20c3a67a..c2c319ddc97 100644 --- a/tests/integration/Forms/Element/Date/GetUserOptionsCest.php +++ b/tests/integration/Forms/Element/Date/GetUserOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetUserOptionsCest /** * Tests Phalcon\Forms\Element\Date :: getUserOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementDateGetUserOptions(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Date/GetValidatorsCest.php b/tests/integration/Forms/Element/Date/GetValidatorsCest.php index 001406d7ccb..fceaeec1f4d 100644 --- a/tests/integration/Forms/Element/Date/GetValidatorsCest.php +++ b/tests/integration/Forms/Element/Date/GetValidatorsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetValidatorsCest /** * Tests Phalcon\Forms\Element\Date :: getValidators() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementDateGetValidators(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Date/GetValueCest.php b/tests/integration/Forms/Element/Date/GetValueCest.php index 64f69847cf7..d43f5397b48 100644 --- a/tests/integration/Forms/Element/Date/GetValueCest.php +++ b/tests/integration/Forms/Element/Date/GetValueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetValueCest /** * Tests Phalcon\Forms\Element\Date :: getValue() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementDateGetValue(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Date/HasMessagesCest.php b/tests/integration/Forms/Element/Date/HasMessagesCest.php index 723c8f34c9c..ef21fda991c 100644 --- a/tests/integration/Forms/Element/Date/HasMessagesCest.php +++ b/tests/integration/Forms/Element/Date/HasMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class HasMessagesCest /** * Tests Phalcon\Forms\Element\Date :: hasMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementDateHasMessages(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Date/LabelCest.php b/tests/integration/Forms/Element/Date/LabelCest.php index ee019a655c2..4907361b7d0 100644 --- a/tests/integration/Forms/Element/Date/LabelCest.php +++ b/tests/integration/Forms/Element/Date/LabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class LabelCest /** * Tests Phalcon\Forms\Element\Date :: label() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementDateLabel(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Date/PrepareAttributesCest.php b/tests/integration/Forms/Element/Date/PrepareAttributesCest.php index 2fe191e54d8..ca5d987b66a 100644 --- a/tests/integration/Forms/Element/Date/PrepareAttributesCest.php +++ b/tests/integration/Forms/Element/Date/PrepareAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class PrepareAttributesCest /** * Tests Phalcon\Forms\Element\Date :: prepareAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementDatePrepareAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Date/RenderCest.php b/tests/integration/Forms/Element/Date/RenderCest.php index e23dac4214c..f4f6d561e87 100644 --- a/tests/integration/Forms/Element/Date/RenderCest.php +++ b/tests/integration/Forms/Element/Date/RenderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Date/SetAttributeCest.php b/tests/integration/Forms/Element/Date/SetAttributeCest.php index d7cbe6593d6..ba8069d0696 100644 --- a/tests/integration/Forms/Element/Date/SetAttributeCest.php +++ b/tests/integration/Forms/Element/Date/SetAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetAttributeCest /** * Tests Phalcon\Forms\Element\Date :: setAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementDateSetAttribute(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Date/SetAttributesCest.php b/tests/integration/Forms/Element/Date/SetAttributesCest.php index 0e4e9a81004..f859c5c1346 100644 --- a/tests/integration/Forms/Element/Date/SetAttributesCest.php +++ b/tests/integration/Forms/Element/Date/SetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetAttributesCest /** * Tests Phalcon\Forms\Element\Date :: setAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementDateSetAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Date/SetDefaultCest.php b/tests/integration/Forms/Element/Date/SetDefaultCest.php index 010448ff80e..4a064fe87dc 100644 --- a/tests/integration/Forms/Element/Date/SetDefaultCest.php +++ b/tests/integration/Forms/Element/Date/SetDefaultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetDefaultCest /** * Tests Phalcon\Forms\Element\Date :: setDefault() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementDateSetDefault(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Date/SetFiltersCest.php b/tests/integration/Forms/Element/Date/SetFiltersCest.php index 9d10202dae7..a92440f865c 100644 --- a/tests/integration/Forms/Element/Date/SetFiltersCest.php +++ b/tests/integration/Forms/Element/Date/SetFiltersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetFiltersCest /** * Tests Phalcon\Forms\Element\Date :: setFilters() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementDateSetFilters(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Date/SetLabelCest.php b/tests/integration/Forms/Element/Date/SetLabelCest.php index 5a671184849..d2af8deaa62 100644 --- a/tests/integration/Forms/Element/Date/SetLabelCest.php +++ b/tests/integration/Forms/Element/Date/SetLabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetLabelCest /** * Tests Phalcon\Forms\Element\Date :: setLabel() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementDateSetLabel(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Date/SetMessagesCest.php b/tests/integration/Forms/Element/Date/SetMessagesCest.php index cc3fd9b0721..71014c4665a 100644 --- a/tests/integration/Forms/Element/Date/SetMessagesCest.php +++ b/tests/integration/Forms/Element/Date/SetMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetMessagesCest /** * Tests Phalcon\Forms\Element\Date :: setMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementDateSetMessages(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Date/SetUserOptionCest.php b/tests/integration/Forms/Element/Date/SetUserOptionCest.php index a371c582788..52f0e8a905c 100644 --- a/tests/integration/Forms/Element/Date/SetUserOptionCest.php +++ b/tests/integration/Forms/Element/Date/SetUserOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetUserOptionCest /** * Tests Phalcon\Forms\Element\Date :: setUserOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementDateSetUserOption(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Date/SetUserOptionsCest.php b/tests/integration/Forms/Element/Date/SetUserOptionsCest.php index ded55058d95..7049a419b2b 100644 --- a/tests/integration/Forms/Element/Date/SetUserOptionsCest.php +++ b/tests/integration/Forms/Element/Date/SetUserOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetUserOptionsCest /** * Tests Phalcon\Forms\Element\Date :: setUserOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementDateSetUserOptions(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Date/ToStringCest.php b/tests/integration/Forms/Element/Date/ToStringCest.php index c3558e2bd85..2b9165a713a 100644 --- a/tests/integration/Forms/Element/Date/ToStringCest.php +++ b/tests/integration/Forms/Element/Date/ToStringCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Email/AddFilterCest.php b/tests/integration/Forms/Element/Email/AddFilterCest.php index 470470d42d7..040a696ccb1 100644 --- a/tests/integration/Forms/Element/Email/AddFilterCest.php +++ b/tests/integration/Forms/Element/Email/AddFilterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddFilterCest /** * Tests Phalcon\Forms\Element\Email :: addFilter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementEmailAddFilter(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Email/AddValidatorCest.php b/tests/integration/Forms/Element/Email/AddValidatorCest.php index 653c362fb89..e5dfe950464 100644 --- a/tests/integration/Forms/Element/Email/AddValidatorCest.php +++ b/tests/integration/Forms/Element/Email/AddValidatorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddValidatorCest /** * Tests Phalcon\Forms\Element\Email :: addValidator() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementEmailAddValidator(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Email/AddValidatorsCest.php b/tests/integration/Forms/Element/Email/AddValidatorsCest.php index 75ce39289e8..62edb5191f7 100644 --- a/tests/integration/Forms/Element/Email/AddValidatorsCest.php +++ b/tests/integration/Forms/Element/Email/AddValidatorsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddValidatorsCest /** * Tests Phalcon\Forms\Element\Email :: addValidators() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementEmailAddValidators(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Email/AppendMessageCest.php b/tests/integration/Forms/Element/Email/AppendMessageCest.php index cacce851c98..593eee4adf4 100644 --- a/tests/integration/Forms/Element/Email/AppendMessageCest.php +++ b/tests/integration/Forms/Element/Email/AppendMessageCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AppendMessageCest /** * Tests Phalcon\Forms\Element\Email :: appendMessage() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementEmailAppendMessage(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Email/ClearCest.php b/tests/integration/Forms/Element/Email/ClearCest.php index e8ac02420de..0e2544620d2 100644 --- a/tests/integration/Forms/Element/Email/ClearCest.php +++ b/tests/integration/Forms/Element/Email/ClearCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ClearCest /** * Tests Phalcon\Forms\Element\Email :: clear() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementEmailClear(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Email/ConstructCest.php b/tests/integration/Forms/Element/Email/ConstructCest.php index fa3e0b5440a..d2299e1e3ec 100644 --- a/tests/integration/Forms/Element/Email/ConstructCest.php +++ b/tests/integration/Forms/Element/Email/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Forms\Element\Email :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementEmailConstruct(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Email/GetAttributeCest.php b/tests/integration/Forms/Element/Email/GetAttributeCest.php index 2931b3136e3..d3d7fa05918 100644 --- a/tests/integration/Forms/Element/Email/GetAttributeCest.php +++ b/tests/integration/Forms/Element/Email/GetAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAttributeCest /** * Tests Phalcon\Forms\Element\Email :: getAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementEmailGetAttribute(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Email/GetAttributesCest.php b/tests/integration/Forms/Element/Email/GetAttributesCest.php index 540f5cad4b3..2341a9cd013 100644 --- a/tests/integration/Forms/Element/Email/GetAttributesCest.php +++ b/tests/integration/Forms/Element/Email/GetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAttributesCest /** * Tests Phalcon\Forms\Element\Email :: getAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementEmailGetAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Email/GetDefaultCest.php b/tests/integration/Forms/Element/Email/GetDefaultCest.php index 853bfaa0f60..8ca49ea2d9a 100644 --- a/tests/integration/Forms/Element/Email/GetDefaultCest.php +++ b/tests/integration/Forms/Element/Email/GetDefaultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDefaultCest /** * Tests Phalcon\Forms\Element\Email :: getDefault() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementEmailGetDefault(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Email/GetFiltersCest.php b/tests/integration/Forms/Element/Email/GetFiltersCest.php index b794f1572b9..2a7b574e4b4 100644 --- a/tests/integration/Forms/Element/Email/GetFiltersCest.php +++ b/tests/integration/Forms/Element/Email/GetFiltersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetFiltersCest /** * Tests Phalcon\Forms\Element\Email :: getFilters() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementEmailGetFilters(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Email/GetLabelCest.php b/tests/integration/Forms/Element/Email/GetLabelCest.php index 66a7ca7e174..e10faaae85c 100644 --- a/tests/integration/Forms/Element/Email/GetLabelCest.php +++ b/tests/integration/Forms/Element/Email/GetLabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetLabelCest /** * Tests Phalcon\Forms\Element\Email :: getLabel() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementEmailGetLabel(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Email/GetMessagesCest.php b/tests/integration/Forms/Element/Email/GetMessagesCest.php index 300b2af9e6e..22d78613ccf 100644 --- a/tests/integration/Forms/Element/Email/GetMessagesCest.php +++ b/tests/integration/Forms/Element/Email/GetMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetMessagesCest /** * Tests Phalcon\Forms\Element\Email :: getMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementEmailGetMessages(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Email/GetSetFormCest.php b/tests/integration/Forms/Element/Email/GetSetFormCest.php index 8421591b3ea..0ec006e51f7 100644 --- a/tests/integration/Forms/Element/Email/GetSetFormCest.php +++ b/tests/integration/Forms/Element/Email/GetSetFormCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Email/GetSetNameCest.php b/tests/integration/Forms/Element/Email/GetSetNameCest.php index 26fedecc811..62c9bd0c136 100644 --- a/tests/integration/Forms/Element/Email/GetSetNameCest.php +++ b/tests/integration/Forms/Element/Email/GetSetNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Email/GetUserOptionCest.php b/tests/integration/Forms/Element/Email/GetUserOptionCest.php index 7b952d6490c..15cecbc78bc 100644 --- a/tests/integration/Forms/Element/Email/GetUserOptionCest.php +++ b/tests/integration/Forms/Element/Email/GetUserOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetUserOptionCest /** * Tests Phalcon\Forms\Element\Email :: getUserOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementEmailGetUserOption(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Email/GetUserOptionsCest.php b/tests/integration/Forms/Element/Email/GetUserOptionsCest.php index 2f21ed94bf5..f8435b890a1 100644 --- a/tests/integration/Forms/Element/Email/GetUserOptionsCest.php +++ b/tests/integration/Forms/Element/Email/GetUserOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetUserOptionsCest /** * Tests Phalcon\Forms\Element\Email :: getUserOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementEmailGetUserOptions(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Email/GetValidatorsCest.php b/tests/integration/Forms/Element/Email/GetValidatorsCest.php index 3ee01bccec6..682b66e3fa8 100644 --- a/tests/integration/Forms/Element/Email/GetValidatorsCest.php +++ b/tests/integration/Forms/Element/Email/GetValidatorsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetValidatorsCest /** * Tests Phalcon\Forms\Element\Email :: getValidators() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementEmailGetValidators(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Email/GetValueCest.php b/tests/integration/Forms/Element/Email/GetValueCest.php index 5d38a30f763..22dd04d2dc5 100644 --- a/tests/integration/Forms/Element/Email/GetValueCest.php +++ b/tests/integration/Forms/Element/Email/GetValueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetValueCest /** * Tests Phalcon\Forms\Element\Email :: getValue() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementEmailGetValue(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Email/HasMessagesCest.php b/tests/integration/Forms/Element/Email/HasMessagesCest.php index 19a5839926c..61f549a46b4 100644 --- a/tests/integration/Forms/Element/Email/HasMessagesCest.php +++ b/tests/integration/Forms/Element/Email/HasMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class HasMessagesCest /** * Tests Phalcon\Forms\Element\Email :: hasMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementEmailHasMessages(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Email/LabelCest.php b/tests/integration/Forms/Element/Email/LabelCest.php index 7aa1294aa33..e79a8c5e4c7 100644 --- a/tests/integration/Forms/Element/Email/LabelCest.php +++ b/tests/integration/Forms/Element/Email/LabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class LabelCest /** * Tests Phalcon\Forms\Element\Email :: label() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementEmailLabel(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Email/PrepareAttributesCest.php b/tests/integration/Forms/Element/Email/PrepareAttributesCest.php index 3e810ea7636..000a79855c5 100644 --- a/tests/integration/Forms/Element/Email/PrepareAttributesCest.php +++ b/tests/integration/Forms/Element/Email/PrepareAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class PrepareAttributesCest /** * Tests Phalcon\Forms\Element\Email :: prepareAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementEmailPrepareAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Email/RenderCest.php b/tests/integration/Forms/Element/Email/RenderCest.php index 5a3435a0a8b..d23330e7ca5 100644 --- a/tests/integration/Forms/Element/Email/RenderCest.php +++ b/tests/integration/Forms/Element/Email/RenderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Email/SetAttributeCest.php b/tests/integration/Forms/Element/Email/SetAttributeCest.php index 4c670775ce3..f1e7ca5865b 100644 --- a/tests/integration/Forms/Element/Email/SetAttributeCest.php +++ b/tests/integration/Forms/Element/Email/SetAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetAttributeCest /** * Tests Phalcon\Forms\Element\Email :: setAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementEmailSetAttribute(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Email/SetAttributesCest.php b/tests/integration/Forms/Element/Email/SetAttributesCest.php index 9f6600858c6..2a08ba196d5 100644 --- a/tests/integration/Forms/Element/Email/SetAttributesCest.php +++ b/tests/integration/Forms/Element/Email/SetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetAttributesCest /** * Tests Phalcon\Forms\Element\Email :: setAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementEmailSetAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Email/SetDefaultCest.php b/tests/integration/Forms/Element/Email/SetDefaultCest.php index 3a7fc286978..bece223e656 100644 --- a/tests/integration/Forms/Element/Email/SetDefaultCest.php +++ b/tests/integration/Forms/Element/Email/SetDefaultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetDefaultCest /** * Tests Phalcon\Forms\Element\Email :: setDefault() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementEmailSetDefault(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Email/SetFiltersCest.php b/tests/integration/Forms/Element/Email/SetFiltersCest.php index bced98e41d3..2e058656534 100644 --- a/tests/integration/Forms/Element/Email/SetFiltersCest.php +++ b/tests/integration/Forms/Element/Email/SetFiltersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetFiltersCest /** * Tests Phalcon\Forms\Element\Email :: setFilters() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementEmailSetFilters(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Email/SetLabelCest.php b/tests/integration/Forms/Element/Email/SetLabelCest.php index 6cdd8c2c8b6..811929cfd0d 100644 --- a/tests/integration/Forms/Element/Email/SetLabelCest.php +++ b/tests/integration/Forms/Element/Email/SetLabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetLabelCest /** * Tests Phalcon\Forms\Element\Email :: setLabel() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementEmailSetLabel(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Email/SetMessagesCest.php b/tests/integration/Forms/Element/Email/SetMessagesCest.php index 9e797d59800..d2f2f7bc2cc 100644 --- a/tests/integration/Forms/Element/Email/SetMessagesCest.php +++ b/tests/integration/Forms/Element/Email/SetMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetMessagesCest /** * Tests Phalcon\Forms\Element\Email :: setMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementEmailSetMessages(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Email/SetUserOptionCest.php b/tests/integration/Forms/Element/Email/SetUserOptionCest.php index a62fde64528..3eae28b3dff 100644 --- a/tests/integration/Forms/Element/Email/SetUserOptionCest.php +++ b/tests/integration/Forms/Element/Email/SetUserOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetUserOptionCest /** * Tests Phalcon\Forms\Element\Email :: setUserOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementEmailSetUserOption(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Email/SetUserOptionsCest.php b/tests/integration/Forms/Element/Email/SetUserOptionsCest.php index c409469d657..2d1dbb8c70f 100644 --- a/tests/integration/Forms/Element/Email/SetUserOptionsCest.php +++ b/tests/integration/Forms/Element/Email/SetUserOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetUserOptionsCest /** * Tests Phalcon\Forms\Element\Email :: setUserOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementEmailSetUserOptions(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Email/ToStringCest.php b/tests/integration/Forms/Element/Email/ToStringCest.php index 2bb6ce1d764..eb90161435a 100644 --- a/tests/integration/Forms/Element/Email/ToStringCest.php +++ b/tests/integration/Forms/Element/Email/ToStringCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/File/AddFilterCest.php b/tests/integration/Forms/Element/File/AddFilterCest.php index 25ea290379c..f4f357f14e0 100644 --- a/tests/integration/Forms/Element/File/AddFilterCest.php +++ b/tests/integration/Forms/Element/File/AddFilterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddFilterCest /** * Tests Phalcon\Forms\Element\File :: addFilter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementFileAddFilter(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/File/AddValidatorCest.php b/tests/integration/Forms/Element/File/AddValidatorCest.php index 0fee4c3f1f1..4f87b0d693c 100644 --- a/tests/integration/Forms/Element/File/AddValidatorCest.php +++ b/tests/integration/Forms/Element/File/AddValidatorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddValidatorCest /** * Tests Phalcon\Forms\Element\File :: addValidator() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementFileAddValidator(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/File/AddValidatorsCest.php b/tests/integration/Forms/Element/File/AddValidatorsCest.php index 979ebb530a0..c88f917cc1f 100644 --- a/tests/integration/Forms/Element/File/AddValidatorsCest.php +++ b/tests/integration/Forms/Element/File/AddValidatorsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddValidatorsCest /** * Tests Phalcon\Forms\Element\File :: addValidators() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementFileAddValidators(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/File/AppendMessageCest.php b/tests/integration/Forms/Element/File/AppendMessageCest.php index a6c3f5810a9..3bfc74e06a4 100644 --- a/tests/integration/Forms/Element/File/AppendMessageCest.php +++ b/tests/integration/Forms/Element/File/AppendMessageCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AppendMessageCest /** * Tests Phalcon\Forms\Element\File :: appendMessage() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementFileAppendMessage(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/File/ClearCest.php b/tests/integration/Forms/Element/File/ClearCest.php index 0c36045a02b..92d8a61742f 100644 --- a/tests/integration/Forms/Element/File/ClearCest.php +++ b/tests/integration/Forms/Element/File/ClearCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ClearCest /** * Tests Phalcon\Forms\Element\File :: clear() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementFileClear(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/File/ConstructCest.php b/tests/integration/Forms/Element/File/ConstructCest.php index ee5defe9a8b..3e6951c40a0 100644 --- a/tests/integration/Forms/Element/File/ConstructCest.php +++ b/tests/integration/Forms/Element/File/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Forms\Element\File :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementFileConstruct(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/File/GetAttributeCest.php b/tests/integration/Forms/Element/File/GetAttributeCest.php index b071206eaf8..139b08c0620 100644 --- a/tests/integration/Forms/Element/File/GetAttributeCest.php +++ b/tests/integration/Forms/Element/File/GetAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAttributeCest /** * Tests Phalcon\Forms\Element\File :: getAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementFileGetAttribute(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/File/GetAttributesCest.php b/tests/integration/Forms/Element/File/GetAttributesCest.php index 0bbe0fc8d0b..81f554041c7 100644 --- a/tests/integration/Forms/Element/File/GetAttributesCest.php +++ b/tests/integration/Forms/Element/File/GetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAttributesCest /** * Tests Phalcon\Forms\Element\File :: getAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementFileGetAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/File/GetDefaultCest.php b/tests/integration/Forms/Element/File/GetDefaultCest.php index 21e52ffd2b6..200bf567ab9 100644 --- a/tests/integration/Forms/Element/File/GetDefaultCest.php +++ b/tests/integration/Forms/Element/File/GetDefaultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDefaultCest /** * Tests Phalcon\Forms\Element\File :: getDefault() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementFileGetDefault(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/File/GetFiltersCest.php b/tests/integration/Forms/Element/File/GetFiltersCest.php index 423082ab5a9..0c3d9f89d4a 100644 --- a/tests/integration/Forms/Element/File/GetFiltersCest.php +++ b/tests/integration/Forms/Element/File/GetFiltersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetFiltersCest /** * Tests Phalcon\Forms\Element\File :: getFilters() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementFileGetFilters(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/File/GetLabelCest.php b/tests/integration/Forms/Element/File/GetLabelCest.php index 9756a0dc57b..35e22e143d1 100644 --- a/tests/integration/Forms/Element/File/GetLabelCest.php +++ b/tests/integration/Forms/Element/File/GetLabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetLabelCest /** * Tests Phalcon\Forms\Element\File :: getLabel() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementFileGetLabel(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/File/GetMessagesCest.php b/tests/integration/Forms/Element/File/GetMessagesCest.php index 9af3e5217ee..fd958fd0b7a 100644 --- a/tests/integration/Forms/Element/File/GetMessagesCest.php +++ b/tests/integration/Forms/Element/File/GetMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetMessagesCest /** * Tests Phalcon\Forms\Element\File :: getMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementFileGetMessages(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/File/GetSetFormCest.php b/tests/integration/Forms/Element/File/GetSetFormCest.php index d087fbe9d6f..d2dca1ae7b4 100644 --- a/tests/integration/Forms/Element/File/GetSetFormCest.php +++ b/tests/integration/Forms/Element/File/GetSetFormCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/File/GetSetNameCest.php b/tests/integration/Forms/Element/File/GetSetNameCest.php index 7bb8e716ccb..6e0a11f0b22 100644 --- a/tests/integration/Forms/Element/File/GetSetNameCest.php +++ b/tests/integration/Forms/Element/File/GetSetNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/File/GetUserOptionCest.php b/tests/integration/Forms/Element/File/GetUserOptionCest.php index 93a7be61140..96152029a0c 100644 --- a/tests/integration/Forms/Element/File/GetUserOptionCest.php +++ b/tests/integration/Forms/Element/File/GetUserOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetUserOptionCest /** * Tests Phalcon\Forms\Element\File :: getUserOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementFileGetUserOption(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/File/GetUserOptionsCest.php b/tests/integration/Forms/Element/File/GetUserOptionsCest.php index 6be2e5a7a75..1ebefbcfaca 100644 --- a/tests/integration/Forms/Element/File/GetUserOptionsCest.php +++ b/tests/integration/Forms/Element/File/GetUserOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetUserOptionsCest /** * Tests Phalcon\Forms\Element\File :: getUserOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementFileGetUserOptions(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/File/GetValidatorsCest.php b/tests/integration/Forms/Element/File/GetValidatorsCest.php index 8fa5d644b95..36a4f5a0ba6 100644 --- a/tests/integration/Forms/Element/File/GetValidatorsCest.php +++ b/tests/integration/Forms/Element/File/GetValidatorsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetValidatorsCest /** * Tests Phalcon\Forms\Element\File :: getValidators() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementFileGetValidators(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/File/GetValueCest.php b/tests/integration/Forms/Element/File/GetValueCest.php index a96437bb155..b2d46fc82cc 100644 --- a/tests/integration/Forms/Element/File/GetValueCest.php +++ b/tests/integration/Forms/Element/File/GetValueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetValueCest /** * Tests Phalcon\Forms\Element\File :: getValue() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementFileGetValue(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/File/HasMessagesCest.php b/tests/integration/Forms/Element/File/HasMessagesCest.php index df32f62fa1d..605cc6da43f 100644 --- a/tests/integration/Forms/Element/File/HasMessagesCest.php +++ b/tests/integration/Forms/Element/File/HasMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class HasMessagesCest /** * Tests Phalcon\Forms\Element\File :: hasMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementFileHasMessages(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/File/LabelCest.php b/tests/integration/Forms/Element/File/LabelCest.php index c4931f498d8..877c270c1f3 100644 --- a/tests/integration/Forms/Element/File/LabelCest.php +++ b/tests/integration/Forms/Element/File/LabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class LabelCest /** * Tests Phalcon\Forms\Element\File :: label() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementFileLabel(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/File/PrepareAttributesCest.php b/tests/integration/Forms/Element/File/PrepareAttributesCest.php index 9db5c3de1a3..cf2d8a0146f 100644 --- a/tests/integration/Forms/Element/File/PrepareAttributesCest.php +++ b/tests/integration/Forms/Element/File/PrepareAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class PrepareAttributesCest /** * Tests Phalcon\Forms\Element\File :: prepareAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementFilePrepareAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/File/RenderCest.php b/tests/integration/Forms/Element/File/RenderCest.php index c368c04a1e2..851e32311aa 100644 --- a/tests/integration/Forms/Element/File/RenderCest.php +++ b/tests/integration/Forms/Element/File/RenderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/File/SetAttributeCest.php b/tests/integration/Forms/Element/File/SetAttributeCest.php index e2def4d824d..9d5ff1744ca 100644 --- a/tests/integration/Forms/Element/File/SetAttributeCest.php +++ b/tests/integration/Forms/Element/File/SetAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetAttributeCest /** * Tests Phalcon\Forms\Element\File :: setAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementFileSetAttribute(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/File/SetAttributesCest.php b/tests/integration/Forms/Element/File/SetAttributesCest.php index 2297a1839af..dba0069f68a 100644 --- a/tests/integration/Forms/Element/File/SetAttributesCest.php +++ b/tests/integration/Forms/Element/File/SetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetAttributesCest /** * Tests Phalcon\Forms\Element\File :: setAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementFileSetAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/File/SetDefaultCest.php b/tests/integration/Forms/Element/File/SetDefaultCest.php index 3a546ab8390..37ad5d8fa94 100644 --- a/tests/integration/Forms/Element/File/SetDefaultCest.php +++ b/tests/integration/Forms/Element/File/SetDefaultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetDefaultCest /** * Tests Phalcon\Forms\Element\File :: setDefault() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementFileSetDefault(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/File/SetFiltersCest.php b/tests/integration/Forms/Element/File/SetFiltersCest.php index eecc3f418e0..4e468d02852 100644 --- a/tests/integration/Forms/Element/File/SetFiltersCest.php +++ b/tests/integration/Forms/Element/File/SetFiltersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetFiltersCest /** * Tests Phalcon\Forms\Element\File :: setFilters() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementFileSetFilters(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/File/SetLabelCest.php b/tests/integration/Forms/Element/File/SetLabelCest.php index 1a1a33d1c25..5e560111a0b 100644 --- a/tests/integration/Forms/Element/File/SetLabelCest.php +++ b/tests/integration/Forms/Element/File/SetLabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetLabelCest /** * Tests Phalcon\Forms\Element\File :: setLabel() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementFileSetLabel(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/File/SetMessagesCest.php b/tests/integration/Forms/Element/File/SetMessagesCest.php index 453ea2fcb50..a7dfc53b247 100644 --- a/tests/integration/Forms/Element/File/SetMessagesCest.php +++ b/tests/integration/Forms/Element/File/SetMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetMessagesCest /** * Tests Phalcon\Forms\Element\File :: setMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementFileSetMessages(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/File/SetUserOptionCest.php b/tests/integration/Forms/Element/File/SetUserOptionCest.php index 8899652f049..fb6439f4c6c 100644 --- a/tests/integration/Forms/Element/File/SetUserOptionCest.php +++ b/tests/integration/Forms/Element/File/SetUserOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetUserOptionCest /** * Tests Phalcon\Forms\Element\File :: setUserOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementFileSetUserOption(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/File/SetUserOptionsCest.php b/tests/integration/Forms/Element/File/SetUserOptionsCest.php index 68c536f4d3c..ae40268281e 100644 --- a/tests/integration/Forms/Element/File/SetUserOptionsCest.php +++ b/tests/integration/Forms/Element/File/SetUserOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetUserOptionsCest /** * Tests Phalcon\Forms\Element\File :: setUserOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementFileSetUserOptions(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/File/ToStringCest.php b/tests/integration/Forms/Element/File/ToStringCest.php index 41e99ab082c..d70e2076cb1 100644 --- a/tests/integration/Forms/Element/File/ToStringCest.php +++ b/tests/integration/Forms/Element/File/ToStringCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Hidden/AddFilterCest.php b/tests/integration/Forms/Element/Hidden/AddFilterCest.php index 4adfca170c8..122ee0d68cb 100644 --- a/tests/integration/Forms/Element/Hidden/AddFilterCest.php +++ b/tests/integration/Forms/Element/Hidden/AddFilterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddFilterCest /** * Tests Phalcon\Forms\Element\Hidden :: addFilter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementHiddenAddFilter(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Hidden/AddValidatorCest.php b/tests/integration/Forms/Element/Hidden/AddValidatorCest.php index e68f4e7f9bf..4d6d9139f95 100644 --- a/tests/integration/Forms/Element/Hidden/AddValidatorCest.php +++ b/tests/integration/Forms/Element/Hidden/AddValidatorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddValidatorCest /** * Tests Phalcon\Forms\Element\Hidden :: addValidator() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementHiddenAddValidator(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Hidden/AddValidatorsCest.php b/tests/integration/Forms/Element/Hidden/AddValidatorsCest.php index 4140d1d3cfd..bc1a9e7112c 100644 --- a/tests/integration/Forms/Element/Hidden/AddValidatorsCest.php +++ b/tests/integration/Forms/Element/Hidden/AddValidatorsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddValidatorsCest /** * Tests Phalcon\Forms\Element\Hidden :: addValidators() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementHiddenAddValidators(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Hidden/AppendMessageCest.php b/tests/integration/Forms/Element/Hidden/AppendMessageCest.php index 65dacf855fa..f75539c9ea7 100644 --- a/tests/integration/Forms/Element/Hidden/AppendMessageCest.php +++ b/tests/integration/Forms/Element/Hidden/AppendMessageCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AppendMessageCest /** * Tests Phalcon\Forms\Element\Hidden :: appendMessage() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementHiddenAppendMessage(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Hidden/ClearCest.php b/tests/integration/Forms/Element/Hidden/ClearCest.php index 6a570024e4f..9558938eb62 100644 --- a/tests/integration/Forms/Element/Hidden/ClearCest.php +++ b/tests/integration/Forms/Element/Hidden/ClearCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ClearCest /** * Tests Phalcon\Forms\Element\Hidden :: clear() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementHiddenClear(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Hidden/ConstructCest.php b/tests/integration/Forms/Element/Hidden/ConstructCest.php index 4f5755330ec..96799716fb5 100644 --- a/tests/integration/Forms/Element/Hidden/ConstructCest.php +++ b/tests/integration/Forms/Element/Hidden/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Forms\Element\Hidden :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementHiddenConstruct(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Hidden/GetAttributeCest.php b/tests/integration/Forms/Element/Hidden/GetAttributeCest.php index eac95627d60..2ef0840fa34 100644 --- a/tests/integration/Forms/Element/Hidden/GetAttributeCest.php +++ b/tests/integration/Forms/Element/Hidden/GetAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAttributeCest /** * Tests Phalcon\Forms\Element\Hidden :: getAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementHiddenGetAttribute(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Hidden/GetAttributesCest.php b/tests/integration/Forms/Element/Hidden/GetAttributesCest.php index ed630f57888..1645cc8669e 100644 --- a/tests/integration/Forms/Element/Hidden/GetAttributesCest.php +++ b/tests/integration/Forms/Element/Hidden/GetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAttributesCest /** * Tests Phalcon\Forms\Element\Hidden :: getAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementHiddenGetAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Hidden/GetDefaultCest.php b/tests/integration/Forms/Element/Hidden/GetDefaultCest.php index 6180e59cbe3..434d417e162 100644 --- a/tests/integration/Forms/Element/Hidden/GetDefaultCest.php +++ b/tests/integration/Forms/Element/Hidden/GetDefaultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDefaultCest /** * Tests Phalcon\Forms\Element\Hidden :: getDefault() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementHiddenGetDefault(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Hidden/GetFiltersCest.php b/tests/integration/Forms/Element/Hidden/GetFiltersCest.php index f5bba02cb40..b2b2e59596f 100644 --- a/tests/integration/Forms/Element/Hidden/GetFiltersCest.php +++ b/tests/integration/Forms/Element/Hidden/GetFiltersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetFiltersCest /** * Tests Phalcon\Forms\Element\Hidden :: getFilters() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementHiddenGetFilters(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Hidden/GetLabelCest.php b/tests/integration/Forms/Element/Hidden/GetLabelCest.php index b6f8a92d74e..468c2a59ce5 100644 --- a/tests/integration/Forms/Element/Hidden/GetLabelCest.php +++ b/tests/integration/Forms/Element/Hidden/GetLabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetLabelCest /** * Tests Phalcon\Forms\Element\Hidden :: getLabel() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementHiddenGetLabel(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Hidden/GetMessagesCest.php b/tests/integration/Forms/Element/Hidden/GetMessagesCest.php index ba6b7547da5..463847789b2 100644 --- a/tests/integration/Forms/Element/Hidden/GetMessagesCest.php +++ b/tests/integration/Forms/Element/Hidden/GetMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetMessagesCest /** * Tests Phalcon\Forms\Element\Hidden :: getMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementHiddenGetMessages(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Hidden/GetSetFormCest.php b/tests/integration/Forms/Element/Hidden/GetSetFormCest.php index 933efc2b4ee..fc6d18f1d63 100644 --- a/tests/integration/Forms/Element/Hidden/GetSetFormCest.php +++ b/tests/integration/Forms/Element/Hidden/GetSetFormCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Hidden/GetSetNameCest.php b/tests/integration/Forms/Element/Hidden/GetSetNameCest.php index 70a81459f54..1bdb5f785d2 100644 --- a/tests/integration/Forms/Element/Hidden/GetSetNameCest.php +++ b/tests/integration/Forms/Element/Hidden/GetSetNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Hidden/GetUserOptionCest.php b/tests/integration/Forms/Element/Hidden/GetUserOptionCest.php index 4b9a28e99fd..bb56beceaaa 100644 --- a/tests/integration/Forms/Element/Hidden/GetUserOptionCest.php +++ b/tests/integration/Forms/Element/Hidden/GetUserOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetUserOptionCest /** * Tests Phalcon\Forms\Element\Hidden :: getUserOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementHiddenGetUserOption(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Hidden/GetUserOptionsCest.php b/tests/integration/Forms/Element/Hidden/GetUserOptionsCest.php index 6cdad3fe164..e5bde1cacf5 100644 --- a/tests/integration/Forms/Element/Hidden/GetUserOptionsCest.php +++ b/tests/integration/Forms/Element/Hidden/GetUserOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetUserOptionsCest /** * Tests Phalcon\Forms\Element\Hidden :: getUserOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementHiddenGetUserOptions(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Hidden/GetValidatorsCest.php b/tests/integration/Forms/Element/Hidden/GetValidatorsCest.php index eaa7b6cd859..3fc731ff1fb 100644 --- a/tests/integration/Forms/Element/Hidden/GetValidatorsCest.php +++ b/tests/integration/Forms/Element/Hidden/GetValidatorsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetValidatorsCest /** * Tests Phalcon\Forms\Element\Hidden :: getValidators() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementHiddenGetValidators(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Hidden/GetValueCest.php b/tests/integration/Forms/Element/Hidden/GetValueCest.php index eb77d9510d4..b02a19d7a8f 100644 --- a/tests/integration/Forms/Element/Hidden/GetValueCest.php +++ b/tests/integration/Forms/Element/Hidden/GetValueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetValueCest /** * Tests Phalcon\Forms\Element\Hidden :: getValue() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementHiddenGetValue(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Hidden/HasMessagesCest.php b/tests/integration/Forms/Element/Hidden/HasMessagesCest.php index 27ffb0a3c88..6b0d194c97e 100644 --- a/tests/integration/Forms/Element/Hidden/HasMessagesCest.php +++ b/tests/integration/Forms/Element/Hidden/HasMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class HasMessagesCest /** * Tests Phalcon\Forms\Element\Hidden :: hasMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementHiddenHasMessages(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Hidden/LabelCest.php b/tests/integration/Forms/Element/Hidden/LabelCest.php index 9bab2d783ba..8ec9ed64159 100644 --- a/tests/integration/Forms/Element/Hidden/LabelCest.php +++ b/tests/integration/Forms/Element/Hidden/LabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class LabelCest /** * Tests Phalcon\Forms\Element\Hidden :: label() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementHiddenLabel(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Hidden/PrepareAttributesCest.php b/tests/integration/Forms/Element/Hidden/PrepareAttributesCest.php index 6c8c49c8737..5a2835c3c4d 100644 --- a/tests/integration/Forms/Element/Hidden/PrepareAttributesCest.php +++ b/tests/integration/Forms/Element/Hidden/PrepareAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class PrepareAttributesCest /** * Tests Phalcon\Forms\Element\Hidden :: prepareAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementHiddenPrepareAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Hidden/RenderCest.php b/tests/integration/Forms/Element/Hidden/RenderCest.php index f35a66f3224..3f44087cdb8 100644 --- a/tests/integration/Forms/Element/Hidden/RenderCest.php +++ b/tests/integration/Forms/Element/Hidden/RenderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Hidden/SetAttributeCest.php b/tests/integration/Forms/Element/Hidden/SetAttributeCest.php index 1b646471c92..5c8c2261632 100644 --- a/tests/integration/Forms/Element/Hidden/SetAttributeCest.php +++ b/tests/integration/Forms/Element/Hidden/SetAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetAttributeCest /** * Tests Phalcon\Forms\Element\Hidden :: setAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementHiddenSetAttribute(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Hidden/SetAttributesCest.php b/tests/integration/Forms/Element/Hidden/SetAttributesCest.php index c42fe5d1a27..2d35c48c8ee 100644 --- a/tests/integration/Forms/Element/Hidden/SetAttributesCest.php +++ b/tests/integration/Forms/Element/Hidden/SetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetAttributesCest /** * Tests Phalcon\Forms\Element\Hidden :: setAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementHiddenSetAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Hidden/SetDefaultCest.php b/tests/integration/Forms/Element/Hidden/SetDefaultCest.php index e5b611ac93d..4e2f515d0b3 100644 --- a/tests/integration/Forms/Element/Hidden/SetDefaultCest.php +++ b/tests/integration/Forms/Element/Hidden/SetDefaultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetDefaultCest /** * Tests Phalcon\Forms\Element\Hidden :: setDefault() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementHiddenSetDefault(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Hidden/SetFiltersCest.php b/tests/integration/Forms/Element/Hidden/SetFiltersCest.php index 0c798f980af..c7a53b85a2d 100644 --- a/tests/integration/Forms/Element/Hidden/SetFiltersCest.php +++ b/tests/integration/Forms/Element/Hidden/SetFiltersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetFiltersCest /** * Tests Phalcon\Forms\Element\Hidden :: setFilters() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementHiddenSetFilters(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Hidden/SetLabelCest.php b/tests/integration/Forms/Element/Hidden/SetLabelCest.php index 99f75ef7c57..2554e45afa3 100644 --- a/tests/integration/Forms/Element/Hidden/SetLabelCest.php +++ b/tests/integration/Forms/Element/Hidden/SetLabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetLabelCest /** * Tests Phalcon\Forms\Element\Hidden :: setLabel() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementHiddenSetLabel(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Hidden/SetMessagesCest.php b/tests/integration/Forms/Element/Hidden/SetMessagesCest.php index 7e170f9c243..4c6775badcd 100644 --- a/tests/integration/Forms/Element/Hidden/SetMessagesCest.php +++ b/tests/integration/Forms/Element/Hidden/SetMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetMessagesCest /** * Tests Phalcon\Forms\Element\Hidden :: setMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementHiddenSetMessages(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Hidden/SetUserOptionCest.php b/tests/integration/Forms/Element/Hidden/SetUserOptionCest.php index 81aaca42ed6..17ef6f69f04 100644 --- a/tests/integration/Forms/Element/Hidden/SetUserOptionCest.php +++ b/tests/integration/Forms/Element/Hidden/SetUserOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetUserOptionCest /** * Tests Phalcon\Forms\Element\Hidden :: setUserOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementHiddenSetUserOption(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Hidden/SetUserOptionsCest.php b/tests/integration/Forms/Element/Hidden/SetUserOptionsCest.php index cf4861db63e..9de0770340b 100644 --- a/tests/integration/Forms/Element/Hidden/SetUserOptionsCest.php +++ b/tests/integration/Forms/Element/Hidden/SetUserOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetUserOptionsCest /** * Tests Phalcon\Forms\Element\Hidden :: setUserOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementHiddenSetUserOptions(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Hidden/ToStringCest.php b/tests/integration/Forms/Element/Hidden/ToStringCest.php index e98b16935ac..cf5d6bcc7b9 100644 --- a/tests/integration/Forms/Element/Hidden/ToStringCest.php +++ b/tests/integration/Forms/Element/Hidden/ToStringCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Numeric/AddFilterCest.php b/tests/integration/Forms/Element/Numeric/AddFilterCest.php index 590a21b7e2b..54fd9823f27 100644 --- a/tests/integration/Forms/Element/Numeric/AddFilterCest.php +++ b/tests/integration/Forms/Element/Numeric/AddFilterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddFilterCest /** * Tests Phalcon\Forms\Element\Numeric :: addFilter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementNumericAddFilter(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Numeric/AddValidatorCest.php b/tests/integration/Forms/Element/Numeric/AddValidatorCest.php index b799ffa7161..5bba12dd15f 100644 --- a/tests/integration/Forms/Element/Numeric/AddValidatorCest.php +++ b/tests/integration/Forms/Element/Numeric/AddValidatorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddValidatorCest /** * Tests Phalcon\Forms\Element\Numeric :: addValidator() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementNumericAddValidator(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Numeric/AddValidatorsCest.php b/tests/integration/Forms/Element/Numeric/AddValidatorsCest.php index 3fda4a7bce5..b60f4e6545a 100644 --- a/tests/integration/Forms/Element/Numeric/AddValidatorsCest.php +++ b/tests/integration/Forms/Element/Numeric/AddValidatorsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddValidatorsCest /** * Tests Phalcon\Forms\Element\Numeric :: addValidators() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementNumericAddValidators(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Numeric/AppendMessageCest.php b/tests/integration/Forms/Element/Numeric/AppendMessageCest.php index 40d1b9f71c8..b16041754ed 100644 --- a/tests/integration/Forms/Element/Numeric/AppendMessageCest.php +++ b/tests/integration/Forms/Element/Numeric/AppendMessageCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AppendMessageCest /** * Tests Phalcon\Forms\Element\Numeric :: appendMessage() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementNumericAppendMessage(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Numeric/ClearCest.php b/tests/integration/Forms/Element/Numeric/ClearCest.php index 46f4d818a0f..fc3e73219ad 100644 --- a/tests/integration/Forms/Element/Numeric/ClearCest.php +++ b/tests/integration/Forms/Element/Numeric/ClearCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ClearCest /** * Tests Phalcon\Forms\Element\Numeric :: clear() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementNumericClear(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Numeric/ConstructCest.php b/tests/integration/Forms/Element/Numeric/ConstructCest.php index bacad920d72..2d9e00301c1 100644 --- a/tests/integration/Forms/Element/Numeric/ConstructCest.php +++ b/tests/integration/Forms/Element/Numeric/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Forms\Element\Numeric :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementNumericConstruct(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Numeric/GetAttributeCest.php b/tests/integration/Forms/Element/Numeric/GetAttributeCest.php index cb8a0121ec0..27378f6c011 100644 --- a/tests/integration/Forms/Element/Numeric/GetAttributeCest.php +++ b/tests/integration/Forms/Element/Numeric/GetAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAttributeCest /** * Tests Phalcon\Forms\Element\Numeric :: getAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementNumericGetAttribute(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Numeric/GetAttributesCest.php b/tests/integration/Forms/Element/Numeric/GetAttributesCest.php index 605e56eb42d..779d9e02ad0 100644 --- a/tests/integration/Forms/Element/Numeric/GetAttributesCest.php +++ b/tests/integration/Forms/Element/Numeric/GetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAttributesCest /** * Tests Phalcon\Forms\Element\Numeric :: getAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementNumericGetAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Numeric/GetDefaultCest.php b/tests/integration/Forms/Element/Numeric/GetDefaultCest.php index 0d71f81c7e5..3aa4681145e 100644 --- a/tests/integration/Forms/Element/Numeric/GetDefaultCest.php +++ b/tests/integration/Forms/Element/Numeric/GetDefaultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDefaultCest /** * Tests Phalcon\Forms\Element\Numeric :: getDefault() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementNumericGetDefault(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Numeric/GetFiltersCest.php b/tests/integration/Forms/Element/Numeric/GetFiltersCest.php index a798be0d9ac..55121a5ec75 100644 --- a/tests/integration/Forms/Element/Numeric/GetFiltersCest.php +++ b/tests/integration/Forms/Element/Numeric/GetFiltersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetFiltersCest /** * Tests Phalcon\Forms\Element\Numeric :: getFilters() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementNumericGetFilters(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Numeric/GetLabelCest.php b/tests/integration/Forms/Element/Numeric/GetLabelCest.php index 481277bd497..876954f3fae 100644 --- a/tests/integration/Forms/Element/Numeric/GetLabelCest.php +++ b/tests/integration/Forms/Element/Numeric/GetLabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetLabelCest /** * Tests Phalcon\Forms\Element\Numeric :: getLabel() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementNumericGetLabel(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Numeric/GetMessagesCest.php b/tests/integration/Forms/Element/Numeric/GetMessagesCest.php index 1ea7f2705fe..99d24274689 100644 --- a/tests/integration/Forms/Element/Numeric/GetMessagesCest.php +++ b/tests/integration/Forms/Element/Numeric/GetMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetMessagesCest /** * Tests Phalcon\Forms\Element\Numeric :: getMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementNumericGetMessages(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Numeric/GetSetFormCest.php b/tests/integration/Forms/Element/Numeric/GetSetFormCest.php index bfee7db82e5..5d209daf61c 100644 --- a/tests/integration/Forms/Element/Numeric/GetSetFormCest.php +++ b/tests/integration/Forms/Element/Numeric/GetSetFormCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Numeric/GetSetNameCest.php b/tests/integration/Forms/Element/Numeric/GetSetNameCest.php index 63d370ff06b..578d14a4f3a 100644 --- a/tests/integration/Forms/Element/Numeric/GetSetNameCest.php +++ b/tests/integration/Forms/Element/Numeric/GetSetNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Numeric/GetUserOptionCest.php b/tests/integration/Forms/Element/Numeric/GetUserOptionCest.php index 18fbf0fcb33..c3567fb30a4 100644 --- a/tests/integration/Forms/Element/Numeric/GetUserOptionCest.php +++ b/tests/integration/Forms/Element/Numeric/GetUserOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetUserOptionCest /** * Tests Phalcon\Forms\Element\Numeric :: getUserOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementNumericGetUserOption(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Numeric/GetUserOptionsCest.php b/tests/integration/Forms/Element/Numeric/GetUserOptionsCest.php index c919ed396aa..acf69f8653e 100644 --- a/tests/integration/Forms/Element/Numeric/GetUserOptionsCest.php +++ b/tests/integration/Forms/Element/Numeric/GetUserOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetUserOptionsCest /** * Tests Phalcon\Forms\Element\Numeric :: getUserOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementNumericGetUserOptions(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Numeric/GetValidatorsCest.php b/tests/integration/Forms/Element/Numeric/GetValidatorsCest.php index 56ca2bb919e..962969471cd 100644 --- a/tests/integration/Forms/Element/Numeric/GetValidatorsCest.php +++ b/tests/integration/Forms/Element/Numeric/GetValidatorsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetValidatorsCest /** * Tests Phalcon\Forms\Element\Numeric :: getValidators() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementNumericGetValidators(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Numeric/GetValueCest.php b/tests/integration/Forms/Element/Numeric/GetValueCest.php index 6599da92f47..9c8fa589275 100644 --- a/tests/integration/Forms/Element/Numeric/GetValueCest.php +++ b/tests/integration/Forms/Element/Numeric/GetValueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetValueCest /** * Tests Phalcon\Forms\Element\Numeric :: getValue() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementNumericGetValue(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Numeric/HasMessagesCest.php b/tests/integration/Forms/Element/Numeric/HasMessagesCest.php index 502fd7a41b0..c982206fa72 100644 --- a/tests/integration/Forms/Element/Numeric/HasMessagesCest.php +++ b/tests/integration/Forms/Element/Numeric/HasMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class HasMessagesCest /** * Tests Phalcon\Forms\Element\Numeric :: hasMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementNumericHasMessages(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Numeric/LabelCest.php b/tests/integration/Forms/Element/Numeric/LabelCest.php index 9e9ff9db7f6..09a25ab3686 100644 --- a/tests/integration/Forms/Element/Numeric/LabelCest.php +++ b/tests/integration/Forms/Element/Numeric/LabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class LabelCest /** * Tests Phalcon\Forms\Element\Numeric :: label() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementNumericLabel(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Numeric/PrepareAttributesCest.php b/tests/integration/Forms/Element/Numeric/PrepareAttributesCest.php index 6ecee64981c..075e0d183f2 100644 --- a/tests/integration/Forms/Element/Numeric/PrepareAttributesCest.php +++ b/tests/integration/Forms/Element/Numeric/PrepareAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class PrepareAttributesCest /** * Tests Phalcon\Forms\Element\Numeric :: prepareAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementNumericPrepareAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Numeric/RenderCest.php b/tests/integration/Forms/Element/Numeric/RenderCest.php index c28ec49c7aa..db17582da5e 100644 --- a/tests/integration/Forms/Element/Numeric/RenderCest.php +++ b/tests/integration/Forms/Element/Numeric/RenderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Numeric/SetAttributeCest.php b/tests/integration/Forms/Element/Numeric/SetAttributeCest.php index 96252e7cdf5..bdc52d3674a 100644 --- a/tests/integration/Forms/Element/Numeric/SetAttributeCest.php +++ b/tests/integration/Forms/Element/Numeric/SetAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetAttributeCest /** * Tests Phalcon\Forms\Element\Numeric :: setAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementNumericSetAttribute(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Numeric/SetAttributesCest.php b/tests/integration/Forms/Element/Numeric/SetAttributesCest.php index 725cb00eec8..4cf0c227da1 100644 --- a/tests/integration/Forms/Element/Numeric/SetAttributesCest.php +++ b/tests/integration/Forms/Element/Numeric/SetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetAttributesCest /** * Tests Phalcon\Forms\Element\Numeric :: setAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementNumericSetAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Numeric/SetDefaultCest.php b/tests/integration/Forms/Element/Numeric/SetDefaultCest.php index b0e19a1fca1..7c641ae4144 100644 --- a/tests/integration/Forms/Element/Numeric/SetDefaultCest.php +++ b/tests/integration/Forms/Element/Numeric/SetDefaultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetDefaultCest /** * Tests Phalcon\Forms\Element\Numeric :: setDefault() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementNumericSetDefault(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Numeric/SetFiltersCest.php b/tests/integration/Forms/Element/Numeric/SetFiltersCest.php index 475cc1c8c53..c6f1c179b4e 100644 --- a/tests/integration/Forms/Element/Numeric/SetFiltersCest.php +++ b/tests/integration/Forms/Element/Numeric/SetFiltersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetFiltersCest /** * Tests Phalcon\Forms\Element\Numeric :: setFilters() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementNumericSetFilters(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Numeric/SetLabelCest.php b/tests/integration/Forms/Element/Numeric/SetLabelCest.php index d598dd50ded..2d6c02c27fd 100644 --- a/tests/integration/Forms/Element/Numeric/SetLabelCest.php +++ b/tests/integration/Forms/Element/Numeric/SetLabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetLabelCest /** * Tests Phalcon\Forms\Element\Numeric :: setLabel() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementNumericSetLabel(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Numeric/SetMessagesCest.php b/tests/integration/Forms/Element/Numeric/SetMessagesCest.php index fc9c8cdc1d6..a2ad96bb9b1 100644 --- a/tests/integration/Forms/Element/Numeric/SetMessagesCest.php +++ b/tests/integration/Forms/Element/Numeric/SetMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetMessagesCest /** * Tests Phalcon\Forms\Element\Numeric :: setMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementNumericSetMessages(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Numeric/SetUserOptionCest.php b/tests/integration/Forms/Element/Numeric/SetUserOptionCest.php index 0684227bdfa..d56a5cc6366 100644 --- a/tests/integration/Forms/Element/Numeric/SetUserOptionCest.php +++ b/tests/integration/Forms/Element/Numeric/SetUserOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetUserOptionCest /** * Tests Phalcon\Forms\Element\Numeric :: setUserOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementNumericSetUserOption(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Numeric/SetUserOptionsCest.php b/tests/integration/Forms/Element/Numeric/SetUserOptionsCest.php index d8e550b14fb..0c9e5be87a2 100644 --- a/tests/integration/Forms/Element/Numeric/SetUserOptionsCest.php +++ b/tests/integration/Forms/Element/Numeric/SetUserOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetUserOptionsCest /** * Tests Phalcon\Forms\Element\Numeric :: setUserOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementNumericSetUserOptions(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Numeric/ToStringCest.php b/tests/integration/Forms/Element/Numeric/ToStringCest.php index 5e8ce9ccade..acf33a5c5dc 100644 --- a/tests/integration/Forms/Element/Numeric/ToStringCest.php +++ b/tests/integration/Forms/Element/Numeric/ToStringCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Password/AddFilterCest.php b/tests/integration/Forms/Element/Password/AddFilterCest.php index 30d80b6c4ff..081006649f7 100644 --- a/tests/integration/Forms/Element/Password/AddFilterCest.php +++ b/tests/integration/Forms/Element/Password/AddFilterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddFilterCest /** * Tests Phalcon\Forms\Element\Password :: addFilter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementPasswordAddFilter(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Password/AddValidatorCest.php b/tests/integration/Forms/Element/Password/AddValidatorCest.php index a62e1449d7b..c1dbbbe91c3 100644 --- a/tests/integration/Forms/Element/Password/AddValidatorCest.php +++ b/tests/integration/Forms/Element/Password/AddValidatorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddValidatorCest /** * Tests Phalcon\Forms\Element\Password :: addValidator() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementPasswordAddValidator(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Password/AddValidatorsCest.php b/tests/integration/Forms/Element/Password/AddValidatorsCest.php index 16311cdec65..8f63032d6f8 100644 --- a/tests/integration/Forms/Element/Password/AddValidatorsCest.php +++ b/tests/integration/Forms/Element/Password/AddValidatorsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddValidatorsCest /** * Tests Phalcon\Forms\Element\Password :: addValidators() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementPasswordAddValidators(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Password/AppendMessageCest.php b/tests/integration/Forms/Element/Password/AppendMessageCest.php index d05a44e117e..7550fdc7a94 100644 --- a/tests/integration/Forms/Element/Password/AppendMessageCest.php +++ b/tests/integration/Forms/Element/Password/AppendMessageCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AppendMessageCest /** * Tests Phalcon\Forms\Element\Password :: appendMessage() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementPasswordAppendMessage(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Password/ClearCest.php b/tests/integration/Forms/Element/Password/ClearCest.php index c3d4f8243e1..32553bee7d7 100644 --- a/tests/integration/Forms/Element/Password/ClearCest.php +++ b/tests/integration/Forms/Element/Password/ClearCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ClearCest /** * Tests Phalcon\Forms\Element\Password :: clear() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementPasswordClear(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Password/ConstructCest.php b/tests/integration/Forms/Element/Password/ConstructCest.php index 69a7c1e243a..49b005dc100 100644 --- a/tests/integration/Forms/Element/Password/ConstructCest.php +++ b/tests/integration/Forms/Element/Password/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Forms\Element\Password :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementPasswordConstruct(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Password/GetAttributeCest.php b/tests/integration/Forms/Element/Password/GetAttributeCest.php index bed7f66a9bf..b8f33696535 100644 --- a/tests/integration/Forms/Element/Password/GetAttributeCest.php +++ b/tests/integration/Forms/Element/Password/GetAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAttributeCest /** * Tests Phalcon\Forms\Element\Password :: getAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementPasswordGetAttribute(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Password/GetAttributesCest.php b/tests/integration/Forms/Element/Password/GetAttributesCest.php index fe40ba4a545..ba14a824785 100644 --- a/tests/integration/Forms/Element/Password/GetAttributesCest.php +++ b/tests/integration/Forms/Element/Password/GetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAttributesCest /** * Tests Phalcon\Forms\Element\Password :: getAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementPasswordGetAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Password/GetDefaultCest.php b/tests/integration/Forms/Element/Password/GetDefaultCest.php index d0b713e7acb..f60ff81693d 100644 --- a/tests/integration/Forms/Element/Password/GetDefaultCest.php +++ b/tests/integration/Forms/Element/Password/GetDefaultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDefaultCest /** * Tests Phalcon\Forms\Element\Password :: getDefault() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementPasswordGetDefault(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Password/GetFiltersCest.php b/tests/integration/Forms/Element/Password/GetFiltersCest.php index 900505c472b..e8537b82cef 100644 --- a/tests/integration/Forms/Element/Password/GetFiltersCest.php +++ b/tests/integration/Forms/Element/Password/GetFiltersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetFiltersCest /** * Tests Phalcon\Forms\Element\Password :: getFilters() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementPasswordGetFilters(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Password/GetLabelCest.php b/tests/integration/Forms/Element/Password/GetLabelCest.php index 5e3670aff2e..470346bb7bd 100644 --- a/tests/integration/Forms/Element/Password/GetLabelCest.php +++ b/tests/integration/Forms/Element/Password/GetLabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetLabelCest /** * Tests Phalcon\Forms\Element\Password :: getLabel() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementPasswordGetLabel(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Password/GetMessagesCest.php b/tests/integration/Forms/Element/Password/GetMessagesCest.php index 82a17aa366f..2aa4ecd7aa6 100644 --- a/tests/integration/Forms/Element/Password/GetMessagesCest.php +++ b/tests/integration/Forms/Element/Password/GetMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetMessagesCest /** * Tests Phalcon\Forms\Element\Password :: getMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementPasswordGetMessages(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Password/GetSetFormCest.php b/tests/integration/Forms/Element/Password/GetSetFormCest.php index 7d639e83199..8c7aae9b90c 100644 --- a/tests/integration/Forms/Element/Password/GetSetFormCest.php +++ b/tests/integration/Forms/Element/Password/GetSetFormCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Password/GetSetNameCest.php b/tests/integration/Forms/Element/Password/GetSetNameCest.php index 2036b1806cd..5615478272c 100644 --- a/tests/integration/Forms/Element/Password/GetSetNameCest.php +++ b/tests/integration/Forms/Element/Password/GetSetNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Password/GetUserOptionCest.php b/tests/integration/Forms/Element/Password/GetUserOptionCest.php index 2cf0893dc81..79f4190e278 100644 --- a/tests/integration/Forms/Element/Password/GetUserOptionCest.php +++ b/tests/integration/Forms/Element/Password/GetUserOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetUserOptionCest /** * Tests Phalcon\Forms\Element\Password :: getUserOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementPasswordGetUserOption(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Password/GetUserOptionsCest.php b/tests/integration/Forms/Element/Password/GetUserOptionsCest.php index 50bd87fe943..f94c4015d7a 100644 --- a/tests/integration/Forms/Element/Password/GetUserOptionsCest.php +++ b/tests/integration/Forms/Element/Password/GetUserOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetUserOptionsCest /** * Tests Phalcon\Forms\Element\Password :: getUserOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementPasswordGetUserOptions(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Password/GetValidatorsCest.php b/tests/integration/Forms/Element/Password/GetValidatorsCest.php index 0b0a1c7c5af..e7a134b93c8 100644 --- a/tests/integration/Forms/Element/Password/GetValidatorsCest.php +++ b/tests/integration/Forms/Element/Password/GetValidatorsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetValidatorsCest /** * Tests Phalcon\Forms\Element\Password :: getValidators() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementPasswordGetValidators(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Password/GetValueCest.php b/tests/integration/Forms/Element/Password/GetValueCest.php index 7b967c286ac..b4f7c813fdc 100644 --- a/tests/integration/Forms/Element/Password/GetValueCest.php +++ b/tests/integration/Forms/Element/Password/GetValueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetValueCest /** * Tests Phalcon\Forms\Element\Password :: getValue() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementPasswordGetValue(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Password/HasMessagesCest.php b/tests/integration/Forms/Element/Password/HasMessagesCest.php index c24bbe7213e..a0b87006402 100644 --- a/tests/integration/Forms/Element/Password/HasMessagesCest.php +++ b/tests/integration/Forms/Element/Password/HasMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class HasMessagesCest /** * Tests Phalcon\Forms\Element\Password :: hasMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementPasswordHasMessages(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Password/LabelCest.php b/tests/integration/Forms/Element/Password/LabelCest.php index 13c6cc0787b..b845931a9c8 100644 --- a/tests/integration/Forms/Element/Password/LabelCest.php +++ b/tests/integration/Forms/Element/Password/LabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class LabelCest /** * Tests Phalcon\Forms\Element\Password :: label() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementPasswordLabel(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Password/PrepareAttributesCest.php b/tests/integration/Forms/Element/Password/PrepareAttributesCest.php index e9cf0ed37fd..c242ef0eeb0 100644 --- a/tests/integration/Forms/Element/Password/PrepareAttributesCest.php +++ b/tests/integration/Forms/Element/Password/PrepareAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class PrepareAttributesCest /** * Tests Phalcon\Forms\Element\Password :: prepareAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementPasswordPrepareAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Password/RenderCest.php b/tests/integration/Forms/Element/Password/RenderCest.php index 22893ccb49b..2afdc1f6904 100644 --- a/tests/integration/Forms/Element/Password/RenderCest.php +++ b/tests/integration/Forms/Element/Password/RenderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Password/SetAttributeCest.php b/tests/integration/Forms/Element/Password/SetAttributeCest.php index 9ad39736a20..1012c8b3673 100644 --- a/tests/integration/Forms/Element/Password/SetAttributeCest.php +++ b/tests/integration/Forms/Element/Password/SetAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetAttributeCest /** * Tests Phalcon\Forms\Element\Password :: setAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementPasswordSetAttribute(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Password/SetAttributesCest.php b/tests/integration/Forms/Element/Password/SetAttributesCest.php index 32ad47eabaa..24e51d3bad5 100644 --- a/tests/integration/Forms/Element/Password/SetAttributesCest.php +++ b/tests/integration/Forms/Element/Password/SetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetAttributesCest /** * Tests Phalcon\Forms\Element\Password :: setAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementPasswordSetAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Password/SetDefaultCest.php b/tests/integration/Forms/Element/Password/SetDefaultCest.php index 509434d1714..8166b5ce6f9 100644 --- a/tests/integration/Forms/Element/Password/SetDefaultCest.php +++ b/tests/integration/Forms/Element/Password/SetDefaultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetDefaultCest /** * Tests Phalcon\Forms\Element\Password :: setDefault() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementPasswordSetDefault(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Password/SetFiltersCest.php b/tests/integration/Forms/Element/Password/SetFiltersCest.php index 4c63c362415..3ed2fce9cdb 100644 --- a/tests/integration/Forms/Element/Password/SetFiltersCest.php +++ b/tests/integration/Forms/Element/Password/SetFiltersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetFiltersCest /** * Tests Phalcon\Forms\Element\Password :: setFilters() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementPasswordSetFilters(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Password/SetLabelCest.php b/tests/integration/Forms/Element/Password/SetLabelCest.php index 61066ea1c73..ae6d4a1c9aa 100644 --- a/tests/integration/Forms/Element/Password/SetLabelCest.php +++ b/tests/integration/Forms/Element/Password/SetLabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetLabelCest /** * Tests Phalcon\Forms\Element\Password :: setLabel() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementPasswordSetLabel(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Password/SetMessagesCest.php b/tests/integration/Forms/Element/Password/SetMessagesCest.php index f021f4e57f1..98d3d9cccef 100644 --- a/tests/integration/Forms/Element/Password/SetMessagesCest.php +++ b/tests/integration/Forms/Element/Password/SetMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetMessagesCest /** * Tests Phalcon\Forms\Element\Password :: setMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementPasswordSetMessages(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Password/SetUserOptionCest.php b/tests/integration/Forms/Element/Password/SetUserOptionCest.php index 2e39f24abc1..d0e3aa4d6dc 100644 --- a/tests/integration/Forms/Element/Password/SetUserOptionCest.php +++ b/tests/integration/Forms/Element/Password/SetUserOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetUserOptionCest /** * Tests Phalcon\Forms\Element\Password :: setUserOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementPasswordSetUserOption(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Password/SetUserOptionsCest.php b/tests/integration/Forms/Element/Password/SetUserOptionsCest.php index 4ce0e26edff..de70dd930e8 100644 --- a/tests/integration/Forms/Element/Password/SetUserOptionsCest.php +++ b/tests/integration/Forms/Element/Password/SetUserOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetUserOptionsCest /** * Tests Phalcon\Forms\Element\Password :: setUserOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementPasswordSetUserOptions(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Password/ToStringCest.php b/tests/integration/Forms/Element/Password/ToStringCest.php index 3fbf845bdf8..a9fd8bf02eb 100644 --- a/tests/integration/Forms/Element/Password/ToStringCest.php +++ b/tests/integration/Forms/Element/Password/ToStringCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Radio/AddFilterCest.php b/tests/integration/Forms/Element/Radio/AddFilterCest.php index aaf63a77190..b418ec5c5b1 100644 --- a/tests/integration/Forms/Element/Radio/AddFilterCest.php +++ b/tests/integration/Forms/Element/Radio/AddFilterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddFilterCest /** * Tests Phalcon\Forms\Element\Radio :: addFilter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementRadioAddFilter(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Radio/AddValidatorCest.php b/tests/integration/Forms/Element/Radio/AddValidatorCest.php index 164c14a0b9b..90d6ab72e67 100644 --- a/tests/integration/Forms/Element/Radio/AddValidatorCest.php +++ b/tests/integration/Forms/Element/Radio/AddValidatorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddValidatorCest /** * Tests Phalcon\Forms\Element\Radio :: addValidator() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementRadioAddValidator(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Radio/AddValidatorsCest.php b/tests/integration/Forms/Element/Radio/AddValidatorsCest.php index 923cf9c9b95..184ed4f15fc 100644 --- a/tests/integration/Forms/Element/Radio/AddValidatorsCest.php +++ b/tests/integration/Forms/Element/Radio/AddValidatorsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddValidatorsCest /** * Tests Phalcon\Forms\Element\Radio :: addValidators() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementRadioAddValidators(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Radio/AppendMessageCest.php b/tests/integration/Forms/Element/Radio/AppendMessageCest.php index 45dee2c63a1..a151ee97cd0 100644 --- a/tests/integration/Forms/Element/Radio/AppendMessageCest.php +++ b/tests/integration/Forms/Element/Radio/AppendMessageCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AppendMessageCest /** * Tests Phalcon\Forms\Element\Radio :: appendMessage() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementRadioAppendMessage(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Radio/ClearCest.php b/tests/integration/Forms/Element/Radio/ClearCest.php index baafe3d3ac9..0b90b7b4582 100644 --- a/tests/integration/Forms/Element/Radio/ClearCest.php +++ b/tests/integration/Forms/Element/Radio/ClearCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ClearCest /** * Tests Phalcon\Forms\Element\Radio :: clear() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementRadioClear(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Radio/ConstructCest.php b/tests/integration/Forms/Element/Radio/ConstructCest.php index c778047a3a9..1992badce6d 100644 --- a/tests/integration/Forms/Element/Radio/ConstructCest.php +++ b/tests/integration/Forms/Element/Radio/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Forms\Element\Radio :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementRadioConstruct(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Radio/GetAttributeCest.php b/tests/integration/Forms/Element/Radio/GetAttributeCest.php index e5fcca10f1d..8869a43a411 100644 --- a/tests/integration/Forms/Element/Radio/GetAttributeCest.php +++ b/tests/integration/Forms/Element/Radio/GetAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAttributeCest /** * Tests Phalcon\Forms\Element\Radio :: getAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementRadioGetAttribute(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Radio/GetAttributesCest.php b/tests/integration/Forms/Element/Radio/GetAttributesCest.php index 330fc1a3c5f..cce589dab2a 100644 --- a/tests/integration/Forms/Element/Radio/GetAttributesCest.php +++ b/tests/integration/Forms/Element/Radio/GetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAttributesCest /** * Tests Phalcon\Forms\Element\Radio :: getAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementRadioGetAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Radio/GetDefaultCest.php b/tests/integration/Forms/Element/Radio/GetDefaultCest.php index 6acd8555506..79662b99e35 100644 --- a/tests/integration/Forms/Element/Radio/GetDefaultCest.php +++ b/tests/integration/Forms/Element/Radio/GetDefaultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDefaultCest /** * Tests Phalcon\Forms\Element\Radio :: getDefault() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementRadioGetDefault(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Radio/GetFiltersCest.php b/tests/integration/Forms/Element/Radio/GetFiltersCest.php index 0784dc66f57..1eebcba242d 100644 --- a/tests/integration/Forms/Element/Radio/GetFiltersCest.php +++ b/tests/integration/Forms/Element/Radio/GetFiltersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetFiltersCest /** * Tests Phalcon\Forms\Element\Radio :: getFilters() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementRadioGetFilters(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Radio/GetLabelCest.php b/tests/integration/Forms/Element/Radio/GetLabelCest.php index 9965e60394c..b7c1928c12c 100644 --- a/tests/integration/Forms/Element/Radio/GetLabelCest.php +++ b/tests/integration/Forms/Element/Radio/GetLabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetLabelCest /** * Tests Phalcon\Forms\Element\Radio :: getLabel() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementRadioGetLabel(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Radio/GetMessagesCest.php b/tests/integration/Forms/Element/Radio/GetMessagesCest.php index 91899751749..e3d065ec08a 100644 --- a/tests/integration/Forms/Element/Radio/GetMessagesCest.php +++ b/tests/integration/Forms/Element/Radio/GetMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetMessagesCest /** * Tests Phalcon\Forms\Element\Radio :: getMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementRadioGetMessages(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Radio/GetSetFormCest.php b/tests/integration/Forms/Element/Radio/GetSetFormCest.php index 0173590f88a..27061b1b853 100644 --- a/tests/integration/Forms/Element/Radio/GetSetFormCest.php +++ b/tests/integration/Forms/Element/Radio/GetSetFormCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Radio/GetSetNameCest.php b/tests/integration/Forms/Element/Radio/GetSetNameCest.php index 30853337cc5..0d03e627ded 100644 --- a/tests/integration/Forms/Element/Radio/GetSetNameCest.php +++ b/tests/integration/Forms/Element/Radio/GetSetNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Radio/GetUserOptionCest.php b/tests/integration/Forms/Element/Radio/GetUserOptionCest.php index e9c324dee76..e5e85136727 100644 --- a/tests/integration/Forms/Element/Radio/GetUserOptionCest.php +++ b/tests/integration/Forms/Element/Radio/GetUserOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetUserOptionCest /** * Tests Phalcon\Forms\Element\Radio :: getUserOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementRadioGetUserOption(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Radio/GetUserOptionsCest.php b/tests/integration/Forms/Element/Radio/GetUserOptionsCest.php index 8c200831f25..a3ea40f2029 100644 --- a/tests/integration/Forms/Element/Radio/GetUserOptionsCest.php +++ b/tests/integration/Forms/Element/Radio/GetUserOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetUserOptionsCest /** * Tests Phalcon\Forms\Element\Radio :: getUserOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementRadioGetUserOptions(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Radio/GetValidatorsCest.php b/tests/integration/Forms/Element/Radio/GetValidatorsCest.php index e6b3f0c1526..80f00ce4fae 100644 --- a/tests/integration/Forms/Element/Radio/GetValidatorsCest.php +++ b/tests/integration/Forms/Element/Radio/GetValidatorsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetValidatorsCest /** * Tests Phalcon\Forms\Element\Radio :: getValidators() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementRadioGetValidators(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Radio/GetValueCest.php b/tests/integration/Forms/Element/Radio/GetValueCest.php index 6fe9e2b220c..0e130794fd9 100644 --- a/tests/integration/Forms/Element/Radio/GetValueCest.php +++ b/tests/integration/Forms/Element/Radio/GetValueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetValueCest /** * Tests Phalcon\Forms\Element\Radio :: getValue() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementRadioGetValue(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Radio/HasMessagesCest.php b/tests/integration/Forms/Element/Radio/HasMessagesCest.php index 2160c357f2b..ae30add8be8 100644 --- a/tests/integration/Forms/Element/Radio/HasMessagesCest.php +++ b/tests/integration/Forms/Element/Radio/HasMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class HasMessagesCest /** * Tests Phalcon\Forms\Element\Radio :: hasMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementRadioHasMessages(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Radio/LabelCest.php b/tests/integration/Forms/Element/Radio/LabelCest.php index 1effba2d102..83286f5bb97 100644 --- a/tests/integration/Forms/Element/Radio/LabelCest.php +++ b/tests/integration/Forms/Element/Radio/LabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class LabelCest /** * Tests Phalcon\Forms\Element\Radio :: label() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementRadioLabel(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Radio/PrepareAttributesCest.php b/tests/integration/Forms/Element/Radio/PrepareAttributesCest.php index 52c904de785..6c1ca9bc53f 100644 --- a/tests/integration/Forms/Element/Radio/PrepareAttributesCest.php +++ b/tests/integration/Forms/Element/Radio/PrepareAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class PrepareAttributesCest /** * Tests Phalcon\Forms\Element\Radio :: prepareAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementRadioPrepareAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Radio/RenderCest.php b/tests/integration/Forms/Element/Radio/RenderCest.php index b05dcbc811c..467d92ec9d1 100644 --- a/tests/integration/Forms/Element/Radio/RenderCest.php +++ b/tests/integration/Forms/Element/Radio/RenderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Radio/SetAttributeCest.php b/tests/integration/Forms/Element/Radio/SetAttributeCest.php index f4946982957..91ac6534a0a 100644 --- a/tests/integration/Forms/Element/Radio/SetAttributeCest.php +++ b/tests/integration/Forms/Element/Radio/SetAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetAttributeCest /** * Tests Phalcon\Forms\Element\Radio :: setAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementRadioSetAttribute(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Radio/SetAttributesCest.php b/tests/integration/Forms/Element/Radio/SetAttributesCest.php index 08882b9291e..bff70b7fc41 100644 --- a/tests/integration/Forms/Element/Radio/SetAttributesCest.php +++ b/tests/integration/Forms/Element/Radio/SetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetAttributesCest /** * Tests Phalcon\Forms\Element\Radio :: setAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementRadioSetAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Radio/SetDefaultCest.php b/tests/integration/Forms/Element/Radio/SetDefaultCest.php index 0da9b11fd65..14cca2622b1 100644 --- a/tests/integration/Forms/Element/Radio/SetDefaultCest.php +++ b/tests/integration/Forms/Element/Radio/SetDefaultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetDefaultCest /** * Tests Phalcon\Forms\Element\Radio :: setDefault() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementRadioSetDefault(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Radio/SetFiltersCest.php b/tests/integration/Forms/Element/Radio/SetFiltersCest.php index b8323d7dcc8..3d01676bc8e 100644 --- a/tests/integration/Forms/Element/Radio/SetFiltersCest.php +++ b/tests/integration/Forms/Element/Radio/SetFiltersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetFiltersCest /** * Tests Phalcon\Forms\Element\Radio :: setFilters() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementRadioSetFilters(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Radio/SetLabelCest.php b/tests/integration/Forms/Element/Radio/SetLabelCest.php index 59f764619e0..ff3de0b8eb3 100644 --- a/tests/integration/Forms/Element/Radio/SetLabelCest.php +++ b/tests/integration/Forms/Element/Radio/SetLabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetLabelCest /** * Tests Phalcon\Forms\Element\Radio :: setLabel() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementRadioSetLabel(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Radio/SetMessagesCest.php b/tests/integration/Forms/Element/Radio/SetMessagesCest.php index 5017d7bf94f..105bb470f31 100644 --- a/tests/integration/Forms/Element/Radio/SetMessagesCest.php +++ b/tests/integration/Forms/Element/Radio/SetMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetMessagesCest /** * Tests Phalcon\Forms\Element\Radio :: setMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementRadioSetMessages(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Radio/SetUserOptionCest.php b/tests/integration/Forms/Element/Radio/SetUserOptionCest.php index 224ebb10b02..e0c49d48375 100644 --- a/tests/integration/Forms/Element/Radio/SetUserOptionCest.php +++ b/tests/integration/Forms/Element/Radio/SetUserOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetUserOptionCest /** * Tests Phalcon\Forms\Element\Radio :: setUserOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementRadioSetUserOption(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Radio/SetUserOptionsCest.php b/tests/integration/Forms/Element/Radio/SetUserOptionsCest.php index 5f699e6666b..9096b541ba7 100644 --- a/tests/integration/Forms/Element/Radio/SetUserOptionsCest.php +++ b/tests/integration/Forms/Element/Radio/SetUserOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetUserOptionsCest /** * Tests Phalcon\Forms\Element\Radio :: setUserOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementRadioSetUserOptions(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Radio/ToStringCest.php b/tests/integration/Forms/Element/Radio/ToStringCest.php index 0530b67b660..83ed6e1b4e0 100644 --- a/tests/integration/Forms/Element/Radio/ToStringCest.php +++ b/tests/integration/Forms/Element/Radio/ToStringCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Select/AddFilterCest.php b/tests/integration/Forms/Element/Select/AddFilterCest.php index c1adebd6fe0..b2b4d4ef980 100644 --- a/tests/integration/Forms/Element/Select/AddFilterCest.php +++ b/tests/integration/Forms/Element/Select/AddFilterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddFilterCest /** * Tests Phalcon\Forms\Element\Select :: addFilter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSelectAddFilter(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Select/AddOptionCest.php b/tests/integration/Forms/Element/Select/AddOptionCest.php index 4c89a28ed13..37a3614e11e 100644 --- a/tests/integration/Forms/Element/Select/AddOptionCest.php +++ b/tests/integration/Forms/Element/Select/AddOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Select/AddValidatorCest.php b/tests/integration/Forms/Element/Select/AddValidatorCest.php index 5b4da909c48..d789085a862 100644 --- a/tests/integration/Forms/Element/Select/AddValidatorCest.php +++ b/tests/integration/Forms/Element/Select/AddValidatorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddValidatorCest /** * Tests Phalcon\Forms\Element\Select :: addValidator() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSelectAddValidator(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Select/AddValidatorsCest.php b/tests/integration/Forms/Element/Select/AddValidatorsCest.php index a04f3a1a9dc..e3a95f78f8c 100644 --- a/tests/integration/Forms/Element/Select/AddValidatorsCest.php +++ b/tests/integration/Forms/Element/Select/AddValidatorsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddValidatorsCest /** * Tests Phalcon\Forms\Element\Select :: addValidators() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSelectAddValidators(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Select/AppendMessageCest.php b/tests/integration/Forms/Element/Select/AppendMessageCest.php index 173cd267425..65fe4bf36ce 100644 --- a/tests/integration/Forms/Element/Select/AppendMessageCest.php +++ b/tests/integration/Forms/Element/Select/AppendMessageCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AppendMessageCest /** * Tests Phalcon\Forms\Element\Select :: appendMessage() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSelectAppendMessage(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Select/ClearCest.php b/tests/integration/Forms/Element/Select/ClearCest.php index 3f106e3c34d..44e140e29e4 100644 --- a/tests/integration/Forms/Element/Select/ClearCest.php +++ b/tests/integration/Forms/Element/Select/ClearCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ClearCest /** * Tests Phalcon\Forms\Element\Select :: clear() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSelectClear(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Select/ConstructCest.php b/tests/integration/Forms/Element/Select/ConstructCest.php index 145619be4e6..06d57d13021 100644 --- a/tests/integration/Forms/Element/Select/ConstructCest.php +++ b/tests/integration/Forms/Element/Select/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Forms\Element\Select :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSelectConstruct(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Select/GetAttributeCest.php b/tests/integration/Forms/Element/Select/GetAttributeCest.php index fde8514f123..e34c5bd9724 100644 --- a/tests/integration/Forms/Element/Select/GetAttributeCest.php +++ b/tests/integration/Forms/Element/Select/GetAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAttributeCest /** * Tests Phalcon\Forms\Element\Select :: getAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSelectGetAttribute(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Select/GetAttributesCest.php b/tests/integration/Forms/Element/Select/GetAttributesCest.php index 7f3a55c30b8..40872a5b996 100644 --- a/tests/integration/Forms/Element/Select/GetAttributesCest.php +++ b/tests/integration/Forms/Element/Select/GetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAttributesCest /** * Tests Phalcon\Forms\Element\Select :: getAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSelectGetAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Select/GetDefaultCest.php b/tests/integration/Forms/Element/Select/GetDefaultCest.php index 53c9db2204c..d8fe08eadab 100644 --- a/tests/integration/Forms/Element/Select/GetDefaultCest.php +++ b/tests/integration/Forms/Element/Select/GetDefaultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDefaultCest /** * Tests Phalcon\Forms\Element\Select :: getDefault() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSelectGetDefault(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Select/GetFiltersCest.php b/tests/integration/Forms/Element/Select/GetFiltersCest.php index f633ab1575b..cbc8f497d16 100644 --- a/tests/integration/Forms/Element/Select/GetFiltersCest.php +++ b/tests/integration/Forms/Element/Select/GetFiltersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetFiltersCest /** * Tests Phalcon\Forms\Element\Select :: getFilters() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSelectGetFilters(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Select/GetLabelCest.php b/tests/integration/Forms/Element/Select/GetLabelCest.php index b1d547e3252..3a4f0725092 100644 --- a/tests/integration/Forms/Element/Select/GetLabelCest.php +++ b/tests/integration/Forms/Element/Select/GetLabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetLabelCest /** * Tests Phalcon\Forms\Element\Select :: getLabel() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSelectGetLabel(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Select/GetMessagesCest.php b/tests/integration/Forms/Element/Select/GetMessagesCest.php index 6a166289748..952f59795d1 100644 --- a/tests/integration/Forms/Element/Select/GetMessagesCest.php +++ b/tests/integration/Forms/Element/Select/GetMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetMessagesCest /** * Tests Phalcon\Forms\Element\Select :: getMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSelectGetMessages(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Select/GetOptionsCest.php b/tests/integration/Forms/Element/Select/GetOptionsCest.php index c0928275f26..06276308b9b 100644 --- a/tests/integration/Forms/Element/Select/GetOptionsCest.php +++ b/tests/integration/Forms/Element/Select/GetOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetOptionsCest /** * Tests Phalcon\Forms\Element\Select :: getOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSelectGetOptions(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Select/GetSetFormCest.php b/tests/integration/Forms/Element/Select/GetSetFormCest.php index f9008b31051..48bdb18cd9e 100644 --- a/tests/integration/Forms/Element/Select/GetSetFormCest.php +++ b/tests/integration/Forms/Element/Select/GetSetFormCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Select/GetSetNameCest.php b/tests/integration/Forms/Element/Select/GetSetNameCest.php index c11bbce1e70..150a366571e 100644 --- a/tests/integration/Forms/Element/Select/GetSetNameCest.php +++ b/tests/integration/Forms/Element/Select/GetSetNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Select/GetUserOptionCest.php b/tests/integration/Forms/Element/Select/GetUserOptionCest.php index 92b2eab82ad..a108fa28395 100644 --- a/tests/integration/Forms/Element/Select/GetUserOptionCest.php +++ b/tests/integration/Forms/Element/Select/GetUserOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetUserOptionCest /** * Tests Phalcon\Forms\Element\Select :: getUserOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSelectGetUserOption(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Select/GetUserOptionsCest.php b/tests/integration/Forms/Element/Select/GetUserOptionsCest.php index fb321bd2ac3..c4e511482a6 100644 --- a/tests/integration/Forms/Element/Select/GetUserOptionsCest.php +++ b/tests/integration/Forms/Element/Select/GetUserOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetUserOptionsCest /** * Tests Phalcon\Forms\Element\Select :: getUserOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSelectGetUserOptions(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Select/GetValidatorsCest.php b/tests/integration/Forms/Element/Select/GetValidatorsCest.php index 1ffb0604058..91ec8662c5c 100644 --- a/tests/integration/Forms/Element/Select/GetValidatorsCest.php +++ b/tests/integration/Forms/Element/Select/GetValidatorsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetValidatorsCest /** * Tests Phalcon\Forms\Element\Select :: getValidators() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSelectGetValidators(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Select/GetValueCest.php b/tests/integration/Forms/Element/Select/GetValueCest.php index 6d22f67f7e0..91d1731f707 100644 --- a/tests/integration/Forms/Element/Select/GetValueCest.php +++ b/tests/integration/Forms/Element/Select/GetValueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetValueCest /** * Tests Phalcon\Forms\Element\Select :: getValue() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSelectGetValue(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Select/HasMessagesCest.php b/tests/integration/Forms/Element/Select/HasMessagesCest.php index 1208548e167..3f8945dff12 100644 --- a/tests/integration/Forms/Element/Select/HasMessagesCest.php +++ b/tests/integration/Forms/Element/Select/HasMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class HasMessagesCest /** * Tests Phalcon\Forms\Element\Select :: hasMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSelectHasMessages(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Select/LabelCest.php b/tests/integration/Forms/Element/Select/LabelCest.php index d904770cb8a..2d0c0133496 100644 --- a/tests/integration/Forms/Element/Select/LabelCest.php +++ b/tests/integration/Forms/Element/Select/LabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class LabelCest /** * Tests Phalcon\Forms\Element\Select :: label() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSelectLabel(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Select/PrepareAttributesCest.php b/tests/integration/Forms/Element/Select/PrepareAttributesCest.php index 94ac849288c..ab044870b0e 100644 --- a/tests/integration/Forms/Element/Select/PrepareAttributesCest.php +++ b/tests/integration/Forms/Element/Select/PrepareAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class PrepareAttributesCest /** * Tests Phalcon\Forms\Element\Select :: prepareAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSelectPrepareAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Select/RenderCest.php b/tests/integration/Forms/Element/Select/RenderCest.php index 8651fbd3d67..257eb51f96f 100644 --- a/tests/integration/Forms/Element/Select/RenderCest.php +++ b/tests/integration/Forms/Element/Select/RenderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class RenderCest /** * Tests Phalcon\Forms\Element\Select :: render() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSelectRender(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Select/SetAttributeCest.php b/tests/integration/Forms/Element/Select/SetAttributeCest.php index 52166a0712e..a2576b404f6 100644 --- a/tests/integration/Forms/Element/Select/SetAttributeCest.php +++ b/tests/integration/Forms/Element/Select/SetAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetAttributeCest /** * Tests Phalcon\Forms\Element\Select :: setAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSelectSetAttribute(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Select/SetAttributesCest.php b/tests/integration/Forms/Element/Select/SetAttributesCest.php index 6ca974783ac..ce578c4506c 100644 --- a/tests/integration/Forms/Element/Select/SetAttributesCest.php +++ b/tests/integration/Forms/Element/Select/SetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetAttributesCest /** * Tests Phalcon\Forms\Element\Select :: setAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSelectSetAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Select/SetDefaultCest.php b/tests/integration/Forms/Element/Select/SetDefaultCest.php index b783d50ebee..4a5043b3d00 100644 --- a/tests/integration/Forms/Element/Select/SetDefaultCest.php +++ b/tests/integration/Forms/Element/Select/SetDefaultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetDefaultCest /** * Tests Phalcon\Forms\Element\Select :: setDefault() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSelectSetDefault(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Select/SetFiltersCest.php b/tests/integration/Forms/Element/Select/SetFiltersCest.php index 1ef7341c4ad..788417d8953 100644 --- a/tests/integration/Forms/Element/Select/SetFiltersCest.php +++ b/tests/integration/Forms/Element/Select/SetFiltersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetFiltersCest /** * Tests Phalcon\Forms\Element\Select :: setFilters() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSelectSetFilters(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Select/SetLabelCest.php b/tests/integration/Forms/Element/Select/SetLabelCest.php index cd6171e5062..9429adfbc3c 100644 --- a/tests/integration/Forms/Element/Select/SetLabelCest.php +++ b/tests/integration/Forms/Element/Select/SetLabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetLabelCest /** * Tests Phalcon\Forms\Element\Select :: setLabel() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSelectSetLabel(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Select/SetMessagesCest.php b/tests/integration/Forms/Element/Select/SetMessagesCest.php index 5fa40bfea39..56636025def 100644 --- a/tests/integration/Forms/Element/Select/SetMessagesCest.php +++ b/tests/integration/Forms/Element/Select/SetMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetMessagesCest /** * Tests Phalcon\Forms\Element\Select :: setMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSelectSetMessages(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Select/SetOptionsCest.php b/tests/integration/Forms/Element/Select/SetOptionsCest.php index a7f053f54c8..b731d00ad74 100644 --- a/tests/integration/Forms/Element/Select/SetOptionsCest.php +++ b/tests/integration/Forms/Element/Select/SetOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetOptionsCest /** * Tests Phalcon\Forms\Element\Select :: setOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSelectSetOptions(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Select/SetUserOptionCest.php b/tests/integration/Forms/Element/Select/SetUserOptionCest.php index 48bdccaa9ad..bc245b07ee4 100644 --- a/tests/integration/Forms/Element/Select/SetUserOptionCest.php +++ b/tests/integration/Forms/Element/Select/SetUserOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetUserOptionCest /** * Tests Phalcon\Forms\Element\Select :: setUserOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSelectSetUserOption(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Select/SetUserOptionsCest.php b/tests/integration/Forms/Element/Select/SetUserOptionsCest.php index dd9f0444171..d0a88ba5715 100644 --- a/tests/integration/Forms/Element/Select/SetUserOptionsCest.php +++ b/tests/integration/Forms/Element/Select/SetUserOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetUserOptionsCest /** * Tests Phalcon\Forms\Element\Select :: setUserOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSelectSetUserOptions(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Select/ToStringCest.php b/tests/integration/Forms/Element/Select/ToStringCest.php index 5a5a058dde6..7c9f15edbde 100644 --- a/tests/integration/Forms/Element/Select/ToStringCest.php +++ b/tests/integration/Forms/Element/Select/ToStringCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ToStringCest /** * Tests Phalcon\Forms\Element\Select :: __toString() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSelectToString(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Submit/AddFilterCest.php b/tests/integration/Forms/Element/Submit/AddFilterCest.php index 9b3e9b9b6fb..eb3adc1c24a 100644 --- a/tests/integration/Forms/Element/Submit/AddFilterCest.php +++ b/tests/integration/Forms/Element/Submit/AddFilterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddFilterCest /** * Tests Phalcon\Forms\Element\Submit :: addFilter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSubmitAddFilter(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Submit/AddValidatorCest.php b/tests/integration/Forms/Element/Submit/AddValidatorCest.php index 24ea18ce886..a230d78f3d4 100644 --- a/tests/integration/Forms/Element/Submit/AddValidatorCest.php +++ b/tests/integration/Forms/Element/Submit/AddValidatorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddValidatorCest /** * Tests Phalcon\Forms\Element\Submit :: addValidator() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSubmitAddValidator(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Submit/AddValidatorsCest.php b/tests/integration/Forms/Element/Submit/AddValidatorsCest.php index 995338d918e..7cfb0c0c5ed 100644 --- a/tests/integration/Forms/Element/Submit/AddValidatorsCest.php +++ b/tests/integration/Forms/Element/Submit/AddValidatorsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddValidatorsCest /** * Tests Phalcon\Forms\Element\Submit :: addValidators() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSubmitAddValidators(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Submit/AppendMessageCest.php b/tests/integration/Forms/Element/Submit/AppendMessageCest.php index e5aa475892d..487f773593d 100644 --- a/tests/integration/Forms/Element/Submit/AppendMessageCest.php +++ b/tests/integration/Forms/Element/Submit/AppendMessageCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AppendMessageCest /** * Tests Phalcon\Forms\Element\Submit :: appendMessage() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSubmitAppendMessage(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Submit/ClearCest.php b/tests/integration/Forms/Element/Submit/ClearCest.php index 9b59a56f13c..fdda73d7332 100644 --- a/tests/integration/Forms/Element/Submit/ClearCest.php +++ b/tests/integration/Forms/Element/Submit/ClearCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ClearCest /** * Tests Phalcon\Forms\Element\Submit :: clear() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSubmitClear(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Submit/ConstructCest.php b/tests/integration/Forms/Element/Submit/ConstructCest.php index e926fc87058..28b012c4152 100644 --- a/tests/integration/Forms/Element/Submit/ConstructCest.php +++ b/tests/integration/Forms/Element/Submit/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Forms\Element\Submit :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSubmitConstruct(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Submit/GetAttributeCest.php b/tests/integration/Forms/Element/Submit/GetAttributeCest.php index ada13ffd095..7341b27b03c 100644 --- a/tests/integration/Forms/Element/Submit/GetAttributeCest.php +++ b/tests/integration/Forms/Element/Submit/GetAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAttributeCest /** * Tests Phalcon\Forms\Element\Submit :: getAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSubmitGetAttribute(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Submit/GetAttributesCest.php b/tests/integration/Forms/Element/Submit/GetAttributesCest.php index 0088a11e7bf..1427cf43dd4 100644 --- a/tests/integration/Forms/Element/Submit/GetAttributesCest.php +++ b/tests/integration/Forms/Element/Submit/GetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAttributesCest /** * Tests Phalcon\Forms\Element\Submit :: getAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSubmitGetAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Submit/GetDefaultCest.php b/tests/integration/Forms/Element/Submit/GetDefaultCest.php index 58d3bac7932..bb16d33a729 100644 --- a/tests/integration/Forms/Element/Submit/GetDefaultCest.php +++ b/tests/integration/Forms/Element/Submit/GetDefaultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDefaultCest /** * Tests Phalcon\Forms\Element\Submit :: getDefault() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSubmitGetDefault(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Submit/GetFiltersCest.php b/tests/integration/Forms/Element/Submit/GetFiltersCest.php index adfa0285477..25acee0ce47 100644 --- a/tests/integration/Forms/Element/Submit/GetFiltersCest.php +++ b/tests/integration/Forms/Element/Submit/GetFiltersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetFiltersCest /** * Tests Phalcon\Forms\Element\Submit :: getFilters() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSubmitGetFilters(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Submit/GetLabelCest.php b/tests/integration/Forms/Element/Submit/GetLabelCest.php index 9f64b05d392..85fedd9eed5 100644 --- a/tests/integration/Forms/Element/Submit/GetLabelCest.php +++ b/tests/integration/Forms/Element/Submit/GetLabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetLabelCest /** * Tests Phalcon\Forms\Element\Submit :: getLabel() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSubmitGetLabel(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Submit/GetMessagesCest.php b/tests/integration/Forms/Element/Submit/GetMessagesCest.php index b0c4f1b8184..0ada5b1dcc8 100644 --- a/tests/integration/Forms/Element/Submit/GetMessagesCest.php +++ b/tests/integration/Forms/Element/Submit/GetMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetMessagesCest /** * Tests Phalcon\Forms\Element\Submit :: getMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSubmitGetMessages(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Submit/GetSetFormCest.php b/tests/integration/Forms/Element/Submit/GetSetFormCest.php index a7a2f246109..087f9810c98 100644 --- a/tests/integration/Forms/Element/Submit/GetSetFormCest.php +++ b/tests/integration/Forms/Element/Submit/GetSetFormCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Submit/GetSetNameCest.php b/tests/integration/Forms/Element/Submit/GetSetNameCest.php index 834903c42af..d4fe7f74ef0 100644 --- a/tests/integration/Forms/Element/Submit/GetSetNameCest.php +++ b/tests/integration/Forms/Element/Submit/GetSetNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Submit/GetUserOptionCest.php b/tests/integration/Forms/Element/Submit/GetUserOptionCest.php index 0dfe8d7e5c6..7c42207918b 100644 --- a/tests/integration/Forms/Element/Submit/GetUserOptionCest.php +++ b/tests/integration/Forms/Element/Submit/GetUserOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetUserOptionCest /** * Tests Phalcon\Forms\Element\Submit :: getUserOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSubmitGetUserOption(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Submit/GetUserOptionsCest.php b/tests/integration/Forms/Element/Submit/GetUserOptionsCest.php index ca708a9acb6..8539fe5abbc 100644 --- a/tests/integration/Forms/Element/Submit/GetUserOptionsCest.php +++ b/tests/integration/Forms/Element/Submit/GetUserOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetUserOptionsCest /** * Tests Phalcon\Forms\Element\Submit :: getUserOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSubmitGetUserOptions(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Submit/GetValidatorsCest.php b/tests/integration/Forms/Element/Submit/GetValidatorsCest.php index 2948056f418..5f54036a9f5 100644 --- a/tests/integration/Forms/Element/Submit/GetValidatorsCest.php +++ b/tests/integration/Forms/Element/Submit/GetValidatorsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetValidatorsCest /** * Tests Phalcon\Forms\Element\Submit :: getValidators() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSubmitGetValidators(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Submit/GetValueCest.php b/tests/integration/Forms/Element/Submit/GetValueCest.php index a6494b01683..8560835e6f7 100644 --- a/tests/integration/Forms/Element/Submit/GetValueCest.php +++ b/tests/integration/Forms/Element/Submit/GetValueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetValueCest /** * Tests Phalcon\Forms\Element\Submit :: getValue() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSubmitGetValue(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Submit/HasMessagesCest.php b/tests/integration/Forms/Element/Submit/HasMessagesCest.php index ab20012de93..5ed01d11715 100644 --- a/tests/integration/Forms/Element/Submit/HasMessagesCest.php +++ b/tests/integration/Forms/Element/Submit/HasMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class HasMessagesCest /** * Tests Phalcon\Forms\Element\Submit :: hasMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSubmitHasMessages(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Submit/LabelCest.php b/tests/integration/Forms/Element/Submit/LabelCest.php index 475cb10c3f6..0ed7940bdaf 100644 --- a/tests/integration/Forms/Element/Submit/LabelCest.php +++ b/tests/integration/Forms/Element/Submit/LabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class LabelCest /** * Tests Phalcon\Forms\Element\Submit :: label() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSubmitLabel(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Submit/PrepareAttributesCest.php b/tests/integration/Forms/Element/Submit/PrepareAttributesCest.php index cdd89bf4f42..35cf0313ea6 100644 --- a/tests/integration/Forms/Element/Submit/PrepareAttributesCest.php +++ b/tests/integration/Forms/Element/Submit/PrepareAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class PrepareAttributesCest /** * Tests Phalcon\Forms\Element\Submit :: prepareAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSubmitPrepareAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Submit/RenderCest.php b/tests/integration/Forms/Element/Submit/RenderCest.php index 7603e9a39bf..e4f060122b8 100644 --- a/tests/integration/Forms/Element/Submit/RenderCest.php +++ b/tests/integration/Forms/Element/Submit/RenderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Submit/SetAttributeCest.php b/tests/integration/Forms/Element/Submit/SetAttributeCest.php index 37941ad3a93..3761ee1afa5 100644 --- a/tests/integration/Forms/Element/Submit/SetAttributeCest.php +++ b/tests/integration/Forms/Element/Submit/SetAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetAttributeCest /** * Tests Phalcon\Forms\Element\Submit :: setAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSubmitSetAttribute(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Submit/SetAttributesCest.php b/tests/integration/Forms/Element/Submit/SetAttributesCest.php index e225e9fbd02..1cc71057f88 100644 --- a/tests/integration/Forms/Element/Submit/SetAttributesCest.php +++ b/tests/integration/Forms/Element/Submit/SetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetAttributesCest /** * Tests Phalcon\Forms\Element\Submit :: setAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSubmitSetAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Submit/SetDefaultCest.php b/tests/integration/Forms/Element/Submit/SetDefaultCest.php index 1d39c5fd7c3..a76a69ba45f 100644 --- a/tests/integration/Forms/Element/Submit/SetDefaultCest.php +++ b/tests/integration/Forms/Element/Submit/SetDefaultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetDefaultCest /** * Tests Phalcon\Forms\Element\Submit :: setDefault() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSubmitSetDefault(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Submit/SetFiltersCest.php b/tests/integration/Forms/Element/Submit/SetFiltersCest.php index f3baa0902fb..85c25403499 100644 --- a/tests/integration/Forms/Element/Submit/SetFiltersCest.php +++ b/tests/integration/Forms/Element/Submit/SetFiltersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetFiltersCest /** * Tests Phalcon\Forms\Element\Submit :: setFilters() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSubmitSetFilters(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Submit/SetLabelCest.php b/tests/integration/Forms/Element/Submit/SetLabelCest.php index 7ca891e8b61..e3e745ab8f2 100644 --- a/tests/integration/Forms/Element/Submit/SetLabelCest.php +++ b/tests/integration/Forms/Element/Submit/SetLabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetLabelCest /** * Tests Phalcon\Forms\Element\Submit :: setLabel() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSubmitSetLabel(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Submit/SetMessagesCest.php b/tests/integration/Forms/Element/Submit/SetMessagesCest.php index 677da2dcf00..c47b195a46c 100644 --- a/tests/integration/Forms/Element/Submit/SetMessagesCest.php +++ b/tests/integration/Forms/Element/Submit/SetMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetMessagesCest /** * Tests Phalcon\Forms\Element\Submit :: setMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSubmitSetMessages(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Submit/SetUserOptionCest.php b/tests/integration/Forms/Element/Submit/SetUserOptionCest.php index 7283ede7271..af57f14df2f 100644 --- a/tests/integration/Forms/Element/Submit/SetUserOptionCest.php +++ b/tests/integration/Forms/Element/Submit/SetUserOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetUserOptionCest /** * Tests Phalcon\Forms\Element\Submit :: setUserOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSubmitSetUserOption(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Submit/SetUserOptionsCest.php b/tests/integration/Forms/Element/Submit/SetUserOptionsCest.php index e6b0ea50273..a2e89d8353d 100644 --- a/tests/integration/Forms/Element/Submit/SetUserOptionsCest.php +++ b/tests/integration/Forms/Element/Submit/SetUserOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetUserOptionsCest /** * Tests Phalcon\Forms\Element\Submit :: setUserOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementSubmitSetUserOptions(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Submit/ToStringCest.php b/tests/integration/Forms/Element/Submit/ToStringCest.php index 707182a4c03..0a1a264f22b 100644 --- a/tests/integration/Forms/Element/Submit/ToStringCest.php +++ b/tests/integration/Forms/Element/Submit/ToStringCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Text/AddFilterCest.php b/tests/integration/Forms/Element/Text/AddFilterCest.php index 543c1bc8546..60aaa961f66 100644 --- a/tests/integration/Forms/Element/Text/AddFilterCest.php +++ b/tests/integration/Forms/Element/Text/AddFilterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddFilterCest /** * Tests Phalcon\Forms\Element\Text :: addFilter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextAddFilter(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Text/AddValidatorCest.php b/tests/integration/Forms/Element/Text/AddValidatorCest.php index 289d8115ade..e77e22aa230 100644 --- a/tests/integration/Forms/Element/Text/AddValidatorCest.php +++ b/tests/integration/Forms/Element/Text/AddValidatorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddValidatorCest /** * Tests Phalcon\Forms\Element\Text :: addValidator() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextAddValidator(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Text/AddValidatorsCest.php b/tests/integration/Forms/Element/Text/AddValidatorsCest.php index 8f019dcbe4c..f581517213a 100644 --- a/tests/integration/Forms/Element/Text/AddValidatorsCest.php +++ b/tests/integration/Forms/Element/Text/AddValidatorsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddValidatorsCest /** * Tests Phalcon\Forms\Element\Text :: addValidators() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextAddValidators(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Text/AppendMessageCest.php b/tests/integration/Forms/Element/Text/AppendMessageCest.php index dd7cb9fd08c..99aa84539ad 100644 --- a/tests/integration/Forms/Element/Text/AppendMessageCest.php +++ b/tests/integration/Forms/Element/Text/AppendMessageCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AppendMessageCest /** * Tests Phalcon\Forms\Element\Text :: appendMessage() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextAppendMessage(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Text/ClearCest.php b/tests/integration/Forms/Element/Text/ClearCest.php index 4a1d1e303da..b2e072f0764 100644 --- a/tests/integration/Forms/Element/Text/ClearCest.php +++ b/tests/integration/Forms/Element/Text/ClearCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ClearCest /** * Tests Phalcon\Forms\Element\Text :: clear() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextClear(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Text/ConstructCest.php b/tests/integration/Forms/Element/Text/ConstructCest.php index c4a143729fd..9e442842f38 100644 --- a/tests/integration/Forms/Element/Text/ConstructCest.php +++ b/tests/integration/Forms/Element/Text/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Forms\Element\Text :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextConstruct(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Text/GetAttributeCest.php b/tests/integration/Forms/Element/Text/GetAttributeCest.php index 646a8acf3d1..b3ee42044dd 100644 --- a/tests/integration/Forms/Element/Text/GetAttributeCest.php +++ b/tests/integration/Forms/Element/Text/GetAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAttributeCest /** * Tests Phalcon\Forms\Element\Text :: getAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextGetAttribute(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Text/GetAttributesCest.php b/tests/integration/Forms/Element/Text/GetAttributesCest.php index 6f76b7f8cc6..23dd6fd2618 100644 --- a/tests/integration/Forms/Element/Text/GetAttributesCest.php +++ b/tests/integration/Forms/Element/Text/GetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAttributesCest /** * Tests Phalcon\Forms\Element\Text :: getAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextGetAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Text/GetDefaultCest.php b/tests/integration/Forms/Element/Text/GetDefaultCest.php index 67360a4bd23..2d04096c99a 100644 --- a/tests/integration/Forms/Element/Text/GetDefaultCest.php +++ b/tests/integration/Forms/Element/Text/GetDefaultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDefaultCest /** * Tests Phalcon\Forms\Element\Text :: getDefault() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextGetDefault(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Text/GetFiltersCest.php b/tests/integration/Forms/Element/Text/GetFiltersCest.php index 6ead5f563c3..1ea9585e160 100644 --- a/tests/integration/Forms/Element/Text/GetFiltersCest.php +++ b/tests/integration/Forms/Element/Text/GetFiltersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetFiltersCest /** * Tests Phalcon\Forms\Element\Text :: getFilters() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextGetFilters(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Text/GetLabelCest.php b/tests/integration/Forms/Element/Text/GetLabelCest.php index 6d01aee8634..1479ef4db80 100644 --- a/tests/integration/Forms/Element/Text/GetLabelCest.php +++ b/tests/integration/Forms/Element/Text/GetLabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetLabelCest /** * Tests Phalcon\Forms\Element\Text :: getLabel() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextGetLabel(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Text/GetMessagesCest.php b/tests/integration/Forms/Element/Text/GetMessagesCest.php index 1d154ec1a1f..4aa5a636a65 100644 --- a/tests/integration/Forms/Element/Text/GetMessagesCest.php +++ b/tests/integration/Forms/Element/Text/GetMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetMessagesCest /** * Tests Phalcon\Forms\Element\Text :: getMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextGetMessages(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Text/GetSetFormCest.php b/tests/integration/Forms/Element/Text/GetSetFormCest.php index ce6337dffbc..93579e1b4f8 100644 --- a/tests/integration/Forms/Element/Text/GetSetFormCest.php +++ b/tests/integration/Forms/Element/Text/GetSetFormCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Text/GetSetNameCest.php b/tests/integration/Forms/Element/Text/GetSetNameCest.php index b1476128b2a..3eb3ec478ac 100644 --- a/tests/integration/Forms/Element/Text/GetSetNameCest.php +++ b/tests/integration/Forms/Element/Text/GetSetNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Text/GetUserOptionCest.php b/tests/integration/Forms/Element/Text/GetUserOptionCest.php index 7cb23928ddd..87a2c14f0c2 100644 --- a/tests/integration/Forms/Element/Text/GetUserOptionCest.php +++ b/tests/integration/Forms/Element/Text/GetUserOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetUserOptionCest /** * Tests Phalcon\Forms\Element\Text :: getUserOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextGetUserOption(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Text/GetUserOptionsCest.php b/tests/integration/Forms/Element/Text/GetUserOptionsCest.php index c5eea1e50c4..344e3aea303 100644 --- a/tests/integration/Forms/Element/Text/GetUserOptionsCest.php +++ b/tests/integration/Forms/Element/Text/GetUserOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetUserOptionsCest /** * Tests Phalcon\Forms\Element\Text :: getUserOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextGetUserOptions(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Text/GetValidatorsCest.php b/tests/integration/Forms/Element/Text/GetValidatorsCest.php index f7fddd37dda..605f4e50218 100644 --- a/tests/integration/Forms/Element/Text/GetValidatorsCest.php +++ b/tests/integration/Forms/Element/Text/GetValidatorsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetValidatorsCest /** * Tests Phalcon\Forms\Element\Text :: getValidators() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextGetValidators(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Text/GetValueCest.php b/tests/integration/Forms/Element/Text/GetValueCest.php index 7fe04781f44..a814157d8a8 100644 --- a/tests/integration/Forms/Element/Text/GetValueCest.php +++ b/tests/integration/Forms/Element/Text/GetValueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetValueCest /** * Tests Phalcon\Forms\Element\Text :: getValue() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextGetValue(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Text/HasMessagesCest.php b/tests/integration/Forms/Element/Text/HasMessagesCest.php index e3699bbfa7b..5eb83c81151 100644 --- a/tests/integration/Forms/Element/Text/HasMessagesCest.php +++ b/tests/integration/Forms/Element/Text/HasMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class HasMessagesCest /** * Tests Phalcon\Forms\Element\Text :: hasMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextHasMessages(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Text/LabelCest.php b/tests/integration/Forms/Element/Text/LabelCest.php index 50c058fc460..ad492c1101d 100644 --- a/tests/integration/Forms/Element/Text/LabelCest.php +++ b/tests/integration/Forms/Element/Text/LabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class LabelCest /** * Tests Phalcon\Forms\Element\Text :: label() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextLabel(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Text/PrepareAttributesCest.php b/tests/integration/Forms/Element/Text/PrepareAttributesCest.php index 46fd08757a6..7764925557e 100644 --- a/tests/integration/Forms/Element/Text/PrepareAttributesCest.php +++ b/tests/integration/Forms/Element/Text/PrepareAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class PrepareAttributesCest /** * Tests Phalcon\Forms\Element\Text :: prepareAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextPrepareAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Text/RenderCest.php b/tests/integration/Forms/Element/Text/RenderCest.php index e8c072eeb9c..123af021214 100644 --- a/tests/integration/Forms/Element/Text/RenderCest.php +++ b/tests/integration/Forms/Element/Text/RenderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Text/SetAttributeCest.php b/tests/integration/Forms/Element/Text/SetAttributeCest.php index 40b42894e62..e0553cd03c2 100644 --- a/tests/integration/Forms/Element/Text/SetAttributeCest.php +++ b/tests/integration/Forms/Element/Text/SetAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetAttributeCest /** * Tests Phalcon\Forms\Element\Text :: setAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextSetAttribute(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Text/SetAttributesCest.php b/tests/integration/Forms/Element/Text/SetAttributesCest.php index 141a4df3b8a..8b17d043831 100644 --- a/tests/integration/Forms/Element/Text/SetAttributesCest.php +++ b/tests/integration/Forms/Element/Text/SetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetAttributesCest /** * Tests Phalcon\Forms\Element\Text :: setAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextSetAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Text/SetDefaultCest.php b/tests/integration/Forms/Element/Text/SetDefaultCest.php index 8dd1dc56535..4f0abe384b1 100644 --- a/tests/integration/Forms/Element/Text/SetDefaultCest.php +++ b/tests/integration/Forms/Element/Text/SetDefaultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetDefaultCest /** * Tests Phalcon\Forms\Element\Text :: setDefault() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextSetDefault(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Text/SetFiltersCest.php b/tests/integration/Forms/Element/Text/SetFiltersCest.php index e33f8f7b681..3cbfea44dcf 100644 --- a/tests/integration/Forms/Element/Text/SetFiltersCest.php +++ b/tests/integration/Forms/Element/Text/SetFiltersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetFiltersCest /** * Tests Phalcon\Forms\Element\Text :: setFilters() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextSetFilters(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Text/SetLabelCest.php b/tests/integration/Forms/Element/Text/SetLabelCest.php index 52470b4a000..8caac691436 100644 --- a/tests/integration/Forms/Element/Text/SetLabelCest.php +++ b/tests/integration/Forms/Element/Text/SetLabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/Text/SetMessagesCest.php b/tests/integration/Forms/Element/Text/SetMessagesCest.php index 1a63effb1f0..683ffb4b29e 100644 --- a/tests/integration/Forms/Element/Text/SetMessagesCest.php +++ b/tests/integration/Forms/Element/Text/SetMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetMessagesCest /** * Tests Phalcon\Forms\Element\Text :: setMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextSetMessages(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Text/SetUserOptionCest.php b/tests/integration/Forms/Element/Text/SetUserOptionCest.php index b76663e7466..4815a1b3dfc 100644 --- a/tests/integration/Forms/Element/Text/SetUserOptionCest.php +++ b/tests/integration/Forms/Element/Text/SetUserOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetUserOptionCest /** * Tests Phalcon\Forms\Element\Text :: setUserOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextSetUserOption(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Text/SetUserOptionsCest.php b/tests/integration/Forms/Element/Text/SetUserOptionsCest.php index 5a1f1aa2db0..f7547e7107b 100644 --- a/tests/integration/Forms/Element/Text/SetUserOptionsCest.php +++ b/tests/integration/Forms/Element/Text/SetUserOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetUserOptionsCest /** * Tests Phalcon\Forms\Element\Text :: setUserOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextSetUserOptions(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/Text/ToStringCest.php b/tests/integration/Forms/Element/Text/ToStringCest.php index 9375470642b..b077dd84915 100644 --- a/tests/integration/Forms/Element/Text/ToStringCest.php +++ b/tests/integration/Forms/Element/Text/ToStringCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/TextArea/AddFilterCest.php b/tests/integration/Forms/Element/TextArea/AddFilterCest.php index 20b67e1deae..96363dadfc7 100644 --- a/tests/integration/Forms/Element/TextArea/AddFilterCest.php +++ b/tests/integration/Forms/Element/TextArea/AddFilterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddFilterCest /** * Tests Phalcon\Forms\Element\TextArea :: addFilter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextareaAddFilter(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/TextArea/AddValidatorCest.php b/tests/integration/Forms/Element/TextArea/AddValidatorCest.php index 86bff05eb52..0c0ee4aa400 100644 --- a/tests/integration/Forms/Element/TextArea/AddValidatorCest.php +++ b/tests/integration/Forms/Element/TextArea/AddValidatorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddValidatorCest /** * Tests Phalcon\Forms\Element\TextArea :: addValidator() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextareaAddValidator(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/TextArea/AddValidatorsCest.php b/tests/integration/Forms/Element/TextArea/AddValidatorsCest.php index 6a4b197487a..ecc69580710 100644 --- a/tests/integration/Forms/Element/TextArea/AddValidatorsCest.php +++ b/tests/integration/Forms/Element/TextArea/AddValidatorsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddValidatorsCest /** * Tests Phalcon\Forms\Element\TextArea :: addValidators() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextareaAddValidators(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/TextArea/AppendMessageCest.php b/tests/integration/Forms/Element/TextArea/AppendMessageCest.php index c1e65d2c8fe..1ff0bf46cd5 100644 --- a/tests/integration/Forms/Element/TextArea/AppendMessageCest.php +++ b/tests/integration/Forms/Element/TextArea/AppendMessageCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AppendMessageCest /** * Tests Phalcon\Forms\Element\TextArea :: appendMessage() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextareaAppendMessage(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/TextArea/ClearCest.php b/tests/integration/Forms/Element/TextArea/ClearCest.php index c4b7353111c..53ce14a836d 100644 --- a/tests/integration/Forms/Element/TextArea/ClearCest.php +++ b/tests/integration/Forms/Element/TextArea/ClearCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ClearCest /** * Tests Phalcon\Forms\Element\TextArea :: clear() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextareaClear(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/TextArea/ConstructCest.php b/tests/integration/Forms/Element/TextArea/ConstructCest.php index e049d63adc6..980fc603202 100644 --- a/tests/integration/Forms/Element/TextArea/ConstructCest.php +++ b/tests/integration/Forms/Element/TextArea/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Forms\Element\TextArea :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextareaConstruct(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/TextArea/GetAttributeCest.php b/tests/integration/Forms/Element/TextArea/GetAttributeCest.php index 0d94244156f..3afbb63e084 100644 --- a/tests/integration/Forms/Element/TextArea/GetAttributeCest.php +++ b/tests/integration/Forms/Element/TextArea/GetAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAttributeCest /** * Tests Phalcon\Forms\Element\TextArea :: getAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextareaGetAttribute(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/TextArea/GetAttributesCest.php b/tests/integration/Forms/Element/TextArea/GetAttributesCest.php index 3783cc11d23..09a788f8904 100644 --- a/tests/integration/Forms/Element/TextArea/GetAttributesCest.php +++ b/tests/integration/Forms/Element/TextArea/GetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAttributesCest /** * Tests Phalcon\Forms\Element\TextArea :: getAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextareaGetAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/TextArea/GetDefaultCest.php b/tests/integration/Forms/Element/TextArea/GetDefaultCest.php index ab901c7722b..a006590b50e 100644 --- a/tests/integration/Forms/Element/TextArea/GetDefaultCest.php +++ b/tests/integration/Forms/Element/TextArea/GetDefaultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDefaultCest /** * Tests Phalcon\Forms\Element\TextArea :: getDefault() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextareaGetDefault(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/TextArea/GetFiltersCest.php b/tests/integration/Forms/Element/TextArea/GetFiltersCest.php index a298b96550c..13f672c4360 100644 --- a/tests/integration/Forms/Element/TextArea/GetFiltersCest.php +++ b/tests/integration/Forms/Element/TextArea/GetFiltersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetFiltersCest /** * Tests Phalcon\Forms\Element\TextArea :: getFilters() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextareaGetFilters(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/TextArea/GetLabelCest.php b/tests/integration/Forms/Element/TextArea/GetLabelCest.php index 30b738b5493..76eee1b3b66 100644 --- a/tests/integration/Forms/Element/TextArea/GetLabelCest.php +++ b/tests/integration/Forms/Element/TextArea/GetLabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetLabelCest /** * Tests Phalcon\Forms\Element\TextArea :: getLabel() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextareaGetLabel(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/TextArea/GetMessagesCest.php b/tests/integration/Forms/Element/TextArea/GetMessagesCest.php index 7f70fc38f9f..00673151861 100644 --- a/tests/integration/Forms/Element/TextArea/GetMessagesCest.php +++ b/tests/integration/Forms/Element/TextArea/GetMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetMessagesCest /** * Tests Phalcon\Forms\Element\TextArea :: getMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextareaGetMessages(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/TextArea/GetSetFormCest.php b/tests/integration/Forms/Element/TextArea/GetSetFormCest.php index 7352588fef5..b213b82d499 100644 --- a/tests/integration/Forms/Element/TextArea/GetSetFormCest.php +++ b/tests/integration/Forms/Element/TextArea/GetSetFormCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/TextArea/GetSetNameCest.php b/tests/integration/Forms/Element/TextArea/GetSetNameCest.php index 1d77805c3f4..6c997d856e1 100644 --- a/tests/integration/Forms/Element/TextArea/GetSetNameCest.php +++ b/tests/integration/Forms/Element/TextArea/GetSetNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/TextArea/GetUserOptionCest.php b/tests/integration/Forms/Element/TextArea/GetUserOptionCest.php index c1317cab99b..9b0af6b6570 100644 --- a/tests/integration/Forms/Element/TextArea/GetUserOptionCest.php +++ b/tests/integration/Forms/Element/TextArea/GetUserOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetUserOptionCest /** * Tests Phalcon\Forms\Element\TextArea :: getUserOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextareaGetUserOption(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/TextArea/GetUserOptionsCest.php b/tests/integration/Forms/Element/TextArea/GetUserOptionsCest.php index 1633e80c119..0bb52db1e6f 100644 --- a/tests/integration/Forms/Element/TextArea/GetUserOptionsCest.php +++ b/tests/integration/Forms/Element/TextArea/GetUserOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetUserOptionsCest /** * Tests Phalcon\Forms\Element\TextArea :: getUserOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextareaGetUserOptions(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/TextArea/GetValidatorsCest.php b/tests/integration/Forms/Element/TextArea/GetValidatorsCest.php index 8a8619283b0..474378606bb 100644 --- a/tests/integration/Forms/Element/TextArea/GetValidatorsCest.php +++ b/tests/integration/Forms/Element/TextArea/GetValidatorsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetValidatorsCest /** * Tests Phalcon\Forms\Element\TextArea :: getValidators() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextareaGetValidators(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/TextArea/GetValueCest.php b/tests/integration/Forms/Element/TextArea/GetValueCest.php index a5a5633e52d..222136fa824 100644 --- a/tests/integration/Forms/Element/TextArea/GetValueCest.php +++ b/tests/integration/Forms/Element/TextArea/GetValueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetValueCest /** * Tests Phalcon\Forms\Element\TextArea :: getValue() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextareaGetValue(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/TextArea/HasMessagesCest.php b/tests/integration/Forms/Element/TextArea/HasMessagesCest.php index bc7f6bcf12b..ca145cf16d1 100644 --- a/tests/integration/Forms/Element/TextArea/HasMessagesCest.php +++ b/tests/integration/Forms/Element/TextArea/HasMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class HasMessagesCest /** * Tests Phalcon\Forms\Element\TextArea :: hasMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextareaHasMessages(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/TextArea/LabelCest.php b/tests/integration/Forms/Element/TextArea/LabelCest.php index 0b1e4dba900..b5c48dcbe15 100644 --- a/tests/integration/Forms/Element/TextArea/LabelCest.php +++ b/tests/integration/Forms/Element/TextArea/LabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class LabelCest /** * Tests Phalcon\Forms\Element\TextArea :: label() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextareaLabel(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/TextArea/PrepareAttributesCest.php b/tests/integration/Forms/Element/TextArea/PrepareAttributesCest.php index 4a6031702b7..b29f0c85cf9 100644 --- a/tests/integration/Forms/Element/TextArea/PrepareAttributesCest.php +++ b/tests/integration/Forms/Element/TextArea/PrepareAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class PrepareAttributesCest /** * Tests Phalcon\Forms\Element\TextArea :: prepareAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextareaPrepareAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/TextArea/RenderCest.php b/tests/integration/Forms/Element/TextArea/RenderCest.php index 6f6b5cfd24d..1f45a3d5d6f 100644 --- a/tests/integration/Forms/Element/TextArea/RenderCest.php +++ b/tests/integration/Forms/Element/TextArea/RenderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/TextArea/SetAttributeCest.php b/tests/integration/Forms/Element/TextArea/SetAttributeCest.php index 236156a10a0..6d2f5504e56 100644 --- a/tests/integration/Forms/Element/TextArea/SetAttributeCest.php +++ b/tests/integration/Forms/Element/TextArea/SetAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetAttributeCest /** * Tests Phalcon\Forms\Element\TextArea :: setAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextareaSetAttribute(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/TextArea/SetAttributesCest.php b/tests/integration/Forms/Element/TextArea/SetAttributesCest.php index 2046b480ac6..b38e4a051dc 100644 --- a/tests/integration/Forms/Element/TextArea/SetAttributesCest.php +++ b/tests/integration/Forms/Element/TextArea/SetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetAttributesCest /** * Tests Phalcon\Forms\Element\TextArea :: setAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextareaSetAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/TextArea/SetDefaultCest.php b/tests/integration/Forms/Element/TextArea/SetDefaultCest.php index ee8c33d4d88..7e85636eb39 100644 --- a/tests/integration/Forms/Element/TextArea/SetDefaultCest.php +++ b/tests/integration/Forms/Element/TextArea/SetDefaultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetDefaultCest /** * Tests Phalcon\Forms\Element\TextArea :: setDefault() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextareaSetDefault(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/TextArea/SetFiltersCest.php b/tests/integration/Forms/Element/TextArea/SetFiltersCest.php index 891a791a1b9..40a6482b16e 100644 --- a/tests/integration/Forms/Element/TextArea/SetFiltersCest.php +++ b/tests/integration/Forms/Element/TextArea/SetFiltersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetFiltersCest /** * Tests Phalcon\Forms\Element\TextArea :: setFilters() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextareaSetFilters(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/TextArea/SetLabelCest.php b/tests/integration/Forms/Element/TextArea/SetLabelCest.php index c827c31b4ca..7de83388a97 100644 --- a/tests/integration/Forms/Element/TextArea/SetLabelCest.php +++ b/tests/integration/Forms/Element/TextArea/SetLabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetLabelCest /** * Tests Phalcon\Forms\Element\TextArea :: setLabel() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextareaSetLabel(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/TextArea/SetMessagesCest.php b/tests/integration/Forms/Element/TextArea/SetMessagesCest.php index 09cd9e77f22..eff177f2f09 100644 --- a/tests/integration/Forms/Element/TextArea/SetMessagesCest.php +++ b/tests/integration/Forms/Element/TextArea/SetMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetMessagesCest /** * Tests Phalcon\Forms\Element\TextArea :: setMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextareaSetMessages(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/TextArea/SetUserOptionCest.php b/tests/integration/Forms/Element/TextArea/SetUserOptionCest.php index b65d28e60cb..0c35237e17c 100644 --- a/tests/integration/Forms/Element/TextArea/SetUserOptionCest.php +++ b/tests/integration/Forms/Element/TextArea/SetUserOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetUserOptionCest /** * Tests Phalcon\Forms\Element\TextArea :: setUserOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextareaSetUserOption(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/TextArea/SetUserOptionsCest.php b/tests/integration/Forms/Element/TextArea/SetUserOptionsCest.php index ec6f952c7cb..ac1c9386880 100644 --- a/tests/integration/Forms/Element/TextArea/SetUserOptionsCest.php +++ b/tests/integration/Forms/Element/TextArea/SetUserOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetUserOptionsCest /** * Tests Phalcon\Forms\Element\TextArea :: setUserOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsElementTextareaSetUserOptions(IntegrationTester $I) diff --git a/tests/integration/Forms/Element/TextArea/ToStringCest.php b/tests/integration/Forms/Element/TextArea/ToStringCest.php index bc4a71cced0..501e2a3be3b 100644 --- a/tests/integration/Forms/Element/TextArea/ToStringCest.php +++ b/tests/integration/Forms/Element/TextArea/ToStringCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Element/TextCest.php b/tests/integration/Forms/Element/TextCest.php index 2f5d5c47e11..45760cd8cf9 100644 --- a/tests/integration/Forms/Element/TextCest.php +++ b/tests/integration/Forms/Element/TextCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -43,7 +43,7 @@ public function _after(IntegrationTester $I) * Tests Text::render * * @issue https://github.com/phalcon/cphalcon/issues/10398 - * @author Phalcon Team + * @author Phalcon Team * @since 2016-07-17 * * @dataProvider testCreatingTextElementWithNameSimilarToTheFormMethodsProvider diff --git a/tests/integration/Forms/Form/AddCest.php b/tests/integration/Forms/Form/AddCest.php index df7e00fbb64..236ea3d870d 100644 --- a/tests/integration/Forms/Form/AddCest.php +++ b/tests/integration/Forms/Form/AddCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class AddCest /** * Tests Phalcon\Forms\Form :: add() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsFormAdd(IntegrationTester $I) diff --git a/tests/integration/Forms/Form/BindCest.php b/tests/integration/Forms/Form/BindCest.php index 6949d5d304e..5726c5819ae 100644 --- a/tests/integration/Forms/Form/BindCest.php +++ b/tests/integration/Forms/Form/BindCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class BindCest /** * Tests Phalcon\Forms\Form :: bind() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsFormBind(IntegrationTester $I) diff --git a/tests/integration/Forms/Form/ClearCest.php b/tests/integration/Forms/Form/ClearCest.php index e2a60081041..77329d57c0c 100644 --- a/tests/integration/Forms/Form/ClearCest.php +++ b/tests/integration/Forms/Form/ClearCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -66,7 +66,7 @@ public function formsFormClearAll(IntegrationTester $I) $form->bind( [ 'name' => 'Sid Roberts', - 'email' => 'team@phalconphp.com', + 'email' => 'team@phalcon.io', 'password' => 'hunter2', ], $entity @@ -114,7 +114,7 @@ public function formsFormClearFieldsArray(IntegrationTester $I) $form->bind( [ 'name' => 'Sid Roberts', - 'email' => 'team@phalconphp.com', + 'email' => 'team@phalcon.io', 'password' => 'hunter2', ], $entity @@ -168,7 +168,7 @@ public function formsFormClearFieldString(IntegrationTester $I) $form->bind( [ 'name' => 'Sid Roberts', - 'email' => 'team@phalconphp.com', + 'email' => 'team@phalcon.io', 'password' => 'hunter2', ], $entity @@ -182,7 +182,7 @@ public function formsFormClearFieldString(IntegrationTester $I) ); $I->assertEquals( - 'team@phalconphp.com', + 'team@phalcon.io', $form->get('email')->getValue() ); @@ -199,7 +199,7 @@ public function formsFormClearFieldString(IntegrationTester $I) * * @since 2016-10-01 * - * @author Phalcon Team + * @author Phalcon Team */ public function clearFormElements(IntegrationTester $I) { @@ -272,16 +272,16 @@ public function clearFormElements(IntegrationTester $I) $form->render('name') ); - Tag::setDefault('email', 'andres@phalconphp.com'); + Tag::setDefault('email', 'andres@phalcon.io'); $I->assertEquals( - '', + '', $form->render('email') ); $I->assertEquals( - 'andres@phalconphp.com', + 'andres@phalcon.io', $form->get('email')->getValue() ); @@ -338,7 +338,7 @@ public function clearFormElements(IntegrationTester $I) * * @since 2016-10-01 * - * @author Phalcon Team + * @author Phalcon Team */ public function clearFormElementsAndUsingValidation(IntegrationTester $I) { @@ -439,7 +439,7 @@ public function clearFormElementsAndUsingValidation(IntegrationTester $I) * * @since 2016-10-01 * - * @author Phalcon Team + * @author Phalcon Team */ public function clearFormElementsByUsingFormBind(IntegrationTester $I) { diff --git a/tests/integration/Forms/Form/ConstructCest.php b/tests/integration/Forms/Form/ConstructCest.php index f269cce1d27..6aa32d7555b 100644 --- a/tests/integration/Forms/Form/ConstructCest.php +++ b/tests/integration/Forms/Form/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Forms\Form :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsFormConstruct(IntegrationTester $I) diff --git a/tests/integration/Forms/Form/CountCest.php b/tests/integration/Forms/Form/CountCest.php index a30ac991288..fc4ed1fb63d 100644 --- a/tests/integration/Forms/Form/CountCest.php +++ b/tests/integration/Forms/Form/CountCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class CountCest /** * Tests Phalcon\Forms\Form :: count() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-18 */ public function formsFormCount(IntegrationTester $I) diff --git a/tests/integration/Forms/Form/GetActionCest.php b/tests/integration/Forms/Form/GetActionCest.php index be95fb6fb37..3d512b02ec3 100644 --- a/tests/integration/Forms/Form/GetActionCest.php +++ b/tests/integration/Forms/Form/GetActionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetActionCest /** * Tests Phalcon\Forms\Form :: getAction() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsFormGetAction(IntegrationTester $I) diff --git a/tests/integration/Forms/Form/GetAttributesCest.php b/tests/integration/Forms/Form/GetAttributesCest.php index a60ebc48603..05676a838bf 100644 --- a/tests/integration/Forms/Form/GetAttributesCest.php +++ b/tests/integration/Forms/Form/GetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -43,7 +43,7 @@ public function _after(IntegrationTester $I) /** * Tests Phalcon\Forms\Form :: getAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-11 */ public function formsFormGetAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Form/GetCest.php b/tests/integration/Forms/Form/GetCest.php index 5865a286478..1c4e74ed537 100644 --- a/tests/integration/Forms/Form/GetCest.php +++ b/tests/integration/Forms/Form/GetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Form/GetDICest.php b/tests/integration/Forms/Form/GetDICest.php index 034607d1c78..977919669ad 100644 --- a/tests/integration/Forms/Form/GetDICest.php +++ b/tests/integration/Forms/Form/GetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDICest /** * Tests Phalcon\Forms\Form :: getDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsFormGetDI(IntegrationTester $I) diff --git a/tests/integration/Forms/Form/GetElementsCest.php b/tests/integration/Forms/Form/GetElementsCest.php index 3f3ca257a9c..e63ea6c431b 100644 --- a/tests/integration/Forms/Form/GetElementsCest.php +++ b/tests/integration/Forms/Form/GetElementsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Form/GetEntityCest.php b/tests/integration/Forms/Form/GetEntityCest.php index ddd21abb01a..7d0145482be 100644 --- a/tests/integration/Forms/Form/GetEntityCest.php +++ b/tests/integration/Forms/Form/GetEntityCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Form/GetEventsManagerCest.php b/tests/integration/Forms/Form/GetEventsManagerCest.php index b2ee70dbd72..46f68837603 100644 --- a/tests/integration/Forms/Form/GetEventsManagerCest.php +++ b/tests/integration/Forms/Form/GetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetEventsManagerCest /** * Tests Phalcon\Forms\Form :: getEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsFormGetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Forms/Form/GetLabelCest.php b/tests/integration/Forms/Form/GetLabelCest.php index c77acd57a9c..849e6ba8f41 100644 --- a/tests/integration/Forms/Form/GetLabelCest.php +++ b/tests/integration/Forms/Form/GetLabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetLabelCest /** * Tests Phalcon\Forms\Form :: getLabel() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsFormGetLabel(IntegrationTester $I) diff --git a/tests/integration/Forms/Form/GetMessagesCest.php b/tests/integration/Forms/Form/GetMessagesCest.php index f347397576f..63f283a18cd 100644 --- a/tests/integration/Forms/Form/GetMessagesCest.php +++ b/tests/integration/Forms/Form/GetMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Form/GetMessagesForCest.php b/tests/integration/Forms/Form/GetMessagesForCest.php index b29aad1deee..112896a8834 100644 --- a/tests/integration/Forms/Form/GetMessagesForCest.php +++ b/tests/integration/Forms/Form/GetMessagesForCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetMessagesForCest /** * Tests Phalcon\Forms\Form :: getMessagesFor() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsFormGetMessagesFor(IntegrationTester $I) diff --git a/tests/integration/Forms/Form/GetSetActionCest.php b/tests/integration/Forms/Form/GetSetActionCest.php index 0e82e4aa093..9119406ea35 100644 --- a/tests/integration/Forms/Form/GetSetActionCest.php +++ b/tests/integration/Forms/Form/GetSetActionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetSetActionCest /** * Tests Phalcon\Forms\Form :: getAction() / setAction() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-11 */ public function formsFormGetSetAction(IntegrationTester $I) diff --git a/tests/integration/Forms/Form/GetUserOptionCest.php b/tests/integration/Forms/Form/GetUserOptionCest.php index 1e2238ab689..e733c52a862 100644 --- a/tests/integration/Forms/Form/GetUserOptionCest.php +++ b/tests/integration/Forms/Form/GetUserOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Form/GetUserOptionsCest.php b/tests/integration/Forms/Form/GetUserOptionsCest.php index 909726f0878..aa862605d01 100644 --- a/tests/integration/Forms/Form/GetUserOptionsCest.php +++ b/tests/integration/Forms/Form/GetUserOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Form/GetValidationCest.php b/tests/integration/Forms/Form/GetValidationCest.php index cc4643cd63e..322802d6843 100644 --- a/tests/integration/Forms/Form/GetValidationCest.php +++ b/tests/integration/Forms/Form/GetValidationCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetValidationCest /** * Tests Phalcon\Forms\Form :: getValidation() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsFormGetValidation(IntegrationTester $I) diff --git a/tests/integration/Forms/Form/GetValueCest.php b/tests/integration/Forms/Form/GetValueCest.php index 3ae700844b7..1ec5a986975 100644 --- a/tests/integration/Forms/Form/GetValueCest.php +++ b/tests/integration/Forms/Form/GetValueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetValueCest /** * Tests Phalcon\Forms\Form :: getValue() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsFormGetValue(IntegrationTester $I) diff --git a/tests/integration/Forms/Form/HasCest.php b/tests/integration/Forms/Form/HasCest.php index 80007ae0716..3e1a5e32e23 100644 --- a/tests/integration/Forms/Form/HasCest.php +++ b/tests/integration/Forms/Form/HasCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Form/HasMessagesForCest.php b/tests/integration/Forms/Form/HasMessagesForCest.php index e516fbe64d2..f788f2a1d07 100644 --- a/tests/integration/Forms/Form/HasMessagesForCest.php +++ b/tests/integration/Forms/Form/HasMessagesForCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Form/IsValidCest.php b/tests/integration/Forms/Form/IsValidCest.php index e3dc96850c8..db8a8805013 100644 --- a/tests/integration/Forms/Form/IsValidCest.php +++ b/tests/integration/Forms/Form/IsValidCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -147,7 +147,7 @@ public function testMergeValidators(IntegrationTester $I) * Tests Form::isValid() * * @issue https://github.com/phalcon/cphalcon/issues/13149 - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsFormRemoveIsValidCancelOnFail(IntegrationTester $I) @@ -172,7 +172,7 @@ public function formsFormRemoveIsValidCancelOnFail(IntegrationTester $I) $data = [ 'fullname' => '', - 'email' => 'team@phalconphp.com', + 'email' => 'team@phalcon.io', 'subject' => 'Some subject', 'message' => 'Some message', ]; diff --git a/tests/integration/Forms/Form/IteratorCest.php b/tests/integration/Forms/Form/IteratorCest.php index 6b9a1ab2ea5..c6fde2b4ec4 100644 --- a/tests/integration/Forms/Form/IteratorCest.php +++ b/tests/integration/Forms/Form/IteratorCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Form/LabelCest.php b/tests/integration/Forms/Form/LabelCest.php index 43745b9d26a..696ff56276a 100644 --- a/tests/integration/Forms/Form/LabelCest.php +++ b/tests/integration/Forms/Form/LabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class LabelCest /** * Tests Phalcon\Forms\Form :: label() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsFormLabel(IntegrationTester $I) diff --git a/tests/integration/Forms/Form/RemoveCest.php b/tests/integration/Forms/Form/RemoveCest.php index 6e853ff65d0..a61e3aee61e 100644 --- a/tests/integration/Forms/Form/RemoveCest.php +++ b/tests/integration/Forms/Form/RemoveCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class RemoveCest /** * Tests Phalcon\Forms\Form :: remove() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsFormRemove(IntegrationTester $I) diff --git a/tests/integration/Forms/Form/RenderCest.php b/tests/integration/Forms/Form/RenderCest.php index e3794990ee3..c599b060bd3 100644 --- a/tests/integration/Forms/Form/RenderCest.php +++ b/tests/integration/Forms/Form/RenderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -48,7 +48,7 @@ public function _after(IntegrationTester $I) * Tests Form::render * * @issue https://github.com/phalcon/cphalcon/issues/10398 - * @author Phalcon Team + * @author Phalcon Team * @since 2016-07-17 */ public function testCreatingElementsWithNameSimilarToTheFormMethods(IntegrationTester $I) diff --git a/tests/integration/Forms/Form/SetActionCest.php b/tests/integration/Forms/Form/SetActionCest.php index 84a53babd56..f7d6b4c1b51 100644 --- a/tests/integration/Forms/Form/SetActionCest.php +++ b/tests/integration/Forms/Form/SetActionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetActionCest /** * Tests Phalcon\Forms\Form :: setAction() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsFormSetAction(IntegrationTester $I) diff --git a/tests/integration/Forms/Form/SetAttributesCest.php b/tests/integration/Forms/Form/SetAttributesCest.php index 37a01c66011..602dc8607d8 100644 --- a/tests/integration/Forms/Form/SetAttributesCest.php +++ b/tests/integration/Forms/Form/SetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetAttributesCest /** * Tests Phalcon\Forms\Form :: setAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-11 */ public function formsFormSetAttributes(IntegrationTester $I) diff --git a/tests/integration/Forms/Form/SetDICest.php b/tests/integration/Forms/Form/SetDICest.php index 3a52f3fc1d4..1a0bded8c67 100644 --- a/tests/integration/Forms/Form/SetDICest.php +++ b/tests/integration/Forms/Form/SetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetDICest /** * Tests Phalcon\Forms\Form :: setDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsFormSetDI(IntegrationTester $I) diff --git a/tests/integration/Forms/Form/SetEntityCest.php b/tests/integration/Forms/Form/SetEntityCest.php index 90f4cd1742a..350a67f9ea4 100644 --- a/tests/integration/Forms/Form/SetEntityCest.php +++ b/tests/integration/Forms/Form/SetEntityCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Form/SetEventsManagerCest.php b/tests/integration/Forms/Form/SetEventsManagerCest.php index b9f1f391779..2b880cd079f 100644 --- a/tests/integration/Forms/Form/SetEventsManagerCest.php +++ b/tests/integration/Forms/Form/SetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetEventsManagerCest /** * Tests Phalcon\Forms\Form :: setEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsFormSetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Forms/Form/SetUserOptionCest.php b/tests/integration/Forms/Form/SetUserOptionCest.php index 9d813b1c740..9537337255d 100644 --- a/tests/integration/Forms/Form/SetUserOptionCest.php +++ b/tests/integration/Forms/Form/SetUserOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Form/SetUserOptionsCest.php b/tests/integration/Forms/Form/SetUserOptionsCest.php index 42458003dea..8a29b25e430 100644 --- a/tests/integration/Forms/Form/SetUserOptionsCest.php +++ b/tests/integration/Forms/Form/SetUserOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Form/SetValidationCest.php b/tests/integration/Forms/Form/SetValidationCest.php index 890dcdea80c..4a0ed03cd63 100644 --- a/tests/integration/Forms/Form/SetValidationCest.php +++ b/tests/integration/Forms/Form/SetValidationCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Form/UnderscoreGetCest.php b/tests/integration/Forms/Form/UnderscoreGetCest.php index 2d8a25cf683..bef5d0200bd 100644 --- a/tests/integration/Forms/Form/UnderscoreGetCest.php +++ b/tests/integration/Forms/Form/UnderscoreGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class UnderscoreGetCest /** * Tests Phalcon\Forms\Form :: __get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function formsFormUnderscoreGet(IntegrationTester $I) diff --git a/tests/integration/Forms/FormCest.php b/tests/integration/Forms/FormCest.php index 647c02b9cd2..fcabed28090 100644 --- a/tests/integration/Forms/FormCest.php +++ b/tests/integration/Forms/FormCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/FormElementsCest.php b/tests/integration/Forms/FormElementsCest.php index f79c9d88546..b4034c7ab2f 100644 --- a/tests/integration/Forms/FormElementsCest.php +++ b/tests/integration/Forms/FormElementsCest.php @@ -16,15 +16,15 @@ * Tests the \Phalcon\Forms\Form component * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Phalcon Team + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Phalcon Team * * The contents of this file are subject to the New BSD License that is * bundled with this package in the file 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class FormElementsCest @@ -48,7 +48,7 @@ public function _before(IntegrationTester $I) * * @since 2017-11-19 * - * @author Phalcon Team + * @author Phalcon Team */ public function shouldCancelValidationOnFirstFail(IntegrationTester $I) { diff --git a/tests/integration/Forms/FormsCest.php b/tests/integration/Forms/FormsCest.php index f1097f11f2f..90fe5c79bd8 100644 --- a/tests/integration/Forms/FormsCest.php +++ b/tests/integration/Forms/FormsCest.php @@ -4,17 +4,17 @@ +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2015 Phalcon Team (http://www.phalconphp.com) | + | Copyright (c) 2011-2015 Phalcon Team (http://www.phalcon.io) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file 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. | + | to license@phalcon.io so we can send you a copy immediately. | +------------------------------------------------------------------------+ - | Authors: Andres Gutierrez | - | Eduar Carvajal | + | Authors: Andres Gutierrez | + | Eduar Carvajal | +------------------------------------------------------------------------+ */ diff --git a/tests/integration/Forms/Manager/CreateCest.php b/tests/integration/Forms/Manager/CreateCest.php index e69858b237b..a90b8b78186 100644 --- a/tests/integration/Forms/Manager/CreateCest.php +++ b/tests/integration/Forms/Manager/CreateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Manager/GetSetCest.php b/tests/integration/Forms/Manager/GetSetCest.php index e301e329941..0e91720c252 100644 --- a/tests/integration/Forms/Manager/GetSetCest.php +++ b/tests/integration/Forms/Manager/GetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Forms/Manager/HasCest.php b/tests/integration/Forms/Manager/HasCest.php index f9475bf19e8..327e2aeb825 100644 --- a/tests/integration/Forms/Manager/HasCest.php +++ b/tests/integration/Forms/Manager/HasCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Application/ConstructCest.php b/tests/integration/Mvc/Application/ConstructCest.php index e9eba1e4b3a..3479a139f68 100644 --- a/tests/integration/Mvc/Application/ConstructCest.php +++ b/tests/integration/Mvc/Application/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Mvc\Application :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcApplicationConstruct(IntegrationTester $I) diff --git a/tests/integration/Mvc/Application/GetDefaultModuleCest.php b/tests/integration/Mvc/Application/GetDefaultModuleCest.php index 0a58fab5b6e..6458638ebf9 100644 --- a/tests/integration/Mvc/Application/GetDefaultModuleCest.php +++ b/tests/integration/Mvc/Application/GetDefaultModuleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDefaultModuleCest /** * Tests Phalcon\Mvc\Application :: getDefaultModule() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcApplicationGetDefaultModule(IntegrationTester $I) diff --git a/tests/integration/Mvc/Application/GetEventsManagerCest.php b/tests/integration/Mvc/Application/GetEventsManagerCest.php index 34fc86b9b47..59071ef4b3f 100644 --- a/tests/integration/Mvc/Application/GetEventsManagerCest.php +++ b/tests/integration/Mvc/Application/GetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetEventsManagerCest /** * Tests Phalcon\Mvc\Application :: getEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcApplicationGetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Mvc/Application/GetModuleCest.php b/tests/integration/Mvc/Application/GetModuleCest.php index 5e56600d22b..8e059122dfe 100644 --- a/tests/integration/Mvc/Application/GetModuleCest.php +++ b/tests/integration/Mvc/Application/GetModuleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetModuleCest /** * Tests Phalcon\Mvc\Application :: getModule() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @author Nathan Edwards @@ -61,7 +61,7 @@ public function mvcApplicationGetModule(IntegrationTester $I) /** * Tests Phalcon\Mvc\Application :: getModule() - non-existent * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @author Nathan Edwards diff --git a/tests/integration/Mvc/Application/GetModulesCest.php b/tests/integration/Mvc/Application/GetModulesCest.php index e5e62c7d1e8..30ab6d0a599 100644 --- a/tests/integration/Mvc/Application/GetModulesCest.php +++ b/tests/integration/Mvc/Application/GetModulesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetModulesCest /** * Tests Phalcon\Mvc\Application :: getModules() - empty * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @author Nathan Edwards @@ -42,7 +42,7 @@ public function mvcApplicationGetModulesEmpty(IntegrationTester $I) /** * Tests Phalcon\Mvc\Application :: getModules() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @author Nathan Edwards diff --git a/tests/integration/Mvc/Application/GetSetDICest.php b/tests/integration/Mvc/Application/GetSetDICest.php index cbe69cdda4f..c71331ceee2 100644 --- a/tests/integration/Mvc/Application/GetSetDICest.php +++ b/tests/integration/Mvc/Application/GetSetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetSetDICest /** * Tests Phalcon\Mvc\Application :: getDI() / setDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcApplicationGetSetDI(IntegrationTester $I) diff --git a/tests/integration/Mvc/Application/HandleCest.php b/tests/integration/Mvc/Application/HandleCest.php index c4255512d45..08e17989470 100644 --- a/tests/integration/Mvc/Application/HandleCest.php +++ b/tests/integration/Mvc/Application/HandleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Application/RegisterModulesCest.php b/tests/integration/Mvc/Application/RegisterModulesCest.php index 7ad2c792997..9b2aaae1cae 100644 --- a/tests/integration/Mvc/Application/RegisterModulesCest.php +++ b/tests/integration/Mvc/Application/RegisterModulesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Application/SendCookiesOnHandleRequestCest.php b/tests/integration/Mvc/Application/SendCookiesOnHandleRequestCest.php index 96e54a5f7c3..876a2cbf387 100644 --- a/tests/integration/Mvc/Application/SendCookiesOnHandleRequestCest.php +++ b/tests/integration/Mvc/Application/SendCookiesOnHandleRequestCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SendCookiesOnHandleRequestCest /** * Tests Phalcon\Mvc\Application :: sendCookiesOnHandleRequest() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcApplicationSendCookiesOnHandleRequest(IntegrationTester $I) diff --git a/tests/integration/Mvc/Application/SendHeadersOnHandleRequestCest.php b/tests/integration/Mvc/Application/SendHeadersOnHandleRequestCest.php index 764eb037a27..f70877b6ff6 100644 --- a/tests/integration/Mvc/Application/SendHeadersOnHandleRequestCest.php +++ b/tests/integration/Mvc/Application/SendHeadersOnHandleRequestCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SendHeadersOnHandleRequestCest /** * Tests Phalcon\Mvc\Application :: sendHeadersOnHandleRequest() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcApplicationSendHeadersOnHandleRequest(IntegrationTester $I) diff --git a/tests/integration/Mvc/Application/SetDefaultModuleCest.php b/tests/integration/Mvc/Application/SetDefaultModuleCest.php index f8bdf032d8a..43386d935cb 100644 --- a/tests/integration/Mvc/Application/SetDefaultModuleCest.php +++ b/tests/integration/Mvc/Application/SetDefaultModuleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetDefaultModuleCest /** * Tests Phalcon\Mvc\Application :: setDefaultModule() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcApplicationSetDefaultModule(IntegrationTester $I) diff --git a/tests/integration/Mvc/Application/SetEventsManagerCest.php b/tests/integration/Mvc/Application/SetEventsManagerCest.php index 8524a476429..04fb220fd68 100644 --- a/tests/integration/Mvc/Application/SetEventsManagerCest.php +++ b/tests/integration/Mvc/Application/SetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetEventsManagerCest /** * Tests Phalcon\Mvc\Application :: setEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcApplicationSetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Mvc/Application/UnderscoreGetCest.php b/tests/integration/Mvc/Application/UnderscoreGetCest.php index d3d35febcb2..60d9a978cc7 100644 --- a/tests/integration/Mvc/Application/UnderscoreGetCest.php +++ b/tests/integration/Mvc/Application/UnderscoreGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class UnderscoreGetCest /** * Tests Phalcon\Mvc\Application :: __get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcApplicationUnderscoreGet(IntegrationTester $I) diff --git a/tests/integration/Mvc/Application/UseImplicitViewCest.php b/tests/integration/Mvc/Application/UseImplicitViewCest.php index f58642beaab..ebebcdb1075 100644 --- a/tests/integration/Mvc/Application/UseImplicitViewCest.php +++ b/tests/integration/Mvc/Application/UseImplicitViewCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class UseImplicitViewCest /** * Tests Phalcon\Mvc\Application :: useImplicitView() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcApplicationUseImplicitView(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/AggregateCest.php b/tests/integration/Mvc/Collection/AggregateCest.php index e959c6f649c..16e2b46669d 100644 --- a/tests/integration/Mvc/Collection/AggregateCest.php +++ b/tests/integration/Mvc/Collection/AggregateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AggregateCest /** * Tests Phalcon\Mvc\Collection :: aggregate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionAggregate(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/AppendMessageCest.php b/tests/integration/Mvc/Collection/AppendMessageCest.php index 8dab70c7426..f32baa020f6 100644 --- a/tests/integration/Mvc/Collection/AppendMessageCest.php +++ b/tests/integration/Mvc/Collection/AppendMessageCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AppendMessageCest /** * Tests Phalcon\Mvc\Collection :: appendMessage() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionAppendMessage(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/Behavior/ConstructCest.php b/tests/integration/Mvc/Collection/Behavior/ConstructCest.php index e803cd9dafe..40b720ed6b2 100644 --- a/tests/integration/Mvc/Collection/Behavior/ConstructCest.php +++ b/tests/integration/Mvc/Collection/Behavior/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Mvc\Collection\Behavior :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionBehaviorConstruct(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/Behavior/MissingMethodCest.php b/tests/integration/Mvc/Collection/Behavior/MissingMethodCest.php index 658b5bd2b44..fd757943c28 100644 --- a/tests/integration/Mvc/Collection/Behavior/MissingMethodCest.php +++ b/tests/integration/Mvc/Collection/Behavior/MissingMethodCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class MissingMethodCest /** * Tests Phalcon\Mvc\Collection\Behavior :: missingMethod() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionBehaviorMissingMethod(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/Behavior/NotifyCest.php b/tests/integration/Mvc/Collection/Behavior/NotifyCest.php index e930f40cdc6..90cf7458d71 100644 --- a/tests/integration/Mvc/Collection/Behavior/NotifyCest.php +++ b/tests/integration/Mvc/Collection/Behavior/NotifyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class NotifyCest /** * Tests Phalcon\Mvc\Collection\Behavior :: notify() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionBehaviorNotify(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/Behavior/SoftDelete/ConstructCest.php b/tests/integration/Mvc/Collection/Behavior/SoftDelete/ConstructCest.php index 7ceee7b9879..9566624f921 100644 --- a/tests/integration/Mvc/Collection/Behavior/SoftDelete/ConstructCest.php +++ b/tests/integration/Mvc/Collection/Behavior/SoftDelete/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Mvc\Collection\Behavior\SoftDelete :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionBehaviorSoftdeleteConstruct(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/Behavior/SoftDelete/MissingMethodCest.php b/tests/integration/Mvc/Collection/Behavior/SoftDelete/MissingMethodCest.php index 6c9102ac9a7..426c28d393c 100644 --- a/tests/integration/Mvc/Collection/Behavior/SoftDelete/MissingMethodCest.php +++ b/tests/integration/Mvc/Collection/Behavior/SoftDelete/MissingMethodCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class MissingMethodCest /** * Tests Phalcon\Mvc\Collection\Behavior\SoftDelete :: missingMethod() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionBehaviorSoftdeleteMissingMethod(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/Behavior/SoftDelete/NotifyCest.php b/tests/integration/Mvc/Collection/Behavior/SoftDelete/NotifyCest.php index 862e235aad8..14c8d4ab246 100644 --- a/tests/integration/Mvc/Collection/Behavior/SoftDelete/NotifyCest.php +++ b/tests/integration/Mvc/Collection/Behavior/SoftDelete/NotifyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class NotifyCest /** * Tests Phalcon\Mvc\Collection\Behavior\SoftDelete :: notify() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionBehaviorSoftdeleteNotify(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/Behavior/Timestampable/ConstructCest.php b/tests/integration/Mvc/Collection/Behavior/Timestampable/ConstructCest.php index e839f419af2..a7daaa94630 100644 --- a/tests/integration/Mvc/Collection/Behavior/Timestampable/ConstructCest.php +++ b/tests/integration/Mvc/Collection/Behavior/Timestampable/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Mvc\Collection\Behavior\Timestampable :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionBehaviorTimestampableConstruct(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/Behavior/Timestampable/MissingMethodCest.php b/tests/integration/Mvc/Collection/Behavior/Timestampable/MissingMethodCest.php index a7718816b45..780f777c249 100644 --- a/tests/integration/Mvc/Collection/Behavior/Timestampable/MissingMethodCest.php +++ b/tests/integration/Mvc/Collection/Behavior/Timestampable/MissingMethodCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class MissingMethodCest /** * Tests Phalcon\Mvc\Collection\Behavior\Timestampable :: missingMethod() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionBehaviorTimestampableMissingMethod(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/Behavior/Timestampable/NotifyCest.php b/tests/integration/Mvc/Collection/Behavior/Timestampable/NotifyCest.php index d7b83f5675b..469a5bd8bf8 100644 --- a/tests/integration/Mvc/Collection/Behavior/Timestampable/NotifyCest.php +++ b/tests/integration/Mvc/Collection/Behavior/Timestampable/NotifyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class NotifyCest /** * Tests Phalcon\Mvc\Collection\Behavior\Timestampable :: notify() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionBehaviorTimestampableNotify(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/CloneResultCest.php b/tests/integration/Mvc/Collection/CloneResultCest.php index 3cf43d83db5..2e7c8fe16b3 100644 --- a/tests/integration/Mvc/Collection/CloneResultCest.php +++ b/tests/integration/Mvc/Collection/CloneResultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CloneResultCest /** * Tests Phalcon\Mvc\Collection :: cloneResult() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionCloneResult(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/ConstructCest.php b/tests/integration/Mvc/Collection/ConstructCest.php index 41ab9ed654a..5ae30ec0db8 100644 --- a/tests/integration/Mvc/Collection/ConstructCest.php +++ b/tests/integration/Mvc/Collection/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Mvc\Collection :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionConstruct(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/CountCest.php b/tests/integration/Mvc/Collection/CountCest.php index 0c7d4de673d..474c0cf0a04 100644 --- a/tests/integration/Mvc/Collection/CountCest.php +++ b/tests/integration/Mvc/Collection/CountCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CountCest /** * Tests Phalcon\Mvc\Collection :: count() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionCount(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/CreateCest.php b/tests/integration/Mvc/Collection/CreateCest.php index 22abaff588d..f613dda5633 100644 --- a/tests/integration/Mvc/Collection/CreateCest.php +++ b/tests/integration/Mvc/Collection/CreateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CreateCest /** * Tests Phalcon\Mvc\Collection :: create() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionCreate(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/CreateIfNotExistCest.php b/tests/integration/Mvc/Collection/CreateIfNotExistCest.php index 81f62a6d29a..641af06997a 100644 --- a/tests/integration/Mvc/Collection/CreateIfNotExistCest.php +++ b/tests/integration/Mvc/Collection/CreateIfNotExistCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CreateIfNotExistCest /** * Tests Phalcon\Mvc\Collection :: createIfNotExist() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionCreateIfNotExist(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/DeleteCest.php b/tests/integration/Mvc/Collection/DeleteCest.php index fcdaa1a39fb..da6bc05488f 100644 --- a/tests/integration/Mvc/Collection/DeleteCest.php +++ b/tests/integration/Mvc/Collection/DeleteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class DeleteCest /** * Tests Phalcon\Mvc\Collection :: delete() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionDelete(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/Document/OffsetExistsCest.php b/tests/integration/Mvc/Collection/Document/OffsetExistsCest.php index f6699b9ef84..dc2fdd6b021 100644 --- a/tests/integration/Mvc/Collection/Document/OffsetExistsCest.php +++ b/tests/integration/Mvc/Collection/Document/OffsetExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OffsetExistsCest /** * Tests Phalcon\Mvc\Collection\Document :: offsetExists() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionDocumentOffsetExists(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/Document/OffsetGetCest.php b/tests/integration/Mvc/Collection/Document/OffsetGetCest.php index 7f9276d58b7..989dcd14308 100644 --- a/tests/integration/Mvc/Collection/Document/OffsetGetCest.php +++ b/tests/integration/Mvc/Collection/Document/OffsetGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OffsetGetCest /** * Tests Phalcon\Mvc\Collection\Document :: offsetGet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionDocumentOffsetGet(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/Document/OffsetSetCest.php b/tests/integration/Mvc/Collection/Document/OffsetSetCest.php index 3704d296716..b9864e1f025 100644 --- a/tests/integration/Mvc/Collection/Document/OffsetSetCest.php +++ b/tests/integration/Mvc/Collection/Document/OffsetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OffsetSetCest /** * Tests Phalcon\Mvc\Collection\Document :: offsetSet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionDocumentOffsetSet(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/Document/OffsetUnsetCest.php b/tests/integration/Mvc/Collection/Document/OffsetUnsetCest.php index 05f414bb0ef..46c79ddb9c7 100644 --- a/tests/integration/Mvc/Collection/Document/OffsetUnsetCest.php +++ b/tests/integration/Mvc/Collection/Document/OffsetUnsetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OffsetUnsetCest /** * Tests Phalcon\Mvc\Collection\Document :: offsetUnset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionDocumentOffsetUnset(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/Document/ReadAttributeCest.php b/tests/integration/Mvc/Collection/Document/ReadAttributeCest.php index 05d1054a596..4dc2a795fd6 100644 --- a/tests/integration/Mvc/Collection/Document/ReadAttributeCest.php +++ b/tests/integration/Mvc/Collection/Document/ReadAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ReadAttributeCest /** * Tests Phalcon\Mvc\Collection\Document :: readAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionDocumentReadAttribute(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/Document/ToArrayCest.php b/tests/integration/Mvc/Collection/Document/ToArrayCest.php index 057d9b7bf33..0953e6024cd 100644 --- a/tests/integration/Mvc/Collection/Document/ToArrayCest.php +++ b/tests/integration/Mvc/Collection/Document/ToArrayCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ToArrayCest /** * Tests Phalcon\Mvc\Collection\Document :: toArray() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionDocumentToArray(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/Document/WriteAttributeCest.php b/tests/integration/Mvc/Collection/Document/WriteAttributeCest.php index 41069f76e10..d3222f9f9af 100644 --- a/tests/integration/Mvc/Collection/Document/WriteAttributeCest.php +++ b/tests/integration/Mvc/Collection/Document/WriteAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class WriteAttributeCest /** * Tests Phalcon\Mvc\Collection\Document :: writeAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionDocumentWriteAttribute(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/FindByIdCest.php b/tests/integration/Mvc/Collection/FindByIdCest.php index 5b092858d3d..dce91530e84 100644 --- a/tests/integration/Mvc/Collection/FindByIdCest.php +++ b/tests/integration/Mvc/Collection/FindByIdCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class FindByIdCest /** * Tests Phalcon\Mvc\Collection :: findById() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionFindById(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/FindCest.php b/tests/integration/Mvc/Collection/FindCest.php index 7196217e05c..3e281c35d83 100644 --- a/tests/integration/Mvc/Collection/FindCest.php +++ b/tests/integration/Mvc/Collection/FindCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class FindCest /** * Tests Phalcon\Mvc\Collection :: find() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionFind(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/FindFirstCest.php b/tests/integration/Mvc/Collection/FindFirstCest.php index fa5ed276517..92d067a0cb2 100644 --- a/tests/integration/Mvc/Collection/FindFirstCest.php +++ b/tests/integration/Mvc/Collection/FindFirstCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class FindFirstCest /** * Tests Phalcon\Mvc\Collection :: findFirst() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionFindFirst(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/FireEventCancelCest.php b/tests/integration/Mvc/Collection/FireEventCancelCest.php index fddbe6c9bc2..f4a945ddae4 100644 --- a/tests/integration/Mvc/Collection/FireEventCancelCest.php +++ b/tests/integration/Mvc/Collection/FireEventCancelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class FireEventCancelCest /** * Tests Phalcon\Mvc\Collection :: fireEventCancel() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionFireEventCancel(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/FireEventCest.php b/tests/integration/Mvc/Collection/FireEventCest.php index 9f8a29615ab..93d1df6af9b 100644 --- a/tests/integration/Mvc/Collection/FireEventCest.php +++ b/tests/integration/Mvc/Collection/FireEventCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class FireEventCest /** * Tests Phalcon\Mvc\Collection :: fireEvent() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionFireEvent(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/GetCollectionManagerCest.php b/tests/integration/Mvc/Collection/GetCollectionManagerCest.php index c4c33a4d286..2fa887a021a 100644 --- a/tests/integration/Mvc/Collection/GetCollectionManagerCest.php +++ b/tests/integration/Mvc/Collection/GetCollectionManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetCollectionManagerCest /** * Tests Phalcon\Mvc\Collection :: getCollectionManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionGetCollectionManager(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/GetConnectionCest.php b/tests/integration/Mvc/Collection/GetConnectionCest.php index 165f6da6aa2..22a0d9297e1 100644 --- a/tests/integration/Mvc/Collection/GetConnectionCest.php +++ b/tests/integration/Mvc/Collection/GetConnectionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetConnectionCest /** * Tests Phalcon\Mvc\Collection :: getConnection() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionGetConnection(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/GetConnectionServiceCest.php b/tests/integration/Mvc/Collection/GetConnectionServiceCest.php index 8d6a020caa4..fffeacd5baf 100644 --- a/tests/integration/Mvc/Collection/GetConnectionServiceCest.php +++ b/tests/integration/Mvc/Collection/GetConnectionServiceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetConnectionServiceCest /** * Tests Phalcon\Mvc\Collection :: getConnectionService() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionGetConnectionService(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/GetDICest.php b/tests/integration/Mvc/Collection/GetDICest.php index 99dfb611cb3..5764ab59f28 100644 --- a/tests/integration/Mvc/Collection/GetDICest.php +++ b/tests/integration/Mvc/Collection/GetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDICest /** * Tests Phalcon\Mvc\Collection :: getDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionGetDI(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/GetDirtyStateCest.php b/tests/integration/Mvc/Collection/GetDirtyStateCest.php index cb4305480b9..89928ec98d2 100644 --- a/tests/integration/Mvc/Collection/GetDirtyStateCest.php +++ b/tests/integration/Mvc/Collection/GetDirtyStateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDirtyStateCest /** * Tests Phalcon\Mvc\Collection :: getDirtyState() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionGetDirtyState(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/GetIdCest.php b/tests/integration/Mvc/Collection/GetIdCest.php index 27b8c730353..59bf6c28c42 100644 --- a/tests/integration/Mvc/Collection/GetIdCest.php +++ b/tests/integration/Mvc/Collection/GetIdCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetIdCest /** * Tests Phalcon\Mvc\Collection :: getId() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionGetId(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/GetMessagesCest.php b/tests/integration/Mvc/Collection/GetMessagesCest.php index 8663a0151d5..7eda678ef28 100644 --- a/tests/integration/Mvc/Collection/GetMessagesCest.php +++ b/tests/integration/Mvc/Collection/GetMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetMessagesCest /** * Tests Phalcon\Mvc\Collection :: getMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionGetMessages(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/GetReservedAttributesCest.php b/tests/integration/Mvc/Collection/GetReservedAttributesCest.php index bf469e944f4..ba8aa1a0708 100644 --- a/tests/integration/Mvc/Collection/GetReservedAttributesCest.php +++ b/tests/integration/Mvc/Collection/GetReservedAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetReservedAttributesCest /** * Tests Phalcon\Mvc\Collection :: getReservedAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionGetReservedAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/GetSourceCest.php b/tests/integration/Mvc/Collection/GetSourceCest.php index c6bd9ba3a69..611d82419b2 100644 --- a/tests/integration/Mvc/Collection/GetSourceCest.php +++ b/tests/integration/Mvc/Collection/GetSourceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetSourceCest /** * Tests Phalcon\Mvc\Collection :: getSource() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionGetSource(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/Manager/AddBehaviorCest.php b/tests/integration/Mvc/Collection/Manager/AddBehaviorCest.php index c223b779122..9d833ef34c1 100644 --- a/tests/integration/Mvc/Collection/Manager/AddBehaviorCest.php +++ b/tests/integration/Mvc/Collection/Manager/AddBehaviorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddBehaviorCest /** * Tests Phalcon\Mvc\Collection\Manager :: addBehavior() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionManagerAddBehavior(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/Manager/GetConnectionCest.php b/tests/integration/Mvc/Collection/Manager/GetConnectionCest.php index 82e0d59e684..403b23e712a 100644 --- a/tests/integration/Mvc/Collection/Manager/GetConnectionCest.php +++ b/tests/integration/Mvc/Collection/Manager/GetConnectionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetConnectionCest /** * Tests Phalcon\Mvc\Collection\Manager :: getConnection() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionManagerGetConnection(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/Manager/GetConnectionServiceCest.php b/tests/integration/Mvc/Collection/Manager/GetConnectionServiceCest.php index 60e39a8a70d..fd6517bab51 100644 --- a/tests/integration/Mvc/Collection/Manager/GetConnectionServiceCest.php +++ b/tests/integration/Mvc/Collection/Manager/GetConnectionServiceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetConnectionServiceCest /** * Tests Phalcon\Mvc\Collection\Manager :: getConnectionService() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionManagerGetConnectionService(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/Manager/GetCustomEventsManagerCest.php b/tests/integration/Mvc/Collection/Manager/GetCustomEventsManagerCest.php index e577b4e416c..075b448f099 100644 --- a/tests/integration/Mvc/Collection/Manager/GetCustomEventsManagerCest.php +++ b/tests/integration/Mvc/Collection/Manager/GetCustomEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetCustomEventsManagerCest /** * Tests Phalcon\Mvc\Collection\Manager :: getCustomEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionManagerGetCustomEventsManager(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/Manager/GetDICest.php b/tests/integration/Mvc/Collection/Manager/GetDICest.php index ed9a92ebeea..f81c4983387 100644 --- a/tests/integration/Mvc/Collection/Manager/GetDICest.php +++ b/tests/integration/Mvc/Collection/Manager/GetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDICest /** * Tests Phalcon\Mvc\Collection\Manager :: getDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionManagerGetDI(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/Manager/GetEventsManagerCest.php b/tests/integration/Mvc/Collection/Manager/GetEventsManagerCest.php index f211e5681e8..fab9ecd16dc 100644 --- a/tests/integration/Mvc/Collection/Manager/GetEventsManagerCest.php +++ b/tests/integration/Mvc/Collection/Manager/GetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetEventsManagerCest /** * Tests Phalcon\Mvc\Collection\Manager :: getEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionManagerGetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/Manager/GetLastInitializedCest.php b/tests/integration/Mvc/Collection/Manager/GetLastInitializedCest.php index 8ebe73f91f5..9e700a8e381 100644 --- a/tests/integration/Mvc/Collection/Manager/GetLastInitializedCest.php +++ b/tests/integration/Mvc/Collection/Manager/GetLastInitializedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetLastInitializedCest /** * Tests Phalcon\Mvc\Collection\Manager :: getLastInitialized() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionManagerGetLastInitialized(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/Manager/GetServiceNameCest.php b/tests/integration/Mvc/Collection/Manager/GetServiceNameCest.php index 73b4b890e4d..fcb02c878d6 100644 --- a/tests/integration/Mvc/Collection/Manager/GetServiceNameCest.php +++ b/tests/integration/Mvc/Collection/Manager/GetServiceNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetServiceNameCest /** * Tests Phalcon\Mvc\Collection\Manager :: getServiceName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionManagerGetServiceName(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/Manager/InitializeCest.php b/tests/integration/Mvc/Collection/Manager/InitializeCest.php index eb1209ab4b0..5078fc7fcba 100644 --- a/tests/integration/Mvc/Collection/Manager/InitializeCest.php +++ b/tests/integration/Mvc/Collection/Manager/InitializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class InitializeCest /** * Tests Phalcon\Mvc\Collection\Manager :: initialize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionManagerInitialize(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/Manager/IsInitializedCest.php b/tests/integration/Mvc/Collection/Manager/IsInitializedCest.php index b00e73740cd..570370cf3fc 100644 --- a/tests/integration/Mvc/Collection/Manager/IsInitializedCest.php +++ b/tests/integration/Mvc/Collection/Manager/IsInitializedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class IsInitializedCest /** * Tests Phalcon\Mvc\Collection\Manager :: isInitialized() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionManagerIsInitialized(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/Manager/IsUsingImplicitObjectIdsCest.php b/tests/integration/Mvc/Collection/Manager/IsUsingImplicitObjectIdsCest.php index d2b1b122277..a0ad6758ca3 100644 --- a/tests/integration/Mvc/Collection/Manager/IsUsingImplicitObjectIdsCest.php +++ b/tests/integration/Mvc/Collection/Manager/IsUsingImplicitObjectIdsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class IsUsingImplicitObjectIdsCest /** * Tests Phalcon\Mvc\Collection\Manager :: isUsingImplicitObjectIds() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionManagerIsUsingImplicitObjectIds(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/Manager/MissingMethodCest.php b/tests/integration/Mvc/Collection/Manager/MissingMethodCest.php index 8f65c29de91..ee0a461146c 100644 --- a/tests/integration/Mvc/Collection/Manager/MissingMethodCest.php +++ b/tests/integration/Mvc/Collection/Manager/MissingMethodCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class MissingMethodCest /** * Tests Phalcon\Mvc\Collection\Manager :: missingMethod() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionManagerMissingMethod(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/Manager/NotifyEventCest.php b/tests/integration/Mvc/Collection/Manager/NotifyEventCest.php index de8817fecb6..401de61de9a 100644 --- a/tests/integration/Mvc/Collection/Manager/NotifyEventCest.php +++ b/tests/integration/Mvc/Collection/Manager/NotifyEventCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class NotifyEventCest /** * Tests Phalcon\Mvc\Collection\Manager :: notifyEvent() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionManagerNotifyEvent(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/Manager/SetConnectionServiceCest.php b/tests/integration/Mvc/Collection/Manager/SetConnectionServiceCest.php index ed6da5265ba..10e8dec996c 100644 --- a/tests/integration/Mvc/Collection/Manager/SetConnectionServiceCest.php +++ b/tests/integration/Mvc/Collection/Manager/SetConnectionServiceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetConnectionServiceCest /** * Tests Phalcon\Mvc\Collection\Manager :: setConnectionService() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionManagerSetConnectionService(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/Manager/SetCustomEventsManagerCest.php b/tests/integration/Mvc/Collection/Manager/SetCustomEventsManagerCest.php index 7d237b2bee6..da35523c320 100644 --- a/tests/integration/Mvc/Collection/Manager/SetCustomEventsManagerCest.php +++ b/tests/integration/Mvc/Collection/Manager/SetCustomEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetCustomEventsManagerCest /** * Tests Phalcon\Mvc\Collection\Manager :: setCustomEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionManagerSetCustomEventsManager(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/Manager/SetDICest.php b/tests/integration/Mvc/Collection/Manager/SetDICest.php index 56a2ccb66ac..e1c3ca7d014 100644 --- a/tests/integration/Mvc/Collection/Manager/SetDICest.php +++ b/tests/integration/Mvc/Collection/Manager/SetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetDICest /** * Tests Phalcon\Mvc\Collection\Manager :: setDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionManagerSetDI(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/Manager/SetEventsManagerCest.php b/tests/integration/Mvc/Collection/Manager/SetEventsManagerCest.php index 21f1b8d8c09..8c8039a0b14 100644 --- a/tests/integration/Mvc/Collection/Manager/SetEventsManagerCest.php +++ b/tests/integration/Mvc/Collection/Manager/SetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetEventsManagerCest /** * Tests Phalcon\Mvc\Collection\Manager :: setEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionManagerSetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/Manager/SetServiceNameCest.php b/tests/integration/Mvc/Collection/Manager/SetServiceNameCest.php index 372037f61bb..0ee3e973887 100644 --- a/tests/integration/Mvc/Collection/Manager/SetServiceNameCest.php +++ b/tests/integration/Mvc/Collection/Manager/SetServiceNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetServiceNameCest /** * Tests Phalcon\Mvc\Collection\Manager :: setServiceName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionManagerSetServiceName(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/Manager/UseImplicitObjectIdsCest.php b/tests/integration/Mvc/Collection/Manager/UseImplicitObjectIdsCest.php index 8916960ad98..4479d713909 100644 --- a/tests/integration/Mvc/Collection/Manager/UseImplicitObjectIdsCest.php +++ b/tests/integration/Mvc/Collection/Manager/UseImplicitObjectIdsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class UseImplicitObjectIdsCest /** * Tests Phalcon\Mvc\Collection\Manager :: useImplicitObjectIds() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionManagerUseImplicitObjectIds(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/ReadAttributeCest.php b/tests/integration/Mvc/Collection/ReadAttributeCest.php index 397cf419617..6a63d1fe970 100644 --- a/tests/integration/Mvc/Collection/ReadAttributeCest.php +++ b/tests/integration/Mvc/Collection/ReadAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ReadAttributeCest /** * Tests Phalcon\Mvc\Collection :: readAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionReadAttribute(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/Refactor-BehaviorCest.php b/tests/integration/Mvc/Collection/Refactor-BehaviorCest.php index 073e21c7845..4cab4b690c7 100644 --- a/tests/integration/Mvc/Collection/Refactor-BehaviorCest.php +++ b/tests/integration/Mvc/Collection/Refactor-BehaviorCest.php @@ -11,15 +11,15 @@ * Tests the Phalcon\Mvc\Collection component * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Phalcon Team + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Phalcon Team * * The contents of this file are subject to the New BSD License that is * bundled with this package in the file 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class BehaviorCest diff --git a/tests/integration/Mvc/Collection/SaveCest.php b/tests/integration/Mvc/Collection/SaveCest.php index bf0062f064d..1d11e055723 100644 --- a/tests/integration/Mvc/Collection/SaveCest.php +++ b/tests/integration/Mvc/Collection/SaveCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SaveCest /** * Tests Phalcon\Mvc\Collection :: save() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionSave(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/SerializeCest.php b/tests/integration/Mvc/Collection/SerializeCest.php index 5a9f3ae2584..9e2c78b6967 100644 --- a/tests/integration/Mvc/Collection/SerializeCest.php +++ b/tests/integration/Mvc/Collection/SerializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SerializeCest /** * Tests Phalcon\Mvc\Collection :: serialize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionSerialize(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/SetConnectionServiceCest.php b/tests/integration/Mvc/Collection/SetConnectionServiceCest.php index df1bba629e5..09131634cc1 100644 --- a/tests/integration/Mvc/Collection/SetConnectionServiceCest.php +++ b/tests/integration/Mvc/Collection/SetConnectionServiceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetConnectionServiceCest /** * Tests Phalcon\Mvc\Collection :: setConnectionService() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionSetConnectionService(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/SetDICest.php b/tests/integration/Mvc/Collection/SetDICest.php index cd1bdd94f5b..5b1a1a74355 100644 --- a/tests/integration/Mvc/Collection/SetDICest.php +++ b/tests/integration/Mvc/Collection/SetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetDICest /** * Tests Phalcon\Mvc\Collection :: setDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionSetDI(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/SetDirtyStateCest.php b/tests/integration/Mvc/Collection/SetDirtyStateCest.php index 7887b2fcc4d..0c352561f6b 100644 --- a/tests/integration/Mvc/Collection/SetDirtyStateCest.php +++ b/tests/integration/Mvc/Collection/SetDirtyStateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetDirtyStateCest /** * Tests Phalcon\Mvc\Collection :: setDirtyState() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionSetDirtyState(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/SetIdCest.php b/tests/integration/Mvc/Collection/SetIdCest.php index 5e751cad335..606d2f1ec14 100644 --- a/tests/integration/Mvc/Collection/SetIdCest.php +++ b/tests/integration/Mvc/Collection/SetIdCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetIdCest /** * Tests Phalcon\Mvc\Collection :: setId() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionSetId(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/SkipOperationCest.php b/tests/integration/Mvc/Collection/SkipOperationCest.php index ff859a3d211..961261299b3 100644 --- a/tests/integration/Mvc/Collection/SkipOperationCest.php +++ b/tests/integration/Mvc/Collection/SkipOperationCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SkipOperationCest /** * Tests Phalcon\Mvc\Collection :: skipOperation() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionSkipOperation(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/SummatoryCest.php b/tests/integration/Mvc/Collection/SummatoryCest.php index d1464a03beb..2409116f8d3 100644 --- a/tests/integration/Mvc/Collection/SummatoryCest.php +++ b/tests/integration/Mvc/Collection/SummatoryCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SummatoryCest /** * Tests Phalcon\Mvc\Collection :: summatory() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionSummatory(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/ToArrayCest.php b/tests/integration/Mvc/Collection/ToArrayCest.php index 8b285f1a97e..d446544e010 100644 --- a/tests/integration/Mvc/Collection/ToArrayCest.php +++ b/tests/integration/Mvc/Collection/ToArrayCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ToArrayCest /** * Tests Phalcon\Mvc\Collection :: toArray() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionToArray(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/UnserializeCest.php b/tests/integration/Mvc/Collection/UnserializeCest.php index 225150bd4e9..dfbcdc6a568 100644 --- a/tests/integration/Mvc/Collection/UnserializeCest.php +++ b/tests/integration/Mvc/Collection/UnserializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class UnserializeCest /** * Tests Phalcon\Mvc\Collection :: unserialize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionUnserialize(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/UpdateCest.php b/tests/integration/Mvc/Collection/UpdateCest.php index 3e90d759c76..d24dea265a6 100644 --- a/tests/integration/Mvc/Collection/UpdateCest.php +++ b/tests/integration/Mvc/Collection/UpdateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class UpdateCest /** * Tests Phalcon\Mvc\Collection :: update() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionUpdate(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/ValidationHasFailedCest.php b/tests/integration/Mvc/Collection/ValidationHasFailedCest.php index 25248426dd8..3d70047b1fe 100644 --- a/tests/integration/Mvc/Collection/ValidationHasFailedCest.php +++ b/tests/integration/Mvc/Collection/ValidationHasFailedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ValidationHasFailedCest /** * Tests Phalcon\Mvc\Collection :: validationHasFailed() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionValidationHasFailed(IntegrationTester $I) diff --git a/tests/integration/Mvc/Collection/WriteAttributeCest.php b/tests/integration/Mvc/Collection/WriteAttributeCest.php index 0d8488f0c4f..ddda6e71927 100644 --- a/tests/integration/Mvc/Collection/WriteAttributeCest.php +++ b/tests/integration/Mvc/Collection/WriteAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class WriteAttributeCest /** * Tests Phalcon\Mvc\Collection :: writeAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcCollectionWriteAttribute(IntegrationTester $I) diff --git a/tests/integration/Mvc/Controller/ConstructCest.php b/tests/integration/Mvc/Controller/ConstructCest.php index 3100fa1a96c..e831eb7cbaa 100644 --- a/tests/integration/Mvc/Controller/ConstructCest.php +++ b/tests/integration/Mvc/Controller/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Mvc\Controller :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcControllerConstruct(IntegrationTester $I) diff --git a/tests/integration/Mvc/Controller/GetDICest.php b/tests/integration/Mvc/Controller/GetDICest.php index faa3e32efdc..5c9bc5ced0c 100644 --- a/tests/integration/Mvc/Controller/GetDICest.php +++ b/tests/integration/Mvc/Controller/GetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDICest /** * Tests Phalcon\Mvc\Controller :: getDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcControllerGetDI(IntegrationTester $I) diff --git a/tests/integration/Mvc/Controller/GetEventsManagerCest.php b/tests/integration/Mvc/Controller/GetEventsManagerCest.php index 3c4a8f9acff..6dffe213617 100644 --- a/tests/integration/Mvc/Controller/GetEventsManagerCest.php +++ b/tests/integration/Mvc/Controller/GetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetEventsManagerCest /** * Tests Phalcon\Mvc\Controller :: getEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcControllerGetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Mvc/Controller/SetDICest.php b/tests/integration/Mvc/Controller/SetDICest.php index fe57c7646c7..e4370d9ae49 100644 --- a/tests/integration/Mvc/Controller/SetDICest.php +++ b/tests/integration/Mvc/Controller/SetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetDICest /** * Tests Phalcon\Mvc\Controller :: setDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcControllerSetDI(IntegrationTester $I) diff --git a/tests/integration/Mvc/Controller/SetEventsManagerCest.php b/tests/integration/Mvc/Controller/SetEventsManagerCest.php index d90f1d1ea71..23aa7434945 100644 --- a/tests/integration/Mvc/Controller/SetEventsManagerCest.php +++ b/tests/integration/Mvc/Controller/SetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetEventsManagerCest /** * Tests Phalcon\Mvc\Controller :: setEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcControllerSetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Mvc/Controller/UnderscoreGetCest.php b/tests/integration/Mvc/Controller/UnderscoreGetCest.php index 1e22a124136..aee73721671 100644 --- a/tests/integration/Mvc/Controller/UnderscoreGetCest.php +++ b/tests/integration/Mvc/Controller/UnderscoreGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class UnderscoreGetCest /** * Tests Phalcon\Mvc\Controller :: __get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcControllerUnderscoreGet(IntegrationTester $I) diff --git a/tests/integration/Mvc/Dispatcher/CallActionMethodCest.php b/tests/integration/Mvc/Dispatcher/CallActionMethodCest.php index 403720d7372..012efb8ba20 100644 --- a/tests/integration/Mvc/Dispatcher/CallActionMethodCest.php +++ b/tests/integration/Mvc/Dispatcher/CallActionMethodCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Dispatcher/DispatchCest.php b/tests/integration/Mvc/Dispatcher/DispatchCest.php index 5d060842ac6..64d7ff0a0a3 100644 --- a/tests/integration/Mvc/Dispatcher/DispatchCest.php +++ b/tests/integration/Mvc/Dispatcher/DispatchCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Dispatcher/ForwardCest.php b/tests/integration/Mvc/Dispatcher/ForwardCest.php index ec90e904200..5795b6bf37c 100644 --- a/tests/integration/Mvc/Dispatcher/ForwardCest.php +++ b/tests/integration/Mvc/Dispatcher/ForwardCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ForwardCest /** * Tests Phalcon\Mvc\Dispatcher :: forward() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcDispatcherForward(IntegrationTester $I) diff --git a/tests/integration/Mvc/Dispatcher/GetActionSuffixCest.php b/tests/integration/Mvc/Dispatcher/GetActionSuffixCest.php index 140590042b4..de52e627a40 100644 --- a/tests/integration/Mvc/Dispatcher/GetActionSuffixCest.php +++ b/tests/integration/Mvc/Dispatcher/GetActionSuffixCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetActionSuffixCest /** * Tests Phalcon\Mvc\Dispatcher :: getActionSuffix() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcDispatcherGetActionSuffix(IntegrationTester $I) diff --git a/tests/integration/Mvc/Dispatcher/GetActiveControllerCest.php b/tests/integration/Mvc/Dispatcher/GetActiveControllerCest.php index e6fbbb56048..5d569c23a56 100644 --- a/tests/integration/Mvc/Dispatcher/GetActiveControllerCest.php +++ b/tests/integration/Mvc/Dispatcher/GetActiveControllerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetActiveControllerCest /** * Tests Phalcon\Mvc\Dispatcher :: getActiveController() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcDispatcherGetActiveController(IntegrationTester $I) diff --git a/tests/integration/Mvc/Dispatcher/GetActiveMethodCest.php b/tests/integration/Mvc/Dispatcher/GetActiveMethodCest.php index 3886ae2eaa8..c6097f738a4 100644 --- a/tests/integration/Mvc/Dispatcher/GetActiveMethodCest.php +++ b/tests/integration/Mvc/Dispatcher/GetActiveMethodCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetActiveMethodCest /** * Tests Phalcon\Mvc\Dispatcher :: getActiveMethod() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcDispatcherGetActiveMethod(IntegrationTester $I) diff --git a/tests/integration/Mvc/Dispatcher/GetBoundModelsCest.php b/tests/integration/Mvc/Dispatcher/GetBoundModelsCest.php index 91453b696bb..2de5f048ede 100644 --- a/tests/integration/Mvc/Dispatcher/GetBoundModelsCest.php +++ b/tests/integration/Mvc/Dispatcher/GetBoundModelsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetBoundModelsCest /** * Tests Phalcon\Mvc\Dispatcher :: getBoundModels() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcDispatcherGetBoundModels(IntegrationTester $I) diff --git a/tests/integration/Mvc/Dispatcher/GetControllerClassCest.php b/tests/integration/Mvc/Dispatcher/GetControllerClassCest.php index a2d8d03ab4b..53d0358abbc 100644 --- a/tests/integration/Mvc/Dispatcher/GetControllerClassCest.php +++ b/tests/integration/Mvc/Dispatcher/GetControllerClassCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -37,12 +37,12 @@ public function mvcDispatcherGetControllerClass(IntegrationTester $I) 'Foo', $dispatcher->getNamespaceName() ); - + $I->assertEquals( '', $dispatcher->getControllerName() ); - + $I->assertEquals( '', $dispatcher->getActionName() diff --git a/tests/integration/Mvc/Dispatcher/GetControllerNameCest.php b/tests/integration/Mvc/Dispatcher/GetControllerNameCest.php index 3b8c5c206e7..89843634ed8 100644 --- a/tests/integration/Mvc/Dispatcher/GetControllerNameCest.php +++ b/tests/integration/Mvc/Dispatcher/GetControllerNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetControllerNameCest /** * Tests Phalcon\Mvc\Dispatcher :: getControllerName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcDispatcherGetControllerName(IntegrationTester $I) diff --git a/tests/integration/Mvc/Dispatcher/GetDefaultNamespaceCest.php b/tests/integration/Mvc/Dispatcher/GetDefaultNamespaceCest.php index 7fe4608b68f..0ad594e83fa 100644 --- a/tests/integration/Mvc/Dispatcher/GetDefaultNamespaceCest.php +++ b/tests/integration/Mvc/Dispatcher/GetDefaultNamespaceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetDefaultNamespaceCest /** * Tests Phalcon\Mvc\Dispatcher :: getDefaultNamespace() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcDispatcherGetDefaultNamespace(IntegrationTester $I) diff --git a/tests/integration/Mvc/Dispatcher/GetEventsManagerCest.php b/tests/integration/Mvc/Dispatcher/GetEventsManagerCest.php index ad9efc363e0..7c56e53be7b 100644 --- a/tests/integration/Mvc/Dispatcher/GetEventsManagerCest.php +++ b/tests/integration/Mvc/Dispatcher/GetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetEventsManagerCest /** * Tests Phalcon\Mvc\Dispatcher :: getEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcDispatcherGetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Mvc/Dispatcher/GetHandlerClassCest.php b/tests/integration/Mvc/Dispatcher/GetHandlerClassCest.php index b9b8aaa9018..d2c23a10759 100644 --- a/tests/integration/Mvc/Dispatcher/GetHandlerClassCest.php +++ b/tests/integration/Mvc/Dispatcher/GetHandlerClassCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetHandlerClassCest /** * Tests Phalcon\Mvc\Dispatcher :: getHandlerClass() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcDispatcherGetHandlerClass(IntegrationTester $I) diff --git a/tests/integration/Mvc/Dispatcher/GetHandlerSuffixCest.php b/tests/integration/Mvc/Dispatcher/GetHandlerSuffixCest.php index 59c0fba3931..9bbc176955d 100644 --- a/tests/integration/Mvc/Dispatcher/GetHandlerSuffixCest.php +++ b/tests/integration/Mvc/Dispatcher/GetHandlerSuffixCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Dispatcher/GetLastControllerCest.php b/tests/integration/Mvc/Dispatcher/GetLastControllerCest.php index 9e8ff775bde..7036ffa5094 100644 --- a/tests/integration/Mvc/Dispatcher/GetLastControllerCest.php +++ b/tests/integration/Mvc/Dispatcher/GetLastControllerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Dispatcher/GetModelBinderCest.php b/tests/integration/Mvc/Dispatcher/GetModelBinderCest.php index 32f22a47817..60cec10e9bd 100644 --- a/tests/integration/Mvc/Dispatcher/GetModelBinderCest.php +++ b/tests/integration/Mvc/Dispatcher/GetModelBinderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetModelBinderCest /** * Tests Phalcon\Mvc\Dispatcher :: getModelBinder() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcDispatcherGetModelBinder(IntegrationTester $I) diff --git a/tests/integration/Mvc/Dispatcher/GetModuleNameCest.php b/tests/integration/Mvc/Dispatcher/GetModuleNameCest.php index 5bc5f881261..e10626278c2 100644 --- a/tests/integration/Mvc/Dispatcher/GetModuleNameCest.php +++ b/tests/integration/Mvc/Dispatcher/GetModuleNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetModuleNameCest /** * Tests Phalcon\Mvc\Dispatcher :: getModuleName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcDispatcherGetModuleName(IntegrationTester $I) diff --git a/tests/integration/Mvc/Dispatcher/GetNamespaceNameCest.php b/tests/integration/Mvc/Dispatcher/GetNamespaceNameCest.php index ee09c7f5787..619ee987377 100644 --- a/tests/integration/Mvc/Dispatcher/GetNamespaceNameCest.php +++ b/tests/integration/Mvc/Dispatcher/GetNamespaceNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetNamespaceNameCest /** * Tests Phalcon\Mvc\Dispatcher :: getNamespaceName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcDispatcherGetNamespaceName(IntegrationTester $I) diff --git a/tests/integration/Mvc/Dispatcher/GetParamCest.php b/tests/integration/Mvc/Dispatcher/GetParamCest.php index 0f02f6e96c9..e4cb88a3fb8 100644 --- a/tests/integration/Mvc/Dispatcher/GetParamCest.php +++ b/tests/integration/Mvc/Dispatcher/GetParamCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetParamCest /** * Tests Phalcon\Mvc\Dispatcher :: getParam() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcDispatcherGetParam(IntegrationTester $I) diff --git a/tests/integration/Mvc/Dispatcher/GetParamsCest.php b/tests/integration/Mvc/Dispatcher/GetParamsCest.php index c2f2579dcfb..368bc653fbd 100644 --- a/tests/integration/Mvc/Dispatcher/GetParamsCest.php +++ b/tests/integration/Mvc/Dispatcher/GetParamsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetParamsCest /** * Tests Phalcon\Mvc\Dispatcher :: getParams() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcDispatcherGetParams(IntegrationTester $I) diff --git a/tests/integration/Mvc/Dispatcher/GetPreviousActionNameCest.php b/tests/integration/Mvc/Dispatcher/GetPreviousActionNameCest.php index 9815e2d02ec..04fc10b4c18 100644 --- a/tests/integration/Mvc/Dispatcher/GetPreviousActionNameCest.php +++ b/tests/integration/Mvc/Dispatcher/GetPreviousActionNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetPreviousActionNameCest /** * Tests Phalcon\Mvc\Dispatcher :: getPreviousActionName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcDispatcherGetPreviousActionName(IntegrationTester $I) diff --git a/tests/integration/Mvc/Dispatcher/GetPreviousControllerNameCest.php b/tests/integration/Mvc/Dispatcher/GetPreviousControllerNameCest.php index 188675c451c..bc19c0ff3a7 100644 --- a/tests/integration/Mvc/Dispatcher/GetPreviousControllerNameCest.php +++ b/tests/integration/Mvc/Dispatcher/GetPreviousControllerNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetPreviousControllerNameCest /** * Tests Phalcon\Mvc\Dispatcher :: getPreviousControllerName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcDispatcherGetPreviousControllerName(IntegrationTester $I) diff --git a/tests/integration/Mvc/Dispatcher/GetPreviousNamespaceNameCest.php b/tests/integration/Mvc/Dispatcher/GetPreviousNamespaceNameCest.php index a750e20e8d2..97e7309a64c 100644 --- a/tests/integration/Mvc/Dispatcher/GetPreviousNamespaceNameCest.php +++ b/tests/integration/Mvc/Dispatcher/GetPreviousNamespaceNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetPreviousNamespaceNameCest /** * Tests Phalcon\Mvc\Dispatcher :: getPreviousNamespaceName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcDispatcherGetPreviousNamespaceName(IntegrationTester $I) diff --git a/tests/integration/Mvc/Dispatcher/GetReturnedValueCest.php b/tests/integration/Mvc/Dispatcher/GetReturnedValueCest.php index e3cf879cad5..a3371ad14a6 100644 --- a/tests/integration/Mvc/Dispatcher/GetReturnedValueCest.php +++ b/tests/integration/Mvc/Dispatcher/GetReturnedValueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetReturnedValueCest /** * Tests Phalcon\Mvc\Dispatcher :: getReturnedValue() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcDispatcherGetReturnedValue(IntegrationTester $I) diff --git a/tests/integration/Mvc/Dispatcher/GetSetActionNameCest.php b/tests/integration/Mvc/Dispatcher/GetSetActionNameCest.php index 0d84ba2572a..e75cb9bd153 100644 --- a/tests/integration/Mvc/Dispatcher/GetSetActionNameCest.php +++ b/tests/integration/Mvc/Dispatcher/GetSetActionNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class GetSetActionNameCest public function mvcDispatcherGetActionName(IntegrationTester $I) { $I->wantToTest('Mvc\Dispatcher - getActionName() / setActionName()'); - + $dispatcher = new Dispatcher(); $dispatcher->setActionName('login'); diff --git a/tests/integration/Mvc/Dispatcher/GetSetDICest.php b/tests/integration/Mvc/Dispatcher/GetSetDICest.php index b1b0005dcc7..d22532aada0 100644 --- a/tests/integration/Mvc/Dispatcher/GetSetDICest.php +++ b/tests/integration/Mvc/Dispatcher/GetSetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Dispatcher/HasParamCest.php b/tests/integration/Mvc/Dispatcher/HasParamCest.php index 9685fb20607..bfbaf9f4192 100644 --- a/tests/integration/Mvc/Dispatcher/HasParamCest.php +++ b/tests/integration/Mvc/Dispatcher/HasParamCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class HasParamCest /** * Tests Phalcon\Mvc\Dispatcher :: hasParam() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcDispatcherHasParam(IntegrationTester $I) diff --git a/tests/integration/Mvc/Dispatcher/Helper/BaseDispatcher.php b/tests/integration/Mvc/Dispatcher/Helper/BaseDispatcher.php index dde1f36f165..64d1b876c3e 100644 --- a/tests/integration/Mvc/Dispatcher/Helper/BaseDispatcher.php +++ b/tests/integration/Mvc/Dispatcher/Helper/BaseDispatcher.php @@ -15,15 +15,15 @@ * Phalcon\Mvc\Dispatcher, and other related components. * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Nikolaos Dimopoulos + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Nikolaos Dimopoulos * * The contents of this file are 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ abstract class BaseDispatcher diff --git a/tests/integration/Mvc/Dispatcher/Helper/DispatcherListener.php b/tests/integration/Mvc/Dispatcher/Helper/DispatcherListener.php index 3787080bd7e..6fe06bf30fe 100644 --- a/tests/integration/Mvc/Dispatcher/Helper/DispatcherListener.php +++ b/tests/integration/Mvc/Dispatcher/Helper/DispatcherListener.php @@ -11,15 +11,15 @@ * Early listener for all dispatch events. * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Nikolaos Dimopoulos + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Nikolaos Dimopoulos * * The contents of this file are 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class DispatcherListener diff --git a/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestAfterExecuteRouteExceptionController.php b/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestAfterExecuteRouteExceptionController.php index f4a346f0a94..581c75d9784 100644 --- a/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestAfterExecuteRouteExceptionController.php +++ b/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestAfterExecuteRouteExceptionController.php @@ -10,15 +10,15 @@ * Dispatcher Controller for testing different dispatch scenarios * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Nikolaos Dimopoulos + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Nikolaos Dimopoulos * * The contents of this file are 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class DispatcherTestAfterExecuteRouteExceptionController extends Controller diff --git a/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestAfterExecuteRouteForwardController.php b/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestAfterExecuteRouteForwardController.php index 824a72cc143..7e187b03578 100644 --- a/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestAfterExecuteRouteForwardController.php +++ b/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestAfterExecuteRouteForwardController.php @@ -9,15 +9,15 @@ * Dispatcher Controller for testing different dispatch scenarios * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Nikolaos Dimopoulos + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Nikolaos Dimopoulos * * The contents of this file are 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class DispatcherTestAfterExecuteRouteForwardController extends Controller diff --git a/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestAfterExecuteRouteReturnFalseController.php b/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestAfterExecuteRouteReturnFalseController.php index 433306d4668..8ff51057ea1 100644 --- a/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestAfterExecuteRouteReturnFalseController.php +++ b/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestAfterExecuteRouteReturnFalseController.php @@ -9,15 +9,15 @@ * Dispatcher Controller for testing different dispatch scenarios * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Nikolaos Dimopoulos + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Nikolaos Dimopoulos * * The contents of this file are 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class DispatcherTestAfterExecuteRouteReturnFalseController extends Controller diff --git a/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestBeforeExecuteRouteExceptionController.php b/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestBeforeExecuteRouteExceptionController.php index 0b228f6abda..4a369737493 100644 --- a/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestBeforeExecuteRouteExceptionController.php +++ b/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestBeforeExecuteRouteExceptionController.php @@ -10,15 +10,15 @@ * Dispatcher Controller for testing different dispatch scenarios * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Nikolaos Dimopoulos + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Nikolaos Dimopoulos * * The contents of this file are 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class DispatcherTestBeforeExecuteRouteExceptionController extends Controller diff --git a/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestBeforeExecuteRouteForwardController.php b/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestBeforeExecuteRouteForwardController.php index 03b63d16bb7..b0116240104 100644 --- a/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestBeforeExecuteRouteForwardController.php +++ b/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestBeforeExecuteRouteForwardController.php @@ -9,15 +9,15 @@ * Dispatcher Controller for testing different dispatch scenarios * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Nikolaos Dimopoulos + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Nikolaos Dimopoulos * * The contents of this file are 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class DispatcherTestBeforeExecuteRouteForwardController extends Controller diff --git a/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestBeforeExecuteRouteReturnFalseController.php b/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestBeforeExecuteRouteReturnFalseController.php index fba7b4ad76b..a2c0923a364 100644 --- a/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestBeforeExecuteRouteReturnFalseController.php +++ b/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestBeforeExecuteRouteReturnFalseController.php @@ -9,15 +9,15 @@ * Dispatcher Controller for testing different dispatch scenarios * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Nikolaos Dimopoulos + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Nikolaos Dimopoulos * * The contents of this file are 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class DispatcherTestBeforeExecuteRouteReturnFalseController extends Controller diff --git a/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestDefaultController.php b/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestDefaultController.php index 3c1e5d206c3..8ff2aa3445d 100644 --- a/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestDefaultController.php +++ b/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestDefaultController.php @@ -10,15 +10,15 @@ * Dispatcher Controller for testing different dispatch scenarios * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Nikolaos Dimopoulos + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Nikolaos Dimopoulos * * The contents of this file are 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class DispatcherTestDefaultController extends Controller diff --git a/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestDefaultNoNamespaceController.php b/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestDefaultNoNamespaceController.php index 82967034a2e..5d5ec08441c 100644 --- a/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestDefaultNoNamespaceController.php +++ b/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestDefaultNoNamespaceController.php @@ -10,15 +10,15 @@ * Dispatcher Controller for testing different dispatch scenarios * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Nikolaos Dimopoulos + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Nikolaos Dimopoulos * * The contents of this file are 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class DispatcherTestDefaultNoNamespaceController extends Controller diff --git a/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestDefaultSimpleController.php b/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestDefaultSimpleController.php index f89e875a72b..c9ab91e5fec 100644 --- a/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestDefaultSimpleController.php +++ b/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestDefaultSimpleController.php @@ -9,15 +9,15 @@ * Dispatcher Controller for testing different dispatch scenarios * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Nikolaos Dimopoulos + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Nikolaos Dimopoulos * * The contents of this file are 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class DispatcherTestDefaultSimpleController extends Controller diff --git a/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestDefaultTwoController.php b/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestDefaultTwoController.php index 98ae5cde1a7..ee0572aee54 100644 --- a/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestDefaultTwoController.php +++ b/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestDefaultTwoController.php @@ -9,15 +9,15 @@ * Dispatcher Controller for testing different dispatch scenarios * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Nikolaos Dimopoulos + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Nikolaos Dimopoulos * * The contents of this file are 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class DispatcherTestDefaultTwoController extends Controller diff --git a/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestInitializeExceptionController.php b/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestInitializeExceptionController.php index 57cec940c48..c8352f0eb29 100644 --- a/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestInitializeExceptionController.php +++ b/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestInitializeExceptionController.php @@ -10,15 +10,15 @@ * Dispatcher Controller for testing different dispatch scenarios * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Nikolaos Dimopoulos + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Nikolaos Dimopoulos * * The contents of this file are 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class DispatcherTestInitializeExceptionController extends Controller diff --git a/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestInitializeForwardController.php b/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestInitializeForwardController.php index 4002ea4cca5..b77d2f12b6d 100644 --- a/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestInitializeForwardController.php +++ b/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestInitializeForwardController.php @@ -9,15 +9,15 @@ * Dispatcher Controller for testing different dispatch scenarios * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Nikolaos Dimopoulos + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Nikolaos Dimopoulos * * The contents of this file are 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class DispatcherTestInitializeForwardController extends Controller diff --git a/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestInitializeReturnFalseController.php b/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestInitializeReturnFalseController.php index f5b6729e473..6872b14df45 100644 --- a/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestInitializeReturnFalseController.php +++ b/tests/integration/Mvc/Dispatcher/Helper/DispatcherTestInitializeReturnFalseController.php @@ -9,15 +9,15 @@ * Dispatcher Controller for testing different dispatch scenarios * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Nikolaos Dimopoulos + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Nikolaos Dimopoulos * * The contents of this file are 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class DispatcherTestInitializeReturnFalseController extends Controller diff --git a/tests/integration/Mvc/Dispatcher/IsFinishedCest.php b/tests/integration/Mvc/Dispatcher/IsFinishedCest.php index 9daca472e71..968cdd3ccfc 100644 --- a/tests/integration/Mvc/Dispatcher/IsFinishedCest.php +++ b/tests/integration/Mvc/Dispatcher/IsFinishedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class IsFinishedCest /** * Tests Phalcon\Mvc\Dispatcher :: isFinished() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcDispatcherIsFinished(IntegrationTester $I) diff --git a/tests/integration/Mvc/Dispatcher/Refactor-DispatcherAfterDispatchCest.php b/tests/integration/Mvc/Dispatcher/Refactor-DispatcherAfterDispatchCest.php index 0061685f54a..1c56eb6ea02 100644 --- a/tests/integration/Mvc/Dispatcher/Refactor-DispatcherAfterDispatchCest.php +++ b/tests/integration/Mvc/Dispatcher/Refactor-DispatcherAfterDispatchCest.php @@ -11,18 +11,18 @@ * Tests the \Phalcon\Dispatcher and Phalcon\Mvc\Dispatcher "afterDispatch" * event. * - * @link https://docs.phalconphp.com/en/latest/reference/dispatching.html + * @link https://docs.phalcon.io/en/latest/reference/dispatching.html * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Nikolaos Dimopoulos + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Nikolaos Dimopoulos * * The contents of this file are 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class DispatcherAfterDispatchCest extends BaseDispatcher diff --git a/tests/integration/Mvc/Dispatcher/Refactor-DispatcherAfterDispatchLoopCest.php b/tests/integration/Mvc/Dispatcher/Refactor-DispatcherAfterDispatchLoopCest.php index b203a2b621b..c9b7a5401fb 100644 --- a/tests/integration/Mvc/Dispatcher/Refactor-DispatcherAfterDispatchLoopCest.php +++ b/tests/integration/Mvc/Dispatcher/Refactor-DispatcherAfterDispatchLoopCest.php @@ -11,18 +11,18 @@ * Tests the \Phalcon\Dispatcher and Phalcon\Mvc\Dispatcher "afterDispatchLoop" * event. * - * @link https://docs.phalconphp.com/en/latest/reference/dispatching.html + * @link https://docs.phalcon.io/en/latest/reference/dispatching.html * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Nikolaos Dimopoulos + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Nikolaos Dimopoulos * * The contents of this file are 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class DispatcherAfterDispatchLoopCest extends BaseDispatcher diff --git a/tests/integration/Mvc/Dispatcher/Refactor-DispatcherAfterExecuteRouteCest.php b/tests/integration/Mvc/Dispatcher/Refactor-DispatcherAfterExecuteRouteCest.php index 2ac2b923f79..f598563e426 100644 --- a/tests/integration/Mvc/Dispatcher/Refactor-DispatcherAfterExecuteRouteCest.php +++ b/tests/integration/Mvc/Dispatcher/Refactor-DispatcherAfterExecuteRouteCest.php @@ -11,18 +11,18 @@ * Tests the \Phalcon\Dispatcher and Phalcon\Mvc\Dispatcher "afterExecuteRoute" * event. * - * @link https://docs.phalconphp.com/en/latest/reference/dispatching.html + * @link https://docs.phalcon.io/en/latest/reference/dispatching.html * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Nikolaos Dimopoulos + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Nikolaos Dimopoulos * * The contents of this file are 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class DispatcherAfterExecuteRouteCest extends BaseDispatcher diff --git a/tests/integration/Mvc/Dispatcher/Refactor-DispatcherAfterExecuteRouteMethodCest.php b/tests/integration/Mvc/Dispatcher/Refactor-DispatcherAfterExecuteRouteMethodCest.php index ef3c4db6d7b..297eaa67e6d 100644 --- a/tests/integration/Mvc/Dispatcher/Refactor-DispatcherAfterExecuteRouteMethodCest.php +++ b/tests/integration/Mvc/Dispatcher/Refactor-DispatcherAfterExecuteRouteMethodCest.php @@ -11,18 +11,18 @@ * Tests the \Phalcon\Dispatcher and Phalcon\Mvc\Dispatcher "afterExecuteRoute" * controller method. * - * @link https://docs.phalconphp.com/en/latest/reference/dispatching.html + * @link https://docs.phalcon.io/en/latest/reference/dispatching.html * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Nikolaos Dimopoulos + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Nikolaos Dimopoulos * * The contents of this file are 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class DispatcherAfterExecuteRouteMethodCest extends BaseDispatcher diff --git a/tests/integration/Mvc/Dispatcher/Refactor-DispatcherAfterInitializeCest.php b/tests/integration/Mvc/Dispatcher/Refactor-DispatcherAfterInitializeCest.php index f05556e7264..e474d5ee726 100644 --- a/tests/integration/Mvc/Dispatcher/Refactor-DispatcherAfterInitializeCest.php +++ b/tests/integration/Mvc/Dispatcher/Refactor-DispatcherAfterInitializeCest.php @@ -11,18 +11,18 @@ * Tests the \Phalcon\Dispatcher and Phalcon\Mvc\Dispatcher "afterInitialize" * event. * - * @link https://docs.phalconphp.com/en/latest/reference/dispatching.html + * @link https://docs.phalcon.io/en/latest/reference/dispatching.html * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Nikolaos Dimopoulos + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Nikolaos Dimopoulos * * The contents of this file are 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class DispatcherAfterInitializeCest extends BaseDispatcher diff --git a/tests/integration/Mvc/Dispatcher/Refactor-DispatcherBeforeDispatchCest.php b/tests/integration/Mvc/Dispatcher/Refactor-DispatcherBeforeDispatchCest.php index 482aad33407..06974e0011e 100644 --- a/tests/integration/Mvc/Dispatcher/Refactor-DispatcherBeforeDispatchCest.php +++ b/tests/integration/Mvc/Dispatcher/Refactor-DispatcherBeforeDispatchCest.php @@ -11,18 +11,18 @@ * Tests the \Phalcon\Dispatcher and Phalcon\Mvc\Dispatcher "beforeDispatch" * event. * - * @link https://docs.phalconphp.com/en/latest/reference/dispatching.html + * @link https://docs.phalcon.io/en/latest/reference/dispatching.html * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Nikolaos Dimopoulos + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Nikolaos Dimopoulos * * The contents of this file are 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class DispatcherBeforeDispatchCest extends BaseDispatcher diff --git a/tests/integration/Mvc/Dispatcher/Refactor-DispatcherBeforeDispatchLoopCest.php b/tests/integration/Mvc/Dispatcher/Refactor-DispatcherBeforeDispatchLoopCest.php index 8fc3500e36b..4db56738d3e 100644 --- a/tests/integration/Mvc/Dispatcher/Refactor-DispatcherBeforeDispatchLoopCest.php +++ b/tests/integration/Mvc/Dispatcher/Refactor-DispatcherBeforeDispatchLoopCest.php @@ -11,18 +11,18 @@ * Tests the \Phalcon\Dispatcher and Phalcon\Mvc\Dispatcher * "beforeDispatchLoop" event. * - * @link https://docs.phalconphp.com/en/latest/reference/dispatching.html + * @link https://docs.phalcon.io/en/latest/reference/dispatching.html * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Nikolaos Dimopoulos + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Nikolaos Dimopoulos * * The contents of this file are 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class DispatcherBeforeDispatchLoopCest extends BaseDispatcher diff --git a/tests/integration/Mvc/Dispatcher/Refactor-DispatcherBeforeExecuteRouteCest.php b/tests/integration/Mvc/Dispatcher/Refactor-DispatcherBeforeExecuteRouteCest.php index efd7f65c4ee..256ab84f07a 100644 --- a/tests/integration/Mvc/Dispatcher/Refactor-DispatcherBeforeExecuteRouteCest.php +++ b/tests/integration/Mvc/Dispatcher/Refactor-DispatcherBeforeExecuteRouteCest.php @@ -11,18 +11,18 @@ * Tests the \Phalcon\Dispatcher and Phalcon\Mvc\Dispatcher * "beforeExecuteRoute" event. * - * @link https://docs.phalconphp.com/en/latest/reference/dispatching.html + * @link https://docs.phalcon.io/en/latest/reference/dispatching.html * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Nikolaos Dimopoulos + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Nikolaos Dimopoulos * * The contents of this file are 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class DispatcherBeforeExecuteRouteCest extends BaseDispatcher diff --git a/tests/integration/Mvc/Dispatcher/Refactor-DispatcherBeforeExecuteRouteMethodCest.php b/tests/integration/Mvc/Dispatcher/Refactor-DispatcherBeforeExecuteRouteMethodCest.php index 2e07aa633e8..bd3f02e90a0 100644 --- a/tests/integration/Mvc/Dispatcher/Refactor-DispatcherBeforeExecuteRouteMethodCest.php +++ b/tests/integration/Mvc/Dispatcher/Refactor-DispatcherBeforeExecuteRouteMethodCest.php @@ -11,18 +11,18 @@ * Tests the \Phalcon\Dispatcher and Phalcon\Mvc\Dispatcher * "beforeExecuteRoute" controller method. * - * @link https://docs.phalconphp.com/en/latest/reference/dispatching.html + * @link https://docs.phalcon.io/en/latest/reference/dispatching.html * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Nikolaos Dimopoulos + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Nikolaos Dimopoulos * * The contents of this file are 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class DispatcherBeforeExecuteRouteMethodCest extends BaseDispatcher diff --git a/tests/integration/Mvc/Dispatcher/Refactor-DispatcherCest.php b/tests/integration/Mvc/Dispatcher/Refactor-DispatcherCest.php index 51f2864bd53..7c57d5249aa 100644 --- a/tests/integration/Mvc/Dispatcher/Refactor-DispatcherCest.php +++ b/tests/integration/Mvc/Dispatcher/Refactor-DispatcherCest.php @@ -15,18 +15,18 @@ * Tests the core functionality of the \Phalcon\Dispatcher and * Phalcon\Mvc\Dispatcher classes. * - * @link https://docs.phalconphp.com/en/latest/reference/dispatching.html + * @link https://docs.phalcon.io/en/latest/reference/dispatching.html * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Nikolaos Dimopoulos + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Nikolaos Dimopoulos * * The contents of this file are 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class DispatcherCest extends BaseDispatcher diff --git a/tests/integration/Mvc/Dispatcher/Refactor-DispatcherInitializeMethodCest.php b/tests/integration/Mvc/Dispatcher/Refactor-DispatcherInitializeMethodCest.php index 14962109bbb..c464f911783 100644 --- a/tests/integration/Mvc/Dispatcher/Refactor-DispatcherInitializeMethodCest.php +++ b/tests/integration/Mvc/Dispatcher/Refactor-DispatcherInitializeMethodCest.php @@ -11,18 +11,18 @@ * Tests the \Phalcon\Dispatcher and Phalcon\Mvc\Dispatcher "initialize" * controller method. * - * @link https://docs.phalconphp.com/en/latest/reference/dispatching.html + * @link https://docs.phalcon.io/en/latest/reference/dispatching.html * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Nikolaos Dimopoulos + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Nikolaos Dimopoulos * * The contents of this file are 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class DispatcherInitializeMethodCest extends BaseDispatcher diff --git a/tests/integration/Mvc/Dispatcher/Refactor-ForwardCest.php b/tests/integration/Mvc/Dispatcher/Refactor-ForwardCest.php index 9c663732131..f505b5820a2 100644 --- a/tests/integration/Mvc/Dispatcher/Refactor-ForwardCest.php +++ b/tests/integration/Mvc/Dispatcher/Refactor-ForwardCest.php @@ -15,14 +15,14 @@ * Tests the Phalcon\Mvc\Dispatcher * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Phalcon Team + * @link http://www.phalcon.io + * @author Phalcon Team * * The contents of this file are subject to the New BSD License that is * bundled with this package in the file 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class RefactorForwardCest diff --git a/tests/integration/Mvc/Dispatcher/SetActionSuffixCest.php b/tests/integration/Mvc/Dispatcher/SetActionSuffixCest.php index 60cbb12bf73..10111b9836e 100644 --- a/tests/integration/Mvc/Dispatcher/SetActionSuffixCest.php +++ b/tests/integration/Mvc/Dispatcher/SetActionSuffixCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetActionSuffixCest /** * Tests Phalcon\Mvc\Dispatcher :: setActionSuffix() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcDispatcherSetActionSuffix(IntegrationTester $I) diff --git a/tests/integration/Mvc/Dispatcher/SetControllerNameCest.php b/tests/integration/Mvc/Dispatcher/SetControllerNameCest.php index 601db6ecba9..50655ade029 100644 --- a/tests/integration/Mvc/Dispatcher/SetControllerNameCest.php +++ b/tests/integration/Mvc/Dispatcher/SetControllerNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetControllerNameCest /** * Tests Phalcon\Mvc\Dispatcher :: setControllerName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcDispatcherSetControllerName(IntegrationTester $I) diff --git a/tests/integration/Mvc/Dispatcher/SetControllerSuffixCest.php b/tests/integration/Mvc/Dispatcher/SetControllerSuffixCest.php index 19853db6d51..992a558de61 100644 --- a/tests/integration/Mvc/Dispatcher/SetControllerSuffixCest.php +++ b/tests/integration/Mvc/Dispatcher/SetControllerSuffixCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Dispatcher/SetDefaultActionCest.php b/tests/integration/Mvc/Dispatcher/SetDefaultActionCest.php index 37a15d42f90..f14b59268fd 100644 --- a/tests/integration/Mvc/Dispatcher/SetDefaultActionCest.php +++ b/tests/integration/Mvc/Dispatcher/SetDefaultActionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetDefaultActionCest /** * Tests Phalcon\Mvc\Dispatcher :: setDefaultAction() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcDispatcherSetDefaultAction(IntegrationTester $I) diff --git a/tests/integration/Mvc/Dispatcher/SetDefaultControllerCest.php b/tests/integration/Mvc/Dispatcher/SetDefaultControllerCest.php index 42d4d12cb4f..6bf98c06d4a 100644 --- a/tests/integration/Mvc/Dispatcher/SetDefaultControllerCest.php +++ b/tests/integration/Mvc/Dispatcher/SetDefaultControllerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetDefaultControllerCest /** * Tests Phalcon\Mvc\Dispatcher :: setDefaultController() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcDispatcherSetDefaultController(IntegrationTester $I) diff --git a/tests/integration/Mvc/Dispatcher/SetDefaultNamespaceCest.php b/tests/integration/Mvc/Dispatcher/SetDefaultNamespaceCest.php index f8db7da9901..e799c8a0f5e 100644 --- a/tests/integration/Mvc/Dispatcher/SetDefaultNamespaceCest.php +++ b/tests/integration/Mvc/Dispatcher/SetDefaultNamespaceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetDefaultNamespaceCest /** * Tests Phalcon\Mvc\Dispatcher :: setDefaultNamespace() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcDispatcherSetDefaultNamespace(IntegrationTester $I) diff --git a/tests/integration/Mvc/Dispatcher/SetEventsManagerCest.php b/tests/integration/Mvc/Dispatcher/SetEventsManagerCest.php index 848e3a76382..1c506427125 100644 --- a/tests/integration/Mvc/Dispatcher/SetEventsManagerCest.php +++ b/tests/integration/Mvc/Dispatcher/SetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetEventsManagerCest /** * Tests Phalcon\Mvc\Dispatcher :: setEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcDispatcherSetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Mvc/Dispatcher/SetHandlerSuffixCest.php b/tests/integration/Mvc/Dispatcher/SetHandlerSuffixCest.php index 8f1a528dcbb..8b37ef77570 100644 --- a/tests/integration/Mvc/Dispatcher/SetHandlerSuffixCest.php +++ b/tests/integration/Mvc/Dispatcher/SetHandlerSuffixCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Dispatcher/SetModelBinderCest.php b/tests/integration/Mvc/Dispatcher/SetModelBinderCest.php index bdb87398877..2d9fa77baef 100644 --- a/tests/integration/Mvc/Dispatcher/SetModelBinderCest.php +++ b/tests/integration/Mvc/Dispatcher/SetModelBinderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetModelBinderCest /** * Tests Phalcon\Mvc\Dispatcher :: setModelBinder() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcDispatcherSetModelBinder(IntegrationTester $I) diff --git a/tests/integration/Mvc/Dispatcher/SetModuleNameCest.php b/tests/integration/Mvc/Dispatcher/SetModuleNameCest.php index f177ccb8d37..7010b03fcb8 100644 --- a/tests/integration/Mvc/Dispatcher/SetModuleNameCest.php +++ b/tests/integration/Mvc/Dispatcher/SetModuleNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetModuleNameCest /** * Tests Phalcon\Mvc\Dispatcher :: setModuleName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcDispatcherSetModuleName(IntegrationTester $I) diff --git a/tests/integration/Mvc/Dispatcher/SetNamespaceNameCest.php b/tests/integration/Mvc/Dispatcher/SetNamespaceNameCest.php index 15cb1bddda0..0e3ed3c91dc 100644 --- a/tests/integration/Mvc/Dispatcher/SetNamespaceNameCest.php +++ b/tests/integration/Mvc/Dispatcher/SetNamespaceNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetNamespaceNameCest /** * Tests Phalcon\Mvc\Dispatcher :: setNamespaceName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcDispatcherSetNamespaceName(IntegrationTester $I) diff --git a/tests/integration/Mvc/Dispatcher/SetParamCest.php b/tests/integration/Mvc/Dispatcher/SetParamCest.php index c67f0962d68..5e46526bacc 100644 --- a/tests/integration/Mvc/Dispatcher/SetParamCest.php +++ b/tests/integration/Mvc/Dispatcher/SetParamCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetParamCest /** * Tests Phalcon\Mvc\Dispatcher :: setParam() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcDispatcherSetParam(IntegrationTester $I) diff --git a/tests/integration/Mvc/Dispatcher/SetParamsCest.php b/tests/integration/Mvc/Dispatcher/SetParamsCest.php index 3f6a99c8f5e..6fdff66b477 100644 --- a/tests/integration/Mvc/Dispatcher/SetParamsCest.php +++ b/tests/integration/Mvc/Dispatcher/SetParamsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetParamsCest /** * Tests Phalcon\Mvc\Dispatcher :: setParams() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcDispatcherSetParams(IntegrationTester $I) diff --git a/tests/integration/Mvc/Dispatcher/SetReturnedValueCest.php b/tests/integration/Mvc/Dispatcher/SetReturnedValueCest.php index 432c2ccb36d..577f9d6435e 100644 --- a/tests/integration/Mvc/Dispatcher/SetReturnedValueCest.php +++ b/tests/integration/Mvc/Dispatcher/SetReturnedValueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetReturnedValueCest /** * Tests Phalcon\Mvc\Dispatcher :: setReturnedValue() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcDispatcherSetReturnedValue(IntegrationTester $I) diff --git a/tests/integration/Mvc/Dispatcher/WasForwardedCest.php b/tests/integration/Mvc/Dispatcher/WasForwardedCest.php index b0cb3226ace..6bc66a20c15 100644 --- a/tests/integration/Mvc/Dispatcher/WasForwardedCest.php +++ b/tests/integration/Mvc/Dispatcher/WasForwardedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class WasForwardedCest /** * Tests Phalcon\Mvc\Dispatcher :: wasForwarded() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcDispatcherWasForwarded(IntegrationTester $I) diff --git a/tests/integration/Mvc/Micro/AfterBindingCest.php b/tests/integration/Mvc/Micro/AfterBindingCest.php index f616521f240..3ac7ebf407f 100644 --- a/tests/integration/Mvc/Micro/AfterBindingCest.php +++ b/tests/integration/Mvc/Micro/AfterBindingCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Micro/AfterCest.php b/tests/integration/Mvc/Micro/AfterCest.php index 66183bfcedd..85fab29e71b 100644 --- a/tests/integration/Mvc/Micro/AfterCest.php +++ b/tests/integration/Mvc/Micro/AfterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Micro/BeforeCest.php b/tests/integration/Mvc/Micro/BeforeCest.php index 736351b59df..586c8887ba9 100644 --- a/tests/integration/Mvc/Micro/BeforeCest.php +++ b/tests/integration/Mvc/Micro/BeforeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Micro/Collection/DeleteCest.php b/tests/integration/Mvc/Micro/Collection/DeleteCest.php index 0b06e5beb3a..741079449ba 100644 --- a/tests/integration/Mvc/Micro/Collection/DeleteCest.php +++ b/tests/integration/Mvc/Micro/Collection/DeleteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Micro/Collection/GetCest.php b/tests/integration/Mvc/Micro/Collection/GetCest.php index e9217ba82f9..2a346c94d1d 100644 --- a/tests/integration/Mvc/Micro/Collection/GetCest.php +++ b/tests/integration/Mvc/Micro/Collection/GetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Micro/Collection/GetHandlerCest.php b/tests/integration/Mvc/Micro/Collection/GetHandlerCest.php index 20661f798a3..ba787630a75 100644 --- a/tests/integration/Mvc/Micro/Collection/GetHandlerCest.php +++ b/tests/integration/Mvc/Micro/Collection/GetHandlerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetHandlerCest /** * Tests Phalcon\Mvc\Micro\Collection :: getHandler() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcMicroCollectionGetHandler(IntegrationTester $I) diff --git a/tests/integration/Mvc/Micro/Collection/GetHandlersCest.php b/tests/integration/Mvc/Micro/Collection/GetHandlersCest.php index 13ff95a8edb..7f6c1b25e87 100644 --- a/tests/integration/Mvc/Micro/Collection/GetHandlersCest.php +++ b/tests/integration/Mvc/Micro/Collection/GetHandlersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetHandlersCest /** * Tests Phalcon\Mvc\Micro\Collection :: getHandlers() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcMicroCollectionGetHandlers(IntegrationTester $I) diff --git a/tests/integration/Mvc/Micro/Collection/GetPrefixCest.php b/tests/integration/Mvc/Micro/Collection/GetPrefixCest.php index 0eb9cf645b3..80657ab6903 100644 --- a/tests/integration/Mvc/Micro/Collection/GetPrefixCest.php +++ b/tests/integration/Mvc/Micro/Collection/GetPrefixCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetPrefixCest /** * Tests Phalcon\Mvc\Micro\Collection :: getPrefix() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcMicroCollectionGetPrefix(IntegrationTester $I) diff --git a/tests/integration/Mvc/Micro/Collection/HeadCest.php b/tests/integration/Mvc/Micro/Collection/HeadCest.php index 4d24850fad7..a302a38f797 100644 --- a/tests/integration/Mvc/Micro/Collection/HeadCest.php +++ b/tests/integration/Mvc/Micro/Collection/HeadCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Micro/Collection/IsLazyCest.php b/tests/integration/Mvc/Micro/Collection/IsLazyCest.php index 5f45418dc02..7181d2333ac 100644 --- a/tests/integration/Mvc/Micro/Collection/IsLazyCest.php +++ b/tests/integration/Mvc/Micro/Collection/IsLazyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Micro/Collection/MapCest.php b/tests/integration/Mvc/Micro/Collection/MapCest.php index d086e77a1b1..dc61b70ebb5 100644 --- a/tests/integration/Mvc/Micro/Collection/MapCest.php +++ b/tests/integration/Mvc/Micro/Collection/MapCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class MapCest /** * Tests Phalcon\Mvc\Micro\Collection :: map() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcMicroCollectionMap(IntegrationTester $I) diff --git a/tests/integration/Mvc/Micro/Collection/MapViaCest.php b/tests/integration/Mvc/Micro/Collection/MapViaCest.php index 8bc6e906bbf..510d6fb5681 100644 --- a/tests/integration/Mvc/Micro/Collection/MapViaCest.php +++ b/tests/integration/Mvc/Micro/Collection/MapViaCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Micro/Collection/OptionsCest.php b/tests/integration/Mvc/Micro/Collection/OptionsCest.php index 0e6bdbfa674..104ea10d1ff 100644 --- a/tests/integration/Mvc/Micro/Collection/OptionsCest.php +++ b/tests/integration/Mvc/Micro/Collection/OptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Micro/Collection/PatchCest.php b/tests/integration/Mvc/Micro/Collection/PatchCest.php index 14eb4553f06..586e9a38a37 100644 --- a/tests/integration/Mvc/Micro/Collection/PatchCest.php +++ b/tests/integration/Mvc/Micro/Collection/PatchCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Micro/Collection/PostCest.php b/tests/integration/Mvc/Micro/Collection/PostCest.php index 91d2b64d10b..4aaee4b7c4f 100644 --- a/tests/integration/Mvc/Micro/Collection/PostCest.php +++ b/tests/integration/Mvc/Micro/Collection/PostCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Micro/Collection/PutCest.php b/tests/integration/Mvc/Micro/Collection/PutCest.php index 145292e3a79..2f0f1a15f19 100644 --- a/tests/integration/Mvc/Micro/Collection/PutCest.php +++ b/tests/integration/Mvc/Micro/Collection/PutCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Micro/Collection/SetHandlerCest.php b/tests/integration/Mvc/Micro/Collection/SetHandlerCest.php index f9e15be75cd..a64e68cafa7 100644 --- a/tests/integration/Mvc/Micro/Collection/SetHandlerCest.php +++ b/tests/integration/Mvc/Micro/Collection/SetHandlerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class SetHandlerCest /** * Tests Phalcon\Mvc\Micro\Collection :: setHandler() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcMicroCollectionSetHandler(IntegrationTester $I) diff --git a/tests/integration/Mvc/Micro/Collection/SetLazyCest.php b/tests/integration/Mvc/Micro/Collection/SetLazyCest.php index e299de8297e..1007e490f7e 100644 --- a/tests/integration/Mvc/Micro/Collection/SetLazyCest.php +++ b/tests/integration/Mvc/Micro/Collection/SetLazyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Micro/Collection/SetPrefixCest.php b/tests/integration/Mvc/Micro/Collection/SetPrefixCest.php index d8ef253459b..f0fac95814a 100644 --- a/tests/integration/Mvc/Micro/Collection/SetPrefixCest.php +++ b/tests/integration/Mvc/Micro/Collection/SetPrefixCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class SetPrefixCest /** * Tests Phalcon\Mvc\Micro\Collection :: setPrefix() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function testMicroCollectionsPrefixed(IntegrationTester $I) diff --git a/tests/integration/Mvc/Micro/ConstructCest.php b/tests/integration/Mvc/Micro/ConstructCest.php index f4efeb7fcee..032b2df72f1 100644 --- a/tests/integration/Mvc/Micro/ConstructCest.php +++ b/tests/integration/Mvc/Micro/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Mvc\Micro :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcMicroConstruct(IntegrationTester $I) diff --git a/tests/integration/Mvc/Micro/DeleteCest.php b/tests/integration/Mvc/Micro/DeleteCest.php index 39abd923f63..f181b484a3e 100644 --- a/tests/integration/Mvc/Micro/DeleteCest.php +++ b/tests/integration/Mvc/Micro/DeleteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Micro/ErrorCest.php b/tests/integration/Mvc/Micro/ErrorCest.php index 89fb69826fc..6274b665a3e 100644 --- a/tests/integration/Mvc/Micro/ErrorCest.php +++ b/tests/integration/Mvc/Micro/ErrorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Micro/FinishCest.php b/tests/integration/Mvc/Micro/FinishCest.php index a8b51c44ecb..04a57b4026a 100644 --- a/tests/integration/Mvc/Micro/FinishCest.php +++ b/tests/integration/Mvc/Micro/FinishCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Micro/GetActiveHandlerCest.php b/tests/integration/Mvc/Micro/GetActiveHandlerCest.php index 1e74fe69757..239ae0ad728 100644 --- a/tests/integration/Mvc/Micro/GetActiveHandlerCest.php +++ b/tests/integration/Mvc/Micro/GetActiveHandlerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetActiveHandlerCest /** * Tests Phalcon\Mvc\Micro :: getActiveHandler() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcMicroGetActiveHandler(IntegrationTester $I) diff --git a/tests/integration/Mvc/Micro/GetBoundModelsCest.php b/tests/integration/Mvc/Micro/GetBoundModelsCest.php index 4ae40271630..415289072bc 100644 --- a/tests/integration/Mvc/Micro/GetBoundModelsCest.php +++ b/tests/integration/Mvc/Micro/GetBoundModelsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetBoundModelsCest /** * Tests Phalcon\Mvc\Micro :: getBoundModels() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcMicroGetBoundModels(IntegrationTester $I) diff --git a/tests/integration/Mvc/Micro/GetCest.php b/tests/integration/Mvc/Micro/GetCest.php index 2d78ee3f619..65eea9af6b6 100644 --- a/tests/integration/Mvc/Micro/GetCest.php +++ b/tests/integration/Mvc/Micro/GetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Micro/GetEventsManagerCest.php b/tests/integration/Mvc/Micro/GetEventsManagerCest.php index fbf12fe9755..3aff3ecf2fc 100644 --- a/tests/integration/Mvc/Micro/GetEventsManagerCest.php +++ b/tests/integration/Mvc/Micro/GetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetEventsManagerCest /** * Tests Phalcon\Mvc\Micro :: getEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcMicroGetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Mvc/Micro/GetHandlersCest.php b/tests/integration/Mvc/Micro/GetHandlersCest.php index b5641f2c32e..177524f2749 100644 --- a/tests/integration/Mvc/Micro/GetHandlersCest.php +++ b/tests/integration/Mvc/Micro/GetHandlersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Micro/GetModelBinderCest.php b/tests/integration/Mvc/Micro/GetModelBinderCest.php index b1837232f3c..878dfb9445e 100644 --- a/tests/integration/Mvc/Micro/GetModelBinderCest.php +++ b/tests/integration/Mvc/Micro/GetModelBinderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetModelBinderCest /** * Tests Phalcon\Mvc\Micro :: getModelBinder() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcMicroGetModelBinder(IntegrationTester $I) diff --git a/tests/integration/Mvc/Micro/GetReturnedValueCest.php b/tests/integration/Mvc/Micro/GetReturnedValueCest.php index a26bc53f37e..b4bbedba7f2 100644 --- a/tests/integration/Mvc/Micro/GetReturnedValueCest.php +++ b/tests/integration/Mvc/Micro/GetReturnedValueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetReturnedValueCest /** * Tests Phalcon\Mvc\Micro :: getReturnedValue() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcMicroGetReturnedValue(IntegrationTester $I) diff --git a/tests/integration/Mvc/Micro/GetRouterCest.php b/tests/integration/Mvc/Micro/GetRouterCest.php index c6fe041512d..89ec7857d98 100644 --- a/tests/integration/Mvc/Micro/GetRouterCest.php +++ b/tests/integration/Mvc/Micro/GetRouterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetRouterCest /** * Tests Phalcon\Mvc\Micro :: getRouter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcMicroGetRouter(IntegrationTester $I) diff --git a/tests/integration/Mvc/Micro/GetServiceCest.php b/tests/integration/Mvc/Micro/GetServiceCest.php index 2f7eccf4ab9..88ab1de2a48 100644 --- a/tests/integration/Mvc/Micro/GetServiceCest.php +++ b/tests/integration/Mvc/Micro/GetServiceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Micro/GetSetDICest.php b/tests/integration/Mvc/Micro/GetSetDICest.php index e79de14c84e..a56f3ac5598 100644 --- a/tests/integration/Mvc/Micro/GetSetDICest.php +++ b/tests/integration/Mvc/Micro/GetSetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class GetSetDICest /** * Tests Phalcon\Mvc\Micro :: getDI()/setDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcMicroGetSetDI(IntegrationTester $I) diff --git a/tests/integration/Mvc/Micro/GetSharedServiceCest.php b/tests/integration/Mvc/Micro/GetSharedServiceCest.php index 48423a88e2d..ebbb86073a6 100644 --- a/tests/integration/Mvc/Micro/GetSharedServiceCest.php +++ b/tests/integration/Mvc/Micro/GetSharedServiceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetSharedServiceCest /** * Tests Phalcon\Mvc\Micro :: getSharedService() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcMicroGetSharedService(IntegrationTester $I) diff --git a/tests/integration/Mvc/Micro/HandleCest.php b/tests/integration/Mvc/Micro/HandleCest.php index 5f583da98f0..3231ce7587a 100644 --- a/tests/integration/Mvc/Micro/HandleCest.php +++ b/tests/integration/Mvc/Micro/HandleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Micro/HasServiceCest.php b/tests/integration/Mvc/Micro/HasServiceCest.php index b23882c6712..d4ae7767fbe 100644 --- a/tests/integration/Mvc/Micro/HasServiceCest.php +++ b/tests/integration/Mvc/Micro/HasServiceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Micro/HeadCest.php b/tests/integration/Mvc/Micro/HeadCest.php index b84c0514c58..867eb7e1955 100644 --- a/tests/integration/Mvc/Micro/HeadCest.php +++ b/tests/integration/Mvc/Micro/HeadCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Micro/LazyLoader/CallMethodCest.php b/tests/integration/Mvc/Micro/LazyLoader/CallMethodCest.php index be7ebdad54a..31226b1be09 100644 --- a/tests/integration/Mvc/Micro/LazyLoader/CallMethodCest.php +++ b/tests/integration/Mvc/Micro/LazyLoader/CallMethodCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CallMethodCest /** * Tests Phalcon\Mvc\Micro\LazyLoader :: callMethod() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcMicroLazyloaderCallMethod(IntegrationTester $I) diff --git a/tests/integration/Mvc/Micro/LazyLoader/ConstructCest.php b/tests/integration/Mvc/Micro/LazyLoader/ConstructCest.php index 46bd25065f7..4f6ce3d4cfe 100644 --- a/tests/integration/Mvc/Micro/LazyLoader/ConstructCest.php +++ b/tests/integration/Mvc/Micro/LazyLoader/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Mvc\Micro\LazyLoader :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcMicroLazyloaderConstruct(IntegrationTester $I) diff --git a/tests/integration/Mvc/Micro/LazyLoader/GetDefinitionCest.php b/tests/integration/Mvc/Micro/LazyLoader/GetDefinitionCest.php index 8f1b3f23ba2..4775b43d7d4 100644 --- a/tests/integration/Mvc/Micro/LazyLoader/GetDefinitionCest.php +++ b/tests/integration/Mvc/Micro/LazyLoader/GetDefinitionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDefinitionCest /** * Tests Phalcon\Mvc\Micro\LazyLoader :: getDefinition() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcMicroLazyloaderGetDefinition(IntegrationTester $I) diff --git a/tests/integration/Mvc/Micro/MapCest.php b/tests/integration/Mvc/Micro/MapCest.php index 757c55370af..86a3b77077f 100644 --- a/tests/integration/Mvc/Micro/MapCest.php +++ b/tests/integration/Mvc/Micro/MapCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class MapCest /** * Tests Phalcon\Mvc\Micro :: map() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcMicroMap(IntegrationTester $I) diff --git a/tests/integration/Mvc/Micro/MountCest.php b/tests/integration/Mvc/Micro/MountCest.php index 1aea20e44b6..7570e2af60e 100644 --- a/tests/integration/Mvc/Micro/MountCest.php +++ b/tests/integration/Mvc/Micro/MountCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class MountCest /** * Tests Phalcon\Mvc\Micro :: mount() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcMicroMount(IntegrationTester $I) diff --git a/tests/integration/Mvc/Micro/NotFoundCest.php b/tests/integration/Mvc/Micro/NotFoundCest.php index ac78b26ab49..e0c2d068ef5 100644 --- a/tests/integration/Mvc/Micro/NotFoundCest.php +++ b/tests/integration/Mvc/Micro/NotFoundCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Micro/OffsetExistsCest.php b/tests/integration/Mvc/Micro/OffsetExistsCest.php index 59ae7a69298..1cd7e580e84 100644 --- a/tests/integration/Mvc/Micro/OffsetExistsCest.php +++ b/tests/integration/Mvc/Micro/OffsetExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Micro/OffsetGetCest.php b/tests/integration/Mvc/Micro/OffsetGetCest.php index b0896e0973c..598bdd28033 100644 --- a/tests/integration/Mvc/Micro/OffsetGetCest.php +++ b/tests/integration/Mvc/Micro/OffsetGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Micro/OffsetSetCest.php b/tests/integration/Mvc/Micro/OffsetSetCest.php index 2708977eb85..b014242cbf9 100644 --- a/tests/integration/Mvc/Micro/OffsetSetCest.php +++ b/tests/integration/Mvc/Micro/OffsetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Micro/OffsetUnsetCest.php b/tests/integration/Mvc/Micro/OffsetUnsetCest.php index 9921d5491ff..369f889f061 100644 --- a/tests/integration/Mvc/Micro/OffsetUnsetCest.php +++ b/tests/integration/Mvc/Micro/OffsetUnsetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Micro/OptionsCest.php b/tests/integration/Mvc/Micro/OptionsCest.php index e43b9fcaa21..455db3eb331 100644 --- a/tests/integration/Mvc/Micro/OptionsCest.php +++ b/tests/integration/Mvc/Micro/OptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Micro/PatchCest.php b/tests/integration/Mvc/Micro/PatchCest.php index bd172efc61b..cdd0af39723 100644 --- a/tests/integration/Mvc/Micro/PatchCest.php +++ b/tests/integration/Mvc/Micro/PatchCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Micro/PostCest.php b/tests/integration/Mvc/Micro/PostCest.php index f56abae850b..8ce11131c02 100644 --- a/tests/integration/Mvc/Micro/PostCest.php +++ b/tests/integration/Mvc/Micro/PostCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Micro/PutCest.php b/tests/integration/Mvc/Micro/PutCest.php index e2c72f9ed4c..c289fd19a06 100644 --- a/tests/integration/Mvc/Micro/PutCest.php +++ b/tests/integration/Mvc/Micro/PutCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Micro/Refactor-MicroMvcCollectionsCest.php b/tests/integration/Mvc/Micro/Refactor-MicroMvcCollectionsCest.php index ccd1b230514..621d1c4fbe6 100644 --- a/tests/integration/Mvc/Micro/Refactor-MicroMvcCollectionsCest.php +++ b/tests/integration/Mvc/Micro/Refactor-MicroMvcCollectionsCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Micro/SetActiveHandlerCest.php b/tests/integration/Mvc/Micro/SetActiveHandlerCest.php index da52c39520e..ce16da7f8b4 100644 --- a/tests/integration/Mvc/Micro/SetActiveHandlerCest.php +++ b/tests/integration/Mvc/Micro/SetActiveHandlerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetActiveHandlerCest /** * Tests Phalcon\Mvc\Micro :: setActiveHandler() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcMicroSetActiveHandler(IntegrationTester $I) diff --git a/tests/integration/Mvc/Micro/SetEventsManagerCest.php b/tests/integration/Mvc/Micro/SetEventsManagerCest.php index db48867fdfb..b9a4da9f1c0 100644 --- a/tests/integration/Mvc/Micro/SetEventsManagerCest.php +++ b/tests/integration/Mvc/Micro/SetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetEventsManagerCest /** * Tests Phalcon\Mvc\Micro :: setEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcMicroSetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Mvc/Micro/SetModelBinderCest.php b/tests/integration/Mvc/Micro/SetModelBinderCest.php index ed8270e2523..baab4db07c6 100644 --- a/tests/integration/Mvc/Micro/SetModelBinderCest.php +++ b/tests/integration/Mvc/Micro/SetModelBinderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetModelBinderCest /** * Tests Phalcon\Mvc\Micro :: setModelBinder() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcMicroSetModelBinder(IntegrationTester $I) diff --git a/tests/integration/Mvc/Micro/SetResponseHandlerCest.php b/tests/integration/Mvc/Micro/SetResponseHandlerCest.php index 18afc75bce0..fdc12ffeae8 100644 --- a/tests/integration/Mvc/Micro/SetResponseHandlerCest.php +++ b/tests/integration/Mvc/Micro/SetResponseHandlerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Micro/SetServiceCest.php b/tests/integration/Mvc/Micro/SetServiceCest.php index b0d9abf94bc..cdef670f12a 100644 --- a/tests/integration/Mvc/Micro/SetServiceCest.php +++ b/tests/integration/Mvc/Micro/SetServiceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetServiceCest /** * Tests Phalcon\Mvc\Micro :: setService() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcMicroSetService(IntegrationTester $I) diff --git a/tests/integration/Mvc/Micro/StopCest.php b/tests/integration/Mvc/Micro/StopCest.php index 855ae14d407..f332d15897f 100644 --- a/tests/integration/Mvc/Micro/StopCest.php +++ b/tests/integration/Mvc/Micro/StopCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class StopCest /** * Tests Phalcon\Mvc\Micro :: stop() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcMicroStop(IntegrationTester $I) diff --git a/tests/integration/Mvc/Micro/UnderscoreGetCest.php b/tests/integration/Mvc/Micro/UnderscoreGetCest.php index 99482e78d54..3917bf31571 100644 --- a/tests/integration/Mvc/Micro/UnderscoreGetCest.php +++ b/tests/integration/Mvc/Micro/UnderscoreGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class UnderscoreGetCest /** * Tests Phalcon\Mvc\Micro :: __get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcMicroUnderscoreGet(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/AddBehaviorCest.php b/tests/integration/Mvc/Model/AddBehaviorCest.php index 26c7e22de22..3578494d391 100644 --- a/tests/integration/Mvc/Model/AddBehaviorCest.php +++ b/tests/integration/Mvc/Model/AddBehaviorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class AddBehaviorCest /** * Tests Phalcon\Mvc\Model :: addBehavior() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelAddBehavior(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/AppendMessageCest.php b/tests/integration/Mvc/Model/AppendMessageCest.php index aa89d5ced1d..39ce29b99e6 100644 --- a/tests/integration/Mvc/Model/AppendMessageCest.php +++ b/tests/integration/Mvc/Model/AppendMessageCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AppendMessageCest /** * Tests Phalcon\Mvc\Model :: appendMessage() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelAppendMessage(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/AssignCest.php b/tests/integration/Mvc/Model/AssignCest.php index d53193480e7..ed19cbe33e5 100644 --- a/tests/integration/Mvc/Model/AssignCest.php +++ b/tests/integration/Mvc/Model/AssignCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/AverageCest.php b/tests/integration/Mvc/Model/AverageCest.php index a54f55a9328..0f9ca3e11c9 100644 --- a/tests/integration/Mvc/Model/AverageCest.php +++ b/tests/integration/Mvc/Model/AverageCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/Behavior/SoftDelete/ConstructCest.php b/tests/integration/Mvc/Model/Behavior/SoftDelete/ConstructCest.php index 8d878eddab2..ce641a010a9 100644 --- a/tests/integration/Mvc/Model/Behavior/SoftDelete/ConstructCest.php +++ b/tests/integration/Mvc/Model/Behavior/SoftDelete/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ConstructCest /** * Tests Phalcon\Mvc\Model\Behavior\SoftDelete :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelBehaviorSoftdeleteConstruct(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Behavior/SoftDelete/MissingMethodCest.php b/tests/integration/Mvc/Model/Behavior/SoftDelete/MissingMethodCest.php index 6dfa7674e26..1ddabea1fde 100644 --- a/tests/integration/Mvc/Model/Behavior/SoftDelete/MissingMethodCest.php +++ b/tests/integration/Mvc/Model/Behavior/SoftDelete/MissingMethodCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/Behavior/SoftDelete/NotifyCest.php b/tests/integration/Mvc/Model/Behavior/SoftDelete/NotifyCest.php index 30ec77837c1..98cb22996bb 100644 --- a/tests/integration/Mvc/Model/Behavior/SoftDelete/NotifyCest.php +++ b/tests/integration/Mvc/Model/Behavior/SoftDelete/NotifyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class NotifyCest /** * Tests Phalcon\Mvc\Model\Behavior\SoftDelete :: notify() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelBehaviorSoftdeleteNotify(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Behavior/Timestampable/ConstructCest.php b/tests/integration/Mvc/Model/Behavior/Timestampable/ConstructCest.php index 8ca398350e0..e5973655847 100644 --- a/tests/integration/Mvc/Model/Behavior/Timestampable/ConstructCest.php +++ b/tests/integration/Mvc/Model/Behavior/Timestampable/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ConstructCest /** * Tests Phalcon\Mvc\Model\Behavior\Timestampable :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelBehaviorTimestampableConstruct(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Behavior/Timestampable/MissingMethodCest.php b/tests/integration/Mvc/Model/Behavior/Timestampable/MissingMethodCest.php index 1f4505d6cbb..383d1539b68 100644 --- a/tests/integration/Mvc/Model/Behavior/Timestampable/MissingMethodCest.php +++ b/tests/integration/Mvc/Model/Behavior/Timestampable/MissingMethodCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/Behavior/Timestampable/NotifyCest.php b/tests/integration/Mvc/Model/Behavior/Timestampable/NotifyCest.php index 0cceb810f63..1b069828020 100644 --- a/tests/integration/Mvc/Model/Behavior/Timestampable/NotifyCest.php +++ b/tests/integration/Mvc/Model/Behavior/Timestampable/NotifyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class NotifyCest /** * Tests Phalcon\Mvc\Model\Behavior\Timestampable :: notify() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelBehaviorTimestampableNotify(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Binder/BindToHandlerCest.php b/tests/integration/Mvc/Model/Binder/BindToHandlerCest.php index 3390c41f633..c0c99311adc 100644 --- a/tests/integration/Mvc/Model/Binder/BindToHandlerCest.php +++ b/tests/integration/Mvc/Model/Binder/BindToHandlerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class BindToHandlerCest /** * Tests Phalcon\Mvc\Model\Binder :: bindToHandler() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelBinderBindToHandler(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Binder/ConstructCest.php b/tests/integration/Mvc/Model/Binder/ConstructCest.php index a87a0c0b94c..69d1c4ce4f5 100644 --- a/tests/integration/Mvc/Model/Binder/ConstructCest.php +++ b/tests/integration/Mvc/Model/Binder/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Mvc\Model\Binder :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelBinderConstruct(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Binder/GetBoundModelsCest.php b/tests/integration/Mvc/Model/Binder/GetBoundModelsCest.php index 83a451a0ab3..27ecaa881a3 100644 --- a/tests/integration/Mvc/Model/Binder/GetBoundModelsCest.php +++ b/tests/integration/Mvc/Model/Binder/GetBoundModelsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetBoundModelsCest /** * Tests Phalcon\Mvc\Model\Binder :: getBoundModels() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelBinderGetBoundModels(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Binder/GetCacheCest.php b/tests/integration/Mvc/Model/Binder/GetCacheCest.php index fd658d590fe..b2f92fc3de9 100644 --- a/tests/integration/Mvc/Model/Binder/GetCacheCest.php +++ b/tests/integration/Mvc/Model/Binder/GetCacheCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetCacheCest /** * Tests Phalcon\Mvc\Model\Binder :: getCache() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelBinderGetCache(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Binder/GetOriginalValuesCest.php b/tests/integration/Mvc/Model/Binder/GetOriginalValuesCest.php index 2e7a5dbf3af..c5ef7e987c5 100644 --- a/tests/integration/Mvc/Model/Binder/GetOriginalValuesCest.php +++ b/tests/integration/Mvc/Model/Binder/GetOriginalValuesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetOriginalValuesCest /** * Tests Phalcon\Mvc\Model\Binder :: getOriginalValues() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelBinderGetOriginalValues(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Binder/SetCacheCest.php b/tests/integration/Mvc/Model/Binder/SetCacheCest.php index 0fc8c0bb3a1..04e1cb39372 100644 --- a/tests/integration/Mvc/Model/Binder/SetCacheCest.php +++ b/tests/integration/Mvc/Model/Binder/SetCacheCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetCacheCest /** * Tests Phalcon\Mvc\Model\Binder :: setCache() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelBinderSetCache(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/CloneResultCest.php b/tests/integration/Mvc/Model/CloneResultCest.php index 1afaac89302..2188e16f91c 100644 --- a/tests/integration/Mvc/Model/CloneResultCest.php +++ b/tests/integration/Mvc/Model/CloneResultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CloneResultCest /** * Tests Phalcon\Mvc\Model :: cloneResult() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCloneResult(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/CloneResultMapCest.php b/tests/integration/Mvc/Model/CloneResultMapCest.php index 8311ff89beb..c22704148e6 100644 --- a/tests/integration/Mvc/Model/CloneResultMapCest.php +++ b/tests/integration/Mvc/Model/CloneResultMapCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CloneResultMapCest /** * Tests Phalcon\Mvc\Model :: cloneResultMap() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCloneResultMap(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/CloneResultMapHydrateCest.php b/tests/integration/Mvc/Model/CloneResultMapHydrateCest.php index 5a8e4d43d6c..d638250efd9 100644 --- a/tests/integration/Mvc/Model/CloneResultMapHydrateCest.php +++ b/tests/integration/Mvc/Model/CloneResultMapHydrateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CloneResultMapHydrateCest /** * Tests Phalcon\Mvc\Model :: cloneResultMapHydrate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCloneResultMapHydrate(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/ConstructCest.php b/tests/integration/Mvc/Model/ConstructCest.php index 40315effd34..c63aee2530b 100644 --- a/tests/integration/Mvc/Model/ConstructCest.php +++ b/tests/integration/Mvc/Model/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Mvc\Model :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelConstruct(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/CreateCest.php b/tests/integration/Mvc/Model/CreateCest.php index a8a0e984c74..295279a934b 100644 --- a/tests/integration/Mvc/Model/CreateCest.php +++ b/tests/integration/Mvc/Model/CreateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ class CreateCest /** * Tests Phalcon\Mvc\Model :: create() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCreate(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Criteria/AndWhereCest.php b/tests/integration/Mvc/Model/Criteria/AndWhereCest.php index 558a07b8741..dbb0a2fb998 100644 --- a/tests/integration/Mvc/Model/Criteria/AndWhereCest.php +++ b/tests/integration/Mvc/Model/Criteria/AndWhereCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AndWhereCest /** * Tests Phalcon\Mvc\Model\Criteria :: andWhere() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCriteriaAndWhere(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Criteria/BetweenWhereCest.php b/tests/integration/Mvc/Model/Criteria/BetweenWhereCest.php index 33cac678281..a0c266275e0 100644 --- a/tests/integration/Mvc/Model/Criteria/BetweenWhereCest.php +++ b/tests/integration/Mvc/Model/Criteria/BetweenWhereCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class BetweenWhereCest /** * Tests Phalcon\Mvc\Model\Criteria :: betweenWhere() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCriteriaBetweenWhere(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Criteria/BindCest.php b/tests/integration/Mvc/Model/Criteria/BindCest.php index d86a35df184..8da9402a79b 100644 --- a/tests/integration/Mvc/Model/Criteria/BindCest.php +++ b/tests/integration/Mvc/Model/Criteria/BindCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class BindCest /** * Tests Phalcon\Mvc\Model\Criteria :: bind() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCriteriaBind(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Criteria/BindTypesCest.php b/tests/integration/Mvc/Model/Criteria/BindTypesCest.php index 5609283d80e..abf00912c76 100644 --- a/tests/integration/Mvc/Model/Criteria/BindTypesCest.php +++ b/tests/integration/Mvc/Model/Criteria/BindTypesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class BindTypesCest /** * Tests Phalcon\Mvc\Model\Criteria :: bindTypes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCriteriaBindTypes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Criteria/CacheCest.php b/tests/integration/Mvc/Model/Criteria/CacheCest.php index 22aa4a2cbda..f5362517a4b 100644 --- a/tests/integration/Mvc/Model/Criteria/CacheCest.php +++ b/tests/integration/Mvc/Model/Criteria/CacheCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CacheCest /** * Tests Phalcon\Mvc\Model\Criteria :: cache() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCriteriaCache(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Criteria/ColumnsCest.php b/tests/integration/Mvc/Model/Criteria/ColumnsCest.php index 7ae709b66e4..55df6671fe4 100644 --- a/tests/integration/Mvc/Model/Criteria/ColumnsCest.php +++ b/tests/integration/Mvc/Model/Criteria/ColumnsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ColumnsCest /** * Tests Phalcon\Mvc\Model\Criteria :: columns() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCriteriaColumns(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Criteria/ConditionsCest.php b/tests/integration/Mvc/Model/Criteria/ConditionsCest.php index 9806a051487..ffd63bbaa49 100644 --- a/tests/integration/Mvc/Model/Criteria/ConditionsCest.php +++ b/tests/integration/Mvc/Model/Criteria/ConditionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConditionsCest /** * Tests Phalcon\Mvc\Model\Criteria :: conditions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCriteriaConditions(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Criteria/CreateBuilderCest.php b/tests/integration/Mvc/Model/Criteria/CreateBuilderCest.php index fa124d1ea14..e2bd39c188f 100644 --- a/tests/integration/Mvc/Model/Criteria/CreateBuilderCest.php +++ b/tests/integration/Mvc/Model/Criteria/CreateBuilderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CreateBuilderCest /** * Tests Phalcon\Mvc\Model\Criteria :: createBuilder() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCriteriaCreateBuilder(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Criteria/DistinctCest.php b/tests/integration/Mvc/Model/Criteria/DistinctCest.php index be25a52509b..379c11dcdc9 100644 --- a/tests/integration/Mvc/Model/Criteria/DistinctCest.php +++ b/tests/integration/Mvc/Model/Criteria/DistinctCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class DistinctCest /** * Tests Phalcon\Mvc\Model\Criteria :: distinct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCriteriaDistinct(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Criteria/ExecuteCest.php b/tests/integration/Mvc/Model/Criteria/ExecuteCest.php index c889e6e86ea..5bdaa117417 100644 --- a/tests/integration/Mvc/Model/Criteria/ExecuteCest.php +++ b/tests/integration/Mvc/Model/Criteria/ExecuteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ExecuteCest /** * Tests Phalcon\Mvc\Model\Criteria :: execute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCriteriaExecute(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Criteria/ForUpdateCest.php b/tests/integration/Mvc/Model/Criteria/ForUpdateCest.php index d2723afcaf8..83a46052883 100644 --- a/tests/integration/Mvc/Model/Criteria/ForUpdateCest.php +++ b/tests/integration/Mvc/Model/Criteria/ForUpdateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ForUpdateCest /** * Tests Phalcon\Mvc\Model\Criteria :: forUpdate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCriteriaForUpdate(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Criteria/FromInputCest.php b/tests/integration/Mvc/Model/Criteria/FromInputCest.php index 861d0ec43e7..a958333549f 100644 --- a/tests/integration/Mvc/Model/Criteria/FromInputCest.php +++ b/tests/integration/Mvc/Model/Criteria/FromInputCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class FromInputCest /** * Tests Phalcon\Mvc\Model\Criteria :: fromInput() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCriteriaFromInput(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Criteria/GetColumnsCest.php b/tests/integration/Mvc/Model/Criteria/GetColumnsCest.php index 97f68aede1c..a6b1cbb1cd3 100644 --- a/tests/integration/Mvc/Model/Criteria/GetColumnsCest.php +++ b/tests/integration/Mvc/Model/Criteria/GetColumnsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetColumnsCest /** * Tests Phalcon\Mvc\Model\Criteria :: getColumns() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCriteriaGetColumns(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Criteria/GetConditionsCest.php b/tests/integration/Mvc/Model/Criteria/GetConditionsCest.php index a7e0284a9f9..0dbb9ce48b3 100644 --- a/tests/integration/Mvc/Model/Criteria/GetConditionsCest.php +++ b/tests/integration/Mvc/Model/Criteria/GetConditionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetConditionsCest /** * Tests Phalcon\Mvc\Model\Criteria :: getConditions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCriteriaGetConditions(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Criteria/GetGroupByCest.php b/tests/integration/Mvc/Model/Criteria/GetGroupByCest.php index 8ba293949b4..543377228a0 100644 --- a/tests/integration/Mvc/Model/Criteria/GetGroupByCest.php +++ b/tests/integration/Mvc/Model/Criteria/GetGroupByCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetGroupByCest /** * Tests Phalcon\Mvc\Model\Criteria :: getGroupBy() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCriteriaGetGroupBy(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Criteria/GetHavingCest.php b/tests/integration/Mvc/Model/Criteria/GetHavingCest.php index 8a83ef65c44..9918a68089f 100644 --- a/tests/integration/Mvc/Model/Criteria/GetHavingCest.php +++ b/tests/integration/Mvc/Model/Criteria/GetHavingCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetHavingCest /** * Tests Phalcon\Mvc\Model\Criteria :: getHaving() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCriteriaGetHaving(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Criteria/GetLimitCest.php b/tests/integration/Mvc/Model/Criteria/GetLimitCest.php index 52ab47e121a..da2a5758511 100644 --- a/tests/integration/Mvc/Model/Criteria/GetLimitCest.php +++ b/tests/integration/Mvc/Model/Criteria/GetLimitCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetLimitCest /** * Tests Phalcon\Mvc\Model\Criteria :: getLimit() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCriteriaGetLimit(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Criteria/GetModelNameCest.php b/tests/integration/Mvc/Model/Criteria/GetModelNameCest.php index d9998412612..6140c5d9ed4 100644 --- a/tests/integration/Mvc/Model/Criteria/GetModelNameCest.php +++ b/tests/integration/Mvc/Model/Criteria/GetModelNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetModelNameCest /** * Tests Phalcon\Mvc\Model\Criteria :: getModelName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCriteriaGetModelName(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Criteria/GetOrderByCest.php b/tests/integration/Mvc/Model/Criteria/GetOrderByCest.php index 6ebc1c4e97f..c09ebd17202 100644 --- a/tests/integration/Mvc/Model/Criteria/GetOrderByCest.php +++ b/tests/integration/Mvc/Model/Criteria/GetOrderByCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetOrderByCest /** * Tests Phalcon\Mvc\Model\Criteria :: getOrderBy() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCriteriaGetOrderBy(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Criteria/GetParamsCest.php b/tests/integration/Mvc/Model/Criteria/GetParamsCest.php index 1e38132b363..3439fd5aa38 100644 --- a/tests/integration/Mvc/Model/Criteria/GetParamsCest.php +++ b/tests/integration/Mvc/Model/Criteria/GetParamsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetParamsCest /** * Tests Phalcon\Mvc\Model\Criteria :: getParams() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCriteriaGetParams(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Criteria/GetSetDICest.php b/tests/integration/Mvc/Model/Criteria/GetSetDICest.php index c09353ba477..bbc01be9775 100644 --- a/tests/integration/Mvc/Model/Criteria/GetSetDICest.php +++ b/tests/integration/Mvc/Model/Criteria/GetSetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetSetDICest /** * Tests Phalcon\Mvc\Model\Criteria :: getDI() / setDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCriteriaGetSetDI(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Criteria/GetWhereCest.php b/tests/integration/Mvc/Model/Criteria/GetWhereCest.php index 59d5b14e684..a8b4789b64c 100644 --- a/tests/integration/Mvc/Model/Criteria/GetWhereCest.php +++ b/tests/integration/Mvc/Model/Criteria/GetWhereCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetWhereCest /** * Tests Phalcon\Mvc\Model\Criteria :: getWhere() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCriteriaGetWhere(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Criteria/GroupByCest.php b/tests/integration/Mvc/Model/Criteria/GroupByCest.php index d919ca081d3..ed29a2f6624 100644 --- a/tests/integration/Mvc/Model/Criteria/GroupByCest.php +++ b/tests/integration/Mvc/Model/Criteria/GroupByCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GroupByCest /** * Tests Phalcon\Mvc\Model\Criteria :: groupBy() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCriteriaGroupBy(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Criteria/HavingCest.php b/tests/integration/Mvc/Model/Criteria/HavingCest.php index 80d49acbb05..b56e0c9e329 100644 --- a/tests/integration/Mvc/Model/Criteria/HavingCest.php +++ b/tests/integration/Mvc/Model/Criteria/HavingCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class HavingCest /** * Tests Phalcon\Mvc\Model\Criteria :: having() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCriteriaHaving(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Criteria/InWhereCest.php b/tests/integration/Mvc/Model/Criteria/InWhereCest.php index 656b36866fe..36c5c2b8c70 100644 --- a/tests/integration/Mvc/Model/Criteria/InWhereCest.php +++ b/tests/integration/Mvc/Model/Criteria/InWhereCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class InWhereCest /** * Tests Phalcon\Mvc\Model\Criteria :: inWhere() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCriteriaInWhere(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Criteria/InnerJoinCest.php b/tests/integration/Mvc/Model/Criteria/InnerJoinCest.php index 89dc5baee30..291bf01abc1 100644 --- a/tests/integration/Mvc/Model/Criteria/InnerJoinCest.php +++ b/tests/integration/Mvc/Model/Criteria/InnerJoinCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class InnerJoinCest /** * Tests Phalcon\Mvc\Model\Criteria :: innerJoin() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCriteriaInnerJoin(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Criteria/JoinCest.php b/tests/integration/Mvc/Model/Criteria/JoinCest.php index 376ae7fd70b..43ab00951cf 100644 --- a/tests/integration/Mvc/Model/Criteria/JoinCest.php +++ b/tests/integration/Mvc/Model/Criteria/JoinCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class JoinCest /** * Tests Phalcon\Mvc\Model\Criteria :: join() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCriteriaJoin(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Criteria/LeftJoinCest.php b/tests/integration/Mvc/Model/Criteria/LeftJoinCest.php index b96a0982e21..de58d5eafd0 100644 --- a/tests/integration/Mvc/Model/Criteria/LeftJoinCest.php +++ b/tests/integration/Mvc/Model/Criteria/LeftJoinCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class LeftJoinCest /** * Tests Phalcon\Mvc\Model\Criteria :: leftJoin() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCriteriaLeftJoin(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Criteria/LimitCest.php b/tests/integration/Mvc/Model/Criteria/LimitCest.php index 2253a130fd4..c11b11b6513 100644 --- a/tests/integration/Mvc/Model/Criteria/LimitCest.php +++ b/tests/integration/Mvc/Model/Criteria/LimitCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class LimitCest /** * Tests Phalcon\Mvc\Model\Criteria :: limit() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCriteriaLimit(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Criteria/NotBetweenWhereCest.php b/tests/integration/Mvc/Model/Criteria/NotBetweenWhereCest.php index 86307ee810e..0c3a8a490e8 100644 --- a/tests/integration/Mvc/Model/Criteria/NotBetweenWhereCest.php +++ b/tests/integration/Mvc/Model/Criteria/NotBetweenWhereCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class NotBetweenWhereCest /** * Tests Phalcon\Mvc\Model\Criteria :: notBetweenWhere() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCriteriaNotBetweenWhere(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Criteria/NotInWhereCest.php b/tests/integration/Mvc/Model/Criteria/NotInWhereCest.php index 21e9bc6922f..26c65121bf5 100644 --- a/tests/integration/Mvc/Model/Criteria/NotInWhereCest.php +++ b/tests/integration/Mvc/Model/Criteria/NotInWhereCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class NotInWhereCest /** * Tests Phalcon\Mvc\Model\Criteria :: notInWhere() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCriteriaNotInWhere(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Criteria/OrWhereCest.php b/tests/integration/Mvc/Model/Criteria/OrWhereCest.php index 20ca339856d..ad6dea56a28 100644 --- a/tests/integration/Mvc/Model/Criteria/OrWhereCest.php +++ b/tests/integration/Mvc/Model/Criteria/OrWhereCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OrWhereCest /** * Tests Phalcon\Mvc\Model\Criteria :: orWhere() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCriteriaOrWhere(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Criteria/OrderByCest.php b/tests/integration/Mvc/Model/Criteria/OrderByCest.php index b844e2cd404..660c780edee 100644 --- a/tests/integration/Mvc/Model/Criteria/OrderByCest.php +++ b/tests/integration/Mvc/Model/Criteria/OrderByCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OrderByCest /** * Tests Phalcon\Mvc\Model\Criteria :: orderBy() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCriteriaOrderBy(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Criteria/RightJoinCest.php b/tests/integration/Mvc/Model/Criteria/RightJoinCest.php index 81c58716887..9cf5778ab12 100644 --- a/tests/integration/Mvc/Model/Criteria/RightJoinCest.php +++ b/tests/integration/Mvc/Model/Criteria/RightJoinCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class RightJoinCest /** * Tests Phalcon\Mvc\Model\Criteria :: rightJoin() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCriteriaRightJoin(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Criteria/SetModelNameCest.php b/tests/integration/Mvc/Model/Criteria/SetModelNameCest.php index d0d10afa917..0f15160ddc5 100644 --- a/tests/integration/Mvc/Model/Criteria/SetModelNameCest.php +++ b/tests/integration/Mvc/Model/Criteria/SetModelNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetModelNameCest /** * Tests Phalcon\Mvc\Model\Criteria :: setModelName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCriteriaSetModelName(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Criteria/SharedLockCest.php b/tests/integration/Mvc/Model/Criteria/SharedLockCest.php index 567d3810061..bafbde3dcd1 100644 --- a/tests/integration/Mvc/Model/Criteria/SharedLockCest.php +++ b/tests/integration/Mvc/Model/Criteria/SharedLockCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SharedLockCest /** * Tests Phalcon\Mvc\Model\Criteria :: sharedLock() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCriteriaSharedLock(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Criteria/WhereCest.php b/tests/integration/Mvc/Model/Criteria/WhereCest.php index 6763701efbf..f7fc5df157e 100644 --- a/tests/integration/Mvc/Model/Criteria/WhereCest.php +++ b/tests/integration/Mvc/Model/Criteria/WhereCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class WhereCest /** * Tests Phalcon\Mvc\Model\Criteria :: where() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCriteriaWhere(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/DeleteCest.php b/tests/integration/Mvc/Model/DeleteCest.php index 2eb7b828403..22f53c94911 100644 --- a/tests/integration/Mvc/Model/DeleteCest.php +++ b/tests/integration/Mvc/Model/DeleteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ class DeleteCest /** * Tests Phalcon\Mvc\Model :: delete() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelDelete(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/DumpCest.php b/tests/integration/Mvc/Model/DumpCest.php index b60a5e5e780..87723e5595c 100644 --- a/tests/integration/Mvc/Model/DumpCest.php +++ b/tests/integration/Mvc/Model/DumpCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class DumpCest /** * Tests Phalcon\Mvc\Model :: dump() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelDump(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/FindCest.php b/tests/integration/Mvc/Model/FindCest.php index 5162bf00aa2..3ab1012f869 100644 --- a/tests/integration/Mvc/Model/FindCest.php +++ b/tests/integration/Mvc/Model/FindCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class FindCest /** * Tests Phalcon\Mvc\Model :: find() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelFind(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/FindFirstCest.php b/tests/integration/Mvc/Model/FindFirstCest.php index 48a52c0fef3..7f35f90b667 100644 --- a/tests/integration/Mvc/Model/FindFirstCest.php +++ b/tests/integration/Mvc/Model/FindFirstCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -37,7 +37,7 @@ public function _after(IntegrationTester $I) /** * Tests Phalcon\Mvc\Model :: findFirst() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelFindFirst(IntegrationTester $I) @@ -71,7 +71,7 @@ public function mvcModelFindFirst(IntegrationTester $I) /** * Tests Phalcon\Mvc\Model :: findFirst() - not found * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelFindFirstNotFound(IntegrationTester $I) @@ -90,7 +90,7 @@ public function mvcModelFindFirstNotFound(IntegrationTester $I) /** * Tests Phalcon\Mvc\Model :: findFirstBy() - not found * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelFindFirstByNotFound(IntegrationTester $I) @@ -105,7 +105,7 @@ public function mvcModelFindFirstByNotFound(IntegrationTester $I) /** * Tests Phalcon\Mvc\Model :: findFirst() - extended * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelFindFirstExtended(IntegrationTester $I) @@ -128,7 +128,7 @@ public function mvcModelFindFirstExtended(IntegrationTester $I) /** * Tests Phalcon\Mvc\Model :: findFirst() - exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelFindFirstException(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/FireEventCancelCest.php b/tests/integration/Mvc/Model/FireEventCancelCest.php index 0c3c93cdb30..315fcb9deb0 100644 --- a/tests/integration/Mvc/Model/FireEventCancelCest.php +++ b/tests/integration/Mvc/Model/FireEventCancelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class FireEventCancelCest /** * Tests Phalcon\Mvc\Model :: fireEventCancel() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelFireEventCancel(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/FireEventCest.php b/tests/integration/Mvc/Model/FireEventCest.php index 294fbfe98da..9c546d467d6 100644 --- a/tests/integration/Mvc/Model/FireEventCest.php +++ b/tests/integration/Mvc/Model/FireEventCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class FireEventCest /** * Tests Phalcon\Mvc\Model :: fireEvent() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelFireEvent(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/GetChangedFieldsCest.php b/tests/integration/Mvc/Model/GetChangedFieldsCest.php index 13728395990..76841a8671d 100644 --- a/tests/integration/Mvc/Model/GetChangedFieldsCest.php +++ b/tests/integration/Mvc/Model/GetChangedFieldsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetChangedFieldsCest /** * Tests Phalcon\Mvc\Model :: getChangedFields() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelGetChangedFields(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/GetDirtyStateCest.php b/tests/integration/Mvc/Model/GetDirtyStateCest.php index f7e83e7032a..5cf1f1ab467 100644 --- a/tests/integration/Mvc/Model/GetDirtyStateCest.php +++ b/tests/integration/Mvc/Model/GetDirtyStateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDirtyStateCest /** * Tests Phalcon\Mvc\Model :: getDirtyState() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelGetDirtyState(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/GetEventsManagerCest.php b/tests/integration/Mvc/Model/GetEventsManagerCest.php index 0986ac64794..e54ee353a0a 100644 --- a/tests/integration/Mvc/Model/GetEventsManagerCest.php +++ b/tests/integration/Mvc/Model/GetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetEventsManagerCest /** * Tests Phalcon\Mvc\Model :: getEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelGetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/GetMessagesCest.php b/tests/integration/Mvc/Model/GetMessagesCest.php index 5c84ec4c6fa..998975ac108 100644 --- a/tests/integration/Mvc/Model/GetMessagesCest.php +++ b/tests/integration/Mvc/Model/GetMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetMessagesCest /** * Tests Phalcon\Mvc\Model :: getMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelGetMessages(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/GetModelsManagerCest.php b/tests/integration/Mvc/Model/GetModelsManagerCest.php index a47b7984a3b..a38af50bd60 100644 --- a/tests/integration/Mvc/Model/GetModelsManagerCest.php +++ b/tests/integration/Mvc/Model/GetModelsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetModelsManagerCest /** * Tests Phalcon\Mvc\Model :: getModelsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelGetModelsManager(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/GetModelsMetaDataCest.php b/tests/integration/Mvc/Model/GetModelsMetaDataCest.php index 86be78b2f38..6d37c5423e4 100644 --- a/tests/integration/Mvc/Model/GetModelsMetaDataCest.php +++ b/tests/integration/Mvc/Model/GetModelsMetaDataCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetModelsMetaDataCest /** * Tests Phalcon\Mvc\Model :: getModelsMetaData() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelGetModelsMetaData(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/GetOldSnapshotDataCest.php b/tests/integration/Mvc/Model/GetOldSnapshotDataCest.php index 92bb6b76813..331d7efbbb1 100644 --- a/tests/integration/Mvc/Model/GetOldSnapshotDataCest.php +++ b/tests/integration/Mvc/Model/GetOldSnapshotDataCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetOldSnapshotDataCest /** * Tests Phalcon\Mvc\Model :: getOldSnapshotData() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelGetOldSnapshotData(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/GetOperationMadeCest.php b/tests/integration/Mvc/Model/GetOperationMadeCest.php index 01adf27633b..3a4db2e0e06 100644 --- a/tests/integration/Mvc/Model/GetOperationMadeCest.php +++ b/tests/integration/Mvc/Model/GetOperationMadeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetOperationMadeCest /** * Tests Phalcon\Mvc\Model :: getOperationMade() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelGetOperationMade(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/GetReadConnectionCest.php b/tests/integration/Mvc/Model/GetReadConnectionCest.php index 54b737c5651..2a36fcd6351 100644 --- a/tests/integration/Mvc/Model/GetReadConnectionCest.php +++ b/tests/integration/Mvc/Model/GetReadConnectionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetReadConnectionCest /** * Tests Phalcon\Mvc\Model :: getReadConnection() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelGetReadConnection(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/GetReadConnectionServiceCest.php b/tests/integration/Mvc/Model/GetReadConnectionServiceCest.php index 2d703480b44..b8e727a92e7 100644 --- a/tests/integration/Mvc/Model/GetReadConnectionServiceCest.php +++ b/tests/integration/Mvc/Model/GetReadConnectionServiceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetReadConnectionServiceCest /** * Tests Phalcon\Mvc\Model :: getReadConnectionService() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelGetReadConnectionService(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/GetRelatedCest.php b/tests/integration/Mvc/Model/GetRelatedCest.php index da0f5f86449..302a6970949 100644 --- a/tests/integration/Mvc/Model/GetRelatedCest.php +++ b/tests/integration/Mvc/Model/GetRelatedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/GetSchemaCest.php b/tests/integration/Mvc/Model/GetSchemaCest.php index 1a30595281b..d153a438747 100644 --- a/tests/integration/Mvc/Model/GetSchemaCest.php +++ b/tests/integration/Mvc/Model/GetSchemaCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetSchemaCest /** * Tests Phalcon\Mvc\Model :: getSchema() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelGetSchema(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/GetSnapshotDataCest.php b/tests/integration/Mvc/Model/GetSnapshotDataCest.php index 702d4f73d1b..90d24fc2d66 100644 --- a/tests/integration/Mvc/Model/GetSnapshotDataCest.php +++ b/tests/integration/Mvc/Model/GetSnapshotDataCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetSnapshotDataCest /** * Tests Phalcon\Mvc\Model :: getSnapshotData() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelGetSnapshotData(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/GetSourceCest.php b/tests/integration/Mvc/Model/GetSourceCest.php index 69fb3dd8db7..061bfce6468 100644 --- a/tests/integration/Mvc/Model/GetSourceCest.php +++ b/tests/integration/Mvc/Model/GetSourceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetSourceCest /** * Tests Phalcon\Mvc\Model :: getSource() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelGetSource(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/GetTransactionCest.php b/tests/integration/Mvc/Model/GetTransactionCest.php index bbe06c1b981..efb67e6bb31 100644 --- a/tests/integration/Mvc/Model/GetTransactionCest.php +++ b/tests/integration/Mvc/Model/GetTransactionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetTransactionCest /** * Tests Phalcon\Mvc\Model :: getTransaction() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelGetTransaction(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/GetUpdatedFieldsCest.php b/tests/integration/Mvc/Model/GetUpdatedFieldsCest.php index db5c16df6f1..72962c92983 100644 --- a/tests/integration/Mvc/Model/GetUpdatedFieldsCest.php +++ b/tests/integration/Mvc/Model/GetUpdatedFieldsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetUpdatedFieldsCest /** * Tests Phalcon\Mvc\Model :: getUpdatedFields() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelGetUpdatedFields(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/GetWriteConnectionCest.php b/tests/integration/Mvc/Model/GetWriteConnectionCest.php index 9960bf848d2..b54938880f2 100644 --- a/tests/integration/Mvc/Model/GetWriteConnectionCest.php +++ b/tests/integration/Mvc/Model/GetWriteConnectionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetWriteConnectionCest /** * Tests Phalcon\Mvc\Model :: getWriteConnection() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelGetWriteConnection(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/GetWriteConnectionServiceCest.php b/tests/integration/Mvc/Model/GetWriteConnectionServiceCest.php index dbc18a2ab80..8489dd99b79 100644 --- a/tests/integration/Mvc/Model/GetWriteConnectionServiceCest.php +++ b/tests/integration/Mvc/Model/GetWriteConnectionServiceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetWriteConnectionServiceCest /** * Tests Phalcon\Mvc\Model :: getWriteConnectionService() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelGetWriteConnectionService(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/HasChangedCest.php b/tests/integration/Mvc/Model/HasChangedCest.php index 7e53643d680..826258c3507 100644 --- a/tests/integration/Mvc/Model/HasChangedCest.php +++ b/tests/integration/Mvc/Model/HasChangedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/HasSnapshotDataCest.php b/tests/integration/Mvc/Model/HasSnapshotDataCest.php index 7f9a0b48f66..83447d79235 100644 --- a/tests/integration/Mvc/Model/HasSnapshotDataCest.php +++ b/tests/integration/Mvc/Model/HasSnapshotDataCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class HasSnapshotDataCest /** * Tests Phalcon\Mvc\Model :: hasSnapshotData() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelHasSnapshotData(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/HasUpdatedCest.php b/tests/integration/Mvc/Model/HasUpdatedCest.php index 8d661808dca..28610a96286 100644 --- a/tests/integration/Mvc/Model/HasUpdatedCest.php +++ b/tests/integration/Mvc/Model/HasUpdatedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class HasUpdatedCest /** * Tests Phalcon\Mvc\Model :: hasUpdated() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelHasUpdated(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/IsRelationshipLoadedCest.php b/tests/integration/Mvc/Model/IsRelationshipLoadedCest.php index c9dc0ec2f88..9a09a8e1af6 100644 --- a/tests/integration/Mvc/Model/IsRelationshipLoadedCest.php +++ b/tests/integration/Mvc/Model/IsRelationshipLoadedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/JsonSerializeCest.php b/tests/integration/Mvc/Model/JsonSerializeCest.php index c9dad7f6729..1af87dbe599 100644 --- a/tests/integration/Mvc/Model/JsonSerializeCest.php +++ b/tests/integration/Mvc/Model/JsonSerializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class JsonSerializeCest /** * Tests Phalcon\Mvc\Model :: jsonSerialize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelJsonSerialize(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/AddBehaviorCest.php b/tests/integration/Mvc/Model/Manager/AddBehaviorCest.php index 4ca99edaf4c..d6031327b69 100644 --- a/tests/integration/Mvc/Model/Manager/AddBehaviorCest.php +++ b/tests/integration/Mvc/Model/Manager/AddBehaviorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddBehaviorCest /** * Tests Phalcon\Mvc\Model\Manager :: addBehavior() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerAddBehavior(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/AddBelongsToCest.php b/tests/integration/Mvc/Model/Manager/AddBelongsToCest.php index 91a195506b0..5f95502f47e 100644 --- a/tests/integration/Mvc/Model/Manager/AddBelongsToCest.php +++ b/tests/integration/Mvc/Model/Manager/AddBelongsToCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddBelongsToCest /** * Tests Phalcon\Mvc\Model\Manager :: addBelongsTo() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerAddBelongsTo(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/AddHasManyCest.php b/tests/integration/Mvc/Model/Manager/AddHasManyCest.php index 09070bec799..4ef6b9a125e 100644 --- a/tests/integration/Mvc/Model/Manager/AddHasManyCest.php +++ b/tests/integration/Mvc/Model/Manager/AddHasManyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddHasManyCest /** * Tests Phalcon\Mvc\Model\Manager :: addHasMany() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerAddHasMany(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/AddHasManyToManyCest.php b/tests/integration/Mvc/Model/Manager/AddHasManyToManyCest.php index 4b8d315c7c8..33b0dab72ff 100644 --- a/tests/integration/Mvc/Model/Manager/AddHasManyToManyCest.php +++ b/tests/integration/Mvc/Model/Manager/AddHasManyToManyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddHasManyToManyCest /** * Tests Phalcon\Mvc\Model\Manager :: addHasManyToMany() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerAddHasManyToMany(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/AddHasOneCest.php b/tests/integration/Mvc/Model/Manager/AddHasOneCest.php index 5090318f70c..852a1d54e40 100644 --- a/tests/integration/Mvc/Model/Manager/AddHasOneCest.php +++ b/tests/integration/Mvc/Model/Manager/AddHasOneCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddHasOneCest /** * Tests Phalcon\Mvc\Model\Manager :: addHasOne() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerAddHasOne(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/ClearReusableObjectsCest.php b/tests/integration/Mvc/Model/Manager/ClearReusableObjectsCest.php index e9e014cbeab..20670e98f1e 100644 --- a/tests/integration/Mvc/Model/Manager/ClearReusableObjectsCest.php +++ b/tests/integration/Mvc/Model/Manager/ClearReusableObjectsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ClearReusableObjectsCest /** * Tests Phalcon\Mvc\Model\Manager :: clearReusableObjects() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerClearReusableObjects(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/CreateBuilderCest.php b/tests/integration/Mvc/Model/Manager/CreateBuilderCest.php index 624e67c34a0..08609816318 100644 --- a/tests/integration/Mvc/Model/Manager/CreateBuilderCest.php +++ b/tests/integration/Mvc/Model/Manager/CreateBuilderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CreateBuilderCest /** * Tests Phalcon\Mvc\Model\Manager :: createBuilder() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerCreateBuilder(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/CreateQueryCest.php b/tests/integration/Mvc/Model/Manager/CreateQueryCest.php index 641e3dce56b..db273c9a824 100644 --- a/tests/integration/Mvc/Model/Manager/CreateQueryCest.php +++ b/tests/integration/Mvc/Model/Manager/CreateQueryCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CreateQueryCest /** * Tests Phalcon\Mvc\Model\Manager :: createQuery() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerCreateQuery(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/DestructCest.php b/tests/integration/Mvc/Model/Manager/DestructCest.php index 8829b5ee35c..c31f1897614 100644 --- a/tests/integration/Mvc/Model/Manager/DestructCest.php +++ b/tests/integration/Mvc/Model/Manager/DestructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class DestructCest /** * Tests Phalcon\Mvc\Model\Manager :: __destruct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerDestruct(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/ExecuteQueryCest.php b/tests/integration/Mvc/Model/Manager/ExecuteQueryCest.php index e2fe9817ab5..2d82f1c9f01 100644 --- a/tests/integration/Mvc/Model/Manager/ExecuteQueryCest.php +++ b/tests/integration/Mvc/Model/Manager/ExecuteQueryCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ExecuteQueryCest /** * Tests Phalcon\Mvc\Model\Manager :: executeQuery() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerExecuteQuery(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/ExistsBelongsToCest.php b/tests/integration/Mvc/Model/Manager/ExistsBelongsToCest.php index 78ee9e99877..beb0f8b7f09 100644 --- a/tests/integration/Mvc/Model/Manager/ExistsBelongsToCest.php +++ b/tests/integration/Mvc/Model/Manager/ExistsBelongsToCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/Manager/ExistsHasManyCest.php b/tests/integration/Mvc/Model/Manager/ExistsHasManyCest.php index f8adf87f02f..45b6b39a075 100644 --- a/tests/integration/Mvc/Model/Manager/ExistsHasManyCest.php +++ b/tests/integration/Mvc/Model/Manager/ExistsHasManyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/Manager/ExistsHasManyToManyCest.php b/tests/integration/Mvc/Model/Manager/ExistsHasManyToManyCest.php index 91a0c9013cb..a66c6aabefe 100644 --- a/tests/integration/Mvc/Model/Manager/ExistsHasManyToManyCest.php +++ b/tests/integration/Mvc/Model/Manager/ExistsHasManyToManyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -35,7 +35,7 @@ public function _after(IntegrationTester $I) /** * Tests Phalcon\Mvc\Model\Manager :: existsHasManyToMany() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider adaptersProvider diff --git a/tests/integration/Mvc/Model/Manager/ExistsHasOneCest.php b/tests/integration/Mvc/Model/Manager/ExistsHasOneCest.php index 753c200011b..c7cba7c878e 100644 --- a/tests/integration/Mvc/Model/Manager/ExistsHasOneCest.php +++ b/tests/integration/Mvc/Model/Manager/ExistsHasOneCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ExistsHasOneCest /** * Tests Phalcon\Mvc\Model\Manager :: existsHasOne() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerExistsHasOne(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/GetBelongsToCest.php b/tests/integration/Mvc/Model/Manager/GetBelongsToCest.php index 5ec84a0f1ab..21b2d6836d1 100644 --- a/tests/integration/Mvc/Model/Manager/GetBelongsToCest.php +++ b/tests/integration/Mvc/Model/Manager/GetBelongsToCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetBelongsToCest /** * Tests Phalcon\Mvc\Model\Manager :: getBelongsTo() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerGetBelongsTo(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/GetBelongsToRecordsCest.php b/tests/integration/Mvc/Model/Manager/GetBelongsToRecordsCest.php index ea62e116df8..018bd97e9b8 100644 --- a/tests/integration/Mvc/Model/Manager/GetBelongsToRecordsCest.php +++ b/tests/integration/Mvc/Model/Manager/GetBelongsToRecordsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetBelongsToRecordsCest /** * Tests Phalcon\Mvc\Model\Manager :: getBelongsToRecords() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerGetBelongsToRecords(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/GetCustomEventsManagerCest.php b/tests/integration/Mvc/Model/Manager/GetCustomEventsManagerCest.php index d04c1480454..ad07e54bf8b 100644 --- a/tests/integration/Mvc/Model/Manager/GetCustomEventsManagerCest.php +++ b/tests/integration/Mvc/Model/Manager/GetCustomEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetCustomEventsManagerCest /** * Tests Phalcon\Mvc\Model\Manager :: getCustomEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerGetCustomEventsManager(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/GetDICest.php b/tests/integration/Mvc/Model/Manager/GetDICest.php index ae3a5f926a5..ef466fce3d6 100644 --- a/tests/integration/Mvc/Model/Manager/GetDICest.php +++ b/tests/integration/Mvc/Model/Manager/GetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDICest /** * Tests Phalcon\Mvc\Model\Manager :: getDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerGetDI(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/GetEventsManagerCest.php b/tests/integration/Mvc/Model/Manager/GetEventsManagerCest.php index f229df69aeb..3d286da9b85 100644 --- a/tests/integration/Mvc/Model/Manager/GetEventsManagerCest.php +++ b/tests/integration/Mvc/Model/Manager/GetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetEventsManagerCest /** * Tests Phalcon\Mvc\Model\Manager :: getEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerGetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/GetHasManyCest.php b/tests/integration/Mvc/Model/Manager/GetHasManyCest.php index fdcfd7c7dc0..de512182748 100644 --- a/tests/integration/Mvc/Model/Manager/GetHasManyCest.php +++ b/tests/integration/Mvc/Model/Manager/GetHasManyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetHasManyCest /** * Tests Phalcon\Mvc\Model\Manager :: getHasMany() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerGetHasMany(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/GetHasManyRecordsCest.php b/tests/integration/Mvc/Model/Manager/GetHasManyRecordsCest.php index d1a96036540..db3812e8dd2 100644 --- a/tests/integration/Mvc/Model/Manager/GetHasManyRecordsCest.php +++ b/tests/integration/Mvc/Model/Manager/GetHasManyRecordsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetHasManyRecordsCest /** * Tests Phalcon\Mvc\Model\Manager :: getHasManyRecords() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerGetHasManyRecords(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/GetHasManyToManyCest.php b/tests/integration/Mvc/Model/Manager/GetHasManyToManyCest.php index 0f684c6b961..294c6151da9 100644 --- a/tests/integration/Mvc/Model/Manager/GetHasManyToManyCest.php +++ b/tests/integration/Mvc/Model/Manager/GetHasManyToManyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetHasManyToManyCest /** * Tests Phalcon\Mvc\Model\Manager :: getHasManyToMany() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerGetHasManyToMany(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/GetHasOneAndHasManyCest.php b/tests/integration/Mvc/Model/Manager/GetHasOneAndHasManyCest.php index 58e8fdaa4f9..0cbf6ffe54e 100644 --- a/tests/integration/Mvc/Model/Manager/GetHasOneAndHasManyCest.php +++ b/tests/integration/Mvc/Model/Manager/GetHasOneAndHasManyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetHasOneAndHasManyCest /** * Tests Phalcon\Mvc\Model\Manager :: getHasOneAndHasMany() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerGetHasOneAndHasMany(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/GetHasOneCest.php b/tests/integration/Mvc/Model/Manager/GetHasOneCest.php index 6ac777585e1..1a3298d2145 100644 --- a/tests/integration/Mvc/Model/Manager/GetHasOneCest.php +++ b/tests/integration/Mvc/Model/Manager/GetHasOneCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetHasOneCest /** * Tests Phalcon\Mvc\Model\Manager :: getHasOne() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerGetHasOne(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/GetHasOneRecordsCest.php b/tests/integration/Mvc/Model/Manager/GetHasOneRecordsCest.php index 9d6c5bfec87..a2b3b66fdc3 100644 --- a/tests/integration/Mvc/Model/Manager/GetHasOneRecordsCest.php +++ b/tests/integration/Mvc/Model/Manager/GetHasOneRecordsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetHasOneRecordsCest /** * Tests Phalcon\Mvc\Model\Manager :: getHasOneRecords() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerGetHasOneRecords(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/GetLastInitializedCest.php b/tests/integration/Mvc/Model/Manager/GetLastInitializedCest.php index 89274cbe33b..6e3a8d8929b 100644 --- a/tests/integration/Mvc/Model/Manager/GetLastInitializedCest.php +++ b/tests/integration/Mvc/Model/Manager/GetLastInitializedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetLastInitializedCest /** * Tests Phalcon\Mvc\Model\Manager :: getLastInitialized() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerGetLastInitialized(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/GetLastQueryCest.php b/tests/integration/Mvc/Model/Manager/GetLastQueryCest.php index 42e442e71e8..eeeca3c2807 100644 --- a/tests/integration/Mvc/Model/Manager/GetLastQueryCest.php +++ b/tests/integration/Mvc/Model/Manager/GetLastQueryCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetLastQueryCest /** * Tests Phalcon\Mvc\Model\Manager :: getLastQuery() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerGetLastQuery(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/GetModelPrefixCest.php b/tests/integration/Mvc/Model/Manager/GetModelPrefixCest.php index dc91ed38ce1..38893e788e9 100644 --- a/tests/integration/Mvc/Model/Manager/GetModelPrefixCest.php +++ b/tests/integration/Mvc/Model/Manager/GetModelPrefixCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/Manager/GetModelSchemaCest.php b/tests/integration/Mvc/Model/Manager/GetModelSchemaCest.php index fa7f5e44c07..c9a1df54fa8 100644 --- a/tests/integration/Mvc/Model/Manager/GetModelSchemaCest.php +++ b/tests/integration/Mvc/Model/Manager/GetModelSchemaCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetModelSchemaCest /** * Tests Phalcon\Mvc\Model\Manager :: getModelSchema() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerGetModelSchema(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/GetModelSourceCest.php b/tests/integration/Mvc/Model/Manager/GetModelSourceCest.php index 73f4f0a3664..eb21eb3ace4 100644 --- a/tests/integration/Mvc/Model/Manager/GetModelSourceCest.php +++ b/tests/integration/Mvc/Model/Manager/GetModelSourceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetModelSourceCest /** * Tests Phalcon\Mvc\Model\Manager :: getModelSource() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerGetModelSource(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/GetReadConnectionCest.php b/tests/integration/Mvc/Model/Manager/GetReadConnectionCest.php index 383286043cb..b0cb7078c7d 100644 --- a/tests/integration/Mvc/Model/Manager/GetReadConnectionCest.php +++ b/tests/integration/Mvc/Model/Manager/GetReadConnectionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetReadConnectionCest /** * Tests Phalcon\Mvc\Model\Manager :: getReadConnection() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerGetReadConnection(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/GetReadConnectionServiceCest.php b/tests/integration/Mvc/Model/Manager/GetReadConnectionServiceCest.php index 683cb4b44ae..85d464c1255 100644 --- a/tests/integration/Mvc/Model/Manager/GetReadConnectionServiceCest.php +++ b/tests/integration/Mvc/Model/Manager/GetReadConnectionServiceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetReadConnectionServiceCest /** * Tests Phalcon\Mvc\Model\Manager :: getReadConnectionService() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerGetReadConnectionService(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/GetRelationByAliasCest.php b/tests/integration/Mvc/Model/Manager/GetRelationByAliasCest.php index 9a1d31a414b..866ca98ddb5 100644 --- a/tests/integration/Mvc/Model/Manager/GetRelationByAliasCest.php +++ b/tests/integration/Mvc/Model/Manager/GetRelationByAliasCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetRelationByAliasCest /** * Tests Phalcon\Mvc\Model\Manager :: getRelationByAlias() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerGetRelationByAlias(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/GetRelationRecordsCest.php b/tests/integration/Mvc/Model/Manager/GetRelationRecordsCest.php index 0d667e17392..9262f93bfb5 100644 --- a/tests/integration/Mvc/Model/Manager/GetRelationRecordsCest.php +++ b/tests/integration/Mvc/Model/Manager/GetRelationRecordsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/Manager/GetRelationsBetweenCest.php b/tests/integration/Mvc/Model/Manager/GetRelationsBetweenCest.php index b5d7d02e6ae..0aeb344d5da 100644 --- a/tests/integration/Mvc/Model/Manager/GetRelationsBetweenCest.php +++ b/tests/integration/Mvc/Model/Manager/GetRelationsBetweenCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetRelationsBetweenCest /** * Tests Phalcon\Mvc\Model\Manager :: getRelationsBetween() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerGetRelationsBetween(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/GetRelationsCest.php b/tests/integration/Mvc/Model/Manager/GetRelationsCest.php index dd3572525af..1a5257d3cb2 100644 --- a/tests/integration/Mvc/Model/Manager/GetRelationsCest.php +++ b/tests/integration/Mvc/Model/Manager/GetRelationsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetRelationsCest /** * Tests Phalcon\Mvc\Model\Manager :: getRelations() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerGetRelations(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/GetReusableRecordsCest.php b/tests/integration/Mvc/Model/Manager/GetReusableRecordsCest.php index 36d3ac8fe6c..10e9ed10b72 100644 --- a/tests/integration/Mvc/Model/Manager/GetReusableRecordsCest.php +++ b/tests/integration/Mvc/Model/Manager/GetReusableRecordsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetReusableRecordsCest /** * Tests Phalcon\Mvc\Model\Manager :: getReusableRecords() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerGetReusableRecords(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/GetWriteConnectionCest.php b/tests/integration/Mvc/Model/Manager/GetWriteConnectionCest.php index ee4a69cd784..5ab01b61469 100644 --- a/tests/integration/Mvc/Model/Manager/GetWriteConnectionCest.php +++ b/tests/integration/Mvc/Model/Manager/GetWriteConnectionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetWriteConnectionCest /** * Tests Phalcon\Mvc\Model\Manager :: getWriteConnection() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerGetWriteConnection(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/GetWriteConnectionServiceCest.php b/tests/integration/Mvc/Model/Manager/GetWriteConnectionServiceCest.php index c86f7018096..10da426ad72 100644 --- a/tests/integration/Mvc/Model/Manager/GetWriteConnectionServiceCest.php +++ b/tests/integration/Mvc/Model/Manager/GetWriteConnectionServiceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetWriteConnectionServiceCest /** * Tests Phalcon\Mvc\Model\Manager :: getWriteConnectionService() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerGetWriteConnectionService(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/InitializeCest.php b/tests/integration/Mvc/Model/Manager/InitializeCest.php index d4a0bbbf931..d22eb5e9a37 100644 --- a/tests/integration/Mvc/Model/Manager/InitializeCest.php +++ b/tests/integration/Mvc/Model/Manager/InitializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class InitializeCest /** * Tests Phalcon\Mvc\Model\Manager :: initialize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerInitialize(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/IsInitializedCest.php b/tests/integration/Mvc/Model/Manager/IsInitializedCest.php index c9c008282cf..23740989a3a 100644 --- a/tests/integration/Mvc/Model/Manager/IsInitializedCest.php +++ b/tests/integration/Mvc/Model/Manager/IsInitializedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class IsInitializedCest /** * Tests Phalcon\Mvc\Model\Manager :: isInitialized() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerIsInitialized(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/IsKeepingSnapshotsCest.php b/tests/integration/Mvc/Model/Manager/IsKeepingSnapshotsCest.php index 406e6dd8690..009a6e9ecad 100644 --- a/tests/integration/Mvc/Model/Manager/IsKeepingSnapshotsCest.php +++ b/tests/integration/Mvc/Model/Manager/IsKeepingSnapshotsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class IsKeepingSnapshotsCest /** * Tests Phalcon\Mvc\Model\Manager :: isKeepingSnapshots() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerIsKeepingSnapshots(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/IsUsingDynamicUpdateCest.php b/tests/integration/Mvc/Model/Manager/IsUsingDynamicUpdateCest.php index 83007dffe10..80122a71ff5 100644 --- a/tests/integration/Mvc/Model/Manager/IsUsingDynamicUpdateCest.php +++ b/tests/integration/Mvc/Model/Manager/IsUsingDynamicUpdateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class IsUsingDynamicUpdateCest /** * Tests Phalcon\Mvc\Model\Manager :: isUsingDynamicUpdate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerIsUsingDynamicUpdate(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/IsVisibleModelPropertyCest.php b/tests/integration/Mvc/Model/Manager/IsVisibleModelPropertyCest.php index a3b3a4ede77..1e78e80d3b9 100644 --- a/tests/integration/Mvc/Model/Manager/IsVisibleModelPropertyCest.php +++ b/tests/integration/Mvc/Model/Manager/IsVisibleModelPropertyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -35,7 +35,7 @@ public function _after(IntegrationTester $I) /** * Tests Phalcon\Mvc\Model\Manager :: isVisibleModelProperty() * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-08-12 * * @dataProvider publicPropertiesProvider diff --git a/tests/integration/Mvc/Model/Manager/KeepSnapshotsCest.php b/tests/integration/Mvc/Model/Manager/KeepSnapshotsCest.php index 6a747011cd3..f252948e488 100644 --- a/tests/integration/Mvc/Model/Manager/KeepSnapshotsCest.php +++ b/tests/integration/Mvc/Model/Manager/KeepSnapshotsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class KeepSnapshotsCest /** * Tests Phalcon\Mvc\Model\Manager :: keepSnapshots() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerKeepSnapshots(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/LoadCest.php b/tests/integration/Mvc/Model/Manager/LoadCest.php index 6f55f6b4285..beb58fed2e7 100644 --- a/tests/integration/Mvc/Model/Manager/LoadCest.php +++ b/tests/integration/Mvc/Model/Manager/LoadCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class LoadCest /** * Tests Phalcon\Mvc\Model\Manager :: load() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerLoad(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/MissingMethodCest.php b/tests/integration/Mvc/Model/Manager/MissingMethodCest.php index f6f5555b2b5..b67ef094447 100644 --- a/tests/integration/Mvc/Model/Manager/MissingMethodCest.php +++ b/tests/integration/Mvc/Model/Manager/MissingMethodCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class MissingMethodCest /** * Tests Phalcon\Mvc\Model\Manager :: missingMethod() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerMissingMethod(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/NotifyEventCest.php b/tests/integration/Mvc/Model/Manager/NotifyEventCest.php index 913b2137691..7e5c94bb8e6 100644 --- a/tests/integration/Mvc/Model/Manager/NotifyEventCest.php +++ b/tests/integration/Mvc/Model/Manager/NotifyEventCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class NotifyEventCest /** * Tests Phalcon\Mvc\Model\Manager :: notifyEvent() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerNotifyEvent(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/SetConnectionServiceCest.php b/tests/integration/Mvc/Model/Manager/SetConnectionServiceCest.php index 373176cd8a7..ae30ab7a203 100644 --- a/tests/integration/Mvc/Model/Manager/SetConnectionServiceCest.php +++ b/tests/integration/Mvc/Model/Manager/SetConnectionServiceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetConnectionServiceCest /** * Tests Phalcon\Mvc\Model\Manager :: setConnectionService() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerSetConnectionService(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/SetCustomEventsManagerCest.php b/tests/integration/Mvc/Model/Manager/SetCustomEventsManagerCest.php index 06c561c3a8f..185cd61e8d4 100644 --- a/tests/integration/Mvc/Model/Manager/SetCustomEventsManagerCest.php +++ b/tests/integration/Mvc/Model/Manager/SetCustomEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetCustomEventsManagerCest /** * Tests Phalcon\Mvc\Model\Manager :: setCustomEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerSetCustomEventsManager(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/SetDICest.php b/tests/integration/Mvc/Model/Manager/SetDICest.php index 53861674290..917a51e4116 100644 --- a/tests/integration/Mvc/Model/Manager/SetDICest.php +++ b/tests/integration/Mvc/Model/Manager/SetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetDICest /** * Tests Phalcon\Mvc\Model\Manager :: setDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerSetDI(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/SetEventsManagerCest.php b/tests/integration/Mvc/Model/Manager/SetEventsManagerCest.php index 51080939430..79e34b8fb17 100644 --- a/tests/integration/Mvc/Model/Manager/SetEventsManagerCest.php +++ b/tests/integration/Mvc/Model/Manager/SetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetEventsManagerCest /** * Tests Phalcon\Mvc\Model\Manager :: setEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerSetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/SetModelPrefixCest.php b/tests/integration/Mvc/Model/Manager/SetModelPrefixCest.php index d54f8cb4941..aff80642065 100644 --- a/tests/integration/Mvc/Model/Manager/SetModelPrefixCest.php +++ b/tests/integration/Mvc/Model/Manager/SetModelPrefixCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/Manager/SetModelSchemaCest.php b/tests/integration/Mvc/Model/Manager/SetModelSchemaCest.php index e6452d28f36..7041c2ca4bc 100644 --- a/tests/integration/Mvc/Model/Manager/SetModelSchemaCest.php +++ b/tests/integration/Mvc/Model/Manager/SetModelSchemaCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetModelSchemaCest /** * Tests Phalcon\Mvc\Model\Manager :: setModelSchema() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerSetModelSchema(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/SetModelSourceCest.php b/tests/integration/Mvc/Model/Manager/SetModelSourceCest.php index 22dc0c233e2..76494deaf21 100644 --- a/tests/integration/Mvc/Model/Manager/SetModelSourceCest.php +++ b/tests/integration/Mvc/Model/Manager/SetModelSourceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetModelSourceCest /** * Tests Phalcon\Mvc\Model\Manager :: setModelSource() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerSetModelSource(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/SetReadConnectionServiceCest.php b/tests/integration/Mvc/Model/Manager/SetReadConnectionServiceCest.php index 62f96ca63b2..d042897c491 100644 --- a/tests/integration/Mvc/Model/Manager/SetReadConnectionServiceCest.php +++ b/tests/integration/Mvc/Model/Manager/SetReadConnectionServiceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetReadConnectionServiceCest /** * Tests Phalcon\Mvc\Model\Manager :: setReadConnectionService() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerSetReadConnectionService(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/SetReusableRecordsCest.php b/tests/integration/Mvc/Model/Manager/SetReusableRecordsCest.php index 5cb8f251229..f3fd58f7ecd 100644 --- a/tests/integration/Mvc/Model/Manager/SetReusableRecordsCest.php +++ b/tests/integration/Mvc/Model/Manager/SetReusableRecordsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetReusableRecordsCest /** * Tests Phalcon\Mvc\Model\Manager :: setReusableRecords() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerSetReusableRecords(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/SetWriteConnectionServiceCest.php b/tests/integration/Mvc/Model/Manager/SetWriteConnectionServiceCest.php index a74317c60bf..10e2bd3f2e5 100644 --- a/tests/integration/Mvc/Model/Manager/SetWriteConnectionServiceCest.php +++ b/tests/integration/Mvc/Model/Manager/SetWriteConnectionServiceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetWriteConnectionServiceCest /** * Tests Phalcon\Mvc\Model\Manager :: setWriteConnectionService() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerSetWriteConnectionService(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/UnderscoreGetConnectionServiceCest.php b/tests/integration/Mvc/Model/Manager/UnderscoreGetConnectionServiceCest.php index 4be01f7dc87..2e9527e4bd2 100644 --- a/tests/integration/Mvc/Model/Manager/UnderscoreGetConnectionServiceCest.php +++ b/tests/integration/Mvc/Model/Manager/UnderscoreGetConnectionServiceCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -18,7 +18,7 @@ class UnderscoreGetConnectionServiceCest /** * Tests Phalcon\Mvc\Model\Manager :: _getConnectionService() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerUnderscoreGetConnectionService(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Manager/UseDynamicUpdateCest.php b/tests/integration/Mvc/Model/Manager/UseDynamicUpdateCest.php index 7b8e0bf12a4..b01be478371 100644 --- a/tests/integration/Mvc/Model/Manager/UseDynamicUpdateCest.php +++ b/tests/integration/Mvc/Model/Manager/UseDynamicUpdateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class UseDynamicUpdateCest /** * Tests Phalcon\Mvc\Model\Manager :: useDynamicUpdate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelManagerUseDynamicUpdate(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Apcu/ConstructCest.php b/tests/integration/Mvc/Model/MetaData/Apcu/ConstructCest.php index 6bb697af87a..f64afd6529d 100644 --- a/tests/integration/Mvc/Model/MetaData/Apcu/ConstructCest.php +++ b/tests/integration/Mvc/Model/MetaData/Apcu/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -65,7 +65,7 @@ public function _after(IntegrationTester $I) /** * Tests Phalcon\Mvc\Model\MetaData\Apcu :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataApcuConstruct(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Apcu/GetAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Apcu/GetAttributesCest.php index ca61648f472..8ecb1199ff5 100644 --- a/tests/integration/Mvc/Model/MetaData/Apcu/GetAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Apcu/GetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Apcu :: getAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataApcuGetAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Apcu/GetAutomaticCreateAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Apcu/GetAutomaticCreateAttributesCest.php index 535a229704c..9abe69caf6d 100644 --- a/tests/integration/Mvc/Model/MetaData/Apcu/GetAutomaticCreateAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Apcu/GetAutomaticCreateAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAutomaticCreateAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Apcu :: getAutomaticCreateAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataApcuGetAutomaticCreateAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Apcu/GetAutomaticUpdateAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Apcu/GetAutomaticUpdateAttributesCest.php index 240315d21f8..d5564f4e562 100644 --- a/tests/integration/Mvc/Model/MetaData/Apcu/GetAutomaticUpdateAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Apcu/GetAutomaticUpdateAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAutomaticUpdateAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Apcu :: getAutomaticUpdateAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataApcuGetAutomaticUpdateAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Apcu/GetBindTypesCest.php b/tests/integration/Mvc/Model/MetaData/Apcu/GetBindTypesCest.php index 65f839ec834..a120d793507 100644 --- a/tests/integration/Mvc/Model/MetaData/Apcu/GetBindTypesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Apcu/GetBindTypesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetBindTypesCest /** * Tests Phalcon\Mvc\Model\MetaData\Apcu :: getBindTypes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataApcuGetBindTypes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Apcu/GetColumnMapCest.php b/tests/integration/Mvc/Model/MetaData/Apcu/GetColumnMapCest.php index f8e178f2f16..735e7eeb858 100644 --- a/tests/integration/Mvc/Model/MetaData/Apcu/GetColumnMapCest.php +++ b/tests/integration/Mvc/Model/MetaData/Apcu/GetColumnMapCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetColumnMapCest /** * Tests Phalcon\Mvc\Model\MetaData\Apcu :: getColumnMap() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataApcuGetColumnMap(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Apcu/GetDataTypesCest.php b/tests/integration/Mvc/Model/MetaData/Apcu/GetDataTypesCest.php index 27640661ddf..7c6790569f0 100644 --- a/tests/integration/Mvc/Model/MetaData/Apcu/GetDataTypesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Apcu/GetDataTypesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDataTypesCest /** * Tests Phalcon\Mvc\Model\MetaData\Apcu :: getDataTypes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataApcuGetDataTypes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Apcu/GetDataTypesNumericCest.php b/tests/integration/Mvc/Model/MetaData/Apcu/GetDataTypesNumericCest.php index c836d5931c7..df7443bb70b 100644 --- a/tests/integration/Mvc/Model/MetaData/Apcu/GetDataTypesNumericCest.php +++ b/tests/integration/Mvc/Model/MetaData/Apcu/GetDataTypesNumericCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDataTypesNumericCest /** * Tests Phalcon\Mvc\Model\MetaData\Apcu :: getDataTypesNumeric() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataApcuGetDataTypesNumeric(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Apcu/GetDefaultValuesCest.php b/tests/integration/Mvc/Model/MetaData/Apcu/GetDefaultValuesCest.php index be853d0fc17..e9aaf2ba28d 100644 --- a/tests/integration/Mvc/Model/MetaData/Apcu/GetDefaultValuesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Apcu/GetDefaultValuesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDefaultValuesCest /** * Tests Phalcon\Mvc\Model\MetaData\Apcu :: getDefaultValues() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataApcuGetDefaultValues(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Apcu/GetEmptyStringAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Apcu/GetEmptyStringAttributesCest.php index ab243191819..de4bb5032a5 100644 --- a/tests/integration/Mvc/Model/MetaData/Apcu/GetEmptyStringAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Apcu/GetEmptyStringAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetEmptyStringAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Apcu :: getEmptyStringAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataApcuGetEmptyStringAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Apcu/GetIdentityFieldCest.php b/tests/integration/Mvc/Model/MetaData/Apcu/GetIdentityFieldCest.php index 374bed8a677..5b15e2e53b6 100644 --- a/tests/integration/Mvc/Model/MetaData/Apcu/GetIdentityFieldCest.php +++ b/tests/integration/Mvc/Model/MetaData/Apcu/GetIdentityFieldCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetIdentityFieldCest /** * Tests Phalcon\Mvc\Model\MetaData\Apcu :: getIdentityField() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataApcuGetIdentityField(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Apcu/GetNonPrimaryKeyAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Apcu/GetNonPrimaryKeyAttributesCest.php index 12cf4f9e602..0984fcc4c4d 100644 --- a/tests/integration/Mvc/Model/MetaData/Apcu/GetNonPrimaryKeyAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Apcu/GetNonPrimaryKeyAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetNonPrimaryKeyAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Apcu :: getNonPrimaryKeyAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataApcuGetNonPrimaryKeyAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Apcu/GetNotNullAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Apcu/GetNotNullAttributesCest.php index 42e6ad08d1a..4adb1822c78 100644 --- a/tests/integration/Mvc/Model/MetaData/Apcu/GetNotNullAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Apcu/GetNotNullAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetNotNullAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Apcu :: getNotNullAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataApcuGetNotNullAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Apcu/GetPrimaryKeyAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Apcu/GetPrimaryKeyAttributesCest.php index 3f21e81e75f..0279b664e7f 100644 --- a/tests/integration/Mvc/Model/MetaData/Apcu/GetPrimaryKeyAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Apcu/GetPrimaryKeyAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetPrimaryKeyAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Apcu :: getPrimaryKeyAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataApcuGetPrimaryKeyAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Apcu/GetReverseColumnMapCest.php b/tests/integration/Mvc/Model/MetaData/Apcu/GetReverseColumnMapCest.php index cd7f482a51e..4e2b0623216 100644 --- a/tests/integration/Mvc/Model/MetaData/Apcu/GetReverseColumnMapCest.php +++ b/tests/integration/Mvc/Model/MetaData/Apcu/GetReverseColumnMapCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetReverseColumnMapCest /** * Tests Phalcon\Mvc\Model\MetaData\Apcu :: getReverseColumnMap() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataApcuGetReverseColumnMap(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Apcu/GetSetDICest.php b/tests/integration/Mvc/Model/MetaData/Apcu/GetSetDICest.php index c4cac1353a2..cfc14437db5 100644 --- a/tests/integration/Mvc/Model/MetaData/Apcu/GetSetDICest.php +++ b/tests/integration/Mvc/Model/MetaData/Apcu/GetSetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetSetDICest /** * Tests Phalcon\Mvc\Model\MetaData\Apcu :: getDI() / setDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataApcuGetSetDI(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Apcu/GetStrategyCest.php b/tests/integration/Mvc/Model/MetaData/Apcu/GetStrategyCest.php index f2ff08f81e6..0e94b9e6636 100644 --- a/tests/integration/Mvc/Model/MetaData/Apcu/GetStrategyCest.php +++ b/tests/integration/Mvc/Model/MetaData/Apcu/GetStrategyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetStrategyCest /** * Tests Phalcon\Mvc\Model\MetaData\Apcu :: getStrategy() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataApcuGetStrategy(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Apcu/HasAttributeCest.php b/tests/integration/Mvc/Model/MetaData/Apcu/HasAttributeCest.php index 700982e818f..c0cba34adba 100644 --- a/tests/integration/Mvc/Model/MetaData/Apcu/HasAttributeCest.php +++ b/tests/integration/Mvc/Model/MetaData/Apcu/HasAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class HasAttributeCest /** * Tests Phalcon\Mvc\Model\MetaData\Apcu :: hasAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataApcuHasAttribute(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Apcu/IsEmptyCest.php b/tests/integration/Mvc/Model/MetaData/Apcu/IsEmptyCest.php index e29216fd626..d8fe619b5f7 100644 --- a/tests/integration/Mvc/Model/MetaData/Apcu/IsEmptyCest.php +++ b/tests/integration/Mvc/Model/MetaData/Apcu/IsEmptyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class IsEmptyCest /** * Tests Phalcon\Mvc\Model\MetaData\Apcu :: isEmpty() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataApcuIsEmpty(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Apcu/ReadCest.php b/tests/integration/Mvc/Model/MetaData/Apcu/ReadCest.php index 5a202811d5d..7222b0f4b16 100644 --- a/tests/integration/Mvc/Model/MetaData/Apcu/ReadCest.php +++ b/tests/integration/Mvc/Model/MetaData/Apcu/ReadCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ReadCest /** * Tests Phalcon\Mvc\Model\MetaData\Apcu :: read() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataApcuRead(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Apcu/ReadColumnMapCest.php b/tests/integration/Mvc/Model/MetaData/Apcu/ReadColumnMapCest.php index 4d3fad015c0..3d950fd3128 100644 --- a/tests/integration/Mvc/Model/MetaData/Apcu/ReadColumnMapCest.php +++ b/tests/integration/Mvc/Model/MetaData/Apcu/ReadColumnMapCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ReadColumnMapCest /** * Tests Phalcon\Mvc\Model\MetaData\Apcu :: readColumnMap() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataApcuReadColumnMap(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Apcu/ReadColumnMapIndexCest.php b/tests/integration/Mvc/Model/MetaData/Apcu/ReadColumnMapIndexCest.php index b4c7b0745ba..9ee5a759642 100644 --- a/tests/integration/Mvc/Model/MetaData/Apcu/ReadColumnMapIndexCest.php +++ b/tests/integration/Mvc/Model/MetaData/Apcu/ReadColumnMapIndexCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ReadColumnMapIndexCest /** * Tests Phalcon\Mvc\Model\MetaData\Apcu :: readColumnMapIndex() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataApcuReadColumnMapIndex(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Apcu/ReadMetaDataCest.php b/tests/integration/Mvc/Model/MetaData/Apcu/ReadMetaDataCest.php index a73969bd83e..b8076ff8e71 100644 --- a/tests/integration/Mvc/Model/MetaData/Apcu/ReadMetaDataCest.php +++ b/tests/integration/Mvc/Model/MetaData/Apcu/ReadMetaDataCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ReadMetaDataCest /** * Tests Phalcon\Mvc\Model\MetaData\Apcu :: readMetaData() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataApcuReadMetaData(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Apcu/ReadMetaDataIndexCest.php b/tests/integration/Mvc/Model/MetaData/Apcu/ReadMetaDataIndexCest.php index c6850ea656e..d9e9b1db317 100644 --- a/tests/integration/Mvc/Model/MetaData/Apcu/ReadMetaDataIndexCest.php +++ b/tests/integration/Mvc/Model/MetaData/Apcu/ReadMetaDataIndexCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ReadMetaDataIndexCest /** * Tests Phalcon\Mvc\Model\MetaData\Apcu :: readMetaDataIndex() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataApcuReadMetaDataIndex(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Apcu/ResetCest.php b/tests/integration/Mvc/Model/MetaData/Apcu/ResetCest.php index 14e6f73bc5f..7a9b689e32c 100644 --- a/tests/integration/Mvc/Model/MetaData/Apcu/ResetCest.php +++ b/tests/integration/Mvc/Model/MetaData/Apcu/ResetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ResetCest /** * Tests Phalcon\Mvc\Model\MetaData\Apcu :: reset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataApcuReset(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Apcu/SetAutomaticCreateAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Apcu/SetAutomaticCreateAttributesCest.php index bce159500d8..40abc11e6a2 100644 --- a/tests/integration/Mvc/Model/MetaData/Apcu/SetAutomaticCreateAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Apcu/SetAutomaticCreateAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetAutomaticCreateAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Apcu :: setAutomaticCreateAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataApcuSetAutomaticCreateAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Apcu/SetAutomaticUpdateAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Apcu/SetAutomaticUpdateAttributesCest.php index 1f765408101..a569c80935b 100644 --- a/tests/integration/Mvc/Model/MetaData/Apcu/SetAutomaticUpdateAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Apcu/SetAutomaticUpdateAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetAutomaticUpdateAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Apcu :: setAutomaticUpdateAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataApcuSetAutomaticUpdateAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Apcu/SetEmptyStringAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Apcu/SetEmptyStringAttributesCest.php index 22bf5c3072c..850229bf023 100644 --- a/tests/integration/Mvc/Model/MetaData/Apcu/SetEmptyStringAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Apcu/SetEmptyStringAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetEmptyStringAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Apcu :: setEmptyStringAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataApcuSetEmptyStringAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Apcu/SetStrategyCest.php b/tests/integration/Mvc/Model/MetaData/Apcu/SetStrategyCest.php index 0587f9ca319..52a20a39a73 100644 --- a/tests/integration/Mvc/Model/MetaData/Apcu/SetStrategyCest.php +++ b/tests/integration/Mvc/Model/MetaData/Apcu/SetStrategyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetStrategyCest /** * Tests Phalcon\Mvc\Model\MetaData\Apcu :: setStrategy() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataApcuSetStrategy(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Apcu/WriteCest.php b/tests/integration/Mvc/Model/MetaData/Apcu/WriteCest.php index 14814545e23..140b235afd6 100644 --- a/tests/integration/Mvc/Model/MetaData/Apcu/WriteCest.php +++ b/tests/integration/Mvc/Model/MetaData/Apcu/WriteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class WriteCest /** * Tests Phalcon\Mvc\Model\MetaData\Apcu :: write() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataApcuWrite(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Apcu/WriteMetaDataIndexCest.php b/tests/integration/Mvc/Model/MetaData/Apcu/WriteMetaDataIndexCest.php index 66e87eec5e1..88b64b8c7d7 100644 --- a/tests/integration/Mvc/Model/MetaData/Apcu/WriteMetaDataIndexCest.php +++ b/tests/integration/Mvc/Model/MetaData/Apcu/WriteMetaDataIndexCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class WriteMetaDataIndexCest /** * Tests Phalcon\Mvc\Model\MetaData\Apcu :: writeMetaDataIndex() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataApcuWriteMetaDataIndex(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/GetAttributesCest.php b/tests/integration/Mvc/Model/MetaData/GetAttributesCest.php index 9c07d0a3d26..c6ea7b59580 100644 --- a/tests/integration/Mvc/Model/MetaData/GetAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/GetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData :: getAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataGetAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/GetAutomaticCreateAttributesCest.php b/tests/integration/Mvc/Model/MetaData/GetAutomaticCreateAttributesCest.php index ba93611631a..d68c073fbd5 100644 --- a/tests/integration/Mvc/Model/MetaData/GetAutomaticCreateAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/GetAutomaticCreateAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAutomaticCreateAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData :: getAutomaticCreateAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataGetAutomaticCreateAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/GetAutomaticUpdateAttributesCest.php b/tests/integration/Mvc/Model/MetaData/GetAutomaticUpdateAttributesCest.php index 34241f18d42..7b73f81ee65 100644 --- a/tests/integration/Mvc/Model/MetaData/GetAutomaticUpdateAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/GetAutomaticUpdateAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAutomaticUpdateAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData :: getAutomaticUpdateAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataGetAutomaticUpdateAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/GetBindTypesCest.php b/tests/integration/Mvc/Model/MetaData/GetBindTypesCest.php index 2d82f58b0bb..806da1b9798 100644 --- a/tests/integration/Mvc/Model/MetaData/GetBindTypesCest.php +++ b/tests/integration/Mvc/Model/MetaData/GetBindTypesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetBindTypesCest /** * Tests Phalcon\Mvc\Model\MetaData :: getBindTypes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataGetBindTypes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/GetColumnMapCest.php b/tests/integration/Mvc/Model/MetaData/GetColumnMapCest.php index 3d432ccd1ef..57dcab7f872 100644 --- a/tests/integration/Mvc/Model/MetaData/GetColumnMapCest.php +++ b/tests/integration/Mvc/Model/MetaData/GetColumnMapCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetColumnMapCest /** * Tests Phalcon\Mvc\Model\MetaData :: getColumnMap() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataGetColumnMap(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/GetDataTypesCest.php b/tests/integration/Mvc/Model/MetaData/GetDataTypesCest.php index 6fc31f44db5..295acc0fa8a 100644 --- a/tests/integration/Mvc/Model/MetaData/GetDataTypesCest.php +++ b/tests/integration/Mvc/Model/MetaData/GetDataTypesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDataTypesCest /** * Tests Phalcon\Mvc\Model\MetaData :: getDataTypes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataGetDataTypes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/GetDataTypesNumericCest.php b/tests/integration/Mvc/Model/MetaData/GetDataTypesNumericCest.php index 323a95d0f64..44185a9339d 100644 --- a/tests/integration/Mvc/Model/MetaData/GetDataTypesNumericCest.php +++ b/tests/integration/Mvc/Model/MetaData/GetDataTypesNumericCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDataTypesNumericCest /** * Tests Phalcon\Mvc\Model\MetaData :: getDataTypesNumeric() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataGetDataTypesNumeric(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/GetDefaultValuesCest.php b/tests/integration/Mvc/Model/MetaData/GetDefaultValuesCest.php index dfd363f83e3..7e38d8637c1 100644 --- a/tests/integration/Mvc/Model/MetaData/GetDefaultValuesCest.php +++ b/tests/integration/Mvc/Model/MetaData/GetDefaultValuesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDefaultValuesCest /** * Tests Phalcon\Mvc\Model\MetaData :: getDefaultValues() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataGetDefaultValues(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/GetEmptyStringAttributesCest.php b/tests/integration/Mvc/Model/MetaData/GetEmptyStringAttributesCest.php index 3810bc11445..6a2d8e5232c 100644 --- a/tests/integration/Mvc/Model/MetaData/GetEmptyStringAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/GetEmptyStringAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetEmptyStringAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData :: getEmptyStringAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataGetEmptyStringAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/GetIdentityFieldCest.php b/tests/integration/Mvc/Model/MetaData/GetIdentityFieldCest.php index d5caae67f57..ba090d8c9d2 100644 --- a/tests/integration/Mvc/Model/MetaData/GetIdentityFieldCest.php +++ b/tests/integration/Mvc/Model/MetaData/GetIdentityFieldCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetIdentityFieldCest /** * Tests Phalcon\Mvc\Model\MetaData :: getIdentityField() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataGetIdentityField(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/GetNonPrimaryKeyAttributesCest.php b/tests/integration/Mvc/Model/MetaData/GetNonPrimaryKeyAttributesCest.php index 34dcaafc646..b948a1999f1 100644 --- a/tests/integration/Mvc/Model/MetaData/GetNonPrimaryKeyAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/GetNonPrimaryKeyAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetNonPrimaryKeyAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData :: getNonPrimaryKeyAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataGetNonPrimaryKeyAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/GetNotNullAttributesCest.php b/tests/integration/Mvc/Model/MetaData/GetNotNullAttributesCest.php index 3c92d637763..a18f8a44e2b 100644 --- a/tests/integration/Mvc/Model/MetaData/GetNotNullAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/GetNotNullAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetNotNullAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData :: getNotNullAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataGetNotNullAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/GetPrimaryKeyAttributesCest.php b/tests/integration/Mvc/Model/MetaData/GetPrimaryKeyAttributesCest.php index 044b0f9aa2d..a59a168c1bb 100644 --- a/tests/integration/Mvc/Model/MetaData/GetPrimaryKeyAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/GetPrimaryKeyAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetPrimaryKeyAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData :: getPrimaryKeyAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataGetPrimaryKeyAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/GetReverseColumnMapCest.php b/tests/integration/Mvc/Model/MetaData/GetReverseColumnMapCest.php index f3c3c3551b9..2fa8728ab9b 100644 --- a/tests/integration/Mvc/Model/MetaData/GetReverseColumnMapCest.php +++ b/tests/integration/Mvc/Model/MetaData/GetReverseColumnMapCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetReverseColumnMapCest /** * Tests Phalcon\Mvc\Model\MetaData :: getReverseColumnMap() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataGetReverseColumnMap(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/GetSetDICest.php b/tests/integration/Mvc/Model/MetaData/GetSetDICest.php index 7aeea5a8030..8c88c226482 100644 --- a/tests/integration/Mvc/Model/MetaData/GetSetDICest.php +++ b/tests/integration/Mvc/Model/MetaData/GetSetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetDICest /** * Tests Phalcon\Mvc\Model\MetaData :: getDI() / setDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataGetSetDI(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/GetStrategyCest.php b/tests/integration/Mvc/Model/MetaData/GetStrategyCest.php index cc19209b15b..93dfdcc6b0a 100644 --- a/tests/integration/Mvc/Model/MetaData/GetStrategyCest.php +++ b/tests/integration/Mvc/Model/MetaData/GetStrategyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetStrategyCest /** * Tests Phalcon\Mvc\Model\MetaData :: getStrategy() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataGetStrategy(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/HasAttributeCest.php b/tests/integration/Mvc/Model/MetaData/HasAttributeCest.php index d9538b8925c..b6ad4bd6e73 100644 --- a/tests/integration/Mvc/Model/MetaData/HasAttributeCest.php +++ b/tests/integration/Mvc/Model/MetaData/HasAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class HasAttributeCest /** * Tests Phalcon\Mvc\Model\MetaData :: hasAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataHasAttribute(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/IsEmptyCest.php b/tests/integration/Mvc/Model/MetaData/IsEmptyCest.php index 2c5c72177fd..fe9b5a3e073 100644 --- a/tests/integration/Mvc/Model/MetaData/IsEmptyCest.php +++ b/tests/integration/Mvc/Model/MetaData/IsEmptyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class IsEmptyCest /** * Tests Phalcon\Mvc\Model\MetaData :: isEmpty() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataIsEmpty(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Libmemcached/ConstructCest.php b/tests/integration/Mvc/Model/MetaData/Libmemcached/ConstructCest.php index 04e0e32639c..41cd197ea75 100644 --- a/tests/integration/Mvc/Model/MetaData/Libmemcached/ConstructCest.php +++ b/tests/integration/Mvc/Model/MetaData/Libmemcached/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -59,7 +59,7 @@ public function _after(IntegrationTester $I) /** * Tests Phalcon\Mvc\Model\MetaData\Libmemcached :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataLibmemcachedConstruct(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Libmemcached/GetAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Libmemcached/GetAttributesCest.php index 8185f11cac1..047158350c0 100644 --- a/tests/integration/Mvc/Model/MetaData/Libmemcached/GetAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Libmemcached/GetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Libmemcached :: getAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataLibmemcachedGetAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Libmemcached/GetAutomaticCreateAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Libmemcached/GetAutomaticCreateAttributesCest.php index 1954047fcf7..29fafe1902c 100644 --- a/tests/integration/Mvc/Model/MetaData/Libmemcached/GetAutomaticCreateAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Libmemcached/GetAutomaticCreateAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class GetAutomaticCreateAttributesCest * Tests Phalcon\Mvc\Model\MetaData\Libmemcached :: * getAutomaticCreateAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataLibmemcachedGetAutomaticCreateAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Libmemcached/GetAutomaticUpdateAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Libmemcached/GetAutomaticUpdateAttributesCest.php index 0ece3f05ae1..2d0f947ddde 100644 --- a/tests/integration/Mvc/Model/MetaData/Libmemcached/GetAutomaticUpdateAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Libmemcached/GetAutomaticUpdateAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class GetAutomaticUpdateAttributesCest * Tests Phalcon\Mvc\Model\MetaData\Libmemcached :: * getAutomaticUpdateAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataLibmemcachedGetAutomaticUpdateAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Libmemcached/GetBindTypesCest.php b/tests/integration/Mvc/Model/MetaData/Libmemcached/GetBindTypesCest.php index e14cdedd046..33aaceabdd1 100644 --- a/tests/integration/Mvc/Model/MetaData/Libmemcached/GetBindTypesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Libmemcached/GetBindTypesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetBindTypesCest /** * Tests Phalcon\Mvc\Model\MetaData\Libmemcached :: getBindTypes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataLibmemcachedGetBindTypes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Libmemcached/GetColumnMapCest.php b/tests/integration/Mvc/Model/MetaData/Libmemcached/GetColumnMapCest.php index b43cd52e94b..7339a4d0a03 100644 --- a/tests/integration/Mvc/Model/MetaData/Libmemcached/GetColumnMapCest.php +++ b/tests/integration/Mvc/Model/MetaData/Libmemcached/GetColumnMapCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetColumnMapCest /** * Tests Phalcon\Mvc\Model\MetaData\Libmemcached :: getColumnMap() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataLibmemcachedGetColumnMap(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Libmemcached/GetDataTypesCest.php b/tests/integration/Mvc/Model/MetaData/Libmemcached/GetDataTypesCest.php index 0e1d6b77ed0..68a1285397c 100644 --- a/tests/integration/Mvc/Model/MetaData/Libmemcached/GetDataTypesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Libmemcached/GetDataTypesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetDataTypesCest /** * Tests Phalcon\Mvc\Model\MetaData\Libmemcached :: getDataTypes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataLibmemcachedGetDataTypes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Libmemcached/GetDataTypesNumericCest.php b/tests/integration/Mvc/Model/MetaData/Libmemcached/GetDataTypesNumericCest.php index a8a3b801fac..17d5282311b 100644 --- a/tests/integration/Mvc/Model/MetaData/Libmemcached/GetDataTypesNumericCest.php +++ b/tests/integration/Mvc/Model/MetaData/Libmemcached/GetDataTypesNumericCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDataTypesNumericCest /** * Tests Phalcon\Mvc\Model\MetaData\Libmemcached :: getDataTypesNumeric() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataLibmemcachedGetDataTypesNumeric(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Libmemcached/GetDefaultValuesCest.php b/tests/integration/Mvc/Model/MetaData/Libmemcached/GetDefaultValuesCest.php index 3cbc703e89c..ad983754ea3 100644 --- a/tests/integration/Mvc/Model/MetaData/Libmemcached/GetDefaultValuesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Libmemcached/GetDefaultValuesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDefaultValuesCest /** * Tests Phalcon\Mvc\Model\MetaData\Libmemcached :: getDefaultValues() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataLibmemcachedGetDefaultValues(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Libmemcached/GetEmptyStringAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Libmemcached/GetEmptyStringAttributesCest.php index 5f1441f9020..be036cac278 100644 --- a/tests/integration/Mvc/Model/MetaData/Libmemcached/GetEmptyStringAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Libmemcached/GetEmptyStringAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class GetEmptyStringAttributesCest * Tests Phalcon\Mvc\Model\MetaData\Libmemcached :: * getEmptyStringAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataLibmemcachedGetEmptyStringAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Libmemcached/GetIdentityFieldCest.php b/tests/integration/Mvc/Model/MetaData/Libmemcached/GetIdentityFieldCest.php index 36e4ad0285c..7dc6d0d84e5 100644 --- a/tests/integration/Mvc/Model/MetaData/Libmemcached/GetIdentityFieldCest.php +++ b/tests/integration/Mvc/Model/MetaData/Libmemcached/GetIdentityFieldCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetIdentityFieldCest /** * Tests Phalcon\Mvc\Model\MetaData\Libmemcached :: getIdentityField() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataLibmemcachedGetIdentityField(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Libmemcached/GetNonPrimaryKeyAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Libmemcached/GetNonPrimaryKeyAttributesCest.php index 13fb0d9ef3f..fab90ac7327 100644 --- a/tests/integration/Mvc/Model/MetaData/Libmemcached/GetNonPrimaryKeyAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Libmemcached/GetNonPrimaryKeyAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetNonPrimaryKeyAttributesCest * Tests Phalcon\Mvc\Model\MetaData\Libmemcached :: * getNonPrimaryKeyAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataLibmemcachedGetNonPrimaryKeyAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Libmemcached/GetNotNullAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Libmemcached/GetNotNullAttributesCest.php index 12bce53d6ed..0d1a54dc722 100644 --- a/tests/integration/Mvc/Model/MetaData/Libmemcached/GetNotNullAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Libmemcached/GetNotNullAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetNotNullAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Libmemcached :: getNotNullAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataLibmemcachedGetNotNullAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Libmemcached/GetPrimaryKeyAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Libmemcached/GetPrimaryKeyAttributesCest.php index 3cbcf9719d4..34b36254c69 100644 --- a/tests/integration/Mvc/Model/MetaData/Libmemcached/GetPrimaryKeyAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Libmemcached/GetPrimaryKeyAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetPrimaryKeyAttributesCest * Tests Phalcon\Mvc\Model\MetaData\Libmemcached :: * getPrimaryKeyAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataLibmemcachedGetPrimaryKeyAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Libmemcached/GetReverseColumnMapCest.php b/tests/integration/Mvc/Model/MetaData/Libmemcached/GetReverseColumnMapCest.php index 6e3549e2216..5b26d12ee4f 100644 --- a/tests/integration/Mvc/Model/MetaData/Libmemcached/GetReverseColumnMapCest.php +++ b/tests/integration/Mvc/Model/MetaData/Libmemcached/GetReverseColumnMapCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetReverseColumnMapCest /** * Tests Phalcon\Mvc\Model\MetaData\Libmemcached :: getReverseColumnMap() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataLibmemcachedGetReverseColumnMap(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Libmemcached/GetSetDICest.php b/tests/integration/Mvc/Model/MetaData/Libmemcached/GetSetDICest.php index 14f60222b14..8833a21ab82 100644 --- a/tests/integration/Mvc/Model/MetaData/Libmemcached/GetSetDICest.php +++ b/tests/integration/Mvc/Model/MetaData/Libmemcached/GetSetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetSetDICest /** * Tests Phalcon\Mvc\Model\MetaData\Libmemcached :: getDI() / setDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataLibmemcachedGetSetDI(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Libmemcached/GetStrategyCest.php b/tests/integration/Mvc/Model/MetaData/Libmemcached/GetStrategyCest.php index 2fc9e87fa05..2c73ce121d0 100644 --- a/tests/integration/Mvc/Model/MetaData/Libmemcached/GetStrategyCest.php +++ b/tests/integration/Mvc/Model/MetaData/Libmemcached/GetStrategyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetStrategyCest /** * Tests Phalcon\Mvc\Model\MetaData\Libmemcached :: getStrategy() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataLibmemcachedGetStrategy(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Libmemcached/HasAttributeCest.php b/tests/integration/Mvc/Model/MetaData/Libmemcached/HasAttributeCest.php index 6a29c677815..295bc38c709 100644 --- a/tests/integration/Mvc/Model/MetaData/Libmemcached/HasAttributeCest.php +++ b/tests/integration/Mvc/Model/MetaData/Libmemcached/HasAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class HasAttributeCest /** * Tests Phalcon\Mvc\Model\MetaData\Libmemcached :: hasAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataLibmemcachedHasAttribute(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Libmemcached/IsEmptyCest.php b/tests/integration/Mvc/Model/MetaData/Libmemcached/IsEmptyCest.php index 08092bb2845..1115158cf4e 100644 --- a/tests/integration/Mvc/Model/MetaData/Libmemcached/IsEmptyCest.php +++ b/tests/integration/Mvc/Model/MetaData/Libmemcached/IsEmptyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class IsEmptyCest /** * Tests Phalcon\Mvc\Model\MetaData\Libmemcached :: isEmpty() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataLibmemcachedIsEmpty(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Libmemcached/ReadCest.php b/tests/integration/Mvc/Model/MetaData/Libmemcached/ReadCest.php index 46df6977407..e8a68f82d6a 100644 --- a/tests/integration/Mvc/Model/MetaData/Libmemcached/ReadCest.php +++ b/tests/integration/Mvc/Model/MetaData/Libmemcached/ReadCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ReadCest /** * Tests Phalcon\Mvc\Model\MetaData\Libmemcached :: read() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataLibmemcachedRead(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Libmemcached/ReadColumnMapCest.php b/tests/integration/Mvc/Model/MetaData/Libmemcached/ReadColumnMapCest.php index 932987a6dfb..92e05b4e4b2 100644 --- a/tests/integration/Mvc/Model/MetaData/Libmemcached/ReadColumnMapCest.php +++ b/tests/integration/Mvc/Model/MetaData/Libmemcached/ReadColumnMapCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ReadColumnMapCest /** * Tests Phalcon\Mvc\Model\MetaData\Libmemcached :: readColumnMap() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataLibmemcachedReadColumnMap(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Libmemcached/ReadColumnMapIndexCest.php b/tests/integration/Mvc/Model/MetaData/Libmemcached/ReadColumnMapIndexCest.php index 3545a088f0a..397765ca9df 100644 --- a/tests/integration/Mvc/Model/MetaData/Libmemcached/ReadColumnMapIndexCest.php +++ b/tests/integration/Mvc/Model/MetaData/Libmemcached/ReadColumnMapIndexCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ReadColumnMapIndexCest /** * Tests Phalcon\Mvc\Model\MetaData\Libmemcached :: readColumnMapIndex() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataLibmemcachedReadColumnMapIndex(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Libmemcached/ReadMetaDataCest.php b/tests/integration/Mvc/Model/MetaData/Libmemcached/ReadMetaDataCest.php index 0b37a153f59..85c9ad3ebc7 100644 --- a/tests/integration/Mvc/Model/MetaData/Libmemcached/ReadMetaDataCest.php +++ b/tests/integration/Mvc/Model/MetaData/Libmemcached/ReadMetaDataCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ReadMetaDataCest /** * Tests Phalcon\Mvc\Model\MetaData\Libmemcached :: readMetaData() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataLibmemcachedReadMetaData(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Libmemcached/ReadMetaDataIndexCest.php b/tests/integration/Mvc/Model/MetaData/Libmemcached/ReadMetaDataIndexCest.php index 00e9d843c84..26141a1cee5 100644 --- a/tests/integration/Mvc/Model/MetaData/Libmemcached/ReadMetaDataIndexCest.php +++ b/tests/integration/Mvc/Model/MetaData/Libmemcached/ReadMetaDataIndexCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ReadMetaDataIndexCest /** * Tests Phalcon\Mvc\Model\MetaData\Libmemcached :: readMetaDataIndex() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataLibmemcachedReadMetaDataIndex(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Libmemcached/ResetCest.php b/tests/integration/Mvc/Model/MetaData/Libmemcached/ResetCest.php index 1af21bed92c..15d2844fe50 100644 --- a/tests/integration/Mvc/Model/MetaData/Libmemcached/ResetCest.php +++ b/tests/integration/Mvc/Model/MetaData/Libmemcached/ResetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ResetCest /** * Tests Phalcon\Mvc\Model\MetaData\Libmemcached :: reset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataLibmemcachedReset(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Libmemcached/SetAutomaticCreateAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Libmemcached/SetAutomaticCreateAttributesCest.php index 022363789d5..5deaf0b1e46 100644 --- a/tests/integration/Mvc/Model/MetaData/Libmemcached/SetAutomaticCreateAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Libmemcached/SetAutomaticCreateAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class SetAutomaticCreateAttributesCest * Tests Phalcon\Mvc\Model\MetaData\Libmemcached :: * setAutomaticCreateAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataLibmemcachedSetAutomaticCreateAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Libmemcached/SetAutomaticUpdateAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Libmemcached/SetAutomaticUpdateAttributesCest.php index fa5364bbfdf..1e57e343e82 100644 --- a/tests/integration/Mvc/Model/MetaData/Libmemcached/SetAutomaticUpdateAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Libmemcached/SetAutomaticUpdateAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class SetAutomaticUpdateAttributesCest * Tests Phalcon\Mvc\Model\MetaData\Libmemcached :: * setAutomaticUpdateAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataLibmemcachedSetAutomaticUpdateAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Libmemcached/SetEmptyStringAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Libmemcached/SetEmptyStringAttributesCest.php index 534851d0205..827e254a0f5 100644 --- a/tests/integration/Mvc/Model/MetaData/Libmemcached/SetEmptyStringAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Libmemcached/SetEmptyStringAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class SetEmptyStringAttributesCest * Tests Phalcon\Mvc\Model\MetaData\Libmemcached :: * setEmptyStringAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataLibmemcachedSetEmptyStringAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Libmemcached/SetStrategyCest.php b/tests/integration/Mvc/Model/MetaData/Libmemcached/SetStrategyCest.php index fe8023a1607..e4c8c27157a 100644 --- a/tests/integration/Mvc/Model/MetaData/Libmemcached/SetStrategyCest.php +++ b/tests/integration/Mvc/Model/MetaData/Libmemcached/SetStrategyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetStrategyCest /** * Tests Phalcon\Mvc\Model\MetaData\Libmemcached :: setStrategy() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataLibmemcachedSetStrategy(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Libmemcached/WriteCest.php b/tests/integration/Mvc/Model/MetaData/Libmemcached/WriteCest.php index 8c194eeafe7..ee78d93c5d8 100644 --- a/tests/integration/Mvc/Model/MetaData/Libmemcached/WriteCest.php +++ b/tests/integration/Mvc/Model/MetaData/Libmemcached/WriteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -33,7 +33,7 @@ public function _after(IntegrationTester $I) // /** // * Tests Phalcon\Mvc\Model\MetaData\Libmemcached :: write() // * -// * @author Phalcon Team +// * @author Phalcon Team // * @since 2018-11-13 // */ // public function mvcModelMetadataLibmemcachedWrite(IntegrationTester $I) @@ -45,7 +45,7 @@ public function _after(IntegrationTester $I) /** * Tests Phalcon\Mvc\Model\MetaData\Libmemcached :: write() - exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataLibmemcachedWriteException(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Libmemcached/WriteMetaDataIndexCest.php b/tests/integration/Mvc/Model/MetaData/Libmemcached/WriteMetaDataIndexCest.php index f6b0b8c5445..7e4ca915a1b 100644 --- a/tests/integration/Mvc/Model/MetaData/Libmemcached/WriteMetaDataIndexCest.php +++ b/tests/integration/Mvc/Model/MetaData/Libmemcached/WriteMetaDataIndexCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class WriteMetaDataIndexCest /** * Tests Phalcon\Mvc\Model\MetaData\Libmemcached :: writeMetaDataIndex() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataLibmemcachedWriteMetaDataIndex(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Memory/ConstructCest.php b/tests/integration/Mvc/Model/MetaData/Memory/ConstructCest.php index 4d41b610e0c..a0eea20a7cd 100644 --- a/tests/integration/Mvc/Model/MetaData/Memory/ConstructCest.php +++ b/tests/integration/Mvc/Model/MetaData/Memory/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -54,7 +54,7 @@ public function _after(IntegrationTester $I) /** * Tests Phalcon\Mvc\Model\MetaData\Memory :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataMemoryConstruct(IntegrationTester $I) @@ -78,7 +78,7 @@ public function mvcModelMetadataMemoryConstruct(IntegrationTester $I) /** * Tests Phalcon\Mvc\Model\MetaData\Memory :: __construct() - manual * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataMemoryConstructManual(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Memory/GetAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Memory/GetAttributesCest.php index bd909b7905e..caef46ae7e6 100644 --- a/tests/integration/Mvc/Model/MetaData/Memory/GetAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Memory/GetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Memory :: getAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataMemoryGetAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Memory/GetAutomaticCreateAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Memory/GetAutomaticCreateAttributesCest.php index f4a2b7003d8..604d268f978 100644 --- a/tests/integration/Mvc/Model/MetaData/Memory/GetAutomaticCreateAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Memory/GetAutomaticCreateAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAutomaticCreateAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Memory :: getAutomaticCreateAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataMemoryGetAutomaticCreateAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Memory/GetAutomaticUpdateAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Memory/GetAutomaticUpdateAttributesCest.php index 61112cfc352..bf20020f7a0 100644 --- a/tests/integration/Mvc/Model/MetaData/Memory/GetAutomaticUpdateAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Memory/GetAutomaticUpdateAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAutomaticUpdateAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Memory :: getAutomaticUpdateAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataMemoryGetAutomaticUpdateAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Memory/GetBindTypesCest.php b/tests/integration/Mvc/Model/MetaData/Memory/GetBindTypesCest.php index abe0b298d09..0d4da4ef41b 100644 --- a/tests/integration/Mvc/Model/MetaData/Memory/GetBindTypesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Memory/GetBindTypesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetBindTypesCest /** * Tests Phalcon\Mvc\Model\MetaData\Memory :: getBindTypes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataMemoryGetBindTypes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Memory/GetColumnMapCest.php b/tests/integration/Mvc/Model/MetaData/Memory/GetColumnMapCest.php index cfbfbd1b9fc..794f06b7ad2 100644 --- a/tests/integration/Mvc/Model/MetaData/Memory/GetColumnMapCest.php +++ b/tests/integration/Mvc/Model/MetaData/Memory/GetColumnMapCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetColumnMapCest /** * Tests Phalcon\Mvc\Model\MetaData\Memory :: getColumnMap() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataMemoryGetColumnMap(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Memory/GetDataTypesCest.php b/tests/integration/Mvc/Model/MetaData/Memory/GetDataTypesCest.php index 25c14ceefbb..661082fe4b5 100644 --- a/tests/integration/Mvc/Model/MetaData/Memory/GetDataTypesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Memory/GetDataTypesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDataTypesCest /** * Tests Phalcon\Mvc\Model\MetaData\Memory :: getDataTypes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataMemoryGetDataTypes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Memory/GetDataTypesNumericCest.php b/tests/integration/Mvc/Model/MetaData/Memory/GetDataTypesNumericCest.php index a251ae0ed2e..2e3026cc805 100644 --- a/tests/integration/Mvc/Model/MetaData/Memory/GetDataTypesNumericCest.php +++ b/tests/integration/Mvc/Model/MetaData/Memory/GetDataTypesNumericCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDataTypesNumericCest /** * Tests Phalcon\Mvc\Model\MetaData\Memory :: getDataTypesNumeric() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataMemoryGetDataTypesNumeric(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Memory/GetDefaultValuesCest.php b/tests/integration/Mvc/Model/MetaData/Memory/GetDefaultValuesCest.php index 355f2b571c8..f6404838fec 100644 --- a/tests/integration/Mvc/Model/MetaData/Memory/GetDefaultValuesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Memory/GetDefaultValuesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDefaultValuesCest /** * Tests Phalcon\Mvc\Model\MetaData\Memory :: getDefaultValues() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataMemoryGetDefaultValues(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Memory/GetEmptyStringAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Memory/GetEmptyStringAttributesCest.php index f271854e01b..b4150c834fb 100644 --- a/tests/integration/Mvc/Model/MetaData/Memory/GetEmptyStringAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Memory/GetEmptyStringAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetEmptyStringAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Memory :: getEmptyStringAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataMemoryGetEmptyStringAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Memory/GetIdentityFieldCest.php b/tests/integration/Mvc/Model/MetaData/Memory/GetIdentityFieldCest.php index b7f00e0cd7f..e7a9d945d95 100644 --- a/tests/integration/Mvc/Model/MetaData/Memory/GetIdentityFieldCest.php +++ b/tests/integration/Mvc/Model/MetaData/Memory/GetIdentityFieldCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetIdentityFieldCest /** * Tests Phalcon\Mvc\Model\MetaData\Memory :: getIdentityField() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataMemoryGetIdentityField(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Memory/GetNonPrimaryKeyAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Memory/GetNonPrimaryKeyAttributesCest.php index e9c0d77fd9e..94e66eeee56 100644 --- a/tests/integration/Mvc/Model/MetaData/Memory/GetNonPrimaryKeyAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Memory/GetNonPrimaryKeyAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetNonPrimaryKeyAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Memory :: getNonPrimaryKeyAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataMemoryGetNonPrimaryKeyAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Memory/GetNotNullAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Memory/GetNotNullAttributesCest.php index db3423fe0d1..8b3f7697623 100644 --- a/tests/integration/Mvc/Model/MetaData/Memory/GetNotNullAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Memory/GetNotNullAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetNotNullAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Memory :: getNotNullAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataMemoryGetNotNullAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Memory/GetPrimaryKeyAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Memory/GetPrimaryKeyAttributesCest.php index 8e61cab5521..ad76f81f58c 100644 --- a/tests/integration/Mvc/Model/MetaData/Memory/GetPrimaryKeyAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Memory/GetPrimaryKeyAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetPrimaryKeyAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Memory :: getPrimaryKeyAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataMemoryGetPrimaryKeyAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Memory/GetReverseColumnMapCest.php b/tests/integration/Mvc/Model/MetaData/Memory/GetReverseColumnMapCest.php index 6be0189cf59..f5beafff914 100644 --- a/tests/integration/Mvc/Model/MetaData/Memory/GetReverseColumnMapCest.php +++ b/tests/integration/Mvc/Model/MetaData/Memory/GetReverseColumnMapCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetReverseColumnMapCest /** * Tests Phalcon\Mvc\Model\MetaData\Memory :: getReverseColumnMap() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataMemoryGetReverseColumnMap(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Memory/GetSetDICest.php b/tests/integration/Mvc/Model/MetaData/Memory/GetSetDICest.php index 7d979f38542..c1b33939c36 100644 --- a/tests/integration/Mvc/Model/MetaData/Memory/GetSetDICest.php +++ b/tests/integration/Mvc/Model/MetaData/Memory/GetSetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetSetDICest /** * Tests Phalcon\Mvc\Model\MetaData\Memory :: getDI() / setDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataMemoryGetSetDI(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Memory/GetStrategyCest.php b/tests/integration/Mvc/Model/MetaData/Memory/GetStrategyCest.php index ab4ccdb7b74..21c81f0e642 100644 --- a/tests/integration/Mvc/Model/MetaData/Memory/GetStrategyCest.php +++ b/tests/integration/Mvc/Model/MetaData/Memory/GetStrategyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetStrategyCest /** * Tests Phalcon\Mvc\Model\MetaData\Memory :: getStrategy() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataMemoryGetStrategy(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Memory/HasAttributeCest.php b/tests/integration/Mvc/Model/MetaData/Memory/HasAttributeCest.php index ded2665776b..0da74fdf536 100644 --- a/tests/integration/Mvc/Model/MetaData/Memory/HasAttributeCest.php +++ b/tests/integration/Mvc/Model/MetaData/Memory/HasAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class HasAttributeCest /** * Tests Phalcon\Mvc\Model\MetaData\Memory :: hasAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataMemoryHasAttribute(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Memory/IsEmptyCest.php b/tests/integration/Mvc/Model/MetaData/Memory/IsEmptyCest.php index 2b88b3c547e..ef34e83f2aa 100644 --- a/tests/integration/Mvc/Model/MetaData/Memory/IsEmptyCest.php +++ b/tests/integration/Mvc/Model/MetaData/Memory/IsEmptyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class IsEmptyCest /** * Tests Phalcon\Mvc\Model\MetaData\Memory :: isEmpty() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataMemoryIsEmpty(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Memory/ReadCest.php b/tests/integration/Mvc/Model/MetaData/Memory/ReadCest.php index 4d878392995..907a627e4fb 100644 --- a/tests/integration/Mvc/Model/MetaData/Memory/ReadCest.php +++ b/tests/integration/Mvc/Model/MetaData/Memory/ReadCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ReadCest /** * Tests Phalcon\Mvc\Model\MetaData\Memory :: read() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataMemoryRead(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Memory/ReadColumnMapCest.php b/tests/integration/Mvc/Model/MetaData/Memory/ReadColumnMapCest.php index fc9046e7839..4607fc86480 100644 --- a/tests/integration/Mvc/Model/MetaData/Memory/ReadColumnMapCest.php +++ b/tests/integration/Mvc/Model/MetaData/Memory/ReadColumnMapCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ReadColumnMapCest /** * Tests Phalcon\Mvc\Model\MetaData\Memory :: readColumnMap() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataMemoryReadColumnMap(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Memory/ReadColumnMapIndexCest.php b/tests/integration/Mvc/Model/MetaData/Memory/ReadColumnMapIndexCest.php index c29bf6b79d7..bb765a82148 100644 --- a/tests/integration/Mvc/Model/MetaData/Memory/ReadColumnMapIndexCest.php +++ b/tests/integration/Mvc/Model/MetaData/Memory/ReadColumnMapIndexCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ReadColumnMapIndexCest /** * Tests Phalcon\Mvc\Model\MetaData\Memory :: readColumnMapIndex() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataMemoryReadColumnMapIndex(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Memory/ReadMetaDataCest.php b/tests/integration/Mvc/Model/MetaData/Memory/ReadMetaDataCest.php index 2ba6916d3a6..afd1cb6833c 100644 --- a/tests/integration/Mvc/Model/MetaData/Memory/ReadMetaDataCest.php +++ b/tests/integration/Mvc/Model/MetaData/Memory/ReadMetaDataCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ReadMetaDataCest /** * Tests Phalcon\Mvc\Model\MetaData\Memory :: readMetaData() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataMemoryReadMetaData(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Memory/ReadMetaDataIndexCest.php b/tests/integration/Mvc/Model/MetaData/Memory/ReadMetaDataIndexCest.php index 0eb1ee70da1..3074ee38b4b 100644 --- a/tests/integration/Mvc/Model/MetaData/Memory/ReadMetaDataIndexCest.php +++ b/tests/integration/Mvc/Model/MetaData/Memory/ReadMetaDataIndexCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ReadMetaDataIndexCest /** * Tests Phalcon\Mvc\Model\MetaData\Memory :: readMetaDataIndex() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataMemoryReadMetaDataIndex(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Memory/ResetCest.php b/tests/integration/Mvc/Model/MetaData/Memory/ResetCest.php index 53e46ee5a51..aacaaf446c8 100644 --- a/tests/integration/Mvc/Model/MetaData/Memory/ResetCest.php +++ b/tests/integration/Mvc/Model/MetaData/Memory/ResetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ResetCest /** * Tests Phalcon\Mvc\Model\MetaData\Memory :: reset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataMemoryReset(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Memory/SetAutomaticCreateAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Memory/SetAutomaticCreateAttributesCest.php index ab14d747402..6de64102b0b 100644 --- a/tests/integration/Mvc/Model/MetaData/Memory/SetAutomaticCreateAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Memory/SetAutomaticCreateAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetAutomaticCreateAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Memory :: setAutomaticCreateAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataMemorySetAutomaticCreateAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Memory/SetAutomaticUpdateAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Memory/SetAutomaticUpdateAttributesCest.php index a253f763f07..90ac5ba0fb5 100644 --- a/tests/integration/Mvc/Model/MetaData/Memory/SetAutomaticUpdateAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Memory/SetAutomaticUpdateAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetAutomaticUpdateAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Memory :: setAutomaticUpdateAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataMemorySetAutomaticUpdateAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Memory/SetEmptyStringAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Memory/SetEmptyStringAttributesCest.php index af1de23a4a1..98cad865f6e 100644 --- a/tests/integration/Mvc/Model/MetaData/Memory/SetEmptyStringAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Memory/SetEmptyStringAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetEmptyStringAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Memory :: setEmptyStringAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataMemorySetEmptyStringAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Memory/SetStrategyCest.php b/tests/integration/Mvc/Model/MetaData/Memory/SetStrategyCest.php index 2669a610cfd..265017547f8 100644 --- a/tests/integration/Mvc/Model/MetaData/Memory/SetStrategyCest.php +++ b/tests/integration/Mvc/Model/MetaData/Memory/SetStrategyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetStrategyCest /** * Tests Phalcon\Mvc\Model\MetaData\Memory :: setStrategy() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataMemorySetStrategy(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Memory/WriteCest.php b/tests/integration/Mvc/Model/MetaData/Memory/WriteCest.php index e9849657ddc..bb356f6dc52 100644 --- a/tests/integration/Mvc/Model/MetaData/Memory/WriteCest.php +++ b/tests/integration/Mvc/Model/MetaData/Memory/WriteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class WriteCest /** * Tests Phalcon\Mvc\Model\MetaData\Memory :: write() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataMemoryWrite(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Memory/WriteMetaDataIndexCest.php b/tests/integration/Mvc/Model/MetaData/Memory/WriteMetaDataIndexCest.php index c7d7eacaebc..402b47a90c5 100644 --- a/tests/integration/Mvc/Model/MetaData/Memory/WriteMetaDataIndexCest.php +++ b/tests/integration/Mvc/Model/MetaData/Memory/WriteMetaDataIndexCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class WriteMetaDataIndexCest /** * Tests Phalcon\Mvc\Model\MetaData\Memory :: writeMetaDataIndex() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataMemoryWriteMetaDataIndex(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/ReadCest.php b/tests/integration/Mvc/Model/MetaData/ReadCest.php index e30f501b654..6943e764c17 100644 --- a/tests/integration/Mvc/Model/MetaData/ReadCest.php +++ b/tests/integration/Mvc/Model/MetaData/ReadCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ReadCest /** * Tests Phalcon\Mvc\Model\MetaData :: read() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataRead(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/ReadColumnMapCest.php b/tests/integration/Mvc/Model/MetaData/ReadColumnMapCest.php index da5bdbb63ac..18851c4a925 100644 --- a/tests/integration/Mvc/Model/MetaData/ReadColumnMapCest.php +++ b/tests/integration/Mvc/Model/MetaData/ReadColumnMapCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ReadColumnMapCest /** * Tests Phalcon\Mvc\Model\MetaData :: readColumnMap() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataReadColumnMap(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/ReadColumnMapIndexCest.php b/tests/integration/Mvc/Model/MetaData/ReadColumnMapIndexCest.php index 9424630f306..de24de25b16 100644 --- a/tests/integration/Mvc/Model/MetaData/ReadColumnMapIndexCest.php +++ b/tests/integration/Mvc/Model/MetaData/ReadColumnMapIndexCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ReadColumnMapIndexCest /** * Tests Phalcon\Mvc\Model\MetaData :: readColumnMapIndex() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataReadColumnMapIndex(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/ReadMetaDataCest.php b/tests/integration/Mvc/Model/MetaData/ReadMetaDataCest.php index 6c0060f12a3..9317891d196 100644 --- a/tests/integration/Mvc/Model/MetaData/ReadMetaDataCest.php +++ b/tests/integration/Mvc/Model/MetaData/ReadMetaDataCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ReadMetaDataCest /** * Tests Phalcon\Mvc\Model\MetaData :: readMetaData() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataReadMetaData(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/ReadMetaDataIndexCest.php b/tests/integration/Mvc/Model/MetaData/ReadMetaDataIndexCest.php index 0cc93988892..fb55ed7877e 100644 --- a/tests/integration/Mvc/Model/MetaData/ReadMetaDataIndexCest.php +++ b/tests/integration/Mvc/Model/MetaData/ReadMetaDataIndexCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ReadMetaDataIndexCest /** * Tests Phalcon\Mvc\Model\MetaData :: readMetaDataIndex() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataReadMetaDataIndex(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Redis/ConstructCest.php b/tests/integration/Mvc/Model/MetaData/Redis/ConstructCest.php index f7fa7998f2f..93176bd91b2 100644 --- a/tests/integration/Mvc/Model/MetaData/Redis/ConstructCest.php +++ b/tests/integration/Mvc/Model/MetaData/Redis/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -61,7 +61,7 @@ public function _after(IntegrationTester $I) /** * Tests Phalcon\Mvc\Model\MetaData\Redis :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataRedisConstruct(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Redis/GetAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Redis/GetAttributesCest.php index 1b451904ce9..708cc6d9220 100644 --- a/tests/integration/Mvc/Model/MetaData/Redis/GetAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Redis/GetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Redis :: getAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataRedisGetAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Redis/GetAutomaticCreateAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Redis/GetAutomaticCreateAttributesCest.php index 5376517cf68..3f21e0f94ea 100644 --- a/tests/integration/Mvc/Model/MetaData/Redis/GetAutomaticCreateAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Redis/GetAutomaticCreateAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAutomaticCreateAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Redis :: getAutomaticCreateAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataRedisGetAutomaticCreateAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Redis/GetAutomaticUpdateAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Redis/GetAutomaticUpdateAttributesCest.php index 56afb460069..e1b6bce6ed5 100644 --- a/tests/integration/Mvc/Model/MetaData/Redis/GetAutomaticUpdateAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Redis/GetAutomaticUpdateAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAutomaticUpdateAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Redis :: getAutomaticUpdateAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataRedisGetAutomaticUpdateAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Redis/GetBindTypesCest.php b/tests/integration/Mvc/Model/MetaData/Redis/GetBindTypesCest.php index e5ddc6deae7..646f546c76c 100644 --- a/tests/integration/Mvc/Model/MetaData/Redis/GetBindTypesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Redis/GetBindTypesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetBindTypesCest /** * Tests Phalcon\Mvc\Model\MetaData\Redis :: getBindTypes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataRedisGetBindTypes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Redis/GetColumnMapCest.php b/tests/integration/Mvc/Model/MetaData/Redis/GetColumnMapCest.php index 7b6cc10a439..d833f43ee31 100644 --- a/tests/integration/Mvc/Model/MetaData/Redis/GetColumnMapCest.php +++ b/tests/integration/Mvc/Model/MetaData/Redis/GetColumnMapCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetColumnMapCest /** * Tests Phalcon\Mvc\Model\MetaData\Redis :: getColumnMap() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataRedisGetColumnMap(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Redis/GetDataTypesCest.php b/tests/integration/Mvc/Model/MetaData/Redis/GetDataTypesCest.php index 501a3dea4b1..fc4b0f51cbc 100644 --- a/tests/integration/Mvc/Model/MetaData/Redis/GetDataTypesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Redis/GetDataTypesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDataTypesCest /** * Tests Phalcon\Mvc\Model\MetaData\Redis :: getDataTypes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataRedisGetDataTypes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Redis/GetDataTypesNumericCest.php b/tests/integration/Mvc/Model/MetaData/Redis/GetDataTypesNumericCest.php index 072edf86e70..ef0371e152a 100644 --- a/tests/integration/Mvc/Model/MetaData/Redis/GetDataTypesNumericCest.php +++ b/tests/integration/Mvc/Model/MetaData/Redis/GetDataTypesNumericCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDataTypesNumericCest /** * Tests Phalcon\Mvc\Model\MetaData\Redis :: getDataTypesNumeric() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataRedisGetDataTypesNumeric(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Redis/GetDefaultValuesCest.php b/tests/integration/Mvc/Model/MetaData/Redis/GetDefaultValuesCest.php index d343be08645..479d252c194 100644 --- a/tests/integration/Mvc/Model/MetaData/Redis/GetDefaultValuesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Redis/GetDefaultValuesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDefaultValuesCest /** * Tests Phalcon\Mvc\Model\MetaData\Redis :: getDefaultValues() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataRedisGetDefaultValues(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Redis/GetEmptyStringAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Redis/GetEmptyStringAttributesCest.php index 248351910da..3937c7eefd1 100644 --- a/tests/integration/Mvc/Model/MetaData/Redis/GetEmptyStringAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Redis/GetEmptyStringAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetEmptyStringAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Redis :: getEmptyStringAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataRedisGetEmptyStringAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Redis/GetIdentityFieldCest.php b/tests/integration/Mvc/Model/MetaData/Redis/GetIdentityFieldCest.php index 3c298950180..d3ee477270b 100644 --- a/tests/integration/Mvc/Model/MetaData/Redis/GetIdentityFieldCest.php +++ b/tests/integration/Mvc/Model/MetaData/Redis/GetIdentityFieldCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetIdentityFieldCest /** * Tests Phalcon\Mvc\Model\MetaData\Redis :: getIdentityField() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataRedisGetIdentityField(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Redis/GetNonPrimaryKeyAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Redis/GetNonPrimaryKeyAttributesCest.php index e24d2a25234..995bfd9336b 100644 --- a/tests/integration/Mvc/Model/MetaData/Redis/GetNonPrimaryKeyAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Redis/GetNonPrimaryKeyAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetNonPrimaryKeyAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Redis :: getNonPrimaryKeyAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataRedisGetNonPrimaryKeyAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Redis/GetNotNullAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Redis/GetNotNullAttributesCest.php index 68ca427606e..ed1defde800 100644 --- a/tests/integration/Mvc/Model/MetaData/Redis/GetNotNullAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Redis/GetNotNullAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetNotNullAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Redis :: getNotNullAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataRedisGetNotNullAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Redis/GetPrimaryKeyAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Redis/GetPrimaryKeyAttributesCest.php index bbf293edf19..a7487336964 100644 --- a/tests/integration/Mvc/Model/MetaData/Redis/GetPrimaryKeyAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Redis/GetPrimaryKeyAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetPrimaryKeyAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Redis :: getPrimaryKeyAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataRedisGetPrimaryKeyAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Redis/GetReverseColumnMapCest.php b/tests/integration/Mvc/Model/MetaData/Redis/GetReverseColumnMapCest.php index eb961f05728..4015cc89c3b 100644 --- a/tests/integration/Mvc/Model/MetaData/Redis/GetReverseColumnMapCest.php +++ b/tests/integration/Mvc/Model/MetaData/Redis/GetReverseColumnMapCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetReverseColumnMapCest /** * Tests Phalcon\Mvc\Model\MetaData\Redis :: getReverseColumnMap() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataRedisGetReverseColumnMap(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Redis/GetSetDICest.php b/tests/integration/Mvc/Model/MetaData/Redis/GetSetDICest.php index 571dd016e2e..b5a161fb28e 100644 --- a/tests/integration/Mvc/Model/MetaData/Redis/GetSetDICest.php +++ b/tests/integration/Mvc/Model/MetaData/Redis/GetSetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetSetDICest /** * Tests Phalcon\Mvc\Model\MetaData\Redis :: getDI() / setDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataRedisGetSetDI(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Redis/GetStrategyCest.php b/tests/integration/Mvc/Model/MetaData/Redis/GetStrategyCest.php index 69d69a3f828..23a29d9c698 100644 --- a/tests/integration/Mvc/Model/MetaData/Redis/GetStrategyCest.php +++ b/tests/integration/Mvc/Model/MetaData/Redis/GetStrategyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetStrategyCest /** * Tests Phalcon\Mvc\Model\MetaData\Redis :: getStrategy() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataRedisGetStrategy(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Redis/HasAttributeCest.php b/tests/integration/Mvc/Model/MetaData/Redis/HasAttributeCest.php index 37abca3b4cc..4fcec1a6ee4 100644 --- a/tests/integration/Mvc/Model/MetaData/Redis/HasAttributeCest.php +++ b/tests/integration/Mvc/Model/MetaData/Redis/HasAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class HasAttributeCest /** * Tests Phalcon\Mvc\Model\MetaData\Redis :: hasAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataRedisHasAttribute(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Redis/IsEmptyCest.php b/tests/integration/Mvc/Model/MetaData/Redis/IsEmptyCest.php index 8f5641cdb9b..35d998a6f59 100644 --- a/tests/integration/Mvc/Model/MetaData/Redis/IsEmptyCest.php +++ b/tests/integration/Mvc/Model/MetaData/Redis/IsEmptyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class IsEmptyCest /** * Tests Phalcon\Mvc\Model\MetaData\Redis :: isEmpty() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataRedisIsEmpty(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Redis/ReadCest.php b/tests/integration/Mvc/Model/MetaData/Redis/ReadCest.php index 5104f05994c..5cd774cab2f 100644 --- a/tests/integration/Mvc/Model/MetaData/Redis/ReadCest.php +++ b/tests/integration/Mvc/Model/MetaData/Redis/ReadCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ReadCest /** * Tests Phalcon\Mvc\Model\MetaData\Redis :: read() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataRedisRead(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Redis/ReadColumnMapCest.php b/tests/integration/Mvc/Model/MetaData/Redis/ReadColumnMapCest.php index 4522ef1f9ea..0cf0eed9f76 100644 --- a/tests/integration/Mvc/Model/MetaData/Redis/ReadColumnMapCest.php +++ b/tests/integration/Mvc/Model/MetaData/Redis/ReadColumnMapCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ReadColumnMapCest /** * Tests Phalcon\Mvc\Model\MetaData\Redis :: readColumnMap() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataRedisReadColumnMap(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Redis/ReadColumnMapIndexCest.php b/tests/integration/Mvc/Model/MetaData/Redis/ReadColumnMapIndexCest.php index fd0805b0249..029de428917 100644 --- a/tests/integration/Mvc/Model/MetaData/Redis/ReadColumnMapIndexCest.php +++ b/tests/integration/Mvc/Model/MetaData/Redis/ReadColumnMapIndexCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ReadColumnMapIndexCest /** * Tests Phalcon\Mvc\Model\MetaData\Redis :: readColumnMapIndex() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataRedisReadColumnMapIndex(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Redis/ReadMetaDataCest.php b/tests/integration/Mvc/Model/MetaData/Redis/ReadMetaDataCest.php index b4eb1ff2c54..3c8aa941461 100644 --- a/tests/integration/Mvc/Model/MetaData/Redis/ReadMetaDataCest.php +++ b/tests/integration/Mvc/Model/MetaData/Redis/ReadMetaDataCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ReadMetaDataCest /** * Tests Phalcon\Mvc\Model\MetaData\Redis :: readMetaData() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataRedisReadMetaData(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Redis/ReadMetaDataIndexCest.php b/tests/integration/Mvc/Model/MetaData/Redis/ReadMetaDataIndexCest.php index 01ab474a33f..367438a9efb 100644 --- a/tests/integration/Mvc/Model/MetaData/Redis/ReadMetaDataIndexCest.php +++ b/tests/integration/Mvc/Model/MetaData/Redis/ReadMetaDataIndexCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ReadMetaDataIndexCest /** * Tests Phalcon\Mvc\Model\MetaData\Redis :: readMetaDataIndex() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataRedisReadMetaDataIndex(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Redis/ResetCest.php b/tests/integration/Mvc/Model/MetaData/Redis/ResetCest.php index 84f2df262b0..bd8eb1f3e4b 100644 --- a/tests/integration/Mvc/Model/MetaData/Redis/ResetCest.php +++ b/tests/integration/Mvc/Model/MetaData/Redis/ResetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ResetCest /** * Tests Phalcon\Mvc\Model\MetaData\Redis :: reset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataRedisReset(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Redis/SetAutomaticCreateAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Redis/SetAutomaticCreateAttributesCest.php index f96a1111ab7..d9767f30e4c 100644 --- a/tests/integration/Mvc/Model/MetaData/Redis/SetAutomaticCreateAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Redis/SetAutomaticCreateAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetAutomaticCreateAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Redis :: setAutomaticCreateAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataRedisSetAutomaticCreateAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Redis/SetAutomaticUpdateAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Redis/SetAutomaticUpdateAttributesCest.php index c6964a5faac..fbdf78d837a 100644 --- a/tests/integration/Mvc/Model/MetaData/Redis/SetAutomaticUpdateAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Redis/SetAutomaticUpdateAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetAutomaticUpdateAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Redis :: setAutomaticUpdateAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataRedisSetAutomaticUpdateAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Redis/SetEmptyStringAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Redis/SetEmptyStringAttributesCest.php index e53f1ca111a..e764fb1c905 100644 --- a/tests/integration/Mvc/Model/MetaData/Redis/SetEmptyStringAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Redis/SetEmptyStringAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetEmptyStringAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Redis :: setEmptyStringAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataRedisSetEmptyStringAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Redis/SetStrategyCest.php b/tests/integration/Mvc/Model/MetaData/Redis/SetStrategyCest.php index 0f893fe58cb..d619179ccdd 100644 --- a/tests/integration/Mvc/Model/MetaData/Redis/SetStrategyCest.php +++ b/tests/integration/Mvc/Model/MetaData/Redis/SetStrategyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetStrategyCest /** * Tests Phalcon\Mvc\Model\MetaData\Redis :: setStrategy() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataRedisSetStrategy(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Redis/WriteCest.php b/tests/integration/Mvc/Model/MetaData/Redis/WriteCest.php index e177a52066b..48a2787e373 100644 --- a/tests/integration/Mvc/Model/MetaData/Redis/WriteCest.php +++ b/tests/integration/Mvc/Model/MetaData/Redis/WriteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class WriteCest /** * Tests Phalcon\Mvc\Model\MetaData\Redis :: write() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataRedisWrite(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Redis/WriteMetaDataIndexCest.php b/tests/integration/Mvc/Model/MetaData/Redis/WriteMetaDataIndexCest.php index c9152a89c3f..1c4969311c7 100644 --- a/tests/integration/Mvc/Model/MetaData/Redis/WriteMetaDataIndexCest.php +++ b/tests/integration/Mvc/Model/MetaData/Redis/WriteMetaDataIndexCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class WriteMetaDataIndexCest /** * Tests Phalcon\Mvc\Model\MetaData\Redis :: writeMetaDataIndex() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataRedisWriteMetaDataIndex(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/ResetCest.php b/tests/integration/Mvc/Model/MetaData/ResetCest.php index 8bb74bf2224..55f933fb6f5 100644 --- a/tests/integration/Mvc/Model/MetaData/ResetCest.php +++ b/tests/integration/Mvc/Model/MetaData/ResetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ResetCest /** * Tests Phalcon\Mvc\Model\MetaData :: reset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataReset(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/SetAutomaticCreateAttributesCest.php b/tests/integration/Mvc/Model/MetaData/SetAutomaticCreateAttributesCest.php index 178752584fe..9a22790ff0e 100644 --- a/tests/integration/Mvc/Model/MetaData/SetAutomaticCreateAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/SetAutomaticCreateAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetAutomaticCreateAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData :: setAutomaticCreateAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataSetAutomaticCreateAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/SetAutomaticUpdateAttributesCest.php b/tests/integration/Mvc/Model/MetaData/SetAutomaticUpdateAttributesCest.php index 0eea01af4ae..1384b98dff7 100644 --- a/tests/integration/Mvc/Model/MetaData/SetAutomaticUpdateAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/SetAutomaticUpdateAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetAutomaticUpdateAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData :: setAutomaticUpdateAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataSetAutomaticUpdateAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/SetEmptyStringAttributesCest.php b/tests/integration/Mvc/Model/MetaData/SetEmptyStringAttributesCest.php index 62567e2fad1..a75464d0119 100644 --- a/tests/integration/Mvc/Model/MetaData/SetEmptyStringAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/SetEmptyStringAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetEmptyStringAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData :: setEmptyStringAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataSetEmptyStringAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/SetStrategyCest.php b/tests/integration/Mvc/Model/MetaData/SetStrategyCest.php index f20797485db..7c758a184a4 100644 --- a/tests/integration/Mvc/Model/MetaData/SetStrategyCest.php +++ b/tests/integration/Mvc/Model/MetaData/SetStrategyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetStrategyCest /** * Tests Phalcon\Mvc\Model\MetaData :: setStrategy() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataSetStrategy(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Strategy/Annotations/GetColumnMapsCest.php b/tests/integration/Mvc/Model/MetaData/Strategy/Annotations/GetColumnMapsCest.php index d9fe9f8458c..df50227ff9b 100644 --- a/tests/integration/Mvc/Model/MetaData/Strategy/Annotations/GetColumnMapsCest.php +++ b/tests/integration/Mvc/Model/MetaData/Strategy/Annotations/GetColumnMapsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetColumnMapsCest /** * Tests Phalcon\Mvc\Model\MetaData\Strategy\Annotations :: getColumnMaps() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataStrategyAnnotationsGetColumnMaps(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Strategy/Annotations/GetMetaDataCest.php b/tests/integration/Mvc/Model/MetaData/Strategy/Annotations/GetMetaDataCest.php index 9955dd0191a..108994d5184 100644 --- a/tests/integration/Mvc/Model/MetaData/Strategy/Annotations/GetMetaDataCest.php +++ b/tests/integration/Mvc/Model/MetaData/Strategy/Annotations/GetMetaDataCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetMetaDataCest /** * Tests Phalcon\Mvc\Model\MetaData\Strategy\Annotations :: getMetaData() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataStrategyAnnotationsGetMetaData(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Strategy/Introspection/GetColumnMapsCest.php b/tests/integration/Mvc/Model/MetaData/Strategy/Introspection/GetColumnMapsCest.php index 1873ab172ee..717da95afce 100644 --- a/tests/integration/Mvc/Model/MetaData/Strategy/Introspection/GetColumnMapsCest.php +++ b/tests/integration/Mvc/Model/MetaData/Strategy/Introspection/GetColumnMapsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class GetColumnMapsCest * Tests Phalcon\Mvc\Model\MetaData\Strategy\Introspection :: * getColumnMaps() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataStrategyIntrospectionGetColumnMaps(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Strategy/Introspection/GetMetaDataCest.php b/tests/integration/Mvc/Model/MetaData/Strategy/Introspection/GetMetaDataCest.php index 6fbe7e2b7c4..67731e380e2 100644 --- a/tests/integration/Mvc/Model/MetaData/Strategy/Introspection/GetMetaDataCest.php +++ b/tests/integration/Mvc/Model/MetaData/Strategy/Introspection/GetMetaDataCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetMetaDataCest /** * Tests Phalcon\Mvc\Model\MetaData\Strategy\Introspection :: getMetaData() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataStrategyIntrospectionGetMetaData(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Strategy/Refactor-AnnotationsCest.php b/tests/integration/Mvc/Model/MetaData/Strategy/Refactor-AnnotationsCest.php index 7a5e89c375d..06bb64f8784 100644 --- a/tests/integration/Mvc/Model/MetaData/Strategy/Refactor-AnnotationsCest.php +++ b/tests/integration/Mvc/Model/MetaData/Strategy/Refactor-AnnotationsCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/MetaData/Stream/ConstructCest.php b/tests/integration/Mvc/Model/MetaData/Stream/ConstructCest.php index 7dcbb1e83e0..2865ed55e99 100644 --- a/tests/integration/Mvc/Model/MetaData/Stream/ConstructCest.php +++ b/tests/integration/Mvc/Model/MetaData/Stream/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -56,7 +56,7 @@ public function _after(IntegrationTester $I) /** * Tests Phalcon\Mvc\Model\MetaData\Stream :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataStreamConstruct(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Stream/GetAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Stream/GetAttributesCest.php index 3e666ddb890..18fdbe0475e 100644 --- a/tests/integration/Mvc/Model/MetaData/Stream/GetAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Stream/GetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Stream :: getAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataStreamGetAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Stream/GetAutomaticCreateAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Stream/GetAutomaticCreateAttributesCest.php index e0163c56dff..0a682985ca0 100644 --- a/tests/integration/Mvc/Model/MetaData/Stream/GetAutomaticCreateAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Stream/GetAutomaticCreateAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAutomaticCreateAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Stream :: getAutomaticCreateAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataStreamGetAutomaticCreateAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Stream/GetAutomaticUpdateAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Stream/GetAutomaticUpdateAttributesCest.php index 051875677d0..08d7d20721b 100644 --- a/tests/integration/Mvc/Model/MetaData/Stream/GetAutomaticUpdateAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Stream/GetAutomaticUpdateAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAutomaticUpdateAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Stream :: getAutomaticUpdateAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataStreamGetAutomaticUpdateAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Stream/GetBindTypesCest.php b/tests/integration/Mvc/Model/MetaData/Stream/GetBindTypesCest.php index 551fbecf85c..bb1c62d9ee9 100644 --- a/tests/integration/Mvc/Model/MetaData/Stream/GetBindTypesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Stream/GetBindTypesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetBindTypesCest /** * Tests Phalcon\Mvc\Model\MetaData\Stream :: getBindTypes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataStreamGetBindTypes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Stream/GetColumnMapCest.php b/tests/integration/Mvc/Model/MetaData/Stream/GetColumnMapCest.php index 3bb9f1b3195..a23074c384e 100644 --- a/tests/integration/Mvc/Model/MetaData/Stream/GetColumnMapCest.php +++ b/tests/integration/Mvc/Model/MetaData/Stream/GetColumnMapCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetColumnMapCest /** * Tests Phalcon\Mvc\Model\MetaData\Stream :: getColumnMap() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataStreamGetColumnMap(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Stream/GetDataTypesCest.php b/tests/integration/Mvc/Model/MetaData/Stream/GetDataTypesCest.php index c801f8b73a0..c717ade19e8 100644 --- a/tests/integration/Mvc/Model/MetaData/Stream/GetDataTypesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Stream/GetDataTypesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDataTypesCest /** * Tests Phalcon\Mvc\Model\MetaData\Stream :: getDataTypes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataStreamGetDataTypes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Stream/GetDataTypesNumericCest.php b/tests/integration/Mvc/Model/MetaData/Stream/GetDataTypesNumericCest.php index c547019461b..5ec34690d7f 100644 --- a/tests/integration/Mvc/Model/MetaData/Stream/GetDataTypesNumericCest.php +++ b/tests/integration/Mvc/Model/MetaData/Stream/GetDataTypesNumericCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDataTypesNumericCest /** * Tests Phalcon\Mvc\Model\MetaData\Stream :: getDataTypesNumeric() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataStreamGetDataTypesNumeric(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Stream/GetDefaultValuesCest.php b/tests/integration/Mvc/Model/MetaData/Stream/GetDefaultValuesCest.php index b88708af3b8..7f339cabee3 100644 --- a/tests/integration/Mvc/Model/MetaData/Stream/GetDefaultValuesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Stream/GetDefaultValuesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDefaultValuesCest /** * Tests Phalcon\Mvc\Model\MetaData\Stream :: getDefaultValues() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataStreamGetDefaultValues(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Stream/GetEmptyStringAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Stream/GetEmptyStringAttributesCest.php index 1a993b9d700..7e8d774ef90 100644 --- a/tests/integration/Mvc/Model/MetaData/Stream/GetEmptyStringAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Stream/GetEmptyStringAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetEmptyStringAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Stream :: getEmptyStringAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataStreamGetEmptyStringAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Stream/GetIdentityFieldCest.php b/tests/integration/Mvc/Model/MetaData/Stream/GetIdentityFieldCest.php index a8a5dd510c4..c581dcdc6fd 100644 --- a/tests/integration/Mvc/Model/MetaData/Stream/GetIdentityFieldCest.php +++ b/tests/integration/Mvc/Model/MetaData/Stream/GetIdentityFieldCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetIdentityFieldCest /** * Tests Phalcon\Mvc\Model\MetaData\Stream :: getIdentityField() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataStreamGetIdentityField(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Stream/GetNonPrimaryKeyAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Stream/GetNonPrimaryKeyAttributesCest.php index fefc651fa8c..e247b5a9d26 100644 --- a/tests/integration/Mvc/Model/MetaData/Stream/GetNonPrimaryKeyAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Stream/GetNonPrimaryKeyAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetNonPrimaryKeyAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Stream :: getNonPrimaryKeyAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataStreamGetNonPrimaryKeyAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Stream/GetNotNullAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Stream/GetNotNullAttributesCest.php index 3508e3789c4..9fc37ba97f3 100644 --- a/tests/integration/Mvc/Model/MetaData/Stream/GetNotNullAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Stream/GetNotNullAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetNotNullAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Stream :: getNotNullAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataStreamGetNotNullAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Stream/GetPrimaryKeyAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Stream/GetPrimaryKeyAttributesCest.php index 14834ac3151..ed0f1673a91 100644 --- a/tests/integration/Mvc/Model/MetaData/Stream/GetPrimaryKeyAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Stream/GetPrimaryKeyAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetPrimaryKeyAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Stream :: getPrimaryKeyAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataStreamGetPrimaryKeyAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Stream/GetReverseColumnMapCest.php b/tests/integration/Mvc/Model/MetaData/Stream/GetReverseColumnMapCest.php index b2ef457212a..a20fa89d96c 100644 --- a/tests/integration/Mvc/Model/MetaData/Stream/GetReverseColumnMapCest.php +++ b/tests/integration/Mvc/Model/MetaData/Stream/GetReverseColumnMapCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetReverseColumnMapCest /** * Tests Phalcon\Mvc\Model\MetaData\Stream :: getReverseColumnMap() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataStreamGetReverseColumnMap(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Stream/GetSetDICest.php b/tests/integration/Mvc/Model/MetaData/Stream/GetSetDICest.php index 24c3996c0b4..095d007a266 100644 --- a/tests/integration/Mvc/Model/MetaData/Stream/GetSetDICest.php +++ b/tests/integration/Mvc/Model/MetaData/Stream/GetSetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetSetDICest /** * Tests Phalcon\Mvc\Model\MetaData\Stream :: getDI() / setDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataStreamGetSetDI(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Stream/GetStrategyCest.php b/tests/integration/Mvc/Model/MetaData/Stream/GetStrategyCest.php index 77df145f616..443a7818c4c 100644 --- a/tests/integration/Mvc/Model/MetaData/Stream/GetStrategyCest.php +++ b/tests/integration/Mvc/Model/MetaData/Stream/GetStrategyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetStrategyCest /** * Tests Phalcon\Mvc\Model\MetaData\Stream :: getStrategy() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataStreamGetStrategy(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Stream/HasAttributeCest.php b/tests/integration/Mvc/Model/MetaData/Stream/HasAttributeCest.php index ad412875109..94a4cb4673b 100644 --- a/tests/integration/Mvc/Model/MetaData/Stream/HasAttributeCest.php +++ b/tests/integration/Mvc/Model/MetaData/Stream/HasAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class HasAttributeCest /** * Tests Phalcon\Mvc\Model\MetaData\Stream :: hasAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataStreamHasAttribute(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Stream/IsEmptyCest.php b/tests/integration/Mvc/Model/MetaData/Stream/IsEmptyCest.php index f066311e8bd..d75fb7d3cb4 100644 --- a/tests/integration/Mvc/Model/MetaData/Stream/IsEmptyCest.php +++ b/tests/integration/Mvc/Model/MetaData/Stream/IsEmptyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class IsEmptyCest /** * Tests Phalcon\Mvc\Model\MetaData\Stream :: isEmpty() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataStreamIsEmpty(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Stream/ReadCest.php b/tests/integration/Mvc/Model/MetaData/Stream/ReadCest.php index 05911994501..39f4ea5765a 100644 --- a/tests/integration/Mvc/Model/MetaData/Stream/ReadCest.php +++ b/tests/integration/Mvc/Model/MetaData/Stream/ReadCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ReadCest /** * Tests Phalcon\Mvc\Model\MetaData\Stream :: read() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataStreamRead(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Stream/ReadColumnMapCest.php b/tests/integration/Mvc/Model/MetaData/Stream/ReadColumnMapCest.php index 12382b6d4d8..64d251b11a9 100644 --- a/tests/integration/Mvc/Model/MetaData/Stream/ReadColumnMapCest.php +++ b/tests/integration/Mvc/Model/MetaData/Stream/ReadColumnMapCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ReadColumnMapCest /** * Tests Phalcon\Mvc\Model\MetaData\Stream :: readColumnMap() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataStreamReadColumnMap(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Stream/ReadColumnMapIndexCest.php b/tests/integration/Mvc/Model/MetaData/Stream/ReadColumnMapIndexCest.php index 46d97d1c001..3e9eaa04ff7 100644 --- a/tests/integration/Mvc/Model/MetaData/Stream/ReadColumnMapIndexCest.php +++ b/tests/integration/Mvc/Model/MetaData/Stream/ReadColumnMapIndexCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ReadColumnMapIndexCest /** * Tests Phalcon\Mvc\Model\MetaData\Stream :: readColumnMapIndex() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataStreamReadColumnMapIndex(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Stream/ReadMetaDataCest.php b/tests/integration/Mvc/Model/MetaData/Stream/ReadMetaDataCest.php index e8deddb582a..827e75509f4 100644 --- a/tests/integration/Mvc/Model/MetaData/Stream/ReadMetaDataCest.php +++ b/tests/integration/Mvc/Model/MetaData/Stream/ReadMetaDataCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ReadMetaDataCest /** * Tests Phalcon\Mvc\Model\MetaData\Stream :: readMetaData() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataStreamReadMetaData(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Stream/ReadMetaDataIndexCest.php b/tests/integration/Mvc/Model/MetaData/Stream/ReadMetaDataIndexCest.php index 7718f31c07e..808fae8b734 100644 --- a/tests/integration/Mvc/Model/MetaData/Stream/ReadMetaDataIndexCest.php +++ b/tests/integration/Mvc/Model/MetaData/Stream/ReadMetaDataIndexCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ReadMetaDataIndexCest /** * Tests Phalcon\Mvc\Model\MetaData\Stream :: readMetaDataIndex() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataStreamReadMetaDataIndex(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Stream/ResetCest.php b/tests/integration/Mvc/Model/MetaData/Stream/ResetCest.php index bd96f0e091f..b7992f16af2 100644 --- a/tests/integration/Mvc/Model/MetaData/Stream/ResetCest.php +++ b/tests/integration/Mvc/Model/MetaData/Stream/ResetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ResetCest /** * Tests Phalcon\Mvc\Model\MetaData\Stream :: reset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataStreamReset(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Stream/SetAutomaticCreateAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Stream/SetAutomaticCreateAttributesCest.php index f668d0f3bbd..7a149d59455 100644 --- a/tests/integration/Mvc/Model/MetaData/Stream/SetAutomaticCreateAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Stream/SetAutomaticCreateAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetAutomaticCreateAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Stream :: setAutomaticCreateAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataStreamSetAutomaticCreateAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Stream/SetAutomaticUpdateAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Stream/SetAutomaticUpdateAttributesCest.php index bcdbea7f592..cbd5abe4079 100644 --- a/tests/integration/Mvc/Model/MetaData/Stream/SetAutomaticUpdateAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Stream/SetAutomaticUpdateAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetAutomaticUpdateAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Stream :: setAutomaticUpdateAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataStreamSetAutomaticUpdateAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Stream/SetEmptyStringAttributesCest.php b/tests/integration/Mvc/Model/MetaData/Stream/SetEmptyStringAttributesCest.php index 8f54f69fd39..869e55ebada 100644 --- a/tests/integration/Mvc/Model/MetaData/Stream/SetEmptyStringAttributesCest.php +++ b/tests/integration/Mvc/Model/MetaData/Stream/SetEmptyStringAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetEmptyStringAttributesCest /** * Tests Phalcon\Mvc\Model\MetaData\Stream :: setEmptyStringAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataStreamSetEmptyStringAttributes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Stream/SetStrategyCest.php b/tests/integration/Mvc/Model/MetaData/Stream/SetStrategyCest.php index 2ef49ac0a17..936a1258e15 100644 --- a/tests/integration/Mvc/Model/MetaData/Stream/SetStrategyCest.php +++ b/tests/integration/Mvc/Model/MetaData/Stream/SetStrategyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetStrategyCest /** * Tests Phalcon\Mvc\Model\MetaData\Stream :: setStrategy() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataStreamSetStrategy(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Stream/WriteCest.php b/tests/integration/Mvc/Model/MetaData/Stream/WriteCest.php index cb58917785e..5179025eaf6 100644 --- a/tests/integration/Mvc/Model/MetaData/Stream/WriteCest.php +++ b/tests/integration/Mvc/Model/MetaData/Stream/WriteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -28,7 +28,7 @@ class WriteCest /** * Tests Phalcon\Mvc\Model\MetaData\Stream :: write() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataStreamWrite(IntegrationTester $I) @@ -41,7 +41,7 @@ public function mvcModelMetadataStreamWrite(IntegrationTester $I) /** * Tests Phalcon\Mvc\Model\MetaData\Stream :: write() - exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataStreamWriteException(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/Stream/WriteMetaDataIndexCest.php b/tests/integration/Mvc/Model/MetaData/Stream/WriteMetaDataIndexCest.php index 29a926e36f4..026de2a95bd 100644 --- a/tests/integration/Mvc/Model/MetaData/Stream/WriteMetaDataIndexCest.php +++ b/tests/integration/Mvc/Model/MetaData/Stream/WriteMetaDataIndexCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class WriteMetaDataIndexCest /** * Tests Phalcon\Mvc\Model\MetaData\Stream :: writeMetaDataIndex() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataStreamWriteMetaDataIndex(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/WriteCest.php b/tests/integration/Mvc/Model/MetaData/WriteCest.php index b3c97dfb7e8..9de8f80b953 100644 --- a/tests/integration/Mvc/Model/MetaData/WriteCest.php +++ b/tests/integration/Mvc/Model/MetaData/WriteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class WriteCest /** * Tests Phalcon\Mvc\Model\MetaData :: write() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataWrite(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/MetaData/WriteMetaDataIndexCest.php b/tests/integration/Mvc/Model/MetaData/WriteMetaDataIndexCest.php index 5ecdc7e2c7f..4d19f5bf743 100644 --- a/tests/integration/Mvc/Model/MetaData/WriteMetaDataIndexCest.php +++ b/tests/integration/Mvc/Model/MetaData/WriteMetaDataIndexCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class WriteMetaDataIndexCest /** * Tests Phalcon\Mvc\Model\MetaData :: writeMetaDataIndex() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelMetadataWriteMetaDataIndex(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/AddFromCest.php b/tests/integration/Mvc/Model/Query/Builder/AddFromCest.php index cf3d78ee2b6..a79395e3194 100644 --- a/tests/integration/Mvc/Model/Query/Builder/AddFromCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/AddFromCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddFromCest /** * Tests Phalcon\Mvc\Model\Query\Builder :: addFrom() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderAddFrom(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/AndHavingCest.php b/tests/integration/Mvc/Model/Query/Builder/AndHavingCest.php index 877937775e3..0aaa0aef77b 100644 --- a/tests/integration/Mvc/Model/Query/Builder/AndHavingCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/AndHavingCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AndHavingCest /** * Tests Phalcon\Mvc\Model\Query\Builder :: andHaving() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderAndHaving(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/AndWhereCest.php b/tests/integration/Mvc/Model/Query/Builder/AndWhereCest.php index 7e97689efca..d7af5f5abe9 100644 --- a/tests/integration/Mvc/Model/Query/Builder/AndWhereCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/AndWhereCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AndWhereCest /** * Tests Phalcon\Mvc\Model\Query\Builder :: andWhere() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderAndWhere(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/AutoescapeCest.php b/tests/integration/Mvc/Model/Query/Builder/AutoescapeCest.php index 65bc0fe5f5f..98d3e965399 100644 --- a/tests/integration/Mvc/Model/Query/Builder/AutoescapeCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/AutoescapeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AutoescapeCest /** * Tests Phalcon\Mvc\Model\Query\Builder :: autoescape() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderAutoescape(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/BetweenHavingCest.php b/tests/integration/Mvc/Model/Query/Builder/BetweenHavingCest.php index 5c17bfa5522..ec81d895e9e 100644 --- a/tests/integration/Mvc/Model/Query/Builder/BetweenHavingCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/BetweenHavingCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class BetweenHavingCest /** * Tests Phalcon\Mvc\Model\Query\Builder :: betweenHaving() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderBetweenHaving(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/BetweenWhereCest.php b/tests/integration/Mvc/Model/Query/Builder/BetweenWhereCest.php index 6d20afbae93..7da21545a75 100644 --- a/tests/integration/Mvc/Model/Query/Builder/BetweenWhereCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/BetweenWhereCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class BetweenWhereCest /** * Tests Phalcon\Mvc\Model\Query\Builder :: betweenWhere() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderBetweenWhere(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/ColumnsCest.php b/tests/integration/Mvc/Model/Query/Builder/ColumnsCest.php index 6e1bc5933a3..469ca06d8ae 100644 --- a/tests/integration/Mvc/Model/Query/Builder/ColumnsCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/ColumnsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ColumnsCest /** * Tests Phalcon\Mvc\Model\Query\Builder :: columns() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderColumns(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/ConstructCest.php b/tests/integration/Mvc/Model/Query/Builder/ConstructCest.php index 2f6bd85a3d5..5af6ba77bd7 100644 --- a/tests/integration/Mvc/Model/Query/Builder/ConstructCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -35,7 +35,7 @@ public function _after(IntegrationTester $I) /** * Tests Phalcon\Mvc\Model\Query\Builder :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderConstruct(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/DistinctCest.php b/tests/integration/Mvc/Model/Query/Builder/DistinctCest.php index 96ce4783506..04affaaa84a 100644 --- a/tests/integration/Mvc/Model/Query/Builder/DistinctCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/DistinctCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/Query/Builder/ForUpdateCest.php b/tests/integration/Mvc/Model/Query/Builder/ForUpdateCest.php index bd1ee97cade..84a907c5bfe 100644 --- a/tests/integration/Mvc/Model/Query/Builder/ForUpdateCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/ForUpdateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ForUpdateCest /** * Tests Phalcon\Mvc\Model\Query\Builder :: forUpdate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderForUpdate(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/FromCest.php b/tests/integration/Mvc/Model/Query/Builder/FromCest.php index 17fa7f6fba4..8b6d2c5be75 100644 --- a/tests/integration/Mvc/Model/Query/Builder/FromCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/FromCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class FromCest /** * Tests Phalcon\Mvc\Model\Query\Builder :: from() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderFrom(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/GetBindParamsCest.php b/tests/integration/Mvc/Model/Query/Builder/GetBindParamsCest.php index 39522983c56..4f511c0421c 100644 --- a/tests/integration/Mvc/Model/Query/Builder/GetBindParamsCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/GetBindParamsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetBindParamsCest /** * Tests Phalcon\Mvc\Model\Query\Builder :: getBindParams() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderGetBindParams(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/GetBindTypesCest.php b/tests/integration/Mvc/Model/Query/Builder/GetBindTypesCest.php index 61ee8771a04..f50119fb121 100644 --- a/tests/integration/Mvc/Model/Query/Builder/GetBindTypesCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/GetBindTypesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetBindTypesCest /** * Tests Phalcon\Mvc\Model\Query\Builder :: getBindTypes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderGetBindTypes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/GetColumnsCest.php b/tests/integration/Mvc/Model/Query/Builder/GetColumnsCest.php index 5ad6a726726..dfb28f80d49 100644 --- a/tests/integration/Mvc/Model/Query/Builder/GetColumnsCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/GetColumnsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetColumnsCest /** * Tests Phalcon\Mvc\Model\Query\Builder :: getColumns() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderGetColumns(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/GetDistinctCest.php b/tests/integration/Mvc/Model/Query/Builder/GetDistinctCest.php index f56583cc688..c7ddc9a17d2 100644 --- a/tests/integration/Mvc/Model/Query/Builder/GetDistinctCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/GetDistinctCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDistinctCest /** * Tests Phalcon\Mvc\Model\Query\Builder :: getDistinct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderGetDistinct(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/GetFromCest.php b/tests/integration/Mvc/Model/Query/Builder/GetFromCest.php index 59380c6b078..259cecb3cfd 100644 --- a/tests/integration/Mvc/Model/Query/Builder/GetFromCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/GetFromCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetFromCest /** * Tests Phalcon\Mvc\Model\Query\Builder :: getFrom() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderGetFrom(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/GetGroupByCest.php b/tests/integration/Mvc/Model/Query/Builder/GetGroupByCest.php index 855dfece708..5191c2595be 100644 --- a/tests/integration/Mvc/Model/Query/Builder/GetGroupByCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/GetGroupByCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetGroupByCest /** * Tests Phalcon\Mvc\Model\Query\Builder :: getGroupBy() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderGetGroupBy(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/GetHavingCest.php b/tests/integration/Mvc/Model/Query/Builder/GetHavingCest.php index 7f0dfd696f8..2eee84bacbe 100644 --- a/tests/integration/Mvc/Model/Query/Builder/GetHavingCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/GetHavingCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetHavingCest /** * Tests Phalcon\Mvc\Model\Query\Builder :: getHaving() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderGetHaving(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/GetJoinsCest.php b/tests/integration/Mvc/Model/Query/Builder/GetJoinsCest.php index 9949ceb8c3a..66ce775ca43 100644 --- a/tests/integration/Mvc/Model/Query/Builder/GetJoinsCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/GetJoinsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetJoinsCest /** * Tests Phalcon\Mvc\Model\Query\Builder :: getJoins() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderGetJoins(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/GetLimitCest.php b/tests/integration/Mvc/Model/Query/Builder/GetLimitCest.php index 0679d0df7fd..4a77c35eb82 100644 --- a/tests/integration/Mvc/Model/Query/Builder/GetLimitCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/GetLimitCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetLimitCest /** * Tests Phalcon\Mvc\Model\Query\Builder :: getLimit() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderGetLimit(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/GetModelsCest.php b/tests/integration/Mvc/Model/Query/Builder/GetModelsCest.php index 7d51193c8ee..e3971847b99 100644 --- a/tests/integration/Mvc/Model/Query/Builder/GetModelsCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/GetModelsCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -35,7 +35,7 @@ public function _after(IntegrationTester $I) /** * Tests Phalcon\Mvc\Model\Query\Builder :: getModels() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-04-8 */ public function mvcModelQueryBuilderGetModelsNull(IntegrationTester $I) @@ -54,7 +54,7 @@ public function mvcModelQueryBuilderGetModelsNull(IntegrationTester $I) /** * Tests Phalcon\Mvc\Model\Query\Builder :: getModels() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-04-8 */ public function mvcModelQueryBuilderGetModelsString(IntegrationTester $I) @@ -76,7 +76,7 @@ public function mvcModelQueryBuilderGetModelsString(IntegrationTester $I) /** * Tests Phalcon\Mvc\Model\Query\Builder :: getModels() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-04-8 */ public function mvcModelQueryBuilderGetModelsArray(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/GetOffsetCest.php b/tests/integration/Mvc/Model/Query/Builder/GetOffsetCest.php index 0eab125e6ff..f4df0bb47bc 100644 --- a/tests/integration/Mvc/Model/Query/Builder/GetOffsetCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/GetOffsetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetOffsetCest /** * Tests Phalcon\Mvc\Model\Query\Builder :: getOffset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderGetOffset(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/GetOrderByCest.php b/tests/integration/Mvc/Model/Query/Builder/GetOrderByCest.php index 53a70b3f525..747e5f06f99 100644 --- a/tests/integration/Mvc/Model/Query/Builder/GetOrderByCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/GetOrderByCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetOrderByCest /** * Tests Phalcon\Mvc\Model\Query\Builder :: getOrderBy() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderGetOrderBy(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/GetPhqlCest.php b/tests/integration/Mvc/Model/Query/Builder/GetPhqlCest.php index 0ed907599c0..d7dd8c95ff3 100644 --- a/tests/integration/Mvc/Model/Query/Builder/GetPhqlCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/GetPhqlCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/Query/Builder/GetQueryCest.php b/tests/integration/Mvc/Model/Query/Builder/GetQueryCest.php index ce575a762dc..a835db12515 100644 --- a/tests/integration/Mvc/Model/Query/Builder/GetQueryCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/GetQueryCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetQueryCest /** * Tests Phalcon\Mvc\Model\Query\Builder :: getQuery() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderGetQuery(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/GetSetDICest.php b/tests/integration/Mvc/Model/Query/Builder/GetSetDICest.php index a5d69215634..4245206611f 100644 --- a/tests/integration/Mvc/Model/Query/Builder/GetSetDICest.php +++ b/tests/integration/Mvc/Model/Query/Builder/GetSetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetSetDICest /** * Tests Phalcon\Mvc\Model\Query\Builder :: getDI() / getDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderGetSetDI(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/GetWhereCest.php b/tests/integration/Mvc/Model/Query/Builder/GetWhereCest.php index 47f5a7d432c..c3751f0cfe7 100644 --- a/tests/integration/Mvc/Model/Query/Builder/GetWhereCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/GetWhereCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetWhereCest /** * Tests Phalcon\Mvc\Model\Query\Builder :: getWhere() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderGetWhere(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/GroupByCest.php b/tests/integration/Mvc/Model/Query/Builder/GroupByCest.php index 0c1d2b73db7..0ee434d4175 100644 --- a/tests/integration/Mvc/Model/Query/Builder/GroupByCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/GroupByCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/Query/Builder/HavingCest.php b/tests/integration/Mvc/Model/Query/Builder/HavingCest.php index b3546ede3a8..b9a8a04b161 100644 --- a/tests/integration/Mvc/Model/Query/Builder/HavingCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/HavingCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -36,7 +36,7 @@ public function _after(IntegrationTester $I) /** * Tests Phalcon\Mvc\Model\Query\Builder :: having() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderHaving(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/InHavingCest.php b/tests/integration/Mvc/Model/Query/Builder/InHavingCest.php index 5f78ed9aef3..2df56773ff9 100644 --- a/tests/integration/Mvc/Model/Query/Builder/InHavingCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/InHavingCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class InHavingCest /** * Tests Phalcon\Mvc\Model\Query\Builder :: inHaving() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderInHaving(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/InWhereCest.php b/tests/integration/Mvc/Model/Query/Builder/InWhereCest.php index 8912d45305c..3f36dc78bb6 100644 --- a/tests/integration/Mvc/Model/Query/Builder/InWhereCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/InWhereCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class InWhereCest /** * Tests Phalcon\Mvc\Model\Query\Builder :: inWhere() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderInWhere(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/InnerJoinCest.php b/tests/integration/Mvc/Model/Query/Builder/InnerJoinCest.php index 539e14f01d5..d5e19760a90 100644 --- a/tests/integration/Mvc/Model/Query/Builder/InnerJoinCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/InnerJoinCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class InnerJoinCest /** * Tests Phalcon\Mvc\Model\Query\Builder :: innerJoin() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderInnerJoin(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/JoinCest.php b/tests/integration/Mvc/Model/Query/Builder/JoinCest.php index f2ff29fd7f5..7fccd28d906 100644 --- a/tests/integration/Mvc/Model/Query/Builder/JoinCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/JoinCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class JoinCest /** * Tests Phalcon\Mvc\Model\Query\Builder :: join() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderJoin(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/LeftJoinCest.php b/tests/integration/Mvc/Model/Query/Builder/LeftJoinCest.php index 18b48f02a5d..80455956d0c 100644 --- a/tests/integration/Mvc/Model/Query/Builder/LeftJoinCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/LeftJoinCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class LeftJoinCest /** * Tests Phalcon\Mvc\Model\Query\Builder :: leftJoin() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderLeftJoin(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/LimitCest.php b/tests/integration/Mvc/Model/Query/Builder/LimitCest.php index 8ea1cafae3c..388ded06013 100644 --- a/tests/integration/Mvc/Model/Query/Builder/LimitCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/LimitCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -37,7 +37,7 @@ public function _after(IntegrationTester $I) * Tests Phalcon\Mvc\Model\Query\Builder :: limit() * * @issue https://github.com/phalcon/cphalcon/issues/12419 - * @author Serghei Iakovelv + * @author Serghei Iakovelv * @since 2016-12-18 * * @dataProvider limitOffsetProvider diff --git a/tests/integration/Mvc/Model/Query/Builder/NotBetweenHavingCest.php b/tests/integration/Mvc/Model/Query/Builder/NotBetweenHavingCest.php index bc3f20bd86f..bdb099b1837 100644 --- a/tests/integration/Mvc/Model/Query/Builder/NotBetweenHavingCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/NotBetweenHavingCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class NotBetweenHavingCest /** * Tests Phalcon\Mvc\Model\Query\Builder :: notBetweenHaving() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderNotBetweenHaving(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/NotBetweenWhereCest.php b/tests/integration/Mvc/Model/Query/Builder/NotBetweenWhereCest.php index eccb51c9392..9d7880725a8 100644 --- a/tests/integration/Mvc/Model/Query/Builder/NotBetweenWhereCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/NotBetweenWhereCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class NotBetweenWhereCest /** * Tests Phalcon\Mvc\Model\Query\Builder :: notBetweenWhere() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderNotBetweenWhere(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/NotInHavingCest.php b/tests/integration/Mvc/Model/Query/Builder/NotInHavingCest.php index bac83e5124c..16e08a08f6f 100644 --- a/tests/integration/Mvc/Model/Query/Builder/NotInHavingCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/NotInHavingCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class NotInHavingCest /** * Tests Phalcon\Mvc\Model\Query\Builder :: notInHaving() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderNotInHaving(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/NotInWhereCest.php b/tests/integration/Mvc/Model/Query/Builder/NotInWhereCest.php index 738b1b02820..f24299a6fbc 100644 --- a/tests/integration/Mvc/Model/Query/Builder/NotInWhereCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/NotInWhereCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class NotInWhereCest /** * Tests Phalcon\Mvc\Model\Query\Builder :: notInWhere() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderNotInWhere(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/OffsetCest.php b/tests/integration/Mvc/Model/Query/Builder/OffsetCest.php index dd227f1c52e..47220ea1a3c 100644 --- a/tests/integration/Mvc/Model/Query/Builder/OffsetCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/OffsetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OffsetCest /** * Tests Phalcon\Mvc\Model\Query\Builder :: offset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderOffset(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/OrHavingCest.php b/tests/integration/Mvc/Model/Query/Builder/OrHavingCest.php index 6bcba3eec1b..2de2649ff27 100644 --- a/tests/integration/Mvc/Model/Query/Builder/OrHavingCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/OrHavingCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OrHavingCest /** * Tests Phalcon\Mvc\Model\Query\Builder :: orHaving() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderOrHaving(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/OrWhereCest.php b/tests/integration/Mvc/Model/Query/Builder/OrWhereCest.php index af9cf827307..0dae682f0f5 100644 --- a/tests/integration/Mvc/Model/Query/Builder/OrWhereCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/OrWhereCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OrWhereCest /** * Tests Phalcon\Mvc\Model\Query\Builder :: orWhere() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderOrWhere(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/OrderByCest.php b/tests/integration/Mvc/Model/Query/Builder/OrderByCest.php index a027a88ee16..3c308d99e6a 100644 --- a/tests/integration/Mvc/Model/Query/Builder/OrderByCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/OrderByCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/Query/Builder/RightJoinCest.php b/tests/integration/Mvc/Model/Query/Builder/RightJoinCest.php index 15cf0296ba0..6f0f80775e0 100644 --- a/tests/integration/Mvc/Model/Query/Builder/RightJoinCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/RightJoinCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class RightJoinCest /** * Tests Phalcon\Mvc\Model\Query\Builder :: rightJoin() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderRightJoin(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/SetBindParamsCest.php b/tests/integration/Mvc/Model/Query/Builder/SetBindParamsCest.php index 7695245c433..74aef0424a9 100644 --- a/tests/integration/Mvc/Model/Query/Builder/SetBindParamsCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/SetBindParamsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetBindParamsCest /** * Tests Phalcon\Mvc\Model\Query\Builder :: setBindParams() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderSetBindParams(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/SetBindTypesCest.php b/tests/integration/Mvc/Model/Query/Builder/SetBindTypesCest.php index a1e82ca32fd..2e8b00036ec 100644 --- a/tests/integration/Mvc/Model/Query/Builder/SetBindTypesCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/SetBindTypesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetBindTypesCest /** * Tests Phalcon\Mvc\Model\Query\Builder :: setBindTypes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderSetBindTypes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Builder/WhereCest.php b/tests/integration/Mvc/Model/Query/Builder/WhereCest.php index 2848371d57b..5acc5159231 100644 --- a/tests/integration/Mvc/Model/Query/Builder/WhereCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/WhereCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -36,7 +36,7 @@ public function _after(IntegrationTester $I) /** * Tests Phalcon\Mvc\Model\Query\Builder :: where() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryBuilderWhere(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/CacheCest.php b/tests/integration/Mvc/Model/Query/CacheCest.php index b9a963ebc6b..b140a118ad4 100644 --- a/tests/integration/Mvc/Model/Query/CacheCest.php +++ b/tests/integration/Mvc/Model/Query/CacheCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CacheCest /** * Tests Phalcon\Mvc\Model\Query :: cache() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryCache(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/CleanCest.php b/tests/integration/Mvc/Model/Query/CleanCest.php index 54452dab402..873eb0b19ac 100644 --- a/tests/integration/Mvc/Model/Query/CleanCest.php +++ b/tests/integration/Mvc/Model/Query/CleanCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CleanCest /** * Tests Phalcon\Mvc\Model\Query :: clean() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryClean(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/ConstructCest.php b/tests/integration/Mvc/Model/Query/ConstructCest.php index f6ee756b20e..9a8f5cde3a3 100644 --- a/tests/integration/Mvc/Model/Query/ConstructCest.php +++ b/tests/integration/Mvc/Model/Query/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Mvc\Model\Query :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryConstruct(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/ExecuteCest.php b/tests/integration/Mvc/Model/Query/ExecuteCest.php index be91cfd54c2..086819fb1da 100644 --- a/tests/integration/Mvc/Model/Query/ExecuteCest.php +++ b/tests/integration/Mvc/Model/Query/ExecuteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ExecuteCest /** * Tests Phalcon\Mvc\Model\Query :: execute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryExecute(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/GetBindParamsCest.php b/tests/integration/Mvc/Model/Query/GetBindParamsCest.php index f03bef94768..3c76526f61a 100644 --- a/tests/integration/Mvc/Model/Query/GetBindParamsCest.php +++ b/tests/integration/Mvc/Model/Query/GetBindParamsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetBindParamsCest /** * Tests Phalcon\Mvc\Model\Query :: getBindParams() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryGetBindParams(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/GetBindTypesCest.php b/tests/integration/Mvc/Model/Query/GetBindTypesCest.php index 9c02bf7b4dd..42239ee8dd0 100644 --- a/tests/integration/Mvc/Model/Query/GetBindTypesCest.php +++ b/tests/integration/Mvc/Model/Query/GetBindTypesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetBindTypesCest /** * Tests Phalcon\Mvc\Model\Query :: getBindTypes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryGetBindTypes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/GetCacheCest.php b/tests/integration/Mvc/Model/Query/GetCacheCest.php index 145da07c165..81f38d76303 100644 --- a/tests/integration/Mvc/Model/Query/GetCacheCest.php +++ b/tests/integration/Mvc/Model/Query/GetCacheCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetCacheCest /** * Tests Phalcon\Mvc\Model\Query :: getCache() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryGetCache(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/GetCacheOptionsCest.php b/tests/integration/Mvc/Model/Query/GetCacheOptionsCest.php index 80793d8f2d5..5beeb83ea01 100644 --- a/tests/integration/Mvc/Model/Query/GetCacheOptionsCest.php +++ b/tests/integration/Mvc/Model/Query/GetCacheOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetCacheOptionsCest /** * Tests Phalcon\Mvc\Model\Query :: getCacheOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryGetCacheOptions(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/GetIntermediateCest.php b/tests/integration/Mvc/Model/Query/GetIntermediateCest.php index a76bf45533d..f6d35e21bcb 100644 --- a/tests/integration/Mvc/Model/Query/GetIntermediateCest.php +++ b/tests/integration/Mvc/Model/Query/GetIntermediateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetIntermediateCest /** * Tests Phalcon\Mvc\Model\Query :: getIntermediate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryGetIntermediate(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/GetSetDICest.php b/tests/integration/Mvc/Model/Query/GetSetDICest.php index fd429e6fef2..d99163018e5 100644 --- a/tests/integration/Mvc/Model/Query/GetSetDICest.php +++ b/tests/integration/Mvc/Model/Query/GetSetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetSetDICest /** * Tests Phalcon\Mvc\Model\Query :: getDI() / setDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryGetSetDI(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/GetSetTransactionCest.php b/tests/integration/Mvc/Model/Query/GetSetTransactionCest.php index 01648541a91..17bdb714f2c 100644 --- a/tests/integration/Mvc/Model/Query/GetSetTransactionCest.php +++ b/tests/integration/Mvc/Model/Query/GetSetTransactionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/Query/GetSingleResultCest.php b/tests/integration/Mvc/Model/Query/GetSingleResultCest.php index 4dbe5567ad7..399f75fbd9c 100644 --- a/tests/integration/Mvc/Model/Query/GetSingleResultCest.php +++ b/tests/integration/Mvc/Model/Query/GetSingleResultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetSingleResultCest /** * Tests Phalcon\Mvc\Model\Query :: getSingleResult() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryGetSingleResult(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/GetSqlCest.php b/tests/integration/Mvc/Model/Query/GetSqlCest.php index d58422bb82f..fb88efcf1a9 100644 --- a/tests/integration/Mvc/Model/Query/GetSqlCest.php +++ b/tests/integration/Mvc/Model/Query/GetSqlCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetSqlCest /** * Tests Phalcon\Mvc\Model\Query :: getSql() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryGetSql(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/GetTypeCest.php b/tests/integration/Mvc/Model/Query/GetTypeCest.php index f17fa598951..f596dd2c784 100644 --- a/tests/integration/Mvc/Model/Query/GetTypeCest.php +++ b/tests/integration/Mvc/Model/Query/GetTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetTypeCest /** * Tests Phalcon\Mvc\Model\Query :: getType() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryGetType(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/GetUniqueRowCest.php b/tests/integration/Mvc/Model/Query/GetUniqueRowCest.php index da7c779d899..ec365e00359 100644 --- a/tests/integration/Mvc/Model/Query/GetUniqueRowCest.php +++ b/tests/integration/Mvc/Model/Query/GetUniqueRowCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetUniqueRowCest /** * Tests Phalcon\Mvc\Model\Query :: getUniqueRow() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryGetUniqueRow(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Lang/ParsePHQLCest.php b/tests/integration/Mvc/Model/Query/Lang/ParsePHQLCest.php index 20327f0091e..5193b841d0a 100644 --- a/tests/integration/Mvc/Model/Query/Lang/ParsePHQLCest.php +++ b/tests/integration/Mvc/Model/Query/Lang/ParsePHQLCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ParsePHQLCest /** * Tests Phalcon\Mvc\Model\Query\Lang :: parsePHQL() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryLangParsePHQL(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/ParseCest.php b/tests/integration/Mvc/Model/Query/ParseCest.php index c41d6a9075a..e5c6df0cd4d 100644 --- a/tests/integration/Mvc/Model/Query/ParseCest.php +++ b/tests/integration/Mvc/Model/Query/ParseCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ParseCest /** * Tests Phalcon\Mvc\Model\Query :: parse() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryParse(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Refactor-BuilderCest.php b/tests/integration/Mvc/Model/Query/Refactor-BuilderCest.php index be761d06572..d9d289147ed 100644 --- a/tests/integration/Mvc/Model/Query/Refactor-BuilderCest.php +++ b/tests/integration/Mvc/Model/Query/Refactor-BuilderCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -42,7 +42,7 @@ public function _after(IntegrationTester $I) /** * Tests Models cache * - * @author Phalcon Team + * @author Phalcon Team * @author Wojciech Ślawski * @since 2016-12-09 */ diff --git a/tests/integration/Mvc/Model/Query/SetBindParamsCest.php b/tests/integration/Mvc/Model/Query/SetBindParamsCest.php index 9eff7663deb..ba90c939bc7 100644 --- a/tests/integration/Mvc/Model/Query/SetBindParamsCest.php +++ b/tests/integration/Mvc/Model/Query/SetBindParamsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetBindParamsCest /** * Tests Phalcon\Mvc\Model\Query :: setBindParams() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQuerySetBindParams(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/SetBindTypesCest.php b/tests/integration/Mvc/Model/Query/SetBindTypesCest.php index e2e8d683ed2..ae13e2328ee 100644 --- a/tests/integration/Mvc/Model/Query/SetBindTypesCest.php +++ b/tests/integration/Mvc/Model/Query/SetBindTypesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetBindTypesCest /** * Tests Phalcon\Mvc\Model\Query :: setBindTypes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQuerySetBindTypes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/SetIntermediateCest.php b/tests/integration/Mvc/Model/Query/SetIntermediateCest.php index 0c07f565126..49316706c4f 100644 --- a/tests/integration/Mvc/Model/Query/SetIntermediateCest.php +++ b/tests/integration/Mvc/Model/Query/SetIntermediateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetIntermediateCest /** * Tests Phalcon\Mvc\Model\Query :: setIntermediate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQuerySetIntermediate(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/SetSharedLockCest.php b/tests/integration/Mvc/Model/Query/SetSharedLockCest.php index 06fe2e3229d..be302856771 100644 --- a/tests/integration/Mvc/Model/Query/SetSharedLockCest.php +++ b/tests/integration/Mvc/Model/Query/SetSharedLockCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetSharedLockCest /** * Tests Phalcon\Mvc\Model\Query :: setSharedLock() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQuerySetSharedLock(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/SetTypeCest.php b/tests/integration/Mvc/Model/Query/SetTypeCest.php index f6568e0ac7a..84aa6d16d69 100644 --- a/tests/integration/Mvc/Model/Query/SetTypeCest.php +++ b/tests/integration/Mvc/Model/Query/SetTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetTypeCest /** * Tests Phalcon\Mvc\Model\Query :: setType() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQuerySetType(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/SetUniqueRowCest.php b/tests/integration/Mvc/Model/Query/SetUniqueRowCest.php index 71cc7334583..888fb998dee 100644 --- a/tests/integration/Mvc/Model/Query/SetUniqueRowCest.php +++ b/tests/integration/Mvc/Model/Query/SetUniqueRowCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetUniqueRowCest /** * Tests Phalcon\Mvc\Model\Query :: setUniqueRow() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQuerySetUniqueRow(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Status/ConstructCest.php b/tests/integration/Mvc/Model/Query/Status/ConstructCest.php index acfec33ae3c..9c927e8fd47 100644 --- a/tests/integration/Mvc/Model/Query/Status/ConstructCest.php +++ b/tests/integration/Mvc/Model/Query/Status/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Mvc\Model\Query\Status :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryStatusConstruct(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Status/GetMessagesCest.php b/tests/integration/Mvc/Model/Query/Status/GetMessagesCest.php index a81bdaaa298..567121d8fea 100644 --- a/tests/integration/Mvc/Model/Query/Status/GetMessagesCest.php +++ b/tests/integration/Mvc/Model/Query/Status/GetMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetMessagesCest /** * Tests Phalcon\Mvc\Model\Query\Status :: getMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryStatusGetMessages(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Status/GetModelCest.php b/tests/integration/Mvc/Model/Query/Status/GetModelCest.php index f3b8ce412bb..e55fa6cd106 100644 --- a/tests/integration/Mvc/Model/Query/Status/GetModelCest.php +++ b/tests/integration/Mvc/Model/Query/Status/GetModelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetModelCest /** * Tests Phalcon\Mvc\Model\Query\Status :: getModel() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryStatusGetModel(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Query/Status/SuccessCest.php b/tests/integration/Mvc/Model/Query/Status/SuccessCest.php index 24135ea63ca..b2ac1e82a02 100644 --- a/tests/integration/Mvc/Model/Query/Status/SuccessCest.php +++ b/tests/integration/Mvc/Model/Query/Status/SuccessCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SuccessCest /** * Tests Phalcon\Mvc\Model\Query\Status :: success() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQueryStatusSuccess(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/QueryCest.php b/tests/integration/Mvc/Model/QueryCest.php index 738fd5e839e..b8ad34c4da1 100644 --- a/tests/integration/Mvc/Model/QueryCest.php +++ b/tests/integration/Mvc/Model/QueryCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class QueryCest /** * Tests Phalcon\Mvc\Model :: query() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelQuery(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/ReadAttributeCest.php b/tests/integration/Mvc/Model/ReadAttributeCest.php index 3d22e1da408..6aee4d86597 100644 --- a/tests/integration/Mvc/Model/ReadAttributeCest.php +++ b/tests/integration/Mvc/Model/ReadAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/Refactor-BinderCest.php b/tests/integration/Mvc/Model/Refactor-BinderCest.php index 65ea2bb6207..a561d976979 100644 --- a/tests/integration/Mvc/Model/Refactor-BinderCest.php +++ b/tests/integration/Mvc/Model/Refactor-BinderCest.php @@ -25,16 +25,16 @@ * Tests the Phalcon\Mvc\Application component * * @copyright (c) 2011-2016 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Phalcon Team + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Phalcon Team * @author Wojciech Ślawski * * The contents of this file are subject to the New BSD License that is * bundled with this package in the file 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class BinderCest diff --git a/tests/integration/Mvc/Model/Refactor-CriteriaCest.php b/tests/integration/Mvc/Model/Refactor-CriteriaCest.php index c50961a90c8..113873b0f7f 100644 --- a/tests/integration/Mvc/Model/Refactor-CriteriaCest.php +++ b/tests/integration/Mvc/Model/Refactor-CriteriaCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -43,7 +43,7 @@ public function _after(IntegrationTester $I) * Tests Criteria::inWhere with empty array. * * @issue https://github.com/phalcon/cphalcon/issues/10676 - * @author Phalcon Team + * @author Phalcon Team * @since 2016-08-11 */ public function shouldExecuteInWhereQueryWithEmptyArray(IntegrationTester $I) @@ -65,7 +65,7 @@ public function shouldExecuteInWhereQueryWithEmptyArray(IntegrationTester $I) * Tests work with limit / offset * * @issue https://github.com/phalcon/cphalcon/issues/12419 - * @author Serghei Iakovelv + * @author Serghei Iakovelv * @since 2016-12-18 * * @dataProvider getLimitOffset @@ -151,7 +151,7 @@ private function getLimitOffset(): array * * @since 2017-05-21 * - * @author Phalcon Team + * @author Phalcon Team */ public function createBuilderFromCriteria(IntegrationTester $I) { diff --git a/tests/integration/Mvc/Model/Refactor-DynamicOperationsCest.php b/tests/integration/Mvc/Model/Refactor-DynamicOperationsCest.php index aff5ee03dd4..d0fd5219c7b 100644 --- a/tests/integration/Mvc/Model/Refactor-DynamicOperationsCest.php +++ b/tests/integration/Mvc/Model/Refactor-DynamicOperationsCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -80,7 +80,7 @@ public function shouldSaveSnapshotWhenHavingPublicPropertyWithNullValue(Integrat /** * Tests dynamic update with default use case. * - * @author Phalcon Team + * @author Phalcon Team * @since 2013-03-01 */ public function shouldWorkUsingDynamicUpdate(IntegrationTester $I) @@ -119,7 +119,7 @@ public function shouldWorkUsingDynamicUpdate(IntegrationTester $I) /** * Tests dynamic update with renamed model fields. * - * @author Phalcon Team + * @author Phalcon Team * @since 2013-03-01 */ public function shouldWorkUsingDynamicUpdateForRenamedModelFields(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Refactor-ManagerCest.php b/tests/integration/Mvc/Model/Refactor-ManagerCest.php index e28c1d49f95..1a7bd627b42 100644 --- a/tests/integration/Mvc/Model/Refactor-ManagerCest.php +++ b/tests/integration/Mvc/Model/Refactor-ManagerCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -61,7 +61,7 @@ public function testModelSourceShouldBeTheSame(IntegrationTester $I) * * @test * @issue https://github.com/phalcon/cphalcon/issues/12972 - * @author Phalcon Team + * @author Phalcon Team * @since 2017-10-02 */ public function shouldReturnDesiredFieldsFromRelatedModel(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Refactor-QueryOldCest.php b/tests/integration/Mvc/Model/Refactor-QueryOldCest.php index d7811a769b2..a4ca85e8743 100644 --- a/tests/integration/Mvc/Model/Refactor-QueryOldCest.php +++ b/tests/integration/Mvc/Model/Refactor-QueryOldCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -58,7 +58,7 @@ public function testSelectParsing(IntegrationTester $I, Example $example) /** * Tests Query::parse insert * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-01-24 * * @dataProvider getExamplesInsert @@ -83,7 +83,7 @@ public function shouldInsertParsing(IntegrationTester $I, Example $example) /** * Tests Query::parse update * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-01-24 * * @dataProvider getExamplesUpdate @@ -108,7 +108,7 @@ public function shouldUpdateParsing(IntegrationTester $I, Example $example) /** * Tests Query::parse delete * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-01-24 * * @dataProvider getExamplesDelete diff --git a/tests/integration/Mvc/Model/Refactor-RelationsCest.php b/tests/integration/Mvc/Model/Refactor-RelationsCest.php index 17b12c2c654..7349176e453 100644 --- a/tests/integration/Mvc/Model/Refactor-RelationsCest.php +++ b/tests/integration/Mvc/Model/Refactor-RelationsCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/Refactor-ResultsetClassCest.php b/tests/integration/Mvc/Model/Refactor-ResultsetClassCest.php index c220f98479e..e30caaf58c8 100644 --- a/tests/integration/Mvc/Model/Refactor-ResultsetClassCest.php +++ b/tests/integration/Mvc/Model/Refactor-ResultsetClassCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/Refactor-SnapshotCest.php b/tests/integration/Mvc/Model/Refactor-SnapshotCest.php index d3ff43f444a..11f660e27a1 100644 --- a/tests/integration/Mvc/Model/Refactor-SnapshotCest.php +++ b/tests/integration/Mvc/Model/Refactor-SnapshotCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -41,7 +41,7 @@ public function _after(IntegrationTester $I) * Tests dynamic update for identityless models * * @test - * @author Phalcon Team + * @author Phalcon Team * @issue https://github.com/phalcon/cphalcon/issues/13166 * @since 2017-11-20 */ @@ -354,7 +354,7 @@ public function shouldWorkWithRenamedFields(IntegrationTester $I) * Test snapshots for changes from NULL to Zero * * @issue https://github.com/phalcon/cphalcon/issues/12628 - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-26 */ public function shouldCorrectDetectChanges(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/RefreshCest.php b/tests/integration/Mvc/Model/RefreshCest.php index 1d2a002d766..2040f1adfa8 100644 --- a/tests/integration/Mvc/Model/RefreshCest.php +++ b/tests/integration/Mvc/Model/RefreshCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ public function _before(IntegrationTester $I) $this->setNewFactoryDefault(); $this->setDiMysql(); } - + public function _after(IntegrationTester $I) { $this->container['db']->close(); diff --git a/tests/integration/Mvc/Model/Relation/ConstructCest.php b/tests/integration/Mvc/Model/Relation/ConstructCest.php index 5f2ae6518d5..ae9da570979 100644 --- a/tests/integration/Mvc/Model/Relation/ConstructCest.php +++ b/tests/integration/Mvc/Model/Relation/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Mvc\Model\Relation :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelRelationConstruct(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Relation/GetFieldsCest.php b/tests/integration/Mvc/Model/Relation/GetFieldsCest.php index 872c93ab889..86a0b9e31a8 100644 --- a/tests/integration/Mvc/Model/Relation/GetFieldsCest.php +++ b/tests/integration/Mvc/Model/Relation/GetFieldsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/Relation/GetForeignKeyCest.php b/tests/integration/Mvc/Model/Relation/GetForeignKeyCest.php index 199bf7ced31..9ae77f05b91 100644 --- a/tests/integration/Mvc/Model/Relation/GetForeignKeyCest.php +++ b/tests/integration/Mvc/Model/Relation/GetForeignKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetForeignKeyCest /** * Tests Phalcon\Mvc\Model\Relation :: getForeignKey() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelRelationGetForeignKey(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Relation/GetIntermediateFieldsCest.php b/tests/integration/Mvc/Model/Relation/GetIntermediateFieldsCest.php index de27d100d1a..90c49fa5c84 100644 --- a/tests/integration/Mvc/Model/Relation/GetIntermediateFieldsCest.php +++ b/tests/integration/Mvc/Model/Relation/GetIntermediateFieldsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetIntermediateFieldsCest /** * Tests Phalcon\Mvc\Model\Relation :: getIntermediateFields() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelRelationGetIntermediateFields(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Relation/GetIntermediateModelCest.php b/tests/integration/Mvc/Model/Relation/GetIntermediateModelCest.php index e302741f95a..bbdd8b4998b 100644 --- a/tests/integration/Mvc/Model/Relation/GetIntermediateModelCest.php +++ b/tests/integration/Mvc/Model/Relation/GetIntermediateModelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetIntermediateModelCest /** * Tests Phalcon\Mvc\Model\Relation :: getIntermediateModel() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelRelationGetIntermediateModel(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Relation/GetIntermediateReferencedFieldsCest.php b/tests/integration/Mvc/Model/Relation/GetIntermediateReferencedFieldsCest.php index 8c2b1c67081..3983a00d15e 100644 --- a/tests/integration/Mvc/Model/Relation/GetIntermediateReferencedFieldsCest.php +++ b/tests/integration/Mvc/Model/Relation/GetIntermediateReferencedFieldsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetIntermediateReferencedFieldsCest /** * Tests Phalcon\Mvc\Model\Relation :: getIntermediateReferencedFields() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelRelationGetIntermediateReferencedFields(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Relation/GetOptionCest.php b/tests/integration/Mvc/Model/Relation/GetOptionCest.php index 246ccf9fe5f..e41e60a5198 100644 --- a/tests/integration/Mvc/Model/Relation/GetOptionCest.php +++ b/tests/integration/Mvc/Model/Relation/GetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/Relation/GetOptionsCest.php b/tests/integration/Mvc/Model/Relation/GetOptionsCest.php index 953581c870d..4ad514733db 100644 --- a/tests/integration/Mvc/Model/Relation/GetOptionsCest.php +++ b/tests/integration/Mvc/Model/Relation/GetOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/Relation/GetParamsCest.php b/tests/integration/Mvc/Model/Relation/GetParamsCest.php index 77bcb45a76f..1092b3a9fda 100644 --- a/tests/integration/Mvc/Model/Relation/GetParamsCest.php +++ b/tests/integration/Mvc/Model/Relation/GetParamsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/Relation/GetReferencedFieldsCest.php b/tests/integration/Mvc/Model/Relation/GetReferencedFieldsCest.php index 08a381eef85..1567209577a 100644 --- a/tests/integration/Mvc/Model/Relation/GetReferencedFieldsCest.php +++ b/tests/integration/Mvc/Model/Relation/GetReferencedFieldsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetReferencedFieldsCest /** * Tests Phalcon\Mvc\Model\Relation :: getReferencedFields() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelRelationGetReferencedFields(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Relation/GetReferencedModelCest.php b/tests/integration/Mvc/Model/Relation/GetReferencedModelCest.php index 3e66f126b8f..fc136777124 100644 --- a/tests/integration/Mvc/Model/Relation/GetReferencedModelCest.php +++ b/tests/integration/Mvc/Model/Relation/GetReferencedModelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/Relation/GetTypeCest.php b/tests/integration/Mvc/Model/Relation/GetTypeCest.php index a963a300c7f..8f544b2f05b 100644 --- a/tests/integration/Mvc/Model/Relation/GetTypeCest.php +++ b/tests/integration/Mvc/Model/Relation/GetTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/Relation/IsForeignKeyCest.php b/tests/integration/Mvc/Model/Relation/IsForeignKeyCest.php index f7c965196d5..49441ebb2db 100644 --- a/tests/integration/Mvc/Model/Relation/IsForeignKeyCest.php +++ b/tests/integration/Mvc/Model/Relation/IsForeignKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/Relation/IsReusableCest.php b/tests/integration/Mvc/Model/Relation/IsReusableCest.php index 4a613435325..b826b4ff1ec 100644 --- a/tests/integration/Mvc/Model/Relation/IsReusableCest.php +++ b/tests/integration/Mvc/Model/Relation/IsReusableCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class IsReusableCest /** * Tests Phalcon\Mvc\Model\Relation :: isReusable() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelRelationIsReusable(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Relation/IsThroughCest.php b/tests/integration/Mvc/Model/Relation/IsThroughCest.php index 55d6e55789e..bde95468c3a 100644 --- a/tests/integration/Mvc/Model/Relation/IsThroughCest.php +++ b/tests/integration/Mvc/Model/Relation/IsThroughCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class IsThroughCest /** * Tests Phalcon\Mvc\Model\Relation :: isThrough() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelRelationIsThrough(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Relation/SetIntermediateRelationCest.php b/tests/integration/Mvc/Model/Relation/SetIntermediateRelationCest.php index 9995298b04d..7c987682201 100644 --- a/tests/integration/Mvc/Model/Relation/SetIntermediateRelationCest.php +++ b/tests/integration/Mvc/Model/Relation/SetIntermediateRelationCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetIntermediateRelationCest /** * Tests Phalcon\Mvc\Model\Relation :: setIntermediateRelation() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelRelationSetIntermediateRelation(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Complex/ConstructCest.php b/tests/integration/Mvc/Model/Resultset/Complex/ConstructCest.php index c2390b38c8f..159bd4e9ef7 100644 --- a/tests/integration/Mvc/Model/Resultset/Complex/ConstructCest.php +++ b/tests/integration/Mvc/Model/Resultset/Complex/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Mvc\Model\Resultset\Complex :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetComplexConstruct(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Complex/CountCest.php b/tests/integration/Mvc/Model/Resultset/Complex/CountCest.php index 4ccb73ca984..b7f10da6471 100644 --- a/tests/integration/Mvc/Model/Resultset/Complex/CountCest.php +++ b/tests/integration/Mvc/Model/Resultset/Complex/CountCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CountCest /** * Tests Phalcon\Mvc\Model\Resultset\Complex :: count() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetComplexCount(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Complex/CurrentCest.php b/tests/integration/Mvc/Model/Resultset/Complex/CurrentCest.php index de4d36a9553..0916cd2f55a 100644 --- a/tests/integration/Mvc/Model/Resultset/Complex/CurrentCest.php +++ b/tests/integration/Mvc/Model/Resultset/Complex/CurrentCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CurrentCest /** * Tests Phalcon\Mvc\Model\Resultset\Complex :: current() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetComplexCurrent(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Complex/DeleteCest.php b/tests/integration/Mvc/Model/Resultset/Complex/DeleteCest.php index 83a066d0150..7e6c9bbbc4e 100644 --- a/tests/integration/Mvc/Model/Resultset/Complex/DeleteCest.php +++ b/tests/integration/Mvc/Model/Resultset/Complex/DeleteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class DeleteCest /** * Tests Phalcon\Mvc\Model\Resultset\Complex :: delete() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetComplexDelete(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Complex/FilterCest.php b/tests/integration/Mvc/Model/Resultset/Complex/FilterCest.php index 8e694be003d..098be22048b 100644 --- a/tests/integration/Mvc/Model/Resultset/Complex/FilterCest.php +++ b/tests/integration/Mvc/Model/Resultset/Complex/FilterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class FilterCest /** * Tests Phalcon\Mvc\Model\Resultset\Complex :: filter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetComplexFilter(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Complex/GetCacheCest.php b/tests/integration/Mvc/Model/Resultset/Complex/GetCacheCest.php index bdaacf2f413..111ffd14e99 100644 --- a/tests/integration/Mvc/Model/Resultset/Complex/GetCacheCest.php +++ b/tests/integration/Mvc/Model/Resultset/Complex/GetCacheCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetCacheCest /** * Tests Phalcon\Mvc\Model\Resultset\Complex :: getCache() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetComplexGetCache(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Complex/GetFirstCest.php b/tests/integration/Mvc/Model/Resultset/Complex/GetFirstCest.php index 098a3611cc1..497411b2270 100644 --- a/tests/integration/Mvc/Model/Resultset/Complex/GetFirstCest.php +++ b/tests/integration/Mvc/Model/Resultset/Complex/GetFirstCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetFirstCest /** * Tests Phalcon\Mvc\Model\Resultset\Complex :: getFirst() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetComplexGetFirst(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Complex/GetHydrateModeCest.php b/tests/integration/Mvc/Model/Resultset/Complex/GetHydrateModeCest.php index fcc96d96ea9..7f04074d8c0 100644 --- a/tests/integration/Mvc/Model/Resultset/Complex/GetHydrateModeCest.php +++ b/tests/integration/Mvc/Model/Resultset/Complex/GetHydrateModeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetHydrateModeCest /** * Tests Phalcon\Mvc\Model\Resultset\Complex :: getHydrateMode() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetComplexGetHydrateMode(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Complex/GetLastCest.php b/tests/integration/Mvc/Model/Resultset/Complex/GetLastCest.php index 5128784c471..b12bd6216b1 100644 --- a/tests/integration/Mvc/Model/Resultset/Complex/GetLastCest.php +++ b/tests/integration/Mvc/Model/Resultset/Complex/GetLastCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetLastCest /** * Tests Phalcon\Mvc\Model\Resultset\Complex :: getLast() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetComplexGetLast(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Complex/GetMessagesCest.php b/tests/integration/Mvc/Model/Resultset/Complex/GetMessagesCest.php index e62ddd80ac9..b2f45015543 100644 --- a/tests/integration/Mvc/Model/Resultset/Complex/GetMessagesCest.php +++ b/tests/integration/Mvc/Model/Resultset/Complex/GetMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetMessagesCest /** * Tests Phalcon\Mvc\Model\Resultset\Complex :: getMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetComplexGetMessages(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Complex/GetTypeCest.php b/tests/integration/Mvc/Model/Resultset/Complex/GetTypeCest.php index 64e34e03413..2ca3997b54f 100644 --- a/tests/integration/Mvc/Model/Resultset/Complex/GetTypeCest.php +++ b/tests/integration/Mvc/Model/Resultset/Complex/GetTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetTypeCest /** * Tests Phalcon\Mvc\Model\Resultset\Complex :: getType() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetComplexGetType(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Complex/IsFreshCest.php b/tests/integration/Mvc/Model/Resultset/Complex/IsFreshCest.php index 698ada02d57..22cf049b45e 100644 --- a/tests/integration/Mvc/Model/Resultset/Complex/IsFreshCest.php +++ b/tests/integration/Mvc/Model/Resultset/Complex/IsFreshCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class IsFreshCest /** * Tests Phalcon\Mvc\Model\Resultset\Complex :: isFresh() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetComplexIsFresh(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Complex/JsonSerializeCest.php b/tests/integration/Mvc/Model/Resultset/Complex/JsonSerializeCest.php index 59881607a74..7b39ad86c1e 100644 --- a/tests/integration/Mvc/Model/Resultset/Complex/JsonSerializeCest.php +++ b/tests/integration/Mvc/Model/Resultset/Complex/JsonSerializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class JsonSerializeCest /** * Tests Phalcon\Mvc\Model\Resultset\Complex :: jsonSerialize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetComplexJsonSerialize(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Complex/KeyCest.php b/tests/integration/Mvc/Model/Resultset/Complex/KeyCest.php index cb1c548624a..2a9dfa0cedc 100644 --- a/tests/integration/Mvc/Model/Resultset/Complex/KeyCest.php +++ b/tests/integration/Mvc/Model/Resultset/Complex/KeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class KeyCest /** * Tests Phalcon\Mvc\Model\Resultset\Complex :: key() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetComplexKey(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Complex/NextCest.php b/tests/integration/Mvc/Model/Resultset/Complex/NextCest.php index 17d7ad2b63f..1a116d252e3 100644 --- a/tests/integration/Mvc/Model/Resultset/Complex/NextCest.php +++ b/tests/integration/Mvc/Model/Resultset/Complex/NextCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class NextCest /** * Tests Phalcon\Mvc\Model\Resultset\Complex :: next() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetComplexNext(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Complex/OffsetExistsCest.php b/tests/integration/Mvc/Model/Resultset/Complex/OffsetExistsCest.php index ba0b5fbadeb..c0142f253fe 100644 --- a/tests/integration/Mvc/Model/Resultset/Complex/OffsetExistsCest.php +++ b/tests/integration/Mvc/Model/Resultset/Complex/OffsetExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OffsetExistsCest /** * Tests Phalcon\Mvc\Model\Resultset\Complex :: offsetExists() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetComplexOffsetExists(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Complex/OffsetGetCest.php b/tests/integration/Mvc/Model/Resultset/Complex/OffsetGetCest.php index 389a3e7419c..95f776697a9 100644 --- a/tests/integration/Mvc/Model/Resultset/Complex/OffsetGetCest.php +++ b/tests/integration/Mvc/Model/Resultset/Complex/OffsetGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OffsetGetCest /** * Tests Phalcon\Mvc\Model\Resultset\Complex :: offsetGet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetComplexOffsetGet(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Complex/OffsetSetCest.php b/tests/integration/Mvc/Model/Resultset/Complex/OffsetSetCest.php index 92ffeb87818..2c3194a9eed 100644 --- a/tests/integration/Mvc/Model/Resultset/Complex/OffsetSetCest.php +++ b/tests/integration/Mvc/Model/Resultset/Complex/OffsetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OffsetSetCest /** * Tests Phalcon\Mvc\Model\Resultset\Complex :: offsetSet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetComplexOffsetSet(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Complex/OffsetUnsetCest.php b/tests/integration/Mvc/Model/Resultset/Complex/OffsetUnsetCest.php index 33a8329bdb6..710dcad9056 100644 --- a/tests/integration/Mvc/Model/Resultset/Complex/OffsetUnsetCest.php +++ b/tests/integration/Mvc/Model/Resultset/Complex/OffsetUnsetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OffsetUnsetCest /** * Tests Phalcon\Mvc\Model\Resultset\Complex :: offsetUnset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetComplexOffsetUnset(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Complex/RewindCest.php b/tests/integration/Mvc/Model/Resultset/Complex/RewindCest.php index 8e86a7daca4..f0c09a7aba8 100644 --- a/tests/integration/Mvc/Model/Resultset/Complex/RewindCest.php +++ b/tests/integration/Mvc/Model/Resultset/Complex/RewindCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class RewindCest /** * Tests Phalcon\Mvc\Model\Resultset\Complex :: rewind() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetComplexRewind(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Complex/SeekCest.php b/tests/integration/Mvc/Model/Resultset/Complex/SeekCest.php index e7a8bf9a2f3..5e89e23d3aa 100644 --- a/tests/integration/Mvc/Model/Resultset/Complex/SeekCest.php +++ b/tests/integration/Mvc/Model/Resultset/Complex/SeekCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SeekCest /** * Tests Phalcon\Mvc\Model\Resultset\Complex :: seek() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetComplexSeek(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Complex/SerializeCest.php b/tests/integration/Mvc/Model/Resultset/Complex/SerializeCest.php index 080fd2a8bcf..564c6c3bf01 100644 --- a/tests/integration/Mvc/Model/Resultset/Complex/SerializeCest.php +++ b/tests/integration/Mvc/Model/Resultset/Complex/SerializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SerializeCest /** * Tests Phalcon\Mvc\Model\Resultset\Complex :: serialize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetComplexSerialize(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Complex/SetHydrateModeCest.php b/tests/integration/Mvc/Model/Resultset/Complex/SetHydrateModeCest.php index 2ca5a5b112e..d6a8715867d 100644 --- a/tests/integration/Mvc/Model/Resultset/Complex/SetHydrateModeCest.php +++ b/tests/integration/Mvc/Model/Resultset/Complex/SetHydrateModeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetHydrateModeCest /** * Tests Phalcon\Mvc\Model\Resultset\Complex :: setHydrateMode() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetComplexSetHydrateMode(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Complex/SetIsFreshCest.php b/tests/integration/Mvc/Model/Resultset/Complex/SetIsFreshCest.php index cdc1d2845f1..02f049884f4 100644 --- a/tests/integration/Mvc/Model/Resultset/Complex/SetIsFreshCest.php +++ b/tests/integration/Mvc/Model/Resultset/Complex/SetIsFreshCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetIsFreshCest /** * Tests Phalcon\Mvc\Model\Resultset\Complex :: setIsFresh() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetComplexSetIsFresh(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Complex/ToArrayCest.php b/tests/integration/Mvc/Model/Resultset/Complex/ToArrayCest.php index a6a7c1597c8..f422b18da14 100644 --- a/tests/integration/Mvc/Model/Resultset/Complex/ToArrayCest.php +++ b/tests/integration/Mvc/Model/Resultset/Complex/ToArrayCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ToArrayCest /** * Tests Phalcon\Mvc\Model\Resultset\Complex :: toArray() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetComplexToArray(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Complex/UnserializeCest.php b/tests/integration/Mvc/Model/Resultset/Complex/UnserializeCest.php index fb7725bddcb..5202e946249 100644 --- a/tests/integration/Mvc/Model/Resultset/Complex/UnserializeCest.php +++ b/tests/integration/Mvc/Model/Resultset/Complex/UnserializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class UnserializeCest /** * Tests Phalcon\Mvc\Model\Resultset\Complex :: unserialize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetComplexUnserialize(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Complex/UpdateCest.php b/tests/integration/Mvc/Model/Resultset/Complex/UpdateCest.php index 5d15f92b68e..fe3abcaaae5 100644 --- a/tests/integration/Mvc/Model/Resultset/Complex/UpdateCest.php +++ b/tests/integration/Mvc/Model/Resultset/Complex/UpdateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class UpdateCest /** * Tests Phalcon\Mvc\Model\Resultset\Complex :: update() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetComplexUpdate(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Complex/ValidCest.php b/tests/integration/Mvc/Model/Resultset/Complex/ValidCest.php index 614b2e0e51c..63a608520c5 100644 --- a/tests/integration/Mvc/Model/Resultset/Complex/ValidCest.php +++ b/tests/integration/Mvc/Model/Resultset/Complex/ValidCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ValidCest /** * Tests Phalcon\Mvc\Model\Resultset\Complex :: valid() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetComplexValid(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/ConstructCest.php b/tests/integration/Mvc/Model/Resultset/ConstructCest.php index 75728b78c15..a6aa381fd2e 100644 --- a/tests/integration/Mvc/Model/Resultset/ConstructCest.php +++ b/tests/integration/Mvc/Model/Resultset/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Mvc\Model\Resultset :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetConstruct(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/CountCest.php b/tests/integration/Mvc/Model/Resultset/CountCest.php index ec7214fc9ef..5d258dcae70 100644 --- a/tests/integration/Mvc/Model/Resultset/CountCest.php +++ b/tests/integration/Mvc/Model/Resultset/CountCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CountCest /** * Tests Phalcon\Mvc\Model\Resultset :: count() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetCount(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/CurrentCest.php b/tests/integration/Mvc/Model/Resultset/CurrentCest.php index d677dff2527..1a27b3688f0 100644 --- a/tests/integration/Mvc/Model/Resultset/CurrentCest.php +++ b/tests/integration/Mvc/Model/Resultset/CurrentCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CurrentCest /** * Tests Phalcon\Mvc\Model\Resultset :: current() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetCurrent(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/DeleteCest.php b/tests/integration/Mvc/Model/Resultset/DeleteCest.php index 816702fe502..e2a23bd0d44 100644 --- a/tests/integration/Mvc/Model/Resultset/DeleteCest.php +++ b/tests/integration/Mvc/Model/Resultset/DeleteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class DeleteCest /** * Tests Phalcon\Mvc\Model\Resultset :: delete() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetDelete(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/FilterCest.php b/tests/integration/Mvc/Model/Resultset/FilterCest.php index 326011c95a0..ae6a774708b 100644 --- a/tests/integration/Mvc/Model/Resultset/FilterCest.php +++ b/tests/integration/Mvc/Model/Resultset/FilterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class FilterCest /** * Tests Phalcon\Mvc\Model\Resultset :: filter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetFilter(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/GetCacheCest.php b/tests/integration/Mvc/Model/Resultset/GetCacheCest.php index b0f0ce07b93..4e993374cdb 100644 --- a/tests/integration/Mvc/Model/Resultset/GetCacheCest.php +++ b/tests/integration/Mvc/Model/Resultset/GetCacheCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetCacheCest /** * Tests Phalcon\Mvc\Model\Resultset :: getCache() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetGetCache(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/GetFirstCest.php b/tests/integration/Mvc/Model/Resultset/GetFirstCest.php index 9efdbf8090f..d5e2e81f3a4 100644 --- a/tests/integration/Mvc/Model/Resultset/GetFirstCest.php +++ b/tests/integration/Mvc/Model/Resultset/GetFirstCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetFirstCest /** * Tests Phalcon\Mvc\Model\Resultset :: getFirst() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetGetFirst(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/GetHydrateModeCest.php b/tests/integration/Mvc/Model/Resultset/GetHydrateModeCest.php index 93706736aca..a709bff58ec 100644 --- a/tests/integration/Mvc/Model/Resultset/GetHydrateModeCest.php +++ b/tests/integration/Mvc/Model/Resultset/GetHydrateModeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetHydrateModeCest /** * Tests Phalcon\Mvc\Model\Resultset :: getHydrateMode() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetGetHydrateMode(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/GetLastCest.php b/tests/integration/Mvc/Model/Resultset/GetLastCest.php index e2b1ce95de3..c06cae3dbbc 100644 --- a/tests/integration/Mvc/Model/Resultset/GetLastCest.php +++ b/tests/integration/Mvc/Model/Resultset/GetLastCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetLastCest /** * Tests Phalcon\Mvc\Model\Resultset :: getLast() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetGetLast(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/GetMessagesCest.php b/tests/integration/Mvc/Model/Resultset/GetMessagesCest.php index 5455bac9599..efefab4a6f6 100644 --- a/tests/integration/Mvc/Model/Resultset/GetMessagesCest.php +++ b/tests/integration/Mvc/Model/Resultset/GetMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetMessagesCest /** * Tests Phalcon\Mvc\Model\Resultset :: getMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetGetMessages(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/GetTypeCest.php b/tests/integration/Mvc/Model/Resultset/GetTypeCest.php index 129806d5c88..21cadbd79a1 100644 --- a/tests/integration/Mvc/Model/Resultset/GetTypeCest.php +++ b/tests/integration/Mvc/Model/Resultset/GetTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetTypeCest /** * Tests Phalcon\Mvc\Model\Resultset :: getType() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetGetType(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/IsFreshCest.php b/tests/integration/Mvc/Model/Resultset/IsFreshCest.php index e4755f23d3f..f3fdcf55193 100644 --- a/tests/integration/Mvc/Model/Resultset/IsFreshCest.php +++ b/tests/integration/Mvc/Model/Resultset/IsFreshCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class IsFreshCest /** * Tests Phalcon\Mvc\Model\Resultset :: isFresh() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetIsFresh(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/JsonSerializeCest.php b/tests/integration/Mvc/Model/Resultset/JsonSerializeCest.php index f03e5c28c31..0733b39bafb 100644 --- a/tests/integration/Mvc/Model/Resultset/JsonSerializeCest.php +++ b/tests/integration/Mvc/Model/Resultset/JsonSerializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class JsonSerializeCest /** * Tests Phalcon\Mvc\Model\Resultset :: jsonSerialize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetJsonSerialize(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/KeyCest.php b/tests/integration/Mvc/Model/Resultset/KeyCest.php index 284efa0f1f9..6bde9c74829 100644 --- a/tests/integration/Mvc/Model/Resultset/KeyCest.php +++ b/tests/integration/Mvc/Model/Resultset/KeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class KeyCest /** * Tests Phalcon\Mvc\Model\Resultset :: key() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetKey(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/NextCest.php b/tests/integration/Mvc/Model/Resultset/NextCest.php index ee25fd6c948..dd2f5b1bfdd 100644 --- a/tests/integration/Mvc/Model/Resultset/NextCest.php +++ b/tests/integration/Mvc/Model/Resultset/NextCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class NextCest /** * Tests Phalcon\Mvc\Model\Resultset :: next() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetNext(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/OffsetExistsCest.php b/tests/integration/Mvc/Model/Resultset/OffsetExistsCest.php index 690bcd7c082..3e80c7f1e77 100644 --- a/tests/integration/Mvc/Model/Resultset/OffsetExistsCest.php +++ b/tests/integration/Mvc/Model/Resultset/OffsetExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OffsetExistsCest /** * Tests Phalcon\Mvc\Model\Resultset :: offsetExists() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetOffsetExists(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/OffsetGetCest.php b/tests/integration/Mvc/Model/Resultset/OffsetGetCest.php index 60137059c4b..ba93f57a4bf 100644 --- a/tests/integration/Mvc/Model/Resultset/OffsetGetCest.php +++ b/tests/integration/Mvc/Model/Resultset/OffsetGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OffsetGetCest /** * Tests Phalcon\Mvc\Model\Resultset :: offsetGet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetOffsetGet(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/OffsetSetCest.php b/tests/integration/Mvc/Model/Resultset/OffsetSetCest.php index 76e7a93da29..c803feb3522 100644 --- a/tests/integration/Mvc/Model/Resultset/OffsetSetCest.php +++ b/tests/integration/Mvc/Model/Resultset/OffsetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OffsetSetCest /** * Tests Phalcon\Mvc\Model\Resultset :: offsetSet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetOffsetSet(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/OffsetUnsetCest.php b/tests/integration/Mvc/Model/Resultset/OffsetUnsetCest.php index 807f8f4368f..3ea2c1045a2 100644 --- a/tests/integration/Mvc/Model/Resultset/OffsetUnsetCest.php +++ b/tests/integration/Mvc/Model/Resultset/OffsetUnsetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OffsetUnsetCest /** * Tests Phalcon\Mvc\Model\Resultset :: offsetUnset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetOffsetUnset(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Refactor-ComplexCest.php b/tests/integration/Mvc/Model/Resultset/Refactor-ComplexCest.php index f0a172bef58..2028755f017 100644 --- a/tests/integration/Mvc/Model/Resultset/Refactor-ComplexCest.php +++ b/tests/integration/Mvc/Model/Resultset/Refactor-ComplexCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -36,7 +36,7 @@ public function _after(IntegrationTester $I) * Work with Complex Resultset by load data from the file cache (PHQL * option). * - * @author Phalcon Team + * @author Phalcon Team * @since 2012-12-28 */ public function shouldLoadResultsetFromCacheByUsingPhqlFile(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Refactor-SimpleCest.php b/tests/integration/Mvc/Model/Resultset/Refactor-SimpleCest.php index c9a71df4185..5f14e37814d 100644 --- a/tests/integration/Mvc/Model/Resultset/Refactor-SimpleCest.php +++ b/tests/integration/Mvc/Model/Resultset/Refactor-SimpleCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -40,7 +40,7 @@ public function _after(IntegrationTester $I) * Work with Simple Resultset by load data from the file cache. * * @test - * @author Phalcon Team + * @author Phalcon Team * @since 2012-11-20 */ public function shouldLoadResultsetFromCache(IntegrationTester $I) @@ -83,7 +83,7 @@ public function shouldLoadResultsetFromCache(IntegrationTester $I) * Work with Simple Resultset with binding by load data from the file cache. * * @test - * @author Phalcon Team + * @author Phalcon Team * @since 2012-11-20 */ public function shouldLoadResultsetWithBindingFromCache(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/RewindCest.php b/tests/integration/Mvc/Model/Resultset/RewindCest.php index 5ac422a563e..c21be120de9 100644 --- a/tests/integration/Mvc/Model/Resultset/RewindCest.php +++ b/tests/integration/Mvc/Model/Resultset/RewindCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class RewindCest /** * Tests Phalcon\Mvc\Model\Resultset :: rewind() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetRewind(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/SeekCest.php b/tests/integration/Mvc/Model/Resultset/SeekCest.php index fa47f4af056..8aa8d13b28f 100644 --- a/tests/integration/Mvc/Model/Resultset/SeekCest.php +++ b/tests/integration/Mvc/Model/Resultset/SeekCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SeekCest /** * Tests Phalcon\Mvc\Model\Resultset :: seek() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetSeek(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/SerializeCest.php b/tests/integration/Mvc/Model/Resultset/SerializeCest.php index d3851224db9..83f478056bf 100644 --- a/tests/integration/Mvc/Model/Resultset/SerializeCest.php +++ b/tests/integration/Mvc/Model/Resultset/SerializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SerializeCest /** * Tests Phalcon\Mvc\Model\Resultset :: serialize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetSerialize(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/SetHydrateModeCest.php b/tests/integration/Mvc/Model/Resultset/SetHydrateModeCest.php index ea45aacf6ae..e215df032b7 100644 --- a/tests/integration/Mvc/Model/Resultset/SetHydrateModeCest.php +++ b/tests/integration/Mvc/Model/Resultset/SetHydrateModeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetHydrateModeCest /** * Tests Phalcon\Mvc\Model\Resultset :: setHydrateMode() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetSetHydrateMode(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/SetIsFreshCest.php b/tests/integration/Mvc/Model/Resultset/SetIsFreshCest.php index ba8f552ad58..09c5d1c3a00 100644 --- a/tests/integration/Mvc/Model/Resultset/SetIsFreshCest.php +++ b/tests/integration/Mvc/Model/Resultset/SetIsFreshCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetIsFreshCest /** * Tests Phalcon\Mvc\Model\Resultset :: setIsFresh() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetSetIsFresh(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Simple/ConstructCest.php b/tests/integration/Mvc/Model/Resultset/Simple/ConstructCest.php index c18c45d73a4..18cdcab5fd3 100644 --- a/tests/integration/Mvc/Model/Resultset/Simple/ConstructCest.php +++ b/tests/integration/Mvc/Model/Resultset/Simple/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -43,7 +43,7 @@ public function _after(IntegrationTester $I) * Work with Simple Resultset by load data from the file cache (complete * PHQL option). * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-27 */ public function mvcModelResultsetSimpleConstructCompletePhql(IntegrationTester $I) @@ -91,7 +91,7 @@ public function mvcModelResultsetSimpleConstructCompletePhql(IntegrationTester $ * Work with Simple Resultset by load data from the file cache (incomplete * PHQL option). * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-27 */ public function mvcModelResultsetSimpleConstructIncompletePhql(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Simple/CountCest.php b/tests/integration/Mvc/Model/Resultset/Simple/CountCest.php index b9613397e81..3bd80ff8807 100644 --- a/tests/integration/Mvc/Model/Resultset/Simple/CountCest.php +++ b/tests/integration/Mvc/Model/Resultset/Simple/CountCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CountCest /** * Tests Phalcon\Mvc\Model\Resultset\Simple :: count() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetSimpleCount(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Simple/CurrentCest.php b/tests/integration/Mvc/Model/Resultset/Simple/CurrentCest.php index d8c4bb2a898..bb096476909 100644 --- a/tests/integration/Mvc/Model/Resultset/Simple/CurrentCest.php +++ b/tests/integration/Mvc/Model/Resultset/Simple/CurrentCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CurrentCest /** * Tests Phalcon\Mvc\Model\Resultset\Simple :: current() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetSimpleCurrent(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Simple/DeleteCest.php b/tests/integration/Mvc/Model/Resultset/Simple/DeleteCest.php index 9f2d3c4d4e8..290b24b5f7e 100644 --- a/tests/integration/Mvc/Model/Resultset/Simple/DeleteCest.php +++ b/tests/integration/Mvc/Model/Resultset/Simple/DeleteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class DeleteCest /** * Tests Phalcon\Mvc\Model\Resultset\Simple :: delete() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetSimpleDelete(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Simple/FilterCest.php b/tests/integration/Mvc/Model/Resultset/Simple/FilterCest.php index be0c5cce69f..06b19117aa5 100644 --- a/tests/integration/Mvc/Model/Resultset/Simple/FilterCest.php +++ b/tests/integration/Mvc/Model/Resultset/Simple/FilterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class FilterCest /** * Tests Phalcon\Mvc\Model\Resultset\Simple :: filter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetSimpleFilter(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Simple/GetCacheCest.php b/tests/integration/Mvc/Model/Resultset/Simple/GetCacheCest.php index 76756e506ae..2d47b154dd5 100644 --- a/tests/integration/Mvc/Model/Resultset/Simple/GetCacheCest.php +++ b/tests/integration/Mvc/Model/Resultset/Simple/GetCacheCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetCacheCest /** * Tests Phalcon\Mvc\Model\Resultset\Simple :: getCache() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetSimpleGetCache(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Simple/GetFirstCest.php b/tests/integration/Mvc/Model/Resultset/Simple/GetFirstCest.php index e4a9777c6f9..95858db596c 100644 --- a/tests/integration/Mvc/Model/Resultset/Simple/GetFirstCest.php +++ b/tests/integration/Mvc/Model/Resultset/Simple/GetFirstCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetFirstCest /** * Tests Phalcon\Mvc\Model\Resultset\Simple :: getFirst() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetSimpleGetFirst(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Simple/GetHydrateModeCest.php b/tests/integration/Mvc/Model/Resultset/Simple/GetHydrateModeCest.php index f1967c6b569..3859a8076f9 100644 --- a/tests/integration/Mvc/Model/Resultset/Simple/GetHydrateModeCest.php +++ b/tests/integration/Mvc/Model/Resultset/Simple/GetHydrateModeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetHydrateModeCest /** * Tests Phalcon\Mvc\Model\Resultset\Simple :: getHydrateMode() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetSimpleGetHydrateMode(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Simple/GetLastCest.php b/tests/integration/Mvc/Model/Resultset/Simple/GetLastCest.php index 2547e9578ec..7e637195962 100644 --- a/tests/integration/Mvc/Model/Resultset/Simple/GetLastCest.php +++ b/tests/integration/Mvc/Model/Resultset/Simple/GetLastCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetLastCest /** * Tests Phalcon\Mvc\Model\Resultset\Simple :: getLast() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetSimpleGetLast(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Simple/GetMessagesCest.php b/tests/integration/Mvc/Model/Resultset/Simple/GetMessagesCest.php index 56159bffe73..e8e1cc59c42 100644 --- a/tests/integration/Mvc/Model/Resultset/Simple/GetMessagesCest.php +++ b/tests/integration/Mvc/Model/Resultset/Simple/GetMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetMessagesCest /** * Tests Phalcon\Mvc\Model\Resultset\Simple :: getMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetSimpleGetMessages(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Simple/GetTypeCest.php b/tests/integration/Mvc/Model/Resultset/Simple/GetTypeCest.php index 49c05c3d3f6..a847638250a 100644 --- a/tests/integration/Mvc/Model/Resultset/Simple/GetTypeCest.php +++ b/tests/integration/Mvc/Model/Resultset/Simple/GetTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetTypeCest /** * Tests Phalcon\Mvc\Model\Resultset\Simple :: getType() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetSimpleGetType(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Simple/IsFreshCest.php b/tests/integration/Mvc/Model/Resultset/Simple/IsFreshCest.php index a2bd50dc3f0..b7a12063946 100644 --- a/tests/integration/Mvc/Model/Resultset/Simple/IsFreshCest.php +++ b/tests/integration/Mvc/Model/Resultset/Simple/IsFreshCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class IsFreshCest /** * Tests Phalcon\Mvc\Model\Resultset\Simple :: isFresh() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetSimpleIsFresh(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Simple/JsonSerializeCest.php b/tests/integration/Mvc/Model/Resultset/Simple/JsonSerializeCest.php index 5e1a165766f..a14a2d33a05 100644 --- a/tests/integration/Mvc/Model/Resultset/Simple/JsonSerializeCest.php +++ b/tests/integration/Mvc/Model/Resultset/Simple/JsonSerializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class JsonSerializeCest /** * Tests Phalcon\Mvc\Model\Resultset\Simple :: jsonSerialize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetSimpleJsonSerialize(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Simple/KeyCest.php b/tests/integration/Mvc/Model/Resultset/Simple/KeyCest.php index 1322ac4f2c9..7cecbea83e1 100644 --- a/tests/integration/Mvc/Model/Resultset/Simple/KeyCest.php +++ b/tests/integration/Mvc/Model/Resultset/Simple/KeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class KeyCest /** * Tests Phalcon\Mvc\Model\Resultset\Simple :: key() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetSimpleKey(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Simple/NextCest.php b/tests/integration/Mvc/Model/Resultset/Simple/NextCest.php index 95def2d4e7d..a006cc913cd 100644 --- a/tests/integration/Mvc/Model/Resultset/Simple/NextCest.php +++ b/tests/integration/Mvc/Model/Resultset/Simple/NextCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class NextCest /** * Tests Phalcon\Mvc\Model\Resultset\Simple :: next() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetSimpleNext(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Simple/OffsetExistsCest.php b/tests/integration/Mvc/Model/Resultset/Simple/OffsetExistsCest.php index 651ae0223e7..45ad94a79f5 100644 --- a/tests/integration/Mvc/Model/Resultset/Simple/OffsetExistsCest.php +++ b/tests/integration/Mvc/Model/Resultset/Simple/OffsetExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OffsetExistsCest /** * Tests Phalcon\Mvc\Model\Resultset\Simple :: offsetExists() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetSimpleOffsetExists(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Simple/OffsetGetCest.php b/tests/integration/Mvc/Model/Resultset/Simple/OffsetGetCest.php index 2479b8c97d6..ca538a68533 100644 --- a/tests/integration/Mvc/Model/Resultset/Simple/OffsetGetCest.php +++ b/tests/integration/Mvc/Model/Resultset/Simple/OffsetGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OffsetGetCest /** * Tests Phalcon\Mvc\Model\Resultset\Simple :: offsetGet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetSimpleOffsetGet(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Simple/OffsetSetCest.php b/tests/integration/Mvc/Model/Resultset/Simple/OffsetSetCest.php index 619d49e5ad7..642ec1d08a5 100644 --- a/tests/integration/Mvc/Model/Resultset/Simple/OffsetSetCest.php +++ b/tests/integration/Mvc/Model/Resultset/Simple/OffsetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OffsetSetCest /** * Tests Phalcon\Mvc\Model\Resultset\Simple :: offsetSet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetSimpleOffsetSet(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Simple/OffsetUnsetCest.php b/tests/integration/Mvc/Model/Resultset/Simple/OffsetUnsetCest.php index 3584c5bcd44..ce18adc54f7 100644 --- a/tests/integration/Mvc/Model/Resultset/Simple/OffsetUnsetCest.php +++ b/tests/integration/Mvc/Model/Resultset/Simple/OffsetUnsetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OffsetUnsetCest /** * Tests Phalcon\Mvc\Model\Resultset\Simple :: offsetUnset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetSimpleOffsetUnset(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Simple/RewindCest.php b/tests/integration/Mvc/Model/Resultset/Simple/RewindCest.php index ba52be7d1d2..a246de1f087 100644 --- a/tests/integration/Mvc/Model/Resultset/Simple/RewindCest.php +++ b/tests/integration/Mvc/Model/Resultset/Simple/RewindCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class RewindCest /** * Tests Phalcon\Mvc\Model\Resultset\Simple :: rewind() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetSimpleRewind(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Simple/SeekCest.php b/tests/integration/Mvc/Model/Resultset/Simple/SeekCest.php index 298bc6b8b3e..1f88c13d38a 100644 --- a/tests/integration/Mvc/Model/Resultset/Simple/SeekCest.php +++ b/tests/integration/Mvc/Model/Resultset/Simple/SeekCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SeekCest /** * Tests Phalcon\Mvc\Model\Resultset\Simple :: seek() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetSimpleSeek(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Simple/SerializeCest.php b/tests/integration/Mvc/Model/Resultset/Simple/SerializeCest.php index 7b54627a23e..5549e8ac74b 100644 --- a/tests/integration/Mvc/Model/Resultset/Simple/SerializeCest.php +++ b/tests/integration/Mvc/Model/Resultset/Simple/SerializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SerializeCest /** * Tests Phalcon\Mvc\Model\Resultset\Simple :: serialize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetSimpleSerialize(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Simple/SetHydrateModeCest.php b/tests/integration/Mvc/Model/Resultset/Simple/SetHydrateModeCest.php index 491a8ed18c6..30c4944b65d 100644 --- a/tests/integration/Mvc/Model/Resultset/Simple/SetHydrateModeCest.php +++ b/tests/integration/Mvc/Model/Resultset/Simple/SetHydrateModeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetHydrateModeCest /** * Tests Phalcon\Mvc\Model\Resultset\Simple :: setHydrateMode() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetSimpleSetHydrateMode(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Simple/SetIsFreshCest.php b/tests/integration/Mvc/Model/Resultset/Simple/SetIsFreshCest.php index 0f2e4638de2..09aa2b70b4a 100644 --- a/tests/integration/Mvc/Model/Resultset/Simple/SetIsFreshCest.php +++ b/tests/integration/Mvc/Model/Resultset/Simple/SetIsFreshCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetIsFreshCest /** * Tests Phalcon\Mvc\Model\Resultset\Simple :: setIsFresh() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetSimpleSetIsFresh(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Simple/ToArrayCest.php b/tests/integration/Mvc/Model/Resultset/Simple/ToArrayCest.php index fa0c6c6d225..d1a8f4e806f 100644 --- a/tests/integration/Mvc/Model/Resultset/Simple/ToArrayCest.php +++ b/tests/integration/Mvc/Model/Resultset/Simple/ToArrayCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ToArrayCest /** * Tests Phalcon\Mvc\Model\Resultset\Simple :: toArray() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetSimpleToArray(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Simple/UnserializeCest.php b/tests/integration/Mvc/Model/Resultset/Simple/UnserializeCest.php index d459a1d6b0b..92f913a1e9c 100644 --- a/tests/integration/Mvc/Model/Resultset/Simple/UnserializeCest.php +++ b/tests/integration/Mvc/Model/Resultset/Simple/UnserializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class UnserializeCest /** * Tests Phalcon\Mvc\Model\Resultset\Simple :: unserialize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetSimpleUnserialize(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Simple/UpdateCest.php b/tests/integration/Mvc/Model/Resultset/Simple/UpdateCest.php index 9d47c9c3603..d2d51766f11 100644 --- a/tests/integration/Mvc/Model/Resultset/Simple/UpdateCest.php +++ b/tests/integration/Mvc/Model/Resultset/Simple/UpdateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class UpdateCest /** * Tests Phalcon\Mvc\Model\Resultset\Simple :: update() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetSimpleUpdate(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/Simple/ValidCest.php b/tests/integration/Mvc/Model/Resultset/Simple/ValidCest.php index 26c432c3843..51f64d59749 100644 --- a/tests/integration/Mvc/Model/Resultset/Simple/ValidCest.php +++ b/tests/integration/Mvc/Model/Resultset/Simple/ValidCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ValidCest /** * Tests Phalcon\Mvc\Model\Resultset\Simple :: valid() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetSimpleValid(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/ToArrayCest.php b/tests/integration/Mvc/Model/Resultset/ToArrayCest.php index bc0951ea7da..f9eddf95c0f 100644 --- a/tests/integration/Mvc/Model/Resultset/ToArrayCest.php +++ b/tests/integration/Mvc/Model/Resultset/ToArrayCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ToArrayCest /** * Tests Phalcon\Mvc\Model\Resultset :: toArray() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetToArray(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/UnserializeCest.php b/tests/integration/Mvc/Model/Resultset/UnserializeCest.php index ca1e3d8e39b..2a01cb3bd05 100644 --- a/tests/integration/Mvc/Model/Resultset/UnserializeCest.php +++ b/tests/integration/Mvc/Model/Resultset/UnserializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class UnserializeCest /** * Tests Phalcon\Mvc\Model\Resultset :: unserialize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetUnserialize(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/UpdateCest.php b/tests/integration/Mvc/Model/Resultset/UpdateCest.php index e386c1d20b6..c4efc950203 100644 --- a/tests/integration/Mvc/Model/Resultset/UpdateCest.php +++ b/tests/integration/Mvc/Model/Resultset/UpdateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -41,7 +41,7 @@ public function _after(IntegrationTester $I) /** * Tests Phalcon\Mvc\Model\Resultset :: update() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetUpdate(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Resultset/ValidCest.php b/tests/integration/Mvc/Model/Resultset/ValidCest.php index 4acbff5b059..ea581ae05f8 100644 --- a/tests/integration/Mvc/Model/Resultset/ValidCest.php +++ b/tests/integration/Mvc/Model/Resultset/ValidCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ValidCest /** * Tests Phalcon\Mvc\Model\Resultset :: valid() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelResultsetValid(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Row/JsonSerializeCest.php b/tests/integration/Mvc/Model/Row/JsonSerializeCest.php index 13c48ed307b..d76035dbf47 100644 --- a/tests/integration/Mvc/Model/Row/JsonSerializeCest.php +++ b/tests/integration/Mvc/Model/Row/JsonSerializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/Row/OffsetExistsCest.php b/tests/integration/Mvc/Model/Row/OffsetExistsCest.php index ba50eeae4aa..6b3e6081836 100644 --- a/tests/integration/Mvc/Model/Row/OffsetExistsCest.php +++ b/tests/integration/Mvc/Model/Row/OffsetExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/Row/OffsetGetCest.php b/tests/integration/Mvc/Model/Row/OffsetGetCest.php index 1424a18b77a..edb38470c08 100644 --- a/tests/integration/Mvc/Model/Row/OffsetGetCest.php +++ b/tests/integration/Mvc/Model/Row/OffsetGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/Row/OffsetSetCest.php b/tests/integration/Mvc/Model/Row/OffsetSetCest.php index 075e8ef531f..71d388bf5fc 100644 --- a/tests/integration/Mvc/Model/Row/OffsetSetCest.php +++ b/tests/integration/Mvc/Model/Row/OffsetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/Row/OffsetUnsetCest.php b/tests/integration/Mvc/Model/Row/OffsetUnsetCest.php index 5c9dedfa37c..aad87ffb80c 100644 --- a/tests/integration/Mvc/Model/Row/OffsetUnsetCest.php +++ b/tests/integration/Mvc/Model/Row/OffsetUnsetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/Row/ReadWriteAttributeCest.php b/tests/integration/Mvc/Model/Row/ReadWriteAttributeCest.php index 8e60f4e64d1..e0b8bf9c9ac 100644 --- a/tests/integration/Mvc/Model/Row/ReadWriteAttributeCest.php +++ b/tests/integration/Mvc/Model/Row/ReadWriteAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/Row/SetDirtyStateCest.php b/tests/integration/Mvc/Model/Row/SetDirtyStateCest.php index 876e985eeb1..2958f9e1661 100644 --- a/tests/integration/Mvc/Model/Row/SetDirtyStateCest.php +++ b/tests/integration/Mvc/Model/Row/SetDirtyStateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetDirtyStateCest /** * Tests Phalcon\Mvc\Model\Row :: setDirtyState() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelRowSetDirtyState(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Row/ToArrayCest.php b/tests/integration/Mvc/Model/Row/ToArrayCest.php index 3ebd82f1e92..1b491fba719 100644 --- a/tests/integration/Mvc/Model/Row/ToArrayCest.php +++ b/tests/integration/Mvc/Model/Row/ToArrayCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/SaveCest.php b/tests/integration/Mvc/Model/SaveCest.php index 68530801299..93682b1a78f 100644 --- a/tests/integration/Mvc/Model/SaveCest.php +++ b/tests/integration/Mvc/Model/SaveCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -43,7 +43,7 @@ public function _after(IntegrationTester $I) * * @author Balázs Németh * @since 2019-04-30 - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-10 */ public function mvcModelSave(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/SerializeCest.php b/tests/integration/Mvc/Model/SerializeCest.php index 75aeb15da52..9f36082ec2a 100644 --- a/tests/integration/Mvc/Model/SerializeCest.php +++ b/tests/integration/Mvc/Model/SerializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SerializeCest /** * Tests Phalcon\Mvc\Model :: serialize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelSerialize(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/SetConnectionServiceCest.php b/tests/integration/Mvc/Model/SetConnectionServiceCest.php index 3469c4ddbb2..cbe3841b20d 100644 --- a/tests/integration/Mvc/Model/SetConnectionServiceCest.php +++ b/tests/integration/Mvc/Model/SetConnectionServiceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetConnectionServiceCest /** * Tests Phalcon\Mvc\Model :: setConnectionService() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelSetConnectionService(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/SetDirtyStateCest.php b/tests/integration/Mvc/Model/SetDirtyStateCest.php index 27755236c4f..abf68eb24c4 100644 --- a/tests/integration/Mvc/Model/SetDirtyStateCest.php +++ b/tests/integration/Mvc/Model/SetDirtyStateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetDirtyStateCest /** * Tests Phalcon\Mvc\Model :: setDirtyState() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelSetDirtyState(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/SetEventsManagerCest.php b/tests/integration/Mvc/Model/SetEventsManagerCest.php index 585bb274b2a..27bb28d97e2 100644 --- a/tests/integration/Mvc/Model/SetEventsManagerCest.php +++ b/tests/integration/Mvc/Model/SetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetEventsManagerCest /** * Tests Phalcon\Mvc\Model :: setEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelSetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/SetOldSnapshotDataCest.php b/tests/integration/Mvc/Model/SetOldSnapshotDataCest.php index 33117938f9b..a4f99aef381 100644 --- a/tests/integration/Mvc/Model/SetOldSnapshotDataCest.php +++ b/tests/integration/Mvc/Model/SetOldSnapshotDataCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetOldSnapshotDataCest /** * Tests Phalcon\Mvc\Model :: setOldSnapshotData() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelSetOldSnapshotData(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/SetReadConnectionServiceCest.php b/tests/integration/Mvc/Model/SetReadConnectionServiceCest.php index 41b15060b8d..9c88859243e 100644 --- a/tests/integration/Mvc/Model/SetReadConnectionServiceCest.php +++ b/tests/integration/Mvc/Model/SetReadConnectionServiceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetReadConnectionServiceCest /** * Tests Phalcon\Mvc\Model :: setReadConnectionService() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelSetReadConnectionService(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/SetSnapshotDataCest.php b/tests/integration/Mvc/Model/SetSnapshotDataCest.php index c062e426e72..b5a9bbbd541 100644 --- a/tests/integration/Mvc/Model/SetSnapshotDataCest.php +++ b/tests/integration/Mvc/Model/SetSnapshotDataCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetSnapshotDataCest /** * Tests Phalcon\Mvc\Model :: setSnapshotData() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelSetSnapshotData(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/SetTransactionCest.php b/tests/integration/Mvc/Model/SetTransactionCest.php index 0b746939fcb..def9e54724d 100644 --- a/tests/integration/Mvc/Model/SetTransactionCest.php +++ b/tests/integration/Mvc/Model/SetTransactionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetTransactionCest /** * Tests Phalcon\Mvc\Model :: setTransaction() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelSetTransaction(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/SetWriteConnectionServiceCest.php b/tests/integration/Mvc/Model/SetWriteConnectionServiceCest.php index d051101793e..dc71d579602 100644 --- a/tests/integration/Mvc/Model/SetWriteConnectionServiceCest.php +++ b/tests/integration/Mvc/Model/SetWriteConnectionServiceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetWriteConnectionServiceCest /** * Tests Phalcon\Mvc\Model :: setWriteConnectionService() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelSetWriteConnectionService(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/SetupCest.php b/tests/integration/Mvc/Model/SetupCest.php index 78e2dd01d89..f9e445186b1 100644 --- a/tests/integration/Mvc/Model/SetupCest.php +++ b/tests/integration/Mvc/Model/SetupCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetupCest /** * Tests Phalcon\Mvc\Model :: setup() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelSetup(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/SkipOperationCest.php b/tests/integration/Mvc/Model/SkipOperationCest.php index db10667a1eb..05ce5b05655 100644 --- a/tests/integration/Mvc/Model/SkipOperationCest.php +++ b/tests/integration/Mvc/Model/SkipOperationCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SkipOperationCest /** * Tests Phalcon\Mvc\Model :: skipOperation() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelSkipOperation(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/ToArrayCest.php b/tests/integration/Mvc/Model/ToArrayCest.php index 4d06418b637..26da1e4611f 100644 --- a/tests/integration/Mvc/Model/ToArrayCest.php +++ b/tests/integration/Mvc/Model/ToArrayCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/Transaction/BeginCest.php b/tests/integration/Mvc/Model/Transaction/BeginCest.php index 0f8799a9bda..413989c1510 100644 --- a/tests/integration/Mvc/Model/Transaction/BeginCest.php +++ b/tests/integration/Mvc/Model/Transaction/BeginCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class BeginCest /** * Tests Phalcon\Mvc\Model\Transaction :: begin() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelTransactionBegin(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Transaction/CommitCest.php b/tests/integration/Mvc/Model/Transaction/CommitCest.php index ec88c054d2b..88e0b918ddb 100644 --- a/tests/integration/Mvc/Model/Transaction/CommitCest.php +++ b/tests/integration/Mvc/Model/Transaction/CommitCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CommitCest /** * Tests Phalcon\Mvc\Model\Transaction :: commit() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelTransactionCommit(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Transaction/ConstructCest.php b/tests/integration/Mvc/Model/Transaction/ConstructCest.php index 1817b187f85..a08ded0db2c 100644 --- a/tests/integration/Mvc/Model/Transaction/ConstructCest.php +++ b/tests/integration/Mvc/Model/Transaction/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Mvc\Model\Transaction :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelTransactionConstruct(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Transaction/GetConnectionCest.php b/tests/integration/Mvc/Model/Transaction/GetConnectionCest.php index 2be6666e047..22f47d894ae 100644 --- a/tests/integration/Mvc/Model/Transaction/GetConnectionCest.php +++ b/tests/integration/Mvc/Model/Transaction/GetConnectionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -34,7 +34,7 @@ public function _after(IntegrationTester $I) /** * Tests Phalcon\Mvc\Model\Transaction :: getConnection() * - * @author Phalcon Team + * @author Phalcon Team * @since 2012-08-07 */ public function mvcModelTransactionGetConnection(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Transaction/GetMessagesCest.php b/tests/integration/Mvc/Model/Transaction/GetMessagesCest.php index a887e06a230..4ed2b46dd90 100644 --- a/tests/integration/Mvc/Model/Transaction/GetMessagesCest.php +++ b/tests/integration/Mvc/Model/Transaction/GetMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetMessagesCest /** * Tests Phalcon\Mvc\Model\Transaction :: getMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelTransactionGetMessages(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Transaction/IsManagedCest.php b/tests/integration/Mvc/Model/Transaction/IsManagedCest.php index d0537b8c5fe..a68bf30dba4 100644 --- a/tests/integration/Mvc/Model/Transaction/IsManagedCest.php +++ b/tests/integration/Mvc/Model/Transaction/IsManagedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/Transaction/IsValidCest.php b/tests/integration/Mvc/Model/Transaction/IsValidCest.php index 017ae3bdeef..a04a40bd5c0 100644 --- a/tests/integration/Mvc/Model/Transaction/IsValidCest.php +++ b/tests/integration/Mvc/Model/Transaction/IsValidCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class IsValidCest /** * Tests Phalcon\Mvc\Model\Transaction :: isValid() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelTransactionIsValid(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Transaction/Manager/CollectTransactionsCest.php b/tests/integration/Mvc/Model/Transaction/Manager/CollectTransactionsCest.php index df4e0609d75..c63e9c56d03 100644 --- a/tests/integration/Mvc/Model/Transaction/Manager/CollectTransactionsCest.php +++ b/tests/integration/Mvc/Model/Transaction/Manager/CollectTransactionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CollectTransactionsCest /** * Tests Phalcon\Mvc\Model\Transaction\Manager :: collectTransactions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelTransactionManagerCollectTransactions(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Transaction/Manager/CommitCest.php b/tests/integration/Mvc/Model/Transaction/Manager/CommitCest.php index 7d63b7da185..89d160af367 100644 --- a/tests/integration/Mvc/Model/Transaction/Manager/CommitCest.php +++ b/tests/integration/Mvc/Model/Transaction/Manager/CommitCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CommitCest /** * Tests Phalcon\Mvc\Model\Transaction\Manager :: commit() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelTransactionManagerCommit(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Transaction/Manager/ConstructCest.php b/tests/integration/Mvc/Model/Transaction/Manager/ConstructCest.php index f93df3bdea5..88e4eb3624d 100644 --- a/tests/integration/Mvc/Model/Transaction/Manager/ConstructCest.php +++ b/tests/integration/Mvc/Model/Transaction/Manager/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Mvc\Model\Transaction\Manager :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelTransactionManagerConstruct(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Transaction/Manager/GetCest.php b/tests/integration/Mvc/Model/Transaction/Manager/GetCest.php index 2035312c0d9..c8c549aa22f 100644 --- a/tests/integration/Mvc/Model/Transaction/Manager/GetCest.php +++ b/tests/integration/Mvc/Model/Transaction/Manager/GetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -34,7 +34,7 @@ public function _after(IntegrationTester $I) /** * Tests Phalcon\Mvc\Model\Transaction\Manager :: get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2012-08-07 * * @dataProvider adaptersProvider diff --git a/tests/integration/Mvc/Model/Transaction/Manager/GetDICest.php b/tests/integration/Mvc/Model/Transaction/Manager/GetDICest.php index fdee79cf5c1..10772160b78 100644 --- a/tests/integration/Mvc/Model/Transaction/Manager/GetDICest.php +++ b/tests/integration/Mvc/Model/Transaction/Manager/GetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDICest /** * Tests Phalcon\Mvc\Model\Transaction\Manager :: getDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelTransactionManagerGetDI(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Transaction/Manager/GetDbServiceCest.php b/tests/integration/Mvc/Model/Transaction/Manager/GetDbServiceCest.php index ebca4bc774c..3f51ab574ce 100644 --- a/tests/integration/Mvc/Model/Transaction/Manager/GetDbServiceCest.php +++ b/tests/integration/Mvc/Model/Transaction/Manager/GetDbServiceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDbServiceCest /** * Tests Phalcon\Mvc\Model\Transaction\Manager :: getDbService() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelTransactionManagerGetDbService(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Transaction/Manager/GetOrCreateTransactionCest.php b/tests/integration/Mvc/Model/Transaction/Manager/GetOrCreateTransactionCest.php index 703c5005ab4..306392a1042 100644 --- a/tests/integration/Mvc/Model/Transaction/Manager/GetOrCreateTransactionCest.php +++ b/tests/integration/Mvc/Model/Transaction/Manager/GetOrCreateTransactionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetOrCreateTransactionCest /** * Tests Phalcon\Mvc\Model\Transaction\Manager :: getOrCreateTransaction() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelTransactionManagerGetOrCreateTransaction(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Transaction/Manager/GetRollbackPendentCest.php b/tests/integration/Mvc/Model/Transaction/Manager/GetRollbackPendentCest.php index 6605ab193b8..6a5ac5d7459 100644 --- a/tests/integration/Mvc/Model/Transaction/Manager/GetRollbackPendentCest.php +++ b/tests/integration/Mvc/Model/Transaction/Manager/GetRollbackPendentCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetRollbackPendentCest /** * Tests Phalcon\Mvc\Model\Transaction\Manager :: getRollbackPendent() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelTransactionManagerGetRollbackPendent(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Transaction/Manager/HasCest.php b/tests/integration/Mvc/Model/Transaction/Manager/HasCest.php index 570f1f33305..11cc67ee7ea 100644 --- a/tests/integration/Mvc/Model/Transaction/Manager/HasCest.php +++ b/tests/integration/Mvc/Model/Transaction/Manager/HasCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class HasCest /** * Tests Phalcon\Mvc\Model\Transaction\Manager :: has() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelTransactionManagerHas(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Transaction/Manager/NotifyCommitCest.php b/tests/integration/Mvc/Model/Transaction/Manager/NotifyCommitCest.php index 88cda02c7be..43a0f104182 100644 --- a/tests/integration/Mvc/Model/Transaction/Manager/NotifyCommitCest.php +++ b/tests/integration/Mvc/Model/Transaction/Manager/NotifyCommitCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class NotifyCommitCest /** * Tests Phalcon\Mvc\Model\Transaction\Manager :: notifyCommit() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelTransactionManagerNotifyCommit(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Transaction/Manager/NotifyRollbackCest.php b/tests/integration/Mvc/Model/Transaction/Manager/NotifyRollbackCest.php index 1bd366423ae..f42622c06b6 100644 --- a/tests/integration/Mvc/Model/Transaction/Manager/NotifyRollbackCest.php +++ b/tests/integration/Mvc/Model/Transaction/Manager/NotifyRollbackCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class NotifyRollbackCest /** * Tests Phalcon\Mvc\Model\Transaction\Manager :: notifyRollback() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelTransactionManagerNotifyRollback(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Transaction/Manager/RollbackCest.php b/tests/integration/Mvc/Model/Transaction/Manager/RollbackCest.php index dec5f6cc992..87f56328ca1 100644 --- a/tests/integration/Mvc/Model/Transaction/Manager/RollbackCest.php +++ b/tests/integration/Mvc/Model/Transaction/Manager/RollbackCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class RollbackCest /** * Tests Phalcon\Mvc\Model\Transaction\Manager :: rollback() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelTransactionManagerRollback(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Transaction/Manager/RollbackPendentCest.php b/tests/integration/Mvc/Model/Transaction/Manager/RollbackPendentCest.php index dec7a5848ec..838a1f8f256 100644 --- a/tests/integration/Mvc/Model/Transaction/Manager/RollbackPendentCest.php +++ b/tests/integration/Mvc/Model/Transaction/Manager/RollbackPendentCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class RollbackPendentCest /** * Tests Phalcon\Mvc\Model\Transaction\Manager :: rollbackPendent() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelTransactionManagerRollbackPendent(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Transaction/Manager/SetDICest.php b/tests/integration/Mvc/Model/Transaction/Manager/SetDICest.php index af76a8d7e40..53d09b7fc59 100644 --- a/tests/integration/Mvc/Model/Transaction/Manager/SetDICest.php +++ b/tests/integration/Mvc/Model/Transaction/Manager/SetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetDICest /** * Tests Phalcon\Mvc\Model\Transaction\Manager :: setDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelTransactionManagerSetDI(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Transaction/Manager/SetDbServiceCest.php b/tests/integration/Mvc/Model/Transaction/Manager/SetDbServiceCest.php index a7f9b443537..d2535f174b8 100644 --- a/tests/integration/Mvc/Model/Transaction/Manager/SetDbServiceCest.php +++ b/tests/integration/Mvc/Model/Transaction/Manager/SetDbServiceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetDbServiceCest /** * Tests Phalcon\Mvc\Model\Transaction\Manager :: setDbService() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelTransactionManagerSetDbService(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Transaction/Manager/SetRollbackPendentCest.php b/tests/integration/Mvc/Model/Transaction/Manager/SetRollbackPendentCest.php index b28b05c5868..6f99c6bddbd 100644 --- a/tests/integration/Mvc/Model/Transaction/Manager/SetRollbackPendentCest.php +++ b/tests/integration/Mvc/Model/Transaction/Manager/SetRollbackPendentCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetRollbackPendentCest /** * Tests Phalcon\Mvc\Model\Transaction\Manager :: setRollbackPendent() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelTransactionManagerSetRollbackPendent(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Transaction/Refactor-ManagerCest.php b/tests/integration/Mvc/Model/Transaction/Refactor-ManagerCest.php index 8a85c1bab85..c7dd1bea9f5 100644 --- a/tests/integration/Mvc/Model/Transaction/Refactor-ManagerCest.php +++ b/tests/integration/Mvc/Model/Transaction/Refactor-ManagerCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -34,7 +34,7 @@ public function _after(IntegrationTester $I) /** * Tests Manager::get * - * @author Phalcon Team + * @author Phalcon Team * @since 2012-08-07 */ public function checkTransactionMysql(IntegrationTester $I) @@ -49,7 +49,7 @@ public function checkTransactionMysql(IntegrationTester $I) /** * Tests Manager::get * - * @author Phalcon Team + * @author Phalcon Team * @since 2012-08-07 */ public function checkTransactionPostgresql(IntegrationTester $I) @@ -64,7 +64,7 @@ public function checkTransactionPostgresql(IntegrationTester $I) /** * Tests Manager::get * - * @author Phalcon Team + * @author Phalcon Team * @since 2012-08-07 */ public function checkTransactionSqlite(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Transaction/RollbackCest.php b/tests/integration/Mvc/Model/Transaction/RollbackCest.php index b5ea915a57f..9acbaa605c4 100644 --- a/tests/integration/Mvc/Model/Transaction/RollbackCest.php +++ b/tests/integration/Mvc/Model/Transaction/RollbackCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -48,7 +48,7 @@ public function _after(IntegrationTester $I) * * @dataProvider getFunctions * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelTransactionRollback(IntegrationTester $I, Example $function) @@ -92,7 +92,7 @@ public function mvcModelTransactionRollback(IntegrationTester $I, Example $funct * * @dataProvider getFunctions * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelTransactionRollbackException(IntegrationTester $I, Example $function) diff --git a/tests/integration/Mvc/Model/Transaction/SetIsNewTransactionCest.php b/tests/integration/Mvc/Model/Transaction/SetIsNewTransactionCest.php index f57d0e06311..5d7f197ee92 100644 --- a/tests/integration/Mvc/Model/Transaction/SetIsNewTransactionCest.php +++ b/tests/integration/Mvc/Model/Transaction/SetIsNewTransactionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetIsNewTransactionCest /** * Tests Phalcon\Mvc\Model\Transaction :: setIsNewTransaction() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelTransactionSetIsNewTransaction(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Transaction/SetRollbackOnAbortCest.php b/tests/integration/Mvc/Model/Transaction/SetRollbackOnAbortCest.php index 8777073dc57..45ac1aa38e1 100644 --- a/tests/integration/Mvc/Model/Transaction/SetRollbackOnAbortCest.php +++ b/tests/integration/Mvc/Model/Transaction/SetRollbackOnAbortCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetRollbackOnAbortCest /** * Tests Phalcon\Mvc\Model\Transaction :: setRollbackOnAbort() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelTransactionSetRollbackOnAbort(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Transaction/SetRollbackedRecordCest.php b/tests/integration/Mvc/Model/Transaction/SetRollbackedRecordCest.php index 58812ccf0c0..5bdbc599fe8 100644 --- a/tests/integration/Mvc/Model/Transaction/SetRollbackedRecordCest.php +++ b/tests/integration/Mvc/Model/Transaction/SetRollbackedRecordCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetRollbackedRecordCest /** * Tests Phalcon\Mvc\Model\Transaction :: setRollbackedRecord() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelTransactionSetRollbackedRecord(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/Transaction/SetTransactionManagerCest.php b/tests/integration/Mvc/Model/Transaction/SetTransactionManagerCest.php index a120a8ecacb..6a13b14a5ed 100644 --- a/tests/integration/Mvc/Model/Transaction/SetTransactionManagerCest.php +++ b/tests/integration/Mvc/Model/Transaction/SetTransactionManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetTransactionManagerCest /** * Tests Phalcon\Mvc\Model\Transaction :: setTransactionManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelTransactionSetTransactionManager(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/UnderscoreCallCest.php b/tests/integration/Mvc/Model/UnderscoreCallCest.php index 02095e0bb27..6c2e9097106 100644 --- a/tests/integration/Mvc/Model/UnderscoreCallCest.php +++ b/tests/integration/Mvc/Model/UnderscoreCallCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -18,7 +18,7 @@ class UnderscoreCallCest /** * Tests Phalcon\Mvc\Model :: __call() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelCall(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/UnderscoreCallStaticCest.php b/tests/integration/Mvc/Model/UnderscoreCallStaticCest.php index 3dd7c8194e4..d2f190a97e5 100644 --- a/tests/integration/Mvc/Model/UnderscoreCallStaticCest.php +++ b/tests/integration/Mvc/Model/UnderscoreCallStaticCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -18,7 +18,7 @@ class UnderscoreCallStaticCest /** * Tests Phalcon\Mvc\Model :: __callStatic() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelUnderscoreCallStatic(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/UnderscoreGetCest.php b/tests/integration/Mvc/Model/UnderscoreGetCest.php index 52fe861458c..3df79df0f5c 100644 --- a/tests/integration/Mvc/Model/UnderscoreGetCest.php +++ b/tests/integration/Mvc/Model/UnderscoreGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/UnderscoreIssetCest.php b/tests/integration/Mvc/Model/UnderscoreIssetCest.php index e45002e3309..dc22350ed7d 100644 --- a/tests/integration/Mvc/Model/UnderscoreIssetCest.php +++ b/tests/integration/Mvc/Model/UnderscoreIssetCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/UnderscoreSetCest.php b/tests/integration/Mvc/Model/UnderscoreSetCest.php index 0cd1c268b08..de8dde43245 100644 --- a/tests/integration/Mvc/Model/UnderscoreSetCest.php +++ b/tests/integration/Mvc/Model/UnderscoreSetCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Model/UnserializeCest.php b/tests/integration/Mvc/Model/UnserializeCest.php index 8e660740f07..bdbaf639c7c 100644 --- a/tests/integration/Mvc/Model/UnserializeCest.php +++ b/tests/integration/Mvc/Model/UnserializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class UnserializeCest /** * Tests Phalcon\Mvc\Model :: unserialize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelUnserialize(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/UpdateCest.php b/tests/integration/Mvc/Model/UpdateCest.php index 05e44529c77..ac2a7cc9c40 100644 --- a/tests/integration/Mvc/Model/UpdateCest.php +++ b/tests/integration/Mvc/Model/UpdateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class UpdateCest /** * Tests Phalcon\Mvc\Model :: update() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelUpdate(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/ValidationHasFailedCest.php b/tests/integration/Mvc/Model/ValidationHasFailedCest.php index aa1f166205d..ebb945cadfd 100644 --- a/tests/integration/Mvc/Model/ValidationHasFailedCest.php +++ b/tests/integration/Mvc/Model/ValidationHasFailedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ValidationHasFailedCest /** * Tests Phalcon\Mvc\Model :: validationHasFailed() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcModelValidationHasFailed(IntegrationTester $I) diff --git a/tests/integration/Mvc/Model/WriteAttributeCest.php b/tests/integration/Mvc/Model/WriteAttributeCest.php index 087f9deb126..c719080a998 100644 --- a/tests/integration/Mvc/Model/WriteAttributeCest.php +++ b/tests/integration/Mvc/Model/WriteAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/ModelCest.php_check b/tests/integration/Mvc/ModelCest.php_check index ba5b9743938..74c75ed663a 100644 --- a/tests/integration/Mvc/ModelCest.php_check +++ b/tests/integration/Mvc/ModelCest.php_check @@ -12,9 +12,9 @@ use IntegrationTester; * Tests the Phalcon\Mvc\Model component * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Phalcon Team + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Phalcon Team * @author Wojciech Ślawski * @package Phalcon\Test\Integration\Mvc * @@ -22,7 +22,7 @@ use IntegrationTester; * bundled with this package in the file 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class ModelCest diff --git a/tests/integration/Mvc/Refactor-ControllersCest.php b/tests/integration/Mvc/Refactor-ControllersCest.php index bf2b56735ab..32bb8ee2923 100644 --- a/tests/integration/Mvc/Refactor-ControllersCest.php +++ b/tests/integration/Mvc/Refactor-ControllersCest.php @@ -13,15 +13,15 @@ * Tests the Phalcon\Mvc\Controller component * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Phalcon Team + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Phalcon Team * * The contents of this file are subject to the New BSD License that is * bundled with this package in the file 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class ControllersCest diff --git a/tests/integration/Mvc/Refactor-MicroCest.php b/tests/integration/Mvc/Refactor-MicroCest.php index f8f3bd993b7..c26c6d2f761 100644 --- a/tests/integration/Mvc/Refactor-MicroCest.php +++ b/tests/integration/Mvc/Refactor-MicroCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Refactor-ModelCest.php b/tests/integration/Mvc/Refactor-ModelCest.php index ee194621c71..779ea22d0f5 100644 --- a/tests/integration/Mvc/Refactor-ModelCest.php +++ b/tests/integration/Mvc/Refactor-ModelCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class ModelCest public function _before(IntegrationTester $I) { $this->newDi(); - + $this->setDiModelsManager(); $this->setDiModelsMetadata(); } @@ -55,7 +55,7 @@ public function executeCamelCaseRelation(IntegrationTester $I) // * Tests find with empty conditions + bind and limit. // * // * @issue https://github.com/phalcon/cphalcon/issues/11919 -// * @author Phalcon Team +// * @author Phalcon Team // * @since 2016-07-29 // */ // public function testEmptyConditions() @@ -90,7 +90,7 @@ public function executeCamelCaseRelation(IntegrationTester $I) // * Tests Model::hasMany by using multi relation column // * // * @issue https://github.com/phalcon/cphalcon/issues/12035 -// * @author Phalcon Team +// * @author Phalcon Team // * @since 2016-08-02 // */ // public function testMultiRelationColumn() @@ -114,7 +114,7 @@ public function executeCamelCaseRelation(IntegrationTester $I) // * Tests reusing Model relation // * // * @issue https://github.com/phalcon/cphalcon/issues/11991 -// * @author Phalcon Team +// * @author Phalcon Team // * @since 2016-08-03 // */ // public function testReusableRelation() diff --git a/tests/integration/Mvc/Refactor-RouterCest.php b/tests/integration/Mvc/Refactor-RouterCest.php index 9257baa0d7a..35cdc62c99e 100644 --- a/tests/integration/Mvc/Refactor-RouterCest.php +++ b/tests/integration/Mvc/Refactor-RouterCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -31,7 +31,7 @@ protected function _before(IntegrationTester $I) /** * Tests routing by use Route::convert * - * @author Andy Gutierrez + * @author Andy Gutierrez * @since 2012-12-25 * * @dataProvider getMatchingWithConverted @@ -63,7 +63,7 @@ public function testUsingRouteConverters(IntegrationTester $I, Example $example) /** * Tests using callbacks before match route * - * @author Andy Gutierrez + * @author Andy Gutierrez * @since 2013-01-08 */ public function testUsingCallbacksBeforeMatchRoute(IntegrationTester $I) @@ -121,7 +121,7 @@ function () use (&$trace) { /** * Tests router * - * @author Andy Gutierrez + * @author Andy Gutierrez * @since 2013-01-17 * * @dataProvider getMatchingWithRouter @@ -363,7 +363,7 @@ private function getMatchingWithRouter(): array /** * Tests router by using rote params * - * @author Andy Gutierrez + * @author Andy Gutierrez * @since 2012-08-22 * * @dataProvider getMatchingWithRouterHttp @@ -498,7 +498,7 @@ private function getMatchingWithRouterHttp(): array /** * Tests router by using http method * - * @author Andy Gutierrez + * @author Andy Gutierrez * @since 2012-08-22 * * @dataProvider getMatchingWithToRouter @@ -574,7 +574,7 @@ private function getMatchingWithToRouter(): array /** * Tests adding a route to the router by using short path * - * @author Andy Gutierrez + * @author Andy Gutierrez * @since 2012-01-16 * * @dataProvider getMatchingWithPathProvider @@ -599,7 +599,7 @@ public function testAddingRouteByUsingShortPaths(IntegrationTester $I, Example $ * Tests setting host name by using regexp * * @test - * @author Phalcon Team + * @author Phalcon Team * @since 2016-06-23 * * @dataProvider getMatchingWithHostnameRegex @@ -646,7 +646,7 @@ private function getDataToHostnameRegex(): array 'controller' => 'posts', 'action' => 'edit', ], - 'hostname' => '([a-z]+).phalconphp.com', + 'hostname' => '([a-z]+).phalcon.io', ], [ 'methodName' => 'add', @@ -673,7 +673,7 @@ private function getMatchingWithHostnameRegex(): array { return [ ['posts3', '/edit', 'localhost'], - ['posts', '/edit', 'my.phalconphp.com'], + ['posts', '/edit', 'my.phalcon.io'], ['posts3', '/edit', null], ['posts2', '/edit', 'mail.example.com'], ['posts3', '/edit', 'some-domain.com'], @@ -685,7 +685,7 @@ private function getMatchingWithHostnameRegex(): array * Tests setting host name by using regexp * * @issue https://github.com/phalcon/cphalcon/issues/2573 - * @author Phalcon Team + * @author Phalcon Team * @since 2016-06-26 * * @dataProvider getMatchingWithRegexRouterHostPort @@ -771,7 +771,7 @@ private function getMatchingWithRegexRouterHostPort(): array ], [ [ - 'hostname' => 'my.phalconphp.com', + 'hostname' => 'my.phalcon.io', 'port' => 80, 'handle' => '/edit', ], @@ -779,7 +779,7 @@ private function getMatchingWithRegexRouterHostPort(): array ], [ [ - 'hostname' => 'my.phalconphp.com', + 'hostname' => 'my.phalcon.io', 'port' => 8080, 'handle' => '/edit', ], @@ -823,7 +823,7 @@ private function getMatchingWithRegexRouterHostPort(): array /** * Tests setting host name * - * @author Andy Gutierrez + * @author Andy Gutierrez * @since 2013-04-15 * * @dataProvider getMatchingWithHostName @@ -870,7 +870,7 @@ private function getDataRouterHostName(): array 'controller' => 'posts', 'action' => 'edit', ], - 'hostname' => 'my.phalconphp.com', + 'hostname' => 'my.phalcon.io', ], [ 'methodName' => 'add', @@ -879,7 +879,7 @@ private function getDataRouterHostName(): array 'controller' => 'posts2', 'action' => 'edit2', ], - 'hostname' => 'my2.phalconphp.com', + 'hostname' => 'my2.phalcon.io', ], ]; } @@ -903,14 +903,14 @@ private function getMatchingWithHostName(): array ], [ [ - 'hostname' => 'my.phalconphp.com', + 'hostname' => 'my.phalcon.io', 'handle' => '/edit', ], 'posts', ], [ [ - 'hostname' => 'my2.phalconphp.com', + 'hostname' => 'my2.phalcon.io', 'handle' => '/edit', ], 'posts2', diff --git a/tests/integration/Mvc/Refactor-ViewEnginesCest.php b/tests/integration/Mvc/Refactor-ViewEnginesCest.php index 39f7dbdd7e9..5eb5eeae2ca 100644 --- a/tests/integration/Mvc/Refactor-ViewEnginesCest.php +++ b/tests/integration/Mvc/Refactor-ViewEnginesCest.php @@ -4,14 +4,14 @@ +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ - | Copyright (c) 2011-present Phalcon Team (https://phalconphp.com) | + | Copyright (c) 2011-present Phalcon Team (https://phalcon.io) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file 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. | + | to license@phalcon.io so we can send you a copy immediately. | +------------------------------------------------------------------------+ */ @@ -126,7 +126,7 @@ private function getViewBuiltinFunction(): array /** * Tests Mustache template engine * - * @author Phalcon Team + * @author Phalcon Team * @since 2012-08-17 */ public function shouldWorkWithMustacheEngine(IntegrationTester $I) @@ -194,7 +194,7 @@ private function setParamAndCheckData(IntegrationTester $I, string $errorMessage // * Tests the mix Mustache with PHP Engines // * // * @test -// * @author Phalcon Team +// * @author Phalcon Team // * @since 2012-08-17 // */ // public function shouldWorkMixPhpMustacheEnginesPartial(IntegrationTester $I) @@ -218,7 +218,7 @@ private function setParamAndCheckData(IntegrationTester $I, string $errorMessage // * Tests the mix Mustache with PHP Engines // * // * @test -// * @author Phalcon Team +// * @author Phalcon Team // * @since 2012-08-17 // */ // public function shouldWorkMixPhpTwigEnginesPartial(IntegrationTester $I) @@ -241,7 +241,7 @@ private function setParamAndCheckData(IntegrationTester $I, string $errorMessage /** * Tests Twig template engine * - * @author Phalcon Team + * @author Phalcon Team * @since 2012-08-17 */ public function shouldWorkWithTwigEngine(IntegrationTester $I) @@ -284,7 +284,7 @@ private function getTwigEngine(): array /** * Tests the mix Twig with PHP Engines * - * @author Phalcon Team + * @author Phalcon Team * @since 2012-08-17 */ public function shouldWorkMixPhpTwigEngines(IntegrationTester $I) @@ -326,7 +326,7 @@ private function getTwigPhpEngine(): array /** * Tests the mix Mustache with PHP Engines * - * @author Phalcon Team + * @author Phalcon Team * @since 2012-08-17 */ public function shouldWorkMixPhpMustacheEngines(IntegrationTester $I) diff --git a/tests/integration/Mvc/Refactor-ViewTest.php_check b/tests/integration/Mvc/Refactor-ViewTest.php_check index 2dd8b993d4a..e88e7db2d61 100644 --- a/tests/integration/Mvc/Refactor-ViewTest.php_check +++ b/tests/integration/Mvc/Refactor-ViewTest.php_check @@ -17,7 +17,7 @@ class ViewTest extends IntegrationTest /** * Tests using partials with the mix Twig with PHP Engines * - * @author Phalcon Team + * @author Phalcon Team * @since 2013-01-07 */ public function testOverrideLayout() @@ -67,7 +67,7 @@ class ViewTest extends IntegrationTest /** * Tests View::render * - * @author Phalcon Team + * @author Phalcon Team * @since 2012-03-05 */ public function testStandardRender() @@ -153,7 +153,7 @@ class ViewTest extends IntegrationTest /** * Tests rendering with partials * - * @author Phalcon Team + * @author Phalcon Team * @since 2012-05-28 */ public function testRenderingWithPartials() diff --git a/tests/integration/Mvc/Router/AddCest.php b/tests/integration/Mvc/Router/AddCest.php index 5713dc3bc29..612aeba3707 100644 --- a/tests/integration/Mvc/Router/AddCest.php +++ b/tests/integration/Mvc/Router/AddCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Router/AddConnectCest.php b/tests/integration/Mvc/Router/AddConnectCest.php index 93c76d435c4..9b61b027f5d 100644 --- a/tests/integration/Mvc/Router/AddConnectCest.php +++ b/tests/integration/Mvc/Router/AddConnectCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Router/AddDeleteCest.php b/tests/integration/Mvc/Router/AddDeleteCest.php index 3b7d57550a6..2e9cd530aba 100644 --- a/tests/integration/Mvc/Router/AddDeleteCest.php +++ b/tests/integration/Mvc/Router/AddDeleteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Router/AddGetCest.php b/tests/integration/Mvc/Router/AddGetCest.php index b32af6573ea..4b96e9327ec 100644 --- a/tests/integration/Mvc/Router/AddGetCest.php +++ b/tests/integration/Mvc/Router/AddGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Router/AddHeadCest.php b/tests/integration/Mvc/Router/AddHeadCest.php index e09b600f4fd..a18864a765a 100644 --- a/tests/integration/Mvc/Router/AddHeadCest.php +++ b/tests/integration/Mvc/Router/AddHeadCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Router/AddOptionsCest.php b/tests/integration/Mvc/Router/AddOptionsCest.php index 246942d75dc..9a4425e9170 100644 --- a/tests/integration/Mvc/Router/AddOptionsCest.php +++ b/tests/integration/Mvc/Router/AddOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Router/AddPatchCest.php b/tests/integration/Mvc/Router/AddPatchCest.php index 46c1717ef4d..3dc5d8a71ad 100644 --- a/tests/integration/Mvc/Router/AddPatchCest.php +++ b/tests/integration/Mvc/Router/AddPatchCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Router/AddPostCest.php b/tests/integration/Mvc/Router/AddPostCest.php index caf6b2f9edd..53bd26f8e1c 100644 --- a/tests/integration/Mvc/Router/AddPostCest.php +++ b/tests/integration/Mvc/Router/AddPostCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Router/AddPurgeCest.php b/tests/integration/Mvc/Router/AddPurgeCest.php index 4ec4ee6cf1f..5a29c46e6c4 100644 --- a/tests/integration/Mvc/Router/AddPurgeCest.php +++ b/tests/integration/Mvc/Router/AddPurgeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Router/AddPutCest.php b/tests/integration/Mvc/Router/AddPutCest.php index 552f070065b..f6f0227d739 100644 --- a/tests/integration/Mvc/Router/AddPutCest.php +++ b/tests/integration/Mvc/Router/AddPutCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Router/AddTraceCest.php b/tests/integration/Mvc/Router/AddTraceCest.php index e67b3105ce8..39878f77fbe 100644 --- a/tests/integration/Mvc/Router/AddTraceCest.php +++ b/tests/integration/Mvc/Router/AddTraceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Router/Annotations/AddCest.php b/tests/integration/Mvc/Router/Annotations/AddCest.php index 5d89923b939..c608d10ce70 100644 --- a/tests/integration/Mvc/Router/Annotations/AddCest.php +++ b/tests/integration/Mvc/Router/Annotations/AddCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddCest /** * Tests Phalcon\Mvc\Router\Annotations :: add() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsAdd(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/AddConnectCest.php b/tests/integration/Mvc/Router/Annotations/AddConnectCest.php index 76e2e81cdd0..fbcf75482c0 100644 --- a/tests/integration/Mvc/Router/Annotations/AddConnectCest.php +++ b/tests/integration/Mvc/Router/Annotations/AddConnectCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddConnectCest /** * Tests Phalcon\Mvc\Router\Annotations :: addConnect() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsAddConnect(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/AddDeleteCest.php b/tests/integration/Mvc/Router/Annotations/AddDeleteCest.php index f7feb472054..0411cf786a5 100644 --- a/tests/integration/Mvc/Router/Annotations/AddDeleteCest.php +++ b/tests/integration/Mvc/Router/Annotations/AddDeleteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddDeleteCest /** * Tests Phalcon\Mvc\Router\Annotations :: addDelete() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsAddDelete(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/AddGetCest.php b/tests/integration/Mvc/Router/Annotations/AddGetCest.php index bc22b5c35c8..bfdb4bd3a0b 100644 --- a/tests/integration/Mvc/Router/Annotations/AddGetCest.php +++ b/tests/integration/Mvc/Router/Annotations/AddGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddGetCest /** * Tests Phalcon\Mvc\Router\Annotations :: addGet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsAddGet(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/AddHeadCest.php b/tests/integration/Mvc/Router/Annotations/AddHeadCest.php index 231c722226d..f6144031e1f 100644 --- a/tests/integration/Mvc/Router/Annotations/AddHeadCest.php +++ b/tests/integration/Mvc/Router/Annotations/AddHeadCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddHeadCest /** * Tests Phalcon\Mvc\Router\Annotations :: addHead() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsAddHead(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/AddModuleResourceCest.php b/tests/integration/Mvc/Router/Annotations/AddModuleResourceCest.php index aadba0be7c9..c9af091ff74 100644 --- a/tests/integration/Mvc/Router/Annotations/AddModuleResourceCest.php +++ b/tests/integration/Mvc/Router/Annotations/AddModuleResourceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddModuleResourceCest /** * Tests Phalcon\Mvc\Router\Annotations :: addModuleResource() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsAddModuleResource(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/AddOptionsCest.php b/tests/integration/Mvc/Router/Annotations/AddOptionsCest.php index c77e9271de0..e444e27813e 100644 --- a/tests/integration/Mvc/Router/Annotations/AddOptionsCest.php +++ b/tests/integration/Mvc/Router/Annotations/AddOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddOptionsCest /** * Tests Phalcon\Mvc\Router\Annotations :: addOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsAddOptions(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/AddPatchCest.php b/tests/integration/Mvc/Router/Annotations/AddPatchCest.php index d60a495218b..bb1f0b0014a 100644 --- a/tests/integration/Mvc/Router/Annotations/AddPatchCest.php +++ b/tests/integration/Mvc/Router/Annotations/AddPatchCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddPatchCest /** * Tests Phalcon\Mvc\Router\Annotations :: addPatch() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsAddPatch(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/AddPostCest.php b/tests/integration/Mvc/Router/Annotations/AddPostCest.php index d522beb3f46..a561b27fdec 100644 --- a/tests/integration/Mvc/Router/Annotations/AddPostCest.php +++ b/tests/integration/Mvc/Router/Annotations/AddPostCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddPostCest /** * Tests Phalcon\Mvc\Router\Annotations :: addPost() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsAddPost(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/AddPurgeCest.php b/tests/integration/Mvc/Router/Annotations/AddPurgeCest.php index 39a071bdbd2..cc61002bfff 100644 --- a/tests/integration/Mvc/Router/Annotations/AddPurgeCest.php +++ b/tests/integration/Mvc/Router/Annotations/AddPurgeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddPurgeCest /** * Tests Phalcon\Mvc\Router\Annotations :: addPurge() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsAddPurge(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/AddPutCest.php b/tests/integration/Mvc/Router/Annotations/AddPutCest.php index 6f4c4a1bf06..9abeab56806 100644 --- a/tests/integration/Mvc/Router/Annotations/AddPutCest.php +++ b/tests/integration/Mvc/Router/Annotations/AddPutCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddPutCest /** * Tests Phalcon\Mvc\Router\Annotations :: addPut() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsAddPut(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/AddResourceCest.php b/tests/integration/Mvc/Router/Annotations/AddResourceCest.php index f4169fa20ea..3637154fe9e 100644 --- a/tests/integration/Mvc/Router/Annotations/AddResourceCest.php +++ b/tests/integration/Mvc/Router/Annotations/AddResourceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddResourceCest /** * Tests Phalcon\Mvc\Router\Annotations :: addResource() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsAddResource(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/AddTraceCest.php b/tests/integration/Mvc/Router/Annotations/AddTraceCest.php index e28248d0f78..aacd5874879 100644 --- a/tests/integration/Mvc/Router/Annotations/AddTraceCest.php +++ b/tests/integration/Mvc/Router/Annotations/AddTraceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddTraceCest /** * Tests Phalcon\Mvc\Router\Annotations :: addTrace() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsAddTrace(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/AttachCest.php b/tests/integration/Mvc/Router/Annotations/AttachCest.php index b2c87a5ae9b..873d90cdfa7 100644 --- a/tests/integration/Mvc/Router/Annotations/AttachCest.php +++ b/tests/integration/Mvc/Router/Annotations/AttachCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AttachCest /** * Tests Phalcon\Mvc\Router\Annotations :: attach() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsAttach(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/ClearCest.php b/tests/integration/Mvc/Router/Annotations/ClearCest.php index bb6af767ead..0705eeb7008 100644 --- a/tests/integration/Mvc/Router/Annotations/ClearCest.php +++ b/tests/integration/Mvc/Router/Annotations/ClearCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ClearCest /** * Tests Phalcon\Mvc\Router\Annotations :: clear() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsClear(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/ConstructCest.php b/tests/integration/Mvc/Router/Annotations/ConstructCest.php index 0217732e15e..c7f9b8f9a29 100644 --- a/tests/integration/Mvc/Router/Annotations/ConstructCest.php +++ b/tests/integration/Mvc/Router/Annotations/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Mvc\Router\Annotations :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsConstruct(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/GetActionNameCest.php b/tests/integration/Mvc/Router/Annotations/GetActionNameCest.php index 5b350cb2c4b..0d0460a6c28 100644 --- a/tests/integration/Mvc/Router/Annotations/GetActionNameCest.php +++ b/tests/integration/Mvc/Router/Annotations/GetActionNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetActionNameCest /** * Tests Phalcon\Mvc\Router\Annotations :: getActionName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsGetActionName(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/GetControllerNameCest.php b/tests/integration/Mvc/Router/Annotations/GetControllerNameCest.php index 8ff7711b363..25c5fa8e4ef 100644 --- a/tests/integration/Mvc/Router/Annotations/GetControllerNameCest.php +++ b/tests/integration/Mvc/Router/Annotations/GetControllerNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetControllerNameCest /** * Tests Phalcon\Mvc\Router\Annotations :: getControllerName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsGetControllerName(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/GetDefaultsCest.php b/tests/integration/Mvc/Router/Annotations/GetDefaultsCest.php index e678f825ede..de6890bbc94 100644 --- a/tests/integration/Mvc/Router/Annotations/GetDefaultsCest.php +++ b/tests/integration/Mvc/Router/Annotations/GetDefaultsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDefaultsCest /** * Tests Phalcon\Mvc\Router\Annotations :: getDefaults() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsGetDefaults(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/GetEventsManagerCest.php b/tests/integration/Mvc/Router/Annotations/GetEventsManagerCest.php index 3e420b3e51d..7d8ae493d4d 100644 --- a/tests/integration/Mvc/Router/Annotations/GetEventsManagerCest.php +++ b/tests/integration/Mvc/Router/Annotations/GetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetEventsManagerCest /** * Tests Phalcon\Mvc\Router\Annotations :: getEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsGetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/GetKeyRouteIdsCest.php b/tests/integration/Mvc/Router/Annotations/GetKeyRouteIdsCest.php index b6ff8e65269..1c74923f96d 100644 --- a/tests/integration/Mvc/Router/Annotations/GetKeyRouteIdsCest.php +++ b/tests/integration/Mvc/Router/Annotations/GetKeyRouteIdsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetKeyRouteIdsCest /** * Tests Phalcon\Mvc\Router\Annotations :: getKeyRouteIds() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsGetKeyRouteIds(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/GetKeyRouteNamesCest.php b/tests/integration/Mvc/Router/Annotations/GetKeyRouteNamesCest.php index 256257792ff..a8edacd7af8 100644 --- a/tests/integration/Mvc/Router/Annotations/GetKeyRouteNamesCest.php +++ b/tests/integration/Mvc/Router/Annotations/GetKeyRouteNamesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetKeyRouteNamesCest /** * Tests Phalcon\Mvc\Router\Annotations :: getKeyRouteNames() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsGetKeyRouteNames(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/GetMatchedRouteCest.php b/tests/integration/Mvc/Router/Annotations/GetMatchedRouteCest.php index ffa0830a474..3d3f2bc1c6b 100644 --- a/tests/integration/Mvc/Router/Annotations/GetMatchedRouteCest.php +++ b/tests/integration/Mvc/Router/Annotations/GetMatchedRouteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetMatchedRouteCest /** * Tests Phalcon\Mvc\Router\Annotations :: getMatchedRoute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsGetMatchedRoute(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/GetMatchesCest.php b/tests/integration/Mvc/Router/Annotations/GetMatchesCest.php index 74bbe5a0b1c..351c3914eb3 100644 --- a/tests/integration/Mvc/Router/Annotations/GetMatchesCest.php +++ b/tests/integration/Mvc/Router/Annotations/GetMatchesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetMatchesCest /** * Tests Phalcon\Mvc\Router\Annotations :: getMatches() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsGetMatches(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/GetModuleNameCest.php b/tests/integration/Mvc/Router/Annotations/GetModuleNameCest.php index b484307f16d..9fe08786345 100644 --- a/tests/integration/Mvc/Router/Annotations/GetModuleNameCest.php +++ b/tests/integration/Mvc/Router/Annotations/GetModuleNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetModuleNameCest /** * Tests Phalcon\Mvc\Router\Annotations :: getModuleName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsGetModuleName(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/GetNamespaceNameCest.php b/tests/integration/Mvc/Router/Annotations/GetNamespaceNameCest.php index 8a5b3f960b5..2aefcb71e5e 100644 --- a/tests/integration/Mvc/Router/Annotations/GetNamespaceNameCest.php +++ b/tests/integration/Mvc/Router/Annotations/GetNamespaceNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetNamespaceNameCest /** * Tests Phalcon\Mvc\Router\Annotations :: getNamespaceName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsGetNamespaceName(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/GetParamsCest.php b/tests/integration/Mvc/Router/Annotations/GetParamsCest.php index dda52e7d3dd..cb551c0da80 100644 --- a/tests/integration/Mvc/Router/Annotations/GetParamsCest.php +++ b/tests/integration/Mvc/Router/Annotations/GetParamsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetParamsCest /** * Tests Phalcon\Mvc\Router\Annotations :: getParams() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsGetParams(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/GetResourcesCest.php b/tests/integration/Mvc/Router/Annotations/GetResourcesCest.php index fbce97665d1..2e13e13a709 100644 --- a/tests/integration/Mvc/Router/Annotations/GetResourcesCest.php +++ b/tests/integration/Mvc/Router/Annotations/GetResourcesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetResourcesCest /** * Tests Phalcon\Mvc\Router\Annotations :: getResources() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsGetResources(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/GetRouteByIdCest.php b/tests/integration/Mvc/Router/Annotations/GetRouteByIdCest.php index b5677086002..d91e6df7e41 100644 --- a/tests/integration/Mvc/Router/Annotations/GetRouteByIdCest.php +++ b/tests/integration/Mvc/Router/Annotations/GetRouteByIdCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetRouteByIdCest /** * Tests Phalcon\Mvc\Router\Annotations :: getRouteById() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsGetRouteById(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/GetRouteByNameCest.php b/tests/integration/Mvc/Router/Annotations/GetRouteByNameCest.php index b56338c799d..0aeade951a8 100644 --- a/tests/integration/Mvc/Router/Annotations/GetRouteByNameCest.php +++ b/tests/integration/Mvc/Router/Annotations/GetRouteByNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetRouteByNameCest /** * Tests Phalcon\Mvc\Router\Annotations :: getRouteByName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsGetRouteByName(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/GetRoutesCest.php b/tests/integration/Mvc/Router/Annotations/GetRoutesCest.php index 2406c6dfc45..6e248d9f88e 100644 --- a/tests/integration/Mvc/Router/Annotations/GetRoutesCest.php +++ b/tests/integration/Mvc/Router/Annotations/GetRoutesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetRoutesCest /** * Tests Phalcon\Mvc\Router\Annotations :: getRoutes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsGetRoutes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/GetSetDICest.php b/tests/integration/Mvc/Router/Annotations/GetSetDICest.php index 36d06bf5f2e..4e0fd0221c9 100644 --- a/tests/integration/Mvc/Router/Annotations/GetSetDICest.php +++ b/tests/integration/Mvc/Router/Annotations/GetSetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetSetDICest /** * Tests Phalcon\Mvc\Router\Annotations :: getDI() / setDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsGetSetDI(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/HandleCest.php b/tests/integration/Mvc/Router/Annotations/HandleCest.php index bed275a3494..32fd8e543fc 100644 --- a/tests/integration/Mvc/Router/Annotations/HandleCest.php +++ b/tests/integration/Mvc/Router/Annotations/HandleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class HandleCest /** * Tests Phalcon\Mvc\Router\Annotations :: handle() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsHandle(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/IsExactControllerNameCest.php b/tests/integration/Mvc/Router/Annotations/IsExactControllerNameCest.php index cd04dd116bc..30bb5a255df 100644 --- a/tests/integration/Mvc/Router/Annotations/IsExactControllerNameCest.php +++ b/tests/integration/Mvc/Router/Annotations/IsExactControllerNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Router/Annotations/MountCest.php b/tests/integration/Mvc/Router/Annotations/MountCest.php index 8e5f84b8a9e..f20b17b5929 100644 --- a/tests/integration/Mvc/Router/Annotations/MountCest.php +++ b/tests/integration/Mvc/Router/Annotations/MountCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class MountCest /** * Tests Phalcon\Mvc\Router\Annotations :: mount() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsMount(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/NotFoundCest.php b/tests/integration/Mvc/Router/Annotations/NotFoundCest.php index 494472281ed..2c224344ee6 100644 --- a/tests/integration/Mvc/Router/Annotations/NotFoundCest.php +++ b/tests/integration/Mvc/Router/Annotations/NotFoundCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class NotFoundCest /** * Tests Phalcon\Mvc\Router\Annotations :: notFound() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsNotFound(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/ProcessActionAnnotationCest.php b/tests/integration/Mvc/Router/Annotations/ProcessActionAnnotationCest.php index cf0845b3623..15cc327315d 100644 --- a/tests/integration/Mvc/Router/Annotations/ProcessActionAnnotationCest.php +++ b/tests/integration/Mvc/Router/Annotations/ProcessActionAnnotationCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ProcessActionAnnotationCest /** * Tests Phalcon\Mvc\Router\Annotations :: processActionAnnotation() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsProcessActionAnnotation(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/ProcessControllerAnnotationCest.php b/tests/integration/Mvc/Router/Annotations/ProcessControllerAnnotationCest.php index dc9e67702db..e126aa270d9 100644 --- a/tests/integration/Mvc/Router/Annotations/ProcessControllerAnnotationCest.php +++ b/tests/integration/Mvc/Router/Annotations/ProcessControllerAnnotationCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ProcessControllerAnnotationCest /** * Tests Phalcon\Mvc\Router\Annotations :: processControllerAnnotation() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsProcessControllerAnnotation(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/RemoveExtraSlashesCest.php b/tests/integration/Mvc/Router/Annotations/RemoveExtraSlashesCest.php index 219d928e949..5eecbeb2d06 100644 --- a/tests/integration/Mvc/Router/Annotations/RemoveExtraSlashesCest.php +++ b/tests/integration/Mvc/Router/Annotations/RemoveExtraSlashesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class RemoveExtraSlashesCest /** * Tests Phalcon\Mvc\Router\Annotations :: removeExtraSlashes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsRemoveExtraSlashes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/SetActionSuffixCest.php b/tests/integration/Mvc/Router/Annotations/SetActionSuffixCest.php index c347cc922b5..2248dbc3776 100644 --- a/tests/integration/Mvc/Router/Annotations/SetActionSuffixCest.php +++ b/tests/integration/Mvc/Router/Annotations/SetActionSuffixCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetActionSuffixCest /** * Tests Phalcon\Mvc\Router\Annotations :: setActionSuffix() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsSetActionSuffix(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/SetControllerSuffixCest.php b/tests/integration/Mvc/Router/Annotations/SetControllerSuffixCest.php index de87db90dab..c20f77d1115 100644 --- a/tests/integration/Mvc/Router/Annotations/SetControllerSuffixCest.php +++ b/tests/integration/Mvc/Router/Annotations/SetControllerSuffixCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetControllerSuffixCest /** * Tests Phalcon\Mvc\Router\Annotations :: setControllerSuffix() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsSetControllerSuffix(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/SetDefaultActionCest.php b/tests/integration/Mvc/Router/Annotations/SetDefaultActionCest.php index b4887afb5ca..396bbf8408b 100644 --- a/tests/integration/Mvc/Router/Annotations/SetDefaultActionCest.php +++ b/tests/integration/Mvc/Router/Annotations/SetDefaultActionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetDefaultActionCest /** * Tests Phalcon\Mvc\Router\Annotations :: setDefaultAction() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsSetDefaultAction(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/SetDefaultControllerCest.php b/tests/integration/Mvc/Router/Annotations/SetDefaultControllerCest.php index ee584abb47c..f14aa15ac35 100644 --- a/tests/integration/Mvc/Router/Annotations/SetDefaultControllerCest.php +++ b/tests/integration/Mvc/Router/Annotations/SetDefaultControllerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetDefaultControllerCest /** * Tests Phalcon\Mvc\Router\Annotations :: setDefaultController() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsSetDefaultController(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/SetDefaultModuleCest.php b/tests/integration/Mvc/Router/Annotations/SetDefaultModuleCest.php index 3e0eeadbe21..a193321748e 100644 --- a/tests/integration/Mvc/Router/Annotations/SetDefaultModuleCest.php +++ b/tests/integration/Mvc/Router/Annotations/SetDefaultModuleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetDefaultModuleCest /** * Tests Phalcon\Mvc\Router\Annotations :: setDefaultModule() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsSetDefaultModule(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/SetDefaultNamespaceCest.php b/tests/integration/Mvc/Router/Annotations/SetDefaultNamespaceCest.php index e555a3fbcfa..74c7c0c218d 100644 --- a/tests/integration/Mvc/Router/Annotations/SetDefaultNamespaceCest.php +++ b/tests/integration/Mvc/Router/Annotations/SetDefaultNamespaceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetDefaultNamespaceCest /** * Tests Phalcon\Mvc\Router\Annotations :: setDefaultNamespace() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsSetDefaultNamespace(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/SetDefaultsCest.php b/tests/integration/Mvc/Router/Annotations/SetDefaultsCest.php index 83f2efc9ae1..bb5323c8dd8 100644 --- a/tests/integration/Mvc/Router/Annotations/SetDefaultsCest.php +++ b/tests/integration/Mvc/Router/Annotations/SetDefaultsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetDefaultsCest /** * Tests Phalcon\Mvc\Router\Annotations :: setDefaults() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsSetDefaults(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/SetEventsManagerCest.php b/tests/integration/Mvc/Router/Annotations/SetEventsManagerCest.php index 6aa925936ad..4fec2bb4eb0 100644 --- a/tests/integration/Mvc/Router/Annotations/SetEventsManagerCest.php +++ b/tests/integration/Mvc/Router/Annotations/SetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetEventsManagerCest /** * Tests Phalcon\Mvc\Router\Annotations :: setEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsSetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/SetKeyRouteIdsCest.php b/tests/integration/Mvc/Router/Annotations/SetKeyRouteIdsCest.php index 5fb44374f9d..80212f2bf4a 100644 --- a/tests/integration/Mvc/Router/Annotations/SetKeyRouteIdsCest.php +++ b/tests/integration/Mvc/Router/Annotations/SetKeyRouteIdsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetKeyRouteIdsCest /** * Tests Phalcon\Mvc\Router\Annotations :: setKeyRouteIds() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsSetKeyRouteIds(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/SetKeyRouteNamesCest.php b/tests/integration/Mvc/Router/Annotations/SetKeyRouteNamesCest.php index 2b220c1f075..baaf1e2039d 100644 --- a/tests/integration/Mvc/Router/Annotations/SetKeyRouteNamesCest.php +++ b/tests/integration/Mvc/Router/Annotations/SetKeyRouteNamesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetKeyRouteNamesCest /** * Tests Phalcon\Mvc\Router\Annotations :: setKeyRouteNames() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsSetKeyRouteNames(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Annotations/WasMatchedCest.php b/tests/integration/Mvc/Router/Annotations/WasMatchedCest.php index 7d0382fcbed..3db0a161be0 100644 --- a/tests/integration/Mvc/Router/Annotations/WasMatchedCest.php +++ b/tests/integration/Mvc/Router/Annotations/WasMatchedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class WasMatchedCest /** * Tests Phalcon\Mvc\Router\Annotations :: wasMatched() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterAnnotationsWasMatched(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/AttachCest.php b/tests/integration/Mvc/Router/AttachCest.php index e0289a3183d..6999cc52f88 100644 --- a/tests/integration/Mvc/Router/AttachCest.php +++ b/tests/integration/Mvc/Router/AttachCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class AttachCest * Tests Phalcon\Mvc\Router :: attach() * * @issue https://github.com/phalcon/cphalcon/issues/13326 - * @author Phalcon Team + * @author Phalcon Team * @since 2018-03-24 */ public function shouldAttachRoute(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/ClearCest.php b/tests/integration/Mvc/Router/ClearCest.php index 9b0a491c82c..928dc145f34 100644 --- a/tests/integration/Mvc/Router/ClearCest.php +++ b/tests/integration/Mvc/Router/ClearCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Router/ConstructCest.php b/tests/integration/Mvc/Router/ConstructCest.php index e6c32711d64..f60d8ee7e86 100644 --- a/tests/integration/Mvc/Router/ConstructCest.php +++ b/tests/integration/Mvc/Router/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Mvc\Router :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterConstruct(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/GetActionNameCest.php b/tests/integration/Mvc/Router/GetActionNameCest.php index 0e306e243e5..ccbb78f3021 100644 --- a/tests/integration/Mvc/Router/GetActionNameCest.php +++ b/tests/integration/Mvc/Router/GetActionNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetActionNameCest /** * Tests Phalcon\Mvc\Router :: getActionName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterGetActionName(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/GetControllerNameCest.php b/tests/integration/Mvc/Router/GetControllerNameCest.php index b05735e898c..c7ded111924 100644 --- a/tests/integration/Mvc/Router/GetControllerNameCest.php +++ b/tests/integration/Mvc/Router/GetControllerNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetControllerNameCest /** * Tests Phalcon\Mvc\Router :: getControllerName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterGetControllerName(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/GetEventsManagerCest.php b/tests/integration/Mvc/Router/GetEventsManagerCest.php index ecc7b8514ae..b9d24839046 100644 --- a/tests/integration/Mvc/Router/GetEventsManagerCest.php +++ b/tests/integration/Mvc/Router/GetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetEventsManagerCest /** * Tests Phalcon\Mvc\Router :: getEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterGetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/GetKeyRouteIdsCest.php b/tests/integration/Mvc/Router/GetKeyRouteIdsCest.php index 41c82f551dd..aafbf365802 100644 --- a/tests/integration/Mvc/Router/GetKeyRouteIdsCest.php +++ b/tests/integration/Mvc/Router/GetKeyRouteIdsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetKeyRouteIdsCest /** * Tests Phalcon\Mvc\Router :: getKeyRouteIds() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterGetKeyRouteIds(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/GetKeyRouteNamesCest.php b/tests/integration/Mvc/Router/GetKeyRouteNamesCest.php index 9788d7e8d01..99f1c0a6aa1 100644 --- a/tests/integration/Mvc/Router/GetKeyRouteNamesCest.php +++ b/tests/integration/Mvc/Router/GetKeyRouteNamesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetKeyRouteNamesCest /** * Tests Phalcon\Mvc\Router :: getKeyRouteNames() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterGetKeyRouteNames(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/GetMatchedRouteCest.php b/tests/integration/Mvc/Router/GetMatchedRouteCest.php index 30fbee0d874..fdb054f788d 100644 --- a/tests/integration/Mvc/Router/GetMatchedRouteCest.php +++ b/tests/integration/Mvc/Router/GetMatchedRouteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetMatchedRouteCest /** * Tests Phalcon\Mvc\Router :: getMatchedRoute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterGetMatchedRoute(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/GetMatchesCest.php b/tests/integration/Mvc/Router/GetMatchesCest.php index 302027c929a..e3b626c7823 100644 --- a/tests/integration/Mvc/Router/GetMatchesCest.php +++ b/tests/integration/Mvc/Router/GetMatchesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetMatchesCest /** * Tests Phalcon\Mvc\Router :: getMatches() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterGetMatches(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/GetModuleNameCest.php b/tests/integration/Mvc/Router/GetModuleNameCest.php index 7136f6e5c9b..96a05a2de1f 100644 --- a/tests/integration/Mvc/Router/GetModuleNameCest.php +++ b/tests/integration/Mvc/Router/GetModuleNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetModuleNameCest /** * Tests Phalcon\Mvc\Router :: getModuleName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterGetModuleName(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/GetNamespaceNameCest.php b/tests/integration/Mvc/Router/GetNamespaceNameCest.php index f8446eaed47..2d37ef92983 100644 --- a/tests/integration/Mvc/Router/GetNamespaceNameCest.php +++ b/tests/integration/Mvc/Router/GetNamespaceNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetNamespaceNameCest /** * Tests Phalcon\Mvc\Router :: getNamespaceName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterGetNamespaceName(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/GetParamsCest.php b/tests/integration/Mvc/Router/GetParamsCest.php index 91a06a71a99..09e0d3fed0b 100644 --- a/tests/integration/Mvc/Router/GetParamsCest.php +++ b/tests/integration/Mvc/Router/GetParamsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetParamsCest /** * Tests Phalcon\Mvc\Router :: getParams() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterGetParams(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/GetRouteByIdCest.php b/tests/integration/Mvc/Router/GetRouteByIdCest.php index 781500a6432..ab06467d9b2 100644 --- a/tests/integration/Mvc/Router/GetRouteByIdCest.php +++ b/tests/integration/Mvc/Router/GetRouteByIdCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -72,7 +72,7 @@ public function testGetRouteById(IntegrationTester $I) /** * Tests getting named route * - * @author Andy Gutierrez + * @author Andy Gutierrez * @since 2012-08-27 */ public function testGettingNamedRoutes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/GetRouteByNameCest.php b/tests/integration/Mvc/Router/GetRouteByNameCest.php index 4ef53dd5d4f..4e90ac4824a 100644 --- a/tests/integration/Mvc/Router/GetRouteByNameCest.php +++ b/tests/integration/Mvc/Router/GetRouteByNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -49,7 +49,7 @@ public function testGetRouteByName(IntegrationTester $I) /** * Tests getting named route * - * @author Andy Gutierrez + * @author Andy Gutierrez * @since 2012-08-27 */ public function testGettingNamedRoutes(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/GetRoutesCest.php b/tests/integration/Mvc/Router/GetRoutesCest.php index 445732e2073..2940747b50d 100644 --- a/tests/integration/Mvc/Router/GetRoutesCest.php +++ b/tests/integration/Mvc/Router/GetRoutesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Router/GetSetDICest.php b/tests/integration/Mvc/Router/GetSetDICest.php index 22006f0da09..0411468ddb4 100644 --- a/tests/integration/Mvc/Router/GetSetDICest.php +++ b/tests/integration/Mvc/Router/GetSetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Router/GetSetDefaultsCest.php b/tests/integration/Mvc/Router/GetSetDefaultsCest.php index 3a5c0a8e834..bf975d2edff 100644 --- a/tests/integration/Mvc/Router/GetSetDefaultsCest.php +++ b/tests/integration/Mvc/Router/GetSetDefaultsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Router/Group/AddCest.php b/tests/integration/Mvc/Router/Group/AddCest.php index 70ba5fcd495..4231ebe03b8 100644 --- a/tests/integration/Mvc/Router/Group/AddCest.php +++ b/tests/integration/Mvc/Router/Group/AddCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Router/Group/AddConnectCest.php b/tests/integration/Mvc/Router/Group/AddConnectCest.php index 4e73e8fa503..a722949660b 100644 --- a/tests/integration/Mvc/Router/Group/AddConnectCest.php +++ b/tests/integration/Mvc/Router/Group/AddConnectCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Router/Group/AddDeleteCest.php b/tests/integration/Mvc/Router/Group/AddDeleteCest.php index 290ff5c9de1..55ffdfb497e 100644 --- a/tests/integration/Mvc/Router/Group/AddDeleteCest.php +++ b/tests/integration/Mvc/Router/Group/AddDeleteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Router/Group/AddGetCest.php b/tests/integration/Mvc/Router/Group/AddGetCest.php index f4ad536117f..11bdaf1558f 100644 --- a/tests/integration/Mvc/Router/Group/AddGetCest.php +++ b/tests/integration/Mvc/Router/Group/AddGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Router/Group/AddHeadCest.php b/tests/integration/Mvc/Router/Group/AddHeadCest.php index 86eb268a5d0..98aa13380e0 100644 --- a/tests/integration/Mvc/Router/Group/AddHeadCest.php +++ b/tests/integration/Mvc/Router/Group/AddHeadCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Router/Group/AddOptionsCest.php b/tests/integration/Mvc/Router/Group/AddOptionsCest.php index 0a96a686297..005c65a8b1f 100644 --- a/tests/integration/Mvc/Router/Group/AddOptionsCest.php +++ b/tests/integration/Mvc/Router/Group/AddOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Router/Group/AddPatchCest.php b/tests/integration/Mvc/Router/Group/AddPatchCest.php index 9229598dcdb..24a5499ca13 100644 --- a/tests/integration/Mvc/Router/Group/AddPatchCest.php +++ b/tests/integration/Mvc/Router/Group/AddPatchCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Router/Group/AddPostCest.php b/tests/integration/Mvc/Router/Group/AddPostCest.php index 3ce0fa15e03..2cf10dde4ae 100644 --- a/tests/integration/Mvc/Router/Group/AddPostCest.php +++ b/tests/integration/Mvc/Router/Group/AddPostCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Router/Group/AddPurgeCest.php b/tests/integration/Mvc/Router/Group/AddPurgeCest.php index c0d5e71714b..89785e0fbba 100644 --- a/tests/integration/Mvc/Router/Group/AddPurgeCest.php +++ b/tests/integration/Mvc/Router/Group/AddPurgeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Router/Group/AddPutCest.php b/tests/integration/Mvc/Router/Group/AddPutCest.php index 69c0b768c29..7f292dcddad 100644 --- a/tests/integration/Mvc/Router/Group/AddPutCest.php +++ b/tests/integration/Mvc/Router/Group/AddPutCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Router/Group/AddTraceCest.php b/tests/integration/Mvc/Router/Group/AddTraceCest.php index b63f8f13c6a..4fd493cfd48 100644 --- a/tests/integration/Mvc/Router/Group/AddTraceCest.php +++ b/tests/integration/Mvc/Router/Group/AddTraceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Router/Group/BeforeMatchCest.php b/tests/integration/Mvc/Router/Group/BeforeMatchCest.php index ceaeefcffe1..7d705b36efe 100644 --- a/tests/integration/Mvc/Router/Group/BeforeMatchCest.php +++ b/tests/integration/Mvc/Router/Group/BeforeMatchCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class BeforeMatchCest /** * Tests Phalcon\Mvc\Router\Group :: beforeMatch() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterGroupBeforeMatch(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Group/ClearCest.php b/tests/integration/Mvc/Router/Group/ClearCest.php index 9bf5511a2c4..44207d806a6 100644 --- a/tests/integration/Mvc/Router/Group/ClearCest.php +++ b/tests/integration/Mvc/Router/Group/ClearCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Router/Group/ConstructCest.php b/tests/integration/Mvc/Router/Group/ConstructCest.php index 47bb9a46b09..f0daff81efc 100644 --- a/tests/integration/Mvc/Router/Group/ConstructCest.php +++ b/tests/integration/Mvc/Router/Group/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Mvc\Router\Group :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterGroupConstruct(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Group/GetBeforeMatchCest.php b/tests/integration/Mvc/Router/Group/GetBeforeMatchCest.php index ebf389debfe..dc6bcfcb079 100644 --- a/tests/integration/Mvc/Router/Group/GetBeforeMatchCest.php +++ b/tests/integration/Mvc/Router/Group/GetBeforeMatchCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetBeforeMatchCest /** * Tests Phalcon\Mvc\Router\Group :: getBeforeMatch() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterGroupGetBeforeMatch(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Group/GetHostnameCest.php b/tests/integration/Mvc/Router/Group/GetHostnameCest.php index 8a56a24224a..98ef97256a1 100644 --- a/tests/integration/Mvc/Router/Group/GetHostnameCest.php +++ b/tests/integration/Mvc/Router/Group/GetHostnameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetHostnameCest /** * Tests Phalcon\Mvc\Router\Group :: getHostname() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterGroupGetHostname(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Group/GetPathsCest.php b/tests/integration/Mvc/Router/Group/GetPathsCest.php index db9b5aac1ac..ea1a0d37309 100644 --- a/tests/integration/Mvc/Router/Group/GetPathsCest.php +++ b/tests/integration/Mvc/Router/Group/GetPathsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetPathsCest /** * Tests Phalcon\Mvc\Router\Group :: getPaths() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterGroupGetPaths(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Group/GetRoutesCest.php b/tests/integration/Mvc/Router/Group/GetRoutesCest.php index 0aaeae982f3..84be6ef1285 100644 --- a/tests/integration/Mvc/Router/Group/GetRoutesCest.php +++ b/tests/integration/Mvc/Router/Group/GetRoutesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Router/Group/GetSetPrefixCest.php b/tests/integration/Mvc/Router/Group/GetSetPrefixCest.php index 8751e2833cb..bec64bcb1f9 100644 --- a/tests/integration/Mvc/Router/Group/GetSetPrefixCest.php +++ b/tests/integration/Mvc/Router/Group/GetSetPrefixCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Router/Group/SetHostnameCest.php b/tests/integration/Mvc/Router/Group/SetHostnameCest.php index 2eb1440d0e2..07dff08a055 100644 --- a/tests/integration/Mvc/Router/Group/SetHostnameCest.php +++ b/tests/integration/Mvc/Router/Group/SetHostnameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetHostnameCest /** * Tests Phalcon\Mvc\Router\Group :: setHostname() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterGroupSetHostname(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Group/SetPathsCest.php b/tests/integration/Mvc/Router/Group/SetPathsCest.php index fd6af96ca3e..8a102b167f1 100644 --- a/tests/integration/Mvc/Router/Group/SetPathsCest.php +++ b/tests/integration/Mvc/Router/Group/SetPathsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetPathsCest /** * Tests Phalcon\Mvc\Router\Group :: setPaths() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterGroupSetPaths(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/HandleCest.php b/tests/integration/Mvc/Router/HandleCest.php index c89ebe9cc59..ba112e073a9 100644 --- a/tests/integration/Mvc/Router/HandleCest.php +++ b/tests/integration/Mvc/Router/HandleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class HandleCest /** * Tests Phalcon\Mvc\Router :: handle() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterHandle(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/IsExactControllerNameCest.php b/tests/integration/Mvc/Router/IsExactControllerNameCest.php index b1d2d5b7c7d..741c2cbdb2c 100644 --- a/tests/integration/Mvc/Router/IsExactControllerNameCest.php +++ b/tests/integration/Mvc/Router/IsExactControllerNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Router/MountCest.php b/tests/integration/Mvc/Router/MountCest.php index 8a49d6c4573..1f9cebbc38d 100644 --- a/tests/integration/Mvc/Router/MountCest.php +++ b/tests/integration/Mvc/Router/MountCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class MountCest /** * Tests Phalcon\Mvc\Router :: mount() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterMount(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/NotFoundCest.php b/tests/integration/Mvc/Router/NotFoundCest.php index ad01949151c..0b8957e1686 100644 --- a/tests/integration/Mvc/Router/NotFoundCest.php +++ b/tests/integration/Mvc/Router/NotFoundCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class NotFoundCest /** * Tests setting notFound handler * - * @author Andy Gutierrez + * @author Andy Gutierrez * @since 2013-03-01 */ public function testSettingNotFoundPaths(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Refactor-AnnotationsCest.php b/tests/integration/Mvc/Router/Refactor-AnnotationsCest.php index b80692aa64f..567ca15d535 100644 --- a/tests/integration/Mvc/Router/Refactor-AnnotationsCest.php +++ b/tests/integration/Mvc/Router/Refactor-AnnotationsCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Router/Refactor-GroupCest.php b/tests/integration/Mvc/Router/Refactor-GroupCest.php index 5034c8815a9..e7bc367f1ac 100644 --- a/tests/integration/Mvc/Router/Refactor-GroupCest.php +++ b/tests/integration/Mvc/Router/Refactor-GroupCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -149,7 +149,7 @@ public function testHostnameRouteGroup(IntegrationTester $I, Example $example) $group = new Group(); - $group->setHostname('my.phalconphp.com'); + $group->setHostname('my.phalcon.io'); $group->add( '/edit', @@ -185,8 +185,8 @@ private function getHostnameRoutes(): array 'posts3', ], [ - 'my.phalconphp.com', - 'my.phalconphp.com', + 'my.phalcon.io', + 'my.phalcon.io', 'posts', ], [ @@ -227,7 +227,7 @@ public function testHostnameRegexRouteGroup(IntegrationTester $I, Example $examp $group = new Group(); - $group->setHostname('([a-z]+).phalconphp.com'); + $group->setHostname('([a-z]+).phalcon.io'); $group->add( '/edit', @@ -263,8 +263,8 @@ private function getHostnameRoutesRegex(): array 'posts3', ], [ - 'my.phalconphp.com', - '([a-z]+).phalconphp.com', + 'my.phalcon.io', + '([a-z]+).phalcon.io', 'posts', ], [ diff --git a/tests/integration/Mvc/Router/RemoveExtraSlashesCest.php b/tests/integration/Mvc/Router/RemoveExtraSlashesCest.php index f4e164ed54f..56a8a35abe8 100644 --- a/tests/integration/Mvc/Router/RemoveExtraSlashesCest.php +++ b/tests/integration/Mvc/Router/RemoveExtraSlashesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class RemoveExtraSlashesCest /** * Tests removing extra slashes * - * @author Andy Gutierrez + * @author Andy Gutierrez * @since 2012-12-16 * * @dataProvider getMatchingWithExtraSlashes diff --git a/tests/integration/Mvc/Router/Route/BeforeMatchCest.php b/tests/integration/Mvc/Router/Route/BeforeMatchCest.php index cb67c6b05df..fb8bc023821 100644 --- a/tests/integration/Mvc/Router/Route/BeforeMatchCest.php +++ b/tests/integration/Mvc/Router/Route/BeforeMatchCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class BeforeMatchCest /** * Tests Phalcon\Mvc\Router\Route :: beforeMatch() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterRouteBeforeMatch(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Route/CompilePatternCest.php b/tests/integration/Mvc/Router/Route/CompilePatternCest.php index 6d16d1fa865..6b996fbc163 100644 --- a/tests/integration/Mvc/Router/Route/CompilePatternCest.php +++ b/tests/integration/Mvc/Router/Route/CompilePatternCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CompilePatternCest /** * Tests Phalcon\Mvc\Router\Route :: compilePattern() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterRouteCompilePattern(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Route/ConstructCest.php b/tests/integration/Mvc/Router/Route/ConstructCest.php index f7060e423e6..dd18896bfcf 100644 --- a/tests/integration/Mvc/Router/Route/ConstructCest.php +++ b/tests/integration/Mvc/Router/Route/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Mvc\Router\Route :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterRouteConstruct(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Route/ConvertCest.php b/tests/integration/Mvc/Router/Route/ConvertCest.php index 5043688588c..294f08f634b 100644 --- a/tests/integration/Mvc/Router/Route/ConvertCest.php +++ b/tests/integration/Mvc/Router/Route/ConvertCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConvertCest /** * Tests Phalcon\Mvc\Router\Route :: convert() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterRouteConvert(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Route/ExtractNamedParamsCest.php b/tests/integration/Mvc/Router/Route/ExtractNamedParamsCest.php index cd4c6232548..4a3b33d10b5 100644 --- a/tests/integration/Mvc/Router/Route/ExtractNamedParamsCest.php +++ b/tests/integration/Mvc/Router/Route/ExtractNamedParamsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ExtractNamedParamsCest /** * Tests Phalcon\Mvc\Router\Route :: extractNamedParams() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterRouteExtractNamedParams(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Route/GetBeforeMatchCest.php b/tests/integration/Mvc/Router/Route/GetBeforeMatchCest.php index 442b8919161..90f61661afd 100644 --- a/tests/integration/Mvc/Router/Route/GetBeforeMatchCest.php +++ b/tests/integration/Mvc/Router/Route/GetBeforeMatchCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetBeforeMatchCest /** * Tests Phalcon\Mvc\Router\Route :: getBeforeMatch() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterRouteGetBeforeMatch(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Route/GetCompiledPatternCest.php b/tests/integration/Mvc/Router/Route/GetCompiledPatternCest.php index beef0b4b871..94075f66c1d 100644 --- a/tests/integration/Mvc/Router/Route/GetCompiledPatternCest.php +++ b/tests/integration/Mvc/Router/Route/GetCompiledPatternCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetCompiledPatternCest /** * Tests Phalcon\Mvc\Router\Route :: getCompiledPattern() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterRouteGetCompiledPattern(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Route/GetConvertersCest.php b/tests/integration/Mvc/Router/Route/GetConvertersCest.php index 09b2140bab2..0f494d016b1 100644 --- a/tests/integration/Mvc/Router/Route/GetConvertersCest.php +++ b/tests/integration/Mvc/Router/Route/GetConvertersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetConvertersCest /** * Tests Phalcon\Mvc\Router\Route :: getConverters() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterRouteGetConverters(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Route/GetGroupCest.php b/tests/integration/Mvc/Router/Route/GetGroupCest.php index a06609364db..639c8616bcc 100644 --- a/tests/integration/Mvc/Router/Route/GetGroupCest.php +++ b/tests/integration/Mvc/Router/Route/GetGroupCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetGroupCest /** * Tests Phalcon\Mvc\Router\Route :: getGroup() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterRouteGetGroup(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Route/GetHostnameCest.php b/tests/integration/Mvc/Router/Route/GetHostnameCest.php index d96b4e128bd..9f8368b2dca 100644 --- a/tests/integration/Mvc/Router/Route/GetHostnameCest.php +++ b/tests/integration/Mvc/Router/Route/GetHostnameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetHostnameCest /** * Tests Phalcon\Mvc\Router\Route :: getHostname() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterRouteGetHostname(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Route/GetHttpMethodsCest.php b/tests/integration/Mvc/Router/Route/GetHttpMethodsCest.php index a95776652eb..1b8af2ebd81 100644 --- a/tests/integration/Mvc/Router/Route/GetHttpMethodsCest.php +++ b/tests/integration/Mvc/Router/Route/GetHttpMethodsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetHttpMethodsCest /** * Tests Phalcon\Mvc\Router\Route :: getHttpMethods() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterRouteGetHttpMethods(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Route/GetIdCest.php b/tests/integration/Mvc/Router/Route/GetIdCest.php index e5ed35e0e06..ef2cc911f67 100644 --- a/tests/integration/Mvc/Router/Route/GetIdCest.php +++ b/tests/integration/Mvc/Router/Route/GetIdCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetIdCest /** * Tests Phalcon\Mvc\Router\Route :: getId() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterRouteGetId(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Route/GetMatchCest.php b/tests/integration/Mvc/Router/Route/GetMatchCest.php index fdec640658c..5533dcff6d6 100644 --- a/tests/integration/Mvc/Router/Route/GetMatchCest.php +++ b/tests/integration/Mvc/Router/Route/GetMatchCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetMatchCest /** * Tests Phalcon\Mvc\Router\Route :: getMatch() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterRouteGetMatch(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Route/GetNameCest.php b/tests/integration/Mvc/Router/Route/GetNameCest.php index 94de8883daa..5dc6a52c6c7 100644 --- a/tests/integration/Mvc/Router/Route/GetNameCest.php +++ b/tests/integration/Mvc/Router/Route/GetNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetNameCest /** * Tests Phalcon\Mvc\Router\Route :: getName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterRouteGetName(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Route/GetPathsCest.php b/tests/integration/Mvc/Router/Route/GetPathsCest.php index e74d54acb77..0327903eae5 100644 --- a/tests/integration/Mvc/Router/Route/GetPathsCest.php +++ b/tests/integration/Mvc/Router/Route/GetPathsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetPathsCest /** * Tests Phalcon\Mvc\Router\Route :: getPaths() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterRouteGetPaths(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Route/GetPatternCest.php b/tests/integration/Mvc/Router/Route/GetPatternCest.php index 0f733397d13..ff6c9f34e09 100644 --- a/tests/integration/Mvc/Router/Route/GetPatternCest.php +++ b/tests/integration/Mvc/Router/Route/GetPatternCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetPatternCest /** * Tests Phalcon\Mvc\Router\Route :: getPattern() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterRouteGetPattern(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Route/GetReversedPathsCest.php b/tests/integration/Mvc/Router/Route/GetReversedPathsCest.php index 5f7b25c3189..0ab5fce4567 100644 --- a/tests/integration/Mvc/Router/Route/GetReversedPathsCest.php +++ b/tests/integration/Mvc/Router/Route/GetReversedPathsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetReversedPathsCest /** * Tests Phalcon\Mvc\Router\Route :: getReversedPaths() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterRouteGetReversedPaths(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Route/GetRouteIdCest.php b/tests/integration/Mvc/Router/Route/GetRouteIdCest.php index a3ebd8c236f..41247bef213 100644 --- a/tests/integration/Mvc/Router/Route/GetRouteIdCest.php +++ b/tests/integration/Mvc/Router/Route/GetRouteIdCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetRouteIdCest /** * Tests Phalcon\Mvc\Router\Route :: getRouteId() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterRouteGetRouteId(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Route/GetRoutePathsCest.php b/tests/integration/Mvc/Router/Route/GetRoutePathsCest.php index a75cae74de0..016bc286ba4 100644 --- a/tests/integration/Mvc/Router/Route/GetRoutePathsCest.php +++ b/tests/integration/Mvc/Router/Route/GetRoutePathsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetRoutePathsCest /** * Tests Phalcon\Mvc\Router\Route :: getRoutePaths() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterRouteGetRoutePaths(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Route/MatchCest.php b/tests/integration/Mvc/Router/Route/MatchCest.php index 18a19b46048..f333b92c2fe 100644 --- a/tests/integration/Mvc/Router/Route/MatchCest.php +++ b/tests/integration/Mvc/Router/Route/MatchCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class MatchCest /** * Tests Phalcon\Mvc\Router\Route :: match() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterRouteMatch(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Route/ReConfigureCest.php b/tests/integration/Mvc/Router/Route/ReConfigureCest.php index 61f34042a8e..1080e5d3776 100644 --- a/tests/integration/Mvc/Router/Route/ReConfigureCest.php +++ b/tests/integration/Mvc/Router/Route/ReConfigureCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ReConfigureCest /** * Tests Phalcon\Mvc\Router\Route :: reConfigure() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterRouteReConfigure(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Route/ResetCest.php b/tests/integration/Mvc/Router/Route/ResetCest.php index ab20f774e27..f0b36659e79 100644 --- a/tests/integration/Mvc/Router/Route/ResetCest.php +++ b/tests/integration/Mvc/Router/Route/ResetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ResetCest /** * Tests Phalcon\Mvc\Router\Route :: reset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterRouteReset(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Route/SetGroupCest.php b/tests/integration/Mvc/Router/Route/SetGroupCest.php index 051ddaaf86a..54458e98b30 100644 --- a/tests/integration/Mvc/Router/Route/SetGroupCest.php +++ b/tests/integration/Mvc/Router/Route/SetGroupCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetGroupCest /** * Tests Phalcon\Mvc\Router\Route :: setGroup() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterRouteSetGroup(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Route/SetHostnameCest.php b/tests/integration/Mvc/Router/Route/SetHostnameCest.php index fa469073476..611fd740483 100644 --- a/tests/integration/Mvc/Router/Route/SetHostnameCest.php +++ b/tests/integration/Mvc/Router/Route/SetHostnameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetHostnameCest /** * Tests Phalcon\Mvc\Router\Route :: setHostname() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterRouteSetHostname(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Route/SetHttpMethodsCest.php b/tests/integration/Mvc/Router/Route/SetHttpMethodsCest.php index 59e2bbd2b24..6245f69e4e4 100644 --- a/tests/integration/Mvc/Router/Route/SetHttpMethodsCest.php +++ b/tests/integration/Mvc/Router/Route/SetHttpMethodsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetHttpMethodsCest /** * Tests Phalcon\Mvc\Router\Route :: setHttpMethods() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterRouteSetHttpMethods(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Route/SetNameCest.php b/tests/integration/Mvc/Router/Route/SetNameCest.php index 4a473441604..d2dc9670bb4 100644 --- a/tests/integration/Mvc/Router/Route/SetNameCest.php +++ b/tests/integration/Mvc/Router/Route/SetNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetNameCest /** * Tests Phalcon\Mvc\Router\Route :: setName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterRouteSetName(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/Route/ViaCest.php b/tests/integration/Mvc/Router/Route/ViaCest.php index c6b29685b29..4e4783bd430 100644 --- a/tests/integration/Mvc/Router/Route/ViaCest.php +++ b/tests/integration/Mvc/Router/Route/ViaCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ViaCest /** * Tests Phalcon\Mvc\Router\Route :: via() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterRouteVia(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/SetDICest.php b/tests/integration/Mvc/Router/SetDICest.php index e7518e32563..d310984eb08 100644 --- a/tests/integration/Mvc/Router/SetDICest.php +++ b/tests/integration/Mvc/Router/SetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetDICest /** * Tests Phalcon\Mvc\Router :: setDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterSetDI(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/SetDefaultActionCest.php b/tests/integration/Mvc/Router/SetDefaultActionCest.php index 103466b18e7..46c71d39a70 100644 --- a/tests/integration/Mvc/Router/SetDefaultActionCest.php +++ b/tests/integration/Mvc/Router/SetDefaultActionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Router/SetDefaultControllerCest.php b/tests/integration/Mvc/Router/SetDefaultControllerCest.php index 3578edb4b26..c746c77346a 100644 --- a/tests/integration/Mvc/Router/SetDefaultControllerCest.php +++ b/tests/integration/Mvc/Router/SetDefaultControllerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Router/SetDefaultModuleCest.php b/tests/integration/Mvc/Router/SetDefaultModuleCest.php index 02b30fbc462..1dc51a0f2a0 100644 --- a/tests/integration/Mvc/Router/SetDefaultModuleCest.php +++ b/tests/integration/Mvc/Router/SetDefaultModuleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Router/SetDefaultNamespaceCest.php b/tests/integration/Mvc/Router/SetDefaultNamespaceCest.php index 51a40ffd55a..72771bb5b1e 100644 --- a/tests/integration/Mvc/Router/SetDefaultNamespaceCest.php +++ b/tests/integration/Mvc/Router/SetDefaultNamespaceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/Router/SetEventsManagerCest.php b/tests/integration/Mvc/Router/SetEventsManagerCest.php index 6ef3b314571..f70852da96d 100644 --- a/tests/integration/Mvc/Router/SetEventsManagerCest.php +++ b/tests/integration/Mvc/Router/SetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetEventsManagerCest /** * Tests Phalcon\Mvc\Router :: setEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterSetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/SetKeyRouteIdsCest.php b/tests/integration/Mvc/Router/SetKeyRouteIdsCest.php index cec2f21837c..95df577d10d 100644 --- a/tests/integration/Mvc/Router/SetKeyRouteIdsCest.php +++ b/tests/integration/Mvc/Router/SetKeyRouteIdsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetKeyRouteIdsCest /** * Tests Phalcon\Mvc\Router :: setKeyRouteIds() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterSetKeyRouteIds(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/SetKeyRouteNamesCest.php b/tests/integration/Mvc/Router/SetKeyRouteNamesCest.php index 1c267c48bc1..bf6440ca045 100644 --- a/tests/integration/Mvc/Router/SetKeyRouteNamesCest.php +++ b/tests/integration/Mvc/Router/SetKeyRouteNamesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetKeyRouteNamesCest /** * Tests Phalcon\Mvc\Router :: setKeyRouteNames() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterSetKeyRouteNames(IntegrationTester $I) diff --git a/tests/integration/Mvc/Router/WasMatchedCest.php b/tests/integration/Mvc/Router/WasMatchedCest.php index 625c0e21c43..2345fc14987 100644 --- a/tests/integration/Mvc/Router/WasMatchedCest.php +++ b/tests/integration/Mvc/Router/WasMatchedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class WasMatchedCest /** * Tests Phalcon\Mvc\Router :: wasMatched() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcRouterWasMatched(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/CleanTemplateAfterCest.php b/tests/integration/Mvc/View/CleanTemplateAfterCest.php index 0eb034042ff..e33f9835af9 100644 --- a/tests/integration/Mvc/View/CleanTemplateAfterCest.php +++ b/tests/integration/Mvc/View/CleanTemplateAfterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CleanTemplateAfterCest /** * Tests Phalcon\Mvc\View :: cleanTemplateAfter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewCleanTemplateAfter(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/CleanTemplateBeforeCest.php b/tests/integration/Mvc/View/CleanTemplateBeforeCest.php index f5b659f6ce3..0f85c315809 100644 --- a/tests/integration/Mvc/View/CleanTemplateBeforeCest.php +++ b/tests/integration/Mvc/View/CleanTemplateBeforeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CleanTemplateBeforeCest /** * Tests Phalcon\Mvc\View :: cleanTemplateBefore() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewCleanTemplateBefore(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/ConstructCest.php b/tests/integration/Mvc/View/ConstructCest.php index 72ef9ee9887..d762e76ed27 100644 --- a/tests/integration/Mvc/View/ConstructCest.php +++ b/tests/integration/Mvc/View/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Mvc\View :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewConstruct(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/DisableCest.php b/tests/integration/Mvc/View/DisableCest.php index 6440af8156e..d7c4289f8fe 100644 --- a/tests/integration/Mvc/View/DisableCest.php +++ b/tests/integration/Mvc/View/DisableCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class DisableCest /** * Tests Phalcon\Mvc\View :: disable() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewDisable(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/DisableLevelCest.php b/tests/integration/Mvc/View/DisableLevelCest.php index 398cb17d0d1..b6f9c0e81b9 100644 --- a/tests/integration/Mvc/View/DisableLevelCest.php +++ b/tests/integration/Mvc/View/DisableLevelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class DisableLevelCest /** * Tests Phalcon\Mvc\View :: disableLevel() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewDisableLevel(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/EnableCest.php b/tests/integration/Mvc/View/EnableCest.php index bdb28eafc21..304e60fb1b2 100644 --- a/tests/integration/Mvc/View/EnableCest.php +++ b/tests/integration/Mvc/View/EnableCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class EnableCest /** * Tests Phalcon\Mvc\View :: enable() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEnable(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Php/ConstructCest.php b/tests/integration/Mvc/View/Engine/Php/ConstructCest.php index beef224e0f0..504347dbf74 100644 --- a/tests/integration/Mvc/View/Engine/Php/ConstructCest.php +++ b/tests/integration/Mvc/View/Engine/Php/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Mvc\View\Engine\Php :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEnginePhpConstruct(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Php/GetContentCest.php b/tests/integration/Mvc/View/Engine/Php/GetContentCest.php index 8ba7475f8e2..52da62b7bf2 100644 --- a/tests/integration/Mvc/View/Engine/Php/GetContentCest.php +++ b/tests/integration/Mvc/View/Engine/Php/GetContentCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/View/Engine/Php/GetEventsManagerCest.php b/tests/integration/Mvc/View/Engine/Php/GetEventsManagerCest.php index c7ce26653ae..d168c4303fa 100644 --- a/tests/integration/Mvc/View/Engine/Php/GetEventsManagerCest.php +++ b/tests/integration/Mvc/View/Engine/Php/GetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetEventsManagerCest /** * Tests Phalcon\Mvc\View\Engine\Php :: getEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEnginePhpGetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Php/GetSetDICest.php b/tests/integration/Mvc/View/Engine/Php/GetSetDICest.php index afbb7365c05..953b9d970d6 100644 --- a/tests/integration/Mvc/View/Engine/Php/GetSetDICest.php +++ b/tests/integration/Mvc/View/Engine/Php/GetSetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/View/Engine/Php/GetViewCest.php b/tests/integration/Mvc/View/Engine/Php/GetViewCest.php index b8d247dd754..2d1c8982492 100644 --- a/tests/integration/Mvc/View/Engine/Php/GetViewCest.php +++ b/tests/integration/Mvc/View/Engine/Php/GetViewCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/View/Engine/Php/PartialCest.php b/tests/integration/Mvc/View/Engine/Php/PartialCest.php index 3320dc00289..c2709f1c75c 100644 --- a/tests/integration/Mvc/View/Engine/Php/PartialCest.php +++ b/tests/integration/Mvc/View/Engine/Php/PartialCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class PartialCest /** * Tests Phalcon\Mvc\View\Engine\Php :: partial() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEnginePhpPartial(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Php/RenderCest.php b/tests/integration/Mvc/View/Engine/Php/RenderCest.php index 5f0001aba13..43b966428fc 100644 --- a/tests/integration/Mvc/View/Engine/Php/RenderCest.php +++ b/tests/integration/Mvc/View/Engine/Php/RenderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class RenderCest /** * Tests Phalcon\Mvc\View\Engine\Php :: render() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEnginePhpRender(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Php/SetEventsManagerCest.php b/tests/integration/Mvc/View/Engine/Php/SetEventsManagerCest.php index e22d5e99dd9..1a7227013a5 100644 --- a/tests/integration/Mvc/View/Engine/Php/SetEventsManagerCest.php +++ b/tests/integration/Mvc/View/Engine/Php/SetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetEventsManagerCest /** * Tests Phalcon\Mvc\View\Engine\Php :: setEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEnginePhpSetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Php/UnderscoreGetCest.php b/tests/integration/Mvc/View/Engine/Php/UnderscoreGetCest.php index e2a545e5def..114f4d32ddf 100644 --- a/tests/integration/Mvc/View/Engine/Php/UnderscoreGetCest.php +++ b/tests/integration/Mvc/View/Engine/Php/UnderscoreGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class UnderscoreGetCest /** * Tests Phalcon\Mvc\View\Engine\Php :: __get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEnginePhpUnderscoreGet(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/CallMacroCest.php b/tests/integration/Mvc/View/Engine/Volt/CallMacroCest.php index 58b4d9d51cb..12383537d51 100644 --- a/tests/integration/Mvc/View/Engine/Volt/CallMacroCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/CallMacroCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CallMacroCest /** * Tests Phalcon\Mvc\View\Engine\Volt :: callMacro() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltCallMacro(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/AddExtensionCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/AddExtensionCest.php index fe302a536b1..0f70f4141d2 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/AddExtensionCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/AddExtensionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddExtensionCest /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: addExtension() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltCompilerAddExtension(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/AddFilterCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/AddFilterCest.php index e8302d1b699..cb8bdee5a41 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/AddFilterCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/AddFilterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class AddFilterCest /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: addFilter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider getVoltAddFilter @@ -50,7 +50,7 @@ public function mvcViewEngineVoltCompilerAddFilter(IntegrationTester $I, Example /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: addFilter() - closure * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider getVoltAddFilterClosure diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/AddFunctionCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/AddFunctionCest.php index 2ca08c28823..116f30291f0 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/AddFunctionCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/AddFunctionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class AddFunctionCest /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: addFunction() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-01-17 * * @dataProvider getVoltAddFunction @@ -51,7 +51,7 @@ public function mvcViewEngineVoltCompilerAddFunction(IntegrationTester $I, Examp /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: addFunction() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-01-17 * * @dataProvider getVoltAddFunctionClosure diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/AttributeReaderCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/AttributeReaderCest.php index ff588b99125..33b0ac5e798 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/AttributeReaderCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/AttributeReaderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AttributeReaderCest /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: attributeReader() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltCompilerAttributeReader(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileAutoEscapeCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileAutoEscapeCest.php index 804094623ee..649f9f038ae 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileAutoEscapeCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileAutoEscapeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CompileAutoEscapeCest /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: compileAutoEscape() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltCompilerCompileAutoEscape(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileCacheCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileCacheCest.php index f7288787964..b1ada615bf9 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileCacheCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileCacheCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CompileCacheCest /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: compileCache() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltCompilerCompileCache(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileCallCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileCallCest.php index f40c9a776f2..f62c70c242d 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileCallCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileCallCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CompileCallCest /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: compileCall() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltCompilerCompileCall(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileCaseCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileCaseCest.php index 65354248bda..67302307bc8 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileCaseCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileCaseCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class CompileCaseCest /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: compileCase() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltCompilerCompileCase(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileCest.php index 86773acd383..55fafdfb8e6 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CompileCest /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: compile() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltCompilerCompile(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileDoCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileDoCest.php index d4a4dbe3c23..79a8de7cc14 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileDoCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileDoCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CompileDoCest /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: compileDo() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltCompilerCompileDo(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileEchoCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileEchoCest.php index 368e0dd3334..b9b0b15bd5c 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileEchoCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileEchoCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CompileEchoCest /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: compileEcho() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltCompilerCompileEcho(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileElseIfCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileElseIfCest.php index dcdb887009a..39447aaa91e 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileElseIfCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileElseIfCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileFileCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileFileCest.php index 12db9583e5a..ad7190c3699 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileFileCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileFileCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class CompileFileCest /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: compileFile() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-01-17 */ public function mvcViewEngineVoltCompilerCompileFile(IntegrationTester $I) @@ -51,7 +51,7 @@ public function mvcViewEngineVoltCompilerCompileFile(IntegrationTester $I) * * @issue https://github.com/phalcon/cphalcon/issues/13242 * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider mvcViewEngineVoltCompilerCompileFileDefaultFilterProvider diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileForElseCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileForElseCest.php index bc88aba8514..c35942ff3aa 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileForElseCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileForElseCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CompileForElseCest /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: compileForElse() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltCompilerCompileForElse(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileForeachCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileForeachCest.php index 812580678e5..de6175b9d3c 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileForeachCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileForeachCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CompileForeachCest /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: compileForeach() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltCompilerCompileForeach(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileIfCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileIfCest.php index e1e7d63bf45..a4a7d7e2ce3 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileIfCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileIfCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileIncludeCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileIncludeCest.php index 376d3247b63..2137e629330 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileIncludeCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileIncludeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CompileIncludeCest /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: compileInclude() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltCompilerCompileInclude(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileMacroCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileMacroCest.php index 30d4b651d78..5ca0df52b42 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileMacroCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileMacroCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CompileMacroCest /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: compileMacro() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltCompilerCompileMacro(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileReturnCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileReturnCest.php index 250e01363ff..471aad28a57 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileReturnCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileReturnCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CompileReturnCest /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: compileReturn() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltCompilerCompileReturn(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileSetCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileSetCest.php index 4584f6980ca..3ea220d8bfa 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileSetCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CompileSetCest /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: compileSet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltCompilerCompileSet(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileStringCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileStringCest.php index a232c42a53f..a73e59e90d9 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileStringCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileStringCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CompileStringCest /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: compileString() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-01-17 * * @dataProvider getVoltCompileString @@ -46,7 +46,7 @@ public function mvcViewEngineVoltCompilerCompileString(IntegrationTester $I, Exa * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: compileString() - syntax * error * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-01-17 * * @dataProvider getVoltCompileStringErrors diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileSwitchCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileSwitchCest.php index 75b2186b785..f4ab790dcf5 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileSwitchCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/CompileSwitchCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CompileSwitchCest /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: compileSwitch() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltCompilerCompileSwitch(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/ConstructCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/ConstructCest.php index fdbd0860260..1d68cf35a4a 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/ConstructCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltCompilerConstruct(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/ExpressionCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/ExpressionCest.php index 0de2f6946de..4fafda57874 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/ExpressionCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/ExpressionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ExpressionCest /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: expression() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltCompilerExpression(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/FireExtensionEventCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/FireExtensionEventCest.php index e88381d4e3a..a074b9e1fe6 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/FireExtensionEventCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/FireExtensionEventCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class FireExtensionEventCest /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: fireExtensionEvent() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltCompilerFireExtensionEvent(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/FunctionCallCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/FunctionCallCest.php index 3b601d4bb81..42f8f8105bd 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/FunctionCallCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/FunctionCallCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class FunctionCallCest /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: functionCall() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltCompilerFunctionCall(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/GetCompiledTemplatePathCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/GetCompiledTemplatePathCest.php index 4ef571fcc8d..160a71e1575 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/GetCompiledTemplatePathCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/GetCompiledTemplatePathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetCompiledTemplatePathCest /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: getCompiledTemplatePath() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltCompilerGetCompiledTemplatePath(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/GetExtensionsCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/GetExtensionsCest.php index 8b96b3fd390..441aa44b58b 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/GetExtensionsCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/GetExtensionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetExtensionsCest /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: getExtensions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltCompilerGetExtensions(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/GetFiltersCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/GetFiltersCest.php index e987285005e..f151a2110b9 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/GetFiltersCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/GetFiltersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetFiltersCest /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: getFilters() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltCompilerGetFilters(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/GetFunctionsCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/GetFunctionsCest.php index f4a386b939c..538466b6c2d 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/GetFunctionsCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/GetFunctionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetFunctionsCest /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: getFunctions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltCompilerGetFunctions(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/GetOptionCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/GetOptionCest.php index 165affe4d02..211c5c87f9a 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/GetOptionCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/GetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetOptionCest /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: getOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltCompilerGetOption(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/GetOptionsCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/GetOptionsCest.php index fed1251d306..058280141e9 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/GetOptionsCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/GetOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetOptionsCest /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: getOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltCompilerGetOptions(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/GetSetDICest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/GetSetDICest.php index f162445a50c..f8577e9a4bb 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/GetSetDICest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/GetSetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/GetTemplatePathCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/GetTemplatePathCest.php index a5062fc9dbf..314094257b5 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/GetTemplatePathCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/GetTemplatePathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetTemplatePathCest /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: getTemplatePath() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltCompilerGetTemplatePath(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/GetUniquePrefixCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/GetUniquePrefixCest.php index 710f2cafa6b..54dbd24a77d 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/GetUniquePrefixCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/GetUniquePrefixCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetUniquePrefixCest /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: getUniquePrefix() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltCompilerGetUniquePrefix(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/ParseCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/ParseCest.php index 12988cecf64..837a20cfb73 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/ParseCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/ParseCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class ParseCest /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: parse() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-01-15 * * @dataProvider getVoltParse @@ -52,7 +52,7 @@ public function mvcViewEngineVoltCompilerParse(IntegrationTester $I, Example $ex * /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: parse() - syntax error * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-01-15 * * @dataProvider getVoltSyntaxErrors @@ -78,7 +78,7 @@ function () use ($volt, $code) { * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: parse() - extends with * error * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-01-15 * * @dataProvider getVoltExtendsError diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/ResolveTestCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/ResolveTestCest.php index 60744005399..a89c8995d37 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/ResolveTestCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/ResolveTestCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ResolveTestCest /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: resolveTest() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltCompilerResolveTest(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/SetOptionCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/SetOptionCest.php index 895ebe20c84..21a0b08e95a 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/SetOptionCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/SetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class SetOptionCest /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: setOption() - autoescape * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-01-17 * * @dataProvider getVoltSetOptionAutoescape diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/SetOptionsCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/SetOptionsCest.php index 00cf96e5ef9..9a3c47ee5b9 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/SetOptionsCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/SetOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetOptionsCest /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: setOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltCompilerSetOptions(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/Compiler/SetUniquePrefixCest.php b/tests/integration/Mvc/View/Engine/Volt/Compiler/SetUniquePrefixCest.php index cc4b66095b5..c86c4158d5d 100644 --- a/tests/integration/Mvc/View/Engine/Volt/Compiler/SetUniquePrefixCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/Compiler/SetUniquePrefixCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetUniquePrefixCest /** * Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: setUniquePrefix() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltCompilerSetUniquePrefix(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/CompilerCest.php b/tests/integration/Mvc/View/Engine/Volt/CompilerCest.php index 5309ff1f0fc..d26f8f2f965 100644 --- a/tests/integration/Mvc/View/Engine/Volt/CompilerCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/CompilerCest.php @@ -4,14 +4,14 @@ +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ - | Copyright (c) 2011-present Phalcon Team (https://phalconphp.com) | + | Copyright (c) 2011-present Phalcon Team (https://phalcon.io) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file 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. | + | to license@phalcon.io so we can send you a copy immediately. | +------------------------------------------------------------------------+ */ diff --git a/tests/integration/Mvc/View/Engine/Volt/CompilerFilesCest.php b/tests/integration/Mvc/View/Engine/Volt/CompilerFilesCest.php index f907e738907..f634948c6a9 100644 --- a/tests/integration/Mvc/View/Engine/Volt/CompilerFilesCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/CompilerFilesCest.php @@ -4,14 +4,14 @@ +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ - | Copyright (c) 2011-present Phalcon Team (https://phalconphp.com) | + | Copyright (c) 2011-present Phalcon Team (https://phalcon.io) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file 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. | + | to license@phalcon.io so we can send you a copy immediately. | +------------------------------------------------------------------------+ */ diff --git a/tests/integration/Mvc/View/Engine/Volt/ConstructCest.php b/tests/integration/Mvc/View/Engine/Volt/ConstructCest.php index 7ed327914a6..c3c1f7d8df6 100644 --- a/tests/integration/Mvc/View/Engine/Volt/ConstructCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Mvc\View\Engine\Volt :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltConstruct(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/ConvertEncodingCest.php b/tests/integration/Mvc/View/Engine/Volt/ConvertEncodingCest.php index c208889a40b..c1a0d0eab08 100644 --- a/tests/integration/Mvc/View/Engine/Volt/ConvertEncodingCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/ConvertEncodingCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConvertEncodingCest /** * Tests Phalcon\Mvc\View\Engine\Volt :: convertEncoding() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltConvertEncoding(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/GetCompilerCest.php b/tests/integration/Mvc/View/Engine/Volt/GetCompilerCest.php index 084385404e0..57fe3d014c0 100644 --- a/tests/integration/Mvc/View/Engine/Volt/GetCompilerCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/GetCompilerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetCompilerCest /** * Tests Phalcon\Mvc\View\Engine\Volt :: getCompiler() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltGetCompiler(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/GetContentCest.php b/tests/integration/Mvc/View/Engine/Volt/GetContentCest.php index 7fb5879151f..98442983556 100644 --- a/tests/integration/Mvc/View/Engine/Volt/GetContentCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/GetContentCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/View/Engine/Volt/GetSetDICest.php b/tests/integration/Mvc/View/Engine/Volt/GetSetDICest.php index 82951bb50ea..e74e0e3667b 100644 --- a/tests/integration/Mvc/View/Engine/Volt/GetSetDICest.php +++ b/tests/integration/Mvc/View/Engine/Volt/GetSetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/View/Engine/Volt/GetSetEventsManagerCest.php b/tests/integration/Mvc/View/Engine/Volt/GetSetEventsManagerCest.php index 8e7a7b01d5c..d276d3d058d 100644 --- a/tests/integration/Mvc/View/Engine/Volt/GetSetEventsManagerCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/GetSetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class GetSetEventsManagerCest * Tests Phalcon\Mvc\View\Engine\Volt :: * getEventsManager()/setEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltGetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/GetSetOptionsCest.php b/tests/integration/Mvc/View/Engine/Volt/GetSetOptionsCest.php index 71be73749de..3de7a03e3e6 100644 --- a/tests/integration/Mvc/View/Engine/Volt/GetSetOptionsCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/GetSetOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/View/Engine/Volt/GetViewCest.php b/tests/integration/Mvc/View/Engine/Volt/GetViewCest.php index 9311ecc5447..952290f99e8 100644 --- a/tests/integration/Mvc/View/Engine/Volt/GetViewCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/GetViewCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/View/Engine/Volt/IsIncludedCest.php b/tests/integration/Mvc/View/Engine/Volt/IsIncludedCest.php index e0cbc2eaeed..c3cd7645408 100644 --- a/tests/integration/Mvc/View/Engine/Volt/IsIncludedCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/IsIncludedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class IsIncludedCest /** * Tests Phalcon\Mvc\View\Engine\Volt :: isIncluded() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltIsIncluded(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/LengthCest.php b/tests/integration/Mvc/View/Engine/Volt/LengthCest.php index c00710b8c7e..6d127431370 100644 --- a/tests/integration/Mvc/View/Engine/Volt/LengthCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/LengthCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class LengthCest /** * Tests Phalcon\Mvc\View\Engine\Volt :: length() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltLength(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/PartialCest.php b/tests/integration/Mvc/View/Engine/Volt/PartialCest.php index 9a625cc3e4b..90d70f0ce5d 100644 --- a/tests/integration/Mvc/View/Engine/Volt/PartialCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/PartialCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class PartialCest /** * Tests Phalcon\Mvc\View\Engine\Volt :: partial() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltPartial(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/RenderCest.php b/tests/integration/Mvc/View/Engine/Volt/RenderCest.php index 0424baa8a4e..ccfa99479cb 100644 --- a/tests/integration/Mvc/View/Engine/Volt/RenderCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/RenderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class RenderCest /** * Tests Phalcon\Mvc\View\Engine\Volt :: render() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltRender(IntegrationTester $I) @@ -36,7 +36,7 @@ public function mvcViewEngineVoltRender(IntegrationTester $I) /** * Tests Phalcon\Mvc\View\Engine\Volt :: render() - events * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-13 */ public function mvcViewEngineVoltRenderEvents(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/SliceCest.php b/tests/integration/Mvc/View/Engine/Volt/SliceCest.php index f5ea2f3769f..704addfb0c5 100644 --- a/tests/integration/Mvc/View/Engine/Volt/SliceCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/SliceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SliceCest /** * Tests Phalcon\Mvc\View\Engine\Volt :: slice() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltSlice(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/SortCest.php b/tests/integration/Mvc/View/Engine/Volt/SortCest.php index 29a8d83e512..38cce2be1ed 100644 --- a/tests/integration/Mvc/View/Engine/Volt/SortCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/SortCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SortCest /** * Tests Phalcon\Mvc\View\Engine\Volt :: sort() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltSort(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Engine/Volt/UnderscoreGetCest.php b/tests/integration/Mvc/View/Engine/Volt/UnderscoreGetCest.php index 9139b07ba68..1dfa62a49b7 100644 --- a/tests/integration/Mvc/View/Engine/Volt/UnderscoreGetCest.php +++ b/tests/integration/Mvc/View/Engine/Volt/UnderscoreGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class UnderscoreGetCest /** * Tests Phalcon\Mvc\View\Engine\Volt :: __get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewEngineVoltUnderscoreGet(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/ExistsCest.php b/tests/integration/Mvc/View/ExistsCest.php index bd00fa7df78..228d9db5645 100644 --- a/tests/integration/Mvc/View/ExistsCest.php +++ b/tests/integration/Mvc/View/ExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/View/FinishCest.php b/tests/integration/Mvc/View/FinishCest.php index f49c387e569..bccd8675fb0 100644 --- a/tests/integration/Mvc/View/FinishCest.php +++ b/tests/integration/Mvc/View/FinishCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class FinishCest /** * Tests Phalcon\Mvc\View :: finish() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewFinish(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/GetActionNameCest.php b/tests/integration/Mvc/View/GetActionNameCest.php index 90bd0757dcb..e6956d9d5c2 100644 --- a/tests/integration/Mvc/View/GetActionNameCest.php +++ b/tests/integration/Mvc/View/GetActionNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/View/GetActiveRenderPathCest.php b/tests/integration/Mvc/View/GetActiveRenderPathCest.php index 213a76d5a70..4e89f79bc24 100644 --- a/tests/integration/Mvc/View/GetActiveRenderPathCest.php +++ b/tests/integration/Mvc/View/GetActiveRenderPathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -29,7 +29,7 @@ class GetActiveRenderPathCest * * @issue https://github.com/phalcon/cphalcon/issues/12139 * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-08-14 */ public function mvcViewGetActiveRenderPath(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/GetBasePathCest.php b/tests/integration/Mvc/View/GetBasePathCest.php index a099227168d..e4d99d13316 100644 --- a/tests/integration/Mvc/View/GetBasePathCest.php +++ b/tests/integration/Mvc/View/GetBasePathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class GetBasePathCest /** * Tests Phalcon\Mvc\View :: getBasePath() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewGetBasePath(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/GetControllerNameCest.php b/tests/integration/Mvc/View/GetControllerNameCest.php index 318086dd343..91bfc1f3038 100644 --- a/tests/integration/Mvc/View/GetControllerNameCest.php +++ b/tests/integration/Mvc/View/GetControllerNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/View/GetParamsToViewCest.php b/tests/integration/Mvc/View/GetParamsToViewCest.php index a5589ae215c..2c411be26d3 100644 --- a/tests/integration/Mvc/View/GetParamsToViewCest.php +++ b/tests/integration/Mvc/View/GetParamsToViewCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetParamsToViewCest /** * Tests Phalcon\Mvc\View :: getParamsToView() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewGetParamsToView(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/GetPartialCest.php b/tests/integration/Mvc/View/GetPartialCest.php index 187d01c62c9..d3bbb33e5a7 100644 --- a/tests/integration/Mvc/View/GetPartialCest.php +++ b/tests/integration/Mvc/View/GetPartialCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetPartialCest /** * Tests Phalcon\Mvc\View :: getPartial() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewGetPartial(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/GetRegisteredEnginesCest.php b/tests/integration/Mvc/View/GetRegisteredEnginesCest.php index 95bfa648cb4..887804772ca 100644 --- a/tests/integration/Mvc/View/GetRegisteredEnginesCest.php +++ b/tests/integration/Mvc/View/GetRegisteredEnginesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetRegisteredEnginesCest /** * Tests Phalcon\Mvc\View :: getRegisteredEngines() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewGetRegisteredEngines(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/GetRenderCest.php b/tests/integration/Mvc/View/GetRenderCest.php index a6500ba78e2..4a3b9a16202 100644 --- a/tests/integration/Mvc/View/GetRenderCest.php +++ b/tests/integration/Mvc/View/GetRenderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class GetRenderCest /** * Tests Phalcon\Mvc\View :: getRender() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewGetRender(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/GetRenderLevelCest.php b/tests/integration/Mvc/View/GetRenderLevelCest.php index 0d39f48b14e..77230e25ad7 100644 --- a/tests/integration/Mvc/View/GetRenderLevelCest.php +++ b/tests/integration/Mvc/View/GetRenderLevelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetRenderLevelCest /** * Tests Phalcon\Mvc\View :: getRenderLevel() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewGetRenderLevel(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/GetSetContentCest.php b/tests/integration/Mvc/View/GetSetContentCest.php index b902ad8cbe0..690f0486b8c 100644 --- a/tests/integration/Mvc/View/GetSetContentCest.php +++ b/tests/integration/Mvc/View/GetSetContentCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/View/GetSetDICest.php b/tests/integration/Mvc/View/GetSetDICest.php index 31e8ecb1f88..9191da8671b 100644 --- a/tests/integration/Mvc/View/GetSetDICest.php +++ b/tests/integration/Mvc/View/GetSetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ class GetSetDICest /** * Tests Phalcon\Mvc\View :: getDI()/setDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewGetDI(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/GetSetEventsManagerCest.php b/tests/integration/Mvc/View/GetSetEventsManagerCest.php index dec629cf75e..0875e5309c2 100644 --- a/tests/integration/Mvc/View/GetSetEventsManagerCest.php +++ b/tests/integration/Mvc/View/GetSetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class GetSetEventsManagerCest /** * Tests Phalcon\Mvc\View :: getEventsManager()/setEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewGetSetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/GetSetLayoutCest.php b/tests/integration/Mvc/View/GetSetLayoutCest.php index 722a4c4f33d..ce12638e127 100644 --- a/tests/integration/Mvc/View/GetSetLayoutCest.php +++ b/tests/integration/Mvc/View/GetSetLayoutCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetSetLayoutCest /** * Tests Phalcon\Mvc\View :: getLayout() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewGetLayout(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/GetSetLayoutsDirCest.php b/tests/integration/Mvc/View/GetSetLayoutsDirCest.php index 9279341aa02..f3c470934d5 100644 --- a/tests/integration/Mvc/View/GetSetLayoutsDirCest.php +++ b/tests/integration/Mvc/View/GetSetLayoutsDirCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/View/GetSetMainViewCest.php b/tests/integration/Mvc/View/GetSetMainViewCest.php index 3d4ccf3f75d..dc6e5fe3982 100644 --- a/tests/integration/Mvc/View/GetSetMainViewCest.php +++ b/tests/integration/Mvc/View/GetSetMainViewCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/View/GetSetPartialsDirCest.php b/tests/integration/Mvc/View/GetSetPartialsDirCest.php index 14bc8e236ac..db5657a17d5 100644 --- a/tests/integration/Mvc/View/GetSetPartialsDirCest.php +++ b/tests/integration/Mvc/View/GetSetPartialsDirCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/View/GetSetRenderLevelCest.php b/tests/integration/Mvc/View/GetSetRenderLevelCest.php index e2792e37b7a..6c9259bd737 100644 --- a/tests/integration/Mvc/View/GetSetRenderLevelCest.php +++ b/tests/integration/Mvc/View/GetSetRenderLevelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/View/GetSetVarCest.php b/tests/integration/Mvc/View/GetSetVarCest.php index 6fc09fe1c07..2b77b66de05 100644 --- a/tests/integration/Mvc/View/GetSetVarCest.php +++ b/tests/integration/Mvc/View/GetSetVarCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/View/GetSetViewsDirCest.php b/tests/integration/Mvc/View/GetSetViewsDirCest.php index 09dd31b9ab4..b7a6762ea03 100644 --- a/tests/integration/Mvc/View/GetSetViewsDirCest.php +++ b/tests/integration/Mvc/View/GetSetViewsDirCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/View/IsDisabledCest.php b/tests/integration/Mvc/View/IsDisabledCest.php index 010950755cf..f01ef62961b 100644 --- a/tests/integration/Mvc/View/IsDisabledCest.php +++ b/tests/integration/Mvc/View/IsDisabledCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class IsDisabledCest /** * Tests Phalcon\Mvc\View :: isDisabled() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-22 */ public function mvcViewIsDisabled(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/PartialCest.php b/tests/integration/Mvc/View/PartialCest.php index cef60a63a6d..58cb2a2e13b 100644 --- a/tests/integration/Mvc/View/PartialCest.php +++ b/tests/integration/Mvc/View/PartialCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class PartialCest /** * Tests Phalcon\Mvc\View :: partial() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewPartial(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/PickCest.php b/tests/integration/Mvc/View/PickCest.php index 97b5e48adb6..02c56b84334 100644 --- a/tests/integration/Mvc/View/PickCest.php +++ b/tests/integration/Mvc/View/PickCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class PickCest /** * Tests Phalcon\Mvc\View :: pick() * - * @author Phalcon Team + * @author Phalcon Team * @since 2013-01-07 */ public function mvcViewPick(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/RegisterEnginesCest.php b/tests/integration/Mvc/View/RegisterEnginesCest.php index 874b4ae3cee..be5eafac321 100644 --- a/tests/integration/Mvc/View/RegisterEnginesCest.php +++ b/tests/integration/Mvc/View/RegisterEnginesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/View/RenderCest.php b/tests/integration/Mvc/View/RenderCest.php index 3ce2df7efa6..6d43afe083c 100644 --- a/tests/integration/Mvc/View/RenderCest.php +++ b/tests/integration/Mvc/View/RenderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class RenderCest /** * Tests View::render with params * - * @author Serghei Iakovlev + * @author Serghei Iakovlev * @since 2017-09-24 * @issue https://github.com/phalcon/cphalcon/issues/13046 */ diff --git a/tests/integration/Mvc/View/ResetCest.php b/tests/integration/Mvc/View/ResetCest.php index 0c52773f5a1..6bd61a36694 100644 --- a/tests/integration/Mvc/View/ResetCest.php +++ b/tests/integration/Mvc/View/ResetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ResetCest /** * Tests Phalcon\Mvc\View :: reset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewReset(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/SetBasePathCest.php b/tests/integration/Mvc/View/SetBasePathCest.php index 1b2f5a4e8f3..108c9600050 100644 --- a/tests/integration/Mvc/View/SetBasePathCest.php +++ b/tests/integration/Mvc/View/SetBasePathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetBasePathCest /** * Tests Phalcon\Mvc\View :: setBasePath() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewSetBasePath(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/SetParamToViewCest.php b/tests/integration/Mvc/View/SetParamToViewCest.php index c81e9ea5758..706992c381c 100644 --- a/tests/integration/Mvc/View/SetParamToViewCest.php +++ b/tests/integration/Mvc/View/SetParamToViewCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetParamToViewCest /** * Tests Phalcon\Mvc\View :: setParamToView() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewSetParamToView(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/SetTemplateAfterCest.php b/tests/integration/Mvc/View/SetTemplateAfterCest.php index dfd46eff432..96913ca558c 100644 --- a/tests/integration/Mvc/View/SetTemplateAfterCest.php +++ b/tests/integration/Mvc/View/SetTemplateAfterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetTemplateAfterCest /** * Tests Phalcon\Mvc\View :: setTemplateAfter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewSetTemplateAfter(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/SetTemplateBeforeCest.php b/tests/integration/Mvc/View/SetTemplateBeforeCest.php index fc04cd10edb..e0477a7b743 100644 --- a/tests/integration/Mvc/View/SetTemplateBeforeCest.php +++ b/tests/integration/Mvc/View/SetTemplateBeforeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetTemplateBeforeCest /** * Tests Phalcon\Mvc\View :: setTemplateBefore() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewSetTemplateBefore(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/SetVarsCest.php b/tests/integration/Mvc/View/SetVarsCest.php index fd1f0f8e1a3..a59ddf64341 100644 --- a/tests/integration/Mvc/View/SetVarsCest.php +++ b/tests/integration/Mvc/View/SetVarsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetVarsCest /** * Tests Phalcon\Mvc\View :: setVars() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewSetVars(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Simple/ConstructCest.php b/tests/integration/Mvc/View/Simple/ConstructCest.php index bc2f063ba5b..4baa15d32de 100644 --- a/tests/integration/Mvc/View/Simple/ConstructCest.php +++ b/tests/integration/Mvc/View/Simple/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class ConstructCest /** * Tests Phalcon\Mvc\View\Simple :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewSimpleConstruct(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Simple/GetActiveRenderPathCest.php b/tests/integration/Mvc/View/Simple/GetActiveRenderPathCest.php index 632b3aea921..79fa641af40 100644 --- a/tests/integration/Mvc/View/Simple/GetActiveRenderPathCest.php +++ b/tests/integration/Mvc/View/Simple/GetActiveRenderPathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetActiveRenderPathCest /** * Tests Phalcon\Mvc\View\Simple :: getActiveRenderPath() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewSimpleGetActiveRenderPath(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Simple/GetRegisteredEnginesCest.php b/tests/integration/Mvc/View/Simple/GetRegisteredEnginesCest.php index d04b9ff4169..b92b634b482 100644 --- a/tests/integration/Mvc/View/Simple/GetRegisteredEnginesCest.php +++ b/tests/integration/Mvc/View/Simple/GetRegisteredEnginesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/View/Simple/GetSetContentCest.php b/tests/integration/Mvc/View/Simple/GetSetContentCest.php index 0e45dfaf257..beda0796e4d 100644 --- a/tests/integration/Mvc/View/Simple/GetSetContentCest.php +++ b/tests/integration/Mvc/View/Simple/GetSetContentCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class GetSetContentCest /** * Tests Phalcon\Mvc\View\Simple :: getContent()/setContent() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewSimpleGetSetContent(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Simple/GetSetDICest.php b/tests/integration/Mvc/View/Simple/GetSetDICest.php index 33d70a183f1..f2b4aade126 100644 --- a/tests/integration/Mvc/View/Simple/GetSetDICest.php +++ b/tests/integration/Mvc/View/Simple/GetSetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ class GetSetDICest /** * Tests Phalcon\Mvc\View\Simple :: getDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewSimpleGetDI(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Simple/GetSetEventsManagerCest.php b/tests/integration/Mvc/View/Simple/GetSetEventsManagerCest.php index d690d2d81a2..98e3c24d87b 100644 --- a/tests/integration/Mvc/View/Simple/GetSetEventsManagerCest.php +++ b/tests/integration/Mvc/View/Simple/GetSetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class GetSetEventsManagerCest /** * Tests Phalcon\Mvc\View\Simple :: getEventsManager()/setEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewSimpleGetSetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Simple/GetSetParamsToViewCest.php b/tests/integration/Mvc/View/Simple/GetSetParamsToViewCest.php index 5095933ef8c..f2efa6791ed 100644 --- a/tests/integration/Mvc/View/Simple/GetSetParamsToViewCest.php +++ b/tests/integration/Mvc/View/Simple/GetSetParamsToViewCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class GetSetParamsToViewCest /** * Tests Phalcon\Mvc\View\Simple :: getParamsToView()/setParamsToView() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewSimpleGetSetParamsToView(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Simple/GetSetVarCest.php b/tests/integration/Mvc/View/Simple/GetSetVarCest.php index eace7bfd374..c4916606a10 100644 --- a/tests/integration/Mvc/View/Simple/GetSetVarCest.php +++ b/tests/integration/Mvc/View/Simple/GetSetVarCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class GetSetVarCest /** * Tests Phalcon\Mvc\View\Simple :: getVar() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewSimpleGeSettVar(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Simple/GetSetViewsDirCest.php b/tests/integration/Mvc/View/Simple/GetSetViewsDirCest.php index 3a0a3b42b07..171af9a2eb9 100644 --- a/tests/integration/Mvc/View/Simple/GetSetViewsDirCest.php +++ b/tests/integration/Mvc/View/Simple/GetSetViewsDirCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class GetSetViewsDirCest /** * Tests Phalcon\Mvc\View\Simple :: getViewsDir()/setViewsDir() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewSimpleGetSetViewsDir(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Simple/PartialCest.php b/tests/integration/Mvc/View/Simple/PartialCest.php index e1b8421c5e1..fab7dc2f9d3 100644 --- a/tests/integration/Mvc/View/Simple/PartialCest.php +++ b/tests/integration/Mvc/View/Simple/PartialCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -33,7 +33,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Mvc\View\Simple :: partial() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewSimplePartial(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Simple/RegisterEnginesCest.php b/tests/integration/Mvc/View/Simple/RegisterEnginesCest.php index 9829297a8e5..e3315eece90 100644 --- a/tests/integration/Mvc/View/Simple/RegisterEnginesCest.php +++ b/tests/integration/Mvc/View/Simple/RegisterEnginesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class RegisterEnginesCest /** * Tests Phalcon\Mvc\View\Simple :: registerEngines() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewSimpleRegisterEngines(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Simple/RenderCest.php b/tests/integration/Mvc/View/Simple/RenderCest.php index 9502513566f..a3f316ef01f 100644 --- a/tests/integration/Mvc/View/Simple/RenderCest.php +++ b/tests/integration/Mvc/View/Simple/RenderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/View/Simple/SetVarsCest.php b/tests/integration/Mvc/View/Simple/SetVarsCest.php index 473d203bd0d..59ed3c1b381 100644 --- a/tests/integration/Mvc/View/Simple/SetVarsCest.php +++ b/tests/integration/Mvc/View/Simple/SetVarsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class SetVarsCest /** * Tests Phalcon\Mvc\View\Simple :: setVars() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewSimpleSetVars(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/Simple/UnderscoreGetSetCest.php b/tests/integration/Mvc/View/Simple/UnderscoreGetSetCest.php index b5d688d4a5f..21b64c9b81d 100644 --- a/tests/integration/Mvc/View/Simple/UnderscoreGetSetCest.php +++ b/tests/integration/Mvc/View/Simple/UnderscoreGetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class UnderscoreGetSetCest /** * Tests Phalcon\Mvc\View\Simple :: __get()/__set() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewSimpleUnderscoreGetSet(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/StartCest.php b/tests/integration/Mvc/View/StartCest.php index a8e97ed9354..0f595880579 100644 --- a/tests/integration/Mvc/View/StartCest.php +++ b/tests/integration/Mvc/View/StartCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class StartCest /** * Tests Phalcon\Mvc\View :: start() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewStart(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/ToStringCest.php b/tests/integration/Mvc/View/ToStringCest.php index a88db47b266..3f96131995d 100644 --- a/tests/integration/Mvc/View/ToStringCest.php +++ b/tests/integration/Mvc/View/ToStringCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class ToStringCest /** * Tests Phalcon\Mvc\View :: toString() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function mvcViewToString(IntegrationTester $I) diff --git a/tests/integration/Mvc/View/UnderscoreGetSetCest.php b/tests/integration/Mvc/View/UnderscoreGetSetCest.php index 86f450c982e..e7ed6aa55c8 100644 --- a/tests/integration/Mvc/View/UnderscoreGetSetCest.php +++ b/tests/integration/Mvc/View/UnderscoreGetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Mvc/View/UnderscoreIssetCest.php b/tests/integration/Mvc/View/UnderscoreIssetCest.php index 4b6c5771415..78d4789c93b 100644 --- a/tests/integration/Mvc/View/UnderscoreIssetCest.php +++ b/tests/integration/Mvc/View/UnderscoreIssetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Paginator/Adapter/Model/ConstructCest.php b/tests/integration/Paginator/Adapter/Model/ConstructCest.php index 7b3d0daadcc..3f456a801bf 100644 --- a/tests/integration/Paginator/Adapter/Model/ConstructCest.php +++ b/tests/integration/Paginator/Adapter/Model/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Paginator\Adapter\Model :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function paginatorAdapterModelConstruct(IntegrationTester $I) diff --git a/tests/integration/Paginator/Adapter/Model/GetLimitCest.php b/tests/integration/Paginator/Adapter/Model/GetLimitCest.php index 377dd7f6185..93384f4aee2 100644 --- a/tests/integration/Paginator/Adapter/Model/GetLimitCest.php +++ b/tests/integration/Paginator/Adapter/Model/GetLimitCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetLimitCest /** * Tests Phalcon\Paginator\Adapter\Model :: getLimit() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function paginatorAdapterModelGetLimit(IntegrationTester $I) diff --git a/tests/integration/Paginator/Adapter/Model/PaginateCest.php b/tests/integration/Paginator/Adapter/Model/PaginateCest.php index a85595e1a14..b66e55040fd 100644 --- a/tests/integration/Paginator/Adapter/Model/PaginateCest.php +++ b/tests/integration/Paginator/Adapter/Model/PaginateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Paginator/Adapter/Model/SetCurrentPageCest.php b/tests/integration/Paginator/Adapter/Model/SetCurrentPageCest.php index 2a0b0bb02b0..32de9ba2076 100644 --- a/tests/integration/Paginator/Adapter/Model/SetCurrentPageCest.php +++ b/tests/integration/Paginator/Adapter/Model/SetCurrentPageCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetCurrentPageCest /** * Tests Phalcon\Paginator\Adapter\Model :: setCurrentPage() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function paginatorAdapterModelSetCurrentPage(IntegrationTester $I) diff --git a/tests/integration/Paginator/Adapter/Model/SetLimitCest.php b/tests/integration/Paginator/Adapter/Model/SetLimitCest.php index cda2ae63e7c..4d7fe89695b 100644 --- a/tests/integration/Paginator/Adapter/Model/SetLimitCest.php +++ b/tests/integration/Paginator/Adapter/Model/SetLimitCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetLimitCest /** * Tests Phalcon\Paginator\Adapter\Model :: setLimit() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function paginatorAdapterModelSetLimit(IntegrationTester $I) diff --git a/tests/integration/Paginator/Adapter/Model/SetRepositoryCest.php b/tests/integration/Paginator/Adapter/Model/SetRepositoryCest.php index 5c1b0851358..a71ae8ba0ba 100644 --- a/tests/integration/Paginator/Adapter/Model/SetRepositoryCest.php +++ b/tests/integration/Paginator/Adapter/Model/SetRepositoryCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetRepositoryCest /** * Tests Phalcon\Paginator\Adapter\Model :: setRepository() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function paginatorAdapterModelSetRepository(IntegrationTester $I) diff --git a/tests/integration/Paginator/Adapter/NativeArray/ConstructCest.php b/tests/integration/Paginator/Adapter/NativeArray/ConstructCest.php index c02df7d4500..5df248b1d4d 100644 --- a/tests/integration/Paginator/Adapter/NativeArray/ConstructCest.php +++ b/tests/integration/Paginator/Adapter/NativeArray/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class ConstructCest /** * Tests Phalcon\Paginator\Adapter\NativeArray :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function paginatorAdapterNativearrayConstruct(IntegrationTester $I) diff --git a/tests/integration/Paginator/Adapter/NativeArray/GetLimitCest.php b/tests/integration/Paginator/Adapter/NativeArray/GetLimitCest.php index 9a80da07da3..76a3625748f 100644 --- a/tests/integration/Paginator/Adapter/NativeArray/GetLimitCest.php +++ b/tests/integration/Paginator/Adapter/NativeArray/GetLimitCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class GetLimitCest /** * Tests Phalcon\Paginator\Adapter\NativeArray :: getLimit() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function paginatorAdapterNativearrayGetLimit(IntegrationTester $I) diff --git a/tests/integration/Paginator/Adapter/NativeArray/PaginateCest.php b/tests/integration/Paginator/Adapter/NativeArray/PaginateCest.php index b04a29a38d7..4d7fdabbd2a 100644 --- a/tests/integration/Paginator/Adapter/NativeArray/PaginateCest.php +++ b/tests/integration/Paginator/Adapter/NativeArray/PaginateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class PaginateCest /** * Tests Phalcon\Paginator\Adapter\NativeArray :: paginate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function paginatorAdapterNativearrayPaginate(IntegrationTester $I) diff --git a/tests/integration/Paginator/Adapter/NativeArray/SetCurrentPageCest.php b/tests/integration/Paginator/Adapter/NativeArray/SetCurrentPageCest.php index bb8cca71615..6dd7eb49255 100644 --- a/tests/integration/Paginator/Adapter/NativeArray/SetCurrentPageCest.php +++ b/tests/integration/Paginator/Adapter/NativeArray/SetCurrentPageCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class SetCurrentPageCest /** * Tests Phalcon\Paginator\Adapter\NativeArray :: setCurrentPage() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function paginatorAdapterNativearraySetCurrentPage(IntegrationTester $I) diff --git a/tests/integration/Paginator/Adapter/NativeArray/SetLimitCest.php b/tests/integration/Paginator/Adapter/NativeArray/SetLimitCest.php index 21e9f90d729..d5e7faeb50e 100644 --- a/tests/integration/Paginator/Adapter/NativeArray/SetLimitCest.php +++ b/tests/integration/Paginator/Adapter/NativeArray/SetLimitCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class SetLimitCest /** * Tests Phalcon\Paginator\Adapter\NativeArray :: setLimit() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function paginatorAdapterNativearraySetLimit(IntegrationTester $I) diff --git a/tests/integration/Paginator/Adapter/NativeArray/SetRepositoryCest.php b/tests/integration/Paginator/Adapter/NativeArray/SetRepositoryCest.php index c6592ea8ef9..b6f70b71d23 100644 --- a/tests/integration/Paginator/Adapter/NativeArray/SetRepositoryCest.php +++ b/tests/integration/Paginator/Adapter/NativeArray/SetRepositoryCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetRepositoryCest /** * Tests Phalcon\Paginator\Adapter\NativeArray :: setRepository() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function paginatorAdapterNativearraySetRepository(IntegrationTester $I) diff --git a/tests/integration/Paginator/Adapter/QueryBuilder/ConstructCest.php b/tests/integration/Paginator/Adapter/QueryBuilder/ConstructCest.php index 1cbd275ebce..74eb3720761 100644 --- a/tests/integration/Paginator/Adapter/QueryBuilder/ConstructCest.php +++ b/tests/integration/Paginator/Adapter/QueryBuilder/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class ConstructCest /** * Tests Phalcon\Paginator\Adapter\QueryBuilder :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function paginatorAdapterQuerybuilderConstruct(IntegrationTester $I) diff --git a/tests/integration/Paginator/Adapter/QueryBuilder/GetCurrentPageCest.php b/tests/integration/Paginator/Adapter/QueryBuilder/GetCurrentPageCest.php index 81b033502f1..4e53387dc38 100644 --- a/tests/integration/Paginator/Adapter/QueryBuilder/GetCurrentPageCest.php +++ b/tests/integration/Paginator/Adapter/QueryBuilder/GetCurrentPageCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetCurrentPageCest /** * Tests Phalcon\Paginator\Adapter\QueryBuilder :: getCurrentPage() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function paginatorAdapterQuerybuilderGetCurrentPage(IntegrationTester $I) diff --git a/tests/integration/Paginator/Adapter/QueryBuilder/GetSetLimitCest.php b/tests/integration/Paginator/Adapter/QueryBuilder/GetSetLimitCest.php index 965f5f786d7..01ceb5307e2 100644 --- a/tests/integration/Paginator/Adapter/QueryBuilder/GetSetLimitCest.php +++ b/tests/integration/Paginator/Adapter/QueryBuilder/GetSetLimitCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Paginator/Adapter/QueryBuilder/GetSetQueryBuilderCest.php b/tests/integration/Paginator/Adapter/QueryBuilder/GetSetQueryBuilderCest.php index cb621275c7a..b1a30734e25 100644 --- a/tests/integration/Paginator/Adapter/QueryBuilder/GetSetQueryBuilderCest.php +++ b/tests/integration/Paginator/Adapter/QueryBuilder/GetSetQueryBuilderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Paginator/Adapter/QueryBuilder/PaginateCest.php b/tests/integration/Paginator/Adapter/QueryBuilder/PaginateCest.php index 34b63541f06..54bfdd03f30 100644 --- a/tests/integration/Paginator/Adapter/QueryBuilder/PaginateCest.php +++ b/tests/integration/Paginator/Adapter/QueryBuilder/PaginateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -33,7 +33,7 @@ public function _after(IntegrationTester $I) /** * Tests Phalcon\Paginator\Adapter\QueryBuilder :: paginate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function paginatorAdapterQuerybuilderPaginate(IntegrationTester $I) diff --git a/tests/integration/Paginator/Adapter/QueryBuilder/Refactor-PaginatorQueryBuilderCest.php b/tests/integration/Paginator/Adapter/QueryBuilder/Refactor-PaginatorQueryBuilderCest.php index baef2847e36..827b3b9e551 100644 --- a/tests/integration/Paginator/Adapter/QueryBuilder/Refactor-PaginatorQueryBuilderCest.php +++ b/tests/integration/Paginator/Adapter/QueryBuilder/Refactor-PaginatorQueryBuilderCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Paginator/Adapter/QueryBuilder/SetCurrentPageCest.php b/tests/integration/Paginator/Adapter/QueryBuilder/SetCurrentPageCest.php index e8309d3fbf3..f56300aed42 100644 --- a/tests/integration/Paginator/Adapter/QueryBuilder/SetCurrentPageCest.php +++ b/tests/integration/Paginator/Adapter/QueryBuilder/SetCurrentPageCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetCurrentPageCest /** * Tests Phalcon\Paginator\Adapter\QueryBuilder :: setCurrentPage() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function paginatorAdapterQuerybuilderSetCurrentPage(IntegrationTester $I) diff --git a/tests/integration/Paginator/Adapter/QueryBuilder/SetRepositoryCest.php b/tests/integration/Paginator/Adapter/QueryBuilder/SetRepositoryCest.php index d07bba33236..c2af721d92e 100644 --- a/tests/integration/Paginator/Adapter/QueryBuilder/SetRepositoryCest.php +++ b/tests/integration/Paginator/Adapter/QueryBuilder/SetRepositoryCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetRepositoryCest /** * Tests Phalcon\Paginator\Adapter\QueryBuilder :: setRepository() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function paginatorAdapterQuerybuilderSetRepository(IntegrationTester $I) diff --git a/tests/integration/Paginator/PaginatorFactory/LoadCest.php b/tests/integration/Paginator/PaginatorFactory/LoadCest.php index ee044d8d598..ecc3278f067 100644 --- a/tests/integration/Paginator/PaginatorFactory/LoadCest.php +++ b/tests/integration/Paginator/PaginatorFactory/LoadCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Paginator/PaginatorFactory/NewInstanceCest.php b/tests/integration/Paginator/PaginatorFactory/NewInstanceCest.php index f1eaea71cea..4a3ce5ad233 100644 --- a/tests/integration/Paginator/PaginatorFactory/NewInstanceCest.php +++ b/tests/integration/Paginator/PaginatorFactory/NewInstanceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class NewInstanceCest /** * Tests Phalcon\Paginator\AdapterFactory :: newInstance() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-18 */ public function paginatorAdapterFactoryNewInstance(IntegrationTester $I) diff --git a/tests/integration/Paginator/Repository/GetAliasesCest.php b/tests/integration/Paginator/Repository/GetAliasesCest.php index 552c705bf68..56082ef4bcb 100644 --- a/tests/integration/Paginator/Repository/GetAliasesCest.php +++ b/tests/integration/Paginator/Repository/GetAliasesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetAliasesCest /** * Tests Phalcon\Paginator\Repository :: getAliases() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function paginatorRepositoryGetAliases(IntegrationTester $I) diff --git a/tests/integration/Paginator/Repository/GetCurrentCest.php b/tests/integration/Paginator/Repository/GetCurrentCest.php index 957975392cb..fc5f73cefe8 100644 --- a/tests/integration/Paginator/Repository/GetCurrentCest.php +++ b/tests/integration/Paginator/Repository/GetCurrentCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetCurrentCest /** * Tests Phalcon\Paginator\Repository :: getCurrent() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function paginatorRepositoryGetCurrent(IntegrationTester $I) diff --git a/tests/integration/Paginator/Repository/GetFirstCest.php b/tests/integration/Paginator/Repository/GetFirstCest.php index 21ca960cc48..ab039b0f8ab 100644 --- a/tests/integration/Paginator/Repository/GetFirstCest.php +++ b/tests/integration/Paginator/Repository/GetFirstCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetFirstCest /** * Tests Phalcon\Paginator\Repository :: getFirst() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function paginatorRepositoryGetFirst(IntegrationTester $I) diff --git a/tests/integration/Paginator/Repository/GetItemsCest.php b/tests/integration/Paginator/Repository/GetItemsCest.php index 7212c34de83..68f3b5dfd5e 100644 --- a/tests/integration/Paginator/Repository/GetItemsCest.php +++ b/tests/integration/Paginator/Repository/GetItemsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetItemsCest /** * Tests Phalcon\Paginator\Repository :: getItems() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function paginatorRepositoryGetItems(IntegrationTester $I) diff --git a/tests/integration/Paginator/Repository/GetLastCest.php b/tests/integration/Paginator/Repository/GetLastCest.php index f22eb156eb2..72028b20943 100644 --- a/tests/integration/Paginator/Repository/GetLastCest.php +++ b/tests/integration/Paginator/Repository/GetLastCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetLastCest /** * Tests Phalcon\Paginator\Repository :: getLast() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function paginatorRepositoryGetLast(IntegrationTester $I) diff --git a/tests/integration/Paginator/Repository/GetLimitCest.php b/tests/integration/Paginator/Repository/GetLimitCest.php index 736575ee126..96aa98cd583 100644 --- a/tests/integration/Paginator/Repository/GetLimitCest.php +++ b/tests/integration/Paginator/Repository/GetLimitCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetLimitCest /** * Tests Phalcon\Paginator\Repository :: getLimit() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function paginatorRepositoryGetLimit(IntegrationTester $I) diff --git a/tests/integration/Paginator/Repository/GetNextCest.php b/tests/integration/Paginator/Repository/GetNextCest.php index 22a0de41ebb..9d966645486 100644 --- a/tests/integration/Paginator/Repository/GetNextCest.php +++ b/tests/integration/Paginator/Repository/GetNextCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetNextCest /** * Tests Phalcon\Paginator\Repository :: getNext() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function paginatorRepositoryGetNext(IntegrationTester $I) diff --git a/tests/integration/Paginator/Repository/GetPreviousCest.php b/tests/integration/Paginator/Repository/GetPreviousCest.php index aa21f434d03..0a217cf66f2 100644 --- a/tests/integration/Paginator/Repository/GetPreviousCest.php +++ b/tests/integration/Paginator/Repository/GetPreviousCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetPreviousCest /** * Tests Phalcon\Paginator\Repository :: getPrevious() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function paginatorRepositoryGetPrevious(IntegrationTester $I) diff --git a/tests/integration/Paginator/Repository/GetTotalItemsCest.php b/tests/integration/Paginator/Repository/GetTotalItemsCest.php index f88c75f3ceb..8b96ffb2e88 100644 --- a/tests/integration/Paginator/Repository/GetTotalItemsCest.php +++ b/tests/integration/Paginator/Repository/GetTotalItemsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetTotalItemsCest /** * Tests Phalcon\Paginator\Repository :: getTotalItems() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function paginatorRepositoryGetTotalItems(IntegrationTester $I) diff --git a/tests/integration/Paginator/Repository/SetAliasesCest.php b/tests/integration/Paginator/Repository/SetAliasesCest.php index 0c41fd084c9..fd91f324a97 100644 --- a/tests/integration/Paginator/Repository/SetAliasesCest.php +++ b/tests/integration/Paginator/Repository/SetAliasesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetAliasesCest /** * Tests Phalcon\Paginator\Repository :: setAliases() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function paginatorRepositorySetAliases(IntegrationTester $I) diff --git a/tests/integration/Paginator/Repository/SetPropertiesCest.php b/tests/integration/Paginator/Repository/SetPropertiesCest.php index a5213c3b005..7460ab72406 100644 --- a/tests/integration/Paginator/Repository/SetPropertiesCest.php +++ b/tests/integration/Paginator/Repository/SetPropertiesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetPropertiesCest /** * Tests Phalcon\Paginator\Repository :: setProperties() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function paginatorRepositorySetProperties(IntegrationTester $I) diff --git a/tests/integration/Paginator/Repository/UnderscoreGetCest.php b/tests/integration/Paginator/Repository/UnderscoreGetCest.php index 974c22124db..f3b52a59dab 100644 --- a/tests/integration/Paginator/Repository/UnderscoreGetCest.php +++ b/tests/integration/Paginator/Repository/UnderscoreGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class UnderscoreGetCest /** * Tests Phalcon\Paginator\Repository :: __get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function paginatorRepositoryUnderscoreGet(IntegrationTester $I) diff --git a/tests/integration/Plugin/GetDICest.php b/tests/integration/Plugin/GetDICest.php index 90fabfd0906..d33544537b5 100644 --- a/tests/integration/Plugin/GetDICest.php +++ b/tests/integration/Plugin/GetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetDICest /** * Tests Phalcon\Plugin :: getDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function pluginGetDI(IntegrationTester $I) diff --git a/tests/integration/Plugin/GetEventsManagerCest.php b/tests/integration/Plugin/GetEventsManagerCest.php index ed5304893d4..c9f9cdfec68 100644 --- a/tests/integration/Plugin/GetEventsManagerCest.php +++ b/tests/integration/Plugin/GetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetEventsManagerCest /** * Tests Phalcon\Plugin :: getEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function pluginGetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Plugin/SetDICest.php b/tests/integration/Plugin/SetDICest.php index bd98d342109..2a1f8c521d3 100644 --- a/tests/integration/Plugin/SetDICest.php +++ b/tests/integration/Plugin/SetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetDICest /** * Tests Phalcon\Plugin :: setDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function pluginSetDI(IntegrationTester $I) diff --git a/tests/integration/Plugin/SetEventsManagerCest.php b/tests/integration/Plugin/SetEventsManagerCest.php index 5092183272a..0dd94b6ab61 100644 --- a/tests/integration/Plugin/SetEventsManagerCest.php +++ b/tests/integration/Plugin/SetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetEventsManagerCest /** * Tests Phalcon\Plugin :: setEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function pluginSetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Plugin/UnderscoreGetCest.php b/tests/integration/Plugin/UnderscoreGetCest.php index 79617aec19a..c7ce039a13d 100644 --- a/tests/integration/Plugin/UnderscoreGetCest.php +++ b/tests/integration/Plugin/UnderscoreGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class UnderscoreGetCest /** * Tests Phalcon\Plugin :: __get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function pluginUnderscoreGet(IntegrationTester $I) diff --git a/tests/integration/Refactor-ValidationCest.php b/tests/integration/Refactor-ValidationCest.php index 2e206f154fd..e359de7495a 100644 --- a/tests/integration/Refactor-ValidationCest.php +++ b/tests/integration/Refactor-ValidationCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ class ValidationCest * * @since 2016-06-27 * - * @author Phalcon Team + * @author Phalcon Team */ public function appendValidationMessageToTheNonObject(IntegrationTester $I) { diff --git a/tests/integration/Session/Adapter/Libmemcached/CloseCest.php b/tests/integration/Session/Adapter/Libmemcached/CloseCest.php index 96bcfaa2b9a..553b2dd8ce2 100644 --- a/tests/integration/Session/Adapter/Libmemcached/CloseCest.php +++ b/tests/integration/Session/Adapter/Libmemcached/CloseCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -29,7 +29,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Session\Adapter\Libmemcached :: close() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionAdapterLibmemcachedClose(IntegrationTester $I) diff --git a/tests/integration/Session/Adapter/Libmemcached/ConstructCest.php b/tests/integration/Session/Adapter/Libmemcached/ConstructCest.php index b97a6682966..e0a0b2e20f9 100644 --- a/tests/integration/Session/Adapter/Libmemcached/ConstructCest.php +++ b/tests/integration/Session/Adapter/Libmemcached/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -30,7 +30,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Session\Adapter\Libmemcached :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionAdapterLibmemcachedConstruct(IntegrationTester $I) diff --git a/tests/integration/Session/Adapter/Libmemcached/DestroyCest.php b/tests/integration/Session/Adapter/Libmemcached/DestroyCest.php index 4a24ca470d4..07a4450b931 100644 --- a/tests/integration/Session/Adapter/Libmemcached/DestroyCest.php +++ b/tests/integration/Session/Adapter/Libmemcached/DestroyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -30,7 +30,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Session\Adapter\Libmemcached :: destroy() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionAdapterLibmemcachedDestroy(IntegrationTester $I) diff --git a/tests/integration/Session/Adapter/Libmemcached/GcCest.php b/tests/integration/Session/Adapter/Libmemcached/GcCest.php index bc5d78a82e5..33a2c0ebeb1 100644 --- a/tests/integration/Session/Adapter/Libmemcached/GcCest.php +++ b/tests/integration/Session/Adapter/Libmemcached/GcCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -31,7 +31,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Session\Adapter\Libmemcached :: gc() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionAdapterLibmemcachedGc(IntegrationTester $I) diff --git a/tests/integration/Session/Adapter/Libmemcached/OpenCest.php b/tests/integration/Session/Adapter/Libmemcached/OpenCest.php index c453a7076f6..cee7e664584 100644 --- a/tests/integration/Session/Adapter/Libmemcached/OpenCest.php +++ b/tests/integration/Session/Adapter/Libmemcached/OpenCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -29,7 +29,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Session\Adapter\Libmemcached :: open() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionAdapterLibmemcachedOpen(IntegrationTester $I) diff --git a/tests/integration/Session/Adapter/Libmemcached/ReadCest.php b/tests/integration/Session/Adapter/Libmemcached/ReadCest.php index 32cb2741df6..4977d0b1d25 100644 --- a/tests/integration/Session/Adapter/Libmemcached/ReadCest.php +++ b/tests/integration/Session/Adapter/Libmemcached/ReadCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -30,7 +30,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Session\Adapter\Libmemcached :: write() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionAdapterLibmemcachedRead(IntegrationTester $I) diff --git a/tests/integration/Session/Adapter/Libmemcached/WriteCest.php b/tests/integration/Session/Adapter/Libmemcached/WriteCest.php index 370554e953d..72e2d5f8847 100644 --- a/tests/integration/Session/Adapter/Libmemcached/WriteCest.php +++ b/tests/integration/Session/Adapter/Libmemcached/WriteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -30,7 +30,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Session\Adapter\Libmemcached :: write() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionAdapterLibmemcachedWrite(IntegrationTester $I) diff --git a/tests/integration/Session/Adapter/Noop/CloseCest.php b/tests/integration/Session/Adapter/Noop/CloseCest.php index b054e88809d..07b1c18e737 100644 --- a/tests/integration/Session/Adapter/Noop/CloseCest.php +++ b/tests/integration/Session/Adapter/Noop/CloseCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -29,7 +29,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Session\Adapter\Noop :: close() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionAdapterNoopClose(IntegrationTester $I) diff --git a/tests/integration/Session/Adapter/Noop/ConstructCest.php b/tests/integration/Session/Adapter/Noop/ConstructCest.php index 3a0f31b9603..d17d26e7fb3 100644 --- a/tests/integration/Session/Adapter/Noop/ConstructCest.php +++ b/tests/integration/Session/Adapter/Noop/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -30,7 +30,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Session\Adapter\Noop :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionAdapterNoopConstruct(IntegrationTester $I) diff --git a/tests/integration/Session/Adapter/Noop/DestroyCest.php b/tests/integration/Session/Adapter/Noop/DestroyCest.php index b47a6d642e0..d64e35d9c48 100644 --- a/tests/integration/Session/Adapter/Noop/DestroyCest.php +++ b/tests/integration/Session/Adapter/Noop/DestroyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -29,7 +29,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Session\Adapter\Noop :: destroy() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionAdapterNoopDestroy(IntegrationTester $I) diff --git a/tests/integration/Session/Adapter/Noop/GcCest.php b/tests/integration/Session/Adapter/Noop/GcCest.php index cf70b0b2fc4..86b15dfc6fd 100644 --- a/tests/integration/Session/Adapter/Noop/GcCest.php +++ b/tests/integration/Session/Adapter/Noop/GcCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -29,7 +29,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Session\Adapter\Noop :: gc() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionAdapterNoopGc(IntegrationTester $I) diff --git a/tests/integration/Session/Adapter/Noop/OpenCest.php b/tests/integration/Session/Adapter/Noop/OpenCest.php index d126c30e382..4a2d75b4eb1 100644 --- a/tests/integration/Session/Adapter/Noop/OpenCest.php +++ b/tests/integration/Session/Adapter/Noop/OpenCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -29,7 +29,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Session\Adapter\Noop :: open() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionAdapterNoopOpen(IntegrationTester $I) diff --git a/tests/integration/Session/Adapter/Noop/ReadCest.php b/tests/integration/Session/Adapter/Noop/ReadCest.php index 8bbbceda649..25ef8d4e89b 100644 --- a/tests/integration/Session/Adapter/Noop/ReadCest.php +++ b/tests/integration/Session/Adapter/Noop/ReadCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -30,7 +30,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Session\Adapter\Noop :: write() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionAdapterNoopRead(IntegrationTester $I) diff --git a/tests/integration/Session/Adapter/Noop/WriteCest.php b/tests/integration/Session/Adapter/Noop/WriteCest.php index c1a1905e177..565ee67241e 100644 --- a/tests/integration/Session/Adapter/Noop/WriteCest.php +++ b/tests/integration/Session/Adapter/Noop/WriteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -30,7 +30,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Session\Adapter\Noop :: write() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionAdapterNoopWrite(IntegrationTester $I) diff --git a/tests/integration/Session/Adapter/Redis/CloseCest.php b/tests/integration/Session/Adapter/Redis/CloseCest.php index 4ed69b06c50..27aa114d3d7 100644 --- a/tests/integration/Session/Adapter/Redis/CloseCest.php +++ b/tests/integration/Session/Adapter/Redis/CloseCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -29,7 +29,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Session\Adapter\Redis :: close() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionAdapterRedisClose(IntegrationTester $I) diff --git a/tests/integration/Session/Adapter/Redis/ConstructCest.php b/tests/integration/Session/Adapter/Redis/ConstructCest.php index 46e619dc945..3e65527e58b 100644 --- a/tests/integration/Session/Adapter/Redis/ConstructCest.php +++ b/tests/integration/Session/Adapter/Redis/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -30,7 +30,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Session\Adapter\Redis :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionAdapterRedisConstruct(IntegrationTester $I) diff --git a/tests/integration/Session/Adapter/Redis/DestroyCest.php b/tests/integration/Session/Adapter/Redis/DestroyCest.php index 34f215a58de..27746593966 100644 --- a/tests/integration/Session/Adapter/Redis/DestroyCest.php +++ b/tests/integration/Session/Adapter/Redis/DestroyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -30,7 +30,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Session\Adapter\Redis :: destroy() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionAdapterRedisDestroy(IntegrationTester $I) diff --git a/tests/integration/Session/Adapter/Redis/GcCest.php b/tests/integration/Session/Adapter/Redis/GcCest.php index 05f4d12d949..a6623983392 100644 --- a/tests/integration/Session/Adapter/Redis/GcCest.php +++ b/tests/integration/Session/Adapter/Redis/GcCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -29,7 +29,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Session\Adapter\Redis :: gc() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionAdapterRedisGc(IntegrationTester $I) diff --git a/tests/integration/Session/Adapter/Redis/OpenCest.php b/tests/integration/Session/Adapter/Redis/OpenCest.php index 095cb9e5994..213e92883e9 100644 --- a/tests/integration/Session/Adapter/Redis/OpenCest.php +++ b/tests/integration/Session/Adapter/Redis/OpenCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -29,7 +29,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Session\Adapter\Redis :: open() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionAdapterRedisOpen(IntegrationTester $I) diff --git a/tests/integration/Session/Adapter/Redis/ReadCest.php b/tests/integration/Session/Adapter/Redis/ReadCest.php index 550f0954b38..0e74a6fbf95 100644 --- a/tests/integration/Session/Adapter/Redis/ReadCest.php +++ b/tests/integration/Session/Adapter/Redis/ReadCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -30,7 +30,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Session\Adapter\Redis :: read() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionAdapterRedisRead(IntegrationTester $I) diff --git a/tests/integration/Session/Adapter/Redis/WriteCest.php b/tests/integration/Session/Adapter/Redis/WriteCest.php index 5269cc84d00..8765f5e3f77 100644 --- a/tests/integration/Session/Adapter/Redis/WriteCest.php +++ b/tests/integration/Session/Adapter/Redis/WriteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -30,7 +30,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Session\Adapter\Redis :: write() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionAdapterRedisWrite(IntegrationTester $I) diff --git a/tests/integration/Session/Adapter/Stream/CloseCest.php b/tests/integration/Session/Adapter/Stream/CloseCest.php index 4e05b07c3f7..147e8857e0a 100644 --- a/tests/integration/Session/Adapter/Stream/CloseCest.php +++ b/tests/integration/Session/Adapter/Stream/CloseCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -29,7 +29,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Session\Adapter\Stream :: close() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionAdapterStreamClose(IntegrationTester $I) diff --git a/tests/integration/Session/Adapter/Stream/ConstructCest.php b/tests/integration/Session/Adapter/Stream/ConstructCest.php index b32e9f27d1a..c19a7b26e7a 100644 --- a/tests/integration/Session/Adapter/Stream/ConstructCest.php +++ b/tests/integration/Session/Adapter/Stream/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -30,7 +30,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Session\Adapter\Stream :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionAdapterStreamConstruct(IntegrationTester $I) diff --git a/tests/integration/Session/Adapter/Stream/DestroyCest.php b/tests/integration/Session/Adapter/Stream/DestroyCest.php index 3e0e042b4ad..d6d7a711ca9 100644 --- a/tests/integration/Session/Adapter/Stream/DestroyCest.php +++ b/tests/integration/Session/Adapter/Stream/DestroyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -31,7 +31,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Session\Adapter\Stream :: destroy() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionAdapterStreamDestroy(IntegrationTester $I) diff --git a/tests/integration/Session/Adapter/Stream/GcCest.php b/tests/integration/Session/Adapter/Stream/GcCest.php index 90096d0d682..8e35296d475 100644 --- a/tests/integration/Session/Adapter/Stream/GcCest.php +++ b/tests/integration/Session/Adapter/Stream/GcCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -33,7 +33,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Session\Adapter\Stream :: gc() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionAdapterStreamGc(IntegrationTester $I) diff --git a/tests/integration/Session/Adapter/Stream/OpenCest.php b/tests/integration/Session/Adapter/Stream/OpenCest.php index 6f5017663a7..ea993a45f1e 100644 --- a/tests/integration/Session/Adapter/Stream/OpenCest.php +++ b/tests/integration/Session/Adapter/Stream/OpenCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -29,7 +29,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Session\Adapter\Stream :: open() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionAdapterStreamOpen(IntegrationTester $I) diff --git a/tests/integration/Session/Adapter/Stream/ReadCest.php b/tests/integration/Session/Adapter/Stream/ReadCest.php index d6359e828e7..d7c4cf1a71d 100644 --- a/tests/integration/Session/Adapter/Stream/ReadCest.php +++ b/tests/integration/Session/Adapter/Stream/ReadCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -31,7 +31,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Session\Adapter\Stream :: write() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionAdapterStreamRead(IntegrationTester $I) diff --git a/tests/integration/Session/Adapter/Stream/WriteCest.php b/tests/integration/Session/Adapter/Stream/WriteCest.php index ae037692360..08677e2ba43 100644 --- a/tests/integration/Session/Adapter/Stream/WriteCest.php +++ b/tests/integration/Session/Adapter/Stream/WriteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -31,7 +31,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Session\Adapter\Stream :: write() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionAdapterStreamWrite(IntegrationTester $I) diff --git a/tests/integration/Session/Bag/ClearCest.php b/tests/integration/Session/Bag/ClearCest.php index 251ddaced1e..ae77c3257ad 100644 --- a/tests/integration/Session/Bag/ClearCest.php +++ b/tests/integration/Session/Bag/ClearCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class ClearCest /** * Tests Phalcon\Session\Bag :: clear() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionBagClear(IntegrationTester $I) diff --git a/tests/integration/Session/Bag/ConstructCest.php b/tests/integration/Session/Bag/ConstructCest.php index b85d5229707..9177a0be0cd 100644 --- a/tests/integration/Session/Bag/ConstructCest.php +++ b/tests/integration/Session/Bag/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class ConstructCest /** * Tests Phalcon\Session\Bag :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionBagConstruct(IntegrationTester $I) diff --git a/tests/integration/Session/Bag/CountCest.php b/tests/integration/Session/Bag/CountCest.php index 59296ce6128..1995da5ac20 100644 --- a/tests/integration/Session/Bag/CountCest.php +++ b/tests/integration/Session/Bag/CountCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class CountCest /** * Tests Phalcon\Session\Bag :: count() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionBagCount(IntegrationTester $I) diff --git a/tests/integration/Session/Bag/GetCest.php b/tests/integration/Session/Bag/GetCest.php index a297ca5b2f6..f41740ffecc 100644 --- a/tests/integration/Session/Bag/GetCest.php +++ b/tests/integration/Session/Bag/GetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class GetCest /** * Tests Phalcon\Session\Bag :: get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionBagGet(IntegrationTester $I) diff --git a/tests/integration/Session/Bag/GetIteratorCest.php b/tests/integration/Session/Bag/GetIteratorCest.php index 6531ff6830a..824eb6efe3b 100644 --- a/tests/integration/Session/Bag/GetIteratorCest.php +++ b/tests/integration/Session/Bag/GetIteratorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class GetIteratorCest /** * Tests Phalcon\Session\Bag :: getIterator() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionBagGetIterator(IntegrationTester $I) diff --git a/tests/integration/Session/Bag/GetSetDICest.php b/tests/integration/Session/Bag/GetSetDICest.php index fe54c003fbd..beaeccce756 100644 --- a/tests/integration/Session/Bag/GetSetDICest.php +++ b/tests/integration/Session/Bag/GetSetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class GetSetDICest /** * Tests Phalcon\Session\Bag :: getDI()/setDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionBagGetSetDI(IntegrationTester $I) diff --git a/tests/integration/Session/Bag/HasCest.php b/tests/integration/Session/Bag/HasCest.php index 94e6c6c152b..c62192c1f87 100644 --- a/tests/integration/Session/Bag/HasCest.php +++ b/tests/integration/Session/Bag/HasCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class HasCest /** * Tests Phalcon\Session\Bag :: has() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionBagHas(IntegrationTester $I) diff --git a/tests/integration/Session/Bag/InitCest.php b/tests/integration/Session/Bag/InitCest.php index 53ef4674e1a..01911001db9 100644 --- a/tests/integration/Session/Bag/InitCest.php +++ b/tests/integration/Session/Bag/InitCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class InitCest /** * Tests Phalcon\Session\Bag :: init() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionBagInit(IntegrationTester $I) diff --git a/tests/integration/Session/Bag/JsonSerializeCest.php b/tests/integration/Session/Bag/JsonSerializeCest.php index ad815435dd3..b19f681ece0 100644 --- a/tests/integration/Session/Bag/JsonSerializeCest.php +++ b/tests/integration/Session/Bag/JsonSerializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class JsonSerializeCest /** * Tests Phalcon\Session\Bag :: jsonSerialize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionBagJsonSerialize(IntegrationTester $I) diff --git a/tests/integration/Session/Bag/RemoveCest.php b/tests/integration/Session/Bag/RemoveCest.php index 79988064622..c936791dce9 100644 --- a/tests/integration/Session/Bag/RemoveCest.php +++ b/tests/integration/Session/Bag/RemoveCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class RemoveCest /** * Tests Phalcon\Session\Bag :: remove() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionBagRemove(IntegrationTester $I) diff --git a/tests/integration/Session/Bag/SerializeCest.php b/tests/integration/Session/Bag/SerializeCest.php index a7a8c4e3544..ea373cd0622 100644 --- a/tests/integration/Session/Bag/SerializeCest.php +++ b/tests/integration/Session/Bag/SerializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class SerializeCest /** * Tests Phalcon\Session\Bag :: serialize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionBagSerialize(IntegrationTester $I) diff --git a/tests/integration/Session/Bag/SetCest.php b/tests/integration/Session/Bag/SetCest.php index b7b56fff6cd..9628cb29476 100644 --- a/tests/integration/Session/Bag/SetCest.php +++ b/tests/integration/Session/Bag/SetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class SetCest /** * Tests Phalcon\Session\Bag :: set() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionBagSet(IntegrationTester $I) diff --git a/tests/integration/Session/Bag/ToArrayCest.php b/tests/integration/Session/Bag/ToArrayCest.php index 8984f4625ff..5ff7ec22b5c 100644 --- a/tests/integration/Session/Bag/ToArrayCest.php +++ b/tests/integration/Session/Bag/ToArrayCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class ToArrayCest /** * Tests Phalcon\Session\Bag :: toArray() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionBagToArray(IntegrationTester $I) diff --git a/tests/integration/Session/Bag/ToJsonCest.php b/tests/integration/Session/Bag/ToJsonCest.php index 823b33330f4..83f12a14c67 100644 --- a/tests/integration/Session/Bag/ToJsonCest.php +++ b/tests/integration/Session/Bag/ToJsonCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class ToJsonCest /** * Tests Phalcon\Session\Bag :: toJson() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionBagToJson(IntegrationTester $I) diff --git a/tests/integration/Session/Bag/UnserializeCest.php b/tests/integration/Session/Bag/UnserializeCest.php index 6ba02ee1df7..3fe71a290f8 100644 --- a/tests/integration/Session/Bag/UnserializeCest.php +++ b/tests/integration/Session/Bag/UnserializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class UnserializeCest /** * Tests Phalcon\Session\Bag :: serialize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionBagSerialize(IntegrationTester $I) diff --git a/tests/integration/Session/Factory/LoadCest.php b/tests/integration/Session/Factory/LoadCest.php index b79a56f85e8..c4d0c61c9f3 100644 --- a/tests/integration/Session/Factory/LoadCest.php +++ b/tests/integration/Session/Factory/LoadCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Session/Manager/ConstructCest.php b/tests/integration/Session/Manager/ConstructCest.php index ea900ed2f4e..3b556ec3b9d 100644 --- a/tests/integration/Session/Manager/ConstructCest.php +++ b/tests/integration/Session/Manager/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ConstructCest /** * Tests Phalcon\Session\Manager :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionManagerConstruct(IntegrationTester $I) diff --git a/tests/integration/Session/Manager/ExistsDestroyCest.php b/tests/integration/Session/Manager/ExistsDestroyCest.php index e936dbd9ec0..490df667c8a 100644 --- a/tests/integration/Session/Manager/ExistsDestroyCest.php +++ b/tests/integration/Session/Manager/ExistsDestroyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class ExistsDestroyCest /** * Tests Phalcon\Session\Manager :: exists()/destroy() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionManagerExistsDestroy(IntegrationTester $I) @@ -53,7 +53,7 @@ public function sessionManagerExistsDestroy(IntegrationTester $I) * @issue https://github.com/phalcon/cphalcon/issues/12326 * @issue https://github.com/phalcon/cphalcon/issues/12835 * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionManagerDestroySuperGlobal(IntegrationTester $I) diff --git a/tests/integration/Session/Manager/GetSetCest.php b/tests/integration/Session/Manager/GetSetCest.php index 83287ce731d..61e795d31b5 100644 --- a/tests/integration/Session/Manager/GetSetCest.php +++ b/tests/integration/Session/Manager/GetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class GetSetCest /** * Tests Phalcon\Session\Manager :: get()/set() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionManagerGetSet(IntegrationTester $I) diff --git a/tests/integration/Session/Manager/GetSetDICest.php b/tests/integration/Session/Manager/GetSetDICest.php index b5da6881067..aa00991d01c 100644 --- a/tests/integration/Session/Manager/GetSetDICest.php +++ b/tests/integration/Session/Manager/GetSetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class GetSetDICest /** * Tests Phalcon\Session\Manager :: getDI()/setDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionManagerGetSetDI(IntegrationTester $I) diff --git a/tests/integration/Session/Manager/GetSetHandlerCest.php b/tests/integration/Session/Manager/GetSetHandlerCest.php index 0a0cd7a5735..2f411803405 100644 --- a/tests/integration/Session/Manager/GetSetHandlerCest.php +++ b/tests/integration/Session/Manager/GetSetHandlerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class GetSetHandlerCest /** * Tests Phalcon\Session\Manager :: getHandler()/setHandler() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionManagerGetSetHandler(IntegrationTester $I) diff --git a/tests/integration/Session/Manager/GetSetIdCest.php b/tests/integration/Session/Manager/GetSetIdCest.php index 8c232c1fc5f..be8c522f4ce 100644 --- a/tests/integration/Session/Manager/GetSetIdCest.php +++ b/tests/integration/Session/Manager/GetSetIdCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class GetSetIdCest /** * Tests Phalcon\Session\Manager :: getId()/setId() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionManagerGetSetId(IntegrationTester $I) diff --git a/tests/integration/Session/Manager/GetSetNameCest.php b/tests/integration/Session/Manager/GetSetNameCest.php index 04653b02380..36f35927f8d 100644 --- a/tests/integration/Session/Manager/GetSetNameCest.php +++ b/tests/integration/Session/Manager/GetSetNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -29,7 +29,7 @@ class GetSetNameCest /** * Tests Phalcon\Session\Manager :: getName()/setName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionManagerGetSetName(IntegrationTester $I) @@ -52,7 +52,7 @@ public function sessionManagerGetSetName(IntegrationTester $I) /** * Tests Phalcon\Session\Manager :: getName()/setName() - not valid name * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionManagerGetNameNotValidName(IntegrationTester $I) @@ -73,7 +73,7 @@ function () { /** * Tests Phalcon\Session\Manager :: getName()/setName() - session started * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionManagerGetNameSessionStarted(IntegrationTester $I) diff --git a/tests/integration/Session/Manager/GetSetOptionsCest.php b/tests/integration/Session/Manager/GetSetOptionsCest.php index 857214f2f0d..e8910a725c3 100644 --- a/tests/integration/Session/Manager/GetSetOptionsCest.php +++ b/tests/integration/Session/Manager/GetSetOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class GetSetOptionsCest /** * Tests Phalcon\Session\Manager :: getOptions()/setOptions() - constructor * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionManagerGetSetOptionsConstructor(IntegrationTester $I) @@ -49,7 +49,7 @@ public function sessionManagerGetSetOptionsConstructor(IntegrationTester $I) /** * Tests Phalcon\Session\Manager :: getOptions()/setOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionManagerGetSetOptions(IntegrationTester $I) diff --git a/tests/integration/Session/Manager/HasCest.php b/tests/integration/Session/Manager/HasCest.php index abca7e60526..48262f4021a 100644 --- a/tests/integration/Session/Manager/HasCest.php +++ b/tests/integration/Session/Manager/HasCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class HasCest /** * Tests Phalcon\Session\Manager :: has() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionManagerHas(IntegrationTester $I) diff --git a/tests/integration/Session/Manager/RegenerateIdCest.php b/tests/integration/Session/Manager/RegenerateIdCest.php index b5b91cbca5c..f31acaa9a44 100644 --- a/tests/integration/Session/Manager/RegenerateIdCest.php +++ b/tests/integration/Session/Manager/RegenerateIdCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class RegenerateIdCest /** * Tests Phalcon\Session\Manager :: regenerateId() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionManagerRegenerateId(IntegrationTester $I) diff --git a/tests/integration/Session/Manager/RemoveCest.php b/tests/integration/Session/Manager/RemoveCest.php index 756b16d3b7f..383dd579da1 100644 --- a/tests/integration/Session/Manager/RemoveCest.php +++ b/tests/integration/Session/Manager/RemoveCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -30,7 +30,7 @@ public function _after(IntegrationTester $I) /** * Tests Phalcon\Session\Manager :: remove() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionManagerRemove(IntegrationTester $I) diff --git a/tests/integration/Session/Manager/StatusCest.php b/tests/integration/Session/Manager/StatusCest.php index b3036e01250..765a6eae965 100644 --- a/tests/integration/Session/Manager/StatusCest.php +++ b/tests/integration/Session/Manager/StatusCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class StatusCest /** * Tests Phalcon\Session\Manager :: status() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionManagerStatus(IntegrationTester $I) diff --git a/tests/integration/Session/Manager/UnderscoreGetSetCest.php b/tests/integration/Session/Manager/UnderscoreGetSetCest.php index e68631c1f6a..9c985fc8520 100644 --- a/tests/integration/Session/Manager/UnderscoreGetSetCest.php +++ b/tests/integration/Session/Manager/UnderscoreGetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class UnderscoreGetSetCest /** * Tests Phalcon\Session\Manager :: __get()/__set() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionManagerUnderscoreGetSet(IntegrationTester $I) diff --git a/tests/integration/Session/Manager/UnderscoreIssetCest.php b/tests/integration/Session/Manager/UnderscoreIssetCest.php index 12aaf3015f2..d699a863958 100644 --- a/tests/integration/Session/Manager/UnderscoreIssetCest.php +++ b/tests/integration/Session/Manager/UnderscoreIssetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class UnderscoreIssetCest /** * Tests Phalcon\Session\Manager :: __isset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionManagerUnderscoreIsset(IntegrationTester $I) diff --git a/tests/integration/Session/Manager/UnderscoreUnsetCest.php b/tests/integration/Session/Manager/UnderscoreUnsetCest.php index e876eed2431..5bde065ff22 100644 --- a/tests/integration/Session/Manager/UnderscoreUnsetCest.php +++ b/tests/integration/Session/Manager/UnderscoreUnsetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class UnderscoreUnsetCest /** * Tests Phalcon\Session\Manager :: __unset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function sessionManagerUnderscoreUnset(IntegrationTester $I) diff --git a/tests/integration/Url/GetBasePathCest.php b/tests/integration/Url/GetBasePathCest.php index f72d2c63d9f..f6e92df5c31 100644 --- a/tests/integration/Url/GetBasePathCest.php +++ b/tests/integration/Url/GetBasePathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetBasePathCest /** * Tests Phalcon\Url :: getBasePath() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-16 */ public function urlGetBasePath(IntegrationTester $I) diff --git a/tests/integration/Url/GetBaseUriCest.php b/tests/integration/Url/GetBaseUriCest.php index 1e1ea516483..b42bf55fd4b 100644 --- a/tests/integration/Url/GetBaseUriCest.php +++ b/tests/integration/Url/GetBaseUriCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetBaseUriCest /** * Tests Phalcon\Url :: getBaseUri() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-16 */ public function urlGetBaseUri(IntegrationTester $I) diff --git a/tests/integration/Url/GetCest.php b/tests/integration/Url/GetCest.php index ac5215c04e1..4b10a98c77c 100644 --- a/tests/integration/Url/GetCest.php +++ b/tests/integration/Url/GetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetCest /** * Tests Phalcon\Url :: get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function urlGet(IntegrationTester $I) @@ -29,25 +29,25 @@ public function urlGet(IntegrationTester $I) $url = new Url(); - $url->setBaseUri('https://phalconphp.com'); + $url->setBaseUri('https://phalcon.io'); $I->assertEquals( - 'https://phalconphp.com', + 'https://phalcon.io', $url->get() ); $I->assertEquals( - 'https://phalconphp.com', + 'https://phalcon.io', $url->get('') ); $I->assertEquals( - 'https://phalconphp.com/', + 'https://phalcon.io/', $url->get('/') ); $I->assertEquals( - 'https://phalconphp.com/en/team', + 'https://phalcon.io/en/team', $url->get('/en/team') ); } diff --git a/tests/integration/Url/GetSetBasePathCest.php b/tests/integration/Url/GetSetBasePathCest.php index 014c794cca2..43d7eb168c6 100644 --- a/tests/integration/Url/GetSetBasePathCest.php +++ b/tests/integration/Url/GetSetBasePathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetSetBasePathCest /** * Tests Phalcon\Url :: getBasePath()/setBasePath() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function urlGetSetBasePath(IntegrationTester $I) diff --git a/tests/integration/Url/GetSetBaseUriCest.php b/tests/integration/Url/GetSetBaseUriCest.php index 8b548019d49..cc709b9fbfb 100644 --- a/tests/integration/Url/GetSetBaseUriCest.php +++ b/tests/integration/Url/GetSetBaseUriCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetSetBaseUriCest /** * Tests Phalcon\Url :: getBaseUri()/setBaseUri() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function urlGetSetBaseUri(IntegrationTester $I) @@ -28,7 +28,7 @@ public function urlGetSetBaseUri(IntegrationTester $I) $I->wantToTest('Url - getBaseUri()/setBaseUri()'); $url = new Url(); - $path = 'https://phalconphp.com'; + $path = 'https://phalcon.io'; $url->setBaseUri($path); $expected = $path; diff --git a/tests/integration/Url/GetSetDICest.php b/tests/integration/Url/GetSetDICest.php index e30ce5efc0c..bf935eca80f 100644 --- a/tests/integration/Url/GetSetDICest.php +++ b/tests/integration/Url/GetSetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetSetDICest /** * Tests Phalcon\Url :: getDI()/setDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function urlGetSetDI(IntegrationTester $I) diff --git a/tests/integration/Url/GetSetStaticBaseUriCest.php b/tests/integration/Url/GetSetStaticBaseUriCest.php index 0979a059c2f..d6febc8ffe0 100644 --- a/tests/integration/Url/GetSetStaticBaseUriCest.php +++ b/tests/integration/Url/GetSetStaticBaseUriCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetSetStaticBaseUriCest /** * Tests Phalcon\Url :: getStaticBaseUri()/setStaticBaseUri() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function urlGetSetStaticBaseUri(IntegrationTester $I) @@ -29,7 +29,7 @@ public function urlGetSetStaticBaseUri(IntegrationTester $I) $url = new Url(); - $path = 'https://phalconphp.com'; + $path = 'https://phalcon.io'; $url->setStaticBaseUri($path); @@ -43,7 +43,7 @@ public function urlGetSetStaticBaseUri(IntegrationTester $I) * Tests Phalcon\Url :: getStaticBaseUri()/setStaticBaseUri() - * getBaseUrl() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function urlGetSetStaticBaseUriGetBaseUri(IntegrationTester $I) @@ -52,7 +52,7 @@ public function urlGetSetStaticBaseUriGetBaseUri(IntegrationTester $I) $url = new Url(); - $expected = 'https://phalconphp.com'; + $expected = 'https://phalcon.io'; $url->setBaseUri($expected); diff --git a/tests/integration/Url/GetStaticBaseUriCest.php b/tests/integration/Url/GetStaticBaseUriCest.php index c82fa39bc9f..a205a9e7f1a 100644 --- a/tests/integration/Url/GetStaticBaseUriCest.php +++ b/tests/integration/Url/GetStaticBaseUriCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetStaticBaseUriCest /** * Tests Phalcon\Url :: getStaticBaseUri() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-16 */ public function urlGetStaticBaseUri(IntegrationTester $I) diff --git a/tests/integration/Url/GetStaticCest.php b/tests/integration/Url/GetStaticCest.php index ff18d8e2a4b..f9bffe334ba 100644 --- a/tests/integration/Url/GetStaticCest.php +++ b/tests/integration/Url/GetStaticCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetStaticCest /** * Tests Phalcon\Url :: getStatic() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function urlGetStatic(IntegrationTester $I) @@ -28,9 +28,9 @@ public function urlGetStatic(IntegrationTester $I) $I->wantToTest('Url - getStatic()'); $url = new Url(); - $url->setStaticBaseUri('https://phalconphp.com'); + $url->setStaticBaseUri('https://phalcon.io'); - $expected = 'https://phalconphp.com/en/team'; + $expected = 'https://phalcon.io/en/team'; $actual = $url->getStatic('/en/team'); $I->assertEquals($expected, $actual); } diff --git a/tests/integration/Url/PathCest.php b/tests/integration/Url/PathCest.php index 1b2cde41ef7..bb411f7c89f 100644 --- a/tests/integration/Url/PathCest.php +++ b/tests/integration/Url/PathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class PathCest /** * Tests Phalcon\Url :: path() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function urlPath(IntegrationTester $I) diff --git a/tests/integration/Url/Refactor-UrlCest.php b/tests/integration/Url/Refactor-UrlCest.php index bf43292982c..9c6e64f92c3 100644 --- a/tests/integration/Url/Refactor-UrlCest.php +++ b/tests/integration/Url/Refactor-UrlCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -103,7 +103,7 @@ private function getDataToSetDi(): array /** * Tests the base url * - * @author Nikolaos Dimopoulos + * @author Nikolaos Dimopoulos * @since 2014-09-04 * * @dataProvider getUrlToSetServer diff --git a/tests/integration/Url/SetBasePathCest.php b/tests/integration/Url/SetBasePathCest.php index d3ce06caff4..8d8e4cbe012 100644 --- a/tests/integration/Url/SetBasePathCest.php +++ b/tests/integration/Url/SetBasePathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetBasePathCest /** * Tests Phalcon\Url :: setBasePath() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-16 */ public function urlSetBasePath(IntegrationTester $I) diff --git a/tests/integration/Url/SetBaseUriCest.php b/tests/integration/Url/SetBaseUriCest.php index b0b659e6d38..488ad594ae6 100644 --- a/tests/integration/Url/SetBaseUriCest.php +++ b/tests/integration/Url/SetBaseUriCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -107,7 +107,7 @@ private function getDataToSetDi(): array /** * Tests the url with a controller and action * - * @author Nikolaos Dimopoulos + * @author Nikolaos Dimopoulos * @since 2014-09-04 * * @dataProvider getUrlToSetBaseUri diff --git a/tests/integration/Url/SetStaticBaseUriCest.php b/tests/integration/Url/SetStaticBaseUriCest.php index a9db12800e4..be29abdc225 100644 --- a/tests/integration/Url/SetStaticBaseUriCest.php +++ b/tests/integration/Url/SetStaticBaseUriCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetStaticBaseUriCest /** * Tests Phalcon\Url :: setStaticBaseUri() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-16 */ public function urlSetStaticBaseUri(IntegrationTester $I) diff --git a/tests/integration/Validation/AddCest.php b/tests/integration/Validation/AddCest.php index 63faeb67aa3..57ed34c87f2 100644 --- a/tests/integration/Validation/AddCest.php +++ b/tests/integration/Validation/AddCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Validation/AppendMessageCest.php b/tests/integration/Validation/AppendMessageCest.php index a89383511ff..bc97927e2ff 100644 --- a/tests/integration/Validation/AppendMessageCest.php +++ b/tests/integration/Validation/AppendMessageCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AppendMessageCest /** * Tests Phalcon\Validation :: appendMessage() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-16 */ public function validationAppendMessage(IntegrationTester $I) diff --git a/tests/integration/Validation/BindCest.php b/tests/integration/Validation/BindCest.php index 29128956584..d909590efa2 100644 --- a/tests/integration/Validation/BindCest.php +++ b/tests/integration/Validation/BindCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Validation/ConstructCest.php b/tests/integration/Validation/ConstructCest.php index 18930a6b561..6cc5e6fb5bd 100644 --- a/tests/integration/Validation/ConstructCest.php +++ b/tests/integration/Validation/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Validation/GetDataCest.php b/tests/integration/Validation/GetDataCest.php index 49b093c07b2..39a7ef90549 100644 --- a/tests/integration/Validation/GetDataCest.php +++ b/tests/integration/Validation/GetDataCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Validation/GetEntityCest.php b/tests/integration/Validation/GetEntityCest.php index ea94a6feed9..c44feb81f66 100644 --- a/tests/integration/Validation/GetEntityCest.php +++ b/tests/integration/Validation/GetEntityCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Validation/GetEventsManagerCest.php b/tests/integration/Validation/GetEventsManagerCest.php index 7cd8cd76707..54e45429294 100644 --- a/tests/integration/Validation/GetEventsManagerCest.php +++ b/tests/integration/Validation/GetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetEventsManagerCest /** * Tests Phalcon\Validation :: getEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-16 */ public function validationGetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Validation/GetFiltersCest.php b/tests/integration/Validation/GetFiltersCest.php index c5caa9c78cd..3d679326b30 100644 --- a/tests/integration/Validation/GetFiltersCest.php +++ b/tests/integration/Validation/GetFiltersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Validation/GetLabelCest.php b/tests/integration/Validation/GetLabelCest.php index 9236a4e5208..0ecc97d92ce 100644 --- a/tests/integration/Validation/GetLabelCest.php +++ b/tests/integration/Validation/GetLabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetLabelCest /** * Tests Phalcon\Validation :: getLabel() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-16 */ public function validationGetLabel(IntegrationTester $I) diff --git a/tests/integration/Validation/GetMessagesCest.php b/tests/integration/Validation/GetMessagesCest.php index 0c18ea84f5b..6d1c8d7793a 100644 --- a/tests/integration/Validation/GetMessagesCest.php +++ b/tests/integration/Validation/GetMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetMessagesCest /** * Tests Phalcon\Validation :: getMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-16 */ public function validationGetMessages(IntegrationTester $I) diff --git a/tests/integration/Validation/GetSetDICest.php b/tests/integration/Validation/GetSetDICest.php index 2ff98d76889..5775b7c4040 100644 --- a/tests/integration/Validation/GetSetDICest.php +++ b/tests/integration/Validation/GetSetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetSetDICest /** * Tests Phalcon\Validation :: getDI() / setDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-16 */ public function validationGetSetDI(IntegrationTester $I) diff --git a/tests/integration/Validation/GetValidatorsCest.php b/tests/integration/Validation/GetValidatorsCest.php index 3f9e43a1a02..05681b0b3ea 100644 --- a/tests/integration/Validation/GetValidatorsCest.php +++ b/tests/integration/Validation/GetValidatorsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetValidatorsCest /** * Tests Phalcon\Validation :: getValidators() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-16 */ public function validationGetValidators(IntegrationTester $I) diff --git a/tests/integration/Validation/GetValueCest.php b/tests/integration/Validation/GetValueCest.php index 1c2c8bb2ce6..fe899ee319b 100644 --- a/tests/integration/Validation/GetValueCest.php +++ b/tests/integration/Validation/GetValueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetValueCest /** * Tests Phalcon\Validation :: getValue() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-16 */ public function validationGetValue(IntegrationTester $I) diff --git a/tests/integration/Validation/RuleCest.php b/tests/integration/Validation/RuleCest.php index 8dda2fe0296..43880610379 100644 --- a/tests/integration/Validation/RuleCest.php +++ b/tests/integration/Validation/RuleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Validation/RulesCest.php b/tests/integration/Validation/RulesCest.php index b9c0c6fd066..3c393b10175 100644 --- a/tests/integration/Validation/RulesCest.php +++ b/tests/integration/Validation/RulesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Validation/SetDefaultMessagesCest.php b/tests/integration/Validation/SetDefaultMessagesCest.php index f09f1e15329..531bf209128 100644 --- a/tests/integration/Validation/SetDefaultMessagesCest.php +++ b/tests/integration/Validation/SetDefaultMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetDefaultMessagesCest /** * Tests Phalcon\Validation :: setDefaultMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-16 */ public function validationSetDefaultMessages(IntegrationTester $I) diff --git a/tests/integration/Validation/SetEntityCest.php b/tests/integration/Validation/SetEntityCest.php index 2ef92c0aa39..bbbc6c47517 100644 --- a/tests/integration/Validation/SetEntityCest.php +++ b/tests/integration/Validation/SetEntityCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Validation/SetEventsManagerCest.php b/tests/integration/Validation/SetEventsManagerCest.php index daa27401ca6..7d141451673 100644 --- a/tests/integration/Validation/SetEventsManagerCest.php +++ b/tests/integration/Validation/SetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetEventsManagerCest /** * Tests Phalcon\Validation :: setEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-16 */ public function validationSetEventsManager(IntegrationTester $I) diff --git a/tests/integration/Validation/SetFiltersCest.php b/tests/integration/Validation/SetFiltersCest.php index e7897798a5c..00b0b0fc4ef 100644 --- a/tests/integration/Validation/SetFiltersCest.php +++ b/tests/integration/Validation/SetFiltersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Validation/SetLabelsCest.php b/tests/integration/Validation/SetLabelsCest.php index d0993a89b64..54d4ffcf7d6 100644 --- a/tests/integration/Validation/SetLabelsCest.php +++ b/tests/integration/Validation/SetLabelsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetLabelsCest /** * Tests Phalcon\Validation :: setLabels() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-16 */ public function validationSetLabels(IntegrationTester $I) diff --git a/tests/integration/Validation/SetValidatorsCest.php b/tests/integration/Validation/SetValidatorsCest.php index c2316ad39f0..c3a7c5277eb 100644 --- a/tests/integration/Validation/SetValidatorsCest.php +++ b/tests/integration/Validation/SetValidatorsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Validation/UnderscoreGetCest.php b/tests/integration/Validation/UnderscoreGetCest.php index 9ddd2d3cfa7..2f9f15f8c8b 100644 --- a/tests/integration/Validation/UnderscoreGetCest.php +++ b/tests/integration/Validation/UnderscoreGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class UnderscoreGetCest /** * Tests Phalcon\Validation :: __get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-16 */ public function validationUnderscoreGet(IntegrationTester $I) diff --git a/tests/integration/Validation/ValidateCest.php b/tests/integration/Validation/ValidateCest.php index ab84df91983..42be2b27939 100644 --- a/tests/integration/Validation/ValidateCest.php +++ b/tests/integration/Validation/ValidateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ValidateCest /** * Tests Phalcon\Validation :: validate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-16 */ public function validationValidate(IntegrationTester $I) diff --git a/tests/integration/Validation/ValidationCest.php b/tests/integration/Validation/ValidationCest.php index 7a879bf6807..8580b2f4400 100644 --- a/tests/integration/Validation/ValidationCest.php +++ b/tests/integration/Validation/ValidationCest.php @@ -21,15 +21,15 @@ * Tests the \Phalcon\Validation component * * @copyright (c) 2011-2017 Phalcon Team - * @link http://www.phalconphp.com - * @author Andres Gutierrez - * @author Phalcon Team + * @link http://www.phalcon.io + * @author Andres Gutierrez + * @author Phalcon Team * * The contents of this file are subject to the New BSD License that is * bundled with this package in the file 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class ValidationCest @@ -75,7 +75,7 @@ public function _after(IntegrationTester $I) * * @since 2016-06-27 * - * @author Phalcon Team + * @author Phalcon Team */ public function appendValidationMessageToTheNonObject(IntegrationTester $I) { diff --git a/tests/integration/Validation/Validator/Alnum/ConstructCest.php b/tests/integration/Validation/Validator/Alnum/ConstructCest.php index c8310ec5e05..71c12cb7d32 100644 --- a/tests/integration/Validation/Validator/Alnum/ConstructCest.php +++ b/tests/integration/Validation/Validator/Alnum/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class ConstructCest /** * Tests Phalcon\Validation\Validator\Alnum :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorAlnumConstruct(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Alnum/GetOptionCest.php b/tests/integration/Validation/Validator/Alnum/GetOptionCest.php index bff2d1e91c0..c28eb4a3b93 100644 --- a/tests/integration/Validation/Validator/Alnum/GetOptionCest.php +++ b/tests/integration/Validation/Validator/Alnum/GetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class GetOptionCest /** * Tests Phalcon\Validation\Validator\Alnum :: getOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorAlnumGetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Alnum/HasOptionCest.php b/tests/integration/Validation/Validator/Alnum/HasOptionCest.php index e9ddbca840f..5fb8d524220 100644 --- a/tests/integration/Validation/Validator/Alnum/HasOptionCest.php +++ b/tests/integration/Validation/Validator/Alnum/HasOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class HasOptionCest /** * Tests Phalcon\Validation\Validator\Alnum :: hasOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorAlnumHasOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Alnum/SetOptionCest.php b/tests/integration/Validation/Validator/Alnum/SetOptionCest.php index 0972126ed15..d18c3b14fe2 100644 --- a/tests/integration/Validation/Validator/Alnum/SetOptionCest.php +++ b/tests/integration/Validation/Validator/Alnum/SetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class SetOptionCest /** * Tests Phalcon\Validation\Validator\Alnum :: setOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorAlnumSetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Alnum/ValidateCest.php b/tests/integration/Validation/Validator/Alnum/ValidateCest.php index 3b7503796bf..25a9d5dfee6 100644 --- a/tests/integration/Validation/Validator/Alnum/ValidateCest.php +++ b/tests/integration/Validation/Validator/Alnum/ValidateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Validation/Validator/Alpha/ConstructCest.php b/tests/integration/Validation/Validator/Alpha/ConstructCest.php index 8b65609bd0c..37d3d57e6f6 100644 --- a/tests/integration/Validation/Validator/Alpha/ConstructCest.php +++ b/tests/integration/Validation/Validator/Alpha/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class ConstructCest /** * Tests Phalcon\Validation\Validator\Alpha :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorAlphaConstruct(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Alpha/GetOptionCest.php b/tests/integration/Validation/Validator/Alpha/GetOptionCest.php index 5b134d271fd..c942d6f2d0b 100644 --- a/tests/integration/Validation/Validator/Alpha/GetOptionCest.php +++ b/tests/integration/Validation/Validator/Alpha/GetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class GetOptionCest /** * Tests Phalcon\Validation\Validator\Alpha :: getOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorAlphaGetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Alpha/HasOptionCest.php b/tests/integration/Validation/Validator/Alpha/HasOptionCest.php index 3c5b37f9771..cb71403d036 100644 --- a/tests/integration/Validation/Validator/Alpha/HasOptionCest.php +++ b/tests/integration/Validation/Validator/Alpha/HasOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class HasOptionCest /** * Tests Phalcon\Validation\Validator\Alpha :: hasOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorAlphaHasOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Alpha/SetOptionCest.php b/tests/integration/Validation/Validator/Alpha/SetOptionCest.php index 3d3bf977f8d..8ee1ea2f9b3 100644 --- a/tests/integration/Validation/Validator/Alpha/SetOptionCest.php +++ b/tests/integration/Validation/Validator/Alpha/SetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class SetOptionCest /** * Tests Phalcon\Validation\Validator\Alpha :: setOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorAlphaSetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Alpha/ValidateCest.php b/tests/integration/Validation/Validator/Alpha/ValidateCest.php index 2b8df109595..f5c535a7f36 100644 --- a/tests/integration/Validation/Validator/Alpha/ValidateCest.php +++ b/tests/integration/Validation/Validator/Alpha/ValidateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -148,7 +148,7 @@ public function validationValidatorAlphaValidateMultipleField(IntegrationTester * Tests Phalcon\Validation\Validator\Alpha :: validate() - Non Alphabetic * Characters * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-06-10 * * @dataProvider validationValidatorAlphaValidateNonAlphabeticCharactersProvider @@ -194,7 +194,7 @@ public function validationValidatorAlphaValidateNonAlphabeticCharacters(Integrat * Tests Phalcon\Validation\Validator\Alpha :: validate() - Alphabetic * Characters * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-06-10 * * @dataProvider validationValidatorAlphaValidateAlphabeticCharactersProvider @@ -232,7 +232,7 @@ public function validationValidatorAlphaValidateAlphabeticCharacters(Integration * Tests Phalcon\Validation\Validator\Alpha :: validate() - Non Latin * Characters * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-06-10 * * @dataProvider nonLatinCharactersProvider diff --git a/tests/integration/Validation/Validator/Between/ConstructCest.php b/tests/integration/Validation/Validator/Between/ConstructCest.php index 0da2aa9e025..cb4379aed57 100644 --- a/tests/integration/Validation/Validator/Between/ConstructCest.php +++ b/tests/integration/Validation/Validator/Between/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class ConstructCest /** * Tests Phalcon\Validation\Validator\Between :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorBetweenConstruct(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Between/GetOptionCest.php b/tests/integration/Validation/Validator/Between/GetOptionCest.php index 5707cec5031..c2d1d0db249 100644 --- a/tests/integration/Validation/Validator/Between/GetOptionCest.php +++ b/tests/integration/Validation/Validator/Between/GetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class GetOptionCest /** * Tests Phalcon\Validation\Validator\Between :: getOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorBetweenGetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Between/HasOptionCest.php b/tests/integration/Validation/Validator/Between/HasOptionCest.php index 6b2e8464657..4b1a999ca16 100644 --- a/tests/integration/Validation/Validator/Between/HasOptionCest.php +++ b/tests/integration/Validation/Validator/Between/HasOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class HasOptionCest /** * Tests Phalcon\Validation\Validator\Between :: hasOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorBetweenHasOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Between/SetOptionCest.php b/tests/integration/Validation/Validator/Between/SetOptionCest.php index 97905352b2a..0d881aa1371 100644 --- a/tests/integration/Validation/Validator/Between/SetOptionCest.php +++ b/tests/integration/Validation/Validator/Between/SetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class SetOptionCest /** * Tests Phalcon\Validation\Validator\Between :: setOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorBetweenSetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Between/ValidateCest.php b/tests/integration/Validation/Validator/Between/ValidateCest.php index f5d60493fc4..f3a8edb776e 100644 --- a/tests/integration/Validation/Validator/Between/ValidateCest.php +++ b/tests/integration/Validation/Validator/Between/ValidateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Validation/Validator/Callback/ConstructCest.php b/tests/integration/Validation/Validator/Callback/ConstructCest.php index dd9a5e8fdfa..772091f7aa0 100644 --- a/tests/integration/Validation/Validator/Callback/ConstructCest.php +++ b/tests/integration/Validation/Validator/Callback/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class ConstructCest /** * Tests Phalcon\Validation\Validator\Callback :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorCallbackConstruct(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Callback/GetOptionCest.php b/tests/integration/Validation/Validator/Callback/GetOptionCest.php index d80d6d436f8..d1d7c04d6e6 100644 --- a/tests/integration/Validation/Validator/Callback/GetOptionCest.php +++ b/tests/integration/Validation/Validator/Callback/GetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class GetOptionCest /** * Tests Phalcon\Validation\Validator\Callback :: getOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorCallbackGetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Callback/HasOptionCest.php b/tests/integration/Validation/Validator/Callback/HasOptionCest.php index 341e9529c22..69dbc1ef6d3 100644 --- a/tests/integration/Validation/Validator/Callback/HasOptionCest.php +++ b/tests/integration/Validation/Validator/Callback/HasOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class HasOptionCest /** * Tests Phalcon\Validation\Validator\Callback :: hasOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorCallbackHasOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Callback/SetOptionCest.php b/tests/integration/Validation/Validator/Callback/SetOptionCest.php index c31ae1bad53..3829ad2523a 100644 --- a/tests/integration/Validation/Validator/Callback/SetOptionCest.php +++ b/tests/integration/Validation/Validator/Callback/SetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class SetOptionCest /** * Tests Phalcon\Validation\Validator\Callback :: setOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorCallbackSetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Callback/ValidateCest.php b/tests/integration/Validation/Validator/Callback/ValidateCest.php index 33e2238ea58..5418255eb12 100644 --- a/tests/integration/Validation/Validator/Callback/ValidateCest.php +++ b/tests/integration/Validation/Validator/Callback/ValidateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Validation/Validator/Confirmation/ConstructCest.php b/tests/integration/Validation/Validator/Confirmation/ConstructCest.php index 38774139a6d..5b8bfdbaffb 100644 --- a/tests/integration/Validation/Validator/Confirmation/ConstructCest.php +++ b/tests/integration/Validation/Validator/Confirmation/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class ConstructCest /** * Tests Phalcon\Validation\Validator\Confirmation :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorConfirmationConstruct(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Confirmation/GetOptionCest.php b/tests/integration/Validation/Validator/Confirmation/GetOptionCest.php index f02ff0e3b85..f8aaa36dcc2 100644 --- a/tests/integration/Validation/Validator/Confirmation/GetOptionCest.php +++ b/tests/integration/Validation/Validator/Confirmation/GetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class GetOptionCest /** * Tests Phalcon\Validation\Validator\Confirmation :: getOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorConfirmationGetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Confirmation/HasOptionCest.php b/tests/integration/Validation/Validator/Confirmation/HasOptionCest.php index 4d560c8f4a3..a224c2aacf9 100644 --- a/tests/integration/Validation/Validator/Confirmation/HasOptionCest.php +++ b/tests/integration/Validation/Validator/Confirmation/HasOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class HasOptionCest /** * Tests Phalcon\Validation\Validator\Confirmation :: hasOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorConfirmationHasOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Confirmation/SetOptionCest.php b/tests/integration/Validation/Validator/Confirmation/SetOptionCest.php index 8e5eed658bc..2da5fa53850 100644 --- a/tests/integration/Validation/Validator/Confirmation/SetOptionCest.php +++ b/tests/integration/Validation/Validator/Confirmation/SetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class SetOptionCest /** * Tests Phalcon\Validation\Validator\Confirmation :: setOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorConfirmationSetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Confirmation/ValidateCest.php b/tests/integration/Validation/Validator/Confirmation/ValidateCest.php index 724387f2c25..db39bdcf6f5 100644 --- a/tests/integration/Validation/Validator/Confirmation/ValidateCest.php +++ b/tests/integration/Validation/Validator/Confirmation/ValidateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Validation/Validator/ConstructCest.php b/tests/integration/Validation/Validator/ConstructCest.php index bdaea205862..80ade9d62d9 100644 --- a/tests/integration/Validation/Validator/ConstructCest.php +++ b/tests/integration/Validation/Validator/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Validation\Validator :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorConstruct(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/CreditCard/ConstructCest.php b/tests/integration/Validation/Validator/CreditCard/ConstructCest.php index 1cffb788a93..560c1937083 100644 --- a/tests/integration/Validation/Validator/CreditCard/ConstructCest.php +++ b/tests/integration/Validation/Validator/CreditCard/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class ConstructCest /** * Tests Phalcon\Validation\Validator\CreditCard :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorCreditCardConstruct(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/CreditCard/GetOptionCest.php b/tests/integration/Validation/Validator/CreditCard/GetOptionCest.php index b86efe33c93..7d856b38516 100644 --- a/tests/integration/Validation/Validator/CreditCard/GetOptionCest.php +++ b/tests/integration/Validation/Validator/CreditCard/GetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class GetOptionCest /** * Tests Phalcon\Validation\Validator\CreditCard :: getOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorCreditCardGetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/CreditCard/HasOptionCest.php b/tests/integration/Validation/Validator/CreditCard/HasOptionCest.php index 97c806cb079..20076269892 100644 --- a/tests/integration/Validation/Validator/CreditCard/HasOptionCest.php +++ b/tests/integration/Validation/Validator/CreditCard/HasOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class HasOptionCest /** * Tests Phalcon\Validation\Validator\CreditCard :: hasOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorCreditCardHasOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/CreditCard/SetOptionCest.php b/tests/integration/Validation/Validator/CreditCard/SetOptionCest.php index 1e77e12a8f0..fb8a3df5626 100644 --- a/tests/integration/Validation/Validator/CreditCard/SetOptionCest.php +++ b/tests/integration/Validation/Validator/CreditCard/SetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class SetOptionCest /** * Tests Phalcon\Validation\Validator\CreditCard :: setOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorCreditCardSetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/CreditCard/ValidateCest.php b/tests/integration/Validation/Validator/CreditCard/ValidateCest.php index 09f88e3ee9c..6f0d87bb466 100644 --- a/tests/integration/Validation/Validator/CreditCard/ValidateCest.php +++ b/tests/integration/Validation/Validator/CreditCard/ValidateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Validation/Validator/Date/ConstructCest.php b/tests/integration/Validation/Validator/Date/ConstructCest.php index 261a76c286a..000169d8f80 100644 --- a/tests/integration/Validation/Validator/Date/ConstructCest.php +++ b/tests/integration/Validation/Validator/Date/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class ConstructCest /** * Tests Phalcon\Validation\Validator\Date :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorDateConstruct(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Date/GetOptionCest.php b/tests/integration/Validation/Validator/Date/GetOptionCest.php index 209f8909bce..cfbe9667c4d 100644 --- a/tests/integration/Validation/Validator/Date/GetOptionCest.php +++ b/tests/integration/Validation/Validator/Date/GetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class GetOptionCest /** * Tests Phalcon\Validation\Validator\Date :: getOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorDateGetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Date/HasOptionCest.php b/tests/integration/Validation/Validator/Date/HasOptionCest.php index c2bc83af1c0..c1dd1599305 100644 --- a/tests/integration/Validation/Validator/Date/HasOptionCest.php +++ b/tests/integration/Validation/Validator/Date/HasOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class HasOptionCest /** * Tests Phalcon\Validation\Validator\Date :: hasOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorDateHasOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Date/SetOptionCest.php b/tests/integration/Validation/Validator/Date/SetOptionCest.php index e3ab2f81aa1..e2a83686353 100644 --- a/tests/integration/Validation/Validator/Date/SetOptionCest.php +++ b/tests/integration/Validation/Validator/Date/SetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class SetOptionCest /** * Tests Phalcon\Validation\Validator\Date :: setOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorDateSetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Date/ValidateCest.php b/tests/integration/Validation/Validator/Date/ValidateCest.php index 272bea7a6bb..d65932de05c 100644 --- a/tests/integration/Validation/Validator/Date/ValidateCest.php +++ b/tests/integration/Validation/Validator/Date/ValidateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ValidateCest /** * Tests Phalcon\Validation\Validator\Date :: validate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorDateValidate(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/DateCest.php b/tests/integration/Validation/Validator/DateCest.php index 4ec5d48d875..3cbf3845d86 100644 --- a/tests/integration/Validation/Validator/DateCest.php +++ b/tests/integration/Validation/Validator/DateCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Validation/Validator/Digit/ConstructCest.php b/tests/integration/Validation/Validator/Digit/ConstructCest.php index bf6bc52e78c..3be88c58105 100644 --- a/tests/integration/Validation/Validator/Digit/ConstructCest.php +++ b/tests/integration/Validation/Validator/Digit/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class ConstructCest /** * Tests Phalcon\Validation\Validator\Digit :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorDigitConstruct(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Digit/GetOptionCest.php b/tests/integration/Validation/Validator/Digit/GetOptionCest.php index 2809f5bd4c1..c4b9d20f610 100644 --- a/tests/integration/Validation/Validator/Digit/GetOptionCest.php +++ b/tests/integration/Validation/Validator/Digit/GetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class GetOptionCest /** * Tests Phalcon\Validation\Validator\Digit :: getOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorDigitGetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Digit/HasOptionCest.php b/tests/integration/Validation/Validator/Digit/HasOptionCest.php index 25a5a2047fd..c9549c83a8b 100644 --- a/tests/integration/Validation/Validator/Digit/HasOptionCest.php +++ b/tests/integration/Validation/Validator/Digit/HasOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class HasOptionCest /** * Tests Phalcon\Validation\Validator\Digit :: hasOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorDigitHasOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Digit/SetOptionCest.php b/tests/integration/Validation/Validator/Digit/SetOptionCest.php index e34ede7709d..40021d760ce 100644 --- a/tests/integration/Validation/Validator/Digit/SetOptionCest.php +++ b/tests/integration/Validation/Validator/Digit/SetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class SetOptionCest /** * Tests Phalcon\Validation\Validator\Digit :: setOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorDigitSetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Digit/ValidateCest.php b/tests/integration/Validation/Validator/Digit/ValidateCest.php index 2ec7b6d1586..259f107e8db 100644 --- a/tests/integration/Validation/Validator/Digit/ValidateCest.php +++ b/tests/integration/Validation/Validator/Digit/ValidateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ValidateCest /** * Tests Phalcon\Validation\Validator\Digit :: validate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorDigitValidate(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/DigitCest.php b/tests/integration/Validation/Validator/DigitCest.php index 162710e10aa..0cee32f4feb 100644 --- a/tests/integration/Validation/Validator/DigitCest.php +++ b/tests/integration/Validation/Validator/DigitCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Validation/Validator/Email/ConstructCest.php b/tests/integration/Validation/Validator/Email/ConstructCest.php index 3ad3ea71497..eb0b0d0645d 100644 --- a/tests/integration/Validation/Validator/Email/ConstructCest.php +++ b/tests/integration/Validation/Validator/Email/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class ConstructCest /** * Tests Phalcon\Validation\Validator\Email :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorEmailConstruct(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Email/GetOptionCest.php b/tests/integration/Validation/Validator/Email/GetOptionCest.php index 55f660d23de..11edd813a93 100644 --- a/tests/integration/Validation/Validator/Email/GetOptionCest.php +++ b/tests/integration/Validation/Validator/Email/GetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class GetOptionCest /** * Tests Phalcon\Validation\Validator\Email :: getOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorEmailGetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Email/HasOptionCest.php b/tests/integration/Validation/Validator/Email/HasOptionCest.php index c09acc076cc..13279b8de3f 100644 --- a/tests/integration/Validation/Validator/Email/HasOptionCest.php +++ b/tests/integration/Validation/Validator/Email/HasOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class HasOptionCest /** * Tests Phalcon\Validation\Validator\Email :: hasOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorEmailHasOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Email/SetOptionCest.php b/tests/integration/Validation/Validator/Email/SetOptionCest.php index d1b2a56ca12..9bb4e637373 100644 --- a/tests/integration/Validation/Validator/Email/SetOptionCest.php +++ b/tests/integration/Validation/Validator/Email/SetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class SetOptionCest /** * Tests Phalcon\Validation\Validator\Email :: setOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorEmailSetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Email/ValidateCest.php b/tests/integration/Validation/Validator/Email/ValidateCest.php index 1039115c33b..b4e8ebc1cf5 100644 --- a/tests/integration/Validation/Validator/Email/ValidateCest.php +++ b/tests/integration/Validation/Validator/Email/ValidateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ValidateCest /** * Tests Phalcon\Validation\Validator\Email :: validate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorEmailValidate(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/EmailCest.php b/tests/integration/Validation/Validator/EmailCest.php index 547742c8e8c..5da0f558e65 100644 --- a/tests/integration/Validation/Validator/EmailCest.php +++ b/tests/integration/Validation/Validator/EmailCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Validation/Validator/ExclusionIn/ConstructCest.php b/tests/integration/Validation/Validator/ExclusionIn/ConstructCest.php index 20ea6a29174..0c6c9f10788 100644 --- a/tests/integration/Validation/Validator/ExclusionIn/ConstructCest.php +++ b/tests/integration/Validation/Validator/ExclusionIn/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class ConstructCest /** * Tests Phalcon\Validation\Validator\ExclusionIn :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorExclusionInConstruct(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/ExclusionIn/GetOptionCest.php b/tests/integration/Validation/Validator/ExclusionIn/GetOptionCest.php index 26e8b3cf25f..235400d184f 100644 --- a/tests/integration/Validation/Validator/ExclusionIn/GetOptionCest.php +++ b/tests/integration/Validation/Validator/ExclusionIn/GetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class GetOptionCest /** * Tests Phalcon\Validation\Validator\ExclusionIn :: getOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorExclusionInGetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/ExclusionIn/HasOptionCest.php b/tests/integration/Validation/Validator/ExclusionIn/HasOptionCest.php index 2df85a0c380..cd414555abb 100644 --- a/tests/integration/Validation/Validator/ExclusionIn/HasOptionCest.php +++ b/tests/integration/Validation/Validator/ExclusionIn/HasOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class HasOptionCest /** * Tests Phalcon\Validation\Validator\ExclusionIn :: hasOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorExclusionInHasOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/ExclusionIn/SetOptionCest.php b/tests/integration/Validation/Validator/ExclusionIn/SetOptionCest.php index df1a67b7976..0514fd18a77 100644 --- a/tests/integration/Validation/Validator/ExclusionIn/SetOptionCest.php +++ b/tests/integration/Validation/Validator/ExclusionIn/SetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class SetOptionCest /** * Tests Phalcon\Validation\Validator\ExclusionIn :: setOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorExclusionInSetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/ExclusionIn/ValidateCest.php b/tests/integration/Validation/Validator/ExclusionIn/ValidateCest.php index e0e1fc3daf7..5d67ed8d1e1 100644 --- a/tests/integration/Validation/Validator/ExclusionIn/ValidateCest.php +++ b/tests/integration/Validation/Validator/ExclusionIn/ValidateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ValidateCest /** * Tests Phalcon\Validation\Validator\ExclusionIn :: validate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorExclusioninValidate(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/ExclusionInCest.php b/tests/integration/Validation/Validator/ExclusionInCest.php index a9a5c189b37..7237b244c49 100644 --- a/tests/integration/Validation/Validator/ExclusionInCest.php +++ b/tests/integration/Validation/Validator/ExclusionInCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Validation/Validator/File/ConstructCest.php b/tests/integration/Validation/Validator/File/ConstructCest.php index c447a8a0bf0..f912ce62e45 100644 --- a/tests/integration/Validation/Validator/File/ConstructCest.php +++ b/tests/integration/Validation/Validator/File/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class ConstructCest /** * Tests Phalcon\Validation\Validator\File :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorFileConstruct(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/File/GetOptionCest.php b/tests/integration/Validation/Validator/File/GetOptionCest.php index b6ae062ee8c..c8167a20ce1 100644 --- a/tests/integration/Validation/Validator/File/GetOptionCest.php +++ b/tests/integration/Validation/Validator/File/GetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class GetOptionCest /** * Tests Phalcon\Validation\Validator\File :: getOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorFileGetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/File/HasOptionCest.php b/tests/integration/Validation/Validator/File/HasOptionCest.php index ac237d68a30..c65b66ae2c8 100644 --- a/tests/integration/Validation/Validator/File/HasOptionCest.php +++ b/tests/integration/Validation/Validator/File/HasOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class HasOptionCest /** * Tests Phalcon\Validation\Validator\File :: hasOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorFileHasOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/File/IsAllowEmptyCest.php b/tests/integration/Validation/Validator/File/IsAllowEmptyCest.php index 46c8bf76415..1ddf1dfc705 100644 --- a/tests/integration/Validation/Validator/File/IsAllowEmptyCest.php +++ b/tests/integration/Validation/Validator/File/IsAllowEmptyCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -18,7 +18,7 @@ class IsAllowEmptyCest /** * Tests Phalcon\Validation\Validator\File :: isAllowEmpty() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorFileIsAllowEmpty(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/File/SetOptionCest.php b/tests/integration/Validation/Validator/File/SetOptionCest.php index d6cb378220a..92098f0c16a 100644 --- a/tests/integration/Validation/Validator/File/SetOptionCest.php +++ b/tests/integration/Validation/Validator/File/SetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class SetOptionCest /** * Tests Phalcon\Validation\Validator\File :: setOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorFileSetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/File/ValidateCest.php b/tests/integration/Validation/Validator/File/ValidateCest.php index b07e4e43356..1914e652f20 100644 --- a/tests/integration/Validation/Validator/File/ValidateCest.php +++ b/tests/integration/Validation/Validator/File/ValidateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ValidateCest /** * Tests Phalcon\Validation\Validator\File :: validate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorFileValidate(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/GetOptionCest.php b/tests/integration/Validation/Validator/GetOptionCest.php index 0fa23e4aa7e..e7133a9409b 100644 --- a/tests/integration/Validation/Validator/GetOptionCest.php +++ b/tests/integration/Validation/Validator/GetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetOptionCest /** * Tests Phalcon\Validation\Validator :: getOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorGetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/HasOptionCest.php b/tests/integration/Validation/Validator/HasOptionCest.php index 5b356f93c64..a78b2f10256 100644 --- a/tests/integration/Validation/Validator/HasOptionCest.php +++ b/tests/integration/Validation/Validator/HasOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class HasOptionCest /** * Tests Phalcon\Validation\Validator :: hasOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorHasOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Identical/ConstructCest.php b/tests/integration/Validation/Validator/Identical/ConstructCest.php index 7437541e165..20080f5a577 100644 --- a/tests/integration/Validation/Validator/Identical/ConstructCest.php +++ b/tests/integration/Validation/Validator/Identical/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class ConstructCest /** * Tests Phalcon\Validation\Validator\Identical :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorIdenticalConstruct(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Identical/GetOptionCest.php b/tests/integration/Validation/Validator/Identical/GetOptionCest.php index 8e6333cd8af..7248ac0c5da 100644 --- a/tests/integration/Validation/Validator/Identical/GetOptionCest.php +++ b/tests/integration/Validation/Validator/Identical/GetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class GetOptionCest /** * Tests Phalcon\Validation\Validator\Identical :: getOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorIdenticalGetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Identical/HasOptionCest.php b/tests/integration/Validation/Validator/Identical/HasOptionCest.php index 25a5f48ed79..0abf7fa6548 100644 --- a/tests/integration/Validation/Validator/Identical/HasOptionCest.php +++ b/tests/integration/Validation/Validator/Identical/HasOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class HasOptionCest /** * Tests Phalcon\Validation\Validator\Identical :: hasOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorIdenticalHasOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Identical/SetOptionCest.php b/tests/integration/Validation/Validator/Identical/SetOptionCest.php index d4df69010b8..15b0b6d136e 100644 --- a/tests/integration/Validation/Validator/Identical/SetOptionCest.php +++ b/tests/integration/Validation/Validator/Identical/SetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class SetOptionCest /** * Tests Phalcon\Validation\Validator\Identical :: setOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorIdenticalSetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Identical/ValidateCest.php b/tests/integration/Validation/Validator/Identical/ValidateCest.php index 72cc401c910..d3bde4969c9 100644 --- a/tests/integration/Validation/Validator/Identical/ValidateCest.php +++ b/tests/integration/Validation/Validator/Identical/ValidateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ValidateCest /** * Tests Phalcon\Validation\Validator\Identical :: validate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorIdenticalValidate(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/IdenticalCest.php b/tests/integration/Validation/Validator/IdenticalCest.php index 6cd7aaf6d13..8be57967173 100644 --- a/tests/integration/Validation/Validator/IdenticalCest.php +++ b/tests/integration/Validation/Validator/IdenticalCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Validation/Validator/InclusionIn/ConstructCest.php b/tests/integration/Validation/Validator/InclusionIn/ConstructCest.php index 5522f3d467c..36329ff04b9 100644 --- a/tests/integration/Validation/Validator/InclusionIn/ConstructCest.php +++ b/tests/integration/Validation/Validator/InclusionIn/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class ConstructCest /** * Tests Phalcon\Validation\Validator\InclusionIn :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorInclusionInConstruct(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/InclusionIn/GetOptionCest.php b/tests/integration/Validation/Validator/InclusionIn/GetOptionCest.php index 718b5f74f77..eb522cc816d 100644 --- a/tests/integration/Validation/Validator/InclusionIn/GetOptionCest.php +++ b/tests/integration/Validation/Validator/InclusionIn/GetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class GetOptionCest /** * Tests Phalcon\Validation\Validator\InclusionIn :: getOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorInclusionInGetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/InclusionIn/HasOptionCest.php b/tests/integration/Validation/Validator/InclusionIn/HasOptionCest.php index 7aff24dafec..fb0e6eef982 100644 --- a/tests/integration/Validation/Validator/InclusionIn/HasOptionCest.php +++ b/tests/integration/Validation/Validator/InclusionIn/HasOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class HasOptionCest /** * Tests Phalcon\Validation\Validator\InclusionIn :: hasOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorInclusionInHasOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/InclusionIn/SetOptionCest.php b/tests/integration/Validation/Validator/InclusionIn/SetOptionCest.php index c1101cf3852..0a45dff3fb9 100644 --- a/tests/integration/Validation/Validator/InclusionIn/SetOptionCest.php +++ b/tests/integration/Validation/Validator/InclusionIn/SetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class SetOptionCest /** * Tests Phalcon\Validation\Validator\InclusionIn :: setOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorInclusionInSetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/InclusionIn/ValidateCest.php b/tests/integration/Validation/Validator/InclusionIn/ValidateCest.php index c5b2a422ee3..d1698c5986c 100644 --- a/tests/integration/Validation/Validator/InclusionIn/ValidateCest.php +++ b/tests/integration/Validation/Validator/InclusionIn/ValidateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ValidateCest /** * Tests Phalcon\Validation\Validator\InclusionIn :: validate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorInclusioninValidate(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/InclusionInCest.php b/tests/integration/Validation/Validator/InclusionInCest.php index aafe63bf516..71105c03866 100644 --- a/tests/integration/Validation/Validator/InclusionInCest.php +++ b/tests/integration/Validation/Validator/InclusionInCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Validation/Validator/Ip/ConstructCest.php b/tests/integration/Validation/Validator/Ip/ConstructCest.php index daa12e3672a..8321f870b50 100644 --- a/tests/integration/Validation/Validator/Ip/ConstructCest.php +++ b/tests/integration/Validation/Validator/Ip/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class ConstructCest /** * Tests Phalcon\Validation\Validator\Ip :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorIpConstruct(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Ip/GetOptionCest.php b/tests/integration/Validation/Validator/Ip/GetOptionCest.php index 8e926f755b9..34728284a83 100644 --- a/tests/integration/Validation/Validator/Ip/GetOptionCest.php +++ b/tests/integration/Validation/Validator/Ip/GetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class GetOptionCest /** * Tests Phalcon\Validation\Validator\Ip :: getOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorIpGetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Ip/HasOptionCest.php b/tests/integration/Validation/Validator/Ip/HasOptionCest.php index 122c40b5ed3..fd83779e6f9 100644 --- a/tests/integration/Validation/Validator/Ip/HasOptionCest.php +++ b/tests/integration/Validation/Validator/Ip/HasOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class HasOptionCest /** * Tests Phalcon\Validation\Validator\Ip :: hasOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorIpHasOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Ip/SetOptionCest.php b/tests/integration/Validation/Validator/Ip/SetOptionCest.php index 0880ef74898..22cb8dcdceb 100644 --- a/tests/integration/Validation/Validator/Ip/SetOptionCest.php +++ b/tests/integration/Validation/Validator/Ip/SetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class SetOptionCest /** * Tests Phalcon\Validation\Validator\Ip :: setOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorIpSetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Ip/ValidateCest.php b/tests/integration/Validation/Validator/Ip/ValidateCest.php index 0448d21a646..4a03264c7ba 100644 --- a/tests/integration/Validation/Validator/Ip/ValidateCest.php +++ b/tests/integration/Validation/Validator/Ip/ValidateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Validation/Validator/Numericality/ConstructCest.php b/tests/integration/Validation/Validator/Numericality/ConstructCest.php index 3b6db4324a4..f2c1c66edb0 100644 --- a/tests/integration/Validation/Validator/Numericality/ConstructCest.php +++ b/tests/integration/Validation/Validator/Numericality/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class ConstructCest /** * Tests Phalcon\Validation\Validator\Numericality :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorNumericalityConstruct(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Numericality/GetOptionCest.php b/tests/integration/Validation/Validator/Numericality/GetOptionCest.php index e28f996efc2..86e8cc62db2 100644 --- a/tests/integration/Validation/Validator/Numericality/GetOptionCest.php +++ b/tests/integration/Validation/Validator/Numericality/GetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class GetOptionCest /** * Tests Phalcon\Validation\Validator\Numericality :: getOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorNumericalityGetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Numericality/HasOptionCest.php b/tests/integration/Validation/Validator/Numericality/HasOptionCest.php index 382c70faabf..f79a774bbcb 100644 --- a/tests/integration/Validation/Validator/Numericality/HasOptionCest.php +++ b/tests/integration/Validation/Validator/Numericality/HasOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class HasOptionCest /** * Tests Phalcon\Validation\Validator\Numericality :: hasOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorNumericalityHasOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Numericality/SetOptionCest.php b/tests/integration/Validation/Validator/Numericality/SetOptionCest.php index 383dfd2168d..73f992ef29a 100644 --- a/tests/integration/Validation/Validator/Numericality/SetOptionCest.php +++ b/tests/integration/Validation/Validator/Numericality/SetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class SetOptionCest /** * Tests Phalcon\Validation\Validator\Numericality :: setOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorNumericalitySetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Numericality/ValidateCest.php b/tests/integration/Validation/Validator/Numericality/ValidateCest.php index 7af3906c0d5..6e9df8f9c00 100644 --- a/tests/integration/Validation/Validator/Numericality/ValidateCest.php +++ b/tests/integration/Validation/Validator/Numericality/ValidateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -28,7 +28,7 @@ class ValidateCest * * @dataProvider getExamples * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorNumericalityValidate(IntegrationTester $I, Example $example) diff --git a/tests/integration/Validation/Validator/NumericalityCest.php b/tests/integration/Validation/Validator/NumericalityCest.php index 2451e55e1a8..b61e3ed310e 100644 --- a/tests/integration/Validation/Validator/NumericalityCest.php +++ b/tests/integration/Validation/Validator/NumericalityCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Validation/Validator/PresenceOf/ConstructCest.php b/tests/integration/Validation/Validator/PresenceOf/ConstructCest.php index 242a7f4ecc0..ab831f252c1 100644 --- a/tests/integration/Validation/Validator/PresenceOf/ConstructCest.php +++ b/tests/integration/Validation/Validator/PresenceOf/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class ConstructCest /** * Tests Phalcon\Validation\Validator\PresenceOf :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorPresenceOfConstruct(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/PresenceOf/GetOptionCest.php b/tests/integration/Validation/Validator/PresenceOf/GetOptionCest.php index f92de8e1b5e..b5c9454b5da 100644 --- a/tests/integration/Validation/Validator/PresenceOf/GetOptionCest.php +++ b/tests/integration/Validation/Validator/PresenceOf/GetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class GetOptionCest /** * Tests Phalcon\Validation\Validator\PresenceOf :: getOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorPresenceOfGetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/PresenceOf/HasOptionCest.php b/tests/integration/Validation/Validator/PresenceOf/HasOptionCest.php index d2be645b890..f70065c31fa 100644 --- a/tests/integration/Validation/Validator/PresenceOf/HasOptionCest.php +++ b/tests/integration/Validation/Validator/PresenceOf/HasOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class HasOptionCest /** * Tests Phalcon\Validation\Validator\PresenceOf :: hasOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorPresenceOfHasOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/PresenceOf/SetOptionCest.php b/tests/integration/Validation/Validator/PresenceOf/SetOptionCest.php index 75a5e203c95..b7ee7ca3980 100644 --- a/tests/integration/Validation/Validator/PresenceOf/SetOptionCest.php +++ b/tests/integration/Validation/Validator/PresenceOf/SetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class SetOptionCest /** * Tests Phalcon\Validation\Validator\PresenceOf :: setOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorPresenceOfSetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/PresenceOf/ValidateCest.php b/tests/integration/Validation/Validator/PresenceOf/ValidateCest.php index 54d19e7dd3d..8fcc7b75643 100644 --- a/tests/integration/Validation/Validator/PresenceOf/ValidateCest.php +++ b/tests/integration/Validation/Validator/PresenceOf/ValidateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ValidateCest /** * Tests Phalcon\Validation\Validator\PresenceOf :: validate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorPresenceofValidate(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/PresenceOfCest.php b/tests/integration/Validation/Validator/PresenceOfCest.php index 378f74ab810..77953826425 100644 --- a/tests/integration/Validation/Validator/PresenceOfCest.php +++ b/tests/integration/Validation/Validator/PresenceOfCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -164,7 +164,7 @@ public function shouldValidateMultipleField(IntegrationTester $I) /** * Tests mixed fields * - * @author Phalcon Team + * @author Phalcon Team * @since 2013-03-01 */ public function shouldValidateMixedFields(IntegrationTester $I) @@ -210,7 +210,7 @@ public function shouldValidateMixedFields(IntegrationTester $I) /** * Tests cancel validation on first fail * - * @author Phalcon Team + * @author Phalcon Team * @since 2013-03-01 */ public function shouldCancelOnFail(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Regex/ConstructCest.php b/tests/integration/Validation/Validator/Regex/ConstructCest.php index 33a2d30d278..6d0b61b0966 100644 --- a/tests/integration/Validation/Validator/Regex/ConstructCest.php +++ b/tests/integration/Validation/Validator/Regex/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class ConstructCest /** * Tests Phalcon\Validation\Validator\Regex :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorRegexConstruct(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Regex/GetOptionCest.php b/tests/integration/Validation/Validator/Regex/GetOptionCest.php index e87e162c439..b63af7fbf57 100644 --- a/tests/integration/Validation/Validator/Regex/GetOptionCest.php +++ b/tests/integration/Validation/Validator/Regex/GetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class GetOptionCest /** * Tests Phalcon\Validation\Validator\Regex :: getOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorRegexGetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Regex/HasOptionCest.php b/tests/integration/Validation/Validator/Regex/HasOptionCest.php index 52b694a3b8d..74951bd12af 100644 --- a/tests/integration/Validation/Validator/Regex/HasOptionCest.php +++ b/tests/integration/Validation/Validator/Regex/HasOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class HasOptionCest /** * Tests Phalcon\Validation\Validator\Regex :: hasOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorRegexHasOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Regex/SetOptionCest.php b/tests/integration/Validation/Validator/Regex/SetOptionCest.php index 4bffd76496a..2b74fc30dfd 100644 --- a/tests/integration/Validation/Validator/Regex/SetOptionCest.php +++ b/tests/integration/Validation/Validator/Regex/SetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class SetOptionCest /** * Tests Phalcon\Validation\Validator\Regex :: setOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorRegexSetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Regex/ValidateCest.php b/tests/integration/Validation/Validator/Regex/ValidateCest.php index 19ec91cab5b..6c88571f1aa 100644 --- a/tests/integration/Validation/Validator/Regex/ValidateCest.php +++ b/tests/integration/Validation/Validator/Regex/ValidateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ValidateCest /** * Tests Phalcon\Validation\Validator\Regex :: validate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorRegexValidate(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/RegexCest.php b/tests/integration/Validation/Validator/RegexCest.php index b86764c21ca..0896af78aec 100644 --- a/tests/integration/Validation/Validator/RegexCest.php +++ b/tests/integration/Validation/Validator/RegexCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Validation/Validator/SetOptionCest.php b/tests/integration/Validation/Validator/SetOptionCest.php index 0c2d2848471..497e6eeeefb 100644 --- a/tests/integration/Validation/Validator/SetOptionCest.php +++ b/tests/integration/Validation/Validator/SetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetOptionCest /** * Tests Phalcon\Validation\Validator :: setOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorSetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/StringLength/ConstructCest.php b/tests/integration/Validation/Validator/StringLength/ConstructCest.php index c282ce1ed5c..3c80e0d1578 100644 --- a/tests/integration/Validation/Validator/StringLength/ConstructCest.php +++ b/tests/integration/Validation/Validator/StringLength/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ class ConstructCest /** * Tests Phalcon\Validation\Validator\StringLength :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorStringLengthConstruct(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/StringLength/GetOptionCest.php b/tests/integration/Validation/Validator/StringLength/GetOptionCest.php index 42d69bf993d..a5f5e70fec4 100644 --- a/tests/integration/Validation/Validator/StringLength/GetOptionCest.php +++ b/tests/integration/Validation/Validator/StringLength/GetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class GetOptionCest /** * Tests Phalcon\Validation\Validator\StringLength :: getOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorStringLengthGetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/StringLength/GetTemplateCest.php b/tests/integration/Validation/Validator/StringLength/GetTemplateCest.php index 911bb2b25d0..106fcc45b07 100644 --- a/tests/integration/Validation/Validator/StringLength/GetTemplateCest.php +++ b/tests/integration/Validation/Validator/StringLength/GetTemplateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetTemplateCest /** * Tests Phalcon\Validation\Validator\StringLength :: getTemplate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-23 */ public function validationValidatorStringLengthGetTemplate(UnitTester $I) diff --git a/tests/integration/Validation/Validator/StringLength/GetTemplatesCest.php b/tests/integration/Validation/Validator/StringLength/GetTemplatesCest.php index 05f11fa799f..fda599c4d40 100644 --- a/tests/integration/Validation/Validator/StringLength/GetTemplatesCest.php +++ b/tests/integration/Validation/Validator/StringLength/GetTemplatesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetTemplatesCest /** * Tests Phalcon\Validation\Validator\StringLength :: getTemplates() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-23 */ public function validationValidatorStringLengthGetTemplates(UnitTester $I) diff --git a/tests/integration/Validation/Validator/StringLength/GetValidatorsCest.php b/tests/integration/Validation/Validator/StringLength/GetValidatorsCest.php index 775fc96cb79..4793086e37a 100644 --- a/tests/integration/Validation/Validator/StringLength/GetValidatorsCest.php +++ b/tests/integration/Validation/Validator/StringLength/GetValidatorsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetValidatorsCest /** * Tests Phalcon\Validation\Validator\StringLength :: getValidators() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-23 */ public function validationValidatorStringLengthGetValidators(UnitTester $I) diff --git a/tests/integration/Validation/Validator/StringLength/HasOptionCest.php b/tests/integration/Validation/Validator/StringLength/HasOptionCest.php index 74f8236b546..9bf25427f3a 100644 --- a/tests/integration/Validation/Validator/StringLength/HasOptionCest.php +++ b/tests/integration/Validation/Validator/StringLength/HasOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class HasOptionCest /** * Tests Phalcon\Validation\Validator\StringLength :: hasOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorStringLengthHasOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/StringLength/Max/ConstructCest.php b/tests/integration/Validation/Validator/StringLength/Max/ConstructCest.php index fdded6add32..da036d80d59 100644 --- a/tests/integration/Validation/Validator/StringLength/Max/ConstructCest.php +++ b/tests/integration/Validation/Validator/StringLength/Max/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class ConstructCest /** * Tests Phalcon\Validation\Validator\StringLength\Max :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-23 */ public function validationValidatorStringLengthMaxConstruct(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/StringLength/Max/GetOptionCest.php b/tests/integration/Validation/Validator/StringLength/Max/GetOptionCest.php index 25ab1d137a7..e59c71cce67 100644 --- a/tests/integration/Validation/Validator/StringLength/Max/GetOptionCest.php +++ b/tests/integration/Validation/Validator/StringLength/Max/GetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetOptionCest /** * Tests Phalcon\Validation\Validator\StringLength\Max :: getOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-23 */ public function validationValidatorStringLengthMaxGetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/StringLength/Max/GetTemplateCest.php b/tests/integration/Validation/Validator/StringLength/Max/GetTemplateCest.php index 449bc5b4bc3..31630ba6a6b 100644 --- a/tests/integration/Validation/Validator/StringLength/Max/GetTemplateCest.php +++ b/tests/integration/Validation/Validator/StringLength/Max/GetTemplateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetTemplateCest /** * Tests Phalcon\Validation\Validator\StringLength\Max :: getTemplate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-23 */ public function validationValidatorStringLengthMaxGetTemplate(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/StringLength/Max/GetTemplatesCest.php b/tests/integration/Validation/Validator/StringLength/Max/GetTemplatesCest.php index 21d056cf5f2..44cdc6005c6 100644 --- a/tests/integration/Validation/Validator/StringLength/Max/GetTemplatesCest.php +++ b/tests/integration/Validation/Validator/StringLength/Max/GetTemplatesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetTemplatesCest /** * Tests Phalcon\Validation\Validator\StringLength\Max :: getTemplates() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-23 */ public function validationValidatorStringLengthMaxGetTemplates(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/StringLength/Max/HasOptionCest.php b/tests/integration/Validation/Validator/StringLength/Max/HasOptionCest.php index 35a92803ac2..86d341c9012 100644 --- a/tests/integration/Validation/Validator/StringLength/Max/HasOptionCest.php +++ b/tests/integration/Validation/Validator/StringLength/Max/HasOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class HasOptionCest /** * Tests Phalcon\Validation\Validator\StringLength\Max :: hasOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-23 */ public function validationValidatorStringLengthMaxHasOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/StringLength/Max/MessageFactoryCest.php b/tests/integration/Validation/Validator/StringLength/Max/MessageFactoryCest.php index 9da65e1567c..a36d2f7b416 100644 --- a/tests/integration/Validation/Validator/StringLength/Max/MessageFactoryCest.php +++ b/tests/integration/Validation/Validator/StringLength/Max/MessageFactoryCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class MessageFactoryCest /** * Tests Phalcon\Validation\Validator\StringLength\Max :: messageFactory() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-23 */ public function validationValidatorStringLengthMaxMessageFactory(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/StringLength/Max/SetOptionCest.php b/tests/integration/Validation/Validator/StringLength/Max/SetOptionCest.php index 45d84600450..a7fb96b85b6 100644 --- a/tests/integration/Validation/Validator/StringLength/Max/SetOptionCest.php +++ b/tests/integration/Validation/Validator/StringLength/Max/SetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class SetOptionCest /** * Tests Phalcon\Validation\Validator\StringLength\Max :: setOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-23 */ public function validationValidatorStringLengthMaxSetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/StringLength/Max/SetTemplateCest.php b/tests/integration/Validation/Validator/StringLength/Max/SetTemplateCest.php index 3f38286681b..63a2a51094b 100644 --- a/tests/integration/Validation/Validator/StringLength/Max/SetTemplateCest.php +++ b/tests/integration/Validation/Validator/StringLength/Max/SetTemplateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetTemplateCest /** * Tests Phalcon\Validation\Validator\StringLength\Max :: setTemplate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-23 */ public function validationValidatorStringLengthMaxSetTemplate(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/StringLength/Max/SetTemplatesCest.php b/tests/integration/Validation/Validator/StringLength/Max/SetTemplatesCest.php index e7960c10d9d..62a56baa565 100644 --- a/tests/integration/Validation/Validator/StringLength/Max/SetTemplatesCest.php +++ b/tests/integration/Validation/Validator/StringLength/Max/SetTemplatesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetTemplatesCest /** * Tests Phalcon\Validation\Validator\StringLength\Max :: setTemplates() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-23 */ public function validationValidatorStringLengthMaxSetTemplates(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/StringLength/Max/ValidateCest.php b/tests/integration/Validation/Validator/StringLength/Max/ValidateCest.php index 5af85ee17a1..0839a941f4b 100644 --- a/tests/integration/Validation/Validator/StringLength/Max/ValidateCest.php +++ b/tests/integration/Validation/Validator/StringLength/Max/ValidateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ValidateCest /** * Tests Phalcon\Validation\Validator\StringLength\Max :: validate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-23 */ public function validationValidatorStringLengthMaxValidate(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/StringLength/MessageFactoryCest.php b/tests/integration/Validation/Validator/StringLength/MessageFactoryCest.php index af80c7fa09b..632bae6fcb9 100644 --- a/tests/integration/Validation/Validator/StringLength/MessageFactoryCest.php +++ b/tests/integration/Validation/Validator/StringLength/MessageFactoryCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class MessageFactoryCest /** * Tests Phalcon\Validation\Validator\StringLength :: messageFactory() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-23 */ public function validationValidatorStringLengthMessageFactory(UnitTester $I) diff --git a/tests/integration/Validation/Validator/StringLength/Min/ConstructCest.php b/tests/integration/Validation/Validator/StringLength/Min/ConstructCest.php index d5a937a17f3..e80d471398a 100644 --- a/tests/integration/Validation/Validator/StringLength/Min/ConstructCest.php +++ b/tests/integration/Validation/Validator/StringLength/Min/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class ConstructCest /** * Tests Phalcon\Validation\Validator\StringLength\Min :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-23 */ public function validationValidatorStringLengthMinConstruct(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/StringLength/Min/GetOptionCest.php b/tests/integration/Validation/Validator/StringLength/Min/GetOptionCest.php index b85988c06e1..c3c2a7b0f94 100644 --- a/tests/integration/Validation/Validator/StringLength/Min/GetOptionCest.php +++ b/tests/integration/Validation/Validator/StringLength/Min/GetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetOptionCest /** * Tests Phalcon\Validation\Validator\StringLength\Min :: getOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-23 */ public function validationValidatorStringLengthMinGetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/StringLength/Min/GetTemplateCest.php b/tests/integration/Validation/Validator/StringLength/Min/GetTemplateCest.php index 64f53b66a88..7bf69bc517a 100644 --- a/tests/integration/Validation/Validator/StringLength/Min/GetTemplateCest.php +++ b/tests/integration/Validation/Validator/StringLength/Min/GetTemplateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetTemplateCest /** * Tests Phalcon\Validation\Validator\StringLength\Min :: getTemplate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-23 */ public function validationValidatorStringLengthMinGetTemplate(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/StringLength/Min/GetTemplatesCest.php b/tests/integration/Validation/Validator/StringLength/Min/GetTemplatesCest.php index c807c48a92a..a426ff6bfb7 100644 --- a/tests/integration/Validation/Validator/StringLength/Min/GetTemplatesCest.php +++ b/tests/integration/Validation/Validator/StringLength/Min/GetTemplatesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetTemplatesCest /** * Tests Phalcon\Validation\Validator\StringLength\Min :: getTemplates() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-23 */ public function validationValidatorStringLengthMinGetTemplates(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/StringLength/Min/HasOptionCest.php b/tests/integration/Validation/Validator/StringLength/Min/HasOptionCest.php index 0e236fe9311..84141f375e2 100644 --- a/tests/integration/Validation/Validator/StringLength/Min/HasOptionCest.php +++ b/tests/integration/Validation/Validator/StringLength/Min/HasOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class HasOptionCest /** * Tests Phalcon\Validation\Validator\StringLength\Min :: hasOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-23 */ public function validationValidatorStringLengthMinHasOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/StringLength/Min/MessageFactoryCest.php b/tests/integration/Validation/Validator/StringLength/Min/MessageFactoryCest.php index b283430370d..083259cae9d 100644 --- a/tests/integration/Validation/Validator/StringLength/Min/MessageFactoryCest.php +++ b/tests/integration/Validation/Validator/StringLength/Min/MessageFactoryCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class MessageFactoryCest /** * Tests Phalcon\Validation\Validator\StringLength\Min :: messageFactory() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-23 */ public function validationValidatorStringLengthMinMessageFactory(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/StringLength/Min/SetOptionCest.php b/tests/integration/Validation/Validator/StringLength/Min/SetOptionCest.php index eb20e858d1f..fbb780caf73 100644 --- a/tests/integration/Validation/Validator/StringLength/Min/SetOptionCest.php +++ b/tests/integration/Validation/Validator/StringLength/Min/SetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class SetOptionCest /** * Tests Phalcon\Validation\Validator\StringLength\Min :: setOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-23 */ public function validationValidatorStringLengthMinSetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/StringLength/Min/SetTemplateCest.php b/tests/integration/Validation/Validator/StringLength/Min/SetTemplateCest.php index 3dbb396092c..cb6fbd84d38 100644 --- a/tests/integration/Validation/Validator/StringLength/Min/SetTemplateCest.php +++ b/tests/integration/Validation/Validator/StringLength/Min/SetTemplateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetTemplateCest /** * Tests Phalcon\Validation\Validator\StringLength\Min :: setTemplate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-23 */ public function validationValidatorStringLengthMinSetTemplate(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/StringLength/Min/SetTemplatesCest.php b/tests/integration/Validation/Validator/StringLength/Min/SetTemplatesCest.php index f31bf44b5c8..ccdc88b4471 100644 --- a/tests/integration/Validation/Validator/StringLength/Min/SetTemplatesCest.php +++ b/tests/integration/Validation/Validator/StringLength/Min/SetTemplatesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetTemplatesCest /** * Tests Phalcon\Validation\Validator\StringLength\Min :: setTemplates() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-23 */ public function validationValidatorStringLengthMinSetTemplates(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/StringLength/Min/ValidateCest.php b/tests/integration/Validation/Validator/StringLength/Min/ValidateCest.php index facad0a33ef..c0c174de4bd 100644 --- a/tests/integration/Validation/Validator/StringLength/Min/ValidateCest.php +++ b/tests/integration/Validation/Validator/StringLength/Min/ValidateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Validation/Validator/StringLength/SetOptionCest.php b/tests/integration/Validation/Validator/StringLength/SetOptionCest.php index baf5803bf28..a6e4f76d79c 100644 --- a/tests/integration/Validation/Validator/StringLength/SetOptionCest.php +++ b/tests/integration/Validation/Validator/StringLength/SetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class SetOptionCest /** * Tests Phalcon\Validation\Validator\StringLength :: setOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorStringLengthSetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/StringLength/SetTemplateCest.php b/tests/integration/Validation/Validator/StringLength/SetTemplateCest.php index c20c309918c..9c52bec3bab 100644 --- a/tests/integration/Validation/Validator/StringLength/SetTemplateCest.php +++ b/tests/integration/Validation/Validator/StringLength/SetTemplateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetTemplateCest /** * Tests Phalcon\Validation\Validator\StringLength :: setTemplate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-23 */ public function validationValidatorStringLengthSetTemplate(UnitTester $I) diff --git a/tests/integration/Validation/Validator/StringLength/SetTemplatesCest.php b/tests/integration/Validation/Validator/StringLength/SetTemplatesCest.php index 428975c3ae6..75f046c7df8 100644 --- a/tests/integration/Validation/Validator/StringLength/SetTemplatesCest.php +++ b/tests/integration/Validation/Validator/StringLength/SetTemplatesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetTemplatesCest /** * Tests Phalcon\Validation\Validator\StringLength :: setTemplates() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-23 */ public function validationValidatorStringLengthSetTemplates(UnitTester $I) diff --git a/tests/integration/Validation/Validator/StringLength/ValidateCest.php b/tests/integration/Validation/Validator/StringLength/ValidateCest.php index 0ac3beec889..d806e30d936 100644 --- a/tests/integration/Validation/Validator/StringLength/ValidateCest.php +++ b/tests/integration/Validation/Validator/StringLength/ValidateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -76,7 +76,7 @@ public function validationValidatorStringLengthValidateSingleField(IntegrationTe /** * Tests Phalcon\Validation\Validator\StringLength :: validate() - minimum * - * @author Phalcon Team + * @author Phalcon Team * @since 2013-03-09 */ public function validationValidatorStringLengthValidateMinimum(IntegrationTester $I) @@ -131,7 +131,7 @@ public function validationValidatorStringLengthValidateMinimum(IntegrationTester * Tests Phalcon\Validation\Validator\StringLength :: validate() - minimum * custom message * - * @author Phalcon Team + * @author Phalcon Team * @since 2013-03-09 */ public function validationValidatorStringLengthValidateMinimumWithCustomMessage(IntegrationTester $I) @@ -188,7 +188,7 @@ public function validationValidatorStringLengthValidateMinimumWithCustomMessage( /** * Tests Phalcon\Validation\Validator\StringLength :: validate() - maximum * - * @author Phalcon Team + * @author Phalcon Team * @since 2013-03-09 */ public function validationValidatorStringLengthValidateMaximum(IntegrationTester $I) @@ -243,7 +243,7 @@ public function validationValidatorStringLengthValidateMaximum(IntegrationTester * Tests Phalcon\Validation\Validator\StringLength :: validate() - maximum * custom message * - * @author Phalcon Team + * @author Phalcon Team * @since 2013-03-09 */ public function validationValidatorStringLengthValidateMaximumWithCustomMessage(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Uniqueness/ConstructCest.php b/tests/integration/Validation/Validator/Uniqueness/ConstructCest.php index 48da8f244ec..ba48d50e8db 100644 --- a/tests/integration/Validation/Validator/Uniqueness/ConstructCest.php +++ b/tests/integration/Validation/Validator/Uniqueness/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class ConstructCest /** * Tests Phalcon\Validation\Validator\Uniqueness :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorUniquenessConstruct(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Uniqueness/GetOptionCest.php b/tests/integration/Validation/Validator/Uniqueness/GetOptionCest.php index 87ddfefcd93..5f80fabbd80 100644 --- a/tests/integration/Validation/Validator/Uniqueness/GetOptionCest.php +++ b/tests/integration/Validation/Validator/Uniqueness/GetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class GetOptionCest /** * Tests Phalcon\Validation\Validator\Uniqueness :: getOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorUniquenessGetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Uniqueness/HasOptionCest.php b/tests/integration/Validation/Validator/Uniqueness/HasOptionCest.php index 9a9087d9802..86d0ea7e94f 100644 --- a/tests/integration/Validation/Validator/Uniqueness/HasOptionCest.php +++ b/tests/integration/Validation/Validator/Uniqueness/HasOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class HasOptionCest /** * Tests Phalcon\Validation\Validator\Uniqueness :: hasOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorUniquenessHasOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Uniqueness/SetOptionCest.php b/tests/integration/Validation/Validator/Uniqueness/SetOptionCest.php index a7b8d3fb9d7..ca5ea540f7b 100644 --- a/tests/integration/Validation/Validator/Uniqueness/SetOptionCest.php +++ b/tests/integration/Validation/Validator/Uniqueness/SetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class SetOptionCest /** * Tests Phalcon\Validation\Validator\Uniqueness :: setOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorUniquenessSetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Uniqueness/ValidateCest.php b/tests/integration/Validation/Validator/Uniqueness/ValidateCest.php index 5383818162d..71ccd25af90 100644 --- a/tests/integration/Validation/Validator/Uniqueness/ValidateCest.php +++ b/tests/integration/Validation/Validator/Uniqueness/ValidateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ValidateCest /** * Tests Phalcon\Validation\Validator\Uniqueness :: validate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorUniquenessValidate(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/UniquenessCest.php b/tests/integration/Validation/Validator/UniquenessCest.php index c2614885268..19fa58ceb32 100644 --- a/tests/integration/Validation/Validator/UniquenessCest.php +++ b/tests/integration/Validation/Validator/UniquenessCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/integration/Validation/Validator/Url/ConstructCest.php b/tests/integration/Validation/Validator/Url/ConstructCest.php index c7bc409ed50..bf8bac2da60 100644 --- a/tests/integration/Validation/Validator/Url/ConstructCest.php +++ b/tests/integration/Validation/Validator/Url/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class ConstructCest /** * Tests Phalcon\Validation\Validator\Url :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorUrlConstruct(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Url/GetOptionCest.php b/tests/integration/Validation/Validator/Url/GetOptionCest.php index 9b782915737..d2fc950ebbd 100644 --- a/tests/integration/Validation/Validator/Url/GetOptionCest.php +++ b/tests/integration/Validation/Validator/Url/GetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class GetOptionCest /** * Tests Phalcon\Validation\Validator\Url :: getOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorUrlGetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Url/HasOptionCest.php b/tests/integration/Validation/Validator/Url/HasOptionCest.php index 30fddfd7db0..b9f4c733a82 100644 --- a/tests/integration/Validation/Validator/Url/HasOptionCest.php +++ b/tests/integration/Validation/Validator/Url/HasOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class HasOptionCest /** * Tests Phalcon\Validation\Validator\Url :: hasOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorUrlHasOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Url/SetOptionCest.php b/tests/integration/Validation/Validator/Url/SetOptionCest.php index 8896a5e4638..aa39fe6fb70 100644 --- a/tests/integration/Validation/Validator/Url/SetOptionCest.php +++ b/tests/integration/Validation/Validator/Url/SetOptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class SetOptionCest /** * Tests Phalcon\Validation\Validator\Url :: setOption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorUrlSetOption(IntegrationTester $I) diff --git a/tests/integration/Validation/Validator/Url/ValidateCest.php b/tests/integration/Validation/Validator/Url/ValidateCest.php index 98954188c49..b3888ec4a6b 100644 --- a/tests/integration/Validation/Validator/Url/ValidateCest.php +++ b/tests/integration/Validation/Validator/Url/ValidateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -73,7 +73,7 @@ public function validationValidatorUrlSingleField(IntegrationTester $I) $messages = $validation->validate( [ - 'url' => 'http://phalconphp.com', + 'url' => 'http://phalcon.io', ] ); @@ -214,7 +214,7 @@ public function validationValidatorUrlCustomMessage(IntegrationTester $I) $messages = $validation->validate( [ - 'url' => 'http://phalconphp.com', + 'url' => 'http://phalcon.io', ] ); @@ -229,7 +229,7 @@ public function validationValidatorUrlCustomMessage(IntegrationTester $I) * * @dataProvider getExamples * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-10 */ public function validationValidatorUrlFlags(IntegrationTester $I, Example $example) @@ -278,7 +278,7 @@ private function getExamples(): array [ 'path required no array', FILTER_FLAG_PATH_REQUIRED, - 'phalconphp.com', + 'phalcon.io', ], [ 'query required no array', @@ -292,7 +292,7 @@ private function getExamples(): array FILTER_FLAG_PATH_REQUIRED, ], ], - 'phalconphp.com', + 'phalcon.io', ], [ 'query required', diff --git a/tests/integration/Validation/Validator/ValidateCest.php b/tests/integration/Validation/Validator/ValidateCest.php index 3196d329361..37d5b32d7a2 100644 --- a/tests/integration/Validation/Validator/ValidateCest.php +++ b/tests/integration/Validation/Validator/ValidateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ValidateCest /** * Tests Phalcon\Validation\Validator :: validate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function validationValidatorValidate(IntegrationTester $I) diff --git a/tests/integration/Validation/ValidatorFactory/LoadCest.php b/tests/integration/Validation/ValidatorFactory/LoadCest.php index a8e9973e4f5..a0df309ff63 100644 --- a/tests/integration/Validation/ValidatorFactory/LoadCest.php +++ b/tests/integration/Validation/ValidatorFactory/LoadCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -31,7 +31,7 @@ public function _before(IntegrationTester $I) /** * Tests Phalcon\Image\ImageFactory :: load() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-18 */ public function imageImageFactoryLoad(IntegrationTester $I) @@ -63,7 +63,7 @@ public function imageImageFactoryLoad(IntegrationTester $I) /** * Tests Phalcon\Image\ImageFactory :: load() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-18 */ public function imageImageFactoryLoadArray(IntegrationTester $I) diff --git a/tests/integration/Validation/ValidatorFactory/NewInstanceCest.php b/tests/integration/Validation/ValidatorFactory/NewInstanceCest.php index 76fca526016..68696e8c34c 100644 --- a/tests/integration/Validation/ValidatorFactory/NewInstanceCest.php +++ b/tests/integration/Validation/ValidatorFactory/NewInstanceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class NewInstanceCest /** * Tests Phalcon\Validation\ValidatorFactory :: newInstance() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-18 */ public function imageValidatorFactoryNewInstance(IntegrationTester $I) diff --git a/tests/shim.php b/tests/shim.php index feec42848e1..7a620db5006 100644 --- a/tests/shim.php +++ b/tests/shim.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Acl/Adapter/Memory/AddComponentAccessCest.php b/tests/unit/Acl/Adapter/Memory/AddComponentAccessCest.php index 7bbc767eccb..96890c12fec 100644 --- a/tests/unit/Acl/Adapter/Memory/AddComponentAccessCest.php +++ b/tests/unit/Acl/Adapter/Memory/AddComponentAccessCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddComponentAccessCest /** * Tests Phalcon\Acl\Adapter\Memory :: addComponentAccess() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclAdapterMemoryAddComponentAccess(UnitTester $I) @@ -35,7 +35,7 @@ public function aclAdapterMemoryAddComponentAccess(UnitTester $I) /** * Tests Phalcon\Acl\Adapter\Memory :: addComponentAccess() - unknown * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclAdapterMemoryAddComponentAccessUnknown(UnitTester $I) @@ -59,7 +59,7 @@ function () { * Tests Phalcon\Acl\Adapter\Memory :: addComponentAccess() - wrong access * list * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclAdapterMemoryAddComponentAccessWrongAccessList(UnitTester $I) diff --git a/tests/unit/Acl/Adapter/Memory/AddComponentCest.php b/tests/unit/Acl/Adapter/Memory/AddComponentCest.php index 85f98345430..e4007d5d481 100644 --- a/tests/unit/Acl/Adapter/Memory/AddComponentCest.php +++ b/tests/unit/Acl/Adapter/Memory/AddComponentCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class AddComponentCest /** * Tests Phalcon\Acl\Adapter\Memory :: addComponent() - string * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclAdapterMemoryAddComponentString(UnitTester $I) @@ -43,7 +43,7 @@ public function aclAdapterMemoryAddComponentString(UnitTester $I) /** * Tests Phalcon\Acl\Adapter\Memory :: addComponent() - object * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclAdapterMemoryAddComponentObject(UnitTester $I) @@ -65,7 +65,7 @@ public function aclAdapterMemoryAddComponentObject(UnitTester $I) /** * Tests Phalcon\Acl\Adapter\Memory :: addComponent() - numeric key * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclAdapterMemoryAddComponentNumericKey(UnitTester $I) diff --git a/tests/unit/Acl/Adapter/Memory/AddInheritCest.php b/tests/unit/Acl/Adapter/Memory/AddInheritCest.php index 54760c2a42e..d15e3043575 100644 --- a/tests/unit/Acl/Adapter/Memory/AddInheritCest.php +++ b/tests/unit/Acl/Adapter/Memory/AddInheritCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class AddInheritCest /** * Tests Phalcon\Acl\Adapter\Memory :: addInherit() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclAdapterMemoryAddInherit(UnitTester $I) diff --git a/tests/unit/Acl/Adapter/Memory/AddRoleCest.php b/tests/unit/Acl/Adapter/Memory/AddRoleCest.php index f5f80977be0..7f90d403eec 100644 --- a/tests/unit/Acl/Adapter/Memory/AddRoleCest.php +++ b/tests/unit/Acl/Adapter/Memory/AddRoleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddRoleCest /** * Tests Phalcon\Acl\Adapter\Memory :: addRole() - string * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclAdapterMemoryAddRoleString(UnitTester $I) @@ -41,7 +41,7 @@ public function aclAdapterMemoryAddRoleString(UnitTester $I) /** * Tests Phalcon\Acl\Adapter\Memory :: addRole() - object * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclAdapterMemoryAddRoleObject(UnitTester $I) @@ -60,7 +60,7 @@ public function aclAdapterMemoryAddRoleObject(UnitTester $I) /** * Tests Phalcon\Acl\Adapter\Memory :: addRole() - twice string * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclAdapterMemoryAddRoleTwiceString(UnitTester $I) @@ -83,7 +83,7 @@ public function aclAdapterMemoryAddRoleTwiceString(UnitTester $I) /** * Tests Phalcon\Acl\Adapter\Memory :: addRole() - twice object * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclAdapterMemoryAddRoleTwiceObject(UnitTester $I) @@ -106,7 +106,7 @@ public function aclAdapterMemoryAddRoleTwiceObject(UnitTester $I) /** * Tests Phalcon\Acl\Adapter\Memory :: addRole() - numeric key * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclAdapterMemoryAddRoleNumericKey(UnitTester $I) diff --git a/tests/unit/Acl/Adapter/Memory/AllowCest.php b/tests/unit/Acl/Adapter/Memory/AllowCest.php index ca30df36630..3c75d7549c3 100644 --- a/tests/unit/Acl/Adapter/Memory/AllowCest.php +++ b/tests/unit/Acl/Adapter/Memory/AllowCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ class AllowCest /** * Tests Phalcon\Acl\Adapter\Memory :: allow() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclAdapterMemoryAllow(UnitTester $I) @@ -66,7 +66,7 @@ public function aclAdapterMemoryAllow(UnitTester $I) /** * Tests Phalcon\Acl\Adapter\Memory :: allow() - wildcard * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-16 */ public function aclAdapterMemoryAllowWildcard(UnitTester $I) @@ -143,7 +143,7 @@ public function aclAdapterMemoryAllowWildcard(UnitTester $I) /** * Tests Phalcon\Acl\Adapter\Memory :: allow() - exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-16 */ public function aclAdapterMemoryAllowException(UnitTester $I) diff --git a/tests/unit/Acl/Adapter/Memory/ConstructCest.php b/tests/unit/Acl/Adapter/Memory/ConstructCest.php index a68cda1eae6..af6bf759222 100644 --- a/tests/unit/Acl/Adapter/Memory/ConstructCest.php +++ b/tests/unit/Acl/Adapter/Memory/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ class ConstructCest /** * Tests Phalcon\Acl\Adapter\Memory :: __construct() - constants * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclAdapterMemoryConstructConstants(UnitTester $I) @@ -41,7 +41,7 @@ public function aclAdapterMemoryConstructConstants(UnitTester $I) /** * Tests Phalcon\Acl\Adapter\Memory :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclAdapterMemoryConstruct(UnitTester $I) @@ -59,7 +59,7 @@ public function aclAdapterMemoryConstruct(UnitTester $I) /** * Tests serializing the ACL * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-04 */ public function testAclSerialize(UnitTester $I) @@ -121,7 +121,7 @@ public function testAclSerialize(UnitTester $I) * * @issue https://github.com/phalcon/cphalcon/issues/65 * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-04 */ public function testAclNegationOfInheritedRoles(UnitTester $I) diff --git a/tests/unit/Acl/Adapter/Memory/DenyCest.php b/tests/unit/Acl/Adapter/Memory/DenyCest.php index c3da2138cad..b919fc3ec22 100644 --- a/tests/unit/Acl/Adapter/Memory/DenyCest.php +++ b/tests/unit/Acl/Adapter/Memory/DenyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class DenyCest /** * Tests Phalcon\Acl\Adapter\Memory :: deny() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclAdapterMemoryDeny(UnitTester $I) diff --git a/tests/unit/Acl/Adapter/Memory/DropComponentAccessCest.php b/tests/unit/Acl/Adapter/Memory/DropComponentAccessCest.php index ec25de26057..c946cf84df2 100644 --- a/tests/unit/Acl/Adapter/Memory/DropComponentAccessCest.php +++ b/tests/unit/Acl/Adapter/Memory/DropComponentAccessCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class DropComponentAccessCest /** * Tests Phalcon\Acl\Adapter\Memory :: dropComponentAccess() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclAdapterMemoryDropComponentAccess(UnitTester $I) diff --git a/tests/unit/Acl/Adapter/Memory/GetActiveAccessCest.php b/tests/unit/Acl/Adapter/Memory/GetActiveAccessCest.php index 8b968b0132e..9fd2bb82ce1 100644 --- a/tests/unit/Acl/Adapter/Memory/GetActiveAccessCest.php +++ b/tests/unit/Acl/Adapter/Memory/GetActiveAccessCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetActiveAccessCest /** * Tests Phalcon\Acl\Adapter\Memory :: getActiveAccess() - default * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclAdapterMemoryGetActiveAccessDefault(UnitTester $I) @@ -38,7 +38,7 @@ public function aclAdapterMemoryGetActiveAccessDefault(UnitTester $I) /** * Tests Phalcon\Acl\Adapter\Memory :: getActiveAccess() - default * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclAdapterMemoryGetActiveAccess(UnitTester $I) diff --git a/tests/unit/Acl/Adapter/Memory/GetActiveComponentCest.php b/tests/unit/Acl/Adapter/Memory/GetActiveComponentCest.php index a31e4d517d3..e686990bd1c 100644 --- a/tests/unit/Acl/Adapter/Memory/GetActiveComponentCest.php +++ b/tests/unit/Acl/Adapter/Memory/GetActiveComponentCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetActiveComponentCest /** * Tests Phalcon\Acl\Adapter\Memory :: getActiveComponent() - default * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclAdapterMemoryGetActiveComponentDefault(UnitTester $I) @@ -38,7 +38,7 @@ public function aclAdapterMemoryGetActiveComponentDefault(UnitTester $I) /** * Tests Phalcon\Acl\Adapter\Memory :: getActiveComponent() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclAdapterMemoryGetActiveComponent(UnitTester $I) diff --git a/tests/unit/Acl/Adapter/Memory/GetActiveFunctionCest.php b/tests/unit/Acl/Adapter/Memory/GetActiveFunctionCest.php index fe1be244023..fa099158850 100644 --- a/tests/unit/Acl/Adapter/Memory/GetActiveFunctionCest.php +++ b/tests/unit/Acl/Adapter/Memory/GetActiveFunctionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Acl/Adapter/Memory/GetActiveFunctionCustomArgumentsCountCest.php b/tests/unit/Acl/Adapter/Memory/GetActiveFunctionCustomArgumentsCountCest.php index 52c7bc14935..28fbc456595 100644 --- a/tests/unit/Acl/Adapter/Memory/GetActiveFunctionCustomArgumentsCountCest.php +++ b/tests/unit/Acl/Adapter/Memory/GetActiveFunctionCustomArgumentsCountCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetActiveFunctionCustomArgumentsCountCest * Tests Phalcon\Acl\Adapter\Memory :: * getActiveFunctionCustomArgumentsCount() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclAdapterMemoryGetActiveFunctionCustomArgumentsCount(UnitTester $I) diff --git a/tests/unit/Acl/Adapter/Memory/GetActiveKeyCest.php b/tests/unit/Acl/Adapter/Memory/GetActiveKeyCest.php index e8e3a79e9ec..16cdc61d119 100644 --- a/tests/unit/Acl/Adapter/Memory/GetActiveKeyCest.php +++ b/tests/unit/Acl/Adapter/Memory/GetActiveKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Acl/Adapter/Memory/GetActiveRoleCest.php b/tests/unit/Acl/Adapter/Memory/GetActiveRoleCest.php index bd11a276fcc..a6376063af8 100644 --- a/tests/unit/Acl/Adapter/Memory/GetActiveRoleCest.php +++ b/tests/unit/Acl/Adapter/Memory/GetActiveRoleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetActiveRoleCest /** * Tests Phalcon\Acl\Adapter\Memory :: getActiveRole() - default * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclAdapterMemoryGetActiveRoleDefault(UnitTester $I) @@ -38,7 +38,7 @@ public function aclAdapterMemoryGetActiveRoleDefault(UnitTester $I) /** * Tests Phalcon\Acl\Adapter\Memory :: getActiveRole() - default * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclAdapterMemoryGetActiveRole(UnitTester $I) diff --git a/tests/unit/Acl/Adapter/Memory/GetComponentsCest.php b/tests/unit/Acl/Adapter/Memory/GetComponentsCest.php index dd82ab90798..1fe27bb6f91 100644 --- a/tests/unit/Acl/Adapter/Memory/GetComponentsCest.php +++ b/tests/unit/Acl/Adapter/Memory/GetComponentsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetComponentsCest /** * Tests Phalcon\Acl\Adapter\Memory :: getComponents() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclAdapterMemoryGetComponents(UnitTester $I) diff --git a/tests/unit/Acl/Adapter/Memory/GetRolesCest.php b/tests/unit/Acl/Adapter/Memory/GetRolesCest.php index 4f6c9642666..cd5c71ef763 100644 --- a/tests/unit/Acl/Adapter/Memory/GetRolesCest.php +++ b/tests/unit/Acl/Adapter/Memory/GetRolesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetRolesCest /** * Tests Phalcon\Acl\Adapter\Memory :: getRoles() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclAdapterMemoryGetRoles(UnitTester $I) diff --git a/tests/unit/Acl/Adapter/Memory/GetSetDefaultActionCest.php b/tests/unit/Acl/Adapter/Memory/GetSetDefaultActionCest.php index bd0feb2a236..dd09f2da465 100644 --- a/tests/unit/Acl/Adapter/Memory/GetSetDefaultActionCest.php +++ b/tests/unit/Acl/Adapter/Memory/GetSetDefaultActionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetSetDefaultActionCest /** * Tests Phalcon\Acl\Adapter\Memory :: getDefaultAction()/setDefaultAction() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclAdapterMemoryGetSetDefaultAction(UnitTester $I) @@ -43,7 +43,7 @@ public function aclAdapterMemoryGetSetDefaultAction(UnitTester $I) /** * Tests Phalcon\Acl\Adapter\Memory :: getDefaultAction()/setDefaultAction() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclAdapterMemoryGetSetDefaultActionDefault(UnitTester $I) diff --git a/tests/unit/Acl/Adapter/Memory/GetSetEventsManagerCest.php b/tests/unit/Acl/Adapter/Memory/GetSetEventsManagerCest.php index 036ff2dad66..a10d74be1e7 100644 --- a/tests/unit/Acl/Adapter/Memory/GetSetEventsManagerCest.php +++ b/tests/unit/Acl/Adapter/Memory/GetSetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetSetEventsManagerCest /** * Tests Phalcon\Acl\Adapter\Memory :: getEventsManager()/setEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclAdapterMemoryGetSetEventsManager(UnitTester $I) diff --git a/tests/unit/Acl/Adapter/Memory/GetSetNoArgumentsDefaultActionCest.php b/tests/unit/Acl/Adapter/Memory/GetSetNoArgumentsDefaultActionCest.php index c110f6a6356..e91d3bcb589 100644 --- a/tests/unit/Acl/Adapter/Memory/GetSetNoArgumentsDefaultActionCest.php +++ b/tests/unit/Acl/Adapter/Memory/GetSetNoArgumentsDefaultActionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetSetNoArgumentsDefaultActionCest * Tests Phalcon\Acl\Adapter\Memory :: * getNoArgumentsDefaultAction()/setNoArgumentsDefaultAction() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclAdapterMemoryGetSetNoArgumentsDefaultAction(UnitTester $I) @@ -47,7 +47,7 @@ public function aclAdapterMemoryGetSetNoArgumentsDefaultAction(UnitTester $I) * Tests Phalcon\Acl\Adapter\Memory :: * getNoArgumentsDefaultAction()/setNoArgumentsDefaultAction() - default * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclAdapterMemoryGetSetNoArgumentsDefaultActionDefault(UnitTester $I) diff --git a/tests/unit/Acl/Adapter/Memory/IsAllowedCest.php b/tests/unit/Acl/Adapter/Memory/IsAllowedCest.php index 10276b3c459..55d1dfbcab8 100644 --- a/tests/unit/Acl/Adapter/Memory/IsAllowedCest.php +++ b/tests/unit/Acl/Adapter/Memory/IsAllowedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -161,7 +161,7 @@ function (TestRoleComponentAware $admin, TestRoleComponentAware $user) { /** * Tests Phalcon\Acl\Adapter\Memory :: isAllowed() - function no parameters * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-16 */ public function aclAdapterMemoryIsAllowedFunctionNoParameters(UnitTester $I) @@ -194,7 +194,7 @@ function () { * Tests Phalcon\Acl\Adapter\Memory :: isAllowed() - function more * parameters * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-16 */ public function aclAdapterMemoryIsAllowedFunctionMoreParameters(UnitTester $I) @@ -246,7 +246,7 @@ function ($parameter) { * Tests Phalcon\Acl\Adapter\Memory :: isAllowed() - function not enough * parameters * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-16 */ public function aclAdapterMemoryIsAllowedFunctionNotEnoughParameters(UnitTester $I) @@ -295,7 +295,7 @@ function ($parameter, $value) { /** * Tests Phalcon\Acl\Adapter\Memory :: isAllowed() - exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-16 */ public function aclAdapterMemoryIsAllowedException(UnitTester $I) diff --git a/tests/unit/Acl/Adapter/Memory/IsComponentCest.php b/tests/unit/Acl/Adapter/Memory/IsComponentCest.php index 4aa6a88f671..a95d799e858 100644 --- a/tests/unit/Acl/Adapter/Memory/IsComponentCest.php +++ b/tests/unit/Acl/Adapter/Memory/IsComponentCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class IsComponentCest /** * Tests Phalcon\Acl\Adapter\Memory :: isComponent() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclAdapterMemoryIsComponent(UnitTester $I) @@ -41,7 +41,7 @@ public function aclAdapterMemoryIsComponent(UnitTester $I) /** * Tests Phalcon\Acl\Adapter\Memory :: isComponent() - unknown * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclAdapterMemoryIsComponentUnknown(UnitTester $I) diff --git a/tests/unit/Acl/Adapter/Memory/IsRoleCest.php b/tests/unit/Acl/Adapter/Memory/IsRoleCest.php index 2052d218122..35a6eb382ed 100644 --- a/tests/unit/Acl/Adapter/Memory/IsRoleCest.php +++ b/tests/unit/Acl/Adapter/Memory/IsRoleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class IsRoleCest /** * Tests Phalcon\Acl\Adapter\Memory :: isRole() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclAdapterMemoryIsRole(UnitTester $I) @@ -41,7 +41,7 @@ public function aclAdapterMemoryIsRole(UnitTester $I) /** * Tests Phalcon\Acl\Adapter\Memory :: isRole() - unknown * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclAdapterMemoryIsRoleUnknown(UnitTester $I) diff --git a/tests/unit/Acl/Component/ConstructCest.php b/tests/unit/Acl/Component/ConstructCest.php index 889b26872e5..0bcaf806a04 100644 --- a/tests/unit/Acl/Component/ConstructCest.php +++ b/tests/unit/Acl/Component/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Acl\Component :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclComponentConstruct(UnitTester $I) @@ -40,7 +40,7 @@ public function aclComponentConstruct(UnitTester $I) /** * Tests Phalcon\Acl\Component :: __construct() - wildcard * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclComponentConstructWithWildcardThrowsException(UnitTester $I) @@ -58,7 +58,7 @@ function () { /** * Tests Phalcon\Acl\Component :: __construct() - without name * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclComponentConstructWithoutName(UnitTester $I) diff --git a/tests/unit/Acl/Component/GetDescriptionCest.php b/tests/unit/Acl/Component/GetDescriptionCest.php index 038ab92573c..007e75b5934 100644 --- a/tests/unit/Acl/Component/GetDescriptionCest.php +++ b/tests/unit/Acl/Component/GetDescriptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetDescriptionCest /** * Tests Phalcon\Acl\Component :: getDescription() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclComponentGetDescription(UnitTester $I) @@ -38,7 +38,7 @@ public function aclComponentGetDescription(UnitTester $I) /** * Tests Phalcon\Acl\Component :: getDescription() - empty * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclComponentGetDescriptionEmpty(UnitTester $I) diff --git a/tests/unit/Acl/Component/GetNameCest.php b/tests/unit/Acl/Component/GetNameCest.php index 0892f4f3daa..577c041a9d7 100644 --- a/tests/unit/Acl/Component/GetNameCest.php +++ b/tests/unit/Acl/Component/GetNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetNameCest /** * Tests Phalcon\Acl\Component :: getName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclComponentGetName(UnitTester $I) diff --git a/tests/unit/Acl/Component/ToStringCest.php b/tests/unit/Acl/Component/ToStringCest.php index 47099781ef1..e26dbe07ccd 100644 --- a/tests/unit/Acl/Component/ToStringCest.php +++ b/tests/unit/Acl/Component/ToStringCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ToStringCest /** * Tests Phalcon\Acl\Component :: __toString() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclComponentToString(UnitTester $I) diff --git a/tests/unit/Acl/Role/ConstructCest.php b/tests/unit/Acl/Role/ConstructCest.php index 24d82126183..63142c12c5c 100644 --- a/tests/unit/Acl/Role/ConstructCest.php +++ b/tests/unit/Acl/Role/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Acl\Role :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclRoleConstruct(UnitTester $I) @@ -40,7 +40,7 @@ public function aclRoleConstruct(UnitTester $I) /** * Tests Phalcon\Acl\Role :: __construct() - wildcard * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclRoleConstructWithWildcardThrowsException(UnitTester $I) @@ -58,7 +58,7 @@ function () { /** * Tests Phalcon\Acl\Role :: __construct() - without name * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclRoleConstructWithoutName(UnitTester $I) diff --git a/tests/unit/Acl/Role/GetDescriptionCest.php b/tests/unit/Acl/Role/GetDescriptionCest.php index 5aa07b1af63..01cad2e6826 100644 --- a/tests/unit/Acl/Role/GetDescriptionCest.php +++ b/tests/unit/Acl/Role/GetDescriptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetDescriptionCest /** * Tests Phalcon\Acl\Role :: getDescription() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclRoleGetDescription(UnitTester $I) @@ -38,7 +38,7 @@ public function aclRoleGetDescription(UnitTester $I) /** * Tests Phalcon\Acl\Role :: getDescription() - empty * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclRoleGetDescriptionEmpty(UnitTester $I) diff --git a/tests/unit/Acl/Role/GetNameCest.php b/tests/unit/Acl/Role/GetNameCest.php index b1abad34345..d710a8da533 100644 --- a/tests/unit/Acl/Role/GetNameCest.php +++ b/tests/unit/Acl/Role/GetNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetNameCest /** * Tests Phalcon\Acl\Role :: getName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclRoleGetName(UnitTester $I) diff --git a/tests/unit/Acl/Role/ToStringCest.php b/tests/unit/Acl/Role/ToStringCest.php index 0d51d1f4fc9..70003705b7a 100644 --- a/tests/unit/Acl/Role/ToStringCest.php +++ b/tests/unit/Acl/Role/ToStringCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ToStringCest /** * Tests Phalcon\Acl\Role :: __toString() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function aclRoleToString(UnitTester $I) diff --git a/tests/unit/Annotations/Adapter/Apcu/ConstructCest.php b/tests/unit/Annotations/Adapter/Apcu/ConstructCest.php index 7c52a14a696..3d296b8c75d 100644 --- a/tests/unit/Annotations/Adapter/Apcu/ConstructCest.php +++ b/tests/unit/Annotations/Adapter/Apcu/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ConstructCest /** * Tests Phalcon\Annotations\Adapter\Apcu :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAdapterApcuConstruct(UnitTester $I) diff --git a/tests/unit/Annotations/Adapter/Apcu/GetCest.php b/tests/unit/Annotations/Adapter/Apcu/GetCest.php index bbc14505bc7..fbd4bac1874 100644 --- a/tests/unit/Annotations/Adapter/Apcu/GetCest.php +++ b/tests/unit/Annotations/Adapter/Apcu/GetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetCest /** * Tests Phalcon\Annotations\Adapter\Apcu :: get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAdapterApcuGet(UnitTester $I) diff --git a/tests/unit/Annotations/Adapter/Apcu/GetMethodCest.php b/tests/unit/Annotations/Adapter/Apcu/GetMethodCest.php index aa3805fb8ff..4fcfc41a07f 100644 --- a/tests/unit/Annotations/Adapter/Apcu/GetMethodCest.php +++ b/tests/unit/Annotations/Adapter/Apcu/GetMethodCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetMethodCest /** * Tests Phalcon\Annotations\Adapter\Apcu :: getMethod() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAdapterApcuGetMethod(UnitTester $I) diff --git a/tests/unit/Annotations/Adapter/Apcu/GetMethodsCest.php b/tests/unit/Annotations/Adapter/Apcu/GetMethodsCest.php index 08f043d246a..f663621b9da 100644 --- a/tests/unit/Annotations/Adapter/Apcu/GetMethodsCest.php +++ b/tests/unit/Annotations/Adapter/Apcu/GetMethodsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetMethodsCest /** * Tests Phalcon\Annotations\Adapter\Apcu :: getMethods() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAdapterApcuGetMethods(UnitTester $I) diff --git a/tests/unit/Annotations/Adapter/Apcu/GetPropertiesCest.php b/tests/unit/Annotations/Adapter/Apcu/GetPropertiesCest.php index 0fab2fdd73e..3c8ab4fc934 100644 --- a/tests/unit/Annotations/Adapter/Apcu/GetPropertiesCest.php +++ b/tests/unit/Annotations/Adapter/Apcu/GetPropertiesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetPropertiesCest /** * Tests Phalcon\Annotations\Adapter\Apcu :: getProperties() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAdapterApcuGetProperties(UnitTester $I) diff --git a/tests/unit/Annotations/Adapter/Apcu/GetPropertyCest.php b/tests/unit/Annotations/Adapter/Apcu/GetPropertyCest.php index 332429a329b..9928493cb08 100644 --- a/tests/unit/Annotations/Adapter/Apcu/GetPropertyCest.php +++ b/tests/unit/Annotations/Adapter/Apcu/GetPropertyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetPropertyCest /** * Tests Phalcon\Annotations\Adapter\Apcu :: getProperty() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAdapterApcuGetProperty(UnitTester $I) diff --git a/tests/unit/Annotations/Adapter/Apcu/GetReaderCest.php b/tests/unit/Annotations/Adapter/Apcu/GetReaderCest.php index fe9145871b9..3929f5d62d5 100644 --- a/tests/unit/Annotations/Adapter/Apcu/GetReaderCest.php +++ b/tests/unit/Annotations/Adapter/Apcu/GetReaderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetReaderCest /** * Tests Phalcon\Annotations\Adapter\Apcu :: getReader() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAdapterApcuGetReader(UnitTester $I) diff --git a/tests/unit/Annotations/Adapter/Apcu/ReadCest.php b/tests/unit/Annotations/Adapter/Apcu/ReadCest.php index 0fe8be6732d..f70333254ca 100644 --- a/tests/unit/Annotations/Adapter/Apcu/ReadCest.php +++ b/tests/unit/Annotations/Adapter/Apcu/ReadCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ReadCest /** * Tests Phalcon\Annotations\Adapter\Apcu :: read() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAdapterApcuRead(UnitTester $I) diff --git a/tests/unit/Annotations/Adapter/Apcu/SetReaderCest.php b/tests/unit/Annotations/Adapter/Apcu/SetReaderCest.php index c2cc94193f8..67982e9112c 100644 --- a/tests/unit/Annotations/Adapter/Apcu/SetReaderCest.php +++ b/tests/unit/Annotations/Adapter/Apcu/SetReaderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetReaderCest /** * Tests Phalcon\Annotations\Adapter\Apcu :: setReader() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAdapterApcuSetReader(UnitTester $I) diff --git a/tests/unit/Annotations/Adapter/Apcu/WriteCest.php b/tests/unit/Annotations/Adapter/Apcu/WriteCest.php index b7b36ba152f..fb936b37519 100644 --- a/tests/unit/Annotations/Adapter/Apcu/WriteCest.php +++ b/tests/unit/Annotations/Adapter/Apcu/WriteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class WriteCest /** * Tests Phalcon\Annotations\Adapter\Apcu :: write() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAdapterApcuWrite(UnitTester $I) diff --git a/tests/unit/Annotations/Adapter/ApcuCest.php b/tests/unit/Annotations/Adapter/ApcuCest.php index 4d00ade9e45..5f9f03c9bb4 100644 --- a/tests/unit/Annotations/Adapter/ApcuCest.php +++ b/tests/unit/Annotations/Adapter/ApcuCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Annotations/Adapter/Memory/GetCest.php b/tests/unit/Annotations/Adapter/Memory/GetCest.php index c936ce5fdff..547c7942aa1 100644 --- a/tests/unit/Annotations/Adapter/Memory/GetCest.php +++ b/tests/unit/Annotations/Adapter/Memory/GetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetCest /** * Tests Phalcon\Annotations\Adapter\Memory :: get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAdapterMemoryGet(UnitTester $I) diff --git a/tests/unit/Annotations/Adapter/Memory/GetMethodCest.php b/tests/unit/Annotations/Adapter/Memory/GetMethodCest.php index 935995f276f..f64b62888b8 100644 --- a/tests/unit/Annotations/Adapter/Memory/GetMethodCest.php +++ b/tests/unit/Annotations/Adapter/Memory/GetMethodCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetMethodCest /** * Tests Phalcon\Annotations\Adapter\Memory :: getMethod() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAdapterMemoryGetMethod(UnitTester $I) diff --git a/tests/unit/Annotations/Adapter/Memory/GetMethodsCest.php b/tests/unit/Annotations/Adapter/Memory/GetMethodsCest.php index 55286207f18..ff65de8a00f 100644 --- a/tests/unit/Annotations/Adapter/Memory/GetMethodsCest.php +++ b/tests/unit/Annotations/Adapter/Memory/GetMethodsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetMethodsCest /** * Tests Phalcon\Annotations\Adapter\Memory :: getMethods() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAdapterMemoryGetMethods(UnitTester $I) diff --git a/tests/unit/Annotations/Adapter/Memory/GetPropertiesCest.php b/tests/unit/Annotations/Adapter/Memory/GetPropertiesCest.php index 4e205f1e351..cf49d75d4ba 100644 --- a/tests/unit/Annotations/Adapter/Memory/GetPropertiesCest.php +++ b/tests/unit/Annotations/Adapter/Memory/GetPropertiesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetPropertiesCest /** * Tests Phalcon\Annotations\Adapter\Memory :: getProperties() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAdapterMemoryGetProperties(UnitTester $I) diff --git a/tests/unit/Annotations/Adapter/Memory/GetPropertyCest.php b/tests/unit/Annotations/Adapter/Memory/GetPropertyCest.php index d7287fc1072..a85bb9b6add 100644 --- a/tests/unit/Annotations/Adapter/Memory/GetPropertyCest.php +++ b/tests/unit/Annotations/Adapter/Memory/GetPropertyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetPropertyCest /** * Tests Phalcon\Annotations\Adapter\Memory :: getProperty() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAdapterMemoryGetProperty(UnitTester $I) diff --git a/tests/unit/Annotations/Adapter/Memory/GetReaderCest.php b/tests/unit/Annotations/Adapter/Memory/GetReaderCest.php index ee7fb845dbb..68a22cd83c6 100644 --- a/tests/unit/Annotations/Adapter/Memory/GetReaderCest.php +++ b/tests/unit/Annotations/Adapter/Memory/GetReaderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetReaderCest /** * Tests Phalcon\Annotations\Adapter\Memory :: getReader() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAdapterMemoryGetReader(UnitTester $I) diff --git a/tests/unit/Annotations/Adapter/Memory/ReadCest.php b/tests/unit/Annotations/Adapter/Memory/ReadCest.php index 695e141c637..1069dee480b 100644 --- a/tests/unit/Annotations/Adapter/Memory/ReadCest.php +++ b/tests/unit/Annotations/Adapter/Memory/ReadCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ReadCest /** * Tests Phalcon\Annotations\Adapter\Memory :: read() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAdapterMemoryRead(UnitTester $I) diff --git a/tests/unit/Annotations/Adapter/Memory/SetReaderCest.php b/tests/unit/Annotations/Adapter/Memory/SetReaderCest.php index d99baa6d9d9..7f145fd69a1 100644 --- a/tests/unit/Annotations/Adapter/Memory/SetReaderCest.php +++ b/tests/unit/Annotations/Adapter/Memory/SetReaderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetReaderCest /** * Tests Phalcon\Annotations\Adapter\Memory :: setReader() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAdapterMemorySetReader(UnitTester $I) diff --git a/tests/unit/Annotations/Adapter/Memory/WriteCest.php b/tests/unit/Annotations/Adapter/Memory/WriteCest.php index 659d6b8c2b2..ffb519dbb9a 100644 --- a/tests/unit/Annotations/Adapter/Memory/WriteCest.php +++ b/tests/unit/Annotations/Adapter/Memory/WriteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class WriteCest /** * Tests Phalcon\Annotations\Adapter\Memory :: write() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAdapterMemoryWrite(UnitTester $I) diff --git a/tests/unit/Annotations/Adapter/MemoryCest.php b/tests/unit/Annotations/Adapter/MemoryCest.php index 347f372ef4c..6e22cafd435 100644 --- a/tests/unit/Annotations/Adapter/MemoryCest.php +++ b/tests/unit/Annotations/Adapter/MemoryCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Annotations/Adapter/Stream/ConstructCest.php b/tests/unit/Annotations/Adapter/Stream/ConstructCest.php index e6e36470d0e..cb2b5af1f69 100644 --- a/tests/unit/Annotations/Adapter/Stream/ConstructCest.php +++ b/tests/unit/Annotations/Adapter/Stream/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ConstructCest /** * Tests Phalcon\Annotations\Adapter\Stream :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAdapterStreamConstruct(UnitTester $I) diff --git a/tests/unit/Annotations/Adapter/Stream/GetCest.php b/tests/unit/Annotations/Adapter/Stream/GetCest.php index 740a28c993d..34d7338c86d 100644 --- a/tests/unit/Annotations/Adapter/Stream/GetCest.php +++ b/tests/unit/Annotations/Adapter/Stream/GetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetCest /** * Tests Phalcon\Annotations\Adapter\Stream :: get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAdapterStreamGet(UnitTester $I) diff --git a/tests/unit/Annotations/Adapter/Stream/GetMethodCest.php b/tests/unit/Annotations/Adapter/Stream/GetMethodCest.php index 89bef336dfc..b7bb05559b7 100644 --- a/tests/unit/Annotations/Adapter/Stream/GetMethodCest.php +++ b/tests/unit/Annotations/Adapter/Stream/GetMethodCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetMethodCest /** * Tests Phalcon\Annotations\Adapter\Stream :: getMethod() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAdapterStreamGetMethod(UnitTester $I) diff --git a/tests/unit/Annotations/Adapter/Stream/GetMethodsCest.php b/tests/unit/Annotations/Adapter/Stream/GetMethodsCest.php index 015d43b5e85..ad6cbfeb042 100644 --- a/tests/unit/Annotations/Adapter/Stream/GetMethodsCest.php +++ b/tests/unit/Annotations/Adapter/Stream/GetMethodsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetMethodsCest /** * Tests Phalcon\Annotations\Adapter\Stream :: getMethods() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAdapterStreamGetMethods(UnitTester $I) diff --git a/tests/unit/Annotations/Adapter/Stream/GetPropertiesCest.php b/tests/unit/Annotations/Adapter/Stream/GetPropertiesCest.php index 3c9f0df09a7..2f403af8fd5 100644 --- a/tests/unit/Annotations/Adapter/Stream/GetPropertiesCest.php +++ b/tests/unit/Annotations/Adapter/Stream/GetPropertiesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetPropertiesCest /** * Tests Phalcon\Annotations\Adapter\Stream :: getProperties() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAdapterStreamGetProperties(UnitTester $I) diff --git a/tests/unit/Annotations/Adapter/Stream/GetPropertyCest.php b/tests/unit/Annotations/Adapter/Stream/GetPropertyCest.php index 1c5c627823f..df60ff12813 100644 --- a/tests/unit/Annotations/Adapter/Stream/GetPropertyCest.php +++ b/tests/unit/Annotations/Adapter/Stream/GetPropertyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetPropertyCest /** * Tests Phalcon\Annotations\Adapter\Stream :: getProperty() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAdapterStreamGetProperty(UnitTester $I) diff --git a/tests/unit/Annotations/Adapter/Stream/GetReaderCest.php b/tests/unit/Annotations/Adapter/Stream/GetReaderCest.php index a63b593674e..3f91eef470e 100644 --- a/tests/unit/Annotations/Adapter/Stream/GetReaderCest.php +++ b/tests/unit/Annotations/Adapter/Stream/GetReaderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetReaderCest /** * Tests Phalcon\Annotations\Adapter\Stream :: getReader() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAdapterStreamGetReader(UnitTester $I) diff --git a/tests/unit/Annotations/Adapter/Stream/ReadCest.php b/tests/unit/Annotations/Adapter/Stream/ReadCest.php index 13dd322a516..b38c17ab683 100644 --- a/tests/unit/Annotations/Adapter/Stream/ReadCest.php +++ b/tests/unit/Annotations/Adapter/Stream/ReadCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ReadCest /** * Tests Phalcon\Annotations\Adapter\Stream :: read() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAdapterStreamRead(UnitTester $I) diff --git a/tests/unit/Annotations/Adapter/Stream/SetReaderCest.php b/tests/unit/Annotations/Adapter/Stream/SetReaderCest.php index a323d0dbb24..805018bd081 100644 --- a/tests/unit/Annotations/Adapter/Stream/SetReaderCest.php +++ b/tests/unit/Annotations/Adapter/Stream/SetReaderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetReaderCest /** * Tests Phalcon\Annotations\Adapter\Stream :: setReader() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAdapterStreamSetReader(UnitTester $I) diff --git a/tests/unit/Annotations/Adapter/Stream/WriteCest.php b/tests/unit/Annotations/Adapter/Stream/WriteCest.php index e66f0ed29f9..6896de9375c 100644 --- a/tests/unit/Annotations/Adapter/Stream/WriteCest.php +++ b/tests/unit/Annotations/Adapter/Stream/WriteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class WriteCest /** * Tests Phalcon\Annotations\Adapter\Stream :: write() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAdapterStreamWrite(UnitTester $I) diff --git a/tests/unit/Annotations/Adapter/StreamCest.php b/tests/unit/Annotations/Adapter/StreamCest.php index 9f7b81f0cea..91816478596 100644 --- a/tests/unit/Annotations/Adapter/StreamCest.php +++ b/tests/unit/Annotations/Adapter/StreamCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Annotations/Annotation/ConstructCest.php b/tests/unit/Annotations/Annotation/ConstructCest.php index 25e96d585ac..8027c2c9c70 100644 --- a/tests/unit/Annotations/Annotation/ConstructCest.php +++ b/tests/unit/Annotations/Annotation/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ConstructCest /** * Tests Phalcon\Annotations\Annotation :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAnnotationConstruct(UnitTester $I) diff --git a/tests/unit/Annotations/Annotation/GetArgumentCest.php b/tests/unit/Annotations/Annotation/GetArgumentCest.php index 4a6e9775bac..29d24779d56 100644 --- a/tests/unit/Annotations/Annotation/GetArgumentCest.php +++ b/tests/unit/Annotations/Annotation/GetArgumentCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetArgumentCest /** * Tests Phalcon\Annotations\Annotation :: getArgument() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAnnotationGetArgument(UnitTester $I) diff --git a/tests/unit/Annotations/Annotation/GetArgumentsCest.php b/tests/unit/Annotations/Annotation/GetArgumentsCest.php index 4d54a432946..e21539139fb 100644 --- a/tests/unit/Annotations/Annotation/GetArgumentsCest.php +++ b/tests/unit/Annotations/Annotation/GetArgumentsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetArgumentsCest /** * Tests Phalcon\Annotations\Annotation :: getArguments() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAnnotationGetArguments(UnitTester $I) diff --git a/tests/unit/Annotations/Annotation/GetExprArgumentsCest.php b/tests/unit/Annotations/Annotation/GetExprArgumentsCest.php index 4eae7989cfd..e1aef562598 100644 --- a/tests/unit/Annotations/Annotation/GetExprArgumentsCest.php +++ b/tests/unit/Annotations/Annotation/GetExprArgumentsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetExprArgumentsCest /** * Tests Phalcon\Annotations\Annotation :: getExprArguments() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAnnotationGetExprArguments(UnitTester $I) diff --git a/tests/unit/Annotations/Annotation/GetExpressionCest.php b/tests/unit/Annotations/Annotation/GetExpressionCest.php index f407b459573..6d8a9ba3342 100644 --- a/tests/unit/Annotations/Annotation/GetExpressionCest.php +++ b/tests/unit/Annotations/Annotation/GetExpressionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetExpressionCest /** * Tests Phalcon\Annotations\Annotation :: getExpression() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAnnotationGetExpression(UnitTester $I) diff --git a/tests/unit/Annotations/Annotation/GetNameCest.php b/tests/unit/Annotations/Annotation/GetNameCest.php index 0f9e2b602d4..7f9925e3d34 100644 --- a/tests/unit/Annotations/Annotation/GetNameCest.php +++ b/tests/unit/Annotations/Annotation/GetNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetNameCest /** * Tests Phalcon\Annotations\Annotation :: getName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAnnotationGetName(UnitTester $I) diff --git a/tests/unit/Annotations/Annotation/GetNamedArgumentCest.php b/tests/unit/Annotations/Annotation/GetNamedArgumentCest.php index a64e5273566..6afadc56890 100644 --- a/tests/unit/Annotations/Annotation/GetNamedArgumentCest.php +++ b/tests/unit/Annotations/Annotation/GetNamedArgumentCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetNamedArgumentCest /** * Tests Phalcon\Annotations\Annotation :: getNamedArgument() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAnnotationGetNamedArgument(UnitTester $I) diff --git a/tests/unit/Annotations/Annotation/GetNamedParameterCest.php b/tests/unit/Annotations/Annotation/GetNamedParameterCest.php index ab47483d764..874b061a476 100644 --- a/tests/unit/Annotations/Annotation/GetNamedParameterCest.php +++ b/tests/unit/Annotations/Annotation/GetNamedParameterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetNamedParameterCest /** * Tests Phalcon\Annotations\Annotation :: getNamedParameter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAnnotationGetNamedParameter(UnitTester $I) diff --git a/tests/unit/Annotations/Annotation/HasArgumentCest.php b/tests/unit/Annotations/Annotation/HasArgumentCest.php index e7a16904637..d480298a0c0 100644 --- a/tests/unit/Annotations/Annotation/HasArgumentCest.php +++ b/tests/unit/Annotations/Annotation/HasArgumentCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class HasArgumentCest /** * Tests Phalcon\Annotations\Annotation :: hasArgument() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAnnotationHasArgument(UnitTester $I) diff --git a/tests/unit/Annotations/Annotation/NumberArgumentsCest.php b/tests/unit/Annotations/Annotation/NumberArgumentsCest.php index 990ee4417e2..8692aa5741d 100644 --- a/tests/unit/Annotations/Annotation/NumberArgumentsCest.php +++ b/tests/unit/Annotations/Annotation/NumberArgumentsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class NumberArgumentsCest /** * Tests Phalcon\Annotations\Annotation :: numberArguments() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsAnnotationNumberArguments(UnitTester $I) diff --git a/tests/unit/Annotations/AnnotationsFactory/LoadCest.php b/tests/unit/Annotations/AnnotationsFactory/LoadCest.php index 320dd9e7c23..7cb83032c0c 100644 --- a/tests/unit/Annotations/AnnotationsFactory/LoadCest.php +++ b/tests/unit/Annotations/AnnotationsFactory/LoadCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -29,7 +29,7 @@ public function _before(UnitTester $I) /** * Tests Phalcon\Annotations\AnnotationsFactory :: load() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-18 */ public function imageAnnotationsFactoryLoad(UnitTester $I) @@ -43,7 +43,7 @@ public function imageAnnotationsFactoryLoad(UnitTester $I) /** * Tests Phalcon\Annotations\AnnotationsFactory :: load() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-18 */ public function imageAnnotationsFactoryLoadArray(UnitTester $I) diff --git a/tests/unit/Annotations/AnnotationsFactory/NewInstanceCest.php b/tests/unit/Annotations/AnnotationsFactory/NewInstanceCest.php index 2e826f02d82..c2c5f31f9f3 100644 --- a/tests/unit/Annotations/AnnotationsFactory/NewInstanceCest.php +++ b/tests/unit/Annotations/AnnotationsFactory/NewInstanceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class NewInstanceCest /** * Tests Phalcon\Annotations\AdapterFactory :: newInstance() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-19 */ public function annotationsAdapterFactoryNewInstance(UnitTester $I) diff --git a/tests/unit/Annotations/Collection/ConstructCest.php b/tests/unit/Annotations/Collection/ConstructCest.php index 659ecdd55ad..db6772dcc0d 100644 --- a/tests/unit/Annotations/Collection/ConstructCest.php +++ b/tests/unit/Annotations/Collection/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ConstructCest /** * Tests Phalcon\Annotations\Collection :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsCollectionConstruct(UnitTester $I) diff --git a/tests/unit/Annotations/Collection/CountCest.php b/tests/unit/Annotations/Collection/CountCest.php index 1c9ef6bd746..03e3fe85066 100644 --- a/tests/unit/Annotations/Collection/CountCest.php +++ b/tests/unit/Annotations/Collection/CountCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class CountCest /** * Tests Phalcon\Annotations\Collection :: count() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsCollectionCount(UnitTester $I) diff --git a/tests/unit/Annotations/Collection/CurrentCest.php b/tests/unit/Annotations/Collection/CurrentCest.php index 2dbf07e2c9a..480aa369e1a 100644 --- a/tests/unit/Annotations/Collection/CurrentCest.php +++ b/tests/unit/Annotations/Collection/CurrentCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class CurrentCest /** * Tests Phalcon\Annotations\Collection :: current() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsCollectionCurrent(UnitTester $I) diff --git a/tests/unit/Annotations/Collection/GetAllCest.php b/tests/unit/Annotations/Collection/GetAllCest.php index 11a13d7d5b5..92dd9b1cad8 100644 --- a/tests/unit/Annotations/Collection/GetAllCest.php +++ b/tests/unit/Annotations/Collection/GetAllCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetAllCest /** * Tests Phalcon\Annotations\Collection :: getAll() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsCollectionGetAll(UnitTester $I) diff --git a/tests/unit/Annotations/Collection/GetAnnotationsCest.php b/tests/unit/Annotations/Collection/GetAnnotationsCest.php index cecd3bf42dc..acab82b67e0 100644 --- a/tests/unit/Annotations/Collection/GetAnnotationsCest.php +++ b/tests/unit/Annotations/Collection/GetAnnotationsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetAnnotationsCest /** * Tests Phalcon\Annotations\Collection :: getAnnotations() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsCollectionGetAnnotations(UnitTester $I) diff --git a/tests/unit/Annotations/Collection/GetCest.php b/tests/unit/Annotations/Collection/GetCest.php index b816ee3dd58..c13ff3494c8 100644 --- a/tests/unit/Annotations/Collection/GetCest.php +++ b/tests/unit/Annotations/Collection/GetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetCest /** * Tests Phalcon\Annotations\Collection :: get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsCollectionGet(UnitTester $I) diff --git a/tests/unit/Annotations/Collection/HasCest.php b/tests/unit/Annotations/Collection/HasCest.php index 3866104f710..63a510d9347 100644 --- a/tests/unit/Annotations/Collection/HasCest.php +++ b/tests/unit/Annotations/Collection/HasCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class HasCest /** * Tests Phalcon\Annotations\Collection :: has() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsCollectionHas(UnitTester $I) diff --git a/tests/unit/Annotations/Collection/KeyCest.php b/tests/unit/Annotations/Collection/KeyCest.php index 384e6d62f2d..b4f123a12c4 100644 --- a/tests/unit/Annotations/Collection/KeyCest.php +++ b/tests/unit/Annotations/Collection/KeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class KeyCest /** * Tests Phalcon\Annotations\Collection :: key() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsCollectionKey(UnitTester $I) diff --git a/tests/unit/Annotations/Collection/NextCest.php b/tests/unit/Annotations/Collection/NextCest.php index 00366fbfd07..1c2fbc612bb 100644 --- a/tests/unit/Annotations/Collection/NextCest.php +++ b/tests/unit/Annotations/Collection/NextCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class NextCest /** * Tests Phalcon\Annotations\Collection :: next() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsCollectionNext(UnitTester $I) diff --git a/tests/unit/Annotations/Collection/RewindCest.php b/tests/unit/Annotations/Collection/RewindCest.php index 43a9fc66664..a2d6dc5fdc1 100644 --- a/tests/unit/Annotations/Collection/RewindCest.php +++ b/tests/unit/Annotations/Collection/RewindCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class RewindCest /** * Tests Phalcon\Annotations\Collection :: rewind() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsCollectionRewind(UnitTester $I) diff --git a/tests/unit/Annotations/Collection/ValidCest.php b/tests/unit/Annotations/Collection/ValidCest.php index 0ecc292bf9f..882b165a708 100644 --- a/tests/unit/Annotations/Collection/ValidCest.php +++ b/tests/unit/Annotations/Collection/ValidCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ValidCest /** * Tests Phalcon\Annotations\Collection :: valid() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsCollectionValid(UnitTester $I) diff --git a/tests/unit/Annotations/Reader/ParseCest.php b/tests/unit/Annotations/Reader/ParseCest.php index 71f7346c653..4f436213a52 100644 --- a/tests/unit/Annotations/Reader/ParseCest.php +++ b/tests/unit/Annotations/Reader/ParseCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class ParseCest /** * Test throws ReflectionException when non-existent got class * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-25 */ public function testParseWithNonExistentClass(UnitTester $I) @@ -42,7 +42,7 @@ function () { * Test throws Phalcon\Annotations\Exception when got class with invalid * annotation * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-25 */ public function testParseWithInvalidAnnotation(UnitTester $I) @@ -69,7 +69,7 @@ function () { /** * Tests Reader::parse * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-25 */ public function testReaderParse(UnitTester $I) diff --git a/tests/unit/Annotations/Reader/ParseDocBlockCest.php b/tests/unit/Annotations/Reader/ParseDocBlockCest.php index 06dee46dcf6..319b38e9391 100644 --- a/tests/unit/Annotations/Reader/ParseDocBlockCest.php +++ b/tests/unit/Annotations/Reader/ParseDocBlockCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ParseDocBlockCest /** * Tests Phalcon\Annotations\Reader :: parseDocBlock() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsReaderParseDocBlock(UnitTester $I) diff --git a/tests/unit/Annotations/Reflection/ConstructCest.php b/tests/unit/Annotations/Reflection/ConstructCest.php index 0d0db034909..e17566e5d20 100644 --- a/tests/unit/Annotations/Reflection/ConstructCest.php +++ b/tests/unit/Annotations/Reflection/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ConstructCest /** * Tests Phalcon\Annotations\Reflection :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsReflectionConstruct(UnitTester $I) diff --git a/tests/unit/Annotations/Reflection/GetClassAnnotationsCest.php b/tests/unit/Annotations/Reflection/GetClassAnnotationsCest.php index 1cd79c74f1d..ebdfb6839ec 100644 --- a/tests/unit/Annotations/Reflection/GetClassAnnotationsCest.php +++ b/tests/unit/Annotations/Reflection/GetClassAnnotationsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -31,7 +31,7 @@ protected function _before(UnitTester $I) /** * Tests creating empty Reflection object * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-26 */ public function testEmptyReflection(UnitTester $I) @@ -46,7 +46,7 @@ public function testEmptyReflection(UnitTester $I) /** * Tests parsing a real class * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-26 */ public function testParsingARealClass(UnitTester $I) diff --git a/tests/unit/Annotations/Reflection/GetMethodsAnnotationsCest.php b/tests/unit/Annotations/Reflection/GetMethodsAnnotationsCest.php index 3c9aa7919b7..8bd5fef9041 100644 --- a/tests/unit/Annotations/Reflection/GetMethodsAnnotationsCest.php +++ b/tests/unit/Annotations/Reflection/GetMethodsAnnotationsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetMethodsAnnotationsCest /** * Tests creating empty Reflection object * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-26 */ public function testEmptyReflection(UnitTester $I) @@ -35,7 +35,7 @@ public function testEmptyReflection(UnitTester $I) /** * Tests Phalcon\Annotations\Reflection :: getMethodsAnnotations() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsReflectionGetMethodsAnnotations(UnitTester $I) diff --git a/tests/unit/Annotations/Reflection/GetPropertiesAnnotationsCest.php b/tests/unit/Annotations/Reflection/GetPropertiesAnnotationsCest.php index 0fec586d2e9..9dd03358c7d 100644 --- a/tests/unit/Annotations/Reflection/GetPropertiesAnnotationsCest.php +++ b/tests/unit/Annotations/Reflection/GetPropertiesAnnotationsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetPropertiesAnnotationsCest /** * Tests creating empty Reflection object * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-26 */ public function testEmptyReflection(UnitTester $I) @@ -35,7 +35,7 @@ public function testEmptyReflection(UnitTester $I) /** * Tests Phalcon\Annotations\Reflection :: getPropertiesAnnotations() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsReflectionGetPropertiesAnnotations(UnitTester $I) diff --git a/tests/unit/Annotations/Reflection/GetReflectionDataCest.php b/tests/unit/Annotations/Reflection/GetReflectionDataCest.php index d31b6564333..39a120d1ccb 100644 --- a/tests/unit/Annotations/Reflection/GetReflectionDataCest.php +++ b/tests/unit/Annotations/Reflection/GetReflectionDataCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetReflectionDataCest /** * Tests Phalcon\Annotations\Reflection :: getReflectionData() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function annotationsReflectionGetReflectionData(UnitTester $I) diff --git a/tests/unit/Annotations/ReflectionCest.php b/tests/unit/Annotations/ReflectionCest.php index 937af37285a..50fce957303 100644 --- a/tests/unit/Annotations/ReflectionCest.php +++ b/tests/unit/Annotations/ReflectionCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -30,7 +30,7 @@ protected function _before(UnitTester $I) /** * Tests parsing class annotations * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-26 */ public function testClassAnnotations(UnitTester $I) diff --git a/tests/unit/Assets/Asset/ConstructCest.php b/tests/unit/Assets/Asset/ConstructCest.php index d15729207a3..f79047ffdad 100644 --- a/tests/unit/Assets/Asset/ConstructCest.php +++ b/tests/unit/Assets/Asset/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ConstructCest /** * Tests Phalcon\Assets\Asset :: __construct() - local * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider @@ -43,7 +43,7 @@ public function assetsAssetConstructLocal(UnitTester $I, Example $example) /** * Tests Phalcon\Assets\Asset :: __construct() - remote * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider @@ -66,7 +66,7 @@ public function assetsAssetConstructRemote(UnitTester $I, Example $example) /** * Tests Phalcon\Assets\Asset :: __construct() - filter * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider @@ -88,7 +88,7 @@ public function assetsAssetConstructFilter(UnitTester $I, Example $example) /** * Tests Phalcon\Assets\Asset :: __construct() - filter set * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider @@ -112,7 +112,7 @@ public function assetsAssetConstructFilterSet(UnitTester $I, Example $example) /** * Tests Phalcon\Assets\Asset :: __construct() - attributes * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider @@ -135,7 +135,7 @@ public function assetsAssetConstructAttributes(UnitTester $I, Example $example) /** * Tests Phalcon\Assets\Asset :: __construct() - attributes set * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/Css/ConstructCest.php b/tests/unit/Assets/Asset/Css/ConstructCest.php index 175047fac6d..f5436b974ad 100644 --- a/tests/unit/Assets/Asset/Css/ConstructCest.php +++ b/tests/unit/Assets/Asset/Css/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ConstructCest /** * Tests Phalcon\Assets\Asset\Css :: __construct() - local * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider @@ -44,7 +44,7 @@ public function assetsAssetCssConstructLocal(UnitTester $I, Example $example) /** * Tests Phalcon\Assets\Asset\Css :: __construct() - filter * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsAssetCssConstructFilter(UnitTester $I) @@ -61,7 +61,7 @@ public function assetsAssetCssConstructFilter(UnitTester $I) /** * Tests Phalcon\Assets\Asset\Css :: __construct() - filter set * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsAssetCssConstructFilterSet(UnitTester $I) @@ -78,7 +78,7 @@ public function assetsAssetCssConstructFilterSet(UnitTester $I) /** * Tests Phalcon\Assets\Asset\Css :: __construct() - attributes * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsAssetCssConstructAttributes(UnitTester $I) @@ -96,7 +96,7 @@ public function assetsAssetCssConstructAttributes(UnitTester $I) /** * Tests Phalcon\Assets\Asset\Css :: __construct() - attributes set * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsAssetCssConstructAttributesSet(UnitTester $I) diff --git a/tests/unit/Assets/Asset/Css/GetAssetKeyCest.php b/tests/unit/Assets/Asset/Css/GetAssetKeyCest.php index 36b24581acb..278b7f8f599 100644 --- a/tests/unit/Assets/Asset/Css/GetAssetKeyCest.php +++ b/tests/unit/Assets/Asset/Css/GetAssetKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetAssetKeyCest /** * Tests Phalcon\Assets\Asset\Css :: getAssetKey() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsAssetCssGetAssetKey(UnitTester $I) diff --git a/tests/unit/Assets/Asset/Css/GetAttributesCest.php b/tests/unit/Assets/Asset/Css/GetAttributesCest.php index ef27f416e90..bd777f3cd6e 100644 --- a/tests/unit/Assets/Asset/Css/GetAttributesCest.php +++ b/tests/unit/Assets/Asset/Css/GetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetAttributesCest /** * Tests Phalcon\Assets\Asset\Css :: getAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsAssetCssGetAttributes(UnitTester $I) diff --git a/tests/unit/Assets/Asset/Css/GetContentCest.php b/tests/unit/Assets/Asset/Css/GetContentCest.php index b4b931025d0..433e830a551 100644 --- a/tests/unit/Assets/Asset/Css/GetContentCest.php +++ b/tests/unit/Assets/Asset/Css/GetContentCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetContentCest /** * Tests Phalcon\Assets\Asset\Css :: getContent() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsAssetCssGetContent(UnitTester $I) diff --git a/tests/unit/Assets/Asset/Css/GetFilterCest.php b/tests/unit/Assets/Asset/Css/GetFilterCest.php index 457bbd11cd4..c64f8db4f05 100644 --- a/tests/unit/Assets/Asset/Css/GetFilterCest.php +++ b/tests/unit/Assets/Asset/Css/GetFilterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetFilterCest /** * Tests Phalcon\Assets\Asset\Css :: getFilter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsAssetCssGetFilter(UnitTester $I) diff --git a/tests/unit/Assets/Asset/Css/GetLocalCest.php b/tests/unit/Assets/Asset/Css/GetLocalCest.php index 1cc58461cf5..cd3e4f1951d 100644 --- a/tests/unit/Assets/Asset/Css/GetLocalCest.php +++ b/tests/unit/Assets/Asset/Css/GetLocalCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetLocalCest /** * Tests Phalcon\Assets\Asset\Css :: getLocal() - default * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsAssetCssGetLocalDefault(UnitTester $I) @@ -40,7 +40,7 @@ public function assetsAssetCssGetLocalDefault(UnitTester $I) /** * Tests Phalcon\Assets\Asset\Css :: getLocal() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/Css/GetPathCest.php b/tests/unit/Assets/Asset/Css/GetPathCest.php index 1dcee37e5e2..228d4d17a5f 100644 --- a/tests/unit/Assets/Asset/Css/GetPathCest.php +++ b/tests/unit/Assets/Asset/Css/GetPathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetPathCest /** * Tests Phalcon\Assets\Asset\Css :: getPath() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/Css/GetRealSourcePathCest.php b/tests/unit/Assets/Asset/Css/GetRealSourcePathCest.php index 4b93813113d..1493c205a78 100644 --- a/tests/unit/Assets/Asset/Css/GetRealSourcePathCest.php +++ b/tests/unit/Assets/Asset/Css/GetRealSourcePathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetRealSourcePathCest /** * Tests Phalcon\Assets\Asset\Css :: getRealSourcePath() - local * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsAssetCssGetRealSourcePathLocal(UnitTester $I) @@ -37,7 +37,7 @@ public function assetsAssetCssGetRealSourcePathLocal(UnitTester $I) /** * Tests Phalcon\Assets\Asset\Css :: getRealSourcePath() - remote * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsAssetCssGetRealSourcePathRemote(UnitTester $I) diff --git a/tests/unit/Assets/Asset/Css/GetRealTargetPathCest.php b/tests/unit/Assets/Asset/Css/GetRealTargetPathCest.php index fe70f606c73..6afee1af16b 100644 --- a/tests/unit/Assets/Asset/Css/GetRealTargetPathCest.php +++ b/tests/unit/Assets/Asset/Css/GetRealTargetPathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetRealTargetPathCest /** * Tests Phalcon\Assets\Asset\Css :: getRealTargetPath() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/Css/GetRealTargetUriCest.php b/tests/unit/Assets/Asset/Css/GetRealTargetUriCest.php index 4c122bf3c5e..82b673d48d5 100644 --- a/tests/unit/Assets/Asset/Css/GetRealTargetUriCest.php +++ b/tests/unit/Assets/Asset/Css/GetRealTargetUriCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetRealTargetUriCest /** * Tests Phalcon\Assets\Asset\Css :: getRealTargetUri() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/Css/GetSourcePathCest.php b/tests/unit/Assets/Asset/Css/GetSourcePathCest.php index 27042e5d14a..3617f9b2e7b 100644 --- a/tests/unit/Assets/Asset/Css/GetSourcePathCest.php +++ b/tests/unit/Assets/Asset/Css/GetSourcePathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetSourcePathCest /** * Tests Phalcon\Assets\Asset\Css :: getSourcePath() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/Css/GetTargetPathCest.php b/tests/unit/Assets/Asset/Css/GetTargetPathCest.php index fe1a9367207..aa85278a033 100644 --- a/tests/unit/Assets/Asset/Css/GetTargetPathCest.php +++ b/tests/unit/Assets/Asset/Css/GetTargetPathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetTargetPathCest /** * Tests Phalcon\Assets\Asset\Css :: getTargetPath() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/Css/GetTargetUriCest.php b/tests/unit/Assets/Asset/Css/GetTargetUriCest.php index af04ba148ca..37073e9afef 100644 --- a/tests/unit/Assets/Asset/Css/GetTargetUriCest.php +++ b/tests/unit/Assets/Asset/Css/GetTargetUriCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetTargetUriCest /** * Tests Phalcon\Assets\Asset\Css :: getTargetUri() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/Css/GetTypeCest.php b/tests/unit/Assets/Asset/Css/GetTypeCest.php index 7029578442a..918469eb106 100644 --- a/tests/unit/Assets/Asset/Css/GetTypeCest.php +++ b/tests/unit/Assets/Asset/Css/GetTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetTypeCest /** * Tests Phalcon\Assets\Asset\Css :: getType() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/Css/GetVersionCest.php b/tests/unit/Assets/Asset/Css/GetVersionCest.php index 83811bf74e6..2d942a9bf05 100644 --- a/tests/unit/Assets/Asset/Css/GetVersionCest.php +++ b/tests/unit/Assets/Asset/Css/GetVersionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetVersionCest /** * Unit Tests Phalcon\Assets\Asset\Css :: getVersion() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function assetsAssetCssGetVersion(UnitTester $I) diff --git a/tests/unit/Assets/Asset/Css/IsAutoVersionCest.php b/tests/unit/Assets/Asset/Css/IsAutoVersionCest.php index a0ca39e433a..1a15e4bf535 100644 --- a/tests/unit/Assets/Asset/Css/IsAutoVersionCest.php +++ b/tests/unit/Assets/Asset/Css/IsAutoVersionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class IsAutoVersionCest /** * Unit Tests Phalcon\Assets\Asset\Css :: isAutoVersion() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function assetsAssetCssIsAutoVersion(UnitTester $I) diff --git a/tests/unit/Assets/Asset/Css/SetAttributesCest.php b/tests/unit/Assets/Asset/Css/SetAttributesCest.php index 8b3e9d12369..50b8b2b05b3 100644 --- a/tests/unit/Assets/Asset/Css/SetAttributesCest.php +++ b/tests/unit/Assets/Asset/Css/SetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class SetAttributesCest /** * Tests Phalcon\Assets\Asset\Css :: setAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/Css/SetAutoVersionCest.php b/tests/unit/Assets/Asset/Css/SetAutoVersionCest.php index a666b10483d..30be820706d 100644 --- a/tests/unit/Assets/Asset/Css/SetAutoVersionCest.php +++ b/tests/unit/Assets/Asset/Css/SetAutoVersionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetAutoVersionCest /** * Unit Tests Phalcon\Assets\Asset\Css :: setAutoVersion() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function assetsAssetCssSetAutoVersion(UnitTester $I) diff --git a/tests/unit/Assets/Asset/Css/SetFilterCest.php b/tests/unit/Assets/Asset/Css/SetFilterCest.php index 1e62ada1d9b..af4599264e8 100644 --- a/tests/unit/Assets/Asset/Css/SetFilterCest.php +++ b/tests/unit/Assets/Asset/Css/SetFilterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class SetFilterCest /** * Tests Phalcon\Assets\Asset\Css :: setFilter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/Css/SetLocalCest.php b/tests/unit/Assets/Asset/Css/SetLocalCest.php index a2db4f38d96..00b24abedf5 100644 --- a/tests/unit/Assets/Asset/Css/SetLocalCest.php +++ b/tests/unit/Assets/Asset/Css/SetLocalCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class SetLocalCest /** * Tests Phalcon\Assets\Asset\Css :: setLocal() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/Css/SetPathCest.php b/tests/unit/Assets/Asset/Css/SetPathCest.php index d1283a01c90..e2335d67b24 100644 --- a/tests/unit/Assets/Asset/Css/SetPathCest.php +++ b/tests/unit/Assets/Asset/Css/SetPathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class SetPathCest /** * Tests Phalcon\Assets\Asset\Css :: setPath() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/Css/SetSourcePathCest.php b/tests/unit/Assets/Asset/Css/SetSourcePathCest.php index 36ddfa0336d..653ee53ecfc 100644 --- a/tests/unit/Assets/Asset/Css/SetSourcePathCest.php +++ b/tests/unit/Assets/Asset/Css/SetSourcePathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class SetSourcePathCest /** * Tests Phalcon\Assets\Asset\Css :: setSourcePath() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/Css/SetTargetPathCest.php b/tests/unit/Assets/Asset/Css/SetTargetPathCest.php index 5d2fed36e13..611b7e2b227 100644 --- a/tests/unit/Assets/Asset/Css/SetTargetPathCest.php +++ b/tests/unit/Assets/Asset/Css/SetTargetPathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class SetTargetPathCest /** * Tests Phalcon\Assets\Asset\Css :: setTargetPath() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/Css/SetTargetUriCest.php b/tests/unit/Assets/Asset/Css/SetTargetUriCest.php index 30c85b7af42..1647794e982 100644 --- a/tests/unit/Assets/Asset/Css/SetTargetUriCest.php +++ b/tests/unit/Assets/Asset/Css/SetTargetUriCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class SetTargetUriCest /** * Tests Phalcon\Assets\Asset\Css :: setTargetUri() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/Css/SetTypeCest.php b/tests/unit/Assets/Asset/Css/SetTypeCest.php index fb5bc1c44ec..260fb9c7535 100644 --- a/tests/unit/Assets/Asset/Css/SetTypeCest.php +++ b/tests/unit/Assets/Asset/Css/SetTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class SetTypeCest /** * Tests Phalcon\Assets\Asset\Css :: setType() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/Css/SetVersionCest.php b/tests/unit/Assets/Asset/Css/SetVersionCest.php index 6eb2703de8f..2dea037d343 100644 --- a/tests/unit/Assets/Asset/Css/SetVersionCest.php +++ b/tests/unit/Assets/Asset/Css/SetVersionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetVersionCest /** * Unit Tests Phalcon\Assets\Asset\Css :: setVersion() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function assetsAssetCssSetVersion(UnitTester $I) diff --git a/tests/unit/Assets/Asset/GetAssetKeyCest.php b/tests/unit/Assets/Asset/GetAssetKeyCest.php index f2c7fe054d8..d3ee761b4b5 100644 --- a/tests/unit/Assets/Asset/GetAssetKeyCest.php +++ b/tests/unit/Assets/Asset/GetAssetKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetAssetKeyCest /** * Tests Phalcon\Assets\Asset :: getAssetKey() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/GetAttributesCest.php b/tests/unit/Assets/Asset/GetAttributesCest.php index e8ec92c3bf8..135fcd6d7fd 100644 --- a/tests/unit/Assets/Asset/GetAttributesCest.php +++ b/tests/unit/Assets/Asset/GetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetAttributesCest /** * Tests Phalcon\Assets\Asset :: getAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/GetContentCest.php b/tests/unit/Assets/Asset/GetContentCest.php index 54f3f90c7d8..c713aa8c737 100644 --- a/tests/unit/Assets/Asset/GetContentCest.php +++ b/tests/unit/Assets/Asset/GetContentCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetContentCest /** * Tests Phalcon\Assets\Asset :: getContent() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/GetFilterCest.php b/tests/unit/Assets/Asset/GetFilterCest.php index 32b68dcf55f..3441571836e 100644 --- a/tests/unit/Assets/Asset/GetFilterCest.php +++ b/tests/unit/Assets/Asset/GetFilterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetFilterCest /** * Tests Phalcon\Assets\Asset :: getFilter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/GetLocalCest.php b/tests/unit/Assets/Asset/GetLocalCest.php index 2ebe0fb4ef4..7d884cfcc09 100644 --- a/tests/unit/Assets/Asset/GetLocalCest.php +++ b/tests/unit/Assets/Asset/GetLocalCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetLocalCest /** * Tests Phalcon\Assets\Asset :: getLocal() - default * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider defaultProvider @@ -57,7 +57,7 @@ protected function defaultProvider(): array /** * Tests Phalcon\Assets\Asset :: getLocal() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/GetPathCest.php b/tests/unit/Assets/Asset/GetPathCest.php index e8e9f74c1a6..cacc15de51a 100644 --- a/tests/unit/Assets/Asset/GetPathCest.php +++ b/tests/unit/Assets/Asset/GetPathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetPathCest /** * Tests Phalcon\Assets\Asset :: getPath() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/GetRealSourcePathCest.php b/tests/unit/Assets/Asset/GetRealSourcePathCest.php index ee027d0312e..e0e98842825 100644 --- a/tests/unit/Assets/Asset/GetRealSourcePathCest.php +++ b/tests/unit/Assets/Asset/GetRealSourcePathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetRealSourcePathCest /** * Tests Phalcon\Assets\Asset :: getRealSourcePath() - css local * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider localProvider @@ -43,7 +43,7 @@ public function assetsAssetGetRealSourcePathLocal(UnitTester $I, Example $exampl /** * Tests Phalcon\Assets\Asset :: getRealSourcePath() - remote * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider remoteProvider diff --git a/tests/unit/Assets/Asset/GetRealTargetPathCest.php b/tests/unit/Assets/Asset/GetRealTargetPathCest.php index ee4ea3942c3..6ff10fcb1c9 100644 --- a/tests/unit/Assets/Asset/GetRealTargetPathCest.php +++ b/tests/unit/Assets/Asset/GetRealTargetPathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetRealTargetPathCest /** * Tests Phalcon\Assets\Asset :: getRealTargetPath() - css local * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider localProvider @@ -44,7 +44,7 @@ public function assetsAssetGetAssetKeyLocal(UnitTester $I, Example $example) /** * Tests Phalcon\Assets\Asset :: getRealTargetPath() - css remote * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider remoteProvider diff --git a/tests/unit/Assets/Asset/GetRealTargetUriCest.php b/tests/unit/Assets/Asset/GetRealTargetUriCest.php index f747e67301b..e0532019d09 100644 --- a/tests/unit/Assets/Asset/GetRealTargetUriCest.php +++ b/tests/unit/Assets/Asset/GetRealTargetUriCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetRealTargetUriCest /** * Tests Phalcon\Assets\Asset :: getRealTargetUri() - local * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider localProvider @@ -44,7 +44,7 @@ public function assetsAssetGetAssetKeyLocal(UnitTester $I, Example $example) /** * Tests Phalcon\Assets\Asset :: getRealTargetUri() - remote * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider remoteProvider diff --git a/tests/unit/Assets/Asset/GetSourcePathCest.php b/tests/unit/Assets/Asset/GetSourcePathCest.php index fc9177e5b8a..c85a058a3b8 100644 --- a/tests/unit/Assets/Asset/GetSourcePathCest.php +++ b/tests/unit/Assets/Asset/GetSourcePathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetSourcePathCest /** * Tests Phalcon\Assets\Asset :: getSourcePath() - local * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider localProvider @@ -48,7 +48,7 @@ public function assetsAssetGetSourcePathLocal(UnitTester $I, Example $example) /** * Tests Phalcon\Assets\Asset :: getSourcePath() - remote * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider remoteProvider diff --git a/tests/unit/Assets/Asset/GetTargetPathCest.php b/tests/unit/Assets/Asset/GetTargetPathCest.php index 9f93456008f..9124f985b2e 100644 --- a/tests/unit/Assets/Asset/GetTargetPathCest.php +++ b/tests/unit/Assets/Asset/GetTargetPathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetTargetPathCest /** * Tests Phalcon\Assets\Asset :: getTargetPath() - local * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider localProvider @@ -48,7 +48,7 @@ public function assetsAssetGetTargetPathLocal(UnitTester $I, Example $example) /** * Tests Phalcon\Assets\Asset :: getTargetPath() - remote * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider remoteProvider diff --git a/tests/unit/Assets/Asset/GetTargetUriCest.php b/tests/unit/Assets/Asset/GetTargetUriCest.php index f107f3e7e9b..4fa1db4dc0f 100644 --- a/tests/unit/Assets/Asset/GetTargetUriCest.php +++ b/tests/unit/Assets/Asset/GetTargetUriCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -36,7 +36,7 @@ public function _before(UnitTester $I) /** * Tests Phalcon\Assets\Asset :: getTargetUri() - local * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider localProvider @@ -63,7 +63,7 @@ public function assetsAssetGetTargetUriLocal(UnitTester $I, Example $example) /** * Tests Phalcon\Assets\Asset :: getTargetUri() - remote * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider remoteProvider @@ -91,7 +91,7 @@ public function assetsAssetGetTargetUriRemote(UnitTester $I, Example $example) /** * Tests Phalcon\Assets\Asset :: getTargetUri() - js versioning * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsAssetGetTargetUriJsVersioning(UnitTester $I) @@ -122,7 +122,7 @@ public function assetsAssetGetTargetUriJsVersioning(UnitTester $I) /** * Tests Phalcon\Assets\Asset :: getTargetUri() - js automatic versioning * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsAssetGetTargetUriJsAutoVersioning(UnitTester $I) diff --git a/tests/unit/Assets/Asset/GetTypeCest.php b/tests/unit/Assets/Asset/GetTypeCest.php index 6f0b5176c2e..a9a7e5fdf00 100644 --- a/tests/unit/Assets/Asset/GetTypeCest.php +++ b/tests/unit/Assets/Asset/GetTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetTypeCest /** * Tests Phalcon\Assets\Asset :: getType() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/GetVersionCest.php b/tests/unit/Assets/Asset/GetVersionCest.php index 088926d7c01..6f2463927df 100644 --- a/tests/unit/Assets/Asset/GetVersionCest.php +++ b/tests/unit/Assets/Asset/GetVersionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetVersionCest /** * Unit Tests Phalcon\Assets\Asset :: getVersion() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function assetsAssetGetVersion(UnitTester $I) diff --git a/tests/unit/Assets/Asset/IsAutoVersionCest.php b/tests/unit/Assets/Asset/IsAutoVersionCest.php index 713cd3fbfd6..4908495e224 100644 --- a/tests/unit/Assets/Asset/IsAutoVersionCest.php +++ b/tests/unit/Assets/Asset/IsAutoVersionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class IsAutoVersionCest /** * Unit Tests Phalcon\Assets\Asset :: isAutoVersion() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function assetsAssetIsAutoVersion(UnitTester $I) diff --git a/tests/unit/Assets/Asset/Js/ConstructCest.php b/tests/unit/Assets/Asset/Js/ConstructCest.php index 8e89e75e6a9..c8143aeefb2 100644 --- a/tests/unit/Assets/Asset/Js/ConstructCest.php +++ b/tests/unit/Assets/Asset/Js/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ConstructCest /** * Tests Phalcon\Assets\Asset\Js :: __construct() - local * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider @@ -44,7 +44,7 @@ public function assetsAssetJsConstructLocal(UnitTester $I, Example $example) /** * Tests Phalcon\Assets\Asset\Js :: __construct() - filter * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsAssetJsConstructFilter(UnitTester $I) @@ -61,7 +61,7 @@ public function assetsAssetJsConstructFilter(UnitTester $I) /** * Tests Phalcon\Assets\Asset\Js :: __construct() - filter set * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsAssetJsConstructFilterSet(UnitTester $I) @@ -78,7 +78,7 @@ public function assetsAssetJsConstructFilterSet(UnitTester $I) /** * Tests Phalcon\Assets\Asset\Js :: __construct() - attributes * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsAssetJsConstructAttributes(UnitTester $I) @@ -96,7 +96,7 @@ public function assetsAssetJsConstructAttributes(UnitTester $I) /** * Tests Phalcon\Assets\Asset\Js :: __construct() - attributes set * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsAssetJsConstructAttributesSet(UnitTester $I) diff --git a/tests/unit/Assets/Asset/Js/GetAssetKeyCest.php b/tests/unit/Assets/Asset/Js/GetAssetKeyCest.php index d9d86ced403..ce17883b802 100644 --- a/tests/unit/Assets/Asset/Js/GetAssetKeyCest.php +++ b/tests/unit/Assets/Asset/Js/GetAssetKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetAssetKeyCest /** * Tests Phalcon\Assets\Asset\Js :: getAssetKey() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsAssetJsGetAssetKey(UnitTester $I) diff --git a/tests/unit/Assets/Asset/Js/GetAttributesCest.php b/tests/unit/Assets/Asset/Js/GetAttributesCest.php index d98f4ab66ad..a8ca060a926 100644 --- a/tests/unit/Assets/Asset/Js/GetAttributesCest.php +++ b/tests/unit/Assets/Asset/Js/GetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetAttributesCest /** * Tests Phalcon\Assets\Asset\Js :: getAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsAssetJsGetAttributes(UnitTester $I) diff --git a/tests/unit/Assets/Asset/Js/GetContentCest.php b/tests/unit/Assets/Asset/Js/GetContentCest.php index 9c3ae74bdaf..51e445908f9 100644 --- a/tests/unit/Assets/Asset/Js/GetContentCest.php +++ b/tests/unit/Assets/Asset/Js/GetContentCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetContentCest /** * Tests Phalcon\Assets\Asset\Js :: getContent() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsAssetJsGetContent(UnitTester $I) diff --git a/tests/unit/Assets/Asset/Js/GetFilterCest.php b/tests/unit/Assets/Asset/Js/GetFilterCest.php index 7c7856f35db..67b430c8ac1 100644 --- a/tests/unit/Assets/Asset/Js/GetFilterCest.php +++ b/tests/unit/Assets/Asset/Js/GetFilterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetFilterCest /** * Tests Phalcon\Assets\Asset\Js :: getFilter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsAssetJsGetFilterJs(UnitTester $I) diff --git a/tests/unit/Assets/Asset/Js/GetLocalCest.php b/tests/unit/Assets/Asset/Js/GetLocalCest.php index 92e6db0e170..d7359a70298 100644 --- a/tests/unit/Assets/Asset/Js/GetLocalCest.php +++ b/tests/unit/Assets/Asset/Js/GetLocalCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetLocalCest /** * Tests Phalcon\Assets\Asset\Js :: getLocal() - default * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsAssetJsGetLocalDefault(UnitTester $I) @@ -40,7 +40,7 @@ public function assetsAssetJsGetLocalDefault(UnitTester $I) /** * Tests Phalcon\Assets\Asset\Js :: getLocal() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/Js/GetPathCest.php b/tests/unit/Assets/Asset/Js/GetPathCest.php index 6a082d82dfa..f147b5fb9cd 100644 --- a/tests/unit/Assets/Asset/Js/GetPathCest.php +++ b/tests/unit/Assets/Asset/Js/GetPathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetPathCest /** * Tests Phalcon\Assets\Asset\Js :: getPath() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/Js/GetRealSourcePathCest.php b/tests/unit/Assets/Asset/Js/GetRealSourcePathCest.php index 6b9e8f59aeb..454efda1daa 100644 --- a/tests/unit/Assets/Asset/Js/GetRealSourcePathCest.php +++ b/tests/unit/Assets/Asset/Js/GetRealSourcePathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetRealSourcePathCest /** * Tests Phalcon\Assets\Asset\Js :: getRealSourcePath() - local * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsAssetJsGetRealSourcePathLocal(UnitTester $I) @@ -37,7 +37,7 @@ public function assetsAssetJsGetRealSourcePathLocal(UnitTester $I) /** * Tests Phalcon\Assets\Asset\Js :: getRealSourcePath() - remote * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsAssetJsGetRealSourcePathRemote(UnitTester $I) diff --git a/tests/unit/Assets/Asset/Js/GetRealTargetPathCest.php b/tests/unit/Assets/Asset/Js/GetRealTargetPathCest.php index 65cbc8aaf75..ec621fa1b03 100644 --- a/tests/unit/Assets/Asset/Js/GetRealTargetPathCest.php +++ b/tests/unit/Assets/Asset/Js/GetRealTargetPathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetRealTargetPathCest /** * Tests Phalcon\Assets\Asset\Js :: getRealTargetPath() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/Js/GetRealTargetUriCest.php b/tests/unit/Assets/Asset/Js/GetRealTargetUriCest.php index c2839272b8a..cf2e2ae6339 100644 --- a/tests/unit/Assets/Asset/Js/GetRealTargetUriCest.php +++ b/tests/unit/Assets/Asset/Js/GetRealTargetUriCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetRealTargetUriCest /** * Tests Phalcon\Assets\Asset\Js :: getRealTargetUri() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/Js/GetSourcePathCest.php b/tests/unit/Assets/Asset/Js/GetSourcePathCest.php index 77f3cf88927..7d99d1ca7cc 100644 --- a/tests/unit/Assets/Asset/Js/GetSourcePathCest.php +++ b/tests/unit/Assets/Asset/Js/GetSourcePathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetSourcePathCest /** * Tests Phalcon\Assets\Asset\Js :: getSourcePath() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/Js/GetTargetPathCest.php b/tests/unit/Assets/Asset/Js/GetTargetPathCest.php index f04cba808a3..40073a47e3e 100644 --- a/tests/unit/Assets/Asset/Js/GetTargetPathCest.php +++ b/tests/unit/Assets/Asset/Js/GetTargetPathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetTargetPathCest /** * Tests Phalcon\Assets\Asset\Js :: getTargetPath() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/Js/GetTargetUriCest.php b/tests/unit/Assets/Asset/Js/GetTargetUriCest.php index 9b501fe286d..9c7f7c4a036 100644 --- a/tests/unit/Assets/Asset/Js/GetTargetUriCest.php +++ b/tests/unit/Assets/Asset/Js/GetTargetUriCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetTargetUriCest /** * Tests Phalcon\Assets\Asset\Js :: getTargetUri() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/Js/GetTypeCest.php b/tests/unit/Assets/Asset/Js/GetTypeCest.php index 34276c2297f..cb5b2ef3f22 100644 --- a/tests/unit/Assets/Asset/Js/GetTypeCest.php +++ b/tests/unit/Assets/Asset/Js/GetTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetTypeCest /** * Tests Phalcon\Assets\Asset\Js :: getType() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/Js/GetVersionCest.php b/tests/unit/Assets/Asset/Js/GetVersionCest.php index f67fd8a2e7f..585f54a3b9f 100644 --- a/tests/unit/Assets/Asset/Js/GetVersionCest.php +++ b/tests/unit/Assets/Asset/Js/GetVersionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetVersionCest /** * Unit Tests Phalcon\Assets\Asset\Js :: getVersion() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function assetsAssetJsGetVersion(UnitTester $I) diff --git a/tests/unit/Assets/Asset/Js/IsAutoVersionCest.php b/tests/unit/Assets/Asset/Js/IsAutoVersionCest.php index 2ee97d14222..a40b6267d96 100644 --- a/tests/unit/Assets/Asset/Js/IsAutoVersionCest.php +++ b/tests/unit/Assets/Asset/Js/IsAutoVersionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class IsAutoVersionCest /** * Unit Tests Phalcon\Assets\Asset\Js :: isAutoVersion() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function assetsAssetJsIsAutoVersion(UnitTester $I) diff --git a/tests/unit/Assets/Asset/Js/SetAttributesCest.php b/tests/unit/Assets/Asset/Js/SetAttributesCest.php index ece0f0125ff..6ee60602ed7 100644 --- a/tests/unit/Assets/Asset/Js/SetAttributesCest.php +++ b/tests/unit/Assets/Asset/Js/SetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class SetAttributesCest /** * Tests Phalcon\Assets\Asset\Js :: setAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/Js/SetAutoVersionCest.php b/tests/unit/Assets/Asset/Js/SetAutoVersionCest.php index a5f11d0d1f8..fd9ce3b8140 100644 --- a/tests/unit/Assets/Asset/Js/SetAutoVersionCest.php +++ b/tests/unit/Assets/Asset/Js/SetAutoVersionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetAutoVersionCest /** * Unit Tests Phalcon\Assets\Asset\Js :: setAutoVersion() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function assetsAssetJsSetAutoVersion(UnitTester $I) diff --git a/tests/unit/Assets/Asset/Js/SetFilterCest.php b/tests/unit/Assets/Asset/Js/SetFilterCest.php index d168ceb8edc..8687caa1a45 100644 --- a/tests/unit/Assets/Asset/Js/SetFilterCest.php +++ b/tests/unit/Assets/Asset/Js/SetFilterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class SetFilterCest /** * Tests Phalcon\Assets\Asset\Js :: setFilter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/Js/SetLocalCest.php b/tests/unit/Assets/Asset/Js/SetLocalCest.php index 5f974518682..94c1a05d0c5 100644 --- a/tests/unit/Assets/Asset/Js/SetLocalCest.php +++ b/tests/unit/Assets/Asset/Js/SetLocalCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class SetLocalCest /** * Tests Phalcon\Assets\Asset\Js :: setLocal() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/Js/SetPathCest.php b/tests/unit/Assets/Asset/Js/SetPathCest.php index f2414aad6a2..cd5c1ae7b87 100644 --- a/tests/unit/Assets/Asset/Js/SetPathCest.php +++ b/tests/unit/Assets/Asset/Js/SetPathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class SetPathCest /** * Tests Phalcon\Assets\Asset\Js :: setPath() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/Js/SetSourcePathCest.php b/tests/unit/Assets/Asset/Js/SetSourcePathCest.php index fec2c8672f6..e337694dc70 100644 --- a/tests/unit/Assets/Asset/Js/SetSourcePathCest.php +++ b/tests/unit/Assets/Asset/Js/SetSourcePathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class SetSourcePathCest /** * Tests Phalcon\Assets\Asset\Js :: setSourcePath() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/Js/SetTargetPathCest.php b/tests/unit/Assets/Asset/Js/SetTargetPathCest.php index 50e5c622d2a..d833e291c74 100644 --- a/tests/unit/Assets/Asset/Js/SetTargetPathCest.php +++ b/tests/unit/Assets/Asset/Js/SetTargetPathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class SetTargetPathCest /** * Tests Phalcon\Assets\Asset\Js :: setTargetPath() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/Js/SetTargetUriCest.php b/tests/unit/Assets/Asset/Js/SetTargetUriCest.php index d2f01a0a8d9..4db61548345 100644 --- a/tests/unit/Assets/Asset/Js/SetTargetUriCest.php +++ b/tests/unit/Assets/Asset/Js/SetTargetUriCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class SetTargetUriCest /** * Tests Phalcon\Assets\Asset\Js :: setTargetUri() - js local * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/Js/SetTypeCest.php b/tests/unit/Assets/Asset/Js/SetTypeCest.php index 157ec6b1eda..25690bc900e 100644 --- a/tests/unit/Assets/Asset/Js/SetTypeCest.php +++ b/tests/unit/Assets/Asset/Js/SetTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class SetTypeCest /** * Tests Phalcon\Assets\Asset\Js :: setType() - js local * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/Js/SetVersionCest.php b/tests/unit/Assets/Asset/Js/SetVersionCest.php index 56e41e863c1..ac932f4da23 100644 --- a/tests/unit/Assets/Asset/Js/SetVersionCest.php +++ b/tests/unit/Assets/Asset/Js/SetVersionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetVersionCest /** * Unit Tests Phalcon\Assets\Asset\Js :: setVersion() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function assetsAssetJsSetVersion(UnitTester $I) diff --git a/tests/unit/Assets/Asset/SetAttributesCest.php b/tests/unit/Assets/Asset/SetAttributesCest.php index 15e704a1825..a4afe26d761 100644 --- a/tests/unit/Assets/Asset/SetAttributesCest.php +++ b/tests/unit/Assets/Asset/SetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class SetAttributesCest /** * Tests Phalcon\Assets\Asset :: setAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/SetAutoVersionCest.php b/tests/unit/Assets/Asset/SetAutoVersionCest.php index 78ef4d1dcb1..4f53d1ba0c9 100644 --- a/tests/unit/Assets/Asset/SetAutoVersionCest.php +++ b/tests/unit/Assets/Asset/SetAutoVersionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetAutoVersionCest /** * Unit Tests Phalcon\Assets\Asset :: setAutoVersion() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function assetsAssetSetAutoVersion(UnitTester $I) diff --git a/tests/unit/Assets/Asset/SetFilterCest.php b/tests/unit/Assets/Asset/SetFilterCest.php index ac486976204..9eb91c903f6 100644 --- a/tests/unit/Assets/Asset/SetFilterCest.php +++ b/tests/unit/Assets/Asset/SetFilterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class SetFilterCest /** * Tests Phalcon\Assets\Asset :: setFilter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/SetLocalCest.php b/tests/unit/Assets/Asset/SetLocalCest.php index 30985cf65c3..8a94a9c1434 100644 --- a/tests/unit/Assets/Asset/SetLocalCest.php +++ b/tests/unit/Assets/Asset/SetLocalCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class SetLocalCest /** * Tests Phalcon\Assets\Asset :: setLocal() - local * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider localProvider @@ -45,7 +45,7 @@ public function assetsAssetSetLocalCssLocal(UnitTester $I, Example $example) /** * Tests Phalcon\Assets\Asset :: setLocal() - remote * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider remoteProvider diff --git a/tests/unit/Assets/Asset/SetPathCest.php b/tests/unit/Assets/Asset/SetPathCest.php index 0e3037b66d7..e79b9f7a82f 100644 --- a/tests/unit/Assets/Asset/SetPathCest.php +++ b/tests/unit/Assets/Asset/SetPathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class SetPathCest /** * Tests Phalcon\Assets\Asset :: setPath() - local * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider localProvider @@ -48,7 +48,7 @@ public function assetsAssetSetPathLocal(UnitTester $I, Example $example) /** * Tests Phalcon\Assets\Asset :: setPath() - remote * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider remoteProvider diff --git a/tests/unit/Assets/Asset/SetSourcePathCest.php b/tests/unit/Assets/Asset/SetSourcePathCest.php index 66312609e34..36720a9183b 100644 --- a/tests/unit/Assets/Asset/SetSourcePathCest.php +++ b/tests/unit/Assets/Asset/SetSourcePathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class SetSourcePathCest /** * Tests Phalcon\Assets\Asset :: setSourcePath() - local * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider localProvider @@ -48,7 +48,7 @@ public function assetsAssetSetSourcePathLocal(UnitTester $I, Example $example) /** * Tests Phalcon\Assets\Asset :: setSourcePath() - remote * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider remoteProvider diff --git a/tests/unit/Assets/Asset/SetTargetPathCest.php b/tests/unit/Assets/Asset/SetTargetPathCest.php index 8b0e2f43dc7..3aee0009cef 100644 --- a/tests/unit/Assets/Asset/SetTargetPathCest.php +++ b/tests/unit/Assets/Asset/SetTargetPathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class SetTargetPathCest /** * Tests Phalcon\Assets\Asset :: setTargetPath() - local * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider localProvider @@ -48,7 +48,7 @@ public function assetsAssetSetTargetPathLocal(UnitTester $I, Example $example) /** * Tests Phalcon\Assets\Asset :: setTargetPath() - remote * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider remoteProvider diff --git a/tests/unit/Assets/Asset/SetTargetUriCest.php b/tests/unit/Assets/Asset/SetTargetUriCest.php index 8dcc3be1d16..7316121a4a3 100644 --- a/tests/unit/Assets/Asset/SetTargetUriCest.php +++ b/tests/unit/Assets/Asset/SetTargetUriCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class SetTargetUriCest /** * Tests Phalcon\Assets\Asset :: setTargetUri() - local * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider localProvider @@ -48,7 +48,7 @@ public function assetsAssetSetTargetUriJsLocal(UnitTester $I, Example $example) /** * Tests Phalcon\Assets\Asset :: setTargetUri() - remote * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider remoteProvider diff --git a/tests/unit/Assets/Asset/SetTypeCest.php b/tests/unit/Assets/Asset/SetTypeCest.php index a45dcb0633e..da291964e54 100644 --- a/tests/unit/Assets/Asset/SetTypeCest.php +++ b/tests/unit/Assets/Asset/SetTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class SetTypeCest /** * Tests Phalcon\Assets\Asset :: setType() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Asset/SetVersionCest.php b/tests/unit/Assets/Asset/SetVersionCest.php index bba20ccbbea..da5123c017d 100644 --- a/tests/unit/Assets/Asset/SetVersionCest.php +++ b/tests/unit/Assets/Asset/SetVersionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetVersionCest /** * Unit Tests Phalcon\Assets\Asset :: setVersion() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function assetsAssetSetVersion(UnitTester $I) diff --git a/tests/unit/Assets/Collection/AddCest.php b/tests/unit/Assets/Collection/AddCest.php index d8ee60febe3..be67da7658c 100644 --- a/tests/unit/Assets/Collection/AddCest.php +++ b/tests/unit/Assets/Collection/AddCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class AddCest /** * Tests Phalcon\Assets\Collection :: add() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsCollectionAdd(UnitTester $I) @@ -53,7 +53,7 @@ public function assetsCollectionAdd(UnitTester $I) * * @issue https://github.com/phalcon/cphalcon/issues/10938 * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-06-02 */ public function assetsCollectionAddDuplicate(UnitTester $I) diff --git a/tests/unit/Assets/Collection/AddCssCest.php b/tests/unit/Assets/Collection/AddCssCest.php index bc270861448..08dd5b6bdf9 100644 --- a/tests/unit/Assets/Collection/AddCssCest.php +++ b/tests/unit/Assets/Collection/AddCssCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class AddCssCest /** * Tests Phalcon\Assets\Collection :: addCss() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsCollectionAddCss(UnitTester $I) diff --git a/tests/unit/Assets/Collection/AddFilterCest.php b/tests/unit/Assets/Collection/AddFilterCest.php index 55c5962fbcc..ddd4d588b58 100644 --- a/tests/unit/Assets/Collection/AddFilterCest.php +++ b/tests/unit/Assets/Collection/AddFilterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class AddFilterCest /** * Tests Phalcon\Assets\Collection :: addFilter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsCollectionAddFilter(UnitTester $I) diff --git a/tests/unit/Assets/Collection/AddInlineCest.php b/tests/unit/Assets/Collection/AddInlineCest.php index ab26797e624..96e46099a0d 100644 --- a/tests/unit/Assets/Collection/AddInlineCest.php +++ b/tests/unit/Assets/Collection/AddInlineCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class AddInlineCest /** * Tests Phalcon\Assets\Collection :: addInline() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsCollectionAddInline(UnitTester $I) diff --git a/tests/unit/Assets/Collection/AddInlineCssCest.php b/tests/unit/Assets/Collection/AddInlineCssCest.php index 5d04ee20b84..76c2c761ee3 100644 --- a/tests/unit/Assets/Collection/AddInlineCssCest.php +++ b/tests/unit/Assets/Collection/AddInlineCssCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class AddInlineCssCest /** * Tests Phalcon\Assets\Collection :: addInlineCss() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsCollectionAddInlineCss(UnitTester $I) diff --git a/tests/unit/Assets/Collection/AddInlineJsCest.php b/tests/unit/Assets/Collection/AddInlineJsCest.php index 62f484093ff..9afdc224a58 100644 --- a/tests/unit/Assets/Collection/AddInlineJsCest.php +++ b/tests/unit/Assets/Collection/AddInlineJsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class AddInlineJsCest /** * Tests Phalcon\Assets\Collection :: addInlineJs() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsCollectionAddInlineJs(UnitTester $I) diff --git a/tests/unit/Assets/Collection/AddJsCest.php b/tests/unit/Assets/Collection/AddJsCest.php index 32e0a1afdee..3ddab354e7f 100644 --- a/tests/unit/Assets/Collection/AddJsCest.php +++ b/tests/unit/Assets/Collection/AddJsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class AddJsCest /** * Tests Phalcon\Assets\Collection :: addJs() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsCollectionAddJs(UnitTester $I) diff --git a/tests/unit/Assets/Collection/ConstructCest.php b/tests/unit/Assets/Collection/ConstructCest.php index 30453efd9dd..15669618359 100644 --- a/tests/unit/Assets/Collection/ConstructCest.php +++ b/tests/unit/Assets/Collection/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ConstructCest /** * Tests Phalcon\Assets\Collection :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsCollectionConstruct(UnitTester $I) diff --git a/tests/unit/Assets/Collection/CountCest.php b/tests/unit/Assets/Collection/CountCest.php index a42aa9b4702..ba0c9645b9a 100644 --- a/tests/unit/Assets/Collection/CountCest.php +++ b/tests/unit/Assets/Collection/CountCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class CountCest /** * Tests Phalcon\Assets\Collection :: count() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsCollectionCount(UnitTester $I) diff --git a/tests/unit/Assets/Collection/CurrentCest.php b/tests/unit/Assets/Collection/CurrentCest.php index ecca1f35998..4e9803721ee 100644 --- a/tests/unit/Assets/Collection/CurrentCest.php +++ b/tests/unit/Assets/Collection/CurrentCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class CurrentCest /** * Tests Phalcon\Assets\Collection :: current() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsCollectionCurrent(UnitTester $I) diff --git a/tests/unit/Assets/Collection/GetAssetsCest.php b/tests/unit/Assets/Collection/GetAssetsCest.php index f447db018dc..390cdc3def1 100644 --- a/tests/unit/Assets/Collection/GetAssetsCest.php +++ b/tests/unit/Assets/Collection/GetAssetsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetAssetsCest /** * Tests Phalcon\Assets\Collection :: getAssets() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsCollectionGetAssets(UnitTester $I) diff --git a/tests/unit/Assets/Collection/GetAttributesCest.php b/tests/unit/Assets/Collection/GetAttributesCest.php index 2df492d6f8d..899b09ea21c 100644 --- a/tests/unit/Assets/Collection/GetAttributesCest.php +++ b/tests/unit/Assets/Collection/GetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetAttributesCest /** * Tests Phalcon\Assets\Collection :: getAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsCollectionGetAttributes(UnitTester $I) diff --git a/tests/unit/Assets/Collection/GetCodesCest.php b/tests/unit/Assets/Collection/GetCodesCest.php index 967de320d75..8bf6add6598 100644 --- a/tests/unit/Assets/Collection/GetCodesCest.php +++ b/tests/unit/Assets/Collection/GetCodesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetCodesCest /** * Tests Phalcon\Assets\Collection :: getCodes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsCollectionGetCodes(UnitTester $I) diff --git a/tests/unit/Assets/Collection/GetFiltersCest.php b/tests/unit/Assets/Collection/GetFiltersCest.php index 7209420911e..6d932b121f9 100644 --- a/tests/unit/Assets/Collection/GetFiltersCest.php +++ b/tests/unit/Assets/Collection/GetFiltersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetFiltersCest /** * Tests Phalcon\Assets\Collection :: getFilters() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsCollectionGetFilters(UnitTester $I) diff --git a/tests/unit/Assets/Collection/GetJoinCest.php b/tests/unit/Assets/Collection/GetJoinCest.php index c8d3cfa00f2..d9f74fd04de 100644 --- a/tests/unit/Assets/Collection/GetJoinCest.php +++ b/tests/unit/Assets/Collection/GetJoinCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetJoinCest /** * Tests Phalcon\Assets\Collection :: getJoin() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsCollectionGetJoin(UnitTester $I) diff --git a/tests/unit/Assets/Collection/GetLocalCest.php b/tests/unit/Assets/Collection/GetLocalCest.php index 45cfe64e6bd..fef6d34629f 100644 --- a/tests/unit/Assets/Collection/GetLocalCest.php +++ b/tests/unit/Assets/Collection/GetLocalCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetLocalCest /** * Tests Phalcon\Assets\Collection :: getLocal() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsCollectionGetLocal(UnitTester $I) diff --git a/tests/unit/Assets/Collection/GetPositionCest.php b/tests/unit/Assets/Collection/GetPositionCest.php index b2b1fb25f50..3ca4587ed78 100644 --- a/tests/unit/Assets/Collection/GetPositionCest.php +++ b/tests/unit/Assets/Collection/GetPositionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetPositionCest /** * Tests Phalcon\Assets\Collection :: getPosition() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsCollectionGetPosition(UnitTester $I) diff --git a/tests/unit/Assets/Collection/GetPrefixCest.php b/tests/unit/Assets/Collection/GetPrefixCest.php index fbbcc328763..b3f6bc6be5c 100644 --- a/tests/unit/Assets/Collection/GetPrefixCest.php +++ b/tests/unit/Assets/Collection/GetPrefixCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetPrefixCest /** * Tests Phalcon\Assets\Collection :: getPrefix() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsCollectionGetPrefix(UnitTester $I) diff --git a/tests/unit/Assets/Collection/GetRealTargetPathCest.php b/tests/unit/Assets/Collection/GetRealTargetPathCest.php index 39624fdf6f6..ddedbece692 100644 --- a/tests/unit/Assets/Collection/GetRealTargetPathCest.php +++ b/tests/unit/Assets/Collection/GetRealTargetPathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetRealTargetPathCest /** * Tests Phalcon\Assets\Collection :: getRealTargetPath() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsCollectionGetRealTargetPath(UnitTester $I) diff --git a/tests/unit/Assets/Collection/GetSourcePathCest.php b/tests/unit/Assets/Collection/GetSourcePathCest.php index 98ddb30ab91..645a30568f7 100644 --- a/tests/unit/Assets/Collection/GetSourcePathCest.php +++ b/tests/unit/Assets/Collection/GetSourcePathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetSourcePathCest /** * Tests Phalcon\Assets\Collection :: getSourcePath() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsCollectionGetSourcePath(UnitTester $I) diff --git a/tests/unit/Assets/Collection/GetTargetLocalCest.php b/tests/unit/Assets/Collection/GetTargetLocalCest.php index 79f751a5bf0..d8621139792 100644 --- a/tests/unit/Assets/Collection/GetTargetLocalCest.php +++ b/tests/unit/Assets/Collection/GetTargetLocalCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetTargetLocalCest /** * Tests Phalcon\Assets\Collection :: getTargetLocal() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsCollectionGetTargetLocal(UnitTester $I) diff --git a/tests/unit/Assets/Collection/GetTargetPathCest.php b/tests/unit/Assets/Collection/GetTargetPathCest.php index 76e744c83f8..088713f87dc 100644 --- a/tests/unit/Assets/Collection/GetTargetPathCest.php +++ b/tests/unit/Assets/Collection/GetTargetPathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetTargetPathCest /** * Tests Phalcon\Assets\Collection :: getTargetPath() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsCollectionGetTargetPath(UnitTester $I) diff --git a/tests/unit/Assets/Collection/GetTargetUriCest.php b/tests/unit/Assets/Collection/GetTargetUriCest.php index 3b0ee917db2..d269b17e97f 100644 --- a/tests/unit/Assets/Collection/GetTargetUriCest.php +++ b/tests/unit/Assets/Collection/GetTargetUriCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetTargetUriCest /** * Tests Phalcon\Assets\Collection :: getTargetUri() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsCollectionGetTargetUri(UnitTester $I) diff --git a/tests/unit/Assets/Collection/GetVersionCest.php b/tests/unit/Assets/Collection/GetVersionCest.php index 76bd9dbacf6..e2391e48a3d 100644 --- a/tests/unit/Assets/Collection/GetVersionCest.php +++ b/tests/unit/Assets/Collection/GetVersionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetVersionCest /** * Unit Tests Phalcon\Assets\Collection :: getVersion() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function assetsCollectionGetVersion(UnitTester $I) diff --git a/tests/unit/Assets/Collection/HasCest.php b/tests/unit/Assets/Collection/HasCest.php index 5a74f7df27c..5e411638166 100644 --- a/tests/unit/Assets/Collection/HasCest.php +++ b/tests/unit/Assets/Collection/HasCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class HasCest /** * Tests Phalcon\Assets\Collection :: has() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsCollectionHas(UnitTester $I) diff --git a/tests/unit/Assets/Collection/IsAutoVersionCest.php b/tests/unit/Assets/Collection/IsAutoVersionCest.php index f9c16ce8308..ff21ba9611a 100644 --- a/tests/unit/Assets/Collection/IsAutoVersionCest.php +++ b/tests/unit/Assets/Collection/IsAutoVersionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class IsAutoVersionCest /** * Unit Tests Phalcon\Assets\Collection :: isAutoVersion() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function assetsCollectionIsAutoVersion(UnitTester $I) diff --git a/tests/unit/Assets/Collection/JoinCest.php b/tests/unit/Assets/Collection/JoinCest.php index a1e8e60045d..b98bf02680c 100644 --- a/tests/unit/Assets/Collection/JoinCest.php +++ b/tests/unit/Assets/Collection/JoinCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class JoinCest /** * Tests Phalcon\Assets\Collection :: join() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsCollectionJoin(UnitTester $I) diff --git a/tests/unit/Assets/Collection/KeyCest.php b/tests/unit/Assets/Collection/KeyCest.php index e09cec450bb..8b2aae6edd5 100644 --- a/tests/unit/Assets/Collection/KeyCest.php +++ b/tests/unit/Assets/Collection/KeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class KeyCest /** * Tests Phalcon\Assets\Collection :: key() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsCollectionKey(UnitTester $I) diff --git a/tests/unit/Assets/Collection/NextCest.php b/tests/unit/Assets/Collection/NextCest.php index f8f05c2e7a3..fd1d9e62fbc 100644 --- a/tests/unit/Assets/Collection/NextCest.php +++ b/tests/unit/Assets/Collection/NextCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class NextCest /** * Tests Phalcon\Assets\Collection :: next() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsCollectionNext(UnitTester $I) diff --git a/tests/unit/Assets/Collection/RewindCest.php b/tests/unit/Assets/Collection/RewindCest.php index 6d48ff83532..0a1f995dc65 100644 --- a/tests/unit/Assets/Collection/RewindCest.php +++ b/tests/unit/Assets/Collection/RewindCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class RewindCest /** * Tests Phalcon\Assets\Collection :: rewind() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsCollectionRewind(UnitTester $I) diff --git a/tests/unit/Assets/Collection/SetAttributesCest.php b/tests/unit/Assets/Collection/SetAttributesCest.php index 0ba1bbb550c..152096bca5c 100644 --- a/tests/unit/Assets/Collection/SetAttributesCest.php +++ b/tests/unit/Assets/Collection/SetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetAttributesCest /** * Tests Phalcon\Assets\Collection :: setAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsCollectionSetAttributes(UnitTester $I) diff --git a/tests/unit/Assets/Collection/SetAutoVersionCest.php b/tests/unit/Assets/Collection/SetAutoVersionCest.php index 9b181851a57..0b65399c902 100644 --- a/tests/unit/Assets/Collection/SetAutoVersionCest.php +++ b/tests/unit/Assets/Collection/SetAutoVersionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetAutoVersionCest /** * Unit Tests Phalcon\Assets\Collection :: setAutoVersion() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function assetsCollectionSetAutoVersion(UnitTester $I) diff --git a/tests/unit/Assets/Collection/SetFiltersCest.php b/tests/unit/Assets/Collection/SetFiltersCest.php index fb054ddf7b1..f2fc071aeab 100644 --- a/tests/unit/Assets/Collection/SetFiltersCest.php +++ b/tests/unit/Assets/Collection/SetFiltersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetFiltersCest /** * Tests Phalcon\Assets\Collection :: setFilters() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsCollectionSetFilters(UnitTester $I) diff --git a/tests/unit/Assets/Collection/SetLocalCest.php b/tests/unit/Assets/Collection/SetLocalCest.php index ccf584a8dcf..73eb44b88a1 100644 --- a/tests/unit/Assets/Collection/SetLocalCest.php +++ b/tests/unit/Assets/Collection/SetLocalCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetLocalCest /** * Tests Phalcon\Assets\Collection :: setLocal() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsCollectionSetLocal(UnitTester $I) diff --git a/tests/unit/Assets/Collection/SetPrefixCest.php b/tests/unit/Assets/Collection/SetPrefixCest.php index f2dd0975736..eea1f3b0fe2 100644 --- a/tests/unit/Assets/Collection/SetPrefixCest.php +++ b/tests/unit/Assets/Collection/SetPrefixCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetPrefixCest /** * Tests Phalcon\Assets\Collection :: setPrefix() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsCollectionSetPrefix(UnitTester $I) diff --git a/tests/unit/Assets/Collection/SetSourcePathCest.php b/tests/unit/Assets/Collection/SetSourcePathCest.php index 776121b9e92..e6f5bdd6cf9 100644 --- a/tests/unit/Assets/Collection/SetSourcePathCest.php +++ b/tests/unit/Assets/Collection/SetSourcePathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetSourcePathCest /** * Tests Phalcon\Assets\Collection :: setSourcePath() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsCollectionSetSourcePath(UnitTester $I) diff --git a/tests/unit/Assets/Collection/SetTargetLocalCest.php b/tests/unit/Assets/Collection/SetTargetLocalCest.php index 03d131b8d6d..ee057ebc1a5 100644 --- a/tests/unit/Assets/Collection/SetTargetLocalCest.php +++ b/tests/unit/Assets/Collection/SetTargetLocalCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetTargetLocalCest /** * Tests Phalcon\Assets\Collection :: setTargetLocal() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsCollectionSetTargetLocal(UnitTester $I) diff --git a/tests/unit/Assets/Collection/SetTargetPathCest.php b/tests/unit/Assets/Collection/SetTargetPathCest.php index 97b8c18eb0b..8d1aea1535c 100644 --- a/tests/unit/Assets/Collection/SetTargetPathCest.php +++ b/tests/unit/Assets/Collection/SetTargetPathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetTargetPathCest /** * Tests Phalcon\Assets\Collection :: setTargetPath() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsCollectionSetTargetPath(UnitTester $I) diff --git a/tests/unit/Assets/Collection/SetTargetUriCest.php b/tests/unit/Assets/Collection/SetTargetUriCest.php index 0f315c19590..a4eb1d3e611 100644 --- a/tests/unit/Assets/Collection/SetTargetUriCest.php +++ b/tests/unit/Assets/Collection/SetTargetUriCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetTargetUriCest /** * Tests Phalcon\Assets\Collection :: setTargetUri() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsCollectionSetTargetUri(UnitTester $I) diff --git a/tests/unit/Assets/Collection/SetVersionCest.php b/tests/unit/Assets/Collection/SetVersionCest.php index f2804ced04f..ff8e140a50f 100644 --- a/tests/unit/Assets/Collection/SetVersionCest.php +++ b/tests/unit/Assets/Collection/SetVersionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetVersionCest /** * Unit Tests Phalcon\Assets\Collection :: setVersion() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function assetsCollectionSetVersion(UnitTester $I) diff --git a/tests/unit/Assets/Collection/ValidCest.php b/tests/unit/Assets/Collection/ValidCest.php index ad0d0c51b35..fa9b95aca12 100644 --- a/tests/unit/Assets/Collection/ValidCest.php +++ b/tests/unit/Assets/Collection/ValidCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ValidCest /** * Tests Phalcon\Assets\Collection :: valid() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsCollectionValid(UnitTester $I) diff --git a/tests/unit/Assets/Filters/Cssmin/ConstructCest.php b/tests/unit/Assets/Filters/Cssmin/ConstructCest.php index 37e5fc186d3..2ef7ced3c19 100644 --- a/tests/unit/Assets/Filters/Cssmin/ConstructCest.php +++ b/tests/unit/Assets/Filters/Cssmin/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class ConstructCest * Tests Phalcon\Assets\Filters\Cssmin :: __construct() - no string * exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-24 */ public function assetsFiltersCssminConstructNonString(UnitTester $I) diff --git a/tests/unit/Assets/Filters/Cssmin/FilterCest.php b/tests/unit/Assets/Filters/Cssmin/FilterCest.php index 5599aaee08f..fa15bbf75fd 100644 --- a/tests/unit/Assets/Filters/Cssmin/FilterCest.php +++ b/tests/unit/Assets/Filters/Cssmin/FilterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class FilterCest /** * Tests Phalcon\Assets\Filters\Cssmin :: filter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-10 */ public function assetsFiltersCssminFilter(UnitTester $I) @@ -39,7 +39,7 @@ public function assetsFiltersCssminFilter(UnitTester $I) /** * Tests Phalcon\Assets\Filters\Cssmin :: filter() - spaces * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-10 */ public function assetsFiltersCssminFilterSpaces(UnitTester $I) @@ -58,7 +58,7 @@ public function assetsFiltersCssminFilterSpaces(UnitTester $I) /** * Tests Phalcon\Assets\Filters\Cssmin :: filter() - attributes spaces * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-10 */ public function assetsFiltersCssminFilterAttributesSpaces(UnitTester $I) @@ -84,7 +84,7 @@ public function assetsFiltersCssminFilterAttributesSpaces(UnitTester $I) /** * Tests Phalcon\Assets\Filters\Cssmin :: filter() - class spaces * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-10 */ public function assetsFiltersCssminFilterClassSpaces(UnitTester $I) @@ -104,7 +104,7 @@ public function assetsFiltersCssminFilterClassSpaces(UnitTester $I) * Tests Phalcon\Assets\Filters\Cssmin :: filter() - class inheritance * spaces * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-10 */ public function assetsFiltersCssminFilterClassInheritanceSpaces(UnitTester $I) @@ -124,7 +124,7 @@ public function assetsFiltersCssminFilterClassInheritanceSpaces(UnitTester $I) /** * Tests Phalcon\Assets\Filters\Cssmin :: filter() - complex * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-10 */ public function assetsFiltersCssminFilterComples(UnitTester $I) @@ -146,7 +146,7 @@ public function assetsFiltersCssminFilterComples(UnitTester $I) /** * Tests Phalcon\Assets\Filters\Cssmin :: filter() - load files * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-10 */ public function assetsFiltersCssminFilterLoadFiles(UnitTester $I) @@ -172,7 +172,7 @@ public function assetsFiltersCssminFilterLoadFiles(UnitTester $I) /** * Tests Phalcon\Assets\Filters\Cssmin :: filter() - empty * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-10 */ public function assetsFiltersCssminFilterEmpty(UnitTester $I) @@ -191,7 +191,7 @@ public function assetsFiltersCssminFilterEmpty(UnitTester $I) /** * Tests cssmin filter * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-10 */ public function testAssetsFilterCssmin(UnitTester $I) diff --git a/tests/unit/Assets/Filters/Jsmin/ConstructCest.php b/tests/unit/Assets/Filters/Jsmin/ConstructCest.php index bddbb320bff..47ce47a9faf 100644 --- a/tests/unit/Assets/Filters/Jsmin/ConstructCest.php +++ b/tests/unit/Assets/Filters/Jsmin/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class ConstructCest /** * Tests Phalcon\Assets\Filters\Jsmin :: __construct() - no string exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-24 */ public function assetsFiltersJsminConstructNonString(UnitTester $I) @@ -51,7 +51,7 @@ function () { * Tests Phalcon\Assets\Filters\Jsmin :: __construct() - unterminated * comment * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-24 */ public function assetsFiltersJsminConstructUnterminatedComment(UnitTester $I) @@ -73,7 +73,7 @@ function () { /** * Tests Phalcon\Assets\Filters\Jsmin :: __construct() - unterminated string * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-24 */ public function assetsFiltersJsminConstructUnterminatedString(UnitTester $I) @@ -95,7 +95,7 @@ function () { /** * Tests Phalcon\Assets\Filters\Jsmin :: __construct() - unterminated regex * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-24 */ public function assetsFiltersJsminConstructUnterminatedRegex(UnitTester $I) diff --git a/tests/unit/Assets/Filters/Jsmin/FilterCest.php b/tests/unit/Assets/Filters/Jsmin/FilterCest.php index 1aa9c33dc7f..c6d41e1dbbd 100644 --- a/tests/unit/Assets/Filters/Jsmin/FilterCest.php +++ b/tests/unit/Assets/Filters/Jsmin/FilterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class FilterCest /** * Tests Phalcon\Assets\Filters\Jsmin :: filter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-24 */ public function assetsFiltersJsminFilter(UnitTester $I) @@ -42,7 +42,7 @@ public function assetsFiltersJsminFilter(UnitTester $I) /** * Tests Phalcon\Assets\Filters\Jsmin :: filter() - spaces * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-24 */ public function assetsFiltersJsminFilterSpaces(UnitTester $I) @@ -66,7 +66,7 @@ public function assetsFiltersJsminFilterSpaces(UnitTester $I) /** * Tests Phalcon\Assets\Filters\Jsmin :: filter() - tabs * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-24 */ public function assetsFiltersJsminFilterTabs(UnitTester $I) @@ -90,7 +90,7 @@ public function assetsFiltersJsminFilterTabs(UnitTester $I) /** * Tests Phalcon\Assets\Filters\Jsmin :: filter() - tabs comment * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-24 */ public function assetsFiltersJsminFilterTabsComment(UnitTester $I) @@ -114,7 +114,7 @@ public function assetsFiltersJsminFilterTabsComment(UnitTester $I) /** * Tests Phalcon\Assets\Filters\Jsmin :: filter() - tabs newlines * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-24 */ public function assetsFiltersJsminFilterTabsCommentNewlines(UnitTester $I) @@ -133,7 +133,7 @@ public function assetsFiltersJsminFilterTabsCommentNewlines(UnitTester $I) /** * Tests Phalcon\Assets\Filters\Jsmin :: filter() - empty * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-24 */ public function assetsFiltersJsminFilterEmpty(UnitTester $I) @@ -152,7 +152,7 @@ public function assetsFiltersJsminFilterEmpty(UnitTester $I) /** * Tests Phalcon\Assets\Filters\Jsmin :: filter() - comment * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-24 */ public function assetsFiltersJsminFilterComment(UnitTester $I) diff --git a/tests/unit/Assets/Filters/None/FilterCest.php b/tests/unit/Assets/Filters/None/FilterCest.php index 57d445cfcb0..e9d53a2463a 100644 --- a/tests/unit/Assets/Filters/None/FilterCest.php +++ b/tests/unit/Assets/Filters/None/FilterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class FilterCest /** * Tests Phalcon\Assets\Filters\None :: filter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsFiltersNoneFilter(UnitTester $I) diff --git a/tests/unit/Assets/Inline/ConstructCest.php b/tests/unit/Assets/Inline/ConstructCest.php index 43932b2e4e5..8b95297d00e 100644 --- a/tests/unit/Assets/Inline/ConstructCest.php +++ b/tests/unit/Assets/Inline/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ConstructCest /** * Tests Phalcon\Assets\Asset :: __construct() - css * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsInlineConstructCss(UnitTester $I) @@ -39,7 +39,7 @@ public function assetsInlineConstructCss(UnitTester $I) /** * Tests Phalcon\Assets\Asset :: __construct() - css filter * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsInlineConstructCssFilter(UnitTester $I) @@ -57,7 +57,7 @@ public function assetsInlineConstructCssFilter(UnitTester $I) /** * Tests Phalcon\Assets\Asset :: __construct() - css filter set * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsInlineConstructCssFilterSet(UnitTester $I) @@ -76,7 +76,7 @@ public function assetsInlineConstructCssFilterSet(UnitTester $I) /** * Tests Phalcon\Assets\Asset :: __construct() - css attributes * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsInlineConstructCssAttributes(UnitTester $I) @@ -95,7 +95,7 @@ public function assetsInlineConstructCssAttributes(UnitTester $I) /** * Tests Phalcon\Assets\Asset :: __construct() - css attributes set * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsInlineConstructCssAttributesSet(UnitTester $I) @@ -124,7 +124,7 @@ public function assetsInlineConstructCssAttributesSet(UnitTester $I) /** * Tests Phalcon\Assets\Asset :: __construct() - js * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsInlineConstructJs(UnitTester $I) @@ -143,7 +143,7 @@ public function assetsInlineConstructJs(UnitTester $I) /** * Tests Phalcon\Assets\Asset :: __construct() - js filter * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsInlineConstructJsFilter(UnitTester $I) @@ -161,7 +161,7 @@ public function assetsInlineConstructJsFilter(UnitTester $I) /** * Tests Phalcon\Assets\Asset :: __construct() - js filter set * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsInlineConstructJsFilterSet(UnitTester $I) @@ -179,7 +179,7 @@ public function assetsInlineConstructJsFilterSet(UnitTester $I) /** * Tests Phalcon\Assets\Asset :: __construct() - js attributes * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsInlineConstructJsAttributes(UnitTester $I) @@ -198,7 +198,7 @@ public function assetsInlineConstructJsAttributes(UnitTester $I) /** * Tests Phalcon\Assets\Asset :: __construct() - js attributes set * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsInlineConstructJsAttributesSet(UnitTester $I) diff --git a/tests/unit/Assets/Inline/Css/ConstructCest.php b/tests/unit/Assets/Inline/Css/ConstructCest.php index 6b7f6bd3df2..1a08470132e 100644 --- a/tests/unit/Assets/Inline/Css/ConstructCest.php +++ b/tests/unit/Assets/Inline/Css/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ConstructCest /** * Tests Phalcon\Assets\Inline\Css :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsInlineCssConstruct(UnitTester $I) @@ -38,7 +38,7 @@ public function assetsInlineCssConstruct(UnitTester $I) /** * Tests Phalcon\Assets\Inline\Css :: __construct() - filter * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsInlineCssConstructFilter(UnitTester $I) @@ -55,7 +55,7 @@ public function assetsInlineCssConstructFilter(UnitTester $I) /** * Tests Phalcon\Assets\Inline\Css :: __construct() - filter set * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsInlineCssConstructFilterSet(UnitTester $I) @@ -72,7 +72,7 @@ public function assetsInlineCssConstructFilterSet(UnitTester $I) /** * Tests Phalcon\Assets\Inline\Css :: __construct() - attributes * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsInlineCssConstructAttributes(UnitTester $I) @@ -94,7 +94,7 @@ public function assetsInlineCssConstructAttributes(UnitTester $I) /** * Tests Phalcon\Assets\Inline\Css :: __construct() - attributes set * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsInlineCssConstructAttributesSet(UnitTester $I) diff --git a/tests/unit/Assets/Inline/Css/GetAssetKeyCest.php b/tests/unit/Assets/Inline/Css/GetAssetKeyCest.php index d2a9e562d52..05960e5fa75 100644 --- a/tests/unit/Assets/Inline/Css/GetAssetKeyCest.php +++ b/tests/unit/Assets/Inline/Css/GetAssetKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetAssetKeyCest /** * Tests Phalcon\Assets\Inline\Css :: getAssetKey() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsInlineCssGetAssetKey(UnitTester $I) diff --git a/tests/unit/Assets/Inline/Css/GetAttributesCest.php b/tests/unit/Assets/Inline/Css/GetAttributesCest.php index 25abfaf0fbb..3f719b03f01 100644 --- a/tests/unit/Assets/Inline/Css/GetAttributesCest.php +++ b/tests/unit/Assets/Inline/Css/GetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetAttributesCest /** * Tests Phalcon\Assets\Inline\Css :: getAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsInlineCssGetAttributes(UnitTester $I) diff --git a/tests/unit/Assets/Inline/Css/GetContentCest.php b/tests/unit/Assets/Inline/Css/GetContentCest.php index a09ca648f3e..ab6474307b5 100644 --- a/tests/unit/Assets/Inline/Css/GetContentCest.php +++ b/tests/unit/Assets/Inline/Css/GetContentCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetContentCest /** * Tests Phalcon\Assets\Inline\Css :: getContent() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsInlineCssGetContent(UnitTester $I) diff --git a/tests/unit/Assets/Inline/Css/GetFilterCest.php b/tests/unit/Assets/Inline/Css/GetFilterCest.php index 9e34354a0f4..d8cde939cee 100644 --- a/tests/unit/Assets/Inline/Css/GetFilterCest.php +++ b/tests/unit/Assets/Inline/Css/GetFilterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetFilterCest /** * Tests Phalcon\Assets\Inline\Css :: getFilter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsInlineCssGetFilter(UnitTester $I) diff --git a/tests/unit/Assets/Inline/Css/GetTypeCest.php b/tests/unit/Assets/Inline/Css/GetTypeCest.php index 6a46e0f657e..a6f06af40e5 100644 --- a/tests/unit/Assets/Inline/Css/GetTypeCest.php +++ b/tests/unit/Assets/Inline/Css/GetTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetTypeCest /** * Tests Phalcon\Assets\Inline\Css :: getType() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsInlineCssGetType(UnitTester $I) diff --git a/tests/unit/Assets/Inline/Css/SetAttributesCest.php b/tests/unit/Assets/Inline/Css/SetAttributesCest.php index 21e5f37c8f6..16738a9e406 100644 --- a/tests/unit/Assets/Inline/Css/SetAttributesCest.php +++ b/tests/unit/Assets/Inline/Css/SetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetAttributesCest /** * Tests Phalcon\Assets\Inline\Css :: setAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsInlineCssSetAttributes(UnitTester $I) diff --git a/tests/unit/Assets/Inline/Css/SetFilterCest.php b/tests/unit/Assets/Inline/Css/SetFilterCest.php index 4d896f239d4..73676b15748 100644 --- a/tests/unit/Assets/Inline/Css/SetFilterCest.php +++ b/tests/unit/Assets/Inline/Css/SetFilterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetFilterCest /** * Tests Phalcon\Assets\Inline\Css :: setFilter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsInlineCssSetFilter(UnitTester $I) diff --git a/tests/unit/Assets/Inline/Css/SetTypeCest.php b/tests/unit/Assets/Inline/Css/SetTypeCest.php index 6198d7f5d51..9e98ed6ef1b 100644 --- a/tests/unit/Assets/Inline/Css/SetTypeCest.php +++ b/tests/unit/Assets/Inline/Css/SetTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetTypeCest /** * Tests Phalcon\Assets\Inline\Css :: setType() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsInlineCssSetType(UnitTester $I) diff --git a/tests/unit/Assets/Inline/GetAssetKeyCest.php b/tests/unit/Assets/Inline/GetAssetKeyCest.php index 958c2d2ff84..52f44ee3d77 100644 --- a/tests/unit/Assets/Inline/GetAssetKeyCest.php +++ b/tests/unit/Assets/Inline/GetAssetKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetAssetKeyCest /** * Tests Phalcon\Assets\Inline :: getAssetKey() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Inline/GetAttributesCest.php b/tests/unit/Assets/Inline/GetAttributesCest.php index ec65aee8b65..641e24076bd 100644 --- a/tests/unit/Assets/Inline/GetAttributesCest.php +++ b/tests/unit/Assets/Inline/GetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetAttributesCest /** * Tests Phalcon\Assets\Inline :: getAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Inline/GetContentCest.php b/tests/unit/Assets/Inline/GetContentCest.php index f7fac0fd388..cfce98d9a3e 100644 --- a/tests/unit/Assets/Inline/GetContentCest.php +++ b/tests/unit/Assets/Inline/GetContentCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetContentCest /** * Tests Phalcon\Assets\Inline :: getContent() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Inline/GetFilterCest.php b/tests/unit/Assets/Inline/GetFilterCest.php index ad2ad2c6e0e..e2456f1664f 100644 --- a/tests/unit/Assets/Inline/GetFilterCest.php +++ b/tests/unit/Assets/Inline/GetFilterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetFilterCest /** * Tests Phalcon\Assets\Inline :: getFilter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Inline/GetTypeCest.php b/tests/unit/Assets/Inline/GetTypeCest.php index 35bfab8cf57..94d587bf182 100644 --- a/tests/unit/Assets/Inline/GetTypeCest.php +++ b/tests/unit/Assets/Inline/GetTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetTypeCest /** * Tests Phalcon\Assets\Inline :: getType() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Inline/Js/ConstructCest.php b/tests/unit/Assets/Inline/Js/ConstructCest.php index 427004dbe21..0d4b3a73a98 100644 --- a/tests/unit/Assets/Inline/Js/ConstructCest.php +++ b/tests/unit/Assets/Inline/Js/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ConstructCest /** * Tests Phalcon\Assets\Inline\Js :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsInlineJsConstruct(UnitTester $I) @@ -38,7 +38,7 @@ public function assetsInlineJsConstruct(UnitTester $I) /** * Tests Phalcon\Assets\Inline\Js :: __construct() - filter * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsInlineJsConstructFilter(UnitTester $I) @@ -55,7 +55,7 @@ public function assetsInlineJsConstructFilter(UnitTester $I) /** * Tests Phalcon\Assets\Inline\Js :: __construct() - filter set * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsInlineJsConstructFilterSet(UnitTester $I) @@ -75,7 +75,7 @@ public function assetsInlineJsConstructFilterSet(UnitTester $I) /** * Tests Phalcon\Assets\Inline\Js :: __construct() - attributes * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsInlineJsConstructAttributes(UnitTester $I) @@ -97,7 +97,7 @@ public function assetsInlineJsConstructAttributes(UnitTester $I) /** * Tests Phalcon\Assets\Inline\Js :: __construct() - attributes set * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsInlineJsConstructAttributesSet(UnitTester $I) diff --git a/tests/unit/Assets/Inline/Js/GetAssetKeyCest.php b/tests/unit/Assets/Inline/Js/GetAssetKeyCest.php index 71d809eb53e..81b516979a7 100644 --- a/tests/unit/Assets/Inline/Js/GetAssetKeyCest.php +++ b/tests/unit/Assets/Inline/Js/GetAssetKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetAssetKeyCest /** * Tests Phalcon\Assets\Inline\Js :: getAssetKey() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsInlineJsGetAssetKey(UnitTester $I) diff --git a/tests/unit/Assets/Inline/Js/GetAttributesCest.php b/tests/unit/Assets/Inline/Js/GetAttributesCest.php index 39e52cefc9c..7041707bc71 100644 --- a/tests/unit/Assets/Inline/Js/GetAttributesCest.php +++ b/tests/unit/Assets/Inline/Js/GetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetAttributesCest /** * Tests Phalcon\Assets\Inline\Js :: getAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsInlineJsGetAttributes(UnitTester $I) diff --git a/tests/unit/Assets/Inline/Js/GetContentCest.php b/tests/unit/Assets/Inline/Js/GetContentCest.php index f55d345e0f5..bda9218eabf 100644 --- a/tests/unit/Assets/Inline/Js/GetContentCest.php +++ b/tests/unit/Assets/Inline/Js/GetContentCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetContentCest /** * Tests Phalcon\Assets\Inline\Js :: getContent() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsInlineJsGetContent(UnitTester $I) diff --git a/tests/unit/Assets/Inline/Js/GetFilterCest.php b/tests/unit/Assets/Inline/Js/GetFilterCest.php index 6f8f79ab1e5..158cccf0712 100644 --- a/tests/unit/Assets/Inline/Js/GetFilterCest.php +++ b/tests/unit/Assets/Inline/Js/GetFilterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetFilterCest /** * Tests Phalcon\Assets\Inline\Js :: getFilter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsInlineJsGetFilter(UnitTester $I) diff --git a/tests/unit/Assets/Inline/Js/GetTypeCest.php b/tests/unit/Assets/Inline/Js/GetTypeCest.php index c817be1f1a0..85e866bf242 100644 --- a/tests/unit/Assets/Inline/Js/GetTypeCest.php +++ b/tests/unit/Assets/Inline/Js/GetTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetTypeCest /** * Tests Phalcon\Assets\Inline\Js :: getType() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsInlineJsGetType(UnitTester $I) diff --git a/tests/unit/Assets/Inline/Js/SetAttributesCest.php b/tests/unit/Assets/Inline/Js/SetAttributesCest.php index df0a711c2d7..d8c6d09b69d 100644 --- a/tests/unit/Assets/Inline/Js/SetAttributesCest.php +++ b/tests/unit/Assets/Inline/Js/SetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetAttributesCest /** * Tests Phalcon\Assets\Inline\Js :: setAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsInlineJsSetAttributes(UnitTester $I) diff --git a/tests/unit/Assets/Inline/Js/SetFilterCest.php b/tests/unit/Assets/Inline/Js/SetFilterCest.php index 84eb2ddd7f7..2ee9edea673 100644 --- a/tests/unit/Assets/Inline/Js/SetFilterCest.php +++ b/tests/unit/Assets/Inline/Js/SetFilterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetFilterCest /** * Tests Phalcon\Assets\Inline\Js :: setFilter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsInlineJsSetFilter(UnitTester $I) diff --git a/tests/unit/Assets/Inline/Js/SetTypeCest.php b/tests/unit/Assets/Inline/Js/SetTypeCest.php index d8a00f96443..a1658f6d537 100644 --- a/tests/unit/Assets/Inline/Js/SetTypeCest.php +++ b/tests/unit/Assets/Inline/Js/SetTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetTypeCest /** * Tests Phalcon\Assets\Inline\Js :: setType() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsInlineJsSetType(UnitTester $I) diff --git a/tests/unit/Assets/Inline/SetAttributesCest.php b/tests/unit/Assets/Inline/SetAttributesCest.php index 5614c4dce22..12eadd23190 100644 --- a/tests/unit/Assets/Inline/SetAttributesCest.php +++ b/tests/unit/Assets/Inline/SetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class SetAttributesCest /** * Tests Phalcon\Assets\Inline :: setAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Inline/SetFilterCest.php b/tests/unit/Assets/Inline/SetFilterCest.php index 76245f3da74..475a6833277 100644 --- a/tests/unit/Assets/Inline/SetFilterCest.php +++ b/tests/unit/Assets/Inline/SetFilterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class SetFilterCest /** * Tests Phalcon\Assets\Inline :: setFilter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Inline/SetTypeCest.php b/tests/unit/Assets/Inline/SetTypeCest.php index 2196615f544..124894e5921 100644 --- a/tests/unit/Assets/Inline/SetTypeCest.php +++ b/tests/unit/Assets/Inline/SetTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class SetTypeCest /** * Tests Phalcon\Assets\Inline :: setType() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider provider diff --git a/tests/unit/Assets/Manager/AddAssetByTypeCest.php b/tests/unit/Assets/Manager/AddAssetByTypeCest.php index 023c591e75f..3604bc83585 100644 --- a/tests/unit/Assets/Manager/AddAssetByTypeCest.php +++ b/tests/unit/Assets/Manager/AddAssetByTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class AddAssetByTypeCest /** * Tests Phalcon\Assets\Manager :: addAssetByType() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsManagerAddAssetByType(UnitTester $I) diff --git a/tests/unit/Assets/Manager/AddAssetCest.php b/tests/unit/Assets/Manager/AddAssetCest.php index a1ba06160c3..0bf2b8cac82 100644 --- a/tests/unit/Assets/Manager/AddAssetCest.php +++ b/tests/unit/Assets/Manager/AddAssetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class AddAssetCest /** * Tests Phalcon\Assets\Manager :: addAsset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsManagerAddAsset(UnitTester $I) @@ -43,7 +43,7 @@ public function assetsManagerAddAsset(UnitTester $I) /** * Tests Phalcon\Assets\Manager :: addAsset() - addCss() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsManagerAddAssetAddCss(UnitTester $I) diff --git a/tests/unit/Assets/Manager/AddCssCest.php b/tests/unit/Assets/Manager/AddCssCest.php index 69c25c8f8d6..21c337f0fac 100644 --- a/tests/unit/Assets/Manager/AddCssCest.php +++ b/tests/unit/Assets/Manager/AddCssCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class AddCssCest /** * Tests Phalcon\Assets\Manager :: addCss() * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-13 */ public function assetsManagerAddCss(UnitTester $I) @@ -49,7 +49,7 @@ public function assetsManagerAddCss(UnitTester $I) * * @issue https://github.com/phalcon/cphalcon/issues/10938 * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-06-02 */ public function assetsManagerAddCssDuplicate(UnitTester $I) diff --git a/tests/unit/Assets/Manager/AddInlineCodeByTypeCest.php b/tests/unit/Assets/Manager/AddInlineCodeByTypeCest.php index 414149d6bd3..704e589f508 100644 --- a/tests/unit/Assets/Manager/AddInlineCodeByTypeCest.php +++ b/tests/unit/Assets/Manager/AddInlineCodeByTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class AddInlineCodeByTypeCest /** * Tests Phalcon\Assets\Manager :: addInlineCodeByType() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsManagerAddInlineCodeByType(UnitTester $I) diff --git a/tests/unit/Assets/Manager/AddInlineCodeCest.php b/tests/unit/Assets/Manager/AddInlineCodeCest.php index d0b259cf803..85c962fa609 100644 --- a/tests/unit/Assets/Manager/AddInlineCodeCest.php +++ b/tests/unit/Assets/Manager/AddInlineCodeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class AddInlineCodeCest /** * Tests Phalcon\Assets\Manager :: addInlineCode() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsManagerAddInlineCode(UnitTester $I) diff --git a/tests/unit/Assets/Manager/AddInlineCssCest.php b/tests/unit/Assets/Manager/AddInlineCssCest.php index 07a102270e2..bcdc343f838 100644 --- a/tests/unit/Assets/Manager/AddInlineCssCest.php +++ b/tests/unit/Assets/Manager/AddInlineCssCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class AddInlineCssCest /** * Tests Phalcon\Assets\Manager :: addInlineCss() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsManagerAddInlineCss(UnitTester $I) diff --git a/tests/unit/Assets/Manager/AddInlineJsCest.php b/tests/unit/Assets/Manager/AddInlineJsCest.php index 407fa95333b..7add8b5b357 100644 --- a/tests/unit/Assets/Manager/AddInlineJsCest.php +++ b/tests/unit/Assets/Manager/AddInlineJsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Assets/Manager/AddJsCest.php b/tests/unit/Assets/Manager/AddJsCest.php index cde5ad7922d..693cd63011b 100644 --- a/tests/unit/Assets/Manager/AddJsCest.php +++ b/tests/unit/Assets/Manager/AddJsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -35,7 +35,7 @@ public function _after(UnitTester $I) /** * Tests Phalcon\Assets\Manager :: addJs() * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-13 */ public function assetsManagerAddJs(UnitTester $I) diff --git a/tests/unit/Assets/Manager/CollectionAssetsByTypeCest.php b/tests/unit/Assets/Manager/CollectionAssetsByTypeCest.php index 205cdc9a879..800d80e9ae6 100644 --- a/tests/unit/Assets/Manager/CollectionAssetsByTypeCest.php +++ b/tests/unit/Assets/Manager/CollectionAssetsByTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class CollectionAssetsByTypeCest /** * Tests Phalcon\Assets\Manager :: collectionAssetsByType() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsManagerCollectionAssetsByType(UnitTester $I) diff --git a/tests/unit/Assets/Manager/CollectionCest.php b/tests/unit/Assets/Manager/CollectionCest.php index 90be78c0df5..d2d4b7a4991 100644 --- a/tests/unit/Assets/Manager/CollectionCest.php +++ b/tests/unit/Assets/Manager/CollectionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class CollectionCest /** * Tests Phalcon\Assets\Manager :: collection() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsManagerCollection(UnitTester $I) diff --git a/tests/unit/Assets/Manager/ConstructCest.php b/tests/unit/Assets/Manager/ConstructCest.php index 8d602774f17..b14283a9451 100644 --- a/tests/unit/Assets/Manager/ConstructCest.php +++ b/tests/unit/Assets/Manager/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ConstructCest /** * Tests Phalcon\Assets\Manager :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsManagerConstruct(UnitTester $I) diff --git a/tests/unit/Assets/Manager/ExistsCest.php b/tests/unit/Assets/Manager/ExistsCest.php index bfe8e9b711e..69f85e622da 100644 --- a/tests/unit/Assets/Manager/ExistsCest.php +++ b/tests/unit/Assets/Manager/ExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Assets/Manager/GetCest.php b/tests/unit/Assets/Manager/GetCest.php index ef4a48cda97..240bdbaa8eb 100644 --- a/tests/unit/Assets/Manager/GetCest.php +++ b/tests/unit/Assets/Manager/GetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetCest /** * Tests Phalcon\Assets\Manager :: get() - unknown * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-06-04 */ public function assetsManagerGetUnknown(UnitTester $I) diff --git a/tests/unit/Assets/Manager/GetCollectionsCest.php b/tests/unit/Assets/Manager/GetCollectionsCest.php index b9ee134f224..f6f82d21c77 100644 --- a/tests/unit/Assets/Manager/GetCollectionsCest.php +++ b/tests/unit/Assets/Manager/GetCollectionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetCollectionsCest /** * Tests Phalcon\Assets\Manager :: getCollections() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsManagerGetCollections(UnitTester $I) diff --git a/tests/unit/Assets/Manager/GetCssCest.php b/tests/unit/Assets/Manager/GetCssCest.php index b15c1bc2585..510fb2a05df 100644 --- a/tests/unit/Assets/Manager/GetCssCest.php +++ b/tests/unit/Assets/Manager/GetCssCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetCssCest /** * Tests Phalcon\Assets\Manager :: getCss() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsManagerGetCss(UnitTester $I) diff --git a/tests/unit/Assets/Manager/GetJsCest.php b/tests/unit/Assets/Manager/GetJsCest.php index 9389bf15e26..d1d50092977 100644 --- a/tests/unit/Assets/Manager/GetJsCest.php +++ b/tests/unit/Assets/Manager/GetJsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetJsCest /** * Tests Phalcon\Assets\Manager :: getJs() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsManagerGetJs(UnitTester $I) diff --git a/tests/unit/Assets/Manager/GetOptionsCest.php b/tests/unit/Assets/Manager/GetOptionsCest.php index a34865c022d..884e27ddc16 100644 --- a/tests/unit/Assets/Manager/GetOptionsCest.php +++ b/tests/unit/Assets/Manager/GetOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetOptionsCest /** * Tests Phalcon\Assets\Manager :: getOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsManagerGetOptions(UnitTester $I) diff --git a/tests/unit/Assets/Manager/GetSetDICest.php b/tests/unit/Assets/Manager/GetSetDICest.php index 3de7b74d90b..704e8cc96ad 100644 --- a/tests/unit/Assets/Manager/GetSetDICest.php +++ b/tests/unit/Assets/Manager/GetSetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Assets/Manager/OutputCest.php b/tests/unit/Assets/Manager/OutputCest.php index 304ee82b90b..c66f2e48fa0 100644 --- a/tests/unit/Assets/Manager/OutputCest.php +++ b/tests/unit/Assets/Manager/OutputCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class OutputCest /** * Tests Phalcon\Assets\Manager :: output() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsManagerOutput(UnitTester $I) diff --git a/tests/unit/Assets/Manager/OutputCssCest.php b/tests/unit/Assets/Manager/OutputCssCest.php index 89bd5a50a42..e98a42da96c 100644 --- a/tests/unit/Assets/Manager/OutputCssCest.php +++ b/tests/unit/Assets/Manager/OutputCssCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -39,7 +39,7 @@ public function _before(UnitTester $I) /** * Tests Phalcon\Assets\Manager :: outputCss() - implicit * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-13 */ public function assetsManagerOutputCssImplicit(UnitTester $I) @@ -70,7 +70,7 @@ public function assetsManagerOutputCssImplicit(UnitTester $I) /** * Tests Phalcon\Assets\Manager :: outputCss() - not implicit * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-13 */ public function assetsManagerOutputCssNotImplicit(UnitTester $I) @@ -103,7 +103,7 @@ public function assetsManagerOutputCssNotImplicit(UnitTester $I) * * @issue https://github.com/phalcon/cphalcon/issues/1198 * - * @author Phalcon Team + * @author Phalcon Team * @since 2013-09-15 */ public function assetsManagerOutputCssFilterChainCustomFilterWithCssmin(UnitTester $I) diff --git a/tests/unit/Assets/Manager/OutputInlineCest.php b/tests/unit/Assets/Manager/OutputInlineCest.php index 3a7efb23f2f..99c915fd4db 100644 --- a/tests/unit/Assets/Manager/OutputInlineCest.php +++ b/tests/unit/Assets/Manager/OutputInlineCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class OutputInlineCest /** * Tests Phalcon\Assets\Manager :: outputInline() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsManagerOutputInline(UnitTester $I) diff --git a/tests/unit/Assets/Manager/OutputInlineCssCest.php b/tests/unit/Assets/Manager/OutputInlineCssCest.php index fd4590e7f59..ea3db6cb041 100644 --- a/tests/unit/Assets/Manager/OutputInlineCssCest.php +++ b/tests/unit/Assets/Manager/OutputInlineCssCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class OutputInlineCssCest /** * Tests Phalcon\Assets\Manager :: outputInlineCss() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsManagerOutputInlineCss(UnitTester $I) diff --git a/tests/unit/Assets/Manager/OutputInlineJsCest.php b/tests/unit/Assets/Manager/OutputInlineJsCest.php index 0f88dfd5a60..7b5142fefe3 100644 --- a/tests/unit/Assets/Manager/OutputInlineJsCest.php +++ b/tests/unit/Assets/Manager/OutputInlineJsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class OutputInlineJsCest /** * Tests Phalcon\Assets\Manager :: outputInlineJs() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsManagerOutputInlineJs(UnitTester $I) diff --git a/tests/unit/Assets/Manager/OutputJsCest.php b/tests/unit/Assets/Manager/OutputJsCest.php index 52b860b9175..e50b7e9e29f 100644 --- a/tests/unit/Assets/Manager/OutputJsCest.php +++ b/tests/unit/Assets/Manager/OutputJsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -37,7 +37,7 @@ public function _after(UnitTester $I) /** * Tests Phalcon\Assets\Manager :: outputJs() - implicit * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-13 */ public function assetsManagerOutputJsImplicit(UnitTester $I) @@ -68,7 +68,7 @@ public function assetsManagerOutputJsImplicit(UnitTester $I) /** * Tests Phalcon\Assets\Manager :: outputJs() - not implicit * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-13 */ public function assetsManagerOutputJsNotImplicit(UnitTester $I) diff --git a/tests/unit/Assets/Manager/SetAutoVersionCest.php b/tests/unit/Assets/Manager/SetAutoVersionCest.php index 68b9f921a4d..8cf2362f2af 100644 --- a/tests/unit/Assets/Manager/SetAutoVersionCest.php +++ b/tests/unit/Assets/Manager/SetAutoVersionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Assets/Manager/SetCest.php b/tests/unit/Assets/Manager/SetCest.php index 29c545d72c5..1e959cf6a80 100644 --- a/tests/unit/Assets/Manager/SetCest.php +++ b/tests/unit/Assets/Manager/SetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetCest /** * Tests Phalcon\Assets\Manager :: set() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsManagerSet(UnitTester $I) diff --git a/tests/unit/Assets/Manager/SetOptionsCest.php b/tests/unit/Assets/Manager/SetOptionsCest.php index 2e1e79021a9..44aa9eb09f9 100644 --- a/tests/unit/Assets/Manager/SetOptionsCest.php +++ b/tests/unit/Assets/Manager/SetOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetOptionsCest /** * Tests Phalcon\Assets\Manager :: setOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsManagerSetOptions(UnitTester $I) diff --git a/tests/unit/Assets/Manager/UseImplicitOutputCest.php b/tests/unit/Assets/Manager/UseImplicitOutputCest.php index abe7aebd89f..2bc1516be51 100644 --- a/tests/unit/Assets/Manager/UseImplicitOutputCest.php +++ b/tests/unit/Assets/Manager/UseImplicitOutputCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class UseImplicitOutputCest /** * Tests Phalcon\Assets\Manager :: useImplicitOutput() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function assetsManagerUseImplicitOutput(UnitTester $I) diff --git a/tests/unit/Assets/ManagerCest.php b/tests/unit/Assets/ManagerCest.php index f80990ff277..1fe6a0793d2 100644 --- a/tests/unit/Assets/ManagerCest.php +++ b/tests/unit/Assets/ManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -48,7 +48,7 @@ public function _after(UnitTester $I) /** * collection tests * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-13 */ public function testAssetsManagerOutputCssWithoutImplicitOutputFromCollection(UnitTester $I) @@ -78,7 +78,7 @@ public function testAssetsManagerOutputCssWithoutImplicitOutputFromCollection(Un /** * collection tests * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-13 */ public function testAssetsManagerOutputJsWithoutImplicitOutputFromCollectionRemote(UnitTester $I) @@ -158,7 +158,7 @@ public function testAssetsManagerOutputJsWithMixedAssetCollection(UnitTester $I) * Tests setting local target * * @issue https://github.com/phalcon/cphalcon/issues/1532 - * @author Phalcon Team + * @author Phalcon Team * @author Dreamszhu * @since 2013-10-25 */ @@ -178,12 +178,12 @@ public function testTargetLocal(UnitTester $I) ->addFilter(new Jsmin()) ->setTargetPath(outputDir("tests/assets/{$file}")) ->setTargetLocal(false) - ->setPrefix('//phalconphp.com/') + ->setPrefix('//phalcon.io/') ->setTargetUri('js/jquery.js') ; $I->assertEquals( - '' . PHP_EOL, + '' . PHP_EOL, $assets->outputJs('js') ); @@ -199,7 +199,7 @@ public function testTargetLocal(UnitTester $I) /** * Tests basic output * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-24 */ public function testBasicOutput(UnitTester $I) @@ -229,7 +229,7 @@ public function testBasicOutput(UnitTester $I) /** * Tests output with enabled join * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-24 */ public function testOutputWithEnabledJoin(UnitTester $I) @@ -260,7 +260,7 @@ public function testOutputWithEnabledJoin(UnitTester $I) /** * Tests output with disabled join * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-24 */ public function testOutputWithDisabledJoin(UnitTester $I) @@ -291,7 +291,7 @@ public function testOutputWithDisabledJoin(UnitTester $I) /** * Tests output with disabled join * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-24 */ public function testOutputWithJoinAndFilter(UnitTester $I) diff --git a/tests/unit/Assets/ManagerTest.php_ b/tests/unit/Assets/ManagerTest.php_ index 9ebbfc2867b..9527eb14325 100644 --- a/tests/unit/Assets/ManagerTest.php_ +++ b/tests/unit/Assets/ManagerTest.php_ @@ -15,16 +15,16 @@ use Phalcon\Assets\Filters\Jsmin; * Tests the \Phalcon\Assets\Manager component * * @copyright (c) 2011-2017 Phalcon Team - * @link https://phalconphp.com - * @author Andres Gutierrez - * @author Nikolaos Dimopoulos + * @link https://phalcon.io + * @author Andres Gutierrez + * @author Nikolaos Dimopoulos * @package Phalcon\Test\Unit\Assets * * The contents of this file are subject to the New BSD License that is * bundled with this package in the file 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class ManagerTest extends UnitTest @@ -79,7 +79,7 @@ class ManagerTest extends UnitTest /** * collection tests * - * @author Nikolaos Dimopoulos + * @author Nikolaos Dimopoulos * @since 2014-10-13 */ public function testAssetsManagerOutputCssWithoutImplicitOutputFromCollection() @@ -111,7 +111,7 @@ class ManagerTest extends UnitTest /** * collection tests * - * @author Nikolaos Dimopoulos + * @author Nikolaos Dimopoulos * @since 2014-10-13 */ public function testAssetsManagerOutputJsWithoutImplicitOutputFromCollectionRemote() @@ -197,7 +197,7 @@ class ManagerTest extends UnitTest * Tests setting local target * * @issue https://github.com/phalcon/cphalcon/issues/1532 - * @author Serghei Iakovlev + * @author Serghei Iakovlev * @author Dreamszhu * @since 2013-10-25 */ @@ -220,10 +220,10 @@ class ManagerTest extends UnitTest ->addFilter(new Jsmin()) ->setTargetPath(PATH_OUTPUT . "tests/assets/{$file}") ->setTargetLocal(false) - ->setPrefix('//phalconphp.com/') + ->setPrefix('//phalcon.io/') ->setTargetUri('js/jquery.js'); - expect($assets->outputJs('js'))->equals('' . PHP_EOL); + expect($assets->outputJs('js'))->equals('' . PHP_EOL); $I->seeFileFound( PATH_OUTPUT . "tests/assets/{$file}" @@ -239,7 +239,7 @@ class ManagerTest extends UnitTest /** * Tests basic output * - * @author Serghei Iakovlev + * @author Serghei Iakovlev * @since 2016-01-24 */ public function testBasicOutput() @@ -270,7 +270,7 @@ class ManagerTest extends UnitTest /** * Tests output with enabled join * - * @author Serghei Iakovlev + * @author Serghei Iakovlev * @since 2016-01-24 */ public function testOutputWithEnabledJoin() @@ -302,7 +302,7 @@ class ManagerTest extends UnitTest /** * Tests output with disabled join * - * @author Serghei Iakovlev + * @author Serghei Iakovlev * @since 2016-01-24 */ public function testOutputWithDisabledJoin() diff --git a/tests/unit/Cache/Adapter/Apcu/ClearCest.php b/tests/unit/Cache/Adapter/Apcu/ClearCest.php index e5ad87ccc52..6dee7f0b88e 100644 --- a/tests/unit/Cache/Adapter/Apcu/ClearCest.php +++ b/tests/unit/Cache/Adapter/Apcu/ClearCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class ClearCest /** * Tests Phalcon\Cache\Adapter\Apcu :: clear() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterApcuClear(UnitTester $I) @@ -67,7 +67,7 @@ public function cacheAdapterApcuClear(UnitTester $I) /** * Tests Phalcon\Cache\Adapter\Apcu :: clear() - twice * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterApcuClearTwice(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Apcu/ConstructCest.php b/tests/unit/Cache/Adapter/Apcu/ConstructCest.php index 28f0fc04880..20658703353 100644 --- a/tests/unit/Cache/Adapter/Apcu/ConstructCest.php +++ b/tests/unit/Cache/Adapter/Apcu/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class ConstructCest /** * Tests Phalcon\Cache\Adapter\Apcu :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-09 */ public function cacheAdapterApcuConstruct(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Apcu/DecrementCest.php b/tests/unit/Cache/Adapter/Apcu/DecrementCest.php index ae9ef9c4f3a..353e43db2f3 100644 --- a/tests/unit/Cache/Adapter/Apcu/DecrementCest.php +++ b/tests/unit/Cache/Adapter/Apcu/DecrementCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -28,7 +28,7 @@ class DecrementCest * @throws Exception * @since 2019-03-31 * - * @author Phalcon Team + * @author Phalcon Team */ public function cacheAdapterApcuDecrement(UnitTester $I) { diff --git a/tests/unit/Cache/Adapter/Apcu/DeleteCest.php b/tests/unit/Cache/Adapter/Apcu/DeleteCest.php index a55173a951a..4551f6eff6a 100644 --- a/tests/unit/Cache/Adapter/Apcu/DeleteCest.php +++ b/tests/unit/Cache/Adapter/Apcu/DeleteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class DeleteCest /** * Tests Phalcon\Cache\Adapter\Apcu :: delete() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterApcuDelete(UnitTester $I) @@ -53,7 +53,7 @@ public function cacheAdapterApcuDelete(UnitTester $I) /** * Tests Phalcon\Cache\Adapter\Apcu :: delete() - twice * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterApcuDeleteTwice(UnitTester $I) @@ -82,7 +82,7 @@ public function cacheAdapterApcuDeleteTwice(UnitTester $I) /** * Tests Phalcon\Cache\Adapter\Apcu :: delete() - unknown * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterApcuDeleteUnknown(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Apcu/GetAdapterCest.php b/tests/unit/Cache/Adapter/Apcu/GetAdapterCest.php index 4f519c36a44..15f176072b0 100644 --- a/tests/unit/Cache/Adapter/Apcu/GetAdapterCest.php +++ b/tests/unit/Cache/Adapter/Apcu/GetAdapterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class GetAdapterCest /** * Tests Phalcon\Cache\Adapter\Apcu :: getAdapter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-14 */ public function cacheAdapterApcuGetAdapter(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Apcu/GetDefaultSerializerCest.php b/tests/unit/Cache/Adapter/Apcu/GetDefaultSerializerCest.php index 8afbed6211d..e33270f31b9 100644 --- a/tests/unit/Cache/Adapter/Apcu/GetDefaultSerializerCest.php +++ b/tests/unit/Cache/Adapter/Apcu/GetDefaultSerializerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetDefaultSerializerCest /** * Unit Tests Phalcon\Cache\Adapter\Apcu :: getDefaultSerializer() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function cacheAdapterApcuGetDefaultSerializer(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Apcu/GetKeysCest.php b/tests/unit/Cache/Adapter/Apcu/GetKeysCest.php index 184c4fa7fc5..aa180311078 100644 --- a/tests/unit/Cache/Adapter/Apcu/GetKeysCest.php +++ b/tests/unit/Cache/Adapter/Apcu/GetKeysCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class GetKeysCest /** * Tests Phalcon\Cache\Adapter\Apcu :: getKeys() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-13 */ public function cacheAdapterApcuGetKeys(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Apcu/GetPrefixCest.php b/tests/unit/Cache/Adapter/Apcu/GetPrefixCest.php index 9bba5179046..054a29d838f 100644 --- a/tests/unit/Cache/Adapter/Apcu/GetPrefixCest.php +++ b/tests/unit/Cache/Adapter/Apcu/GetPrefixCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class GetPrefixCest /** * Tests Phalcon\Cache\Adapter\Apcu :: getPrefix() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterApcuGetSetPrefix(UnitTester $I) @@ -49,7 +49,7 @@ public function cacheAdapterApcuGetSetPrefix(UnitTester $I) /** * Tests Phalcon\Cache\Adapter\Apcu :: getPrefix() - default * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterApcuGetSetPrefixDefault(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Apcu/GetSetCest.php b/tests/unit/Cache/Adapter/Apcu/GetSetCest.php index 7993d80b4a3..a5a576f0d8a 100644 --- a/tests/unit/Cache/Adapter/Apcu/GetSetCest.php +++ b/tests/unit/Cache/Adapter/Apcu/GetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -28,7 +28,7 @@ class GetSetCest * * @dataProvider getExamples * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterApcuGetSet(UnitTester $I, Example $example) diff --git a/tests/unit/Cache/Adapter/Apcu/HasCest.php b/tests/unit/Cache/Adapter/Apcu/HasCest.php index b17ef26f7c2..4bce6e8bbaa 100644 --- a/tests/unit/Cache/Adapter/Apcu/HasCest.php +++ b/tests/unit/Cache/Adapter/Apcu/HasCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class HasCest /** * Tests Phalcon\Cache\Adapter\Apcu :: get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterApcuGetSetHas(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Apcu/IncrementCest.php b/tests/unit/Cache/Adapter/Apcu/IncrementCest.php index 3d3375f0978..244c62df275 100644 --- a/tests/unit/Cache/Adapter/Apcu/IncrementCest.php +++ b/tests/unit/Cache/Adapter/Apcu/IncrementCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class IncrementCest /** * Tests Phalcon\Cache\Adapter\Apcu :: increment() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterApcuIncrement(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Apcu/SetDefaultSerializerCest.php b/tests/unit/Cache/Adapter/Apcu/SetDefaultSerializerCest.php index 2998e42f478..10b43711122 100644 --- a/tests/unit/Cache/Adapter/Apcu/SetDefaultSerializerCest.php +++ b/tests/unit/Cache/Adapter/Apcu/SetDefaultSerializerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetDefaultSerializerCest /** * Unit Tests Phalcon\Cache\Adapter\Apcu :: setDefaultSerializer() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function cacheAdapterApcuSetDefaultSerializer(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Libmemcached/ClearCest.php b/tests/unit/Cache/Adapter/Libmemcached/ClearCest.php index 99bc64e2faa..9b58f5b5dd0 100644 --- a/tests/unit/Cache/Adapter/Libmemcached/ClearCest.php +++ b/tests/unit/Cache/Adapter/Libmemcached/ClearCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class ClearCest /** * Tests Phalcon\Cache\Adapter\Libmemcached :: clear() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterLibmemcachedClear(UnitTester $I) @@ -69,7 +69,7 @@ public function cacheAdapterLibmemcachedClear(UnitTester $I) /** * Tests Phalcon\Cache\Adapter\Libmemcached :: clear() - twice * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterLibmemcachedClearTwice(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Libmemcached/ConstructCest.php b/tests/unit/Cache/Adapter/Libmemcached/ConstructCest.php index 51a5663a304..950d5d47d48 100644 --- a/tests/unit/Cache/Adapter/Libmemcached/ConstructCest.php +++ b/tests/unit/Cache/Adapter/Libmemcached/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -28,7 +28,7 @@ class ConstructCest /** * Tests Phalcon\Cache\Adapter\Libmemcached :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-09 */ public function cacheAdapterLibmemcachedConstruct(UnitTester $I) @@ -57,7 +57,7 @@ public function cacheAdapterLibmemcachedConstruct(UnitTester $I) * Tests Phalcon\Cache\Adapter\Libmemcached :: __construct() - empty * options * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-09 */ public function cacheAdapterLibmemcachedConstructEmptyOptions(UnitTester $I) @@ -90,7 +90,7 @@ public function cacheAdapterLibmemcachedConstructEmptyOptions(UnitTester $I) * @throws Exception * @since 2019-04-09 * - * @author Phalcon Team + * @author Phalcon Team */ public function cacheAdapterLibmemcachedConstructGetTtl(UnitTester $I) { diff --git a/tests/unit/Cache/Adapter/Libmemcached/DecrementCest.php b/tests/unit/Cache/Adapter/Libmemcached/DecrementCest.php index 90b74d97280..626e5697d00 100644 --- a/tests/unit/Cache/Adapter/Libmemcached/DecrementCest.php +++ b/tests/unit/Cache/Adapter/Libmemcached/DecrementCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -29,7 +29,7 @@ class DecrementCest * @throws Exception * @since 2019-03-31 * - * @author Phalcon Team + * @author Phalcon Team */ public function cacheAdapterLibmemcachedDecrement(UnitTester $I) { diff --git a/tests/unit/Cache/Adapter/Libmemcached/DeleteCest.php b/tests/unit/Cache/Adapter/Libmemcached/DeleteCest.php index f6ee60b8bc7..819117ef5d1 100644 --- a/tests/unit/Cache/Adapter/Libmemcached/DeleteCest.php +++ b/tests/unit/Cache/Adapter/Libmemcached/DeleteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class DeleteCest /** * Tests Phalcon\Cache\Adapter\Libmemcached :: delete() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterLibmemcachedDelete(UnitTester $I) @@ -58,7 +58,7 @@ public function cacheAdapterLibmemcachedDelete(UnitTester $I) /** * Tests Phalcon\Cache\Adapter\Libmemcached :: delete() - twice * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterLibmemcachedDeleteTwice(UnitTester $I) @@ -91,7 +91,7 @@ public function cacheAdapterLibmemcachedDeleteTwice(UnitTester $I) /** * Tests Phalcon\Cache\Adapter\Libmemcached :: delete() - unknown * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterLibmemcachedDeleteUnknown(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Libmemcached/GetAdapterCest.php b/tests/unit/Cache/Adapter/Libmemcached/GetAdapterCest.php index 29f8c736d51..aedfad7e744 100644 --- a/tests/unit/Cache/Adapter/Libmemcached/GetAdapterCest.php +++ b/tests/unit/Cache/Adapter/Libmemcached/GetAdapterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class GetAdapterCest /** * Tests Phalcon\Cache\Adapter\Libmemcached :: getAdapter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-14 */ public function cacheAdapterLibmemcachedGetAdapter(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Libmemcached/GetDefaultSerializerCest.php b/tests/unit/Cache/Adapter/Libmemcached/GetDefaultSerializerCest.php index b817f084c21..718c17dcd1f 100644 --- a/tests/unit/Cache/Adapter/Libmemcached/GetDefaultSerializerCest.php +++ b/tests/unit/Cache/Adapter/Libmemcached/GetDefaultSerializerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetDefaultSerializerCest /** * Unit Tests Phalcon\Cache\Adapter\Libmemcached :: getDefaultSerializer() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function cacheAdapterLibmemcachedGetDefaultSerializer(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Libmemcached/GetKeysCest.php b/tests/unit/Cache/Adapter/Libmemcached/GetKeysCest.php index 707bc867497..2d9a2803ec2 100644 --- a/tests/unit/Cache/Adapter/Libmemcached/GetKeysCest.php +++ b/tests/unit/Cache/Adapter/Libmemcached/GetKeysCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class GetKeysCest /** * Tests Phalcon\Cache\Adapter\Libmemcached :: getKeys() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-13 */ public function cacheAdapterLibmemcachedGetKeys(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Libmemcached/GetPrefixCest.php b/tests/unit/Cache/Adapter/Libmemcached/GetPrefixCest.php index ae296144c21..bbaee02ede5 100644 --- a/tests/unit/Cache/Adapter/Libmemcached/GetPrefixCest.php +++ b/tests/unit/Cache/Adapter/Libmemcached/GetPrefixCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class GetPrefixCest /** * Tests Phalcon\Cache\Adapter\Libmemcached :: getPrefix() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterLibmemcachedGetSetPrefix(UnitTester $I) @@ -53,7 +53,7 @@ public function cacheAdapterLibmemcachedGetSetPrefix(UnitTester $I) /** * Tests Phalcon\Cache\Adapter\Libmemcached :: getPrefix() - default * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterLibmemcachedGetSetPrefixDefault(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Libmemcached/GetSetCest.php b/tests/unit/Cache/Adapter/Libmemcached/GetSetCest.php index 2182ac2ce0e..2f6f4444b0d 100644 --- a/tests/unit/Cache/Adapter/Libmemcached/GetSetCest.php +++ b/tests/unit/Cache/Adapter/Libmemcached/GetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -33,7 +33,7 @@ class GetSetCest * @throws Exception * @since 2019-03-31 * - * @author Phalcon Team + * @author Phalcon Team */ public function cacheAdapterLibmemcachedGetSet(UnitTester $I, Example $example) { @@ -61,7 +61,7 @@ public function cacheAdapterLibmemcachedGetSet(UnitTester $I, Example $example) * @throws Exception * @since 2019-04-29 * - * @author Phalcon Team + * @author Phalcon Team */ public function cacheAdapterLibmemcachedGetSetCustomSerializer(UnitTester $I) { diff --git a/tests/unit/Cache/Adapter/Libmemcached/HasCest.php b/tests/unit/Cache/Adapter/Libmemcached/HasCest.php index bfaf3561900..81bb7b50904 100644 --- a/tests/unit/Cache/Adapter/Libmemcached/HasCest.php +++ b/tests/unit/Cache/Adapter/Libmemcached/HasCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class HasCest /** * Tests Phalcon\Cache\Adapter\Libmemcached :: get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterLibmemcachedGetSetHas(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Libmemcached/IncrementCest.php b/tests/unit/Cache/Adapter/Libmemcached/IncrementCest.php index 92da28cbcb6..4b0b6d5dadf 100644 --- a/tests/unit/Cache/Adapter/Libmemcached/IncrementCest.php +++ b/tests/unit/Cache/Adapter/Libmemcached/IncrementCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class IncrementCest /** * Tests Phalcon\Cache\Adapter\Libmemcached :: increment() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterLibmemcachedIncrement(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Libmemcached/SetDefaultSerializerCest.php b/tests/unit/Cache/Adapter/Libmemcached/SetDefaultSerializerCest.php index c43dc6b8447..c6a8e5c8c0a 100644 --- a/tests/unit/Cache/Adapter/Libmemcached/SetDefaultSerializerCest.php +++ b/tests/unit/Cache/Adapter/Libmemcached/SetDefaultSerializerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetDefaultSerializerCest /** * Unit Tests Phalcon\Cache\Adapter\Libmemcached :: setDefaultSerializer() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function cacheAdapterLibmemcachedSetDefaultSerializer(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Memory/ClearCest.php b/tests/unit/Cache/Adapter/Memory/ClearCest.php index ffc5b8c775e..65d333e7a75 100644 --- a/tests/unit/Cache/Adapter/Memory/ClearCest.php +++ b/tests/unit/Cache/Adapter/Memory/ClearCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ClearCest /** * Tests Phalcon\Cache\Adapter\Memory :: clear() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterMemoryClear(UnitTester $I) @@ -61,7 +61,7 @@ public function cacheAdapterMemoryClear(UnitTester $I) /** * Tests Phalcon\Cache\Adapter\Memory :: clear() - twice * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterMemoryClearTwice(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Memory/ConstructCest.php b/tests/unit/Cache/Adapter/Memory/ConstructCest.php index 8f7d74ead5d..ad087b1fa4d 100644 --- a/tests/unit/Cache/Adapter/Memory/ConstructCest.php +++ b/tests/unit/Cache/Adapter/Memory/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Cache\Adapter\Memory :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-09 */ public function cacheAdapterMemoryConstruct(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Memory/DecrementCest.php b/tests/unit/Cache/Adapter/Memory/DecrementCest.php index 87b6149b9ea..6be9a16c708 100644 --- a/tests/unit/Cache/Adapter/Memory/DecrementCest.php +++ b/tests/unit/Cache/Adapter/Memory/DecrementCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class DecrementCest /** * Tests Phalcon\Cache\Adapter\Memory :: decrement() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterMemoryDecrement(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Memory/DeleteCest.php b/tests/unit/Cache/Adapter/Memory/DeleteCest.php index a5ae4598bb7..5fd277f9f7c 100644 --- a/tests/unit/Cache/Adapter/Memory/DeleteCest.php +++ b/tests/unit/Cache/Adapter/Memory/DeleteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class DeleteCest /** * Tests Phalcon\Cache\Adapter\Memory :: delete() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterMemoryDelete(UnitTester $I) @@ -51,7 +51,7 @@ public function cacheAdapterMemoryDelete(UnitTester $I) /** * Tests Phalcon\Cache\Adapter\Memory :: delete() - twice * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterMemoryDeleteTwice(UnitTester $I) @@ -81,7 +81,7 @@ public function cacheAdapterMemoryDeleteTwice(UnitTester $I) /** * Tests Phalcon\Cache\Adapter\Memory :: delete() - unknown * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterMemoryDeleteUnknown(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Memory/GetAdapterCest.php b/tests/unit/Cache/Adapter/Memory/GetAdapterCest.php index f55aede1f93..2743c62c083 100644 --- a/tests/unit/Cache/Adapter/Memory/GetAdapterCest.php +++ b/tests/unit/Cache/Adapter/Memory/GetAdapterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetAdapterCest /** * Tests Phalcon\Cache\Adapter\Memory :: getAdapter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-14 */ public function cacheAdapterMemoryGetAdapter(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Memory/GetDefaultSerializerCest.php b/tests/unit/Cache/Adapter/Memory/GetDefaultSerializerCest.php index 581106c0432..413f16f6c23 100644 --- a/tests/unit/Cache/Adapter/Memory/GetDefaultSerializerCest.php +++ b/tests/unit/Cache/Adapter/Memory/GetDefaultSerializerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetDefaultSerializerCest /** * Unit Tests Phalcon\Cache\Adapter\Memory :: getDefaultSerializer() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function cacheAdapterMemoryGetDefaultSerializer(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Memory/GetKeysCest.php b/tests/unit/Cache/Adapter/Memory/GetKeysCest.php index 5eaec01bafc..c5b78165300 100644 --- a/tests/unit/Cache/Adapter/Memory/GetKeysCest.php +++ b/tests/unit/Cache/Adapter/Memory/GetKeysCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetKeysCest /** * Tests Phalcon\Cache\Adapter\Memory :: getKeys() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-13 */ public function cacheAdapterMemoryGetKeys(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Memory/GetPrefixCest.php b/tests/unit/Cache/Adapter/Memory/GetPrefixCest.php index 0a452caf6ca..1390bfe1b38 100644 --- a/tests/unit/Cache/Adapter/Memory/GetPrefixCest.php +++ b/tests/unit/Cache/Adapter/Memory/GetPrefixCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetPrefixCest /** * Tests Phalcon\Cache\Adapter\Memory :: getPrefix() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterMemoryGetSetPrefix(UnitTester $I) @@ -46,7 +46,7 @@ public function cacheAdapterMemoryGetSetPrefix(UnitTester $I) /** * Tests Phalcon\Cache\Adapter\Memory :: getPrefix() - default * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterMemoryGetSetPrefixDefault(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Memory/GetSetCest.php b/tests/unit/Cache/Adapter/Memory/GetSetCest.php index d0535354ff1..2b13eec66f0 100644 --- a/tests/unit/Cache/Adapter/Memory/GetSetCest.php +++ b/tests/unit/Cache/Adapter/Memory/GetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class GetSetCest * * @dataProvider getExamples * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterMemoryGetSet(UnitTester $I, Example $example) diff --git a/tests/unit/Cache/Adapter/Memory/HasCest.php b/tests/unit/Cache/Adapter/Memory/HasCest.php index 1bef2ee86ca..07752f7ffd6 100644 --- a/tests/unit/Cache/Adapter/Memory/HasCest.php +++ b/tests/unit/Cache/Adapter/Memory/HasCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class HasCest /** * Tests Phalcon\Cache\Adapter\Memory :: get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterMemoryGetSetHas(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Memory/IncrementCest.php b/tests/unit/Cache/Adapter/Memory/IncrementCest.php index a37eafd7525..063f17823e1 100644 --- a/tests/unit/Cache/Adapter/Memory/IncrementCest.php +++ b/tests/unit/Cache/Adapter/Memory/IncrementCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class IncrementCest /** * Tests Phalcon\Cache\Adapter\Memory :: increment() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterMemoryIncrement(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Memory/SetDefaultSerializerCest.php b/tests/unit/Cache/Adapter/Memory/SetDefaultSerializerCest.php index 5f4333655ec..4249d17c3e8 100644 --- a/tests/unit/Cache/Adapter/Memory/SetDefaultSerializerCest.php +++ b/tests/unit/Cache/Adapter/Memory/SetDefaultSerializerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetDefaultSerializerCest /** * Unit Tests Phalcon\Cache\Adapter\Memory :: setDefaultSerializer() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function cacheAdapterMemorySetDefaultSerializer(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Redis/ClearCest.php b/tests/unit/Cache/Adapter/Redis/ClearCest.php index 1519683f964..0c1f3c32d4f 100644 --- a/tests/unit/Cache/Adapter/Redis/ClearCest.php +++ b/tests/unit/Cache/Adapter/Redis/ClearCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class ClearCest /** * Tests Phalcon\Cache\Adapter\Redis :: clear() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterRedisClear(UnitTester $I) @@ -58,7 +58,7 @@ public function cacheAdapterRedisClear(UnitTester $I) /** * Tests Phalcon\Cache\Adapter\Redis :: clear() - twice * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterRedisClearTwice(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Redis/ConstructCest.php b/tests/unit/Cache/Adapter/Redis/ConstructCest.php index 8b21ecee300..b0c9058bb63 100644 --- a/tests/unit/Cache/Adapter/Redis/ConstructCest.php +++ b/tests/unit/Cache/Adapter/Redis/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class ConstructCest /** * Tests Phalcon\Cache\Adapter\Redis :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-09 */ public function cacheAdapterRedisConstruct(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Redis/DecrementCest.php b/tests/unit/Cache/Adapter/Redis/DecrementCest.php index 4e1bf4a4f8e..985aa71c345 100644 --- a/tests/unit/Cache/Adapter/Redis/DecrementCest.php +++ b/tests/unit/Cache/Adapter/Redis/DecrementCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -29,7 +29,7 @@ class DecrementCest * @throws Exception * @since 2019-03-31 * - * @author Phalcon Team + * @author Phalcon Team */ public function cacheAdapterRedisDecrement(UnitTester $I) { diff --git a/tests/unit/Cache/Adapter/Redis/DeleteCest.php b/tests/unit/Cache/Adapter/Redis/DeleteCest.php index 2b517c960d0..eb2fcb88384 100644 --- a/tests/unit/Cache/Adapter/Redis/DeleteCest.php +++ b/tests/unit/Cache/Adapter/Redis/DeleteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class DeleteCest /** * Tests Phalcon\Cache\Adapter\Redis :: delete() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterRedisDelete(UnitTester $I) @@ -50,7 +50,7 @@ public function cacheAdapterRedisDelete(UnitTester $I) /** * Tests Phalcon\Cache\Adapter\Redis :: delete() - twice * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterRedisDeleteTwice(UnitTester $I) @@ -75,7 +75,7 @@ public function cacheAdapterRedisDeleteTwice(UnitTester $I) /** * Tests Phalcon\Cache\Adapter\Redis :: delete() - unknown * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterRedisDeleteUnknown(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Redis/GetAdapterCest.php b/tests/unit/Cache/Adapter/Redis/GetAdapterCest.php index 6bbce6d8327..5bffa38544f 100644 --- a/tests/unit/Cache/Adapter/Redis/GetAdapterCest.php +++ b/tests/unit/Cache/Adapter/Redis/GetAdapterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class GetAdapterCest /** * Tests Phalcon\Cache\Adapter\Redis :: getAdapter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-14 */ public function cacheAdapterRedisGetAdapter(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Redis/GetDefaultSerializerCest.php b/tests/unit/Cache/Adapter/Redis/GetDefaultSerializerCest.php index 65266515b14..ce7ed12a3d6 100644 --- a/tests/unit/Cache/Adapter/Redis/GetDefaultSerializerCest.php +++ b/tests/unit/Cache/Adapter/Redis/GetDefaultSerializerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetDefaultSerializerCest /** * Unit Tests Phalcon\Cache\Adapter\Redis :: getDefaultSerializer() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function cacheAdapterRedisGetDefaultSerializer(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Redis/GetKeysCest.php b/tests/unit/Cache/Adapter/Redis/GetKeysCest.php index cce764a19e7..08d23eb38f4 100644 --- a/tests/unit/Cache/Adapter/Redis/GetKeysCest.php +++ b/tests/unit/Cache/Adapter/Redis/GetKeysCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class GetKeysCest /** * Tests Phalcon\Cache\Adapter\Redis :: getKeys() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-13 */ public function cacheAdapterRedisGetKeys(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Redis/GetPrefixCest.php b/tests/unit/Cache/Adapter/Redis/GetPrefixCest.php index 78880e35d2f..d141509555a 100644 --- a/tests/unit/Cache/Adapter/Redis/GetPrefixCest.php +++ b/tests/unit/Cache/Adapter/Redis/GetPrefixCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class GetPrefixCest /** * Tests Phalcon\Cache\Adapter\Redis :: getPrefix() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterRedisGetSetPrefix(UnitTester $I) @@ -51,7 +51,7 @@ public function cacheAdapterRedisGetSetPrefix(UnitTester $I) /** * Tests Phalcon\Cache\Adapter\Redis :: getPrefix() - default * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterRedisGetSetPrefixDefault(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Redis/GetSetCest.php b/tests/unit/Cache/Adapter/Redis/GetSetCest.php index ed4bf75912f..1a73a998712 100644 --- a/tests/unit/Cache/Adapter/Redis/GetSetCest.php +++ b/tests/unit/Cache/Adapter/Redis/GetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -35,7 +35,7 @@ class GetSetCest * @throws Exception * @since 2019-03-31 * - * @author Phalcon Team + * @author Phalcon Team */ public function cacheAdapterRedisGetSet(UnitTester $I, Example $example) { @@ -58,7 +58,7 @@ public function cacheAdapterRedisGetSet(UnitTester $I, Example $example) * Tests Phalcon\Cache\Adapter\Redis :: get() - persistent * * @throws Exception - * @author Phalcon Team + * @author Phalcon Team * * @since 2019-03-31 */ @@ -95,7 +95,7 @@ public function cacheAdapterRedisGetSetPersistent(UnitTester $I) * Tests Phalcon\Cache\Adapter\Redis :: get() - wrong index * * @since 2019-03-31 - * @author Phalcon Team + * @author Phalcon Team */ public function cacheAdapterRedisGetSetWrongIndex(UnitTester $I) { @@ -124,7 +124,7 @@ function () { * Tests Phalcon\Cache\Adapter\Redis :: get() - failed auth * * @since 2019-03-31 - * @author Phalcon Team + * @author Phalcon Team */ public function cacheAdapterRedisGetSetFailedAuth(UnitTester $I) { @@ -155,7 +155,7 @@ function () { * @throws Exception * @since 2019-04-29 * - * @author Phalcon Team + * @author Phalcon Team */ public function cacheAdapterRedisGetSetCustomSerializer(UnitTester $I) { diff --git a/tests/unit/Cache/Adapter/Redis/HasCest.php b/tests/unit/Cache/Adapter/Redis/HasCest.php index c368666e2e7..66b1753367a 100644 --- a/tests/unit/Cache/Adapter/Redis/HasCest.php +++ b/tests/unit/Cache/Adapter/Redis/HasCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class HasCest /** * Tests Phalcon\Cache\Adapter\Redis :: get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterRedisGetSetHas(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Redis/IncrementCest.php b/tests/unit/Cache/Adapter/Redis/IncrementCest.php index 56c414bab8f..a23368e2bb2 100644 --- a/tests/unit/Cache/Adapter/Redis/IncrementCest.php +++ b/tests/unit/Cache/Adapter/Redis/IncrementCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class IncrementCest /** * Tests Phalcon\Cache\Adapter\Redis :: increment() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterRedisIncrement(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Redis/SetDefaultSerializerCest.php b/tests/unit/Cache/Adapter/Redis/SetDefaultSerializerCest.php index 72a26c31253..e20fc2421fb 100644 --- a/tests/unit/Cache/Adapter/Redis/SetDefaultSerializerCest.php +++ b/tests/unit/Cache/Adapter/Redis/SetDefaultSerializerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetDefaultSerializerCest /** * Unit Tests Phalcon\Cache\Adapter\Redis :: setDefaultSerializer() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function cacheAdapterRedisSetDefaultSerializer(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Stream/ClearCest.php b/tests/unit/Cache/Adapter/Stream/ClearCest.php index 27137c93c0f..95a41717afa 100644 --- a/tests/unit/Cache/Adapter/Stream/ClearCest.php +++ b/tests/unit/Cache/Adapter/Stream/ClearCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class ClearCest /** * Tests Phalcon\Cache\Adapter\Stream :: clear() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterStreamClear(UnitTester $I) @@ -55,7 +55,7 @@ public function cacheAdapterStreamClear(UnitTester $I) /** * Tests Phalcon\Cache\Adapter\Stream :: clear() - twice * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function cacheAdapterStreamClearTwice(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Stream/ConstructCest.php b/tests/unit/Cache/Adapter/Stream/ConstructCest.php index bbe7568ee43..6733ce1dd30 100644 --- a/tests/unit/Cache/Adapter/Stream/ConstructCest.php +++ b/tests/unit/Cache/Adapter/Stream/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class ConstructCest /** * Tests Phalcon\Cache\Adapter\Stream :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-24 */ public function cacheAdapterStreamConstruct(UnitTester $I) @@ -43,7 +43,7 @@ public function cacheAdapterStreamConstruct(UnitTester $I) /** * Tests Phalcon\Cache\Adapter\Stream :: __construct() - exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-24 */ public function cacheAdapterStreamConstructException(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Stream/DecrementCest.php b/tests/unit/Cache/Adapter/Stream/DecrementCest.php index 5d04fd3b45a..45aff5b29ad 100644 --- a/tests/unit/Cache/Adapter/Stream/DecrementCest.php +++ b/tests/unit/Cache/Adapter/Stream/DecrementCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class DecrementCest * @throws Exception * @since 2019-04-24 * - * @author Phalcon Team + * @author Phalcon Team */ public function cacheAdapterStreamDecrement(UnitTester $I) { diff --git a/tests/unit/Cache/Adapter/Stream/DeleteCest.php b/tests/unit/Cache/Adapter/Stream/DeleteCest.php index 91ac3b8b10b..f5b42837956 100644 --- a/tests/unit/Cache/Adapter/Stream/DeleteCest.php +++ b/tests/unit/Cache/Adapter/Stream/DeleteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class DeleteCest /** * Tests Phalcon\Cache\Adapter\Stream :: delete() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-24 */ public function cacheAdapterStreamDelete(UnitTester $I) @@ -46,7 +46,7 @@ public function cacheAdapterStreamDelete(UnitTester $I) /** * Tests Phalcon\Cache\Adapter\Stream :: delete() - twice * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-24 */ public function cacheAdapterStreamDeleteTwice(UnitTester $I) @@ -70,7 +70,7 @@ public function cacheAdapterStreamDeleteTwice(UnitTester $I) /** * Tests Phalcon\Cache\Adapter\Stream :: delete() - unknown * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-24 */ public function cacheAdapterStreamDeleteUnknown(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Stream/GetAdapterCest.php b/tests/unit/Cache/Adapter/Stream/GetAdapterCest.php index 5bb31c45f34..10002085902 100644 --- a/tests/unit/Cache/Adapter/Stream/GetAdapterCest.php +++ b/tests/unit/Cache/Adapter/Stream/GetAdapterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetAdapterCest /** * Tests Phalcon\Cache\Adapter\Stream :: getAdapter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-24 */ public function cacheAdapterStreamGetAdapter(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Stream/GetDefaultSerializerCest.php b/tests/unit/Cache/Adapter/Stream/GetDefaultSerializerCest.php index 9d5f58094f9..7d6d71f3a19 100644 --- a/tests/unit/Cache/Adapter/Stream/GetDefaultSerializerCest.php +++ b/tests/unit/Cache/Adapter/Stream/GetDefaultSerializerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetDefaultSerializerCest /** * Unit Tests Phalcon\Cache\Adapter\Stream :: getDefaultSerializer() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function cacheAdapterStreamGetDefaultSerializer(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Stream/GetKeysCest.php b/tests/unit/Cache/Adapter/Stream/GetKeysCest.php index 2fb54d8b28c..eb41e0976b8 100644 --- a/tests/unit/Cache/Adapter/Stream/GetKeysCest.php +++ b/tests/unit/Cache/Adapter/Stream/GetKeysCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class GetKeysCest /** * Tests Phalcon\Cache\Adapter\Stream :: getKeys() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-24 */ public function cacheAdapterStreamGetKeys(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Stream/GetPrefixCest.php b/tests/unit/Cache/Adapter/Stream/GetPrefixCest.php index 5808133a5b6..565d71708f9 100644 --- a/tests/unit/Cache/Adapter/Stream/GetPrefixCest.php +++ b/tests/unit/Cache/Adapter/Stream/GetPrefixCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetPrefixCest /** * Tests Phalcon\Cache\Adapter\Stream :: getPrefix() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-24 */ public function cacheAdapterStreamGetSetPrefix(UnitTester $I) @@ -46,7 +46,7 @@ public function cacheAdapterStreamGetSetPrefix(UnitTester $I) /** * Tests Phalcon\Cache\Adapter\Stream :: getPrefix() - default * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-24 */ public function cacheAdapterStreamGetSetPrefixDefault(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Stream/GetSetCest.php b/tests/unit/Cache/Adapter/Stream/GetSetCest.php index 4f9debfa24f..c1566c4c49b 100644 --- a/tests/unit/Cache/Adapter/Stream/GetSetCest.php +++ b/tests/unit/Cache/Adapter/Stream/GetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -28,7 +28,7 @@ class GetSetCest * @throws Exception * @since 2019-04-24 * - * @author Phalcon Team + * @author Phalcon Team */ public function cacheAdapterStreamSet(UnitTester $I) { @@ -55,7 +55,7 @@ public function cacheAdapterStreamSet(UnitTester $I) * @throws Exception * @since 2019-04-24 * - * @author Phalcon Team + * @author Phalcon Team */ public function cacheAdapterStreamGet(UnitTester $I) { @@ -83,7 +83,7 @@ public function cacheAdapterStreamGet(UnitTester $I) * @throws Exception * @since 2019-04-24 * - * @author Phalcon Team + * @author Phalcon Team */ public function cacheAdapterStreamGetErrors(UnitTester $I) { diff --git a/tests/unit/Cache/Adapter/Stream/HasCest.php b/tests/unit/Cache/Adapter/Stream/HasCest.php index 985781bd20e..4b7cd93fc29 100644 --- a/tests/unit/Cache/Adapter/Stream/HasCest.php +++ b/tests/unit/Cache/Adapter/Stream/HasCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class HasCest /** * Tests Phalcon\Cache\Adapter\Stream :: has() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-24 */ public function cacheAdapterStreamHas(UnitTester $I) diff --git a/tests/unit/Cache/Adapter/Stream/IncrementCest.php b/tests/unit/Cache/Adapter/Stream/IncrementCest.php index 49c270bd724..27a12c21dd0 100644 --- a/tests/unit/Cache/Adapter/Stream/IncrementCest.php +++ b/tests/unit/Cache/Adapter/Stream/IncrementCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class IncrementCest * @throws Exception * @since 2019-04-24 * - * @author Phalcon Team + * @author Phalcon Team */ public function cacheAdapterStreamIncrement(UnitTester $I) { diff --git a/tests/unit/Cache/Adapter/Stream/SetDefaultSerializerCest.php b/tests/unit/Cache/Adapter/Stream/SetDefaultSerializerCest.php index 1dd7c5ef8c9..0e5f1f8cdcc 100644 --- a/tests/unit/Cache/Adapter/Stream/SetDefaultSerializerCest.php +++ b/tests/unit/Cache/Adapter/Stream/SetDefaultSerializerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetDefaultSerializerCest /** * Unit Tests Phalcon\Cache\Adapter\Stream :: setDefaultSerializer() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function cacheAdapterStreamSetDefaultSerializer(UnitTester $I) diff --git a/tests/unit/Cache/AdapterFactory/NewInstanceCest.php b/tests/unit/Cache/AdapterFactory/NewInstanceCest.php index 79f977465f3..7fc9dfcaf40 100644 --- a/tests/unit/Cache/AdapterFactory/NewInstanceCest.php +++ b/tests/unit/Cache/AdapterFactory/NewInstanceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -36,7 +36,7 @@ class NewInstanceCest * @throws Exception * @since 2019-05-04 * - * @author Phalcon Team + * @author Phalcon Team */ public function cacheAdapterFactoryNewInstance(UnitTester $I, Example $example) { @@ -59,7 +59,7 @@ public function cacheAdapterFactoryNewInstance(UnitTester $I, Example $example) * @throws Exception * @since 2019-05-04 * - * @author Phalcon Team + * @author Phalcon Team */ public function storageSerializerFactoryNewInstanceException(UnitTester $I) { diff --git a/tests/unit/Cache/Cache/ClearCest.php b/tests/unit/Cache/Cache/ClearCest.php index 0df95a574dd..202d4fc7401 100644 --- a/tests/unit/Cache/Cache/ClearCest.php +++ b/tests/unit/Cache/Cache/ClearCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class ClearCest /** * Tests Phalcon\Cache :: clear() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-01 */ public function cacheCacheClear(UnitTester $I) diff --git a/tests/unit/Cache/Cache/ConstructCest.php b/tests/unit/Cache/Cache/ConstructCest.php index db6ef10fc57..e810a5553b5 100644 --- a/tests/unit/Cache/Cache/ConstructCest.php +++ b/tests/unit/Cache/Cache/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class ConstructCest /** * Tests Phalcon\Cache :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-01 */ public function cacheCacheConstruct(UnitTester $I) diff --git a/tests/unit/Cache/Cache/DeleteCest.php b/tests/unit/Cache/Cache/DeleteCest.php index 7d1ef1d5915..86e7e9ffac3 100644 --- a/tests/unit/Cache/Cache/DeleteCest.php +++ b/tests/unit/Cache/Cache/DeleteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class DeleteCest /** * Tests Phalcon\Cache :: delete() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-01 */ public function cacheCacheDelete(UnitTester $I) @@ -70,7 +70,7 @@ public function cacheCacheDelete(UnitTester $I) /** * Tests Phalcon\Cache :: delete() - exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-01 */ public function cacheCacheDeleteException(UnitTester $I) diff --git a/tests/unit/Cache/Cache/DeleteMultipleCest.php b/tests/unit/Cache/Cache/DeleteMultipleCest.php index 28dcec3d62d..dac9c3004c8 100644 --- a/tests/unit/Cache/Cache/DeleteMultipleCest.php +++ b/tests/unit/Cache/Cache/DeleteMultipleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class DeleteMultipleCest /** * Tests Phalcon\Cache :: deleteMultiple() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-01 */ public function cacheCacheDeleteMultiple(UnitTester $I) @@ -86,7 +86,7 @@ public function cacheCacheDeleteMultiple(UnitTester $I) /** * Tests Phalcon\Cache :: deleteMultiple() - exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-01 */ public function cacheCacheDeleteMultipleException(UnitTester $I) diff --git a/tests/unit/Cache/Cache/GetAdapterCest.php b/tests/unit/Cache/Cache/GetAdapterCest.php index 876a0b94930..e333eca6a54 100644 --- a/tests/unit/Cache/Cache/GetAdapterCest.php +++ b/tests/unit/Cache/Cache/GetAdapterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class GetAdapterCest /** * Tests Phalcon\Cache :: getAdapter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-01 */ public function cacheCacheGetAdapter(UnitTester $I) diff --git a/tests/unit/Cache/Cache/GetMultipleCest.php b/tests/unit/Cache/Cache/GetMultipleCest.php index c7ae0e1512e..02d727d8cd1 100644 --- a/tests/unit/Cache/Cache/GetMultipleCest.php +++ b/tests/unit/Cache/Cache/GetMultipleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class GetMultipleCest /** * Tests Phalcon\Cache :: getMultiple() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-01 */ public function cacheCacheGetMultiple(UnitTester $I) @@ -71,7 +71,7 @@ public function cacheCacheGetMultiple(UnitTester $I) /** * Tests Phalcon\Cache :: getMultiple() - exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-01 */ public function cacheCacheGetMultipleException(UnitTester $I) diff --git a/tests/unit/Cache/Cache/GetSetCest.php b/tests/unit/Cache/Cache/GetSetCest.php index e3ae0e6f8fa..8b31c1d065f 100644 --- a/tests/unit/Cache/Cache/GetSetCest.php +++ b/tests/unit/Cache/Cache/GetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class GetSetCest /** * Tests Phalcon\Cache :: get()/set() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-01 */ public function cacheCacheSetGet(UnitTester $I) @@ -68,7 +68,7 @@ public function cacheCacheSetGet(UnitTester $I) /** * Tests Phalcon\Cache :: get() - exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-01 */ public function cacheCacheGetSetException(UnitTester $I) diff --git a/tests/unit/Cache/Cache/HasCest.php b/tests/unit/Cache/Cache/HasCest.php index d2839441935..3b7b67fc3de 100644 --- a/tests/unit/Cache/Cache/HasCest.php +++ b/tests/unit/Cache/Cache/HasCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class HasCest /** * Tests Phalcon\Cache :: has() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-01 */ public function cacheCacheHas(UnitTester $I) @@ -53,7 +53,7 @@ public function cacheCacheHas(UnitTester $I) /** * Tests Phalcon\Cache :: has() - exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-01 */ public function cacheCacheHasException(UnitTester $I) diff --git a/tests/unit/Cache/Cache/SetMultipleCest.php b/tests/unit/Cache/Cache/SetMultipleCest.php index fd4249b9caa..fa3bf29a7c3 100644 --- a/tests/unit/Cache/Cache/SetMultipleCest.php +++ b/tests/unit/Cache/Cache/SetMultipleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class SetMultipleCest /** * Tests Phalcon\Cache :: setMultiple() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-01 */ public function cacheCacheSetMultiple(UnitTester $I) @@ -66,7 +66,7 @@ public function cacheCacheSetMultiple(UnitTester $I) /** * Tests Phalcon\Cache :: setMultiple() - exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-01 */ public function cacheCacheSetMultipleException(UnitTester $I) diff --git a/tests/unit/Cache/CacheFactory/LoadCest.php b/tests/unit/Cache/CacheFactory/LoadCest.php index 13863ca01ac..21d0054a545 100644 --- a/tests/unit/Cache/CacheFactory/LoadCest.php +++ b/tests/unit/Cache/CacheFactory/LoadCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -31,7 +31,7 @@ public function _before(UnitTester $I) /** * Tests Phalcon\Cache\CacheFactory :: load() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-18 */ public function cacheCacheFactoryLoad(UnitTester $I) @@ -45,7 +45,7 @@ public function cacheCacheFactoryLoad(UnitTester $I) /** * Tests Phalcon\Cache\CacheFactory :: load() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-18 */ public function cacheCacheFactoryLoadArray(UnitTester $I) diff --git a/tests/unit/Cache/CacheFactory/NewInstanceCest.php b/tests/unit/Cache/CacheFactory/NewInstanceCest.php index 0e5d1448692..28d9dd3f882 100644 --- a/tests/unit/Cache/CacheFactory/NewInstanceCest.php +++ b/tests/unit/Cache/CacheFactory/NewInstanceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class NewInstanceCest /** * Tests Phalcon\Cache\CacheFactory :: newInstance() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-03 */ public function cacheCacheFactoryNewInstance(UnitTester $I) diff --git a/tests/unit/Collection/Collection/ClearCest.php b/tests/unit/Collection/Collection/ClearCest.php index 799f8562ec8..8f57ae16ab6 100644 --- a/tests/unit/Collection/Collection/ClearCest.php +++ b/tests/unit/Collection/Collection/ClearCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ClearCest /** * Tests Phalcon\Collection :: clear() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionClear(UnitTester $I) diff --git a/tests/unit/Collection/Collection/ConstructCest.php b/tests/unit/Collection/Collection/ConstructCest.php index e85ada84876..4aafe10df7b 100644 --- a/tests/unit/Collection/Collection/ConstructCest.php +++ b/tests/unit/Collection/Collection/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ConstructCest /** * Tests Phalcon\Collection :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionConstruct(UnitTester $I) diff --git a/tests/unit/Collection/Collection/CountCest.php b/tests/unit/Collection/Collection/CountCest.php index 8acd386b2bf..322272aa313 100644 --- a/tests/unit/Collection/Collection/CountCest.php +++ b/tests/unit/Collection/Collection/CountCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class CountCest /** * Tests Phalcon\Collection :: count() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionCount(UnitTester $I) diff --git a/tests/unit/Collection/Collection/GetCest.php b/tests/unit/Collection/Collection/GetCest.php index 5d02f6148e5..f5dd6f59289 100644 --- a/tests/unit/Collection/Collection/GetCest.php +++ b/tests/unit/Collection/Collection/GetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetCest /** * Tests Phalcon\Collection :: get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionGet(UnitTester $I) diff --git a/tests/unit/Collection/Collection/GetIteratorCest.php b/tests/unit/Collection/Collection/GetIteratorCest.php index 2f8c11c2c27..934f61aaa7b 100644 --- a/tests/unit/Collection/Collection/GetIteratorCest.php +++ b/tests/unit/Collection/Collection/GetIteratorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetIteratorCest /** * Tests Phalcon\Collection :: getIterator() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionGetIterator(UnitTester $I) diff --git a/tests/unit/Collection/Collection/HasCest.php b/tests/unit/Collection/Collection/HasCest.php index 9aeda35e26d..35f2722db0d 100644 --- a/tests/unit/Collection/Collection/HasCest.php +++ b/tests/unit/Collection/Collection/HasCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class HasCest /** * Tests Phalcon\Collection :: has() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionHas(UnitTester $I) @@ -71,7 +71,7 @@ public function collectionHas(UnitTester $I) /** * Tests Phalcon\Collection :: has() - sensitive * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionHasSensitive(UnitTester $I) diff --git a/tests/unit/Collection/Collection/InitCest.php b/tests/unit/Collection/Collection/InitCest.php index 0aa3309e816..3dcac8142b1 100644 --- a/tests/unit/Collection/Collection/InitCest.php +++ b/tests/unit/Collection/Collection/InitCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class InitCest /** * Tests Phalcon\Collection :: init() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionInit(UnitTester $I) diff --git a/tests/unit/Collection/Collection/JsonSerializeCest.php b/tests/unit/Collection/Collection/JsonSerializeCest.php index 19fc71ade73..3b7d5d13ecb 100644 --- a/tests/unit/Collection/Collection/JsonSerializeCest.php +++ b/tests/unit/Collection/Collection/JsonSerializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class JsonSerializeCest /** * Tests Phalcon\Collection :: jsonSerialize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionJsonSerialize(UnitTester $I) diff --git a/tests/unit/Collection/Collection/RemoveCest.php b/tests/unit/Collection/Collection/RemoveCest.php index 6abb5a93492..f43cf6b48c2 100644 --- a/tests/unit/Collection/Collection/RemoveCest.php +++ b/tests/unit/Collection/Collection/RemoveCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class RemoveCest /** * Tests Phalcon\Collection :: remove() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionRemove(UnitTester $I) diff --git a/tests/unit/Collection/Collection/SerializeCest.php b/tests/unit/Collection/Collection/SerializeCest.php index 033ed8c788c..8a8d3af5512 100644 --- a/tests/unit/Collection/Collection/SerializeCest.php +++ b/tests/unit/Collection/Collection/SerializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SerializeCest /** * Tests Phalcon\Collection :: serialize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionSerialize(UnitTester $I) diff --git a/tests/unit/Collection/Collection/SetCest.php b/tests/unit/Collection/Collection/SetCest.php index 0285a753aa3..8bfda840aab 100644 --- a/tests/unit/Collection/Collection/SetCest.php +++ b/tests/unit/Collection/Collection/SetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetCest /** * Tests Phalcon\Collection :: set() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionSet(UnitTester $I) diff --git a/tests/unit/Collection/Collection/ToArrayCest.php b/tests/unit/Collection/Collection/ToArrayCest.php index f9ee9943398..d140dd2d7fb 100644 --- a/tests/unit/Collection/Collection/ToArrayCest.php +++ b/tests/unit/Collection/Collection/ToArrayCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ToArrayCest /** * Tests Phalcon\Collection :: toArray() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionToArray(UnitTester $I) diff --git a/tests/unit/Collection/Collection/ToJsonCest.php b/tests/unit/Collection/Collection/ToJsonCest.php index 61831c79606..379c131a140 100644 --- a/tests/unit/Collection/Collection/ToJsonCest.php +++ b/tests/unit/Collection/Collection/ToJsonCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ToJsonCest /** * Tests Phalcon\Collection :: toJson() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionToJson(UnitTester $I) diff --git a/tests/unit/Collection/Collection/UnserializeCest.php b/tests/unit/Collection/Collection/UnserializeCest.php index 21aefeaa426..fa99027e06a 100644 --- a/tests/unit/Collection/Collection/UnserializeCest.php +++ b/tests/unit/Collection/Collection/UnserializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class UnserializeCest /** * Tests Phalcon\Collection :: unserialize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionUnserialize(UnitTester $I) diff --git a/tests/unit/Collection/ReadCollection/ClearCest.php b/tests/unit/Collection/ReadCollection/ClearCest.php index c212cab7766..c8a12a8c24b 100644 --- a/tests/unit/Collection/ReadCollection/ClearCest.php +++ b/tests/unit/Collection/ReadCollection/ClearCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ClearCest /** * Tests Phalcon\Collection\ReadOnly :: clear() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionClear(UnitTester $I) diff --git a/tests/unit/Collection/ReadCollection/ConstructCest.php b/tests/unit/Collection/ReadCollection/ConstructCest.php index 200cfd95f31..f3d02ca1374 100644 --- a/tests/unit/Collection/ReadCollection/ConstructCest.php +++ b/tests/unit/Collection/ReadCollection/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ConstructCest /** * Tests Phalcon\Collection\ReadOnly :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionConstruct(UnitTester $I) diff --git a/tests/unit/Collection/ReadCollection/CountCest.php b/tests/unit/Collection/ReadCollection/CountCest.php index 25f9d0ffb06..8cf2b521678 100644 --- a/tests/unit/Collection/ReadCollection/CountCest.php +++ b/tests/unit/Collection/ReadCollection/CountCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class CountCest /** * Tests Phalcon\Collection\ReadOnly :: count() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionCount(UnitTester $I) diff --git a/tests/unit/Collection/ReadCollection/GetCest.php b/tests/unit/Collection/ReadCollection/GetCest.php index 0b322e313d3..7709419617a 100644 --- a/tests/unit/Collection/ReadCollection/GetCest.php +++ b/tests/unit/Collection/ReadCollection/GetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetCest /** * Tests Phalcon\Collection\ReadOnly :: get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionGet(UnitTester $I) diff --git a/tests/unit/Collection/ReadCollection/GetIteratorCest.php b/tests/unit/Collection/ReadCollection/GetIteratorCest.php index 42e3261d396..1f37210a61a 100644 --- a/tests/unit/Collection/ReadCollection/GetIteratorCest.php +++ b/tests/unit/Collection/ReadCollection/GetIteratorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetIteratorCest /** * Tests Phalcon\Collection\ReadOnly :: getIterator() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionGetIterator(UnitTester $I) diff --git a/tests/unit/Collection/ReadCollection/HasCest.php b/tests/unit/Collection/ReadCollection/HasCest.php index 3c17c8350ab..32a9ca060ab 100644 --- a/tests/unit/Collection/ReadCollection/HasCest.php +++ b/tests/unit/Collection/ReadCollection/HasCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class HasCest /** * Tests Phalcon\Collection\ReadOnly :: has() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionHas(UnitTester $I) @@ -71,7 +71,7 @@ public function collectionHas(UnitTester $I) /** * Tests Phalcon\Collection\ReadOnly :: has() - sensitive * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionHasSensitive(UnitTester $I) diff --git a/tests/unit/Collection/ReadCollection/InitCest.php b/tests/unit/Collection/ReadCollection/InitCest.php index 08db368ce7d..97b4a218e08 100644 --- a/tests/unit/Collection/ReadCollection/InitCest.php +++ b/tests/unit/Collection/ReadCollection/InitCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class InitCest /** * Tests Phalcon\Collection\ReadOnly :: init() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionInit(UnitTester $I) diff --git a/tests/unit/Collection/ReadCollection/JsonSerializeCest.php b/tests/unit/Collection/ReadCollection/JsonSerializeCest.php index deb1d1fbc76..336adb96c1e 100644 --- a/tests/unit/Collection/ReadCollection/JsonSerializeCest.php +++ b/tests/unit/Collection/ReadCollection/JsonSerializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class JsonSerializeCest /** * Tests Phalcon\Collection\ReadOnly :: jsonSerialize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionJsonSerialize(UnitTester $I) diff --git a/tests/unit/Collection/ReadCollection/RemoveCest.php b/tests/unit/Collection/ReadCollection/RemoveCest.php index ffb85c63226..98638b580e5 100644 --- a/tests/unit/Collection/ReadCollection/RemoveCest.php +++ b/tests/unit/Collection/ReadCollection/RemoveCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class RemoveCest /** * Tests Phalcon\Collection\ReadOnly :: remove() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionRemove(UnitTester $I) diff --git a/tests/unit/Collection/ReadCollection/SerializeCest.php b/tests/unit/Collection/ReadCollection/SerializeCest.php index cc75d80b44c..04655941de1 100644 --- a/tests/unit/Collection/ReadCollection/SerializeCest.php +++ b/tests/unit/Collection/ReadCollection/SerializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SerializeCest /** * Tests Phalcon\Collection\ReadOnly :: serialize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionSerialize(UnitTester $I) diff --git a/tests/unit/Collection/ReadCollection/SetCest.php b/tests/unit/Collection/ReadCollection/SetCest.php index 1e8a6a47502..3220b35a29a 100644 --- a/tests/unit/Collection/ReadCollection/SetCest.php +++ b/tests/unit/Collection/ReadCollection/SetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class SetCest /** * Tests Phalcon\Collection\ReadOnly :: set() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionSet(UnitTester $I) diff --git a/tests/unit/Collection/ReadCollection/ToArrayCest.php b/tests/unit/Collection/ReadCollection/ToArrayCest.php index c4ca22fe097..f4973feaad2 100644 --- a/tests/unit/Collection/ReadCollection/ToArrayCest.php +++ b/tests/unit/Collection/ReadCollection/ToArrayCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ToArrayCest /** * Tests Phalcon\Collection\ReadOnly :: toArray() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionToArray(UnitTester $I) diff --git a/tests/unit/Collection/ReadCollection/ToJsonCest.php b/tests/unit/Collection/ReadCollection/ToJsonCest.php index 6b1305109b7..6545eeaceaf 100644 --- a/tests/unit/Collection/ReadCollection/ToJsonCest.php +++ b/tests/unit/Collection/ReadCollection/ToJsonCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ToJsonCest /** * Tests Phalcon\Collection\ReadOnly :: toJson() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionToJson(UnitTester $I) diff --git a/tests/unit/Collection/ReadCollection/UnserializeCest.php b/tests/unit/Collection/ReadCollection/UnserializeCest.php index 97e53b7e95d..d359e98c92b 100644 --- a/tests/unit/Collection/ReadCollection/UnserializeCest.php +++ b/tests/unit/Collection/ReadCollection/UnserializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class UnserializeCest /** * Tests Phalcon\Collection\ReadOnly :: serialize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionSerialize(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Grouped/ConstructCest.php b/tests/unit/Config/Adapter/Grouped/ConstructCest.php index a514853f079..bf9aa3437a6 100644 --- a/tests/unit/Config/Adapter/Grouped/ConstructCest.php +++ b/tests/unit/Config/Adapter/Grouped/ConstructCest.php @@ -4,9 +4,9 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Config/Adapter/Grouped/CountCest.php b/tests/unit/Config/Adapter/Grouped/CountCest.php index f13aeb08a6d..94171e61cfb 100644 --- a/tests/unit/Config/Adapter/Grouped/CountCest.php +++ b/tests/unit/Config/Adapter/Grouped/CountCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CountCest /** * Tests Phalcon\Config\Adapter\Grouped :: count() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterGroupedCount(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Grouped/GetCest.php b/tests/unit/Config/Adapter/Grouped/GetCest.php index f5cec61ac51..13880d57bc4 100644 --- a/tests/unit/Config/Adapter/Grouped/GetCest.php +++ b/tests/unit/Config/Adapter/Grouped/GetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetCest /** * Tests Phalcon\Config\Adapter\Grouped :: get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterGroupedGet(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Grouped/GetPathDelimiterCest.php b/tests/unit/Config/Adapter/Grouped/GetPathDelimiterCest.php index 0ba4bd8c3c5..eea6801fce1 100644 --- a/tests/unit/Config/Adapter/Grouped/GetPathDelimiterCest.php +++ b/tests/unit/Config/Adapter/Grouped/GetPathDelimiterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetPathDelimiterCest /** * Tests Phalcon\Config\Adapter\Grouped :: getPathDelimiter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterGroupedGetPathDelimiter(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Grouped/MergeCest.php b/tests/unit/Config/Adapter/Grouped/MergeCest.php index c60f4eb2ab6..de83c2423f3 100644 --- a/tests/unit/Config/Adapter/Grouped/MergeCest.php +++ b/tests/unit/Config/Adapter/Grouped/MergeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class MergeCest /** * Tests Phalcon\Config\Adapter\Grouped :: merge() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterGroupedMerge(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Grouped/OffsetExistsCest.php b/tests/unit/Config/Adapter/Grouped/OffsetExistsCest.php index 9188d4b0a10..1633d7386e9 100644 --- a/tests/unit/Config/Adapter/Grouped/OffsetExistsCest.php +++ b/tests/unit/Config/Adapter/Grouped/OffsetExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OffsetExistsCest /** * Tests Phalcon\Config\Adapter\Grouped :: offsetExists() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterGroupedOffsetExists(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Grouped/OffsetGetCest.php b/tests/unit/Config/Adapter/Grouped/OffsetGetCest.php index 651744441ab..8dcd5cad5c1 100644 --- a/tests/unit/Config/Adapter/Grouped/OffsetGetCest.php +++ b/tests/unit/Config/Adapter/Grouped/OffsetGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OffsetGetCest /** * Tests Phalcon\Config\Adapter\Grouped :: offsetGet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterGroupedOffsetGet(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Grouped/OffsetSetCest.php b/tests/unit/Config/Adapter/Grouped/OffsetSetCest.php index c2200dd0d00..a9b4385e1d6 100644 --- a/tests/unit/Config/Adapter/Grouped/OffsetSetCest.php +++ b/tests/unit/Config/Adapter/Grouped/OffsetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OffsetSetCest /** * Tests Phalcon\Config\Adapter\Grouped :: offsetSet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterGroupedOffsetSet(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Grouped/OffsetUnsetCest.php b/tests/unit/Config/Adapter/Grouped/OffsetUnsetCest.php index 51545a1a486..76e9e766dd2 100644 --- a/tests/unit/Config/Adapter/Grouped/OffsetUnsetCest.php +++ b/tests/unit/Config/Adapter/Grouped/OffsetUnsetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OffsetUnsetCest /** * Tests Phalcon\Config\Adapter\Grouped :: offsetUnset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterGroupedOffsetUnset(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Grouped/PathCest.php b/tests/unit/Config/Adapter/Grouped/PathCest.php index 3fdb4fabaec..956865a5e6e 100644 --- a/tests/unit/Config/Adapter/Grouped/PathCest.php +++ b/tests/unit/Config/Adapter/Grouped/PathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class PathCest /** * Tests Phalcon\Config\Adapter\Grouped :: path() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterGroupedPath(UnitTester $I) @@ -46,7 +46,7 @@ public function configAdapterGroupedPath(UnitTester $I) /** * Tests Phalcon\Config\Adapter\Grouped :: path() - default * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterGroupedPathDefault(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Grouped/SetPathDelimiterCest.php b/tests/unit/Config/Adapter/Grouped/SetPathDelimiterCest.php index f847f529662..5f5b7e8616c 100644 --- a/tests/unit/Config/Adapter/Grouped/SetPathDelimiterCest.php +++ b/tests/unit/Config/Adapter/Grouped/SetPathDelimiterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetPathDelimiterCest /** * Tests Phalcon\Config\Adapter\Grouped :: setPathDelimiter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterGroupedSetPathDelimiter(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Grouped/ToArrayCest.php b/tests/unit/Config/Adapter/Grouped/ToArrayCest.php index 1ad941e8cf7..9e2bacb57b7 100644 --- a/tests/unit/Config/Adapter/Grouped/ToArrayCest.php +++ b/tests/unit/Config/Adapter/Grouped/ToArrayCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Config/Adapter/Ini/ConstructCest.php b/tests/unit/Config/Adapter/Ini/ConstructCest.php index 2da4762b599..6de8d3766bc 100644 --- a/tests/unit/Config/Adapter/Ini/ConstructCest.php +++ b/tests/unit/Config/Adapter/Ini/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class ConstructCest /** * Tests Phalcon\Config\Adapter\Ini :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterIniConstruct(UnitTester $I) @@ -49,7 +49,7 @@ public function configAdapterIniConstruct(UnitTester $I) /** * Tests Phalcon\Config\Adapter\Ini :: __construct() - constants * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterIniConstructConstants(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Ini/CountCest.php b/tests/unit/Config/Adapter/Ini/CountCest.php index 0f68384c75a..e42b9b54335 100644 --- a/tests/unit/Config/Adapter/Ini/CountCest.php +++ b/tests/unit/Config/Adapter/Ini/CountCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CountCest /** * Tests Phalcon\Config\Adapter\Ini :: count() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterIniCount(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Ini/GetCest.php b/tests/unit/Config/Adapter/Ini/GetCest.php index 3f43bd03ccf..539f412a610 100644 --- a/tests/unit/Config/Adapter/Ini/GetCest.php +++ b/tests/unit/Config/Adapter/Ini/GetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetCest /** * Tests Phalcon\Config\Adapter\Ini :: get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterIniGet(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Ini/GetPathDelimiterCest.php b/tests/unit/Config/Adapter/Ini/GetPathDelimiterCest.php index 7aebe98ac04..eac2c47cd38 100644 --- a/tests/unit/Config/Adapter/Ini/GetPathDelimiterCest.php +++ b/tests/unit/Config/Adapter/Ini/GetPathDelimiterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetPathDelimiterCest /** * Tests Phalcon\Config\Adapter\Ini :: getPathDelimiter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterIniGetPathDelimiter(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Ini/MergeCest.php b/tests/unit/Config/Adapter/Ini/MergeCest.php index f5614d8aaa5..ba14f1dec7f 100644 --- a/tests/unit/Config/Adapter/Ini/MergeCest.php +++ b/tests/unit/Config/Adapter/Ini/MergeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class MergeCest /** * Tests Phalcon\Config\Adapter\Ini :: merge() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterIniMerge(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Ini/OffsetExistsCest.php b/tests/unit/Config/Adapter/Ini/OffsetExistsCest.php index 01d572fcdb8..0ceceb84fdb 100644 --- a/tests/unit/Config/Adapter/Ini/OffsetExistsCest.php +++ b/tests/unit/Config/Adapter/Ini/OffsetExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OffsetExistsCest /** * Tests Phalcon\Config\Adapter\Ini :: offsetExists() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterIniOffsetExists(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Ini/OffsetGetCest.php b/tests/unit/Config/Adapter/Ini/OffsetGetCest.php index a859cc6dad9..ebad0e20494 100644 --- a/tests/unit/Config/Adapter/Ini/OffsetGetCest.php +++ b/tests/unit/Config/Adapter/Ini/OffsetGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OffsetGetCest /** * Tests Phalcon\Config\Adapter\Ini :: offsetGet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterIniOffsetGet(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Ini/OffsetSetCest.php b/tests/unit/Config/Adapter/Ini/OffsetSetCest.php index cbd7ce21575..05f0f734d78 100644 --- a/tests/unit/Config/Adapter/Ini/OffsetSetCest.php +++ b/tests/unit/Config/Adapter/Ini/OffsetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OffsetSetCest /** * Tests Phalcon\Config\Adapter\Ini :: offsetSet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterIniOffsetSet(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Ini/OffsetUnsetCest.php b/tests/unit/Config/Adapter/Ini/OffsetUnsetCest.php index b151c896e88..cd87a84dafd 100644 --- a/tests/unit/Config/Adapter/Ini/OffsetUnsetCest.php +++ b/tests/unit/Config/Adapter/Ini/OffsetUnsetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OffsetUnsetCest /** * Tests Phalcon\Config\Adapter\Ini :: offsetUnset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterIniOffsetUnset(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Ini/PathCest.php b/tests/unit/Config/Adapter/Ini/PathCest.php index d068c5f3d3e..1c536d32b4f 100644 --- a/tests/unit/Config/Adapter/Ini/PathCest.php +++ b/tests/unit/Config/Adapter/Ini/PathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class PathCest /** * Tests Phalcon\Config\Adapter\Ini :: path() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterIniPath(UnitTester $I) @@ -35,7 +35,7 @@ public function configAdapterIniPath(UnitTester $I) /** * Tests Phalcon\Config\Adapter\Ini :: path() - default * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterIniPathDefault(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Ini/SetPathDelimiterCest.php b/tests/unit/Config/Adapter/Ini/SetPathDelimiterCest.php index f6ce34e14f7..2c44b4dc13b 100644 --- a/tests/unit/Config/Adapter/Ini/SetPathDelimiterCest.php +++ b/tests/unit/Config/Adapter/Ini/SetPathDelimiterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetPathDelimiterCest /** * Tests Phalcon\Config\Adapter\Ini :: setPathDelimiter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterIniSetPathDelimiter(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Ini/ToArrayCest.php b/tests/unit/Config/Adapter/Ini/ToArrayCest.php index 423a1e9ce8c..35478d606a9 100644 --- a/tests/unit/Config/Adapter/Ini/ToArrayCest.php +++ b/tests/unit/Config/Adapter/Ini/ToArrayCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Config/Adapter/Json/ConstructCest.php b/tests/unit/Config/Adapter/Json/ConstructCest.php index ef0c938ab7c..26df5169f2d 100644 --- a/tests/unit/Config/Adapter/Json/ConstructCest.php +++ b/tests/unit/Config/Adapter/Json/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ public function _before(UnitTester $I) /** * Tests Phalcon\Config\Adapter\Json :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterJsonConstruct(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Json/CountCest.php b/tests/unit/Config/Adapter/Json/CountCest.php index bb84a97d742..83755c22a90 100644 --- a/tests/unit/Config/Adapter/Json/CountCest.php +++ b/tests/unit/Config/Adapter/Json/CountCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ public function _before(UnitTester $I) /** * Tests Phalcon\Config\Adapter\Json :: count() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterJsonCount(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Json/GetCest.php b/tests/unit/Config/Adapter/Json/GetCest.php index 729c4bb6554..1e9a3a2487c 100644 --- a/tests/unit/Config/Adapter/Json/GetCest.php +++ b/tests/unit/Config/Adapter/Json/GetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ public function _before(UnitTester $I) /** * Tests Phalcon\Config\Adapter\Json :: get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterJsonGet(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Json/GetPathDelimiterCest.php b/tests/unit/Config/Adapter/Json/GetPathDelimiterCest.php index 1a966dfb8de..edba84bf421 100644 --- a/tests/unit/Config/Adapter/Json/GetPathDelimiterCest.php +++ b/tests/unit/Config/Adapter/Json/GetPathDelimiterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetPathDelimiterCest /** * Tests Phalcon\Config\Adapter\Json :: getPathDelimiter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterJsonGetPathDelimiter(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Json/MergeCest.php b/tests/unit/Config/Adapter/Json/MergeCest.php index 6334bc71178..018f91c77bb 100644 --- a/tests/unit/Config/Adapter/Json/MergeCest.php +++ b/tests/unit/Config/Adapter/Json/MergeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class MergeCest /** * Tests Phalcon\Config\Adapter\Json :: merge() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterJsonMerge(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Json/OffsetExistsCest.php b/tests/unit/Config/Adapter/Json/OffsetExistsCest.php index 92584569c74..c03c285c50b 100644 --- a/tests/unit/Config/Adapter/Json/OffsetExistsCest.php +++ b/tests/unit/Config/Adapter/Json/OffsetExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ public function _before(UnitTester $I) /** * Tests Phalcon\Config\Adapter\Json :: offsetExists() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterJsonOffsetExists(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Json/OffsetGetCest.php b/tests/unit/Config/Adapter/Json/OffsetGetCest.php index 5ac26f7a67e..e9bcd57bf98 100644 --- a/tests/unit/Config/Adapter/Json/OffsetGetCest.php +++ b/tests/unit/Config/Adapter/Json/OffsetGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ public function _before(UnitTester $I) /** * Tests Phalcon\Config\Adapter\Json :: offsetGet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterJsonOffsetGet(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Json/OffsetSetCest.php b/tests/unit/Config/Adapter/Json/OffsetSetCest.php index 747a4a685f8..9167a2f372f 100644 --- a/tests/unit/Config/Adapter/Json/OffsetSetCest.php +++ b/tests/unit/Config/Adapter/Json/OffsetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ public function _before(UnitTester $I) /** * Tests Phalcon\Config\Adapter\Json :: offsetSet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterJsonOffsetSet(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Json/OffsetUnsetCest.php b/tests/unit/Config/Adapter/Json/OffsetUnsetCest.php index b0013bcdb71..429028e1c71 100644 --- a/tests/unit/Config/Adapter/Json/OffsetUnsetCest.php +++ b/tests/unit/Config/Adapter/Json/OffsetUnsetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ public function _before(UnitTester $I) /** * Tests Phalcon\Config\Adapter\Json :: offsetUnset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterJsonOffsetUnset(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Json/PathCest.php b/tests/unit/Config/Adapter/Json/PathCest.php index 99f7f954d4f..ff9bc7b0c0d 100644 --- a/tests/unit/Config/Adapter/Json/PathCest.php +++ b/tests/unit/Config/Adapter/Json/PathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ public function _before(UnitTester $I) /** * Tests Phalcon\Config\Adapter\Json :: path() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterJsonPath(UnitTester $I) @@ -40,7 +40,7 @@ public function configAdapterJsonPath(UnitTester $I) /** * Tests Phalcon\Config\Adapter\Json :: path() - default * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterJsonPathDefault(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Json/SetPathDelimiterCest.php b/tests/unit/Config/Adapter/Json/SetPathDelimiterCest.php index f0afcaa3866..938f7204c0c 100644 --- a/tests/unit/Config/Adapter/Json/SetPathDelimiterCest.php +++ b/tests/unit/Config/Adapter/Json/SetPathDelimiterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ public function _before(UnitTester $I) /** * Tests Phalcon\Config\Adapter\Json :: setPathDelimiter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterJsonSetPathDelimiter(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Json/ToArrayCest.php b/tests/unit/Config/Adapter/Json/ToArrayCest.php index 2b39e024463..dd1f00a109e 100644 --- a/tests/unit/Config/Adapter/Json/ToArrayCest.php +++ b/tests/unit/Config/Adapter/Json/ToArrayCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ public function _before(UnitTester $I) /** * Tests Phalcon\Config\Adapter\Json :: toArray() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterJsonToArray(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Php/ConstructCest.php b/tests/unit/Config/Adapter/Php/ConstructCest.php index b81a4767975..24c773eff60 100644 --- a/tests/unit/Config/Adapter/Php/ConstructCest.php +++ b/tests/unit/Config/Adapter/Php/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Config\Adapter\Php :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterPhpConstruct(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Php/CountCest.php b/tests/unit/Config/Adapter/Php/CountCest.php index 5c08f78fba9..1f578a7cb54 100644 --- a/tests/unit/Config/Adapter/Php/CountCest.php +++ b/tests/unit/Config/Adapter/Php/CountCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CountCest /** * Tests Phalcon\Config\Adapter\Php :: count() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterPhpCount(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Php/GetCest.php b/tests/unit/Config/Adapter/Php/GetCest.php index 6d7a3060432..1b702646dd5 100644 --- a/tests/unit/Config/Adapter/Php/GetCest.php +++ b/tests/unit/Config/Adapter/Php/GetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetCest /** * Tests Phalcon\Config\Adapter\Php :: get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterPhpGet(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Php/GetPathDelimiterCest.php b/tests/unit/Config/Adapter/Php/GetPathDelimiterCest.php index 9afcae10600..8ec421694ce 100644 --- a/tests/unit/Config/Adapter/Php/GetPathDelimiterCest.php +++ b/tests/unit/Config/Adapter/Php/GetPathDelimiterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetPathDelimiterCest /** * Tests Phalcon\Config\Adapter\Php :: getPathDelimiter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterPhpGetPathDelimiter(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Php/MergeCest.php b/tests/unit/Config/Adapter/Php/MergeCest.php index 0cbf8b81beb..0cd3c2500f0 100644 --- a/tests/unit/Config/Adapter/Php/MergeCest.php +++ b/tests/unit/Config/Adapter/Php/MergeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class MergeCest /** * Tests Phalcon\Config\Adapter\Php :: merge() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterPhpMerge(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Php/OffsetExistsCest.php b/tests/unit/Config/Adapter/Php/OffsetExistsCest.php index 1882ce93b84..250bb9b51bc 100644 --- a/tests/unit/Config/Adapter/Php/OffsetExistsCest.php +++ b/tests/unit/Config/Adapter/Php/OffsetExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OffsetExistsCest /** * Tests Phalcon\Config\Adapter\Php :: offsetExists() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterPhpOffsetExists(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Php/OffsetGetCest.php b/tests/unit/Config/Adapter/Php/OffsetGetCest.php index 04d79afdf42..02306d7aef7 100644 --- a/tests/unit/Config/Adapter/Php/OffsetGetCest.php +++ b/tests/unit/Config/Adapter/Php/OffsetGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OffsetGetCest /** * Tests Phalcon\Config\Adapter\Php :: offsetGet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterPhpOffsetGet(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Php/OffsetSetCest.php b/tests/unit/Config/Adapter/Php/OffsetSetCest.php index ead993cb0b9..08fcdfc5987 100644 --- a/tests/unit/Config/Adapter/Php/OffsetSetCest.php +++ b/tests/unit/Config/Adapter/Php/OffsetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OffsetSetCest /** * Tests Phalcon\Config\Adapter\Php :: offsetSet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterPhpOffsetSet(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Php/OffsetUnsetCest.php b/tests/unit/Config/Adapter/Php/OffsetUnsetCest.php index 4260d731de2..c749108ed8e 100644 --- a/tests/unit/Config/Adapter/Php/OffsetUnsetCest.php +++ b/tests/unit/Config/Adapter/Php/OffsetUnsetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OffsetUnsetCest /** * Tests Phalcon\Config\Adapter\Php :: offsetUnset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterPhpOffsetUnset(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Php/PathCest.php b/tests/unit/Config/Adapter/Php/PathCest.php index 6d305e79981..3d095001594 100644 --- a/tests/unit/Config/Adapter/Php/PathCest.php +++ b/tests/unit/Config/Adapter/Php/PathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class PathCest /** * Tests Phalcon\Config\Adapter\Php :: path() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterPhpPath(UnitTester $I) @@ -35,7 +35,7 @@ public function configAdapterPhpPath(UnitTester $I) /** * Tests Phalcon\Config\Adapter\Php :: path() - default * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterPhpPathDefault(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Php/SetPathDelimiterCest.php b/tests/unit/Config/Adapter/Php/SetPathDelimiterCest.php index d32251c4373..57486be6d64 100644 --- a/tests/unit/Config/Adapter/Php/SetPathDelimiterCest.php +++ b/tests/unit/Config/Adapter/Php/SetPathDelimiterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetPathDelimiterCest /** * Tests Phalcon\Config\Adapter\Php :: setPathDelimiter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterPhpSetPathDelimiter(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Php/ToArrayCest.php b/tests/unit/Config/Adapter/Php/ToArrayCest.php index 7165cfcf06c..8cb3f77cacb 100644 --- a/tests/unit/Config/Adapter/Php/ToArrayCest.php +++ b/tests/unit/Config/Adapter/Php/ToArrayCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ToArrayCest /** * Tests Phalcon\Config\Adapter\Php :: toArray() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterPhpToArray(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Yaml/ConstructCest.php b/tests/unit/Config/Adapter/Yaml/ConstructCest.php index 9472cdaca5a..e879d9cd903 100644 --- a/tests/unit/Config/Adapter/Yaml/ConstructCest.php +++ b/tests/unit/Config/Adapter/Yaml/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -29,7 +29,7 @@ public function _before(UnitTester $I) /** * Tests Phalcon\Config\Adapter\Yaml :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterYamlConstruct(UnitTester $I) @@ -42,7 +42,7 @@ public function configAdapterYamlConstruct(UnitTester $I) /** * Tests Phalcon\Config\Adapter\Yaml :: __construct() - callbacks * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterYamlConstructCallbacks(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Yaml/CountCest.php b/tests/unit/Config/Adapter/Yaml/CountCest.php index 6bc23c80cdf..0ee5a06ee22 100644 --- a/tests/unit/Config/Adapter/Yaml/CountCest.php +++ b/tests/unit/Config/Adapter/Yaml/CountCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ public function _before(UnitTester $I) /** * Tests Phalcon\Config\Adapter\Yaml :: count() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterYamlCount(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Yaml/GetCest.php b/tests/unit/Config/Adapter/Yaml/GetCest.php index 8376a13b60c..08c3c7b42b6 100644 --- a/tests/unit/Config/Adapter/Yaml/GetCest.php +++ b/tests/unit/Config/Adapter/Yaml/GetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ public function _before(UnitTester $I) /** * Tests Phalcon\Config\Adapter\Yaml :: get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterYamlGet(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Yaml/GetPathDelimiterCest.php b/tests/unit/Config/Adapter/Yaml/GetPathDelimiterCest.php index d102dc18b95..db29f190527 100644 --- a/tests/unit/Config/Adapter/Yaml/GetPathDelimiterCest.php +++ b/tests/unit/Config/Adapter/Yaml/GetPathDelimiterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ public function _before(UnitTester $I) /** * Tests Phalcon\Config\Adapter\Yaml :: getPathDelimiter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterYamlGetPathDelimiter(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Yaml/MergeCest.php b/tests/unit/Config/Adapter/Yaml/MergeCest.php index 70d45c46073..e369781354a 100644 --- a/tests/unit/Config/Adapter/Yaml/MergeCest.php +++ b/tests/unit/Config/Adapter/Yaml/MergeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class MergeCest /** * Tests Phalcon\Config\Adapter\Yaml :: merge() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterYamlMerge(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Yaml/OffsetExistsCest.php b/tests/unit/Config/Adapter/Yaml/OffsetExistsCest.php index b893e620807..26cdae17c9f 100644 --- a/tests/unit/Config/Adapter/Yaml/OffsetExistsCest.php +++ b/tests/unit/Config/Adapter/Yaml/OffsetExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ public function _before(UnitTester $I) /** * Tests Phalcon\Config\Adapter\Yaml :: offsetExists() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterYamlOffsetExists(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Yaml/OffsetGetCest.php b/tests/unit/Config/Adapter/Yaml/OffsetGetCest.php index 7cca7ee9896..5558031dbd1 100644 --- a/tests/unit/Config/Adapter/Yaml/OffsetGetCest.php +++ b/tests/unit/Config/Adapter/Yaml/OffsetGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ public function _before(UnitTester $I) /** * Tests Phalcon\Config\Adapter\Yaml :: offsetGet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterYamlOffsetGet(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Yaml/OffsetSetCest.php b/tests/unit/Config/Adapter/Yaml/OffsetSetCest.php index 3298cc86ac0..501c836a859 100644 --- a/tests/unit/Config/Adapter/Yaml/OffsetSetCest.php +++ b/tests/unit/Config/Adapter/Yaml/OffsetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ public function _before(UnitTester $I) /** * Tests Phalcon\Config\Adapter\Yaml :: offsetSet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterYamlOffsetSet(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Yaml/OffsetUnsetCest.php b/tests/unit/Config/Adapter/Yaml/OffsetUnsetCest.php index 18d8798e181..d09ddc93d59 100644 --- a/tests/unit/Config/Adapter/Yaml/OffsetUnsetCest.php +++ b/tests/unit/Config/Adapter/Yaml/OffsetUnsetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ public function _before(UnitTester $I) /** * Tests Phalcon\Config\Adapter\Yaml :: offsetUnset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterYamlOffsetUnset(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Yaml/PathCest.php b/tests/unit/Config/Adapter/Yaml/PathCest.php index d4a2fd7af49..c5900aeab70 100644 --- a/tests/unit/Config/Adapter/Yaml/PathCest.php +++ b/tests/unit/Config/Adapter/Yaml/PathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ public function _before(UnitTester $I) /** * Tests Phalcon\Config\Adapter\Yaml :: path() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterYamlPath(UnitTester $I) @@ -40,7 +40,7 @@ public function configAdapterYamlPath(UnitTester $I) /** * Tests Phalcon\Config\Adapter\Yaml :: path() - default * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterYamlPathDefault(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Yaml/SetPathDelimiterCest.php b/tests/unit/Config/Adapter/Yaml/SetPathDelimiterCest.php index ad4ee3e4006..95b61fcf792 100644 --- a/tests/unit/Config/Adapter/Yaml/SetPathDelimiterCest.php +++ b/tests/unit/Config/Adapter/Yaml/SetPathDelimiterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ public function _before(UnitTester $I) /** * Tests Phalcon\Config\Adapter\Yaml :: setPathDelimiter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterYamlSetPathDelimiter(UnitTester $I) diff --git a/tests/unit/Config/Adapter/Yaml/ToArrayCest.php b/tests/unit/Config/Adapter/Yaml/ToArrayCest.php index 0ad1576660d..1e35a3540fe 100644 --- a/tests/unit/Config/Adapter/Yaml/ToArrayCest.php +++ b/tests/unit/Config/Adapter/Yaml/ToArrayCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ public function _before(UnitTester $I) /** * Tests Phalcon\Config\Adapter\Yaml :: toArray() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function configAdapterYamlToArray(UnitTester $I) diff --git a/tests/unit/Config/Config/ConfigCest.php b/tests/unit/Config/Config/ConfigCest.php index ecb8eca5ccd..0a6cdb0531f 100644 --- a/tests/unit/Config/Config/ConfigCest.php +++ b/tests/unit/Config/Config/ConfigCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -52,7 +52,7 @@ public function testChildArrayToConfigObject(UnitTester $I) /** * Tests standard config simple array * - * @author Phalcon Team + * @author Phalcon Team * @since 2012-09-11 */ public function testStandardConfigSimpleArray(UnitTester $I) diff --git a/tests/unit/Config/Config/ConstructCest.php b/tests/unit/Config/Config/ConstructCest.php index 231f8bea633..acee5b65647 100644 --- a/tests/unit/Config/Config/ConstructCest.php +++ b/tests/unit/Config/Config/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Config :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-19 */ public function configConstruct(UnitTester $I) diff --git a/tests/unit/Config/Config/CountCest.php b/tests/unit/Config/Config/CountCest.php index 2c4d11b2394..e38422b6d8c 100644 --- a/tests/unit/Config/Config/CountCest.php +++ b/tests/unit/Config/Config/CountCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CountCest /** * Tests Phalcon\Config :: count() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-19 */ public function configCount(UnitTester $I) diff --git a/tests/unit/Config/Config/GetCest.php b/tests/unit/Config/Config/GetCest.php index f91974adc4c..0c3b37dfe56 100644 --- a/tests/unit/Config/Config/GetCest.php +++ b/tests/unit/Config/Config/GetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Config/Config/GetPathDelimiterCest.php b/tests/unit/Config/Config/GetPathDelimiterCest.php index c6562fcffb5..a6a5cb63ebd 100644 --- a/tests/unit/Config/Config/GetPathDelimiterCest.php +++ b/tests/unit/Config/Config/GetPathDelimiterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetPathDelimiterCest /** * Tests Phalcon\Config :: getPathDelimiter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-19 */ public function configGetPathDelimiter(UnitTester $I) diff --git a/tests/unit/Config/Config/MergeCest.php b/tests/unit/Config/Config/MergeCest.php index ee85c8d314f..e136317345b 100644 --- a/tests/unit/Config/Config/MergeCest.php +++ b/tests/unit/Config/Config/MergeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class MergeCest /** * Tests Phalcon\Config :: merge() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-15 */ public function configMergeConfig(UnitTester $I) @@ -41,7 +41,7 @@ public function configMergeConfig(UnitTester $I) /** * Tests Phalcon\Config :: merge() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-15 */ public function configMergeArr(UnitTester $I) @@ -133,7 +133,7 @@ public function testConfigMergeArray(UnitTester $I) /** * Tests merging complex config objects * - * @author Phalcon Team + * @author Phalcon Team * @since 2012-12-16 */ public function testConfigMergeComplexObjects(UnitTester $I) diff --git a/tests/unit/Config/Config/OffsetExistsCest.php b/tests/unit/Config/Config/OffsetExistsCest.php index 2700e1602ac..79493ec6610 100644 --- a/tests/unit/Config/Config/OffsetExistsCest.php +++ b/tests/unit/Config/Config/OffsetExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OffsetExistsCest /** * Tests Phalcon\Config :: offsetExists() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-19 */ public function configOffsetExists(UnitTester $I) diff --git a/tests/unit/Config/Config/OffsetGetCest.php b/tests/unit/Config/Config/OffsetGetCest.php index 0f444139bb3..5f68b1996e6 100644 --- a/tests/unit/Config/Config/OffsetGetCest.php +++ b/tests/unit/Config/Config/OffsetGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class OffsetGetCest /** * Tests Phalcon\Config :: offsetGet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-19 */ public function configOffsetGet(UnitTester $I) diff --git a/tests/unit/Config/Config/OffsetSetCest.php b/tests/unit/Config/Config/OffsetSetCest.php index 0b4e8fbf215..fc83effc968 100644 --- a/tests/unit/Config/Config/OffsetSetCest.php +++ b/tests/unit/Config/Config/OffsetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OffsetSetCest /** * Tests Phalcon\Config :: offsetSet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-19 */ public function configOffsetSet(UnitTester $I) diff --git a/tests/unit/Config/Config/OffsetUnsetCest.php b/tests/unit/Config/Config/OffsetUnsetCest.php index be20da178a8..03dad57a466 100644 --- a/tests/unit/Config/Config/OffsetUnsetCest.php +++ b/tests/unit/Config/Config/OffsetUnsetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OffsetUnsetCest /** * Tests Phalcon\Config :: offsetUnset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-19 */ public function configOffsetUnset(UnitTester $I) diff --git a/tests/unit/Config/Config/PathCest.php b/tests/unit/Config/Config/PathCest.php index c01034a9873..40fb61cb808 100644 --- a/tests/unit/Config/Config/PathCest.php +++ b/tests/unit/Config/Config/PathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class PathCest /** * Tests Phalcon\Config :: path() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-19 */ public function configPath(UnitTester $I) @@ -35,7 +35,7 @@ public function configPath(UnitTester $I) /** * Tests Phalcon\Config :: path() - default * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-19 */ public function configPathDefault(UnitTester $I) diff --git a/tests/unit/Config/Config/SetPathDelimiterCest.php b/tests/unit/Config/Config/SetPathDelimiterCest.php index 7270aeb7e50..4f177b4e3e9 100644 --- a/tests/unit/Config/Config/SetPathDelimiterCest.php +++ b/tests/unit/Config/Config/SetPathDelimiterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetPathDelimiterCest /** * Tests Phalcon\Config :: setPathDelimiter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-19 */ public function configSetPathDelimiter(UnitTester $I) diff --git a/tests/unit/Config/Config/ToArrayCest.php b/tests/unit/Config/Config/ToArrayCest.php index cccf054c8da..55766645e2b 100644 --- a/tests/unit/Config/Config/ToArrayCest.php +++ b/tests/unit/Config/Config/ToArrayCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ToArrayCest /** * Tests Phalcon\Config :: toArray() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-19 */ public function configToArray(UnitTester $I) diff --git a/tests/unit/Config/ConfigFactory/LoadCest.php b/tests/unit/Config/ConfigFactory/LoadCest.php index 1dfb1f4058d..9b1ff58c4ff 100644 --- a/tests/unit/Config/ConfigFactory/LoadCest.php +++ b/tests/unit/Config/ConfigFactory/LoadCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -97,7 +97,7 @@ public function configFactoryLoadString(UnitTester $I) /** * Tests Phalcon\Config\ConfigFactory :: load() - exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-19 */ public function configFactoryLoadException(UnitTester $I) @@ -150,7 +150,7 @@ function () { /** * Tests Phalcon\Config\ConfigFactory :: load() - yaml callback * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-19 */ public function configFactoryLoadYamlCallback(UnitTester $I) diff --git a/tests/unit/Config/ConfigFactory/NewInstanceCest.php b/tests/unit/Config/ConfigFactory/NewInstanceCest.php index b6fb03a45c5..b32959eb3ce 100644 --- a/tests/unit/Config/ConfigFactory/NewInstanceCest.php +++ b/tests/unit/Config/ConfigFactory/NewInstanceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class NewInstanceCest /** * Tests Phalcon\Logger\LoggerFactory :: newInstance() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-03 */ public function configFactoryNewInstance(UnitTester $I) diff --git a/tests/unit/Container/ConstructCest.php b/tests/unit/Container/ConstructCest.php index 6af09484e55..d6eb25f7458 100644 --- a/tests/unit/Container/ConstructCest.php +++ b/tests/unit/Container/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Container :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function containerConstruct(UnitTester $I) diff --git a/tests/unit/Container/GetCest.php b/tests/unit/Container/GetCest.php index 4735f35a018..ff16a600fa3 100644 --- a/tests/unit/Container/GetCest.php +++ b/tests/unit/Container/GetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class GetCest /** * Tests Phalcon\Container :: get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function containerGet(UnitTester $I) diff --git a/tests/unit/Container/HasCest.php b/tests/unit/Container/HasCest.php index 013bc0b9581..6c557e1880a 100644 --- a/tests/unit/Container/HasCest.php +++ b/tests/unit/Container/HasCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class HasCest /** * Tests Phalcon\Container :: has() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function containerHas(UnitTester $I) diff --git a/tests/unit/Crypt/ConstructCest.php b/tests/unit/Crypt/ConstructCest.php index a702fb7f272..1d3820b85b1 100644 --- a/tests/unit/Crypt/ConstructCest.php +++ b/tests/unit/Crypt/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ConstructCest /** * Tests Phalcon\Crypt :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cryptConstruct(UnitTester $I) @@ -47,7 +47,7 @@ public function cryptConstruct(UnitTester $I) /** * Tests the Crypt constants * - * @author Phalcon Team + * @author Phalcon Team * @since 2015-12-20 */ public function testCryptConstants(UnitTester $I) diff --git a/tests/unit/Crypt/DecryptBase64Cest.php b/tests/unit/Crypt/DecryptBase64Cest.php index a1b76a4a0fb..4ef15e24da1 100644 --- a/tests/unit/Crypt/DecryptBase64Cest.php +++ b/tests/unit/Crypt/DecryptBase64Cest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Crypt/DecryptCest.php b/tests/unit/Crypt/DecryptCest.php index df5ae450fc7..8621fd5555e 100644 --- a/tests/unit/Crypt/DecryptCest.php +++ b/tests/unit/Crypt/DecryptCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Crypt/EncryptBase64Cest.php b/tests/unit/Crypt/EncryptBase64Cest.php index 2f972a598e5..8dbbc45b157 100644 --- a/tests/unit/Crypt/EncryptBase64Cest.php +++ b/tests/unit/Crypt/EncryptBase64Cest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class EncryptBase64Cest /** * Tests Phalcon\Crypt :: encryptBase64() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-16 */ public function cryptEncryptBase64(UnitTester $I) diff --git a/tests/unit/Crypt/EncryptCest.php b/tests/unit/Crypt/EncryptCest.php index 3dbef343b27..ccd5596e941 100644 --- a/tests/unit/Crypt/EncryptCest.php +++ b/tests/unit/Crypt/EncryptCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class EncryptCest /** * Tests Phalcon\Crypt :: encrypt() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cryptEncrypt(UnitTester $I) @@ -84,7 +84,7 @@ public function cryptEncrypt(UnitTester $I) /** * Tests Phalcon\Crypt :: encrypt() - unsupported algo * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cryptEncryptException(UnitTester $I) @@ -106,7 +106,7 @@ function () { /** * Tests Phalcon\Crypt :: encrypt() - gcm * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-15 */ public function cryptEncryptGcm(UnitTester $I) diff --git a/tests/unit/Crypt/GetAuthDataCest.php b/tests/unit/Crypt/GetAuthDataCest.php index d0da5b4f2d2..6a5e6187ed3 100644 --- a/tests/unit/Crypt/GetAuthDataCest.php +++ b/tests/unit/Crypt/GetAuthDataCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetAuthDataCest /** * Unit Tests Phalcon\Crypt :: getAuthData() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function cryptGetAuthData(UnitTester $I) diff --git a/tests/unit/Crypt/GetAuthTagCest.php b/tests/unit/Crypt/GetAuthTagCest.php index 733bdb6c616..e0ce300fabb 100644 --- a/tests/unit/Crypt/GetAuthTagCest.php +++ b/tests/unit/Crypt/GetAuthTagCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetAuthTagCest /** * Unit Tests Phalcon\Crypt :: getAuthTag() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function cryptGetAuthTag(UnitTester $I) diff --git a/tests/unit/Crypt/GetAuthTagLengthCest.php b/tests/unit/Crypt/GetAuthTagLengthCest.php index 4d85bd57c84..36351f41cf4 100644 --- a/tests/unit/Crypt/GetAuthTagLengthCest.php +++ b/tests/unit/Crypt/GetAuthTagLengthCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetAuthTagLengthCest /** * Unit Tests Phalcon\Crypt :: getAuthTagLength() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function cryptGetAuthTagLength(UnitTester $I) diff --git a/tests/unit/Crypt/GetAvailableCiphersCest.php b/tests/unit/Crypt/GetAvailableCiphersCest.php index cc00c68e653..8a1e4a9d9b0 100644 --- a/tests/unit/Crypt/GetAvailableCiphersCest.php +++ b/tests/unit/Crypt/GetAvailableCiphersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetAvailableCiphersCest /** * Tests Phalcon\Crypt :: getAvailableCiphers() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cryptGetAvailableCiphers(UnitTester $I) diff --git a/tests/unit/Crypt/GetAvailableHashAlgosCest.php b/tests/unit/Crypt/GetAvailableHashAlgosCest.php index 4015c730395..1d027aead0b 100644 --- a/tests/unit/Crypt/GetAvailableHashAlgosCest.php +++ b/tests/unit/Crypt/GetAvailableHashAlgosCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetAvailableHashAlgosCest /** * Tests Phalcon\Crypt :: getAvailableHashAlgos() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cryptGetAvailableHashAlgos(UnitTester $I) diff --git a/tests/unit/Crypt/GetHashAlgoCest.php b/tests/unit/Crypt/GetHashAlgoCest.php index 95c571cf570..57befe51304 100644 --- a/tests/unit/Crypt/GetHashAlgoCest.php +++ b/tests/unit/Crypt/GetHashAlgoCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetHashAlgoCest /** * Tests Phalcon\Crypt :: getHashAlgo() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-16 */ public function cryptGetHashAlgo(UnitTester $I) diff --git a/tests/unit/Crypt/GetKeyCest.php b/tests/unit/Crypt/GetKeyCest.php index 40285686846..98a1332d080 100644 --- a/tests/unit/Crypt/GetKeyCest.php +++ b/tests/unit/Crypt/GetKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetKeyCest /** * Tests Phalcon\Crypt :: getKey() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-16 */ public function cryptGetKey(UnitTester $I) diff --git a/tests/unit/Crypt/GetSetCipherCest.php b/tests/unit/Crypt/GetSetCipherCest.php index 7f55748b0e5..52c0590d062 100644 --- a/tests/unit/Crypt/GetSetCipherCest.php +++ b/tests/unit/Crypt/GetSetCipherCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetSetCipherCest /** * Tests Phalcon\Crypt :: getCipher() / setCipher() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function cryptGetSetCipher(UnitTester $I) @@ -43,7 +43,7 @@ public function cryptGetSetCipher(UnitTester $I) /** * Tests the Crypt::setCipher * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-05-06 */ public function shouldThrowExceptionIfCipherIsUnknown(UnitTester $I) diff --git a/tests/unit/Crypt/SetAuthDataCest.php b/tests/unit/Crypt/SetAuthDataCest.php index 6388f4eec8f..1ad8bd640da 100644 --- a/tests/unit/Crypt/SetAuthDataCest.php +++ b/tests/unit/Crypt/SetAuthDataCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetAuthDataCest /** * Unit Tests Phalcon\Crypt :: setAuthData() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function cryptSetAuthData(UnitTester $I) diff --git a/tests/unit/Crypt/SetAuthTagCest.php b/tests/unit/Crypt/SetAuthTagCest.php index 528ae0c0de9..6bc16987e1d 100644 --- a/tests/unit/Crypt/SetAuthTagCest.php +++ b/tests/unit/Crypt/SetAuthTagCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetAuthTagCest /** * Unit Tests Phalcon\Crypt :: setAuthTag() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function cryptSetAuthTag(UnitTester $I) diff --git a/tests/unit/Crypt/SetAuthTagLengthCest.php b/tests/unit/Crypt/SetAuthTagLengthCest.php index 9bfda01e210..d02ac7029e7 100644 --- a/tests/unit/Crypt/SetAuthTagLengthCest.php +++ b/tests/unit/Crypt/SetAuthTagLengthCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetAuthTagLengthCest /** * Unit Tests Phalcon\Crypt :: setAuthTagLength() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function cryptSetAuthTagLength(UnitTester $I) diff --git a/tests/unit/Crypt/SetHashAlgoCest.php b/tests/unit/Crypt/SetHashAlgoCest.php index 6bd4a6f4403..37b25e2b7aa 100644 --- a/tests/unit/Crypt/SetHashAlgoCest.php +++ b/tests/unit/Crypt/SetHashAlgoCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetHashAlgoCest /** * Tests Phalcon\Crypt :: setHashAlgo() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-16 */ public function cryptSetHashAlgo(UnitTester $I) diff --git a/tests/unit/Crypt/SetKeyCest.php b/tests/unit/Crypt/SetKeyCest.php index bd905029e7f..dc49556c60e 100644 --- a/tests/unit/Crypt/SetKeyCest.php +++ b/tests/unit/Crypt/SetKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetKeyCest /** * Tests Phalcon\Crypt :: setKey() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-16 */ public function cryptSetKey(UnitTester $I) diff --git a/tests/unit/Crypt/SetPaddingCest.php b/tests/unit/Crypt/SetPaddingCest.php index 3cd1694a0d4..95ae5948a8b 100644 --- a/tests/unit/Crypt/SetPaddingCest.php +++ b/tests/unit/Crypt/SetPaddingCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetPaddingCest /** * Tests Phalcon\Crypt :: setPadding() * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-17 */ public function cryptSetPadding(UnitTester $I) diff --git a/tests/unit/Crypt/UseSigningCest.php b/tests/unit/Crypt/UseSigningCest.php index 597ca93998e..abe7b652881 100644 --- a/tests/unit/Crypt/UseSigningCest.php +++ b/tests/unit/Crypt/UseSigningCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class UseSigningCest /** * Tests Phalcon\Crypt :: useSigning() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-16 */ public function cryptUseSigning(UnitTester $I) diff --git a/tests/unit/Debug/ClearVarsCest.php b/tests/unit/Debug/ClearVarsCest.php index 19149e0d488..567ce59fe01 100644 --- a/tests/unit/Debug/ClearVarsCest.php +++ b/tests/unit/Debug/ClearVarsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ClearVarsCest /** * Tests Phalcon\Debug :: clearVars() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function debugClearVars(UnitTester $I) diff --git a/tests/unit/Debug/DebugVarCest.php b/tests/unit/Debug/DebugVarCest.php index cc3758a130b..ea2cfa45a8b 100644 --- a/tests/unit/Debug/DebugVarCest.php +++ b/tests/unit/Debug/DebugVarCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class DebugVarCest /** * Tests Phalcon\Debug :: debugVar() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function debugDebugVar(UnitTester $I) diff --git a/tests/unit/Debug/Dump/AllCest.php b/tests/unit/Debug/Dump/AllCest.php index 69dcb0318fd..89bf6e8e1eb 100644 --- a/tests/unit/Debug/Dump/AllCest.php +++ b/tests/unit/Debug/Dump/AllCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class AllCest /** * Tests Phalcon\Debug\Dump :: all() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function debugDumpAll(UnitTester $I) diff --git a/tests/unit/Debug/Dump/ConstructCest.php b/tests/unit/Debug/Dump/ConstructCest.php index a69a4961289..3280fd21466 100644 --- a/tests/unit/Debug/Dump/ConstructCest.php +++ b/tests/unit/Debug/Dump/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ class ConstructCest * @throws ReflectionException * @since 2014-10-23 * - * @author Phalcon Team + * @author Phalcon Team */ public function debugDumpConstructDump(UnitTester $I) { diff --git a/tests/unit/Debug/Dump/GetSetDetailedCest.php b/tests/unit/Debug/Dump/GetSetDetailedCest.php index 0bc05eac6f4..fbf109572ff 100644 --- a/tests/unit/Debug/Dump/GetSetDetailedCest.php +++ b/tests/unit/Debug/Dump/GetSetDetailedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetSetDetailedCest /** * Tests Phalcon\Debug\Dump :: getDetailed()/setDetailed() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function debugDumpGetSetDetailed(UnitTester $I) diff --git a/tests/unit/Debug/Dump/OneCest.php b/tests/unit/Debug/Dump/OneCest.php index 214e2dcdd85..b35a8527be3 100644 --- a/tests/unit/Debug/Dump/OneCest.php +++ b/tests/unit/Debug/Dump/OneCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class OneCest /** * Tests Phalcon\Debug\Dump :: one() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function debugDumpOne(UnitTester $I) @@ -46,7 +46,7 @@ public function debugDumpOne(UnitTester $I) /** * Tests Phalcon\Debug\Dump :: one() - name * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function debugDumpOneName(UnitTester $I) diff --git a/tests/unit/Debug/Dump/SetStylesCest.php b/tests/unit/Debug/Dump/SetStylesCest.php index 9eacc8fa78f..a729c64ab00 100644 --- a/tests/unit/Debug/Dump/SetStylesCest.php +++ b/tests/unit/Debug/Dump/SetStylesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class SetStylesCest * * @throws ReflectionException * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function debugDumpSetStyles(UnitTester $I) @@ -58,7 +58,7 @@ public function debugDumpSetStyles(UnitTester $I) * * @throws ReflectionException * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function debugDumpGetStyle(UnitTester $I) diff --git a/tests/unit/Debug/Dump/ToJsonCest.php b/tests/unit/Debug/Dump/ToJsonCest.php index 78d16556543..4c8b3fdfd3d 100644 --- a/tests/unit/Debug/Dump/ToJsonCest.php +++ b/tests/unit/Debug/Dump/ToJsonCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ToJsonCest /** * Tests Phalcon\Debug\Dump :: toJson() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function debugDumpToJson(UnitTester $I) diff --git a/tests/unit/Debug/Dump/VariableCest.php b/tests/unit/Debug/Dump/VariableCest.php index fc2d7d670aa..28ad8811e78 100644 --- a/tests/unit/Debug/Dump/VariableCest.php +++ b/tests/unit/Debug/Dump/VariableCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class VariableCest /** * Tests Phalcon\Debug\Dump :: variable() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function debugDumpVariable(UnitTester $I) @@ -46,7 +46,7 @@ public function debugDumpVariable(UnitTester $I) /** * Tests Phalcon\Debug\Dump :: variable() - name * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function debugDumpVariableName(UnitTester $I) diff --git a/tests/unit/Debug/Dump/VariablesCest.php b/tests/unit/Debug/Dump/VariablesCest.php index e349f6465b4..7c5f7371fe0 100644 --- a/tests/unit/Debug/Dump/VariablesCest.php +++ b/tests/unit/Debug/Dump/VariablesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class VariablesCest /** * Tests Phalcon\Debug\Dump :: variables() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function debugDumpVariables(UnitTester $I) diff --git a/tests/unit/Debug/GetCssSourcesCest.php b/tests/unit/Debug/GetCssSourcesCest.php index 0a63fb7f7dc..8a8ba08a043 100644 --- a/tests/unit/Debug/GetCssSourcesCest.php +++ b/tests/unit/Debug/GetCssSourcesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetCssSourcesCest /** * Tests Phalcon\Debug :: getCssSources() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function debugGetCssSources(UnitTester $I) diff --git a/tests/unit/Debug/GetJsSourcesCest.php b/tests/unit/Debug/GetJsSourcesCest.php index 6fda4c0fad0..1992b6b9448 100644 --- a/tests/unit/Debug/GetJsSourcesCest.php +++ b/tests/unit/Debug/GetJsSourcesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetJsSourcesCest /** * Tests Phalcon\Debug :: getJsSources() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function debugGetJsSources(UnitTester $I) diff --git a/tests/unit/Debug/GetVersionCest.php b/tests/unit/Debug/GetVersionCest.php index cd10db7da54..cef9291f278 100644 --- a/tests/unit/Debug/GetVersionCest.php +++ b/tests/unit/Debug/GetVersionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -29,7 +29,7 @@ public function _before(UnitTester $I) /** * Tests Phalcon\Debug :: getVersion() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function debugGetVersion(UnitTester $I) @@ -39,7 +39,7 @@ public function debugGetVersion(UnitTester $I) $debug = new Debug(); $target = '"_new"'; - $uri = '"https://docs.phalconphp.com/' + $uri = '"https://docs.phalcon.io/' . Version::getPart(Version::VERSION_MAJOR) . '.' . Version::getPart(Version::VERSION_MEDIUM) . '/en/"'; $version = Version::get(); diff --git a/tests/unit/Debug/HaltCest.php b/tests/unit/Debug/HaltCest.php index 8986ec74370..da88cc6c6fc 100644 --- a/tests/unit/Debug/HaltCest.php +++ b/tests/unit/Debug/HaltCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class HaltCest /** * Tests Phalcon\Debug :: halt() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function debugHalt(UnitTester $I) diff --git a/tests/unit/Debug/ListenCest.php b/tests/unit/Debug/ListenCest.php index d82bcf1fbe9..a23cb242990 100644 --- a/tests/unit/Debug/ListenCest.php +++ b/tests/unit/Debug/ListenCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ListenCest /** * Tests Phalcon\Debug :: listen() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function debugListen(UnitTester $I) diff --git a/tests/unit/Debug/ListenExceptionsCest.php b/tests/unit/Debug/ListenExceptionsCest.php index 7d9a516dd0d..021b3854966 100644 --- a/tests/unit/Debug/ListenExceptionsCest.php +++ b/tests/unit/Debug/ListenExceptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ListenExceptionsCest /** * Tests Phalcon\Debug :: listenExceptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function debugListenExceptions(UnitTester $I) diff --git a/tests/unit/Debug/ListenLowSeverityCest.php b/tests/unit/Debug/ListenLowSeverityCest.php index d8e5f1faae8..f3d7d33a128 100644 --- a/tests/unit/Debug/ListenLowSeverityCest.php +++ b/tests/unit/Debug/ListenLowSeverityCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ListenLowSeverityCest /** * Tests Phalcon\Debug :: listenLowSeverity() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function debugListenLowSeverity(UnitTester $I) diff --git a/tests/unit/Debug/OnUncaughtExceptionCest.php b/tests/unit/Debug/OnUncaughtExceptionCest.php index fbc8247e604..872a450271d 100644 --- a/tests/unit/Debug/OnUncaughtExceptionCest.php +++ b/tests/unit/Debug/OnUncaughtExceptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class OnUncaughtExceptionCest /** * Tests Phalcon\Debug :: onUncaughtException() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function debugOnUncaughtException(UnitTester $I) diff --git a/tests/unit/Debug/OnUncaughtLowSeverityCest.php b/tests/unit/Debug/OnUncaughtLowSeverityCest.php index e43ade8b9b8..9133f471fb5 100644 --- a/tests/unit/Debug/OnUncaughtLowSeverityCest.php +++ b/tests/unit/Debug/OnUncaughtLowSeverityCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class OnUncaughtLowSeverityCest /** * Tests Phalcon\Debug :: onUncaughtLowSeverity() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function debugOnUncaughtLowSeverity(UnitTester $I) diff --git a/tests/unit/Debug/SetBlacklistCest.php b/tests/unit/Debug/SetBlacklistCest.php index 3e66406f14e..2cb482d32c5 100644 --- a/tests/unit/Debug/SetBlacklistCest.php +++ b/tests/unit/Debug/SetBlacklistCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetBlacklistCest /** * Unit Tests Phalcon\Debug :: setBlacklist() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function debugSetBlacklist(UnitTester $I) diff --git a/tests/unit/Debug/SetShowBackTraceCest.php b/tests/unit/Debug/SetShowBackTraceCest.php index 90c3b6fc21c..b8bebcd10c0 100644 --- a/tests/unit/Debug/SetShowBackTraceCest.php +++ b/tests/unit/Debug/SetShowBackTraceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetShowBackTraceCest /** * Tests Phalcon\Debug :: setShowBackTrace() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function debugSetShowBackTrace(UnitTester $I) diff --git a/tests/unit/Debug/SetShowFileFragmentCest.php b/tests/unit/Debug/SetShowFileFragmentCest.php index ed30ca6106f..5558cf0b766 100644 --- a/tests/unit/Debug/SetShowFileFragmentCest.php +++ b/tests/unit/Debug/SetShowFileFragmentCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetShowFileFragmentCest /** * Tests Phalcon\Debug :: setShowFileFragment() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function debugSetShowFileFragment(UnitTester $I) diff --git a/tests/unit/Debug/SetShowFilesCest.php b/tests/unit/Debug/SetShowFilesCest.php index 2bd3ba92d0e..668a2d2a9c5 100644 --- a/tests/unit/Debug/SetShowFilesCest.php +++ b/tests/unit/Debug/SetShowFilesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetShowFilesCest /** * Tests Phalcon\Debug :: setShowFiles() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function debugSetShowFiles(UnitTester $I) diff --git a/tests/unit/Debug/SetUriCest.php b/tests/unit/Debug/SetUriCest.php index f7c39ac430d..76ce514b6cf 100644 --- a/tests/unit/Debug/SetUriCest.php +++ b/tests/unit/Debug/SetUriCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetUriCest /** * Tests Phalcon\Debug :: setUri() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function debugSetUri(UnitTester $I) diff --git a/tests/unit/Di/AttemptCest.php b/tests/unit/Di/AttemptCest.php index 02a6273ce22..b81d97d1cd7 100644 --- a/tests/unit/Di/AttemptCest.php +++ b/tests/unit/Di/AttemptCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AttemptCest /** * Tests Phalcon\Di :: attempt() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function diAttempt(UnitTester $I) diff --git a/tests/unit/Di/ConstructCest.php b/tests/unit/Di/ConstructCest.php index c321dbd363c..04f93584d67 100644 --- a/tests/unit/Di/ConstructCest.php +++ b/tests/unit/Di/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ConstructCest /** * Tests Phalcon\Di :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function diConstruct(UnitTester $I) diff --git a/tests/unit/Di/DiCest.php b/tests/unit/Di/DiCest.php index 275e6b8f66a..1fd42ac34a1 100644 --- a/tests/unit/Di/DiCest.php +++ b/tests/unit/Di/DiCest.php @@ -3,14 +3,14 @@ +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2017 Phalcon Team (https://phalconphp.com) | + | Copyright (c) 2011-2017 Phalcon Team (https://phalcon.io) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file 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. | + | to license@phalcon.io so we can send you a copy immediately. | +------------------------------------------------------------------------+ */ @@ -58,7 +58,7 @@ public function _before(UnitTester $I) /** * Tests registering a service via string * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-29 */ public function testSetString(UnitTester $I) @@ -77,7 +77,7 @@ public function testSetString(UnitTester $I) /** * Tests registering a service via anonymous function * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-29 */ public function testSetAnonymousFunction(UnitTester $I) @@ -98,7 +98,7 @@ function () { /** * Tests registering a service via array * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-29 */ public function testSetArray(UnitTester $I) @@ -119,7 +119,7 @@ public function testSetArray(UnitTester $I) /** * Tests registering a service in the services container via Di::attempt * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-29 */ public function testAttempt(UnitTester $I) @@ -159,7 +159,7 @@ function () { /** * Tests check a service in the services container via Di::has * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-29 */ public function testHas(UnitTester $I) @@ -183,7 +183,7 @@ function () { /** * Tests resolving shared service * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-29 */ public function testGetShared(UnitTester $I) @@ -210,7 +210,7 @@ function () { /** * Tests resolving service via magic __get * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-29 */ public function testMagicGetCall(UnitTester $I) @@ -229,7 +229,7 @@ public function testMagicGetCall(UnitTester $I) /** * Tests registering a service via magic __set * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-29 */ public function testMagicSetCall(UnitTester $I) @@ -247,7 +247,7 @@ public function testMagicSetCall(UnitTester $I) /** * Tests registering a service with parameters * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-29 */ public function testSetParameters(UnitTester $I) @@ -294,7 +294,7 @@ function ($v) { /** * Tests getting services * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-29 */ public function testGetServices(UnitTester $I) @@ -316,7 +316,7 @@ public function testGetServices(UnitTester $I) /** * Tests getting raw services * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-29 */ public function testGetRawService(UnitTester $I) @@ -332,7 +332,7 @@ public function testGetRawService(UnitTester $I) /** * Tests registering a services via array access * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-29 */ public function testRegisteringViaArrayAccess(UnitTester $I) @@ -348,7 +348,7 @@ public function testRegisteringViaArrayAccess(UnitTester $I) /** * Tests resolving a services via array access * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-29 */ public function testResolvingViaArrayAccess(UnitTester $I) @@ -367,7 +367,7 @@ public function testResolvingViaArrayAccess(UnitTester $I) /** * Tests getting non-existent service * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-29 */ public function testGettingNonExistentService(UnitTester $I) @@ -385,7 +385,7 @@ function () { /** * Tests the latest DI created * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-29 */ public function testGettingDiViaGetDefault(UnitTester $I) @@ -404,7 +404,7 @@ public function testGettingDiViaGetDefault(UnitTester $I) /** * Tests resolving a services via array access * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-29 */ public function testComplexInjection(UnitTester $I) diff --git a/tests/unit/Di/Exception/ConstructCest.php b/tests/unit/Di/Exception/ConstructCest.php index fd00c67f2b7..48ceb5b26f4 100644 --- a/tests/unit/Di/Exception/ConstructCest.php +++ b/tests/unit/Di/Exception/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ConstructCest /** * Unit Tests Phalcon\Di\Exception :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diExceptionConstruct(UnitTester $I) diff --git a/tests/unit/Di/Exception/ContainerServiceNotFoundCest.php b/tests/unit/Di/Exception/ContainerServiceNotFoundCest.php index f25e78b4dcb..d6f27c10d64 100644 --- a/tests/unit/Di/Exception/ContainerServiceNotFoundCest.php +++ b/tests/unit/Di/Exception/ContainerServiceNotFoundCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ContainerServiceNotFoundCest /** * Unit Tests Phalcon\Di\Exception :: containerServiceNotFound() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diExceptionContainerServiceNotFound(UnitTester $I) diff --git a/tests/unit/Di/Exception/GetCodeCest.php b/tests/unit/Di/Exception/GetCodeCest.php index 68d939394de..4d5a9df24e6 100644 --- a/tests/unit/Di/Exception/GetCodeCest.php +++ b/tests/unit/Di/Exception/GetCodeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetCodeCest /** * Unit Tests Phalcon\Di\Exception :: getCode() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diExceptionGetCode(UnitTester $I) diff --git a/tests/unit/Di/Exception/GetFileCest.php b/tests/unit/Di/Exception/GetFileCest.php index 2cc5cc342de..656936e1e7e 100644 --- a/tests/unit/Di/Exception/GetFileCest.php +++ b/tests/unit/Di/Exception/GetFileCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetFileCest /** * Unit Tests Phalcon\Di\Exception :: getFile() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diExceptionGetFile(UnitTester $I) diff --git a/tests/unit/Di/Exception/GetLineCest.php b/tests/unit/Di/Exception/GetLineCest.php index 581ad9a5396..e29a2580389 100644 --- a/tests/unit/Di/Exception/GetLineCest.php +++ b/tests/unit/Di/Exception/GetLineCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetLineCest /** * Unit Tests Phalcon\Di\Exception :: getLine() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diExceptionGetLine(UnitTester $I) diff --git a/tests/unit/Di/Exception/GetMessageCest.php b/tests/unit/Di/Exception/GetMessageCest.php index 12f425b6168..2c7f721dec1 100644 --- a/tests/unit/Di/Exception/GetMessageCest.php +++ b/tests/unit/Di/Exception/GetMessageCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetMessageCest /** * Unit Tests Phalcon\Di\Exception :: getMessage() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diExceptionGetMessage(UnitTester $I) diff --git a/tests/unit/Di/Exception/GetPreviousCest.php b/tests/unit/Di/Exception/GetPreviousCest.php index 4e06dc7b0c3..aee9ab088c6 100644 --- a/tests/unit/Di/Exception/GetPreviousCest.php +++ b/tests/unit/Di/Exception/GetPreviousCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetPreviousCest /** * Unit Tests Phalcon\Di\Exception :: getPrevious() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diExceptionGetPrevious(UnitTester $I) diff --git a/tests/unit/Di/Exception/GetTraceAsStringCest.php b/tests/unit/Di/Exception/GetTraceAsStringCest.php index f99ee79851e..9d770acc5aa 100644 --- a/tests/unit/Di/Exception/GetTraceAsStringCest.php +++ b/tests/unit/Di/Exception/GetTraceAsStringCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetTraceAsStringCest /** * Unit Tests Phalcon\Di\Exception :: getTraceAsString() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diExceptionGetTraceAsString(UnitTester $I) diff --git a/tests/unit/Di/Exception/GetTraceCest.php b/tests/unit/Di/Exception/GetTraceCest.php index 63bece4552a..b696c56b1b8 100644 --- a/tests/unit/Di/Exception/GetTraceCest.php +++ b/tests/unit/Di/Exception/GetTraceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetTraceCest /** * Unit Tests Phalcon\Di\Exception :: getTrace() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diExceptionGetTrace(UnitTester $I) diff --git a/tests/unit/Di/Exception/ServiceResolutionException/ConstructCest.php b/tests/unit/Di/Exception/ServiceResolutionException/ConstructCest.php index 8a51c4b1514..9d630e093f0 100644 --- a/tests/unit/Di/Exception/ServiceResolutionException/ConstructCest.php +++ b/tests/unit/Di/Exception/ServiceResolutionException/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ConstructCest * Unit Tests Phalcon\Di\Exception\ServiceResolutionException :: * __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diExceptionServiceResolutionExceptionConstruct(UnitTester $I) diff --git a/tests/unit/Di/Exception/ServiceResolutionException/ContainerServiceNotFoundCest.php b/tests/unit/Di/Exception/ServiceResolutionException/ContainerServiceNotFoundCest.php index 543fce2f286..77e0955bb91 100644 --- a/tests/unit/Di/Exception/ServiceResolutionException/ContainerServiceNotFoundCest.php +++ b/tests/unit/Di/Exception/ServiceResolutionException/ContainerServiceNotFoundCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ContainerServiceNotFoundCest * Unit Tests Phalcon\Di\Exception\ServiceResolutionException :: * containerServiceNotFound() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diExceptionServiceResolutionExceptionContainerServiceNotFound(UnitTester $I) diff --git a/tests/unit/Di/Exception/ServiceResolutionException/GetCodeCest.php b/tests/unit/Di/Exception/ServiceResolutionException/GetCodeCest.php index 7ba03547c18..b1ab19ca09c 100644 --- a/tests/unit/Di/Exception/ServiceResolutionException/GetCodeCest.php +++ b/tests/unit/Di/Exception/ServiceResolutionException/GetCodeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetCodeCest /** * Unit Tests Phalcon\Di\Exception\ServiceResolutionException :: getCode() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diExceptionServiceResolutionExceptionGetCode(UnitTester $I) diff --git a/tests/unit/Di/Exception/ServiceResolutionException/GetFileCest.php b/tests/unit/Di/Exception/ServiceResolutionException/GetFileCest.php index b95f3b69560..b60ec30d0e4 100644 --- a/tests/unit/Di/Exception/ServiceResolutionException/GetFileCest.php +++ b/tests/unit/Di/Exception/ServiceResolutionException/GetFileCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetFileCest /** * Unit Tests Phalcon\Di\Exception\ServiceResolutionException :: getFile() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diExceptionServiceResolutionExceptionGetFile(UnitTester $I) diff --git a/tests/unit/Di/Exception/ServiceResolutionException/GetLineCest.php b/tests/unit/Di/Exception/ServiceResolutionException/GetLineCest.php index ad11b382c5b..d88f5cb9e9f 100644 --- a/tests/unit/Di/Exception/ServiceResolutionException/GetLineCest.php +++ b/tests/unit/Di/Exception/ServiceResolutionException/GetLineCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetLineCest /** * Unit Tests Phalcon\Di\Exception\ServiceResolutionException :: getLine() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diExceptionServiceResolutionExceptionGetLine(UnitTester $I) diff --git a/tests/unit/Di/Exception/ServiceResolutionException/GetMessageCest.php b/tests/unit/Di/Exception/ServiceResolutionException/GetMessageCest.php index 46bd60b0598..6b3ff3594c8 100644 --- a/tests/unit/Di/Exception/ServiceResolutionException/GetMessageCest.php +++ b/tests/unit/Di/Exception/ServiceResolutionException/GetMessageCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetMessageCest * Unit Tests Phalcon\Di\Exception\ServiceResolutionException :: * getMessage() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diExceptionServiceResolutionExceptionGetMessage(UnitTester $I) diff --git a/tests/unit/Di/Exception/ServiceResolutionException/GetPreviousCest.php b/tests/unit/Di/Exception/ServiceResolutionException/GetPreviousCest.php index f60ea35661a..ea96f0e1584 100644 --- a/tests/unit/Di/Exception/ServiceResolutionException/GetPreviousCest.php +++ b/tests/unit/Di/Exception/ServiceResolutionException/GetPreviousCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetPreviousCest * Unit Tests Phalcon\Di\Exception\ServiceResolutionException :: * getPrevious() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diExceptionServiceResolutionExceptionGetPrevious(UnitTester $I) diff --git a/tests/unit/Di/Exception/ServiceResolutionException/GetTraceAsStringCest.php b/tests/unit/Di/Exception/ServiceResolutionException/GetTraceAsStringCest.php index 8c803ceb759..0ae6908063b 100644 --- a/tests/unit/Di/Exception/ServiceResolutionException/GetTraceAsStringCest.php +++ b/tests/unit/Di/Exception/ServiceResolutionException/GetTraceAsStringCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetTraceAsStringCest * Unit Tests Phalcon\Di\Exception\ServiceResolutionException :: * getTraceAsString() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diExceptionServiceResolutionExceptionGetTraceAsString(UnitTester $I) diff --git a/tests/unit/Di/Exception/ServiceResolutionException/GetTraceCest.php b/tests/unit/Di/Exception/ServiceResolutionException/GetTraceCest.php index bf12ad136d3..3f4e0dbd4e8 100644 --- a/tests/unit/Di/Exception/ServiceResolutionException/GetTraceCest.php +++ b/tests/unit/Di/Exception/ServiceResolutionException/GetTraceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetTraceCest /** * Unit Tests Phalcon\Di\Exception\ServiceResolutionException :: getTrace() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diExceptionServiceResolutionExceptionGetTrace(UnitTester $I) diff --git a/tests/unit/Di/Exception/ServiceResolutionException/ToStringCest.php b/tests/unit/Di/Exception/ServiceResolutionException/ToStringCest.php index fce0bc2d69d..4602a984f36 100644 --- a/tests/unit/Di/Exception/ServiceResolutionException/ToStringCest.php +++ b/tests/unit/Di/Exception/ServiceResolutionException/ToStringCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ToStringCest * Unit Tests Phalcon\Di\Exception\ServiceResolutionException :: * __toString() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diExceptionServiceResolutionExceptionToString(UnitTester $I) diff --git a/tests/unit/Di/Exception/ServiceResolutionException/WakeupCest.php b/tests/unit/Di/Exception/ServiceResolutionException/WakeupCest.php index 118198836e8..b66024a6a7b 100644 --- a/tests/unit/Di/Exception/ServiceResolutionException/WakeupCest.php +++ b/tests/unit/Di/Exception/ServiceResolutionException/WakeupCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class WakeupCest /** * Unit Tests Phalcon\Di\Exception\ServiceResolutionException :: __wakeup() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diExceptionServiceResolutionExceptionWakeup(UnitTester $I) diff --git a/tests/unit/Di/Exception/ToStringCest.php b/tests/unit/Di/Exception/ToStringCest.php index 9d6ece6537b..36c4c0f4227 100644 --- a/tests/unit/Di/Exception/ToStringCest.php +++ b/tests/unit/Di/Exception/ToStringCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ToStringCest /** * Unit Tests Phalcon\Di\Exception :: __toString() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diExceptionToString(UnitTester $I) diff --git a/tests/unit/Di/Exception/WakeupCest.php b/tests/unit/Di/Exception/WakeupCest.php index bb9c335d8b8..e415df14dcb 100644 --- a/tests/unit/Di/Exception/WakeupCest.php +++ b/tests/unit/Di/Exception/WakeupCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class WakeupCest /** * Unit Tests Phalcon\Di\Exception :: __wakeup() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diExceptionWakeup(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/AttemptCest.php b/tests/unit/Di/FactoryDefault/AttemptCest.php index 90dc8e7a320..51a52d58756 100644 --- a/tests/unit/Di/FactoryDefault/AttemptCest.php +++ b/tests/unit/Di/FactoryDefault/AttemptCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class AttemptCest /** * Unit Tests Phalcon\Di\FactoryDefault :: attempt() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultAttempt(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/Cli/AttemptCest.php b/tests/unit/Di/FactoryDefault/Cli/AttemptCest.php index 789d01bce5e..ddf70ac546c 100644 --- a/tests/unit/Di/FactoryDefault/Cli/AttemptCest.php +++ b/tests/unit/Di/FactoryDefault/Cli/AttemptCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class AttemptCest /** * Unit Tests Phalcon\Di\FactoryDefault\Cli :: attempt() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultCliAttempt(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/Cli/ConstructCest.php b/tests/unit/Di/FactoryDefault/Cli/ConstructCest.php index 3d4507ec8d6..c1dc08a2c03 100644 --- a/tests/unit/Di/FactoryDefault/Cli/ConstructCest.php +++ b/tests/unit/Di/FactoryDefault/Cli/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ class ConstructCest /** * Unit Tests Phalcon\Di\FactoryDefault\Cli :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultCliConstruct(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/Cli/GetCest.php b/tests/unit/Di/FactoryDefault/Cli/GetCest.php index cd1233987df..36d8c9e4886 100644 --- a/tests/unit/Di/FactoryDefault/Cli/GetCest.php +++ b/tests/unit/Di/FactoryDefault/Cli/GetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetCest /** * Unit Tests Phalcon\Di\FactoryDefault\Cli :: get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultCliGet(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/Cli/GetDefaultCest.php b/tests/unit/Di/FactoryDefault/Cli/GetDefaultCest.php index e5e5be87201..4f5d550c430 100644 --- a/tests/unit/Di/FactoryDefault/Cli/GetDefaultCest.php +++ b/tests/unit/Di/FactoryDefault/Cli/GetDefaultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetDefaultCest /** * Unit Tests Phalcon\Di\FactoryDefault\Cli :: getDefault() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultCliGetDefault(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/Cli/GetInternalEventsManagerCest.php b/tests/unit/Di/FactoryDefault/Cli/GetInternalEventsManagerCest.php index 04dba19c629..57ecf9e9011 100644 --- a/tests/unit/Di/FactoryDefault/Cli/GetInternalEventsManagerCest.php +++ b/tests/unit/Di/FactoryDefault/Cli/GetInternalEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetInternalEventsManagerCest /** * Unit Tests Phalcon\Di\FactoryDefault\Cli :: getInternalEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultCliGetInternalEventsManager(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/Cli/GetRawCest.php b/tests/unit/Di/FactoryDefault/Cli/GetRawCest.php index aec3e82f7b2..3bd6207cc2e 100644 --- a/tests/unit/Di/FactoryDefault/Cli/GetRawCest.php +++ b/tests/unit/Di/FactoryDefault/Cli/GetRawCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetRawCest /** * Unit Tests Phalcon\Di\FactoryDefault\Cli :: getRaw() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultCliGetRaw(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/Cli/GetServiceCest.php b/tests/unit/Di/FactoryDefault/Cli/GetServiceCest.php index 156c8651e21..281910d5cf8 100644 --- a/tests/unit/Di/FactoryDefault/Cli/GetServiceCest.php +++ b/tests/unit/Di/FactoryDefault/Cli/GetServiceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetServiceCest /** * Unit Tests Phalcon\Di\FactoryDefault\Cli :: getService() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultCliGetService(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/Cli/GetServicesCest.php b/tests/unit/Di/FactoryDefault/Cli/GetServicesCest.php index 735bb001b3e..1de5db55b15 100644 --- a/tests/unit/Di/FactoryDefault/Cli/GetServicesCest.php +++ b/tests/unit/Di/FactoryDefault/Cli/GetServicesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetServicesCest /** * Unit Tests Phalcon\Di\FactoryDefault\Cli :: getServices() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultCliGetServices(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/Cli/GetSharedCest.php b/tests/unit/Di/FactoryDefault/Cli/GetSharedCest.php index 5e98093d19d..c4215ae33c6 100644 --- a/tests/unit/Di/FactoryDefault/Cli/GetSharedCest.php +++ b/tests/unit/Di/FactoryDefault/Cli/GetSharedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetSharedCest /** * Unit Tests Phalcon\Di\FactoryDefault\Cli :: getShared() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultCliGetShared(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/Cli/HasCest.php b/tests/unit/Di/FactoryDefault/Cli/HasCest.php index 92e8e3c2550..ac0d2c6d6fc 100644 --- a/tests/unit/Di/FactoryDefault/Cli/HasCest.php +++ b/tests/unit/Di/FactoryDefault/Cli/HasCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class HasCest /** * Unit Tests Phalcon\Di\FactoryDefault\Cli :: has() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultCliHas(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/Cli/LoadFromPhpCest.php b/tests/unit/Di/FactoryDefault/Cli/LoadFromPhpCest.php index d8529e3dc8c..8fa8b4f10bb 100644 --- a/tests/unit/Di/FactoryDefault/Cli/LoadFromPhpCest.php +++ b/tests/unit/Di/FactoryDefault/Cli/LoadFromPhpCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class LoadFromPhpCest /** * Unit Tests Phalcon\Di\FactoryDefault\Cli :: loadFromPhp() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultCliLoadFromPhp(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/Cli/LoadFromYamlCest.php b/tests/unit/Di/FactoryDefault/Cli/LoadFromYamlCest.php index 66af27217f0..eca409a5f19 100644 --- a/tests/unit/Di/FactoryDefault/Cli/LoadFromYamlCest.php +++ b/tests/unit/Di/FactoryDefault/Cli/LoadFromYamlCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class LoadFromYamlCest /** * Unit Tests Phalcon\Di\FactoryDefault\Cli :: loadFromYaml() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultCliLoadFromYaml(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/Cli/OffsetExistsCest.php b/tests/unit/Di/FactoryDefault/Cli/OffsetExistsCest.php index 9f07f7ac8e8..5054f5edd6c 100644 --- a/tests/unit/Di/FactoryDefault/Cli/OffsetExistsCest.php +++ b/tests/unit/Di/FactoryDefault/Cli/OffsetExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class OffsetExistsCest /** * Unit Tests Phalcon\Di\FactoryDefault\Cli :: offsetExists() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultCliOffsetExists(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/Cli/OffsetGetCest.php b/tests/unit/Di/FactoryDefault/Cli/OffsetGetCest.php index e3c2f5f3903..a96c8dd7bf3 100644 --- a/tests/unit/Di/FactoryDefault/Cli/OffsetGetCest.php +++ b/tests/unit/Di/FactoryDefault/Cli/OffsetGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class OffsetGetCest /** * Unit Tests Phalcon\Di\FactoryDefault\Cli :: offsetGet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultCliOffsetGet(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/Cli/OffsetSetCest.php b/tests/unit/Di/FactoryDefault/Cli/OffsetSetCest.php index a3f0856b0e8..374ebe98dae 100644 --- a/tests/unit/Di/FactoryDefault/Cli/OffsetSetCest.php +++ b/tests/unit/Di/FactoryDefault/Cli/OffsetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class OffsetSetCest /** * Unit Tests Phalcon\Di\FactoryDefault\Cli :: offsetSet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultCliOffsetSet(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/Cli/OffsetUnsetCest.php b/tests/unit/Di/FactoryDefault/Cli/OffsetUnsetCest.php index b2bcb816fd8..735ffba86e4 100644 --- a/tests/unit/Di/FactoryDefault/Cli/OffsetUnsetCest.php +++ b/tests/unit/Di/FactoryDefault/Cli/OffsetUnsetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class OffsetUnsetCest /** * Unit Tests Phalcon\Di\FactoryDefault\Cli :: offsetUnset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultCliOffsetUnset(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/Cli/RegisterCest.php b/tests/unit/Di/FactoryDefault/Cli/RegisterCest.php index a076c510044..7675c80afde 100644 --- a/tests/unit/Di/FactoryDefault/Cli/RegisterCest.php +++ b/tests/unit/Di/FactoryDefault/Cli/RegisterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class RegisterCest /** * Unit Tests Phalcon\Di\FactoryDefault\Cli :: register() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultCliRegister(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/Cli/RemoveCest.php b/tests/unit/Di/FactoryDefault/Cli/RemoveCest.php index 413924022ff..aff55464727 100644 --- a/tests/unit/Di/FactoryDefault/Cli/RemoveCest.php +++ b/tests/unit/Di/FactoryDefault/Cli/RemoveCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class RemoveCest /** * Unit Tests Phalcon\Di\FactoryDefault\Cli :: remove() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultCliRemove(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/Cli/ResetCest.php b/tests/unit/Di/FactoryDefault/Cli/ResetCest.php index 9a9dad0f2d7..7f3094d150a 100644 --- a/tests/unit/Di/FactoryDefault/Cli/ResetCest.php +++ b/tests/unit/Di/FactoryDefault/Cli/ResetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ResetCest /** * Unit Tests Phalcon\Di\FactoryDefault\Cli :: reset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultCliReset(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/Cli/SetCest.php b/tests/unit/Di/FactoryDefault/Cli/SetCest.php index d6a3097e709..e91ba33527b 100644 --- a/tests/unit/Di/FactoryDefault/Cli/SetCest.php +++ b/tests/unit/Di/FactoryDefault/Cli/SetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetCest /** * Unit Tests Phalcon\Di\FactoryDefault\Cli :: set() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultCliSet(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/Cli/SetDefaultCest.php b/tests/unit/Di/FactoryDefault/Cli/SetDefaultCest.php index f8406ef9396..88eaa78edbe 100644 --- a/tests/unit/Di/FactoryDefault/Cli/SetDefaultCest.php +++ b/tests/unit/Di/FactoryDefault/Cli/SetDefaultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetDefaultCest /** * Unit Tests Phalcon\Di\FactoryDefault\Cli :: setDefault() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultCliSetDefault(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/Cli/SetInternalEventsManagerCest.php b/tests/unit/Di/FactoryDefault/Cli/SetInternalEventsManagerCest.php index d3e9fa8a22c..67c075388ef 100644 --- a/tests/unit/Di/FactoryDefault/Cli/SetInternalEventsManagerCest.php +++ b/tests/unit/Di/FactoryDefault/Cli/SetInternalEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetInternalEventsManagerCest /** * Unit Tests Phalcon\Di\FactoryDefault\Cli :: setInternalEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultCliSetInternalEventsManager(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/Cli/SetRawCest.php b/tests/unit/Di/FactoryDefault/Cli/SetRawCest.php index c1dec12e5aa..35bcf5368a8 100644 --- a/tests/unit/Di/FactoryDefault/Cli/SetRawCest.php +++ b/tests/unit/Di/FactoryDefault/Cli/SetRawCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetRawCest /** * Unit Tests Phalcon\Di\FactoryDefault\Cli :: setRaw() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultCliSetRaw(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/Cli/SetSharedCest.php b/tests/unit/Di/FactoryDefault/Cli/SetSharedCest.php index 3e9e82bacc2..61d24b6a9b3 100644 --- a/tests/unit/Di/FactoryDefault/Cli/SetSharedCest.php +++ b/tests/unit/Di/FactoryDefault/Cli/SetSharedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetSharedCest /** * Unit Tests Phalcon\Di\FactoryDefault\Cli :: setShared() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultCliSetShared(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/Cli/UnderscoreCallCest.php b/tests/unit/Di/FactoryDefault/Cli/UnderscoreCallCest.php index ffbb86bdfb2..d3afcb9939d 100644 --- a/tests/unit/Di/FactoryDefault/Cli/UnderscoreCallCest.php +++ b/tests/unit/Di/FactoryDefault/Cli/UnderscoreCallCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class UnderscoreCallCest /** * Unit Tests Phalcon\Di\FactoryDefault\Cli :: __call() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultCliUnderscoreCall(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/ConstructCest.php b/tests/unit/Di/FactoryDefault/ConstructCest.php index 0591ff4fb76..80a81d3cddb 100644 --- a/tests/unit/Di/FactoryDefault/ConstructCest.php +++ b/tests/unit/Di/FactoryDefault/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -40,7 +40,7 @@ class ConstructCest /** * Tests Phalcon\Di\FactoryDefault :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function diFactoryDefaultConstruct(UnitTester $I) @@ -159,7 +159,7 @@ private function getServices(): array /** * Tests Phalcon\Di\FactoryDefault :: __construct() - Check services * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider getServices diff --git a/tests/unit/Di/FactoryDefault/GetCest.php b/tests/unit/Di/FactoryDefault/GetCest.php index 01551ac49d9..aa4ff2b8886 100644 --- a/tests/unit/Di/FactoryDefault/GetCest.php +++ b/tests/unit/Di/FactoryDefault/GetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetCest /** * Unit Tests Phalcon\Di\FactoryDefault :: get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultGet(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/GetDefaultCest.php b/tests/unit/Di/FactoryDefault/GetDefaultCest.php index 29ccf425389..baba621e38e 100644 --- a/tests/unit/Di/FactoryDefault/GetDefaultCest.php +++ b/tests/unit/Di/FactoryDefault/GetDefaultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetDefaultCest /** * Unit Tests Phalcon\Di\FactoryDefault :: getDefault() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultGetDefault(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/GetInternalEventsManagerCest.php b/tests/unit/Di/FactoryDefault/GetInternalEventsManagerCest.php index 23b0f2ec736..3d06b6ef729 100644 --- a/tests/unit/Di/FactoryDefault/GetInternalEventsManagerCest.php +++ b/tests/unit/Di/FactoryDefault/GetInternalEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetInternalEventsManagerCest /** * Unit Tests Phalcon\Di\FactoryDefault :: getInternalEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultGetInternalEventsManager(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/GetRawCest.php b/tests/unit/Di/FactoryDefault/GetRawCest.php index 7f6ace4eeb3..81fca8a56df 100644 --- a/tests/unit/Di/FactoryDefault/GetRawCest.php +++ b/tests/unit/Di/FactoryDefault/GetRawCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetRawCest /** * Unit Tests Phalcon\Di\FactoryDefault :: getRaw() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultGetRaw(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/GetServiceCest.php b/tests/unit/Di/FactoryDefault/GetServiceCest.php index 7ce5350d53b..f0dae6f733f 100644 --- a/tests/unit/Di/FactoryDefault/GetServiceCest.php +++ b/tests/unit/Di/FactoryDefault/GetServiceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetServiceCest /** * Unit Tests Phalcon\Di\FactoryDefault :: getService() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultGetService(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/GetServicesCest.php b/tests/unit/Di/FactoryDefault/GetServicesCest.php index ad80f3e3220..a3280752985 100644 --- a/tests/unit/Di/FactoryDefault/GetServicesCest.php +++ b/tests/unit/Di/FactoryDefault/GetServicesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetServicesCest /** * Unit Tests Phalcon\Di\FactoryDefault :: getServices() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultGetServices(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/GetSharedCest.php b/tests/unit/Di/FactoryDefault/GetSharedCest.php index 84d03d448ff..733e5975e21 100644 --- a/tests/unit/Di/FactoryDefault/GetSharedCest.php +++ b/tests/unit/Di/FactoryDefault/GetSharedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetSharedCest /** * Unit Tests Phalcon\Di\FactoryDefault :: getShared() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultGetShared(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/HasCest.php b/tests/unit/Di/FactoryDefault/HasCest.php index 822c18e8538..ef294adf127 100644 --- a/tests/unit/Di/FactoryDefault/HasCest.php +++ b/tests/unit/Di/FactoryDefault/HasCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class HasCest /** * Unit Tests Phalcon\Di\FactoryDefault :: has() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultHas(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/LoadFromPhpCest.php b/tests/unit/Di/FactoryDefault/LoadFromPhpCest.php index d52021cec0e..85980356082 100644 --- a/tests/unit/Di/FactoryDefault/LoadFromPhpCest.php +++ b/tests/unit/Di/FactoryDefault/LoadFromPhpCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class LoadFromPhpCest /** * Unit Tests Phalcon\Di\FactoryDefault :: loadFromPhp() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultLoadFromPhp(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/LoadFromYamlCest.php b/tests/unit/Di/FactoryDefault/LoadFromYamlCest.php index 7b8538e31b2..1c86f54f81b 100644 --- a/tests/unit/Di/FactoryDefault/LoadFromYamlCest.php +++ b/tests/unit/Di/FactoryDefault/LoadFromYamlCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class LoadFromYamlCest /** * Unit Tests Phalcon\Di\FactoryDefault :: loadFromYaml() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultLoadFromYaml(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/OffsetExistsCest.php b/tests/unit/Di/FactoryDefault/OffsetExistsCest.php index 937f78d2e6f..6514a8baa6c 100644 --- a/tests/unit/Di/FactoryDefault/OffsetExistsCest.php +++ b/tests/unit/Di/FactoryDefault/OffsetExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class OffsetExistsCest /** * Unit Tests Phalcon\Di\FactoryDefault :: offsetExists() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultOffsetExists(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/OffsetGetCest.php b/tests/unit/Di/FactoryDefault/OffsetGetCest.php index b432fba9fca..4563cc5abf8 100644 --- a/tests/unit/Di/FactoryDefault/OffsetGetCest.php +++ b/tests/unit/Di/FactoryDefault/OffsetGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class OffsetGetCest /** * Unit Tests Phalcon\Di\FactoryDefault :: offsetGet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultOffsetGet(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/OffsetSetCest.php b/tests/unit/Di/FactoryDefault/OffsetSetCest.php index 3fd6437385b..a8ecbd6e78a 100644 --- a/tests/unit/Di/FactoryDefault/OffsetSetCest.php +++ b/tests/unit/Di/FactoryDefault/OffsetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class OffsetSetCest /** * Unit Tests Phalcon\Di\FactoryDefault :: offsetSet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultOffsetSet(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/OffsetUnsetCest.php b/tests/unit/Di/FactoryDefault/OffsetUnsetCest.php index 62c2ac063af..57f067920d0 100644 --- a/tests/unit/Di/FactoryDefault/OffsetUnsetCest.php +++ b/tests/unit/Di/FactoryDefault/OffsetUnsetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class OffsetUnsetCest /** * Unit Tests Phalcon\Di\FactoryDefault :: offsetUnset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultOffsetUnset(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/RegisterCest.php b/tests/unit/Di/FactoryDefault/RegisterCest.php index 15e7c9907b6..6d4f6007142 100644 --- a/tests/unit/Di/FactoryDefault/RegisterCest.php +++ b/tests/unit/Di/FactoryDefault/RegisterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class RegisterCest /** * Unit Tests Phalcon\Di\FactoryDefault :: register() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultRegister(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/RemoveCest.php b/tests/unit/Di/FactoryDefault/RemoveCest.php index fdc9be73576..10aabc8cea8 100644 --- a/tests/unit/Di/FactoryDefault/RemoveCest.php +++ b/tests/unit/Di/FactoryDefault/RemoveCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class RemoveCest /** * Unit Tests Phalcon\Di\FactoryDefault :: remove() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultRemove(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/ResetCest.php b/tests/unit/Di/FactoryDefault/ResetCest.php index 88530a15d02..35e1598a1dd 100644 --- a/tests/unit/Di/FactoryDefault/ResetCest.php +++ b/tests/unit/Di/FactoryDefault/ResetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ResetCest /** * Unit Tests Phalcon\Di\FactoryDefault :: reset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultReset(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/SetCest.php b/tests/unit/Di/FactoryDefault/SetCest.php index a9065b9ee95..817ae8a5104 100644 --- a/tests/unit/Di/FactoryDefault/SetCest.php +++ b/tests/unit/Di/FactoryDefault/SetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetCest /** * Unit Tests Phalcon\Di\FactoryDefault :: set() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultSet(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/SetDefaultCest.php b/tests/unit/Di/FactoryDefault/SetDefaultCest.php index 49487328fc7..0a6bbd7feb2 100644 --- a/tests/unit/Di/FactoryDefault/SetDefaultCest.php +++ b/tests/unit/Di/FactoryDefault/SetDefaultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetDefaultCest /** * Unit Tests Phalcon\Di\FactoryDefault :: setDefault() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultSetDefault(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/SetInternalEventsManagerCest.php b/tests/unit/Di/FactoryDefault/SetInternalEventsManagerCest.php index b43acb6d4e5..052a9175bf3 100644 --- a/tests/unit/Di/FactoryDefault/SetInternalEventsManagerCest.php +++ b/tests/unit/Di/FactoryDefault/SetInternalEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetInternalEventsManagerCest /** * Unit Tests Phalcon\Di\FactoryDefault :: setInternalEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultSetInternalEventsManager(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/SetRawCest.php b/tests/unit/Di/FactoryDefault/SetRawCest.php index 1ea70b1e850..9dcd0233088 100644 --- a/tests/unit/Di/FactoryDefault/SetRawCest.php +++ b/tests/unit/Di/FactoryDefault/SetRawCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetRawCest /** * Unit Tests Phalcon\Di\FactoryDefault :: setRaw() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultSetRaw(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/SetSharedCest.php b/tests/unit/Di/FactoryDefault/SetSharedCest.php index 2f19f4259e6..48cd0bc5910 100644 --- a/tests/unit/Di/FactoryDefault/SetSharedCest.php +++ b/tests/unit/Di/FactoryDefault/SetSharedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetSharedCest /** * Unit Tests Phalcon\Di\FactoryDefault :: setShared() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultSetShared(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/UnderscoreCallCest.php b/tests/unit/Di/FactoryDefault/UnderscoreCallCest.php index 90db0b554e4..1c5f10f34c6 100644 --- a/tests/unit/Di/FactoryDefault/UnderscoreCallCest.php +++ b/tests/unit/Di/FactoryDefault/UnderscoreCallCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class UnderscoreCallCest /** * Unit Tests Phalcon\Di\FactoryDefault :: __call() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diFactoryDefaultUnderscoreCall(UnitTester $I) diff --git a/tests/unit/Di/FactoryDefault/WasFreshInstanceCest.php b/tests/unit/Di/FactoryDefault/WasFreshInstanceCest.php index 37ffe64659e..77aec9e4a96 100644 --- a/tests/unit/Di/FactoryDefault/WasFreshInstanceCest.php +++ b/tests/unit/Di/FactoryDefault/WasFreshInstanceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class WasFreshInstanceCest /** * Tests Phalcon\Di\FactoryDefault :: wasFreshInstance() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function diFactoryDefaultWasFreshInstance(UnitTester $I) diff --git a/tests/unit/Di/GetCest.php b/tests/unit/Di/GetCest.php index cc4e3946d9a..6dacc930288 100644 --- a/tests/unit/Di/GetCest.php +++ b/tests/unit/Di/GetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class GetCest /** * Unit Tests Phalcon\Di :: get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diGet(UnitTester $I) diff --git a/tests/unit/Di/GetDefaultCest.php b/tests/unit/Di/GetDefaultCest.php index 8950b3fa106..b0e6878a0a0 100644 --- a/tests/unit/Di/GetDefaultCest.php +++ b/tests/unit/Di/GetDefaultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetDefaultCest /** * Unit Tests Phalcon\Di :: getDefault() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diGetDefault(UnitTester $I) diff --git a/tests/unit/Di/GetInternalEventsManagerCest.php b/tests/unit/Di/GetInternalEventsManagerCest.php index a470ad61df9..fdfc912eec2 100644 --- a/tests/unit/Di/GetInternalEventsManagerCest.php +++ b/tests/unit/Di/GetInternalEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetInternalEventsManagerCest /** * Unit Tests Phalcon\Di :: getInternalEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diGetInternalEventsManager(UnitTester $I) diff --git a/tests/unit/Di/GetRawCest.php b/tests/unit/Di/GetRawCest.php index 90f23137007..29a66d99124 100644 --- a/tests/unit/Di/GetRawCest.php +++ b/tests/unit/Di/GetRawCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetRawCest /** * Tests Phalcon\Di :: getRaw() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function diGetRaw(UnitTester $I) diff --git a/tests/unit/Di/GetServiceCest.php b/tests/unit/Di/GetServiceCest.php index f94dda0987d..1d86f7fcf15 100644 --- a/tests/unit/Di/GetServiceCest.php +++ b/tests/unit/Di/GetServiceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class GetServiceCest /** * Unit Tests Phalcon\Di :: getService() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diGetService(UnitTester $I) diff --git a/tests/unit/Di/GetServicesCest.php b/tests/unit/Di/GetServicesCest.php index fecd4c3f001..cf426d16736 100644 --- a/tests/unit/Di/GetServicesCest.php +++ b/tests/unit/Di/GetServicesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetServicesCest /** * Unit Tests Phalcon\Di :: getServices() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diGetServices(UnitTester $I) diff --git a/tests/unit/Di/GetSetDefaultCest.php b/tests/unit/Di/GetSetDefaultCest.php index c9efabbe523..55a062f05f3 100644 --- a/tests/unit/Di/GetSetDefaultCest.php +++ b/tests/unit/Di/GetSetDefaultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Di/GetSharedCest.php b/tests/unit/Di/GetSharedCest.php index 98c0bfd90fd..3cddb0ed963 100644 --- a/tests/unit/Di/GetSharedCest.php +++ b/tests/unit/Di/GetSharedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetSharedCest /** * Tests Phalcon\Di :: getShared() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function diGetShared(UnitTester $I) diff --git a/tests/unit/Di/HasCest.php b/tests/unit/Di/HasCest.php index d7dd7283891..58d84a553fa 100644 --- a/tests/unit/Di/HasCest.php +++ b/tests/unit/Di/HasCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Di/Injectable/GetDICest.php b/tests/unit/Di/Injectable/GetDICest.php index b6ea653f6b0..87de82e47c9 100644 --- a/tests/unit/Di/Injectable/GetDICest.php +++ b/tests/unit/Di/Injectable/GetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetDICest /** * Unit Tests Phalcon\Di\Injectable :: getDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diInjectableGetDI(UnitTester $I) diff --git a/tests/unit/Di/Injectable/GetEventsManagerCest.php b/tests/unit/Di/Injectable/GetEventsManagerCest.php index 2b6f7b3749a..ed3380350b4 100644 --- a/tests/unit/Di/Injectable/GetEventsManagerCest.php +++ b/tests/unit/Di/Injectable/GetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetEventsManagerCest /** * Unit Tests Phalcon\Di\Injectable :: getEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diInjectableGetEventsManager(UnitTester $I) diff --git a/tests/unit/Di/Injectable/SetDICest.php b/tests/unit/Di/Injectable/SetDICest.php index e300f8975b8..7fa90086000 100644 --- a/tests/unit/Di/Injectable/SetDICest.php +++ b/tests/unit/Di/Injectable/SetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetDICest /** * Unit Tests Phalcon\Di\Injectable :: setDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diInjectableSetDI(UnitTester $I) diff --git a/tests/unit/Di/Injectable/SetEventsManagerCest.php b/tests/unit/Di/Injectable/SetEventsManagerCest.php index 41d41572bfc..de38184ceba 100644 --- a/tests/unit/Di/Injectable/SetEventsManagerCest.php +++ b/tests/unit/Di/Injectable/SetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetEventsManagerCest /** * Unit Tests Phalcon\Di\Injectable :: setEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diInjectableSetEventsManager(UnitTester $I) diff --git a/tests/unit/Di/Injectable/UnderscoreGetCest.php b/tests/unit/Di/Injectable/UnderscoreGetCest.php index 83da6ad8207..c44a9ecd847 100644 --- a/tests/unit/Di/Injectable/UnderscoreGetCest.php +++ b/tests/unit/Di/Injectable/UnderscoreGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class UnderscoreGetCest /** * Unit Tests Phalcon\Di\Injectable :: __get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diInjectableUnderscoreGet(UnitTester $I) diff --git a/tests/unit/Di/LoadFromPhpCest.php b/tests/unit/Di/LoadFromPhpCest.php index 71a0e7f01b4..d938f06567b 100644 --- a/tests/unit/Di/LoadFromPhpCest.php +++ b/tests/unit/Di/LoadFromPhpCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class LoadFromPhpCest /** * Unit Tests Phalcon\Di :: loadFromPhp() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diLoadFromPhp(UnitTester $I) diff --git a/tests/unit/Di/LoadFromYamlCest.php b/tests/unit/Di/LoadFromYamlCest.php index 44fb61db396..d0f5f98cded 100644 --- a/tests/unit/Di/LoadFromYamlCest.php +++ b/tests/unit/Di/LoadFromYamlCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class LoadFromYamlCest /** * Unit Tests Phalcon\Di :: loadFromYaml() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diLoadFromYaml(UnitTester $I) diff --git a/tests/unit/Di/OffsetExistsCest.php b/tests/unit/Di/OffsetExistsCest.php index c4c006fe720..0ea11525741 100644 --- a/tests/unit/Di/OffsetExistsCest.php +++ b/tests/unit/Di/OffsetExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Di/OffsetGetCest.php b/tests/unit/Di/OffsetGetCest.php index de2b062c865..dfce7511185 100644 --- a/tests/unit/Di/OffsetGetCest.php +++ b/tests/unit/Di/OffsetGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OffsetGetCest /** * Unit Tests Phalcon\Di :: offsetGet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diOffsetGet(UnitTester $I) diff --git a/tests/unit/Di/OffsetSetCest.php b/tests/unit/Di/OffsetSetCest.php index f2f179d0d91..430006e8692 100644 --- a/tests/unit/Di/OffsetSetCest.php +++ b/tests/unit/Di/OffsetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class OffsetSetCest /** * Unit Tests Phalcon\Di :: offsetSet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diOffsetSet(UnitTester $I) diff --git a/tests/unit/Di/OffsetUnsetCest.php b/tests/unit/Di/OffsetUnsetCest.php index fc8332781d6..18b41ff110c 100644 --- a/tests/unit/Di/OffsetUnsetCest.php +++ b/tests/unit/Di/OffsetUnsetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Di/RegisterCest.php b/tests/unit/Di/RegisterCest.php index 7cf09adbe52..d6a3ab1e143 100644 --- a/tests/unit/Di/RegisterCest.php +++ b/tests/unit/Di/RegisterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class RegisterCest /** * Unit Tests Phalcon\Di :: register() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diRegister(UnitTester $I) diff --git a/tests/unit/Di/RemoveCest.php b/tests/unit/Di/RemoveCest.php index 626418018ee..9f6565dd9cd 100644 --- a/tests/unit/Di/RemoveCest.php +++ b/tests/unit/Di/RemoveCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Di/ResetCest.php b/tests/unit/Di/ResetCest.php index 309b44d7515..8189ed224cb 100644 --- a/tests/unit/Di/ResetCest.php +++ b/tests/unit/Di/ResetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ResetCest /** * Unit Tests Phalcon\Di :: reset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diReset(UnitTester $I) diff --git a/tests/unit/Di/Service/Builder/BuildCest.php b/tests/unit/Di/Service/Builder/BuildCest.php index 94041fcf169..0b01c2629e0 100644 --- a/tests/unit/Di/Service/Builder/BuildCest.php +++ b/tests/unit/Di/Service/Builder/BuildCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class BuildCest /** * Unit Tests Phalcon\Di\Service\Builder :: build() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diServiceBuilderBuild(UnitTester $I) diff --git a/tests/unit/Di/Service/ConstructCest.php b/tests/unit/Di/Service/ConstructCest.php index d60229701f5..e6bdf094775 100644 --- a/tests/unit/Di/Service/ConstructCest.php +++ b/tests/unit/Di/Service/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ConstructCest /** * Unit Tests Phalcon\Di\Service :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diServiceConstruct(UnitTester $I) diff --git a/tests/unit/Di/Service/GetDefinitionCest.php b/tests/unit/Di/Service/GetDefinitionCest.php index bf58dce046d..9f8617a60bd 100644 --- a/tests/unit/Di/Service/GetDefinitionCest.php +++ b/tests/unit/Di/Service/GetDefinitionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Di/Service/GetNameCest.php b/tests/unit/Di/Service/GetNameCest.php index 0e487278175..44e5506e023 100644 --- a/tests/unit/Di/Service/GetNameCest.php +++ b/tests/unit/Di/Service/GetNameCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -18,7 +18,7 @@ class GetNameCest /** * Tests Phalcon\Di\Service :: getName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function testGetName(UnitTester $I) diff --git a/tests/unit/Di/Service/GetParameterCest.php b/tests/unit/Di/Service/GetParameterCest.php index ba5950b8b82..9f5e7551fdc 100644 --- a/tests/unit/Di/Service/GetParameterCest.php +++ b/tests/unit/Di/Service/GetParameterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetParameterCest /** * Unit Tests Phalcon\Di\Service :: getParameter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diServiceGetParameter(UnitTester $I) diff --git a/tests/unit/Di/Service/IsResolvedCest.php b/tests/unit/Di/Service/IsResolvedCest.php index d0d1647552c..99ec24337d2 100644 --- a/tests/unit/Di/Service/IsResolvedCest.php +++ b/tests/unit/Di/Service/IsResolvedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class IsResolvedCest /** * Unit Tests Phalcon\Di\Service :: isResolved() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diServiceIsResolved(UnitTester $I) diff --git a/tests/unit/Di/Service/IsSharedCest.php b/tests/unit/Di/Service/IsSharedCest.php index 65c0b7c72fb..60121860d1b 100644 --- a/tests/unit/Di/Service/IsSharedCest.php +++ b/tests/unit/Di/Service/IsSharedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Di/Service/ResolveCest.php b/tests/unit/Di/Service/ResolveCest.php index 230977aa7ab..1de24f283b6 100644 --- a/tests/unit/Di/Service/ResolveCest.php +++ b/tests/unit/Di/Service/ResolveCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ResolveCest /** * Unit Tests Phalcon\Di\Service :: resolve() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diServiceResolve(UnitTester $I) diff --git a/tests/unit/Di/Service/SetDefinitionCest.php b/tests/unit/Di/Service/SetDefinitionCest.php index 855eaa769da..34a0afb1eac 100644 --- a/tests/unit/Di/Service/SetDefinitionCest.php +++ b/tests/unit/Di/Service/SetDefinitionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetDefinitionCest /** * Unit Tests Phalcon\Di\Service :: setDefinition() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diServiceSetDefinition(UnitTester $I) diff --git a/tests/unit/Di/Service/SetParameterCest.php b/tests/unit/Di/Service/SetParameterCest.php index 5b57596ba08..c2fe52bf196 100644 --- a/tests/unit/Di/Service/SetParameterCest.php +++ b/tests/unit/Di/Service/SetParameterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetParameterCest /** * Unit Tests Phalcon\Di\Service :: setParameter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diServiceSetParameter(UnitTester $I) diff --git a/tests/unit/Di/Service/SetSharedCest.php b/tests/unit/Di/Service/SetSharedCest.php index 7a047516af6..133f10c3101 100644 --- a/tests/unit/Di/Service/SetSharedCest.php +++ b/tests/unit/Di/Service/SetSharedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Di/Service/SetSharedInstanceCest.php b/tests/unit/Di/Service/SetSharedInstanceCest.php index fad1aacdb15..098787e89e0 100644 --- a/tests/unit/Di/Service/SetSharedInstanceCest.php +++ b/tests/unit/Di/Service/SetSharedInstanceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetSharedInstanceCest /** * Unit Tests Phalcon\Di\Service :: setSharedInstance() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diServiceSetSharedInstance(UnitTester $I) diff --git a/tests/unit/Di/ServiceCest.php b/tests/unit/Di/ServiceCest.php index 1b20b1b0f01..ce9228cfb0c 100644 --- a/tests/unit/Di/ServiceCest.php +++ b/tests/unit/Di/ServiceCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ServiceCest /** * Tests resolving service * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-29 */ public function testResolvingService(UnitTester $I) diff --git a/tests/unit/Di/SetCest.php b/tests/unit/Di/SetCest.php index b2fd9017849..c73e345fa53 100644 --- a/tests/unit/Di/SetCest.php +++ b/tests/unit/Di/SetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetCest /** * Unit Tests Phalcon\Di :: set() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diSet(UnitTester $I) diff --git a/tests/unit/Di/SetDefaultCest.php b/tests/unit/Di/SetDefaultCest.php index 50b76b0281b..2a57756a8eb 100644 --- a/tests/unit/Di/SetDefaultCest.php +++ b/tests/unit/Di/SetDefaultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetDefaultCest /** * Unit Tests Phalcon\Di :: setDefault() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diSetDefault(UnitTester $I) diff --git a/tests/unit/Di/SetInternalEventsManagerCest.php b/tests/unit/Di/SetInternalEventsManagerCest.php index f42700b87d4..292f0490309 100644 --- a/tests/unit/Di/SetInternalEventsManagerCest.php +++ b/tests/unit/Di/SetInternalEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetInternalEventsManagerCest /** * Unit Tests Phalcon\Di :: setInternalEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diSetInternalEventsManager(UnitTester $I) diff --git a/tests/unit/Di/SetRawCest.php b/tests/unit/Di/SetRawCest.php index 4dad4ccfade..903de080682 100644 --- a/tests/unit/Di/SetRawCest.php +++ b/tests/unit/Di/SetRawCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetRawCest /** * Unit Tests Phalcon\Di :: setRaw() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diSetRaw(UnitTester $I) diff --git a/tests/unit/Di/SetSharedCest.php b/tests/unit/Di/SetSharedCest.php index 5520447d077..8cfc9967cc0 100644 --- a/tests/unit/Di/SetSharedCest.php +++ b/tests/unit/Di/SetSharedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class SetSharedCest /** * Unit Tests Phalcon\Di :: setShared() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-13 */ public function diSetShared(UnitTester $I) diff --git a/tests/unit/Di/UnderscoreCallCest.php b/tests/unit/Di/UnderscoreCallCest.php index 66e00cf2670..929b52f8599 100644 --- a/tests/unit/Di/UnderscoreCallCest.php +++ b/tests/unit/Di/UnderscoreCallCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class UnderscoreCallCest /** * Tests Phalcon\Di :: __call() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function testUnderscoreCall(UnitTester $I) diff --git a/tests/unit/Dispatcher/CallActionMethodCest.php b/tests/unit/Dispatcher/CallActionMethodCest.php index a9d64bacb4d..d75c8081150 100644 --- a/tests/unit/Dispatcher/CallActionMethodCest.php +++ b/tests/unit/Dispatcher/CallActionMethodCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class CallActionMethodCest /** * Tests Phalcon\Dispatcher :: callActionMethod() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dispatcherCallActionMethod(UnitTester $I) diff --git a/tests/unit/Dispatcher/DispatchCest.php b/tests/unit/Dispatcher/DispatchCest.php index 2ec7369c307..8798e360739 100644 --- a/tests/unit/Dispatcher/DispatchCest.php +++ b/tests/unit/Dispatcher/DispatchCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class DispatchCest /** * Tests Phalcon\Dispatcher :: dispatch() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dispatcherDispatch(UnitTester $I) diff --git a/tests/unit/Dispatcher/ForwardCest.php b/tests/unit/Dispatcher/ForwardCest.php index bf8b644b2a1..546f5b5713d 100644 --- a/tests/unit/Dispatcher/ForwardCest.php +++ b/tests/unit/Dispatcher/ForwardCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ForwardCest /** * Tests Phalcon\Dispatcher :: forward() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dispatcherForward(UnitTester $I) diff --git a/tests/unit/Dispatcher/GetActionNameCest.php b/tests/unit/Dispatcher/GetActionNameCest.php index 71d8b56f10d..652e0a98785 100644 --- a/tests/unit/Dispatcher/GetActionNameCest.php +++ b/tests/unit/Dispatcher/GetActionNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetActionNameCest /** * Tests Phalcon\Dispatcher :: getActionName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dispatcherGetActionName(UnitTester $I) diff --git a/tests/unit/Dispatcher/GetActionSuffixCest.php b/tests/unit/Dispatcher/GetActionSuffixCest.php index ae79da17e51..57f9c80cd3a 100644 --- a/tests/unit/Dispatcher/GetActionSuffixCest.php +++ b/tests/unit/Dispatcher/GetActionSuffixCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetActionSuffixCest /** * Tests Phalcon\Dispatcher :: getActionSuffix() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dispatcherGetActionSuffix(UnitTester $I) diff --git a/tests/unit/Dispatcher/GetActiveMethodCest.php b/tests/unit/Dispatcher/GetActiveMethodCest.php index 84dabec8d11..9e2b174b483 100644 --- a/tests/unit/Dispatcher/GetActiveMethodCest.php +++ b/tests/unit/Dispatcher/GetActiveMethodCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetActiveMethodCest /** * Tests Phalcon\Dispatcher :: getActiveMethod() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider dispatcherGetActiveMethodProvider diff --git a/tests/unit/Dispatcher/GetBoundModelsCest.php b/tests/unit/Dispatcher/GetBoundModelsCest.php index a5ebdb4f57d..94642f2cbea 100644 --- a/tests/unit/Dispatcher/GetBoundModelsCest.php +++ b/tests/unit/Dispatcher/GetBoundModelsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetBoundModelsCest /** * Tests Phalcon\Dispatcher :: getBoundModels() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dispatcherGetBoundModels(UnitTester $I) diff --git a/tests/unit/Dispatcher/GetDICest.php b/tests/unit/Dispatcher/GetDICest.php index 2b5f5bf677c..93eae8f2cd4 100644 --- a/tests/unit/Dispatcher/GetDICest.php +++ b/tests/unit/Dispatcher/GetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetDICest /** * Tests Phalcon\Dispatcher :: getDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dispatcherGetDI(UnitTester $I) diff --git a/tests/unit/Dispatcher/GetDefaultNamespaceCest.php b/tests/unit/Dispatcher/GetDefaultNamespaceCest.php index e0214d9d141..cbe44330e23 100644 --- a/tests/unit/Dispatcher/GetDefaultNamespaceCest.php +++ b/tests/unit/Dispatcher/GetDefaultNamespaceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetDefaultNamespaceCest /** * Tests Phalcon\Dispatcher :: getDefaultNamespace() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dispatcherGetDefaultNamespace(UnitTester $I) diff --git a/tests/unit/Dispatcher/GetEventsManagerCest.php b/tests/unit/Dispatcher/GetEventsManagerCest.php index f49b3e6c8d5..8cbd58dcf9a 100644 --- a/tests/unit/Dispatcher/GetEventsManagerCest.php +++ b/tests/unit/Dispatcher/GetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetEventsManagerCest /** * Tests Phalcon\Dispatcher :: getEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dispatcherGetEventsManager(UnitTester $I) diff --git a/tests/unit/Dispatcher/GetHandlerClassCest.php b/tests/unit/Dispatcher/GetHandlerClassCest.php index 3ad4ec36455..45412cde2c7 100644 --- a/tests/unit/Dispatcher/GetHandlerClassCest.php +++ b/tests/unit/Dispatcher/GetHandlerClassCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class GetHandlerClassCest * * @dataProvider getTestCases * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dispatcherGetHandlerClass(UnitTester $I, Example $example) diff --git a/tests/unit/Dispatcher/GetHandlerSuffixCest.php b/tests/unit/Dispatcher/GetHandlerSuffixCest.php index c1674df61ec..a74a159822f 100644 --- a/tests/unit/Dispatcher/GetHandlerSuffixCest.php +++ b/tests/unit/Dispatcher/GetHandlerSuffixCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetHandlerSuffixCest /** * Tests Phalcon\Dispatcher :: getHandlerSuffix() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dispatcherGetHandlerSuffix(UnitTester $I) diff --git a/tests/unit/Dispatcher/GetModelBinderCest.php b/tests/unit/Dispatcher/GetModelBinderCest.php index f8b3087476e..c973b6cb6a1 100644 --- a/tests/unit/Dispatcher/GetModelBinderCest.php +++ b/tests/unit/Dispatcher/GetModelBinderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetModelBinderCest /** * Tests Phalcon\Dispatcher :: getModelBinder() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dispatcherGetModelBinder(UnitTester $I) diff --git a/tests/unit/Dispatcher/GetModuleNameCest.php b/tests/unit/Dispatcher/GetModuleNameCest.php index 90141d9c222..61ffcfb90cc 100644 --- a/tests/unit/Dispatcher/GetModuleNameCest.php +++ b/tests/unit/Dispatcher/GetModuleNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetModuleNameCest /** * Tests Phalcon\Dispatcher :: getModuleName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dispatcherGetModuleName(UnitTester $I) diff --git a/tests/unit/Dispatcher/GetNamespaceNameCest.php b/tests/unit/Dispatcher/GetNamespaceNameCest.php index 1485b7ddbee..c15e474ff33 100644 --- a/tests/unit/Dispatcher/GetNamespaceNameCest.php +++ b/tests/unit/Dispatcher/GetNamespaceNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetNamespaceNameCest /** * Tests Phalcon\Dispatcher :: getNamespaceName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dispatcherGetNamespaceName(UnitTester $I) diff --git a/tests/unit/Dispatcher/GetParamCest.php b/tests/unit/Dispatcher/GetParamCest.php index b199d59636d..66e28e3bae5 100644 --- a/tests/unit/Dispatcher/GetParamCest.php +++ b/tests/unit/Dispatcher/GetParamCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetParamCest /** * Tests Phalcon\Dispatcher :: getParam() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dispatcherGetParam(UnitTester $I) diff --git a/tests/unit/Dispatcher/GetParamsCest.php b/tests/unit/Dispatcher/GetParamsCest.php index f3a16124e22..501bb339a0d 100644 --- a/tests/unit/Dispatcher/GetParamsCest.php +++ b/tests/unit/Dispatcher/GetParamsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetParamsCest /** * Tests Phalcon\Dispatcher :: getParams() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dispatcherGetParams(UnitTester $I) diff --git a/tests/unit/Dispatcher/GetReturnedValueCest.php b/tests/unit/Dispatcher/GetReturnedValueCest.php index ee3a96edc0a..b6e20a8286b 100644 --- a/tests/unit/Dispatcher/GetReturnedValueCest.php +++ b/tests/unit/Dispatcher/GetReturnedValueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetReturnedValueCest /** * Tests Phalcon\Dispatcher :: getReturnedValue() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dispatcherGetReturnedValue(UnitTester $I) diff --git a/tests/unit/Dispatcher/HasParamCest.php b/tests/unit/Dispatcher/HasParamCest.php index b26dc2aeb9d..ecb293e7ab7 100644 --- a/tests/unit/Dispatcher/HasParamCest.php +++ b/tests/unit/Dispatcher/HasParamCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class HasParamCest /** * Tests Phalcon\Dispatcher :: hasParam() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dispatcherHasParam(UnitTester $I) diff --git a/tests/unit/Dispatcher/IsFinishedCest.php b/tests/unit/Dispatcher/IsFinishedCest.php index c20c23914b4..39cb60a488b 100644 --- a/tests/unit/Dispatcher/IsFinishedCest.php +++ b/tests/unit/Dispatcher/IsFinishedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class IsFinishedCest /** * Tests Phalcon\Dispatcher :: isFinished() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dispatcherIsFinished(UnitTester $I) diff --git a/tests/unit/Dispatcher/SetActionNameCest.php b/tests/unit/Dispatcher/SetActionNameCest.php index 993c314fea7..96d574084a5 100644 --- a/tests/unit/Dispatcher/SetActionNameCest.php +++ b/tests/unit/Dispatcher/SetActionNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetActionNameCest /** * Tests Phalcon\Dispatcher :: setActionName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dispatcherSetActionName(UnitTester $I) diff --git a/tests/unit/Dispatcher/SetActionSuffixCest.php b/tests/unit/Dispatcher/SetActionSuffixCest.php index eed72a1f91f..540d5f0523b 100644 --- a/tests/unit/Dispatcher/SetActionSuffixCest.php +++ b/tests/unit/Dispatcher/SetActionSuffixCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetActionSuffixCest /** * Tests Phalcon\Dispatcher :: setActionSuffix() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dispatcherSetActionSuffix(UnitTester $I) diff --git a/tests/unit/Dispatcher/SetDICest.php b/tests/unit/Dispatcher/SetDICest.php index 563129604aa..df67bedadf5 100644 --- a/tests/unit/Dispatcher/SetDICest.php +++ b/tests/unit/Dispatcher/SetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetDICest /** * Tests Phalcon\Dispatcher :: setDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dispatcherSetDI(UnitTester $I) diff --git a/tests/unit/Dispatcher/SetDefaultActionCest.php b/tests/unit/Dispatcher/SetDefaultActionCest.php index 303f88c8f66..629d796073f 100644 --- a/tests/unit/Dispatcher/SetDefaultActionCest.php +++ b/tests/unit/Dispatcher/SetDefaultActionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetDefaultActionCest /** * Tests Phalcon\Dispatcher :: setDefaultAction() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dispatcherSetDefaultAction(UnitTester $I) diff --git a/tests/unit/Dispatcher/SetDefaultNamespaceCest.php b/tests/unit/Dispatcher/SetDefaultNamespaceCest.php index 87cc9559822..fe95cb47b3b 100644 --- a/tests/unit/Dispatcher/SetDefaultNamespaceCest.php +++ b/tests/unit/Dispatcher/SetDefaultNamespaceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetDefaultNamespaceCest /** * Tests Phalcon\Dispatcher :: setDefaultNamespace() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dispatcherSetDefaultNamespace(UnitTester $I) diff --git a/tests/unit/Dispatcher/SetEventsManagerCest.php b/tests/unit/Dispatcher/SetEventsManagerCest.php index 9ef53b12a09..952f19b8516 100644 --- a/tests/unit/Dispatcher/SetEventsManagerCest.php +++ b/tests/unit/Dispatcher/SetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetEventsManagerCest /** * Tests Phalcon\Dispatcher :: setEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dispatcherSetEventsManager(UnitTester $I) diff --git a/tests/unit/Dispatcher/SetHandlerSuffixCest.php b/tests/unit/Dispatcher/SetHandlerSuffixCest.php index 93dc9bf82a7..12d317acddf 100644 --- a/tests/unit/Dispatcher/SetHandlerSuffixCest.php +++ b/tests/unit/Dispatcher/SetHandlerSuffixCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetHandlerSuffixCest /** * Tests Phalcon\Dispatcher :: setHandlerSuffix() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dispatcherSetHandlerSuffix(UnitTester $I) diff --git a/tests/unit/Dispatcher/SetModelBinderCest.php b/tests/unit/Dispatcher/SetModelBinderCest.php index 9320f62faf7..22eeaaae505 100644 --- a/tests/unit/Dispatcher/SetModelBinderCest.php +++ b/tests/unit/Dispatcher/SetModelBinderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetModelBinderCest /** * Tests Phalcon\Dispatcher :: setModelBinder() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dispatcherSetModelBinder(UnitTester $I) diff --git a/tests/unit/Dispatcher/SetModuleNameCest.php b/tests/unit/Dispatcher/SetModuleNameCest.php index e15a50892ae..c9dd3b1b118 100644 --- a/tests/unit/Dispatcher/SetModuleNameCest.php +++ b/tests/unit/Dispatcher/SetModuleNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetModuleNameCest /** * Tests Phalcon\Dispatcher :: setModuleName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dispatcherSetModuleName(UnitTester $I) diff --git a/tests/unit/Dispatcher/SetNamespaceNameCest.php b/tests/unit/Dispatcher/SetNamespaceNameCest.php index 2ab280f497d..42ff441d988 100644 --- a/tests/unit/Dispatcher/SetNamespaceNameCest.php +++ b/tests/unit/Dispatcher/SetNamespaceNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetNamespaceNameCest /** * Tests Phalcon\Dispatcher :: setNamespaceName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dispatcherSetNamespaceName(UnitTester $I) diff --git a/tests/unit/Dispatcher/SetParamCest.php b/tests/unit/Dispatcher/SetParamCest.php index dc4c28f3cb3..79b18f6fa7f 100644 --- a/tests/unit/Dispatcher/SetParamCest.php +++ b/tests/unit/Dispatcher/SetParamCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetParamCest /** * Tests Phalcon\Dispatcher :: setParam() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dispatcherSetParam(UnitTester $I) diff --git a/tests/unit/Dispatcher/SetParamsCest.php b/tests/unit/Dispatcher/SetParamsCest.php index 1bf427e32f1..046eb20c415 100644 --- a/tests/unit/Dispatcher/SetParamsCest.php +++ b/tests/unit/Dispatcher/SetParamsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetParamsCest /** * Tests Phalcon\Dispatcher :: setParams() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dispatcherSetParams(UnitTester $I) diff --git a/tests/unit/Dispatcher/SetReturnedValueCest.php b/tests/unit/Dispatcher/SetReturnedValueCest.php index 5b49c901ebd..0f34b923d4f 100644 --- a/tests/unit/Dispatcher/SetReturnedValueCest.php +++ b/tests/unit/Dispatcher/SetReturnedValueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetReturnedValueCest /** * Tests Phalcon\Dispatcher :: setReturnedValue() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dispatcherSetReturnedValue(UnitTester $I) diff --git a/tests/unit/Dispatcher/WasForwardedCest.php b/tests/unit/Dispatcher/WasForwardedCest.php index bbff73a08c6..c4d20419eb4 100644 --- a/tests/unit/Dispatcher/WasForwardedCest.php +++ b/tests/unit/Dispatcher/WasForwardedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class WasForwardedCest /** * Tests Phalcon\Dispatcher :: wasForwarded() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function dispatcherWasForwarded(UnitTester $I) diff --git a/tests/unit/Domain/Payload/Payload/GetSetExtrasCest.php b/tests/unit/Domain/Payload/Payload/GetSetExtrasCest.php index 9ea8f581f41..d54b73cd579 100644 --- a/tests/unit/Domain/Payload/Payload/GetSetExtrasCest.php +++ b/tests/unit/Domain/Payload/Payload/GetSetExtrasCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetSetExtrasCest /** * Unit Tests Phalcon\Domain\Payload\Payload :: getExtras()/setExtras() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-24 */ public function httpPayloadPayloadGetSetExtras(UnitTester $I) diff --git a/tests/unit/Domain/Payload/Payload/GetSetInputCest.php b/tests/unit/Domain/Payload/Payload/GetSetInputCest.php index ca387b27fe9..584a8f83233 100644 --- a/tests/unit/Domain/Payload/Payload/GetSetInputCest.php +++ b/tests/unit/Domain/Payload/Payload/GetSetInputCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetSetInputCest /** * Unit Tests Phalcon\Domain\Payload\Payload :: getInput()/setInput() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-24 */ public function httpPayloadPayloadGetSetInput(UnitTester $I) diff --git a/tests/unit/Domain/Payload/Payload/GetSetMessagesCest.php b/tests/unit/Domain/Payload/Payload/GetSetMessagesCest.php index 7c2bd4c6c65..2aaf070fb82 100644 --- a/tests/unit/Domain/Payload/Payload/GetSetMessagesCest.php +++ b/tests/unit/Domain/Payload/Payload/GetSetMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetSetMessagesCest /** * Unit Tests Phalcon\Domain\Payload\Payload :: getMessages()/setMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-24 */ public function httpPayloadPayloadGetSetMessages(UnitTester $I) diff --git a/tests/unit/Domain/Payload/Payload/GetSetOutputCest.php b/tests/unit/Domain/Payload/Payload/GetSetOutputCest.php index 3bf8b508369..65552ec8c0c 100644 --- a/tests/unit/Domain/Payload/Payload/GetSetOutputCest.php +++ b/tests/unit/Domain/Payload/Payload/GetSetOutputCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetSetOutputCest /** * Unit Tests Phalcon\Domain\Payload\Payload :: getOutput()/setOutput() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-24 */ public function httpPayloadPayloadGetSetOutput(UnitTester $I) diff --git a/tests/unit/Domain/Payload/Payload/GetSetStatusCest.php b/tests/unit/Domain/Payload/Payload/GetSetStatusCest.php index 0d52d7c32f3..be4cbe4b8d8 100644 --- a/tests/unit/Domain/Payload/Payload/GetSetStatusCest.php +++ b/tests/unit/Domain/Payload/Payload/GetSetStatusCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetSetStatusCest /** * Unit Tests Phalcon\Domain\Payload\Payload :: getStatus()/setStatus() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-24 */ public function httpPayloadPayloadGetStatus(UnitTester $I) diff --git a/tests/unit/Domain/Payload/Payload/StatusCest.php b/tests/unit/Domain/Payload/Payload/StatusCest.php index f0589c3d2e1..b480e36548f 100644 --- a/tests/unit/Domain/Payload/Payload/StatusCest.php +++ b/tests/unit/Domain/Payload/Payload/StatusCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class StatusCest /** * Unit Tests Phalcon\Domain\Payload\Status :: constants * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-24 */ public function httpPayloadPayloadStatus(UnitTester $I) diff --git a/tests/unit/Domain/Payload/PayloadFactory/NewInstanceCest.php b/tests/unit/Domain/Payload/PayloadFactory/NewInstanceCest.php index eae2fd1c835..6a0057389cb 100644 --- a/tests/unit/Domain/Payload/PayloadFactory/NewInstanceCest.php +++ b/tests/unit/Domain/Payload/PayloadFactory/NewInstanceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class NewInstanceCest /** * Unit Tests Phalcon\Domain\Payload\PayloadFactory :: newInstance() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-24 */ public function httpPayloadPayloadFactoryNewInstance(UnitTester $I) diff --git a/tests/unit/Escaper/DetectEncodingCest.php b/tests/unit/Escaper/DetectEncodingCest.php index 24311b123b0..015c4b3cf04 100644 --- a/tests/unit/Escaper/DetectEncodingCest.php +++ b/tests/unit/Escaper/DetectEncodingCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class DetectEncodingCest /** * Tests Phalcon\Escaper :: detectEncoding() * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-16 * * @dataProvider escaperDetectEncodingProvider diff --git a/tests/unit/Escaper/EscapeCssCest.php b/tests/unit/Escaper/EscapeCssCest.php index 7b3c809beb4..3e20ef3b003 100644 --- a/tests/unit/Escaper/EscapeCssCest.php +++ b/tests/unit/Escaper/EscapeCssCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class EscapeCssCest /** * Tests Phalcon\Escaper :: escapeCss() * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-16 */ public function escaperEscapeCss(UnitTester $I) @@ -29,7 +29,7 @@ public function escaperEscapeCss(UnitTester $I) $escaper = new Escaper(); - $source = ".émotion { background: url('http://phalconphp.com/a.php?c=d&e=f'); }"; + $source = ".émotion { background: url('http://phalcon.io/a.php?c=d&e=f'); }"; $expected = '\2e \e9 motion\20 \7b \20 background\3a \20 url\28 ' . '\27 http\3a \2f \2f phalconphp\2e com\2f a\2e php' diff --git a/tests/unit/Escaper/EscapeHtmlAttrCest.php b/tests/unit/Escaper/EscapeHtmlAttrCest.php index 90b3cb7607b..b39ae8fbd10 100644 --- a/tests/unit/Escaper/EscapeHtmlAttrCest.php +++ b/tests/unit/Escaper/EscapeHtmlAttrCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class EscapeHtmlAttrCest /** * Tests Phalcon\Escaper :: escapeHtmlAttr() * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-16 * * @dataProvider escaperEscapeHtmlAttrProvider diff --git a/tests/unit/Escaper/EscapeHtmlCest.php b/tests/unit/Escaper/EscapeHtmlCest.php index 44f2b5194ca..a3fe8677c49 100644 --- a/tests/unit/Escaper/EscapeHtmlCest.php +++ b/tests/unit/Escaper/EscapeHtmlCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class EscapeHtmlCest /** * Tests Phalcon\Escaper :: escapeHtml() * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-12 */ public function escaperEscapeHtml(UnitTester $I) diff --git a/tests/unit/Escaper/EscapeJsCest.php b/tests/unit/Escaper/EscapeJsCest.php index 7368051bf61..4d32e69abd1 100644 --- a/tests/unit/Escaper/EscapeJsCest.php +++ b/tests/unit/Escaper/EscapeJsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class EscapeJsCest /** * Tests Phalcon\Escaper :: escapeJs() * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-16 */ public function escaperEscapeJs(UnitTester $I) diff --git a/tests/unit/Escaper/EscapeUrlCest.php b/tests/unit/Escaper/EscapeUrlCest.php index b8732b2a84b..4f1475eb920 100644 --- a/tests/unit/Escaper/EscapeUrlCest.php +++ b/tests/unit/Escaper/EscapeUrlCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class EscapeUrlCest /** * Tests Phalcon\Escaper :: escapeUrl() * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-16 */ public function escaperEscapeUrl(UnitTester $I) @@ -30,8 +30,8 @@ public function escaperEscapeUrl(UnitTester $I) $escaper = new Escaper(); $I->assertEquals( - 'http%3A%2F%2Fphalconphp.com%2Fa.php%3Fc%3Dd%26e%3Df', - $escaper->escapeUrl('http://phalconphp.com/a.php?c=d&e=f') + 'http%3A%2F%2Fphalcon.io%2Fa.php%3Fc%3Dd%26e%3Df', + $escaper->escapeUrl('http://phalcon.io/a.php?c=d&e=f') ); } } diff --git a/tests/unit/Escaper/GetSetEncodingCest.php b/tests/unit/Escaper/GetSetEncodingCest.php index d1974d66cdf..fc3afe45fc8 100644 --- a/tests/unit/Escaper/GetSetEncodingCest.php +++ b/tests/unit/Escaper/GetSetEncodingCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetSetEncodingCest /** * Tests Phalcon\Escaper :: getEncoding() / setEncoding() * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-16 */ public function escaperGetSetEncoding(UnitTester $I) diff --git a/tests/unit/Escaper/NormalizeEncodingCest.php b/tests/unit/Escaper/NormalizeEncodingCest.php index 1d49ead62e0..7df4f834c17 100644 --- a/tests/unit/Escaper/NormalizeEncodingCest.php +++ b/tests/unit/Escaper/NormalizeEncodingCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class NormalizeEncodingCest /** * Tests Phalcon\Escaper :: normalizeEncoding() * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-16 */ public function escaperNormalizeEncoding(UnitTester $I) diff --git a/tests/unit/Escaper/SetDoubleEncodeCest.php b/tests/unit/Escaper/SetDoubleEncodeCest.php index 160e4c9f598..76efcbab96f 100644 --- a/tests/unit/Escaper/SetDoubleEncodeCest.php +++ b/tests/unit/Escaper/SetDoubleEncodeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetDoubleEncodeCest /** * Tests Phalcon\Escaper :: setDoubleEncode() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function escaperSetDoubleEncode(UnitTester $I) diff --git a/tests/unit/Escaper/SetHtmlQuoteTypeCest.php b/tests/unit/Escaper/SetHtmlQuoteTypeCest.php index e4094c5c6b2..86b1380fc23 100644 --- a/tests/unit/Escaper/SetHtmlQuoteTypeCest.php +++ b/tests/unit/Escaper/SetHtmlQuoteTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetHtmlQuoteTypeCest /** * Tests Phalcon\Escaper :: setHtmlQuoteType() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function escaperSetHtmlQuoteType(UnitTester $I) diff --git a/tests/unit/Events/Event/ConstructCest.php b/tests/unit/Events/Event/ConstructCest.php index c6f0e565de8..e50784f8599 100644 --- a/tests/unit/Events/Event/ConstructCest.php +++ b/tests/unit/Events/Event/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ConstructCest /** * Tests Phalcon\Events\Event :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function eventsEventConstruct(UnitTester $I) diff --git a/tests/unit/Events/Event/GetSetDataCest.php b/tests/unit/Events/Event/GetSetDataCest.php index 03b9c24ef5c..035a2b86ff5 100644 --- a/tests/unit/Events/Event/GetSetDataCest.php +++ b/tests/unit/Events/Event/GetSetDataCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Events/Event/GetSourceCest.php b/tests/unit/Events/Event/GetSourceCest.php index c55e9ff849c..96765a5c292 100644 --- a/tests/unit/Events/Event/GetSourceCest.php +++ b/tests/unit/Events/Event/GetSourceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Events/Event/GetTypeCest.php b/tests/unit/Events/Event/GetTypeCest.php index 9bc070f9ecb..f1f514f435c 100644 --- a/tests/unit/Events/Event/GetTypeCest.php +++ b/tests/unit/Events/Event/GetTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Events/Event/IsCancelableCest.php b/tests/unit/Events/Event/IsCancelableCest.php index 490e3ccbe3f..956e9ac61ee 100644 --- a/tests/unit/Events/Event/IsCancelableCest.php +++ b/tests/unit/Events/Event/IsCancelableCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Events/Event/IsStoppedCest.php b/tests/unit/Events/Event/IsStoppedCest.php index 170098b7934..607050096c5 100644 --- a/tests/unit/Events/Event/IsStoppedCest.php +++ b/tests/unit/Events/Event/IsStoppedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Events/Event/SetTypeCest.php b/tests/unit/Events/Event/SetTypeCest.php index be10e9a4c70..3cadc8c6e79 100644 --- a/tests/unit/Events/Event/SetTypeCest.php +++ b/tests/unit/Events/Event/SetTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Events/Event/StopCest.php b/tests/unit/Events/Event/StopCest.php index 520c05bd121..92cd9cc8633 100644 --- a/tests/unit/Events/Event/StopCest.php +++ b/tests/unit/Events/Event/StopCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class StopCest /** * Tests using events propagation * - * @author Phalcon Team + * @author Phalcon Team * @since 2012-11-11 */ public function stopEventsInEventsManager(UnitTester $I) diff --git a/tests/unit/Events/Manager/ArePrioritiesEnabledCest.php b/tests/unit/Events/Manager/ArePrioritiesEnabledCest.php index 4c9c43b787e..6945ffff65c 100644 --- a/tests/unit/Events/Manager/ArePrioritiesEnabledCest.php +++ b/tests/unit/Events/Manager/ArePrioritiesEnabledCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Events/Manager/AttachCest.php b/tests/unit/Events/Manager/AttachCest.php index d43160dd083..c8358b763e7 100644 --- a/tests/unit/Events/Manager/AttachCest.php +++ b/tests/unit/Events/Manager/AttachCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class AttachCest /** * Tests Phalcon\Events\Manager :: attach() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function eventsManagerAttach(UnitTester $I) diff --git a/tests/unit/Events/Manager/CollectResponsesCest.php b/tests/unit/Events/Manager/CollectResponsesCest.php index ecbf674ce43..26ce40640c7 100644 --- a/tests/unit/Events/Manager/CollectResponsesCest.php +++ b/tests/unit/Events/Manager/CollectResponsesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class CollectResponsesCest /** * Tests Phalcon\Events\Manager :: collectResponses() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function eventsManagerCollectResponses(UnitTester $I) diff --git a/tests/unit/Events/Manager/DetachAllCest.php b/tests/unit/Events/Manager/DetachAllCest.php index 93bbd5fd0f2..5b7ad2bc3d6 100644 --- a/tests/unit/Events/Manager/DetachAllCest.php +++ b/tests/unit/Events/Manager/DetachAllCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class DetachAllCest /** * Tests Phalcon\Events\Manager :: detachAll() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function eventsManagerDetachAll(UnitTester $I) diff --git a/tests/unit/Events/Manager/DetachCest.php b/tests/unit/Events/Manager/DetachCest.php index 391d5efa1b2..ea153ba7667 100644 --- a/tests/unit/Events/Manager/DetachCest.php +++ b/tests/unit/Events/Manager/DetachCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class DetachCest * * @test * @issue https://github.com/phalcon/cphalcon/issues/12882 - * @author Phalcon Team + * @author Phalcon Team * @since 2017-06-06 * * @dataProvider booleanProvider diff --git a/tests/unit/Events/Manager/EnablePrioritiesCest.php b/tests/unit/Events/Manager/EnablePrioritiesCest.php index e974b8fbf13..ecac880b12d 100644 --- a/tests/unit/Events/Manager/EnablePrioritiesCest.php +++ b/tests/unit/Events/Manager/EnablePrioritiesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class EnablePrioritiesCest /** * Tests Phalcon\Events\Manager :: enablePriorities() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function eventsManagerEnablePriorities(UnitTester $I) diff --git a/tests/unit/Events/Manager/FireCest.php b/tests/unit/Events/Manager/FireCest.php index a927d498058..f99d20d0a1b 100644 --- a/tests/unit/Events/Manager/FireCest.php +++ b/tests/unit/Events/Manager/FireCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class FireCest /** * Tests Phalcon\Events\Manager :: fire() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function eventsManagerFire(UnitTester $I) diff --git a/tests/unit/Events/Manager/FireQueueCest.php b/tests/unit/Events/Manager/FireQueueCest.php index ebdecf0e9ea..cc2cbaff302 100644 --- a/tests/unit/Events/Manager/FireQueueCest.php +++ b/tests/unit/Events/Manager/FireQueueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class FireQueueCest /** * Tests Phalcon\Events\Manager :: fireQueue() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function eventsManagerFireQueue(UnitTester $I) diff --git a/tests/unit/Events/Manager/GetListenersCest.php b/tests/unit/Events/Manager/GetListenersCest.php index ebed75bc1c9..71a3e76774f 100644 --- a/tests/unit/Events/Manager/GetListenersCest.php +++ b/tests/unit/Events/Manager/GetListenersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetListenersCest /** * Tests Phalcon\Events\Manager :: getListeners() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function eventsManagerGetListeners(UnitTester $I) diff --git a/tests/unit/Events/Manager/GetResponsesCest.php b/tests/unit/Events/Manager/GetResponsesCest.php index 7988e66cf6b..a3ca71c69c7 100644 --- a/tests/unit/Events/Manager/GetResponsesCest.php +++ b/tests/unit/Events/Manager/GetResponsesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetResponsesCest /** * Tests Phalcon\Events\Manager :: getResponses() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function eventsManagerGetResponses(UnitTester $I) diff --git a/tests/unit/Events/Manager/HasListenersCest.php b/tests/unit/Events/Manager/HasListenersCest.php index 003f6cd7389..c566e1ed36b 100644 --- a/tests/unit/Events/Manager/HasListenersCest.php +++ b/tests/unit/Events/Manager/HasListenersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class HasListenersCest /** * Tests Phalcon\Events\Manager :: hasListeners() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function eventsManagerHasListeners(UnitTester $I) diff --git a/tests/unit/Events/Manager/IsCollectingCest.php b/tests/unit/Events/Manager/IsCollectingCest.php index 18612876ef0..2cde13d7086 100644 --- a/tests/unit/Events/Manager/IsCollectingCest.php +++ b/tests/unit/Events/Manager/IsCollectingCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class IsCollectingCest /** * Tests Phalcon\Events\Manager :: isCollecting() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function eventsManagerIsCollecting(UnitTester $I) diff --git a/tests/unit/Events/ManagerCest.php b/tests/unit/Events/ManagerCest.php index 96b4c45f962..ba1142203e9 100644 --- a/tests/unit/Events/ManagerCest.php +++ b/tests/unit/Events/ManagerCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -97,7 +97,7 @@ public function attachingListenersByEventNameAfterDetachingAll(UnitTester $I) /** * Tests using event listeners * - * @author Phalcon Team + * @author Phalcon Team * @since 2012-08-14 */ public function usingEvents(UnitTester $I) @@ -289,7 +289,7 @@ public function usingEventsWithPriority(UnitTester $I) * * @test * @issue https://github.com/phalcon/cphalcon/issues/12882 - * @author Phalcon Team + * @author Phalcon Team * @since 2017-06-06 * * @dataProvider booleanProvider diff --git a/tests/unit/Filter/Filter/ConstructCest.php b/tests/unit/Filter/Filter/ConstructCest.php index d0f3ce916d2..cd396aa81e1 100644 --- a/tests/unit/Filter/Filter/ConstructCest.php +++ b/tests/unit/Filter/Filter/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ConstructCest /** * Tests Phalcon\Filter\Locator :: __construct() - empty * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-01-19 */ public function filterFilterConstruct(UnitTester $I) diff --git a/tests/unit/Filter/Filter/CustomCest.php b/tests/unit/Filter/Filter/CustomCest.php index 94e1cdc0c06..3c05c3503d0 100644 --- a/tests/unit/Filter/Filter/CustomCest.php +++ b/tests/unit/Filter/Filter/CustomCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class CustomCest /** * Tests Phalcon\Filter\Filter :: custom has() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-01-19 */ public function filterFilterCustomHas(UnitTester $I) @@ -44,7 +44,7 @@ public function filterFilterCustomHas(UnitTester $I) /** * Tests Phalcon\Filter\Filter :: custom sanitizer * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-01-19 */ public function filterFilterCustomSanitizer(UnitTester $I) diff --git a/tests/unit/Filter/Filter/GetSetHasCest.php b/tests/unit/Filter/Filter/GetSetHasCest.php index f0c80d67a19..025de2f0524 100644 --- a/tests/unit/Filter/Filter/GetSetHasCest.php +++ b/tests/unit/Filter/Filter/GetSetHasCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetSetHasCest /** * Tests Phalcon\Filter\Filter :: get()/set()/has() - has() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-01-19 */ public function filterFilterGetSetHasHas(UnitTester $I) @@ -42,7 +42,7 @@ public function filterFilterGetSetHasHas(UnitTester $I) /** * Tests Phalcon\Filter\Filter :: get()/set()/has() - get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function filterFilterLocatorGetSetHasGet(UnitTester $I) @@ -66,7 +66,7 @@ public function filterFilterLocatorGetSetHasGet(UnitTester $I) /** * Tests Phalcon\Filter\Filter :: get()/set()/has() - get() same * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function filterFilterGetSetHasGetSame(UnitTester $I) @@ -95,7 +95,7 @@ public function filterFilterGetSetHasGetSame(UnitTester $I) /** * Tests Phalcon\Filter\Filter :: get()/set()/has() - set() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function filterFilterGetSetHasSet(UnitTester $I) diff --git a/tests/unit/Filter/Filter/SanitizeMultipleCest.php b/tests/unit/Filter/Filter/SanitizeMultipleCest.php index 921b0e8dac6..fbb5a9c1c9d 100644 --- a/tests/unit/Filter/Filter/SanitizeMultipleCest.php +++ b/tests/unit/Filter/Filter/SanitizeMultipleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SanitizeMultipleCest /** * Tests sanitizing string with filters * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-30 */ public function filterFilterSanitizeStringWithMultipleFilters(UnitTester $I) @@ -37,7 +37,7 @@ public function filterFilterSanitizeStringWithMultipleFilters(UnitTester $I) /** * Tests sanitizing array with filters * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-30 */ public function filterFilterSanitizeArray(UnitTester $I) @@ -54,7 +54,7 @@ public function filterFilterSanitizeArray(UnitTester $I) /** * Tests sanitizing array with multiple filters * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-30 */ public function filterFilterSanitizeArrayWithMultipleFilters(UnitTester $I) @@ -71,7 +71,7 @@ public function filterFilterSanitizeArrayWithMultipleFilters(UnitTester $I) /** * Tests sanitizing array with multiple filters and more parameters * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-30 */ public function filterFilterSanitizeWithMultipleFiltersMoreParameters(UnitTester $I) diff --git a/tests/unit/Filter/FilterFactory/NewInstanceCest.php b/tests/unit/Filter/FilterFactory/NewInstanceCest.php index 2b83b0f1a15..a399da10645 100644 --- a/tests/unit/Filter/FilterFactory/NewInstanceCest.php +++ b/tests/unit/Filter/FilterFactory/NewInstanceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -44,7 +44,7 @@ class NewInstanceCest /** * Tests Phalcon\Filter\FilterFactory :: newInstance() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function filterFilterFactoryNewInstance(UnitTester $I) @@ -62,7 +62,7 @@ public function filterFilterFactoryNewInstance(UnitTester $I) * * @dataProvider getData * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function filterFilterFactoryNewInstanceServices(UnitTester $I, Example $example) diff --git a/tests/unit/Filter/Sanitize/AbsIntCest.php b/tests/unit/Filter/Sanitize/AbsIntCest.php index 222754ec570..94baf8152d2 100644 --- a/tests/unit/Filter/Sanitize/AbsIntCest.php +++ b/tests/unit/Filter/Sanitize/AbsIntCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class AbsIntCest * * @dataProvider getData * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function filterSanitizeAbsIntInvoke(UnitTester $I, Example $example) diff --git a/tests/unit/Filter/Sanitize/AlnumCest.php b/tests/unit/Filter/Sanitize/AlnumCest.php index cedb0b15d69..99457940fc5 100644 --- a/tests/unit/Filter/Sanitize/AlnumCest.php +++ b/tests/unit/Filter/Sanitize/AlnumCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class AlnumCest * * @dataProvider getData * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function filterSanitizeAlnumInvoke(UnitTester $I, Example $example) diff --git a/tests/unit/Filter/Sanitize/AlphaCest.php b/tests/unit/Filter/Sanitize/AlphaCest.php index 757086a4dfb..8f0e83f8094 100644 --- a/tests/unit/Filter/Sanitize/AlphaCest.php +++ b/tests/unit/Filter/Sanitize/AlphaCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class AlphaCest * * @dataProvider getData * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function filterSanitizeAlphaInvoke(UnitTester $I, Example $example) diff --git a/tests/unit/Filter/Sanitize/BoolValCest.php b/tests/unit/Filter/Sanitize/BoolValCest.php index 58fd28d09c6..e417c264926 100644 --- a/tests/unit/Filter/Sanitize/BoolValCest.php +++ b/tests/unit/Filter/Sanitize/BoolValCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class BoolValCest * * @dataProvider getData * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function filterSanitizeBoolValInvoke(UnitTester $I, Example $example) diff --git a/tests/unit/Filter/Sanitize/EmailCest.php b/tests/unit/Filter/Sanitize/EmailCest.php index dce0813de0c..a9162d06da1 100644 --- a/tests/unit/Filter/Sanitize/EmailCest.php +++ b/tests/unit/Filter/Sanitize/EmailCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class EmailCest * * @dataProvider getData * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function filterSanitizeEmailInvoke(UnitTester $I, Example $example) diff --git a/tests/unit/Filter/Sanitize/FloatValCest.php b/tests/unit/Filter/Sanitize/FloatValCest.php index ff933373f9a..dd17664cdc6 100644 --- a/tests/unit/Filter/Sanitize/FloatValCest.php +++ b/tests/unit/Filter/Sanitize/FloatValCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class FloatValCest * * @dataProvider getData * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function filterSanitizeFloatValInvoke(UnitTester $I, Example $example) @@ -41,7 +41,7 @@ public function filterSanitizeFloatValInvoke(UnitTester $I, Example $example) * Tests Phalcon\Filter\Sanitize\Email :: __invoke() * This is on its own to align the float values (fraction) * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function filterSanitizeFloatValInvokeFloat(UnitTester $I) diff --git a/tests/unit/Filter/Sanitize/IntValCest.php b/tests/unit/Filter/Sanitize/IntValCest.php index aa7dc6215da..723a4105053 100644 --- a/tests/unit/Filter/Sanitize/IntValCest.php +++ b/tests/unit/Filter/Sanitize/IntValCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class IntValCest * * @dataProvider getData * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function filterSanitizeIntValInvoke(UnitTester $I, Example $example) diff --git a/tests/unit/Filter/Sanitize/LowerCest.php b/tests/unit/Filter/Sanitize/LowerCest.php index 24149c1933b..01831aa679d 100644 --- a/tests/unit/Filter/Sanitize/LowerCest.php +++ b/tests/unit/Filter/Sanitize/LowerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class LowerCest * * @dataProvider getData * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function filterSanitizeLowerInvoke(UnitTester $I, Example $example) diff --git a/tests/unit/Filter/Sanitize/LowerFirstCest.php b/tests/unit/Filter/Sanitize/LowerFirstCest.php index 766593f8a91..dbe81fd15c6 100644 --- a/tests/unit/Filter/Sanitize/LowerFirstCest.php +++ b/tests/unit/Filter/Sanitize/LowerFirstCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class LowerFirstCest * * @dataProvider getData * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function filterSanitizeLowerFirstInvoke(UnitTester $I, Example $example) diff --git a/tests/unit/Filter/Sanitize/RegexCest.php b/tests/unit/Filter/Sanitize/RegexCest.php index 21406c23b46..64f53425a59 100644 --- a/tests/unit/Filter/Sanitize/RegexCest.php +++ b/tests/unit/Filter/Sanitize/RegexCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class RegexCest * * @dataProvider getData * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function filterSanitizeRegexInvoke(UnitTester $I, Example $example) diff --git a/tests/unit/Filter/Sanitize/RemoveCest.php b/tests/unit/Filter/Sanitize/RemoveCest.php index 6b497138ec6..9ae5d3188ba 100644 --- a/tests/unit/Filter/Sanitize/RemoveCest.php +++ b/tests/unit/Filter/Sanitize/RemoveCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class RemoveCest * * @dataProvider getData * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function filterSanitizeRemoveInvoke(UnitTester $I, Example $example) diff --git a/tests/unit/Filter/Sanitize/ReplaceCest.php b/tests/unit/Filter/Sanitize/ReplaceCest.php index 3b4fe6a9155..7f1da59cd00 100644 --- a/tests/unit/Filter/Sanitize/ReplaceCest.php +++ b/tests/unit/Filter/Sanitize/ReplaceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class ReplaceCest * * @dataProvider getData * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function filterSanitizeReplaceInvoke(UnitTester $I, Example $example) diff --git a/tests/unit/Filter/Sanitize/SpecialCest.php b/tests/unit/Filter/Sanitize/SpecialCest.php index 43b030fc176..f4182b298de 100644 --- a/tests/unit/Filter/Sanitize/SpecialCest.php +++ b/tests/unit/Filter/Sanitize/SpecialCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class SpecialCest * * @dataProvider getData * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function filterSanitizeSpecialInvoke(UnitTester $I, Example $example) diff --git a/tests/unit/Filter/Sanitize/SpecialFullCest.php b/tests/unit/Filter/Sanitize/SpecialFullCest.php index f834610c62f..a88dafb613e 100644 --- a/tests/unit/Filter/Sanitize/SpecialFullCest.php +++ b/tests/unit/Filter/Sanitize/SpecialFullCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Filter/Sanitize/StringValCest.php b/tests/unit/Filter/Sanitize/StringValCest.php index 589afcb9c5f..efb25f2bae4 100644 --- a/tests/unit/Filter/Sanitize/StringValCest.php +++ b/tests/unit/Filter/Sanitize/StringValCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class StringValCest * * @dataProvider getData * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function filterSanitizeStringValInvoke(UnitTester $I, Example $example) diff --git a/tests/unit/Filter/Sanitize/StriptagsCest.php b/tests/unit/Filter/Sanitize/StriptagsCest.php index 4f3b3f2b3cf..495c3202f2f 100644 --- a/tests/unit/Filter/Sanitize/StriptagsCest.php +++ b/tests/unit/Filter/Sanitize/StriptagsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class StriptagsCest * * @dataProvider getData * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function filterSanitizeStriptagsInvoke(UnitTester $I, Example $example) diff --git a/tests/unit/Filter/Sanitize/TrimCest.php b/tests/unit/Filter/Sanitize/TrimCest.php index 1e27b31e1e3..ff14b431a2e 100644 --- a/tests/unit/Filter/Sanitize/TrimCest.php +++ b/tests/unit/Filter/Sanitize/TrimCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class TrimCest * * @dataProvider getData * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function filterSanitizeTrimInvoke(UnitTester $I, Example $example) diff --git a/tests/unit/Filter/Sanitize/UpperCest.php b/tests/unit/Filter/Sanitize/UpperCest.php index ffa428b1872..9d29c32cdd1 100644 --- a/tests/unit/Filter/Sanitize/UpperCest.php +++ b/tests/unit/Filter/Sanitize/UpperCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class UpperCest * * @dataProvider getData * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function filterSanitizeUpperInvoke(UnitTester $I, Example $example) diff --git a/tests/unit/Filter/Sanitize/UpperFirstCest.php b/tests/unit/Filter/Sanitize/UpperFirstCest.php index 938affa0b58..42ea3714f4b 100644 --- a/tests/unit/Filter/Sanitize/UpperFirstCest.php +++ b/tests/unit/Filter/Sanitize/UpperFirstCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class UpperFirstCest * * @dataProvider getData * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function filterSanitizeUpperFirstInvoke(UnitTester $I, Example $example) diff --git a/tests/unit/Filter/Sanitize/UpperWordsCest.php b/tests/unit/Filter/Sanitize/UpperWordsCest.php index 812be087e88..41e588798f8 100644 --- a/tests/unit/Filter/Sanitize/UpperWordsCest.php +++ b/tests/unit/Filter/Sanitize/UpperWordsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class UpperWordsCest * * @dataProvider getData * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function filterSanitizeUpperWordsInvoke(UnitTester $I, Example $example) diff --git a/tests/unit/Filter/Sanitize/UrlCest.php b/tests/unit/Filter/Sanitize/UrlCest.php index e8125f96544..c60c5ec3420 100644 --- a/tests/unit/Filter/Sanitize/UrlCest.php +++ b/tests/unit/Filter/Sanitize/UrlCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class UrlCest * * @dataProvider getData * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function filterSanitizeUrlInvoke(UnitTester $I, Example $example) diff --git a/tests/unit/Flash/ClearCest.php b/tests/unit/Flash/ClearCest.php index 931916ccc68..cffddeace19 100644 --- a/tests/unit/Flash/ClearCest.php +++ b/tests/unit/Flash/ClearCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ClearCest /** * Tests Phalcon\Flash :: clear() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashClear(UnitTester $I) diff --git a/tests/unit/Flash/ConstructCest.php b/tests/unit/Flash/ConstructCest.php index d06929f7a68..b471af06e3b 100644 --- a/tests/unit/Flash/ConstructCest.php +++ b/tests/unit/Flash/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ConstructCest /** * Tests Phalcon\Flash :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashConstruct(UnitTester $I) diff --git a/tests/unit/Flash/Direct/ClearCest.php b/tests/unit/Flash/Direct/ClearCest.php index 425387a87f7..4c115d8e2d9 100644 --- a/tests/unit/Flash/Direct/ClearCest.php +++ b/tests/unit/Flash/Direct/ClearCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ClearCest /** * Tests Phalcon\Flash\Direct :: clear() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashDirectClear(UnitTester $I) diff --git a/tests/unit/Flash/Direct/ConstructCest.php b/tests/unit/Flash/Direct/ConstructCest.php index 046a98f4f82..9c683fed7f4 100644 --- a/tests/unit/Flash/Direct/ConstructCest.php +++ b/tests/unit/Flash/Direct/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ConstructCest /** * Tests Phalcon\Flash\Direct :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashDirectConstruct(UnitTester $I) diff --git a/tests/unit/Flash/Direct/ErrorCest.php b/tests/unit/Flash/Direct/ErrorCest.php index c058b454c66..03d113b1f2c 100644 --- a/tests/unit/Flash/Direct/ErrorCest.php +++ b/tests/unit/Flash/Direct/ErrorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ErrorCest /** * Tests Phalcon\Flash\Direct :: error() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashDirectError(UnitTester $I) diff --git a/tests/unit/Flash/Direct/FlashDirectCustomCSSCest.php b/tests/unit/Flash/Direct/FlashDirectCustomCSSCest.php index fafb7e5b979..c3d4207b494 100644 --- a/tests/unit/Flash/Direct/FlashDirectCustomCSSCest.php +++ b/tests/unit/Flash/Direct/FlashDirectCustomCSSCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Flash/Direct/FlashDirectEmptyCSSCest.php b/tests/unit/Flash/Direct/FlashDirectEmptyCSSCest.php index 911a48e06b8..9e7be289961 100644 --- a/tests/unit/Flash/Direct/FlashDirectEmptyCSSCest.php +++ b/tests/unit/Flash/Direct/FlashDirectEmptyCSSCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Flash/Direct/GetAutoescapeCest.php b/tests/unit/Flash/Direct/GetAutoescapeCest.php index 24f57fbe962..e389379b8b9 100644 --- a/tests/unit/Flash/Direct/GetAutoescapeCest.php +++ b/tests/unit/Flash/Direct/GetAutoescapeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetAutoescapeCest /** * Tests Phalcon\Flash\Direct :: getAutoescape() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashDirectGetAutoescape(UnitTester $I) diff --git a/tests/unit/Flash/Direct/GetCustomTemplateCest.php b/tests/unit/Flash/Direct/GetCustomTemplateCest.php index 7e8d7edcd23..10a75f3bf19 100644 --- a/tests/unit/Flash/Direct/GetCustomTemplateCest.php +++ b/tests/unit/Flash/Direct/GetCustomTemplateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetCustomTemplateCest /** * Tests Phalcon\Flash\Direct :: getCustomTemplate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashDirectGetCustomTemplate(UnitTester $I) diff --git a/tests/unit/Flash/Direct/GetDICest.php b/tests/unit/Flash/Direct/GetDICest.php index 96469d910d7..2e896c990a0 100644 --- a/tests/unit/Flash/Direct/GetDICest.php +++ b/tests/unit/Flash/Direct/GetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetDICest /** * Tests Phalcon\Flash\Direct :: getDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashDirectGetDI(UnitTester $I) diff --git a/tests/unit/Flash/Direct/GetEscaperServiceCest.php b/tests/unit/Flash/Direct/GetEscaperServiceCest.php index 4880c48feb9..3aebed4ee9a 100644 --- a/tests/unit/Flash/Direct/GetEscaperServiceCest.php +++ b/tests/unit/Flash/Direct/GetEscaperServiceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetEscaperServiceCest /** * Tests Phalcon\Flash\Direct :: getEscaperService() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashDirectGetEscaperService(UnitTester $I) diff --git a/tests/unit/Flash/Direct/Helper/FlashBase.php b/tests/unit/Flash/Direct/Helper/FlashBase.php index 4eeb85bf42b..c63c1d8f81e 100644 --- a/tests/unit/Flash/Direct/Helper/FlashBase.php +++ b/tests/unit/Flash/Direct/Helper/FlashBase.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -40,7 +40,7 @@ public function _before(UnitTester $I) /** * Tests warning (implicit flush) * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-04 */ public function testFlashDirectImplicitFlushHtml(UnitTester $I) @@ -60,7 +60,7 @@ public function testFlashDirectImplicitFlushHtml(UnitTester $I) /** * Tests a string with implicit flush Html * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-04 */ private function stringTest(UnitTester $I, string $function) @@ -95,7 +95,7 @@ private function stringTest(UnitTester $I, string $function) * Private function to get the class of the message depending on the classes * set * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-04 */ private function getClass($key): string @@ -118,7 +118,7 @@ private function getClass($key): string * Private function to start the ob, call the function, get the * contents and clean the ob * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-04 */ private function getObResponse($flash, $function, $message): string @@ -134,7 +134,7 @@ private function getObResponse($flash, $function, $message): string /** * Tests warning (no implicit flush) * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-04 */ public function testFlashDirectNoImplicitFlushHtml(UnitTester $I) @@ -158,7 +158,7 @@ public function testFlashDirectNoImplicitFlushHtml(UnitTester $I) /** * Tests warning (implicit flush no html) * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-04 */ public function testFlashDirectImplicitFlushNoHtml(UnitTester $I) @@ -182,7 +182,7 @@ public function testFlashDirectImplicitFlushNoHtml(UnitTester $I) /** * Tests error (no implicit flush no html) * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-04 */ public function testFlashDirectNoImplicitFlushNoHtml(UnitTester $I) @@ -208,7 +208,7 @@ public function testFlashDirectNoImplicitFlushNoHtml(UnitTester $I) /** * Tests auto escaping * - * @author Phalcon Team + * @author Phalcon Team * @issue https://github.com/phalcon/cphalcon/issues/11448 * @since 2016-06-15 */ @@ -235,7 +235,7 @@ public function testFlashDirectWithAutoEscaping(UnitTester $I) /** * Sets the custom classes for the tests * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-04 */ protected function setClasses($classes) diff --git a/tests/unit/Flash/Direct/MessageCest.php b/tests/unit/Flash/Direct/MessageCest.php index 96512fa9695..399bb8f0079 100644 --- a/tests/unit/Flash/Direct/MessageCest.php +++ b/tests/unit/Flash/Direct/MessageCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class MessageCest /** * Tests Phalcon\Flash\Direct :: message() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashDirectMessage(UnitTester $I) diff --git a/tests/unit/Flash/Direct/NoticeCest.php b/tests/unit/Flash/Direct/NoticeCest.php index 6bd875968c1..3ea3f44199d 100644 --- a/tests/unit/Flash/Direct/NoticeCest.php +++ b/tests/unit/Flash/Direct/NoticeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class NoticeCest /** * Tests Phalcon\Flash\Direct :: notice() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashDirectNotice(UnitTester $I) diff --git a/tests/unit/Flash/Direct/OutputCest.php b/tests/unit/Flash/Direct/OutputCest.php index 12680ca6994..78181f74800 100644 --- a/tests/unit/Flash/Direct/OutputCest.php +++ b/tests/unit/Flash/Direct/OutputCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class OutputCest /** * Tests Phalcon\Flash\Direct :: output() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashDirectOutput(UnitTester $I) diff --git a/tests/unit/Flash/Direct/OutputMessageCest.php b/tests/unit/Flash/Direct/OutputMessageCest.php index a1ade1e6032..67b6fe61cb1 100644 --- a/tests/unit/Flash/Direct/OutputMessageCest.php +++ b/tests/unit/Flash/Direct/OutputMessageCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class OutputMessageCest /** * Tests Phalcon\Flash\Direct :: outputMessage() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashDirectOutputMessage(UnitTester $I) diff --git a/tests/unit/Flash/Direct/SetAutoescapeCest.php b/tests/unit/Flash/Direct/SetAutoescapeCest.php index 6fb0ce8d5c9..6bd7e7283dc 100644 --- a/tests/unit/Flash/Direct/SetAutoescapeCest.php +++ b/tests/unit/Flash/Direct/SetAutoescapeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetAutoescapeCest /** * Tests Phalcon\Flash\Direct :: setAutoescape() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashDirectSetAutoescape(UnitTester $I) diff --git a/tests/unit/Flash/Direct/SetAutomaticHtmlCest.php b/tests/unit/Flash/Direct/SetAutomaticHtmlCest.php index 731e2b95b28..cdd9e382680 100644 --- a/tests/unit/Flash/Direct/SetAutomaticHtmlCest.php +++ b/tests/unit/Flash/Direct/SetAutomaticHtmlCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetAutomaticHtmlCest /** * Tests Phalcon\Flash\Direct :: setAutomaticHtml() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashDirectSetAutomaticHtml(UnitTester $I) diff --git a/tests/unit/Flash/Direct/SetCssClassesCest.php b/tests/unit/Flash/Direct/SetCssClassesCest.php index 2591c486d3c..0269e6c7352 100644 --- a/tests/unit/Flash/Direct/SetCssClassesCest.php +++ b/tests/unit/Flash/Direct/SetCssClassesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetCssClassesCest /** * Tests Phalcon\Flash\Direct :: setCssClasses() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashDirectSetCssClasses(UnitTester $I) diff --git a/tests/unit/Flash/Direct/SetCustomTemplateCest.php b/tests/unit/Flash/Direct/SetCustomTemplateCest.php index 97e47904843..b8c2eb38201 100644 --- a/tests/unit/Flash/Direct/SetCustomTemplateCest.php +++ b/tests/unit/Flash/Direct/SetCustomTemplateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetCustomTemplateCest /** * Tests Phalcon\Flash\Direct :: setCustomTemplate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashDirectSetCustomTemplate(UnitTester $I) diff --git a/tests/unit/Flash/Direct/SetDICest.php b/tests/unit/Flash/Direct/SetDICest.php index 969c209b29b..c330ed68b94 100644 --- a/tests/unit/Flash/Direct/SetDICest.php +++ b/tests/unit/Flash/Direct/SetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetDICest /** * Tests Phalcon\Flash\Direct :: setDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashDirectSetDI(UnitTester $I) diff --git a/tests/unit/Flash/Direct/SetEscaperServiceCest.php b/tests/unit/Flash/Direct/SetEscaperServiceCest.php index 8247ad9931c..a147d72e0b9 100644 --- a/tests/unit/Flash/Direct/SetEscaperServiceCest.php +++ b/tests/unit/Flash/Direct/SetEscaperServiceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetEscaperServiceCest /** * Tests Phalcon\Flash\Direct :: setEscaperService() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashDirectSetEscaperService(UnitTester $I) diff --git a/tests/unit/Flash/Direct/SetImplicitFlushCest.php b/tests/unit/Flash/Direct/SetImplicitFlushCest.php index ac22e786137..4dd35563cab 100644 --- a/tests/unit/Flash/Direct/SetImplicitFlushCest.php +++ b/tests/unit/Flash/Direct/SetImplicitFlushCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetImplicitFlushCest /** * Tests Phalcon\Flash\Direct :: setImplicitFlush() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashDirectSetImplicitFlush(UnitTester $I) diff --git a/tests/unit/Flash/Direct/SuccessCest.php b/tests/unit/Flash/Direct/SuccessCest.php index b4df65a8c31..bae217ebb55 100644 --- a/tests/unit/Flash/Direct/SuccessCest.php +++ b/tests/unit/Flash/Direct/SuccessCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SuccessCest /** * Tests Phalcon\Flash\Direct :: success() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashDirectSuccess(UnitTester $I) diff --git a/tests/unit/Flash/Direct/WarningCest.php b/tests/unit/Flash/Direct/WarningCest.php index 6f957e97ef8..5e4afd4eca0 100644 --- a/tests/unit/Flash/Direct/WarningCest.php +++ b/tests/unit/Flash/Direct/WarningCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class WarningCest /** * Tests Phalcon\Flash\Direct :: warning() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashDirectWarning(UnitTester $I) diff --git a/tests/unit/Flash/DirectCest.php b/tests/unit/Flash/DirectCest.php index 239a567c227..1b5b24dfe26 100644 --- a/tests/unit/Flash/DirectCest.php +++ b/tests/unit/Flash/DirectCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -39,7 +39,7 @@ public function _before(UnitTester $I) /** * Tests auto escaping * - * @author Phalcon Team + * @author Phalcon Team * @issue https://github.com/phalcon/cphalcon/issues/11448 * @since 2016-06-15 * @@ -156,7 +156,7 @@ private function testMessageFormatProvider(): array /** * Test custom message * - * @author Phalcon Team + * @author Phalcon Team * @issue https://github.com/phalcon/cphalcon/issues/13445 * @since 2018-10-16 */ diff --git a/tests/unit/Flash/ErrorCest.php b/tests/unit/Flash/ErrorCest.php index aec94b06ffd..5aa0d1cd5c4 100644 --- a/tests/unit/Flash/ErrorCest.php +++ b/tests/unit/Flash/ErrorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ErrorCest /** * Tests Phalcon\Flash :: error() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashError(UnitTester $I) diff --git a/tests/unit/Flash/GetAutoescapeCest.php b/tests/unit/Flash/GetAutoescapeCest.php index 7245b7cb0ea..01b616e84db 100644 --- a/tests/unit/Flash/GetAutoescapeCest.php +++ b/tests/unit/Flash/GetAutoescapeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetAutoescapeCest /** * Tests Phalcon\Flash :: getAutoescape() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashGetAutoescape(UnitTester $I) diff --git a/tests/unit/Flash/GetCustomTemplateCest.php b/tests/unit/Flash/GetCustomTemplateCest.php index b386d882bf7..2005d470f31 100644 --- a/tests/unit/Flash/GetCustomTemplateCest.php +++ b/tests/unit/Flash/GetCustomTemplateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetCustomTemplateCest /** * Tests Phalcon\Flash :: getCustomTemplate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashGetCustomTemplate(UnitTester $I) diff --git a/tests/unit/Flash/GetDICest.php b/tests/unit/Flash/GetDICest.php index 24390e30303..e6c6c5dc7cc 100644 --- a/tests/unit/Flash/GetDICest.php +++ b/tests/unit/Flash/GetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetDICest /** * Tests Phalcon\Flash :: getDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashGetDI(UnitTester $I) diff --git a/tests/unit/Flash/GetEscaperServiceCest.php b/tests/unit/Flash/GetEscaperServiceCest.php index 22eba37f94c..ce2fe993f2f 100644 --- a/tests/unit/Flash/GetEscaperServiceCest.php +++ b/tests/unit/Flash/GetEscaperServiceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetEscaperServiceCest /** * Tests Phalcon\Flash :: getEscaperService() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashGetEscaperService(UnitTester $I) diff --git a/tests/unit/Flash/MessageCest.php b/tests/unit/Flash/MessageCest.php index d2f38020dce..e4d4b3c5052 100644 --- a/tests/unit/Flash/MessageCest.php +++ b/tests/unit/Flash/MessageCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class MessageCest /** * Tests Phalcon\Flash :: message() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashMessage(UnitTester $I) diff --git a/tests/unit/Flash/NoticeCest.php b/tests/unit/Flash/NoticeCest.php index a366c12c369..bcfb21eea15 100644 --- a/tests/unit/Flash/NoticeCest.php +++ b/tests/unit/Flash/NoticeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class NoticeCest /** * Tests Phalcon\Flash :: notice() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashNotice(UnitTester $I) diff --git a/tests/unit/Flash/OutputMessageCest.php b/tests/unit/Flash/OutputMessageCest.php index b54b6904c25..3a5cd67c8cb 100644 --- a/tests/unit/Flash/OutputMessageCest.php +++ b/tests/unit/Flash/OutputMessageCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class OutputMessageCest /** * Tests Phalcon\Flash :: outputMessage() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashOutputMessage(UnitTester $I) diff --git a/tests/unit/Flash/Session/ClearCest.php b/tests/unit/Flash/Session/ClearCest.php index b1621b7d1a8..c9ac4c63686 100644 --- a/tests/unit/Flash/Session/ClearCest.php +++ b/tests/unit/Flash/Session/ClearCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ClearCest /** * Tests Phalcon\Flash\Session :: clear() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashSessionClear(UnitTester $I) diff --git a/tests/unit/Flash/Session/ConstructCest.php b/tests/unit/Flash/Session/ConstructCest.php index 04c1ae16763..243d13fb882 100644 --- a/tests/unit/Flash/Session/ConstructCest.php +++ b/tests/unit/Flash/Session/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ConstructCest /** * Tests Phalcon\Flash\Session :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashSessionConstruct(UnitTester $I) diff --git a/tests/unit/Flash/Session/ErrorCest.php b/tests/unit/Flash/Session/ErrorCest.php index c321c233e1c..03f466198d0 100644 --- a/tests/unit/Flash/Session/ErrorCest.php +++ b/tests/unit/Flash/Session/ErrorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ErrorCest /** * Tests Phalcon\Flash\Session :: error() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashSessionError(UnitTester $I) diff --git a/tests/unit/Flash/Session/GetAutoescapeCest.php b/tests/unit/Flash/Session/GetAutoescapeCest.php index 3d1be254984..cfb553ecc35 100644 --- a/tests/unit/Flash/Session/GetAutoescapeCest.php +++ b/tests/unit/Flash/Session/GetAutoescapeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetAutoescapeCest /** * Tests Phalcon\Flash\Session :: getAutoescape() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashSessionGetAutoescape(UnitTester $I) diff --git a/tests/unit/Flash/Session/GetCustomTemplateCest.php b/tests/unit/Flash/Session/GetCustomTemplateCest.php index 00d4c3b487d..b0b7ef18a8d 100644 --- a/tests/unit/Flash/Session/GetCustomTemplateCest.php +++ b/tests/unit/Flash/Session/GetCustomTemplateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetCustomTemplateCest /** * Tests Phalcon\Flash\Session :: getCustomTemplate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashSessionGetCustomTemplate(UnitTester $I) diff --git a/tests/unit/Flash/Session/GetDICest.php b/tests/unit/Flash/Session/GetDICest.php index ca85ade9562..405316f5c79 100644 --- a/tests/unit/Flash/Session/GetDICest.php +++ b/tests/unit/Flash/Session/GetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetDICest /** * Tests Phalcon\Flash\Session :: getDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashSessionGetDI(UnitTester $I) diff --git a/tests/unit/Flash/Session/GetEscaperServiceCest.php b/tests/unit/Flash/Session/GetEscaperServiceCest.php index 7005a3d3123..ea8e3a60cf8 100644 --- a/tests/unit/Flash/Session/GetEscaperServiceCest.php +++ b/tests/unit/Flash/Session/GetEscaperServiceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetEscaperServiceCest /** * Tests Phalcon\Flash\Session :: getEscaperService() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashSessionGetEscaperService(UnitTester $I) diff --git a/tests/unit/Flash/Session/GetMessagesCest.php b/tests/unit/Flash/Session/GetMessagesCest.php index a572099bc9d..7ac57a86136 100644 --- a/tests/unit/Flash/Session/GetMessagesCest.php +++ b/tests/unit/Flash/Session/GetMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetMessagesCest /** * Tests Phalcon\Flash\Session :: getMessages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashSessionGetMessages(UnitTester $I) diff --git a/tests/unit/Flash/Session/HasCest.php b/tests/unit/Flash/Session/HasCest.php index 555d6f05a09..f1fa06c4a55 100644 --- a/tests/unit/Flash/Session/HasCest.php +++ b/tests/unit/Flash/Session/HasCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class HasCest /** * Tests Phalcon\Flash\Session :: has() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashSessionHas(UnitTester $I) diff --git a/tests/unit/Flash/Session/MessageCest.php b/tests/unit/Flash/Session/MessageCest.php index 1aa29e975cc..fd41213ee3f 100644 --- a/tests/unit/Flash/Session/MessageCest.php +++ b/tests/unit/Flash/Session/MessageCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class MessageCest /** * Tests Phalcon\Flash\Session :: message() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashSessionMessage(UnitTester $I) diff --git a/tests/unit/Flash/Session/NoticeCest.php b/tests/unit/Flash/Session/NoticeCest.php index 7e0e9cdb198..f36c547da3d 100644 --- a/tests/unit/Flash/Session/NoticeCest.php +++ b/tests/unit/Flash/Session/NoticeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class NoticeCest /** * Tests Phalcon\Flash\Session :: notice() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashSessionNotice(UnitTester $I) diff --git a/tests/unit/Flash/Session/OutputCest.php b/tests/unit/Flash/Session/OutputCest.php index d40f675f759..5a3df640e0e 100644 --- a/tests/unit/Flash/Session/OutputCest.php +++ b/tests/unit/Flash/Session/OutputCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -40,7 +40,7 @@ public function _before(UnitTester $I) /** * Tests Phalcon\Flash\Session :: output() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashSessionOutput(UnitTester $I) diff --git a/tests/unit/Flash/Session/OutputMessageCest.php b/tests/unit/Flash/Session/OutputMessageCest.php index f751a0b4563..74bcd71de42 100644 --- a/tests/unit/Flash/Session/OutputMessageCest.php +++ b/tests/unit/Flash/Session/OutputMessageCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class OutputMessageCest /** * Tests Phalcon\Flash\Session :: outputMessage() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashSessionOutputMessage(UnitTester $I) diff --git a/tests/unit/Flash/Session/SetAutoescapeCest.php b/tests/unit/Flash/Session/SetAutoescapeCest.php index 4a0ef8fbb60..d61c919e50e 100644 --- a/tests/unit/Flash/Session/SetAutoescapeCest.php +++ b/tests/unit/Flash/Session/SetAutoescapeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetAutoescapeCest /** * Tests Phalcon\Flash\Session :: setAutoescape() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashSessionSetAutoescape(UnitTester $I) diff --git a/tests/unit/Flash/Session/SetAutomaticHtmlCest.php b/tests/unit/Flash/Session/SetAutomaticHtmlCest.php index c12d565c6c5..55de2bee896 100644 --- a/tests/unit/Flash/Session/SetAutomaticHtmlCest.php +++ b/tests/unit/Flash/Session/SetAutomaticHtmlCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetAutomaticHtmlCest /** * Tests Phalcon\Flash\Session :: setAutomaticHtml() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashSessionSetAutomaticHtml(UnitTester $I) diff --git a/tests/unit/Flash/Session/SetCssClassesCest.php b/tests/unit/Flash/Session/SetCssClassesCest.php index 00d932292d6..459c5ea5da3 100644 --- a/tests/unit/Flash/Session/SetCssClassesCest.php +++ b/tests/unit/Flash/Session/SetCssClassesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetCssClassesCest /** * Tests Phalcon\Flash\Session :: setCssClasses() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashSessionSetCssClasses(UnitTester $I) diff --git a/tests/unit/Flash/Session/SetCustomTemplateCest.php b/tests/unit/Flash/Session/SetCustomTemplateCest.php index 8ba7a12399c..21902896218 100644 --- a/tests/unit/Flash/Session/SetCustomTemplateCest.php +++ b/tests/unit/Flash/Session/SetCustomTemplateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -54,7 +54,7 @@ protected function getFlash() /** * Test custom template getter/setter * - * @author Phalcon Team + * @author Phalcon Team * @issue https://github.com/phalcon/cphalcon/issues/13445 * @since 2018-10-16 */ diff --git a/tests/unit/Flash/Session/SetDICest.php b/tests/unit/Flash/Session/SetDICest.php index 4c48b8b7c5f..7ead38f85b6 100644 --- a/tests/unit/Flash/Session/SetDICest.php +++ b/tests/unit/Flash/Session/SetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetDICest /** * Tests Phalcon\Flash\Session :: setDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashSessionSetDI(UnitTester $I) diff --git a/tests/unit/Flash/Session/SetEscaperServiceCest.php b/tests/unit/Flash/Session/SetEscaperServiceCest.php index b874b51deb4..d6a184d2f33 100644 --- a/tests/unit/Flash/Session/SetEscaperServiceCest.php +++ b/tests/unit/Flash/Session/SetEscaperServiceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetEscaperServiceCest /** * Tests Phalcon\Flash\Session :: setEscaperService() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashSessionSetEscaperService(UnitTester $I) diff --git a/tests/unit/Flash/Session/SetImplicitFlushCest.php b/tests/unit/Flash/Session/SetImplicitFlushCest.php index 0707256e4c5..3d7adbdb8c1 100644 --- a/tests/unit/Flash/Session/SetImplicitFlushCest.php +++ b/tests/unit/Flash/Session/SetImplicitFlushCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetImplicitFlushCest /** * Tests Phalcon\Flash\Session :: setImplicitFlush() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashSessionSetImplicitFlush(UnitTester $I) diff --git a/tests/unit/Flash/Session/SuccessCest.php b/tests/unit/Flash/Session/SuccessCest.php index 9d11a1440d7..1c03d70c3e6 100644 --- a/tests/unit/Flash/Session/SuccessCest.php +++ b/tests/unit/Flash/Session/SuccessCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SuccessCest /** * Tests Phalcon\Flash\Session :: success() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashSessionSuccess(UnitTester $I) diff --git a/tests/unit/Flash/Session/WarningCest.php b/tests/unit/Flash/Session/WarningCest.php index c53c5c9f4ab..383a47968e0 100644 --- a/tests/unit/Flash/Session/WarningCest.php +++ b/tests/unit/Flash/Session/WarningCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class WarningCest /** * Tests Phalcon\Flash\Session :: warning() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashSessionWarning(UnitTester $I) diff --git a/tests/unit/Flash/SessionCest.php b/tests/unit/Flash/SessionCest.php index c65cd280ee3..1a74859e2df 100644 --- a/tests/unit/Flash/SessionCest.php +++ b/tests/unit/Flash/SessionCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -54,7 +54,7 @@ public function _after(UnitTester $I) /** * Tests auto escaping * - * @author Phalcon Team + * @author Phalcon Team * @issue https://github.com/phalcon/cphalcon/issues/11448 * @since 2016-06-15 * @@ -184,7 +184,7 @@ public function testGetMessagesTypeRemoveMessages(UnitTester $I) * Tests getMessages in case of non existent type request * * @issue https://github.com/phalcon/cphalcon/issues/11941 - * @author Phalcon Team + * @author Phalcon Team * @since 2016-07-03 */ public function testGetNonExistentType(UnitTester $I) @@ -275,7 +275,7 @@ private function testMessageFormatProvider(): array /** * Test custom message * - * @author Phalcon Team + * @author Phalcon Team * @issue https://github.com/phalcon/cphalcon/issues/13445 * @since 2018-10-16 */ diff --git a/tests/unit/Flash/SetAutoescapeCest.php b/tests/unit/Flash/SetAutoescapeCest.php index ca453fd25c1..e8ff37588f6 100644 --- a/tests/unit/Flash/SetAutoescapeCest.php +++ b/tests/unit/Flash/SetAutoescapeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetAutoescapeCest /** * Tests Phalcon\Flash :: setAutoescape() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashSetAutoescape(UnitTester $I) diff --git a/tests/unit/Flash/SetAutomaticHtmlCest.php b/tests/unit/Flash/SetAutomaticHtmlCest.php index 61b3f5b5080..7c714a0bfc3 100644 --- a/tests/unit/Flash/SetAutomaticHtmlCest.php +++ b/tests/unit/Flash/SetAutomaticHtmlCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetAutomaticHtmlCest /** * Tests Phalcon\Flash :: setAutomaticHtml() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashSetAutomaticHtml(UnitTester $I) diff --git a/tests/unit/Flash/SetCssClassesCest.php b/tests/unit/Flash/SetCssClassesCest.php index de6b96ed0b7..dcfb0517f1b 100644 --- a/tests/unit/Flash/SetCssClassesCest.php +++ b/tests/unit/Flash/SetCssClassesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetCssClassesCest /** * Tests Phalcon\Flash :: setCssClasses() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashSetCssClasses(UnitTester $I) diff --git a/tests/unit/Flash/SetCustomTemplateCest.php b/tests/unit/Flash/SetCustomTemplateCest.php index 728feb982a4..1d60aa0d64e 100644 --- a/tests/unit/Flash/SetCustomTemplateCest.php +++ b/tests/unit/Flash/SetCustomTemplateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetCustomTemplateCest /** * Tests Phalcon\Flash :: setCustomTemplate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashSetCustomTemplate(UnitTester $I) diff --git a/tests/unit/Flash/SetDICest.php b/tests/unit/Flash/SetDICest.php index 09abfef3062..6aaafbbc2e8 100644 --- a/tests/unit/Flash/SetDICest.php +++ b/tests/unit/Flash/SetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetDICest /** * Tests Phalcon\Flash :: setDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashSetDI(UnitTester $I) diff --git a/tests/unit/Flash/SetEscaperServiceCest.php b/tests/unit/Flash/SetEscaperServiceCest.php index 216f5135ff8..0d39a4741e2 100644 --- a/tests/unit/Flash/SetEscaperServiceCest.php +++ b/tests/unit/Flash/SetEscaperServiceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetEscaperServiceCest /** * Tests Phalcon\Flash :: setEscaperService() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashSetEscaperService(UnitTester $I) diff --git a/tests/unit/Flash/SetImplicitFlushCest.php b/tests/unit/Flash/SetImplicitFlushCest.php index 572f39f26a7..042788e282a 100644 --- a/tests/unit/Flash/SetImplicitFlushCest.php +++ b/tests/unit/Flash/SetImplicitFlushCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetImplicitFlushCest /** * Tests Phalcon\Flash :: setImplicitFlush() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashSetImplicitFlush(UnitTester $I) diff --git a/tests/unit/Flash/SuccessCest.php b/tests/unit/Flash/SuccessCest.php index 68b9a21c2cd..2059cc26739 100644 --- a/tests/unit/Flash/SuccessCest.php +++ b/tests/unit/Flash/SuccessCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SuccessCest /** * Tests Phalcon\Flash :: success() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashSuccess(UnitTester $I) diff --git a/tests/unit/Flash/WarningCest.php b/tests/unit/Flash/WarningCest.php index 5418df068d2..09100aadb5c 100644 --- a/tests/unit/Flash/WarningCest.php +++ b/tests/unit/Flash/WarningCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class WarningCest /** * Tests Phalcon\Flash :: warning() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function flashWarning(UnitTester $I) diff --git a/tests/unit/Helper/Arr/ArrayToObjectCest.php b/tests/unit/Helper/Arr/ArrayToObjectCest.php index 3e025af9edb..6c43d06c14e 100644 --- a/tests/unit/Helper/Arr/ArrayToObjectCest.php +++ b/tests/unit/Helper/Arr/ArrayToObjectCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ArrayToObjectCest /** * Unit Tests Phalcon\Helper\Arr :: arrayToObject() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function helperArrArrayToObject(UnitTester $I) diff --git a/tests/unit/Helper/Arr/ChunkCest.php b/tests/unit/Helper/Arr/ChunkCest.php index 33d6a01406a..548881e1bac 100644 --- a/tests/unit/Helper/Arr/ChunkCest.php +++ b/tests/unit/Helper/Arr/ChunkCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ChunkCest /** * Tests Phalcon\Helper\Arr :: chunk() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperArrChunk(UnitTester $I) @@ -51,7 +51,7 @@ public function helperArrChunk(UnitTester $I) /** * Tests Phalcon\Helper\Arr :: chunk() - preserve * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperArrChunkPreserve(UnitTester $I) diff --git a/tests/unit/Helper/Arr/FirstCest.php b/tests/unit/Helper/Arr/FirstCest.php index 7bf138cd4c4..af40afe4759 100644 --- a/tests/unit/Helper/Arr/FirstCest.php +++ b/tests/unit/Helper/Arr/FirstCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class FirstCest /** * Tests Phalcon\Helper\Arr :: first() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperArrFirst(UnitTester $I) @@ -41,7 +41,7 @@ public function helperArrFirst(UnitTester $I) /** * Tests Phalcon\Helper\Arr :: first() - function * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperArrFirstFunction(UnitTester $I) diff --git a/tests/unit/Helper/Arr/FirstKeyCest.php b/tests/unit/Helper/Arr/FirstKeyCest.php index 673f0566279..f542b7dbd73 100644 --- a/tests/unit/Helper/Arr/FirstKeyCest.php +++ b/tests/unit/Helper/Arr/FirstKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class FirstKeyCest /** * Tests Phalcon\Helper\Arr :: firstKey() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-07 */ public function helperArrFirstKey(UnitTester $I) @@ -39,7 +39,7 @@ public function helperArrFirstKey(UnitTester $I) /** * Tests Phalcon\Helper\Arr :: firstKey() - function * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-07 */ public function helperArrFirstKeyFunction(UnitTester $I) diff --git a/tests/unit/Helper/Arr/FlattenCest.php b/tests/unit/Helper/Arr/FlattenCest.php index a8ff9610d08..4147634f5a0 100644 --- a/tests/unit/Helper/Arr/FlattenCest.php +++ b/tests/unit/Helper/Arr/FlattenCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class FlattenCest /** * Tests Phalcon\Helper\Arr :: flatten() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperArrFlatten(UnitTester $I) @@ -38,7 +38,7 @@ public function helperArrFlatten(UnitTester $I) /** * Tests Phalcon\Helper\Arr :: flatten() - deep * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperArrFlattenDeep(UnitTester $I) diff --git a/tests/unit/Helper/Arr/GetCest.php b/tests/unit/Helper/Arr/GetCest.php index 29aac5ef618..157a22bc628 100644 --- a/tests/unit/Helper/Arr/GetCest.php +++ b/tests/unit/Helper/Arr/GetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetCest /** * Tests Phalcon\Helper\Arr :: get() - numeric * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-17 */ public function helperArrGetNumeric(UnitTester $I) @@ -41,7 +41,7 @@ public function helperArrGetNumeric(UnitTester $I) /** * Tests Phalcon\Helper\Arr :: get() - string * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-17 */ public function helperArrGetString(UnitTester $I) @@ -62,7 +62,7 @@ public function helperArrGetString(UnitTester $I) /** * Tests Phalcon\Helper\Arr :: get() - default * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-17 */ public function helperArrGetDefault(UnitTester $I) diff --git a/tests/unit/Helper/Arr/GroupCest.php b/tests/unit/Helper/Arr/GroupCest.php index c00bf75112c..58febc07a0a 100644 --- a/tests/unit/Helper/Arr/GroupCest.php +++ b/tests/unit/Helper/Arr/GroupCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GroupCest /** * Tests Phalcon\Helper\Arr :: group() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-07 */ public function helperArrGroup(UnitTester $I) @@ -72,7 +72,7 @@ public function helperArrGroup(UnitTester $I) /** * Tests Phalcon\Helper\Arr :: group() - object * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-07 */ public function helperArrGroupObject(UnitTester $I) @@ -107,7 +107,7 @@ public function helperArrGroupObject(UnitTester $I) /** * Tests Phalcon\Helper\Arr :: group() - function * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-07 */ public function helperArrGroupFunction(UnitTester $I) diff --git a/tests/unit/Helper/Arr/HasCest.php b/tests/unit/Helper/Arr/HasCest.php index 2da18f864ed..73bfe1b25c9 100644 --- a/tests/unit/Helper/Arr/HasCest.php +++ b/tests/unit/Helper/Arr/HasCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class HasCest /** * Tests Phalcon\Helper\Arr :: has() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function helperArrHas(UnitTester $I) diff --git a/tests/unit/Helper/Arr/IsUniqueCest.php b/tests/unit/Helper/Arr/IsUniqueCest.php index 467e47721d9..420636beac3 100644 --- a/tests/unit/Helper/Arr/IsUniqueCest.php +++ b/tests/unit/Helper/Arr/IsUniqueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class IsUniqueCest /** * Tests Phalcon\Helper\Arr :: isUnique() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperArrIsUnique(UnitTester $I) diff --git a/tests/unit/Helper/Arr/LastCest.php b/tests/unit/Helper/Arr/LastCest.php index b2d5ab962e5..add003fbabb 100644 --- a/tests/unit/Helper/Arr/LastCest.php +++ b/tests/unit/Helper/Arr/LastCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class LastCest /** * Tests Phalcon\Helper\Arr :: last() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperArrLast(UnitTester $I) @@ -41,7 +41,7 @@ public function helperArrLast(UnitTester $I) /** * Tests Phalcon\Helper\Arr :: last() - function * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperArrLastFunction(UnitTester $I) diff --git a/tests/unit/Helper/Arr/LastKeyCest.php b/tests/unit/Helper/Arr/LastKeyCest.php index cd38434a72a..4faf95a2193 100644 --- a/tests/unit/Helper/Arr/LastKeyCest.php +++ b/tests/unit/Helper/Arr/LastKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class LastKeyCest /** * Tests Phalcon\Helper\Arr :: last() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperArrLast(UnitTester $I) @@ -41,7 +41,7 @@ public function helperArrLast(UnitTester $I) /** * Tests Phalcon\Helper\Arr :: last() - function * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperArrLastFunction(UnitTester $I) diff --git a/tests/unit/Helper/Arr/OrderCest.php b/tests/unit/Helper/Arr/OrderCest.php index 900b5ac6463..1c517026a2d 100644 --- a/tests/unit/Helper/Arr/OrderCest.php +++ b/tests/unit/Helper/Arr/OrderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class OrderCest /** * Tests Phalcon\Helper\Arr :: order() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperArrOrder(UnitTester $I) diff --git a/tests/unit/Helper/Arr/PluckCest.php b/tests/unit/Helper/Arr/PluckCest.php index dc910907ba1..f1ef4a89e9e 100644 --- a/tests/unit/Helper/Arr/PluckCest.php +++ b/tests/unit/Helper/Arr/PluckCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class PluckCest /** * Tests Phalcon\Helper\Arr :: pluck() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-07 */ public function helperArrPluck(UnitTester $I) @@ -39,7 +39,7 @@ public function helperArrPluck(UnitTester $I) /** * Tests Phalcon\Helper\Arr :: pluck() - object * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-07 */ public function helperArrPluckObject(UnitTester $I) diff --git a/tests/unit/Helper/Arr/SetCest.php b/tests/unit/Helper/Arr/SetCest.php index 9f7889b2e9d..ca43bb9017e 100644 --- a/tests/unit/Helper/Arr/SetCest.php +++ b/tests/unit/Helper/Arr/SetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetCest /** * Tests Phalcon\Helper\Arr :: set() - numeric * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function helperArrSetNumeric(UnitTester $I) @@ -42,7 +42,7 @@ public function helperArrSetNumeric(UnitTester $I) /** * Tests Phalcon\Helper\Arr :: set() - string * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function helperArrSetString(UnitTester $I) @@ -64,7 +64,7 @@ public function helperArrSetString(UnitTester $I) /** * Tests Phalcon\Helper\Arr :: set() - no index * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function helperArrSetNoIndex(UnitTester $I) @@ -86,7 +86,7 @@ public function helperArrSetNoIndex(UnitTester $I) /** * Tests Phalcon\Helper\Arr :: set() - overwrite * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function helperArrSetOverwride(UnitTester $I) diff --git a/tests/unit/Helper/Arr/SliceLeftCest.php b/tests/unit/Helper/Arr/SliceLeftCest.php index 815e250faa9..6c19ed08fbe 100644 --- a/tests/unit/Helper/Arr/SliceLeftCest.php +++ b/tests/unit/Helper/Arr/SliceLeftCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SliceLeftCest /** * Tests Phalcon\Helper\Arr :: sliceLeft() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperArrSliceLeft(UnitTester $I) diff --git a/tests/unit/Helper/Arr/SliceRightCest.php b/tests/unit/Helper/Arr/SliceRightCest.php index 8f664156ecd..fc4678466fa 100644 --- a/tests/unit/Helper/Arr/SliceRightCest.php +++ b/tests/unit/Helper/Arr/SliceRightCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SliceRightCest /** * Tests Phalcon\Helper\Arr :: sliceRight() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperArrSliceRight(UnitTester $I) diff --git a/tests/unit/Helper/Arr/SplitCest.php b/tests/unit/Helper/Arr/SplitCest.php index 7a2fe8cbc56..d4c49a720e2 100644 --- a/tests/unit/Helper/Arr/SplitCest.php +++ b/tests/unit/Helper/Arr/SplitCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SplitCest /** * Tests Phalcon\Helper\Arr :: split() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-07 */ public function helperArrSplit(UnitTester $I) diff --git a/tests/unit/Helper/Arr/ValidateAllCest.php b/tests/unit/Helper/Arr/ValidateAllCest.php index 920a8865dde..8ff994a1cb3 100644 --- a/tests/unit/Helper/Arr/ValidateAllCest.php +++ b/tests/unit/Helper/Arr/ValidateAllCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ValidateAllCest /** * Tests Phalcon\Helper\Arr :: validateAll() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-07 */ public function helperArrValidateAll(UnitTester $I) diff --git a/tests/unit/Helper/Arr/ValidateAnyCest.php b/tests/unit/Helper/Arr/ValidateAnyCest.php index a3fb3f217d9..68f740507c1 100644 --- a/tests/unit/Helper/Arr/ValidateAnyCest.php +++ b/tests/unit/Helper/Arr/ValidateAnyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ValidateAnyCest /** * Tests Phalcon\Helper\Arr :: validateAny() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-07 */ public function helperArrValidateAny(UnitTester $I) diff --git a/tests/unit/Helper/Arr/WhiteListCest.php b/tests/unit/Helper/Arr/WhiteListCest.php index 77a9279233b..ea037f73e6f 100644 --- a/tests/unit/Helper/Arr/WhiteListCest.php +++ b/tests/unit/Helper/Arr/WhiteListCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class WhiteListCest /** * Unit Tests Phalcon\Helper\Arr :: whiteList() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-14 */ public function helperArrWhiteList(UnitTester $I) diff --git a/tests/unit/Helper/Number/BetweenCest.php b/tests/unit/Helper/Number/BetweenCest.php index 302dc2008cc..26ba7e7ae76 100644 --- a/tests/unit/Helper/Number/BetweenCest.php +++ b/tests/unit/Helper/Number/BetweenCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class BetweenCest /** * Tests Phalcon\Helper\Number :: between() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-17 */ public function helperNumberBetween(UnitTester $I) diff --git a/tests/unit/Helper/Str/CamelizeCest.php b/tests/unit/Helper/Str/CamelizeCest.php index 1b228e1a7bd..a0c6f9e3e6f 100644 --- a/tests/unit/Helper/Str/CamelizeCest.php +++ b/tests/unit/Helper/Str/CamelizeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class CamelizeCest * * @dataProvider getSources * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperStrCamelize(UnitTester $I, Example $example) diff --git a/tests/unit/Helper/Str/ConcatCest.php b/tests/unit/Helper/Str/ConcatCest.php index 3573e0ef5b4..e5f880c0c59 100644 --- a/tests/unit/Helper/Str/ConcatCest.php +++ b/tests/unit/Helper/Str/ConcatCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ConcatCest /** * Tests Phalcon\Helper\Str :: concat() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperStrConcat(UnitTester $I) diff --git a/tests/unit/Helper/Str/CountVowelsCest.php b/tests/unit/Helper/Str/CountVowelsCest.php index 668c531e062..67d5ac84f92 100644 --- a/tests/unit/Helper/Str/CountVowelsCest.php +++ b/tests/unit/Helper/Str/CountVowelsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class CountVowelsCest /** * Tests Phalcon\Helper\Str :: countVowels() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperStrCountVowels(UnitTester $I) diff --git a/tests/unit/Helper/Str/DecapitalizeCest.php b/tests/unit/Helper/Str/DecapitalizeCest.php index 9f35ff04149..2ef4e782fc7 100644 --- a/tests/unit/Helper/Str/DecapitalizeCest.php +++ b/tests/unit/Helper/Str/DecapitalizeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class DecapitalizeCest /** * Tests Phalcon\Helper\Str :: decapitalize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperStrDecapitalize(UnitTester $I) diff --git a/tests/unit/Helper/Str/DirFromFileCest.php b/tests/unit/Helper/Str/DirFromFileCest.php index bd0316bd845..e03d944e148 100644 --- a/tests/unit/Helper/Str/DirFromFileCest.php +++ b/tests/unit/Helper/Str/DirFromFileCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class DirFromFileCest /** * Tests Phalcon\Helper\Str :: dirFromFile() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-16 */ public function helperStrFolderFromFile(UnitTester $I) diff --git a/tests/unit/Helper/Str/DirSeparatorCest.php b/tests/unit/Helper/Str/DirSeparatorCest.php index 9ec0a870e2b..ae8cc9f8ca7 100644 --- a/tests/unit/Helper/Str/DirSeparatorCest.php +++ b/tests/unit/Helper/Str/DirSeparatorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class DirSeparatorCest /** * Tests Phalcon\Helper\Str :: dirSeparator() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-16 */ public function helperStrFolderSeparator(UnitTester $I) diff --git a/tests/unit/Helper/Str/DynamicCest.php b/tests/unit/Helper/Str/DynamicCest.php index d7a945aa0dc..1348b4c4a17 100644 --- a/tests/unit/Helper/Str/DynamicCest.php +++ b/tests/unit/Helper/Str/DynamicCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -63,7 +63,7 @@ public function helperStrDynamicCustomDelimiter(UnitTester $I) * Tests Phalcon\Helper\Str :: dynamic() - custom separator * * @issue https://github.com/phalcon/cphalcon/issues/11215 - * @author Phalcon Team + * @author Phalcon Team * @since 2016-06-27 */ public function helperStrDynamicCustomSeparator(UnitTester $I) diff --git a/tests/unit/Helper/Str/EndsWithCest.php b/tests/unit/Helper/Str/EndsWithCest.php index f4b6c182339..a675f2db3d4 100644 --- a/tests/unit/Helper/Str/EndsWithCest.php +++ b/tests/unit/Helper/Str/EndsWithCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class EndsWithCest /** * Tests Phalcon\Helper\Str :: endsWith() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperStrEndsWith(UnitTester $I) @@ -39,7 +39,7 @@ public function helperStrEndsWith(UnitTester $I) /** * Tests Phalcon\Helper\Str :: endsWith() - empty strings * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperStrEndsWithEmpty(UnitTester $I) @@ -52,7 +52,7 @@ public function helperStrEndsWithEmpty(UnitTester $I) /** * Tests Phalcon\Helper\Str :: endsWith() - finding an empty string * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperStrEndsWithEmptySearchString(UnitTester $I) @@ -66,7 +66,7 @@ public function helperStrEndsWithEmptySearchString(UnitTester $I) /** * Tests Phalcon\Helper\Str :: endsWith() - case insensitive flag * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperStrEndsWithCaseInsensitive(UnitTester $I) @@ -85,7 +85,7 @@ public function helperStrEndsWithCaseInsensitive(UnitTester $I) /** * Tests Phalcon\Helper\Str :: endsWith() - case sensitive flag * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperStrEndsWithCaseSensitive(UnitTester $I) diff --git a/tests/unit/Helper/Str/FirstBetweenCest.php b/tests/unit/Helper/Str/FirstBetweenCest.php index d4a35956372..db56484fd37 100644 --- a/tests/unit/Helper/Str/FirstBetweenCest.php +++ b/tests/unit/Helper/Str/FirstBetweenCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class FirstBetweenCest /** * Tests Phalcon\Helper\Str :: firstBetween() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperStrFirstBetween(UnitTester $I) diff --git a/tests/unit/Helper/Str/HumanizeCest.php b/tests/unit/Helper/Str/HumanizeCest.php index 7f1a7917e1c..1b96979a3da 100644 --- a/tests/unit/Helper/Str/HumanizeCest.php +++ b/tests/unit/Helper/Str/HumanizeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class HumanizeCest /** * Tests Phalcon\Helper\Str :: humanize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperStrHumanize(UnitTester $I) diff --git a/tests/unit/Helper/Str/IncludesCest.php b/tests/unit/Helper/Str/IncludesCest.php index a54514f4556..edcf3544904 100644 --- a/tests/unit/Helper/Str/IncludesCest.php +++ b/tests/unit/Helper/Str/IncludesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class IncludesCest /** * Tests Phalcon\Helper\Str :: includes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperStrIncludes(UnitTester $I) diff --git a/tests/unit/Helper/Str/IncrementCest.php b/tests/unit/Helper/Str/IncrementCest.php index 1866c3456e7..875b0f46e44 100644 --- a/tests/unit/Helper/Str/IncrementCest.php +++ b/tests/unit/Helper/Str/IncrementCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class IncrementCest /** * Tests Phalcon\Helper\Str :: increment() - string * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperStrIncrementSimpleString(UnitTester $I) @@ -35,7 +35,7 @@ public function helperStrIncrementSimpleString(UnitTester $I) /** * Tests Phalcon\Helper\Str :: increment() - already incremented string * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperStrIncrementAlreadyIncremented(UnitTester $I) @@ -51,7 +51,7 @@ public function helperStrIncrementAlreadyIncremented(UnitTester $I) * Tests Phalcon\Helper\Str :: increment() - already incremented string * twice * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperStrIncrementAlreadyIncrementedTwice(UnitTester $I) @@ -66,7 +66,7 @@ public function helperStrIncrementAlreadyIncrementedTwice(UnitTester $I) /** * Tests Phalcon\Helper\Str :: increment() - string with underscore * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperStrIncrementStringWithUnderscore(UnitTester $I) @@ -81,7 +81,7 @@ public function helperStrIncrementStringWithUnderscore(UnitTester $I) /** * Tests Phalcon\Helper\Str :: increment() - string with a space at the end * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperStrIncrementStringWithSpace(UnitTester $I) @@ -96,7 +96,7 @@ public function helperStrIncrementStringWithSpace(UnitTester $I) /** * Tests Phalcon\Helper\Str :: increment() - different separator * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperStrIncrementStringWithDifferentSeparator(UnitTester $I) diff --git a/tests/unit/Helper/Str/IsAnagramCest.php b/tests/unit/Helper/Str/IsAnagramCest.php index 78b717a5f35..210fd5315e4 100644 --- a/tests/unit/Helper/Str/IsAnagramCest.php +++ b/tests/unit/Helper/Str/IsAnagramCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class IsAnagramCest /** * Tests Phalcon\Helper\Str :: isAnagram() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperStrIsAnagram(UnitTester $I) diff --git a/tests/unit/Helper/Str/IsLowerCest.php b/tests/unit/Helper/Str/IsLowerCest.php index 35258121712..02753128c53 100644 --- a/tests/unit/Helper/Str/IsLowerCest.php +++ b/tests/unit/Helper/Str/IsLowerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class IsLowerCest /** * Tests Phalcon\Helper\Str :: isLower() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperStrIsLower(UnitTester $I) diff --git a/tests/unit/Helper/Str/IsPalindromeCest.php b/tests/unit/Helper/Str/IsPalindromeCest.php index a0a587619b2..ffb12c59452 100644 --- a/tests/unit/Helper/Str/IsPalindromeCest.php +++ b/tests/unit/Helper/Str/IsPalindromeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class IsPalindromeCest /** * Tests Phalcon\Helper\Str :: isPalindrome() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperStrIsPalindrome(UnitTester $I) diff --git a/tests/unit/Helper/Str/IsUpperCest.php b/tests/unit/Helper/Str/IsUpperCest.php index ad2e84e5704..4b387fd9d78 100644 --- a/tests/unit/Helper/Str/IsUpperCest.php +++ b/tests/unit/Helper/Str/IsUpperCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class IsUpperCest /** * Tests Phalcon\Helper\Str :: isUpper() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperStrIsUpper(UnitTester $I) diff --git a/tests/unit/Helper/Str/LowerCest.php b/tests/unit/Helper/Str/LowerCest.php index fece4cb4ed5..7357eb6cd5a 100644 --- a/tests/unit/Helper/Str/LowerCest.php +++ b/tests/unit/Helper/Str/LowerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class LowerCest /** * Tests Phalcon\Helper\Str :: lower() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperStrLower(UnitTester $I) diff --git a/tests/unit/Helper/Str/RandomCest.php b/tests/unit/Helper/Str/RandomCest.php index 9633340c770..ffd9d2f72fb 100644 --- a/tests/unit/Helper/Str/RandomCest.php +++ b/tests/unit/Helper/Str/RandomCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class RandomCest /** * Tests Phalcon\Helper\Str :: random() - constants * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperStrRandomConstants(UnitTester $I) @@ -39,7 +39,7 @@ public function helperStrRandomConstants(UnitTester $I) /** * Tests Phalcon\Helper\Str :: random() - alnum * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 * * @dataProvider oneToTenProvider @@ -74,7 +74,7 @@ public function helperStrRandomAlnum(UnitTester $I, Example $example) /** * Tests Phalcon\Helper\Str :: random() - alpha * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 * * @dataProvider oneToTenProvider @@ -109,7 +109,7 @@ public function helperStrRandomAlpha(UnitTester $I, Example $example) /** * Tests Phalcon\Helper\Str :: random() - hexdec * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 * * @dataProvider oneToTenProvider @@ -144,7 +144,7 @@ public function helperStrRandomHexDec(UnitTester $I, Example $example) /** * Tests Phalcon\Helper\Str :: random() - numeric * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 * * @dataProvider oneToTenProvider @@ -179,7 +179,7 @@ public function helperStrRandomNumeric(UnitTester $I, Example $example) /** * Tests Phalcon\Helper\Str :: random() - non zero * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 * * @dataProvider oneToTenProvider @@ -214,7 +214,7 @@ public function helperStrRandomNonZero(UnitTester $I, Example $example) /** * Tests Phalcon\Helper\Str :: random() - distinct type * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 * * @dataProvider helperStrRandomDistinctProvider diff --git a/tests/unit/Helper/Str/ReduceSlashesCest.php b/tests/unit/Helper/Str/ReduceSlashesCest.php index 51a92bf7075..d81de8a450c 100644 --- a/tests/unit/Helper/Str/ReduceSlashesCest.php +++ b/tests/unit/Helper/Str/ReduceSlashesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ReduceSlashesCest /** * Tests Phalcon\Helper\Str :: reduceSlashes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperStrReduceSlashes(UnitTester $I) diff --git a/tests/unit/Helper/Str/StartsWithCest.php b/tests/unit/Helper/Str/StartsWithCest.php index 95ab2a3a420..ae9ed51ecaf 100644 --- a/tests/unit/Helper/Str/StartsWithCest.php +++ b/tests/unit/Helper/Str/StartsWithCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class StartsWithCest /** * Tests Phalcon\Helper\Str :: startsWith() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperStrStartsWith(UnitTester $I) @@ -39,7 +39,7 @@ public function helperStrStartsWith(UnitTester $I) /** * Tests Phalcon\Helper\Str :: startsWith() - empty strings * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperStrStartsWithEmpty(UnitTester $I) @@ -52,7 +52,7 @@ public function helperStrStartsWithEmpty(UnitTester $I) /** * Tests Phalcon\Helper\Str :: startsWith() - finding an empty string * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperStrStartsWithEmptySearchString(UnitTester $I) @@ -66,7 +66,7 @@ public function helperStrStartsWithEmptySearchString(UnitTester $I) /** * Tests Phalcon\Helper\Str :: startsWith() - case insensitive flag * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperStrStartsWithCaseInsensitive(UnitTester $I) @@ -85,7 +85,7 @@ public function helperStrStartsWithCaseInsensitive(UnitTester $I) /** * Tests Phalcon\Helper\Str :: startsWith() - case sensitive flag * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperStrStartsWithCaseSensitive(UnitTester $I) diff --git a/tests/unit/Helper/Str/UncamelizeCest.php b/tests/unit/Helper/Str/UncamelizeCest.php index ea661aad103..d535ab53f14 100644 --- a/tests/unit/Helper/Str/UncamelizeCest.php +++ b/tests/unit/Helper/Str/UncamelizeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class UncamelizeCest * * @dataProvider getSources * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperStrUncamelize(UnitTester $I, Example $item) diff --git a/tests/unit/Helper/Str/UnderscoreCest.php b/tests/unit/Helper/Str/UnderscoreCest.php index 56b440a5ed4..ebda2fb001f 100644 --- a/tests/unit/Helper/Str/UnderscoreCest.php +++ b/tests/unit/Helper/Str/UnderscoreCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class UnderscoreCest /** * Tests Phalcon\Helper\Str :: underscore() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 */ public function helperStrUnderscore(UnitTester $I) diff --git a/tests/unit/Helper/Str/UpperCest.php b/tests/unit/Helper/Str/UpperCest.php index e550ff4fd3e..c88fdf158f8 100644 --- a/tests/unit/Helper/Str/UpperCest.php +++ b/tests/unit/Helper/Str/UpperCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class UpperCest /** * Tests Phalcon\Helper\Str :: upper() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-06 * * @dataProvider basicProvider diff --git a/tests/unit/Html/Attributes/ClearCest.php b/tests/unit/Html/Attributes/ClearCest.php index 161a7ec9c68..9e017064ba1 100644 --- a/tests/unit/Html/Attributes/ClearCest.php +++ b/tests/unit/Html/Attributes/ClearCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ClearCest /** * Tests Phalcon\Html\Attributes :: clear() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-02 */ public function htmlAttributesClear(UnitTester $I) diff --git a/tests/unit/Html/Attributes/ConstructCest.php b/tests/unit/Html/Attributes/ConstructCest.php index 95ce1140633..43c8f08877b 100644 --- a/tests/unit/Html/Attributes/ConstructCest.php +++ b/tests/unit/Html/Attributes/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ConstructCest /** * Unit Tests Phalcon\Html\Attributes :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function htmlAttributesConstruct(UnitTester $I) diff --git a/tests/unit/Html/Attributes/CountCest.php b/tests/unit/Html/Attributes/CountCest.php index e90c95b41e5..f093ec264bb 100644 --- a/tests/unit/Html/Attributes/CountCest.php +++ b/tests/unit/Html/Attributes/CountCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class CountCest /** * Tests Phalcon\Html\Attributes :: count() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-02 */ public function htmlAttributesCount(UnitTester $I) diff --git a/tests/unit/Html/Attributes/GetCest.php b/tests/unit/Html/Attributes/GetCest.php index 5c9c5265a20..3c6ed030795 100644 --- a/tests/unit/Html/Attributes/GetCest.php +++ b/tests/unit/Html/Attributes/GetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetCest /** * Tests Phalcon\Html\Attributes :: get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-02 */ public function htmlAttributesGet(UnitTester $I) diff --git a/tests/unit/Html/Attributes/GetIteratorCest.php b/tests/unit/Html/Attributes/GetIteratorCest.php index 07f4ed860da..bf718ca4d5d 100644 --- a/tests/unit/Html/Attributes/GetIteratorCest.php +++ b/tests/unit/Html/Attributes/GetIteratorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetIteratorCest /** * Tests Phalcon\Html\Attributes :: getIterator() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-02 */ public function htmlAttributesGetIterator(UnitTester $I) diff --git a/tests/unit/Html/Attributes/HasCest.php b/tests/unit/Html/Attributes/HasCest.php index a8244062f2b..7b60811158c 100644 --- a/tests/unit/Html/Attributes/HasCest.php +++ b/tests/unit/Html/Attributes/HasCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class HasCest /** * Tests Phalcon\Html\Attributes :: has() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-02 */ public function htmlAttributesHas(UnitTester $I) @@ -52,7 +52,7 @@ public function htmlAttributesHas(UnitTester $I) /** * Tests Phalcon\Html\Attributes :: has() - case sensitive * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-02 */ public function htmlAttributesHasCaseSensitive(UnitTester $I) diff --git a/tests/unit/Html/Attributes/InitCest.php b/tests/unit/Html/Attributes/InitCest.php index 2f6514b063c..ad705341b4b 100644 --- a/tests/unit/Html/Attributes/InitCest.php +++ b/tests/unit/Html/Attributes/InitCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class InitCest /** * Tests Phalcon\Html\Attributes :: init() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-02 */ public function htmlAttributesInit(UnitTester $I) diff --git a/tests/unit/Html/Attributes/JsonSerializeCest.php b/tests/unit/Html/Attributes/JsonSerializeCest.php index aa5bcba7c8e..2e7a92a153a 100644 --- a/tests/unit/Html/Attributes/JsonSerializeCest.php +++ b/tests/unit/Html/Attributes/JsonSerializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class JsonSerializeCest /** * Tests Phalcon\Html\Attributes :: jsonSerialize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-02 */ public function htmlAttributesJsonSerialize(UnitTester $I) diff --git a/tests/unit/Html/Attributes/OffsetExistsCest.php b/tests/unit/Html/Attributes/OffsetExistsCest.php index 518495f3642..58c2f7635f1 100644 --- a/tests/unit/Html/Attributes/OffsetExistsCest.php +++ b/tests/unit/Html/Attributes/OffsetExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class OffsetExistsCest /** * Tests Phalcon\Html\Attributes :: offsetExists() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-02 */ public function htmlAttributesOffsetExists(UnitTester $I) diff --git a/tests/unit/Html/Attributes/OffsetGetCest.php b/tests/unit/Html/Attributes/OffsetGetCest.php index bb5db80f93b..4c1727d62cd 100644 --- a/tests/unit/Html/Attributes/OffsetGetCest.php +++ b/tests/unit/Html/Attributes/OffsetGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class OffsetGetCest /** * Tests Phalcon\Html\Attributes :: offsetGet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-02 */ public function htmlAttributesOffsetGet(UnitTester $I) diff --git a/tests/unit/Html/Attributes/OffsetSetCest.php b/tests/unit/Html/Attributes/OffsetSetCest.php index 0f5a0d771d9..4a86e1f4992 100644 --- a/tests/unit/Html/Attributes/OffsetSetCest.php +++ b/tests/unit/Html/Attributes/OffsetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Html/Attributes/OffsetUnsetCest.php b/tests/unit/Html/Attributes/OffsetUnsetCest.php index a90dbb0713c..88bf585239c 100644 --- a/tests/unit/Html/Attributes/OffsetUnsetCest.php +++ b/tests/unit/Html/Attributes/OffsetUnsetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class OffsetUnsetCest /** * Tests Phalcon\Html\Attributes :: offsetUnset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-02 */ public function htmlAttributesOffsetUnset(UnitTester $I) diff --git a/tests/unit/Html/Attributes/RemoveCest.php b/tests/unit/Html/Attributes/RemoveCest.php index 490ee702a1e..e7beb0d0f9e 100644 --- a/tests/unit/Html/Attributes/RemoveCest.php +++ b/tests/unit/Html/Attributes/RemoveCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class RemoveCest /** * Tests Phalcon\Html\Attributes :: remove() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-02 */ public function htmlAttributesRemove(UnitTester $I) diff --git a/tests/unit/Html/Attributes/RenderCest.php b/tests/unit/Html/Attributes/RenderCest.php index fc9206a30fe..804d7aebbd0 100644 --- a/tests/unit/Html/Attributes/RenderCest.php +++ b/tests/unit/Html/Attributes/RenderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Html/Attributes/SerializeCest.php b/tests/unit/Html/Attributes/SerializeCest.php index 6af4242840c..3077f6504ba 100644 --- a/tests/unit/Html/Attributes/SerializeCest.php +++ b/tests/unit/Html/Attributes/SerializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SerializeCest /** * Tests Phalcon\Html\Attributes :: serialize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-02 */ public function htmlAttributesSerialize(UnitTester $I) diff --git a/tests/unit/Html/Attributes/SetCest.php b/tests/unit/Html/Attributes/SetCest.php index b6efafaf946..4f561310477 100644 --- a/tests/unit/Html/Attributes/SetCest.php +++ b/tests/unit/Html/Attributes/SetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetCest /** * Tests Phalcon\Html\Attributes :: set() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-02 */ public function htmlAttributesSet(UnitTester $I) diff --git a/tests/unit/Html/Attributes/ToArrayCest.php b/tests/unit/Html/Attributes/ToArrayCest.php index 86f251daadf..f6a6aad4c10 100644 --- a/tests/unit/Html/Attributes/ToArrayCest.php +++ b/tests/unit/Html/Attributes/ToArrayCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ToArrayCest /** * Tests Phalcon\Html\Attributes :: toArray() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-02 */ public function htmlAttributesToArray(UnitTester $I) diff --git a/tests/unit/Html/Attributes/ToJsonCest.php b/tests/unit/Html/Attributes/ToJsonCest.php index bddc52c7d34..359c23e2833 100644 --- a/tests/unit/Html/Attributes/ToJsonCest.php +++ b/tests/unit/Html/Attributes/ToJsonCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ToJsonCest /** * Tests Phalcon\Html\Attributes :: toJson() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-02 */ public function htmlAttributesToJson(UnitTester $I) diff --git a/tests/unit/Html/Attributes/ToStringCest.php b/tests/unit/Html/Attributes/ToStringCest.php index 711249e56f5..4d21588174a 100644 --- a/tests/unit/Html/Attributes/ToStringCest.php +++ b/tests/unit/Html/Attributes/ToStringCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Html/Attributes/UnderscoreGetCest.php b/tests/unit/Html/Attributes/UnderscoreGetCest.php index a40c9f9d21b..3de27d9dc3c 100644 --- a/tests/unit/Html/Attributes/UnderscoreGetCest.php +++ b/tests/unit/Html/Attributes/UnderscoreGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class UnderscoreGetCest /** * Tests Phalcon\Html\Attributes :: __get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-02 */ public function htmlAttributesUnderscoreGet(UnitTester $I) diff --git a/tests/unit/Html/Attributes/UnderscoreIsSetCest.php b/tests/unit/Html/Attributes/UnderscoreIsSetCest.php index 38d23e26863..3d1fe94d4e1 100644 --- a/tests/unit/Html/Attributes/UnderscoreIsSetCest.php +++ b/tests/unit/Html/Attributes/UnderscoreIsSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class UnderscoreIsSetCest /** * Tests Phalcon\Html\Attributes :: __isset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-02 */ public function htmlAttributesUnderscoreIsSet(UnitTester $I) diff --git a/tests/unit/Html/Attributes/UnderscoreSetCest.php b/tests/unit/Html/Attributes/UnderscoreSetCest.php index 141d88cd7e3..87e8a2e9faa 100644 --- a/tests/unit/Html/Attributes/UnderscoreSetCest.php +++ b/tests/unit/Html/Attributes/UnderscoreSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class UnderscoreSetCest /** * Tests Phalcon\Html\Attributes :: __set() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-02 */ public function htmlAttributesUnderscoreSet(UnitTester $I) diff --git a/tests/unit/Html/Attributes/UnderscoreUnsetCest.php b/tests/unit/Html/Attributes/UnderscoreUnsetCest.php index 358c2e8290a..7727115b440 100644 --- a/tests/unit/Html/Attributes/UnderscoreUnsetCest.php +++ b/tests/unit/Html/Attributes/UnderscoreUnsetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class UnderscoreUnsetCest /** * Tests Phalcon\Html\Attributes :: __unset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-02 */ public function htmlAttributesUnderscoreUnset(UnitTester $I) diff --git a/tests/unit/Html/Attributes/UnserializeCest.php b/tests/unit/Html/Attributes/UnserializeCest.php index 4833ed791ae..7d1c98bcf63 100644 --- a/tests/unit/Html/Attributes/UnserializeCest.php +++ b/tests/unit/Html/Attributes/UnserializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class UnserializeCest /** * Tests Phalcon\Html\Attributes :: unserialize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-02 */ public function htmlAttributesUnserialize(UnitTester $I) diff --git a/tests/unit/Html/Breadcrumbs/AddCest.php b/tests/unit/Html/Breadcrumbs/AddCest.php index dad59b5c670..eca0b2dc07c 100644 --- a/tests/unit/Html/Breadcrumbs/AddCest.php +++ b/tests/unit/Html/Breadcrumbs/AddCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class AddCest /** * Tests Phalcon\Html\Breadcrumbs :: add() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function htmlBreadcrumbsAdd(UnitTester $I) diff --git a/tests/unit/Html/Breadcrumbs/ClearCest.php b/tests/unit/Html/Breadcrumbs/ClearCest.php index 35e6647af3f..731d0f52839 100644 --- a/tests/unit/Html/Breadcrumbs/ClearCest.php +++ b/tests/unit/Html/Breadcrumbs/ClearCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ClearCest /** * Tests Phalcon\Html\Breadcrumbs :: clear() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function htmlBreadcrumbsClear(UnitTester $I) diff --git a/tests/unit/Html/Breadcrumbs/GetSetSeparatorCest.php b/tests/unit/Html/Breadcrumbs/GetSetSeparatorCest.php index aeb1ecf9cc8..983f8f2fedd 100644 --- a/tests/unit/Html/Breadcrumbs/GetSetSeparatorCest.php +++ b/tests/unit/Html/Breadcrumbs/GetSetSeparatorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetSetSeparatorCest /** * Tests Phalcon\Html\Breadcrumbs :: getSeparator()/setSeparator() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function htmlBreadcrumbsGetSetSeparator(UnitTester $I) diff --git a/tests/unit/Html/Breadcrumbs/RemoveCest.php b/tests/unit/Html/Breadcrumbs/RemoveCest.php index 9718647b15c..54a1877eab6 100644 --- a/tests/unit/Html/Breadcrumbs/RemoveCest.php +++ b/tests/unit/Html/Breadcrumbs/RemoveCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class RemoveCest /** * Tests Phalcon\Html\Breadcrumbs :: remove() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function htmlBreadcrumbsRemove(UnitTester $I) diff --git a/tests/unit/Html/Breadcrumbs/RenderCest.php b/tests/unit/Html/Breadcrumbs/RenderCest.php index 2a2eb1488e3..16748271272 100644 --- a/tests/unit/Html/Breadcrumbs/RenderCest.php +++ b/tests/unit/Html/Breadcrumbs/RenderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class RenderCest /** * Tests Phalcon\Html\Breadcrumbs :: render() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function htmlBreadcrumbsRender(UnitTester $I) diff --git a/tests/unit/Html/Breadcrumbs/ToArrayCest.php b/tests/unit/Html/Breadcrumbs/ToArrayCest.php index c46bca8ce7c..4d76ad4a7e4 100644 --- a/tests/unit/Html/Breadcrumbs/ToArrayCest.php +++ b/tests/unit/Html/Breadcrumbs/ToArrayCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ToArrayCest /** * Tests Phalcon\Html\Breadcrumbs :: toArray() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function htmlBreadcrumbsToArray(UnitTester $I) diff --git a/tests/unit/Html/Helper/AnchorCest.php b/tests/unit/Html/Helper/AnchorCest.php index e7f5ca4cab5..c92abd201a1 100644 --- a/tests/unit/Html/Helper/AnchorCest.php +++ b/tests/unit/Html/Helper/AnchorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Html/Helper/AnchorRawCest.php b/tests/unit/Html/Helper/AnchorRawCest.php index 5d6122ec4d4..3cccd0ebde7 100644 --- a/tests/unit/Html/Helper/AnchorRawCest.php +++ b/tests/unit/Html/Helper/AnchorRawCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Html/Helper/BodyCest.php b/tests/unit/Html/Helper/BodyCest.php index e9ab0202dd3..a0fdd008ed3 100644 --- a/tests/unit/Html/Helper/BodyCest.php +++ b/tests/unit/Html/Helper/BodyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Html/Helper/ButtonCest.php b/tests/unit/Html/Helper/ButtonCest.php index be65b2600e1..6ba3b8f6d03 100644 --- a/tests/unit/Html/Helper/ButtonCest.php +++ b/tests/unit/Html/Helper/ButtonCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Html/Helper/CloseCest.php b/tests/unit/Html/Helper/CloseCest.php index 7daf3a6e279..056520f52f2 100644 --- a/tests/unit/Html/Helper/CloseCest.php +++ b/tests/unit/Html/Helper/CloseCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Html/Helper/ElementCest.php b/tests/unit/Html/Helper/ElementCest.php index 08bd02110c9..3120574c18a 100644 --- a/tests/unit/Html/Helper/ElementCest.php +++ b/tests/unit/Html/Helper/ElementCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Html/Helper/ElementRawCest.php b/tests/unit/Html/Helper/ElementRawCest.php index 6c1a60f8d76..ba8f61cdbf5 100644 --- a/tests/unit/Html/Helper/ElementRawCest.php +++ b/tests/unit/Html/Helper/ElementRawCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Html/Helper/FormCest.php b/tests/unit/Html/Helper/FormCest.php index 995588331b1..c80775496a3 100644 --- a/tests/unit/Html/Helper/FormCest.php +++ b/tests/unit/Html/Helper/FormCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Html/Helper/ImgCest.php b/tests/unit/Html/Helper/ImgCest.php index c03141ee99e..c497d9a6517 100644 --- a/tests/unit/Html/Helper/ImgCest.php +++ b/tests/unit/Html/Helper/ImgCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Html/Helper/LabelCest.php b/tests/unit/Html/Helper/LabelCest.php index 82f2354e347..4ed4b3a93e3 100644 --- a/tests/unit/Html/Helper/LabelCest.php +++ b/tests/unit/Html/Helper/LabelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Html/Helper/TextAreaCest.php b/tests/unit/Html/Helper/TextAreaCest.php index 0435d086943..49513c5c898 100644 --- a/tests/unit/Html/Helper/TextAreaCest.php +++ b/tests/unit/Html/Helper/TextAreaCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Html/Tag/AppendTitleCest.php b/tests/unit/Html/Tag/AppendTitleCest.php index 551f6c8d1c2..da88178cf7d 100644 --- a/tests/unit/Html/Tag/AppendTitleCest.php +++ b/tests/unit/Html/Tag/AppendTitleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class AppendTitleCest /** * Tests Phalcon\Html\Tag :: appendTitle() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function htmlTagAppendTitle(UnitTester $I) @@ -59,7 +59,7 @@ public function htmlTagAppendTitle(UnitTester $I) /** * Tests Phalcon\Html\Tag :: appendTitle() - string * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function htmlTagAppendTitleString(UnitTester $I) @@ -93,7 +93,7 @@ public function htmlTagAppendTitleString(UnitTester $I) /** * Tests Phalcon\Html\Tag :: appendTitle() - separator * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function htmlTagAppendTitleSeparator(UnitTester $I) @@ -128,7 +128,7 @@ public function htmlTagAppendTitleSeparator(UnitTester $I) /** * Tests Phalcon\Html\Tag :: appendTitle() - double call * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function htmlTagAppendTitleDoubleCall(UnitTester $I) @@ -161,7 +161,7 @@ public function htmlTagAppendTitleDoubleCall(UnitTester $I) /** * Tests Phalcon\Html\Tag :: appendTitle() - many * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function htmlTagAppendTitleMany(UnitTester $I) @@ -193,7 +193,7 @@ public function htmlTagAppendTitleMany(UnitTester $I) /** * Tests Phalcon\Html\Tag :: appendTitle() - empty array * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function htmlTagAppendTitleEmptyArray(UnitTester $I) diff --git a/tests/unit/Html/Tag/ButtonCest.php b/tests/unit/Html/Tag/ButtonCest.php index 1c7c5c1802a..966e91526de 100644 --- a/tests/unit/Html/Tag/ButtonCest.php +++ b/tests/unit/Html/Tag/ButtonCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Html/Tag/ClearCest.php b/tests/unit/Html/Tag/ClearCest.php index 4d59427fd13..082d79f264d 100644 --- a/tests/unit/Html/Tag/ClearCest.php +++ b/tests/unit/Html/Tag/ClearCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ClearCest /** * Tests Phalcon\Html\Tag :: clear() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function htmlTagClear(UnitTester $I) diff --git a/tests/unit/Html/Tag/ConstantsCest.php b/tests/unit/Html/Tag/ConstantsCest.php index 6f03ed82fbb..2d0725d862d 100644 --- a/tests/unit/Html/Tag/ConstantsCest.php +++ b/tests/unit/Html/Tag/ConstantsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ConstantsCest /** * Tests Phalcon\Html\Tag :: constants * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function htmlTagConstants(UnitTester $I) diff --git a/tests/unit/Html/Tag/ElementCest.php b/tests/unit/Html/Tag/ElementCest.php index 65912231d71..e80306551bf 100644 --- a/tests/unit/Html/Tag/ElementCest.php +++ b/tests/unit/Html/Tag/ElementCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ class ElementCest /** * Tests Phalcon\Html\Tag :: element() * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function htmlTagElement(UnitTester $I) @@ -65,7 +65,7 @@ public function htmlTagElement(UnitTester $I) /** * Tests Phalcon\Html\Tag :: element() - no name * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function htmlTagElementNoName(UnitTester $I) @@ -83,7 +83,7 @@ function () { /** * Tests Phalcon\Tag :: element() - self close * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function htmlTagElementSelfClose(UnitTester $I) @@ -115,7 +115,7 @@ public function htmlTagElementSelfClose(UnitTester $I) /** * Tests Phalcon\Tag :: element() - only start * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function htmlTagElementOnlyStart(UnitTester $I) @@ -146,7 +146,7 @@ public function htmlTagElementOnlyStart(UnitTester $I) /** * Tests Phalcon\Tag :: element() - EOL * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function htmlTagElementEol(UnitTester $I) diff --git a/tests/unit/Html/Tag/ElementCloseCest.php b/tests/unit/Html/Tag/ElementCloseCest.php index fad5fbc771c..862b380d165 100644 --- a/tests/unit/Html/Tag/ElementCloseCest.php +++ b/tests/unit/Html/Tag/ElementCloseCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ElementCloseCest /** * Tests Phalcon\Html\Tag :: elementClose() * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function htmlTagElementClose(UnitTester $I) @@ -46,7 +46,7 @@ public function htmlTagElementClose(UnitTester $I) /** * Tests Phalcon\Html\Tag :: elementClose() - EOL * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function htmlTagElementCloseEol(UnitTester $I) diff --git a/tests/unit/Html/Tag/EndFormCest.php b/tests/unit/Html/Tag/EndFormCest.php index 56ca2f1e5f8..fa4fc37a6c9 100644 --- a/tests/unit/Html/Tag/EndFormCest.php +++ b/tests/unit/Html/Tag/EndFormCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class EndFormCest /** * Tests Phalcon\Html\Tag :: endForm() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function htmlTagEndForm(UnitTester $I) @@ -39,7 +39,7 @@ public function htmlTagEndForm(UnitTester $I) /** * Tests Phalcon\Html\Tag :: endForm() - EOL * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function htmlTagEndFormEol(UnitTester $I) diff --git a/tests/unit/Html/Tag/FormCest.php b/tests/unit/Html/Tag/FormCest.php index ffd84c5f9bc..7474d2d76db 100644 --- a/tests/unit/Html/Tag/FormCest.php +++ b/tests/unit/Html/Tag/FormCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class FormCest /** * Tests Phalcon\Html\Tag :: form() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function htmlTagForm(UnitTester $I) diff --git a/tests/unit/Html/Tag/FriendlyTitleCest.php b/tests/unit/Html/Tag/FriendlyTitleCest.php index 7f852cabccc..960ed7b4acf 100644 --- a/tests/unit/Html/Tag/FriendlyTitleCest.php +++ b/tests/unit/Html/Tag/FriendlyTitleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class FriendlyTitleCest /** * Tests Phalcon\Html\Tag :: friendlyTitle() * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-11 */ public function htmlTagFriendlyTitle(UnitTester $I) @@ -44,7 +44,7 @@ public function htmlTagFriendlyTitle(UnitTester $I) /** * Tests Phalcon\Html\Tag :: friendlyTitle() - separator * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-11 */ public function htmlTagFriendlyTitleSeparator(UnitTester $I) @@ -67,7 +67,7 @@ public function htmlTagFriendlyTitleSeparator(UnitTester $I) /** * Tests Phalcon\Html\Tag :: friendlyTitle() - lowercase * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-11 */ public function htmlTagFriendlyTitleLowercase(UnitTester $I) @@ -90,7 +90,7 @@ public function htmlTagFriendlyTitleLowercase(UnitTester $I) /** * Tests Phalcon\Html\Tag :: friendlyTitle() - replace string * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-11 */ public function htmlTagFriendlyTitleReplaceString(UnitTester $I) @@ -111,7 +111,7 @@ public function htmlTagFriendlyTitleReplaceString(UnitTester $I) /** * Tests Phalcon\Html\Tag :: friendlyTitle() - replace array * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-11 */ public function htmlTagFriendlyTitleReplaceArray(UnitTester $I) @@ -133,7 +133,7 @@ public function htmlTagFriendlyTitleReplaceArray(UnitTester $I) * Tests Phalcon\Html\Tag :: friendlyTitle() - special characters and * escaping * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-11 */ public function htmlTagFriendlyTitleSpecialCharacters(UnitTester $I) @@ -153,7 +153,7 @@ public function htmlTagFriendlyTitleSpecialCharacters(UnitTester $I) /** * Tests Phalcon\Html\Tag :: friendlyTitle() - accented characters replace * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-11 */ public function htmlTagFriendlyTitleAccentedCharactersReplace(UnitTester $I) @@ -175,7 +175,7 @@ public function htmlTagFriendlyTitleAccentedCharactersReplace(UnitTester $I) * Tests Phalcon\Html\Tag :: friendlyTitle() - accented characters replace * array * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-11 */ public function htmlTagFriendlyTitleAccentedCharactersReplaceArray(UnitTester $I) @@ -196,7 +196,7 @@ public function htmlTagFriendlyTitleAccentedCharactersReplaceArray(UnitTester $I /** * Tests Phalcon\Html\Tag :: friendlyTitle() - replace exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-11 */ public function htmlTagFriendlyTitleReplaceException(UnitTester $I) diff --git a/tests/unit/Html/Tag/GetSetDICest.php b/tests/unit/Html/Tag/GetSetDICest.php index 9f7ecaeaceb..e49b9cb818f 100644 --- a/tests/unit/Html/Tag/GetSetDICest.php +++ b/tests/unit/Html/Tag/GetSetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class GetSetDICest /** * Tests Phalcon\Html\Tag :: getDI()/setDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function htmlTagGetSetDI(UnitTester $I) diff --git a/tests/unit/Html/Tag/GetSetDocTypeCest.php b/tests/unit/Html/Tag/GetSetDocTypeCest.php index f37668ff222..8a64bd770ba 100644 --- a/tests/unit/Html/Tag/GetSetDocTypeCest.php +++ b/tests/unit/Html/Tag/GetSetDocTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class GetSetDocTypeCest * * @dataProvider getDocTypes * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function htmlTagGetSetDocType(UnitTester $I, Example $example) diff --git a/tests/unit/Html/Tag/GetTitleCest.php b/tests/unit/Html/Tag/GetTitleCest.php index 470648f10df..b026e2fce81 100644 --- a/tests/unit/Html/Tag/GetTitleCest.php +++ b/tests/unit/Html/Tag/GetTitleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class GetTitleCest /** * Tests Phalcon\Html\Tag :: getTitle() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function htmlTagGetTitle(UnitTester $I) @@ -44,7 +44,7 @@ public function htmlTagGetTitle(UnitTester $I) /** * Tests Phalcon\Html\Tag :: getTitle() - escape * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function htmlTagGetTitleEscape(UnitTester $I) diff --git a/tests/unit/Html/Tag/GetTitleSeparatorCest.php b/tests/unit/Html/Tag/GetTitleSeparatorCest.php index 4732004f17b..69f01f19463 100644 --- a/tests/unit/Html/Tag/GetTitleSeparatorCest.php +++ b/tests/unit/Html/Tag/GetTitleSeparatorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetTitleSeparatorCest /** * Tests Phalcon\Html\Tag :: getTitleSeparator() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function htmlTagGetTitleSeparator(UnitTester $I) diff --git a/tests/unit/Html/Tag/GetValueCest.php b/tests/unit/Html/Tag/GetValueCest.php index 2e1f46b2fc5..e887e71d493 100644 --- a/tests/unit/Html/Tag/GetValueCest.php +++ b/tests/unit/Html/Tag/GetValueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetValueCest /** * Tests Phalcon\Html\Tag :: getValue() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function htmlTagGetValue(UnitTester $I) @@ -37,7 +37,7 @@ public function htmlTagGetValue(UnitTester $I) /** * Tests Phalcon\Html\Tag :: getValue() - internal array * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function htmlTagGetValueInternal(UnitTester $I) @@ -54,7 +54,7 @@ public function htmlTagGetValueInternal(UnitTester $I) /** * Tests Phalcon\Html\Tag :: getValue() - POST * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function htmlTagGetValuePost(UnitTester $I) diff --git a/tests/unit/Html/Tag/HasValueCest.php b/tests/unit/Html/Tag/HasValueCest.php index 011c8d795d1..1af5b509886 100644 --- a/tests/unit/Html/Tag/HasValueCest.php +++ b/tests/unit/Html/Tag/HasValueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class HasValueCest /** * Tests Phalcon\Html\Tag :: hasValue() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function htmlTagHasValue(UnitTester $I) @@ -37,7 +37,7 @@ public function htmlTagHasValue(UnitTester $I) /** * Tests Phalcon\Html\Tag :: hasValue() - POST * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function htmlTagHasValuePost(UnitTester $I) diff --git a/tests/unit/Html/Tag/ImageCest.php b/tests/unit/Html/Tag/ImageCest.php index ff1edbd2537..3d91534fab5 100644 --- a/tests/unit/Html/Tag/ImageCest.php +++ b/tests/unit/Html/Tag/ImageCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class ImageCest /** * Tests Phalcon\Html\Tag :: image() * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function htmlTagImage(UnitTester $I) @@ -45,7 +45,7 @@ public function htmlTagImage(UnitTester $I) /** * Tests Phalcon\Html\Tag :: image() - remote * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function htmlTagImageRemote(UnitTester $I) @@ -54,12 +54,12 @@ public function htmlTagImageRemote(UnitTester $I) $tag = new Tag(); $tag->setDI($this->container); - $name = 'http://phalconphp.com/img/hello.gif'; + $name = 'http://phalcon.io/img/hello.gif'; $options = [ 'local' => false, 'alt' => 'picture', ]; - $expected = 'picturetestFieldParameter($I, $tag, $name, 'image', $options, $expected); $this->testFieldParameter($I, $tag, $name, 'image', $options, $expected, true); @@ -68,7 +68,7 @@ public function htmlTagImageRemote(UnitTester $I) /** * Tests Phalcon\Html\Tag :: image() - params * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function htmlTagImageParameters(UnitTester $I) @@ -90,7 +90,7 @@ public function htmlTagImageParameters(UnitTester $I) /** * Tests Phalcon\Html\Tag :: image() - params src * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function htmlTagImageParametersSrc(UnitTester $I) @@ -113,7 +113,7 @@ public function htmlTagImageParametersSrc(UnitTester $I) /** * Tests Phalcon\Html\Tag :: image() - setAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function htmlTagImageSetAttribute(UnitTester $I) @@ -135,7 +135,7 @@ public function htmlTagImageSetAttribute(UnitTester $I) /** * Tests Phalcon\Html\Tag :: image() - setAttribute() element not present * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function htmlTagImageSetAttributeElementNotPresent(UnitTester $I) diff --git a/tests/unit/Html/Tag/InputCheckboxCest.php b/tests/unit/Html/Tag/InputCheckboxCest.php index 411778e14df..c1540ad6770 100644 --- a/tests/unit/Html/Tag/InputCheckboxCest.php +++ b/tests/unit/Html/Tag/InputCheckboxCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Html/Tag/InputColorCest.php b/tests/unit/Html/Tag/InputColorCest.php index ea02e6f3669..36d46e75d83 100644 --- a/tests/unit/Html/Tag/InputColorCest.php +++ b/tests/unit/Html/Tag/InputColorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Html/Tag/InputDateCest.php b/tests/unit/Html/Tag/InputDateCest.php index 45d69d7cb0b..c37cdd5a38e 100644 --- a/tests/unit/Html/Tag/InputDateCest.php +++ b/tests/unit/Html/Tag/InputDateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Html/Tag/InputDateTimeCest.php b/tests/unit/Html/Tag/InputDateTimeCest.php index fed3853cc5b..8412a2bd0d9 100644 --- a/tests/unit/Html/Tag/InputDateTimeCest.php +++ b/tests/unit/Html/Tag/InputDateTimeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Html/Tag/InputDateTimeLocalCest.php b/tests/unit/Html/Tag/InputDateTimeLocalCest.php index 210156cacec..bff194da335 100644 --- a/tests/unit/Html/Tag/InputDateTimeLocalCest.php +++ b/tests/unit/Html/Tag/InputDateTimeLocalCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Html/Tag/InputEmailCest.php b/tests/unit/Html/Tag/InputEmailCest.php index e70350d5933..ee435b32a0d 100644 --- a/tests/unit/Html/Tag/InputEmailCest.php +++ b/tests/unit/Html/Tag/InputEmailCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Html/Tag/InputFileCest.php b/tests/unit/Html/Tag/InputFileCest.php index 6132e52af60..1f749a5d075 100644 --- a/tests/unit/Html/Tag/InputFileCest.php +++ b/tests/unit/Html/Tag/InputFileCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Html/Tag/InputHiddenCest.php b/tests/unit/Html/Tag/InputHiddenCest.php index ec763aaded6..fa507076eda 100644 --- a/tests/unit/Html/Tag/InputHiddenCest.php +++ b/tests/unit/Html/Tag/InputHiddenCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Html/Tag/InputImageCest.php b/tests/unit/Html/Tag/InputImageCest.php index b97f57b9a90..631b86b3ace 100644 --- a/tests/unit/Html/Tag/InputImageCest.php +++ b/tests/unit/Html/Tag/InputImageCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Html/Tag/InputMonthCest.php b/tests/unit/Html/Tag/InputMonthCest.php index cf5879dcc6c..b0280eb28c5 100644 --- a/tests/unit/Html/Tag/InputMonthCest.php +++ b/tests/unit/Html/Tag/InputMonthCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Html/Tag/InputNumericCest.php b/tests/unit/Html/Tag/InputNumericCest.php index 88acf03d86f..ff23e9e0eb4 100644 --- a/tests/unit/Html/Tag/InputNumericCest.php +++ b/tests/unit/Html/Tag/InputNumericCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Html/Tag/InputPasswordCest.php b/tests/unit/Html/Tag/InputPasswordCest.php index 9ac4b22e0b1..7f8d3e98169 100644 --- a/tests/unit/Html/Tag/InputPasswordCest.php +++ b/tests/unit/Html/Tag/InputPasswordCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Html/Tag/InputRadioCest.php b/tests/unit/Html/Tag/InputRadioCest.php index 7b542696458..1287d05cc66 100644 --- a/tests/unit/Html/Tag/InputRadioCest.php +++ b/tests/unit/Html/Tag/InputRadioCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Html/Tag/InputRangeCest.php b/tests/unit/Html/Tag/InputRangeCest.php index b3d009d3d0a..d75d202f0dd 100644 --- a/tests/unit/Html/Tag/InputRangeCest.php +++ b/tests/unit/Html/Tag/InputRangeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Html/Tag/InputSearchCest.php b/tests/unit/Html/Tag/InputSearchCest.php index e7690b550fe..5b9e26784f1 100644 --- a/tests/unit/Html/Tag/InputSearchCest.php +++ b/tests/unit/Html/Tag/InputSearchCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Html/Tag/InputTelCest.php b/tests/unit/Html/Tag/InputTelCest.php index 03c39dfe2fb..c76991cc256 100644 --- a/tests/unit/Html/Tag/InputTelCest.php +++ b/tests/unit/Html/Tag/InputTelCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Html/Tag/InputTextCest.php b/tests/unit/Html/Tag/InputTextCest.php index 77d4d67ef82..44facc44531 100644 --- a/tests/unit/Html/Tag/InputTextCest.php +++ b/tests/unit/Html/Tag/InputTextCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Html/Tag/InputTimeCest.php b/tests/unit/Html/Tag/InputTimeCest.php index 6add97bc4a6..1f478e76818 100644 --- a/tests/unit/Html/Tag/InputTimeCest.php +++ b/tests/unit/Html/Tag/InputTimeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Html/Tag/InputUrlCest.php b/tests/unit/Html/Tag/InputUrlCest.php index 6b336b64a00..30fcce0c61d 100644 --- a/tests/unit/Html/Tag/InputUrlCest.php +++ b/tests/unit/Html/Tag/InputUrlCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Html/Tag/InputWeekCest.php b/tests/unit/Html/Tag/InputWeekCest.php index c6c19602b4b..0a337c3fc0e 100644 --- a/tests/unit/Html/Tag/InputWeekCest.php +++ b/tests/unit/Html/Tag/InputWeekCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Html/Tag/JavascriptCest.php b/tests/unit/Html/Tag/JavascriptCest.php index 2f3c2710e78..4b9ccd68365 100644 --- a/tests/unit/Html/Tag/JavascriptCest.php +++ b/tests/unit/Html/Tag/JavascriptCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class JavascriptCest /** * Tests Phalcon\Tag :: javascript() - local * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-29 */ public function htmlTagJavascriptLocal(UnitTester $I) @@ -44,7 +44,7 @@ public function htmlTagJavascriptLocal(UnitTester $I) /** * Tests Phalcon\Tag :: javascript() - remote * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-29 */ public function htmlTagJavascriptRemote(UnitTester $I) @@ -65,7 +65,7 @@ public function htmlTagJavascriptRemote(UnitTester $I) * * @issue https://github.com/phalcon/cphalcon/issues/13341 * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-12-22 */ public function htmlTagJavascriptHtml5(UnitTester $I) diff --git a/tests/unit/Html/Tag/LinkCest.php b/tests/unit/Html/Tag/LinkCest.php index 90de9757eef..68697c9f18c 100644 --- a/tests/unit/Html/Tag/LinkCest.php +++ b/tests/unit/Html/Tag/LinkCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class LinkCest /** * Tests Phalcon\Html\Tag :: link() * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-29 */ public function htmlTagLink(UnitTester $I) @@ -47,7 +47,7 @@ public function htmlTagLink(UnitTester $I) * * @issue https://github.com/phalcon/cphalcon/issues/2002 * - * @author Phalcon Team + * @author Phalcon Team * @author Dreamszhu * @since 2014-03-10 */ @@ -76,7 +76,7 @@ public function htmlTagLinkParamsWithQuery(UnitTester $I) /** * Tests Phalcon\Html\Tag :: link() - empty url * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-29 */ public function htmlTagLinkEmptyUrl(UnitTester $I) @@ -96,7 +96,7 @@ public function htmlTagLinkEmptyUrl(UnitTester $I) /** * Tests Phalcon\Html\Tag :: link() - named array as a parameter * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-29 */ public function htmlTagLinkNamedParameters(UnitTester $I) @@ -123,7 +123,7 @@ public function htmlTagLinkNamedParameters(UnitTester $I) * * @issue https://github.com/phalcon/cphalcon/issues/1679 * - * @author Phalcon Team + * @author Phalcon Team * @author Dreamszhu * @since 2014-09-29 */ @@ -148,7 +148,7 @@ public function htmlTagLinkComplexUrlLocal(UnitTester $I) * * @issue https://github.com/phalcon/cphalcon/issues/1679 * - * @author Phalcon Team + * @author Phalcon Team * @author Dreamszhu * @since 2014-09-29 */ @@ -158,33 +158,33 @@ public function htmlTagLinkComplexUrlRemote(UnitTester $I) $tag = new Tag(); $tag->setDI($this->container); - $url = 'http://phalconphp.com/en/'; + $url = 'http://phalcon.io/en/'; $name = 'x_name'; $params = [ 'local' => false, 'class' => 'x_class', ]; - $expected = 'x_name'; + $expected = 'x_name'; $actual = $tag->link($url, $name, $params); $I->assertEquals($expected, $actual); - $url = 'http://phalconphp.com/en/'; + $url = 'http://phalcon.io/en/'; $name = 'x_name'; $params = [ 'local' => false, 'class' => 'x_class', 'text' => 'Website', ]; - $expected = 'Website'; + $expected = 'Website'; $actual = $tag->link($url, $name, $params); $I->assertEquals($expected, $actual); - $url = 'mailto:someone@phalconphp.com'; - $name = 'someone@phalconphp.com'; + $url = 'mailto:someone@phalcon.io'; + $name = 'someone@phalcon.io'; $params = [ 'local' => false, ]; - $expected = 'someone@phalconphp.com'; + $expected = 'someone@phalcon.io'; $actual = $tag->link($url, $name, $params); $I->assertEquals($expected, $actual); } diff --git a/tests/unit/Html/Tag/PrependTitleCest.php b/tests/unit/Html/Tag/PrependTitleCest.php index 22bd3c4f7c7..8b6a61bac6d 100644 --- a/tests/unit/Html/Tag/PrependTitleCest.php +++ b/tests/unit/Html/Tag/PrependTitleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class PrependTitleCest /** * Tests Phalcon\Html\Tag :: prependTitle() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function htmlTagPrependTitle(UnitTester $I) @@ -56,7 +56,7 @@ public function htmlTagPrependTitle(UnitTester $I) /** * Tests Phalcon\Html\Tag :: prependTitle() - string * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function htmlTagAppendTitleString(UnitTester $I) @@ -90,7 +90,7 @@ public function htmlTagAppendTitleString(UnitTester $I) /** * Tests Phalcon\Html\Tag :: prependTitle() - separator * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function htmlTagPrependTitleSeparator(UnitTester $I) @@ -122,7 +122,7 @@ public function htmlTagPrependTitleSeparator(UnitTester $I) /** * Tests Phalcon\Html\Tag :: prependTitle() - double call * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function htmlTagPrependTitleDoubleCall(UnitTester $I) @@ -154,7 +154,7 @@ public function htmlTagPrependTitleDoubleCall(UnitTester $I) /** * Tests Phalcon\Html\Tag :: prependTitle() - many * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function htmlTagPrependTitleMany(UnitTester $I) @@ -185,7 +185,7 @@ public function htmlTagPrependTitleMany(UnitTester $I) /** * Tests Phalcon\Html\Tag :: prependTitle() - empty array * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function htmlTagPrependTitleEmptyArray(UnitTester $I) diff --git a/tests/unit/Html/Tag/RenderTitleCest.php b/tests/unit/Html/Tag/RenderTitleCest.php index ed86a6764f3..0fc7e997666 100644 --- a/tests/unit/Html/Tag/RenderTitleCest.php +++ b/tests/unit/Html/Tag/RenderTitleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class RenderTitleCest /** * Tests Phalcon\Html\Tag :: renderTitle() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function htmlTagRenderTitle(UnitTester $I) diff --git a/tests/unit/Html/Tag/ResetCest.php b/tests/unit/Html/Tag/ResetCest.php index 30080ff4d9d..5c3acbb4138 100644 --- a/tests/unit/Html/Tag/ResetCest.php +++ b/tests/unit/Html/Tag/ResetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Html/Tag/SelectCest.php b/tests/unit/Html/Tag/SelectCest.php index f78c234f23f..a4415617b56 100644 --- a/tests/unit/Html/Tag/SelectCest.php +++ b/tests/unit/Html/Tag/SelectCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class SelectCest /** * Tests Phalcon\Html\Tag :: select() * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function htmlTagSelect(UnitTester $I) @@ -52,7 +52,7 @@ public function htmlTagSelect(UnitTester $I) * * @issue https://github.com/phalcon/cphalcon/issues/54 * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function htmlTagSelectWithId(UnitTester $I) @@ -81,7 +81,7 @@ public function htmlTagSelectWithId(UnitTester $I) /** * Tests Phalcon\Html\Tag :: select() - name * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function htmlTagSelectWithName(UnitTester $I) @@ -110,7 +110,7 @@ public function htmlTagSelectWithName(UnitTester $I) /** * Tests Phalcon\Html\Tag :: select() - value * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function htmlTagSelectWithValue(UnitTester $I) @@ -139,7 +139,7 @@ public function htmlTagSelectWithValue(UnitTester $I) /** * Tests Phalcon\Html\Tag :: select() - setAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function htmlTagSelectSetAttribute(UnitTester $I) @@ -171,7 +171,7 @@ public function htmlTagSelectSetAttribute(UnitTester $I) /** * Tests Phalcon\Html\Tag :: select() - setAttribute() element not present * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function htmlTagSelectSetAttributeElementNotPresent(UnitTester $I) @@ -206,7 +206,7 @@ public function htmlTagSelectSetAttributeElementNotPresent(UnitTester $I) * * @issue https://github.com/phalcon/cphalcon/issues/54 * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function htmlTagSelectOptGroupWithId(UnitTester $I) @@ -243,7 +243,7 @@ public function htmlTagSelectOptGroupWithId(UnitTester $I) * * @issue https://github.com/phalcon/cphalcon/issues/54 * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function htmlTagSelectOptGroupWithoutId(UnitTester $I) @@ -277,7 +277,7 @@ public function htmlTagSelectOptGroupWithoutId(UnitTester $I) /** * Tests Phalcon\Html\Tag :: select() - optgroup array with value * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function htmlTagSelectOptGroupWithValue(UnitTester $I) @@ -312,7 +312,7 @@ public function htmlTagSelectOptGroupWithValue(UnitTester $I) /** * Tests Phalcon\Html\Tag :: select() - optgroup setAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function htmlTagSelectOptGroupSetAttribute(UnitTester $I) @@ -351,7 +351,7 @@ public function htmlTagSelectOptGroupSetAttribute(UnitTester $I) * Tests Phalcon\Html\Tag :: select() - optgroup setAttribute() element not * present * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function htmlTagSelectOptGroupSetAttributeElementNotPresent(UnitTester $I) diff --git a/tests/unit/Html/Tag/SetAttributeCest.php b/tests/unit/Html/Tag/SetAttributeCest.php index 52ae1f3b726..a16757f3e7c 100644 --- a/tests/unit/Html/Tag/SetAttributeCest.php +++ b/tests/unit/Html/Tag/SetAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetAttributeCest /** * Tests Phalcon\Html\Tag :: setAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function htmlTagSetAttribute(UnitTester $I) diff --git a/tests/unit/Html/Tag/SetAttributesCest.php b/tests/unit/Html/Tag/SetAttributesCest.php index a6171f44de4..ebc29fea0e5 100644 --- a/tests/unit/Html/Tag/SetAttributesCest.php +++ b/tests/unit/Html/Tag/SetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetAttributesCest /** * Tests Phalcon\Html\Tag :: setAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function htmlTagSetAttributes(UnitTester $I) diff --git a/tests/unit/Html/Tag/SetTitleCest.php b/tests/unit/Html/Tag/SetTitleCest.php index 66dfc561a3d..7f9b4a7809b 100644 --- a/tests/unit/Html/Tag/SetTitleCest.php +++ b/tests/unit/Html/Tag/SetTitleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class SetTitleCest /** * Tests Phalcon\Html\Tag :: setTitle() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function htmlTagSetTitle(UnitTester $I) diff --git a/tests/unit/Html/Tag/SetTitleSeparatorCest.php b/tests/unit/Html/Tag/SetTitleSeparatorCest.php index 9a655de21c8..ec8983df6bc 100644 --- a/tests/unit/Html/Tag/SetTitleSeparatorCest.php +++ b/tests/unit/Html/Tag/SetTitleSeparatorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetTitleSeparatorCest /** * Tests Phalcon\Html\Tag :: setTitleSeparator() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function htmlTagSetTitleSeparator(UnitTester $I) diff --git a/tests/unit/Html/Tag/StylesheetCest.php b/tests/unit/Html/Tag/StylesheetCest.php index 6127e4b31bb..99c3a2aca26 100644 --- a/tests/unit/Html/Tag/StylesheetCest.php +++ b/tests/unit/Html/Tag/StylesheetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -59,7 +59,7 @@ public function htmlTagStylesheet(UnitTester $I) /** * Tests Phalcon\Html\Tag :: stylesheet() - remote * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-12 */ public function htmlTagStylesheetRemote(UnitTester $I) @@ -67,10 +67,10 @@ public function htmlTagStylesheetRemote(UnitTester $I) $I->wantToTest('Html\Tag - stylesheet() - remote'); $tag = new Tag(); $tag->setDI($this->container); - $url = 'http://phalconphp.com/css/phalcon.css'; + $url = 'http://phalcon.io/css/phalcon.css'; $options = ['local' => false]; $expected = '' + . 'href="http://phalcon.io/css/phalcon.css" />' . PHP_EOL; $actual = $tag @@ -80,7 +80,7 @@ public function htmlTagStylesheetRemote(UnitTester $I) $I->assertEquals($expected, $actual); $expected = '' + . 'href="http://phalcon.io/css/phalcon.css">' . PHP_EOL; $actual = $tag ->setDocType(Tag::HTML5) diff --git a/tests/unit/Html/Tag/SubmitCest.php b/tests/unit/Html/Tag/SubmitCest.php index f9e7d5218b3..e62b21c903d 100644 --- a/tests/unit/Html/Tag/SubmitCest.php +++ b/tests/unit/Html/Tag/SubmitCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Html/Tag/TextAreaCest.php b/tests/unit/Html/Tag/TextAreaCest.php index 0ddfeacf5ab..ca9c2c517c6 100644 --- a/tests/unit/Html/Tag/TextAreaCest.php +++ b/tests/unit/Html/Tag/TextAreaCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class TextAreaCest /** * Tests Phalcon\Html\Tag :: textArea() * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function htmlTagTextArea(UnitTester $I) @@ -41,7 +41,7 @@ public function htmlTagTextArea(UnitTester $I) /** * Tests Phalcon\Html\Tag :: textArea() - array as a parameters and id in it * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function htmlTagTextAreaWithId(UnitTester $I) @@ -63,7 +63,7 @@ public function htmlTagTextAreaWithId(UnitTester $I) /** * Tests Phalcon\Html\Tag :: textArea() - setAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function htmlTagTextAreaSetAttribute(UnitTester $I) @@ -86,7 +86,7 @@ public function htmlTagTextAreaSetAttribute(UnitTester $I) /** * Tests Phalcon\Html\Tag :: textArea() - setAttribute() element not present * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function htmlTagTextAreaSetAttributeElementNotPresent(UnitTester $I) @@ -109,7 +109,7 @@ public function htmlTagTextAreaSetAttributeElementNotPresent(UnitTester $I) /** * Tests Phalcon\Html\Tag :: textArea() - setAttribute() with newline * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-03 */ public function htmlTagTextAreaSetAttributeNewLine(UnitTester $I) diff --git a/tests/unit/Html/TagFactory/NewInstanceCest.php b/tests/unit/Html/TagFactory/NewInstanceCest.php index ac9afc5df7e..ba82cf8d301 100644 --- a/tests/unit/Html/TagFactory/NewInstanceCest.php +++ b/tests/unit/Html/TagFactory/NewInstanceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -53,7 +53,7 @@ public function filterTagFactoryNewInstanceServices(UnitTester $I, Example $exam * @throws Exception * @since 2019-05-04 * - * @author Phalcon Team + * @author Phalcon Team */ public function filterTagFactoryNewInstanceException(UnitTester $I) { diff --git a/tests/unit/Http/Cookie/ConstructCest.php b/tests/unit/Http/Cookie/ConstructCest.php index a18907b05e9..30ebb4e87de 100644 --- a/tests/unit/Http/Cookie/ConstructCest.php +++ b/tests/unit/Http/Cookie/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ConstructCest /** * Tests Phalcon\Http\Cookie :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpCookieConstruct(UnitTester $I) diff --git a/tests/unit/Http/Cookie/CookieCest.php b/tests/unit/Http/Cookie/CookieCest.php index c2823781632..ca7463dadab 100644 --- a/tests/unit/Http/Cookie/CookieCest.php +++ b/tests/unit/Http/Cookie/CookieCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -37,7 +37,7 @@ public function _before(UnitTester $I) * forgery * * @test - * @author Phalcon Team + * @author Phalcon Team * @since 2018-05-06 */ public function shouldThrowExceptionIfMessageAuthenticationCodeIsMismatch(UnitTester $I) @@ -89,7 +89,7 @@ function () use ($I) { * Tests Cookie::getValue using message authentication code * * @test - * @author Phalcon Team + * @author Phalcon Team * @since 2018-05-06 */ public function shouldDecryptValueByUsingMessageAuthenticationCode(UnitTester $I) @@ -133,7 +133,7 @@ public function shouldDecryptValueByUsingMessageAuthenticationCode(UnitTester $I * * @test * @issue https://github.com/phalcon/cphalcon/issues/11259 - * @author Phalcon Team + * @author Phalcon Team * @since 2017-10-04 */ public function shouldDecryptValueByUsingDefaultEncryptionAlgo(UnitTester $I) @@ -162,7 +162,7 @@ public function shouldDecryptValueByUsingDefaultEncryptionAlgo(UnitTester $I) * * @test * @issue https://github.com/phalcon/cphalcon/issues/12978 - * @author Phalcon Team + * @author Phalcon Team * @since 2017-09-02 */ public function shouldWorkWithoutInitializeInternalCookiesProperty(UnitTester $I) diff --git a/tests/unit/Http/Cookie/DeleteCest.php b/tests/unit/Http/Cookie/DeleteCest.php index 13cc395acb2..10532a2da1b 100644 --- a/tests/unit/Http/Cookie/DeleteCest.php +++ b/tests/unit/Http/Cookie/DeleteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class DeleteCest /** * Tests Phalcon\Http\Cookie :: delete() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpCookieDelete(UnitTester $I) diff --git a/tests/unit/Http/Cookie/GetDICest.php b/tests/unit/Http/Cookie/GetDICest.php index 0b47498f733..cf4cd1d1b68 100644 --- a/tests/unit/Http/Cookie/GetDICest.php +++ b/tests/unit/Http/Cookie/GetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetDICest /** * Tests Phalcon\Http\Cookie :: getDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpCookieGetDI(UnitTester $I) diff --git a/tests/unit/Http/Cookie/GetDomainCest.php b/tests/unit/Http/Cookie/GetDomainCest.php index 33d674de799..228c16a06f2 100644 --- a/tests/unit/Http/Cookie/GetDomainCest.php +++ b/tests/unit/Http/Cookie/GetDomainCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetDomainCest /** * Tests Phalcon\Http\Cookie :: getDomain() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpCookieGetDomain(UnitTester $I) diff --git a/tests/unit/Http/Cookie/GetExpirationCest.php b/tests/unit/Http/Cookie/GetExpirationCest.php index 3fff36e463c..5b3b1ee8e2a 100644 --- a/tests/unit/Http/Cookie/GetExpirationCest.php +++ b/tests/unit/Http/Cookie/GetExpirationCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetExpirationCest /** * Tests Phalcon\Http\Cookie :: getExpiration() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpCookieGetExpiration(UnitTester $I) diff --git a/tests/unit/Http/Cookie/GetHttpOnlyCest.php b/tests/unit/Http/Cookie/GetHttpOnlyCest.php index ffb0a5cdcad..920ec13de2e 100644 --- a/tests/unit/Http/Cookie/GetHttpOnlyCest.php +++ b/tests/unit/Http/Cookie/GetHttpOnlyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetHttpOnlyCest /** * Tests Phalcon\Http\Cookie :: getHttpOnly() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpCookieGetHttpOnly(UnitTester $I) diff --git a/tests/unit/Http/Cookie/GetNameCest.php b/tests/unit/Http/Cookie/GetNameCest.php index 7d7c3d251bf..e602fda56cd 100644 --- a/tests/unit/Http/Cookie/GetNameCest.php +++ b/tests/unit/Http/Cookie/GetNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetNameCest /** * Tests Phalcon\Http\Cookie :: getName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpCookieGetName(UnitTester $I) diff --git a/tests/unit/Http/Cookie/GetPathCest.php b/tests/unit/Http/Cookie/GetPathCest.php index 47016b954e5..f304fbbfbda 100644 --- a/tests/unit/Http/Cookie/GetPathCest.php +++ b/tests/unit/Http/Cookie/GetPathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetPathCest /** * Tests Phalcon\Http\Cookie :: getPath() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpCookieGetPath(UnitTester $I) diff --git a/tests/unit/Http/Cookie/GetSecureCest.php b/tests/unit/Http/Cookie/GetSecureCest.php index b200f6566d6..c3cc56109db 100644 --- a/tests/unit/Http/Cookie/GetSecureCest.php +++ b/tests/unit/Http/Cookie/GetSecureCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetSecureCest /** * Tests Phalcon\Http\Cookie :: getSecure() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpCookieGetSecure(UnitTester $I) diff --git a/tests/unit/Http/Cookie/GetValueCest.php b/tests/unit/Http/Cookie/GetValueCest.php index bb7f3bc2196..4095d9d78b4 100644 --- a/tests/unit/Http/Cookie/GetValueCest.php +++ b/tests/unit/Http/Cookie/GetValueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetValueCest /** * Tests Phalcon\Http\Cookie :: getValue() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpCookieGetValue(UnitTester $I) diff --git a/tests/unit/Http/Cookie/IsUsingEncryptionCest.php b/tests/unit/Http/Cookie/IsUsingEncryptionCest.php index 3e9056a6afd..e2ae8f49118 100644 --- a/tests/unit/Http/Cookie/IsUsingEncryptionCest.php +++ b/tests/unit/Http/Cookie/IsUsingEncryptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class IsUsingEncryptionCest /** * Tests Phalcon\Http\Cookie :: isUsingEncryption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpCookieIsUsingEncryption(UnitTester $I) diff --git a/tests/unit/Http/Cookie/RestoreCest.php b/tests/unit/Http/Cookie/RestoreCest.php index 05f656db305..97d6610d36a 100644 --- a/tests/unit/Http/Cookie/RestoreCest.php +++ b/tests/unit/Http/Cookie/RestoreCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class RestoreCest /** * Tests Phalcon\Http\Cookie :: restore() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpCookieRestore(UnitTester $I) diff --git a/tests/unit/Http/Cookie/SendCest.php b/tests/unit/Http/Cookie/SendCest.php index a86f43792f6..ad968d5c120 100644 --- a/tests/unit/Http/Cookie/SendCest.php +++ b/tests/unit/Http/Cookie/SendCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SendCest /** * Tests Phalcon\Http\Cookie :: send() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpCookieSend(UnitTester $I) diff --git a/tests/unit/Http/Cookie/SetDICest.php b/tests/unit/Http/Cookie/SetDICest.php index 253d832fd11..8585066dbc2 100644 --- a/tests/unit/Http/Cookie/SetDICest.php +++ b/tests/unit/Http/Cookie/SetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetDICest /** * Tests Phalcon\Http\Cookie :: setDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpCookieSetDI(UnitTester $I) diff --git a/tests/unit/Http/Cookie/SetDomainCest.php b/tests/unit/Http/Cookie/SetDomainCest.php index 280695aab15..4cb04ec9db3 100644 --- a/tests/unit/Http/Cookie/SetDomainCest.php +++ b/tests/unit/Http/Cookie/SetDomainCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetDomainCest /** * Tests Phalcon\Http\Cookie :: setDomain() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpCookieSetDomain(UnitTester $I) diff --git a/tests/unit/Http/Cookie/SetExpirationCest.php b/tests/unit/Http/Cookie/SetExpirationCest.php index 036a1bd00ab..87d81f881e0 100644 --- a/tests/unit/Http/Cookie/SetExpirationCest.php +++ b/tests/unit/Http/Cookie/SetExpirationCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetExpirationCest /** * Tests Phalcon\Http\Cookie :: setExpiration() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpCookieSetExpiration(UnitTester $I) diff --git a/tests/unit/Http/Cookie/SetHttpOnlyCest.php b/tests/unit/Http/Cookie/SetHttpOnlyCest.php index 0a338d5b57f..c05fc05255a 100644 --- a/tests/unit/Http/Cookie/SetHttpOnlyCest.php +++ b/tests/unit/Http/Cookie/SetHttpOnlyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetHttpOnlyCest /** * Tests Phalcon\Http\Cookie :: setHttpOnly() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpCookieSetHttpOnly(UnitTester $I) diff --git a/tests/unit/Http/Cookie/SetPathCest.php b/tests/unit/Http/Cookie/SetPathCest.php index b7cc2769ca6..a0266194ad8 100644 --- a/tests/unit/Http/Cookie/SetPathCest.php +++ b/tests/unit/Http/Cookie/SetPathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetPathCest /** * Tests Phalcon\Http\Cookie :: setPath() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpCookieSetPath(UnitTester $I) diff --git a/tests/unit/Http/Cookie/SetSecureCest.php b/tests/unit/Http/Cookie/SetSecureCest.php index 784bd7239c5..839453e75b5 100644 --- a/tests/unit/Http/Cookie/SetSecureCest.php +++ b/tests/unit/Http/Cookie/SetSecureCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetSecureCest /** * Tests Phalcon\Http\Cookie :: setSecure() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpCookieSetSecure(UnitTester $I) diff --git a/tests/unit/Http/Cookie/SetSignKeyCest.php b/tests/unit/Http/Cookie/SetSignKeyCest.php index fc7f52fb15a..1015861acd4 100644 --- a/tests/unit/Http/Cookie/SetSignKeyCest.php +++ b/tests/unit/Http/Cookie/SetSignKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetSignKeyCest /** * Tests Phalcon\Http\Cookie :: setSignKey() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpCookieSetSignKey(UnitTester $I) diff --git a/tests/unit/Http/Cookie/SetValueCest.php b/tests/unit/Http/Cookie/SetValueCest.php index 75a7720e881..900e82f5823 100644 --- a/tests/unit/Http/Cookie/SetValueCest.php +++ b/tests/unit/Http/Cookie/SetValueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetValueCest /** * Tests Phalcon\Http\Cookie :: setValue() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpCookieSetValue(UnitTester $I) diff --git a/tests/unit/Http/Cookie/ToStringCest.php b/tests/unit/Http/Cookie/ToStringCest.php index 041c27b35c6..8b4444a21fd 100644 --- a/tests/unit/Http/Cookie/ToStringCest.php +++ b/tests/unit/Http/Cookie/ToStringCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ToStringCest /** * Tests Phalcon\Http\Cookie :: __toString() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpCookieToString(UnitTester $I) diff --git a/tests/unit/Http/Cookie/UseEncryptionCest.php b/tests/unit/Http/Cookie/UseEncryptionCest.php index 71782e70a36..3bd3eae8493 100644 --- a/tests/unit/Http/Cookie/UseEncryptionCest.php +++ b/tests/unit/Http/Cookie/UseEncryptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class UseEncryptionCest /** * Tests Phalcon\Http\Cookie :: useEncryption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpCookieUseEncryption(UnitTester $I) diff --git a/tests/unit/Http/Helper/HttpBase.php b/tests/unit/Http/Helper/HttpBase.php index 719c057dcc5..70379aec790 100644 --- a/tests/unit/Http/Helper/HttpBase.php +++ b/tests/unit/Http/Helper/HttpBase.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -52,7 +52,7 @@ public function _after(UnitTester $I) /** * Initializes the response object and returns it * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-05 */ protected function getResponseObject(): Response @@ -65,7 +65,7 @@ protected function getResponseObject(): Response /** * Checks the has functions on non defined variables * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-05 */ protected function hasEmpty(UnitTester $I, string $function) @@ -80,7 +80,7 @@ protected function hasEmpty(UnitTester $I, string $function) /** * Initializes the request object and returns it * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-05 */ protected function getRequestObject(): Request @@ -93,7 +93,7 @@ protected function getRequestObject(): Request /** * Checks the has functions on defined variables * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-05 */ protected function hasNotEmpty(UnitTester $I, string $function, string $method) @@ -111,7 +111,7 @@ protected function hasNotEmpty(UnitTester $I, string $function, string $method) /** * Checks the get functions on undefined variables * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-05 */ protected function getEmpty(UnitTester $I, string $function) @@ -126,7 +126,7 @@ protected function getEmpty(UnitTester $I, string $function) /** * Checks the get functions on defined variables * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-05 */ protected function getNotEmpty(UnitTester $I, string $function, string $method) @@ -144,7 +144,7 @@ protected function getNotEmpty(UnitTester $I, string $function, string $method) /** * Checks the get functions for sanitized data * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-05 */ protected function getSanitized(UnitTester $I, string $function, string $method) @@ -165,7 +165,7 @@ protected function getSanitized(UnitTester $I, string $function, string $method) * * @param array $filter * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-05 */ protected function getSanitizedArrayFilter(UnitTester $I, string $function, $filter, string $method) @@ -186,7 +186,7 @@ protected function getSanitizedArrayFilter(UnitTester $I, string $function, $fil * * @param string $var * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-05 */ protected function setServerVar($var, $value) @@ -199,7 +199,7 @@ protected function setServerVar($var, $value) * * @param string $var * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-05 */ protected function unsetServerVar($var) @@ -212,7 +212,7 @@ protected function unsetServerVar($var) * * @param string $var * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-05 */ protected function setGetVar($var, $value) @@ -225,7 +225,7 @@ protected function setGetVar($var, $value) * * @param string $var * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-05 */ protected function unsetGetVar($var) @@ -238,7 +238,7 @@ protected function unsetGetVar($var) * * @param string $var * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-05 */ protected function setPostVar($var, $value) @@ -251,7 +251,7 @@ protected function setPostVar($var, $value) * * @param string $var * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-05 */ protected function unsetPostVar($var) @@ -264,7 +264,7 @@ protected function unsetPostVar($var) * * @param string $var * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-05 */ protected function setRequestVar($var, $value) @@ -277,7 +277,7 @@ protected function setRequestVar($var, $value) * * @param string $var * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-05 */ protected function unsetRequestVar($var) diff --git a/tests/unit/Http/Message/Request/ConstructCest.php b/tests/unit/Http/Message/Request/ConstructCest.php index f883e8cc5dd..1505aedab2e 100644 --- a/tests/unit/Http/Message/Request/ConstructCest.php +++ b/tests/unit/Http/Message/Request/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Http\Message\Request :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-08 */ public function httpMessageRequestConstruct(UnitTester $I) @@ -40,7 +40,7 @@ public function httpMessageRequestConstruct(UnitTester $I) /** * Tests Phalcon\Http\Message\Request :: __construct() - body exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-08 */ public function httpMessageRequestConstructExceptionBody(UnitTester $I) @@ -60,7 +60,7 @@ function () { /** * Tests Phalcon\Http\Message\Request :: __construct() - exception uri * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-08 */ public function httpMessageRequestConstructExceptionUri(UnitTester $I) @@ -80,7 +80,7 @@ function () { /** * Tests Phalcon\Http\Message\Request :: __construct() - exception headers * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-08 */ public function httpMessageRequestConstructExceptionHeaders(UnitTester $I) @@ -105,7 +105,7 @@ function () { /** * Tests Phalcon\Http\Message\Request :: __construct() - headers with host * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-08 */ public function httpMessageRequestConstructHeadersWithHost(UnitTester $I) diff --git a/tests/unit/Http/Message/Request/GetBodyCest.php b/tests/unit/Http/Message/Request/GetBodyCest.php index 94fd279d753..e904a0b75ae 100644 --- a/tests/unit/Http/Message/Request/GetBodyCest.php +++ b/tests/unit/Http/Message/Request/GetBodyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetBodyCest /** * Tests Phalcon\Http\Message\Request :: getBody() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageRequestGetBody(UnitTester $I) @@ -44,7 +44,7 @@ public function httpMessageRequestGetBody(UnitTester $I) /** * Tests Phalcon\Http\Message\Request :: getBody() - empty * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageRequestGetBodyEmpty(UnitTester $I) diff --git a/tests/unit/Http/Message/Request/GetHeaderCest.php b/tests/unit/Http/Message/Request/GetHeaderCest.php index 9625845e08f..c6ccc5b65c1 100644 --- a/tests/unit/Http/Message/Request/GetHeaderCest.php +++ b/tests/unit/Http/Message/Request/GetHeaderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetHeaderCest /** * Tests Phalcon\Http\Message\Request :: getHeader() - empty headers * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageRequestGetHeader(UnitTester $I) @@ -56,7 +56,7 @@ public function httpMessageRequestGetHeader(UnitTester $I) /** * Tests Phalcon\Http\Message\Request :: getHeader() - empty headers * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageRequestGetHeaderEmptyHeaders(UnitTester $I) diff --git a/tests/unit/Http/Message/Request/GetHeaderLineCest.php b/tests/unit/Http/Message/Request/GetHeaderLineCest.php index a80c4c294ca..e9fc4797a87 100644 --- a/tests/unit/Http/Message/Request/GetHeaderLineCest.php +++ b/tests/unit/Http/Message/Request/GetHeaderLineCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetHeaderLineCest /** * Tests Phalcon\Http\Message\Request :: getHeaderLine() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageRequestGetHeaderLine(UnitTester $I) @@ -57,7 +57,7 @@ public function httpMessageRequestGetHeaderLine(UnitTester $I) /** * Tests Phalcon\Http\Message\Request :: getHeaderLine() - empty * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageRequestGetHeaderLineEmpty(UnitTester $I) diff --git a/tests/unit/Http/Message/Request/GetHeadersCest.php b/tests/unit/Http/Message/Request/GetHeadersCest.php index a3bdd7d150b..55813ce247c 100644 --- a/tests/unit/Http/Message/Request/GetHeadersCest.php +++ b/tests/unit/Http/Message/Request/GetHeadersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetHeadersCest /** * Tests Phalcon\Http\Message\Request :: getHeaders() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageRequestGetHeaders(UnitTester $I) @@ -54,7 +54,7 @@ public function httpMessageRequestGetHeaders(UnitTester $I) /** * Tests Phalcon\Http\Message\Request :: getHeaders() - collection * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageRequestGetHeadersCollection(UnitTester $I) @@ -89,7 +89,7 @@ public function httpMessageRequestGetHeadersCollection(UnitTester $I) /** * Tests Phalcon\Http\Message\Request :: getHeaders() - empty * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageRequestGetHeadersEmpty(UnitTester $I) diff --git a/tests/unit/Http/Message/Request/GetMethodCest.php b/tests/unit/Http/Message/Request/GetMethodCest.php index 989d3bfd1b7..0c8935d3ade 100644 --- a/tests/unit/Http/Message/Request/GetMethodCest.php +++ b/tests/unit/Http/Message/Request/GetMethodCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetMethodCest /** * Tests Phalcon\Http\Message\Request :: getMethod() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageRequestGetMethod(UnitTester $I) @@ -39,7 +39,7 @@ public function httpMessageRequestGetMethod(UnitTester $I) /** * Tests Phalcon\Http\Message\Request :: getMethod() - empty * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageRequestGetMethodEmpty(UnitTester $I) @@ -57,7 +57,7 @@ public function httpMessageRequestGetMethodEmpty(UnitTester $I) /** * Tests Phalcon\Http\Message\Request :: getMethod() - exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageRequestGetMethodWxception(UnitTester $I) diff --git a/tests/unit/Http/Message/Request/GetProtocolVersionCest.php b/tests/unit/Http/Message/Request/GetProtocolVersionCest.php index 50a35cfecef..ce7a474e1f9 100644 --- a/tests/unit/Http/Message/Request/GetProtocolVersionCest.php +++ b/tests/unit/Http/Message/Request/GetProtocolVersionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetProtocolVersionCest /** * Tests Phalcon\Http\Message\Request :: getProtocolVersion() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-05 */ public function httpMessageRequestGetProtocolVersion(UnitTester $I) diff --git a/tests/unit/Http/Message/Request/GetRequestTargetCest.php b/tests/unit/Http/Message/Request/GetRequestTargetCest.php index dc3e9b4b7b5..9ff2745f111 100644 --- a/tests/unit/Http/Message/Request/GetRequestTargetCest.php +++ b/tests/unit/Http/Message/Request/GetRequestTargetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetRequestTargetCest /** * Tests Phalcon\Http\Message\Request :: getRequestTarget() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageRequestGetRequestTarget(UnitTester $I) diff --git a/tests/unit/Http/Message/Request/GetUriCest.php b/tests/unit/Http/Message/Request/GetUriCest.php index a86a943def7..3fe8f705408 100644 --- a/tests/unit/Http/Message/Request/GetUriCest.php +++ b/tests/unit/Http/Message/Request/GetUriCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetUriCest /** * Tests Phalcon\Http\Message\Request :: getUri() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageRequestGetUri(UnitTester $I) diff --git a/tests/unit/Http/Message/Request/HasHeaderCest.php b/tests/unit/Http/Message/Request/HasHeaderCest.php index e870d9d294f..4138b9b5d4c 100644 --- a/tests/unit/Http/Message/Request/HasHeaderCest.php +++ b/tests/unit/Http/Message/Request/HasHeaderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class HasHeaderCest /** * Tests Phalcon\Http\Message\Request :: hasHeader() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageRequestHasHeader(UnitTester $I) @@ -48,7 +48,7 @@ public function httpMessageRequestHasHeader(UnitTester $I) /** * Tests Phalcon\Http\Message\Request :: hasHeader() - empty * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageRequestHasHeaderEmpty(UnitTester $I) diff --git a/tests/unit/Http/Message/Request/WithAddedHeaderCest.php b/tests/unit/Http/Message/Request/WithAddedHeaderCest.php index e4ebe369cd5..1f54e7c5edb 100644 --- a/tests/unit/Http/Message/Request/WithAddedHeaderCest.php +++ b/tests/unit/Http/Message/Request/WithAddedHeaderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class WithAddedHeaderCest /** * Tests Phalcon\Http\Message\Request :: withAddedHeader() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageRequestWithAddedHeader(UnitTester $I) @@ -66,7 +66,7 @@ public function httpMessageRequestWithAddedHeader(UnitTester $I) /** * Tests Phalcon\Http\Message\Request :: withAddedHeader() - string value * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageRequestWithAddedHeaderStringValue(UnitTester $I) @@ -100,7 +100,7 @@ public function httpMessageRequestWithAddedHeaderStringValue(UnitTester $I) /** * Tests Phalcon\Http\Message\Request :: withAddedHeader() - empty value * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageRequestWithAddedHeaderEmptyValue(UnitTester $I) @@ -126,7 +126,7 @@ function () { /** * Tests Phalcon\Http\Message\Request :: withAddedHeader() - merge * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageRequestWithAddedHeaderMerge(UnitTester $I) diff --git a/tests/unit/Http/Message/Request/WithBodyCest.php b/tests/unit/Http/Message/Request/WithBodyCest.php index 53d9eb31823..599dd70402b 100644 --- a/tests/unit/Http/Message/Request/WithBodyCest.php +++ b/tests/unit/Http/Message/Request/WithBodyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class WithBodyCest /** * Tests Phalcon\Http\Message\Request :: withBody() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageRequestWithBody(UnitTester $I) diff --git a/tests/unit/Http/Message/Request/WithHeaderCest.php b/tests/unit/Http/Message/Request/WithHeaderCest.php index 1ecc0da4092..520c0523b62 100644 --- a/tests/unit/Http/Message/Request/WithHeaderCest.php +++ b/tests/unit/Http/Message/Request/WithHeaderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class WithHeaderCest /** * Tests Phalcon\Http\Message\Request :: withHeader() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageRequestWithHeader(UnitTester $I) @@ -67,7 +67,7 @@ public function httpMessageRequestWithHeader(UnitTester $I) /** * Tests Phalcon\Http\Message\Request :: withHeader() - exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageRequestWithHeaderException(UnitTester $I) @@ -96,7 +96,7 @@ function () { * * @dataProvider getExamples * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageRequestWithHeaderExceptionValue(UnitTester $I, Example $example) diff --git a/tests/unit/Http/Message/Request/WithMethodCest.php b/tests/unit/Http/Message/Request/WithMethodCest.php index 19d1bb89731..26bb26e51d1 100644 --- a/tests/unit/Http/Message/Request/WithMethodCest.php +++ b/tests/unit/Http/Message/Request/WithMethodCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class WithMethodCest /** * Tests Phalcon\Http\Message\Request :: withMethod() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageRequestWithMethod(UnitTester $I) diff --git a/tests/unit/Http/Message/Request/WithProtocolVersionCest.php b/tests/unit/Http/Message/Request/WithProtocolVersionCest.php index e13e1757e69..cc60814555c 100644 --- a/tests/unit/Http/Message/Request/WithProtocolVersionCest.php +++ b/tests/unit/Http/Message/Request/WithProtocolVersionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class WithProtocolVersionCest /** * Tests Phalcon\Http\Message\Request :: withProtocolVersion() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageRequestWithProtocolVersion(UnitTester $I) @@ -49,7 +49,7 @@ public function httpMessageRequestWithProtocolVersion(UnitTester $I) * Tests Phalcon\Http\Message\Request :: withProtocolVersion() - * unsupported protocol * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageRequestWithProtocolVersionEmpty(UnitTester $I) @@ -72,7 +72,7 @@ function () { * Tests Phalcon\Http\Message\Request :: withProtocolVersion() - empty * protocol * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageRequestWithProtocolVersionUnsupported(UnitTester $I) diff --git a/tests/unit/Http/Message/Request/WithRequestTargetCest.php b/tests/unit/Http/Message/Request/WithRequestTargetCest.php index 792bb0a69e4..6e232fce4cb 100644 --- a/tests/unit/Http/Message/Request/WithRequestTargetCest.php +++ b/tests/unit/Http/Message/Request/WithRequestTargetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class WithRequestTargetCest /** * Tests Phalcon\Http\Message\Request :: withRequestTarget() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageRequestWithRequestTarget(UnitTester $I) @@ -48,7 +48,7 @@ public function httpMessageRequestWithRequestTarget(UnitTester $I) /** * Tests Phalcon\Http\Message\Request :: withRequestTarget() - exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageRequestWithRequestTargetException(UnitTester $I) diff --git a/tests/unit/Http/Message/Request/WithUriCest.php b/tests/unit/Http/Message/Request/WithUriCest.php index 3bc1d5753a3..a3a6ad022f3 100644 --- a/tests/unit/Http/Message/Request/WithUriCest.php +++ b/tests/unit/Http/Message/Request/WithUriCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class WithUriCest /** * Tests Phalcon\Http\Message\Request :: withUri() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageRequestWithUri(UnitTester $I) diff --git a/tests/unit/Http/Message/Request/WithoutHeaderCest.php b/tests/unit/Http/Message/Request/WithoutHeaderCest.php index bcd5d782fe8..2512f809324 100644 --- a/tests/unit/Http/Message/Request/WithoutHeaderCest.php +++ b/tests/unit/Http/Message/Request/WithoutHeaderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team var_dump($actual); + * (c) Phalcon Team var_dump($actual); * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class WithoutHeaderCest /** * Tests Phalcon\Http\Message\Request :: withoutHeader() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageRequestWithoutHeader(UnitTester $I) diff --git a/tests/unit/Http/Message/RequestFactory/ConstructCest.php b/tests/unit/Http/Message/RequestFactory/ConstructCest.php index 8d6b7e999e7..f31081044d0 100644 --- a/tests/unit/Http/Message/RequestFactory/ConstructCest.php +++ b/tests/unit/Http/Message/RequestFactory/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ConstructCest /** * Tests Phalcon\Http\Message\Request :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-08 */ public function httpMessageRequestConstruct(UnitTester $I) diff --git a/tests/unit/Http/Message/RequestFactory/CreateRequestCest.php b/tests/unit/Http/Message/RequestFactory/CreateRequestCest.php index de8664a5d75..335eb942394 100644 --- a/tests/unit/Http/Message/RequestFactory/CreateRequestCest.php +++ b/tests/unit/Http/Message/RequestFactory/CreateRequestCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class CreateRequestCest /** * Tests Phalcon\Http\Message\RequestFactory :: createRequest() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageRequestFactoryCreateRequest(UnitTester $I) diff --git a/tests/unit/Http/Message/Response/ConstructCest.php b/tests/unit/Http/Message/Response/ConstructCest.php index 992eba9d4db..704dd7660e2 100644 --- a/tests/unit/Http/Message/Response/ConstructCest.php +++ b/tests/unit/Http/Message/Response/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ConstructCest /** * Tests Phalcon\Http\Message\Response :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-08 */ public function httpMessageResponseConstruct(UnitTester $I) diff --git a/tests/unit/Http/Message/Response/GetBodyCest.php b/tests/unit/Http/Message/Response/GetBodyCest.php index e4064b69469..5a4ad5f1ebc 100644 --- a/tests/unit/Http/Message/Response/GetBodyCest.php +++ b/tests/unit/Http/Message/Response/GetBodyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetBodyCest /** * Tests Phalcon\Http\Message\Response :: getBody() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-09 */ public function httpMessageResponseGetBody(UnitTester $I) @@ -44,7 +44,7 @@ public function httpMessageResponseGetBody(UnitTester $I) /** * Tests Phalcon\Http\Message\Response :: getBody() - empty * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-09 */ public function httpMessageResponseGetBodyEmpty(UnitTester $I) diff --git a/tests/unit/Http/Message/Response/GetHeaderCest.php b/tests/unit/Http/Message/Response/GetHeaderCest.php index 730c922dc5c..4bc65df2648 100644 --- a/tests/unit/Http/Message/Response/GetHeaderCest.php +++ b/tests/unit/Http/Message/Response/GetHeaderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetHeaderCest /** * Tests Phalcon\Http\Message\Response :: getHeader() - empty headers * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-09 */ public function httpMessageResponseGetHeader(UnitTester $I) @@ -51,7 +51,7 @@ public function httpMessageResponseGetHeader(UnitTester $I) /** * Tests Phalcon\Http\Message\Response :: getHeader() - empty headers * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-09 */ public function httpMessageResponseGetHeaderEmptyHeaders(UnitTester $I) diff --git a/tests/unit/Http/Message/Response/GetHeaderLineCest.php b/tests/unit/Http/Message/Response/GetHeaderLineCest.php index 4bd62740cd0..97d7f851442 100644 --- a/tests/unit/Http/Message/Response/GetHeaderLineCest.php +++ b/tests/unit/Http/Message/Response/GetHeaderLineCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetHeaderLineCest /** * Tests Phalcon\Http\Message\Response :: getHeaderLine() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-09 */ public function httpMessageResponseGetHeaderLine(UnitTester $I) @@ -52,7 +52,7 @@ public function httpMessageResponseGetHeaderLine(UnitTester $I) /** * Tests Phalcon\Http\Message\Response :: getHeaderLine() - empty * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-09 */ public function httpMessageResponseGetHeaderLineEmpty(UnitTester $I) diff --git a/tests/unit/Http/Message/Response/GetHeadersCest.php b/tests/unit/Http/Message/Response/GetHeadersCest.php index 51342bc99e1..8a43dcb5c82 100644 --- a/tests/unit/Http/Message/Response/GetHeadersCest.php +++ b/tests/unit/Http/Message/Response/GetHeadersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetHeadersCest /** * Tests Phalcon\Http\Message\Response :: getHeaders() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-09 */ public function httpMessageResponseGetHeaders(UnitTester $I) @@ -48,7 +48,7 @@ public function httpMessageResponseGetHeaders(UnitTester $I) /** * Tests Phalcon\Http\Message\Response :: getHeaders() - empty * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-09 */ public function httpMessageResponseGetHeadersEmpty(UnitTester $I) diff --git a/tests/unit/Http/Message/Response/GetProtocolVersionCest.php b/tests/unit/Http/Message/Response/GetProtocolVersionCest.php index 254eac87921..2876fb03a27 100644 --- a/tests/unit/Http/Message/Response/GetProtocolVersionCest.php +++ b/tests/unit/Http/Message/Response/GetProtocolVersionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetProtocolVersionCest /** * Tests Phalcon\Http\Message\Response :: getProtocolVersion() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-05 */ public function httpMessageResponseGetProtocolVersion(UnitTester $I) diff --git a/tests/unit/Http/Message/Response/GetReasonPhraseCest.php b/tests/unit/Http/Message/Response/GetReasonPhraseCest.php index f8a8574e236..28ac35292e3 100644 --- a/tests/unit/Http/Message/Response/GetReasonPhraseCest.php +++ b/tests/unit/Http/Message/Response/GetReasonPhraseCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetReasonPhraseCest /** * Tests Phalcon\Http\Message\Response :: getReasonPhrase() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-09 */ public function httpMessageResponseGetReasonPhrase(UnitTester $I) @@ -38,7 +38,7 @@ public function httpMessageResponseGetReasonPhrase(UnitTester $I) /** * Tests Phalcon\Http\Message\Response :: getReasonPhrase() - other port * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-09 */ public function httpMessageResponseGetReasonPhraseOtherPort(UnitTester $I) diff --git a/tests/unit/Http/Message/Response/GetStatusCodeCest.php b/tests/unit/Http/Message/Response/GetStatusCodeCest.php index a859ac54952..1b43b748aff 100644 --- a/tests/unit/Http/Message/Response/GetStatusCodeCest.php +++ b/tests/unit/Http/Message/Response/GetStatusCodeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetStatusCodeCest /** * Tests Phalcon\Http\Message\Response :: getStatusCode() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-09 */ public function httpMessageResponseGetStatusCode(UnitTester $I) @@ -39,7 +39,7 @@ public function httpMessageResponseGetStatusCode(UnitTester $I) /** * Tests Phalcon\Http\Message\Response :: getStatusCode() - exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-09 */ public function httpMessageResponseGetStatusCodeException(UnitTester $I) diff --git a/tests/unit/Http/Message/Response/HasHeaderCest.php b/tests/unit/Http/Message/Response/HasHeaderCest.php index c0689c27392..0b8845a7e86 100644 --- a/tests/unit/Http/Message/Response/HasHeaderCest.php +++ b/tests/unit/Http/Message/Response/HasHeaderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class HasHeaderCest /** * Tests Phalcon\Http\Message\Response :: hasHeader() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-09 */ public function httpMessageResponseHasHeader(UnitTester $I) @@ -48,7 +48,7 @@ public function httpMessageResponseHasHeader(UnitTester $I) /** * Tests Phalcon\Http\Message\Response :: hasHeader() - empty * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-09 */ public function httpMessageResponseHasHeaderEmpty(UnitTester $I) diff --git a/tests/unit/Http/Message/Response/WithAddedHeaderCest.php b/tests/unit/Http/Message/Response/WithAddedHeaderCest.php index 7a539e387b4..7ef304e9742 100644 --- a/tests/unit/Http/Message/Response/WithAddedHeaderCest.php +++ b/tests/unit/Http/Message/Response/WithAddedHeaderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class WithAddedHeaderCest /** * Tests Phalcon\Http\Message\Response :: withAddedHeader() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-09 */ public function httpMessageResponseWithAddedHeader(UnitTester $I) @@ -51,7 +51,7 @@ public function httpMessageResponseWithAddedHeader(UnitTester $I) /** * Tests Phalcon\Http\Message\Response :: withAddedHeader() - merge * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-09 */ public function httpMessageResponseWithAddedHeaderMerge(UnitTester $I) diff --git a/tests/unit/Http/Message/Response/WithBodyCest.php b/tests/unit/Http/Message/Response/WithBodyCest.php index 378791bf668..756206066fd 100644 --- a/tests/unit/Http/Message/Response/WithBodyCest.php +++ b/tests/unit/Http/Message/Response/WithBodyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class WithBodyCest /** * Tests Phalcon\Http\Message\Response :: withBody() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-09 */ public function httpMessageResponseWithBody(UnitTester $I) diff --git a/tests/unit/Http/Message/Response/WithHeaderCest.php b/tests/unit/Http/Message/Response/WithHeaderCest.php index 3583ef51b73..8a838ad65b3 100644 --- a/tests/unit/Http/Message/Response/WithHeaderCest.php +++ b/tests/unit/Http/Message/Response/WithHeaderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class WithHeaderCest /** * Tests Phalcon\Http\Message\Response :: withHeader() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-09 */ public function httpMessageResponseWithHeader(UnitTester $I) diff --git a/tests/unit/Http/Message/Response/WithProtocolVersionCest.php b/tests/unit/Http/Message/Response/WithProtocolVersionCest.php index 2141d079fcd..e991bf7e623 100644 --- a/tests/unit/Http/Message/Response/WithProtocolVersionCest.php +++ b/tests/unit/Http/Message/Response/WithProtocolVersionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class WithProtocolVersionCest /** * Tests Phalcon\Http\Message\Response :: withProtocolVersion() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-09 */ public function httpMessageResponseWithProtocolVersion(UnitTester $I) @@ -44,7 +44,7 @@ public function httpMessageResponseWithProtocolVersion(UnitTester $I) /** * Tests Phalcon\Http\Message\Response :: withProtocolVersion() - exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-09 */ public function httpMessageResponseWithProtocolVersionException(UnitTester $I) diff --git a/tests/unit/Http/Message/Response/WithStatusCest.php b/tests/unit/Http/Message/Response/WithStatusCest.php index c49cba97b00..8ed54328179 100644 --- a/tests/unit/Http/Message/Response/WithStatusCest.php +++ b/tests/unit/Http/Message/Response/WithStatusCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class WithStatusCest /** * Tests Phalcon\Http\Message\Response :: withStatus() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-09 */ public function httpMessageResponseWithStatus(UnitTester $I) @@ -43,7 +43,7 @@ public function httpMessageResponseWithStatus(UnitTester $I) /** * Tests Phalcon\Http\Message\Response :: withStatus() - other reason * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-09 */ public function httpMessageResponseWithStatusOtherReason(UnitTester $I) @@ -72,7 +72,7 @@ public function httpMessageResponseWithStatusOtherReason(UnitTester $I) * Tests Phalcon\Http\Message\Response :: withStatus() - exception invalid * code * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-09 */ public function httpMessageResponseWithStatusExceptionInvalidCode(UnitTester $I) @@ -94,7 +94,7 @@ function () { * Tests Phalcon\Http\Message\Response :: withStatus() - exception invalid * phrase * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-09 */ public function httpMessageResponseWithStatusExceptionInvalidPhrase(UnitTester $I) diff --git a/tests/unit/Http/Message/Response/WithoutHeaderCest.php b/tests/unit/Http/Message/Response/WithoutHeaderCest.php index a1113ef4f55..4d53985d124 100644 --- a/tests/unit/Http/Message/Response/WithoutHeaderCest.php +++ b/tests/unit/Http/Message/Response/WithoutHeaderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class WithoutHeaderCest /** * Tests Phalcon\Http\Message\Response :: withoutHeader() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-09 */ public function httpMessageResponseWithoutHeader(UnitTester $I) diff --git a/tests/unit/Http/Message/ResponseFactory/ConstructCest.php b/tests/unit/Http/Message/ResponseFactory/ConstructCest.php index 9e09d6de463..f2dcdd7c313 100644 --- a/tests/unit/Http/Message/ResponseFactory/ConstructCest.php +++ b/tests/unit/Http/Message/ResponseFactory/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ConstructCest /** * Tests Phalcon\Http\Message\Response :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-08 */ public function httpMessageResponseConstruct(UnitTester $I) diff --git a/tests/unit/Http/Message/ResponseFactory/CreateResponseCest.php b/tests/unit/Http/Message/ResponseFactory/CreateResponseCest.php index 973c74fd437..e9e8ca3ac78 100644 --- a/tests/unit/Http/Message/ResponseFactory/CreateResponseCest.php +++ b/tests/unit/Http/Message/ResponseFactory/CreateResponseCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class CreateResponseCest /** * Tests Phalcon\Http\Message\ResponseFactory :: createResponse() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageResponseFactoryCreateResponse(UnitTester $I) diff --git a/tests/unit/Http/Message/ServerRequest/ConstructCest.php b/tests/unit/Http/Message/ServerRequest/ConstructCest.php index c4d8e1863c9..61ba133a767 100644 --- a/tests/unit/Http/Message/ServerRequest/ConstructCest.php +++ b/tests/unit/Http/Message/ServerRequest/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Http\Message\ServerRequest :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-08 */ public function httpMessageServerRequestConstructCest(UnitTester $I) diff --git a/tests/unit/Http/Message/ServerRequest/GetAttributeCest.php b/tests/unit/Http/Message/ServerRequest/GetAttributeCest.php index dacae7d3b04..168310924ca 100644 --- a/tests/unit/Http/Message/ServerRequest/GetAttributeCest.php +++ b/tests/unit/Http/Message/ServerRequest/GetAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetAttributeCest /** * Tests Phalcon\Http\Message\ServerRequest :: getAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-11 */ public function httpMessageServerRequestGetAttribute(UnitTester $I) @@ -41,7 +41,7 @@ public function httpMessageServerRequestGetAttribute(UnitTester $I) /** * Tests Phalcon\Http\Message\ServerRequest :: getAttribute() - unknown * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-11 */ public function httpMessageServerRequestGetAttributeUnknown(UnitTester $I) diff --git a/tests/unit/Http/Message/ServerRequest/GetAttributesCest.php b/tests/unit/Http/Message/ServerRequest/GetAttributesCest.php index 55dd4eb53ce..5c787f60638 100644 --- a/tests/unit/Http/Message/ServerRequest/GetAttributesCest.php +++ b/tests/unit/Http/Message/ServerRequest/GetAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetAttributesCest /** * Tests Phalcon\Http\Message\ServerRequest :: getAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-11 */ public function httpMessageServerRequestGetAttributes(UnitTester $I) @@ -46,7 +46,7 @@ public function httpMessageServerRequestGetAttributes(UnitTester $I) /** * Tests Phalcon\Http\Message\ServerRequest :: getAttributes() - empty * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-11 */ public function httpMessageServerRequestGetAttributesEmpty(UnitTester $I) diff --git a/tests/unit/Http/Message/ServerRequest/GetBodyCest.php b/tests/unit/Http/Message/ServerRequest/GetBodyCest.php index 282d293a032..d5b4abe537b 100644 --- a/tests/unit/Http/Message/ServerRequest/GetBodyCest.php +++ b/tests/unit/Http/Message/ServerRequest/GetBodyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetBodyCest /** * Tests Phalcon\Http\Message\ServerRequest :: getBody() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageServerRequestGetBody(UnitTester $I) @@ -43,7 +43,7 @@ public function httpMessageServerRequestGetBody(UnitTester $I) /** * Tests Phalcon\Http\Message\ServerRequest :: getBody() - empty * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageServerRequestGetBodyEmpty(UnitTester $I) diff --git a/tests/unit/Http/Message/ServerRequest/GetCookieParamsCest.php b/tests/unit/Http/Message/ServerRequest/GetCookieParamsCest.php index 0ddf77e13ed..9760f166119 100644 --- a/tests/unit/Http/Message/ServerRequest/GetCookieParamsCest.php +++ b/tests/unit/Http/Message/ServerRequest/GetCookieParamsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetCookieParamsCest /** * Tests Phalcon\Http\Message\ServerRequest :: getCookieParams() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageServerRequestGetCookieParams(UnitTester $I) @@ -37,7 +37,7 @@ public function httpMessageServerRequestGetCookieParams(UnitTester $I) /** * Tests Phalcon\Http\Message\ServerRequest :: getCookieParams() - empty * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageServerRequestGetCookieParamsEmpty(UnitTester $I) diff --git a/tests/unit/Http/Message/ServerRequest/GetHeaderCest.php b/tests/unit/Http/Message/ServerRequest/GetHeaderCest.php index 1217dcb4bce..35fe3577110 100644 --- a/tests/unit/Http/Message/ServerRequest/GetHeaderCest.php +++ b/tests/unit/Http/Message/ServerRequest/GetHeaderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetHeaderCest /** * Tests Phalcon\Http\Message\ServerRequest :: getHeader() - empty headers * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageServerRequestGetHeader(UnitTester $I) @@ -43,7 +43,7 @@ public function httpMessageServerRequestGetHeader(UnitTester $I) /** * Tests Phalcon\Http\Message\ServerRequest :: getHeader() - empty headers * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageServerRequestGetHeaderEmptyHeaders(UnitTester $I) diff --git a/tests/unit/Http/Message/ServerRequest/GetHeaderLineCest.php b/tests/unit/Http/Message/ServerRequest/GetHeaderLineCest.php index c8d4d597958..8d55ab006ca 100644 --- a/tests/unit/Http/Message/ServerRequest/GetHeaderLineCest.php +++ b/tests/unit/Http/Message/ServerRequest/GetHeaderLineCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetHeaderLineCest /** * Tests Phalcon\Http\Message\ServerRequest :: getHeaderLine() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageServerRequestGetHeaderLine(UnitTester $I) @@ -45,7 +45,7 @@ public function httpMessageServerRequestGetHeaderLine(UnitTester $I) /** * Tests Phalcon\Http\Message\ServerRequest :: getHeaderLine() - empty * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageServerRequestGetHeaderLineEmpty(UnitTester $I) diff --git a/tests/unit/Http/Message/ServerRequest/GetHeadersCest.php b/tests/unit/Http/Message/ServerRequest/GetHeadersCest.php index 6911f634c98..16a14a54c39 100644 --- a/tests/unit/Http/Message/ServerRequest/GetHeadersCest.php +++ b/tests/unit/Http/Message/ServerRequest/GetHeadersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetHeadersCest /** * Tests Phalcon\Http\Message\ServerRequest :: getHeaders() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageServerRequestGetHeaders(UnitTester $I) @@ -44,7 +44,7 @@ public function httpMessageServerRequestGetHeaders(UnitTester $I) /** * Tests Phalcon\Http\Message\ServerRequest :: getHeaders() - collection * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageServerRequestGetHeadersCollection(UnitTester $I) @@ -68,7 +68,7 @@ public function httpMessageServerRequestGetHeadersCollection(UnitTester $I) /** * Tests Phalcon\Http\Message\ServerRequest :: getHeaders() - empty * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageServerRequestGetHeadersEmpty(UnitTester $I) diff --git a/tests/unit/Http/Message/ServerRequest/GetMethodCest.php b/tests/unit/Http/Message/ServerRequest/GetMethodCest.php index 3ae5ca29e75..cca90f06393 100644 --- a/tests/unit/Http/Message/ServerRequest/GetMethodCest.php +++ b/tests/unit/Http/Message/ServerRequest/GetMethodCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetMethodCest /** * Tests Phalcon\Http\Message\ServerRequest :: getMethod() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageServerRequestGetMethod(UnitTester $I) @@ -37,7 +37,7 @@ public function httpMessageServerRequestGetMethod(UnitTester $I) /** * Tests Phalcon\Http\Message\ServerRequest :: getMethod() - empty * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageServerRequestGetMethodEmpty(UnitTester $I) @@ -53,7 +53,7 @@ public function httpMessageServerRequestGetMethodEmpty(UnitTester $I) /** * Tests Phalcon\Http\Message\ServerRequest :: getMethod() - exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageServerRequestGetMethodWxception(UnitTester $I) diff --git a/tests/unit/Http/Message/ServerRequest/GetParsedBodyCest.php b/tests/unit/Http/Message/ServerRequest/GetParsedBodyCest.php index c0a195805c7..c10f78f8de5 100644 --- a/tests/unit/Http/Message/ServerRequest/GetParsedBodyCest.php +++ b/tests/unit/Http/Message/ServerRequest/GetParsedBodyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetParsedBodyCest /** * Tests Phalcon\Http\Message\ServerRequest :: getParsedBody() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-05 */ public function httpMessageServerRequestGetParsedBody(UnitTester $I) @@ -46,7 +46,7 @@ public function httpMessageServerRequestGetParsedBody(UnitTester $I) /** * Tests Phalcon\Http\Message\ServerRequest :: getParsedBody() - empty * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-05 */ public function httpMessageServerRequestGetParsedBodyEmpty(UnitTester $I) diff --git a/tests/unit/Http/Message/ServerRequest/GetProtocolVersionCest.php b/tests/unit/Http/Message/ServerRequest/GetProtocolVersionCest.php index 64541c8fad4..a8c8eb9b8a1 100644 --- a/tests/unit/Http/Message/ServerRequest/GetProtocolVersionCest.php +++ b/tests/unit/Http/Message/ServerRequest/GetProtocolVersionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetProtocolVersionCest // /** // * Tests Phalcon\Http\Message\ServerRequest :: getProtocolVersion() // * -// * @author Phalcon Team +// * @author Phalcon Team // * @since 2019-03-05 // */ // public function httpMessageServerRequestGetProtocolVersion(UnitTester $I) @@ -47,7 +47,7 @@ class GetProtocolVersionCest /** * Tests Phalcon\Http\Message\ServerRequest :: getProtocolVersion() - empty * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-05 */ public function httpMessageServerRequestGetProtocolVersionEmpty(UnitTester $I) @@ -64,7 +64,7 @@ public function httpMessageServerRequestGetProtocolVersionEmpty(UnitTester $I) // * Tests Phalcon\Http\Message\ServerRequest :: getProtocolVersion() - // * exception // * -// * @author Phalcon Team +// * @author Phalcon Team // * @since 2019-03-05 // */ // public function httpMessageServerRequestGetProtocolVersionException(UnitTester $I) diff --git a/tests/unit/Http/Message/ServerRequest/GetQueryParamsCest.php b/tests/unit/Http/Message/ServerRequest/GetQueryParamsCest.php index 36604f5bf67..6cf649660f9 100644 --- a/tests/unit/Http/Message/ServerRequest/GetQueryParamsCest.php +++ b/tests/unit/Http/Message/ServerRequest/GetQueryParamsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetQueryParamsCest /** * Tests Phalcon\Http\Message\ServerRequest :: getQueryParams() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-03 */ public function httpMessageServerRequestGetQueryParams(UnitTester $I) @@ -37,7 +37,7 @@ public function httpMessageServerRequestGetQueryParams(UnitTester $I) /** * Tests Phalcon\Http\Message\ServerRequest :: getQueryParams() - empty * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-03 */ public function httpMessageServerRequestGetQueryParamsEmpty(UnitTester $I) diff --git a/tests/unit/Http/Message/ServerRequest/GetRequestTargetCest.php b/tests/unit/Http/Message/ServerRequest/GetRequestTargetCest.php index 4842b0d033c..6182ed6f284 100644 --- a/tests/unit/Http/Message/ServerRequest/GetRequestTargetCest.php +++ b/tests/unit/Http/Message/ServerRequest/GetRequestTargetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetRequestTargetCest /** * Tests Phalcon\Http\Message\ServerRequest :: getRequestTarget() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageServerRequestGetRequestTarget(UnitTester $I) diff --git a/tests/unit/Http/Message/ServerRequest/GetServerParamsCest.php b/tests/unit/Http/Message/ServerRequest/GetServerParamsCest.php index 99701ae3c53..e0531c85491 100644 --- a/tests/unit/Http/Message/ServerRequest/GetServerParamsCest.php +++ b/tests/unit/Http/Message/ServerRequest/GetServerParamsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetServerParamsCest /** * Tests Phalcon\Http\Message\ServerRequest :: getServerParams() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageServerRequestGetServerParams(UnitTester $I) @@ -37,7 +37,7 @@ public function httpMessageServerRequestGetServerParams(UnitTester $I) /** * Tests Phalcon\Http\Message\ServerRequest :: getServerParams() - empty * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageServerRequestGetServerParamsEmpty(UnitTester $I) diff --git a/tests/unit/Http/Message/ServerRequest/GetUploadedFilesCest.php b/tests/unit/Http/Message/ServerRequest/GetUploadedFilesCest.php index 3fbf70692e2..a5344dc84aa 100644 --- a/tests/unit/Http/Message/ServerRequest/GetUploadedFilesCest.php +++ b/tests/unit/Http/Message/ServerRequest/GetUploadedFilesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetUploadedFilesCest /** * Tests Phalcon\Http\Message\ServerRequest :: getUploadedFiles() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-03 */ public function httpMessageServerRequestGetUploadedFiles(UnitTester $I) @@ -51,7 +51,7 @@ public function httpMessageServerRequestGetUploadedFiles(UnitTester $I) /** * Tests Phalcon\Http\Message\ServerRequest :: getUploadedFiles() - empty * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-03 */ public function httpMessageServerRequestGetUploadedFilesEmpty(UnitTester $I) @@ -67,7 +67,7 @@ public function httpMessageServerRequestGetUploadedFilesEmpty(UnitTester $I) * Tests Phalcon\Http\Message\ServerRequest :: getUploadedFiles() - * exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-03 */ public function httpMessageServerRequestGetUploadedFilesException(UnitTester $I) diff --git a/tests/unit/Http/Message/ServerRequest/GetUriCest.php b/tests/unit/Http/Message/ServerRequest/GetUriCest.php index c916f90fa3d..3e1934fb597 100644 --- a/tests/unit/Http/Message/ServerRequest/GetUriCest.php +++ b/tests/unit/Http/Message/ServerRequest/GetUriCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetUriCest /** * Tests Phalcon\Http\Message\ServerRequest :: getUri() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageServerRequestGetUri(UnitTester $I) diff --git a/tests/unit/Http/Message/ServerRequest/HasHeaderCest.php b/tests/unit/Http/Message/ServerRequest/HasHeaderCest.php index d57dcc747a6..38d12b87117 100644 --- a/tests/unit/Http/Message/ServerRequest/HasHeaderCest.php +++ b/tests/unit/Http/Message/ServerRequest/HasHeaderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class HasHeaderCest /** * Tests Phalcon\Http\Message\ServerRequest :: hasHeader() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageServerRequestHasHeader(UnitTester $I) @@ -44,7 +44,7 @@ public function httpMessageServerRequestHasHeader(UnitTester $I) /** * Tests Phalcon\Http\Message\ServerRequest :: hasHeader() - empty * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageServerRequestHasHeaderEmpty(UnitTester $I) diff --git a/tests/unit/Http/Message/ServerRequest/WithAddedHeaderCest.php b/tests/unit/Http/Message/ServerRequest/WithAddedHeaderCest.php index 875096f9089..0e67a60c2a1 100644 --- a/tests/unit/Http/Message/ServerRequest/WithAddedHeaderCest.php +++ b/tests/unit/Http/Message/ServerRequest/WithAddedHeaderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class WithAddedHeaderCest /** * Tests Phalcon\Http\Message\ServerRequest :: withAddedHeader() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageServerRequestWithAddedHeader(UnitTester $I) @@ -51,7 +51,7 @@ public function httpMessageServerRequestWithAddedHeader(UnitTester $I) /** * Tests Phalcon\Http\Message\ServerRequest :: withAddedHeader() - merge * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageServerRequestWithAddedHeaderMerge(UnitTester $I) diff --git a/tests/unit/Http/Message/ServerRequest/WithAttributeCest.php b/tests/unit/Http/Message/ServerRequest/WithAttributeCest.php index acbad00f662..dfcf814a045 100644 --- a/tests/unit/Http/Message/ServerRequest/WithAttributeCest.php +++ b/tests/unit/Http/Message/ServerRequest/WithAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class WithAttributeCest /** * Tests Phalcon\Http\Message\ServerRequest :: withAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageServerRequestWithAttribute(UnitTester $I) diff --git a/tests/unit/Http/Message/ServerRequest/WithBodyCest.php b/tests/unit/Http/Message/ServerRequest/WithBodyCest.php index b1f3dab8797..823c5390926 100644 --- a/tests/unit/Http/Message/ServerRequest/WithBodyCest.php +++ b/tests/unit/Http/Message/ServerRequest/WithBodyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class WithBodyCest /** * Tests Phalcon\Http\Message\ServerRequest :: withBody() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageServerRequestWithBody(UnitTester $I) diff --git a/tests/unit/Http/Message/ServerRequest/WithCookieParamsCest.php b/tests/unit/Http/Message/ServerRequest/WithCookieParamsCest.php index efdc12a023b..4cb7e7f59e0 100644 --- a/tests/unit/Http/Message/ServerRequest/WithCookieParamsCest.php +++ b/tests/unit/Http/Message/ServerRequest/WithCookieParamsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class WithCookieParamsCest /** * Tests Phalcon\Http\Message\ServerRequest :: withCookieParams() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-03 */ public function httpMessageServerRequestWithCookieParams(UnitTester $I) diff --git a/tests/unit/Http/Message/ServerRequest/WithHeaderCest.php b/tests/unit/Http/Message/ServerRequest/WithHeaderCest.php index 354abc22d1a..a7e18020414 100644 --- a/tests/unit/Http/Message/ServerRequest/WithHeaderCest.php +++ b/tests/unit/Http/Message/ServerRequest/WithHeaderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class WithHeaderCest /** * Tests Phalcon\Http\Message\ServerRequest :: withHeader() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageServerRequestWithHeader(UnitTester $I) diff --git a/tests/unit/Http/Message/ServerRequest/WithMethodCest.php b/tests/unit/Http/Message/ServerRequest/WithMethodCest.php index 747c04d5dd5..fb44d2b9ac2 100644 --- a/tests/unit/Http/Message/ServerRequest/WithMethodCest.php +++ b/tests/unit/Http/Message/ServerRequest/WithMethodCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class WithMethodCest /** * Tests Phalcon\Http\Message\ServerRequest :: withMethod() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageServerRequestWithMethod(UnitTester $I) diff --git a/tests/unit/Http/Message/ServerRequest/WithParsedBodyCest.php b/tests/unit/Http/Message/ServerRequest/WithParsedBodyCest.php index 61aee8ca7f2..6f70d667d0e 100644 --- a/tests/unit/Http/Message/ServerRequest/WithParsedBodyCest.php +++ b/tests/unit/Http/Message/ServerRequest/WithParsedBodyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class WithParsedBodyCest /** * Tests Phalcon\Http\Message\ServerRequest :: withParsedBody() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageServerRequestWithParsedBody(UnitTester $I) diff --git a/tests/unit/Http/Message/ServerRequest/WithProtocolVersionCest.php b/tests/unit/Http/Message/ServerRequest/WithProtocolVersionCest.php index 87aebc1df25..3e7e27a3dca 100644 --- a/tests/unit/Http/Message/ServerRequest/WithProtocolVersionCest.php +++ b/tests/unit/Http/Message/ServerRequest/WithProtocolVersionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class WithProtocolVersionCest /** * Tests Phalcon\Http\Message\ServerRequest :: withProtocolVersion() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageServerRequestWithProtocolVersion(UnitTester $I) diff --git a/tests/unit/Http/Message/ServerRequest/WithQueryParamsCest.php b/tests/unit/Http/Message/ServerRequest/WithQueryParamsCest.php index 986fb0b3485..07483d06d57 100644 --- a/tests/unit/Http/Message/ServerRequest/WithQueryParamsCest.php +++ b/tests/unit/Http/Message/ServerRequest/WithQueryParamsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class WithQueryParamsCest /** * Tests Phalcon\Http\Message\ServerRequest :: withQueryParams() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageServerRequestWithQueryParams(UnitTester $I) diff --git a/tests/unit/Http/Message/ServerRequest/WithRequestTargetCest.php b/tests/unit/Http/Message/ServerRequest/WithRequestTargetCest.php index d86eafee2a4..ac3470e81cb 100644 --- a/tests/unit/Http/Message/ServerRequest/WithRequestTargetCest.php +++ b/tests/unit/Http/Message/ServerRequest/WithRequestTargetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class WithRequestTargetCest /** * Tests Phalcon\Http\Message\ServerRequest :: withRequestTarget() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageServerRequestWithRequestTarget(UnitTester $I) diff --git a/tests/unit/Http/Message/ServerRequest/WithUploadedFilesCest.php b/tests/unit/Http/Message/ServerRequest/WithUploadedFilesCest.php index d4138ef0c9c..1f89bc7b29e 100644 --- a/tests/unit/Http/Message/ServerRequest/WithUploadedFilesCest.php +++ b/tests/unit/Http/Message/ServerRequest/WithUploadedFilesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class WithUploadedFilesCest /** * Tests Phalcon\Http\Message\ServerRequest :: withUploadedFiles() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageServerRequestWithUploadedFiles(UnitTester $I) @@ -47,7 +47,7 @@ public function httpMessageServerRequestWithUploadedFiles(UnitTester $I) * Tests Phalcon\Http\Message\ServerRequest :: withUploadedFiles() - * exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageServerRequestWithUploadedFilesException(UnitTester $I) diff --git a/tests/unit/Http/Message/ServerRequest/WithUriCest.php b/tests/unit/Http/Message/ServerRequest/WithUriCest.php index 44fadebf65d..0ae28b2ec74 100644 --- a/tests/unit/Http/Message/ServerRequest/WithUriCest.php +++ b/tests/unit/Http/Message/ServerRequest/WithUriCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class WithUriCest /** * Tests Phalcon\Http\Message\ServerRequest :: withUri() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageServerRequestWithUri(UnitTester $I) diff --git a/tests/unit/Http/Message/ServerRequest/WithoutAttributeCest.php b/tests/unit/Http/Message/ServerRequest/WithoutAttributeCest.php index 699bb1deae1..74c240c86a8 100644 --- a/tests/unit/Http/Message/ServerRequest/WithoutAttributeCest.php +++ b/tests/unit/Http/Message/ServerRequest/WithoutAttributeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class WithoutAttributeCest /** * Tests Phalcon\Http\Message\ServerRequest :: withoutAttribute() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageServerRequestWithoutAttribute(UnitTester $I) diff --git a/tests/unit/Http/Message/ServerRequest/WithoutHeaderCest.php b/tests/unit/Http/Message/ServerRequest/WithoutHeaderCest.php index 245b112f667..b2226dde7c8 100644 --- a/tests/unit/Http/Message/ServerRequest/WithoutHeaderCest.php +++ b/tests/unit/Http/Message/ServerRequest/WithoutHeaderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class WithoutHeaderCest /** * Tests Phalcon\Http\Message\ServerRequest :: withoutHeader() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageServerRequestWithoutHeader(UnitTester $I) diff --git a/tests/unit/Http/Message/ServerRequestFactory/ConstructCest.php b/tests/unit/Http/Message/ServerRequestFactory/ConstructCest.php index e7c0c0dc35f..7b61b8eb4d8 100644 --- a/tests/unit/Http/Message/ServerRequestFactory/ConstructCest.php +++ b/tests/unit/Http/Message/ServerRequestFactory/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ConstructCest /** * Tests Phalcon\Http\Message\ServerRequestFactory :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-08 */ public function httpServerRequestFactoryConstruct(UnitTester $I) diff --git a/tests/unit/Http/Message/ServerRequestFactory/CreateServerRequestCest.php b/tests/unit/Http/Message/ServerRequestFactory/CreateServerRequestCest.php index d9d32a8c0dc..329c46759a9 100644 --- a/tests/unit/Http/Message/ServerRequestFactory/CreateServerRequestCest.php +++ b/tests/unit/Http/Message/ServerRequestFactory/CreateServerRequestCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class CreateServerRequestCest /** * Tests Phalcon\Http\Message\ServerRequestFactory :: createServerRequest() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-09 */ public function httpMessageServerRequestFactoryCreateServerRequest(UnitTester $I) diff --git a/tests/unit/Http/Message/ServerRequestFactory/LoadCest.php b/tests/unit/Http/Message/ServerRequestFactory/LoadCest.php index 9fccd5db366..b630751f003 100644 --- a/tests/unit/Http/Message/ServerRequestFactory/LoadCest.php +++ b/tests/unit/Http/Message/ServerRequestFactory/LoadCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class LoadCest /** * Tests Phalcon\Http\Message\ServerRequestFactory :: load() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-09 */ public function httpMessageServerRequestFactoryLoad(UnitTester $I) @@ -46,7 +46,7 @@ public function httpMessageServerRequestFactoryLoad(UnitTester $I) * Tests Phalcon\Http\Message\ServerRequestFactory :: load() - header host * prefixed * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-09 */ public function httpMessageServerRequestFactoryLoadHeaderCookie(UnitTester $I) @@ -86,7 +86,7 @@ public function httpMessageServerRequestFactoryLoadHeaderCookie(UnitTester $I) * Tests Phalcon\Http\Message\ServerRequestFactory :: load() - header host * prefixed * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-09 */ public function httpMessageServerRequestFactoryLoadHeaderHost(UnitTester $I) @@ -131,7 +131,7 @@ public function httpMessageServerRequestFactoryLoadHeaderHost(UnitTester $I) * Tests Phalcon\Http\Message\ServerRequestFactory :: load() - header host * array prefixed * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-09 */ public function httpMessageServerRequestFactoryLoadHeaderHostArray(UnitTester $I) @@ -159,7 +159,7 @@ public function httpMessageServerRequestFactoryLoadHeaderHostArray(UnitTester $I * Tests Phalcon\Http\Message\ServerRequestFactory :: load() - IIS path * name/port prefixed * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-09 */ public function httpMessageServerRequestFactoryLoadIisPath(UnitTester $I) @@ -185,7 +185,7 @@ public function httpMessageServerRequestFactoryLoadIisPath(UnitTester $I) * Tests Phalcon\Http\Message\ServerRequestFactory :: load() - original * path info name/port prefixed * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-09 */ public function httpMessageServerRequestFactoryLoadOriginalPathInfo(UnitTester $I) @@ -209,7 +209,7 @@ public function httpMessageServerRequestFactoryLoadOriginalPathInfo(UnitTester $ /** * Tests Phalcon\Http\Message\ServerRequestFactory :: load() - server header * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-09 */ public function httpMessageServerRequestFactoryLoadServerHeader(UnitTester $I) @@ -240,7 +240,7 @@ public function httpMessageServerRequestFactoryLoadServerHeader(UnitTester $I) * * @dataProvider getServerNameExamples * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-09 */ public function httpMessageServerRequestFactoryLoadServerNamePort(UnitTester $I, Example $example) @@ -288,7 +288,7 @@ public function httpMessageServerRequestFactoryLoadServerNamePort(UnitTester $I, * Tests Phalcon\Http\Message\ServerRequestFactory :: load() - server * prefixed * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-09 */ public function httpMessageServerRequestFactoryLoadServerPrefixed(UnitTester $I) @@ -322,7 +322,7 @@ public function httpMessageServerRequestFactoryLoadServerPrefixed(UnitTester $I) * Tests Phalcon\Http\Message\ServerRequestFactory :: load() - files * prefixed * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-09 */ public function httpMessageServerRequestFactoryLoadFiles(UnitTester $I) @@ -384,7 +384,7 @@ public function httpMessageServerRequestFactoryLoadFiles(UnitTester $I) * Tests Phalcon\Http\Message\ServerRequestFactory :: load() - files * exception prefixed * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-09 */ public function httpMessageServerRequestFactoryLoadFilesException(UnitTester $I) @@ -416,7 +416,7 @@ function () { * Tests Phalcon\Http\Message\ServerRequestFactory :: load() - scheme https * prefixed * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-09 */ public function httpMessageServerRequestFactoryLoadSchemeHttps(UnitTester $I) diff --git a/tests/unit/Http/Message/Stream/CloseCest.php b/tests/unit/Http/Message/Stream/CloseCest.php index d453a399f17..a78ee05c2cf 100644 --- a/tests/unit/Http/Message/Stream/CloseCest.php +++ b/tests/unit/Http/Message/Stream/CloseCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class CloseCest /** * Tests Phalcon\Http\Message\Stream :: close() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamClose(UnitTester $I) @@ -44,7 +44,7 @@ public function httpMessageStreamClose(UnitTester $I) /** * Tests Phalcon\Http\Message\Stream :: close() - detach * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamCloseDetach(UnitTester $I) diff --git a/tests/unit/Http/Message/Stream/ConstructCest.php b/tests/unit/Http/Message/Stream/ConstructCest.php index 0d7526968c1..131cdb49b76 100644 --- a/tests/unit/Http/Message/Stream/ConstructCest.php +++ b/tests/unit/Http/Message/Stream/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class ConstructCest /** * Tests Phalcon\Http\Message\Stream :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-08 */ public function httpMessageStreamConstruct(UnitTester $I) @@ -44,7 +44,7 @@ public function httpMessageStreamConstruct(UnitTester $I) * * @dataProvider getExceptionExamples * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-08 */ public function httpMessageStreamConstructException(UnitTester $I, Example $example) diff --git a/tests/unit/Http/Message/Stream/DetachCest.php b/tests/unit/Http/Message/Stream/DetachCest.php index e093c8d35ed..dd9c11e9a28 100644 --- a/tests/unit/Http/Message/Stream/DetachCest.php +++ b/tests/unit/Http/Message/Stream/DetachCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class DetachCest /** * Tests Phalcon\Http\Message\Stream :: detach() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamDetach(UnitTester $I) diff --git a/tests/unit/Http/Message/Stream/EofCest.php b/tests/unit/Http/Message/Stream/EofCest.php index 506f8c54564..34cc82bbc31 100644 --- a/tests/unit/Http/Message/Stream/EofCest.php +++ b/tests/unit/Http/Message/Stream/EofCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class EofCest /** * Tests Phalcon\Http\Message\Stream :: eof() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamEof(UnitTester $I) @@ -40,7 +40,7 @@ public function httpMessageStreamEof(UnitTester $I) /** * Tests Phalcon\Http\Message\Stream :: eof() - detached stream * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamEofDetached(UnitTester $I) @@ -57,7 +57,7 @@ public function httpMessageStreamEofDetached(UnitTester $I) /** * Tests Phalcon\Http\Message\Stream :: eof() - not at eof * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamEofNotAtEof(UnitTester $I) diff --git a/tests/unit/Http/Message/Stream/GetContentsCest.php b/tests/unit/Http/Message/Stream/GetContentsCest.php index 6dccf196b73..518413e2c4f 100644 --- a/tests/unit/Http/Message/Stream/GetContentsCest.php +++ b/tests/unit/Http/Message/Stream/GetContentsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetContentsCest /** * Tests Phalcon\Http\Message\Stream :: getContents() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamGetContents(UnitTester $I) @@ -42,7 +42,7 @@ public function httpMessageStreamGetContents(UnitTester $I) /** * Tests Phalcon\Http\Message\Stream :: getContents() - from position * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamGetContentsFromPosition(UnitTester $I) @@ -63,7 +63,7 @@ public function httpMessageStreamGetContentsFromPosition(UnitTester $I) /** * Tests Phalcon\Http\Message\Stream :: getContents() - exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamGetContentsException(UnitTester $I) diff --git a/tests/unit/Http/Message/Stream/GetMetadataCest.php b/tests/unit/Http/Message/Stream/GetMetadataCest.php index e3fa03e9f45..3e5935ccb34 100644 --- a/tests/unit/Http/Message/Stream/GetMetadataCest.php +++ b/tests/unit/Http/Message/Stream/GetMetadataCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetMetadataCest /** * Tests Phalcon\Http\Message\Stream :: getMetadata() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamGetMetadata(UnitTester $I) @@ -53,7 +53,7 @@ public function httpMessageStreamGetMetadata(UnitTester $I) * * @dataProvider getExamples * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamGetMetadataByKey(UnitTester $I, Example $example) @@ -70,7 +70,7 @@ public function httpMessageStreamGetMetadataByKey(UnitTester $I, Example $exampl /** * Tests Phalcon\Http\Message\Stream :: getMetadata() - invalid handle * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamGetMetadataInvalidHandle(UnitTester $I) diff --git a/tests/unit/Http/Message/Stream/GetSizeCest.php b/tests/unit/Http/Message/Stream/GetSizeCest.php index 286ca0b79d0..d8b89caaafd 100644 --- a/tests/unit/Http/Message/Stream/GetSizeCest.php +++ b/tests/unit/Http/Message/Stream/GetSizeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetSizeCest /** * Tests Phalcon\Http\Message\Stream :: getSize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamGetSize(UnitTester $I) @@ -38,7 +38,7 @@ public function httpMessageStreamGetSize(UnitTester $I) /** * Tests Phalcon\Http\Message\Stream :: getSize() - invalid stream * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamGetSizeInvalid(UnitTester $I) @@ -53,7 +53,7 @@ public function httpMessageStreamGetSizeInvalid(UnitTester $I) /** * Tests Phalcon\Http\Message\Stream :: getSize() - invalid handle * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamGetSizeInvalidHandle(UnitTester $I) diff --git a/tests/unit/Http/Message/Stream/Input/ConstructCest.php b/tests/unit/Http/Message/Stream/Input/ConstructCest.php index fad02d19057..76282e75357 100644 --- a/tests/unit/Http/Message/Stream/Input/ConstructCest.php +++ b/tests/unit/Http/Message/Stream/Input/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ConstructCest /** * Tests Phalcon\Http\Message\Stream\Input :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-19 */ public function httpMessageStreamInputConstruct(UnitTester $I) diff --git a/tests/unit/Http/Message/Stream/Input/GetContentsCest.php b/tests/unit/Http/Message/Stream/Input/GetContentsCest.php index 5a19c9be3e2..927df331468 100644 --- a/tests/unit/Http/Message/Stream/Input/GetContentsCest.php +++ b/tests/unit/Http/Message/Stream/Input/GetContentsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetContentsCest /** * Unit Tests Phalcon\Http\Message\Stream\Input :: getContents() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function httpMessageStreamInputGetContents(UnitTester $I) diff --git a/tests/unit/Http/Message/Stream/Input/IsReadableCest.php b/tests/unit/Http/Message/Stream/Input/IsReadableCest.php index aae18a2740a..314859ed38c 100644 --- a/tests/unit/Http/Message/Stream/Input/IsReadableCest.php +++ b/tests/unit/Http/Message/Stream/Input/IsReadableCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class IsReadableCest /** * Tests Phalcon\Http\Message\Stream\Input :: isReadable() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-19 */ public function httpMessageStreamInputIsReadable(UnitTester $I) diff --git a/tests/unit/Http/Message/Stream/Input/IsSeekableCest.php b/tests/unit/Http/Message/Stream/Input/IsSeekableCest.php index bdfdf4be69b..3be79c07dfb 100644 --- a/tests/unit/Http/Message/Stream/Input/IsSeekableCest.php +++ b/tests/unit/Http/Message/Stream/Input/IsSeekableCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class IsSeekableCest /** * Tests Phalcon\Http\Message\Stream\Input :: isSeekable() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-19 */ public function httpMessageStreamInputIsSeekable(UnitTester $I) diff --git a/tests/unit/Http/Message/Stream/Input/IsWritableCest.php b/tests/unit/Http/Message/Stream/Input/IsWritableCest.php index 25ede6580d3..458d5a72750 100644 --- a/tests/unit/Http/Message/Stream/Input/IsWritableCest.php +++ b/tests/unit/Http/Message/Stream/Input/IsWritableCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class IsWritableCest /** * Tests Phalcon\Http\Message\Stream\Input :: isWritable() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-19 */ public function httpMessageStreamInputIsWritable(UnitTester $I) diff --git a/tests/unit/Http/Message/Stream/Input/ReadCest.php b/tests/unit/Http/Message/Stream/Input/ReadCest.php index 24f9b5c417c..3d34f96d1d3 100644 --- a/tests/unit/Http/Message/Stream/Input/ReadCest.php +++ b/tests/unit/Http/Message/Stream/Input/ReadCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ReadCest /** * Unit Tests Phalcon\Http\Message\Stream\Input :: read() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function httpMessageStreamInputRead(UnitTester $I) diff --git a/tests/unit/Http/Message/Stream/Input/ToStringCest.php b/tests/unit/Http/Message/Stream/Input/ToStringCest.php index e0da6c60cd5..8d9b07f4394 100644 --- a/tests/unit/Http/Message/Stream/Input/ToStringCest.php +++ b/tests/unit/Http/Message/Stream/Input/ToStringCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ToStringCest /** * Unit Tests Phalcon\Http\Message\Stream\Input :: __toString() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function httpMessageStreamInputToString(UnitTester $I) diff --git a/tests/unit/Http/Message/Stream/IsReadableCest.php b/tests/unit/Http/Message/Stream/IsReadableCest.php index 0b24affddc6..5714dcebf36 100644 --- a/tests/unit/Http/Message/Stream/IsReadableCest.php +++ b/tests/unit/Http/Message/Stream/IsReadableCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class IsReadableCest * * @dataProvider getExamples * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamIsReadable(UnitTester $I, Example $example) @@ -46,7 +46,7 @@ public function httpMessageStreamIsReadable(UnitTester $I, Example $example) * * @dataProvider getExamplesX * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamIsReadableWithX(UnitTester $I, Example $example) diff --git a/tests/unit/Http/Message/Stream/IsSeekableCest.php b/tests/unit/Http/Message/Stream/IsSeekableCest.php index 060d988da41..c615368fa3f 100644 --- a/tests/unit/Http/Message/Stream/IsSeekableCest.php +++ b/tests/unit/Http/Message/Stream/IsSeekableCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class IsSeekableCest * * @dataProvider getExamples * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamIsSeekable(UnitTester $I, Example $example) @@ -46,7 +46,7 @@ public function httpMessageStreamIsSeekable(UnitTester $I, Example $example) * * @dataProvider getExamplesX * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamIsSeekableWithX(UnitTester $I, Example $example) diff --git a/tests/unit/Http/Message/Stream/IsWritableCest.php b/tests/unit/Http/Message/Stream/IsWritableCest.php index 8d1a9a9bde0..e2f69150ed4 100644 --- a/tests/unit/Http/Message/Stream/IsWritableCest.php +++ b/tests/unit/Http/Message/Stream/IsWritableCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class IsWritableCest * * @dataProvider getExamples * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamIsWritable(UnitTester $I, Example $example) @@ -46,7 +46,7 @@ public function httpMessageStreamIsWritable(UnitTester $I, Example $example) * * @dataProvider getExamplesX * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamIsWritableWithX(UnitTester $I, Example $example) diff --git a/tests/unit/Http/Message/Stream/Memory/ConstructCest.php b/tests/unit/Http/Message/Stream/Memory/ConstructCest.php index 163a098893d..85a295422ea 100644 --- a/tests/unit/Http/Message/Stream/Memory/ConstructCest.php +++ b/tests/unit/Http/Message/Stream/Memory/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ConstructCest /** * Tests Phalcon\Http\Message\Stream\Memory :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-19 */ public function httpMessageStreamMemoryConstruct(UnitTester $I) diff --git a/tests/unit/Http/Message/Stream/Memory/IsReadableCest.php b/tests/unit/Http/Message/Stream/Memory/IsReadableCest.php index 69cd2dc941d..d1f22bf5d7c 100644 --- a/tests/unit/Http/Message/Stream/Memory/IsReadableCest.php +++ b/tests/unit/Http/Message/Stream/Memory/IsReadableCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class IsReadableCest /** * Tests Phalcon\Http\Message\Stream\Memory :: isReadable() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-19 */ public function httpMessageStreamMemoryIsReadable(UnitTester $I) diff --git a/tests/unit/Http/Message/Stream/Memory/IsSeekableCest.php b/tests/unit/Http/Message/Stream/Memory/IsSeekableCest.php index 0e13d270ac1..720246f8610 100644 --- a/tests/unit/Http/Message/Stream/Memory/IsSeekableCest.php +++ b/tests/unit/Http/Message/Stream/Memory/IsSeekableCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class IsSeekableCest /** * Tests Phalcon\Http\Message\Stream\Memory :: isSeekable() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-19 */ public function httpMessageStreamMemoryIsSeekable(UnitTester $I) diff --git a/tests/unit/Http/Message/Stream/Memory/IsWritableCest.php b/tests/unit/Http/Message/Stream/Memory/IsWritableCest.php index 2015676fcc2..e1683af5b2c 100644 --- a/tests/unit/Http/Message/Stream/Memory/IsWritableCest.php +++ b/tests/unit/Http/Message/Stream/Memory/IsWritableCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class IsWritableCest /** * Tests Phalcon\Http\Message\Stream\Memory :: isWritable() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-19 */ public function httpMessageStreamMemoryIsWritable(UnitTester $I) diff --git a/tests/unit/Http/Message/Stream/ReadCest.php b/tests/unit/Http/Message/Stream/ReadCest.php index 4aef74c5c74..b9c63e815f9 100644 --- a/tests/unit/Http/Message/Stream/ReadCest.php +++ b/tests/unit/Http/Message/Stream/ReadCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ReadCest /** * Tests Phalcon\Http\Message\Stream :: read() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamRead(UnitTester $I) @@ -44,7 +44,7 @@ public function httpMessageStreamRead(UnitTester $I) /** * Tests Phalcon\Http\Message\Stream :: read() - detached * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamReadDetached(UnitTester $I) diff --git a/tests/unit/Http/Message/Stream/RewindCest.php b/tests/unit/Http/Message/Stream/RewindCest.php index c1f23188180..6f43d510f79 100644 --- a/tests/unit/Http/Message/Stream/RewindCest.php +++ b/tests/unit/Http/Message/Stream/RewindCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class RewindCest /** * Tests Phalcon\Http\Message\Stream :: rewind() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamRewind(UnitTester $I) @@ -44,7 +44,7 @@ public function httpMessageStreamRewind(UnitTester $I) /** * Tests Phalcon\Http\Message\Stream :: rewind() - detached * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamRewindDetached(UnitTester $I) diff --git a/tests/unit/Http/Message/Stream/SeekCest.php b/tests/unit/Http/Message/Stream/SeekCest.php index 30069c54e14..61ff152a35f 100644 --- a/tests/unit/Http/Message/Stream/SeekCest.php +++ b/tests/unit/Http/Message/Stream/SeekCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SeekCest /** * Tests Phalcon\Http\Message\Stream :: seek() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamSeek(UnitTester $I) @@ -41,7 +41,7 @@ public function httpMessageStreamSeek(UnitTester $I) /** * Tests Phalcon\Http\Message\Stream :: seek() - after file size * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamSeekAfterFileSize(UnitTester $I) @@ -59,7 +59,7 @@ public function httpMessageStreamSeekAfterFileSize(UnitTester $I) /** * Tests Phalcon\Http\Message\Stream :: seek() - exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamSeekException(UnitTester $I) diff --git a/tests/unit/Http/Message/Stream/SetStreamCest.php b/tests/unit/Http/Message/Stream/SetStreamCest.php index 5cf7900582b..9c49395d34f 100644 --- a/tests/unit/Http/Message/Stream/SetStreamCest.php +++ b/tests/unit/Http/Message/Stream/SetStreamCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetStreamCest /** * Unit Tests Phalcon\Http\Message\Stream :: setStream() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function httpMessageStreamSetStream(UnitTester $I) diff --git a/tests/unit/Http/Message/Stream/TellCest.php b/tests/unit/Http/Message/Stream/TellCest.php index fb71375455a..5182c61aae9 100644 --- a/tests/unit/Http/Message/Stream/TellCest.php +++ b/tests/unit/Http/Message/Stream/TellCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class TellCest /** * Tests Phalcon\Http\Message\Stream :: tell() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamTell(UnitTester $I) @@ -40,7 +40,7 @@ public function httpMessageStreamTell(UnitTester $I) /** * Tests Phalcon\Http\Message\Stream :: tell() - detached * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamTellDetached(UnitTester $I) diff --git a/tests/unit/Http/Message/Stream/Temp/ConstructCest.php b/tests/unit/Http/Message/Stream/Temp/ConstructCest.php index 8b86bf82d2e..92c8a19fc10 100644 --- a/tests/unit/Http/Message/Stream/Temp/ConstructCest.php +++ b/tests/unit/Http/Message/Stream/Temp/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ConstructCest /** * Tests Phalcon\Http\Message\Stream\Temp :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-19 */ public function httpMessageStreamTempConstruct(UnitTester $I) diff --git a/tests/unit/Http/Message/Stream/Temp/IsReadableCest.php b/tests/unit/Http/Message/Stream/Temp/IsReadableCest.php index 59767c747e9..9298e818735 100644 --- a/tests/unit/Http/Message/Stream/Temp/IsReadableCest.php +++ b/tests/unit/Http/Message/Stream/Temp/IsReadableCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class IsReadableCest /** * Tests Phalcon\Http\Message\Stream\Temp :: isReadable() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-19 */ public function httpMessageStreamTempIsReadable(UnitTester $I) diff --git a/tests/unit/Http/Message/Stream/Temp/IsSeekableCest.php b/tests/unit/Http/Message/Stream/Temp/IsSeekableCest.php index 37faeb82231..ef6099ad806 100644 --- a/tests/unit/Http/Message/Stream/Temp/IsSeekableCest.php +++ b/tests/unit/Http/Message/Stream/Temp/IsSeekableCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class IsSeekableCest /** * Tests Phalcon\Http\Message\Stream\Temp :: isSeekable() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-19 */ public function httpMessageStreamTempIsSeekable(UnitTester $I) diff --git a/tests/unit/Http/Message/Stream/Temp/IsWritableCest.php b/tests/unit/Http/Message/Stream/Temp/IsWritableCest.php index 442d00b4128..40b5c9ca4ee 100644 --- a/tests/unit/Http/Message/Stream/Temp/IsWritableCest.php +++ b/tests/unit/Http/Message/Stream/Temp/IsWritableCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class IsWritableCest /** * Tests Phalcon\Http\Message\Stream\Temp :: isWritable() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-19 */ public function httpMessageStreamTempIsWritable(UnitTester $I) diff --git a/tests/unit/Http/Message/Stream/ToStringCest.php b/tests/unit/Http/Message/Stream/ToStringCest.php index 490b9579d50..0162524ec33 100644 --- a/tests/unit/Http/Message/Stream/ToStringCest.php +++ b/tests/unit/Http/Message/Stream/ToStringCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ToStringCest /** * Tests Phalcon\Http\Message\Stream :: __toString() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamToString(UnitTester $I) diff --git a/tests/unit/Http/Message/Stream/WriteCest.php b/tests/unit/Http/Message/Stream/WriteCest.php index d0a3517dcab..a295cc10e4b 100644 --- a/tests/unit/Http/Message/Stream/WriteCest.php +++ b/tests/unit/Http/Message/Stream/WriteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class WriteCest /** * Tests Phalcon\Http\Message\Stream :: write() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamWrite(UnitTester $I) @@ -50,7 +50,7 @@ public function httpMessageStreamWrite(UnitTester $I) /** * Tests Phalcon\Http\Message\Stream :: write() - detached * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamWriteDetached(UnitTester $I) @@ -74,7 +74,7 @@ function () use ($I) { /** * Tests Phalcon\Http\Message\Stream :: write() - exception not writable * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamWriteNotWritable(UnitTester $I) diff --git a/tests/unit/Http/Message/StreamFactory/ConstructCest.php b/tests/unit/Http/Message/StreamFactory/ConstructCest.php index 9a825252a22..760c1db9809 100644 --- a/tests/unit/Http/Message/StreamFactory/ConstructCest.php +++ b/tests/unit/Http/Message/StreamFactory/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ConstructCest /** * Tests Phalcon\Http\Message\StreamFactory :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-08 */ public function httpStreamFactoryConstruct(UnitTester $I) diff --git a/tests/unit/Http/Message/StreamFactory/CreateStreamCest.php b/tests/unit/Http/Message/StreamFactory/CreateStreamCest.php index 91fca047155..3c8af236cbc 100644 --- a/tests/unit/Http/Message/StreamFactory/CreateStreamCest.php +++ b/tests/unit/Http/Message/StreamFactory/CreateStreamCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class CreateStreamCest /** * Tests Phalcon\Http\Message\StreamFactory :: createStream() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamFactoryCreateStream(UnitTester $I) diff --git a/tests/unit/Http/Message/StreamFactory/CreateStreamFromFileCest.php b/tests/unit/Http/Message/StreamFactory/CreateStreamFromFileCest.php index 19cbad1ad07..bf2bcfc5d3a 100644 --- a/tests/unit/Http/Message/StreamFactory/CreateStreamFromFileCest.php +++ b/tests/unit/Http/Message/StreamFactory/CreateStreamFromFileCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class CreateStreamFromFileCest /** * Tests Phalcon\Http\Message\StreamFactory :: createStreamFromFile() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamFactoryCreateStreamFromFile(UnitTester $I) diff --git a/tests/unit/Http/Message/StreamFactory/CreateStreamFromResourceCest.php b/tests/unit/Http/Message/StreamFactory/CreateStreamFromResourceCest.php index 5acd284eaab..d4ece336dab 100644 --- a/tests/unit/Http/Message/StreamFactory/CreateStreamFromResourceCest.php +++ b/tests/unit/Http/Message/StreamFactory/CreateStreamFromResourceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CreateStreamFromResourceCest /** * Tests Phalcon\Http\Message\StreamFactory :: createStreamFromResource() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamFactoryCreateStreamFromResource(UnitTester $I) @@ -50,7 +50,7 @@ public function httpMessageStreamFactoryCreateStreamFromResource(UnitTester $I) * Tests Phalcon\Http\Message\StreamFactory :: createStreamFromResource() - * exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageStreamFactoryCreateStreamFromResourceException(UnitTester $I) diff --git a/tests/unit/Http/Message/UploadedFile/ConstructCest.php b/tests/unit/Http/Message/UploadedFile/ConstructCest.php index b2b2126c4f9..ba41b48ccc6 100644 --- a/tests/unit/Http/Message/UploadedFile/ConstructCest.php +++ b/tests/unit/Http/Message/UploadedFile/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class ConstructCest /** * Tests Phalcon\Http\Message\UploadedFile :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageUploadedFileConstruct(UnitTester $I) @@ -47,7 +47,7 @@ public function httpMessageUploadedFileConstruct(UnitTester $I) /** * Tests Phalcon\Http\Message\UploadedFile :: __construct() - $resource * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageUploadedFileConstructResource(UnitTester $I) @@ -73,7 +73,7 @@ public function httpMessageUploadedFileConstructResource(UnitTester $I) * * @dataProvider getStreamExamples * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-18 */ public function httpMessageUploadedFileConstructStreamException(UnitTester $I, Example $example) @@ -94,7 +94,7 @@ function () use ($example) { * Tests Phalcon\Http\Message\UploadedFile :: __construct() - error * exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-18 */ public function httpMessageUploadedFileConstructErrorException(UnitTester $I) diff --git a/tests/unit/Http/Message/UploadedFile/GetClientFilenameCest.php b/tests/unit/Http/Message/UploadedFile/GetClientFilenameCest.php index 44eef1b8550..c4db1dff97a 100644 --- a/tests/unit/Http/Message/UploadedFile/GetClientFilenameCest.php +++ b/tests/unit/Http/Message/UploadedFile/GetClientFilenameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetClientFilenameCest /** * Tests Phalcon\Http\Message\UploadedFile :: getClientFilename() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageUploadedFileGetClientFilename(UnitTester $I) diff --git a/tests/unit/Http/Message/UploadedFile/GetClientMediaTypeCest.php b/tests/unit/Http/Message/UploadedFile/GetClientMediaTypeCest.php index 93bfd79c894..7cc4efd006e 100644 --- a/tests/unit/Http/Message/UploadedFile/GetClientMediaTypeCest.php +++ b/tests/unit/Http/Message/UploadedFile/GetClientMediaTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetClientMediaTypeCest /** * Tests Phalcon\Http\Message\UploadedFile :: getClientMediaType() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageUploadedFileGetClientMediaType(UnitTester $I) diff --git a/tests/unit/Http/Message/UploadedFile/GetErrorCest.php b/tests/unit/Http/Message/UploadedFile/GetErrorCest.php index 40461e1de06..f9b2cd88fa9 100644 --- a/tests/unit/Http/Message/UploadedFile/GetErrorCest.php +++ b/tests/unit/Http/Message/UploadedFile/GetErrorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetErrorCest /** * Tests Phalcon\Http\Message\UploadedFile :: getError() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageUploadedFileGetError(UnitTester $I) diff --git a/tests/unit/Http/Message/UploadedFile/GetSizeCest.php b/tests/unit/Http/Message/UploadedFile/GetSizeCest.php index 794a287f779..ad7fa46f877 100644 --- a/tests/unit/Http/Message/UploadedFile/GetSizeCest.php +++ b/tests/unit/Http/Message/UploadedFile/GetSizeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetSizeCest /** * Tests Phalcon\Http\Message\UploadedFile :: getSize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageUploadedFileGetSize(UnitTester $I) diff --git a/tests/unit/Http/Message/UploadedFile/GetStreamCest.php b/tests/unit/Http/Message/UploadedFile/GetStreamCest.php index c485d5f2d1c..c09d39f4c2a 100644 --- a/tests/unit/Http/Message/UploadedFile/GetStreamCest.php +++ b/tests/unit/Http/Message/UploadedFile/GetStreamCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class GetStreamCest /** * Tests Phalcon\Http\Message\UploadedFile :: getStream() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageUploadedFileGetStream(UnitTester $I) @@ -47,7 +47,7 @@ public function httpMessageUploadedFileGetStream(UnitTester $I) /** * Tests Phalcon\Http\Message\UploadedFile :: getStream() - string * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageUploadedFileGetStreamString(UnitTester $I) @@ -67,7 +67,7 @@ public function httpMessageUploadedFileGetStreamString(UnitTester $I) /** * Tests Phalcon\Http\Message\UploadedFile :: getStream() - exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageUploadedFileGetStreamException(UnitTester $I) @@ -96,7 +96,7 @@ function () { * Tests Phalcon\Http\Message\UploadedFile :: getStream() - exception * already moved * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageUploadedFileGetStreamExceptionAlreadyMoved(UnitTester $I) diff --git a/tests/unit/Http/Message/UploadedFile/MoveToCest.php b/tests/unit/Http/Message/UploadedFile/MoveToCest.php index 9923f9375c0..9963888c815 100644 --- a/tests/unit/Http/Message/UploadedFile/MoveToCest.php +++ b/tests/unit/Http/Message/UploadedFile/MoveToCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class MoveToCest /** * Tests Phalcon\Http\Message\UploadedFile :: moveTo() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageUploadedFileMoveTo(UnitTester $I) @@ -52,7 +52,7 @@ public function httpMessageUploadedFileMoveTo(UnitTester $I) /** * Tests Phalcon\Http\Message\UploadedFile :: moveTo() - upload error * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageUploadedFileMoveToUploadError(UnitTester $I) @@ -84,7 +84,7 @@ function () use ($I) { /** * Tests Phalcon\Http\Message\UploadedFile :: moveTo() - wrong path * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageUploadedFileMoveToWrongPath(UnitTester $I) @@ -110,7 +110,7 @@ function () use ($I) { /** * Tests Phalcon\Http\Message\UploadedFile :: moveTo() - already moved * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageUploadedFileMoveToAlreadyMoved(UnitTester $I) diff --git a/tests/unit/Http/Message/UploadedFileFactory/ConstructCest.php b/tests/unit/Http/Message/UploadedFileFactory/ConstructCest.php index cd55eb33d34..7bf2c056d34 100644 --- a/tests/unit/Http/Message/UploadedFileFactory/ConstructCest.php +++ b/tests/unit/Http/Message/UploadedFileFactory/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ConstructCest /** * Tests Phalcon\Http\Message\ServerUploadedFileFactory :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-08 */ public function httpUploadedFileFactoryConstruct(UnitTester $I) diff --git a/tests/unit/Http/Message/UploadedFileFactory/CreateUploadedFileCest.php b/tests/unit/Http/Message/UploadedFileFactory/CreateUploadedFileCest.php index 1baa7c0d879..3213447f592 100644 --- a/tests/unit/Http/Message/UploadedFileFactory/CreateUploadedFileCest.php +++ b/tests/unit/Http/Message/UploadedFileFactory/CreateUploadedFileCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CreateUploadedFileCest /** * Tests Phalcon\Http\Message\UploadedFileFactory :: createUploadedFile() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpMessageUploadedFileFactoryCreateUploadedFile(UnitTester $I) diff --git a/tests/unit/Http/Message/Uri/ConstructCest.php b/tests/unit/Http/Message/Uri/ConstructCest.php index dba9609aea4..a7e8b3451d9 100644 --- a/tests/unit/Http/Message/Uri/ConstructCest.php +++ b/tests/unit/Http/Message/Uri/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ConstructCest /** * Tests Phalcon\Http\Message\Uri :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-09 */ public function httpMessageUriConstruct(UnitTester $I) diff --git a/tests/unit/Http/Message/Uri/GetAuthorityCest.php b/tests/unit/Http/Message/Uri/GetAuthorityCest.php index 1f09866eabc..faf5b444d97 100644 --- a/tests/unit/Http/Message/Uri/GetAuthorityCest.php +++ b/tests/unit/Http/Message/Uri/GetAuthorityCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class GetAuthorityCest * * @dataProvider getExamples * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-09 */ public function httpMessageUriGetAuthority(UnitTester $I, Example $example) diff --git a/tests/unit/Http/Message/Uri/GetFragmentCest.php b/tests/unit/Http/Message/Uri/GetFragmentCest.php index cdcdc4eddb7..9d20ff8a707 100644 --- a/tests/unit/Http/Message/Uri/GetFragmentCest.php +++ b/tests/unit/Http/Message/Uri/GetFragmentCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetFragmentCest /** * Tests Phalcon\Http\Message\Uri :: getFragment() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-09 */ public function httpMessageUriGetFragment(UnitTester $I) @@ -37,7 +37,7 @@ public function httpMessageUriGetFragment(UnitTester $I) /** * Tests Phalcon\Http\Message\Uri :: getFragment() - empty * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-07 */ public function httpUriGetFragmentEmpty(UnitTester $I) diff --git a/tests/unit/Http/Message/Uri/GetHostCest.php b/tests/unit/Http/Message/Uri/GetHostCest.php index 7629a48411f..69f7571f968 100644 --- a/tests/unit/Http/Message/Uri/GetHostCest.php +++ b/tests/unit/Http/Message/Uri/GetHostCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetHostCest /** * Tests Phalcon\Http\Message\Uri :: getHost() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-09 */ public function httpMessageUriGetHost(UnitTester $I) @@ -38,7 +38,7 @@ public function httpMessageUriGetHost(UnitTester $I) /** * Tests Phalcon\Http\Message\Uri :: getHost() - empty * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-07 */ public function httpUriGetHostEmpty(UnitTester $I) diff --git a/tests/unit/Http/Message/Uri/GetPathCest.php b/tests/unit/Http/Message/Uri/GetPathCest.php index 6651791679a..8a4a05edf2b 100644 --- a/tests/unit/Http/Message/Uri/GetPathCest.php +++ b/tests/unit/Http/Message/Uri/GetPathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetPathCest /** * Tests Phalcon\Http\Message\Uri :: getPath() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-09 */ public function httpMessageUriGetPath(UnitTester $I) @@ -37,7 +37,7 @@ public function httpMessageUriGetPath(UnitTester $I) /** * Tests Phalcon\Http\Message\Uri :: getPath() - empty * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-07 */ public function httpUriGetPathEmpty(UnitTester $I) diff --git a/tests/unit/Http/Message/Uri/GetPortCest.php b/tests/unit/Http/Message/Uri/GetPortCest.php index 33bd4e1a762..e1978a8fc84 100644 --- a/tests/unit/Http/Message/Uri/GetPortCest.php +++ b/tests/unit/Http/Message/Uri/GetPortCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetPortCest /** * Tests Phalcon\Http\Message\Uri :: getPort() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-09 */ public function httpMessageUriGetPort(UnitTester $I) @@ -37,7 +37,7 @@ public function httpMessageUriGetPort(UnitTester $I) /** * Tests Phalcon\Http\Message\Uri :: getPort() - empty * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-07 */ public function httpUriGetPortEmpty(UnitTester $I) diff --git a/tests/unit/Http/Message/Uri/GetQueryCest.php b/tests/unit/Http/Message/Uri/GetQueryCest.php index 7e53fd26d03..143d66df30f 100644 --- a/tests/unit/Http/Message/Uri/GetQueryCest.php +++ b/tests/unit/Http/Message/Uri/GetQueryCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetQueryCest /** * Tests Phalcon\Http\Message\Uri :: getQuery() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-09 */ public function httpMessageUriGetQuery(UnitTester $I) @@ -37,7 +37,7 @@ public function httpMessageUriGetQuery(UnitTester $I) /** * Tests Phalcon\Http\Message\Uri :: getQuery() - empty * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-07 */ public function httpUriGetQueryEmpty(UnitTester $I) diff --git a/tests/unit/Http/Message/Uri/GetSchemeCest.php b/tests/unit/Http/Message/Uri/GetSchemeCest.php index b3a3484058a..db09ab8f338 100644 --- a/tests/unit/Http/Message/Uri/GetSchemeCest.php +++ b/tests/unit/Http/Message/Uri/GetSchemeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetSchemeCest /** * Tests Phalcon\Http\Message\Uri :: getScheme() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-09 */ public function httpMessageUriGetScheme(UnitTester $I) @@ -37,7 +37,7 @@ public function httpMessageUriGetScheme(UnitTester $I) /** * Tests Phalcon\Http\Message\Uri :: getScheme() - empty * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-07 */ public function httpUriGetSchemeEmpty(UnitTester $I) diff --git a/tests/unit/Http/Message/Uri/GetUserInfoCest.php b/tests/unit/Http/Message/Uri/GetUserInfoCest.php index 437975bcd43..b0bb2254421 100644 --- a/tests/unit/Http/Message/Uri/GetUserInfoCest.php +++ b/tests/unit/Http/Message/Uri/GetUserInfoCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetUserInfoCest /** * Tests Phalcon\Http\Message\Uri :: getUserInfo() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-09 */ public function httpMessageUriGetUserInfo(UnitTester $I) @@ -37,7 +37,7 @@ public function httpMessageUriGetUserInfo(UnitTester $I) /** * Tests Phalcon\Http\Message\Uri :: getUserInfo() - only user * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-07 */ public function httpUriGetUserInfoOnlyUser(UnitTester $I) @@ -54,7 +54,7 @@ public function httpUriGetUserInfoOnlyUser(UnitTester $I) /** * Tests Phalcon\Http\Message\Uri :: getUserInfo() - only pass * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-07 */ public function httpUriGetUserInfoOnlyPass(UnitTester $I) @@ -71,7 +71,7 @@ public function httpUriGetUserInfoOnlyPass(UnitTester $I) /** * Tests Phalcon\Http\Message\Uri :: getUserInfo() - empty * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-07 */ public function httpUriGetUserInfoEmpty(UnitTester $I) diff --git a/tests/unit/Http/Message/Uri/ToStringCest.php b/tests/unit/Http/Message/Uri/ToStringCest.php index e9f71ba9d3c..db81c48df56 100644 --- a/tests/unit/Http/Message/Uri/ToStringCest.php +++ b/tests/unit/Http/Message/Uri/ToStringCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ToStringCest /** * Tests Phalcon\Http\Message\Uri :: __toString() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-09 */ public function httpMessageUriToString(UnitTester $I) @@ -35,7 +35,7 @@ public function httpMessageUriToString(UnitTester $I) /** * Tests Phalcon\Http\Message\Uri :: __toString() - path no lead slash * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-07 */ public function httpUriToStringPathNoLeadSlash(UnitTester $I) @@ -52,7 +52,7 @@ public function httpUriToStringPathNoLeadSlash(UnitTester $I) /** * Tests Phalcon\Http\Message\Uri :: __toString() - path many slashes * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-01 */ public function httpUriToStringPathManySlashes(UnitTester $I) diff --git a/tests/unit/Http/Message/Uri/WithFragmentCest.php b/tests/unit/Http/Message/Uri/WithFragmentCest.php index 18575d77210..f7d189308b0 100644 --- a/tests/unit/Http/Message/Uri/WithFragmentCest.php +++ b/tests/unit/Http/Message/Uri/WithFragmentCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class WithFragmentCest /** * Tests Phalcon\Http\Message\Uri :: withFragment() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-09 */ public function httpMessageUriWithFragment(UnitTester $I) @@ -67,7 +67,7 @@ public function httpMessageUriWithFragment(UnitTester $I) * * @dataProvider getExamples * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-07 */ public function httpUriWithFragmentException(UnitTester $I, Example $example) diff --git a/tests/unit/Http/Message/Uri/WithHostCest.php b/tests/unit/Http/Message/Uri/WithHostCest.php index 6031152fdc4..f8c93ab9b65 100644 --- a/tests/unit/Http/Message/Uri/WithHostCest.php +++ b/tests/unit/Http/Message/Uri/WithHostCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class WithHostCest /** * Tests Phalcon\Http\Message\Uri :: withHost() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-09 */ public function httpMessageUriWithHost(UnitTester $I) @@ -55,7 +55,7 @@ public function httpMessageUriWithHost(UnitTester $I) * * @dataProvider getExamples * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-07 */ public function httpUriWithHostException(UnitTester $I, Example $example) diff --git a/tests/unit/Http/Message/Uri/WithPathCest.php b/tests/unit/Http/Message/Uri/WithPathCest.php index f9f4c729859..6dfc844fd78 100644 --- a/tests/unit/Http/Message/Uri/WithPathCest.php +++ b/tests/unit/Http/Message/Uri/WithPathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class WithPathCest * * @dataProvider getExamples * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-09 */ public function httpMessageUriWithPath(UnitTester $I, Example $example) @@ -60,7 +60,7 @@ public function httpMessageUriWithPath(UnitTester $I, Example $example) /** * Tests Phalcon\Http\Message\Uri :: withPath() - exception query string * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-01 */ public function httpUriWithPathExceptionQueryString(UnitTester $I) @@ -82,7 +82,7 @@ function () { /** * Tests Phalcon\Http\Message\Uri :: withPath() - exception query fragment * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-01 */ public function httpUriWithPathExceptionQueryFragment(UnitTester $I) @@ -106,7 +106,7 @@ function () { * * @dataProvider getExceptions * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-07 */ public function httpUriWithPathException(UnitTester $I, Example $example) diff --git a/tests/unit/Http/Message/Uri/WithPortCest.php b/tests/unit/Http/Message/Uri/WithPortCest.php index 8e8714cddf4..8e5e24167b9 100644 --- a/tests/unit/Http/Message/Uri/WithPortCest.php +++ b/tests/unit/Http/Message/Uri/WithPortCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class WithPortCest * * @dataProvider getExamples * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-01 */ public function httpMessageUriWithPort(UnitTester $I, Example $example) @@ -61,7 +61,7 @@ public function httpMessageUriWithPort(UnitTester $I, Example $example) * * @dataProvider getExceptions * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-07 */ public function httpUriWithPortException(UnitTester $I, Example $example) diff --git a/tests/unit/Http/Message/Uri/WithQueryCest.php b/tests/unit/Http/Message/Uri/WithQueryCest.php index ef81e4fc718..7c32402986c 100644 --- a/tests/unit/Http/Message/Uri/WithQueryCest.php +++ b/tests/unit/Http/Message/Uri/WithQueryCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class WithQueryCest * * @dataProvider getExamples * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-09 */ public function httpMessageUriWithQuery(UnitTester $I, Example $example) @@ -54,7 +54,7 @@ public function httpMessageUriWithQuery(UnitTester $I, Example $example) * * @dataProvider getExceptions * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-07 */ public function httpUriWithQueryException(UnitTester $I, Example $example) @@ -78,7 +78,7 @@ function () use ($example) { /** * Tests Phalcon\Http\Message\Uri :: withQuery() - exception with fragment * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-07 */ public function httpUriWithQueryExceptionWithFragment(UnitTester $I) diff --git a/tests/unit/Http/Message/Uri/WithSchemeCest.php b/tests/unit/Http/Message/Uri/WithSchemeCest.php index dc711b4bb56..05122317cb5 100644 --- a/tests/unit/Http/Message/Uri/WithSchemeCest.php +++ b/tests/unit/Http/Message/Uri/WithSchemeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class WithSchemeCest /** * Tests Phalcon\Http\Message\Uri :: withScheme() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-09 */ public function httpMessageUriWithScheme(UnitTester $I) @@ -53,7 +53,7 @@ public function httpMessageUriWithScheme(UnitTester $I) /** * Tests Phalcon\Http\Message\Uri :: withScheme() - exception unsupported * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-06-01 */ public function httpUriWithSchemeExceptionUnsupported(UnitTester $I) @@ -79,7 +79,7 @@ function () { * * @dataProvider getExamples * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-07 */ public function httpUriWithSchemeException(UnitTester $I, Example $example) diff --git a/tests/unit/Http/Message/Uri/WithUserInfoCest.php b/tests/unit/Http/Message/Uri/WithUserInfoCest.php index c8a3c5ba319..d778fa44f55 100644 --- a/tests/unit/Http/Message/Uri/WithUserInfoCest.php +++ b/tests/unit/Http/Message/Uri/WithUserInfoCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class WithUserInfoCest * * @dataProvider getExamples * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-09 */ public function httpMessageUriWithUserInfo(UnitTester $I, Example $example) @@ -57,7 +57,7 @@ public function httpMessageUriWithUserInfo(UnitTester $I, Example $example) * * @dataProvider getExceptions * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-07 */ public function httpUriWithUserInfoException(UnitTester $I, Example $example) diff --git a/tests/unit/Http/Message/UriFactory/ConstructCest.php b/tests/unit/Http/Message/UriFactory/ConstructCest.php index be1bb3cc059..5c37169a509 100644 --- a/tests/unit/Http/Message/UriFactory/ConstructCest.php +++ b/tests/unit/Http/Message/UriFactory/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ConstructCest /** * Tests Phalcon\Http\Message\UriFactory :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-07 */ public function httpUriFactoryConstruct(UnitTester $I) diff --git a/tests/unit/Http/Message/UriFactory/CreateUriCest.php b/tests/unit/Http/Message/UriFactory/CreateUriCest.php index 32bc2d133c7..cd94124abdf 100644 --- a/tests/unit/Http/Message/UriFactory/CreateUriCest.php +++ b/tests/unit/Http/Message/UriFactory/CreateUriCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class CreateUriCest /** * Tests Phalcon\Http\Message\UriFactory :: createUri() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-09 */ public function httpMessageUriFactoryCreateUri(UnitTester $I) diff --git a/tests/unit/Http/Request/AuthHeaderCest.php b/tests/unit/Http/Request/AuthHeaderCest.php index 38a13fab2b6..8a982ec549a 100644 --- a/tests/unit/Http/Request/AuthHeaderCest.php +++ b/tests/unit/Http/Request/AuthHeaderCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class AuthHeaderCest extends HttpBase * * @test * @issue https://github.com/phalcon/cphalcon/issues/12480 - * @author Serghei Iakovelv + * @author Serghei Iakovelv * @since 2016-12-18 * * @dataProvider basicAuthProvider @@ -67,7 +67,7 @@ public function shouldGetAuthFromHeaders(UnitTester $I, Example $example) * * @test * @issue https://github.com/phalcon/cphalcon/issues/13327 - * @author Serghei Iakovelv + * @author Serghei Iakovelv * @since 2018-03-25 */ public function shouldFireEventWhenResolveAuthorization(UnitTester $I) @@ -104,7 +104,7 @@ public function shouldFireEventWhenResolveAuthorization(UnitTester $I) * * @test * @issue https://github.com/phalcon/cphalcon/issues/13327 - * @author Serghei Iakovelv + * @author Serghei Iakovelv * @since 2018-03-25 */ public function shouldEnableCustomAuthorizationResolver(UnitTester $I) @@ -137,7 +137,7 @@ public function shouldEnableCustomAuthorizationResolver(UnitTester $I) * * @test * @issue https://github.com/phalcon/cphalcon/issues/13327 - * @author Serghei Iakovelv + * @author Serghei Iakovelv * @since 2018-03-25 */ public function shouldResolveCustomAuthorizationHeaders(UnitTester $I) diff --git a/tests/unit/Http/Request/ConstructCest.php b/tests/unit/Http/Request/ConstructCest.php index aaadb80e365..4f228e766f8 100644 --- a/tests/unit/Http/Request/ConstructCest.php +++ b/tests/unit/Http/Request/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ConstructCest /** * Tests Phalcon\Http\Cookie :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestConstruct(UnitTester $I) diff --git a/tests/unit/Http/Request/File/ConstructCest.php b/tests/unit/Http/Request/File/ConstructCest.php index d635f24f376..fcf2bc420b5 100644 --- a/tests/unit/Http/Request/File/ConstructCest.php +++ b/tests/unit/Http/Request/File/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ConstructCest /** * Tests Phalcon\Http\Request\File :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestFileConstruct(UnitTester $I) diff --git a/tests/unit/Http/Request/File/GetErrorCest.php b/tests/unit/Http/Request/File/GetErrorCest.php index 3a9746f356d..b7ceb1008ee 100644 --- a/tests/unit/Http/Request/File/GetErrorCest.php +++ b/tests/unit/Http/Request/File/GetErrorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetErrorCest /** * Tests Phalcon\Http\Request\File :: getError() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestFileGetError(UnitTester $I) diff --git a/tests/unit/Http/Request/File/GetExtensionCest.php b/tests/unit/Http/Request/File/GetExtensionCest.php index b3a992f8081..6098e5250be 100644 --- a/tests/unit/Http/Request/File/GetExtensionCest.php +++ b/tests/unit/Http/Request/File/GetExtensionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetExtensionCest /** * Tests Phalcon\Http\Request\File :: getExtension() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestFileGetExtension(UnitTester $I) diff --git a/tests/unit/Http/Request/File/GetKeyCest.php b/tests/unit/Http/Request/File/GetKeyCest.php index 4db1f020df3..ec84ded2a57 100644 --- a/tests/unit/Http/Request/File/GetKeyCest.php +++ b/tests/unit/Http/Request/File/GetKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetKeyCest /** * Tests Phalcon\Http\Request\File :: getKey() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestFileGetKey(UnitTester $I) diff --git a/tests/unit/Http/Request/File/GetNameCest.php b/tests/unit/Http/Request/File/GetNameCest.php index 10743d0ac5e..665d307ab45 100644 --- a/tests/unit/Http/Request/File/GetNameCest.php +++ b/tests/unit/Http/Request/File/GetNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetNameCest /** * Tests Phalcon\Http\Request\File :: getName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestFileGetName(UnitTester $I) diff --git a/tests/unit/Http/Request/File/GetRealTypeCest.php b/tests/unit/Http/Request/File/GetRealTypeCest.php index ebe3ab80bf3..9c86e5d7664 100644 --- a/tests/unit/Http/Request/File/GetRealTypeCest.php +++ b/tests/unit/Http/Request/File/GetRealTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetRealTypeCest /** * Tests Phalcon\Http\Request\File :: getRealType() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestFileGetRealType(UnitTester $I) diff --git a/tests/unit/Http/Request/File/GetSizeCest.php b/tests/unit/Http/Request/File/GetSizeCest.php index c20b26b1704..7c15b16eec0 100644 --- a/tests/unit/Http/Request/File/GetSizeCest.php +++ b/tests/unit/Http/Request/File/GetSizeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetSizeCest /** * Tests Phalcon\Http\Request\File :: getSize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestFileGetSize(UnitTester $I) diff --git a/tests/unit/Http/Request/File/GetTempNameCest.php b/tests/unit/Http/Request/File/GetTempNameCest.php index 0b11988f9c2..e12fb6b6338 100644 --- a/tests/unit/Http/Request/File/GetTempNameCest.php +++ b/tests/unit/Http/Request/File/GetTempNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetTempNameCest /** * Tests Phalcon\Http\Request\File :: getTempName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestFileGetTempName(UnitTester $I) diff --git a/tests/unit/Http/Request/File/GetTypeCest.php b/tests/unit/Http/Request/File/GetTypeCest.php index e157e767e9c..44afdbfd2d9 100644 --- a/tests/unit/Http/Request/File/GetTypeCest.php +++ b/tests/unit/Http/Request/File/GetTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetTypeCest /** * Tests Phalcon\Http\Request\File :: getType() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestFileGetType(UnitTester $I) diff --git a/tests/unit/Http/Request/File/IsUploadedFileCest.php b/tests/unit/Http/Request/File/IsUploadedFileCest.php index 9c7a6b584d9..1888cb01018 100644 --- a/tests/unit/Http/Request/File/IsUploadedFileCest.php +++ b/tests/unit/Http/Request/File/IsUploadedFileCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class IsUploadedFileCest /** * Tests Phalcon\Http\Request\File :: isUploadedFile() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestFileIsUploadedFile(UnitTester $I) diff --git a/tests/unit/Http/Request/File/MoveToCest.php b/tests/unit/Http/Request/File/MoveToCest.php index 50fbebfd282..8b4486bfc78 100644 --- a/tests/unit/Http/Request/File/MoveToCest.php +++ b/tests/unit/Http/Request/File/MoveToCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class MoveToCest /** * Tests Phalcon\Http\Request\File :: moveTo() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestFileMoveTo(UnitTester $I) diff --git a/tests/unit/Http/Request/FileCest.php b/tests/unit/Http/Request/FileCest.php index 0c37285dbe2..c1893b0af60 100644 --- a/tests/unit/Http/Request/FileCest.php +++ b/tests/unit/Http/Request/FileCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class FileCest * Tests getRealType * * @issue https://github.com/phalcon/cphalcon/issues/1442 - * @author Phalcon Team + * @author Phalcon Team * @author Dreamszhu * @since 2013-10-26 */ diff --git a/tests/unit/Http/Request/GetAcceptableContentCest.php b/tests/unit/Http/Request/GetAcceptableContentCest.php index 6fe567e77bf..ffcf25315e9 100644 --- a/tests/unit/Http/Request/GetAcceptableContentCest.php +++ b/tests/unit/Http/Request/GetAcceptableContentCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetAcceptableContentCest /** * Tests Phalcon\Http\Request :: getAcceptableContent() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestGetAcceptableContent(UnitTester $I) diff --git a/tests/unit/Http/Request/GetBasicAuthCest.php b/tests/unit/Http/Request/GetBasicAuthCest.php index c0179850613..088888ce601 100644 --- a/tests/unit/Http/Request/GetBasicAuthCest.php +++ b/tests/unit/Http/Request/GetBasicAuthCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetBasicAuthCest /** * Tests Phalcon\Http\Request :: getBasicAuth() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestGetBasicAuth(UnitTester $I) diff --git a/tests/unit/Http/Request/GetBestAcceptCest.php b/tests/unit/Http/Request/GetBestAcceptCest.php index d6cbf9072a6..8d1472518f8 100644 --- a/tests/unit/Http/Request/GetBestAcceptCest.php +++ b/tests/unit/Http/Request/GetBestAcceptCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetBestAcceptCest /** * Tests Phalcon\Http\Request :: getBestAccept() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestGetBestAccept(UnitTester $I) diff --git a/tests/unit/Http/Request/GetBestCharsetCest.php b/tests/unit/Http/Request/GetBestCharsetCest.php index 584315db528..c2b3738226c 100644 --- a/tests/unit/Http/Request/GetBestCharsetCest.php +++ b/tests/unit/Http/Request/GetBestCharsetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetBestCharsetCest /** * Tests Phalcon\Http\Request :: getBestCharset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestGetBestCharset(UnitTester $I) diff --git a/tests/unit/Http/Request/GetBestLanguageCest.php b/tests/unit/Http/Request/GetBestLanguageCest.php index 9d8e598aff2..5779dee8835 100644 --- a/tests/unit/Http/Request/GetBestLanguageCest.php +++ b/tests/unit/Http/Request/GetBestLanguageCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetBestLanguageCest /** * Tests Phalcon\Http\Request :: getBestLanguage() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestGetBestLanguage(UnitTester $I) diff --git a/tests/unit/Http/Request/GetCest.php b/tests/unit/Http/Request/GetCest.php index fb7de13efe2..ecf797923d3 100644 --- a/tests/unit/Http/Request/GetCest.php +++ b/tests/unit/Http/Request/GetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetCest /** * Tests Phalcon\Http\Request :: get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestGet(UnitTester $I) diff --git a/tests/unit/Http/Request/GetClientAddressCest.php b/tests/unit/Http/Request/GetClientAddressCest.php index d130553a4d7..d13b4fda7e9 100644 --- a/tests/unit/Http/Request/GetClientAddressCest.php +++ b/tests/unit/Http/Request/GetClientAddressCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetClientAddressCest /** * Tests Phalcon\Http\Request :: getClientAddress() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestGetClientAddress(UnitTester $I) diff --git a/tests/unit/Http/Request/GetClientCharsetsCest.php b/tests/unit/Http/Request/GetClientCharsetsCest.php index 6d91f6aff29..206ee06288b 100644 --- a/tests/unit/Http/Request/GetClientCharsetsCest.php +++ b/tests/unit/Http/Request/GetClientCharsetsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetClientCharsetsCest /** * Tests Phalcon\Http\Request :: getClientCharsets() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestGetClientCharsets(UnitTester $I) diff --git a/tests/unit/Http/Request/GetContentTypeCest.php b/tests/unit/Http/Request/GetContentTypeCest.php index ac4b3358cd1..3a561cfe799 100644 --- a/tests/unit/Http/Request/GetContentTypeCest.php +++ b/tests/unit/Http/Request/GetContentTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Http/Request/GetDigestAuthCest.php b/tests/unit/Http/Request/GetDigestAuthCest.php index 01fb355b174..c47134d65fc 100644 --- a/tests/unit/Http/Request/GetDigestAuthCest.php +++ b/tests/unit/Http/Request/GetDigestAuthCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetDigestAuthCest /** * Tests Phalcon\Http\Request :: getDigestAuth() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestGetDigestAuth(UnitTester $I) diff --git a/tests/unit/Http/Request/GetFilteredPostCest.php b/tests/unit/Http/Request/GetFilteredPostCest.php index f7f94d92dcb..2ab34d4371c 100644 --- a/tests/unit/Http/Request/GetFilteredPostCest.php +++ b/tests/unit/Http/Request/GetFilteredPostCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ class GetFilteredPostCest * * @dataProvider getExamples * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-01 */ public function httpRequestGetFilteredPost1(UnitTester $I, Example $example) @@ -60,7 +60,7 @@ public function httpRequestGetFilteredPost1(UnitTester $I, Example $example) /** * Tests Phalcon\Http\Request :: getFilteredPost() - default * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-01 */ public function httpRequestGetFilteredDefault(UnitTester $I) diff --git a/tests/unit/Http/Request/GetFilteredPutCest.php b/tests/unit/Http/Request/GetFilteredPutCest.php index 18e520fa64d..b2869ad9beb 100644 --- a/tests/unit/Http/Request/GetFilteredPutCest.php +++ b/tests/unit/Http/Request/GetFilteredPutCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetFilteredPutCest /** * Tests Phalcon\Http\Request :: getFilteredPut() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestGetFilteredPut(UnitTester $I) diff --git a/tests/unit/Http/Request/GetFilteredQueryCest.php b/tests/unit/Http/Request/GetFilteredQueryCest.php index b1ed1286fe7..ecb66ffa841 100644 --- a/tests/unit/Http/Request/GetFilteredQueryCest.php +++ b/tests/unit/Http/Request/GetFilteredQueryCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetFilteredQueryCest /** * Tests Phalcon\Http\Request :: getFilteredQuery() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestGetFilteredQuery(UnitTester $I) diff --git a/tests/unit/Http/Request/GetHTTPRefererCest.php b/tests/unit/Http/Request/GetHTTPRefererCest.php index 473eb03371a..9eb0d4fd93b 100644 --- a/tests/unit/Http/Request/GetHTTPRefererCest.php +++ b/tests/unit/Http/Request/GetHTTPRefererCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetHTTPRefererCest /** * Tests Phalcon\Http\Request :: getHTTPReferer() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestGetHTTPReferer(UnitTester $I) diff --git a/tests/unit/Http/Request/GetHeaderCest.php b/tests/unit/Http/Request/GetHeaderCest.php index 32004a69bd1..dcf1220b668 100644 --- a/tests/unit/Http/Request/GetHeaderCest.php +++ b/tests/unit/Http/Request/GetHeaderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetHeaderCest extends HttpBase /** * Tests getHeader empty * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-04 */ public function testHttpRequestHeaderGetEmpty(UnitTester $I) @@ -35,7 +35,7 @@ public function testHttpRequestHeaderGetEmpty(UnitTester $I) /** * Tests getHeader * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-04 */ public function testHttpRequestHeaderGet(UnitTester $I) @@ -55,7 +55,7 @@ public function testHttpRequestHeaderGet(UnitTester $I) * Tests getHeader * * @issue https://github.com/phalcon/cphalcon/issues/2294 - * @author Phalcon Team + * @author Phalcon Team * @since 2016-10-19 */ public function testHttpRequestCustomHeaderGet(UnitTester $I) diff --git a/tests/unit/Http/Request/GetHeadersCest.php b/tests/unit/Http/Request/GetHeadersCest.php index 2f884dbf4b0..1a58ee4f020 100644 --- a/tests/unit/Http/Request/GetHeadersCest.php +++ b/tests/unit/Http/Request/GetHeadersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetHeadersCest /** * Tests Phalcon\Http\Request :: getHeaders() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestGetHeaders(UnitTester $I) diff --git a/tests/unit/Http/Request/GetHttpHostCest.php b/tests/unit/Http/Request/GetHttpHostCest.php index 77dafe3be1e..aaa2280bfad 100644 --- a/tests/unit/Http/Request/GetHttpHostCest.php +++ b/tests/unit/Http/Request/GetHttpHostCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetHttpHostCest extends HttpBase /** * Tests getHttpHost * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-04 */ public function testHttpRequestHttpHost(UnitTester $I) @@ -144,7 +144,7 @@ public function testHttpRequestHttpHost(UnitTester $I) /** * Tests getHttpHost by using invalid host * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-06-26 * * @dataProvider testInvalidHttpRequestHttpHostProvider diff --git a/tests/unit/Http/Request/GetHttpMethodParameterOverrideCest.php b/tests/unit/Http/Request/GetHttpMethodParameterOverrideCest.php index 315acf48396..c742c1db3ce 100644 --- a/tests/unit/Http/Request/GetHttpMethodParameterOverrideCest.php +++ b/tests/unit/Http/Request/GetHttpMethodParameterOverrideCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetHttpMethodParameterOverrideCest /** * Tests Phalcon\Http\Request :: getHttpMethodParameterOverride() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestGetHttpMethodParameterOverride(UnitTester $I) diff --git a/tests/unit/Http/Request/GetJsonRawBodyCest.php b/tests/unit/Http/Request/GetJsonRawBodyCest.php index 2a294eadef0..6d183eba27d 100644 --- a/tests/unit/Http/Request/GetJsonRawBodyCest.php +++ b/tests/unit/Http/Request/GetJsonRawBodyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetJsonRawBodyCest /** * Tests Phalcon\Http\Request :: getJsonRawBody() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestGetJsonRawBody(UnitTester $I) diff --git a/tests/unit/Http/Request/GetLanguagesCest.php b/tests/unit/Http/Request/GetLanguagesCest.php index 5564835c8b7..ce6e9482a03 100644 --- a/tests/unit/Http/Request/GetLanguagesCest.php +++ b/tests/unit/Http/Request/GetLanguagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetLanguagesCest /** * Tests Phalcon\Http\Request :: getLanguages() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestGetLanguages(UnitTester $I) diff --git a/tests/unit/Http/Request/GetMethodCest.php b/tests/unit/Http/Request/GetMethodCest.php index cd63f31e931..7b3d7d86f36 100644 --- a/tests/unit/Http/Request/GetMethodCest.php +++ b/tests/unit/Http/Request/GetMethodCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetMethodCest /** * Tests Phalcon\Http\Request :: getMethod() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestGetMethod(UnitTester $I) diff --git a/tests/unit/Http/Request/GetPortCest.php b/tests/unit/Http/Request/GetPortCest.php index 62361f86c05..6ac33a40903 100644 --- a/tests/unit/Http/Request/GetPortCest.php +++ b/tests/unit/Http/Request/GetPortCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetPortCest extends HttpBase /** * Tests Request::getPort * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-06-26 */ public function testHttpRequestPort(UnitTester $I) diff --git a/tests/unit/Http/Request/GetPostCest.php b/tests/unit/Http/Request/GetPostCest.php index dad87d4c499..dc0a91586a9 100644 --- a/tests/unit/Http/Request/GetPostCest.php +++ b/tests/unit/Http/Request/GetPostCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetPostCest //extends HttpBase /** * Tests Phalcon\Http\Request :: getPost() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestGetPost(UnitTester $I) diff --git a/tests/unit/Http/Request/GetPutCest.php b/tests/unit/Http/Request/GetPutCest.php index 7b59ddf9c2e..48bb27cdc38 100644 --- a/tests/unit/Http/Request/GetPutCest.php +++ b/tests/unit/Http/Request/GetPutCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetPutCest /** * Tests Phalcon\Http\Request :: getPut() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestGetPut(UnitTester $I) diff --git a/tests/unit/Http/Request/GetQueryCest.php b/tests/unit/Http/Request/GetQueryCest.php index 56bae413393..824030d177d 100644 --- a/tests/unit/Http/Request/GetQueryCest.php +++ b/tests/unit/Http/Request/GetQueryCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetQueryCest /** * Tests Phalcon\Http\Request :: getQuery() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestGetQuery(UnitTester $I) diff --git a/tests/unit/Http/Request/GetRawBodyCest.php b/tests/unit/Http/Request/GetRawBodyCest.php index 25cef30038c..fad3bba0137 100644 --- a/tests/unit/Http/Request/GetRawBodyCest.php +++ b/tests/unit/Http/Request/GetRawBodyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetRawBodyCest /** * Tests Phalcon\Http\Request :: getRawBody() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestGetRawBody(UnitTester $I) diff --git a/tests/unit/Http/Request/GetSchemeCest.php b/tests/unit/Http/Request/GetSchemeCest.php index c11df8fa9fa..8b5e861a1b6 100644 --- a/tests/unit/Http/Request/GetSchemeCest.php +++ b/tests/unit/Http/Request/GetSchemeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetSchemeCest extends HttpBase /** * Tests getScheme default * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-04 */ public function testHttpRequestGetSchemeDefault(UnitTester $I) @@ -36,7 +36,7 @@ public function testHttpRequestGetSchemeDefault(UnitTester $I) /** * Tests getScheme with HTTPS * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-04 */ public function testHttpRequestGetScheme(UnitTester $I) diff --git a/tests/unit/Http/Request/GetServerAddressCest.php b/tests/unit/Http/Request/GetServerAddressCest.php index b55d76dc922..3c80c6e9860 100644 --- a/tests/unit/Http/Request/GetServerAddressCest.php +++ b/tests/unit/Http/Request/GetServerAddressCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetServerAddressCest extends HttpBase /** * Tests getServerAddress default * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-04 */ public function testHttpRequestGetServerAddressDefault(UnitTester $I) @@ -36,7 +36,7 @@ public function testHttpRequestGetServerAddressDefault(UnitTester $I) /** * Tests getServerAddress * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-04 */ public function testHttpRequestGetServerAddress(UnitTester $I) diff --git a/tests/unit/Http/Request/GetServerCest.php b/tests/unit/Http/Request/GetServerCest.php index 96b83591e87..4753010e11b 100644 --- a/tests/unit/Http/Request/GetServerCest.php +++ b/tests/unit/Http/Request/GetServerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetServerCest /** * Tests Phalcon\Http\Request :: getServer() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestGetServer(UnitTester $I) diff --git a/tests/unit/Http/Request/GetServerNameCest.php b/tests/unit/Http/Request/GetServerNameCest.php index b009f25d965..d845aba8340 100644 --- a/tests/unit/Http/Request/GetServerNameCest.php +++ b/tests/unit/Http/Request/GetServerNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetServerNameCest /** * Tests Phalcon\Http\Request :: getServerName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestGetServerName(UnitTester $I) diff --git a/tests/unit/Http/Request/GetSetDICest.php b/tests/unit/Http/Request/GetSetDICest.php index cf65624fcdb..8ac7c205b32 100644 --- a/tests/unit/Http/Request/GetSetDICest.php +++ b/tests/unit/Http/Request/GetSetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetSetDICest /** * Tests Phalcon\Http\Request :: getDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestGetDI(UnitTester $I) diff --git a/tests/unit/Http/Request/GetURICest.php b/tests/unit/Http/Request/GetURICest.php index b26c70efa14..64606af89be 100644 --- a/tests/unit/Http/Request/GetURICest.php +++ b/tests/unit/Http/Request/GetURICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetURICest /** * Tests Phalcon\Http\Request :: getURI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestGetURI(UnitTester $I) diff --git a/tests/unit/Http/Request/GetUploadedFilesCest.php b/tests/unit/Http/Request/GetUploadedFilesCest.php index 592bd4a7303..53ceac1c79b 100644 --- a/tests/unit/Http/Request/GetUploadedFilesCest.php +++ b/tests/unit/Http/Request/GetUploadedFilesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetUploadedFilesCest /** * Tests Phalcon\Http\Request :: getUploadedFiles() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestGetUploadedFiles(UnitTester $I) diff --git a/tests/unit/Http/Request/GetUserAgentCest.php b/tests/unit/Http/Request/GetUserAgentCest.php index 7e6bd48d8b1..d7e4098b0dd 100644 --- a/tests/unit/Http/Request/GetUserAgentCest.php +++ b/tests/unit/Http/Request/GetUserAgentCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetUserAgentCest /** * Tests Phalcon\Http\Request :: getUserAgent() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestGetUserAgent(UnitTester $I) diff --git a/tests/unit/Http/Request/HasCest.php b/tests/unit/Http/Request/HasCest.php index f2ce2df69e7..87f2f2250df 100644 --- a/tests/unit/Http/Request/HasCest.php +++ b/tests/unit/Http/Request/HasCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class HasCest /** * Tests Phalcon\Http\Request :: has() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestHas(UnitTester $I) diff --git a/tests/unit/Http/Request/HasFilesCest.php b/tests/unit/Http/Request/HasFilesCest.php index 271c858f7d5..9b5548e67be 100644 --- a/tests/unit/Http/Request/HasFilesCest.php +++ b/tests/unit/Http/Request/HasFilesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class HasFilesCest extends HttpBase /** * Tests Request::hasFiles * - * @author Serghei Iakovelv + * @author Serghei Iakovelv * @since 2016-01-31 * * @dataProvider filesProvider diff --git a/tests/unit/Http/Request/HasHeaderCest.php b/tests/unit/Http/Request/HasHeaderCest.php index 8d159ae3afc..f2f8fe7297b 100644 --- a/tests/unit/Http/Request/HasHeaderCest.php +++ b/tests/unit/Http/Request/HasHeaderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Http/Request/HasPostCest.php b/tests/unit/Http/Request/HasPostCest.php index be6f9fc3298..10555662f71 100644 --- a/tests/unit/Http/Request/HasPostCest.php +++ b/tests/unit/Http/Request/HasPostCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class HasPostCest /** * Tests Phalcon\Http\Request :: hasPost() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestHasPost(UnitTester $I) diff --git a/tests/unit/Http/Request/HasPutCest.php b/tests/unit/Http/Request/HasPutCest.php index 1059e356ca2..debf0b8959f 100644 --- a/tests/unit/Http/Request/HasPutCest.php +++ b/tests/unit/Http/Request/HasPutCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class HasPutCest /** * Tests Phalcon\Http\Request :: hasPut() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestHasPut(UnitTester $I) diff --git a/tests/unit/Http/Request/HasQueryCest.php b/tests/unit/Http/Request/HasQueryCest.php index 02876c5368d..974c549e0f6 100644 --- a/tests/unit/Http/Request/HasQueryCest.php +++ b/tests/unit/Http/Request/HasQueryCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class HasQueryCest /** * Tests Phalcon\Http\Request :: hasQuery() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestHasQuery(UnitTester $I) diff --git a/tests/unit/Http/Request/HasServerCest.php b/tests/unit/Http/Request/HasServerCest.php index 59ff30f03e0..669d9a32662 100644 --- a/tests/unit/Http/Request/HasServerCest.php +++ b/tests/unit/Http/Request/HasServerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class HasServerCest /** * Tests Phalcon\Http\Request :: hasServer() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestHasServer(UnitTester $I) diff --git a/tests/unit/Http/Request/IsAjaxCest.php b/tests/unit/Http/Request/IsAjaxCest.php index 81f1f48dd5b..4d2bd0c4221 100644 --- a/tests/unit/Http/Request/IsAjaxCest.php +++ b/tests/unit/Http/Request/IsAjaxCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class IsAjaxCest extends HttpBase /** * Tests isAjax default * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-04 */ public function testHttpRequestIsAjaxDefault(UnitTester $I) @@ -35,7 +35,7 @@ public function testHttpRequestIsAjaxDefault(UnitTester $I) /** * Tests isAjax * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-04 */ public function testHttpRequestIsAjax(UnitTester $I) diff --git a/tests/unit/Http/Request/IsConnectCest.php b/tests/unit/Http/Request/IsConnectCest.php index 57d9805b0fc..f6bf3476f3f 100644 --- a/tests/unit/Http/Request/IsConnectCest.php +++ b/tests/unit/Http/Request/IsConnectCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class IsConnectCest /** * Tests Phalcon\Http\Request :: isConnect() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestIsConnect(UnitTester $I) diff --git a/tests/unit/Http/Request/IsDeleteCest.php b/tests/unit/Http/Request/IsDeleteCest.php index 6a7084799bb..778ecb295ad 100644 --- a/tests/unit/Http/Request/IsDeleteCest.php +++ b/tests/unit/Http/Request/IsDeleteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class IsDeleteCest /** * Tests Phalcon\Http\Request :: isDelete() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestIsDelete(UnitTester $I) diff --git a/tests/unit/Http/Request/IsGetCest.php b/tests/unit/Http/Request/IsGetCest.php index d3b95ca4345..ff7c7f94511 100644 --- a/tests/unit/Http/Request/IsGetCest.php +++ b/tests/unit/Http/Request/IsGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class IsGetCest /** * Tests Phalcon\Http\Request :: isGet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestIsGet(UnitTester $I) diff --git a/tests/unit/Http/Request/IsHeadCest.php b/tests/unit/Http/Request/IsHeadCest.php index 3fe37299d05..6f017395030 100644 --- a/tests/unit/Http/Request/IsHeadCest.php +++ b/tests/unit/Http/Request/IsHeadCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class IsHeadCest /** * Tests Phalcon\Http\Request :: isHead() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestIsHead(UnitTester $I) diff --git a/tests/unit/Http/Request/IsMethodCest.php b/tests/unit/Http/Request/IsMethodCest.php index 33423edac67..ab86cef901f 100644 --- a/tests/unit/Http/Request/IsMethodCest.php +++ b/tests/unit/Http/Request/IsMethodCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class IsMethodCest /** * Tests Phalcon\Http\Request :: isMethod() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestIsMethod(UnitTester $I) diff --git a/tests/unit/Http/Request/IsOptionsCest.php b/tests/unit/Http/Request/IsOptionsCest.php index ede863cf828..51cfbda6f2a 100644 --- a/tests/unit/Http/Request/IsOptionsCest.php +++ b/tests/unit/Http/Request/IsOptionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class IsOptionsCest /** * Tests Phalcon\Http\Request :: isOptions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestIsOptions(UnitTester $I) diff --git a/tests/unit/Http/Request/IsPatchCest.php b/tests/unit/Http/Request/IsPatchCest.php index 3ed2555f04a..d4b492e9506 100644 --- a/tests/unit/Http/Request/IsPatchCest.php +++ b/tests/unit/Http/Request/IsPatchCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class IsPatchCest /** * Tests Phalcon\Http\Request :: isPatch() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestIsPatch(UnitTester $I) diff --git a/tests/unit/Http/Request/IsPostCest.php b/tests/unit/Http/Request/IsPostCest.php index 5a4c07aefea..e76c4222230 100644 --- a/tests/unit/Http/Request/IsPostCest.php +++ b/tests/unit/Http/Request/IsPostCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class IsPostCest /** * Tests Phalcon\Http\Request :: isPost() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestIsPost(UnitTester $I) diff --git a/tests/unit/Http/Request/IsPurgeCest.php b/tests/unit/Http/Request/IsPurgeCest.php index 85212d7920b..db78aa7cd66 100644 --- a/tests/unit/Http/Request/IsPurgeCest.php +++ b/tests/unit/Http/Request/IsPurgeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class IsPurgeCest /** * Tests Phalcon\Http\Request :: isPurge() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestIsPurge(UnitTester $I) diff --git a/tests/unit/Http/Request/IsPutCest.php b/tests/unit/Http/Request/IsPutCest.php index 0f6f3c6d0dd..8510b9ddb65 100644 --- a/tests/unit/Http/Request/IsPutCest.php +++ b/tests/unit/Http/Request/IsPutCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class IsPutCest /** * Tests Phalcon\Http\Request :: isPut() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestIsPut(UnitTester $I) diff --git a/tests/unit/Http/Request/IsSecureCest.php b/tests/unit/Http/Request/IsSecureCest.php index 1c3db258244..1563040f322 100644 --- a/tests/unit/Http/Request/IsSecureCest.php +++ b/tests/unit/Http/Request/IsSecureCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class IsSecureCest extends HttpBase /** * Tests isSecure default * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-04 */ public function testHttpRequestIsSecureDefault(UnitTester $I) @@ -35,7 +35,7 @@ public function testHttpRequestIsSecureDefault(UnitTester $I) /** * Tests isSecure * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-04 */ public function testHttpRequestIsSecure(UnitTester $I) diff --git a/tests/unit/Http/Request/IsSoapCest.php b/tests/unit/Http/Request/IsSoapCest.php index 21c4594da29..7ba6d3e5782 100644 --- a/tests/unit/Http/Request/IsSoapCest.php +++ b/tests/unit/Http/Request/IsSoapCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class IsSoapCest extends HttpBase /** * Tests isSoap default * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-23 */ public function testHttpRequestIsSoapDefault(UnitTester $I) @@ -35,7 +35,7 @@ public function testHttpRequestIsSoapDefault(UnitTester $I) /** * Tests isSoap * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-04 */ public function testHttpRequestIsSoap(UnitTester $I) diff --git a/tests/unit/Http/Request/IsStrictHostCheckCest.php b/tests/unit/Http/Request/IsStrictHostCheckCest.php index 700daa924e1..c5518903120 100644 --- a/tests/unit/Http/Request/IsStrictHostCheckCest.php +++ b/tests/unit/Http/Request/IsStrictHostCheckCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class IsStrictHostCheckCest extends HttpBase /** * Tests strict host check * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-06-26 */ public function testHttpStrictHostCheck(UnitTester $I) diff --git a/tests/unit/Http/Request/IsTraceCest.php b/tests/unit/Http/Request/IsTraceCest.php index db3baff3b81..ddc32b3109a 100644 --- a/tests/unit/Http/Request/IsTraceCest.php +++ b/tests/unit/Http/Request/IsTraceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class IsTraceCest /** * Tests Phalcon\Http\Request :: isTrace() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestIsTrace(UnitTester $I) diff --git a/tests/unit/Http/Request/IsValidHttpMethodCest.php b/tests/unit/Http/Request/IsValidHttpMethodCest.php index 7be7209773f..ebf14b149e4 100644 --- a/tests/unit/Http/Request/IsValidHttpMethodCest.php +++ b/tests/unit/Http/Request/IsValidHttpMethodCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class IsValidHttpMethodCest /** * Tests Phalcon\Http\Request :: isValidHttpMethod() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestIsValidHttpMethod(UnitTester $I) diff --git a/tests/unit/Http/Request/RequestCest.php b/tests/unit/Http/Request/RequestCest.php index aebc1984af9..789b486d28a 100644 --- a/tests/unit/Http/Request/RequestCest.php +++ b/tests/unit/Http/Request/RequestCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class RequestCest extends HttpBase /** * Tests the getDI * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-23 */ public function testHttpRequestGetDI(UnitTester $I) @@ -53,7 +53,7 @@ public function testHttpRequestInstanceOf(UnitTester $I) /** * Tests POST functions * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-04 */ public function testHttpRequestInputPost(UnitTester $I) @@ -74,7 +74,7 @@ public function testHttpRequestInputPost(UnitTester $I) * * @test * @issue https://github.com/phalcon/cphalcon/issues/13418 - * @author Phalcon Team + * @author Phalcon Team * @since 2017-06-03 */ public function shouldGetDataReceivedByPutMethod(UnitTester $I) @@ -112,7 +112,7 @@ public function shouldGetDataReceivedByPutMethod(UnitTester $I) * * @test * @issue https://github.com/phalcon/cphalcon/issues/13418 - * @author Phalcon Team + * @author Phalcon Team * @since 2017-06-03 */ public function shouldGetDataReceivedByPutMethodAndJsonType(UnitTester $I) @@ -153,7 +153,7 @@ public function shouldGetDataReceivedByPutMethodAndJsonType(UnitTester $I) /** * Tests GET functions * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-04 */ public function testHttpRequestInputGet(UnitTester $I) @@ -172,7 +172,7 @@ public function testHttpRequestInputGet(UnitTester $I) /** * Tests REQUEST functions * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-04 */ public function testHttpRequestInputRequest(UnitTester $I) @@ -341,7 +341,7 @@ public function testHttpRequestMethod(UnitTester $I) * * @test * @issue https://github.com/phalcon/cphalcon/issues/12478 - * @author Serghei Iakovelv + * @author Serghei Iakovelv * @since 2016-12-18 * * @dataProvider overridenMethodProvider @@ -641,7 +641,7 @@ public function testRequestGetQuery(UnitTester $I) /** * Tests uploaded files * - * @author Serghei Iakovelv + * @author Serghei Iakovelv * @since 2016-01-31 */ public function testGetUploadedFiles(UnitTester $I) diff --git a/tests/unit/Http/Request/SetHttpMethodParameterOverrideCest.php b/tests/unit/Http/Request/SetHttpMethodParameterOverrideCest.php index 07940e01e33..0befea9f05f 100644 --- a/tests/unit/Http/Request/SetHttpMethodParameterOverrideCest.php +++ b/tests/unit/Http/Request/SetHttpMethodParameterOverrideCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetHttpMethodParameterOverrideCest /** * Tests Phalcon\Http\Request :: setHttpMethodParameterOverride() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestSetHttpMethodParameterOverride(UnitTester $I) diff --git a/tests/unit/Http/Request/SetParameterFiltersCest.php b/tests/unit/Http/Request/SetParameterFiltersCest.php index b2ba67783fb..24057094c69 100644 --- a/tests/unit/Http/Request/SetParameterFiltersCest.php +++ b/tests/unit/Http/Request/SetParameterFiltersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetParameterFiltersCest /** * Unit Tests Phalcon\Http\Request :: setParameterFilters() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function httpRequestSetParameterFilters(UnitTester $I) diff --git a/tests/unit/Http/Request/SetStrictHostCheckCest.php b/tests/unit/Http/Request/SetStrictHostCheckCest.php index 9f444cf4c3f..16014852a82 100644 --- a/tests/unit/Http/Request/SetStrictHostCheckCest.php +++ b/tests/unit/Http/Request/SetStrictHostCheckCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetStrictHostCheckCest /** * Tests Phalcon\Http\Request :: setStrictHostCheck() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpRequestSetStrictHostCheck(UnitTester $I) diff --git a/tests/unit/Http/Response/AppendContentCest.php b/tests/unit/Http/Response/AppendContentCest.php index 5ffa0f525ce..5d9378acb07 100644 --- a/tests/unit/Http/Response/AppendContentCest.php +++ b/tests/unit/Http/Response/AppendContentCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class AppendContentCest extends HttpBase /** * Tests appendContent * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-08 */ public function testHttpResponseAppendContent(UnitTester $I) diff --git a/tests/unit/Http/Response/ConstructCest.php b/tests/unit/Http/Response/ConstructCest.php index ce1b040cfa1..be272aea2c8 100644 --- a/tests/unit/Http/Response/ConstructCest.php +++ b/tests/unit/Http/Response/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ConstructCest /** * Tests Phalcon\Http\Response :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpResponseConstruct(UnitTester $I) diff --git a/tests/unit/Http/Response/Cookies/ConstructCest.php b/tests/unit/Http/Response/Cookies/ConstructCest.php index 664c173f6d6..b513e2a702c 100644 --- a/tests/unit/Http/Response/Cookies/ConstructCest.php +++ b/tests/unit/Http/Response/Cookies/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ConstructCest /** * Tests Phalcon\Http\Response\Cookies :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpResponseCookiesConstruct(UnitTester $I) diff --git a/tests/unit/Http/Response/Cookies/DeleteCest.php b/tests/unit/Http/Response/Cookies/DeleteCest.php index 00d565327bf..1a30fc0cbbc 100644 --- a/tests/unit/Http/Response/Cookies/DeleteCest.php +++ b/tests/unit/Http/Response/Cookies/DeleteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class DeleteCest /** * Tests Phalcon\Http\Response\Cookies :: delete() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpResponseCookiesDelete(UnitTester $I) diff --git a/tests/unit/Http/Response/Cookies/GetCest.php b/tests/unit/Http/Response/Cookies/GetCest.php index 24b763121bc..9c55522e79f 100644 --- a/tests/unit/Http/Response/Cookies/GetCest.php +++ b/tests/unit/Http/Response/Cookies/GetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetCest /** * Tests Phalcon\Http\Response\Cookies :: get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpResponseCookiesGet(UnitTester $I) diff --git a/tests/unit/Http/Response/Cookies/GetCookiesCest.php b/tests/unit/Http/Response/Cookies/GetCookiesCest.php index 50d98812cf1..a1a7f00dfb9 100644 --- a/tests/unit/Http/Response/Cookies/GetCookiesCest.php +++ b/tests/unit/Http/Response/Cookies/GetCookiesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetCookiesCest /** * Tests Phalcon\Http\Response\Cookies :: getCookies() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpResponseCookiesGetCookies(UnitTester $I) diff --git a/tests/unit/Http/Response/Cookies/GetDICest.php b/tests/unit/Http/Response/Cookies/GetDICest.php index 42ee3ae0be0..8922d488d5d 100644 --- a/tests/unit/Http/Response/Cookies/GetDICest.php +++ b/tests/unit/Http/Response/Cookies/GetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetDICest /** * Tests Phalcon\Http\Response\Cookies :: getDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpResponseCookiesGetDI(UnitTester $I) diff --git a/tests/unit/Http/Response/Cookies/HasCest.php b/tests/unit/Http/Response/Cookies/HasCest.php index 888d834737e..388ff559077 100644 --- a/tests/unit/Http/Response/Cookies/HasCest.php +++ b/tests/unit/Http/Response/Cookies/HasCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class HasCest /** * Tests Phalcon\Http\Response\Cookies :: has() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpResponseCookiesHas(UnitTester $I) diff --git a/tests/unit/Http/Response/Cookies/IsUsingEncryptionCest.php b/tests/unit/Http/Response/Cookies/IsUsingEncryptionCest.php index 1ef9375a171..476e84b672a 100644 --- a/tests/unit/Http/Response/Cookies/IsUsingEncryptionCest.php +++ b/tests/unit/Http/Response/Cookies/IsUsingEncryptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class IsUsingEncryptionCest /** * Tests Phalcon\Http\Response\Cookies :: isUsingEncryption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpResponseCookiesIsUsingEncryption(UnitTester $I) diff --git a/tests/unit/Http/Response/Cookies/ResetCest.php b/tests/unit/Http/Response/Cookies/ResetCest.php index 8eec4ab0160..63db4b0add6 100644 --- a/tests/unit/Http/Response/Cookies/ResetCest.php +++ b/tests/unit/Http/Response/Cookies/ResetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ResetCest /** * Tests Phalcon\Http\Response\Cookies :: reset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpResponseCookiesReset(UnitTester $I) diff --git a/tests/unit/Http/Response/Cookies/SendCest.php b/tests/unit/Http/Response/Cookies/SendCest.php index 224a26f6281..88e0fe20a98 100644 --- a/tests/unit/Http/Response/Cookies/SendCest.php +++ b/tests/unit/Http/Response/Cookies/SendCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SendCest /** * Tests Phalcon\Http\Response\Cookies :: send() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpResponseCookiesSend(UnitTester $I) diff --git a/tests/unit/Http/Response/Cookies/SetCest.php b/tests/unit/Http/Response/Cookies/SetCest.php index 337a68c65af..a53fe2ba2f4 100644 --- a/tests/unit/Http/Response/Cookies/SetCest.php +++ b/tests/unit/Http/Response/Cookies/SetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -33,7 +33,7 @@ public function _before(UnitTester $I) /** * Tests Phalcon\Http\Response\Cookies :: set() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpResponseCookiesSet(UnitTester $I) diff --git a/tests/unit/Http/Response/Cookies/SetDICest.php b/tests/unit/Http/Response/Cookies/SetDICest.php index f2a728e09cd..bc90a7f4f70 100644 --- a/tests/unit/Http/Response/Cookies/SetDICest.php +++ b/tests/unit/Http/Response/Cookies/SetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetDICest /** * Tests Phalcon\Http\Response\Cookies :: setDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpResponseCookiesSetDI(UnitTester $I) diff --git a/tests/unit/Http/Response/Cookies/SetSignKeyCest.php b/tests/unit/Http/Response/Cookies/SetSignKeyCest.php index 1e157ab7ee5..89c2aee910a 100644 --- a/tests/unit/Http/Response/Cookies/SetSignKeyCest.php +++ b/tests/unit/Http/Response/Cookies/SetSignKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetSignKeyCest /** * Tests Phalcon\Http\Response\Cookies :: setSignKey() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpResponseCookiesSetSignKey(UnitTester $I) diff --git a/tests/unit/Http/Response/Cookies/UseEncryptionCest.php b/tests/unit/Http/Response/Cookies/UseEncryptionCest.php index 0db1d538bc8..830c22c8193 100644 --- a/tests/unit/Http/Response/Cookies/UseEncryptionCest.php +++ b/tests/unit/Http/Response/Cookies/UseEncryptionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class UseEncryptionCest /** * Tests Phalcon\Http\Response\Cookies :: useEncryption() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpResponseCookiesUseEncryption(UnitTester $I) diff --git a/tests/unit/Http/Response/CookiesCest.php b/tests/unit/Http/Response/CookiesCest.php index 75c0441803a..77f6b34cc0f 100644 --- a/tests/unit/Http/Response/CookiesCest.php +++ b/tests/unit/Http/Response/CookiesCest.php @@ -17,15 +17,15 @@ * Tests the Phalcon\Http\Response\Cookies component * * @copyright (c) 2011-2017 Phalcon Team - * @link https://phalconphp.com - * @author Andres Gutierrez - * @author Phalcon Team + * @link https://phalcon.io + * @author Andres Gutierrez + * @author Phalcon Team * * The contents of this file are subject to the New BSD License that is * bundled with this package in the file 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 + * through the world-wide-web, please send an email to license@phalcon.io * so that we can send you a copy immediately. */ class CookiesCest extends HttpBase @@ -35,7 +35,7 @@ class CookiesCest extends HttpBase * * @test * @issue https://github.com/phalcon/cphalcon/issues/12978 - * @author Phalcon Team + * @author Phalcon Team * @since 2017-09-02 */ public function shouldWorkWithoutInitializeInternalCookiesProperty(UnitTester $I) diff --git a/tests/unit/Http/Response/GetContentCest.php b/tests/unit/Http/Response/GetContentCest.php index b5b17f23677..4865faa7216 100644 --- a/tests/unit/Http/Response/GetContentCest.php +++ b/tests/unit/Http/Response/GetContentCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetContentCest /** * Tests Phalcon\Http\Response :: getContent() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpResponseGetContent(UnitTester $I) diff --git a/tests/unit/Http/Response/GetCookiesCest.php b/tests/unit/Http/Response/GetCookiesCest.php index 19e2e75d0ff..7319062c452 100644 --- a/tests/unit/Http/Response/GetCookiesCest.php +++ b/tests/unit/Http/Response/GetCookiesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetCookiesCest /** * Tests Phalcon\Http\Response :: getCookies() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpResponseGetCookies(UnitTester $I) diff --git a/tests/unit/Http/Response/GetDICest.php b/tests/unit/Http/Response/GetDICest.php index 99bc16cb14a..ee1859f2f7f 100644 --- a/tests/unit/Http/Response/GetDICest.php +++ b/tests/unit/Http/Response/GetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetDICest /** * Tests Phalcon\Http\Response :: getDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpResponseGetDI(UnitTester $I) diff --git a/tests/unit/Http/Response/GetEventsManagerCest.php b/tests/unit/Http/Response/GetEventsManagerCest.php index ad1aa5e8d56..80a98b5cd46 100644 --- a/tests/unit/Http/Response/GetEventsManagerCest.php +++ b/tests/unit/Http/Response/GetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetEventsManagerCest /** * Tests Phalcon\Http\Response :: getEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpResponseGetEventsManager(UnitTester $I) diff --git a/tests/unit/Http/Response/GetHeadersCest.php b/tests/unit/Http/Response/GetHeadersCest.php index d5347f5cc2d..dce285073a5 100644 --- a/tests/unit/Http/Response/GetHeadersCest.php +++ b/tests/unit/Http/Response/GetHeadersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetHeadersCest /** * Tests Phalcon\Http\Response :: getHeaders() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpResponseGetHeaders(UnitTester $I) diff --git a/tests/unit/Http/Response/GetReasonPhraseCest.php b/tests/unit/Http/Response/GetReasonPhraseCest.php index 114ed906c8e..83ce04dabb1 100644 --- a/tests/unit/Http/Response/GetReasonPhraseCest.php +++ b/tests/unit/Http/Response/GetReasonPhraseCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetReasonPhraseCest /** * Tests Phalcon\Http\Response :: getReasonPhrase() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpResponseGetReasonPhrase(UnitTester $I) diff --git a/tests/unit/Http/Response/GetStatusCodeCest.php b/tests/unit/Http/Response/GetStatusCodeCest.php index eae1c560f21..9e4bd7f06e0 100644 --- a/tests/unit/Http/Response/GetStatusCodeCest.php +++ b/tests/unit/Http/Response/GetStatusCodeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetStatusCodeCest /** * Tests Phalcon\Http\Response :: getStatusCode() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpResponseGetStatusCode(UnitTester $I) diff --git a/tests/unit/Http/Response/HasHeaderCest.php b/tests/unit/Http/Response/HasHeaderCest.php index a353f1ef155..ae9ccf7bd3d 100644 --- a/tests/unit/Http/Response/HasHeaderCest.php +++ b/tests/unit/Http/Response/HasHeaderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class HasHeaderCest extends HttpBase /** * Tests the hasHeader * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-08 */ public function testHttpResponseHasHeader(UnitTester $I) diff --git a/tests/unit/Http/Response/Headers/GetCest.php b/tests/unit/Http/Response/Headers/GetCest.php index 3bed649c834..7670108f003 100644 --- a/tests/unit/Http/Response/Headers/GetCest.php +++ b/tests/unit/Http/Response/Headers/GetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetCest /** * Tests Phalcon\Http\Response\Headers :: get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-08 */ public function httpResponseHeadersGet(UnitTester $I) diff --git a/tests/unit/Http/Response/Headers/HasCest.php b/tests/unit/Http/Response/Headers/HasCest.php index c8e0a5c5a9d..e9a480d9aa7 100644 --- a/tests/unit/Http/Response/Headers/HasCest.php +++ b/tests/unit/Http/Response/Headers/HasCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class HasCest /** * Tests Phalcon\Http\Response\Headers :: has() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-08 */ public function httpResponseHeadersHas(UnitTester $I) diff --git a/tests/unit/Http/Response/Headers/RemoveCest.php b/tests/unit/Http/Response/Headers/RemoveCest.php index b8d039191e0..9c9362ef2e7 100644 --- a/tests/unit/Http/Response/Headers/RemoveCest.php +++ b/tests/unit/Http/Response/Headers/RemoveCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class RemoveCest /** * Tests Phalcon\Http\Response\Headers :: remove() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-08 */ public function httpResponseHeadersRemove(UnitTester $I) diff --git a/tests/unit/Http/Response/Headers/ResetCest.php b/tests/unit/Http/Response/Headers/ResetCest.php index 0eb20da251f..822adb0f0db 100644 --- a/tests/unit/Http/Response/Headers/ResetCest.php +++ b/tests/unit/Http/Response/Headers/ResetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ResetCest /** * Tests Phalcon\Http\Response\Headers :: reset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-08 */ public function httpResponseHeadersReset(UnitTester $I) diff --git a/tests/unit/Http/Response/Headers/SendCest.php b/tests/unit/Http/Response/Headers/SendCest.php index fc996bfa5ad..a967ad0b9d9 100644 --- a/tests/unit/Http/Response/Headers/SendCest.php +++ b/tests/unit/Http/Response/Headers/SendCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SendCest /** * Tests Phalcon\Http\Response\Headers :: send() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-08 */ public function httpResponseHeadersSend(UnitTester $I) diff --git a/tests/unit/Http/Response/Headers/SetCest.php b/tests/unit/Http/Response/Headers/SetCest.php index c9fbea969f2..e5bbede8619 100644 --- a/tests/unit/Http/Response/Headers/SetCest.php +++ b/tests/unit/Http/Response/Headers/SetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetCest /** * Tests Phalcon\Http\Response\Headers :: set() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-08 */ public function httpResponseHeadersSet(UnitTester $I) diff --git a/tests/unit/Http/Response/Headers/SetRawCest.php b/tests/unit/Http/Response/Headers/SetRawCest.php index 1f880509214..990186e1f46 100644 --- a/tests/unit/Http/Response/Headers/SetRawCest.php +++ b/tests/unit/Http/Response/Headers/SetRawCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetRawCest /** * Tests Phalcon\Http\Response\Headers :: setRaw() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-08 */ public function httpResponseHeadersSetRaw(UnitTester $I) diff --git a/tests/unit/Http/Response/Headers/ToArrayCest.php b/tests/unit/Http/Response/Headers/ToArrayCest.php index 37ce4aaecb1..506057e3ae0 100644 --- a/tests/unit/Http/Response/Headers/ToArrayCest.php +++ b/tests/unit/Http/Response/Headers/ToArrayCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ToArrayCest /** * Tests Phalcon\Http\Response\Headers :: toArray() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-08 */ public function httpResponseHeadersToArray(UnitTester $I) diff --git a/tests/unit/Http/Response/HeadersCest.php b/tests/unit/Http/Response/HeadersCest.php index fa7cb6292cd..e539a73b122 100644 --- a/tests/unit/Http/Response/HeadersCest.php +++ b/tests/unit/Http/Response/HeadersCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class HeadersCest extends HttpBase /** * Tests the instance of the object * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-05 */ public function testHttpResponseHeadersInstanceOf(UnitTester $I) @@ -38,7 +38,7 @@ public function testHttpResponseHeadersInstanceOf(UnitTester $I) /** * Tests the get and set of the response headers * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-05 */ public function testHttpResponseHeadersGetSet(UnitTester $I) @@ -56,7 +56,7 @@ public function testHttpResponseHeadersGetSet(UnitTester $I) /** * Tests the has of the response headers * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-02 */ public function testHttpResponseHeadersHas(UnitTester $I) @@ -78,7 +78,7 @@ public function testHttpResponseHeadersHas(UnitTester $I) * Tests the set of the response status headers * * @issue https://github.com/phalcon/cphalcon/issues/12895 - * @author Phalcon Team + * @author Phalcon Team * @since 2017-06-17 * * @dataProvider statusHeaderProvider @@ -115,7 +115,7 @@ public function shouldSetResponseStatusHeader(UnitTester $I, Example $example) * Tests the get of the response status headers * * @issue https://github.com/phalcon/cphalcon/issues/12895 - * @author Phalcon Team + * @author Phalcon Team * @since 2017-06-17 * * @dataProvider statusHeaderProvider @@ -141,7 +141,7 @@ public function shouldGetResponseStatusHeader(UnitTester $I, Example $example) /** * Tests resetting the response headers * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-05 */ public function testHttpResponseHeadersReset(UnitTester $I) @@ -160,7 +160,7 @@ public function testHttpResponseHeadersReset(UnitTester $I) /** * Tests removing a response header * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-05 */ public function testHttpResponseHeadersRemove(UnitTester $I) @@ -179,7 +179,7 @@ public function testHttpResponseHeadersRemove(UnitTester $I) /** * Tests setting a raw response header * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-05 */ public function testHttpResponseHeadersRaw(UnitTester $I) @@ -196,7 +196,7 @@ public function testHttpResponseHeadersRaw(UnitTester $I) /** * Tests toArray in response headers * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-05 */ public function testHttpResponseHeadersToArray(UnitTester $I) diff --git a/tests/unit/Http/Response/IsSentCest.php b/tests/unit/Http/Response/IsSentCest.php index 3004f21861a..b87ad08242a 100644 --- a/tests/unit/Http/Response/IsSentCest.php +++ b/tests/unit/Http/Response/IsSentCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class IsSentCest /** * Tests Phalcon\Http\Response :: isSent() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpResponseIsSent(UnitTester $I) diff --git a/tests/unit/Http/Response/RedirectCest.php b/tests/unit/Http/Response/RedirectCest.php index 82ce7c2c555..943c15eba50 100644 --- a/tests/unit/Http/Response/RedirectCest.php +++ b/tests/unit/Http/Response/RedirectCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class RedirectCest extends HttpBase /** * Tests redirect locally * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-08 */ public function testHttpResponseRedirectLocalUrl(UnitTester $I) @@ -40,7 +40,7 @@ public function testHttpResponseRedirectLocalUrl(UnitTester $I) /** * Tests redirect remotely 302 * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-08 */ public function testHttpResponseRedirectRemoteUrl302(UnitTester $I) @@ -61,7 +61,7 @@ public function testHttpResponseRedirectRemoteUrl302(UnitTester $I) * Tests redirect local with non standard code * * @issue https://github.com/phalcon/cphalcon/issues/11324 - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-19 */ public function testHttpResponseRedirectLocalUrlWithNonStandardCode(UnitTester $I) @@ -82,7 +82,7 @@ public function testHttpResponseRedirectLocalUrlWithNonStandardCode(UnitTester $ * Tests redirect remotely 301 * * @issue https://github.com/phalcon/cphalcon/issues/1182 - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-08 */ public function testHttpResponseRedirectRemoteUrl301(UnitTester $I) diff --git a/tests/unit/Http/Response/RemoveHeaderCest.php b/tests/unit/Http/Response/RemoveHeaderCest.php index 5ff5b304214..46a6698b75f 100644 --- a/tests/unit/Http/Response/RemoveHeaderCest.php +++ b/tests/unit/Http/Response/RemoveHeaderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Http/Response/ResetHeadersCest.php b/tests/unit/Http/Response/ResetHeadersCest.php index 39c945f5436..8631e8fca95 100644 --- a/tests/unit/Http/Response/ResetHeadersCest.php +++ b/tests/unit/Http/Response/ResetHeadersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ResetHeadersCest /** * Tests Phalcon\Http\Response :: resetHeaders() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpResponseResetHeaders(UnitTester $I) diff --git a/tests/unit/Http/Response/ResponseCest.php b/tests/unit/Http/Response/ResponseCest.php index 4c7c6366c02..fbba86d0e8d 100644 --- a/tests/unit/Http/Response/ResponseCest.php +++ b/tests/unit/Http/Response/ResponseCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ResponseCest extends HttpBase /** * Tests the instance of the object * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-05 */ public function testHttpResponseInstanceOf(UnitTester $I) diff --git a/tests/unit/Http/Response/SendCest.php b/tests/unit/Http/Response/SendCest.php index 87d5c6f33a3..f6fa7b73678 100644 --- a/tests/unit/Http/Response/SendCest.php +++ b/tests/unit/Http/Response/SendCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SendCest /** * Tests Phalcon\Http\Response :: send() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpResponseSend(UnitTester $I) diff --git a/tests/unit/Http/Response/SendCookiesCest.php b/tests/unit/Http/Response/SendCookiesCest.php index 70fae5e07fe..9065e42de97 100644 --- a/tests/unit/Http/Response/SendCookiesCest.php +++ b/tests/unit/Http/Response/SendCookiesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SendCookiesCest /** * Tests Phalcon\Http\Response :: sendCookies() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpResponseSendCookies(UnitTester $I) diff --git a/tests/unit/Http/Response/SendHeadersCest.php b/tests/unit/Http/Response/SendHeadersCest.php index 707ad1ecf56..a74228aa580 100644 --- a/tests/unit/Http/Response/SendHeadersCest.php +++ b/tests/unit/Http/Response/SendHeadersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SendHeadersCest /** * Tests Phalcon\Http\Response :: sendHeaders() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpResponseSendHeaders(UnitTester $I) diff --git a/tests/unit/Http/Response/SetCacheCest.php b/tests/unit/Http/Response/SetCacheCest.php index 21671a7de33..87f4cd86265 100644 --- a/tests/unit/Http/Response/SetCacheCest.php +++ b/tests/unit/Http/Response/SetCacheCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Http/Response/SetContentCest.php b/tests/unit/Http/Response/SetContentCest.php index 1a0cb5ef2aa..2a44b1547bf 100644 --- a/tests/unit/Http/Response/SetContentCest.php +++ b/tests/unit/Http/Response/SetContentCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetContentCest extends HttpBase /** * Tests setContent * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-08 */ public function testHttpResponseSetContent(UnitTester $I) diff --git a/tests/unit/Http/Response/SetContentLengthCest.php b/tests/unit/Http/Response/SetContentLengthCest.php index c2b2fb811a8..c8847053c81 100644 --- a/tests/unit/Http/Response/SetContentLengthCest.php +++ b/tests/unit/Http/Response/SetContentLengthCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Http/Response/SetContentTypeCest.php b/tests/unit/Http/Response/SetContentTypeCest.php index 6b11097e3bc..077dc1fb9fd 100644 --- a/tests/unit/Http/Response/SetContentTypeCest.php +++ b/tests/unit/Http/Response/SetContentTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetContentTypeCest extends HttpBase /** * Tests the setContentType * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-08 */ public function testHttpResponseSetContentType(UnitTester $I) @@ -41,7 +41,7 @@ public function testHttpResponseSetContentType(UnitTester $I) /** * Tests the setContentType with charset * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-08 */ public function testHttpResponseSetContentTypeWithCharset(UnitTester $I) diff --git a/tests/unit/Http/Response/SetCookiesCest.php b/tests/unit/Http/Response/SetCookiesCest.php index 3f5d330eaa1..bb8d503a66b 100644 --- a/tests/unit/Http/Response/SetCookiesCest.php +++ b/tests/unit/Http/Response/SetCookiesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetCookiesCest /** * Tests Phalcon\Http\Response :: setCookies() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpResponseSetCookies(UnitTester $I) diff --git a/tests/unit/Http/Response/SetDICest.php b/tests/unit/Http/Response/SetDICest.php index 2f88f3edd3c..98341549bbe 100644 --- a/tests/unit/Http/Response/SetDICest.php +++ b/tests/unit/Http/Response/SetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetDICest /** * Tests Phalcon\Http\Response :: setDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpResponseSetDI(UnitTester $I) diff --git a/tests/unit/Http/Response/SetEtagCest.php b/tests/unit/Http/Response/SetEtagCest.php index 9c3afb1225e..14ff3132a88 100644 --- a/tests/unit/Http/Response/SetEtagCest.php +++ b/tests/unit/Http/Response/SetEtagCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Http/Response/SetEventsManagerCest.php b/tests/unit/Http/Response/SetEventsManagerCest.php index e44d97fe98c..e36a5a692e1 100644 --- a/tests/unit/Http/Response/SetEventsManagerCest.php +++ b/tests/unit/Http/Response/SetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetEventsManagerCest /** * Unit Tests Phalcon\Http\Response :: setEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function httpResponseSetEventsManager(UnitTester $I) diff --git a/tests/unit/Http/Response/SetExpiresCest.php b/tests/unit/Http/Response/SetExpiresCest.php index 281269349a1..dc938ea6c07 100644 --- a/tests/unit/Http/Response/SetExpiresCest.php +++ b/tests/unit/Http/Response/SetExpiresCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetExpiresCest /** * Tests Phalcon\Http\Response :: setExpires() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpResponseSetExpires(UnitTester $I) diff --git a/tests/unit/Http/Response/SetFileToSendCest.php b/tests/unit/Http/Response/SetFileToSendCest.php index 0e19a5fc8c8..9b44e61d9eb 100644 --- a/tests/unit/Http/Response/SetFileToSendCest.php +++ b/tests/unit/Http/Response/SetFileToSendCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetFileToSendCest extends HttpBase /** * Tests setFileToSend * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-08 */ public function testHttpResponseSetFileToSend(UnitTester $I) diff --git a/tests/unit/Http/Response/SetHeaderCest.php b/tests/unit/Http/Response/SetHeaderCest.php index 7b0be80717e..4c85823ac3b 100644 --- a/tests/unit/Http/Response/SetHeaderCest.php +++ b/tests/unit/Http/Response/SetHeaderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetHeaderCest extends HttpBase /** * Tests the setHeader * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-08 */ public function testHttpResponseSetHeader(UnitTester $I) @@ -53,7 +53,7 @@ public function testHttpResponseSetHeader(UnitTester $I) /** * Tests the setHeader * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-08 */ public function testHttpResponseSetHeaderContentType(UnitTester $I) diff --git a/tests/unit/Http/Response/SetHeadersCest.php b/tests/unit/Http/Response/SetHeadersCest.php index 90f8b98504f..07318da5901 100644 --- a/tests/unit/Http/Response/SetHeadersCest.php +++ b/tests/unit/Http/Response/SetHeadersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class SetHeadersCest /** * Tests Phalcon\Http\Response :: setHeaders() - empty * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpResponseSetHeadersEmpty(UnitTester $I) @@ -43,7 +43,7 @@ public function httpResponseSetHeadersEmpty(UnitTester $I) /** * Tests Phalcon\Http\Response :: setHeaders() - merge * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpResponseSetHeadersMerge(UnitTester $I) diff --git a/tests/unit/Http/Response/SetJsonContentCest.php b/tests/unit/Http/Response/SetJsonContentCest.php index 91d30973e1b..293522b6153 100644 --- a/tests/unit/Http/Response/SetJsonContentCest.php +++ b/tests/unit/Http/Response/SetJsonContentCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetJsonContentCest /** * Tests Phalcon\Http\Response :: setJsonContent() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpResponseSetJsonContent(UnitTester $I) diff --git a/tests/unit/Http/Response/SetLastModifiedCest.php b/tests/unit/Http/Response/SetLastModifiedCest.php index a5ec25fa0c1..4b90ed64399 100644 --- a/tests/unit/Http/Response/SetLastModifiedCest.php +++ b/tests/unit/Http/Response/SetLastModifiedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetLastModifiedCest /** * Tests Phalcon\Http\Response :: setLastModified() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function httpResponseSetLastModified(UnitTester $I) diff --git a/tests/unit/Http/Response/SetNotModifiedCest.php b/tests/unit/Http/Response/SetNotModifiedCest.php index 4bb3cdb4a1d..e07cc5b59c3 100644 --- a/tests/unit/Http/Response/SetNotModifiedCest.php +++ b/tests/unit/Http/Response/SetNotModifiedCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -46,7 +46,7 @@ public function httpResponseSetNotModified(UnitTester $I) /** * Tests setNotModified * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-08 */ public function testHttpResponseSetNotModified(UnitTester $I) diff --git a/tests/unit/Http/Response/SetRawHeaderCest.php b/tests/unit/Http/Response/SetRawHeaderCest.php index fb5c4d7a06a..76f665f8f75 100644 --- a/tests/unit/Http/Response/SetRawHeaderCest.php +++ b/tests/unit/Http/Response/SetRawHeaderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetRawHeaderCest extends HttpBase /** * Tests the setRawHeader * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-08 */ public function testHttpResponseSetRawHeader(UnitTester $I) diff --git a/tests/unit/Http/Response/SetStatusCodeCest.php b/tests/unit/Http/Response/SetStatusCodeCest.php index 33ef8b1bbe6..3f436fdbd2c 100644 --- a/tests/unit/Http/Response/SetStatusCodeCest.php +++ b/tests/unit/Http/Response/SetStatusCodeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetStatusCodeCest extends HttpBase /** * Tests the setStatusCode * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-08 */ public function testHttpResponseSetStatusCode(UnitTester $I) diff --git a/tests/unit/Http/Server/Middleware/ConstructCest.php b/tests/unit/Http/Server/Middleware/ConstructCest.php index 2a110240b27..e207f1255cc 100644 --- a/tests/unit/Http/Server/Middleware/ConstructCest.php +++ b/tests/unit/Http/Server/Middleware/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ConstructCest /** * Tests Phalcon\Http\Server\Middleware :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpServerMiddlewareProcess(UnitTester $I) diff --git a/tests/unit/Http/Server/Middleware/ProcessCest.php b/tests/unit/Http/Server/Middleware/ProcessCest.php index c0ac270664d..2c2c95ef985 100644 --- a/tests/unit/Http/Server/Middleware/ProcessCest.php +++ b/tests/unit/Http/Server/Middleware/ProcessCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ProcessCest /** * Tests Phalcon\Http\Server\Middleware :: process() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpServerMiddlewareProcess(UnitTester $I) diff --git a/tests/unit/Http/Server/RequestHandler/ConstructCest.php b/tests/unit/Http/Server/RequestHandler/ConstructCest.php index d9dea1de181..b300259fc02 100644 --- a/tests/unit/Http/Server/RequestHandler/ConstructCest.php +++ b/tests/unit/Http/Server/RequestHandler/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ConstructCest /** * Tests Phalcon\Http\Server\RequestHandler :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpServerRequestHandlerHandle(UnitTester $I) diff --git a/tests/unit/Http/Server/RequestHandler/HandleCest.php b/tests/unit/Http/Server/RequestHandler/HandleCest.php index c64dcecf277..f588d1b6c46 100644 --- a/tests/unit/Http/Server/RequestHandler/HandleCest.php +++ b/tests/unit/Http/Server/RequestHandler/HandleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class HandleCest /** * Tests Phalcon\Http\Server\RequestHandler :: handle() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function httpServerRequestHandlerHandle(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Gd/BackgroundCest.php b/tests/unit/Image/Adapter/Gd/BackgroundCest.php index 8820bee6634..13bf8313cce 100644 --- a/tests/unit/Image/Adapter/Gd/BackgroundCest.php +++ b/tests/unit/Image/Adapter/Gd/BackgroundCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class BackgroundCest /** * Tests Phalcon\Image\Adapter\Gd :: background() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function imageAdapterGdBackground(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Gd/BlurCest.php b/tests/unit/Image/Adapter/Gd/BlurCest.php index 74a5b124468..f04038c1d02 100644 --- a/tests/unit/Image/Adapter/Gd/BlurCest.php +++ b/tests/unit/Image/Adapter/Gd/BlurCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class BlurCest /** * Tests Phalcon\Image\Adapter\Gd :: blur() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function imageAdapterGdBlur(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Gd/CheckCest.php b/tests/unit/Image/Adapter/Gd/CheckCest.php index a5ee66b082f..203a1958049 100644 --- a/tests/unit/Image/Adapter/Gd/CheckCest.php +++ b/tests/unit/Image/Adapter/Gd/CheckCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class CheckCest /** * Tests Phalcon\Image\Adapter\Gd :: check() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function imageAdapterGdCheck(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Gd/ConstructCest.php b/tests/unit/Image/Adapter/Gd/ConstructCest.php index be5aa7a8a84..2ab8e788dca 100644 --- a/tests/unit/Image/Adapter/Gd/ConstructCest.php +++ b/tests/unit/Image/Adapter/Gd/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class ConstructCest /** * Tests Phalcon\Image\Adapter\Gd :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function imageAdapterGdConstruct(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Gd/CropCest.php b/tests/unit/Image/Adapter/Gd/CropCest.php index 293927d8499..d06e928ede2 100644 --- a/tests/unit/Image/Adapter/Gd/CropCest.php +++ b/tests/unit/Image/Adapter/Gd/CropCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class CropCest /** * Tests Phalcon\Image\Adapter\Gd :: crop() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function imageAdapterGdCropJpg(UnitTester $I) @@ -70,7 +70,7 @@ public function imageAdapterGdCropJpg(UnitTester $I) /** * Tests Phalcon\Image\Adapter\Gd :: crop() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function imageAdapterGdCropJpgWithOffset(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Gd/DestructCest.php b/tests/unit/Image/Adapter/Gd/DestructCest.php index 7b6d40ad5ff..ead2b42a62f 100644 --- a/tests/unit/Image/Adapter/Gd/DestructCest.php +++ b/tests/unit/Image/Adapter/Gd/DestructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class DestructCest /** * Tests Phalcon\Image\Adapter\Gd :: __destruct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function imageAdapterGdDestruct(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Gd/FlipCest.php b/tests/unit/Image/Adapter/Gd/FlipCest.php index 7b61a1757ed..a78d3c48b02 100644 --- a/tests/unit/Image/Adapter/Gd/FlipCest.php +++ b/tests/unit/Image/Adapter/Gd/FlipCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class FlipCest /** * Tests Phalcon\Image\Adapter\Gd :: flip() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function imageAdapterGdFlip(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Gd/GetHeightCest.php b/tests/unit/Image/Adapter/Gd/GetHeightCest.php index b4d80ed5850..39189921bf1 100644 --- a/tests/unit/Image/Adapter/Gd/GetHeightCest.php +++ b/tests/unit/Image/Adapter/Gd/GetHeightCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetHeightCest /** * Tests Phalcon\Image\Adapter\Gd :: getHeight() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function imageAdapterGdGetHeightJpg(UnitTester $I) @@ -38,7 +38,7 @@ public function imageAdapterGdGetHeightJpg(UnitTester $I) /** * Tests Phalcon\Image\Adapter\Gd :: getHeight() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function imageAdapterGdGetHeightPng(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Gd/GetImageCest.php b/tests/unit/Image/Adapter/Gd/GetImageCest.php index 7ce843e4df0..b93dcccae64 100644 --- a/tests/unit/Image/Adapter/Gd/GetImageCest.php +++ b/tests/unit/Image/Adapter/Gd/GetImageCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class GetImageCest /** * Tests Phalcon\Image\Adapter\Gd :: getImage() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function imageAdapterGdGetImage(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Gd/GetMimeCest.php b/tests/unit/Image/Adapter/Gd/GetMimeCest.php index d6c4d6580ff..8c618783360 100644 --- a/tests/unit/Image/Adapter/Gd/GetMimeCest.php +++ b/tests/unit/Image/Adapter/Gd/GetMimeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetMimeCest /** * Tests Phalcon\Image\Adapter\Gd :: getMime() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function imageAdapterGdGetMimeImageJpeg(UnitTester $I) @@ -38,7 +38,7 @@ public function imageAdapterGdGetMimeImageJpeg(UnitTester $I) /** * Tests Phalcon\Image\Adapter\Gd :: getMime() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function imageAdapterGdGetMimeImagePng(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Gd/GetRealpathCest.php b/tests/unit/Image/Adapter/Gd/GetRealpathCest.php index dced1706524..3af2446ecde 100644 --- a/tests/unit/Image/Adapter/Gd/GetRealpathCest.php +++ b/tests/unit/Image/Adapter/Gd/GetRealpathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class GetRealpathCest /** * Tests Phalcon\Image\Adapter\Gd :: getRealpath() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function imageAdapterGdGetRealpath(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Gd/GetTypeCest.php b/tests/unit/Image/Adapter/Gd/GetTypeCest.php index 6cecedcb86c..42135941338 100644 --- a/tests/unit/Image/Adapter/Gd/GetTypeCest.php +++ b/tests/unit/Image/Adapter/Gd/GetTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class GetTypeCest /** * Tests Phalcon\Image\Adapter\Gd :: getType() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function imageAdapterGdGetTypeJpg(UnitTester $I) @@ -41,7 +41,7 @@ public function imageAdapterGdGetTypeJpg(UnitTester $I) /** * Tests Phalcon\Image\Adapter\Gd :: getType() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function imageAdapterGdGetTypePng(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Gd/GetVersionCest.php b/tests/unit/Image/Adapter/Gd/GetVersionCest.php index 19249535ca6..77d0984fc8d 100644 --- a/tests/unit/Image/Adapter/Gd/GetVersionCest.php +++ b/tests/unit/Image/Adapter/Gd/GetVersionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetVersionCest /** * Unit Tests Phalcon\Image\Adapter\Gd :: getVersion() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function imageAdapterGdGetVersion(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Gd/GetWidthCest.php b/tests/unit/Image/Adapter/Gd/GetWidthCest.php index f83208760e7..ce22130296a 100644 --- a/tests/unit/Image/Adapter/Gd/GetWidthCest.php +++ b/tests/unit/Image/Adapter/Gd/GetWidthCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetWidthCest /** * Tests Phalcon\Image\Adapter\Gd :: getWidth() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function imageAdapterGdGetWidthJpg(UnitTester $I) @@ -39,7 +39,7 @@ public function imageAdapterGdGetWidthJpg(UnitTester $I) /** * Tests Phalcon\Image\Adapter\Gd :: getWidth() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function imageAdapterGdGetWidthPng(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Gd/LiquidRescaleCest.php b/tests/unit/Image/Adapter/Gd/LiquidRescaleCest.php index 174aa2652c9..e9047fe5f08 100644 --- a/tests/unit/Image/Adapter/Gd/LiquidRescaleCest.php +++ b/tests/unit/Image/Adapter/Gd/LiquidRescaleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class LiquidRescaleCest /** * Tests Phalcon\Image\Adapter\Gd :: liquidRescale() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function imageAdapterGdLiquidRescale(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Gd/MaskCest.php b/tests/unit/Image/Adapter/Gd/MaskCest.php index c55b257c4a7..23d483a37dd 100644 --- a/tests/unit/Image/Adapter/Gd/MaskCest.php +++ b/tests/unit/Image/Adapter/Gd/MaskCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class MaskCest /** * Tests Phalcon\Image\Adapter\Gd :: mask() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function imageAdapterGdMask(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Gd/PixelateCest.php b/tests/unit/Image/Adapter/Gd/PixelateCest.php index 8bbb6d4e5fd..f2c48043655 100644 --- a/tests/unit/Image/Adapter/Gd/PixelateCest.php +++ b/tests/unit/Image/Adapter/Gd/PixelateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class PixelateCest /** * Tests Phalcon\Image\Adapter\Gd :: pixelate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function imageAdapterGdPixelate(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Gd/ReflectionCest.php b/tests/unit/Image/Adapter/Gd/ReflectionCest.php index 7e1c2601560..98a51876084 100644 --- a/tests/unit/Image/Adapter/Gd/ReflectionCest.php +++ b/tests/unit/Image/Adapter/Gd/ReflectionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class ReflectionCest /** * Tests Phalcon\Image\Adapter\Gd :: reflection() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function imageAdapterGdReflection(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Gd/RenderCest.php b/tests/unit/Image/Adapter/Gd/RenderCest.php index f23130aecf6..5d80fe0643d 100644 --- a/tests/unit/Image/Adapter/Gd/RenderCest.php +++ b/tests/unit/Image/Adapter/Gd/RenderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class RenderCest /** * Tests Phalcon\Image\Adapter\Gd :: render() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function imageAdapterGdRender(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Gd/ResizeCest.php b/tests/unit/Image/Adapter/Gd/ResizeCest.php index de1daa400d7..a6308f26aa5 100644 --- a/tests/unit/Image/Adapter/Gd/ResizeCest.php +++ b/tests/unit/Image/Adapter/Gd/ResizeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class ResizeCest /** * Tests Phalcon\Image\Adapter\Gd :: resize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function imageAdapterGdResizeJpg(UnitTester $I) @@ -69,7 +69,7 @@ public function imageAdapterGdResizeJpg(UnitTester $I) /** * Tests Phalcon\Image\Adapter\Gd :: resize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function imageAdapterGdResizePng(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Gd/RotateCest.php b/tests/unit/Image/Adapter/Gd/RotateCest.php index a238b2d9c3c..5e360e703cb 100644 --- a/tests/unit/Image/Adapter/Gd/RotateCest.php +++ b/tests/unit/Image/Adapter/Gd/RotateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class RotateCest /** * Tests Phalcon\Image\Adapter\Gd :: rotate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function imageAdapterGdRotate(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Gd/SaveCest.php b/tests/unit/Image/Adapter/Gd/SaveCest.php index f9cf0dd39b8..fc59fbbb421 100644 --- a/tests/unit/Image/Adapter/Gd/SaveCest.php +++ b/tests/unit/Image/Adapter/Gd/SaveCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class SaveCest /** * Tests Phalcon\Image\Adapter\Gd :: save() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function imageAdapterGdSave(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Gd/SharpenCest.php b/tests/unit/Image/Adapter/Gd/SharpenCest.php index 114855cf1ad..38987eb1e00 100644 --- a/tests/unit/Image/Adapter/Gd/SharpenCest.php +++ b/tests/unit/Image/Adapter/Gd/SharpenCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class SharpenCest /** * Tests Phalcon\Image\Adapter\Gd :: sharpen() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function imageAdapterGdSharpen(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Gd/TextCest.php b/tests/unit/Image/Adapter/Gd/TextCest.php index 8065e096863..a2cd0ae03b8 100644 --- a/tests/unit/Image/Adapter/Gd/TextCest.php +++ b/tests/unit/Image/Adapter/Gd/TextCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class TextCest /** * Tests Phalcon\Image\Adapter\Gd :: text() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function imageAdapterGdText(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Gd/WatermarkCest.php b/tests/unit/Image/Adapter/Gd/WatermarkCest.php index fd164f30e7d..52a2c778974 100644 --- a/tests/unit/Image/Adapter/Gd/WatermarkCest.php +++ b/tests/unit/Image/Adapter/Gd/WatermarkCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class WatermarkCest /** * Tests Phalcon\Image\Adapter\Gd :: watermark() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function imageAdapterGdWatermarkJpgInsideJpg(UnitTester $I) @@ -68,7 +68,7 @@ public function imageAdapterGdWatermarkJpgInsideJpg(UnitTester $I) /** * Tests Phalcon\Image\Adapter\Gd :: watermark() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function imageAdapterGdWatermarkPngInsideJpg(UnitTester $I) @@ -109,7 +109,7 @@ public function imageAdapterGdWatermarkPngInsideJpg(UnitTester $I) /** * Tests Phalcon\Image\Adapter\Gd :: watermark() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function imageAdapterGdWatermarkJpgInsidePng(UnitTester $I) @@ -153,7 +153,7 @@ public function imageAdapterGdWatermarkJpgInsidePng(UnitTester $I) /** * Tests Phalcon\Image\Adapter\Gd :: watermark() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function imageAdapterGdWatermarkPngInsidePng(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Imagick/BackgroundCest.php b/tests/unit/Image/Adapter/Imagick/BackgroundCest.php index 750e1820ef9..4b95ca320be 100644 --- a/tests/unit/Image/Adapter/Imagick/BackgroundCest.php +++ b/tests/unit/Image/Adapter/Imagick/BackgroundCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class BackgroundCest /** * Tests Phalcon\Image\Adapter\Imagick :: background() * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-02-19 */ public function imageAdapterImagickBackground(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Imagick/BlurCest.php b/tests/unit/Image/Adapter/Imagick/BlurCest.php index 9be15d81da2..ec48f1a0cc6 100644 --- a/tests/unit/Image/Adapter/Imagick/BlurCest.php +++ b/tests/unit/Image/Adapter/Imagick/BlurCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class BlurCest /** * Tests Phalcon\Image\Adapter\Imagick :: blur() * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-02-19 */ public function imageAdapterImagickBlur(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Imagick/CheckCest.php b/tests/unit/Image/Adapter/Imagick/CheckCest.php index eb58b82fdaa..4426bf88ed9 100644 --- a/tests/unit/Image/Adapter/Imagick/CheckCest.php +++ b/tests/unit/Image/Adapter/Imagick/CheckCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class CheckCest /** * Tests Phalcon\Image\Adapter\Imagick :: check() * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-02-19 */ public function imageAdapterImagickCheck(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Imagick/CropCest.php b/tests/unit/Image/Adapter/Imagick/CropCest.php index 3feb36a7875..459d8cabc71 100644 --- a/tests/unit/Image/Adapter/Imagick/CropCest.php +++ b/tests/unit/Image/Adapter/Imagick/CropCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class CropCest /** * Tests Phalcon\Image\Adapter\Imagick :: crop() * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-02-19 */ public function imageAdapterImagickCrop(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Imagick/FlipCest.php b/tests/unit/Image/Adapter/Imagick/FlipCest.php index 61a005c04f1..5a87756574e 100644 --- a/tests/unit/Image/Adapter/Imagick/FlipCest.php +++ b/tests/unit/Image/Adapter/Imagick/FlipCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class FlipCest /** * Tests Phalcon\Image\Adapter\Imagick :: flip() * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-02-19 */ public function imageAdapterImagickFlip(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Imagick/GetHeightCest.php b/tests/unit/Image/Adapter/Imagick/GetHeightCest.php index 14a22977608..ea8293fc5b9 100644 --- a/tests/unit/Image/Adapter/Imagick/GetHeightCest.php +++ b/tests/unit/Image/Adapter/Imagick/GetHeightCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetHeightCest /** * Unit Tests Phalcon\Image\Adapter\Imagick :: getHeight() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function imageAdapterImagickGetHeight(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Imagick/GetImageCest.php b/tests/unit/Image/Adapter/Imagick/GetImageCest.php index c284cb4a2c0..6ae2423ef8d 100644 --- a/tests/unit/Image/Adapter/Imagick/GetImageCest.php +++ b/tests/unit/Image/Adapter/Imagick/GetImageCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetImageCest /** * Tests Phalcon\Image\Adapter\Imagick :: getImage() * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-02-19 */ public function imageAdapterImagickGetImage(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Imagick/GetInternalImInstanceCest.php b/tests/unit/Image/Adapter/Imagick/GetInternalImInstanceCest.php index c0b594111b3..179f4cddaf0 100644 --- a/tests/unit/Image/Adapter/Imagick/GetInternalImInstanceCest.php +++ b/tests/unit/Image/Adapter/Imagick/GetInternalImInstanceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetInternalImInstanceCest /** * Tests Phalcon\Image\Adapter\Imagick :: getInternalImInstance() * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-02-19 */ public function imageAdapterImagickGetInternalImInstance(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Imagick/GetMimeCest.php b/tests/unit/Image/Adapter/Imagick/GetMimeCest.php index d1222366ed3..0b5d1ccce99 100644 --- a/tests/unit/Image/Adapter/Imagick/GetMimeCest.php +++ b/tests/unit/Image/Adapter/Imagick/GetMimeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetMimeCest /** * Tests Phalcon\Image\Adapter\Imagick :: getMime() * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-02-19 */ public function imageAdapterImagickGetMime(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Imagick/GetRealpathCest.php b/tests/unit/Image/Adapter/Imagick/GetRealpathCest.php index 58e1cadb6c7..9df1854ea75 100644 --- a/tests/unit/Image/Adapter/Imagick/GetRealpathCest.php +++ b/tests/unit/Image/Adapter/Imagick/GetRealpathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetRealpathCest /** * Tests Phalcon\Image\Adapter\Imagick :: getRealpath() * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-02-19 */ public function imageAdapterImagickGetRealpath(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Imagick/GetTypeCest.php b/tests/unit/Image/Adapter/Imagick/GetTypeCest.php index e48b4e0ea95..6cb0bea2ff2 100644 --- a/tests/unit/Image/Adapter/Imagick/GetTypeCest.php +++ b/tests/unit/Image/Adapter/Imagick/GetTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetTypeCest /** * Tests Phalcon\Image\Adapter\Imagick :: getType() * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-02-19 */ public function imageAdapterImagickGetType(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Imagick/GetWidthCest.php b/tests/unit/Image/Adapter/Imagick/GetWidthCest.php index 9736ead2132..a7834445e6b 100644 --- a/tests/unit/Image/Adapter/Imagick/GetWidthCest.php +++ b/tests/unit/Image/Adapter/Imagick/GetWidthCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetWidthCest /** * Unit Tests Phalcon\Image\Adapter\Imagick :: getWidth() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function imageAdapterImagickGetWidth(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Imagick/LiquidRescaleCest.php b/tests/unit/Image/Adapter/Imagick/LiquidRescaleCest.php index d6df134b427..da3713096dc 100644 --- a/tests/unit/Image/Adapter/Imagick/LiquidRescaleCest.php +++ b/tests/unit/Image/Adapter/Imagick/LiquidRescaleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class LiquidRescaleCest /** * Tests Phalcon\Image\Adapter\Imagick :: liquidRescale() * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-02-19 */ public function imageAdapterImagickLiquidRescale(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Imagick/MaskCest.php b/tests/unit/Image/Adapter/Imagick/MaskCest.php index 30521373f1b..62d6b0c6a17 100644 --- a/tests/unit/Image/Adapter/Imagick/MaskCest.php +++ b/tests/unit/Image/Adapter/Imagick/MaskCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class MaskCest /** * Tests Phalcon\Image\Adapter\Imagick :: mask() * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-02-19 */ public function imageAdapterImagickMask(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Imagick/PixelateCest.php b/tests/unit/Image/Adapter/Imagick/PixelateCest.php index 9bcb7c14bf0..08b00675124 100644 --- a/tests/unit/Image/Adapter/Imagick/PixelateCest.php +++ b/tests/unit/Image/Adapter/Imagick/PixelateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class PixelateCest /** * Tests Phalcon\Image\Adapter\Imagick :: pixelate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-02-19 */ public function imageAdapterImagickPixelate(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Imagick/ReflectionCest.php b/tests/unit/Image/Adapter/Imagick/ReflectionCest.php index fb410e6b5f7..b03690ad654 100644 --- a/tests/unit/Image/Adapter/Imagick/ReflectionCest.php +++ b/tests/unit/Image/Adapter/Imagick/ReflectionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class ReflectionCest /** * Tests Phalcon\Image\Adapter\Imagick :: reflection() * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-02-19 */ public function imageAdapterImagickReflection(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Imagick/RenderCest.php b/tests/unit/Image/Adapter/Imagick/RenderCest.php index 50fee9a94db..a395bdc56ec 100644 --- a/tests/unit/Image/Adapter/Imagick/RenderCest.php +++ b/tests/unit/Image/Adapter/Imagick/RenderCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class RenderCest /** * Tests Phalcon\Image\Adapter\Imagick :: render() * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-02-19 */ public function imageAdapterImagickRender(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Imagick/ResizeCest.php b/tests/unit/Image/Adapter/Imagick/ResizeCest.php index 9b51ca9e62a..4bd633d1919 100644 --- a/tests/unit/Image/Adapter/Imagick/ResizeCest.php +++ b/tests/unit/Image/Adapter/Imagick/ResizeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class ResizeCest /** * Tests Phalcon\Image\Adapter\Imagick :: resize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-02-19 */ public function imageAdapterImagickResize(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Imagick/RotateCest.php b/tests/unit/Image/Adapter/Imagick/RotateCest.php index 12b8e805f36..24316deaf07 100644 --- a/tests/unit/Image/Adapter/Imagick/RotateCest.php +++ b/tests/unit/Image/Adapter/Imagick/RotateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class RotateCest /** * Tests Phalcon\Image\Adapter\Imagick :: rotate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-02-19 */ public function imageAdapterImagickRotate(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Imagick/SaveCest.php b/tests/unit/Image/Adapter/Imagick/SaveCest.php index 28c1a5f01aa..3fef313a3fc 100644 --- a/tests/unit/Image/Adapter/Imagick/SaveCest.php +++ b/tests/unit/Image/Adapter/Imagick/SaveCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class SaveCest /** * Tests Phalcon\Image\Adapter\Imagick :: save() * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-02-19 */ public function imageAdapterImagickSave(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Imagick/SetResourceLimitCest.php b/tests/unit/Image/Adapter/Imagick/SetResourceLimitCest.php index 5c00dfc398b..5e459a07f17 100644 --- a/tests/unit/Image/Adapter/Imagick/SetResourceLimitCest.php +++ b/tests/unit/Image/Adapter/Imagick/SetResourceLimitCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetResourceLimitCest /** * Unit Tests Phalcon\Image\Adapter\Imagick :: setResourceLimit() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-25 */ public function imageAdapterImagickSetResourceLimit(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Imagick/SharpenCest.php b/tests/unit/Image/Adapter/Imagick/SharpenCest.php index fd041ae7710..e4f2f8ef5e6 100644 --- a/tests/unit/Image/Adapter/Imagick/SharpenCest.php +++ b/tests/unit/Image/Adapter/Imagick/SharpenCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class SharpenCest /** * Tests Phalcon\Image\Adapter\Imagick :: sharpen() * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-02-19 */ public function imageAdapterImagickSharpen(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Imagick/TextCest.php b/tests/unit/Image/Adapter/Imagick/TextCest.php index f44d15170ab..4e4a27a60d2 100644 --- a/tests/unit/Image/Adapter/Imagick/TextCest.php +++ b/tests/unit/Image/Adapter/Imagick/TextCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class TextCest /** * Tests Phalcon\Image\Adapter\Imagick :: text() * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-02-19 */ public function imageAdapterImagickText(UnitTester $I) diff --git a/tests/unit/Image/Adapter/Imagick/WatermarkCest.php b/tests/unit/Image/Adapter/Imagick/WatermarkCest.php index 4cf6c4baefd..ab8c395191b 100644 --- a/tests/unit/Image/Adapter/Imagick/WatermarkCest.php +++ b/tests/unit/Image/Adapter/Imagick/WatermarkCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class WatermarkCest /** * Tests Phalcon\Image\Adapter\Imagick :: watermark() * - * @author Phalcon Team + * @author Phalcon Team * @since 2016-02-19 */ public function imageAdapterImagickWatermark(UnitTester $I) diff --git a/tests/unit/Image/ImageFactory/LoadCest.php b/tests/unit/Image/ImageFactory/LoadCest.php index 6df6c0e421a..a5c86a3e36a 100644 --- a/tests/unit/Image/ImageFactory/LoadCest.php +++ b/tests/unit/Image/ImageFactory/LoadCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -31,7 +31,7 @@ public function _before(UnitTester $I) /** * Tests Phalcon\Image\ImageFactory :: load() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-18 */ public function imageImageFactoryLoad(UnitTester $I) @@ -63,7 +63,7 @@ public function imageImageFactoryLoad(UnitTester $I) /** * Tests Phalcon\Image\ImageFactory :: load() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-18 */ public function imageImageFactoryLoadArray(UnitTester $I) diff --git a/tests/unit/Image/ImageFactory/NewInstanceCest.php b/tests/unit/Image/ImageFactory/NewInstanceCest.php index 0d6a02bc610..abb56b88366 100644 --- a/tests/unit/Image/ImageFactory/NewInstanceCest.php +++ b/tests/unit/Image/ImageFactory/NewInstanceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class NewInstanceCest /** * Tests Phalcon\Image\ImageFactory :: newInstance() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-18 */ public function imageImageFactoryNewInstance(UnitTester $I) diff --git a/tests/unit/Kernel/PreComputeHashKeyCest.php b/tests/unit/Kernel/PreComputeHashKeyCest.php index 8e22ab9e3c3..6bab88870c1 100644 --- a/tests/unit/Kernel/PreComputeHashKeyCest.php +++ b/tests/unit/Kernel/PreComputeHashKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class PreComputeHashKeyCest /** * Tests Phalcon\Kernel :: preComputeHashKey() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function kernelPreComputeHashKey(UnitTester $I) diff --git a/tests/unit/Loader/AutoLoadCest.php b/tests/unit/Loader/AutoLoadCest.php index c84b9f7ed84..7004f99bd21 100644 --- a/tests/unit/Loader/AutoLoadCest.php +++ b/tests/unit/Loader/AutoLoadCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class AutoLoadCest /** * Tests Phalcon\Loader :: autoLoad() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loaderAutoLoad(UnitTester $I) diff --git a/tests/unit/Loader/GetCheckedPathCest.php b/tests/unit/Loader/GetCheckedPathCest.php index 26a66ee9c69..a0dee1772ff 100644 --- a/tests/unit/Loader/GetCheckedPathCest.php +++ b/tests/unit/Loader/GetCheckedPathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetCheckedPathCest /** * Tests Phalcon\Loader :: getCheckedPath() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loaderGetCheckedPath(UnitTester $I) diff --git a/tests/unit/Loader/GetClassesCest.php b/tests/unit/Loader/GetClassesCest.php index a3aeb4d35e7..83e03c8c4cf 100644 --- a/tests/unit/Loader/GetClassesCest.php +++ b/tests/unit/Loader/GetClassesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Loader/GetDirsCest.php b/tests/unit/Loader/GetDirsCest.php index e8000c9f72f..d61b2db220d 100644 --- a/tests/unit/Loader/GetDirsCest.php +++ b/tests/unit/Loader/GetDirsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Loader/GetEventsManagerCest.php b/tests/unit/Loader/GetEventsManagerCest.php index 82bc7277cbf..e941a4a0c01 100644 --- a/tests/unit/Loader/GetEventsManagerCest.php +++ b/tests/unit/Loader/GetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetEventsManagerCest /** * Tests Phalcon\Loader :: getEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loaderGetEventsManager(UnitTester $I) diff --git a/tests/unit/Loader/GetExtensionsCest.php b/tests/unit/Loader/GetExtensionsCest.php index e9ca02a48ce..814d9e64566 100644 --- a/tests/unit/Loader/GetExtensionsCest.php +++ b/tests/unit/Loader/GetExtensionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetExtensionsCest /** * Tests Phalcon\Loader :: getExtensions() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loaderGetExtensions(UnitTester $I) diff --git a/tests/unit/Loader/GetFilesCest.php b/tests/unit/Loader/GetFilesCest.php index 22d516900a2..cb953822876 100644 --- a/tests/unit/Loader/GetFilesCest.php +++ b/tests/unit/Loader/GetFilesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Loader/GetFoundPathCest.php b/tests/unit/Loader/GetFoundPathCest.php index 816f4530d29..f962cf012a1 100644 --- a/tests/unit/Loader/GetFoundPathCest.php +++ b/tests/unit/Loader/GetFoundPathCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetFoundPathCest /** * Tests Phalcon\Loader :: getFoundPath() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loaderGetFoundPath(UnitTester $I) diff --git a/tests/unit/Loader/GetNamespacesCest.php b/tests/unit/Loader/GetNamespacesCest.php index d64428fa041..0a8e8d28f6a 100644 --- a/tests/unit/Loader/GetNamespacesCest.php +++ b/tests/unit/Loader/GetNamespacesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Loader/LoadFilesCest.php b/tests/unit/Loader/LoadFilesCest.php index f80e4eaa6a4..005a1f04b53 100644 --- a/tests/unit/Loader/LoadFilesCest.php +++ b/tests/unit/Loader/LoadFilesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class LoadFilesCest /** * Tests Phalcon\Loader :: loadFiles() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loaderLoadFiles(UnitTester $I) diff --git a/tests/unit/Loader/LoaderCest.php b/tests/unit/Loader/LoaderCest.php index c86bd0fe230..2c339769ee4 100644 --- a/tests/unit/Loader/LoaderCest.php +++ b/tests/unit/Loader/LoaderCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Loader/RegisterCest.php b/tests/unit/Loader/RegisterCest.php index b0ff6405dc4..e74906b30d6 100644 --- a/tests/unit/Loader/RegisterCest.php +++ b/tests/unit/Loader/RegisterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class RegisterCest /** * Tests Phalcon\Loader :: register() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loaderRegister(UnitTester $I) diff --git a/tests/unit/Loader/RegisterClassesCest.php b/tests/unit/Loader/RegisterClassesCest.php index 8eac6a0149c..6e3d559c92d 100644 --- a/tests/unit/Loader/RegisterClassesCest.php +++ b/tests/unit/Loader/RegisterClassesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Loader/RegisterDirsCest.php b/tests/unit/Loader/RegisterDirsCest.php index 9d077e084f2..6adda03528b 100644 --- a/tests/unit/Loader/RegisterDirsCest.php +++ b/tests/unit/Loader/RegisterDirsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Loader/RegisterFilesCest.php b/tests/unit/Loader/RegisterFilesCest.php index 004bde9089a..6144a35442b 100644 --- a/tests/unit/Loader/RegisterFilesCest.php +++ b/tests/unit/Loader/RegisterFilesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Loader/RegisterNamespacesCest.php b/tests/unit/Loader/RegisterNamespacesCest.php index f0f3317750a..efddb8eb19a 100644 --- a/tests/unit/Loader/RegisterNamespacesCest.php +++ b/tests/unit/Loader/RegisterNamespacesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Loader/SetEventsManagerCest.php b/tests/unit/Loader/SetEventsManagerCest.php index af1cd90261e..1870e71b269 100644 --- a/tests/unit/Loader/SetEventsManagerCest.php +++ b/tests/unit/Loader/SetEventsManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetEventsManagerCest /** * Tests Phalcon\Loader :: setEventsManager() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loaderSetEventsManager(UnitTester $I) diff --git a/tests/unit/Loader/SetExtensionsCest.php b/tests/unit/Loader/SetExtensionsCest.php index fada6ccc61b..d7a9e242af6 100644 --- a/tests/unit/Loader/SetExtensionsCest.php +++ b/tests/unit/Loader/SetExtensionsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Loader/SetFileCheckingCallbackCest.php b/tests/unit/Loader/SetFileCheckingCallbackCest.php index 823dde6107d..e951b7672a1 100644 --- a/tests/unit/Loader/SetFileCheckingCallbackCest.php +++ b/tests/unit/Loader/SetFileCheckingCallbackCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class SetFileCheckingCallbackCest /** * Tests Loader::setFileCheckingCallback * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-04-29 * @issue https://github.com/phalcon/cphalcon/issues/13360 * @issue https://github.com/phalcon/cphalcon/issues/10472 @@ -66,7 +66,7 @@ function_exists('noClass3Bar') /** * Tests Loader::setFileCheckingCallback * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-04-29 * @issue https://github.com/phalcon/cphalcon/issues/13360 * @issue https://github.com/phalcon/cphalcon/issues/10472 diff --git a/tests/unit/Loader/UnregisterCest.php b/tests/unit/Loader/UnregisterCest.php index 49a99a4ac42..d2e7cddfdb5 100644 --- a/tests/unit/Loader/UnregisterCest.php +++ b/tests/unit/Loader/UnregisterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class UnregisterCest /** * Tests Phalcon\Loader :: unregister() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loaderUnregister(UnitTester $I) diff --git a/tests/unit/Logger/Adapter/Noop/AddCest.php b/tests/unit/Logger/Adapter/Noop/AddCest.php index 83b6f8ea4e3..2c75f8afb07 100644 --- a/tests/unit/Logger/Adapter/Noop/AddCest.php +++ b/tests/unit/Logger/Adapter/Noop/AddCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AddCest /** * Tests Phalcon\Logger\Adapter\Noop :: add() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loggerAdapterNoopAdd(UnitTester $I) diff --git a/tests/unit/Logger/Adapter/Noop/BeginCest.php b/tests/unit/Logger/Adapter/Noop/BeginCest.php index b7f203e203b..12a65470ce9 100644 --- a/tests/unit/Logger/Adapter/Noop/BeginCest.php +++ b/tests/unit/Logger/Adapter/Noop/BeginCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class BeginCest /** * Tests Phalcon\Logger\Adapter\Noop :: begin() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loggerAdapterNoopBegin(UnitTester $I) diff --git a/tests/unit/Logger/Adapter/Noop/CloseCest.php b/tests/unit/Logger/Adapter/Noop/CloseCest.php index 6ace100e0d5..382b92b8ac6 100644 --- a/tests/unit/Logger/Adapter/Noop/CloseCest.php +++ b/tests/unit/Logger/Adapter/Noop/CloseCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class CloseCest /** * Tests Phalcon\Logger\Adapter\Noop :: close() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loggerAdapterNoopClose(UnitTester $I) diff --git a/tests/unit/Logger/Adapter/Noop/CommitCest.php b/tests/unit/Logger/Adapter/Noop/CommitCest.php index f5ac53bb567..c00f19b2863 100644 --- a/tests/unit/Logger/Adapter/Noop/CommitCest.php +++ b/tests/unit/Logger/Adapter/Noop/CommitCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class CommitCest /** * Tests Phalcon\Logger\Adapter\Noop :: commit() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loggerAdapterNoopCommit(UnitTester $I) @@ -46,7 +46,7 @@ public function loggerAdapterNoopCommit(UnitTester $I) /** * Tests Phalcon\Logger\Adapter\Noop :: commit() - no transaction * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loggerAdapterNoopCommitNoTransaction(UnitTester $I) diff --git a/tests/unit/Logger/Adapter/Noop/GetFormatterCest.php b/tests/unit/Logger/Adapter/Noop/GetFormatterCest.php index 67c4fd23a43..14748ffac2e 100644 --- a/tests/unit/Logger/Adapter/Noop/GetFormatterCest.php +++ b/tests/unit/Logger/Adapter/Noop/GetFormatterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetFormatterCest /** * Tests Phalcon\Logger\Adapter\Noop :: getFormatter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loggerAdapterNoopGetFormatter(UnitTester $I) diff --git a/tests/unit/Logger/Adapter/Noop/InTransactionCest.php b/tests/unit/Logger/Adapter/Noop/InTransactionCest.php index 1d4f1f3609d..290f9d7842d 100644 --- a/tests/unit/Logger/Adapter/Noop/InTransactionCest.php +++ b/tests/unit/Logger/Adapter/Noop/InTransactionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class InTransactionCest /** * Tests Phalcon\Logger\Adapter\Noop :: inTransaction() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loggerAdapterNoopInTransaction(UnitTester $I) diff --git a/tests/unit/Logger/Adapter/Noop/ProcessCest.php b/tests/unit/Logger/Adapter/Noop/ProcessCest.php index 92a5cd72ce0..e90c37fe459 100644 --- a/tests/unit/Logger/Adapter/Noop/ProcessCest.php +++ b/tests/unit/Logger/Adapter/Noop/ProcessCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ProcessCest /** * Tests Phalcon\Logger\Adapter\Noop :: process() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loggerAdapterNoopProcess(UnitTester $I) diff --git a/tests/unit/Logger/Adapter/Noop/RollbackCest.php b/tests/unit/Logger/Adapter/Noop/RollbackCest.php index 0d9ae7db306..6a1b223a172 100644 --- a/tests/unit/Logger/Adapter/Noop/RollbackCest.php +++ b/tests/unit/Logger/Adapter/Noop/RollbackCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class RollbackCest /** * Tests Phalcon\Logger\Adapter\Noop :: rollback() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loggerAdapterNoopRollback(UnitTester $I) diff --git a/tests/unit/Logger/Adapter/Noop/SetFormatterCest.php b/tests/unit/Logger/Adapter/Noop/SetFormatterCest.php index e1c0cb4006d..3f062818801 100644 --- a/tests/unit/Logger/Adapter/Noop/SetFormatterCest.php +++ b/tests/unit/Logger/Adapter/Noop/SetFormatterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetFormatterCest /** * Tests Phalcon\Logger\Adapter\Noop :: setFormatter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loggerAdapterNoopSetFormatter(UnitTester $I) diff --git a/tests/unit/Logger/Adapter/Stream/AddCest.php b/tests/unit/Logger/Adapter/Stream/AddCest.php index 29edfb85c6e..e1dcf8de090 100644 --- a/tests/unit/Logger/Adapter/Stream/AddCest.php +++ b/tests/unit/Logger/Adapter/Stream/AddCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Logger/Adapter/Stream/BeginCest.php b/tests/unit/Logger/Adapter/Stream/BeginCest.php index 985b6b49238..1bebab3c7a1 100644 --- a/tests/unit/Logger/Adapter/Stream/BeginCest.php +++ b/tests/unit/Logger/Adapter/Stream/BeginCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Logger/Adapter/Stream/CloseCest.php b/tests/unit/Logger/Adapter/Stream/CloseCest.php index ac154586a8e..20061040452 100644 --- a/tests/unit/Logger/Adapter/Stream/CloseCest.php +++ b/tests/unit/Logger/Adapter/Stream/CloseCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Logger/Adapter/Stream/CommitCest.php b/tests/unit/Logger/Adapter/Stream/CommitCest.php index 2880f94e1bb..47c43c0e5a6 100644 --- a/tests/unit/Logger/Adapter/Stream/CommitCest.php +++ b/tests/unit/Logger/Adapter/Stream/CommitCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Logger/Adapter/Stream/GetFormatterCest.php b/tests/unit/Logger/Adapter/Stream/GetFormatterCest.php index 640b9442cff..81f82b51a2a 100644 --- a/tests/unit/Logger/Adapter/Stream/GetFormatterCest.php +++ b/tests/unit/Logger/Adapter/Stream/GetFormatterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Logger/Adapter/Stream/GetNameCest.php b/tests/unit/Logger/Adapter/Stream/GetNameCest.php index c298dd61a17..fcfaab1980a 100644 --- a/tests/unit/Logger/Adapter/Stream/GetNameCest.php +++ b/tests/unit/Logger/Adapter/Stream/GetNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Logger/Adapter/Stream/InTransactionCest.php b/tests/unit/Logger/Adapter/Stream/InTransactionCest.php index 92acb7259d8..ebce04df4a6 100644 --- a/tests/unit/Logger/Adapter/Stream/InTransactionCest.php +++ b/tests/unit/Logger/Adapter/Stream/InTransactionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Logger/Adapter/Stream/ProcessCest.php b/tests/unit/Logger/Adapter/Stream/ProcessCest.php index b2e0a6e37ca..41d65a8a5f4 100644 --- a/tests/unit/Logger/Adapter/Stream/ProcessCest.php +++ b/tests/unit/Logger/Adapter/Stream/ProcessCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Logger/Adapter/Stream/RollbackCest.php b/tests/unit/Logger/Adapter/Stream/RollbackCest.php index 69bc68240fa..0a1a9af1979 100644 --- a/tests/unit/Logger/Adapter/Stream/RollbackCest.php +++ b/tests/unit/Logger/Adapter/Stream/RollbackCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Logger/Adapter/Stream/SetFormatterCest.php b/tests/unit/Logger/Adapter/Stream/SetFormatterCest.php index 1650a614033..55e4d379b0b 100644 --- a/tests/unit/Logger/Adapter/Stream/SetFormatterCest.php +++ b/tests/unit/Logger/Adapter/Stream/SetFormatterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Logger/Adapter/Syslog/AddCest.php b/tests/unit/Logger/Adapter/Syslog/AddCest.php index 5d20758e2ab..0cdad4eea99 100644 --- a/tests/unit/Logger/Adapter/Syslog/AddCest.php +++ b/tests/unit/Logger/Adapter/Syslog/AddCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -35,7 +35,7 @@ class AddCest /** * Tests Phalcon\Logger\Adapter\Syslog :: add() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loggerAdapterSyslogAdd(UnitTester $I) diff --git a/tests/unit/Logger/Adapter/Syslog/BeginCest.php b/tests/unit/Logger/Adapter/Syslog/BeginCest.php index 8a36f5c4990..92346c9c05c 100644 --- a/tests/unit/Logger/Adapter/Syslog/BeginCest.php +++ b/tests/unit/Logger/Adapter/Syslog/BeginCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class BeginCest /** * Tests Phalcon\Logger\Adapter\Syslog :: begin() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loggerAdapterSyslogBegin(UnitTester $I) diff --git a/tests/unit/Logger/Adapter/Syslog/CloseCest.php b/tests/unit/Logger/Adapter/Syslog/CloseCest.php index 9afdd46035d..a34d82d7de9 100644 --- a/tests/unit/Logger/Adapter/Syslog/CloseCest.php +++ b/tests/unit/Logger/Adapter/Syslog/CloseCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class CloseCest /** * Tests Phalcon\Logger\Adapter\Syslog :: close() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loggerAdapterSyslogClose(UnitTester $I) diff --git a/tests/unit/Logger/Adapter/Syslog/CommitCest.php b/tests/unit/Logger/Adapter/Syslog/CommitCest.php index d7ba5094f70..0c8dea9f12e 100644 --- a/tests/unit/Logger/Adapter/Syslog/CommitCest.php +++ b/tests/unit/Logger/Adapter/Syslog/CommitCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class CommitCest /** * Tests Phalcon\Logger\Adapter\Syslog :: commit() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loggerAdapterSyslogCommit(UnitTester $I) @@ -48,7 +48,7 @@ public function loggerAdapterSyslogCommit(UnitTester $I) /** * Tests Phalcon\Logger\Adapter\Syslog :: commit() - no transaction * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loggerAdapterSyslogCommitNoTransaction(UnitTester $I) diff --git a/tests/unit/Logger/Adapter/Syslog/GetFormatterCest.php b/tests/unit/Logger/Adapter/Syslog/GetFormatterCest.php index 54a85e090a0..d130a52a8f3 100644 --- a/tests/unit/Logger/Adapter/Syslog/GetFormatterCest.php +++ b/tests/unit/Logger/Adapter/Syslog/GetFormatterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetFormatterCest /** * Tests Phalcon\Logger\Adapter\Syslog :: getFormatter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loggerAdapterSyslogGetFormatter(UnitTester $I) diff --git a/tests/unit/Logger/Adapter/Syslog/InTransactionCest.php b/tests/unit/Logger/Adapter/Syslog/InTransactionCest.php index d7f3416019f..599d01d8884 100644 --- a/tests/unit/Logger/Adapter/Syslog/InTransactionCest.php +++ b/tests/unit/Logger/Adapter/Syslog/InTransactionCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class InTransactionCest /** * Tests Phalcon\Logger\Adapter\Syslog :: inTransaction() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loggerAdapterSyslogInTransaction(UnitTester $I) diff --git a/tests/unit/Logger/Adapter/Syslog/ProcessCest.php b/tests/unit/Logger/Adapter/Syslog/ProcessCest.php index 2fbfe7da7a2..c92e6751e42 100644 --- a/tests/unit/Logger/Adapter/Syslog/ProcessCest.php +++ b/tests/unit/Logger/Adapter/Syslog/ProcessCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ProcessCest /** * Tests Phalcon\Logger\Adapter\Syslog :: process() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loggerAdapterSyslogProcess(UnitTester $I) diff --git a/tests/unit/Logger/Adapter/Syslog/RollbackCest.php b/tests/unit/Logger/Adapter/Syslog/RollbackCest.php index 737ae05ef8f..3366f82db76 100644 --- a/tests/unit/Logger/Adapter/Syslog/RollbackCest.php +++ b/tests/unit/Logger/Adapter/Syslog/RollbackCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class RollbackCest /** * Tests Phalcon\Logger\Adapter\Syslog :: rollback() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loggerAdapterSyslogRollback(UnitTester $I) diff --git a/tests/unit/Logger/Adapter/Syslog/SetFormatterCest.php b/tests/unit/Logger/Adapter/Syslog/SetFormatterCest.php index 96f0f536ec6..9a139f5633e 100644 --- a/tests/unit/Logger/Adapter/Syslog/SetFormatterCest.php +++ b/tests/unit/Logger/Adapter/Syslog/SetFormatterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class SetFormatterCest /** * Tests Phalcon\Logger\Adapter\Syslog :: setFormatter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loggerAdapterSyslogSetFormatter(UnitTester $I) diff --git a/tests/unit/Logger/AdapterFactory/NewInstanceCest.php b/tests/unit/Logger/AdapterFactory/NewInstanceCest.php index 25494bc9cb1..0440ae14bd4 100644 --- a/tests/unit/Logger/AdapterFactory/NewInstanceCest.php +++ b/tests/unit/Logger/AdapterFactory/NewInstanceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class NewInstanceCest /** * Tests Phalcon\Logger\AdapterFactory :: newInstance() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-20 */ public function loggerAdapterFactoryNewInstance(UnitTester $I) diff --git a/tests/unit/Logger/Formatter/Json/FormatCest.php b/tests/unit/Logger/Formatter/Json/FormatCest.php index ddcdc5a853b..5799cef95a9 100644 --- a/tests/unit/Logger/Formatter/Json/FormatCest.php +++ b/tests/unit/Logger/Formatter/Json/FormatCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class FormatCest /** * Tests Phalcon\Logger\Formatter\Json :: format() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loggerFormatterJsonFormat(UnitTester $I) @@ -56,7 +56,7 @@ public function loggerFormatterJsonFormat(UnitTester $I) /** * Tests Phalcon\Logger\Formatter\Json :: format() -custom * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loggerFormatterJsonFormatCustom(UnitTester $I) diff --git a/tests/unit/Logger/Formatter/Json/GetDateFormatCest.php b/tests/unit/Logger/Formatter/Json/GetDateFormatCest.php index 0dcd9f9e7b9..925b746a812 100644 --- a/tests/unit/Logger/Formatter/Json/GetDateFormatCest.php +++ b/tests/unit/Logger/Formatter/Json/GetDateFormatCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetDateFormatCest /** * Tests Phalcon\Logger\Formatter\Json :: getDateFormat() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loggerFormatterJsonGetDateFormat(UnitTester $I) diff --git a/tests/unit/Logger/Formatter/Json/InterpolateCest.php b/tests/unit/Logger/Formatter/Json/InterpolateCest.php index d4c568e6ebe..809f3b88a6d 100644 --- a/tests/unit/Logger/Formatter/Json/InterpolateCest.php +++ b/tests/unit/Logger/Formatter/Json/InterpolateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class InterpolateCest /** * Tests Phalcon\Logger\Formatter\Json :: interpolate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loggerFormatterJsonInterpolate(UnitTester $I) @@ -45,7 +45,7 @@ public function loggerFormatterJsonInterpolate(UnitTester $I) /** * Tests Phalcon\Logger\Formatter\Json :: interpolate() - format * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loggerFormatterJsonInterpolateFormat(UnitTester $I) diff --git a/tests/unit/Logger/Formatter/Json/SetDateFormatCest.php b/tests/unit/Logger/Formatter/Json/SetDateFormatCest.php index c64e5e7f5cd..018017bcccd 100644 --- a/tests/unit/Logger/Formatter/Json/SetDateFormatCest.php +++ b/tests/unit/Logger/Formatter/Json/SetDateFormatCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetDateFormatCest /** * Tests Phalcon\Logger\Formatter\Json :: setDateFormat() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loggerFormatterJsonSetDateFormat(UnitTester $I) diff --git a/tests/unit/Logger/Formatter/Line/FormatCest.php b/tests/unit/Logger/Formatter/Line/FormatCest.php index b87ae9a2b14..fe5a180b191 100644 --- a/tests/unit/Logger/Formatter/Line/FormatCest.php +++ b/tests/unit/Logger/Formatter/Line/FormatCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class FormatCest /** * Tests Phalcon\Logger\Formatter\Line :: format() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loggerFormatterLineFormat(UnitTester $I) @@ -52,7 +52,7 @@ public function loggerFormatterLineFormat(UnitTester $I) /** * Tests Phalcon\Logger\Formatter\Line :: format() -custom * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loggerFormatterLineFormatCustom(UnitTester $I) diff --git a/tests/unit/Logger/Formatter/Line/GetDateFormatCest.php b/tests/unit/Logger/Formatter/Line/GetDateFormatCest.php index 883f2ce7fd4..6b09a710519 100644 --- a/tests/unit/Logger/Formatter/Line/GetDateFormatCest.php +++ b/tests/unit/Logger/Formatter/Line/GetDateFormatCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Logger/Formatter/Line/GetFormatCest.php b/tests/unit/Logger/Formatter/Line/GetFormatCest.php index b07be2c8896..6d64c012470 100644 --- a/tests/unit/Logger/Formatter/Line/GetFormatCest.php +++ b/tests/unit/Logger/Formatter/Line/GetFormatCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetFormatCest /** * Tests Phalcon\Logger\Formatter\Line :: getFormat() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loggerFormatterLineGetFormat(UnitTester $I) diff --git a/tests/unit/Logger/Formatter/Line/InterpolateCest.php b/tests/unit/Logger/Formatter/Line/InterpolateCest.php index 6049f323f0a..261ad4daeef 100644 --- a/tests/unit/Logger/Formatter/Line/InterpolateCest.php +++ b/tests/unit/Logger/Formatter/Line/InterpolateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class InterpolateCest /** * Tests Phalcon\Logger\Formatter\Line :: interpolate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loggerFormatterLineInterpolate(UnitTester $I) @@ -45,7 +45,7 @@ public function loggerFormatterLineInterpolate(UnitTester $I) /** * Tests Phalcon\Logger\Formatter\Line :: interpolate() - format * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loggerFormatterLineInterpolateFormat(UnitTester $I) diff --git a/tests/unit/Logger/Formatter/Line/SetDateFormatCest.php b/tests/unit/Logger/Formatter/Line/SetDateFormatCest.php index 33d0e17e95a..1cad96be7b7 100644 --- a/tests/unit/Logger/Formatter/Line/SetDateFormatCest.php +++ b/tests/unit/Logger/Formatter/Line/SetDateFormatCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Logger/Formatter/Line/SetFormatCest.php b/tests/unit/Logger/Formatter/Line/SetFormatCest.php index b8b402515c1..9d6de96e596 100644 --- a/tests/unit/Logger/Formatter/Line/SetFormatCest.php +++ b/tests/unit/Logger/Formatter/Line/SetFormatCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Logger/Formatter/Syslog/FormatCest.php b/tests/unit/Logger/Formatter/Syslog/FormatCest.php index c081a611f9c..6d00ee15a31 100644 --- a/tests/unit/Logger/Formatter/Syslog/FormatCest.php +++ b/tests/unit/Logger/Formatter/Syslog/FormatCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Logger/Formatter/Syslog/InterpolateCest.php b/tests/unit/Logger/Formatter/Syslog/InterpolateCest.php index ab0057e398f..ae775fe790b 100644 --- a/tests/unit/Logger/Formatter/Syslog/InterpolateCest.php +++ b/tests/unit/Logger/Formatter/Syslog/InterpolateCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class InterpolateCest /** * Tests Phalcon\Logger\Formatter\Syslog :: interpolate() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loggerFormatterSyslogInterpolate(UnitTester $I) @@ -45,7 +45,7 @@ public function loggerFormatterSyslogInterpolate(UnitTester $I) /** * Tests Phalcon\Logger\Formatter\Syslog :: interpolate() - format * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loggerFormatterSyslogInterpolateFormat(UnitTester $I) diff --git a/tests/unit/Logger/Item/GetContextCest.php b/tests/unit/Logger/Item/GetContextCest.php index 3e9b41cacd5..7619028517c 100644 --- a/tests/unit/Logger/Item/GetContextCest.php +++ b/tests/unit/Logger/Item/GetContextCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Logger/Item/GetMessageCest.php b/tests/unit/Logger/Item/GetMessageCest.php index c0552a5aa51..0cf71269b2c 100644 --- a/tests/unit/Logger/Item/GetMessageCest.php +++ b/tests/unit/Logger/Item/GetMessageCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Logger/Item/GetNameCest.php b/tests/unit/Logger/Item/GetNameCest.php index eff96b83549..f98f23e9ee2 100644 --- a/tests/unit/Logger/Item/GetNameCest.php +++ b/tests/unit/Logger/Item/GetNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetNameCest /** * Tests Phalcon\Logger\Item :: getName() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loggerItemGetName(UnitTester $I) diff --git a/tests/unit/Logger/Item/GetTimeCest.php b/tests/unit/Logger/Item/GetTimeCest.php index 02323930c7e..3aa2a04ed2c 100644 --- a/tests/unit/Logger/Item/GetTimeCest.php +++ b/tests/unit/Logger/Item/GetTimeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Logger/Item/GetTypeCest.php b/tests/unit/Logger/Item/GetTypeCest.php index f85c95c2fd9..592b4537571 100644 --- a/tests/unit/Logger/Item/GetTypeCest.php +++ b/tests/unit/Logger/Item/GetTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Logger/Logger/AddAdapterCest.php b/tests/unit/Logger/Logger/AddAdapterCest.php index 3d49f6a362b..da4a7115270 100644 --- a/tests/unit/Logger/Logger/AddAdapterCest.php +++ b/tests/unit/Logger/Logger/AddAdapterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Logger/Logger/AlertCest.php b/tests/unit/Logger/Logger/AlertCest.php index 3eadad4d59c..5937410de8b 100644 --- a/tests/unit/Logger/Logger/AlertCest.php +++ b/tests/unit/Logger/Logger/AlertCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Logger/Logger/ConstructCest.php b/tests/unit/Logger/Logger/ConstructCest.php index 5f68e236853..fc9f4e2d940 100644 --- a/tests/unit/Logger/Logger/ConstructCest.php +++ b/tests/unit/Logger/Logger/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -42,7 +42,7 @@ public function loggerConstructImplementPsr(UnitTester $I) /** * Tests Phalcon\Logger :: __construct() - constants * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function loggerConstructConstants(UnitTester $I) diff --git a/tests/unit/Logger/Logger/CriticalCest.php b/tests/unit/Logger/Logger/CriticalCest.php index 321e19e0637..07bb26debd9 100644 --- a/tests/unit/Logger/Logger/CriticalCest.php +++ b/tests/unit/Logger/Logger/CriticalCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Logger/Logger/DebugCest.php b/tests/unit/Logger/Logger/DebugCest.php index 8c63e6018f9..6e0931ccd97 100644 --- a/tests/unit/Logger/Logger/DebugCest.php +++ b/tests/unit/Logger/Logger/DebugCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Logger/Logger/EmergencyCest.php b/tests/unit/Logger/Logger/EmergencyCest.php index 10c2d7bea5a..e259c5541d6 100644 --- a/tests/unit/Logger/Logger/EmergencyCest.php +++ b/tests/unit/Logger/Logger/EmergencyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Logger/Logger/ErrorCest.php b/tests/unit/Logger/Logger/ErrorCest.php index 74c4fc22423..6f8c346d46d 100644 --- a/tests/unit/Logger/Logger/ErrorCest.php +++ b/tests/unit/Logger/Logger/ErrorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Logger/Logger/ExcludeAdaptersCest.php b/tests/unit/Logger/Logger/ExcludeAdaptersCest.php index 1cbd375532a..cb20999649b 100644 --- a/tests/unit/Logger/Logger/ExcludeAdaptersCest.php +++ b/tests/unit/Logger/Logger/ExcludeAdaptersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Logger/Logger/GetAdapterCest.php b/tests/unit/Logger/Logger/GetAdapterCest.php index 0e633f739d0..0bff3fcc13b 100644 --- a/tests/unit/Logger/Logger/GetAdapterCest.php +++ b/tests/unit/Logger/Logger/GetAdapterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Logger/Logger/GetAdaptersCest.php b/tests/unit/Logger/Logger/GetAdaptersCest.php index 27d424db95e..ec55088807d 100644 --- a/tests/unit/Logger/Logger/GetAdaptersCest.php +++ b/tests/unit/Logger/Logger/GetAdaptersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Logger/Logger/GetNameCest.php b/tests/unit/Logger/Logger/GetNameCest.php index 906af1eb72c..680787b4684 100644 --- a/tests/unit/Logger/Logger/GetNameCest.php +++ b/tests/unit/Logger/Logger/GetNameCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Logger/Logger/InfoCest.php b/tests/unit/Logger/Logger/InfoCest.php index 30bd39b6a80..650da5c1411 100644 --- a/tests/unit/Logger/Logger/InfoCest.php +++ b/tests/unit/Logger/Logger/InfoCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Logger/Logger/LogCest.php b/tests/unit/Logger/Logger/LogCest.php index 632a2d24e18..3abd57b142b 100644 --- a/tests/unit/Logger/Logger/LogCest.php +++ b/tests/unit/Logger/Logger/LogCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Logger/Logger/NoticeCest.php b/tests/unit/Logger/Logger/NoticeCest.php index 02e545c80b7..39bbca2ceed 100644 --- a/tests/unit/Logger/Logger/NoticeCest.php +++ b/tests/unit/Logger/Logger/NoticeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Logger/Logger/RemoveAdapterCest.php b/tests/unit/Logger/Logger/RemoveAdapterCest.php index 8bcd3f6923f..ea2b21ddd76 100644 --- a/tests/unit/Logger/Logger/RemoveAdapterCest.php +++ b/tests/unit/Logger/Logger/RemoveAdapterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Logger/Logger/SetAdaptersCest.php b/tests/unit/Logger/Logger/SetAdaptersCest.php index 2914b113d10..58c5763c839 100644 --- a/tests/unit/Logger/Logger/SetAdaptersCest.php +++ b/tests/unit/Logger/Logger/SetAdaptersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Logger/Logger/WarningCest.php b/tests/unit/Logger/Logger/WarningCest.php index 9da8e865b90..3773e8a86f9 100644 --- a/tests/unit/Logger/Logger/WarningCest.php +++ b/tests/unit/Logger/Logger/WarningCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Logger/LoggerFactory/LoadCest.php b/tests/unit/Logger/LoggerFactory/LoadCest.php index 34f7a1eb9bb..8c835bc318f 100644 --- a/tests/unit/Logger/LoggerFactory/LoadCest.php +++ b/tests/unit/Logger/LoggerFactory/LoadCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -30,7 +30,7 @@ public function _before(UnitTester $I) /** * Tests Phalcon\Logger\LoggerFactory :: load() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-20 */ public function loggerLoggerFactoryLoad(UnitTester $I) @@ -45,7 +45,7 @@ public function loggerLoggerFactoryLoad(UnitTester $I) /** * Tests Phalcon\Logger\LoggerFactory :: load() - array * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-20 */ public function loggerLoggerFactoryLoadArray(UnitTester $I) diff --git a/tests/unit/Logger/LoggerFactory/NewInstanceCest.php b/tests/unit/Logger/LoggerFactory/NewInstanceCest.php index 2c975800e20..b287362988f 100644 --- a/tests/unit/Logger/LoggerFactory/NewInstanceCest.php +++ b/tests/unit/Logger/LoggerFactory/NewInstanceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class NewInstanceCest /** * Tests Phalcon\Logger\LoggerFactory :: newInstance() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-03 */ public function loggerLoggerFactoryNewInstance(UnitTester $I) diff --git a/tests/unit/Messages/Message/ConstructCest.php b/tests/unit/Messages/Message/ConstructCest.php index 78f7d648aae..dda34b63faf 100644 --- a/tests/unit/Messages/Message/ConstructCest.php +++ b/tests/unit/Messages/Message/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Messages\Message :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function messagesMessageConstruct(UnitTester $I) @@ -60,7 +60,7 @@ public function messagesMessageConstruct(UnitTester $I) /** * Tests Phalcon\Messages\Message :: __construct() - chain * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function messagesMessageConstructChain(UnitTester $I) @@ -99,7 +99,7 @@ public function messagesMessageConstructChain(UnitTester $I) /** * Tests Phalcon\Messages\Message :: __construct() - exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function messagesMessageConstructException(UnitTester $I) diff --git a/tests/unit/Messages/Message/GetSetCodeCest.php b/tests/unit/Messages/Message/GetSetCodeCest.php index 240ee75a0ef..b19a4825d52 100644 --- a/tests/unit/Messages/Message/GetSetCodeCest.php +++ b/tests/unit/Messages/Message/GetSetCodeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetSetCodeCest /** * Tests Phalcon\Messages\Message :: getCode()/setCode() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function messagesMessageGetSetCode(UnitTester $I) diff --git a/tests/unit/Messages/Message/GetSetFieldCest.php b/tests/unit/Messages/Message/GetSetFieldCest.php index 8852d9c0633..cd06b457768 100644 --- a/tests/unit/Messages/Message/GetSetFieldCest.php +++ b/tests/unit/Messages/Message/GetSetFieldCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetSetFieldCest /** * Tests Phalcon\Messages\Message :: getField()/setField() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function messagesMessageGetSetField(UnitTester $I) diff --git a/tests/unit/Messages/Message/GetSetMessageCest.php b/tests/unit/Messages/Message/GetSetMessageCest.php index 4e947c7ff1d..2462491a5a1 100644 --- a/tests/unit/Messages/Message/GetSetMessageCest.php +++ b/tests/unit/Messages/Message/GetSetMessageCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetSetMessageCest /** * Tests Phalcon\Messages\Message :: getMessage()/setMessage() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function messagesMessageGetSetMessage(UnitTester $I) diff --git a/tests/unit/Messages/Message/GetSetMetaDataCest.php b/tests/unit/Messages/Message/GetSetMetaDataCest.php index 936a0854fb9..765925c5bb5 100644 --- a/tests/unit/Messages/Message/GetSetMetaDataCest.php +++ b/tests/unit/Messages/Message/GetSetMetaDataCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetSetMetaDataCest /** * Tests Phalcon\Messages\Message :: getMetaData()/setMetaData() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-02-10 */ public function messagesMessageGetSetMetaData(UnitTester $I) diff --git a/tests/unit/Messages/Message/GetSetTypeCest.php b/tests/unit/Messages/Message/GetSetTypeCest.php index 6f974a546fc..ce6e442fa27 100644 --- a/tests/unit/Messages/Message/GetSetTypeCest.php +++ b/tests/unit/Messages/Message/GetSetTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetSetTypeCest /** * Tests Phalcon\Messages\Message :: getType()/setType() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function messagesMessageGetSetType(UnitTester $I) diff --git a/tests/unit/Messages/Message/JsonSerializeCest.php b/tests/unit/Messages/Message/JsonSerializeCest.php index c0f170e5e40..9dfb0e29bab 100644 --- a/tests/unit/Messages/Message/JsonSerializeCest.php +++ b/tests/unit/Messages/Message/JsonSerializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class JsonSerializeCest /** * Tests Phalcon\Messages\Message :: jsonSerialize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function messagesMessageJsonSerialize(UnitTester $I) diff --git a/tests/unit/Messages/Message/ToStringCest.php b/tests/unit/Messages/Message/ToStringCest.php index 1d02d678a82..c817f8b5021 100644 --- a/tests/unit/Messages/Message/ToStringCest.php +++ b/tests/unit/Messages/Message/ToStringCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ToStringCest /** * Tests Phalcon\Messages\Message :: __toString() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function messagesMessageToString(UnitTester $I) @@ -43,7 +43,7 @@ public function messagesMessageToString(UnitTester $I) /** * Tests Phalcon\Messages\Message :: __toString() - cast * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function messagesMessageToStringCast(UnitTester $I) diff --git a/tests/unit/Messages/Messages/AppendMessageCest.php b/tests/unit/Messages/Messages/AppendMessageCest.php index c18a95678ef..84b19de9f2a 100644 --- a/tests/unit/Messages/Messages/AppendMessageCest.php +++ b/tests/unit/Messages/Messages/AppendMessageCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class AppendMessageCest /** * Tests Phalcon\Messages\Messages :: appendMessage() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function messagesMessagesAppendMessage(UnitTester $I) diff --git a/tests/unit/Messages/Messages/AppendMessagesCest.php b/tests/unit/Messages/Messages/AppendMessagesCest.php index c9b46231cca..5c210f299e3 100644 --- a/tests/unit/Messages/Messages/AppendMessagesCest.php +++ b/tests/unit/Messages/Messages/AppendMessagesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class AppendMessagesCest /** * Tests Phalcon\Messages\Messages :: appendMessages() - array * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function messagesMessagesAppendMessagesArray(UnitTester $I) @@ -72,7 +72,7 @@ public function messagesMessagesAppendMessagesArray(UnitTester $I) /** * Tests Phalcon\Messages\Messages :: __construct() - exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function messagesMessagesConstructException(UnitTester $I) diff --git a/tests/unit/Messages/Messages/ConstructCest.php b/tests/unit/Messages/Messages/ConstructCest.php index 4f79189e21e..ed7a1125525 100644 --- a/tests/unit/Messages/Messages/ConstructCest.php +++ b/tests/unit/Messages/Messages/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ConstructCest /** * Tests Phalcon\Messages\Messages :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function messagesMessagesConstruct(UnitTester $I) diff --git a/tests/unit/Messages/Messages/CountCest.php b/tests/unit/Messages/Messages/CountCest.php index 70410ef6c1f..bc1413b9237 100644 --- a/tests/unit/Messages/Messages/CountCest.php +++ b/tests/unit/Messages/Messages/CountCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class CountCest /** * Tests Phalcon\Messages\Messages :: count() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function messagesMessagesCount(UnitTester $I) diff --git a/tests/unit/Messages/Messages/CurrentCest.php b/tests/unit/Messages/Messages/CurrentCest.php index 5465e9c6880..8b3e4e7fcdc 100644 --- a/tests/unit/Messages/Messages/CurrentCest.php +++ b/tests/unit/Messages/Messages/CurrentCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class CurrentCest /** * Tests Phalcon\Messages\Messages :: current() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function messagesMessagesCurrent(UnitTester $I) diff --git a/tests/unit/Messages/Messages/FilterCest.php b/tests/unit/Messages/Messages/FilterCest.php index 84ed788514b..dc8da347bc0 100644 --- a/tests/unit/Messages/Messages/FilterCest.php +++ b/tests/unit/Messages/Messages/FilterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class FilterCest /** * Tests Phalcon\Messages\Messages :: filter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function messagesMessagesFilter(UnitTester $I) diff --git a/tests/unit/Messages/Messages/JsonSerializeCest.php b/tests/unit/Messages/Messages/JsonSerializeCest.php index f66116c0f8c..758d3872532 100644 --- a/tests/unit/Messages/Messages/JsonSerializeCest.php +++ b/tests/unit/Messages/Messages/JsonSerializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class JsonSerializeCest /** * Tests Phalcon\Messages\Messages :: jsonSerialize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function messagesMessagesJsonSerialize(UnitTester $I) diff --git a/tests/unit/Messages/Messages/KeyCest.php b/tests/unit/Messages/Messages/KeyCest.php index e359c3ebff1..185eae7e677 100644 --- a/tests/unit/Messages/Messages/KeyCest.php +++ b/tests/unit/Messages/Messages/KeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class KeyCest /** * Tests Phalcon\Messages\Messages :: key() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function messagesMessagesKey(UnitTester $I) diff --git a/tests/unit/Messages/Messages/NextCest.php b/tests/unit/Messages/Messages/NextCest.php index f3f43077793..64e6305fda5 100644 --- a/tests/unit/Messages/Messages/NextCest.php +++ b/tests/unit/Messages/Messages/NextCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class NextCest /** * Tests Phalcon\Messages\Messages :: next() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function messagesMessagesNext(UnitTester $I) diff --git a/tests/unit/Messages/Messages/OffsetExistsCest.php b/tests/unit/Messages/Messages/OffsetExistsCest.php index 6663df13cd6..847a8ef04c1 100644 --- a/tests/unit/Messages/Messages/OffsetExistsCest.php +++ b/tests/unit/Messages/Messages/OffsetExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class OffsetExistsCest /** * Tests Phalcon\Messages\Messages :: offsetExists() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function messagesMessagesOffsetExists(UnitTester $I) diff --git a/tests/unit/Messages/Messages/OffsetGetSetCest.php b/tests/unit/Messages/Messages/OffsetGetSetCest.php index 418a25d0068..feb81fa1697 100644 --- a/tests/unit/Messages/Messages/OffsetGetSetCest.php +++ b/tests/unit/Messages/Messages/OffsetGetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class OffsetGetSetCest /** * Tests Phalcon\Messages\Messages :: offsetGet()/offsetSet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function messagesMessagesOffsetGetSet(UnitTester $I) diff --git a/tests/unit/Messages/Messages/OffsetUnsetCest.php b/tests/unit/Messages/Messages/OffsetUnsetCest.php index 3370030608b..94df63e8d92 100644 --- a/tests/unit/Messages/Messages/OffsetUnsetCest.php +++ b/tests/unit/Messages/Messages/OffsetUnsetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class OffsetUnsetCest /** * Tests Phalcon\Messages\Messages :: offsetUnset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2017-02-12 */ public function messagesMessagesOffsetUnset(UnitTester $I) diff --git a/tests/unit/Messages/Messages/RewindCest.php b/tests/unit/Messages/Messages/RewindCest.php index 36da345970b..f158441e492 100644 --- a/tests/unit/Messages/Messages/RewindCest.php +++ b/tests/unit/Messages/Messages/RewindCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class RewindCest /** * Tests Phalcon\Messages\Messages :: rewind() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function messagesMessagesRewind(UnitTester $I) diff --git a/tests/unit/Messages/Messages/ValidCest.php b/tests/unit/Messages/Messages/ValidCest.php index c9436c3c707..79be80e48b9 100644 --- a/tests/unit/Messages/Messages/ValidCest.php +++ b/tests/unit/Messages/Messages/ValidCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ValidCest /** * Tests Phalcon\Messages\Messages :: valid() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function messagesMessagesValid(UnitTester $I) diff --git a/tests/unit/Registry/ClearCest.php b/tests/unit/Registry/ClearCest.php index 63dfe8687cf..7a465ce82ce 100644 --- a/tests/unit/Registry/ClearCest.php +++ b/tests/unit/Registry/ClearCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ClearCest /** * Tests Phalcon\Registry :: clear() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionClear(UnitTester $I) diff --git a/tests/unit/Registry/ConstructCest.php b/tests/unit/Registry/ConstructCest.php index 27c8f830b2a..38d11bac833 100644 --- a/tests/unit/Registry/ConstructCest.php +++ b/tests/unit/Registry/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ConstructCest /** * Tests Phalcon\Registry :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function registryConstruct(UnitTester $I) diff --git a/tests/unit/Registry/CountCest.php b/tests/unit/Registry/CountCest.php index e44573dd662..48f3f6578b3 100644 --- a/tests/unit/Registry/CountCest.php +++ b/tests/unit/Registry/CountCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class CountCest /** * Tests Phalcon\Registry :: count() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function registryCount(UnitTester $I) diff --git a/tests/unit/Registry/GetCest.php b/tests/unit/Registry/GetCest.php index 4ee91fe5442..169d3672dce 100644 --- a/tests/unit/Registry/GetCest.php +++ b/tests/unit/Registry/GetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetCest /** * Tests Phalcon\Registry :: get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionGet(UnitTester $I) diff --git a/tests/unit/Registry/GetIteratorCest.php b/tests/unit/Registry/GetIteratorCest.php index b642c40dbe9..f7d591401e9 100644 --- a/tests/unit/Registry/GetIteratorCest.php +++ b/tests/unit/Registry/GetIteratorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetIteratorCest /** * Tests Phalcon\Registry :: getIterator() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionGetIterator(UnitTester $I) diff --git a/tests/unit/Registry/HasCest.php b/tests/unit/Registry/HasCest.php index bf5637b0163..db0e32f6d87 100644 --- a/tests/unit/Registry/HasCest.php +++ b/tests/unit/Registry/HasCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class HasCest /** * Tests Phalcon\Registry :: has() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionHas(UnitTester $I) diff --git a/tests/unit/Registry/InitCest.php b/tests/unit/Registry/InitCest.php index 9326b990bd3..2e577828d25 100644 --- a/tests/unit/Registry/InitCest.php +++ b/tests/unit/Registry/InitCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class InitCest /** * Tests Phalcon\Registry :: init() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionInit(UnitTester $I) diff --git a/tests/unit/Registry/JsonSerializeCest.php b/tests/unit/Registry/JsonSerializeCest.php index 84d99ac0da4..e686688405c 100644 --- a/tests/unit/Registry/JsonSerializeCest.php +++ b/tests/unit/Registry/JsonSerializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class JsonSerializeCest /** * Tests Phalcon\Registry :: jsonSerialize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionJsonSerialize(UnitTester $I) diff --git a/tests/unit/Registry/OffsetExistsCest.php b/tests/unit/Registry/OffsetExistsCest.php index e7d45fee9ed..f766ceecca9 100644 --- a/tests/unit/Registry/OffsetExistsCest.php +++ b/tests/unit/Registry/OffsetExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Registry/OffsetGetCest.php b/tests/unit/Registry/OffsetGetCest.php index 0b7821048f1..9d98c5f046e 100644 --- a/tests/unit/Registry/OffsetGetCest.php +++ b/tests/unit/Registry/OffsetGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Registry/OffsetSetCest.php b/tests/unit/Registry/OffsetSetCest.php index e719c09fbdb..bb6ca2aad6d 100644 --- a/tests/unit/Registry/OffsetSetCest.php +++ b/tests/unit/Registry/OffsetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Registry/OffsetUnsetCest.php b/tests/unit/Registry/OffsetUnsetCest.php index aa58ac3335a..cf501e384d2 100644 --- a/tests/unit/Registry/OffsetUnsetCest.php +++ b/tests/unit/Registry/OffsetUnsetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Registry/RemoveCest.php b/tests/unit/Registry/RemoveCest.php index 3d57fa05acb..94c953d8277 100644 --- a/tests/unit/Registry/RemoveCest.php +++ b/tests/unit/Registry/RemoveCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class RemoveCest /** * Tests Phalcon\Registry :: remove() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionRemove(UnitTester $I) diff --git a/tests/unit/Registry/SerializeCest.php b/tests/unit/Registry/SerializeCest.php index 5dfaa535d1e..bc3d227ae7c 100644 --- a/tests/unit/Registry/SerializeCest.php +++ b/tests/unit/Registry/SerializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SerializeCest /** * Tests Phalcon\Registry :: serialize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionSerialize(UnitTester $I) diff --git a/tests/unit/Registry/SetCest.php b/tests/unit/Registry/SetCest.php index 97e92c7bffe..ab85c8ddcbf 100644 --- a/tests/unit/Registry/SetCest.php +++ b/tests/unit/Registry/SetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetCest /** * Tests Phalcon\Registry :: set() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionSet(UnitTester $I) diff --git a/tests/unit/Registry/ToArrayCest.php b/tests/unit/Registry/ToArrayCest.php index c2d01e77ee4..de605092745 100644 --- a/tests/unit/Registry/ToArrayCest.php +++ b/tests/unit/Registry/ToArrayCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ToArrayCest /** * Tests Phalcon\Registry :: toArray() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionToArray(UnitTester $I) diff --git a/tests/unit/Registry/ToJsonCest.php b/tests/unit/Registry/ToJsonCest.php index 2d16255d918..2abfa99b9d9 100644 --- a/tests/unit/Registry/ToJsonCest.php +++ b/tests/unit/Registry/ToJsonCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ToJsonCest /** * Tests Phalcon\Registry :: toJson() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionToJson(UnitTester $I) diff --git a/tests/unit/Registry/UnderscoreGetCest.php b/tests/unit/Registry/UnderscoreGetCest.php index 9a24f2b06a5..8d9ba905731 100644 --- a/tests/unit/Registry/UnderscoreGetCest.php +++ b/tests/unit/Registry/UnderscoreGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Registry/UnderscoreIsSetCest.php b/tests/unit/Registry/UnderscoreIsSetCest.php index bb6ea4130c0..34461d5d4e0 100644 --- a/tests/unit/Registry/UnderscoreIsSetCest.php +++ b/tests/unit/Registry/UnderscoreIsSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Registry/UnderscoreSetCest.php b/tests/unit/Registry/UnderscoreSetCest.php index 493f9a22302..0b95317aae3 100644 --- a/tests/unit/Registry/UnderscoreSetCest.php +++ b/tests/unit/Registry/UnderscoreSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Registry/UnderscoreUnsetCest.php b/tests/unit/Registry/UnderscoreUnsetCest.php index b5370370274..04231ddfcf8 100644 --- a/tests/unit/Registry/UnderscoreUnsetCest.php +++ b/tests/unit/Registry/UnderscoreUnsetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Registry/UnserializeCest.php b/tests/unit/Registry/UnserializeCest.php index 2ef3ffcb5f3..de4badcd80e 100644 --- a/tests/unit/Registry/UnserializeCest.php +++ b/tests/unit/Registry/UnserializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class UnserializeCest /** * Tests Phalcon\Registry :: unserialize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function collectionUnserialize(UnitTester $I) diff --git a/tests/unit/Security/CheckHashCest.php b/tests/unit/Security/CheckHashCest.php index 738df998eb7..686b88d6d89 100644 --- a/tests/unit/Security/CheckHashCest.php +++ b/tests/unit/Security/CheckHashCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class CheckHashCest /** * Tests Phalcon\Security :: checkHash() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function securityCheckHash(UnitTester $I) diff --git a/tests/unit/Security/CheckTokenCest.php b/tests/unit/Security/CheckTokenCest.php index cf953b63c5e..89549388c69 100644 --- a/tests/unit/Security/CheckTokenCest.php +++ b/tests/unit/Security/CheckTokenCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -49,7 +49,7 @@ public function _after(UnitTester $I) /** * Tests Phalcon\Security :: checkToken() and destroyToken() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function securityCheckToken(UnitTester $I) diff --git a/tests/unit/Security/ComputeHmacCest.php b/tests/unit/Security/ComputeHmacCest.php index f7a6868a625..987707e6333 100644 --- a/tests/unit/Security/ComputeHmacCest.php +++ b/tests/unit/Security/ComputeHmacCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ComputeHmacCest /** * Tests the HMAC computation * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-12 * * @dataProvider securityComputeHmacProvider diff --git a/tests/unit/Security/ConstructCest.php b/tests/unit/Security/ConstructCest.php index 81503846ae7..961c1d8fc2b 100644 --- a/tests/unit/Security/ConstructCest.php +++ b/tests/unit/Security/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ConstructCest /** * Tests Phalcon\Security :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function securityConstruct(UnitTester $I) @@ -38,7 +38,7 @@ public function securityConstruct(UnitTester $I) /** * Tests the Security constants * - * @author Phalcon Team + * @author Phalcon Team * @since 2015-12-19 */ public function testSecurityConstants(UnitTester $I) diff --git a/tests/unit/Security/GetRandomCest.php b/tests/unit/Security/GetRandomCest.php index 05af63093fe..507226952e5 100644 --- a/tests/unit/Security/GetRandomCest.php +++ b/tests/unit/Security/GetRandomCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Security/GetRequestTokenCest.php b/tests/unit/Security/GetRequestTokenCest.php index 687dc196292..1797d0a75dd 100644 --- a/tests/unit/Security/GetRequestTokenCest.php +++ b/tests/unit/Security/GetRequestTokenCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -49,7 +49,7 @@ public function _after(UnitTester $I) /** * Tests Phalcon\Security :: getRequestToken() and getSessionToken() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function securityGetRequestTokenAndGetSessionToken(UnitTester $I) diff --git a/tests/unit/Security/GetSaltBytesCest.php b/tests/unit/Security/GetSaltBytesCest.php index 8b488fa4cfd..78d488a8a6c 100644 --- a/tests/unit/Security/GetSaltBytesCest.php +++ b/tests/unit/Security/GetSaltBytesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetSaltBytesCest /** * Tests Phalcon\Security :: getSaltBytes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function securityGetSaltBytes(UnitTester $I) diff --git a/tests/unit/Security/GetSetDefaultHashCest.php b/tests/unit/Security/GetSetDefaultHashCest.php index a31ebd2b889..8f9ea454cb0 100644 --- a/tests/unit/Security/GetSetDefaultHashCest.php +++ b/tests/unit/Security/GetSetDefaultHashCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetSetDefaultHashCest /** * Tests Phalcon\Security :: getDefaultHash() and setDefaultHash() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function securityGetSetDefaultHash(UnitTester $I) diff --git a/tests/unit/Security/GetSetRandomBytesCest.php b/tests/unit/Security/GetSetRandomBytesCest.php index 203da2b9c38..ec0f435feee 100644 --- a/tests/unit/Security/GetSetRandomBytesCest.php +++ b/tests/unit/Security/GetSetRandomBytesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetSetRandomBytesCest /** * Tests Phalcon\Security :: getRandomBytes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function securityGetRandomBytes(UnitTester $I) diff --git a/tests/unit/Security/GetSetWorkFactorCest.php b/tests/unit/Security/GetSetWorkFactorCest.php index 4b396c30c48..16f88f100d6 100644 --- a/tests/unit/Security/GetSetWorkFactorCest.php +++ b/tests/unit/Security/GetSetWorkFactorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Security/GetTokenAndKeyCest.php b/tests/unit/Security/GetTokenAndKeyCest.php index 300ca1da441..d33bd885968 100644 --- a/tests/unit/Security/GetTokenAndKeyCest.php +++ b/tests/unit/Security/GetTokenAndKeyCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -50,7 +50,7 @@ public function _after(UnitTester $I) * Tests Security::getToken() and Security::getTokenKey() for generating * only one token per request * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function securityGetToken(UnitTester $I) diff --git a/tests/unit/Security/HashCest.php b/tests/unit/Security/HashCest.php index e94d440d40f..5d4efb739b4 100644 --- a/tests/unit/Security/HashCest.php +++ b/tests/unit/Security/HashCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class HashCest /** * Tests Phalcon\Security :: hash() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function securityHash(UnitTester $I) diff --git a/tests/unit/Security/IsLegacyHashCest.php b/tests/unit/Security/IsLegacyHashCest.php index b82a9e06769..27c469ddcc6 100644 --- a/tests/unit/Security/IsLegacyHashCest.php +++ b/tests/unit/Security/IsLegacyHashCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Security/Random/Base58Cest.php b/tests/unit/Security/Random/Base58Cest.php index dad1a885eb1..74c8cfd62dc 100644 --- a/tests/unit/Security/Random/Base58Cest.php +++ b/tests/unit/Security/Random/Base58Cest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class Base58Cest /** * Tests Phalcon\Security\Random :: base58() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function securityRandomBase58(UnitTester $I) diff --git a/tests/unit/Security/Random/Base62Cest.php b/tests/unit/Security/Random/Base62Cest.php index 234923017c5..f4fdd8aa0fb 100644 --- a/tests/unit/Security/Random/Base62Cest.php +++ b/tests/unit/Security/Random/Base62Cest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class Base62Cest /** * Tests Phalcon\Security\Random :: base62() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function securityRandomBase62(UnitTester $I) diff --git a/tests/unit/Security/Random/Base64Cest.php b/tests/unit/Security/Random/Base64Cest.php index 0e8af1cca4b..8ebddb957c0 100644 --- a/tests/unit/Security/Random/Base64Cest.php +++ b/tests/unit/Security/Random/Base64Cest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class Base64Cest /** * Tests Phalcon\Security\Random :: base64() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider securityRandomBase64Provider diff --git a/tests/unit/Security/Random/Base64SafeCest.php b/tests/unit/Security/Random/Base64SafeCest.php index 90139993279..af3717761e2 100644 --- a/tests/unit/Security/Random/Base64SafeCest.php +++ b/tests/unit/Security/Random/Base64SafeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class Base64SafeCest /** * Tests Phalcon\Security\Random :: base64Safe() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider securityRandomBase64SafeProvider diff --git a/tests/unit/Security/Random/BytesCest.php b/tests/unit/Security/Random/BytesCest.php index 2f62da962dc..8d9d5c14580 100644 --- a/tests/unit/Security/Random/BytesCest.php +++ b/tests/unit/Security/Random/BytesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class BytesCest /** * Tests Phalcon\Security\Random :: bytes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function securityRandomBytes(UnitTester $I) diff --git a/tests/unit/Security/Random/HexCest.php b/tests/unit/Security/Random/HexCest.php index ce389cf6d72..6f2ad50842f 100644 --- a/tests/unit/Security/Random/HexCest.php +++ b/tests/unit/Security/Random/HexCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class HexCest /** * Tests Phalcon\Security\Random :: hex() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function securityRandomHex(UnitTester $I) diff --git a/tests/unit/Security/Random/NumberCest.php b/tests/unit/Security/Random/NumberCest.php index ecf3fb98130..a2a85f3a918 100644 --- a/tests/unit/Security/Random/NumberCest.php +++ b/tests/unit/Security/Random/NumberCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class NumberCest /** * Tests Phalcon\Security\Random :: number() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function securityRandomNumber(UnitTester $I) diff --git a/tests/unit/Security/Random/UuidCest.php b/tests/unit/Security/Random/UuidCest.php index baefcd96634..8b65ec8b56b 100644 --- a/tests/unit/Security/Random/UuidCest.php +++ b/tests/unit/Security/Random/UuidCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class UuidCest /** * Tests Phalcon\Security\Random :: uuid() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function securityRandomUuid(UnitTester $I) @@ -42,7 +42,7 @@ public function securityRandomUuid(UnitTester $I) /** * Tests Phalcon\Security\Random :: uuid() produces different results * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function securityRandomUuidDifferentResults(UnitTester $I) diff --git a/tests/unit/Session/ManagerCest.php b/tests/unit/Session/ManagerCest.php index a674bd8968a..7755524b1ba 100644 --- a/tests/unit/Session/ManagerCest.php +++ b/tests/unit/Session/ManagerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class ManagerCest /** * Tests Phalcon\Session\Manager :: start() * - * @author Phalcon Team + * @author Phalcon Team * @issue https://github.com/phalcon/cphalcon/issues/13718 * @since 2019-01-09 */ diff --git a/tests/unit/Storage/Adapter/Apcu/ClearCest.php b/tests/unit/Storage/Adapter/Apcu/ClearCest.php index bce1955036f..4660a2269cb 100644 --- a/tests/unit/Storage/Adapter/Apcu/ClearCest.php +++ b/tests/unit/Storage/Adapter/Apcu/ClearCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class ClearCest /** * Tests Phalcon\Storage\Adapter\Apcu :: clear() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterApcuClear(UnitTester $I) @@ -57,7 +57,7 @@ public function storageAdapterApcuClear(UnitTester $I) /** * Tests Phalcon\Storage\Adapter\Apcu :: clear() - twice * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterApcuClearTwice(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Apcu/ConstructCest.php b/tests/unit/Storage/Adapter/Apcu/ConstructCest.php index d71be86dcbd..be381fe2039 100644 --- a/tests/unit/Storage/Adapter/Apcu/ConstructCest.php +++ b/tests/unit/Storage/Adapter/Apcu/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class ConstructCest /** * Tests Phalcon\Storage\Adapter\Apcu :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-09 */ public function storageAdapterApcuConstruct(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Apcu/DecrementCest.php b/tests/unit/Storage/Adapter/Apcu/DecrementCest.php index e35d6dc48aa..8563e3ccf94 100644 --- a/tests/unit/Storage/Adapter/Apcu/DecrementCest.php +++ b/tests/unit/Storage/Adapter/Apcu/DecrementCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -28,7 +28,7 @@ class DecrementCest * @throws Exception * @since 2019-03-31 * - * @author Phalcon Team + * @author Phalcon Team */ public function storageAdapterApcuDecrement(UnitTester $I) { diff --git a/tests/unit/Storage/Adapter/Apcu/DeleteCest.php b/tests/unit/Storage/Adapter/Apcu/DeleteCest.php index d1314f3a6de..418c20c3558 100644 --- a/tests/unit/Storage/Adapter/Apcu/DeleteCest.php +++ b/tests/unit/Storage/Adapter/Apcu/DeleteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class DeleteCest /** * Tests Phalcon\Storage\Adapter\Apcu :: delete() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterApcuDelete(UnitTester $I) @@ -49,7 +49,7 @@ public function storageAdapterApcuDelete(UnitTester $I) /** * Tests Phalcon\Storage\Adapter\Apcu :: delete() - twice * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterApcuDeleteTwice(UnitTester $I) @@ -74,7 +74,7 @@ public function storageAdapterApcuDeleteTwice(UnitTester $I) /** * Tests Phalcon\Storage\Adapter\Apcu :: delete() - unknown * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterApcuDeleteUnknown(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Apcu/GetAdapterCest.php b/tests/unit/Storage/Adapter/Apcu/GetAdapterCest.php index 9da7e790ee0..9c94ad5c631 100644 --- a/tests/unit/Storage/Adapter/Apcu/GetAdapterCest.php +++ b/tests/unit/Storage/Adapter/Apcu/GetAdapterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class GetAdapterCest /** * Tests Phalcon\Storage\Adapter\Apcu :: getAdapter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-14 */ public function storageAdapterApcuGetAdapter(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Apcu/GetKeysCest.php b/tests/unit/Storage/Adapter/Apcu/GetKeysCest.php index 8508a595cf7..f4c2bb84622 100644 --- a/tests/unit/Storage/Adapter/Apcu/GetKeysCest.php +++ b/tests/unit/Storage/Adapter/Apcu/GetKeysCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class GetKeysCest /** * Tests Phalcon\Storage\Adapter\Apcu :: getKeys() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-13 */ public function storageAdapterApcuGetKeys(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Apcu/GetPrefixCest.php b/tests/unit/Storage/Adapter/Apcu/GetPrefixCest.php index 2640ca9756a..9ad4bbc909f 100644 --- a/tests/unit/Storage/Adapter/Apcu/GetPrefixCest.php +++ b/tests/unit/Storage/Adapter/Apcu/GetPrefixCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class GetPrefixCest /** * Tests Phalcon\Storage\Adapter\Apcu :: getPrefix() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterApcuGetSetPrefix(UnitTester $I) @@ -49,7 +49,7 @@ public function storageAdapterApcuGetSetPrefix(UnitTester $I) /** * Tests Phalcon\Storage\Adapter\Apcu :: getPrefix() - default * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterApcuGetSetPrefixDefault(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Apcu/GetSetCest.php b/tests/unit/Storage/Adapter/Apcu/GetSetCest.php index 29643e50918..ac0fcfd1f9a 100644 --- a/tests/unit/Storage/Adapter/Apcu/GetSetCest.php +++ b/tests/unit/Storage/Adapter/Apcu/GetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -28,7 +28,7 @@ class GetSetCest * * @dataProvider getExamples * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterApcuGetSet(UnitTester $I, Example $example) diff --git a/tests/unit/Storage/Adapter/Apcu/GetSetDefaultSerializerCest.php b/tests/unit/Storage/Adapter/Apcu/GetSetDefaultSerializerCest.php index 8b72cd0f7c7..7d5b7df3859 100644 --- a/tests/unit/Storage/Adapter/Apcu/GetSetDefaultSerializerCest.php +++ b/tests/unit/Storage/Adapter/Apcu/GetSetDefaultSerializerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class GetSetDefaultSerializerCest * Tests Phalcon\Storage\Adapter\Apcu :: * getDefaultSerializer()/setDefaultSerializer() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-13 */ public function storageAdapterApcuGetKeys(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Apcu/HasCest.php b/tests/unit/Storage/Adapter/Apcu/HasCest.php index 23f7b58d45e..54c7a5ad0ae 100644 --- a/tests/unit/Storage/Adapter/Apcu/HasCest.php +++ b/tests/unit/Storage/Adapter/Apcu/HasCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class HasCest /** * Tests Phalcon\Storage\Adapter\Apcu :: get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterApcuGetSetHas(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Apcu/IncrementCest.php b/tests/unit/Storage/Adapter/Apcu/IncrementCest.php index c40d52253a4..85e6d1105be 100644 --- a/tests/unit/Storage/Adapter/Apcu/IncrementCest.php +++ b/tests/unit/Storage/Adapter/Apcu/IncrementCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class IncrementCest /** * Tests Phalcon\Storage\Adapter\Apcu :: increment() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterApcuIncrement(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Libmemcached/ClearCest.php b/tests/unit/Storage/Adapter/Libmemcached/ClearCest.php index a6a59fba1bf..95df8baeba2 100644 --- a/tests/unit/Storage/Adapter/Libmemcached/ClearCest.php +++ b/tests/unit/Storage/Adapter/Libmemcached/ClearCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class ClearCest /** * Tests Phalcon\Storage\Adapter\Libmemcached :: clear() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterLibmemcachedClear(UnitTester $I) @@ -70,7 +70,7 @@ public function storageAdapterLibmemcachedClear(UnitTester $I) /** * Tests Phalcon\Storage\Adapter\Libmemcached :: clear() - twice * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterLibmemcachedClearTwice(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Libmemcached/ConstructCest.php b/tests/unit/Storage/Adapter/Libmemcached/ConstructCest.php index 0092f0cc3dc..9ebfdf88f79 100644 --- a/tests/unit/Storage/Adapter/Libmemcached/ConstructCest.php +++ b/tests/unit/Storage/Adapter/Libmemcached/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -28,7 +28,7 @@ class ConstructCest /** * Tests Phalcon\Storage\Adapter\Libmemcached :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-09 */ public function storageAdapterLibmemcachedConstruct(UnitTester $I) @@ -57,7 +57,7 @@ public function storageAdapterLibmemcachedConstruct(UnitTester $I) * Tests Phalcon\Storage\Adapter\Libmemcached :: __construct() - empty * options * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-09 */ public function storageAdapterLibmemcachedConstructEmptyOptions(UnitTester $I) @@ -90,7 +90,7 @@ public function storageAdapterLibmemcachedConstructEmptyOptions(UnitTester $I) * @throws Exception * @since 2019-04-09 * - * @author Phalcon Team + * @author Phalcon Team */ public function storageAdapterLibmemcachedConstructGetTtl(UnitTester $I) { diff --git a/tests/unit/Storage/Adapter/Libmemcached/DecrementCest.php b/tests/unit/Storage/Adapter/Libmemcached/DecrementCest.php index cde0842aa70..83cc40043d4 100644 --- a/tests/unit/Storage/Adapter/Libmemcached/DecrementCest.php +++ b/tests/unit/Storage/Adapter/Libmemcached/DecrementCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -29,7 +29,7 @@ class DecrementCest * @throws Exception * @since 2019-03-31 * - * @author Phalcon Team + * @author Phalcon Team */ public function storageAdapterLibmemcachedDecrement(UnitTester $I) { diff --git a/tests/unit/Storage/Adapter/Libmemcached/DeleteCest.php b/tests/unit/Storage/Adapter/Libmemcached/DeleteCest.php index 7a50a3a7cc5..f8aacaae7cd 100644 --- a/tests/unit/Storage/Adapter/Libmemcached/DeleteCest.php +++ b/tests/unit/Storage/Adapter/Libmemcached/DeleteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class DeleteCest /** * Tests Phalcon\Storage\Adapter\Libmemcached :: delete() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterLibmemcachedDelete(UnitTester $I) @@ -54,7 +54,7 @@ public function storageAdapterLibmemcachedDelete(UnitTester $I) /** * Tests Phalcon\Storage\Adapter\Libmemcached :: delete() - twice * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterLibmemcachedDeleteTwice(UnitTester $I) @@ -83,7 +83,7 @@ public function storageAdapterLibmemcachedDeleteTwice(UnitTester $I) /** * Tests Phalcon\Storage\Adapter\Libmemcached :: delete() - unknown * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterLibmemcachedDeleteUnknown(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Libmemcached/GetAdapterCest.php b/tests/unit/Storage/Adapter/Libmemcached/GetAdapterCest.php index 9323bd49538..39d3949a5f1 100644 --- a/tests/unit/Storage/Adapter/Libmemcached/GetAdapterCest.php +++ b/tests/unit/Storage/Adapter/Libmemcached/GetAdapterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class GetAdapterCest /** * Tests Phalcon\Storage\Adapter\Libmemcached :: getAdapter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-14 */ public function storageAdapterLibmemcachedGetAdapter(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Libmemcached/GetKeysCest.php b/tests/unit/Storage/Adapter/Libmemcached/GetKeysCest.php index 82ebcc72713..bcdd5dcce34 100644 --- a/tests/unit/Storage/Adapter/Libmemcached/GetKeysCest.php +++ b/tests/unit/Storage/Adapter/Libmemcached/GetKeysCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class GetKeysCest /** * Tests Phalcon\Storage\Adapter\Libmemcached :: getKeys() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-13 */ public function storageAdapterLibmemcachedGetKeys(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Libmemcached/GetPrefixCest.php b/tests/unit/Storage/Adapter/Libmemcached/GetPrefixCest.php index 7225ab112fa..92125a4d6e9 100644 --- a/tests/unit/Storage/Adapter/Libmemcached/GetPrefixCest.php +++ b/tests/unit/Storage/Adapter/Libmemcached/GetPrefixCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class GetPrefixCest /** * Tests Phalcon\Storage\Adapter\Libmemcached :: getPrefix() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterLibmemcachedGetSetPrefix(UnitTester $I) @@ -53,7 +53,7 @@ public function storageAdapterLibmemcachedGetSetPrefix(UnitTester $I) /** * Tests Phalcon\Storage\Adapter\Libmemcached :: getPrefix() - default * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterLibmemcachedGetSetPrefixDefault(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Libmemcached/GetSetCest.php b/tests/unit/Storage/Adapter/Libmemcached/GetSetCest.php index 047f195e88a..a339ff4a81f 100644 --- a/tests/unit/Storage/Adapter/Libmemcached/GetSetCest.php +++ b/tests/unit/Storage/Adapter/Libmemcached/GetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -33,7 +33,7 @@ class GetSetCest * @throws Exception * @since 2019-03-31 * - * @author Phalcon Team + * @author Phalcon Team */ public function storageAdapterLibmemcachedGetSet(UnitTester $I, Example $example) { @@ -67,7 +67,7 @@ public function storageAdapterLibmemcachedGetSet(UnitTester $I, Example $example * @throws Exception * @since 2019-04-29 * - * @author Phalcon Team + * @author Phalcon Team */ public function storageAdapterLibmemcachedGetSetCustomSerializer(UnitTester $I) { diff --git a/tests/unit/Storage/Adapter/Libmemcached/GetSetDefaultSerializerCest.php b/tests/unit/Storage/Adapter/Libmemcached/GetSetDefaultSerializerCest.php index 22780d556ce..1104357d2c9 100644 --- a/tests/unit/Storage/Adapter/Libmemcached/GetSetDefaultSerializerCest.php +++ b/tests/unit/Storage/Adapter/Libmemcached/GetSetDefaultSerializerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class GetSetDefaultSerializerCest * Tests Phalcon\Storage\Adapter\Libmemcached :: * getDefaultSerializer()/setDefaultSerializer() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-13 */ public function storageAdapterLibmemcachedGetKeys(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Libmemcached/HasCest.php b/tests/unit/Storage/Adapter/Libmemcached/HasCest.php index 05e8e07f4fb..e4904065020 100644 --- a/tests/unit/Storage/Adapter/Libmemcached/HasCest.php +++ b/tests/unit/Storage/Adapter/Libmemcached/HasCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class HasCest /** * Tests Phalcon\Storage\Adapter\Libmemcached :: get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterLibmemcachedGetSetHas(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Libmemcached/IncrementCest.php b/tests/unit/Storage/Adapter/Libmemcached/IncrementCest.php index b3f7db2332e..39fcc0d8adb 100644 --- a/tests/unit/Storage/Adapter/Libmemcached/IncrementCest.php +++ b/tests/unit/Storage/Adapter/Libmemcached/IncrementCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class IncrementCest /** * Tests Phalcon\Storage\Adapter\Libmemcached :: increment() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterLibmemcachedIncrement(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Memory/ClearCest.php b/tests/unit/Storage/Adapter/Memory/ClearCest.php index 0a89d642752..0926279056d 100644 --- a/tests/unit/Storage/Adapter/Memory/ClearCest.php +++ b/tests/unit/Storage/Adapter/Memory/ClearCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ClearCest /** * Tests Phalcon\Storage\Adapter\Memory :: clear() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterMemoryClear(UnitTester $I) @@ -54,7 +54,7 @@ public function storageAdapterMemoryClear(UnitTester $I) /** * Tests Phalcon\Storage\Adapter\Memory :: clear() - twice * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterMemoryClearTwice(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Memory/ConstructCest.php b/tests/unit/Storage/Adapter/Memory/ConstructCest.php index 4472f3f09c9..cebf1844977 100644 --- a/tests/unit/Storage/Adapter/Memory/ConstructCest.php +++ b/tests/unit/Storage/Adapter/Memory/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class ConstructCest /** * Tests Phalcon\Storage\Adapter\Memory :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-09 */ public function storageAdapterMemoryConstruct(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Memory/DecrementCest.php b/tests/unit/Storage/Adapter/Memory/DecrementCest.php index 05c32c9ee46..6971fc2efc1 100644 --- a/tests/unit/Storage/Adapter/Memory/DecrementCest.php +++ b/tests/unit/Storage/Adapter/Memory/DecrementCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class DecrementCest /** * Tests Phalcon\Storage\Adapter\Memory :: decrement() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterMemoryDecrement(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Memory/DeleteCest.php b/tests/unit/Storage/Adapter/Memory/DeleteCest.php index dc6c9cde364..0f327fef7b0 100644 --- a/tests/unit/Storage/Adapter/Memory/DeleteCest.php +++ b/tests/unit/Storage/Adapter/Memory/DeleteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class DeleteCest /** * Tests Phalcon\Storage\Adapter\Memory :: delete() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterMemoryDelete(UnitTester $I) @@ -46,7 +46,7 @@ public function storageAdapterMemoryDelete(UnitTester $I) /** * Tests Phalcon\Storage\Adapter\Memory :: delete() - twice * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterMemoryDeleteTwice(UnitTester $I) @@ -71,7 +71,7 @@ public function storageAdapterMemoryDeleteTwice(UnitTester $I) /** * Tests Phalcon\Storage\Adapter\Memory :: delete() - unknown * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterMemoryDeleteUnknown(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Memory/GetAdapterCest.php b/tests/unit/Storage/Adapter/Memory/GetAdapterCest.php index b5d7bc56263..ea11c39d416 100644 --- a/tests/unit/Storage/Adapter/Memory/GetAdapterCest.php +++ b/tests/unit/Storage/Adapter/Memory/GetAdapterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetAdapterCest /** * Tests Phalcon\Storage\Adapter\Memory :: getAdapter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-14 */ public function storageAdapterMemoryGetAdapter(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Memory/GetKeysCest.php b/tests/unit/Storage/Adapter/Memory/GetKeysCest.php index e2bc9899367..743e00fdaec 100644 --- a/tests/unit/Storage/Adapter/Memory/GetKeysCest.php +++ b/tests/unit/Storage/Adapter/Memory/GetKeysCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetKeysCest /** * Tests Phalcon\Storage\Adapter\Memory :: getKeys() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-13 */ public function storageAdapterMemoryGetKeys(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Memory/GetPrefixCest.php b/tests/unit/Storage/Adapter/Memory/GetPrefixCest.php index bc781ea140a..237c45b0be2 100644 --- a/tests/unit/Storage/Adapter/Memory/GetPrefixCest.php +++ b/tests/unit/Storage/Adapter/Memory/GetPrefixCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetPrefixCest /** * Tests Phalcon\Storage\Adapter\Memory :: getPrefix() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterMemoryGetSetPrefix(UnitTester $I) @@ -46,7 +46,7 @@ public function storageAdapterMemoryGetSetPrefix(UnitTester $I) /** * Tests Phalcon\Storage\Adapter\Memory :: getPrefix() - default * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterMemoryGetSetPrefixDefault(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Memory/GetSetCest.php b/tests/unit/Storage/Adapter/Memory/GetSetCest.php index 74ba311905b..d3d5121548e 100644 --- a/tests/unit/Storage/Adapter/Memory/GetSetCest.php +++ b/tests/unit/Storage/Adapter/Memory/GetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class GetSetCest * * @dataProvider getExamples * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterMemoryGetSet(UnitTester $I, Example $example) diff --git a/tests/unit/Storage/Adapter/Memory/GetSetDefaultSerializerCest.php b/tests/unit/Storage/Adapter/Memory/GetSetDefaultSerializerCest.php index 463652c0fee..f84c20c9cb9 100644 --- a/tests/unit/Storage/Adapter/Memory/GetSetDefaultSerializerCest.php +++ b/tests/unit/Storage/Adapter/Memory/GetSetDefaultSerializerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetSetDefaultSerializerCest * Tests Phalcon\Storage\Adapter\Memory :: * getDefaultSerializer()/setDefaultSerializer() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-13 */ public function storageAdapterMemoryGetKeys(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Memory/HasCest.php b/tests/unit/Storage/Adapter/Memory/HasCest.php index 42611f287bd..f9063e64a02 100644 --- a/tests/unit/Storage/Adapter/Memory/HasCest.php +++ b/tests/unit/Storage/Adapter/Memory/HasCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class HasCest /** * Tests Phalcon\Storage\Adapter\Memory :: get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterMemoryGetSetHas(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Memory/IncrementCest.php b/tests/unit/Storage/Adapter/Memory/IncrementCest.php index 672df3f5ea9..8af7eeb5746 100644 --- a/tests/unit/Storage/Adapter/Memory/IncrementCest.php +++ b/tests/unit/Storage/Adapter/Memory/IncrementCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class IncrementCest /** * Tests Phalcon\Storage\Adapter\Memory :: increment() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterMemoryIncrement(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Redis/ClearCest.php b/tests/unit/Storage/Adapter/Redis/ClearCest.php index 70cef8a24b4..9762b20edba 100644 --- a/tests/unit/Storage/Adapter/Redis/ClearCest.php +++ b/tests/unit/Storage/Adapter/Redis/ClearCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class ClearCest /** * Tests Phalcon\Storage\Adapter\Redis :: clear() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterRedisClear(UnitTester $I) @@ -70,7 +70,7 @@ public function storageAdapterRedisClear(UnitTester $I) /** * Tests Phalcon\Storage\Adapter\Redis :: clear() - twice * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterRedisClearTwice(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Redis/ConstructCest.php b/tests/unit/Storage/Adapter/Redis/ConstructCest.php index 981a0da6ee4..28a5228720b 100644 --- a/tests/unit/Storage/Adapter/Redis/ConstructCest.php +++ b/tests/unit/Storage/Adapter/Redis/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ class ConstructCest /** * Tests Phalcon\Storage\Adapter\Redis :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-09 */ public function storageAdapterRedisConstruct(UnitTester $I) @@ -55,7 +55,7 @@ public function storageAdapterRedisConstruct(UnitTester $I) /** * Tests Phalcon\Storage\Adapter\Redis :: __construct() - invalid serializer * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-09 */ public function storageAdapterRedisConstructInvalidSerializerException(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Redis/DecrementCest.php b/tests/unit/Storage/Adapter/Redis/DecrementCest.php index 76371ac9f6f..2a12513053d 100644 --- a/tests/unit/Storage/Adapter/Redis/DecrementCest.php +++ b/tests/unit/Storage/Adapter/Redis/DecrementCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -29,7 +29,7 @@ class DecrementCest * @throws Exception * @since 2019-03-31 * - * @author Phalcon Team + * @author Phalcon Team */ public function storageAdapterRedisDecrement(UnitTester $I) { diff --git a/tests/unit/Storage/Adapter/Redis/DeleteCest.php b/tests/unit/Storage/Adapter/Redis/DeleteCest.php index 8ac6824b771..e941e821a12 100644 --- a/tests/unit/Storage/Adapter/Redis/DeleteCest.php +++ b/tests/unit/Storage/Adapter/Redis/DeleteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class DeleteCest /** * Tests Phalcon\Storage\Adapter\Redis :: delete() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterRedisDelete(UnitTester $I) @@ -50,7 +50,7 @@ public function storageAdapterRedisDelete(UnitTester $I) /** * Tests Phalcon\Storage\Adapter\Redis :: delete() - twice * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterRedisDeleteTwice(UnitTester $I) @@ -75,7 +75,7 @@ public function storageAdapterRedisDeleteTwice(UnitTester $I) /** * Tests Phalcon\Storage\Adapter\Redis :: delete() - unknown * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterRedisDeleteUnknown(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Redis/GetAdapterCest.php b/tests/unit/Storage/Adapter/Redis/GetAdapterCest.php index 78b9697a9e9..81d8ef246fc 100644 --- a/tests/unit/Storage/Adapter/Redis/GetAdapterCest.php +++ b/tests/unit/Storage/Adapter/Redis/GetAdapterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class GetAdapterCest /** * Tests Phalcon\Storage\Adapter\Redis :: getAdapter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-14 */ public function storageAdapterRedisGetAdapter(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Redis/GetKeysCest.php b/tests/unit/Storage/Adapter/Redis/GetKeysCest.php index 53a1d94731d..6cb8c9c4544 100644 --- a/tests/unit/Storage/Adapter/Redis/GetKeysCest.php +++ b/tests/unit/Storage/Adapter/Redis/GetKeysCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class GetKeysCest /** * Tests Phalcon\Storage\Adapter\Redis :: getKeys() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-13 */ public function storageAdapterRedisGetKeys(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Redis/GetPrefixCest.php b/tests/unit/Storage/Adapter/Redis/GetPrefixCest.php index a85248e0c8f..d7b03a3129e 100644 --- a/tests/unit/Storage/Adapter/Redis/GetPrefixCest.php +++ b/tests/unit/Storage/Adapter/Redis/GetPrefixCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class GetPrefixCest /** * Tests Phalcon\Storage\Adapter\Redis :: getPrefix() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterRedisGetSetPrefix(UnitTester $I) @@ -53,7 +53,7 @@ public function storageAdapterRedisGetSetPrefix(UnitTester $I) /** * Tests Phalcon\Storage\Adapter\Redis :: getPrefix() - default * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterRedisGetSetPrefixDefault(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Redis/GetSetCest.php b/tests/unit/Storage/Adapter/Redis/GetSetCest.php index 25004774dcf..8f9074240ff 100644 --- a/tests/unit/Storage/Adapter/Redis/GetSetCest.php +++ b/tests/unit/Storage/Adapter/Redis/GetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -35,7 +35,7 @@ class GetSetCest * @throws Exception * @since 2019-03-31 * - * @author Phalcon Team + * @author Phalcon Team */ public function storageAdapterRedisGetSet(UnitTester $I, Example $example) { @@ -66,7 +66,7 @@ public function storageAdapterRedisGetSet(UnitTester $I, Example $example) * Tests Phalcon\Storage\Adapter\Redis :: get() - persistent * * @throws Exception - * @author Phalcon Team + * @author Phalcon Team * * @since 2019-03-31 */ @@ -104,7 +104,7 @@ public function storageAdapterRedisGetSetPersistent(UnitTester $I) * Tests Phalcon\Storage\Adapter\Redis :: get() - wrong index * * @since 2019-03-31 - * @author Phalcon Team + * @author Phalcon Team */ public function storageAdapterRedisGetSetWrongIndex(UnitTester $I) { @@ -134,7 +134,7 @@ function () { * Tests Phalcon\Storage\Adapter\Redis :: get() - failed auth * * @since 2019-03-31 - * @author Phalcon Team + * @author Phalcon Team */ public function storageAdapterRedisGetSetFailedAuth(UnitTester $I) { @@ -166,7 +166,7 @@ function () { * @throws Exception * @since 2019-04-29 * - * @author Phalcon Team + * @author Phalcon Team */ public function storageAdapterRedisGetSetCustomSerializer(UnitTester $I) { diff --git a/tests/unit/Storage/Adapter/Redis/GetSetDefaultSerializerCest.php b/tests/unit/Storage/Adapter/Redis/GetSetDefaultSerializerCest.php index 402f35464c3..e3c4d4fbe83 100644 --- a/tests/unit/Storage/Adapter/Redis/GetSetDefaultSerializerCest.php +++ b/tests/unit/Storage/Adapter/Redis/GetSetDefaultSerializerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class GetSetDefaultSerializerCest * Tests Phalcon\Storage\Adapter\Redis :: * getDefaultSerializer()/setDefaultSerializer() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-13 */ public function storageAdapterRedisGetKeys(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Redis/HasCest.php b/tests/unit/Storage/Adapter/Redis/HasCest.php index 9ae14d3eca5..d700d3b809b 100644 --- a/tests/unit/Storage/Adapter/Redis/HasCest.php +++ b/tests/unit/Storage/Adapter/Redis/HasCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class HasCest /** * Tests Phalcon\Storage\Adapter\Redis :: get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterRedisGetSetHas(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Redis/IncrementCest.php b/tests/unit/Storage/Adapter/Redis/IncrementCest.php index 01358011872..3774e81a8dc 100644 --- a/tests/unit/Storage/Adapter/Redis/IncrementCest.php +++ b/tests/unit/Storage/Adapter/Redis/IncrementCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class IncrementCest /** * Tests Phalcon\Storage\Adapter\Redis :: increment() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterRedisIncrement(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Stream/ClearCest.php b/tests/unit/Storage/Adapter/Stream/ClearCest.php index b41fd6fd95a..f69f1730d64 100644 --- a/tests/unit/Storage/Adapter/Stream/ClearCest.php +++ b/tests/unit/Storage/Adapter/Stream/ClearCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class ClearCest /** * Tests Phalcon\Storage\Adapter\Stream :: clear() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterStreamClear(UnitTester $I) @@ -66,7 +66,7 @@ public function storageAdapterStreamClear(UnitTester $I) /** * Tests Phalcon\Storage\Adapter\Stream :: clear() - twice * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-31 */ public function storageAdapterStreamClearTwice(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Stream/ConstructCest.php b/tests/unit/Storage/Adapter/Stream/ConstructCest.php index bce247d8721..16242ea21d9 100644 --- a/tests/unit/Storage/Adapter/Stream/ConstructCest.php +++ b/tests/unit/Storage/Adapter/Stream/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class ConstructCest /** * Tests Phalcon\Storage\Adapter\Stream :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-24 */ public function storageAdapterStreamConstruct(UnitTester $I) @@ -54,7 +54,7 @@ public function storageAdapterStreamConstruct(UnitTester $I) /** * Tests Phalcon\Storage\Adapter\Stream :: __construct() - exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-24 */ public function storageAdapterStreamConstructException(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Stream/DecrementCest.php b/tests/unit/Storage/Adapter/Stream/DecrementCest.php index a6ae79b1e95..3a854b3ba65 100644 --- a/tests/unit/Storage/Adapter/Stream/DecrementCest.php +++ b/tests/unit/Storage/Adapter/Stream/DecrementCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class DecrementCest * @throws Exception * @since 2019-04-24 * - * @author Phalcon Team + * @author Phalcon Team */ public function storageAdapterStreamDecrement(UnitTester $I) { diff --git a/tests/unit/Storage/Adapter/Stream/DeleteCest.php b/tests/unit/Storage/Adapter/Stream/DeleteCest.php index ce8c9550f34..8f57b0b981a 100644 --- a/tests/unit/Storage/Adapter/Stream/DeleteCest.php +++ b/tests/unit/Storage/Adapter/Stream/DeleteCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class DeleteCest /** * Tests Phalcon\Storage\Adapter\Stream :: delete() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-24 */ public function storageAdapterStreamDelete(UnitTester $I) @@ -58,7 +58,7 @@ public function storageAdapterStreamDelete(UnitTester $I) /** * Tests Phalcon\Storage\Adapter\Stream :: delete() - twice * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-24 */ public function storageAdapterStreamDeleteTwice(UnitTester $I) @@ -94,7 +94,7 @@ public function storageAdapterStreamDeleteTwice(UnitTester $I) /** * Tests Phalcon\Storage\Adapter\Stream :: delete() - unknown * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-24 */ public function storageAdapterStreamDeleteUnknown(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Stream/GetAdapterCest.php b/tests/unit/Storage/Adapter/Stream/GetAdapterCest.php index e024a6583d7..260620519d8 100644 --- a/tests/unit/Storage/Adapter/Stream/GetAdapterCest.php +++ b/tests/unit/Storage/Adapter/Stream/GetAdapterCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetAdapterCest /** * Tests Phalcon\Storage\Adapter\Stream :: getAdapter() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-24 */ public function storageAdapterStreamGetAdapter(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Stream/GetKeysCest.php b/tests/unit/Storage/Adapter/Stream/GetKeysCest.php index 36f78ebc94e..6a3c86ff6b4 100644 --- a/tests/unit/Storage/Adapter/Stream/GetKeysCest.php +++ b/tests/unit/Storage/Adapter/Stream/GetKeysCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class GetKeysCest /** * Tests Phalcon\Storage\Adapter\Stream :: getKeys() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-24 */ public function storageAdapterStreamGetKeys(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Stream/GetPrefixCest.php b/tests/unit/Storage/Adapter/Stream/GetPrefixCest.php index 0152dff3565..d8fe4af856b 100644 --- a/tests/unit/Storage/Adapter/Stream/GetPrefixCest.php +++ b/tests/unit/Storage/Adapter/Stream/GetPrefixCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class GetPrefixCest /** * Tests Phalcon\Storage\Adapter\Stream :: getPrefix() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-24 */ public function storageAdapterStreamGetSetPrefix(UnitTester $I) @@ -48,7 +48,7 @@ public function storageAdapterStreamGetSetPrefix(UnitTester $I) /** * Tests Phalcon\Storage\Adapter\Stream :: getPrefix() - default * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-24 */ public function storageAdapterStreamGetSetPrefixDefault(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Stream/GetSetCest.php b/tests/unit/Storage/Adapter/Stream/GetSetCest.php index e04276cbaaa..292a796ac64 100644 --- a/tests/unit/Storage/Adapter/Stream/GetSetCest.php +++ b/tests/unit/Storage/Adapter/Stream/GetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -28,7 +28,7 @@ class GetSetCest * @throws Exception * @since 2019-04-24 * - * @author Phalcon Team + * @author Phalcon Team */ public function storageAdapterStreamSet(UnitTester $I) { @@ -61,7 +61,7 @@ public function storageAdapterStreamSet(UnitTester $I) * @throws Exception * @since 2019-04-24 * - * @author Phalcon Team + * @author Phalcon Team */ public function storageAdapterStreamGet(UnitTester $I) { @@ -97,7 +97,7 @@ public function storageAdapterStreamGet(UnitTester $I) * @throws Exception * @since 2019-04-24 * - * @author Phalcon Team + * @author Phalcon Team */ public function storageAdapterStreamGetErrors(UnitTester $I) { diff --git a/tests/unit/Storage/Adapter/Stream/GetSetDefaultSerializerCest.php b/tests/unit/Storage/Adapter/Stream/GetSetDefaultSerializerCest.php index 527b63b2776..dfe695bb125 100644 --- a/tests/unit/Storage/Adapter/Stream/GetSetDefaultSerializerCest.php +++ b/tests/unit/Storage/Adapter/Stream/GetSetDefaultSerializerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class GetSetDefaultSerializerCest * Tests Phalcon\Storage\Adapter\Stream :: * getDefaultSerializer()/setDefaultSerializer() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-13 */ public function storageAdapterStreamGetKeys(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Stream/HasCest.php b/tests/unit/Storage/Adapter/Stream/HasCest.php index 87a72479811..855ce9531f7 100644 --- a/tests/unit/Storage/Adapter/Stream/HasCest.php +++ b/tests/unit/Storage/Adapter/Stream/HasCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class HasCest /** * Tests Phalcon\Storage\Adapter\Stream :: has() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-24 */ public function storageAdapterStreamHas(UnitTester $I) diff --git a/tests/unit/Storage/Adapter/Stream/IncrementCest.php b/tests/unit/Storage/Adapter/Stream/IncrementCest.php index cc0a145e0c5..17785e660b0 100644 --- a/tests/unit/Storage/Adapter/Stream/IncrementCest.php +++ b/tests/unit/Storage/Adapter/Stream/IncrementCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class IncrementCest * @throws Exception * @since 2019-04-24 * - * @author Phalcon Team + * @author Phalcon Team */ public function storageAdapterStreamIncrement(UnitTester $I) { diff --git a/tests/unit/Storage/AdapterFactory/NewInstanceCest.php b/tests/unit/Storage/AdapterFactory/NewInstanceCest.php index 70026871ccf..9488b0843f9 100644 --- a/tests/unit/Storage/AdapterFactory/NewInstanceCest.php +++ b/tests/unit/Storage/AdapterFactory/NewInstanceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -36,7 +36,7 @@ class NewInstanceCest * @throws Exception * @since 2019-05-04 * - * @author Phalcon Team + * @author Phalcon Team */ public function storageAdapterFactoryNewInstance(UnitTester $I, Example $example) { @@ -57,7 +57,7 @@ public function storageAdapterFactoryNewInstance(UnitTester $I, Example $example * @throws Exception * @since 2019-05-04 * - * @author Phalcon Team + * @author Phalcon Team */ public function storageSerializerFactoryNewInstanceException(UnitTester $I) { diff --git a/tests/unit/Storage/Serializer/Base64/GetDataCest.php b/tests/unit/Storage/Serializer/Base64/GetDataCest.php index 362ca0ff271..05b0142ef09 100644 --- a/tests/unit/Storage/Serializer/Base64/GetDataCest.php +++ b/tests/unit/Storage/Serializer/Base64/GetDataCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetDataCest /** * Tests Phalcon\Storage\Serializer\Base64 :: getData() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-30 */ public function storageSerializerBase64GetData(UnitTester $I) diff --git a/tests/unit/Storage/Serializer/Base64/SerializeCest.php b/tests/unit/Storage/Serializer/Base64/SerializeCest.php index 6f3bc3f93c6..02f6ec78a74 100644 --- a/tests/unit/Storage/Serializer/Base64/SerializeCest.php +++ b/tests/unit/Storage/Serializer/Base64/SerializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class SerializeCest /** * Tests Phalcon\Storage\Serializer\Base64 :: serialize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-30 */ public function storageSerializerBase64Serialize(UnitTester $I) @@ -40,7 +40,7 @@ public function storageSerializerBase64Serialize(UnitTester $I) /** * Tests Phalcon\Storage\Serializer\Base64 :: serialize() - exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-30 */ public function storageSerializerBase64SerializeException(UnitTester $I) diff --git a/tests/unit/Storage/Serializer/Base64/SetDataCest.php b/tests/unit/Storage/Serializer/Base64/SetDataCest.php index 948e5f8da48..66434308326 100644 --- a/tests/unit/Storage/Serializer/Base64/SetDataCest.php +++ b/tests/unit/Storage/Serializer/Base64/SetDataCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetDataCest /** * Tests Phalcon\Storage\Serializer\Base64 :: getData() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-30 */ public function storageSerializerBase64SetData(UnitTester $I) diff --git a/tests/unit/Storage/Serializer/Base64/UnserializeCest.php b/tests/unit/Storage/Serializer/Base64/UnserializeCest.php index faf7a056f7c..24614c5f3e7 100644 --- a/tests/unit/Storage/Serializer/Base64/UnserializeCest.php +++ b/tests/unit/Storage/Serializer/Base64/UnserializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class UnserializeCest /** * Tests Phalcon\Storage\Serializer\Base64 :: unserialize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-30 */ public function storageSerializerBase64Unserialize(UnitTester $I) @@ -42,7 +42,7 @@ public function storageSerializerBase64Unserialize(UnitTester $I) /** * Tests Phalcon\Storage\Serializer\Base64 :: serialize() - exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-30 */ public function storageSerializerBase64SerializeException(UnitTester $I) diff --git a/tests/unit/Storage/Serializer/Igbinary/GetDataCest.php b/tests/unit/Storage/Serializer/Igbinary/GetDataCest.php index 171a9a7b0ac..57f36bdc260 100644 --- a/tests/unit/Storage/Serializer/Igbinary/GetDataCest.php +++ b/tests/unit/Storage/Serializer/Igbinary/GetDataCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetDataCest /** * Tests Phalcon\Storage\Serializer\Igbinary :: getData() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-30 */ public function storageSerializerIgbinaryGetData(UnitTester $I) diff --git a/tests/unit/Storage/Serializer/Igbinary/SerializeCest.php b/tests/unit/Storage/Serializer/Igbinary/SerializeCest.php index a74957d2134..f5e60ff15d3 100644 --- a/tests/unit/Storage/Serializer/Igbinary/SerializeCest.php +++ b/tests/unit/Storage/Serializer/Igbinary/SerializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class SerializeCest * * @dataProvider getExamples * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-30 */ public function storageSerializerIgbinarySerialize(UnitTester $I, Example $example) diff --git a/tests/unit/Storage/Serializer/Igbinary/SetDataCest.php b/tests/unit/Storage/Serializer/Igbinary/SetDataCest.php index 16980dc310c..31660ecc89c 100644 --- a/tests/unit/Storage/Serializer/Igbinary/SetDataCest.php +++ b/tests/unit/Storage/Serializer/Igbinary/SetDataCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetDataCest /** * Tests Phalcon\Storage\Serializer\Igbinary :: getData() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-30 */ public function storageSerializerIgbinarySetData(UnitTester $I) diff --git a/tests/unit/Storage/Serializer/Igbinary/UnserializeCest.php b/tests/unit/Storage/Serializer/Igbinary/UnserializeCest.php index d701168cb98..569feec316c 100644 --- a/tests/unit/Storage/Serializer/Igbinary/UnserializeCest.php +++ b/tests/unit/Storage/Serializer/Igbinary/UnserializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class UnserializeCest * * @dataProvider getExamples * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-30 */ public function storageSerializerIgbinaryUnserialize(UnitTester $I, Example $example) diff --git a/tests/unit/Storage/Serializer/Json/GetDataCest.php b/tests/unit/Storage/Serializer/Json/GetDataCest.php index 4a248511575..a68ba3a2027 100644 --- a/tests/unit/Storage/Serializer/Json/GetDataCest.php +++ b/tests/unit/Storage/Serializer/Json/GetDataCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetDataCest /** * Tests Phalcon\Storage\Serializer\Json :: getData() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-30 */ public function storageSerializerJsonGetData(UnitTester $I) diff --git a/tests/unit/Storage/Serializer/Json/SerializeCest.php b/tests/unit/Storage/Serializer/Json/SerializeCest.php index a80fe273d19..a2720a59f8f 100644 --- a/tests/unit/Storage/Serializer/Json/SerializeCest.php +++ b/tests/unit/Storage/Serializer/Json/SerializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class SerializeCest * * @dataProvider getExamples * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-30 */ public function storageSerializerJsonSerialize(UnitTester $I, Example $example) diff --git a/tests/unit/Storage/Serializer/Json/SetDataCest.php b/tests/unit/Storage/Serializer/Json/SetDataCest.php index c3dfab26f0a..870d4819f4b 100644 --- a/tests/unit/Storage/Serializer/Json/SetDataCest.php +++ b/tests/unit/Storage/Serializer/Json/SetDataCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetDataCest /** * Tests Phalcon\Storage\Serializer\Json :: getData() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-30 */ public function storageSerializerJsonSetData(UnitTester $I) diff --git a/tests/unit/Storage/Serializer/Json/UnserializeCest.php b/tests/unit/Storage/Serializer/Json/UnserializeCest.php index 1ac9750b82e..e996ce04071 100644 --- a/tests/unit/Storage/Serializer/Json/UnserializeCest.php +++ b/tests/unit/Storage/Serializer/Json/UnserializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class UnserializeCest * * @dataProvider getExamples * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-30 */ public function storageSerializerJsonUnserialize(UnitTester $I, Example $example) diff --git a/tests/unit/Storage/Serializer/Msgpack/GetDataCest.php b/tests/unit/Storage/Serializer/Msgpack/GetDataCest.php index 89a1f7c7639..fde892135ff 100644 --- a/tests/unit/Storage/Serializer/Msgpack/GetDataCest.php +++ b/tests/unit/Storage/Serializer/Msgpack/GetDataCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetDataCest /** * Tests Phalcon\Storage\Serializer\Msgpack :: getData() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-30 */ public function storageSerializerMsgpackGetData(UnitTester $I) diff --git a/tests/unit/Storage/Serializer/Msgpack/SerializeCest.php b/tests/unit/Storage/Serializer/Msgpack/SerializeCest.php index ddc98e2ac49..e413e112cc8 100644 --- a/tests/unit/Storage/Serializer/Msgpack/SerializeCest.php +++ b/tests/unit/Storage/Serializer/Msgpack/SerializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class SerializeCest * * @dataProvider getExamples * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-30 */ public function storageSerializerMsgpackSerialize(UnitTester $I, Example $example) diff --git a/tests/unit/Storage/Serializer/Msgpack/SetDataCest.php b/tests/unit/Storage/Serializer/Msgpack/SetDataCest.php index f240e555b8a..85bc069fd35 100644 --- a/tests/unit/Storage/Serializer/Msgpack/SetDataCest.php +++ b/tests/unit/Storage/Serializer/Msgpack/SetDataCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetDataCest /** * Tests Phalcon\Storage\Serializer\Msgpack :: getData() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-30 */ public function storageSerializerMsgpackSetData(UnitTester $I) diff --git a/tests/unit/Storage/Serializer/Msgpack/UnserializeCest.php b/tests/unit/Storage/Serializer/Msgpack/UnserializeCest.php index a4b8a2cdae7..fcce881b660 100644 --- a/tests/unit/Storage/Serializer/Msgpack/UnserializeCest.php +++ b/tests/unit/Storage/Serializer/Msgpack/UnserializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class UnserializeCest * * @dataProvider getExamples * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-30 */ public function storageSerializerMsgpackUnserialize(UnitTester $I, Example $example) diff --git a/tests/unit/Storage/Serializer/None/GetDataCest.php b/tests/unit/Storage/Serializer/None/GetDataCest.php index 02a643961cc..27b9ea2248d 100644 --- a/tests/unit/Storage/Serializer/None/GetDataCest.php +++ b/tests/unit/Storage/Serializer/None/GetDataCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetDataCest /** * Tests Phalcon\Storage\Serializer\None :: getData() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-30 */ public function storageSerializerNoneGetData(UnitTester $I) diff --git a/tests/unit/Storage/Serializer/None/SerializeCest.php b/tests/unit/Storage/Serializer/None/SerializeCest.php index 7f02f4ed05d..4ed739f9e5f 100644 --- a/tests/unit/Storage/Serializer/None/SerializeCest.php +++ b/tests/unit/Storage/Serializer/None/SerializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SerializeCest /** * Tests Phalcon\Storage\Serializer\None :: serialize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-30 */ public function storageSerializerNoneSerialize(UnitTester $I) diff --git a/tests/unit/Storage/Serializer/None/SetDataCest.php b/tests/unit/Storage/Serializer/None/SetDataCest.php index 7aa2c503654..c21a6ebf70b 100644 --- a/tests/unit/Storage/Serializer/None/SetDataCest.php +++ b/tests/unit/Storage/Serializer/None/SetDataCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetDataCest /** * Tests Phalcon\Storage\Serializer\None :: getData() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-30 */ public function storageSerializerNoneSetData(UnitTester $I) diff --git a/tests/unit/Storage/Serializer/None/UnserializeCest.php b/tests/unit/Storage/Serializer/None/UnserializeCest.php index 338073e5630..00dc28268e0 100644 --- a/tests/unit/Storage/Serializer/None/UnserializeCest.php +++ b/tests/unit/Storage/Serializer/None/UnserializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class UnserializeCest * * @dataProvider getExamples * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-30 */ public function storageSerializerNoneUnserialize(UnitTester $I, Example $example) diff --git a/tests/unit/Storage/Serializer/Php/GetDataCest.php b/tests/unit/Storage/Serializer/Php/GetDataCest.php index d150a8434f4..75238cd6bfb 100644 --- a/tests/unit/Storage/Serializer/Php/GetDataCest.php +++ b/tests/unit/Storage/Serializer/Php/GetDataCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class GetDataCest /** * Tests Phalcon\Storage\Serializer\Php :: getData() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-12 */ public function storageSerializerPhpGetData(UnitTester $I) diff --git a/tests/unit/Storage/Serializer/Php/SerializeCest.php b/tests/unit/Storage/Serializer/Php/SerializeCest.php index 0857d930a74..1ce25a0c0af 100644 --- a/tests/unit/Storage/Serializer/Php/SerializeCest.php +++ b/tests/unit/Storage/Serializer/Php/SerializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class SerializeCest * * @dataProvider getExamples * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-30 */ public function storageSerializerPhpSerialize(UnitTester $I, Example $example) diff --git a/tests/unit/Storage/Serializer/Php/SetDataCest.php b/tests/unit/Storage/Serializer/Php/SetDataCest.php index d47c0c7f7b1..260a708b0c2 100644 --- a/tests/unit/Storage/Serializer/Php/SetDataCest.php +++ b/tests/unit/Storage/Serializer/Php/SetDataCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetDataCest /** * Tests Phalcon\Storage\Serializer\Php :: setData() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-04-12 */ public function storageSerializerPhpSetData(UnitTester $I) diff --git a/tests/unit/Storage/Serializer/Php/UnserializeCest.php b/tests/unit/Storage/Serializer/Php/UnserializeCest.php index af05891babc..6a29d843a94 100644 --- a/tests/unit/Storage/Serializer/Php/UnserializeCest.php +++ b/tests/unit/Storage/Serializer/Php/UnserializeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class UnserializeCest * * @dataProvider getExamples * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-03-30 */ public function storageSerializerPhpUnserialize(UnitTester $I, Example $example) diff --git a/tests/unit/Storage/SerializerFactory/NewInstanceCest.php b/tests/unit/Storage/SerializerFactory/NewInstanceCest.php index abf7da8a795..0a1aaf2e4d8 100644 --- a/tests/unit/Storage/SerializerFactory/NewInstanceCest.php +++ b/tests/unit/Storage/SerializerFactory/NewInstanceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -33,7 +33,7 @@ class NewInstanceCest * @throws Exception * @since 2019-05-04 * - * @author Phalcon Team + * @author Phalcon Team */ public function storageSerializerFactoryNewInstance(UnitTester $I, Example $example) { @@ -54,7 +54,7 @@ public function storageSerializerFactoryNewInstance(UnitTester $I, Example $exam * @throws Exception * @since 2019-05-04 * - * @author Phalcon Team + * @author Phalcon Team */ public function storageSerializerFactoryNewInstanceException(UnitTester $I) { diff --git a/tests/unit/Tag/AppendTitleCest.php b/tests/unit/Tag/AppendTitleCest.php index 341fdb1e4b4..4e00fe1e3d1 100644 --- a/tests/unit/Tag/AppendTitleCest.php +++ b/tests/unit/Tag/AppendTitleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class AppendTitleCest extends TagSetup /** * Tests Phalcon\Tag :: appendTitle() * - * @author Phalcon Team + * @author Phalcon Team * @since 2012-09-05 */ public function tagAppendTitle(UnitTester $I) @@ -53,7 +53,7 @@ public function tagAppendTitle(UnitTester $I) /** * Tests Phalcon\Tag :: appendTitle() - separator * - * @author Phalcon Team + * @author Phalcon Team * @since 2012-09-05 */ public function tagAppendTitleSeparator(UnitTester $I) @@ -86,7 +86,7 @@ public function tagAppendTitleSeparator(UnitTester $I) /** * Tests Phalcon\Tag :: appendTitle() - double call * - * @author Phalcon Team + * @author Phalcon Team * @since 2012-09-05 */ public function tagAppendTitleDoubleCall(UnitTester $I) @@ -120,7 +120,7 @@ public function tagAppendTitleDoubleCall(UnitTester $I) /** * Tests Phalcon\Tag :: appendTitle() - array * - * @author Phalcon Team + * @author Phalcon Team * @since 2012-09-05 */ public function tagAppendTitleArray(UnitTester $I) @@ -153,7 +153,7 @@ public function tagAppendTitleArray(UnitTester $I) /** * Tests Phalcon\Tag :: appendTitle() - empty array * - * @author Phalcon Team + * @author Phalcon Team * @since 2012-09-05 */ public function tagAppendTitleEmptyArray(UnitTester $I) diff --git a/tests/unit/Tag/CheckFieldCest.php b/tests/unit/Tag/CheckFieldCest.php index e3f0e982543..3e1b861595e 100644 --- a/tests/unit/Tag/CheckFieldCest.php +++ b/tests/unit/Tag/CheckFieldCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class CheckFieldCest /** * Tests Phalcon\Tag :: checkField() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function tagCheckField(UnitTester $I) diff --git a/tests/unit/Tag/ColorFieldCest.php b/tests/unit/Tag/ColorFieldCest.php index 7223c126ca7..4918dcfd322 100644 --- a/tests/unit/Tag/ColorFieldCest.php +++ b/tests/unit/Tag/ColorFieldCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Tag/DateFieldCest.php b/tests/unit/Tag/DateFieldCest.php index f18a1bd9211..b980778f502 100644 --- a/tests/unit/Tag/DateFieldCest.php +++ b/tests/unit/Tag/DateFieldCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Tag/DateTimeFieldCest.php b/tests/unit/Tag/DateTimeFieldCest.php index 3316d6f27c3..76b75b8b638 100644 --- a/tests/unit/Tag/DateTimeFieldCest.php +++ b/tests/unit/Tag/DateTimeFieldCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Tag/DateTimeLocalFieldCest.php b/tests/unit/Tag/DateTimeLocalFieldCest.php index cf86ef9d1b2..46faf266fad 100644 --- a/tests/unit/Tag/DateTimeLocalFieldCest.php +++ b/tests/unit/Tag/DateTimeLocalFieldCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Tag/DisplayToCest.php b/tests/unit/Tag/DisplayToCest.php index 3a10f30dca3..60d6147a2d7 100644 --- a/tests/unit/Tag/DisplayToCest.php +++ b/tests/unit/Tag/DisplayToCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class DisplayToCest /** * Tests Phalcon\Tag :: displayTo() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function tagDisplayTo(UnitTester $I) diff --git a/tests/unit/Tag/EmailFieldCest.php b/tests/unit/Tag/EmailFieldCest.php index 0f069adc046..817f9e081a0 100644 --- a/tests/unit/Tag/EmailFieldCest.php +++ b/tests/unit/Tag/EmailFieldCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Tag/EndFormCest.php b/tests/unit/Tag/EndFormCest.php index 43031d5ca4f..6c854bf1337 100644 --- a/tests/unit/Tag/EndFormCest.php +++ b/tests/unit/Tag/EndFormCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class EndFormCest extends TagSetup /** * Tests Phalcon\Tag :: endForm() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function tagEndForm(UnitTester $I) diff --git a/tests/unit/Tag/FileFieldCest.php b/tests/unit/Tag/FileFieldCest.php index 10bf50cd03a..2c67839b7a1 100644 --- a/tests/unit/Tag/FileFieldCest.php +++ b/tests/unit/Tag/FileFieldCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Tag/FormCest.php b/tests/unit/Tag/FormCest.php index aa5b6950e2a..a7296a4d435 100644 --- a/tests/unit/Tag/FormCest.php +++ b/tests/unit/Tag/FormCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class FormCest /** * Tests Phalcon\Tag :: form() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function tagForm(UnitTester $I) diff --git a/tests/unit/Tag/FriendlyTitleCest.php b/tests/unit/Tag/FriendlyTitleCest.php index ec1d0fce5bc..55e5f21f05e 100644 --- a/tests/unit/Tag/FriendlyTitleCest.php +++ b/tests/unit/Tag/FriendlyTitleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class FriendlyTitleCest extends TagSetup * Tests Phalcon\Tag :: friendlyTitle() - string as a parameter and no * separator * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-11 */ public function testFriendlyTitleStringParameterNoSeparator(UnitTester $I) @@ -39,7 +39,7 @@ public function testFriendlyTitleStringParameterNoSeparator(UnitTester $I) * Tests Phalcon\Tag :: friendlyTitle() - string as a parameter and a * separator * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-11 */ public function testFriendlyTitleStringParameterSeparator(UnitTester $I) @@ -54,7 +54,7 @@ public function testFriendlyTitleStringParameterSeparator(UnitTester $I) /** * Tests Phalcon\Tag :: friendlyTitle() - string as a parameter lowercase * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-11 */ public function testFriendlyTitleStringParameterLowercase(UnitTester $I) @@ -69,7 +69,7 @@ public function testFriendlyTitleStringParameterLowercase(UnitTester $I) /** * Tests Phalcon\Tag :: friendlyTitle() - string as a parameter uppercase * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-11 */ public function testFriendlyTitleStringParameterUppercase(UnitTester $I) @@ -85,7 +85,7 @@ public function testFriendlyTitleStringParameterUppercase(UnitTester $I) * Tests Phalcon\Tag :: friendlyTitle() - string as a parameter with * replace as string * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-11 */ public function testFriendlyTitleStringParameterReplaceString(UnitTester $I) @@ -101,7 +101,7 @@ public function testFriendlyTitleStringParameterReplaceString(UnitTester $I) * Tests Phalcon\Tag :: friendlyTitle() - string as a parameter with * replace as array * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-11 */ public function testFriendlyTitleStringParameterReplaceArray(UnitTester $I) @@ -121,7 +121,7 @@ public function testFriendlyTitleStringParameterReplaceArray(UnitTester $I) /** * Tests Phalcon\Tag :: friendlyTitle() - special characters and escaping * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-11 */ public function testFriendlyTitleWithSpecialCharactersAndEscaping(UnitTester $I) @@ -139,7 +139,7 @@ public function testFriendlyTitleWithSpecialCharactersAndEscaping(UnitTester $I) * Tests Phalcon\Tag :: friendlyTitle() - accented characters and replace * string * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-11 */ public function testFriendlyTitleWithAccentedCharactersAndReplaceString(UnitTester $I) @@ -161,7 +161,7 @@ public function testFriendlyTitleWithAccentedCharactersAndReplaceString(UnitTest * Tests Phalcon\Tag :: friendlyTitle() - accented characters and replace * array * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-11 */ public function testFriendlyTitleWithAccentedCharactersAndReplaceArray(UnitTester $I) @@ -183,7 +183,7 @@ public function testFriendlyTitleWithAccentedCharactersAndReplaceArray(UnitTeste * Tests Phalcon\Tag :: friendlyTitle() - string as a parameter with * replace as boolean * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-11 */ public function testFriendlyTitleStringParameterReplaceBoolean(UnitTester $I) diff --git a/tests/unit/Tag/GetDICest.php b/tests/unit/Tag/GetDICest.php index 894ea81585f..204587b869b 100644 --- a/tests/unit/Tag/GetDICest.php +++ b/tests/unit/Tag/GetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetDICest /** * Tests Phalcon\Tag :: getDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function tagGetDI(UnitTester $I) diff --git a/tests/unit/Tag/GetDocTypeCest.php b/tests/unit/Tag/GetDocTypeCest.php index b8c726a86c2..22cbc8fd9d2 100644 --- a/tests/unit/Tag/GetDocTypeCest.php +++ b/tests/unit/Tag/GetDocTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetDocTypeCest extends TagSetup /** * Tests Phalcon\Tag :: getDocType() - 3.2 * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function testDoctypeSet32Final(UnitTester $I) @@ -33,7 +33,7 @@ public function testDoctypeSet32Final(UnitTester $I) /** * Tests Phalcon\Tag :: getDocType() - 4.01 Strict * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-04 */ public function testDoctypeSet401(UnitTester $I) @@ -44,7 +44,7 @@ public function testDoctypeSet401(UnitTester $I) /** * Tests Phalcon\Tag :: getDocType() - 4.01 Transitional * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-04 */ public function testDoctypeSet401Transitional(UnitTester $I) @@ -55,7 +55,7 @@ public function testDoctypeSet401Transitional(UnitTester $I) /** * Tests Phalcon\Tag :: getDocType() - 4.01 Frameset * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-04 */ public function testDoctypeSet401Frameset(UnitTester $I) @@ -66,7 +66,7 @@ public function testDoctypeSet401Frameset(UnitTester $I) /** * Tests Phalcon\Tag :: getDocType() - 5 * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-04 */ public function testDoctypeSet5(UnitTester $I) @@ -77,7 +77,7 @@ public function testDoctypeSet5(UnitTester $I) /** * Tests Phalcon\Tag :: getDocType() - 1.0 Strict * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-04 */ public function testDoctypeSet10Strict(UnitTester $I) @@ -88,7 +88,7 @@ public function testDoctypeSet10Strict(UnitTester $I) /** * Tests Phalcon\Tag :: getDocType() - 1.0 Transitional * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-04 */ public function testDoctypeSet10Transitional(UnitTester $I) @@ -99,7 +99,7 @@ public function testDoctypeSet10Transitional(UnitTester $I) /** * Tests Phalcon\Tag :: getDocType() - 1.0 Frameset * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-04 */ public function testDoctypeSet10Frameset(UnitTester $I) @@ -110,7 +110,7 @@ public function testDoctypeSet10Frameset(UnitTester $I) /** * Tests Phalcon\Tag :: getDocType() - 1.1 * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-04 */ public function testDoctypeSet11(UnitTester $I) @@ -121,7 +121,7 @@ public function testDoctypeSet11(UnitTester $I) /** * Tests Phalcon\Tag :: getDocType() - 2.0 * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-04 */ public function testDoctypeSet20(UnitTester $I) @@ -132,7 +132,7 @@ public function testDoctypeSet20(UnitTester $I) /** * Tests Phalcon\Tag :: getDocType() - wrong setting * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-04 */ public function testDoctypeSetWrongParameter(UnitTester $I) diff --git a/tests/unit/Tag/GetEscaperCest.php b/tests/unit/Tag/GetEscaperCest.php index 91a1cb253b6..a195fe71027 100644 --- a/tests/unit/Tag/GetEscaperCest.php +++ b/tests/unit/Tag/GetEscaperCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetEscaperCest /** * Tests Phalcon\Tag :: getEscaper() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function tagGetEscaper(UnitTester $I) diff --git a/tests/unit/Tag/GetEscaperServiceCest.php b/tests/unit/Tag/GetEscaperServiceCest.php index 03868e92699..d04ff8a4f4b 100644 --- a/tests/unit/Tag/GetEscaperServiceCest.php +++ b/tests/unit/Tag/GetEscaperServiceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetEscaperServiceCest /** * Tests Phalcon\Tag :: getEscaperService() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function tagGetEscaperService(UnitTester $I) diff --git a/tests/unit/Tag/GetTitleCest.php b/tests/unit/Tag/GetTitleCest.php index 9215ce7843a..1e7447f986b 100644 --- a/tests/unit/Tag/GetTitleCest.php +++ b/tests/unit/Tag/GetTitleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class GetTitleCest * Tests Phalcon\Tag :: getTitle() - with malicious code * * @issue https://github.com/phalcon/cphalcon/issues/11185 - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-13 */ public function tagGetTitleWithMaliciousContent(UnitTester $I) diff --git a/tests/unit/Tag/GetTitleSeparatorCest.php b/tests/unit/Tag/GetTitleSeparatorCest.php index d26a949ab9d..ebb6b16154d 100644 --- a/tests/unit/Tag/GetTitleSeparatorCest.php +++ b/tests/unit/Tag/GetTitleSeparatorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetTitleSeparatorCest /** * Tests Phalcon\Tag :: getTitleSeparator() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function tagGetTitleSeparator(UnitTester $I) diff --git a/tests/unit/Tag/GetUrlServiceCest.php b/tests/unit/Tag/GetUrlServiceCest.php index 174dfa166a4..369ec40498c 100644 --- a/tests/unit/Tag/GetUrlServiceCest.php +++ b/tests/unit/Tag/GetUrlServiceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetUrlServiceCest /** * Tests Phalcon\Tag :: getUrlService() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function tagGetUrlService(UnitTester $I) diff --git a/tests/unit/Tag/GetValueCest.php b/tests/unit/Tag/GetValueCest.php index 7cb29dc0e8c..c718f6b8923 100644 --- a/tests/unit/Tag/GetValueCest.php +++ b/tests/unit/Tag/GetValueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class GetValueCest /** * Tests Phalcon\Tag :: getValue() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function tagGetValue(UnitTester $I) diff --git a/tests/unit/Tag/HasValueCest.php b/tests/unit/Tag/HasValueCest.php index 158f01089cc..ed323423c91 100644 --- a/tests/unit/Tag/HasValueCest.php +++ b/tests/unit/Tag/HasValueCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class HasValueCest /** * Tests Phalcon\Tag :: hasValue() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function tagHasValue(UnitTester $I) diff --git a/tests/unit/Tag/HiddenFieldCest.php b/tests/unit/Tag/HiddenFieldCest.php index f3aa9533168..956b5e2c26f 100644 --- a/tests/unit/Tag/HiddenFieldCest.php +++ b/tests/unit/Tag/HiddenFieldCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Tag/ImageCest.php b/tests/unit/Tag/ImageCest.php index 900fe1a0623..55354796b4a 100644 --- a/tests/unit/Tag/ImageCest.php +++ b/tests/unit/Tag/ImageCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ImageCest extends TagSetup /** * Tests Phalcon\Tag :: image() - string as a parameter * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagImageStringParameter(UnitTester $I) @@ -38,7 +38,7 @@ public function tagImageStringParameter(UnitTester $I) /** * Tests Phalcon\Tag :: image() - array as a parameter * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagImageArrayParameter(UnitTester $I) @@ -58,7 +58,7 @@ public function tagImageArrayParameter(UnitTester $I) /** * Tests Phalcon\Tag :: image() - array as a parameters and src in it * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagImageArrayParameterWithSrc(UnitTester $I) @@ -79,7 +79,7 @@ public function tagImageArrayParameterWithSrc(UnitTester $I) /** * Tests Phalcon\Tag :: image() - name and no src in parameter * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagImageArrayParameterWithNameNoSrc(UnitTester $I) @@ -99,7 +99,7 @@ public function tagImageArrayParameterWithNameNoSrc(UnitTester $I) /** * Tests Phalcon\Tag :: image() - setDefault * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagImageWithSetDefault(UnitTester $I) @@ -119,7 +119,7 @@ public function tagImageWithSetDefault(UnitTester $I) /** * Tests Phalcon\Tag :: image() - displayTo * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagImageWithDisplayTo(UnitTester $I) @@ -139,7 +139,7 @@ public function tagImageWithDisplayTo(UnitTester $I) /** * Tests Phalcon\Tag :: image() - setDefault and element not present * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagImageWithSetDefaultElementNotPresent(UnitTester $I) @@ -159,7 +159,7 @@ public function tagImageWithSetDefaultElementNotPresent(UnitTester $I) /** * Tests Phalcon\Tag :: image() - displayTo and element not present * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagImageWithDisplayToElementNotPresent(UnitTester $I) @@ -179,7 +179,7 @@ public function tagImageWithDisplayToElementNotPresent(UnitTester $I) /** * Tests Phalcon\Tag :: image() - string parameter and local link * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagImageStringParameterLocalLink(UnitTester $I) @@ -206,23 +206,23 @@ public function tagImageStringParameterLocalLink(UnitTester $I) /** * Tests Phalcon\Tag :: image() - string parameter and remote link * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagImageStringParameterRemoteLink(UnitTester $I) { $I->wantToTest('Tag :: image() - string parameter and remote link'); - $options = 'http://phalconphp.com/img/hello.gif'; - $expected = ''; + $options = 'http://phalcon.io/img/hello.gif'; + $expected = ''; Tag::setDocType(Tag::XHTML10_STRICT); $actual = Tag::image($options, false); $I->assertEquals($expected, $actual); - $options = 'http://phalconphp.com/img/hello.gif'; - $expected = ''; + $options = 'http://phalcon.io/img/hello.gif'; + $expected = ''; Tag::setDocType(Tag::HTML5); $actual = Tag::image($options, false); @@ -233,7 +233,7 @@ public function tagImageStringParameterRemoteLink(UnitTester $I) /** * Tests Phalcon\Tag :: image() - array parameter and local link * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagImageArrayParameterLocalLink(UnitTester $I) @@ -266,7 +266,7 @@ public function tagImageArrayParameterLocalLink(UnitTester $I) /** * Tests Phalcon\Tag :: image() - array parameter and remote link * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagImageArrayParameterRemoteLink(UnitTester $I) @@ -274,7 +274,7 @@ public function tagImageArrayParameterRemoteLink(UnitTester $I) $I->wantToTest('Tag :: image() - array parameter and remote link'); $options = [ - 'http://phalconphp.com/img/hello.gif', + 'http://phalcon.io/img/hello.gif', 'alt' => 'Hello', ]; @@ -283,12 +283,12 @@ public function tagImageArrayParameterRemoteLink(UnitTester $I) ); $I->assertEquals( - 'Hello', + 'Hello', Tag::image($options, false) ); $options = [ - 'http://phalconphp.com/img/hello.gif', + 'http://phalcon.io/img/hello.gif', 'alt' => 'Hello', ]; @@ -297,7 +297,7 @@ public function tagImageArrayParameterRemoteLink(UnitTester $I) ); $I->assertEquals( - 'Hello', + 'Hello', Tag::image($options, false) ); } diff --git a/tests/unit/Tag/ImageInputCest.php b/tests/unit/Tag/ImageInputCest.php index ac7de067f42..dae3cc239fe 100644 --- a/tests/unit/Tag/ImageInputCest.php +++ b/tests/unit/Tag/ImageInputCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ImageInputCest extends TagSetup /** * Tests Phalcon\Tag :: imageInput() - string as a parameter * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagImageInputStringParameter(UnitTester $I) @@ -52,7 +52,7 @@ public function tagImageInputStringParameter(UnitTester $I) /** * Tests Phalcon\Tag :: imageInput() - array as a parameter * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagImageInputArrayParameter(UnitTester $I) @@ -92,7 +92,7 @@ public function tagImageInputArrayParameter(UnitTester $I) /** * Tests Phalcon\Tag :: imageInput() - array as a parameters and id in it * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagImageInputArrayParameterWithId(UnitTester $I) @@ -136,7 +136,7 @@ public function tagImageInputArrayParameterWithId(UnitTester $I) /** * Tests Phalcon\Tag :: imageInput() - name and no id in parameter * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagImageInputArrayParameterWithNameNoId(UnitTester $I) @@ -180,7 +180,7 @@ public function tagImageInputArrayParameterWithNameNoId(UnitTester $I) /** * Tests Phalcon\Tag :: imageInput() - setDefault * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagImageInputWithSetDefault(UnitTester $I) @@ -227,7 +227,7 @@ public function tagImageInputWithSetDefault(UnitTester $I) /** * Tests Phalcon\Tag :: imageInput() - displayTo * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagImageInputWithDisplayTo(UnitTester $I) @@ -275,7 +275,7 @@ public function tagImageInputWithDisplayTo(UnitTester $I) /** * Tests Phalcon\Tag :: imageInput() - setDefault and element not present * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagImageInputWithSetDefaultElementNotPresent(UnitTester $I) @@ -323,7 +323,7 @@ public function tagImageInputWithSetDefaultElementNotPresent(UnitTester $I) /** * Tests Phalcon\Tag :: imageInput() - displayTo and element not present * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagImageInputWithDisplayToElementNotPresent(UnitTester $I) diff --git a/tests/unit/Tag/JavascriptIncludeCest.php b/tests/unit/Tag/JavascriptIncludeCest.php index fc09d5ad07c..f564c83cc61 100644 --- a/tests/unit/Tag/JavascriptIncludeCest.php +++ b/tests/unit/Tag/JavascriptIncludeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class JavascriptIncludeCest extends TagSetup /** * Tests Phalcon\Tag :: javascriptInclude() - string as a parameter local * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-29 */ public function tagJavascriptIncludeLocal(UnitTester $I) @@ -43,7 +43,7 @@ public function tagJavascriptIncludeLocal(UnitTester $I) /** * Tests Phalcon\Tag :: javascriptInclude() - array as a parameter local * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-29 */ public function tagJavascriptIncludeWithArrayLocal(UnitTester $I) @@ -65,7 +65,7 @@ public function tagJavascriptIncludeWithArrayLocal(UnitTester $I) /** * Tests Phalcon\Tag :: javascriptInclude() - remote link * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-29 */ public function tagJavascriptIncludeRemote(UnitTester $I) @@ -88,7 +88,7 @@ public function tagJavascriptIncludeRemote(UnitTester $I) * Tests Phalcon\Tag :: javascriptInclude() - array parameter for a remote * link * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-29 */ public function tagJavascriptIncludeWithArrayRemote(UnitTester $I) @@ -110,7 +110,7 @@ public function tagJavascriptIncludeWithArrayRemote(UnitTester $I) * * @issue https://github.com/phalcon/cphalcon/issues/13341 * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-12-22 */ public function tagJavascriptIncludeHtml5(UnitTester $I) diff --git a/tests/unit/Tag/LinkToCest.php b/tests/unit/Tag/LinkToCest.php index aaed4bd4090..49fa76f4c02 100644 --- a/tests/unit/Tag/LinkToCest.php +++ b/tests/unit/Tag/LinkToCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class LinkToCest extends TagSetup /** * Tests Phalcon\Tag :: linkTo() - string as URL and name * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-29 */ public function tagLinkToWithStringAsURLAndName(UnitTester $I) @@ -41,7 +41,7 @@ public function tagLinkToWithStringAsURLAndName(UnitTester $I) * Tests Phalcon\Tag :: linkTo() - string as URL and name * * @issue https://github.com/phalcon/cphalcon/issues/2002 - * @author Phalcon Team + * @author Phalcon Team * @author Dreamszhu * @since 2014-03-10 */ @@ -71,7 +71,7 @@ public function tagLinkToWithQueryParam(UnitTester $I) * Tests Phalcon\Tag :: linkTo() - empty string as URL and string as name * parameter * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-29 */ public function tagLinkToWithEmptyStringAsURLAndStringAsName(UnitTester $I) @@ -90,7 +90,7 @@ public function tagLinkToWithEmptyStringAsURLAndStringAsName(UnitTester $I) /** * Tests Phalcon\Tag :: linkTo() - array as a parameter * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-29 */ public function tagLinkToArrayParameter(UnitTester $I) @@ -111,7 +111,7 @@ public function tagLinkToArrayParameter(UnitTester $I) /** * Tests Phalcon\Tag :: linkTo() - named array as a parameter * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-29 */ public function tagLinkToNamedArrayParameter(UnitTester $I) @@ -134,7 +134,7 @@ public function tagLinkToNamedArrayParameter(UnitTester $I) * Tests Phalcon\Tag :: linkTo() - complex local URL * * @issue https://github.com/phalcon/cphalcon/issues/1679 - * @author Phalcon Team + * @author Phalcon Team * @author Dreamszhu * @since 2014-09-29 */ @@ -182,7 +182,7 @@ public function tagLinkToWithComplexLocalUrl(UnitTester $I) * Tests Phalcon\Tag :: linkTo() - complex remote URL * * @issue https://github.com/phalcon/cphalcon/issues/1679 - * @author Phalcon Team + * @author Phalcon Team * @author Dreamszhu * @since 2014-09-29 */ @@ -192,47 +192,47 @@ public function tagLinkToWithComplexRemoteUrl(UnitTester $I) Tag::resetInput(); - $url = 'http://phalconphp.com/en/'; + $url = 'http://phalcon.io/en/'; $name = 'x_name'; $I->assertEquals( - 'x_name', + 'x_name', Tag::linkTo($url, $name, false) ); Tag::resetInput(); $options = [ - 'http://phalconphp.com/en/', + 'http://phalcon.io/en/', 'x_name', false, ]; $I->assertEquals( - 'x_name', + 'x_name', Tag::linkTo($options) ); Tag::resetInput(); $options = [ - 'http://phalconphp.com/en/', + 'http://phalcon.io/en/', 'text' => 'x_name', 'local' => false, ]; $I->assertEquals( - 'x_name', + 'x_name', Tag::linkTo($options) ); Tag::resetInput(); - $url = 'mailto:someone@phalconphp.com'; - $name = 'someone@phalconphp.com'; + $url = 'mailto:someone@phalcon.io'; + $name = 'someone@phalcon.io'; $I->assertEquals( - 'someone@phalconphp.com', + 'someone@phalcon.io', Tag::linkTo($url, $name, false) ); } diff --git a/tests/unit/Tag/MonthFieldCest.php b/tests/unit/Tag/MonthFieldCest.php index f6c8aac41d6..559ef07cec0 100644 --- a/tests/unit/Tag/MonthFieldCest.php +++ b/tests/unit/Tag/MonthFieldCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Tag/NumericFieldCest.php b/tests/unit/Tag/NumericFieldCest.php index e966f4d54f3..aa978612ec4 100644 --- a/tests/unit/Tag/NumericFieldCest.php +++ b/tests/unit/Tag/NumericFieldCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Tag/PasswordFieldCest.php b/tests/unit/Tag/PasswordFieldCest.php index a75cdd8cc73..0bd2921ab9d 100644 --- a/tests/unit/Tag/PasswordFieldCest.php +++ b/tests/unit/Tag/PasswordFieldCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Tag/PrependTitleCest.php b/tests/unit/Tag/PrependTitleCest.php index 76316eb9f5e..4457fb9284d 100644 --- a/tests/unit/Tag/PrependTitleCest.php +++ b/tests/unit/Tag/PrependTitleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class PrependTitleCest /** * Tests Phalcon\Tag :: prependTitle() * - * @author Phalcon Team + * @author Phalcon Team * @since 2012-09-05 */ public function tagPrependTitle(UnitTester $I) @@ -52,7 +52,7 @@ public function tagPrependTitle(UnitTester $I) /** * Tests Phalcon\Tag :: prependTitle() - separator * - * @author Phalcon Team + * @author Phalcon Team * @since 2012-09-05 */ public function tagPrependTitleSeparator(UnitTester $I) @@ -85,7 +85,7 @@ public function tagPrependTitleSeparator(UnitTester $I) /** * Tests Phalcon\Tag :: prependTitle() - double call * - * @author Phalcon Team + * @author Phalcon Team * @since 2012-09-05 */ public function tagPrependTitleDoubleCall(UnitTester $I) @@ -119,7 +119,7 @@ public function tagPrependTitleDoubleCall(UnitTester $I) /** * Tests Phalcon\Tag :: prependTitle() - array * - * @author Phalcon Team + * @author Phalcon Team * @since 2012-09-05 */ public function tagPrependTitleArray(UnitTester $I) @@ -154,7 +154,7 @@ public function tagPrependTitleArray(UnitTester $I) /** * Tests Phalcon\Tag :: prependTitle() - empty array * - * @author Phalcon Team + * @author Phalcon Team * @since 2012-09-05 */ public function tagPrependTitleEmptyArray(UnitTester $I) diff --git a/tests/unit/Tag/RadioFieldCest.php b/tests/unit/Tag/RadioFieldCest.php index 15923fb976c..219c046e250 100644 --- a/tests/unit/Tag/RadioFieldCest.php +++ b/tests/unit/Tag/RadioFieldCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class RadioFieldCest /** * Tests Phalcon\Tag :: radioField() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function testRadioField(UnitTester $I) diff --git a/tests/unit/Tag/RangeFieldCest.php b/tests/unit/Tag/RangeFieldCest.php index 93cf871923b..563149894d9 100644 --- a/tests/unit/Tag/RangeFieldCest.php +++ b/tests/unit/Tag/RangeFieldCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Tag/RenderAttributesCest.php b/tests/unit/Tag/RenderAttributesCest.php index 35499a16695..5d62a510105 100644 --- a/tests/unit/Tag/RenderAttributesCest.php +++ b/tests/unit/Tag/RenderAttributesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class RenderAttributesCest /** * Tests Phalcon\Tag :: renderAttributes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function testRenderAttributes(UnitTester $I) diff --git a/tests/unit/Tag/RenderTitleCest.php b/tests/unit/Tag/RenderTitleCest.php index 4ef13b687f4..d49b124fbc9 100644 --- a/tests/unit/Tag/RenderTitleCest.php +++ b/tests/unit/Tag/RenderTitleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class RenderTitleCest /** * Tests Phalcon\Tag :: renderTitle() - with malicious code * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-01 */ public function tatRenderTitleWithMaliciousContent(UnitTester $I) diff --git a/tests/unit/Tag/ResetInputCest.php b/tests/unit/Tag/ResetInputCest.php index 3e544212d93..ac7248e9acd 100644 --- a/tests/unit/Tag/ResetInputCest.php +++ b/tests/unit/Tag/ResetInputCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class ResetInputCest * * @issue https://github.com/phalcon/cphalcon/issues/11319 * @issue https://github.com/phalcon/cphalcon/issues/12099 - * @author Phalcon Team + * @author Phalcon Team * @since 2016-01-20 */ public function tagResetInputShouldNotClearPOST(UnitTester $I) @@ -51,7 +51,7 @@ public function tagResetInputShouldNotClearPOST(UnitTester $I) * Tests Phalcon\Tag :: resetInput() - setDefault * * @issue https://github.com/phalcon/cphalcon/issues/53 - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagResetInputSetDefault(UnitTester $I) @@ -101,7 +101,7 @@ public function tagResetInputSetDefault(UnitTester $I) /** * Tests Phalcon\Tag :: resetInput() - displayTo * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagResetInputDisplayTo(UnitTester $I) diff --git a/tests/unit/Tag/SearchFieldCest.php b/tests/unit/Tag/SearchFieldCest.php index 1cff498bd13..f3da7b4fadc 100644 --- a/tests/unit/Tag/SearchFieldCest.php +++ b/tests/unit/Tag/SearchFieldCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Tag/Select/SelectFieldCest.php b/tests/unit/Tag/Select/SelectFieldCest.php index d93d6d82728..a434bd61011 100644 --- a/tests/unit/Tag/Select/SelectFieldCest.php +++ b/tests/unit/Tag/Select/SelectFieldCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SelectFieldCest /** * Tests Phalcon\Tag\Select :: selectField() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function tagSelectSelectField(UnitTester $I) diff --git a/tests/unit/Tag/SelectCest.php b/tests/unit/Tag/SelectCest.php index 6ceb5405907..a6384d22216 100644 --- a/tests/unit/Tag/SelectCest.php +++ b/tests/unit/Tag/SelectCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Tag/SelectStaticCest.php b/tests/unit/Tag/SelectStaticCest.php index 79ed25a6322..37ab0cb9860 100644 --- a/tests/unit/Tag/SelectStaticCest.php +++ b/tests/unit/Tag/SelectStaticCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class SelectStaticCest extends TagSetup /** * Tests Phalcon\Tag :: selectStatic() - string as a parameter * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagSelectStaticStringParameter(UnitTester $I) @@ -51,7 +51,7 @@ public function tagSelectStaticStringParameter(UnitTester $I) /** * Tests Phalcon\Tag :: selectStatic() - array as a parameter * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagSelectStaticArrayParameter(UnitTester $I) @@ -86,7 +86,7 @@ public function tagSelectStaticArrayParameter(UnitTester $I) * Tests Phalcon\Tag :: selectStatic() - array as a parameters and id in it * * @issue https://github.com/phalcon/cphalcon/issues/54 - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagSelectStaticArrayParameterWithId(UnitTester $I) @@ -122,7 +122,7 @@ public function tagSelectStaticArrayParameterWithId(UnitTester $I) * Tests Phalcon\Tag :: selectStatic() - name and no id in parameter * * @issue https://github.com/phalcon/cphalcon/issues/54 - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagSelectStaticArrayParameterWithNameNoId(UnitTester $I) @@ -157,7 +157,7 @@ public function tagSelectStaticArrayParameterWithNameNoId(UnitTester $I) /** * Tests Phalcon\Tag :: selectStatic() - value in parameters * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagSelectStaticArrayParameterWithValue(UnitTester $I) @@ -192,7 +192,7 @@ public function tagSelectStaticArrayParameterWithValue(UnitTester $I) /** * Tests Phalcon\Tag :: selectStatic() - setDefault * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagSelectStaticWithSetDefault(UnitTester $I) @@ -229,7 +229,7 @@ public function tagSelectStaticWithSetDefault(UnitTester $I) /** * Tests Phalcon\Tag :: selectStatic() - displayTo * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagSelectStaticWithDisplayTo(UnitTester $I) @@ -266,7 +266,7 @@ public function tagSelectStaticWithDisplayTo(UnitTester $I) /** * Tests Phalcon\Tag :: selectStatic() - setDefault and element not present * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagSelectStaticWithSetDefaultElementNotPresent(UnitTester $I) @@ -304,7 +304,7 @@ public function tagSelectStaticWithSetDefaultElementNotPresent(UnitTester $I) /** * Tests Phalcon\Tag :: selectStatic() - displayTo and element not present * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagSelectStaticWithDisplayToElementNotPresent(UnitTester $I) @@ -342,7 +342,7 @@ public function tagSelectStaticWithDisplayToElementNotPresent(UnitTester $I) /** * Tests Phalcon\Tag :: selectStatic() - opt group array as a parameter * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagSelectStaticOptGroupArrayParameter(UnitTester $I) @@ -381,7 +381,7 @@ public function tagSelectStaticOptGroupArrayParameter(UnitTester $I) * Tests Phalcon\Tag :: selectStatic() - array as a parameters and id in it * * @issue https://github.com/phalcon/cphalcon/issues/54 - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagSelectStaticOptGroupArrayParameterWithId(UnitTester $I) @@ -424,7 +424,7 @@ public function tagSelectStaticOptGroupArrayParameterWithId(UnitTester $I) * parameter * * @issue https://github.com/phalcon/cphalcon/issues/54 - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagSelectStaticOptGroupArrayParameterWithNameNoId(UnitTester $I) @@ -465,7 +465,7 @@ public function tagSelectStaticOptGroupArrayParameterWithNameNoId(UnitTester $I) /** * Tests Phalcon\Tag :: selectStatic() - value in parameters * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagSelectStaticOptGroupArrayParameterWithValue(UnitTester $I) @@ -506,7 +506,7 @@ public function tagSelectStaticOptGroupArrayParameterWithValue(UnitTester $I) /** * Tests Phalcon\Tag :: selectStatic() - setDefault * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagSelectStaticOptGroupWithSetDefault(UnitTester $I) @@ -549,7 +549,7 @@ public function tagSelectStaticOptGroupWithSetDefault(UnitTester $I) /** * Tests Phalcon\Tag :: selectStatic() - displayTo * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagSelectStaticOptGroupWithDisplayTo(UnitTester $I) @@ -592,7 +592,7 @@ public function tagSelectStaticOptGroupWithDisplayTo(UnitTester $I) /** * Tests Phalcon\Tag :: selectStatic() - setDefault and element not present * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagSelectStaticOptGroupWithSetDefaultElementNotPresent(UnitTester $I) @@ -636,7 +636,7 @@ public function tagSelectStaticOptGroupWithSetDefaultElementNotPresent(UnitTeste /** * Tests Phalcon\Tag :: selectStatic() - displayTo and element not present * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagSelectStaticOptGroupWithDisplayToElementNotPresent(UnitTester $I) diff --git a/tests/unit/Tag/SetAutoescapeCest.php b/tests/unit/Tag/SetAutoescapeCest.php index 3dd1525badc..4503b8fa6da 100644 --- a/tests/unit/Tag/SetAutoescapeCest.php +++ b/tests/unit/Tag/SetAutoescapeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetAutoescapeCest /** * Tests Phalcon\Tag :: setAutoescape() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function tagSetAutoescape(UnitTester $I) diff --git a/tests/unit/Tag/SetDICest.php b/tests/unit/Tag/SetDICest.php index 9445e0aaf3c..ebc34f80368 100644 --- a/tests/unit/Tag/SetDICest.php +++ b/tests/unit/Tag/SetDICest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetDICest /** * Tests Phalcon\Tag :: setDI() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function tagSetDI(UnitTester $I) diff --git a/tests/unit/Tag/SetDefaultCest.php b/tests/unit/Tag/SetDefaultCest.php index e94e21563de..82d27bdd127 100644 --- a/tests/unit/Tag/SetDefaultCest.php +++ b/tests/unit/Tag/SetDefaultCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Tag/SetDefaultsCest.php b/tests/unit/Tag/SetDefaultsCest.php index ac644f6520a..16201c6f573 100644 --- a/tests/unit/Tag/SetDefaultsCest.php +++ b/tests/unit/Tag/SetDefaultsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class SetDefaultsCest extends TagSetup /** * Tests Phalcon\Tag :: setDefaults() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function tagSetDefaults(UnitTester $I) diff --git a/tests/unit/Tag/SetDocTypeCest.php b/tests/unit/Tag/SetDocTypeCest.php index 007008699ae..55a6d8683a1 100644 --- a/tests/unit/Tag/SetDocTypeCest.php +++ b/tests/unit/Tag/SetDocTypeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class SetDocTypeCest extends TagSetup /** * Tests Phalcon\Tag :: setDocType() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function tagSetDocType(UnitTester $I) diff --git a/tests/unit/Tag/SetTitleCest.php b/tests/unit/Tag/SetTitleCest.php index 26c4064ba52..75a78e722fc 100644 --- a/tests/unit/Tag/SetTitleCest.php +++ b/tests/unit/Tag/SetTitleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetTitleCest /** * Tests Phalcon\Tag :: setTitle() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function tagSetTitle(UnitTester $I) diff --git a/tests/unit/Tag/SetTitleSeparatorCest.php b/tests/unit/Tag/SetTitleSeparatorCest.php index f81e8f6d8a0..9568138998f 100644 --- a/tests/unit/Tag/SetTitleSeparatorCest.php +++ b/tests/unit/Tag/SetTitleSeparatorCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SetTitleSeparatorCest /** * Tests Phalcon\Tag :: setTitleSeparator() * - * @author Phalcon Team + * @author Phalcon Team * @since 2012-09-05 * @since 2018-11-13 */ diff --git a/tests/unit/Tag/StylesheetLinkCest.php b/tests/unit/Tag/StylesheetLinkCest.php index f57bfec0151..9e0be2415f6 100644 --- a/tests/unit/Tag/StylesheetLinkCest.php +++ b/tests/unit/Tag/StylesheetLinkCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class StylesheetLinkCest extends TagSetup * Tests Phalcon\Tag :: stylesheetLink() - string parameter for a local link * * @issue https://github.com/phalcon/cphalcon/issues/1486 - * @author Phalcon Team + * @author Phalcon Team * @author Dreamszhu * @since 2014-09-12 */ @@ -61,7 +61,7 @@ public function tagStylesheetLinkStringParameterLocal(UnitTester $I) * Tests Phalcon\Tag :: stylesheetLink() - array parameter for a local link * * @issue https://github.com/phalcon/cphalcon/issues/1486 - * @author Phalcon Team + * @author Phalcon Team * @author Dreamszhu * @since 2014-09-12 */ @@ -104,7 +104,7 @@ public function tagStylesheetLinkArrayParameterLocal(UnitTester $I) * Tests Phalcon\Tag :: stylesheetLink() - string parameter for a remote * link * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-12 */ public function tagStylesheetLinkStringParameterRemote(UnitTester $I) @@ -113,8 +113,8 @@ public function tagStylesheetLinkStringParameterRemote(UnitTester $I) Tag::resetInput(); - $options = 'http://phalconphp.com/css/phalcon.css'; - $expected = '' . PHP_EOL; + $options = 'http://phalcon.io/css/phalcon.css'; + $expected = '' . PHP_EOL; Tag::setDocType( Tag::XHTML10_STRICT @@ -126,8 +126,8 @@ public function tagStylesheetLinkStringParameterRemote(UnitTester $I) Tag::resetInput(); - $options = 'http://phalconphp.com/css/phalcon.css'; - $expected = '' . PHP_EOL; + $options = 'http://phalcon.io/css/phalcon.css'; + $expected = '' . PHP_EOL; Tag::setDocType( Tag::HTML5 @@ -141,7 +141,7 @@ public function tagStylesheetLinkStringParameterRemote(UnitTester $I) /** * Tests Phalcon\Tag :: stylesheetLink() - array parameter for a remote link * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-12 */ public function tagStylesheetLinkArrayParameterRemote(UnitTester $I) @@ -150,8 +150,8 @@ public function tagStylesheetLinkArrayParameterRemote(UnitTester $I) Tag::resetInput(); - $options = ['http://phalconphp.com/css/phalcon.css']; - $expected = '' . PHP_EOL; + $options = ['http://phalcon.io/css/phalcon.css']; + $expected = '' . PHP_EOL; Tag::setDocType( Tag::XHTML10_STRICT @@ -163,8 +163,8 @@ public function tagStylesheetLinkArrayParameterRemote(UnitTester $I) Tag::resetInput(); - $options = ['http://phalconphp.com/css/phalcon.css']; - $expected = '' . PHP_EOL; + $options = ['http://phalcon.io/css/phalcon.css']; + $expected = '' . PHP_EOL; Tag::setDocType( Tag::HTML5 @@ -179,7 +179,7 @@ public function tagStylesheetLinkArrayParameterRemote(UnitTester $I) * Tests Phalcon\Tag :: stylesheetLink() - overriding the rel link local * * @issue https://github.com/phalcon/cphalcon/issues/2142 - * @author Phalcon Team + * @author Phalcon Team * @author Dreamszhu * @since 2014-09-12 */ diff --git a/tests/unit/Tag/SubmitButtonCest.php b/tests/unit/Tag/SubmitButtonCest.php index f8c846701ee..98dc0eede39 100644 --- a/tests/unit/Tag/SubmitButtonCest.php +++ b/tests/unit/Tag/SubmitButtonCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class SubmitButtonCest extends TagSetup /** * Tests Phalcon\Tag :: submitButton() - string as a parameter * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagSubmitButtonStringParameter(UnitTester $I) @@ -37,7 +37,7 @@ public function tagSubmitButtonStringParameter(UnitTester $I) /** * Tests Phalcon\Tag :: submitButton() - array as a parameter * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagSubmitButtonArrayParameter(UnitTester $I) @@ -58,7 +58,7 @@ public function tagSubmitButtonArrayParameter(UnitTester $I) /** * Tests Phalcon\Tag :: submitButton() - array as parameter and id in it * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagSubmitButtonArrayParameterWithId(UnitTester $I) @@ -81,7 +81,7 @@ public function tagSubmitButtonArrayParameterWithId(UnitTester $I) /** * Tests Phalcon\Tag :: submitButton() - name and no id in parameter * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagSubmitButtonArrayParameterWithNameNoId(UnitTester $I) @@ -104,7 +104,7 @@ public function tagSubmitButtonArrayParameterWithNameNoId(UnitTester $I) /** * Tests Phalcon\Tag :: submitButton() - setDefault * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagSubmitButtonWithSetDefault(UnitTester $I) @@ -127,7 +127,7 @@ public function tagSubmitButtonWithSetDefault(UnitTester $I) /** * Tests Phalcon\Tag :: submitButton() - displayTo * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagSubmitButtonWithDisplayTo(UnitTester $I) @@ -150,7 +150,7 @@ public function tagSubmitButtonWithDisplayTo(UnitTester $I) /** * Tests Phalcon\Tag :: submitButton() - setDefault and element not present * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagSubmitButtonWithSetDefaultElementNotPresent(UnitTester $I) @@ -173,7 +173,7 @@ public function tagSubmitButtonWithSetDefaultElementNotPresent(UnitTester $I) /** * Tests Phalcon\Tag :: submitButton() - displayTo and element not present * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagSubmitButtonWithDisplayToElementNotPresent(UnitTester $I) diff --git a/tests/unit/Tag/TagHtmlCest.php b/tests/unit/Tag/TagHtmlCest.php index b478a6b7516..65fba341c8d 100644 --- a/tests/unit/Tag/TagHtmlCest.php +++ b/tests/unit/Tag/TagHtmlCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -22,7 +22,7 @@ class TagHtmlCest extends TagSetup /** * Tests Phalcon\Tag :: tagHtml() - name parameter * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 * * @dataProvider tagHtmlNameProvider @@ -65,7 +65,7 @@ private function tagHtmlNameProvider(): array /** * Tests Phalcon\Tag :: tagHtml() - name parameter and self close * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagNameSelfClose(UnitTester $I) @@ -102,7 +102,7 @@ public function tagNameSelfClose(UnitTester $I) /** * Tests Phalcon\Tag :: tagHtml() - name parameter and only start * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagTagHtmlNameOnlyStart(UnitTester $I) @@ -139,7 +139,7 @@ public function tagTagHtmlNameOnlyStart(UnitTester $I) /** * Tests Phalcon\Tag :: tagHtml() - name parameter and EOL * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagTagHtmlNameEol(UnitTester $I) @@ -176,7 +176,7 @@ public function tagTagHtmlNameEol(UnitTester $I) /** * Tests Phalcon\Tag :: tagHtml() - array parameter * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagTagHtmlWithArray(UnitTester $I) diff --git a/tests/unit/Tag/TagHtmlCloseCest.php b/tests/unit/Tag/TagHtmlCloseCest.php index 0c2159bdd00..ab0f85a25cb 100644 --- a/tests/unit/Tag/TagHtmlCloseCest.php +++ b/tests/unit/Tag/TagHtmlCloseCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class TagHtmlCloseCest extends TagSetup /** * Tests Phalcon\Tag :: tagHtmlClose() * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagTagHtmlClose(UnitTester $I) @@ -58,7 +58,7 @@ public function tagTagHtmlClose(UnitTester $I) /** * Tests Phalcon\Tag :: tagHtmlClose() - EOL * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagTagHtmlCloseEol(UnitTester $I) diff --git a/tests/unit/Tag/TelFieldCest.php b/tests/unit/Tag/TelFieldCest.php index 5623147c989..fad46d23e56 100644 --- a/tests/unit/Tag/TelFieldCest.php +++ b/tests/unit/Tag/TelFieldCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Tag/TextAreaCest.php b/tests/unit/Tag/TextAreaCest.php index 868e0001daf..fb5ad130863 100644 --- a/tests/unit/Tag/TextAreaCest.php +++ b/tests/unit/Tag/TextAreaCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class TextAreaCest extends TagSetup /** * Tests Phalcon\Tag :: textArea() - string as a parameter * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagTextAreaStringParameter(UnitTester $I) @@ -37,7 +37,7 @@ public function tagTextAreaStringParameter(UnitTester $I) /** * Tests Phalcon\Tag :: textArea() - array as a parameter * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagTextAreaArrayParameter(UnitTester $I) @@ -57,7 +57,7 @@ public function tagTextAreaArrayParameter(UnitTester $I) /** * Tests Phalcon\Tag :: textArea() - array as a parameters and id in it * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagTextAreaArrayParameterWithId(UnitTester $I) @@ -79,7 +79,7 @@ public function tagTextAreaArrayParameterWithId(UnitTester $I) /** * Tests Phalcon\Tag :: textArea() - name and no id in parameter * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagTextAreaArrayParameterWithNameNoId(UnitTester $I) @@ -101,7 +101,7 @@ public function tagTextAreaArrayParameterWithNameNoId(UnitTester $I) /** * Tests Phalcon\Tag :: textArea() - setDefault * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagTextAreaWithSetDefault(UnitTester $I) @@ -123,7 +123,7 @@ public function tagTextAreaWithSetDefault(UnitTester $I) /** * Tests Phalcon\Tag :: textArea() - displayTo * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagTextAreaWithDisplayTo(UnitTester $I) @@ -145,7 +145,7 @@ public function tagTextAreaWithDisplayTo(UnitTester $I) /** * Tests Phalcon\Tag :: textArea() - setDefault and element not present * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagTextAreaWithSetDefaultElementNotPresent(UnitTester $I) @@ -167,7 +167,7 @@ public function tagTextAreaWithSetDefaultElementNotPresent(UnitTester $I) /** * Tests Phalcon\Tag :: textArea() - displayTo and element not present * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-09-05 */ public function tagTextAreaWithDisplayToElementNotPresent(UnitTester $I) @@ -189,7 +189,7 @@ public function tagTextAreaWithDisplayToElementNotPresent(UnitTester $I) /** * Tests Phalcon\Tag :: textArea() - displayTo and newline in value * - * @author Phalcon Team + * @author Phalcon Team * @since 2014-10-03 */ public function tagTextAreaWithDisplayToAndNewlineInValue(UnitTester $I) diff --git a/tests/unit/Tag/TextFieldCest.php b/tests/unit/Tag/TextFieldCest.php index b204f681375..f2c215dbbce 100644 --- a/tests/unit/Tag/TextFieldCest.php +++ b/tests/unit/Tag/TextFieldCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Tag/TimeFieldCest.php b/tests/unit/Tag/TimeFieldCest.php index 2bde40abcdd..38ddd50b96b 100644 --- a/tests/unit/Tag/TimeFieldCest.php +++ b/tests/unit/Tag/TimeFieldCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Tag/UrlFieldCest.php b/tests/unit/Tag/UrlFieldCest.php index 91f193d488b..958368c8670 100644 --- a/tests/unit/Tag/UrlFieldCest.php +++ b/tests/unit/Tag/UrlFieldCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Tag/WeekFieldCest.php b/tests/unit/Tag/WeekFieldCest.php index 040148dde46..27c3d0e5825 100644 --- a/tests/unit/Tag/WeekFieldCest.php +++ b/tests/unit/Tag/WeekFieldCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Text/CamelizeCest.php b/tests/unit/Text/CamelizeCest.php index 1f2b04ca040..464d3104260 100644 --- a/tests/unit/Text/CamelizeCest.php +++ b/tests/unit/Text/CamelizeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class CamelizeCest * * @dataProvider getSources * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function textCamelize(UnitTester $I, Example $example) diff --git a/tests/unit/Text/ConcatCest.php b/tests/unit/Text/ConcatCest.php index 30948399997..12ec689fe47 100644 --- a/tests/unit/Text/ConcatCest.php +++ b/tests/unit/Text/ConcatCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ConcatCest /** * Tests Phalcon\Text :: concat() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function textConcat(UnitTester $I) diff --git a/tests/unit/Text/DynamicCest.php b/tests/unit/Text/DynamicCest.php index 3a36546e1f8..b27357570dd 100644 --- a/tests/unit/Text/DynamicCest.php +++ b/tests/unit/Text/DynamicCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -63,7 +63,7 @@ public function textDynamicCustomDelimiter(UnitTester $I) * Tests Phalcon\Text :: dynamic() - custom separator * * @issue https://github.com/phalcon/cphalcon/issues/11215 - * @author Phalcon Team + * @author Phalcon Team * @since 2016-06-27 */ public function textDynamicCustomSeparator(UnitTester $I) diff --git a/tests/unit/Text/EndsWithCest.php b/tests/unit/Text/EndsWithCest.php index 012f27246a1..fd7a3e26a0b 100644 --- a/tests/unit/Text/EndsWithCest.php +++ b/tests/unit/Text/EndsWithCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class EndsWithCest /** * Tests Phalcon\Text :: endsWith() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function textEndsWith(UnitTester $I) @@ -43,7 +43,7 @@ public function textEndsWith(UnitTester $I) /** * Tests Phalcon\Text :: endsWith() - empty strings * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function textEndsWithEmpty(UnitTester $I) @@ -58,7 +58,7 @@ public function textEndsWithEmpty(UnitTester $I) /** * Tests Phalcon\Text :: endsWith() - finding an empty string * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function textEndsWithEmptySearchString(UnitTester $I) @@ -74,7 +74,7 @@ public function textEndsWithEmptySearchString(UnitTester $I) /** * Tests Phalcon\Text :: endsWith() - case insensitive flag * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function textEndsWithCaseInsensitive(UnitTester $I) @@ -97,7 +97,7 @@ public function textEndsWithCaseInsensitive(UnitTester $I) /** * Tests Phalcon\Text :: endsWith() - case sensitive flag * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function textEndsWithCaseSensitive(UnitTester $I) diff --git a/tests/unit/Text/HumanizeCest.php b/tests/unit/Text/HumanizeCest.php index 3f7d4617b89..f8a6e2b2de4 100644 --- a/tests/unit/Text/HumanizeCest.php +++ b/tests/unit/Text/HumanizeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class HumanizeCest /** * Tests Phalcon\Text :: humanize() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider textHumanizeProvider diff --git a/tests/unit/Text/IncrementCest.php b/tests/unit/Text/IncrementCest.php index 858464ef7ec..9be525f7055 100644 --- a/tests/unit/Text/IncrementCest.php +++ b/tests/unit/Text/IncrementCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class IncrementCest /** * Tests Phalcon\Text :: increment() - string * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function textIncrementSimpleString(UnitTester $I) @@ -38,7 +38,7 @@ public function textIncrementSimpleString(UnitTester $I) /** * Tests Phalcon\Text :: increment() - already incremented string * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function textIncrementAlreadyIncremented(UnitTester $I) @@ -56,7 +56,7 @@ public function textIncrementAlreadyIncremented(UnitTester $I) /** * Tests Phalcon\Text :: increment() - already incremented string twice * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function textIncrementAlreadyIncrementedTwice(UnitTester $I) @@ -74,7 +74,7 @@ public function textIncrementAlreadyIncrementedTwice(UnitTester $I) /** * Tests Phalcon\Text :: increment() - string with underscore * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function textIncrementStringWithUnderscore(UnitTester $I) @@ -92,7 +92,7 @@ public function textIncrementStringWithUnderscore(UnitTester $I) /** * Tests Phalcon\Text :: increment() - string with a space at the end * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function textIncrementStringWithSpace(UnitTester $I) @@ -110,7 +110,7 @@ public function textIncrementStringWithSpace(UnitTester $I) /** * Tests Phalcon\Text :: increment() - different separator * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function textIncrementStringWithDifferentSeparator(UnitTester $I) diff --git a/tests/unit/Text/LowerCest.php b/tests/unit/Text/LowerCest.php index 351095e4ee0..c39b695d51a 100644 --- a/tests/unit/Text/LowerCest.php +++ b/tests/unit/Text/LowerCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class LowerCest /** * Tests Phalcon\Text :: lower() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function textLower(UnitTester $I) diff --git a/tests/unit/Text/RandomCest.php b/tests/unit/Text/RandomCest.php index 03b1d64641a..18633d79e92 100644 --- a/tests/unit/Text/RandomCest.php +++ b/tests/unit/Text/RandomCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class RandomCest /** * Tests Phalcon\Text :: random() - constants * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function textRandomConstants(UnitTester $I) @@ -39,7 +39,7 @@ public function textRandomConstants(UnitTester $I) /** * Tests Phalcon\Text :: random() - alnum * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider oneToTenProvider @@ -90,7 +90,7 @@ private function oneToTenProvider(): array /** * Tests Phalcon\Text :: random() - alpha * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider oneToTenProvider @@ -125,7 +125,7 @@ public function textRandomAlpha(UnitTester $I, Example $example) /** * Tests Phalcon\Text :: random() - hexdec * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider oneToTenProvider @@ -160,7 +160,7 @@ public function textRandomHexDec(UnitTester $I, Example $example) /** * Tests Phalcon\Text :: random() - numeric * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider oneToTenProvider @@ -195,7 +195,7 @@ public function textRandomNumeric(UnitTester $I, Example $example) /** * Tests Phalcon\Text :: random() - non zero * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider oneToTenProvider @@ -231,7 +231,7 @@ public function textRandomNonZero(UnitTester $I, Example $example) /** * Tests Phalcon\Text :: random() - distinct type * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider textRandomDistinctProvider diff --git a/tests/unit/Text/ReduceSlashesCest.php b/tests/unit/Text/ReduceSlashesCest.php index 0e87103b2ed..2387491ef1c 100644 --- a/tests/unit/Text/ReduceSlashesCest.php +++ b/tests/unit/Text/ReduceSlashesCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ReduceSlashesCest /** * Tests Phalcon\Text :: reduceSlashes() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 * * @dataProvider textReduceSlashesProvider diff --git a/tests/unit/Text/StartsWithCest.php b/tests/unit/Text/StartsWithCest.php index dee58f142d4..cfe7f8e83d7 100644 --- a/tests/unit/Text/StartsWithCest.php +++ b/tests/unit/Text/StartsWithCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class StartsWithCest /** * Tests Phalcon\Text :: startsWith() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function textStartsWith(UnitTester $I) @@ -43,7 +43,7 @@ public function textStartsWith(UnitTester $I) /** * Tests Phalcon\Text :: startsWith() - empty strings * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function textStartsWithEmpty(UnitTester $I) @@ -58,7 +58,7 @@ public function textStartsWithEmpty(UnitTester $I) /** * Tests Phalcon\Text :: startsWith() - finding an empty string * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function textStartsWithEmptySearchString(UnitTester $I) @@ -74,7 +74,7 @@ public function textStartsWithEmptySearchString(UnitTester $I) /** * Tests Phalcon\Text :: startsWith() - case insensitive flag * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function textStartsWithCaseInsensitive(UnitTester $I) @@ -97,7 +97,7 @@ public function textStartsWithCaseInsensitive(UnitTester $I) /** * Tests Phalcon\Text :: startsWith() - case sensitive flag * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function textStartsWithCaseSensitive(UnitTester $I) diff --git a/tests/unit/Text/UncamelizeCest.php b/tests/unit/Text/UncamelizeCest.php index 249b6d46c1c..f75c48006c7 100644 --- a/tests/unit/Text/UncamelizeCest.php +++ b/tests/unit/Text/UncamelizeCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class UncamelizeCest * * @dataProvider getSources * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function textUncamelize(UnitTester $I, Example $example) diff --git a/tests/unit/Text/UnderscoreCest.php b/tests/unit/Text/UnderscoreCest.php index ca3cc547927..ec71bd6edcc 100644 --- a/tests/unit/Text/UnderscoreCest.php +++ b/tests/unit/Text/UnderscoreCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class UnderscoreCest /** * Tests Phalcon\Text :: underscore() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function textUnderscore(UnitTester $I) diff --git a/tests/unit/Text/UpperCest.php b/tests/unit/Text/UpperCest.php index 458840d193f..8afac55a0ec 100644 --- a/tests/unit/Text/UpperCest.php +++ b/tests/unit/Text/UpperCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class UpperCest /** * Tests Phalcon\Text :: upper() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function textUpper(UnitTester $I) diff --git a/tests/unit/Translate/Adapter/Csv/ArrayAccessCest.php b/tests/unit/Translate/Adapter/Csv/ArrayAccessCest.php index efb77a4532d..00655047892 100644 --- a/tests/unit/Translate/Adapter/Csv/ArrayAccessCest.php +++ b/tests/unit/Translate/Adapter/Csv/ArrayAccessCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class ArrayAccessCest /** * Tests Phalcon\Translate\Adapter\Csv :: array access * - * @author Nikos Dimopoulos + * @author Nikos Dimopoulos * @since 2014-09-12 */ public function translateAdapterCsvWithArrayAccess(UnitTester $I) diff --git a/tests/unit/Translate/Adapter/Csv/ConstructCest.php b/tests/unit/Translate/Adapter/Csv/ConstructCest.php index 2cd8dc9a20e..ef2d0e888c4 100644 --- a/tests/unit/Translate/Adapter/Csv/ConstructCest.php +++ b/tests/unit/Translate/Adapter/Csv/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ class ConstructCest /** * Tests Phalcon\Translate\Adapter\Csv :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function translateAdapterCsvConstruct(UnitTester $I) @@ -55,7 +55,7 @@ public function translateAdapterCsvConstruct(UnitTester $I) /** * Tests Phalcon\Translate\Adapter\Csv :: __construct() - Exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function translateAdapterCsvContentParamExist(UnitTester $I) diff --git a/tests/unit/Translate/Adapter/Csv/ExistsCest.php b/tests/unit/Translate/Adapter/Csv/ExistsCest.php index 60f7f63ec86..042d3622f09 100644 --- a/tests/unit/Translate/Adapter/Csv/ExistsCest.php +++ b/tests/unit/Translate/Adapter/Csv/ExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class ExistsCest /** * Tests Phalcon\Translate\Adapter\Csv :: exists() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function translateAdapterCsvExists(UnitTester $I) diff --git a/tests/unit/Translate/Adapter/Csv/OffsetExistsCest.php b/tests/unit/Translate/Adapter/Csv/OffsetExistsCest.php index 6a3d435c46a..dbcddc26789 100644 --- a/tests/unit/Translate/Adapter/Csv/OffsetExistsCest.php +++ b/tests/unit/Translate/Adapter/Csv/OffsetExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class OffsetExistsCest /** * Tests Phalcon\Translate\Adapter\Csv :: offsetExists() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function translateAdapterCsvOffsetExists(UnitTester $I) diff --git a/tests/unit/Translate/Adapter/Csv/OffsetGetCest.php b/tests/unit/Translate/Adapter/Csv/OffsetGetCest.php index 1f10de885d6..699bfe007f5 100644 --- a/tests/unit/Translate/Adapter/Csv/OffsetGetCest.php +++ b/tests/unit/Translate/Adapter/Csv/OffsetGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class OffsetGetCest /** * Tests Phalcon\Translate\Adapter\Csv :: offsetGet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function translateAdapterCsvOffsetGet(UnitTester $I) diff --git a/tests/unit/Translate/Adapter/Csv/OffsetSetCest.php b/tests/unit/Translate/Adapter/Csv/OffsetSetCest.php index c81a3539d7b..729d965ef78 100644 --- a/tests/unit/Translate/Adapter/Csv/OffsetSetCest.php +++ b/tests/unit/Translate/Adapter/Csv/OffsetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class OffsetSetCest /** * Tests Phalcon\Translate\Adapter\Csv :: offsetSet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function translateAdapterCsvOffsetSet(UnitTester $I) diff --git a/tests/unit/Translate/Adapter/Csv/OffsetUnsetCest.php b/tests/unit/Translate/Adapter/Csv/OffsetUnsetCest.php index 4640b3be3b6..4af4758920f 100644 --- a/tests/unit/Translate/Adapter/Csv/OffsetUnsetCest.php +++ b/tests/unit/Translate/Adapter/Csv/OffsetUnsetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class OffsetUnsetCest /** * Tests Phalcon\Translate\Adapter\Csv :: offsetUnset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function translateAdapterCsvOffsetUnset(UnitTester $I) diff --git a/tests/unit/Translate/Adapter/Csv/QueryCest.php b/tests/unit/Translate/Adapter/Csv/QueryCest.php index 091c2ebb898..67db0e68a03 100644 --- a/tests/unit/Translate/Adapter/Csv/QueryCest.php +++ b/tests/unit/Translate/Adapter/Csv/QueryCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Translate/Adapter/Csv/TCest.php b/tests/unit/Translate/Adapter/Csv/TCest.php index bacd1b30f70..f375e23a031 100644 --- a/tests/unit/Translate/Adapter/Csv/TCest.php +++ b/tests/unit/Translate/Adapter/Csv/TCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Translate/Adapter/Csv/UnderscoreCest.php b/tests/unit/Translate/Adapter/Csv/UnderscoreCest.php index be3eebcb06a..3d564ce4529 100644 --- a/tests/unit/Translate/Adapter/Csv/UnderscoreCest.php +++ b/tests/unit/Translate/Adapter/Csv/UnderscoreCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Translate/Adapter/Gettext/ConstructCest.php b/tests/unit/Translate/Adapter/Gettext/ConstructCest.php index fbd7be14135..72f8e83cb21 100644 --- a/tests/unit/Translate/Adapter/Gettext/ConstructCest.php +++ b/tests/unit/Translate/Adapter/Gettext/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ class ConstructCest /** * Tests Phalcon\Translate\Adapter\Gettext :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function translateAdapterGettextConstruct(UnitTester $I) diff --git a/tests/unit/Translate/Adapter/Gettext/ExistsCest.php b/tests/unit/Translate/Adapter/Gettext/ExistsCest.php index 1fa2f8e3562..1b13bf07509 100644 --- a/tests/unit/Translate/Adapter/Gettext/ExistsCest.php +++ b/tests/unit/Translate/Adapter/Gettext/ExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class ExistsCest /** * Tests Phalcon\Translate\Adapter\Gettext :: exists() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function translateAdapterGettextExists(UnitTester $I) diff --git a/tests/unit/Translate/Adapter/Gettext/GetCategoryCest.php b/tests/unit/Translate/Adapter/Gettext/GetCategoryCest.php index b00724dfeb4..4d6f8c954db 100644 --- a/tests/unit/Translate/Adapter/Gettext/GetCategoryCest.php +++ b/tests/unit/Translate/Adapter/Gettext/GetCategoryCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class GetCategoryCest /** * Tests Phalcon\Translate\Adapter\Gettext :: getCategory() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function translateAdapterGettextGetCategory(UnitTester $I) diff --git a/tests/unit/Translate/Adapter/Gettext/GetSetDefaultDomainCest.php b/tests/unit/Translate/Adapter/Gettext/GetSetDefaultDomainCest.php index 37a781b197d..92a66483928 100644 --- a/tests/unit/Translate/Adapter/Gettext/GetSetDefaultDomainCest.php +++ b/tests/unit/Translate/Adapter/Gettext/GetSetDefaultDomainCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class GetSetDefaultDomainCest * Tests Phalcon\Translate\Adapter\Gettext :: * getDefaultDomain()/setDefaultDomain() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function translateAdapterGettextGetSetDefaultDomain(UnitTester $I) diff --git a/tests/unit/Translate/Adapter/Gettext/GetSetDirectoryCest.php b/tests/unit/Translate/Adapter/Gettext/GetSetDirectoryCest.php index f710311bf00..fc21e028863 100644 --- a/tests/unit/Translate/Adapter/Gettext/GetSetDirectoryCest.php +++ b/tests/unit/Translate/Adapter/Gettext/GetSetDirectoryCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class GetSetDirectoryCest /** * Tests Phalcon\Translate\Adapter\Gettext :: getDirectory()/setDirectory() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function translateAdapterGettextGetSetDirectory(UnitTester $I) diff --git a/tests/unit/Translate/Adapter/Gettext/GetSetLocaleCest.php b/tests/unit/Translate/Adapter/Gettext/GetSetLocaleCest.php index 34e91debffc..1d896b7ebe5 100644 --- a/tests/unit/Translate/Adapter/Gettext/GetSetLocaleCest.php +++ b/tests/unit/Translate/Adapter/Gettext/GetSetLocaleCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class GetSetLocaleCest /** * Tests Phalcon\Translate\Adapter\Gettext :: getLocale()/setLocale() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function translateAdapterGettextGetSetLocale(UnitTester $I) diff --git a/tests/unit/Translate/Adapter/Gettext/NqueryCest.php b/tests/unit/Translate/Adapter/Gettext/NqueryCest.php index a6beb317891..d0939df1962 100644 --- a/tests/unit/Translate/Adapter/Gettext/NqueryCest.php +++ b/tests/unit/Translate/Adapter/Gettext/NqueryCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class NqueryCest /** * Tests Phalcon\Translate\Adapter\Gettext :: nquery() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function translateAdapterGettextNquery(UnitTester $I) diff --git a/tests/unit/Translate/Adapter/Gettext/OffsetExistsCest.php b/tests/unit/Translate/Adapter/Gettext/OffsetExistsCest.php index 7902f1345ed..5681ba6ea94 100644 --- a/tests/unit/Translate/Adapter/Gettext/OffsetExistsCest.php +++ b/tests/unit/Translate/Adapter/Gettext/OffsetExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class OffsetExistsCest /** * Tests Phalcon\Translate\Adapter\Gettext :: offsetExists() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function translateAdapterGettextOffsetExists(UnitTester $I) diff --git a/tests/unit/Translate/Adapter/Gettext/OffsetGetCest.php b/tests/unit/Translate/Adapter/Gettext/OffsetGetCest.php index 7393d4ce770..2dacb8ea3c6 100644 --- a/tests/unit/Translate/Adapter/Gettext/OffsetGetCest.php +++ b/tests/unit/Translate/Adapter/Gettext/OffsetGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class OffsetGetCest /** * Tests Phalcon\Translate\Adapter\Gettext :: offsetGet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function translateAdapterGettextOffsetGet(UnitTester $I) diff --git a/tests/unit/Translate/Adapter/Gettext/OffsetSetCest.php b/tests/unit/Translate/Adapter/Gettext/OffsetSetCest.php index bff20e42d2a..63d39556e25 100644 --- a/tests/unit/Translate/Adapter/Gettext/OffsetSetCest.php +++ b/tests/unit/Translate/Adapter/Gettext/OffsetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class OffsetSetCest /** * Tests Phalcon\Translate\Adapter\Gettext :: offsetSet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function translateAdapterGettextOffsetSet(UnitTester $I) diff --git a/tests/unit/Translate/Adapter/Gettext/OffsetUnsetCest.php b/tests/unit/Translate/Adapter/Gettext/OffsetUnsetCest.php index fba89c893f9..0c8379f0bce 100644 --- a/tests/unit/Translate/Adapter/Gettext/OffsetUnsetCest.php +++ b/tests/unit/Translate/Adapter/Gettext/OffsetUnsetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class OffsetUnsetCest /** * Tests Phalcon\Translate\Adapter\Gettext :: offsetUnset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function translateAdapterGettextOffsetUnset(UnitTester $I) diff --git a/tests/unit/Translate/Adapter/Gettext/QueryCest.php b/tests/unit/Translate/Adapter/Gettext/QueryCest.php index e9ef02831e3..ad162b61195 100644 --- a/tests/unit/Translate/Adapter/Gettext/QueryCest.php +++ b/tests/unit/Translate/Adapter/Gettext/QueryCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class QueryCest /** * Tests Phalcon\Translate\Adapter\Gettext :: query() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function translateAdapterGettextQuery(UnitTester $I) diff --git a/tests/unit/Translate/Adapter/Gettext/ResetDomainCest.php b/tests/unit/Translate/Adapter/Gettext/ResetDomainCest.php index 39d2d14496b..4b95439ccd0 100644 --- a/tests/unit/Translate/Adapter/Gettext/ResetDomainCest.php +++ b/tests/unit/Translate/Adapter/Gettext/ResetDomainCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class ResetDomainCest /** * Tests Phalcon\Translate\Adapter\Gettext :: resetDomain() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function translateAdapterGettextResetDomain(UnitTester $I) diff --git a/tests/unit/Translate/Adapter/Gettext/SetDomainCest.php b/tests/unit/Translate/Adapter/Gettext/SetDomainCest.php index db216f57f86..906d7bceb5d 100644 --- a/tests/unit/Translate/Adapter/Gettext/SetDomainCest.php +++ b/tests/unit/Translate/Adapter/Gettext/SetDomainCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class SetDomainCest /** * Tests Phalcon\Translate\Adapter\Gettext :: setDomain() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function translateAdapterGettextSetDomain(UnitTester $I) diff --git a/tests/unit/Translate/Adapter/Gettext/TCest.php b/tests/unit/Translate/Adapter/Gettext/TCest.php index ea438276114..575e5a29b17 100644 --- a/tests/unit/Translate/Adapter/Gettext/TCest.php +++ b/tests/unit/Translate/Adapter/Gettext/TCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Translate/Adapter/Gettext/UnderscoreCest.php b/tests/unit/Translate/Adapter/Gettext/UnderscoreCest.php index b107c7eb3f9..4d362f3856d 100644 --- a/tests/unit/Translate/Adapter/Gettext/UnderscoreCest.php +++ b/tests/unit/Translate/Adapter/Gettext/UnderscoreCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -19,7 +19,7 @@ class UnderscoreCest /** * Tests Phalcon\Translate\Adapter\Gettext :: _() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function translateAdapterGettextUnderscore(UnitTester $I) diff --git a/tests/unit/Translate/Adapter/NativeArray/ArrayAccessCest.php b/tests/unit/Translate/Adapter/NativeArray/ArrayAccessCest.php index fe06a895530..6cfde6e5a16 100644 --- a/tests/unit/Translate/Adapter/NativeArray/ArrayAccessCest.php +++ b/tests/unit/Translate/Adapter/NativeArray/ArrayAccessCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class ArrayAccessCest /** * Tests Phalcon\Translate\Adapter\NativeArray :: array access * - * @author Nikos Dimopoulos + * @author Nikos Dimopoulos * @since 2014-09-12 */ public function translateAdapterNativeArrayWithArrayAccess(UnitTester $I) diff --git a/tests/unit/Translate/Adapter/NativeArray/ConstructCest.php b/tests/unit/Translate/Adapter/NativeArray/ConstructCest.php index 13a34c66dc1..8675250c4f9 100644 --- a/tests/unit/Translate/Adapter/NativeArray/ConstructCest.php +++ b/tests/unit/Translate/Adapter/NativeArray/ConstructCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ class ConstructCest /** * Tests Phalcon\Translate\Adapter\NativeArray :: __construct() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function translateAdapterNativeArrayConstruct(UnitTester $I) @@ -57,7 +57,7 @@ public function translateAdapterNativeArrayConstruct(UnitTester $I) /** * Tests Phalcon\Translate\Adapter\NativeArray :: __construct() - Exception * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function translateAdapterNativeArrayContentParamExist(UnitTester $I) diff --git a/tests/unit/Translate/Adapter/NativeArray/ExistsCest.php b/tests/unit/Translate/Adapter/NativeArray/ExistsCest.php index 61f213872fc..c9ece95bdc9 100644 --- a/tests/unit/Translate/Adapter/NativeArray/ExistsCest.php +++ b/tests/unit/Translate/Adapter/NativeArray/ExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class ExistsCest /** * Tests Phalcon\Translate\Adapter\NativeArray :: exists() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function translateAdapterNativeArrayExists(UnitTester $I) diff --git a/tests/unit/Translate/Adapter/NativeArray/NotFoundCest.php b/tests/unit/Translate/Adapter/NativeArray/NotFoundCest.php index cff24eea826..b8ba019b4bf 100644 --- a/tests/unit/Translate/Adapter/NativeArray/NotFoundCest.php +++ b/tests/unit/Translate/Adapter/NativeArray/NotFoundCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class NotFoundCest /** * Tests Phalcon\Translate\Adapter\NativeArray :: notFound() - default * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function translateAdapterNativearrayNotFound(UnitTester $I) @@ -53,7 +53,7 @@ public function translateAdapterNativearrayNotFound(UnitTester $I) /** * Tests Phalcon\Translate\Adapter\NativeArray :: notFound() - triggerError * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function translateAdapterNativearrayNotFoundTriggerError(UnitTester $I) @@ -82,7 +82,7 @@ function () { * Tests Phalcon\Translate\Adapter\NativeArray :: notFound() - triggerError * random value * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function translateAdapterNativearrayNotFoundTriggerErrorRandomVaue(UnitTester $I) @@ -110,7 +110,7 @@ function () { /** * Tests Phalcon\Translate\Adapter\NativeArray :: notFound() - custom * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function translateAdapterNativearrayNotFoundCustom(UnitTester $I) diff --git a/tests/unit/Translate/Adapter/NativeArray/OffsetExistsCest.php b/tests/unit/Translate/Adapter/NativeArray/OffsetExistsCest.php index 9eeae4d3c4c..b2dd2f8abc5 100644 --- a/tests/unit/Translate/Adapter/NativeArray/OffsetExistsCest.php +++ b/tests/unit/Translate/Adapter/NativeArray/OffsetExistsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class OffsetExistsCest /** * Tests Phalcon\Translate\Adapter\NativeArray :: offsetExists() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function translateAdapterNativeArrayOffsetExists(UnitTester $I) diff --git a/tests/unit/Translate/Adapter/NativeArray/OffsetGetCest.php b/tests/unit/Translate/Adapter/NativeArray/OffsetGetCest.php index 5275a139bdc..2b3026416ff 100644 --- a/tests/unit/Translate/Adapter/NativeArray/OffsetGetCest.php +++ b/tests/unit/Translate/Adapter/NativeArray/OffsetGetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -24,7 +24,7 @@ class OffsetGetCest /** * Tests Phalcon\Translate\Adapter\NativeArray :: offsetGet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function translateAdapterNativeArrayOffsetGet(UnitTester $I) diff --git a/tests/unit/Translate/Adapter/NativeArray/OffsetSetCest.php b/tests/unit/Translate/Adapter/NativeArray/OffsetSetCest.php index 057b59b3302..30e30a82a26 100644 --- a/tests/unit/Translate/Adapter/NativeArray/OffsetSetCest.php +++ b/tests/unit/Translate/Adapter/NativeArray/OffsetSetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class OffsetSetCest /** * Tests Phalcon\Translate\Adapter\NativeArray :: offsetSet() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function translateAdapterNativeArrayOffsetSet(UnitTester $I) diff --git a/tests/unit/Translate/Adapter/NativeArray/OffsetUnsetCest.php b/tests/unit/Translate/Adapter/NativeArray/OffsetUnsetCest.php index 57a813ffba3..b7667b92a91 100644 --- a/tests/unit/Translate/Adapter/NativeArray/OffsetUnsetCest.php +++ b/tests/unit/Translate/Adapter/NativeArray/OffsetUnsetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -25,7 +25,7 @@ class OffsetUnsetCest /** * Tests Phalcon\Translate\Adapter\NativeArray :: offsetUnset() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function translateAdapterNativeArrayOffsetUnset(UnitTester $I) diff --git a/tests/unit/Translate/Adapter/NativeArray/QueryCest.php b/tests/unit/Translate/Adapter/NativeArray/QueryCest.php index 6b3cd7a1f44..6713f74bb7e 100644 --- a/tests/unit/Translate/Adapter/NativeArray/QueryCest.php +++ b/tests/unit/Translate/Adapter/NativeArray/QueryCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Translate/Adapter/NativeArray/TCest.php b/tests/unit/Translate/Adapter/NativeArray/TCest.php index ce7d7620b79..ec26537ec8a 100644 --- a/tests/unit/Translate/Adapter/NativeArray/TCest.php +++ b/tests/unit/Translate/Adapter/NativeArray/TCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Translate/Adapter/NativeArray/UnderscoreCest.php b/tests/unit/Translate/Adapter/NativeArray/UnderscoreCest.php index 0fa97d5db1d..334c88e7625 100644 --- a/tests/unit/Translate/Adapter/NativeArray/UnderscoreCest.php +++ b/tests/unit/Translate/Adapter/NativeArray/UnderscoreCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Translate/Interpolator/AssociativeArray/ReplacePlaceholdersCest.php b/tests/unit/Translate/Interpolator/AssociativeArray/ReplacePlaceholdersCest.php index 6f0227948e0..0d5125a3fde 100644 --- a/tests/unit/Translate/Interpolator/AssociativeArray/ReplacePlaceholdersCest.php +++ b/tests/unit/Translate/Interpolator/AssociativeArray/ReplacePlaceholdersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ReplacePlaceholdersCest * Tests Phalcon\Translate\Interpolator\AssociativeArray :: * replacePlaceholders() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function translateInterpolatorAssociativearrayReplacePlaceholders(UnitTester $I) diff --git a/tests/unit/Translate/Interpolator/IndexedArray/InterpolatorCest.php b/tests/unit/Translate/Interpolator/IndexedArray/InterpolatorCest.php index b2e52d0c551..f854a0059a0 100644 --- a/tests/unit/Translate/Interpolator/IndexedArray/InterpolatorCest.php +++ b/tests/unit/Translate/Interpolator/IndexedArray/InterpolatorCest.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class InterpolatorCest /** * Tests Phalcon\Translate\Interpolator\IndexedArray :: objects * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function translateInterpolatorIndexedArrayInterpolator(UnitTester $I) diff --git a/tests/unit/Translate/Interpolator/IndexedArray/ReplacePlaceholdersCest.php b/tests/unit/Translate/Interpolator/IndexedArray/ReplacePlaceholdersCest.php index 2f2e53e3759..9dfaca0f7dd 100644 --- a/tests/unit/Translate/Interpolator/IndexedArray/ReplacePlaceholdersCest.php +++ b/tests/unit/Translate/Interpolator/IndexedArray/ReplacePlaceholdersCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -21,7 +21,7 @@ class ReplacePlaceholdersCest * Tests Phalcon\Translate\Interpolator\IndexedArray :: * replacePlaceholders() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function translateInterpolatorIndexedarrayReplacePlaceholders(UnitTester $I) diff --git a/tests/unit/Translate/InterpolatorFactory/NewInstanceCest.php b/tests/unit/Translate/InterpolatorFactory/NewInstanceCest.php index 4dd2856d543..94ea873c06c 100644 --- a/tests/unit/Translate/InterpolatorFactory/NewInstanceCest.php +++ b/tests/unit/Translate/InterpolatorFactory/NewInstanceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class NewInstanceCest * * @dataProvider getExamples * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-18 */ public function translateInterpolatorFactoryNewInstance(UnitTester $I, Example $example) @@ -45,7 +45,7 @@ public function translateInterpolatorFactoryNewInstance(UnitTester $I, Example $ * * @dataProvider getExamples * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-18 */ public function translateInterpolatorFactoryNewInstanceException(UnitTester $I) diff --git a/tests/unit/Translate/TranslateFactory/LoadCest.php b/tests/unit/Translate/TranslateFactory/LoadCest.php index 1913c5e2d36..6f1fe692535 100644 --- a/tests/unit/Translate/TranslateFactory/LoadCest.php +++ b/tests/unit/Translate/TranslateFactory/LoadCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/tests/unit/Translate/TranslateFactory/NewInstanceCest.php b/tests/unit/Translate/TranslateFactory/NewInstanceCest.php index 763b525c4b6..4d204e55fbe 100644 --- a/tests/unit/Translate/TranslateFactory/NewInstanceCest.php +++ b/tests/unit/Translate/TranslateFactory/NewInstanceCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -26,7 +26,7 @@ class NewInstanceCest /** * Tests Phalcon\Translate\TranslateFactory :: newInstance() * - * @author Phalcon Team + * @author Phalcon Team * @since 2019-05-18 */ public function translateTranslateFactoryNewInstance(UnitTester $I) diff --git a/tests/unit/Version/ConstantsCest.php b/tests/unit/Version/ConstantsCest.php index 83c4d856d10..b852d8e4178 100644 --- a/tests/unit/Version/ConstantsCest.php +++ b/tests/unit/Version/ConstantsCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -20,7 +20,7 @@ class ConstantsCest /** * Tests Phalcon\Version :: Constants * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function versionConstants(UnitTester $I) diff --git a/tests/unit/Version/GetCest.php b/tests/unit/Version/GetCest.php index e502575a02a..1b671eb44e0 100644 --- a/tests/unit/Version/GetCest.php +++ b/tests/unit/Version/GetCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class GetCest /** * Tests Phalcon\Version :: get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function versionGet(UnitTester $I) @@ -39,7 +39,7 @@ public function versionGet(UnitTester $I) /** * Tests the getId() translation to get() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function versionGetIdToGet(UnitTester $I) diff --git a/tests/unit/Version/GetIdCest.php b/tests/unit/Version/GetIdCest.php index 12e720c18bf..99ba3cea822 100644 --- a/tests/unit/Version/GetIdCest.php +++ b/tests/unit/Version/GetIdCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class GetIdCest /** * Tests Phalcon\Version :: getId() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function versionGetId(UnitTester $I) @@ -39,7 +39,7 @@ public function versionGetId(UnitTester $I) /** * Tests the get() translation to getId() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function versionGetToGetId(UnitTester $I) diff --git a/tests/unit/Version/GetPartCest.php b/tests/unit/Version/GetPartCest.php index be95a4d2255..00765aaf3c2 100644 --- a/tests/unit/Version/GetPartCest.php +++ b/tests/unit/Version/GetPartCest.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -23,7 +23,7 @@ class GetPartCest /** * Tests Phalcon\Version :: getPart() * - * @author Phalcon Team + * @author Phalcon Team * @since 2018-11-13 */ public function versionGetPart(UnitTester $I) diff --git a/tests/unit/_bootstrap.php b/tests/unit/_bootstrap.php index aedc64299ff..3c793a3adbf 100644 --- a/tests/unit/_bootstrap.php +++ b/tests/unit/_bootstrap.php @@ -3,7 +3,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. From 5191b019750a4e2a961376e0cfc4ddad11b05484 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Sun, 25 Aug 2019 14:44:35 -0400 Subject: [PATCH 022/202] [4.0.x] - Minor corrections to the readme files --- CONTRIBUTING.md | 54 +++++++++++++++++-------------------------------- README.md | 4 ++-- 2 files changed, 20 insertions(+), 38 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 370d6c3458a..89833c4937e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,35 +1,29 @@ # Contributing to Phalcon -Phalcon is an open source project and a volunteer effort. Phalcon welcomes contribution from everyone. -Please take a moment to review this document in order to make the contribution process easy and effective for everyone -involved. +Phalcon is an open source project and a volunteer effort. Phalcon welcomes contribution from everyone. Please take a moment to review this document in order to make the contribution process easy and effective for everyone involved. -Following these guidelines helps to communicate that you respect the time of the developers managing and developing this -open source project. In return, they should reciprocate that respect in addressing your issue or assessing patches and -features. +Following these guidelines helps to communicate that you respect the time of the developers managing and developing this open source project. In return, they should reciprocate that respect in addressing your issue or assessing patches and features. ## Contributions -Contributions to Phalcon should be made in the form of GitHub pull requests. -Each pull request will be reviewed by a core contributor (someone with permission to land patches) and either landed in -the main tree or given feedback for changes that would be required before it can be merged. All contributions should +Contributions to Phalcon should be made in the form of GitHub pull requests. Each pull request will be reviewed by a core contributor (someone with permission to merge patches). Feedback can be provided and potentially changes requested or the pull request will be merged. All contributions should follow this format, even those from core contributors. ## Questions & Support -We use the GitHub issues for tracking bugs and feature requests and have limited bandwidth to address all of them. Thus -we only accept bug reports, new feature requests and pull requests in GitHub. Our great community and contributors are -happy to help you though! Please use these community resources for obtaining help. +We use the GitHub issues for tracking bugs and feature requests and have limited bandwidth to address all of them. Thus we only accept bug reports, new feature requests and pull requests in GitHub. Our great community and contributors are happy to help you though! Please use these community resources for obtaining help. -_Please use the [Documentation](https://docs.phalconphp.com) before anything else. You can also use the search feature -in our documents to find what you are looking for. If your question is still not answered, there are more options below._ +_Please use the [Documentation](https://phalcon.link/docs) before anything else. You can also use the search feature in our documents to find what you are looking for. If your question is still not answered, there are more options below._ -* Questions should go to [Official Forums](https://forum.phalconphp.com) +* Questions should go to [Official Forums](https://phalcon.link/forum) * Another way is to ask a question on [Stack Overflow](https://stackoverflow.com/) and tag it with [`phalcon`](https://stackoverflow.com/questions/tagged/phalcon) * Come join the Phalcon [Discord](https://phalcon.link/discord) * Our social network accounts are: - * [Gab.ai](https://phalcon.link/gab) + * [Telegram](https://phalcon.link/telegram) + * [Parler](https://phalcon.link/parler) + * [Gab](https://phalcon.link/gab) + * [MeWe](https://phalcon.link/mewe) * [Twitter](https://phalcon.link/t) * [Facebook](https://phalcon.link/fb) * If you still believe that what you found is a bug, please @@ -39,34 +33,22 @@ Please report bugs when you've exhausted all of the above options. ## Bug Report Checklist -* Make sure you are using the latest released version of Phalcon before submitting a bug report. - Bugs in versions older than the latest released one will not be addressed by the core team -* If you have found a bug it is important to add relevant reproducibility information to your issue to allow us - to reproduce the bug and fix it quicker. Add a script, small program or repository providing the necessary code to - make everyone reproduce the issue reported easily. If a bug cannot be reproduced by the development it would be - difficult provide corrections and solutions. - [Submit Reproducible Test](https://docs.phalconphp.com/en/latest/reproducible-tests) for more information +* Make sure you are using the latest released version of Phalcon before submitting a bug report. Bugs in versions older than the latest released one will not be addressed by the core team (so long as the version is not LTS). +* If you have found a bug it is important to add relevant reproducibility information to your issue to allow us to reproduce the bug and fix it quicker. Add a script, small program or repository providing the necessary code to make everyone reproduce the issue reported easily. If a bug cannot be reproduced by the development it would be difficult provide corrections and solutions. [Submit Reproducible Test](https://docs.phalconphp.com/en/latest/reproducible-tests) for more information * Be sure that information such as OS, Phalcon version and PHP version are part of the bug report -* If you're submitting a [Segmentation Fault](https://en.wikipedia.org/wiki/Segmentation_fault) error, we would require - a backtrace, please see [Generating a Backtrace](https://docs.phalconphp.com/en/latest/generating-backtrace) +* If you're submitting a [Segmentation Fault](https://en.wikipedia.org/wiki/Segmentation_fault) error, we would require a backtrace, please see [Generating a Backtrace](https://docs.phalconphp.com/en/latest/generating-backtrace) ## Pull Request Checklist -* Don't submit your pull requests to the `master` branch. Branch from the required branch and, - if needed, rebase to the proper branch before submitting your pull request. - If it doesn't merge cleanly with master you may be asked to rebase your changes -* Don't put submodule updates in your pull request unless they are to landed commits -* Add tests relevant to the fixed bug or new feature. Test classes should follow the - [PSR-2 coding style guide](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md). - See our [testing guide](https://github.com/phalcon/cphalcon/blob/master/tests/README.md) for more information -* Phalcon is written in [Zephir](https://zephir-lang.com/), please do not submit commits that modify C generated files - directly or those whose functionality/fixes are implemented in the C programming language +* Don't submit your pull requests to the `master` branch. Branch from the required branch and, if needed, rebase to the proper branch before submitting your pull request. If it doesn't merge cleanly with master you may be asked to rebase your changes +* Don't put submodule updates in your pull request unless they are to landed commits +* Add tests relevant to the fixed bug or new feature. Test classes should follow the [PSR-2 coding style guide](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md). See our [testing guide](https://github.com/phalcon/cphalcon/blob/master/tests/README.md) for more information +* Phalcon is written in [Zephir](https://zephir-lang.com/), please do not submit commits that modify C generated files directly or those whose functionality/fixes are implemented in the C programming language * Remove any change to `ext/kernel`, `*.zep.c` and `*.zep.h` files before submitting the pull request ## Requesting Features -If you have a change or new feature in mind, please fill an -[NFR](https://docs.phalconphp.com/en/latest/new-feature-request) on the GitHub. Alternatively you may also request features via [the FeatHub page](https://feathub.com/phalcon/cphalcon). +If you have a change or new feature in mind, please fill a [NFR](https://docs.phalconphp.com/en/latest/new-feature-request) on the GitHub. Alternatively you may also request features via [the FeatHub page](https://feathub.com/phalcon/cphalcon). Thanks!
diff --git a/README.md b/README.md index de6db16b4a4..4e22f7d83ec 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ You can either download a binary package for the system of your choice or build ## Installation -For detailed installation instructions you can check our [installation](https://docs.phalconphp.com/4.0/en/installation) page in the docs. +For detailed installation instructions you can check our [installation](https://docs.phalcon.io/4.0/en/installation) page in the docs. ## Generating API Documentation @@ -36,7 +36,7 @@ Steps: ### General * [Contributing to Phalcon](CONTRIBUTING.md) -* [Official Documentation](https://docs.phalconphp.com/) +* [Official Documentation](https://docs.phalcon.io/) * [Zephir](https://zephir-lang.com/) - The language Phalcon is written on * [Incubator](https://phalcon.link/incubator) - Community driven plugins and classes extending the framework (written in PHP) From 7410c2759020b6ce2f08a1068b731c7d9c7675ff Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Sun, 25 Aug 2019 15:00:41 -0400 Subject: [PATCH 023/202] [4.0.x] - Updated ext --- ext/config.m4 | 2 +- ext/config.w32 | 4 +- ext/phalcon.c | 4 +- ext/phalcon.h | 2 +- ext/phalcon/acl/adapter/abstractadapter.zep.c | 2 +- .../acl/adapter/adapterinterface.zep.c | 2 +- ext/phalcon/acl/adapter/memory.zep.c | 2 +- ext/phalcon/acl/component.zep.c | 2 +- ext/phalcon/acl/componentaware.zep.c | 2 +- ext/phalcon/acl/componentinterface.zep.c | 2 +- ext/phalcon/acl/enum.zep.c | 2 +- ext/phalcon/acl/exception.zep.c | 2 +- ext/phalcon/acl/role.zep.c | 2 +- ext/phalcon/acl/roleaware.zep.c | 2 +- ext/phalcon/acl/roleinterface.zep.c | 2 +- .../annotations/adapter/abstractadapter.zep.c | 2 +- .../adapter/adapterinterface.zep.c | 2 +- ext/phalcon/annotations/adapter/apcu.zep.c | 2 +- ext/phalcon/annotations/adapter/memory.zep.c | 2 +- ext/phalcon/annotations/adapter/stream.zep.c | 2 +- ext/phalcon/annotations/annotation.zep.c | 2 +- .../annotations/annotationsfactory.zep.c | 2 +- ext/phalcon/annotations/collection.zep.c | 2 +- ext/phalcon/annotations/exception.zep.c | 2 +- ext/phalcon/annotations/parser.php5.lemon | 25 +-- ext/phalcon/annotations/parser.php7.lemon | 25 +-- ext/phalcon/annotations/reader.zep.c | 2 +- ext/phalcon/annotations/readerinterface.zep.c | 2 +- ext/phalcon/annotations/reflection.zep.c | 2 +- ext/phalcon/annotations/scanner.re | 27 +-- .../application/abstractapplication.zep.c | 2 +- ext/phalcon/application/exception.zep.c | 2 +- ext/phalcon/assets/asset.zep.c | 2 +- ext/phalcon/assets/asset/css.zep.c | 2 +- ext/phalcon/assets/asset/js.zep.c | 2 +- ext/phalcon/assets/assetinterface.zep.c | 2 +- ext/phalcon/assets/collection.zep.c | 2 +- ext/phalcon/assets/exception.zep.c | 2 +- ext/phalcon/assets/filterinterface.zep.c | 2 +- ext/phalcon/assets/filters/cssmin.zep.c | 2 +- ext/phalcon/assets/filters/jsmin.zep.c | 2 +- ext/phalcon/assets/filters/none.zep.c | 2 +- ext/phalcon/assets/inline.zep.c | 2 +- ext/phalcon/assets/inline/css.zep.c | 2 +- ext/phalcon/assets/inline/js.zep.c | 2 +- ext/phalcon/assets/manager.zep.c | 2 +- ext/phalcon/cache.zep.c | 2 +- .../cache/adapter/adapterinterface.zep.c | 2 +- ext/phalcon/cache/adapter/apcu.zep.c | 2 +- ext/phalcon/cache/adapter/libmemcached.zep.c | 2 +- ext/phalcon/cache/adapter/memory.zep.c | 2 +- ext/phalcon/cache/adapter/redis.zep.c | 2 +- ext/phalcon/cache/adapter/stream.zep.c | 2 +- ext/phalcon/cache/adapterfactory.zep.c | 2 +- ext/phalcon/cache/cachefactory.zep.c | 2 +- ext/phalcon/cache/exception/exception.zep.c | 4 +- .../exception/invalidargumentexception.zep.c | 4 +- ext/phalcon/cli/console.zep.c | 2 +- ext/phalcon/cli/console/exception.zep.c | 2 +- ext/phalcon/cli/dispatcher.zep.c | 2 +- ext/phalcon/cli/dispatcher/exception.zep.c | 2 +- ext/phalcon/cli/dispatcherinterface.zep.c | 2 +- ext/phalcon/cli/router.zep.c | 2 +- ext/phalcon/cli/router/exception.zep.c | 2 +- ext/phalcon/cli/router/route.zep.c | 2 +- ext/phalcon/cli/router/routeinterface.zep.c | 2 +- ext/phalcon/cli/routerinterface.zep.c | 2 +- ext/phalcon/cli/task.zep.c | 2 +- ext/phalcon/cli/taskinterface.zep.c | 2 +- ext/phalcon/collection.zep.c | 2 +- ext/phalcon/collection/exception.zep.c | 4 +- ext/phalcon/collection/readonly.zep.c | 2 +- ext/phalcon/config.zep.c | 2 +- ext/phalcon/config/adapter/grouped.zep.c | 2 +- ext/phalcon/config/adapter/ini.zep.c | 2 +- ext/phalcon/config/adapter/json.zep.c | 2 +- ext/phalcon/config/adapter/php.zep.c | 2 +- ext/phalcon/config/adapter/yaml.zep.c | 2 +- ext/phalcon/config/configfactory.zep.c | 2 +- ext/phalcon/config/exception.zep.c | 2 +- ext/phalcon/container.zep.c | 2 +- ext/phalcon/crypt.zep.c | 2 +- ext/phalcon/crypt/cryptinterface.zep.c | 2 +- ext/phalcon/crypt/exception.zep.c | 2 +- ext/phalcon/crypt/mismatch.zep.c | 2 +- ext/phalcon/db/abstractdb.zep.c | 2 +- ext/phalcon/db/adapter/pdofactory.zep.c | 2 +- ext/phalcon/db/dialect.zep.c | 2 +- ext/phalcon/db/dialect/mysql.zep.c | 2 +- ext/phalcon/db/dialect/postgresql.zep.c | 2 +- ext/phalcon/db/dialect/sqlite.zep.c | 2 +- ext/phalcon/db/dialectinterface.zep.c | 2 +- ext/phalcon/db/enum.zep.c | 2 +- ext/phalcon/db/exception.zep.c | 2 +- ext/phalcon/db/index.zep.c | 2 +- ext/phalcon/db/indexinterface.zep.c | 2 +- ext/phalcon/db/profiler.zep.c | 2 +- ext/phalcon/db/profiler/item.zep.c | 2 +- ext/phalcon/db/rawvalue.zep.c | 4 +- ext/phalcon/db/reference.zep.c | 2 +- ext/phalcon/db/referenceinterface.zep.c | 2 +- ext/phalcon/db/result/pdo.zep.c | 2 +- ext/phalcon/db/resultinterface.zep.c | 2 +- ext/phalcon/debug.zep.c | 8 +- ext/phalcon/debug/dump.zep.c | 2 +- ext/phalcon/debug/exception.zep.c | 2 +- ext/phalcon/di.zep.c | 6 +- ext/phalcon/di/diinterface.zep.c | 2 +- ext/phalcon/di/exception.zep.c | 2 +- .../serviceresolutionexception.zep.c | 2 +- ext/phalcon/di/factorydefault.zep.c | 2 +- ext/phalcon/di/factorydefault/cli.zep.c | 2 +- ext/phalcon/di/injectable.zep.c | 2 +- ext/phalcon/di/injectionawareinterface.zep.c | 2 +- ext/phalcon/di/service.zep.c | 2 +- ext/phalcon/di/service/builder.zep.c | 2 +- ext/phalcon/di/serviceinterface.zep.c | 2 +- ext/phalcon/di/serviceproviderinterface.zep.c | 2 +- .../dispatcher/abstractdispatcher.zep.c | 2 +- .../dispatcher/dispatcherinterface.zep.c | 2 +- ext/phalcon/dispatcher/exception.zep.c | 2 +- ext/phalcon/domain/payload/payload.zep.c | 2 +- .../domain/payload/payloadfactory.zep.c | 2 +- .../domain/payload/payloadinterface.zep.c | 2 +- .../domain/payload/readableinterface.zep.c | 2 +- ext/phalcon/domain/payload/status.zep.c | 2 +- .../domain/payload/writeableinterface.zep.c | 2 +- ext/phalcon/escaper.zep.c | 2 +- ext/phalcon/escaper/escaperinterface.zep.c | 2 +- ext/phalcon/escaper/exception.zep.c | 2 +- ext/phalcon/events/event.zep.c | 2 +- ext/phalcon/events/eventinterface.zep.c | 2 +- ext/phalcon/events/eventsawareinterface.zep.c | 2 +- ext/phalcon/events/exception.zep.c | 2 +- ext/phalcon/events/manager.zep.c | 2 +- ext/phalcon/events/managerinterface.zep.c | 2 +- ext/phalcon/exception.zep.c | 2 +- ext/phalcon/factory/abstractfactory.zep.c | 2 +- ext/phalcon/factory/exception.zep.c | 2 +- ext/phalcon/filter/exception.zep.c | 2 +- ext/phalcon/filter/filter.zep.c | 2 +- ext/phalcon/filter/filterfactory.zep.c | 2 +- ext/phalcon/filter/filterinterface.zep.c | 2 +- ext/phalcon/filter/sanitize/absint.zep.c | 2 +- ext/phalcon/filter/sanitize/alnum.zep.c | 2 +- ext/phalcon/filter/sanitize/alpha.zep.c | 2 +- ext/phalcon/filter/sanitize/boolval.zep.c | 2 +- ext/phalcon/filter/sanitize/email.zep.c | 2 +- ext/phalcon/filter/sanitize/floatval.zep.c | 2 +- ext/phalcon/filter/sanitize/intval.zep.c | 2 +- ext/phalcon/filter/sanitize/lower.zep.c | 2 +- ext/phalcon/filter/sanitize/lowerfirst.zep.c | 2 +- ext/phalcon/filter/sanitize/regex.zep.c | 2 +- ext/phalcon/filter/sanitize/remove.zep.c | 2 +- ext/phalcon/filter/sanitize/replace.zep.c | 2 +- ext/phalcon/filter/sanitize/special.zep.c | 2 +- ext/phalcon/filter/sanitize/specialfull.zep.c | 2 +- ext/phalcon/filter/sanitize/stringval.zep.c | 2 +- ext/phalcon/filter/sanitize/striptags.zep.c | 2 +- ext/phalcon/filter/sanitize/trim.zep.c | 2 +- ext/phalcon/filter/sanitize/upper.zep.c | 2 +- ext/phalcon/filter/sanitize/upperfirst.zep.c | 2 +- ext/phalcon/filter/sanitize/upperwords.zep.c | 2 +- ext/phalcon/filter/sanitize/url.zep.c | 2 +- .../firewall/adapter/abstractadapter.zep.c | 2 +- ext/phalcon/firewall/adapter/acl.zep.c | 2 +- .../firewall/adapter/adapterinterface.zep.c | 2 +- .../firewall/adapter/annotations.zep.c | 2 +- ext/phalcon/firewall/adapter/micro/acl.zep.c | 2 +- ext/phalcon/firewall/exception.zep.c | 2 +- ext/phalcon/flash/abstractflash.zep.c | 2 +- ext/phalcon/flash/direct.zep.c | 2 +- ext/phalcon/flash/exception.zep.c | 2 +- ext/phalcon/flash/flashinterface.zep.c | 2 +- ext/phalcon/flash/session.zep.c | 2 +- .../forms/element/abstractelement.zep.c | 2 +- ext/phalcon/forms/element/check.zep.c | 2 +- ext/phalcon/forms/element/date.zep.c | 2 +- .../forms/element/elementinterface.zep.c | 2 +- ext/phalcon/forms/element/email.zep.c | 2 +- ext/phalcon/forms/element/file.zep.c | 2 +- ext/phalcon/forms/element/hidden.zep.c | 2 +- ext/phalcon/forms/element/numeric.zep.c | 2 +- ext/phalcon/forms/element/password.zep.c | 2 +- ext/phalcon/forms/element/radio.zep.c | 2 +- ext/phalcon/forms/element/select.zep.c | 2 +- ext/phalcon/forms/element/submit.zep.c | 2 +- ext/phalcon/forms/element/text.zep.c | 2 +- ext/phalcon/forms/element/textarea.zep.c | 2 +- ext/phalcon/forms/exception.zep.c | 2 +- ext/phalcon/forms/form.zep.c | 2 +- ext/phalcon/forms/manager.zep.c | 2 +- ext/phalcon/helper/exception.zep.c | 2 +- ext/phalcon/helper/str.zep.c | 4 +- ext/phalcon/html/attributes.zep.c | 2 +- .../html/attributes/attributesinterface.zep.c | 2 +- .../html/attributes/renderinterface.zep.c | 2 +- ext/phalcon/html/breadcrumbs.zep.c | 2 +- ext/phalcon/html/exception.zep.c | 2 +- ext/phalcon/html/helper/abstracthelper.zep.c | 2 +- ext/phalcon/html/helper/anchor.zep.c | 2 +- ext/phalcon/html/helper/anchorraw.zep.c | 2 +- ext/phalcon/html/helper/body.zep.c | 2 +- ext/phalcon/html/helper/button.zep.c | 2 +- ext/phalcon/html/helper/close.zep.c | 2 +- ext/phalcon/html/helper/element.zep.c | 2 +- ext/phalcon/html/helper/elementraw.zep.c | 2 +- ext/phalcon/html/helper/form.zep.c | 2 +- ext/phalcon/html/helper/img.zep.c | 2 +- ext/phalcon/html/helper/label.zep.c | 2 +- ext/phalcon/html/helper/textarea.zep.c | 2 +- ext/phalcon/html/tag.zep.c | 6 +- ext/phalcon/html/tagfactory.zep.c | 2 +- ext/phalcon/http/cookie.zep.c | 2 +- ext/phalcon/http/cookie/exception.zep.c | 2 +- ext/phalcon/http/cookieinterface.zep.c | 2 +- ext/phalcon/http/message/abstractcommon.zep.c | 2 +- .../http/message/abstractmessage.zep.c | 2 +- .../http/message/abstractrequest.zep.c | 2 +- .../exception/invalidargumentexception.zep.c | 2 +- ext/phalcon/http/message/request.zep.c | 2 +- ext/phalcon/http/message/requestfactory.zep.c | 2 +- ext/phalcon/http/message/response.zep.c | 2 +- .../http/message/responsefactory.zep.c | 2 +- ext/phalcon/http/message/serverrequest.zep.c | 2 +- .../http/message/serverrequestfactory.zep.c | 2 +- ext/phalcon/http/message/stream.zep.c | 2 +- ext/phalcon/http/message/stream/input.zep.c | 2 +- ext/phalcon/http/message/stream/memory.zep.c | 2 +- ext/phalcon/http/message/stream/temp.zep.c | 2 +- ext/phalcon/http/message/streamfactory.zep.c | 2 +- ext/phalcon/http/message/uploadedfile.zep.c | 2 +- .../http/message/uploadedfilefactory.zep.c | 2 +- ext/phalcon/http/message/uri.zep.c | 2 +- ext/phalcon/http/message/urifactory.zep.c | 2 +- ext/phalcon/http/request.zep.c | 2 +- ext/phalcon/http/request/exception.zep.c | 2 +- ext/phalcon/http/request/file.zep.c | 2 +- ext/phalcon/http/request/fileinterface.zep.c | 2 +- ext/phalcon/http/requestinterface.zep.c | 2 +- ext/phalcon/http/response.zep.c | 2 +- ext/phalcon/http/response/cookies.zep.c | 2 +- .../http/response/cookiesinterface.zep.c | 2 +- ext/phalcon/http/response/exception.zep.c | 2 +- ext/phalcon/http/response/headers.zep.c | 14 +- ext/phalcon/http/response/headers.zep.h | 18 +- .../http/response/headersinterface.zep.c | 2 +- ext/phalcon/http/responseinterface.zep.c | 2 +- .../http/server/abstractmiddleware.zep.c | 2 +- .../http/server/abstractrequesthandler.zep.c | 2 +- .../image/adapter/abstractadapter.zep.c | 2 +- .../image/adapter/adapterinterface.zep.c | 2 +- ext/phalcon/image/adapter/gd.zep.c | 14 +- ext/phalcon/image/adapter/imagick.zep.c | 2 +- ext/phalcon/image/enum.zep.c | 2 +- ext/phalcon/image/exception.zep.c | 2 +- ext/phalcon/image/imagefactory.zep.c | 2 +- ext/phalcon/kernel.zep.c | 2 +- ext/phalcon/loader.zep.c | 6 +- ext/phalcon/loader/exception.zep.c | 2 +- ext/phalcon/logger.zep.c | 24 +- .../logger/adapter/abstractadapter.zep.c | 2 +- .../logger/adapter/adapterinterface.zep.c | 2 +- ext/phalcon/logger/adapter/noop.zep.c | 2 +- ext/phalcon/logger/adapter/stream.zep.c | 2 +- ext/phalcon/logger/adapter/syslog.zep.c | 12 +- ext/phalcon/logger/adapterfactory.zep.c | 2 +- ext/phalcon/logger/exception.zep.c | 2 +- .../logger/formatter/abstractformatter.zep.c | 2 +- .../logger/formatter/formatterinterface.zep.c | 2 +- ext/phalcon/logger/formatter/json.zep.c | 4 +- ext/phalcon/logger/formatter/line.zep.c | 4 +- ext/phalcon/logger/formatter/syslog.zep.c | 2 +- ext/phalcon/logger/item.zep.c | 2 +- ext/phalcon/logger/loggerfactory.zep.c | 6 +- ext/phalcon/logger/loggerfactory.zep.h | 4 +- ext/phalcon/messages/exception.zep.c | 2 +- ext/phalcon/messages/message.zep.c | 2 +- ext/phalcon/messages/messageinterface.zep.c | 2 +- ext/phalcon/messages/messages.zep.c | 4 +- ext/phalcon/mvc/application.zep.c | 2 +- ext/phalcon/mvc/application/exception.zep.c | 2 +- ext/phalcon/mvc/collection.zep.c | 22 +- ext/phalcon/mvc/collection/behavior.zep.c | 2 +- .../mvc/collection/behavior/softdelete.zep.c | 2 +- .../collection/behavior/timestampable.zep.c | 4 +- .../mvc/collection/behaviorinterface.zep.c | 2 +- ext/phalcon/mvc/collection/document.zep.c | 2 +- ext/phalcon/mvc/collection/exception.zep.c | 2 +- ext/phalcon/mvc/collection/manager.zep.c | 2 +- .../mvc/collection/managerinterface.zep.c | 2 +- ext/phalcon/mvc/collectioninterface.zep.c | 2 +- ext/phalcon/mvc/controller.zep.c | 2 +- .../mvc/controller/bindmodelinterface.zep.c | 2 +- ext/phalcon/mvc/controllerinterface.zep.c | 2 +- ext/phalcon/mvc/dispatcher.zep.c | 2 +- ext/phalcon/mvc/dispatcher/exception.zep.c | 2 +- ext/phalcon/mvc/dispatcherinterface.zep.c | 2 +- ext/phalcon/mvc/entityinterface.zep.c | 2 +- ext/phalcon/mvc/micro.zep.c | 24 +- ext/phalcon/mvc/micro/collection.zep.c | 2 +- .../mvc/micro/collectioninterface.zep.c | 2 +- ext/phalcon/mvc/micro/exception.zep.c | 2 +- ext/phalcon/mvc/micro/lazyloader.zep.c | 2 +- .../mvc/micro/middlewareinterface.zep.c | 2 +- ext/phalcon/mvc/model.zep.c | 78 +++---- ext/phalcon/mvc/model/behavior.zep.c | 2 +- .../mvc/model/behavior/softdelete.zep.c | 2 +- .../mvc/model/behavior/timestampable.zep.c | 6 +- ext/phalcon/mvc/model/behaviorinterface.zep.c | 2 +- ext/phalcon/mvc/model/binder.zep.c | 8 +- .../mvc/model/binder/bindableinterface.zep.c | 2 +- ext/phalcon/mvc/model/binderinterface.zep.c | 2 +- ext/phalcon/mvc/model/criteria.zep.c | 8 +- ext/phalcon/mvc/model/criteriainterface.zep.c | 2 +- ext/phalcon/mvc/model/exception.zep.c | 2 +- ext/phalcon/mvc/model/manager.zep.c | 18 +- ext/phalcon/mvc/model/managerinterface.zep.c | 2 +- ext/phalcon/mvc/model/metadata.zep.c | 2 +- ext/phalcon/mvc/model/metadata/apcu.zep.c | 2 +- .../mvc/model/metadata/libmemcached.zep.c | 2 +- ext/phalcon/mvc/model/metadata/memory.zep.c | 2 +- ext/phalcon/mvc/model/metadata/redis.zep.c | 2 +- .../model/metadata/strategy/annotations.zep.c | 2 +- .../metadata/strategy/introspection.zep.c | 2 +- .../model/metadata/strategyinterface.zep.c | 2 +- ext/phalcon/mvc/model/metadata/stream.zep.c | 6 +- ext/phalcon/mvc/model/metadatainterface.zep.c | 2 +- ext/phalcon/mvc/model/query.zep.c | 206 +++++++++--------- ext/phalcon/mvc/model/query/builder.zep.c | 60 ++--- .../mvc/model/query/builderinterface.zep.c | 2 +- ext/phalcon/mvc/model/query/lang.zep.c | 2 +- ext/phalcon/mvc/model/query/parser.php5.lemon | 25 +-- ext/phalcon/mvc/model/query/parser.php7.lemon | 25 +-- ext/phalcon/mvc/model/query/scanner.re | 25 +-- ext/phalcon/mvc/model/query/status.zep.c | 2 +- .../mvc/model/query/statusinterface.zep.c | 2 +- ext/phalcon/mvc/model/queryinterface.zep.c | 2 +- ext/phalcon/mvc/model/relation.zep.c | 2 +- ext/phalcon/mvc/model/relationinterface.zep.c | 2 +- ext/phalcon/mvc/model/resultinterface.zep.c | 2 +- ext/phalcon/mvc/model/resultset.zep.c | 2 +- ext/phalcon/mvc/model/resultset/complex.zep.c | 4 +- ext/phalcon/mvc/model/resultset/simple.zep.c | 2 +- .../mvc/model/resultsetinterface.zep.c | 2 +- ext/phalcon/mvc/model/row.zep.c | 2 +- ext/phalcon/mvc/model/transaction.zep.c | 6 +- .../mvc/model/transaction/exception.zep.c | 2 +- .../mvc/model/transaction/failed.zep.c | 2 +- .../mvc/model/transaction/manager.zep.c | 8 +- .../model/transaction/managerinterface.zep.c | 2 +- .../mvc/model/transactioninterface.zep.c | 2 +- ext/phalcon/mvc/model/validationfailed.zep.c | 2 +- .../mvc/moduledefinitioninterface.zep.c | 2 +- ext/phalcon/mvc/router.zep.c | 2 +- ext/phalcon/mvc/router/annotations.zep.c | 2 +- ext/phalcon/mvc/router/exception.zep.c | 2 +- ext/phalcon/mvc/router/group.zep.c | 4 +- ext/phalcon/mvc/router/groupinterface.zep.c | 2 +- ext/phalcon/mvc/router/route.zep.c | 2 +- ext/phalcon/mvc/router/routeinterface.zep.c | 2 +- ext/phalcon/mvc/routerinterface.zep.c | 2 +- ext/phalcon/mvc/view.zep.c | 12 +- .../mvc/view/engine/abstractengine.zep.c | 2 +- .../mvc/view/engine/engineinterface.zep.c | 2 +- ext/phalcon/mvc/view/engine/php.zep.c | 6 +- ext/phalcon/mvc/view/engine/volt.zep.c | 16 +- .../mvc/view/engine/volt/compiler.zep.c | 154 ++++++------- .../mvc/view/engine/volt/exception.zep.c | 2 +- .../mvc/view/engine/volt/parser.php7.lemon | 2 +- ext/phalcon/mvc/view/engine/volt/scanner.re | 2 +- ext/phalcon/mvc/view/exception.zep.c | 2 +- ext/phalcon/mvc/view/simple.zep.c | 4 +- ext/phalcon/mvc/viewbaseinterface.zep.c | 2 +- ext/phalcon/mvc/viewinterface.zep.c | 2 +- .../paginator/adapter/abstractadapter.zep.c | 2 +- .../paginator/adapter/adapterinterface.zep.c | 2 +- ext/phalcon/paginator/adapter/model.zep.c | 2 +- .../paginator/adapter/nativearray.zep.c | 2 +- .../paginator/adapter/querybuilder.zep.c | 2 +- ext/phalcon/paginator/exception.zep.c | 2 +- ext/phalcon/paginator/paginatorfactory.zep.c | 2 +- ext/phalcon/paginator/repository.zep.c | 2 +- .../paginator/repositoryinterface.zep.c | 2 +- ext/phalcon/plugin.zep.c | 2 +- ext/phalcon/registry.zep.c | 2 +- ext/phalcon/security.zep.c | 2 +- ext/phalcon/security/exception.zep.c | 2 +- ext/phalcon/security/random.zep.c | 2 +- .../session/adapter/abstractadapter.zep.c | 14 +- .../storage/adapter/abstractadapter.zep.c | 2 +- .../storage/adapter/adapterinterface.zep.c | 2 +- ext/phalcon/storage/adapter/apcu.zep.c | 2 +- .../storage/adapter/libmemcached.zep.c | 2 +- ext/phalcon/storage/adapter/memory.zep.c | 2 +- ext/phalcon/storage/adapter/redis.zep.c | 8 +- ext/phalcon/storage/adapter/stream.zep.c | 2 +- ext/phalcon/storage/adapterfactory.zep.c | 2 +- ext/phalcon/storage/exception.zep.c | 2 +- .../serializer/abstractserializer.zep.c | 2 +- ext/phalcon/storage/serializer/base64.zep.c | 2 +- ext/phalcon/storage/serializer/igbinary.zep.c | 2 +- ext/phalcon/storage/serializer/json.zep.c | 2 +- ext/phalcon/storage/serializer/msgpack.zep.c | 2 +- ext/phalcon/storage/serializer/none.zep.c | 2 +- ext/phalcon/storage/serializer/php.zep.c | 2 +- .../serializer/serializerinterface.zep.c | 2 +- ext/phalcon/storage/serializerfactory.zep.c | 2 +- ext/phalcon/tag.zep.c | 10 +- ext/phalcon/tag/exception.zep.c | 2 +- ext/phalcon/tag/select.zep.c | 2 +- ext/phalcon/text.zep.c | 2 +- .../translate/adapter/abstractadapter.zep.c | 2 +- .../translate/adapter/adapterinterface.zep.c | 2 +- ext/phalcon/translate/adapter/csv.zep.c | 2 +- ext/phalcon/translate/adapter/gettext.zep.c | 2 +- .../translate/adapter/nativearray.zep.c | 2 +- ext/phalcon/translate/exception.zep.c | 2 +- .../interpolator/associativearray.zep.c | 2 +- .../translate/interpolator/indexedarray.zep.c | 2 +- .../interpolator/interpolatorinterface.zep.c | 2 +- .../translate/interpolatorfactory.zep.c | 2 +- ext/phalcon/translate/translatefactory.zep.c | 2 +- ext/phalcon/url.zep.c | 4 +- ext/phalcon/url/exception.zep.c | 2 +- ext/phalcon/url/urlinterface.zep.c | 2 +- ext/phalcon/validation.zep.c | 4 +- .../abstractcombinedfieldsvalidator.zep.c | 2 +- .../validation/abstractvalidator.zep.c | 2 +- .../abstractvalidatorcomposite.zep.c | 2 +- ext/phalcon/validation/exception.zep.c | 2 +- .../validation/validationinterface.zep.c | 2 +- ext/phalcon/validation/validator/alnum.zep.c | 2 +- ext/phalcon/validation/validator/alpha.zep.c | 2 +- .../validation/validator/between.zep.c | 2 +- .../validation/validator/callback.zep.c | 2 +- .../validation/validator/confirmation.zep.c | 2 +- .../validation/validator/creditcard.zep.c | 2 +- ext/phalcon/validation/validator/date.zep.c | 2 +- ext/phalcon/validation/validator/digit.zep.c | 2 +- ext/phalcon/validation/validator/email.zep.c | 2 +- .../validation/validator/exception.zep.c | 2 +- .../validation/validator/exclusionin.zep.c | 2 +- ext/phalcon/validation/validator/file.zep.c | 2 +- .../validator/file/abstractfile.zep.c | 2 +- .../validation/validator/file/mimetype.zep.c | 2 +- .../validator/file/resolution/equal.zep.c | 2 +- .../validator/file/resolution/max.zep.c | 2 +- .../validator/file/resolution/min.zep.c | 2 +- .../validator/file/size/equal.zep.c | 2 +- .../validation/validator/file/size/max.zep.c | 2 +- .../validation/validator/file/size/min.zep.c | 2 +- .../validation/validator/identical.zep.c | 2 +- .../validation/validator/inclusionin.zep.c | 2 +- ext/phalcon/validation/validator/ip.zep.c | 2 +- .../validation/validator/numericality.zep.c | 2 +- .../validation/validator/presenceof.zep.c | 2 +- ext/phalcon/validation/validator/regex.zep.c | 2 +- .../validation/validator/stringlength.zep.c | 2 +- .../validator/stringlength/max.zep.c | 2 +- .../validator/stringlength/min.zep.c | 2 +- .../validation/validator/uniqueness.zep.c | 2 +- ext/phalcon/validation/validator/url.zep.c | 2 +- .../validatorcompositeinterface.zep.c | 2 +- ext/phalcon/validation/validatorfactory.zep.c | 2 +- .../validation/validatorinterface.zep.c | 2 +- ext/phalcon/version.zep.c | 2 +- 467 files changed, 908 insertions(+), 926 deletions(-) diff --git a/ext/config.m4 b/ext/config.m4 index 96d7ceb2658..0240ecc63a3 100644 --- a/ext/config.m4 +++ b/ext/config.m4 @@ -338,6 +338,7 @@ if test "$PHP_PHALCON" = "yes"; then phalcon/kernel.zep.c phalcon/loader.zep.c phalcon/loader/exception.zep.c + phalcon/logger.zep.c phalcon/logger/adapter/noop.zep.c phalcon/logger/adapter/stream.zep.c phalcon/logger/adapter/syslog.zep.c @@ -347,7 +348,6 @@ if test "$PHP_PHALCON" = "yes"; then phalcon/logger/formatter/line.zep.c phalcon/logger/formatter/syslog.zep.c phalcon/logger/item.zep.c - phalcon/logger/logger.zep.c phalcon/logger/loggerfactory.zep.c phalcon/messages/exception.zep.c phalcon/messages/message.zep.c diff --git a/ext/config.w32 b/ext/config.w32 index 04a3ea9dad2..1d5e169526e 100644 --- a/ext/config.w32 +++ b/ext/config.w32 @@ -14,7 +14,7 @@ if (PHP_PHALCON != "no") { ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/query", "scanner.c parser.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/view/engine/volt", "parser.c scanner.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/url", "utils.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon", "exception.zep.c collection.zep.c config.zep.c di.zep.c cache.zep.c container.zep.c crypt.zep.c debug.zep.c escaper.zep.c kernel.zep.c loader.zep.c plugin.zep.c registry.zep.c security.zep.c tag.zep.c text.zep.c url.zep.c validation.zep.c version.zep.c 0__closure.zep.c 1__closure.zep.c 2__closure.zep.c 3__closure.zep.c 4__closure.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon", "exception.zep.c collection.zep.c config.zep.c di.zep.c cache.zep.c container.zep.c crypt.zep.c debug.zep.c escaper.zep.c kernel.zep.c loader.zep.c logger.zep.c plugin.zep.c registry.zep.c security.zep.c tag.zep.c text.zep.c url.zep.c validation.zep.c version.zep.c 0__closure.zep.c 1__closure.zep.c 2__closure.zep.c 3__closure.zep.c 4__closure.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/di", "injectionawareinterface.zep.c injectable.zep.c diinterface.zep.c exception.zep.c factorydefault.zep.c serviceinterface.zep.c service.zep.c serviceproviderinterface.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/events", "eventsawareinterface.zep.c eventinterface.zep.c managerinterface.zep.c event.zep.c exception.zep.c manager.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/validation", "validatorinterface.zep.c abstractvalidator.zep.c validatorcompositeinterface.zep.c abstractvalidatorcomposite.zep.c abstractcombinedfieldsvalidator.zep.c validationinterface.zep.c exception.zep.c validatorfactory.zep.c", "phalcon"); @@ -98,7 +98,7 @@ if (PHP_PHALCON != "no") { ADD_SOURCES(configure_module_dirname + "/phalcon/http/server", "abstractmiddleware.zep.c abstractrequesthandler.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/image", "enum.zep.c exception.zep.c imagefactory.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/loader", "exception.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/logger", "adapterfactory.zep.c exception.zep.c item.zep.c logger.zep.c loggerfactory.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/logger", "adapterfactory.zep.c exception.zep.c item.zep.c loggerfactory.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/application", "exception.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/collection/behavior", "softdelete.zep.c timestampable.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/controller", "bindmodelinterface.zep.c", "phalcon"); diff --git a/ext/phalcon.c b/ext/phalcon.c index a0482ea13e1..462f60c0ece 100644 --- a/ext/phalcon.c +++ b/ext/phalcon.c @@ -367,12 +367,12 @@ zend_class_entry *phalcon_logger_adapter_noop_ce; zend_class_entry *phalcon_logger_adapter_stream_ce; zend_class_entry *phalcon_logger_adapter_syslog_ce; zend_class_entry *phalcon_logger_adapterfactory_ce; +zend_class_entry *phalcon_logger_ce; zend_class_entry *phalcon_logger_exception_ce; zend_class_entry *phalcon_logger_formatter_json_ce; zend_class_entry *phalcon_logger_formatter_line_ce; zend_class_entry *phalcon_logger_formatter_syslog_ce; zend_class_entry *phalcon_logger_item_ce; -zend_class_entry *phalcon_logger_logger_ce; zend_class_entry *phalcon_logger_loggerfactory_ce; zend_class_entry *phalcon_messages_exception_ce; zend_class_entry *phalcon_messages_message_ce; @@ -867,6 +867,7 @@ static PHP_MINIT_FUNCTION(phalcon) ZEPHIR_INIT(Phalcon_Kernel); ZEPHIR_INIT(Phalcon_Loader); ZEPHIR_INIT(Phalcon_Loader_Exception); + ZEPHIR_INIT(Phalcon_Logger); ZEPHIR_INIT(Phalcon_Logger_AdapterFactory); ZEPHIR_INIT(Phalcon_Logger_Adapter_Noop); ZEPHIR_INIT(Phalcon_Logger_Adapter_Stream); @@ -876,7 +877,6 @@ static PHP_MINIT_FUNCTION(phalcon) ZEPHIR_INIT(Phalcon_Logger_Formatter_Line); ZEPHIR_INIT(Phalcon_Logger_Formatter_Syslog); ZEPHIR_INIT(Phalcon_Logger_Item); - ZEPHIR_INIT(Phalcon_Logger_Logger); ZEPHIR_INIT(Phalcon_Logger_LoggerFactory); ZEPHIR_INIT(Phalcon_Messages_Exception); ZEPHIR_INIT(Phalcon_Messages_Message); diff --git a/ext/phalcon.h b/ext/phalcon.h index 9b44271a5e4..4341ec838c9 100644 --- a/ext/phalcon.h +++ b/ext/phalcon.h @@ -333,6 +333,7 @@ #include "phalcon/kernel.zep.h" #include "phalcon/loader.zep.h" #include "phalcon/loader/exception.zep.h" +#include "phalcon/logger.zep.h" #include "phalcon/logger/adapter/noop.zep.h" #include "phalcon/logger/adapter/stream.zep.h" #include "phalcon/logger/adapter/syslog.zep.h" @@ -342,7 +343,6 @@ #include "phalcon/logger/formatter/line.zep.h" #include "phalcon/logger/formatter/syslog.zep.h" #include "phalcon/logger/item.zep.h" -#include "phalcon/logger/logger.zep.h" #include "phalcon/logger/loggerfactory.zep.h" #include "phalcon/messages/exception.zep.h" #include "phalcon/messages/message.zep.h" diff --git a/ext/phalcon/acl/adapter/abstractadapter.zep.c b/ext/phalcon/acl/adapter/abstractadapter.zep.c index 495377ae0f1..415951d7824 100644 --- a/ext/phalcon/acl/adapter/abstractadapter.zep.c +++ b/ext/phalcon/acl/adapter/abstractadapter.zep.c @@ -20,7 +20,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/acl/adapter/adapterinterface.zep.c b/ext/phalcon/acl/adapter/adapterinterface.zep.c index 6e11b2bb618..2a6bbecc426 100644 --- a/ext/phalcon/acl/adapter/adapterinterface.zep.c +++ b/ext/phalcon/acl/adapter/adapterinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/acl/adapter/memory.zep.c b/ext/phalcon/acl/adapter/memory.zep.c index 86ace2fb6ca..7df41340484 100644 --- a/ext/phalcon/acl/adapter/memory.zep.c +++ b/ext/phalcon/acl/adapter/memory.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/acl/component.zep.c b/ext/phalcon/acl/component.zep.c index b443379fcc1..1960985866c 100644 --- a/ext/phalcon/acl/component.zep.c +++ b/ext/phalcon/acl/component.zep.c @@ -22,7 +22,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/acl/componentaware.zep.c b/ext/phalcon/acl/componentaware.zep.c index 9a0927765e9..5cd343b74ca 100644 --- a/ext/phalcon/acl/componentaware.zep.c +++ b/ext/phalcon/acl/componentaware.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/acl/componentinterface.zep.c b/ext/phalcon/acl/componentinterface.zep.c index ae264429ced..c4bf49f62af 100644 --- a/ext/phalcon/acl/componentinterface.zep.c +++ b/ext/phalcon/acl/componentinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/acl/enum.zep.c b/ext/phalcon/acl/enum.zep.c index 42ba280d813..41e638364e1 100644 --- a/ext/phalcon/acl/enum.zep.c +++ b/ext/phalcon/acl/enum.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/acl/exception.zep.c b/ext/phalcon/acl/exception.zep.c index 62cb2e0d399..0787d8e4733 100644 --- a/ext/phalcon/acl/exception.zep.c +++ b/ext/phalcon/acl/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/acl/role.zep.c b/ext/phalcon/acl/role.zep.c index 79504419988..0bae7d171f5 100644 --- a/ext/phalcon/acl/role.zep.c +++ b/ext/phalcon/acl/role.zep.c @@ -22,7 +22,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/acl/roleaware.zep.c b/ext/phalcon/acl/roleaware.zep.c index 8d8c39c1991..a432a486605 100644 --- a/ext/phalcon/acl/roleaware.zep.c +++ b/ext/phalcon/acl/roleaware.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/acl/roleinterface.zep.c b/ext/phalcon/acl/roleinterface.zep.c index 74cbc12a592..05821ba06b4 100644 --- a/ext/phalcon/acl/roleinterface.zep.c +++ b/ext/phalcon/acl/roleinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/annotations/adapter/abstractadapter.zep.c b/ext/phalcon/annotations/adapter/abstractadapter.zep.c index 5e9132ab21f..1ec069a1264 100644 --- a/ext/phalcon/annotations/adapter/abstractadapter.zep.c +++ b/ext/phalcon/annotations/adapter/abstractadapter.zep.c @@ -22,7 +22,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/annotations/adapter/adapterinterface.zep.c b/ext/phalcon/annotations/adapter/adapterinterface.zep.c index d833428fa7a..531db7228d0 100644 --- a/ext/phalcon/annotations/adapter/adapterinterface.zep.c +++ b/ext/phalcon/annotations/adapter/adapterinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/annotations/adapter/apcu.zep.c b/ext/phalcon/annotations/adapter/apcu.zep.c index c36b35df944..e446407c1f4 100644 --- a/ext/phalcon/annotations/adapter/apcu.zep.c +++ b/ext/phalcon/annotations/adapter/apcu.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/annotations/adapter/memory.zep.c b/ext/phalcon/annotations/adapter/memory.zep.c index cb7deb7e7ec..e91a7deeac9 100644 --- a/ext/phalcon/annotations/adapter/memory.zep.c +++ b/ext/phalcon/annotations/adapter/memory.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/annotations/adapter/stream.zep.c b/ext/phalcon/annotations/adapter/stream.zep.c index 9cbe08972c8..df16e6a10a0 100644 --- a/ext/phalcon/annotations/adapter/stream.zep.c +++ b/ext/phalcon/annotations/adapter/stream.zep.c @@ -27,7 +27,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/annotations/annotation.zep.c b/ext/phalcon/annotations/annotation.zep.c index 8004a2a06b8..399772cab88 100644 --- a/ext/phalcon/annotations/annotation.zep.c +++ b/ext/phalcon/annotations/annotation.zep.c @@ -25,7 +25,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/annotations/annotationsfactory.zep.c b/ext/phalcon/annotations/annotationsfactory.zep.c index 050c7f5b13c..4f7f88c674e 100644 --- a/ext/phalcon/annotations/annotationsfactory.zep.c +++ b/ext/phalcon/annotations/annotationsfactory.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/annotations/collection.zep.c b/ext/phalcon/annotations/collection.zep.c index dde0f885282..f17b6a15c0d 100644 --- a/ext/phalcon/annotations/collection.zep.c +++ b/ext/phalcon/annotations/collection.zep.c @@ -25,7 +25,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/annotations/exception.zep.c b/ext/phalcon/annotations/exception.zep.c index 25ec35a8aa0..0b5f104bd8c 100644 --- a/ext/phalcon/annotations/exception.zep.c +++ b/ext/phalcon/annotations/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/annotations/parser.php5.lemon b/ext/phalcon/annotations/parser.php5.lemon index 4fdf080f4c7..0c2e2f9f91e 100644 --- a/ext/phalcon/annotations/parser.php5.lemon +++ b/ext/phalcon/annotations/parser.php5.lemon @@ -1,21 +1,12 @@ -/* - +------------------------------------------------------------------------+ - | Phalcon Framework | - +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 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 | - +------------------------------------------------------------------------+ -*/ +/** + * This file is part of the Phalcon Framework. + * + * (c) Phalcon Team + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ %token_prefix PHANNOT_ %token_type {phannot_parser_token*} diff --git a/ext/phalcon/annotations/parser.php7.lemon b/ext/phalcon/annotations/parser.php7.lemon index 33b9ce8f67b..4f4123f315c 100644 --- a/ext/phalcon/annotations/parser.php7.lemon +++ b/ext/phalcon/annotations/parser.php7.lemon @@ -1,21 +1,12 @@ -/* - +------------------------------------------------------------------------+ - | Phalcon Framework | - +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 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 | - +------------------------------------------------------------------------+ -*/ +/** + * This file is part of the Phalcon Framework. + * + * (c) Phalcon Team + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ %token_prefix PHANNOT_ %token_type {phannot_parser_token*} diff --git a/ext/phalcon/annotations/reader.zep.c b/ext/phalcon/annotations/reader.zep.c index 134c7adf006..9e7e9084f60 100644 --- a/ext/phalcon/annotations/reader.zep.c +++ b/ext/phalcon/annotations/reader.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/annotations/readerinterface.zep.c b/ext/phalcon/annotations/readerinterface.zep.c index 6cd69a68378..573e98ec604 100644 --- a/ext/phalcon/annotations/readerinterface.zep.c +++ b/ext/phalcon/annotations/readerinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/annotations/reflection.zep.c b/ext/phalcon/annotations/reflection.zep.c index 1de436f4d41..80da8c0c426 100644 --- a/ext/phalcon/annotations/reflection.zep.c +++ b/ext/phalcon/annotations/reflection.zep.c @@ -22,7 +22,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/annotations/scanner.re b/ext/phalcon/annotations/scanner.re index 7def3595fc3..612ae94dfd1 100644 --- a/ext/phalcon/annotations/scanner.re +++ b/ext/phalcon/annotations/scanner.re @@ -1,21 +1,12 @@ -/* - +------------------------------------------------------------------------+ - | Phalcon Framework | - +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 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 | - +------------------------------------------------------------------------+ -*/ +/** + * This file is part of the Phalcon Framework. + * + * (c) Phalcon Team + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ #include "php_phalcon.h" @@ -186,4 +177,4 @@ int phannot_get_token(phannot_scanner_state *s, phannot_scanner_token *token) { } return status; -} \ No newline at end of file +} diff --git a/ext/phalcon/application/abstractapplication.zep.c b/ext/phalcon/application/abstractapplication.zep.c index 5a6f77fc04f..50cc0a59cfb 100644 --- a/ext/phalcon/application/abstractapplication.zep.c +++ b/ext/phalcon/application/abstractapplication.zep.c @@ -25,7 +25,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/application/exception.zep.c b/ext/phalcon/application/exception.zep.c index a6481c38c43..60c1c53c808 100644 --- a/ext/phalcon/application/exception.zep.c +++ b/ext/phalcon/application/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/assets/asset.zep.c b/ext/phalcon/assets/asset.zep.c index 1095172dff5..1289753d81b 100644 --- a/ext/phalcon/assets/asset.zep.c +++ b/ext/phalcon/assets/asset.zep.c @@ -25,7 +25,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/assets/asset/css.zep.c b/ext/phalcon/assets/asset/css.zep.c index 899c09fddd5..fdc2db9bcc7 100644 --- a/ext/phalcon/assets/asset/css.zep.c +++ b/ext/phalcon/assets/asset/css.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/assets/asset/js.zep.c b/ext/phalcon/assets/asset/js.zep.c index 4c1dcd52f1c..e412b11db2e 100644 --- a/ext/phalcon/assets/asset/js.zep.c +++ b/ext/phalcon/assets/asset/js.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/assets/assetinterface.zep.c b/ext/phalcon/assets/assetinterface.zep.c index 2538438bea9..bc8c8b122a2 100644 --- a/ext/phalcon/assets/assetinterface.zep.c +++ b/ext/phalcon/assets/assetinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/assets/collection.zep.c b/ext/phalcon/assets/collection.zep.c index de0b1ec7680..1904dcadc1f 100644 --- a/ext/phalcon/assets/collection.zep.c +++ b/ext/phalcon/assets/collection.zep.c @@ -27,7 +27,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/assets/exception.zep.c b/ext/phalcon/assets/exception.zep.c index ae84a6be7b0..2fd63438504 100644 --- a/ext/phalcon/assets/exception.zep.c +++ b/ext/phalcon/assets/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/assets/filterinterface.zep.c b/ext/phalcon/assets/filterinterface.zep.c index 8e869ab20df..1d0b10ae9cb 100644 --- a/ext/phalcon/assets/filterinterface.zep.c +++ b/ext/phalcon/assets/filterinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/assets/filters/cssmin.zep.c b/ext/phalcon/assets/filters/cssmin.zep.c index 62548ce81f4..e55aee5daa6 100644 --- a/ext/phalcon/assets/filters/cssmin.zep.c +++ b/ext/phalcon/assets/filters/cssmin.zep.c @@ -22,7 +22,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/assets/filters/jsmin.zep.c b/ext/phalcon/assets/filters/jsmin.zep.c index 161c7ec1e39..ca87ddefb5d 100644 --- a/ext/phalcon/assets/filters/jsmin.zep.c +++ b/ext/phalcon/assets/filters/jsmin.zep.c @@ -22,7 +22,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/assets/filters/none.zep.c b/ext/phalcon/assets/filters/none.zep.c index 207d0b0800e..88da591b139 100644 --- a/ext/phalcon/assets/filters/none.zep.c +++ b/ext/phalcon/assets/filters/none.zep.c @@ -22,7 +22,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/assets/inline.zep.c b/ext/phalcon/assets/inline.zep.c index b0591729a9f..af41aaf581f 100644 --- a/ext/phalcon/assets/inline.zep.c +++ b/ext/phalcon/assets/inline.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/assets/inline/css.zep.c b/ext/phalcon/assets/inline/css.zep.c index 78e0d813282..e3ec734a513 100644 --- a/ext/phalcon/assets/inline/css.zep.c +++ b/ext/phalcon/assets/inline/css.zep.c @@ -22,7 +22,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/assets/inline/js.zep.c b/ext/phalcon/assets/inline/js.zep.c index bb54a01b760..84d61582622 100644 --- a/ext/phalcon/assets/inline/js.zep.c +++ b/ext/phalcon/assets/inline/js.zep.c @@ -22,7 +22,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/assets/manager.zep.c b/ext/phalcon/assets/manager.zep.c index 70f2d822954..6681b926dc9 100644 --- a/ext/phalcon/assets/manager.zep.c +++ b/ext/phalcon/assets/manager.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/cache.zep.c b/ext/phalcon/cache.zep.c index fb62f8ef78f..1bd35eb7f47 100644 --- a/ext/phalcon/cache.zep.c +++ b/ext/phalcon/cache.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/cache/adapter/adapterinterface.zep.c b/ext/phalcon/cache/adapter/adapterinterface.zep.c index 0beb26682a2..ce6e87f2775 100644 --- a/ext/phalcon/cache/adapter/adapterinterface.zep.c +++ b/ext/phalcon/cache/adapter/adapterinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/cache/adapter/apcu.zep.c b/ext/phalcon/cache/adapter/apcu.zep.c index c6b14d10919..76c89c4bdf5 100644 --- a/ext/phalcon/cache/adapter/apcu.zep.c +++ b/ext/phalcon/cache/adapter/apcu.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/cache/adapter/libmemcached.zep.c b/ext/phalcon/cache/adapter/libmemcached.zep.c index 617c67286e7..45c1f638e8b 100644 --- a/ext/phalcon/cache/adapter/libmemcached.zep.c +++ b/ext/phalcon/cache/adapter/libmemcached.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/cache/adapter/memory.zep.c b/ext/phalcon/cache/adapter/memory.zep.c index 9e9aa03f7d1..d32c79865d7 100644 --- a/ext/phalcon/cache/adapter/memory.zep.c +++ b/ext/phalcon/cache/adapter/memory.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/cache/adapter/redis.zep.c b/ext/phalcon/cache/adapter/redis.zep.c index 081aae92ece..2118ee973b2 100644 --- a/ext/phalcon/cache/adapter/redis.zep.c +++ b/ext/phalcon/cache/adapter/redis.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/cache/adapter/stream.zep.c b/ext/phalcon/cache/adapter/stream.zep.c index 7771b989254..aaf37b9c4cf 100644 --- a/ext/phalcon/cache/adapter/stream.zep.c +++ b/ext/phalcon/cache/adapter/stream.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/cache/adapterfactory.zep.c b/ext/phalcon/cache/adapterfactory.zep.c index 172dfe59c8e..a76919e953b 100644 --- a/ext/phalcon/cache/adapterfactory.zep.c +++ b/ext/phalcon/cache/adapterfactory.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/cache/cachefactory.zep.c b/ext/phalcon/cache/cachefactory.zep.c index 57df59b8731..1b86579c618 100644 --- a/ext/phalcon/cache/cachefactory.zep.c +++ b/ext/phalcon/cache/cachefactory.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/cache/exception/exception.zep.c b/ext/phalcon/cache/exception/exception.zep.c index f2e36a5270f..a0a728c94ea 100644 --- a/ext/phalcon/cache/exception/exception.zep.c +++ b/ext/phalcon/cache/exception/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Cache_Exception_Exception) { - ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Cache\\Exception, Exception, phalcon, cache_exception_exception, zend_exception_get_default(TSRMLS_C), NULL, 0); + ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Cache\\Exception, Exception, phalcon, cache_exception_exception, phalcon_exception_ce, NULL, 0); zend_class_implements(phalcon_cache_exception_exception_ce TSRMLS_CC, 1, zephir_get_internal_ce(SL("psr\\simplecache\\cacheexception"))); return SUCCESS; diff --git a/ext/phalcon/cache/exception/invalidargumentexception.zep.c b/ext/phalcon/cache/exception/invalidargumentexception.zep.c index fb00d181873..8e13a7c8512 100644 --- a/ext/phalcon/cache/exception/invalidargumentexception.zep.c +++ b/ext/phalcon/cache/exception/invalidargumentexception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Cache_Exception_InvalidArgumentException) { - ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Cache\\Exception, InvalidArgumentException, phalcon, cache_exception_invalidargumentexception, zend_exception_get_default(TSRMLS_C), NULL, 0); + ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Cache\\Exception, InvalidArgumentException, phalcon, cache_exception_invalidargumentexception, phalcon_exception_ce, NULL, 0); zend_class_implements(phalcon_cache_exception_invalidargumentexception_ce TSRMLS_CC, 1, zephir_get_internal_ce(SL("psr\\simplecache\\invalidargumentexception"))); return SUCCESS; diff --git a/ext/phalcon/cli/console.zep.c b/ext/phalcon/cli/console.zep.c index 04bc8011e13..b2d81c488be 100644 --- a/ext/phalcon/cli/console.zep.c +++ b/ext/phalcon/cli/console.zep.c @@ -28,7 +28,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/cli/console/exception.zep.c b/ext/phalcon/cli/console/exception.zep.c index 701e8ac3856..72218c22a0c 100644 --- a/ext/phalcon/cli/console/exception.zep.c +++ b/ext/phalcon/cli/console/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/cli/dispatcher.zep.c b/ext/phalcon/cli/dispatcher.zep.c index 94239b179b5..5c3d9e62fa0 100644 --- a/ext/phalcon/cli/dispatcher.zep.c +++ b/ext/phalcon/cli/dispatcher.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/cli/dispatcher/exception.zep.c b/ext/phalcon/cli/dispatcher/exception.zep.c index 86d0ef5bbe4..eae862bcddb 100644 --- a/ext/phalcon/cli/dispatcher/exception.zep.c +++ b/ext/phalcon/cli/dispatcher/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/cli/dispatcherinterface.zep.c b/ext/phalcon/cli/dispatcherinterface.zep.c index 7c469cec911..6c3bead6487 100644 --- a/ext/phalcon/cli/dispatcherinterface.zep.c +++ b/ext/phalcon/cli/dispatcherinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/cli/router.zep.c b/ext/phalcon/cli/router.zep.c index a3abc92dcea..39fede73bd6 100644 --- a/ext/phalcon/cli/router.zep.c +++ b/ext/phalcon/cli/router.zep.c @@ -25,7 +25,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/cli/router/exception.zep.c b/ext/phalcon/cli/router/exception.zep.c index c9ff233458b..ce58d32fbcb 100644 --- a/ext/phalcon/cli/router/exception.zep.c +++ b/ext/phalcon/cli/router/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/cli/router/route.zep.c b/ext/phalcon/cli/router/route.zep.c index b438b9e1437..d569bd4198c 100644 --- a/ext/phalcon/cli/router/route.zep.c +++ b/ext/phalcon/cli/router/route.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/cli/router/routeinterface.zep.c b/ext/phalcon/cli/router/routeinterface.zep.c index 9c4256a0a2b..e270a37c45b 100644 --- a/ext/phalcon/cli/router/routeinterface.zep.c +++ b/ext/phalcon/cli/router/routeinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/cli/routerinterface.zep.c b/ext/phalcon/cli/routerinterface.zep.c index b71ccb80b0c..bad6a49376e 100644 --- a/ext/phalcon/cli/routerinterface.zep.c +++ b/ext/phalcon/cli/routerinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/cli/task.zep.c b/ext/phalcon/cli/task.zep.c index 2b3ad5592d2..387cafc8a1e 100644 --- a/ext/phalcon/cli/task.zep.c +++ b/ext/phalcon/cli/task.zep.c @@ -20,7 +20,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/cli/taskinterface.zep.c b/ext/phalcon/cli/taskinterface.zep.c index cf0b1bbe768..008b63306fd 100644 --- a/ext/phalcon/cli/taskinterface.zep.c +++ b/ext/phalcon/cli/taskinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/collection.zep.c b/ext/phalcon/collection.zep.c index d17f054dd4d..a2050df2e46 100644 --- a/ext/phalcon/collection.zep.c +++ b/ext/phalcon/collection.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/collection/exception.zep.c b/ext/phalcon/collection/exception.zep.c index 2ee5718c365..cd7ef46ec56 100644 --- a/ext/phalcon/collection/exception.zep.c +++ b/ext/phalcon/collection/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -27,7 +27,7 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Collection_Exception) { - ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Collection, Exception, phalcon, collection_exception, zend_exception_get_default(TSRMLS_C), NULL, 0); + ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Collection, Exception, phalcon, collection_exception, phalcon_exception_ce, NULL, 0); zend_class_implements(phalcon_collection_exception_ce TSRMLS_CC, 1, zephir_get_internal_ce(SL("throwable"))); return SUCCESS; diff --git a/ext/phalcon/collection/readonly.zep.c b/ext/phalcon/collection/readonly.zep.c index 79b3c04726d..d85ee70a9dd 100644 --- a/ext/phalcon/collection/readonly.zep.c +++ b/ext/phalcon/collection/readonly.zep.c @@ -21,7 +21,7 @@ /** * This file is part of the Phalcon Framework. * -* (c) Phalcon Team +* (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/config.zep.c b/ext/phalcon/config.zep.c index 70357358d71..deea0f1d714 100644 --- a/ext/phalcon/config.zep.c +++ b/ext/phalcon/config.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/config/adapter/grouped.zep.c b/ext/phalcon/config/adapter/grouped.zep.c index 022bf2802f5..c74aea8a1e2 100644 --- a/ext/phalcon/config/adapter/grouped.zep.c +++ b/ext/phalcon/config/adapter/grouped.zep.c @@ -25,7 +25,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/config/adapter/ini.zep.c b/ext/phalcon/config/adapter/ini.zep.c index fefbdb7d085..0962bcbbf4e 100644 --- a/ext/phalcon/config/adapter/ini.zep.c +++ b/ext/phalcon/config/adapter/ini.zep.c @@ -27,7 +27,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/config/adapter/json.zep.c b/ext/phalcon/config/adapter/json.zep.c index 448f56359ac..63142346aa0 100644 --- a/ext/phalcon/config/adapter/json.zep.c +++ b/ext/phalcon/config/adapter/json.zep.c @@ -25,7 +25,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/config/adapter/php.zep.c b/ext/phalcon/config/adapter/php.zep.c index db2fbbb8013..dbb2cd28a13 100644 --- a/ext/phalcon/config/adapter/php.zep.c +++ b/ext/phalcon/config/adapter/php.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/config/adapter/yaml.zep.c b/ext/phalcon/config/adapter/yaml.zep.c index 73c8a839817..bc824135ec7 100644 --- a/ext/phalcon/config/adapter/yaml.zep.c +++ b/ext/phalcon/config/adapter/yaml.zep.c @@ -25,7 +25,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/config/configfactory.zep.c b/ext/phalcon/config/configfactory.zep.c index 66731b821c5..f58510ee126 100644 --- a/ext/phalcon/config/configfactory.zep.c +++ b/ext/phalcon/config/configfactory.zep.c @@ -25,7 +25,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/config/exception.zep.c b/ext/phalcon/config/exception.zep.c index 22e0dd56dd4..8a0654b311b 100644 --- a/ext/phalcon/config/exception.zep.c +++ b/ext/phalcon/config/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/container.zep.c b/ext/phalcon/container.zep.c index c034067f718..9b60c87c820 100644 --- a/ext/phalcon/container.zep.c +++ b/ext/phalcon/container.zep.c @@ -20,7 +20,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/crypt.zep.c b/ext/phalcon/crypt.zep.c index ef122f4274b..54e47eb6a80 100644 --- a/ext/phalcon/crypt.zep.c +++ b/ext/phalcon/crypt.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/crypt/cryptinterface.zep.c b/ext/phalcon/crypt/cryptinterface.zep.c index 66b9a56dc3e..ce2bf922cac 100644 --- a/ext/phalcon/crypt/cryptinterface.zep.c +++ b/ext/phalcon/crypt/cryptinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/crypt/exception.zep.c b/ext/phalcon/crypt/exception.zep.c index c36cd6c9c3c..2f85c5f6c92 100644 --- a/ext/phalcon/crypt/exception.zep.c +++ b/ext/phalcon/crypt/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/crypt/mismatch.zep.c b/ext/phalcon/crypt/mismatch.zep.c index f87f267214a..28bf2770bd4 100644 --- a/ext/phalcon/crypt/mismatch.zep.c +++ b/ext/phalcon/crypt/mismatch.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/db/abstractdb.zep.c b/ext/phalcon/db/abstractdb.zep.c index e6e449b2064..4f9710e3066 100644 --- a/ext/phalcon/db/abstractdb.zep.c +++ b/ext/phalcon/db/abstractdb.zep.c @@ -22,7 +22,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/db/adapter/pdofactory.zep.c b/ext/phalcon/db/adapter/pdofactory.zep.c index 8a3a910c92e..992d560c68d 100644 --- a/ext/phalcon/db/adapter/pdofactory.zep.c +++ b/ext/phalcon/db/adapter/pdofactory.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/db/dialect.zep.c b/ext/phalcon/db/dialect.zep.c index 2a6bdd268c6..8e949707045 100644 --- a/ext/phalcon/db/dialect.zep.c +++ b/ext/phalcon/db/dialect.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/db/dialect/mysql.zep.c b/ext/phalcon/db/dialect/mysql.zep.c index 2bebd0f1d1d..62a919b4f89 100644 --- a/ext/phalcon/db/dialect/mysql.zep.c +++ b/ext/phalcon/db/dialect/mysql.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/db/dialect/postgresql.zep.c b/ext/phalcon/db/dialect/postgresql.zep.c index 53823d083a9..2bcfc5cb63f 100644 --- a/ext/phalcon/db/dialect/postgresql.zep.c +++ b/ext/phalcon/db/dialect/postgresql.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/db/dialect/sqlite.zep.c b/ext/phalcon/db/dialect/sqlite.zep.c index 836685ae28c..066db1d9732 100644 --- a/ext/phalcon/db/dialect/sqlite.zep.c +++ b/ext/phalcon/db/dialect/sqlite.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/db/dialectinterface.zep.c b/ext/phalcon/db/dialectinterface.zep.c index fc9b4c9d627..f36f1474280 100644 --- a/ext/phalcon/db/dialectinterface.zep.c +++ b/ext/phalcon/db/dialectinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/db/enum.zep.c b/ext/phalcon/db/enum.zep.c index 0d22c95efe2..faf037e841e 100644 --- a/ext/phalcon/db/enum.zep.c +++ b/ext/phalcon/db/enum.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/db/exception.zep.c b/ext/phalcon/db/exception.zep.c index 9ac2b4c5d0e..12f32e58ba6 100644 --- a/ext/phalcon/db/exception.zep.c +++ b/ext/phalcon/db/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/db/index.zep.c b/ext/phalcon/db/index.zep.c index 16c46946aa6..6deca9d5443 100644 --- a/ext/phalcon/db/index.zep.c +++ b/ext/phalcon/db/index.zep.c @@ -22,7 +22,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/db/indexinterface.zep.c b/ext/phalcon/db/indexinterface.zep.c index d9513397d50..38bfa64b1ba 100644 --- a/ext/phalcon/db/indexinterface.zep.c +++ b/ext/phalcon/db/indexinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/db/profiler.zep.c b/ext/phalcon/db/profiler.zep.c index 0c7f6890d8e..d6c117fe8f4 100644 --- a/ext/phalcon/db/profiler.zep.c +++ b/ext/phalcon/db/profiler.zep.c @@ -22,7 +22,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/db/profiler/item.zep.c b/ext/phalcon/db/profiler/item.zep.c index 3ce5d30e687..35c76ec053c 100644 --- a/ext/phalcon/db/profiler/item.zep.c +++ b/ext/phalcon/db/profiler/item.zep.c @@ -20,7 +20,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/db/rawvalue.zep.c b/ext/phalcon/db/rawvalue.zep.c index 43950de7fe8..9d7808c0e6b 100644 --- a/ext/phalcon/db/rawvalue.zep.c +++ b/ext/phalcon/db/rawvalue.zep.c @@ -20,7 +20,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -33,7 +33,7 @@ *```php * $subscriber = new Subscribers(); * - * $subscriber->email = "andres@phalconphp.com"; + * $subscriber->email = "andres@phalcon.io"; * $subscriber->createdAt = new \Phalcon\Db\RawValue("now()"); * * $subscriber->save(); diff --git a/ext/phalcon/db/reference.zep.c b/ext/phalcon/db/reference.zep.c index 2a200b47165..c4ef6c56b15 100644 --- a/ext/phalcon/db/reference.zep.c +++ b/ext/phalcon/db/reference.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/db/referenceinterface.zep.c b/ext/phalcon/db/referenceinterface.zep.c index c9f683cdade..a7fd73b4269 100644 --- a/ext/phalcon/db/referenceinterface.zep.c +++ b/ext/phalcon/db/referenceinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/db/result/pdo.zep.c b/ext/phalcon/db/result/pdo.zep.c index 5becd228abd..900d6d2c477 100644 --- a/ext/phalcon/db/result/pdo.zep.c +++ b/ext/phalcon/db/result/pdo.zep.c @@ -27,7 +27,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/db/resultinterface.zep.c b/ext/phalcon/db/resultinterface.zep.c index ef2c0d3a01a..8e671002ddf 100644 --- a/ext/phalcon/db/resultinterface.zep.c +++ b/ext/phalcon/db/resultinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/debug.zep.c b/ext/phalcon/debug.zep.c index fb011977bfd..87d67e18b16 100644 --- a/ext/phalcon/debug.zep.c +++ b/ext/phalcon/debug.zep.c @@ -27,7 +27,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -74,7 +74,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Debug) { /** * @var string */ - zend_declare_property_string(phalcon_debug_ce, SL("uri"), "https://assets.phalconphp.com/debug/4.0.x/", ZEND_ACC_PROTECTED TSRMLS_CC); + zend_declare_property_string(phalcon_debug_ce, SL("uri"), "https://assets.phalcon.io/debug/4.0.x/", ZEND_ACC_PROTECTED TSRMLS_CC); phalcon_debug_ce->create_object = zephir_init_properties_Phalcon_Debug; return SUCCESS; @@ -240,7 +240,7 @@ PHP_METHOD(Phalcon_Debug, getVersion) { ZEPHIR_CALL_CE_STATIC(&_3, phalcon_version_ce, "getpart", &_1, 0, &_2); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_4); - ZEPHIR_CONCAT_SVSVS(&_4, "https://docs.phalconphp.com/", &_0, ".", &_3, "/en/"); + ZEPHIR_CONCAT_SVSVS(&_4, "https://docs.phalcon.io/", &_0, ".", &_3, "/en/"); zephir_array_update_string(&link, SL("action"), &_4, PH_COPY | PH_SEPARATE); ZEPHIR_CALL_CE_STATIC(&_5, phalcon_version_ce, "get", &_6, 0); zephir_check_call_status(); @@ -1454,7 +1454,7 @@ PHP_METHOD(Phalcon_Debug, showTraceItem) { ZEPHIR_INIT_VAR(&prepareUriClass); zephir_fast_str_replace(&prepareUriClass, &_6$$4, &_7$$4, &className TSRMLS_CC); ZEPHIR_INIT_VAR(&classNameWithLink); - ZEPHIR_CONCAT_SVSVS(&classNameWithLink, "", &className, ""); + ZEPHIR_CONCAT_SVSVS(&classNameWithLink, "", &className, ""); } else { ZEPHIR_INIT_VAR(&classReflection); object_init_ex(&classReflection, zephir_get_internal_ce(SL("reflectionclass"))); diff --git a/ext/phalcon/debug/dump.zep.c b/ext/phalcon/debug/dump.zep.c index 322e0ed7530..19dd7e82b1c 100644 --- a/ext/phalcon/debug/dump.zep.c +++ b/ext/phalcon/debug/dump.zep.c @@ -27,7 +27,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/debug/exception.zep.c b/ext/phalcon/debug/exception.zep.c index b4c1a772347..222b78824be 100644 --- a/ext/phalcon/debug/exception.zep.c +++ b/ext/phalcon/debug/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/di.zep.c b/ext/phalcon/di.zep.c index b4ca294600c..8116ab9da91 100644 --- a/ext/phalcon/di.zep.c +++ b/ext/phalcon/di.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -733,7 +733,7 @@ PHP_METHOD(Phalcon_Di, loadFromConfig) { * ]; * ``` * - * @link https://docs.phalconphp.com/en/latest/reference/di.html + * @link https://docs.phalcon.io/en/latest/reference/di.html */ PHP_METHOD(Phalcon_Di, loadFromPhp) { @@ -802,7 +802,7 @@ PHP_METHOD(Phalcon_Di, loadFromPhp) { * className: \Acme\User * ``` * - * @link https://docs.phalconphp.com/en/latest/reference/di.html + * @link https://docs.phalcon.io/en/latest/reference/di.html */ PHP_METHOD(Phalcon_Di, loadFromYaml) { diff --git a/ext/phalcon/di/diinterface.zep.c b/ext/phalcon/di/diinterface.zep.c index fbca16933a8..dd99c2de543 100644 --- a/ext/phalcon/di/diinterface.zep.c +++ b/ext/phalcon/di/diinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/di/exception.zep.c b/ext/phalcon/di/exception.zep.c index fa5a26f56a4..078781c7ef4 100644 --- a/ext/phalcon/di/exception.zep.c +++ b/ext/phalcon/di/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/di/exception/serviceresolutionexception.zep.c b/ext/phalcon/di/exception/serviceresolutionexception.zep.c index b876d1d4371..a1793a4f316 100644 --- a/ext/phalcon/di/exception/serviceresolutionexception.zep.c +++ b/ext/phalcon/di/exception/serviceresolutionexception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/di/factorydefault.zep.c b/ext/phalcon/di/factorydefault.zep.c index 505177b91a4..a94a621fcbb 100644 --- a/ext/phalcon/di/factorydefault.zep.c +++ b/ext/phalcon/di/factorydefault.zep.c @@ -21,7 +21,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/di/factorydefault/cli.zep.c b/ext/phalcon/di/factorydefault/cli.zep.c index f607bec0f40..0b13fabe57c 100644 --- a/ext/phalcon/di/factorydefault/cli.zep.c +++ b/ext/phalcon/di/factorydefault/cli.zep.c @@ -21,7 +21,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/di/injectable.zep.c b/ext/phalcon/di/injectable.zep.c index a38f82ad9f3..11c52567c97 100644 --- a/ext/phalcon/di/injectable.zep.c +++ b/ext/phalcon/di/injectable.zep.c @@ -25,7 +25,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/di/injectionawareinterface.zep.c b/ext/phalcon/di/injectionawareinterface.zep.c index 7ddbc0a1af2..12bfd096b98 100644 --- a/ext/phalcon/di/injectionawareinterface.zep.c +++ b/ext/phalcon/di/injectionawareinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/di/service.zep.c b/ext/phalcon/di/service.zep.c index 3a91782c9b6..cbf2ada3cd0 100644 --- a/ext/phalcon/di/service.zep.c +++ b/ext/phalcon/di/service.zep.c @@ -25,7 +25,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/di/service/builder.zep.c b/ext/phalcon/di/service/builder.zep.c index 63062436001..ae645875062 100644 --- a/ext/phalcon/di/service/builder.zep.c +++ b/ext/phalcon/di/service/builder.zep.c @@ -25,7 +25,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/di/serviceinterface.zep.c b/ext/phalcon/di/serviceinterface.zep.c index 682efb15370..bccff0e23f6 100644 --- a/ext/phalcon/di/serviceinterface.zep.c +++ b/ext/phalcon/di/serviceinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/di/serviceproviderinterface.zep.c b/ext/phalcon/di/serviceproviderinterface.zep.c index 8df608cf653..1a31bfd7429 100644 --- a/ext/phalcon/di/serviceproviderinterface.zep.c +++ b/ext/phalcon/di/serviceproviderinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/dispatcher/abstractdispatcher.zep.c b/ext/phalcon/dispatcher/abstractdispatcher.zep.c index 6dae61c71ab..33f674230da 100644 --- a/ext/phalcon/dispatcher/abstractdispatcher.zep.c +++ b/ext/phalcon/dispatcher/abstractdispatcher.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/dispatcher/dispatcherinterface.zep.c b/ext/phalcon/dispatcher/dispatcherinterface.zep.c index bff281c7c7b..83f877df34c 100644 --- a/ext/phalcon/dispatcher/dispatcherinterface.zep.c +++ b/ext/phalcon/dispatcher/dispatcherinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/dispatcher/exception.zep.c b/ext/phalcon/dispatcher/exception.zep.c index 0a5e504f60c..90cf5ead7c3 100644 --- a/ext/phalcon/dispatcher/exception.zep.c +++ b/ext/phalcon/dispatcher/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/domain/payload/payload.zep.c b/ext/phalcon/domain/payload/payload.zep.c index a36f91e0b7b..31fbca29051 100644 --- a/ext/phalcon/domain/payload/payload.zep.c +++ b/ext/phalcon/domain/payload/payload.zep.c @@ -19,7 +19,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/domain/payload/payloadfactory.zep.c b/ext/phalcon/domain/payload/payloadfactory.zep.c index 8c931c49117..c5c871afc2c 100644 --- a/ext/phalcon/domain/payload/payloadfactory.zep.c +++ b/ext/phalcon/domain/payload/payloadfactory.zep.c @@ -20,7 +20,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/domain/payload/payloadinterface.zep.c b/ext/phalcon/domain/payload/payloadinterface.zep.c index 146e28fce5a..6aecdbb7bc6 100644 --- a/ext/phalcon/domain/payload/payloadinterface.zep.c +++ b/ext/phalcon/domain/payload/payloadinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/domain/payload/readableinterface.zep.c b/ext/phalcon/domain/payload/readableinterface.zep.c index c411ea6acdb..f9383a40cb1 100644 --- a/ext/phalcon/domain/payload/readableinterface.zep.c +++ b/ext/phalcon/domain/payload/readableinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/domain/payload/status.zep.c b/ext/phalcon/domain/payload/status.zep.c index 8165d3fb91e..bf092f50b17 100644 --- a/ext/phalcon/domain/payload/status.zep.c +++ b/ext/phalcon/domain/payload/status.zep.c @@ -18,7 +18,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/domain/payload/writeableinterface.zep.c b/ext/phalcon/domain/payload/writeableinterface.zep.c index 86b530d31b2..eb4aed8a77c 100644 --- a/ext/phalcon/domain/payload/writeableinterface.zep.c +++ b/ext/phalcon/domain/payload/writeableinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/escaper.zep.c b/ext/phalcon/escaper.zep.c index 1b657a454d0..8f5c2249866 100644 --- a/ext/phalcon/escaper.zep.c +++ b/ext/phalcon/escaper.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/escaper/escaperinterface.zep.c b/ext/phalcon/escaper/escaperinterface.zep.c index c4a6a716ede..942d8b25cec 100644 --- a/ext/phalcon/escaper/escaperinterface.zep.c +++ b/ext/phalcon/escaper/escaperinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/escaper/exception.zep.c b/ext/phalcon/escaper/exception.zep.c index ebde90f5278..7c093a97ba3 100644 --- a/ext/phalcon/escaper/exception.zep.c +++ b/ext/phalcon/escaper/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/events/event.zep.c b/ext/phalcon/events/event.zep.c index 6b0c1c65f12..13997cf992f 100644 --- a/ext/phalcon/events/event.zep.c +++ b/ext/phalcon/events/event.zep.c @@ -22,7 +22,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/events/eventinterface.zep.c b/ext/phalcon/events/eventinterface.zep.c index 1e461e1605a..389713fe192 100644 --- a/ext/phalcon/events/eventinterface.zep.c +++ b/ext/phalcon/events/eventinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/events/eventsawareinterface.zep.c b/ext/phalcon/events/eventsawareinterface.zep.c index f418e6fe599..7ade013e029 100644 --- a/ext/phalcon/events/eventsawareinterface.zep.c +++ b/ext/phalcon/events/eventsawareinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/events/exception.zep.c b/ext/phalcon/events/exception.zep.c index 0d1baee71ff..c287db4d3cc 100644 --- a/ext/phalcon/events/exception.zep.c +++ b/ext/phalcon/events/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/events/manager.zep.c b/ext/phalcon/events/manager.zep.c index 332a93a7660..53201455b4e 100644 --- a/ext/phalcon/events/manager.zep.c +++ b/ext/phalcon/events/manager.zep.c @@ -28,7 +28,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/events/managerinterface.zep.c b/ext/phalcon/events/managerinterface.zep.c index a1879b38a3e..a86acd1eb65 100644 --- a/ext/phalcon/events/managerinterface.zep.c +++ b/ext/phalcon/events/managerinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/exception.zep.c b/ext/phalcon/exception.zep.c index b126e1dc711..6fa2df2d9c4 100644 --- a/ext/phalcon/exception.zep.c +++ b/ext/phalcon/exception.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/factory/abstractfactory.zep.c b/ext/phalcon/factory/abstractfactory.zep.c index e3e7ff884a8..d2f1de84cd6 100644 --- a/ext/phalcon/factory/abstractfactory.zep.c +++ b/ext/phalcon/factory/abstractfactory.zep.c @@ -25,7 +25,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/factory/exception.zep.c b/ext/phalcon/factory/exception.zep.c index 9ad62ea6671..a286f34bb7b 100644 --- a/ext/phalcon/factory/exception.zep.c +++ b/ext/phalcon/factory/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/filter/exception.zep.c b/ext/phalcon/filter/exception.zep.c index 5d6c50cf3b5..51b223e4bf8 100644 --- a/ext/phalcon/filter/exception.zep.c +++ b/ext/phalcon/filter/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/filter/filter.zep.c b/ext/phalcon/filter/filter.zep.c index a8bc042b84a..ee5604552bf 100644 --- a/ext/phalcon/filter/filter.zep.c +++ b/ext/phalcon/filter/filter.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/filter/filterfactory.zep.c b/ext/phalcon/filter/filterfactory.zep.c index 9fa41b32dc3..fcf4b0324b4 100644 --- a/ext/phalcon/filter/filterfactory.zep.c +++ b/ext/phalcon/filter/filterfactory.zep.c @@ -21,7 +21,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/filter/filterinterface.zep.c b/ext/phalcon/filter/filterinterface.zep.c index d7fa0b219ff..c2ab287bedc 100644 --- a/ext/phalcon/filter/filterinterface.zep.c +++ b/ext/phalcon/filter/filterinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/filter/sanitize/absint.zep.c b/ext/phalcon/filter/sanitize/absint.zep.c index d254be372da..b709297e0e1 100644 --- a/ext/phalcon/filter/sanitize/absint.zep.c +++ b/ext/phalcon/filter/sanitize/absint.zep.c @@ -21,7 +21,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/filter/sanitize/alnum.zep.c b/ext/phalcon/filter/sanitize/alnum.zep.c index 5e4247e2ef7..c4cb6101e80 100644 --- a/ext/phalcon/filter/sanitize/alnum.zep.c +++ b/ext/phalcon/filter/sanitize/alnum.zep.c @@ -20,7 +20,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/filter/sanitize/alpha.zep.c b/ext/phalcon/filter/sanitize/alpha.zep.c index e93dbf1b6d3..3ceba213523 100644 --- a/ext/phalcon/filter/sanitize/alpha.zep.c +++ b/ext/phalcon/filter/sanitize/alpha.zep.c @@ -20,7 +20,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/filter/sanitize/boolval.zep.c b/ext/phalcon/filter/sanitize/boolval.zep.c index 906efb18a79..898f7c848a0 100644 --- a/ext/phalcon/filter/sanitize/boolval.zep.c +++ b/ext/phalcon/filter/sanitize/boolval.zep.c @@ -21,7 +21,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/filter/sanitize/email.zep.c b/ext/phalcon/filter/sanitize/email.zep.c index 68a1c0bf35c..bf754b0803e 100644 --- a/ext/phalcon/filter/sanitize/email.zep.c +++ b/ext/phalcon/filter/sanitize/email.zep.c @@ -20,7 +20,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/filter/sanitize/floatval.zep.c b/ext/phalcon/filter/sanitize/floatval.zep.c index e48da8faf22..3a3c36d24a5 100644 --- a/ext/phalcon/filter/sanitize/floatval.zep.c +++ b/ext/phalcon/filter/sanitize/floatval.zep.c @@ -22,7 +22,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/filter/sanitize/intval.zep.c b/ext/phalcon/filter/sanitize/intval.zep.c index 5313356174b..4f764244a97 100644 --- a/ext/phalcon/filter/sanitize/intval.zep.c +++ b/ext/phalcon/filter/sanitize/intval.zep.c @@ -21,7 +21,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/filter/sanitize/lower.zep.c b/ext/phalcon/filter/sanitize/lower.zep.c index ba28ddd19d5..cbd4b2bf625 100644 --- a/ext/phalcon/filter/sanitize/lower.zep.c +++ b/ext/phalcon/filter/sanitize/lower.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/filter/sanitize/lowerfirst.zep.c b/ext/phalcon/filter/sanitize/lowerfirst.zep.c index 0c05eb5d446..df6b7bcbeee 100644 --- a/ext/phalcon/filter/sanitize/lowerfirst.zep.c +++ b/ext/phalcon/filter/sanitize/lowerfirst.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/filter/sanitize/regex.zep.c b/ext/phalcon/filter/sanitize/regex.zep.c index 232f0aeeb0f..dc5aee27e5e 100644 --- a/ext/phalcon/filter/sanitize/regex.zep.c +++ b/ext/phalcon/filter/sanitize/regex.zep.c @@ -20,7 +20,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/filter/sanitize/remove.zep.c b/ext/phalcon/filter/sanitize/remove.zep.c index 696dff0eed5..bfbc7b12115 100644 --- a/ext/phalcon/filter/sanitize/remove.zep.c +++ b/ext/phalcon/filter/sanitize/remove.zep.c @@ -20,7 +20,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/filter/sanitize/replace.zep.c b/ext/phalcon/filter/sanitize/replace.zep.c index 3d6870aaf2d..ebc6dfada66 100644 --- a/ext/phalcon/filter/sanitize/replace.zep.c +++ b/ext/phalcon/filter/sanitize/replace.zep.c @@ -20,7 +20,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/filter/sanitize/special.zep.c b/ext/phalcon/filter/sanitize/special.zep.c index 2248c254803..ccb2e89e582 100644 --- a/ext/phalcon/filter/sanitize/special.zep.c +++ b/ext/phalcon/filter/sanitize/special.zep.c @@ -20,7 +20,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/filter/sanitize/specialfull.zep.c b/ext/phalcon/filter/sanitize/specialfull.zep.c index fdfdc0a47fc..d36378970d0 100644 --- a/ext/phalcon/filter/sanitize/specialfull.zep.c +++ b/ext/phalcon/filter/sanitize/specialfull.zep.c @@ -20,7 +20,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/filter/sanitize/stringval.zep.c b/ext/phalcon/filter/sanitize/stringval.zep.c index 351d6a4f271..8c2af082706 100644 --- a/ext/phalcon/filter/sanitize/stringval.zep.c +++ b/ext/phalcon/filter/sanitize/stringval.zep.c @@ -20,7 +20,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/filter/sanitize/striptags.zep.c b/ext/phalcon/filter/sanitize/striptags.zep.c index f493686ddaa..6e6a85b5161 100644 --- a/ext/phalcon/filter/sanitize/striptags.zep.c +++ b/ext/phalcon/filter/sanitize/striptags.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/filter/sanitize/trim.zep.c b/ext/phalcon/filter/sanitize/trim.zep.c index 36e74a90879..618a16241ea 100644 --- a/ext/phalcon/filter/sanitize/trim.zep.c +++ b/ext/phalcon/filter/sanitize/trim.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/filter/sanitize/upper.zep.c b/ext/phalcon/filter/sanitize/upper.zep.c index 9a2e6df369e..1477a8041f7 100644 --- a/ext/phalcon/filter/sanitize/upper.zep.c +++ b/ext/phalcon/filter/sanitize/upper.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/filter/sanitize/upperfirst.zep.c b/ext/phalcon/filter/sanitize/upperfirst.zep.c index 58709b6069e..e8fe67bf776 100644 --- a/ext/phalcon/filter/sanitize/upperfirst.zep.c +++ b/ext/phalcon/filter/sanitize/upperfirst.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/filter/sanitize/upperwords.zep.c b/ext/phalcon/filter/sanitize/upperwords.zep.c index 7dbc525b7e1..19bcf1f9ff1 100644 --- a/ext/phalcon/filter/sanitize/upperwords.zep.c +++ b/ext/phalcon/filter/sanitize/upperwords.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/filter/sanitize/url.zep.c b/ext/phalcon/filter/sanitize/url.zep.c index 462a625f55d..a29fd6ec8bc 100644 --- a/ext/phalcon/filter/sanitize/url.zep.c +++ b/ext/phalcon/filter/sanitize/url.zep.c @@ -20,7 +20,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/firewall/adapter/abstractadapter.zep.c b/ext/phalcon/firewall/adapter/abstractadapter.zep.c index e68f81383ce..2300b273063 100644 --- a/ext/phalcon/firewall/adapter/abstractadapter.zep.c +++ b/ext/phalcon/firewall/adapter/abstractadapter.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/firewall/adapter/acl.zep.c b/ext/phalcon/firewall/adapter/acl.zep.c index ff9240ce803..593d1309e8b 100644 --- a/ext/phalcon/firewall/adapter/acl.zep.c +++ b/ext/phalcon/firewall/adapter/acl.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/firewall/adapter/adapterinterface.zep.c b/ext/phalcon/firewall/adapter/adapterinterface.zep.c index c53c38f735c..c093944b11f 100644 --- a/ext/phalcon/firewall/adapter/adapterinterface.zep.c +++ b/ext/phalcon/firewall/adapter/adapterinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/firewall/adapter/annotations.zep.c b/ext/phalcon/firewall/adapter/annotations.zep.c index 02f9c3aa427..6b4ddd7ad0f 100644 --- a/ext/phalcon/firewall/adapter/annotations.zep.c +++ b/ext/phalcon/firewall/adapter/annotations.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/firewall/adapter/micro/acl.zep.c b/ext/phalcon/firewall/adapter/micro/acl.zep.c index c9427ad968d..3a90c9f90e2 100644 --- a/ext/phalcon/firewall/adapter/micro/acl.zep.c +++ b/ext/phalcon/firewall/adapter/micro/acl.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/firewall/exception.zep.c b/ext/phalcon/firewall/exception.zep.c index 1b6e3010613..eaee76c537b 100644 --- a/ext/phalcon/firewall/exception.zep.c +++ b/ext/phalcon/firewall/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/flash/abstractflash.zep.c b/ext/phalcon/flash/abstractflash.zep.c index fc1c82dd6be..529dd61157d 100644 --- a/ext/phalcon/flash/abstractflash.zep.c +++ b/ext/phalcon/flash/abstractflash.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/flash/direct.zep.c b/ext/phalcon/flash/direct.zep.c index 224486f3291..4b838b2ebc4 100644 --- a/ext/phalcon/flash/direct.zep.c +++ b/ext/phalcon/flash/direct.zep.c @@ -21,7 +21,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/flash/exception.zep.c b/ext/phalcon/flash/exception.zep.c index 5733215fa1d..a1664ac6234 100644 --- a/ext/phalcon/flash/exception.zep.c +++ b/ext/phalcon/flash/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/flash/flashinterface.zep.c b/ext/phalcon/flash/flashinterface.zep.c index 85aac6085ff..cf5bb432881 100644 --- a/ext/phalcon/flash/flashinterface.zep.c +++ b/ext/phalcon/flash/flashinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/flash/session.zep.c b/ext/phalcon/flash/session.zep.c index 40e3fd516e6..f14658a0899 100644 --- a/ext/phalcon/flash/session.zep.c +++ b/ext/phalcon/flash/session.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/forms/element/abstractelement.zep.c b/ext/phalcon/forms/element/abstractelement.zep.c index 0dd64521b1e..dc2a3a5e909 100644 --- a/ext/phalcon/forms/element/abstractelement.zep.c +++ b/ext/phalcon/forms/element/abstractelement.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/forms/element/check.zep.c b/ext/phalcon/forms/element/check.zep.c index 12fedb8207f..e63cfee6c83 100644 --- a/ext/phalcon/forms/element/check.zep.c +++ b/ext/phalcon/forms/element/check.zep.c @@ -21,7 +21,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/forms/element/date.zep.c b/ext/phalcon/forms/element/date.zep.c index 181ed77460a..66ee98c32c7 100644 --- a/ext/phalcon/forms/element/date.zep.c +++ b/ext/phalcon/forms/element/date.zep.c @@ -21,7 +21,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/forms/element/elementinterface.zep.c b/ext/phalcon/forms/element/elementinterface.zep.c index 7cc9f9713ad..aafbfbb7d38 100644 --- a/ext/phalcon/forms/element/elementinterface.zep.c +++ b/ext/phalcon/forms/element/elementinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/forms/element/email.zep.c b/ext/phalcon/forms/element/email.zep.c index 11c8c943a38..dec4064553c 100644 --- a/ext/phalcon/forms/element/email.zep.c +++ b/ext/phalcon/forms/element/email.zep.c @@ -21,7 +21,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/forms/element/file.zep.c b/ext/phalcon/forms/element/file.zep.c index 5c85245dcc7..984c24a2d7f 100644 --- a/ext/phalcon/forms/element/file.zep.c +++ b/ext/phalcon/forms/element/file.zep.c @@ -21,7 +21,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/forms/element/hidden.zep.c b/ext/phalcon/forms/element/hidden.zep.c index cca3c9d5448..eb7df167829 100644 --- a/ext/phalcon/forms/element/hidden.zep.c +++ b/ext/phalcon/forms/element/hidden.zep.c @@ -21,7 +21,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/forms/element/numeric.zep.c b/ext/phalcon/forms/element/numeric.zep.c index 7b514888ddf..56a71c725f8 100644 --- a/ext/phalcon/forms/element/numeric.zep.c +++ b/ext/phalcon/forms/element/numeric.zep.c @@ -21,7 +21,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/forms/element/password.zep.c b/ext/phalcon/forms/element/password.zep.c index 9a08020bc5a..09dbde730da 100644 --- a/ext/phalcon/forms/element/password.zep.c +++ b/ext/phalcon/forms/element/password.zep.c @@ -21,7 +21,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/forms/element/radio.zep.c b/ext/phalcon/forms/element/radio.zep.c index 5e3349a35b6..6a6b6fdc1ba 100644 --- a/ext/phalcon/forms/element/radio.zep.c +++ b/ext/phalcon/forms/element/radio.zep.c @@ -21,7 +21,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/forms/element/select.zep.c b/ext/phalcon/forms/element/select.zep.c index e70f0bc88a1..bd0bbeb9400 100644 --- a/ext/phalcon/forms/element/select.zep.c +++ b/ext/phalcon/forms/element/select.zep.c @@ -21,7 +21,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/forms/element/submit.zep.c b/ext/phalcon/forms/element/submit.zep.c index fd5f6fa834d..49c342871bb 100644 --- a/ext/phalcon/forms/element/submit.zep.c +++ b/ext/phalcon/forms/element/submit.zep.c @@ -21,7 +21,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/forms/element/text.zep.c b/ext/phalcon/forms/element/text.zep.c index a8ef63e83f0..e76c8fc2b71 100644 --- a/ext/phalcon/forms/element/text.zep.c +++ b/ext/phalcon/forms/element/text.zep.c @@ -21,7 +21,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/forms/element/textarea.zep.c b/ext/phalcon/forms/element/textarea.zep.c index c94e1ad651e..947782e7460 100644 --- a/ext/phalcon/forms/element/textarea.zep.c +++ b/ext/phalcon/forms/element/textarea.zep.c @@ -21,7 +21,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/forms/exception.zep.c b/ext/phalcon/forms/exception.zep.c index 2ed1452ccde..61756f80b91 100644 --- a/ext/phalcon/forms/exception.zep.c +++ b/ext/phalcon/forms/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/forms/form.zep.c b/ext/phalcon/forms/form.zep.c index 63bce00e9cc..b4d868506e2 100644 --- a/ext/phalcon/forms/form.zep.c +++ b/ext/phalcon/forms/form.zep.c @@ -28,7 +28,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/forms/manager.zep.c b/ext/phalcon/forms/manager.zep.c index a8d9c443680..3c633ab86ce 100644 --- a/ext/phalcon/forms/manager.zep.c +++ b/ext/phalcon/forms/manager.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/helper/exception.zep.c b/ext/phalcon/helper/exception.zep.c index 534d3addb2e..aeb281bfb67 100644 --- a/ext/phalcon/helper/exception.zep.c +++ b/ext/phalcon/helper/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/helper/str.zep.c b/ext/phalcon/helper/str.zep.c index f45f516868d..cc39afdc624 100644 --- a/ext/phalcon/helper/str.zep.c +++ b/ext/phalcon/helper/str.zep.c @@ -976,11 +976,11 @@ PHP_METHOD(Phalcon_Helper_Str, includes) { if ((zephir_function_exists_ex(SL("mb_strpos") TSRMLS_CC) == SUCCESS)) { ZEPHIR_CALL_FUNCTION(&_0$$3, "mb_strpos", NULL, 269, &haystack, &needle); zephir_check_call_status(); - RETURN_MM_BOOL(zephir_get_boolval(&_0$$3)); + RETURN_MM_BOOL(!ZEPHIR_IS_FALSE_IDENTICAL(&_0$$3)); } else { ZEPHIR_INIT_VAR(&_1$$4); zephir_fast_strpos(&_1$$4, &haystack, &needle, 0 ); - RETURN_MM_BOOL(zephir_get_boolval(&_1$$4)); + RETURN_MM_BOOL(!ZEPHIR_IS_FALSE_IDENTICAL(&_1$$4)); } } diff --git a/ext/phalcon/html/attributes.zep.c b/ext/phalcon/html/attributes.zep.c index 5695318997b..b3b01d1d419 100644 --- a/ext/phalcon/html/attributes.zep.c +++ b/ext/phalcon/html/attributes.zep.c @@ -20,7 +20,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/html/attributes/attributesinterface.zep.c b/ext/phalcon/html/attributes/attributesinterface.zep.c index 7745040ace4..7c63597f9fd 100644 --- a/ext/phalcon/html/attributes/attributesinterface.zep.c +++ b/ext/phalcon/html/attributes/attributesinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/html/attributes/renderinterface.zep.c b/ext/phalcon/html/attributes/renderinterface.zep.c index 3f16af1e0a7..3cce75ee095 100644 --- a/ext/phalcon/html/attributes/renderinterface.zep.c +++ b/ext/phalcon/html/attributes/renderinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/html/breadcrumbs.zep.c b/ext/phalcon/html/breadcrumbs.zep.c index 347cd0ee3d2..72c1b60b4d3 100644 --- a/ext/phalcon/html/breadcrumbs.zep.c +++ b/ext/phalcon/html/breadcrumbs.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/html/exception.zep.c b/ext/phalcon/html/exception.zep.c index 56ebbd8f46b..4ab5d03923d 100644 --- a/ext/phalcon/html/exception.zep.c +++ b/ext/phalcon/html/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/html/helper/abstracthelper.zep.c b/ext/phalcon/html/helper/abstracthelper.zep.c index b1b0e72403b..445f7d42c78 100644 --- a/ext/phalcon/html/helper/abstracthelper.zep.c +++ b/ext/phalcon/html/helper/abstracthelper.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/html/helper/anchor.zep.c b/ext/phalcon/html/helper/anchor.zep.c index 7445670251d..f68ce9e6b97 100644 --- a/ext/phalcon/html/helper/anchor.zep.c +++ b/ext/phalcon/html/helper/anchor.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/html/helper/anchorraw.zep.c b/ext/phalcon/html/helper/anchorraw.zep.c index ba44a8ce284..66cda654d0d 100644 --- a/ext/phalcon/html/helper/anchorraw.zep.c +++ b/ext/phalcon/html/helper/anchorraw.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/html/helper/body.zep.c b/ext/phalcon/html/helper/body.zep.c index a33da94baf9..7ae017e6353 100644 --- a/ext/phalcon/html/helper/body.zep.c +++ b/ext/phalcon/html/helper/body.zep.c @@ -21,7 +21,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/html/helper/button.zep.c b/ext/phalcon/html/helper/button.zep.c index 400d963a684..5d30c76d2fe 100644 --- a/ext/phalcon/html/helper/button.zep.c +++ b/ext/phalcon/html/helper/button.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/html/helper/close.zep.c b/ext/phalcon/html/helper/close.zep.c index 30769f985f9..cef5816acd2 100644 --- a/ext/phalcon/html/helper/close.zep.c +++ b/ext/phalcon/html/helper/close.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/html/helper/element.zep.c b/ext/phalcon/html/helper/element.zep.c index 0a1cf43f99d..7a152de8147 100644 --- a/ext/phalcon/html/helper/element.zep.c +++ b/ext/phalcon/html/helper/element.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/html/helper/elementraw.zep.c b/ext/phalcon/html/helper/elementraw.zep.c index 82a71cd375f..955ce197f96 100644 --- a/ext/phalcon/html/helper/elementraw.zep.c +++ b/ext/phalcon/html/helper/elementraw.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/html/helper/form.zep.c b/ext/phalcon/html/helper/form.zep.c index 4efbf34be48..3a3fb0edcc8 100644 --- a/ext/phalcon/html/helper/form.zep.c +++ b/ext/phalcon/html/helper/form.zep.c @@ -22,7 +22,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/html/helper/img.zep.c b/ext/phalcon/html/helper/img.zep.c index 4aecc36d3cc..18bbd6ad6be 100644 --- a/ext/phalcon/html/helper/img.zep.c +++ b/ext/phalcon/html/helper/img.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/html/helper/label.zep.c b/ext/phalcon/html/helper/label.zep.c index cf52a7b1b26..674ff4b4b30 100644 --- a/ext/phalcon/html/helper/label.zep.c +++ b/ext/phalcon/html/helper/label.zep.c @@ -22,7 +22,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/html/helper/textarea.zep.c b/ext/phalcon/html/helper/textarea.zep.c index 33e05442774..13a35f013f3 100644 --- a/ext/phalcon/html/helper/textarea.zep.c +++ b/ext/phalcon/html/helper/textarea.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/html/tag.zep.c b/ext/phalcon/html/tag.zep.c index a2025d2a059..267806399aa 100644 --- a/ext/phalcon/html/tag.zep.c +++ b/ext/phalcon/html/tag.zep.c @@ -27,7 +27,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -2476,7 +2476,7 @@ PHP_METHOD(Phalcon_Html_Tag, javascript) { * ); * * echo $tag->link( - * 'https://phalconphp.com/', + * 'https://phalcon.io/', * 'Phalcon!', * [ * 'local' => false, @@ -2484,7 +2484,7 @@ PHP_METHOD(Phalcon_Html_Tag, javascript) { * ); * * echo $tag->link( - * 'https://phalconphp.com/', + * 'https://phalcon.io/', * 'Phalcon!', * [ * 'local' => false, diff --git a/ext/phalcon/html/tagfactory.zep.c b/ext/phalcon/html/tagfactory.zep.c index 2f6021392c2..c9f1cfbb2c1 100644 --- a/ext/phalcon/html/tagfactory.zep.c +++ b/ext/phalcon/html/tagfactory.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/http/cookie.zep.c b/ext/phalcon/http/cookie.zep.c index 02854d67466..b0851b26542 100644 --- a/ext/phalcon/http/cookie.zep.c +++ b/ext/phalcon/http/cookie.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/http/cookie/exception.zep.c b/ext/phalcon/http/cookie/exception.zep.c index 85bb825335e..551cab1068f 100644 --- a/ext/phalcon/http/cookie/exception.zep.c +++ b/ext/phalcon/http/cookie/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/http/cookieinterface.zep.c b/ext/phalcon/http/cookieinterface.zep.c index 2dd3ada1a62..fa85764a9c7 100644 --- a/ext/phalcon/http/cookieinterface.zep.c +++ b/ext/phalcon/http/cookieinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/http/message/abstractcommon.zep.c b/ext/phalcon/http/message/abstractcommon.zep.c index f08a006f263..4f64f62928f 100644 --- a/ext/phalcon/http/message/abstractcommon.zep.c +++ b/ext/phalcon/http/message/abstractcommon.zep.c @@ -22,7 +22,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/http/message/abstractmessage.zep.c b/ext/phalcon/http/message/abstractmessage.zep.c index 3554cc60ea4..6893713f2fe 100644 --- a/ext/phalcon/http/message/abstractmessage.zep.c +++ b/ext/phalcon/http/message/abstractmessage.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/http/message/abstractrequest.zep.c b/ext/phalcon/http/message/abstractrequest.zep.c index dedbf570b76..0c714cc47c5 100644 --- a/ext/phalcon/http/message/abstractrequest.zep.c +++ b/ext/phalcon/http/message/abstractrequest.zep.c @@ -25,7 +25,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/http/message/exception/invalidargumentexception.zep.c b/ext/phalcon/http/message/exception/invalidargumentexception.zep.c index 6f958f4f1d1..b7617f83cd9 100644 --- a/ext/phalcon/http/message/exception/invalidargumentexception.zep.c +++ b/ext/phalcon/http/message/exception/invalidargumentexception.zep.c @@ -18,7 +18,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/http/message/request.zep.c b/ext/phalcon/http/message/request.zep.c index 51a1d7b4e07..e5ebc297807 100644 --- a/ext/phalcon/http/message/request.zep.c +++ b/ext/phalcon/http/message/request.zep.c @@ -21,7 +21,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/http/message/requestfactory.zep.c b/ext/phalcon/http/message/requestfactory.zep.c index 28f47525c10..65a5829705c 100644 --- a/ext/phalcon/http/message/requestfactory.zep.c +++ b/ext/phalcon/http/message/requestfactory.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/http/message/response.zep.c b/ext/phalcon/http/message/response.zep.c index a4915311a06..536274e7a26 100644 --- a/ext/phalcon/http/message/response.zep.c +++ b/ext/phalcon/http/message/response.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/http/message/responsefactory.zep.c b/ext/phalcon/http/message/responsefactory.zep.c index 256d2e6967b..64f9c0dc408 100644 --- a/ext/phalcon/http/message/responsefactory.zep.c +++ b/ext/phalcon/http/message/responsefactory.zep.c @@ -21,7 +21,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/http/message/serverrequest.zep.c b/ext/phalcon/http/message/serverrequest.zep.c index 874ed0f3454..36c49804723 100644 --- a/ext/phalcon/http/message/serverrequest.zep.c +++ b/ext/phalcon/http/message/serverrequest.zep.c @@ -22,7 +22,7 @@ /** * This file is part of the Phalcon Framework. * -* (c) Phalcon Team +* (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/http/message/serverrequestfactory.zep.c b/ext/phalcon/http/message/serverrequestfactory.zep.c index ab9aa15802b..f314f77580f 100644 --- a/ext/phalcon/http/message/serverrequestfactory.zep.c +++ b/ext/phalcon/http/message/serverrequestfactory.zep.c @@ -25,7 +25,7 @@ /** * This file is part of the Phalcon Framework. * -* (c) Phalcon Team +* (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/http/message/stream.zep.c b/ext/phalcon/http/message/stream.zep.c index 90ccfebfce6..ec2788a60d0 100644 --- a/ext/phalcon/http/message/stream.zep.c +++ b/ext/phalcon/http/message/stream.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/http/message/stream/input.zep.c b/ext/phalcon/http/message/stream/input.zep.c index adf275cd572..af6414dcf87 100644 --- a/ext/phalcon/http/message/stream/input.zep.c +++ b/ext/phalcon/http/message/stream/input.zep.c @@ -21,7 +21,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/http/message/stream/memory.zep.c b/ext/phalcon/http/message/stream/memory.zep.c index 1a4106f53ea..030c51b677a 100644 --- a/ext/phalcon/http/message/stream/memory.zep.c +++ b/ext/phalcon/http/message/stream/memory.zep.c @@ -20,7 +20,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/http/message/stream/temp.zep.c b/ext/phalcon/http/message/stream/temp.zep.c index 98b4897b18b..33ec58dd480 100644 --- a/ext/phalcon/http/message/stream/temp.zep.c +++ b/ext/phalcon/http/message/stream/temp.zep.c @@ -20,7 +20,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/http/message/streamfactory.zep.c b/ext/phalcon/http/message/streamfactory.zep.c index dfc951cc0fb..4853c75822d 100644 --- a/ext/phalcon/http/message/streamfactory.zep.c +++ b/ext/phalcon/http/message/streamfactory.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/http/message/uploadedfile.zep.c b/ext/phalcon/http/message/uploadedfile.zep.c index f89440b925c..b90a9618b11 100644 --- a/ext/phalcon/http/message/uploadedfile.zep.c +++ b/ext/phalcon/http/message/uploadedfile.zep.c @@ -25,7 +25,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/http/message/uploadedfilefactory.zep.c b/ext/phalcon/http/message/uploadedfilefactory.zep.c index 7d658c94a1e..ad6b62fc377 100644 --- a/ext/phalcon/http/message/uploadedfilefactory.zep.c +++ b/ext/phalcon/http/message/uploadedfilefactory.zep.c @@ -21,7 +21,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/http/message/uri.zep.c b/ext/phalcon/http/message/uri.zep.c index 49a268159e3..cb2e245eb75 100644 --- a/ext/phalcon/http/message/uri.zep.c +++ b/ext/phalcon/http/message/uri.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/http/message/urifactory.zep.c b/ext/phalcon/http/message/urifactory.zep.c index 946e14ba76f..7248124dd74 100644 --- a/ext/phalcon/http/message/urifactory.zep.c +++ b/ext/phalcon/http/message/urifactory.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/http/request.zep.c b/ext/phalcon/http/request.zep.c index e87e1236ab5..acd14433f85 100644 --- a/ext/phalcon/http/request.zep.c +++ b/ext/phalcon/http/request.zep.c @@ -27,7 +27,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/http/request/exception.zep.c b/ext/phalcon/http/request/exception.zep.c index a83c3b0746a..2060d785567 100644 --- a/ext/phalcon/http/request/exception.zep.c +++ b/ext/phalcon/http/request/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/http/request/file.zep.c b/ext/phalcon/http/request/file.zep.c index 10eff3119f8..9ba6354d692 100644 --- a/ext/phalcon/http/request/file.zep.c +++ b/ext/phalcon/http/request/file.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/http/request/fileinterface.zep.c b/ext/phalcon/http/request/fileinterface.zep.c index bd3b6b89309..6c67b53794b 100644 --- a/ext/phalcon/http/request/fileinterface.zep.c +++ b/ext/phalcon/http/request/fileinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/http/requestinterface.zep.c b/ext/phalcon/http/requestinterface.zep.c index 1f2f3d0f1fa..8e82be3ec9d 100644 --- a/ext/phalcon/http/requestinterface.zep.c +++ b/ext/phalcon/http/requestinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/http/response.zep.c b/ext/phalcon/http/response.zep.c index 23da46ae6ee..3a46e08cb98 100644 --- a/ext/phalcon/http/response.zep.c +++ b/ext/phalcon/http/response.zep.c @@ -28,7 +28,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/http/response/cookies.zep.c b/ext/phalcon/http/response/cookies.zep.c index a8b014e0743..1728648239f 100644 --- a/ext/phalcon/http/response/cookies.zep.c +++ b/ext/phalcon/http/response/cookies.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/http/response/cookiesinterface.zep.c b/ext/phalcon/http/response/cookiesinterface.zep.c index 48e0d1eed5e..b60f3d0281f 100644 --- a/ext/phalcon/http/response/cookiesinterface.zep.c +++ b/ext/phalcon/http/response/cookiesinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/http/response/exception.zep.c b/ext/phalcon/http/response/exception.zep.c index dc8a2ba8ace..c9024994acd 100644 --- a/ext/phalcon/http/response/exception.zep.c +++ b/ext/phalcon/http/response/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/http/response/headers.zep.c b/ext/phalcon/http/response/headers.zep.c index dd843897e0d..85e267588bf 100644 --- a/ext/phalcon/http/response/headers.zep.c +++ b/ext/phalcon/http/response/headers.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -125,7 +125,7 @@ PHP_METHOD(Phalcon_Http_Response_Headers, remove) { ZEPHIR_CPY_WRT(&headers, &_0); zephir_array_unset(&headers, &header, PH_SEPARATE); zephir_update_property_zval(this_ptr, SL("headers"), &headers); - ZEPHIR_MM_RESTORE(); + RETURN_THIS(); } @@ -188,7 +188,7 @@ PHP_METHOD(Phalcon_Http_Response_Headers, send) { RETURN_MM_BOOL(0); } zephir_read_property(&_1, this_ptr, SL("headers"), PH_NOISY_CC | PH_READONLY); - zephir_is_iterable(&_1, 0, "phalcon/Http/Response/Headers.zep", 100); + zephir_is_iterable(&_1, 0, "phalcon/Http/Response/Headers.zep", 102); if (Z_TYPE_P(&_1) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_1), _4, _5, _2) { @@ -206,7 +206,7 @@ PHP_METHOD(Phalcon_Http_Response_Headers, send) { ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 364, &_6$$5, &__$true); zephir_check_call_status(); } else { - _8$$6 = zephir_memnstr_str(&header, SL(":"), "phalcon/Http/Response/Headers.zep", 86); + _8$$6 = zephir_memnstr_str(&header, SL(":"), "phalcon/Http/Response/Headers.zep", 88); if (!(_8$$6)) { ZVAL_LONG(&_9$$6, 0); ZVAL_LONG(&_10$$6, 5); @@ -244,7 +244,7 @@ PHP_METHOD(Phalcon_Http_Response_Headers, send) { ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 364, &_13$$10, &__$true); zephir_check_call_status(); } else { - _14$$11 = zephir_memnstr_str(&header, SL(":"), "phalcon/Http/Response/Headers.zep", 86); + _14$$11 = zephir_memnstr_str(&header, SL(":"), "phalcon/Http/Response/Headers.zep", 88); if (!(_14$$11)) { ZVAL_LONG(&_15$$11, 0); ZVAL_LONG(&_16$$11, 5); @@ -293,7 +293,7 @@ PHP_METHOD(Phalcon_Http_Response_Headers, set) { zephir_update_property_array(this_ptr, SL("headers"), &name, &value); - ZEPHIR_MM_RESTORE(); + RETURN_THIS(); } @@ -317,7 +317,7 @@ PHP_METHOD(Phalcon_Http_Response_Headers, setRaw) { zephir_update_property_array(this_ptr, SL("headers"), &header, &__$null); - ZEPHIR_MM_RESTORE(); + RETURN_THIS(); } diff --git a/ext/phalcon/http/response/headers.zep.h b/ext/phalcon/http/response/headers.zep.h index d6cde4d4496..ff9a60839be 100644 --- a/ext/phalcon/http/response/headers.zep.h +++ b/ext/phalcon/http/response/headers.zep.h @@ -33,7 +33,11 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_response_headers_ha #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_http_response_headers_remove, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_http_response_headers_remove, 0, 1, Phalcon\\Http\\Response\\HeadersInterface, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_response_headers_remove, 0, 1, IS_OBJECT, "Phalcon\\Http\\Response\\HeadersInterface", 0) +#endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, header, IS_STRING, 0) #else @@ -48,7 +52,11 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_response_headers_se #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_http_response_headers_set, 0, 0, 2) +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_http_response_headers_set, 0, 2, Phalcon\\Http\\Response\\HeadersInterface, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_response_headers_set, 0, 2, IS_OBJECT, "Phalcon\\Http\\Response\\HeadersInterface", 0) +#endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) #else @@ -61,7 +69,11 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_http_response_headers_set, 0, 0, 2) #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_http_response_headers_setraw, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_http_response_headers_setraw, 0, 1, Phalcon\\Http\\Response\\HeadersInterface, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_response_headers_setraw, 0, 1, IS_OBJECT, "Phalcon\\Http\\Response\\HeadersInterface", 0) +#endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, header, IS_STRING, 0) #else diff --git a/ext/phalcon/http/response/headersinterface.zep.c b/ext/phalcon/http/response/headersinterface.zep.c index 848febc947c..6b47193b201 100644 --- a/ext/phalcon/http/response/headersinterface.zep.c +++ b/ext/phalcon/http/response/headersinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/http/responseinterface.zep.c b/ext/phalcon/http/responseinterface.zep.c index a4cb3a1861c..34e0dd0d5f4 100644 --- a/ext/phalcon/http/responseinterface.zep.c +++ b/ext/phalcon/http/responseinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/http/server/abstractmiddleware.zep.c b/ext/phalcon/http/server/abstractmiddleware.zep.c index ca6ce6e0115..35e2147e353 100644 --- a/ext/phalcon/http/server/abstractmiddleware.zep.c +++ b/ext/phalcon/http/server/abstractmiddleware.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/http/server/abstractrequesthandler.zep.c b/ext/phalcon/http/server/abstractrequesthandler.zep.c index 684916a21b8..e772ee7cdb3 100644 --- a/ext/phalcon/http/server/abstractrequesthandler.zep.c +++ b/ext/phalcon/http/server/abstractrequesthandler.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/image/adapter/abstractadapter.zep.c b/ext/phalcon/image/adapter/abstractadapter.zep.c index 9250e666890..c01acdd7560 100644 --- a/ext/phalcon/image/adapter/abstractadapter.zep.c +++ b/ext/phalcon/image/adapter/abstractadapter.zep.c @@ -25,7 +25,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/image/adapter/adapterinterface.zep.c b/ext/phalcon/image/adapter/adapterinterface.zep.c index e2ad668270a..b8a6b106848 100644 --- a/ext/phalcon/image/adapter/adapterinterface.zep.c +++ b/ext/phalcon/image/adapter/adapterinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/image/adapter/gd.zep.c b/ext/phalcon/image/adapter/gd.zep.c index 9fc7b52d751..75027bce68f 100644 --- a/ext/phalcon/image/adapter/gd.zep.c +++ b/ext/phalcon/image/adapter/gd.zep.c @@ -28,7 +28,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -1507,7 +1507,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processText) { if (!(Z_TYPE_P(&fontfile) == IS_UNDEF) && Z_STRLEN_P(&fontfile)) { ZVAL_LONG(&_3$$3, size); ZVAL_LONG(&_4$$3, 0); - ZEPHIR_CALL_FUNCTION(&space, "imagettfbbox", NULL, 0, &_3$$3, &_4$$3, &fontfile, &text); + ZEPHIR_CALL_FUNCTION(&space, "imagettfbbox", NULL, 405, &_3$$3, &_4$$3, &fontfile, &text); zephir_check_call_status(); if (zephir_array_isset_long(&space, 0)) { ZEPHIR_OBS_VAR(&_5$$4); @@ -1568,15 +1568,15 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processText) { ZVAL_LONG(&_17$$3, angle); ZVAL_LONG(&_18$$3, offsetX); ZVAL_LONG(&_19$$3, offsetY); - ZEPHIR_CALL_FUNCTION(NULL, "imagettftext", NULL, 0, &_4$$3, &_16$$3, &_17$$3, &_18$$3, &_19$$3, &color, &fontfile, &text); + ZEPHIR_CALL_FUNCTION(NULL, "imagettftext", NULL, 406, &_4$$3, &_16$$3, &_17$$3, &_18$$3, &_19$$3, &color, &fontfile, &text); zephir_check_call_status(); } else { ZVAL_LONG(&_20$$8, size); - ZEPHIR_CALL_FUNCTION(&_21$$8, "imagefontwidth", NULL, 405, &_20$$8); + ZEPHIR_CALL_FUNCTION(&_21$$8, "imagefontwidth", NULL, 407, &_20$$8); zephir_check_call_status(); width = (zephir_get_intval(&_21$$8) * zephir_fast_strlen_ev(&text)); ZVAL_LONG(&_20$$8, size); - ZEPHIR_CALL_FUNCTION(&_22$$8, "imagefontheight", NULL, 406, &_20$$8); + ZEPHIR_CALL_FUNCTION(&_22$$8, "imagefontheight", NULL, 408, &_20$$8); zephir_check_call_status(); height = zephir_get_intval(&_22$$8); if (offsetX < 0) { @@ -1598,7 +1598,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processText) { ZVAL_LONG(&_26$$8, size); ZVAL_LONG(&_27$$8, offsetX); ZVAL_LONG(&_28$$8, offsetY); - ZEPHIR_CALL_FUNCTION(NULL, "imagestring", NULL, 407, &_25$$8, &_26$$8, &_27$$8, &_28$$8, &text, &color); + ZEPHIR_CALL_FUNCTION(NULL, "imagestring", NULL, 409, &_25$$8, &_26$$8, &_27$$8, &_28$$8, &text, &color); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -1669,7 +1669,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processWatermark) { ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 377, &overlay, &_4$$3, &_6$$3, &_7$$3, &_8$$3); zephir_check_call_status(); ZVAL_LONG(&_4$$3, 3); - ZEPHIR_CALL_FUNCTION(NULL, "imagelayereffect", NULL, 408, &overlay, &_4$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagelayereffect", NULL, 410, &overlay, &_4$$3); zephir_check_call_status(); ZVAL_LONG(&_4$$3, 0); ZVAL_LONG(&_6$$3, 0); diff --git a/ext/phalcon/image/adapter/imagick.zep.c b/ext/phalcon/image/adapter/imagick.zep.c index 8a710d880b3..a8290fa271a 100644 --- a/ext/phalcon/image/adapter/imagick.zep.c +++ b/ext/phalcon/image/adapter/imagick.zep.c @@ -25,7 +25,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/image/enum.zep.c b/ext/phalcon/image/enum.zep.c index 94721605102..7888a75db25 100644 --- a/ext/phalcon/image/enum.zep.c +++ b/ext/phalcon/image/enum.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/image/exception.zep.c b/ext/phalcon/image/exception.zep.c index 7cd5e378d36..13ac1912cb9 100644 --- a/ext/phalcon/image/exception.zep.c +++ b/ext/phalcon/image/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/image/imagefactory.zep.c b/ext/phalcon/image/imagefactory.zep.c index 8d905aa88e4..1d15f0b8d55 100644 --- a/ext/phalcon/image/imagefactory.zep.c +++ b/ext/phalcon/image/imagefactory.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/kernel.zep.c b/ext/phalcon/kernel.zep.c index a3e188476d9..df0f88d6c4a 100644 --- a/ext/phalcon/kernel.zep.c +++ b/ext/phalcon/kernel.zep.c @@ -22,7 +22,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/loader.zep.c b/ext/phalcon/loader.zep.c index e100dd733c5..673ec2c7564 100644 --- a/ext/phalcon/loader.zep.c +++ b/ext/phalcon/loader.zep.c @@ -27,7 +27,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -1097,7 +1097,7 @@ PHP_METHOD(Phalcon_Loader, register) { ZVAL_STRING(&_2$$3, "autoLoad"); zephir_array_fast_append(&_1$$3, &_2$$3); ZVAL_BOOL(&_3$$3, (prepend ? 1 : 0)); - ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_register", NULL, 409, &_1$$3, &__$true, &_3$$3); + ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_register", NULL, 411, &_1$$3, &__$true, &_3$$3); zephir_check_call_status(); if (1) { zephir_update_property_zval(this_ptr, SL("registered"), &__$true); @@ -1447,7 +1447,7 @@ PHP_METHOD(Phalcon_Loader, unregister) { ZEPHIR_INIT_VAR(&_2$$3); ZVAL_STRING(&_2$$3, "autoLoad"); zephir_array_fast_append(&_1$$3, &_2$$3); - ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_unregister", NULL, 410, &_1$$3); + ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_unregister", NULL, 412, &_1$$3); zephir_check_call_status(); if (0) { zephir_update_property_zval(this_ptr, SL("registered"), &__$true); diff --git a/ext/phalcon/loader/exception.zep.c b/ext/phalcon/loader/exception.zep.c index c285981218e..1fd0ec337d6 100644 --- a/ext/phalcon/loader/exception.zep.c +++ b/ext/phalcon/loader/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/logger.zep.c b/ext/phalcon/logger.zep.c index 2a5d1accb94..8c770551a7c 100644 --- a/ext/phalcon/logger.zep.c +++ b/ext/phalcon/logger.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -119,6 +119,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Logger) { */ PHP_METHOD(Phalcon_Logger, __construct) { + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; zval adapters; zval *name_param = NULL, *adapters_param = NULL; @@ -164,6 +165,7 @@ PHP_METHOD(Phalcon_Logger, __construct) { */ PHP_METHOD(Phalcon_Logger, addAdapter) { + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *name_param = NULL, *adapter, adapter_sub; zval name; zval *this_ptr = getThis(); @@ -193,6 +195,7 @@ PHP_METHOD(Phalcon_Logger, addAdapter) { PHP_METHOD(Phalcon_Logger, alert) { zval _0; + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; zval context; zval *message, message_sub, *context_param = NULL, _1; @@ -232,6 +235,7 @@ PHP_METHOD(Phalcon_Logger, alert) { PHP_METHOD(Phalcon_Logger, critical) { zval _0; + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; zval context; zval *message, message_sub, *context_param = NULL, _1; @@ -269,6 +273,7 @@ PHP_METHOD(Phalcon_Logger, critical) { PHP_METHOD(Phalcon_Logger, debug) { zval _0; + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; zval context; zval *message, message_sub, *context_param = NULL, _1; @@ -307,6 +312,7 @@ PHP_METHOD(Phalcon_Logger, debug) { PHP_METHOD(Phalcon_Logger, error) { zval _0; + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; zval context; zval *message, message_sub, *context_param = NULL, _1; @@ -344,6 +350,7 @@ PHP_METHOD(Phalcon_Logger, error) { PHP_METHOD(Phalcon_Logger, emergency) { zval _0; + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; zval context; zval *message, message_sub, *context_param = NULL, _1; @@ -378,6 +385,7 @@ PHP_METHOD(Phalcon_Logger, emergency) { */ PHP_METHOD(Phalcon_Logger, excludeAdapters) { + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; zval *adapters_param = NULL, __$true, name, registered, *_0, _1; zval adapters; @@ -443,6 +451,7 @@ PHP_METHOD(Phalcon_Logger, excludeAdapters) { */ PHP_METHOD(Phalcon_Logger, getAdapter) { + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *name_param = NULL, adapter, adapters, _0; zval name; zval *this_ptr = getThis(); @@ -505,6 +514,7 @@ PHP_METHOD(Phalcon_Logger, getName) { PHP_METHOD(Phalcon_Logger, info) { zval _0; + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; zval context; zval *message, message_sub, *context_param = NULL, _1; @@ -543,6 +553,7 @@ PHP_METHOD(Phalcon_Logger, info) { PHP_METHOD(Phalcon_Logger, log) { zval _0; + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; zval context; zval *level, level_sub, *message, message_sub, *context_param = NULL, intLevel; @@ -565,7 +576,7 @@ PHP_METHOD(Phalcon_Logger, log) { } - ZEPHIR_CALL_METHOD(&intLevel, this_ptr, "getlevelnumber", NULL, 412, level); + ZEPHIR_CALL_METHOD(&intLevel, this_ptr, "getlevelnumber", NULL, 413, level); zephir_check_call_status(); zephir_get_strval(&_0, message); ZEPHIR_CALL_METHOD(NULL, this_ptr, "addmessage", NULL, 0, level, &_0, &context); @@ -582,6 +593,7 @@ PHP_METHOD(Phalcon_Logger, log) { PHP_METHOD(Phalcon_Logger, notice) { zval _0; + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; zval context; zval *message, message_sub, *context_param = NULL, _1; @@ -620,6 +632,7 @@ PHP_METHOD(Phalcon_Logger, notice) { */ PHP_METHOD(Phalcon_Logger, removeAdapter) { + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *name_param = NULL, adapters, _0; zval name; zval *this_ptr = getThis(); @@ -653,6 +666,7 @@ PHP_METHOD(Phalcon_Logger, removeAdapter) { */ PHP_METHOD(Phalcon_Logger, setAdapters) { + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *adapters_param = NULL; zval adapters; zval *this_ptr = getThis(); @@ -681,6 +695,7 @@ PHP_METHOD(Phalcon_Logger, setAdapters) { PHP_METHOD(Phalcon_Logger, warning) { zval _0; + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; zval context; zval *message, message_sub, *context_param = NULL, _1; @@ -722,6 +737,7 @@ PHP_METHOD(Phalcon_Logger, addMessage) { zend_string *_5; zend_ulong _4; + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval context; zval message; zval *level_param = NULL, *message_param = NULL, *context_param = NULL, adapter, key, excluded, levelName, levels, item, registered, _0, _1, *_2, _3, _6; @@ -775,7 +791,7 @@ PHP_METHOD(Phalcon_Logger, addMessage) { ZEPHIR_INIT_VAR(&_1); zephir_time(&_1); ZVAL_LONG(&_0, level); - ZEPHIR_CALL_METHOD(NULL, &item, "__construct", NULL, 413, &message, &levelName, &_0, &_1, &context); + ZEPHIR_CALL_METHOD(NULL, &item, "__construct", NULL, 414, &message, &levelName, &_0, &_1, &context); zephir_check_call_status(); zephir_is_iterable(®istered, 0, "phalcon/Logger.zep", 351); if (Z_TYPE_P(®istered) == IS_ARRAY) { @@ -853,6 +869,7 @@ PHP_METHOD(Phalcon_Logger, getLevels) { */ PHP_METHOD(Phalcon_Logger, getLevelNumber) { + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; zval *level, level_sub, levelName, numberLevel, levels, _0$$3; zval *this_ptr = getThis(); @@ -893,6 +910,7 @@ PHP_METHOD(Phalcon_Logger, getLevelNumber) { zend_object *zephir_init_properties_Phalcon_Logger(zend_class_entry *class_type TSRMLS_DC) { zval _0, _2, _1$$3, _3$$4; + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; ZVAL_UNDEF(&_0); ZVAL_UNDEF(&_2); ZVAL_UNDEF(&_1$$3); diff --git a/ext/phalcon/logger/adapter/abstractadapter.zep.c b/ext/phalcon/logger/adapter/abstractadapter.zep.c index b25861313e1..1d7b94d376d 100644 --- a/ext/phalcon/logger/adapter/abstractadapter.zep.c +++ b/ext/phalcon/logger/adapter/abstractadapter.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/logger/adapter/adapterinterface.zep.c b/ext/phalcon/logger/adapter/adapterinterface.zep.c index 0678261012c..3fe0c6b6e41 100644 --- a/ext/phalcon/logger/adapter/adapterinterface.zep.c +++ b/ext/phalcon/logger/adapter/adapterinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/logger/adapter/noop.zep.c b/ext/phalcon/logger/adapter/noop.zep.c index bdc580613df..420146efe66 100644 --- a/ext/phalcon/logger/adapter/noop.zep.c +++ b/ext/phalcon/logger/adapter/noop.zep.c @@ -19,7 +19,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/logger/adapter/stream.zep.c b/ext/phalcon/logger/adapter/stream.zep.c index 1fb9e43a5b9..523ddbde1cd 100644 --- a/ext/phalcon/logger/adapter/stream.zep.c +++ b/ext/phalcon/logger/adapter/stream.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/logger/adapter/syslog.zep.c b/ext/phalcon/logger/adapter/syslog.zep.c index f30351acc1e..54d565d6558 100644 --- a/ext/phalcon/logger/adapter/syslog.zep.c +++ b/ext/phalcon/logger/adapter/syslog.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -159,7 +159,7 @@ PHP_METHOD(Phalcon_Logger_Adapter_Syslog, close) { if (!(zephir_is_true(&_0))) { RETURN_MM_BOOL(1); } - ZEPHIR_RETURN_CALL_FUNCTION("closelog", NULL, 411); + ZEPHIR_RETURN_CALL_FUNCTION("closelog", NULL, 415); zephir_check_call_status(); RETURN_MM(); @@ -212,7 +212,7 @@ PHP_METHOD(Phalcon_Logger_Adapter_Syslog, process) { ZEPHIR_CPY_WRT(&facility, &_0); zephir_read_property(&_0, this_ptr, SL("option"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&option, &_0); - ZEPHIR_CALL_FUNCTION(&result, "openlog", NULL, 412, &name, &option, &facility); + ZEPHIR_CALL_FUNCTION(&result, "openlog", NULL, 416, &name, &option, &facility); zephir_check_call_status(); if (!zephir_is_true(&result)) { ZEPHIR_INIT_VAR(&_1$$4); @@ -221,7 +221,7 @@ PHP_METHOD(Phalcon_Logger_Adapter_Syslog, process) { ZVAL_STRING(&_2$$4, "Cannot open syslog for name [%s] and facility [%s]"); ZEPHIR_CALL_FUNCTION(&_3$$4, "sprintf", NULL, 182, &_2$$4, &name, &facility); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 413, &_3$$4); + ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 417, &_3$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$4, "phalcon/Logger/Adapter/Syslog.zep", 132 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -234,10 +234,10 @@ PHP_METHOD(Phalcon_Logger_Adapter_Syslog, process) { zephir_update_property_zval(this_ptr, SL("opened"), &__$false); } zephir_array_fetch_long(&_4, &message, 1, PH_NOISY | PH_READONLY, "phalcon/Logger/Adapter/Syslog.zep", 137 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&level, this_ptr, "logleveltosyslog", NULL, 414, &_4); + ZEPHIR_CALL_METHOD(&level, this_ptr, "logleveltosyslog", NULL, 418, &_4); zephir_check_call_status(); zephir_array_fetch_long(&_5, &message, 1, PH_NOISY | PH_READONLY, "phalcon/Logger/Adapter/Syslog.zep", 139 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(NULL, "syslog", NULL, 415, &level, &_5); + ZEPHIR_CALL_FUNCTION(NULL, "syslog", NULL, 419, &level, &_5); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/logger/adapterfactory.zep.c b/ext/phalcon/logger/adapterfactory.zep.c index 2c1a43113cd..f794304a5f3 100644 --- a/ext/phalcon/logger/adapterfactory.zep.c +++ b/ext/phalcon/logger/adapterfactory.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/logger/exception.zep.c b/ext/phalcon/logger/exception.zep.c index c08d3724e74..12632a2acf7 100644 --- a/ext/phalcon/logger/exception.zep.c +++ b/ext/phalcon/logger/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/logger/formatter/abstractformatter.zep.c b/ext/phalcon/logger/formatter/abstractformatter.zep.c index 8348927ce6a..cece87ba0a2 100644 --- a/ext/phalcon/logger/formatter/abstractformatter.zep.c +++ b/ext/phalcon/logger/formatter/abstractformatter.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/logger/formatter/formatterinterface.zep.c b/ext/phalcon/logger/formatter/formatterinterface.zep.c index 3fcfcfa2343..cfaa8daccd2 100644 --- a/ext/phalcon/logger/formatter/formatterinterface.zep.c +++ b/ext/phalcon/logger/formatter/formatterinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/logger/formatter/json.zep.c b/ext/phalcon/logger/formatter/json.zep.c index 8c265c1e638..8ad05eafa5e 100644 --- a/ext/phalcon/logger/formatter/json.zep.c +++ b/ext/phalcon/logger/formatter/json.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -163,7 +163,7 @@ PHP_METHOD(Phalcon_Logger_Formatter_Json, format) { zephir_read_property(&_6, this_ptr, SL("dateFormat"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CALL_METHOD(&_5, item, "gettime", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_7, "date", NULL, 416, &_6, &_5); + ZEPHIR_CALL_FUNCTION(&_7, "date", NULL, 420, &_6, &_5); zephir_check_call_status(); zephir_array_update_string(&_4, SL("timestamp"), &_7, PH_COPY | PH_SEPARATE); zephir_json_encode(&_3, &_4, 0 ); diff --git a/ext/phalcon/logger/formatter/line.zep.c b/ext/phalcon/logger/formatter/line.zep.c index 4c25101a1de..c2c411fb8ae 100644 --- a/ext/phalcon/logger/formatter/line.zep.c +++ b/ext/phalcon/logger/formatter/line.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -202,7 +202,7 @@ PHP_METHOD(Phalcon_Logger_Formatter_Line, format) { zephir_read_property(&_2$$3, this_ptr, SL("dateFormat"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CALL_METHOD(&_3$$3, item, "gettime", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_4$$3, "date", NULL, 416, &_2$$3, &_3$$3); + ZEPHIR_CALL_FUNCTION(&_4$$3, "date", NULL, 420, &_2$$3, &_3$$3); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_5$$3); ZVAL_STRING(&_5$$3, "%date%"); diff --git a/ext/phalcon/logger/formatter/syslog.zep.c b/ext/phalcon/logger/formatter/syslog.zep.c index a0f8227736f..7827325032b 100644 --- a/ext/phalcon/logger/formatter/syslog.zep.c +++ b/ext/phalcon/logger/formatter/syslog.zep.c @@ -21,7 +21,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/logger/item.zep.c b/ext/phalcon/logger/item.zep.c index ce17c1af415..edfccc42885 100644 --- a/ext/phalcon/logger/item.zep.c +++ b/ext/phalcon/logger/item.zep.c @@ -20,7 +20,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/logger/loggerfactory.zep.c b/ext/phalcon/logger/loggerfactory.zep.c index c749d5707d8..5e7a93c9127 100644 --- a/ext/phalcon/logger/loggerfactory.zep.c +++ b/ext/phalcon/logger/loggerfactory.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -243,8 +243,8 @@ PHP_METHOD(Phalcon_Logger_LoggerFactory, newInstance) { } - object_init_ex(return_value, phalcon_logger_logger_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 419, &name, &adapters); + object_init_ex(return_value, phalcon_logger_ce); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 421, &name, &adapters); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/logger/loggerfactory.zep.h b/ext/phalcon/logger/loggerfactory.zep.h index 2a25cb79f3a..4083366cf91 100644 --- a/ext/phalcon/logger/loggerfactory.zep.h +++ b/ext/phalcon/logger/loggerfactory.zep.h @@ -16,9 +16,9 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_loggerfactory_load, 0, 0, 1) ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_logger_loggerfactory_newinstance, 0, 1, Phalcon\\Logger\\Logger, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_logger_loggerfactory_newinstance, 0, 1, Phalcon\\Logger, 0) #else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_logger_loggerfactory_newinstance, 0, 1, IS_OBJECT, "Phalcon\\Logger\\Logger", 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_logger_loggerfactory_newinstance, 0, 1, IS_OBJECT, "Phalcon\\Logger", 0) #endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) diff --git a/ext/phalcon/messages/exception.zep.c b/ext/phalcon/messages/exception.zep.c index bb4b832e18a..f34b77c057c 100644 --- a/ext/phalcon/messages/exception.zep.c +++ b/ext/phalcon/messages/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/messages/message.zep.c b/ext/phalcon/messages/message.zep.c index 86139fd5a88..582d04a4441 100644 --- a/ext/phalcon/messages/message.zep.c +++ b/ext/phalcon/messages/message.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/messages/messageinterface.zep.c b/ext/phalcon/messages/messageinterface.zep.c index 2058ed0e981..849b7bcf771 100644 --- a/ext/phalcon/messages/messageinterface.zep.c +++ b/ext/phalcon/messages/messageinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/messages/messages.zep.c b/ext/phalcon/messages/messages.zep.c index a62936cf143..5fab4dd0cbc 100644 --- a/ext/phalcon/messages/messages.zep.c +++ b/ext/phalcon/messages/messages.zep.c @@ -25,7 +25,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -520,7 +520,7 @@ PHP_METHOD(Phalcon_Messages_Messages, offsetUnset) { zephir_read_property(&_1$$3, this_ptr, SL("messages"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_2$$3, 1); ZEPHIR_MAKE_REF(&_1$$3); - ZEPHIR_CALL_FUNCTION(NULL, "array_splice", NULL, 420, &_1$$3, index, &_2$$3); + ZEPHIR_CALL_FUNCTION(NULL, "array_splice", NULL, 422, &_1$$3, index, &_2$$3); ZEPHIR_UNREF(&_1$$3); zephir_check_call_status(); } diff --git a/ext/phalcon/mvc/application.zep.c b/ext/phalcon/mvc/application.zep.c index d4517b84996..7088eb10a82 100644 --- a/ext/phalcon/mvc/application.zep.c +++ b/ext/phalcon/mvc/application.zep.c @@ -28,7 +28,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/application/exception.zep.c b/ext/phalcon/mvc/application/exception.zep.c index bd7f1305112..3347eba6ec2 100644 --- a/ext/phalcon/mvc/application/exception.zep.c +++ b/ext/phalcon/mvc/application/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/collection.zep.c b/ext/phalcon/mvc/collection.zep.c index e81f8c333d2..328bcbbf5f1 100644 --- a/ext/phalcon/mvc/collection.zep.c +++ b/ext/phalcon/mvc/collection.zep.c @@ -27,7 +27,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -412,7 +412,7 @@ PHP_METHOD(Phalcon_Mvc_Collection, create) { } else { ZVAL_BOOL(&_4, 0); } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "presave", NULL, 421, &_0, &_3, &_4); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "presave", NULL, 423, &_0, &_3, &_4); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_2)) { RETURN_MM_BOOL(0); @@ -451,7 +451,7 @@ PHP_METHOD(Phalcon_Mvc_Collection, create) { } else { ZVAL_BOOL(&_10, 0); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "postsave", NULL, 422, &_8, &_9, &_10); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "postsave", NULL, 424, &_8, &_9, &_10); zephir_check_call_status(); RETURN_MM(); @@ -537,7 +537,7 @@ PHP_METHOD(Phalcon_Mvc_Collection, createIfNotExist) { } else { ZVAL_BOOL(&_4, 0); } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "presave", NULL, 421, &_0, &_3, &_4); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "presave", NULL, 423, &_0, &_3, &_4); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_2)) { RETURN_MM_BOOL(0); @@ -546,7 +546,7 @@ PHP_METHOD(Phalcon_Mvc_Collection, createIfNotExist) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&data, this_ptr, "toarray", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_5, "array_diff_key", NULL, 423, &keys, &data); + ZEPHIR_CALL_FUNCTION(&_5, "array_diff_key", NULL, 425, &keys, &data); zephir_check_call_status(); if (UNEXPECTED(zephir_is_true(&_5))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_collection_exception_ce, "Criteria parameter must be array with one or more attributes of the model", "phalcon/Mvc/Collection.zep", 326); @@ -597,7 +597,7 @@ PHP_METHOD(Phalcon_Mvc_Collection, createIfNotExist) { } else { ZVAL_BOOL(&_14, 0); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "postsave", NULL, 422, &_8, &_13, &_14); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "postsave", NULL, 424, &_8, &_13, &_14); zephir_check_call_status(); RETURN_MM(); @@ -1481,7 +1481,7 @@ PHP_METHOD(Phalcon_Mvc_Collection, save) { zephir_update_property_zval(this_ptr, SL("errorMessages"), &_2); zephir_read_property(&_4, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); zephir_read_static_property_ce(&_5, phalcon_mvc_collection_ce, SL("disableEvents"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "presave", NULL, 421, &_4, &_5, &exists); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "presave", NULL, 423, &_4, &_5, &exists); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_3)) { RETURN_MM_BOOL(0); @@ -1517,7 +1517,7 @@ PHP_METHOD(Phalcon_Mvc_Collection, save) { } else { ZVAL_BOOL(&_10, 0); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "postsave", NULL, 422, &_9, &_10, &exists); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "postsave", NULL, 424, &_9, &_10, &exists); zephir_check_call_status(); RETURN_MM(); @@ -2132,7 +2132,7 @@ PHP_METHOD(Phalcon_Mvc_Collection, update) { zephir_update_property_zval(this_ptr, SL("errorMessages"), &_1); zephir_read_property(&_0, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); zephir_read_static_property_ce(&_3, phalcon_mvc_collection_ce, SL("disableEvents"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "presave", NULL, 421, &_0, &_3, &exists); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "presave", NULL, 423, &_0, &_3, &exists); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_2)) { RETURN_MM_BOOL(0); @@ -2165,7 +2165,7 @@ PHP_METHOD(Phalcon_Mvc_Collection, update) { } else { ZVAL_BOOL(&_9, 0); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "postsave", NULL, 422, &_8, &_9, &exists); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "postsave", NULL, 424, &_8, &_9, &exists); zephir_check_call_status(); RETURN_MM(); @@ -2655,7 +2655,7 @@ PHP_METHOD(Phalcon_Mvc_Collection, getResultset) { } ZEPHIR_INIT_VAR(&collections); array_init(&collections); - ZEPHIR_CALL_FUNCTION(&_6, "iterator_to_array", NULL, 424, &documentsCursor, &__$false); + ZEPHIR_CALL_FUNCTION(&_6, "iterator_to_array", NULL, 426, &documentsCursor, &__$false); zephir_check_call_status(); zephir_is_iterable(&_6, 0, "phalcon/Mvc/Collection.zep", 1584); if (Z_TYPE_P(&_6) == IS_ARRAY) { diff --git a/ext/phalcon/mvc/collection/behavior.zep.c b/ext/phalcon/mvc/collection/behavior.zep.c index dbdac2db0cb..11d51c09f81 100644 --- a/ext/phalcon/mvc/collection/behavior.zep.c +++ b/ext/phalcon/mvc/collection/behavior.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/collection/behavior/softdelete.zep.c b/ext/phalcon/mvc/collection/behavior/softdelete.zep.c index dea7aed6393..73720f1a0fd 100644 --- a/ext/phalcon/mvc/collection/behavior/softdelete.zep.c +++ b/ext/phalcon/mvc/collection/behavior/softdelete.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/collection/behavior/timestampable.zep.c b/ext/phalcon/mvc/collection/behavior/timestampable.zep.c index e8bd2379749..8190dad1177 100644 --- a/ext/phalcon/mvc/collection/behavior/timestampable.zep.c +++ b/ext/phalcon/mvc/collection/behavior/timestampable.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -100,7 +100,7 @@ PHP_METHOD(Phalcon_Mvc_Collection_Behavior_Timestampable, notify) { ZVAL_NULL(×tamp); ZEPHIR_OBS_VAR(&format); if (zephir_array_isset_string_fetch(&format, &options, SL("format"), 0)) { - ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 416, &format); + ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 420, &format); zephir_check_call_status(); } else { ZEPHIR_OBS_VAR(&generator); diff --git a/ext/phalcon/mvc/collection/behaviorinterface.zep.c b/ext/phalcon/mvc/collection/behaviorinterface.zep.c index b806a2e7b8f..e95b4422918 100644 --- a/ext/phalcon/mvc/collection/behaviorinterface.zep.c +++ b/ext/phalcon/mvc/collection/behaviorinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/collection/document.zep.c b/ext/phalcon/mvc/collection/document.zep.c index 1b36c68850c..29f0b87cb9d 100644 --- a/ext/phalcon/mvc/collection/document.zep.c +++ b/ext/phalcon/mvc/collection/document.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/collection/exception.zep.c b/ext/phalcon/mvc/collection/exception.zep.c index 0c71978f206..d5535c6c6aa 100644 --- a/ext/phalcon/mvc/collection/exception.zep.c +++ b/ext/phalcon/mvc/collection/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/collection/manager.zep.c b/ext/phalcon/mvc/collection/manager.zep.c index 76bd814106d..e2dfa11333b 100644 --- a/ext/phalcon/mvc/collection/manager.zep.c +++ b/ext/phalcon/mvc/collection/manager.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/collection/managerinterface.zep.c b/ext/phalcon/mvc/collection/managerinterface.zep.c index 5b5dcb6ac0c..d9a795c91ad 100644 --- a/ext/phalcon/mvc/collection/managerinterface.zep.c +++ b/ext/phalcon/mvc/collection/managerinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/collectioninterface.zep.c b/ext/phalcon/mvc/collectioninterface.zep.c index 9bbdd388be3..882b7f3ac3d 100644 --- a/ext/phalcon/mvc/collectioninterface.zep.c +++ b/ext/phalcon/mvc/collectioninterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/controller.zep.c b/ext/phalcon/mvc/controller.zep.c index e6ea0e43915..b6a5cf97ca3 100644 --- a/ext/phalcon/mvc/controller.zep.c +++ b/ext/phalcon/mvc/controller.zep.c @@ -20,7 +20,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/controller/bindmodelinterface.zep.c b/ext/phalcon/mvc/controller/bindmodelinterface.zep.c index b2d1f289191..bfbff898ca8 100644 --- a/ext/phalcon/mvc/controller/bindmodelinterface.zep.c +++ b/ext/phalcon/mvc/controller/bindmodelinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/controllerinterface.zep.c b/ext/phalcon/mvc/controllerinterface.zep.c index 2ca349978b4..7c49ccdd066 100644 --- a/ext/phalcon/mvc/controllerinterface.zep.c +++ b/ext/phalcon/mvc/controllerinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/dispatcher.zep.c b/ext/phalcon/mvc/dispatcher.zep.c index 0d3e2b9394e..b9d5b431003 100644 --- a/ext/phalcon/mvc/dispatcher.zep.c +++ b/ext/phalcon/mvc/dispatcher.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/dispatcher/exception.zep.c b/ext/phalcon/mvc/dispatcher/exception.zep.c index 760ece01d07..708d3ef7790 100644 --- a/ext/phalcon/mvc/dispatcher/exception.zep.c +++ b/ext/phalcon/mvc/dispatcher/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/dispatcherinterface.zep.c b/ext/phalcon/mvc/dispatcherinterface.zep.c index ee58195d6c9..d6ff733cd65 100644 --- a/ext/phalcon/mvc/dispatcherinterface.zep.c +++ b/ext/phalcon/mvc/dispatcherinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/entityinterface.zep.c b/ext/phalcon/mvc/entityinterface.zep.c index 6a18daf0bd1..9b356ca602d 100644 --- a/ext/phalcon/mvc/entityinterface.zep.c +++ b/ext/phalcon/mvc/entityinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/micro.zep.c b/ext/phalcon/mvc/micro.zep.c index 87493833284..d80256de13a 100644 --- a/ext/phalcon/mvc/micro.zep.c +++ b/ext/phalcon/mvc/micro.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -468,11 +468,11 @@ PHP_METHOD(Phalcon_Mvc_Micro, getService) { if (Z_TYPE_P(&container) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&container); object_init_ex(&container, phalcon_di_factorydefault_ce); - ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 425); + ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 427); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("container"), &container); } - ZEPHIR_RETURN_CALL_METHOD(&container, "get", NULL, 426, &serviceName); + ZEPHIR_RETURN_CALL_METHOD(&container, "get", NULL, 428, &serviceName); zephir_check_call_status(); RETURN_MM(); @@ -515,11 +515,11 @@ PHP_METHOD(Phalcon_Mvc_Micro, getSharedService) { if (Z_TYPE_P(&container) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&container); object_init_ex(&container, phalcon_di_factorydefault_ce); - ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 425); + ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 427); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("container"), &container); } - ZEPHIR_RETURN_CALL_METHOD(&container, "getshared", NULL, 427, &serviceName); + ZEPHIR_RETURN_CALL_METHOD(&container, "getshared", NULL, 429, &serviceName); zephir_check_call_status(); RETURN_MM(); @@ -1324,11 +1324,11 @@ PHP_METHOD(Phalcon_Mvc_Micro, hasService) { if (Z_TYPE_P(&container) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&container); object_init_ex(&container, phalcon_di_factorydefault_ce); - ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 425); + ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 427); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("container"), &container); } - ZEPHIR_RETURN_CALL_METHOD(&container, "has", NULL, 428, &serviceName); + ZEPHIR_RETURN_CALL_METHOD(&container, "has", NULL, 430, &serviceName); zephir_check_call_status(); RETURN_MM(); @@ -1475,7 +1475,7 @@ PHP_METHOD(Phalcon_Mvc_Micro, mount) { if (zephir_is_true(&_0)) { ZEPHIR_INIT_VAR(&lazyHandler); object_init_ex(&lazyHandler, phalcon_mvc_micro_lazyloader_ce); - ZEPHIR_CALL_METHOD(NULL, &lazyHandler, "__construct", NULL, 429, &mainHandler); + ZEPHIR_CALL_METHOD(NULL, &lazyHandler, "__construct", NULL, 431, &mainHandler); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&lazyHandler, &mainHandler); @@ -1728,11 +1728,11 @@ PHP_METHOD(Phalcon_Mvc_Micro, offsetUnset) { if (Z_TYPE_P(&container) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&container); object_init_ex(&container, phalcon_di_factorydefault_ce); - ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 425); + ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 427); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("container"), &container); } - ZEPHIR_CALL_METHOD(NULL, &container, "remove", NULL, 430, alias); + ZEPHIR_CALL_METHOD(NULL, &container, "remove", NULL, 432, alias); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -2086,7 +2086,7 @@ PHP_METHOD(Phalcon_Mvc_Micro, setService) { if (Z_TYPE_P(&container) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&container); object_init_ex(&container, phalcon_di_factorydefault_ce); - ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 425); + ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 427); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("container"), &container); } @@ -2095,7 +2095,7 @@ PHP_METHOD(Phalcon_Mvc_Micro, setService) { } else { ZVAL_BOOL(&_0, 0); } - ZEPHIR_RETURN_CALL_METHOD(&container, "set", NULL, 431, &serviceName, definition, &_0); + ZEPHIR_RETURN_CALL_METHOD(&container, "set", NULL, 433, &serviceName, definition, &_0); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/mvc/micro/collection.zep.c b/ext/phalcon/mvc/micro/collection.zep.c index 2d7eaa3503b..a715e815cb4 100644 --- a/ext/phalcon/mvc/micro/collection.zep.c +++ b/ext/phalcon/mvc/micro/collection.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/micro/collectioninterface.zep.c b/ext/phalcon/mvc/micro/collectioninterface.zep.c index d1dc80a9536..d8271a3fdca 100644 --- a/ext/phalcon/mvc/micro/collectioninterface.zep.c +++ b/ext/phalcon/mvc/micro/collectioninterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/micro/exception.zep.c b/ext/phalcon/mvc/micro/exception.zep.c index e5b0c2954cc..3c35e63a3e4 100644 --- a/ext/phalcon/mvc/micro/exception.zep.c +++ b/ext/phalcon/mvc/micro/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/micro/lazyloader.zep.c b/ext/phalcon/mvc/micro/lazyloader.zep.c index 345d511e8dc..d60f29cf5c0 100644 --- a/ext/phalcon/mvc/micro/lazyloader.zep.c +++ b/ext/phalcon/mvc/micro/lazyloader.zep.c @@ -25,7 +25,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/micro/middlewareinterface.zep.c b/ext/phalcon/mvc/micro/middlewareinterface.zep.c index 3a83af10285..2c956071c0c 100644 --- a/ext/phalcon/mvc/micro/middlewareinterface.zep.c +++ b/ext/phalcon/mvc/micro/middlewareinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/model.zep.c b/ext/phalcon/mvc/model.zep.c index a1cd098af3a..7fab2e04c1f 100644 --- a/ext/phalcon/mvc/model.zep.c +++ b/ext/phalcon/mvc/model.zep.c @@ -256,7 +256,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __call) { zephir_get_arrval(&arguments, arguments_param); - ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 432, &method, &arguments); + ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 434, &method, &arguments); zephir_check_call_status(); if (Z_TYPE_P(&records) != IS_NULL) { RETURN_CCTOR(&records); @@ -311,7 +311,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __callStatic) { zephir_get_arrval(&arguments, arguments_param); - ZEPHIR_RETURN_CALL_SELF("_invokefinder", &_0, 432, &method, &arguments); + ZEPHIR_RETURN_CALL_SELF("_invokefinder", &_0, 434, &method, &arguments); zephir_check_call_status(); RETURN_MM(); @@ -605,13 +605,13 @@ PHP_METHOD(Phalcon_Mvc_Model, __set) { } } - ZEPHIR_CALL_METHOD(&_13, this_ptr, "_possiblesetter", NULL, 433, &property, value); + ZEPHIR_CALL_METHOD(&_13, this_ptr, "_possiblesetter", NULL, 435, &property, value); zephir_check_call_status(); if (zephir_is_true(&_13)) { RETVAL_ZVAL(value, 1, 0); RETURN_MM(); } - ZEPHIR_CALL_FUNCTION(&_14, "property_exists", NULL, 434, this_ptr, &property); + ZEPHIR_CALL_FUNCTION(&_14, "property_exists", NULL, 436, this_ptr, &property); zephir_check_call_status(); if (zephir_is_true(&_14)) { ZEPHIR_CALL_METHOD(&manager, this_ptr, "getmodelsmanager", NULL, 0); @@ -894,7 +894,7 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { _7$$12 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_7$$12) { - ZEPHIR_CALL_SELF(&_8$$13, "caseinsensitivecolumnmap", &_9, 435, &columnMap, &attribute); + ZEPHIR_CALL_SELF(&_8$$13, "caseinsensitivecolumnmap", &_9, 437, &columnMap, &attribute); zephir_check_call_status(); ZEPHIR_CPY_WRT(&attribute, &_8$$13); } @@ -926,7 +926,7 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { } _13$$18 = zephir_is_true(&disableAssignSetters); if (!(_13$$18)) { - ZEPHIR_CALL_METHOD(&_14$$18, this_ptr, "_possiblesetter", &_15, 433, &attributeField, &value); + ZEPHIR_CALL_METHOD(&_14$$18, this_ptr, "_possiblesetter", &_15, 435, &attributeField, &value); zephir_check_call_status(); _13$$18 = !zephir_is_true(&_14$$18); } @@ -951,7 +951,7 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { _16$$22 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_16$$22) { - ZEPHIR_CALL_SELF(&_17$$23, "caseinsensitivecolumnmap", &_9, 435, &columnMap, &attribute); + ZEPHIR_CALL_SELF(&_17$$23, "caseinsensitivecolumnmap", &_9, 437, &columnMap, &attribute); zephir_check_call_status(); ZEPHIR_CPY_WRT(&attribute, &_17$$23); } @@ -983,7 +983,7 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { } _20$$28 = zephir_is_true(&disableAssignSetters); if (!(_20$$28)) { - ZEPHIR_CALL_METHOD(&_21$$28, this_ptr, "_possiblesetter", &_15, 433, &attributeField, &value); + ZEPHIR_CALL_METHOD(&_21$$28, this_ptr, "_possiblesetter", &_15, 435, &attributeField, &value); zephir_check_call_status(); _20$$28 = !zephir_is_true(&_21$$28); } @@ -1489,7 +1489,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { _4$$7 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_4$$7) { - ZEPHIR_CALL_SELF(&_5$$8, "caseinsensitivecolumnmap", &_6, 435, columnMap, &key); + ZEPHIR_CALL_SELF(&_5$$8, "caseinsensitivecolumnmap", &_6, 437, columnMap, &key); zephir_check_call_status(); ZEPHIR_CPY_WRT(&key, &_5$$8); } @@ -1541,7 +1541,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { _10$$16 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_10$$16) { - ZEPHIR_CALL_SELF(&_11$$17, "caseinsensitivecolumnmap", &_6, 435, columnMap, &key); + ZEPHIR_CALL_SELF(&_11$$17, "caseinsensitivecolumnmap", &_6, 437, columnMap, &key); zephir_check_call_status(); ZEPHIR_CPY_WRT(&key, &_11$$17); } @@ -1577,7 +1577,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { ZEPHIR_INIT_NVAR(&value); ZEPHIR_INIT_NVAR(&key); if (hydrationMode != 1) { - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_helper_arr_ce, "arraytoobject", &_14, 436, &hydrateArray); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_helper_arr_ce, "arraytoobject", &_14, 438, &hydrateArray); zephir_check_call_status(); RETURN_MM(); } @@ -1688,7 +1688,7 @@ PHP_METHOD(Phalcon_Mvc_Model, create) { ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "getreadconnection", NULL, 437); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "getreadconnection", NULL, 439); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_0, this_ptr, "_exists", NULL, 0, &metaData, &_1); zephir_check_call_status(); @@ -1787,7 +1787,7 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&writeConnection, this_ptr, "getwriteconnection", NULL, 438); + ZEPHIR_CALL_METHOD(&writeConnection, this_ptr, "getwriteconnection", NULL, 440); zephir_check_call_status(); ZEPHIR_INIT_ZVAL_NREF(_0); ZVAL_LONG(&_0, 3); @@ -1796,7 +1796,7 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { array_init(&_1); zephir_update_property_zval(this_ptr, SL("errorMessages"), &_1); if (ZEPHIR_GLOBAL(orm).virtual_foreign_keys) { - ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "_checkforeignkeysreverserestrict", NULL, 439); + ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "_checkforeignkeysreverserestrict", NULL, 441); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_2$$3)) { RETURN_MM_BOOL(0); @@ -1958,9 +1958,9 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { RETURN_MM_BOOL(1); } } - ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 440); + ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 442); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 441); + ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 443); zephir_check_call_status(); if (zephir_is_true(&schema)) { ZEPHIR_INIT_VAR(&table); @@ -1975,7 +1975,7 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CALL_METHOD(&success, &writeConnection, "delete", NULL, 0, &table, &_27, &values, &bindTypes); zephir_check_call_status(); if (ZEPHIR_GLOBAL(orm).virtual_foreign_keys) { - ZEPHIR_CALL_METHOD(&_28$$25, this_ptr, "_checkforeignkeysreversecascade", NULL, 442); + ZEPHIR_CALL_METHOD(&_28$$25, this_ptr, "_checkforeignkeysreversecascade", NULL, 444); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_28$$25)) { RETURN_MM_BOOL(0); @@ -2213,7 +2213,7 @@ PHP_METHOD(Phalcon_Mvc_Model, find) { } else { ZEPHIR_CPY_WRT(¶ms, parameters); } - ZEPHIR_CALL_STATIC(&query, "getpreparedquery", &_0, 443, ¶ms); + ZEPHIR_CALL_STATIC(&query, "getpreparedquery", &_0, 445, ¶ms); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&resultset, &query, "execute", NULL, 0); zephir_check_call_status(); @@ -2340,7 +2340,7 @@ PHP_METHOD(Phalcon_Mvc_Model, findFirst) { return; } ZVAL_LONG(&_3, 1); - ZEPHIR_CALL_STATIC(&query, "getpreparedquery", &_2, 443, ¶ms, &_3); + ZEPHIR_CALL_STATIC(&query, "getpreparedquery", &_2, 445, ¶ms, &_3); zephir_check_call_status(); ZVAL_BOOL(&_3, 1); ZEPHIR_CALL_METHOD(NULL, &query, "setuniquerow", NULL, 0, &_3); @@ -3495,12 +3495,12 @@ PHP_METHOD(Phalcon_Mvc_Model, query) { ZEPHIR_CALL_METHOD(NULL, &criteria, "__construct", NULL, 0); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, &criteria, "setdi", NULL, 444, container); + ZEPHIR_CALL_METHOD(NULL, &criteria, "setdi", NULL, 446, container); zephir_check_call_status(); } ZEPHIR_INIT_VAR(&_3); zephir_get_called_class(&_3 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &criteria, "setmodelname", NULL, 445, &_3); + ZEPHIR_CALL_METHOD(NULL, &criteria, "setmodelname", NULL, 447, &_3); zephir_check_call_status(); RETURN_CCTOR(&criteria); @@ -3595,13 +3595,13 @@ PHP_METHOD(Phalcon_Mvc_Model, refresh) { } ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&readConnection, this_ptr, "getreadconnection", NULL, 437); + ZEPHIR_CALL_METHOD(&readConnection, this_ptr, "getreadconnection", NULL, 439); zephir_check_call_status(); zephir_read_property(&_1, this_ptr, SL("modelsManager"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&manager, &_1); - ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 440); + ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 442); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 441); + ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 443); zephir_check_call_status(); if (zephir_is_true(&schema)) { ZEPHIR_INIT_VAR(&table); @@ -3760,7 +3760,7 @@ PHP_METHOD(Phalcon_Mvc_Model, save) { ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&writeConnection, this_ptr, "getwriteconnection", NULL, 438); + ZEPHIR_CALL_METHOD(&writeConnection, this_ptr, "getwriteconnection", NULL, 440); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "prepareSave"); @@ -3776,9 +3776,9 @@ PHP_METHOD(Phalcon_Mvc_Model, save) { RETURN_MM_BOOL(0); } } - ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 440); + ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 442); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 441); + ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 443); zephir_check_call_status(); if (zephir_is_true(&schema)) { ZEPHIR_INIT_VAR(&table); @@ -3788,7 +3788,7 @@ PHP_METHOD(Phalcon_Mvc_Model, save) { } else { ZEPHIR_CPY_WRT(&table, &source); } - ZEPHIR_CALL_METHOD(&readConnection, this_ptr, "getreadconnection", NULL, 437); + ZEPHIR_CALL_METHOD(&readConnection, this_ptr, "getreadconnection", NULL, 439); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&exists, this_ptr, "_exists", NULL, 0, &metaData, &readConnection); zephir_check_call_status(); @@ -3819,7 +3819,7 @@ PHP_METHOD(Phalcon_Mvc_Model, save) { object_init_ex(&_7$$11, phalcon_mvc_model_validationfailed_ce); ZEPHIR_CALL_METHOD(&_8$$11, this_ptr, "getmessages", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_7$$11, "__construct", NULL, 446, this_ptr, &_8$$11); + ZEPHIR_CALL_METHOD(NULL, &_7$$11, "__construct", NULL, 448, this_ptr, &_8$$11); zephir_check_call_status(); zephir_throw_exception_debug(&_7$$11, "phalcon/Mvc/Model.zep", 2356 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -4408,7 +4408,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { _4$$4 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_4$$4) { - ZEPHIR_CALL_SELF(&_5$$6, "caseinsensitivecolumnmap", &_6, 435, columnMap, &key); + ZEPHIR_CALL_SELF(&_5$$6, "caseinsensitivecolumnmap", &_6, 437, columnMap, &key); zephir_check_call_status(); ZEPHIR_CPY_WRT(&key, &_5$$6); } @@ -4467,7 +4467,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { _12$$12 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_12$$12) { - ZEPHIR_CALL_SELF(&_13$$14, "caseinsensitivecolumnmap", &_6, 435, columnMap, &key); + ZEPHIR_CALL_SELF(&_13$$14, "caseinsensitivecolumnmap", &_6, 437, columnMap, &key); zephir_check_call_status(); ZEPHIR_CPY_WRT(&key, &_13$$14); } @@ -4857,7 +4857,7 @@ PHP_METHOD(Phalcon_Mvc_Model, toArray) { _3$$4 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_3$$4) { - ZEPHIR_CALL_SELF(&_4$$5, "caseinsensitivecolumnmap", &_5, 435, &columnMap, &attribute); + ZEPHIR_CALL_SELF(&_4$$5, "caseinsensitivecolumnmap", &_5, 437, &columnMap, &attribute); zephir_check_call_status(); ZEPHIR_CPY_WRT(&attribute, &_4$$5); } @@ -4908,7 +4908,7 @@ PHP_METHOD(Phalcon_Mvc_Model, toArray) { _9$$14 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_9$$14) { - ZEPHIR_CALL_SELF(&_10$$15, "caseinsensitivecolumnmap", &_5, 435, &columnMap, &attribute); + ZEPHIR_CALL_SELF(&_10$$15, "caseinsensitivecolumnmap", &_5, 437, &columnMap, &attribute); zephir_check_call_status(); ZEPHIR_CPY_WRT(&attribute, &_10$$15); } @@ -4988,7 +4988,7 @@ PHP_METHOD(Phalcon_Mvc_Model, update) { if (zephir_is_true(&_0)) { ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "getreadconnection", NULL, 437); + ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "getreadconnection", NULL, 439); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_1$$3, this_ptr, "_exists", NULL, 0, &metaData, &_2$$3); zephir_check_call_status(); @@ -6409,9 +6409,9 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CALL_METHOD(&sequenceName, this_ptr, "getsequencename", NULL, 0); zephir_check_call_status(); } else { - ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 441); + ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 443); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 440); + ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 442); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&sequenceName); if (ZEPHIR_IS_EMPTY(&schema)) { @@ -7181,9 +7181,9 @@ PHP_METHOD(Phalcon_Mvc_Model, _exists) { zephir_read_property(&_22$$27, this_ptr, SL("uniqueTypes"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&uniqueTypes, &_22$$27); } - ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 440); + ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 442); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 441); + ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 443); zephir_check_call_status(); if (zephir_is_true(&schema)) { ZEPHIR_INIT_VAR(&table); @@ -7703,7 +7703,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSave) { } } if (ZEPHIR_GLOBAL(orm).virtual_foreign_keys) { - ZEPHIR_CALL_METHOD(&_3$$8, this_ptr, "_checkforeignkeysrestrict", NULL, 447); + ZEPHIR_CALL_METHOD(&_3$$8, this_ptr, "_checkforeignkeysrestrict", NULL, 449); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_3$$8)) { RETURN_MM_BOOL(0); diff --git a/ext/phalcon/mvc/model/behavior.zep.c b/ext/phalcon/mvc/model/behavior.zep.c index 1fba4160e0c..1199c408963 100644 --- a/ext/phalcon/mvc/model/behavior.zep.c +++ b/ext/phalcon/mvc/model/behavior.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/model/behavior/softdelete.zep.c b/ext/phalcon/mvc/model/behavior/softdelete.zep.c index 97fd608af5c..787b36dd7ea 100644 --- a/ext/phalcon/mvc/model/behavior/softdelete.zep.c +++ b/ext/phalcon/mvc/model/behavior/softdelete.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/model/behavior/timestampable.zep.c b/ext/phalcon/mvc/model/behavior/timestampable.zep.c index 5ad09d6a348..00938f852f8 100644 --- a/ext/phalcon/mvc/model/behavior/timestampable.zep.c +++ b/ext/phalcon/mvc/model/behavior/timestampable.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -96,7 +96,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Behavior_Timestampable, notify) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The option 'field' is required", "phalcon/Mvc/Model/Behavior/Timestampable.zep", 50); return; } - ZEPHIR_CALL_METHOD(×tamp, this_ptr, "gettimestamp", NULL, 448, &options); + ZEPHIR_CALL_METHOD(×tamp, this_ptr, "gettimestamp", NULL, 450, &options); zephir_check_call_status(); if (UNEXPECTED(Z_TYPE_P(&field) == IS_ARRAY)) { zephir_is_iterable(&field, 0, "phalcon/Mvc/Model/Behavior/Timestampable.zep", 63); @@ -155,7 +155,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Behavior_Timestampable, getTimestamp) { ZEPHIR_OBS_VAR(&format); if (zephir_array_isset_string_fetch(&format, &options, SL("format"), 0)) { - ZEPHIR_RETURN_CALL_FUNCTION("date", NULL, 416, &format); + ZEPHIR_RETURN_CALL_FUNCTION("date", NULL, 420, &format); zephir_check_call_status(); RETURN_MM(); } diff --git a/ext/phalcon/mvc/model/behaviorinterface.zep.c b/ext/phalcon/mvc/model/behaviorinterface.zep.c index 9d61f7dc818..fa50823ef55 100644 --- a/ext/phalcon/mvc/model/behaviorinterface.zep.c +++ b/ext/phalcon/mvc/model/behaviorinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/model/binder.zep.c b/ext/phalcon/mvc/model/binder.zep.c index 22eb63b5974..128d4ddcf3f 100644 --- a/ext/phalcon/mvc/model/binder.zep.c +++ b/ext/phalcon/mvc/model/binder.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -396,7 +396,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Binder, getParamsFromReflection) { ZEPHIR_INIT_VAR(&reflection); if (!ZEPHIR_IS_STRING(&methodName, "")) { object_init_ex(&reflection, zephir_get_internal_ce(SL("reflectionmethod"))); - ZEPHIR_CALL_METHOD(NULL, &reflection, "__construct", NULL, 449, handler, &methodName); + ZEPHIR_CALL_METHOD(NULL, &reflection, "__construct", NULL, 451, handler, &methodName); zephir_check_call_status(); } else { object_init_ex(&reflection, zephir_get_internal_ce(SL("reflectionfunction"))); @@ -438,7 +438,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Binder, getParamsFromReflection) { zephir_array_fetch(¶mValue, ¶ms, ¶mKey, PH_NOISY, "phalcon/Mvc/Model/Binder.zep", 171 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_6$$5); ZVAL_STRING(&_6$$5, "Phalcon\\Mvc\\Model"); - ZEPHIR_CALL_FUNCTION(&_7$$5, "is_subclass_of", &_8, 450, &className, &_6$$5); + ZEPHIR_CALL_FUNCTION(&_7$$5, "is_subclass_of", &_8, 452, &className, &_6$$5); zephir_check_call_status(); if (ZEPHIR_IS_STRING(&className, "Phalcon\\Mvc\\Model")) { if (Z_TYPE_P(&realClasses) == IS_NULL) { @@ -520,7 +520,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Binder, getParamsFromReflection) { zephir_array_fetch(¶mValue, ¶ms, ¶mKey, PH_NOISY, "phalcon/Mvc/Model/Binder.zep", 171 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_15$$19); ZVAL_STRING(&_15$$19, "Phalcon\\Mvc\\Model"); - ZEPHIR_CALL_FUNCTION(&_16$$19, "is_subclass_of", &_8, 450, &className, &_15$$19); + ZEPHIR_CALL_FUNCTION(&_16$$19, "is_subclass_of", &_8, 452, &className, &_15$$19); zephir_check_call_status(); if (ZEPHIR_IS_STRING(&className, "Phalcon\\Mvc\\Model")) { if (Z_TYPE_P(&realClasses) == IS_NULL) { diff --git a/ext/phalcon/mvc/model/binder/bindableinterface.zep.c b/ext/phalcon/mvc/model/binder/bindableinterface.zep.c index 23b2acf0283..06304ff3e8b 100644 --- a/ext/phalcon/mvc/model/binder/bindableinterface.zep.c +++ b/ext/phalcon/mvc/model/binder/bindableinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/model/binderinterface.zep.c b/ext/phalcon/mvc/model/binderinterface.zep.c index f09a989e639..9c2b147c43f 100644 --- a/ext/phalcon/mvc/model/binderinterface.zep.c +++ b/ext/phalcon/mvc/model/binderinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/model/criteria.zep.c b/ext/phalcon/mvc/model/criteria.zep.c index 3cab5e6d026..8552a791694 100644 --- a/ext/phalcon/mvc/model/criteria.zep.c +++ b/ext/phalcon/mvc/model/criteria.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -1776,12 +1776,12 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { ZEPHIR_INIT_VAR(&_19$$16); ZEPHIR_CONCAT_SVS(&_19$$16, " ", &operator, " "); zephir_fast_join(&_18$$16, &_19$$16, &conditions TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &criteria, "where", NULL, 451, &_18$$16); + ZEPHIR_CALL_METHOD(NULL, &criteria, "where", NULL, 453, &_18$$16); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &criteria, "bind", NULL, 452, &bind); + ZEPHIR_CALL_METHOD(NULL, &criteria, "bind", NULL, 454, &bind); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, &criteria, "setmodelname", NULL, 445, &modelName); + ZEPHIR_CALL_METHOD(NULL, &criteria, "setmodelname", NULL, 447, &modelName); zephir_check_call_status(); RETURN_CCTOR(&criteria); diff --git a/ext/phalcon/mvc/model/criteriainterface.zep.c b/ext/phalcon/mvc/model/criteriainterface.zep.c index 5291df8cb7d..c1d226e1960 100644 --- a/ext/phalcon/mvc/model/criteriainterface.zep.c +++ b/ext/phalcon/mvc/model/criteriainterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/model/exception.zep.c b/ext/phalcon/mvc/model/exception.zep.c index 99798903086..805d745f7de 100644 --- a/ext/phalcon/mvc/model/exception.zep.c +++ b/ext/phalcon/mvc/model/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/model/manager.zep.c b/ext/phalcon/mvc/model/manager.zep.c index 52f874e4729..aa6db53daef 100644 --- a/ext/phalcon/mvc/model/manager.zep.c +++ b/ext/phalcon/mvc/model/manager.zep.c @@ -27,7 +27,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -1413,7 +1413,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasOne) { ZEPHIR_INIT_VAR(&relation); object_init_ex(&relation, phalcon_mvc_model_relation_ce); ZVAL_LONG(&_2, 1); - ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 453, &_2, &referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 455, &_2, &referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(&alias); if (zephir_array_isset_string_fetch(&alias, options, SL("alias"), 0)) { @@ -1516,7 +1516,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, addBelongsTo) { ZEPHIR_INIT_VAR(&relation); object_init_ex(&relation, phalcon_mvc_model_relation_ce); ZVAL_LONG(&_2, 0); - ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 453, &_2, &referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 455, &_2, &referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(&alias); if (zephir_array_isset_string_fetch(&alias, options, SL("alias"), 0)) { @@ -1621,7 +1621,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasMany) { ZEPHIR_INIT_VAR(&relation); object_init_ex(&relation, phalcon_mvc_model_relation_ce); ZVAL_LONG(&_1, 2); - ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 453, &_1, &referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 455, &_1, &referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(&alias); if (zephir_array_isset_string_fetch(&alias, options, SL("alias"), 0)) { @@ -1751,9 +1751,9 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasManyToMany) { ZEPHIR_INIT_VAR(&relation); object_init_ex(&relation, phalcon_mvc_model_relation_ce); ZVAL_LONG(&_1, 4); - ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 453, &_1, &referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 455, &_1, &referencedModel, fields, referencedFields, options); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &relation, "setintermediaterelation", NULL, 454, intermediateFields, &intermediateModel, intermediateReferencedFields); + ZEPHIR_CALL_METHOD(NULL, &relation, "setintermediaterelation", NULL, 456, intermediateFields, &intermediateModel, intermediateReferencedFields); zephir_check_call_status(); ZEPHIR_OBS_VAR(&alias); if (zephir_array_isset_string_fetch(&alias, options, SL("alias"), 0)) { @@ -2435,7 +2435,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { ZEPHIR_INIT_VAR(&_4$$3); ZEPHIR_CONCAT_SVSVSVSVS(&_4$$3, "[", &intermediateModel, "].[", &intermediateFields, "] = [", &referencedModel, "].[", &_3$$3, "]"); zephir_array_append(&joinConditions, &_4$$3, PH_SEPARATE, "phalcon/Mvc/Model/Manager.zep", 1299); - ZEPHIR_CALL_METHOD(&_5$$3, this_ptr, "_mergefindparameters", NULL, 455, &extraParameters, parameters); + ZEPHIR_CALL_METHOD(&_5$$3, this_ptr, "_mergefindparameters", NULL, 457, &extraParameters, parameters); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&builder, this_ptr, "createbuilder", NULL, 0, &_5$$3); zephir_check_call_status(); @@ -2548,10 +2548,10 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { ZEPHIR_CALL_METHOD(&_30, record, "getdi", NULL, 0); zephir_check_call_status(); zephir_array_update_string(&findParams, SL("di"), &_30, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&findArguments, this_ptr, "_mergefindparameters", NULL, 455, &findParams, parameters); + ZEPHIR_CALL_METHOD(&findArguments, this_ptr, "_mergefindparameters", NULL, 457, &findParams, parameters); zephir_check_call_status(); if (Z_TYPE_P(&extraParameters) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&findParams, this_ptr, "_mergefindparameters", NULL, 455, &extraParameters, &findArguments); + ZEPHIR_CALL_METHOD(&findParams, this_ptr, "_mergefindparameters", NULL, 457, &extraParameters, &findArguments); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&findParams, &findArguments); diff --git a/ext/phalcon/mvc/model/managerinterface.zep.c b/ext/phalcon/mvc/model/managerinterface.zep.c index 5167183390e..535c3c6f7de 100644 --- a/ext/phalcon/mvc/model/managerinterface.zep.c +++ b/ext/phalcon/mvc/model/managerinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/model/metadata.zep.c b/ext/phalcon/mvc/model/metadata.zep.c index ee5339b19a9..360bf6a0c59 100644 --- a/ext/phalcon/mvc/model/metadata.zep.c +++ b/ext/phalcon/mvc/model/metadata.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/model/metadata/apcu.zep.c b/ext/phalcon/mvc/model/metadata/apcu.zep.c index c308cb407b9..05e78a4aab1 100644 --- a/ext/phalcon/mvc/model/metadata/apcu.zep.c +++ b/ext/phalcon/mvc/model/metadata/apcu.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/model/metadata/libmemcached.zep.c b/ext/phalcon/mvc/model/metadata/libmemcached.zep.c index 3352f330ba6..7c8f6e16cf4 100644 --- a/ext/phalcon/mvc/model/metadata/libmemcached.zep.c +++ b/ext/phalcon/mvc/model/metadata/libmemcached.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/model/metadata/memory.zep.c b/ext/phalcon/mvc/model/metadata/memory.zep.c index be9c0adb4d6..962e92a945c 100644 --- a/ext/phalcon/mvc/model/metadata/memory.zep.c +++ b/ext/phalcon/mvc/model/metadata/memory.zep.c @@ -22,7 +22,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/model/metadata/redis.zep.c b/ext/phalcon/mvc/model/metadata/redis.zep.c index a6296b11d96..3071b3db5d7 100644 --- a/ext/phalcon/mvc/model/metadata/redis.zep.c +++ b/ext/phalcon/mvc/model/metadata/redis.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/model/metadata/strategy/annotations.zep.c b/ext/phalcon/mvc/model/metadata/strategy/annotations.zep.c index 7ae8b6e77c5..7e143437fa6 100644 --- a/ext/phalcon/mvc/model/metadata/strategy/annotations.zep.c +++ b/ext/phalcon/mvc/model/metadata/strategy/annotations.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/model/metadata/strategy/introspection.zep.c b/ext/phalcon/mvc/model/metadata/strategy/introspection.zep.c index 7a3b35ef964..86cc7c963af 100644 --- a/ext/phalcon/mvc/model/metadata/strategy/introspection.zep.c +++ b/ext/phalcon/mvc/model/metadata/strategy/introspection.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/model/metadata/strategyinterface.zep.c b/ext/phalcon/mvc/model/metadata/strategyinterface.zep.c index d1afafecc13..7f02136ae7c 100644 --- a/ext/phalcon/mvc/model/metadata/strategyinterface.zep.c +++ b/ext/phalcon/mvc/model/metadata/strategyinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/model/metadata/stream.zep.c b/ext/phalcon/mvc/model/metadata/stream.zep.c index 56442de3270..3e5cbac5570 100644 --- a/ext/phalcon/mvc/model/metadata/stream.zep.c +++ b/ext/phalcon/mvc/model/metadata/stream.zep.c @@ -28,7 +28,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -195,7 +195,7 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Stream, write) { ZEPHIR_CONCAT_SVS(&_5$$3, " + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/model/query.zep.c b/ext/phalcon/mvc/model/query.zep.c index b44348f4b4f..8433ec6ddc6 100644 --- a/ext/phalcon/mvc/model/query.zep.c +++ b/ext/phalcon/mvc/model/query.zep.c @@ -29,7 +29,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -649,7 +649,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getCallArgument) { add_assoc_stringl_ex(return_value, SL("type"), SL("all")); RETURN_MM(); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getexpression", NULL, 457, &argument); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getexpression", NULL, 459, &argument); zephir_check_call_status(); RETURN_MM(); @@ -709,11 +709,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_create_array(&_3$$4, 3, 0 TSRMLS_CC); add_assoc_stringl_ex(&_3$$4, SL("type"), SL("when")); zephir_array_fetch_string(&_5$$4, &whenExpr, SL("left"), PH_NOISY | PH_READONLY, "phalcon/Mvc/Model/Query.zep", 398 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_4$$4, this_ptr, "_getexpression", &_6, 457, &_5$$4); + ZEPHIR_CALL_METHOD(&_4$$4, this_ptr, "_getexpression", &_6, 459, &_5$$4); zephir_check_call_status(); zephir_array_update_string(&_3$$4, SL("expr"), &_4$$4, PH_COPY | PH_SEPARATE); zephir_array_fetch_string(&_7$$4, &whenExpr, SL("right"), PH_NOISY | PH_READONLY, "phalcon/Mvc/Model/Query.zep", 399 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_4$$4, this_ptr, "_getexpression", &_6, 457, &_7$$4); + ZEPHIR_CALL_METHOD(&_4$$4, this_ptr, "_getexpression", &_6, 459, &_7$$4); zephir_check_call_status(); zephir_array_update_string(&_3$$4, SL("then"), &_4$$4, PH_COPY | PH_SEPARATE); zephir_array_append(&whenClauses, &_3$$4, PH_SEPARATE, "phalcon/Mvc/Model/Query.zep", 400); @@ -722,7 +722,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_create_array(&_8$$5, 2, 0 TSRMLS_CC); add_assoc_stringl_ex(&_8$$5, SL("type"), SL("else")); zephir_array_fetch_string(&_10$$5, &whenExpr, SL("left"), PH_NOISY | PH_READONLY, "phalcon/Mvc/Model/Query.zep", 404 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_9$$5, this_ptr, "_getexpression", &_6, 457, &_10$$5); + ZEPHIR_CALL_METHOD(&_9$$5, this_ptr, "_getexpression", &_6, 459, &_10$$5); zephir_check_call_status(); zephir_array_update_string(&_8$$5, SL("expr"), &_9$$5, PH_COPY | PH_SEPARATE); zephir_array_append(&whenClauses, &_8$$5, PH_SEPARATE, "phalcon/Mvc/Model/Query.zep", 405); @@ -744,11 +744,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_create_array(&_11$$7, 3, 0 TSRMLS_CC); add_assoc_stringl_ex(&_11$$7, SL("type"), SL("when")); zephir_array_fetch_string(&_13$$7, &whenExpr, SL("left"), PH_NOISY | PH_READONLY, "phalcon/Mvc/Model/Query.zep", 398 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_12$$7, this_ptr, "_getexpression", &_6, 457, &_13$$7); + ZEPHIR_CALL_METHOD(&_12$$7, this_ptr, "_getexpression", &_6, 459, &_13$$7); zephir_check_call_status(); zephir_array_update_string(&_11$$7, SL("expr"), &_12$$7, PH_COPY | PH_SEPARATE); zephir_array_fetch_string(&_14$$7, &whenExpr, SL("right"), PH_NOISY | PH_READONLY, "phalcon/Mvc/Model/Query.zep", 399 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_12$$7, this_ptr, "_getexpression", &_6, 457, &_14$$7); + ZEPHIR_CALL_METHOD(&_12$$7, this_ptr, "_getexpression", &_6, 459, &_14$$7); zephir_check_call_status(); zephir_array_update_string(&_11$$7, SL("then"), &_12$$7, PH_COPY | PH_SEPARATE); zephir_array_append(&whenClauses, &_11$$7, PH_SEPARATE, "phalcon/Mvc/Model/Query.zep", 400); @@ -757,7 +757,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_create_array(&_15$$8, 2, 0 TSRMLS_CC); add_assoc_stringl_ex(&_15$$8, SL("type"), SL("else")); zephir_array_fetch_string(&_17$$8, &whenExpr, SL("left"), PH_NOISY | PH_READONLY, "phalcon/Mvc/Model/Query.zep", 404 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_16$$8, this_ptr, "_getexpression", &_6, 457, &_17$$8); + ZEPHIR_CALL_METHOD(&_16$$8, this_ptr, "_getexpression", &_6, 459, &_17$$8); zephir_check_call_status(); zephir_array_update_string(&_15$$8, SL("expr"), &_16$$8, PH_COPY | PH_SEPARATE); zephir_array_append(&whenClauses, &_15$$8, PH_SEPARATE, "phalcon/Mvc/Model/Query.zep", 405); @@ -770,7 +770,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_create_array(return_value, 3, 0 TSRMLS_CC); add_assoc_stringl_ex(return_value, SL("type"), SL("case")); zephir_array_fetch_string(&_19, &expr, SL("left"), PH_NOISY | PH_READONLY, "phalcon/Mvc/Model/Query.zep", 411 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_18, this_ptr, "_getexpression", &_6, 457, &_19); + ZEPHIR_CALL_METHOD(&_18, this_ptr, "_getexpression", &_6, 459, &_19); zephir_check_call_status(); zephir_array_update_string(return_value, SL("expr"), &_18, PH_COPY | PH_SEPARATE); zephir_array_update_string(return_value, SL("when-clauses"), &whenClauses, PH_COPY | PH_SEPARATE); @@ -826,7 +826,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getFunctionCall) { { ZEPHIR_INIT_NVAR(&argument); ZVAL_COPY(&argument, _0$$6); - ZEPHIR_CALL_METHOD(&_2$$7, this_ptr, "_getcallargument", &_3, 458, &argument); + ZEPHIR_CALL_METHOD(&_2$$7, this_ptr, "_getcallargument", &_3, 460, &argument); zephir_check_call_status(); zephir_array_append(&functionArgs, &_2$$7, PH_SEPARATE, "phalcon/Mvc/Model/Query.zep", 437); } ZEND_HASH_FOREACH_END(); @@ -841,7 +841,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getFunctionCall) { } ZEPHIR_CALL_METHOD(&argument, &arguments, "current", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_4$$8, this_ptr, "_getcallargument", &_3, 458, &argument); + ZEPHIR_CALL_METHOD(&_4$$8, this_ptr, "_getcallargument", &_3, 460, &argument); zephir_check_call_status(); zephir_array_append(&functionArgs, &_4$$8, PH_SEPARATE, "phalcon/Mvc/Model/Query.zep", 437); ZEPHIR_CALL_METHOD(NULL, &arguments, "next", NULL, 0); @@ -852,7 +852,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getFunctionCall) { } else { ZEPHIR_INIT_VAR(&_5$$9); zephir_create_array(&_5$$9, 1, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_6$$9, this_ptr, "_getcallargument", &_3, 458, &arguments); + ZEPHIR_CALL_METHOD(&_6$$9, this_ptr, "_getcallargument", &_3, 460, &arguments); zephir_check_call_status(); zephir_array_fast_append(&_5$$9, &_6$$9); ZEPHIR_CPY_WRT(&functionArgs, &_5$$9); @@ -1030,7 +1030,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { } else { ZVAL_BOOL(&_0$$5, 0); } - ZEPHIR_CALL_METHOD(&left, this_ptr, "_getexpression", NULL, 457, &exprLeft, &_0$$5); + ZEPHIR_CALL_METHOD(&left, this_ptr, "_getexpression", NULL, 459, &exprLeft, &_0$$5); zephir_check_call_status(); } ZEPHIR_OBS_VAR(&exprRight); @@ -1040,7 +1040,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { } else { ZVAL_BOOL(&_1$$6, 0); } - ZEPHIR_CALL_METHOD(&right, this_ptr, "_getexpression", NULL, 457, &exprRight, &_1$$6); + ZEPHIR_CALL_METHOD(&right, this_ptr, "_getexpression", NULL, 459, &exprRight, &_1$$6); zephir_check_call_status(); } } @@ -1125,7 +1125,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { break; } if (ZEPHIR_IS_LONG(&exprType, 355)) { - ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getqualified", NULL, 459, &expr); + ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getqualified", NULL, 461, &expr); zephir_check_call_status(); break; } @@ -1610,12 +1610,12 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { break; } if (ZEPHIR_IS_LONG(&exprType, 350)) { - ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getfunctioncall", NULL, 460, &expr); + ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getfunctioncall", NULL, 462, &expr); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(&exprType, 409)) { - ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getcaseexpression", NULL, 461, &expr); + ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getcaseexpression", NULL, 463, &expr); zephir_check_call_status(); break; } @@ -1624,7 +1624,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { zephir_create_array(&_80$$68, 2, 0 TSRMLS_CC); add_assoc_stringl_ex(&_80$$68, SL("type"), SL("select")); ZVAL_BOOL(&_82$$68, 1); - ZEPHIR_CALL_METHOD(&_81$$68, this_ptr, "_prepareselect", NULL, 462, &expr, &_82$$68); + ZEPHIR_CALL_METHOD(&_81$$68, this_ptr, "_prepareselect", NULL, 464, &expr, &_82$$68); zephir_check_call_status(); zephir_array_update_string(&_80$$68, SL("value"), &_81$$68, PH_COPY | PH_SEPARATE); ZEPHIR_CPY_WRT(&exprReturn, &_80$$68); @@ -1644,7 +1644,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { RETURN_CCTOR(&exprReturn); } if (zephir_array_isset_string(&expr, SL("domain"))) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualified", NULL, 459, &expr); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualified", NULL, 461, &expr); zephir_check_call_status(); RETURN_MM(); } @@ -1657,7 +1657,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { { ZEPHIR_INIT_NVAR(&exprListItem); ZVAL_COPY(&exprListItem, _85$$71); - ZEPHIR_CALL_METHOD(&_87$$72, this_ptr, "_getexpression", NULL, 457, &exprListItem); + ZEPHIR_CALL_METHOD(&_87$$72, this_ptr, "_getexpression", NULL, 459, &exprListItem); zephir_check_call_status(); zephir_array_append(&listItems, &_87$$72, PH_SEPARATE, "phalcon/Mvc/Model/Query.zep", 1053); } ZEND_HASH_FOREACH_END(); @@ -1672,7 +1672,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { } ZEPHIR_CALL_METHOD(&exprListItem, &expr, "current", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_88$$73, this_ptr, "_getexpression", NULL, 457, &exprListItem); + ZEPHIR_CALL_METHOD(&_88$$73, this_ptr, "_getexpression", NULL, 459, &exprListItem); zephir_check_call_status(); zephir_array_append(&listItems, &_88$$73, PH_SEPARATE, "phalcon/Mvc/Model/Query.zep", 1053); ZEPHIR_CALL_METHOD(NULL, &expr, "next", NULL, 0); @@ -1877,7 +1877,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { ZEPHIR_CPY_WRT(&sqlColumn, &_17$$16); ZEPHIR_OBS_VAR(&columnData); zephir_array_fetch_string(&columnData, &column, SL("column"), PH_NOISY, "phalcon/Mvc/Model/Query.zep", 1186 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&sqlExprColumn, this_ptr, "_getexpression", NULL, 457, &columnData); + ZEPHIR_CALL_METHOD(&sqlExprColumn, this_ptr, "_getexpression", NULL, 459, &columnData); zephir_check_call_status(); ZEPHIR_OBS_VAR(&balias); if (zephir_array_isset_string_fetch(&balias, &sqlExprColumn, SL("balias"), 0)) { @@ -2147,7 +2147,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_long_ex(&_3$$3, SL("type"), 355); zephir_array_update_string(&_3$$3, SL("domain"), &modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_3$$3, SL("name"), &fields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "_getqualified", NULL, 459, &_3$$3); + ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "_getqualified", NULL, 461, &_3$$3); zephir_check_call_status(); zephir_array_update_string(&_1$$3, SL("left"), &_2$$3, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_VAR(&_4$$3); @@ -2155,7 +2155,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_stringl_ex(&_4$$3, SL("type"), SL("qualified")); zephir_array_update_string(&_4$$3, SL("domain"), &joinAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4$$3, SL("name"), &referencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "_getqualified", NULL, 459, &_4$$3); + ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "_getqualified", NULL, 461, &_4$$3); zephir_check_call_status(); zephir_array_update_string(&_1$$3, SL("right"), &_2$$3, PH_COPY | PH_SEPARATE); zephir_array_fast_append(&_0$$3, &_1$$3); @@ -2197,7 +2197,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_long_ex(&_15$$5, SL("type"), 355); zephir_array_update_string(&_15$$5, SL("domain"), &modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_15$$5, SL("name"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_14$$5, this_ptr, "_getqualified", NULL, 459, &_15$$5); + ZEPHIR_CALL_METHOD(&_14$$5, this_ptr, "_getqualified", NULL, 461, &_15$$5); zephir_check_call_status(); zephir_array_update_string(&_13$$5, SL("left"), &_14$$5, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_16$$5); @@ -2205,7 +2205,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_stringl_ex(&_16$$5, SL("type"), SL("qualified")); zephir_array_update_string(&_16$$5, SL("domain"), &joinAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_16$$5, SL("name"), &referencedField, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_14$$5, this_ptr, "_getqualified", NULL, 459, &_16$$5); + ZEPHIR_CALL_METHOD(&_14$$5, this_ptr, "_getqualified", NULL, 461, &_16$$5); zephir_check_call_status(); zephir_array_update_string(&_13$$5, SL("right"), &_14$$5, PH_COPY | PH_SEPARATE); zephir_array_append(&sqlJoinPartialConditions, &_13$$5, PH_SEPARATE, "phalcon/Mvc/Model/Query.zep", 1379); @@ -2245,7 +2245,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_long_ex(&_22$$7, SL("type"), 355); zephir_array_update_string(&_22$$7, SL("domain"), &modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_22$$7, SL("name"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_21$$7, this_ptr, "_getqualified", NULL, 459, &_22$$7); + ZEPHIR_CALL_METHOD(&_21$$7, this_ptr, "_getqualified", NULL, 461, &_22$$7); zephir_check_call_status(); zephir_array_update_string(&_20$$7, SL("left"), &_21$$7, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_23$$7); @@ -2253,7 +2253,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_stringl_ex(&_23$$7, SL("type"), SL("qualified")); zephir_array_update_string(&_23$$7, SL("domain"), &joinAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_23$$7, SL("name"), &referencedField, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_21$$7, this_ptr, "_getqualified", NULL, 459, &_23$$7); + ZEPHIR_CALL_METHOD(&_21$$7, this_ptr, "_getqualified", NULL, 461, &_23$$7); zephir_check_call_status(); zephir_array_update_string(&_20$$7, SL("right"), &_21$$7, PH_COPY | PH_SEPARATE); zephir_array_append(&sqlJoinPartialConditions, &_20$$7, PH_SEPARATE, "phalcon/Mvc/Model/Query.zep", 1379); @@ -2411,7 +2411,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_long_ex(&_10$$4, SL("type"), 355); zephir_array_update_string(&_10$$4, SL("domain"), &modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_10$$4, SL("name"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_9$$4, this_ptr, "_getqualified", &_11, 459, &_10$$4); + ZEPHIR_CALL_METHOD(&_9$$4, this_ptr, "_getqualified", &_11, 461, &_10$$4); zephir_check_call_status(); zephir_array_update_string(&sqlEqualsJoinCondition, SL("left"), &_9$$4, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_12$$4); @@ -2419,7 +2419,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_stringl_ex(&_12$$4, SL("type"), SL("qualified")); zephir_array_update_string(&_12$$4, SL("domain"), &joinAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_12$$4, SL("name"), &referencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_9$$4, this_ptr, "_getqualified", &_11, 459, &_12$$4); + ZEPHIR_CALL_METHOD(&_9$$4, this_ptr, "_getqualified", &_11, 461, &_12$$4); zephir_check_call_status(); zephir_array_update_string(&sqlEqualsJoinCondition, SL("right"), &_9$$4, PH_COPY | PH_SEPARATE); } ZEND_HASH_FOREACH_END(); @@ -2459,7 +2459,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_long_ex(&_18$$6, SL("type"), 355); zephir_array_update_string(&_18$$6, SL("domain"), &modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_18$$6, SL("name"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_17$$6, this_ptr, "_getqualified", &_11, 459, &_18$$6); + ZEPHIR_CALL_METHOD(&_17$$6, this_ptr, "_getqualified", &_11, 461, &_18$$6); zephir_check_call_status(); zephir_array_update_string(&_16$$6, SL("left"), &_17$$6, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_19$$6); @@ -2467,7 +2467,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_stringl_ex(&_19$$6, SL("type"), SL("qualified")); zephir_array_update_string(&_19$$6, SL("domain"), &joinAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_19$$6, SL("name"), &referencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_17$$6, this_ptr, "_getqualified", &_11, 459, &_19$$6); + ZEPHIR_CALL_METHOD(&_17$$6, this_ptr, "_getqualified", &_11, 461, &_19$$6); zephir_check_call_status(); zephir_array_update_string(&_16$$6, SL("right"), &_17$$6, PH_COPY | PH_SEPARATE); ZEPHIR_CPY_WRT(&sqlEqualsJoinCondition, &_16$$6); @@ -2495,7 +2495,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_long_ex(&_25$$8, SL("type"), 355); zephir_array_update_string(&_25$$8, SL("domain"), &modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_25$$8, SL("name"), &fields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_24$$8, this_ptr, "_getqualified", &_11, 459, &_25$$8); + ZEPHIR_CALL_METHOD(&_24$$8, this_ptr, "_getqualified", &_11, 461, &_25$$8); zephir_check_call_status(); zephir_array_update_string(&_23$$8, SL("left"), &_24$$8, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_VAR(&_26$$8); @@ -2503,7 +2503,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_stringl_ex(&_26$$8, SL("type"), SL("qualified")); zephir_array_update_string(&_26$$8, SL("domain"), &intermediateModelName, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_26$$8, SL("name"), &intermediateFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_24$$8, this_ptr, "_getqualified", &_11, 459, &_26$$8); + ZEPHIR_CALL_METHOD(&_24$$8, this_ptr, "_getqualified", &_11, 461, &_26$$8); zephir_check_call_status(); zephir_array_update_string(&_23$$8, SL("right"), &_24$$8, PH_COPY | PH_SEPARATE); zephir_array_fast_append(&_22$$8, &_23$$8); @@ -2524,7 +2524,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_long_ex(&_27$$8, SL("type"), 355); zephir_array_update_string(&_27$$8, SL("domain"), &intermediateModelName, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_27$$8, SL("name"), &intermediateReferencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_24$$8, this_ptr, "_getqualified", &_11, 459, &_27$$8); + ZEPHIR_CALL_METHOD(&_24$$8, this_ptr, "_getqualified", &_11, 461, &_27$$8); zephir_check_call_status(); zephir_array_update_string(&_23$$8, SL("left"), &_24$$8, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_VAR(&_28$$8); @@ -2532,7 +2532,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_stringl_ex(&_28$$8, SL("type"), SL("qualified")); zephir_array_update_string(&_28$$8, SL("domain"), &referencedModelName, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_28$$8, SL("name"), &referencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_24$$8, this_ptr, "_getqualified", &_11, 459, &_28$$8); + ZEPHIR_CALL_METHOD(&_24$$8, this_ptr, "_getqualified", &_11, 461, &_28$$8); zephir_check_call_status(); zephir_array_update_string(&_23$$8, SL("right"), &_24$$8, PH_COPY | PH_SEPARATE); zephir_array_fast_append(&_22$$8, &_23$$8); @@ -2730,7 +2730,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { { ZEPHIR_INIT_NVAR(&joinItem); ZVAL_COPY(&joinItem, _1); - ZEPHIR_CALL_METHOD(&joinData, this_ptr, "_getjoin", &_3, 463, &manager, &joinItem); + ZEPHIR_CALL_METHOD(&joinData, this_ptr, "_getjoin", &_3, 465, &manager, &joinItem); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&source); zephir_array_fetch_string(&source, &joinData, SL("source"), PH_NOISY, "phalcon/Mvc/Model/Query.zep", 1633 TSRMLS_CC); @@ -2744,7 +2744,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { zephir_create_array(&completeSource, 2, 0 TSRMLS_CC); zephir_array_fast_append(&completeSource, &source); zephir_array_fast_append(&completeSource, &schema); - ZEPHIR_CALL_METHOD(&joinType, this_ptr, "_getjointype", &_4, 464, &joinItem); + ZEPHIR_CALL_METHOD(&joinType, this_ptr, "_getjointype", &_4, 466, &joinItem); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&aliasExpr); if (zephir_array_isset_string_fetch(&aliasExpr, &joinItem, SL("alias"), 0)) { @@ -2808,7 +2808,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { } ZEPHIR_CALL_METHOD(&joinItem, &selectJoins, "current", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&joinData, this_ptr, "_getjoin", &_3, 463, &manager, &joinItem); + ZEPHIR_CALL_METHOD(&joinData, this_ptr, "_getjoin", &_3, 465, &manager, &joinItem); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&source); zephir_array_fetch_string(&source, &joinData, SL("source"), PH_NOISY, "phalcon/Mvc/Model/Query.zep", 1633 TSRMLS_CC); @@ -2823,7 +2823,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { zephir_array_fast_append(&_12$$12, &source); zephir_array_fast_append(&_12$$12, &schema); ZEPHIR_CPY_WRT(&completeSource, &_12$$12); - ZEPHIR_CALL_METHOD(&joinType, this_ptr, "_getjointype", &_4, 464, &joinItem); + ZEPHIR_CALL_METHOD(&joinType, this_ptr, "_getjointype", &_4, 466, &joinItem); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&aliasExpr); if (zephir_array_isset_string_fetch(&aliasExpr, &joinItem, SL("alias"), 0)) { @@ -2900,7 +2900,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ZVAL_COPY(&joinItem, _19); ZEPHIR_OBS_NVAR(&joinExpr); if (zephir_array_isset_string_fetch(&joinExpr, &joinItem, SL("conditions"), 0)) { - ZEPHIR_CALL_METHOD(&_23$$18, this_ptr, "_getexpression", &_24, 457, &joinExpr); + ZEPHIR_CALL_METHOD(&_23$$18, this_ptr, "_getexpression", &_24, 459, &joinExpr); zephir_check_call_status(); zephir_array_update_zval(&joinPreCondition, &joinAliasName, &_23$$18, PH_COPY | PH_SEPARATE); } @@ -2920,7 +2920,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { zephir_check_call_status(); ZEPHIR_OBS_NVAR(&joinExpr); if (zephir_array_isset_string_fetch(&joinExpr, &joinItem, SL("conditions"), 0)) { - ZEPHIR_CALL_METHOD(&_25$$20, this_ptr, "_getexpression", &_24, 457, &joinExpr); + ZEPHIR_CALL_METHOD(&_25$$20, this_ptr, "_getexpression", &_24, 459, &joinExpr); zephir_check_call_status(); zephir_array_update_zval(&joinPreCondition, &joinAliasName, &_25$$20, PH_COPY | PH_SEPARATE); } @@ -3091,10 +3091,10 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ZEPHIR_CALL_METHOD(&_55$$32, &relation, "isthrough", NULL, 0); zephir_check_call_status(); if (!(zephir_is_true(&_55$$32))) { - ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getsinglejoin", &_56, 465, &joinType, &joinSource, &modelAlias, &joinAlias, &relation); + ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getsinglejoin", &_56, 467, &joinType, &joinSource, &modelAlias, &joinAlias, &relation); zephir_check_call_status(); } else { - ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getmultijoin", &_57, 466, &joinType, &joinSource, &modelAlias, &joinAlias, &relation); + ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getmultijoin", &_57, 468, &joinType, &joinSource, &modelAlias, &joinAlias, &relation); zephir_check_call_status(); } if (zephir_array_isset_long(&sqlJoin, 0)) { @@ -3197,10 +3197,10 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ZEPHIR_CALL_METHOD(&_69$$46, &relation, "isthrough", NULL, 0); zephir_check_call_status(); if (!(zephir_is_true(&_69$$46))) { - ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getsinglejoin", &_56, 465, &joinType, &joinSource, &modelAlias, &joinAlias, &relation); + ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getsinglejoin", &_56, 467, &joinType, &joinSource, &modelAlias, &joinAlias, &relation); zephir_check_call_status(); } else { - ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getmultijoin", &_57, 466, &joinType, &joinSource, &modelAlias, &joinAlias, &relation); + ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getmultijoin", &_57, 468, &joinType, &joinSource, &modelAlias, &joinAlias, &relation); zephir_check_call_status(); } if (zephir_array_isset_long(&sqlJoin, 0)) { @@ -3321,10 +3321,10 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ZEPHIR_CALL_METHOD(&_85$$61, &relation, "isthrough", NULL, 0); zephir_check_call_status(); if (!(zephir_is_true(&_85$$61))) { - ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getsinglejoin", &_56, 465, &joinType, &joinSource, &modelAlias, &joinAlias, &relation); + ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getsinglejoin", &_56, 467, &joinType, &joinSource, &modelAlias, &joinAlias, &relation); zephir_check_call_status(); } else { - ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getmultijoin", &_57, 466, &joinType, &joinSource, &modelAlias, &joinAlias, &relation); + ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getmultijoin", &_57, 468, &joinType, &joinSource, &modelAlias, &joinAlias, &relation); zephir_check_call_status(); } if (zephir_array_isset_long(&sqlJoin, 0)) { @@ -3427,10 +3427,10 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ZEPHIR_CALL_METHOD(&_97$$75, &relation, "isthrough", NULL, 0); zephir_check_call_status(); if (!(zephir_is_true(&_97$$75))) { - ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getsinglejoin", &_56, 465, &joinType, &joinSource, &modelAlias, &joinAlias, &relation); + ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getsinglejoin", &_56, 467, &joinType, &joinSource, &modelAlias, &joinAlias, &relation); zephir_check_call_status(); } else { - ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getmultijoin", &_57, 466, &joinType, &joinSource, &modelAlias, &joinAlias, &relation); + ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getmultijoin", &_57, 468, &joinType, &joinSource, &modelAlias, &joinAlias, &relation); zephir_check_call_status(); } if (zephir_array_isset_long(&sqlJoin, 0)) { @@ -3554,7 +3554,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getOrderClause) { ZEPHIR_INIT_NVAR(&orderItem); ZVAL_COPY(&orderItem, _0); zephir_array_fetch_string(&_2$$5, &orderItem, SL("column"), PH_NOISY | PH_READONLY, "phalcon/Mvc/Model/Query.zep", 1961 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&orderPartExpr, this_ptr, "_getexpression", &_3, 457, &_2$$5); + ZEPHIR_CALL_METHOD(&orderPartExpr, this_ptr, "_getexpression", &_3, 459, &_2$$5); zephir_check_call_status(); if (zephir_array_isset_string_fetch(&orderSort, &orderItem, SL("sort"), 1)) { if (ZEPHIR_IS_LONG(&orderSort, 327)) { @@ -3593,7 +3593,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getOrderClause) { ZEPHIR_CALL_METHOD(&orderItem, &orderColumns, "current", NULL, 0); zephir_check_call_status(); zephir_array_fetch_string(&_8$$10, &orderItem, SL("column"), PH_NOISY | PH_READONLY, "phalcon/Mvc/Model/Query.zep", 1961 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&orderPartExpr, this_ptr, "_getexpression", &_3, 457, &_8$$10); + ZEPHIR_CALL_METHOD(&orderPartExpr, this_ptr, "_getexpression", &_3, 459, &_8$$10); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&orderSort); if (zephir_array_isset_string_fetch(&orderSort, &orderItem, SL("sort"), 0)) { @@ -3666,7 +3666,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getGroupClause) { { ZEPHIR_INIT_NVAR(&groupItem); ZVAL_COPY(&groupItem, _0$$3); - ZEPHIR_CALL_METHOD(&_2$$4, this_ptr, "_getexpression", &_3, 457, &groupItem); + ZEPHIR_CALL_METHOD(&_2$$4, this_ptr, "_getexpression", &_3, 459, &groupItem); zephir_check_call_status(); zephir_array_append(&groupParts, &_2$$4, PH_SEPARATE, "phalcon/Mvc/Model/Query.zep", 1997); } ZEND_HASH_FOREACH_END(); @@ -3681,7 +3681,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getGroupClause) { } ZEPHIR_CALL_METHOD(&groupItem, &group, "current", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_4$$5, this_ptr, "_getexpression", &_3, 457, &groupItem); + ZEPHIR_CALL_METHOD(&_4$$5, this_ptr, "_getexpression", &_3, 459, &groupItem); zephir_check_call_status(); zephir_array_append(&groupParts, &_4$$5, PH_SEPARATE, "phalcon/Mvc/Model/Query.zep", 1997); ZEPHIR_CALL_METHOD(NULL, &group, "next", NULL, 0); @@ -3692,7 +3692,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getGroupClause) { } else { ZEPHIR_INIT_VAR(&_5$$6); zephir_create_array(&_5$$6, 1, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_6$$6, this_ptr, "_getexpression", &_3, 457, &group); + ZEPHIR_CALL_METHOD(&_6$$6, this_ptr, "_getexpression", &_3, 459, &group); zephir_check_call_status(); zephir_array_fast_append(&_5$$6, &_6$$6); ZEPHIR_CPY_WRT(&groupParts, &_5$$6); @@ -3729,13 +3729,13 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getLimitClause) { array_init(&limit); ZEPHIR_OBS_VAR(&number); if (zephir_array_isset_string_fetch(&number, &limitClause, SL("number"), 0)) { - ZEPHIR_CALL_METHOD(&_0$$3, this_ptr, "_getexpression", NULL, 457, &number); + ZEPHIR_CALL_METHOD(&_0$$3, this_ptr, "_getexpression", NULL, 459, &number); zephir_check_call_status(); zephir_array_update_string(&limit, SL("number"), &_0$$3, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(&offset); if (zephir_array_isset_string_fetch(&offset, &limitClause, SL("offset"), 0)) { - ZEPHIR_CALL_METHOD(&_1$$4, this_ptr, "_getexpression", NULL, 457, &offset); + ZEPHIR_CALL_METHOD(&_1$$4, this_ptr, "_getexpression", NULL, 459, &offset); zephir_check_call_status(); zephir_array_update_string(&limit, SL("offset"), &_1$$4, PH_COPY | PH_SEPARATE); } @@ -4526,12 +4526,12 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { zephir_array_update_string(&select, SL("joins"), &automaticJoins, PH_COPY | PH_SEPARATE); } } - ZEPHIR_CALL_METHOD(&sqlJoins, this_ptr, "_getjoins", NULL, 467, &select); + ZEPHIR_CALL_METHOD(&sqlJoins, this_ptr, "_getjoins", NULL, 469, &select); zephir_check_call_status(); } else { if (zephir_fast_count_int(&automaticJoins TSRMLS_CC)) { zephir_array_update_string(&select, SL("joins"), &automaticJoins, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&sqlJoins, this_ptr, "_getjoins", NULL, 467, &select); + ZEPHIR_CALL_METHOD(&sqlJoins, this_ptr, "_getjoins", NULL, 469, &select); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(&sqlJoins); @@ -4547,7 +4547,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { { ZEPHIR_INIT_NVAR(&column); ZVAL_COPY(&column, _82); - ZEPHIR_CALL_METHOD(&_84$$60, this_ptr, "_getselectcolumn", &_85, 468, &column); + ZEPHIR_CALL_METHOD(&_84$$60, this_ptr, "_getselectcolumn", &_85, 470, &column); zephir_check_call_status(); zephir_is_iterable(&_84$$60, 0, "phalcon/Mvc/Model/Query.zep", 2346); if (Z_TYPE_P(&_84$$60) == IS_ARRAY) { @@ -4648,7 +4648,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { } ZEPHIR_CALL_METHOD(&column, &selectColumns, "current", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_102$$77, this_ptr, "_getselectcolumn", &_85, 468, &column); + ZEPHIR_CALL_METHOD(&_102$$77, this_ptr, "_getselectcolumn", &_85, 470, &column); zephir_check_call_status(); zephir_is_iterable(&_102$$77, 0, "phalcon/Mvc/Model/Query.zep", 2346); if (Z_TYPE_P(&_102$$77) == IS_ARRAY) { @@ -4759,31 +4759,31 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { } ZEPHIR_OBS_VAR(&where); if (zephir_array_isset_string_fetch(&where, ast, SL("where"), 0)) { - ZEPHIR_CALL_METHOD(&_120$$96, this_ptr, "_getexpression", NULL, 457, &where); + ZEPHIR_CALL_METHOD(&_120$$96, this_ptr, "_getexpression", NULL, 459, &where); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("where"), &_120$$96, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(&groupBy); if (zephir_array_isset_string_fetch(&groupBy, ast, SL("groupBy"), 0)) { - ZEPHIR_CALL_METHOD(&_121$$97, this_ptr, "_getgroupclause", NULL, 469, &groupBy); + ZEPHIR_CALL_METHOD(&_121$$97, this_ptr, "_getgroupclause", NULL, 471, &groupBy); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("group"), &_121$$97, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(&having); if (zephir_array_isset_string_fetch(&having, ast, SL("having"), 0)) { - ZEPHIR_CALL_METHOD(&_122$$98, this_ptr, "_getexpression", NULL, 457, &having); + ZEPHIR_CALL_METHOD(&_122$$98, this_ptr, "_getexpression", NULL, 459, &having); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("having"), &_122$$98, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(&order); if (zephir_array_isset_string_fetch(&order, ast, SL("orderBy"), 0)) { - ZEPHIR_CALL_METHOD(&_123$$99, this_ptr, "_getorderclause", NULL, 470, &order); + ZEPHIR_CALL_METHOD(&_123$$99, this_ptr, "_getorderclause", NULL, 472, &order); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("order"), &_123$$99, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(&limit); if (zephir_array_isset_string_fetch(&limit, ast, SL("limit"), 0)) { - ZEPHIR_CALL_METHOD(&_124$$100, this_ptr, "_getlimitclause", NULL, 471, &limit); + ZEPHIR_CALL_METHOD(&_124$$100, this_ptr, "_getlimitclause", NULL, 473, &limit); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("limit"), &_124$$100, PH_COPY | PH_SEPARATE); } @@ -4909,7 +4909,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareInsert) { } else { ZVAL_BOOL(&_8$$7, 0); } - ZEPHIR_CALL_METHOD(&_7$$7, this_ptr, "_getexpression", &_9, 457, &exprValue, &_8$$7); + ZEPHIR_CALL_METHOD(&_7$$7, this_ptr, "_getexpression", &_9, 459, &exprValue, &_8$$7); zephir_check_call_status(); zephir_array_update_string(&_5$$7, SL("value"), &_7$$7, PH_COPY | PH_SEPARATE); zephir_array_append(&exprValues, &_5$$7, PH_SEPARATE, "phalcon/Mvc/Model/Query.zep", 2456); @@ -4935,7 +4935,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareInsert) { } else { ZVAL_BOOL(&_13$$8, 0); } - ZEPHIR_CALL_METHOD(&_12$$8, this_ptr, "_getexpression", &_9, 457, &exprValue, &_13$$8); + ZEPHIR_CALL_METHOD(&_12$$8, this_ptr, "_getexpression", &_9, 459, &exprValue, &_13$$8); zephir_check_call_status(); zephir_array_update_string(&_10$$8, SL("value"), &_12$$8, PH_COPY | PH_SEPARATE); zephir_array_append(&exprValues, &_10$$8, PH_SEPARATE, "phalcon/Mvc/Model/Query.zep", 2456); @@ -5254,7 +5254,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { } else { ZVAL_BOOL(&_13$$20, 0); } - ZEPHIR_CALL_METHOD(&_11$$20, this_ptr, "_getexpression", &_14, 457, &_12$$20, &_13$$20); + ZEPHIR_CALL_METHOD(&_11$$20, this_ptr, "_getexpression", &_14, 459, &_12$$20, &_13$$20); zephir_check_call_status(); zephir_array_append(&sqlFields, &_11$$20, PH_SEPARATE, "phalcon/Mvc/Model/Query.zep", 2597); ZEPHIR_OBS_NVAR(&exprColumn); @@ -5269,7 +5269,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { } else { ZVAL_BOOL(&_18$$20, 0); } - ZEPHIR_CALL_METHOD(&_17$$20, this_ptr, "_getexpression", &_14, 457, &exprColumn, &_18$$20); + ZEPHIR_CALL_METHOD(&_17$$20, this_ptr, "_getexpression", &_14, 459, &exprColumn, &_18$$20); zephir_check_call_status(); zephir_array_update_string(&_15$$20, SL("value"), &_17$$20, PH_COPY | PH_SEPARATE); zephir_array_append(&sqlValues, &_15$$20, PH_SEPARATE, "phalcon/Mvc/Model/Query.zep", 2602); @@ -5291,7 +5291,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { } else { ZVAL_BOOL(&_21$$21, 0); } - ZEPHIR_CALL_METHOD(&_19$$21, this_ptr, "_getexpression", &_14, 457, &_20$$21, &_21$$21); + ZEPHIR_CALL_METHOD(&_19$$21, this_ptr, "_getexpression", &_14, 459, &_20$$21, &_21$$21); zephir_check_call_status(); zephir_array_append(&sqlFields, &_19$$21, PH_SEPARATE, "phalcon/Mvc/Model/Query.zep", 2597); ZEPHIR_OBS_NVAR(&exprColumn); @@ -5306,7 +5306,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { } else { ZVAL_BOOL(&_25$$21, 0); } - ZEPHIR_CALL_METHOD(&_24$$21, this_ptr, "_getexpression", &_14, 457, &exprColumn, &_25$$21); + ZEPHIR_CALL_METHOD(&_24$$21, this_ptr, "_getexpression", &_14, 459, &exprColumn, &_25$$21); zephir_check_call_status(); zephir_array_update_string(&_22$$21, SL("value"), &_24$$21, PH_COPY | PH_SEPARATE); zephir_array_append(&sqlValues, &_22$$21, PH_SEPARATE, "phalcon/Mvc/Model/Query.zep", 2602); @@ -5324,13 +5324,13 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { ZEPHIR_OBS_VAR(&where); if (zephir_array_isset_string_fetch(&where, &ast, SL("where"), 0)) { ZVAL_BOOL(&_27$$22, 1); - ZEPHIR_CALL_METHOD(&_26$$22, this_ptr, "_getexpression", &_14, 457, &where, &_27$$22); + ZEPHIR_CALL_METHOD(&_26$$22, this_ptr, "_getexpression", &_14, 459, &where, &_27$$22); zephir_check_call_status(); zephir_array_update_string(&sqlUpdate, SL("where"), &_26$$22, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(&limit); if (zephir_array_isset_string_fetch(&limit, &ast, SL("limit"), 0)) { - ZEPHIR_CALL_METHOD(&_28$$23, this_ptr, "_getlimitclause", NULL, 471, &limit); + ZEPHIR_CALL_METHOD(&_28$$23, this_ptr, "_getlimitclause", NULL, 473, &limit); zephir_check_call_status(); zephir_array_update_string(&sqlUpdate, SL("limit"), &_28$$23, PH_COPY | PH_SEPARATE); } @@ -5529,13 +5529,13 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareDelete) { ZEPHIR_OBS_VAR(&where); if (zephir_array_isset_string_fetch(&where, &ast, SL("where"), 0)) { ZVAL_BOOL(&_10$$17, 1); - ZEPHIR_CALL_METHOD(&_9$$17, this_ptr, "_getexpression", NULL, 457, &where, &_10$$17); + ZEPHIR_CALL_METHOD(&_9$$17, this_ptr, "_getexpression", NULL, 459, &where, &_10$$17); zephir_check_call_status(); zephir_array_update_string(&sqlDelete, SL("where"), &_9$$17, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(&limit); if (zephir_array_isset_string_fetch(&limit, &ast, SL("limit"), 0)) { - ZEPHIR_CALL_METHOD(&_11$$18, this_ptr, "_getlimitclause", NULL, 471, &limit); + ZEPHIR_CALL_METHOD(&_11$$18, this_ptr, "_getlimitclause", NULL, 473, &limit); zephir_check_call_status(); zephir_array_update_string(&sqlDelete, SL("limit"), &_11$$18, PH_COPY | PH_SEPARATE); } @@ -5602,22 +5602,22 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, parse) { zephir_update_property_zval(this_ptr, SL("type"), &type); do { if (ZEPHIR_IS_LONG(&type, 309)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareselect", NULL, 462); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareselect", NULL, 464); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(&type, 306)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareinsert", NULL, 472); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareinsert", NULL, 474); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(&type, 300)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareupdate", NULL, 473); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareupdate", NULL, 475); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(&type, 303)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_preparedelete", NULL, 474); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_preparedelete", NULL, 476); zephir_check_call_status(); break; } @@ -6528,7 +6528,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { } ZEPHIR_INIT_VAR(&_93$$97); ZVAL_STRING(&_93$$97, "Phalcon\\Mvc\\Model\\ResultsetInterface"); - ZEPHIR_CALL_FUNCTION(&_94$$97, "is_subclass_of", NULL, 450, &resultsetClassName, &_93$$97); + ZEPHIR_CALL_FUNCTION(&_94$$97, "is_subclass_of", NULL, 452, &resultsetClassName, &_93$$97); zephir_check_call_status(); if (UNEXPECTED(!zephir_is_true(&_94$$97))) { ZEPHIR_INIT_VAR(&_95$$99); @@ -6565,12 +6565,12 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { } else { ZVAL_BOOL(&_100$$83, 0); } - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 475, &simpleColumnMap, &resultObject, &resultData, &cache, &_100$$83); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 477, &simpleColumnMap, &resultObject, &resultData, &cache, &_100$$83); zephir_check_call_status(); RETURN_MM(); } object_init_ex(return_value, phalcon_mvc_model_resultset_complex_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 476, &columns1, &resultData, &cache); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 478, &columns1, &resultData, &cache); zephir_check_call_status(); RETURN_MM(); @@ -6861,7 +6861,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _executeInsert) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_CALL_METHOD(&_34, &insertModel, "create", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 477, &_34, &insertModel); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 479, &_34, &insertModel); zephir_check_call_status(); RETURN_MM(); @@ -7118,12 +7118,12 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { } ZEPHIR_INIT_NVAR(&field); ZEPHIR_INIT_NVAR(&number); - ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 478, &model, &intermediate, &selectBindParams, &selectBindTypes); + ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 480, &model, &intermediate, &selectBindParams, &selectBindTypes); zephir_check_call_status(); if (!(zephir_fast_count_int(&records TSRMLS_CC))) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZVAL_BOOL(&_28$$23, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 477, &_28$$23); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 479, &_28$$23); zephir_check_call_status(); RETURN_MM(); } @@ -7150,7 +7150,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { zephir_check_call_status(); object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZVAL_BOOL(&_33$$25, 0); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 477, &_33$$25, &record); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 479, &_33$$25, &record); zephir_check_call_status(); RETURN_MM(); } @@ -7161,7 +7161,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { zephir_check_call_status(); object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZVAL_BOOL(&_35, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 477, &_35); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 479, &_35); zephir_check_call_status(); RETURN_MM(); @@ -7220,12 +7220,12 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _executeDelete) { ZEPHIR_CALL_METHOD(&model, &_1$$4, "load", NULL, 0, &modelName); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 478, &model, &intermediate, &bindParams, &bindTypes); + ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 480, &model, &intermediate, &bindParams, &bindTypes); zephir_check_call_status(); if (!(zephir_fast_count_int(&records TSRMLS_CC))) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZVAL_BOOL(&_2$$5, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 477, &_2$$5); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 479, &_2$$5); zephir_check_call_status(); RETURN_MM(); } @@ -7250,7 +7250,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _executeDelete) { zephir_check_call_status(); object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZVAL_BOOL(&_7$$7, 0); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 477, &_7$$7, &record); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 479, &_7$$7, &record); zephir_check_call_status(); RETURN_MM(); } @@ -7261,7 +7261,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _executeDelete) { zephir_check_call_status(); object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZVAL_BOOL(&_9, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 477, &_9); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 479, &_9); zephir_check_call_status(); RETURN_MM(); @@ -7333,17 +7333,17 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getRelatedRecords) { } ZEPHIR_INIT_VAR(&query); object_init_ex(&query, phalcon_mvc_model_query_ce); - ZEPHIR_CALL_METHOD(NULL, &query, "__construct", NULL, 479); + ZEPHIR_CALL_METHOD(NULL, &query, "__construct", NULL, 481); zephir_check_call_status(); zephir_read_property(&_5, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(NULL, &query, "setdi", NULL, 480, &_5); + ZEPHIR_CALL_METHOD(NULL, &query, "setdi", NULL, 482, &_5); zephir_check_call_status(); ZVAL_LONG(&_6, 309); - ZEPHIR_CALL_METHOD(NULL, &query, "settype", NULL, 481, &_6); + ZEPHIR_CALL_METHOD(NULL, &query, "settype", NULL, 483, &_6); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &query, "setintermediate", NULL, 482, &selectIr); + ZEPHIR_CALL_METHOD(NULL, &query, "setintermediate", NULL, 484, &selectIr); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_METHOD(&query, "execute", NULL, 483, &bindParams, &bindTypes); + ZEPHIR_RETURN_CALL_METHOD(&query, "execute", NULL, 485, &bindParams, &bindTypes); zephir_check_call_status(); RETURN_MM(); @@ -7478,22 +7478,22 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, execute) { ZEPHIR_CPY_WRT(&type, &_0); do { if (ZEPHIR_IS_LONG(&type, 309)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeselect", NULL, 484, &intermediate, &mergedParams, &mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeselect", NULL, 486, &intermediate, &mergedParams, &mergedTypes); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(&type, 306)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeinsert", NULL, 485, &intermediate, &mergedParams, &mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeinsert", NULL, 487, &intermediate, &mergedParams, &mergedTypes); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(&type, 300)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeupdate", NULL, 486, &intermediate, &mergedParams, &mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeupdate", NULL, 488, &intermediate, &mergedParams, &mergedTypes); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(&type, 303)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executedelete", NULL, 487, &intermediate, &mergedParams, &mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executedelete", NULL, 489, &intermediate, &mergedParams, &mergedTypes); zephir_check_call_status(); break; } @@ -7565,7 +7565,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, getSingleResult) { zephir_check_call_status(); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_1, this_ptr, "execute", NULL, 483, &bindParams, &bindTypes); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "execute", NULL, 485, &bindParams, &bindTypes); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(&_1, "getfirst", NULL, 0); zephir_check_call_status(); @@ -7842,7 +7842,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, getSql) { zephir_read_property(&_1$$3, this_ptr, SL("bindParams"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_2$$3, this_ptr, SL("bindTypes"), PH_NOISY_CC | PH_READONLY); ZVAL_BOOL(&_3$$3, 1); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_executeselect", NULL, 484, &intermediate, &_1$$3, &_2$$3, &_3$$3); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_executeselect", NULL, 486, &intermediate, &_1$$3, &_2$$3, &_3$$3); zephir_check_call_status(); RETURN_MM(); } diff --git a/ext/phalcon/mvc/model/query/builder.zep.c b/ext/phalcon/mvc/model/query/builder.zep.c index 808293a2e30..7de1f37d2c5 100644 --- a/ext/phalcon/mvc/model/query/builder.zep.c +++ b/ext/phalcon/mvc/model/query/builder.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -1226,9 +1226,9 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { } else { ZEPHIR_CPY_WRT(&attributeField, &firstPrimaryKey); } - ZEPHIR_CALL_METHOD(&_8$$13, this_ptr, "autoescape", NULL, 488, &model); + ZEPHIR_CALL_METHOD(&_8$$13, this_ptr, "autoescape", NULL, 490, &model); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_9$$13, this_ptr, "autoescape", NULL, 488, &attributeField); + ZEPHIR_CALL_METHOD(&_9$$13, this_ptr, "autoescape", NULL, 490, &attributeField); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_10$$13); ZEPHIR_CONCAT_VSVSV(&_10$$13, &_8$$13, ".", &_9$$13, " = ", &conditions); @@ -1275,7 +1275,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { if (Z_TYPE_P(&columnAlias) == IS_LONG) { zephir_array_append(&selectedColumns, &column, PH_SEPARATE, "phalcon/Mvc/Model/Query/Builder.zep", 719); } else { - ZEPHIR_CALL_METHOD(&_15$$28, this_ptr, "autoescape", NULL, 488, &columnAlias); + ZEPHIR_CALL_METHOD(&_15$$28, this_ptr, "autoescape", NULL, 490, &columnAlias); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_16$$28); ZEPHIR_CONCAT_VSV(&_16$$28, &column, " AS ", &_15$$28); @@ -1298,7 +1298,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { if (Z_TYPE_P(&columnAlias) == IS_LONG) { zephir_array_append(&selectedColumns, &column, PH_SEPARATE, "phalcon/Mvc/Model/Query/Builder.zep", 719); } else { - ZEPHIR_CALL_METHOD(&_17$$31, this_ptr, "autoescape", NULL, 488, &columnAlias); + ZEPHIR_CALL_METHOD(&_17$$31, this_ptr, "autoescape", NULL, 490, &columnAlias); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_18$$31); ZEPHIR_CONCAT_VSV(&_18$$31, &column, " AS ", &_17$$31); @@ -1334,11 +1334,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { ZVAL_COPY(&model, _20$$34); ZEPHIR_INIT_NVAR(&selectedColumn); if (Z_TYPE_P(&modelColumnAlias) == IS_LONG) { - ZEPHIR_CALL_METHOD(&_24$$36, this_ptr, "autoescape", NULL, 488, &model); + ZEPHIR_CALL_METHOD(&_24$$36, this_ptr, "autoescape", NULL, 490, &model); zephir_check_call_status(); ZEPHIR_CONCAT_VS(&selectedColumn, &_24$$36, ".*"); } else { - ZEPHIR_CALL_METHOD(&_25$$37, this_ptr, "autoescape", NULL, 488, &modelColumnAlias); + ZEPHIR_CALL_METHOD(&_25$$37, this_ptr, "autoescape", NULL, 490, &modelColumnAlias); zephir_check_call_status(); ZEPHIR_CONCAT_VS(&selectedColumn, &_25$$37, ".*"); } @@ -1359,11 +1359,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(&selectedColumn); if (Z_TYPE_P(&modelColumnAlias) == IS_LONG) { - ZEPHIR_CALL_METHOD(&_26$$39, this_ptr, "autoescape", NULL, 488, &model); + ZEPHIR_CALL_METHOD(&_26$$39, this_ptr, "autoescape", NULL, 490, &model); zephir_check_call_status(); ZEPHIR_CONCAT_VS(&selectedColumn, &_26$$39, ".*"); } else { - ZEPHIR_CALL_METHOD(&_27$$40, this_ptr, "autoescape", NULL, 488, &modelColumnAlias); + ZEPHIR_CALL_METHOD(&_27$$40, this_ptr, "autoescape", NULL, 490, &modelColumnAlias); zephir_check_call_status(); ZEPHIR_CONCAT_VS(&selectedColumn, &_27$$40, ".*"); } @@ -1378,7 +1378,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { zephir_fast_join_str(&_28$$34, SL(", "), &selectedColumns TSRMLS_CC); zephir_concat_self(&phql, &_28$$34 TSRMLS_CC); } else { - ZEPHIR_CALL_METHOD(&_29$$41, this_ptr, "autoescape", NULL, 488, &models); + ZEPHIR_CALL_METHOD(&_29$$41, this_ptr, "autoescape", NULL, 490, &models); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_30$$41); ZEPHIR_CONCAT_VS(&_30$$41, &_29$$41, ".*"); @@ -1401,14 +1401,14 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { ZEPHIR_INIT_NVAR(&model); ZVAL_COPY(&model, _31$$42); if (Z_TYPE_P(&modelAlias) == IS_STRING) { - ZEPHIR_CALL_METHOD(&_35$$44, this_ptr, "autoescape", NULL, 488, &model); + ZEPHIR_CALL_METHOD(&_35$$44, this_ptr, "autoescape", NULL, 490, &model); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_36$$44, this_ptr, "autoescape", NULL, 488, &modelAlias); + ZEPHIR_CALL_METHOD(&_36$$44, this_ptr, "autoescape", NULL, 490, &modelAlias); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&selectedModel); ZEPHIR_CONCAT_VSV(&selectedModel, &_35$$44, " AS ", &_36$$44); } else { - ZEPHIR_CALL_METHOD(&selectedModel, this_ptr, "autoescape", NULL, 488, &model); + ZEPHIR_CALL_METHOD(&selectedModel, this_ptr, "autoescape", NULL, 490, &model); zephir_check_call_status(); } zephir_array_append(&selectedModels, &selectedModel, PH_SEPARATE, "phalcon/Mvc/Model/Query/Builder.zep", 765); @@ -1427,14 +1427,14 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { ZEPHIR_CALL_METHOD(&model, &models, "current", NULL, 0); zephir_check_call_status(); if (Z_TYPE_P(&modelAlias) == IS_STRING) { - ZEPHIR_CALL_METHOD(&_37$$47, this_ptr, "autoescape", NULL, 488, &model); + ZEPHIR_CALL_METHOD(&_37$$47, this_ptr, "autoescape", NULL, 490, &model); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_38$$47, this_ptr, "autoescape", NULL, 488, &modelAlias); + ZEPHIR_CALL_METHOD(&_38$$47, this_ptr, "autoescape", NULL, 490, &modelAlias); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&selectedModel); ZEPHIR_CONCAT_VSV(&selectedModel, &_37$$47, " AS ", &_38$$47); } else { - ZEPHIR_CALL_METHOD(&selectedModel, this_ptr, "autoescape", NULL, 488, &model); + ZEPHIR_CALL_METHOD(&selectedModel, this_ptr, "autoescape", NULL, 490, &model); zephir_check_call_status(); } zephir_array_append(&selectedModels, &selectedModel, PH_SEPARATE, "phalcon/Mvc/Model/Query/Builder.zep", 765); @@ -1450,7 +1450,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { ZEPHIR_CONCAT_SV(&_40$$42, " FROM ", &_39$$42); zephir_concat_self(&phql, &_40$$42 TSRMLS_CC); } else { - ZEPHIR_CALL_METHOD(&_41$$49, this_ptr, "autoescape", NULL, 488, &models); + ZEPHIR_CALL_METHOD(&_41$$49, this_ptr, "autoescape", NULL, 490, &models); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_42$$49); ZEPHIR_CONCAT_SV(&_42$$49, " FROM ", &_41$$49); @@ -1474,20 +1474,20 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { ZEPHIR_OBS_NVAR(&joinType); zephir_array_fetch_long(&joinType, &join, 3, PH_NOISY, "phalcon/Mvc/Model/Query/Builder.zep", 798 TSRMLS_CC); if (zephir_is_true(&joinType)) { - ZEPHIR_CALL_METHOD(&_45$$52, this_ptr, "autoescape", NULL, 488, &joinModel); + ZEPHIR_CALL_METHOD(&_45$$52, this_ptr, "autoescape", NULL, 490, &joinModel); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_46$$52); ZEPHIR_CONCAT_SVSV(&_46$$52, " ", &joinType, " JOIN ", &_45$$52); zephir_concat_self(&phql, &_46$$52 TSRMLS_CC); } else { - ZEPHIR_CALL_METHOD(&_47$$53, this_ptr, "autoescape", NULL, 488, &joinModel); + ZEPHIR_CALL_METHOD(&_47$$53, this_ptr, "autoescape", NULL, 490, &joinModel); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_48$$53); ZEPHIR_CONCAT_SV(&_48$$53, " JOIN ", &_47$$53); zephir_concat_self(&phql, &_48$$53 TSRMLS_CC); } if (zephir_is_true(&joinAlias)) { - ZEPHIR_CALL_METHOD(&_49$$54, this_ptr, "autoescape", NULL, 488, &joinAlias); + ZEPHIR_CALL_METHOD(&_49$$54, this_ptr, "autoescape", NULL, 490, &joinAlias); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_50$$54); ZEPHIR_CONCAT_SV(&_50$$54, " AS ", &_49$$54); @@ -1519,20 +1519,20 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { ZEPHIR_OBS_NVAR(&joinType); zephir_array_fetch_long(&joinType, &join, 3, PH_NOISY, "phalcon/Mvc/Model/Query/Builder.zep", 798 TSRMLS_CC); if (zephir_is_true(&joinType)) { - ZEPHIR_CALL_METHOD(&_52$$57, this_ptr, "autoescape", NULL, 488, &joinModel); + ZEPHIR_CALL_METHOD(&_52$$57, this_ptr, "autoescape", NULL, 490, &joinModel); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_53$$57); ZEPHIR_CONCAT_SVSV(&_53$$57, " ", &joinType, " JOIN ", &_52$$57); zephir_concat_self(&phql, &_53$$57 TSRMLS_CC); } else { - ZEPHIR_CALL_METHOD(&_54$$58, this_ptr, "autoescape", NULL, 488, &joinModel); + ZEPHIR_CALL_METHOD(&_54$$58, this_ptr, "autoescape", NULL, 490, &joinModel); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_55$$58); ZEPHIR_CONCAT_SV(&_55$$58, " JOIN ", &_54$$58); zephir_concat_self(&phql, &_55$$58 TSRMLS_CC); } if (zephir_is_true(&joinAlias)) { - ZEPHIR_CALL_METHOD(&_56$$59, this_ptr, "autoescape", NULL, 488, &joinAlias); + ZEPHIR_CALL_METHOD(&_56$$59, this_ptr, "autoescape", NULL, 490, &joinAlias); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_57$$59); ZEPHIR_CONCAT_SV(&_57$$59, " AS ", &_56$$59); @@ -1567,7 +1567,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { { ZEPHIR_INIT_NVAR(&groupItem); ZVAL_COPY(&groupItem, _60$$63); - ZEPHIR_CALL_METHOD(&_62$$64, this_ptr, "autoescape", NULL, 488, &groupItem); + ZEPHIR_CALL_METHOD(&_62$$64, this_ptr, "autoescape", NULL, 490, &groupItem); zephir_check_call_status(); zephir_array_append(&groupItems, &_62$$64, PH_SEPARATE, "phalcon/Mvc/Model/Query/Builder.zep", 840); } ZEND_HASH_FOREACH_END(); @@ -1582,7 +1582,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { } ZEPHIR_CALL_METHOD(&groupItem, &group, "current", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_63$$65, this_ptr, "autoescape", NULL, 488, &groupItem); + ZEPHIR_CALL_METHOD(&_63$$65, this_ptr, "autoescape", NULL, 490, &groupItem); zephir_check_call_status(); zephir_array_append(&groupItems, &_63$$65, PH_SEPARATE, "phalcon/Mvc/Model/Query/Builder.zep", 840); ZEPHIR_CALL_METHOD(NULL, &group, "next", NULL, 0); @@ -1625,7 +1625,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { ZEPHIR_INIT_NVAR(&itemExplode$$72); zephir_fast_explode_str(&itemExplode$$72, SL(" "), &orderItem, LONG_MAX TSRMLS_CC); zephir_array_fetch_long(&_70$$72, &itemExplode$$72, 0, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model/Query/Builder.zep", 879 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_69$$72, this_ptr, "autoescape", NULL, 488, &_70$$72); + ZEPHIR_CALL_METHOD(&_69$$72, this_ptr, "autoescape", NULL, 490, &_70$$72); zephir_check_call_status(); zephir_array_fetch_long(&_71$$72, &itemExplode$$72, 1, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model/Query/Builder.zep", 879 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_72$$72); @@ -1633,7 +1633,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { zephir_array_append(&orderItems, &_72$$72, PH_SEPARATE, "phalcon/Mvc/Model/Query/Builder.zep", 879); continue; } - ZEPHIR_CALL_METHOD(&_73$$70, this_ptr, "autoescape", NULL, 488, &orderItem); + ZEPHIR_CALL_METHOD(&_73$$70, this_ptr, "autoescape", NULL, 490, &orderItem); zephir_check_call_status(); zephir_array_append(&orderItems, &_73$$70, PH_SEPARATE, "phalcon/Mvc/Model/Query/Builder.zep", 884); } ZEND_HASH_FOREACH_END(); @@ -1656,7 +1656,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { ZEPHIR_INIT_NVAR(&itemExplode$$75); zephir_fast_explode_str(&itemExplode$$75, SL(" "), &orderItem, LONG_MAX TSRMLS_CC); zephir_array_fetch_long(&_75$$75, &itemExplode$$75, 0, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model/Query/Builder.zep", 879 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_74$$75, this_ptr, "autoescape", NULL, 488, &_75$$75); + ZEPHIR_CALL_METHOD(&_74$$75, this_ptr, "autoescape", NULL, 490, &_75$$75); zephir_check_call_status(); zephir_array_fetch_long(&_76$$75, &itemExplode$$75, 1, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model/Query/Builder.zep", 879 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_77$$75); @@ -1664,7 +1664,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { zephir_array_append(&orderItems, &_77$$75, PH_SEPARATE, "phalcon/Mvc/Model/Query/Builder.zep", 879); continue; } - ZEPHIR_CALL_METHOD(&_78$$73, this_ptr, "autoescape", NULL, 488, &orderItem); + ZEPHIR_CALL_METHOD(&_78$$73, this_ptr, "autoescape", NULL, 490, &orderItem); zephir_check_call_status(); zephir_array_append(&orderItems, &_78$$73, PH_SEPARATE, "phalcon/Mvc/Model/Query/Builder.zep", 884); ZEPHIR_CALL_METHOD(NULL, &order, "next", NULL, 0); @@ -1784,7 +1784,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getQuery) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&phql, this_ptr, "getphql", NULL, 489); + ZEPHIR_CALL_METHOD(&phql, this_ptr, "getphql", NULL, 491); zephir_check_call_status(); zephir_read_property(&_0, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&container, &_0); diff --git a/ext/phalcon/mvc/model/query/builderinterface.zep.c b/ext/phalcon/mvc/model/query/builderinterface.zep.c index 5602d6dd0f9..980945a82bf 100644 --- a/ext/phalcon/mvc/model/query/builderinterface.zep.c +++ b/ext/phalcon/mvc/model/query/builderinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/model/query/lang.zep.c b/ext/phalcon/mvc/model/query/lang.zep.c index 2d7935e0e35..fcafb53ca77 100644 --- a/ext/phalcon/mvc/model/query/lang.zep.c +++ b/ext/phalcon/mvc/model/query/lang.zep.c @@ -25,7 +25,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/model/query/parser.php5.lemon b/ext/phalcon/mvc/model/query/parser.php5.lemon index 1c169495af6..a7f62590774 100644 --- a/ext/phalcon/mvc/model/query/parser.php5.lemon +++ b/ext/phalcon/mvc/model/query/parser.php5.lemon @@ -1,21 +1,12 @@ -/* - +------------------------------------------------------------------------+ - | Phalcon Framework | - +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 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 | - +------------------------------------------------------------------------+ -*/ +/** + * This file is part of the Phalcon Framework. + * + * (c) Phalcon Team + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ %token_prefix PHQL_ %token_type {phql_parser_token*} diff --git a/ext/phalcon/mvc/model/query/parser.php7.lemon b/ext/phalcon/mvc/model/query/parser.php7.lemon index 9d6fb30ee4e..8d6a1fc5e01 100644 --- a/ext/phalcon/mvc/model/query/parser.php7.lemon +++ b/ext/phalcon/mvc/model/query/parser.php7.lemon @@ -1,21 +1,12 @@ -/* - +------------------------------------------------------------------------+ - | Phalcon Framework | - +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 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 | - +------------------------------------------------------------------------+ -*/ +/** + * This file is part of the Phalcon Framework. + * + * (c) Phalcon Team + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ %token_prefix PHQL_ %token_type {phql_parser_token*} diff --git a/ext/phalcon/mvc/model/query/scanner.re b/ext/phalcon/mvc/model/query/scanner.re index cdad1da8ede..cd106403b70 100644 --- a/ext/phalcon/mvc/model/query/scanner.re +++ b/ext/phalcon/mvc/model/query/scanner.re @@ -1,21 +1,12 @@ -/* - +------------------------------------------------------------------------+ - | Phalcon Framework | - +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 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 | - +------------------------------------------------------------------------+ -*/ +/** + * This file is part of the Phalcon Framework. + * + * (c) Phalcon Team + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/ext/phalcon/mvc/model/query/status.zep.c b/ext/phalcon/mvc/model/query/status.zep.c index 029cb198830..53109bec501 100644 --- a/ext/phalcon/mvc/model/query/status.zep.c +++ b/ext/phalcon/mvc/model/query/status.zep.c @@ -21,7 +21,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/model/query/statusinterface.zep.c b/ext/phalcon/mvc/model/query/statusinterface.zep.c index be7636fa570..e8fd1b427b7 100644 --- a/ext/phalcon/mvc/model/query/statusinterface.zep.c +++ b/ext/phalcon/mvc/model/query/statusinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/model/queryinterface.zep.c b/ext/phalcon/mvc/model/queryinterface.zep.c index a0ad2bd9093..e5e88c02a23 100644 --- a/ext/phalcon/mvc/model/queryinterface.zep.c +++ b/ext/phalcon/mvc/model/queryinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/model/relation.zep.c b/ext/phalcon/mvc/model/relation.zep.c index 1df7d48aa78..6a32161d2c6 100644 --- a/ext/phalcon/mvc/model/relation.zep.c +++ b/ext/phalcon/mvc/model/relation.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/model/relationinterface.zep.c b/ext/phalcon/mvc/model/relationinterface.zep.c index cff0033c60f..7947677d4ec 100644 --- a/ext/phalcon/mvc/model/relationinterface.zep.c +++ b/ext/phalcon/mvc/model/relationinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/model/resultinterface.zep.c b/ext/phalcon/mvc/model/resultinterface.zep.c index ff257570cb0..c83550da32e 100644 --- a/ext/phalcon/mvc/model/resultinterface.zep.c +++ b/ext/phalcon/mvc/model/resultinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/model/resultset.zep.c b/ext/phalcon/mvc/model/resultset.zep.c index ebfc17b6f41..7753c74236b 100644 --- a/ext/phalcon/mvc/model/resultset.zep.c +++ b/ext/phalcon/mvc/model/resultset.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/model/resultset/complex.zep.c b/ext/phalcon/mvc/model/resultset/complex.zep.c index 96ecb4a1631..889d4e76952 100644 --- a/ext/phalcon/mvc/model/resultset/complex.zep.c +++ b/ext/phalcon/mvc/model/resultset/complex.zep.c @@ -25,7 +25,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -497,7 +497,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, toArray) { if (!(zephir_is_true(&_0))) { break; } - ZEPHIR_CALL_METHOD(¤t, this_ptr, "current", &_2, 490); + ZEPHIR_CALL_METHOD(¤t, this_ptr, "current", &_2, 492); zephir_check_call_status(); zephir_array_append(&records, ¤t, PH_SEPARATE, "phalcon/Mvc/Model/Resultset/Complex.zep", 279); ZEPHIR_CALL_METHOD(NULL, this_ptr, "next", &_3, 0); diff --git a/ext/phalcon/mvc/model/resultset/simple.zep.c b/ext/phalcon/mvc/model/resultset/simple.zep.c index 9e991470705..7ee8dcb4dab 100644 --- a/ext/phalcon/mvc/model/resultset/simple.zep.c +++ b/ext/phalcon/mvc/model/resultset/simple.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/model/resultsetinterface.zep.c b/ext/phalcon/mvc/model/resultsetinterface.zep.c index c11f6c9057d..780ac4ce1e6 100644 --- a/ext/phalcon/mvc/model/resultsetinterface.zep.c +++ b/ext/phalcon/mvc/model/resultsetinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/model/row.zep.c b/ext/phalcon/mvc/model/row.zep.c index 8d842d5e431..79991cefc23 100644 --- a/ext/phalcon/mvc/model/row.zep.c +++ b/ext/phalcon/mvc/model/row.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/model/transaction.zep.c b/ext/phalcon/mvc/model/transaction.zep.c index fb4e7be12d4..292ea9bf264 100644 --- a/ext/phalcon/mvc/model/transaction.zep.c +++ b/ext/phalcon/mvc/model/transaction.zep.c @@ -22,7 +22,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -210,7 +210,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Transaction, getConnection) { zephir_read_property(&_0, this_ptr, SL("rollbackOnAbort"), PH_NOISY_CC | PH_READONLY); if (zephir_is_true(&_0)) { - ZEPHIR_CALL_FUNCTION(&_1$$3, "connection_aborted", NULL, 491); + ZEPHIR_CALL_FUNCTION(&_1$$3, "connection_aborted", NULL, 493); zephir_check_call_status(); if (zephir_is_true(&_1$$3)) { ZEPHIR_INIT_VAR(&_2$$4); @@ -335,7 +335,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Transaction, rollback) { ZEPHIR_INIT_VAR(&_3$$7); object_init_ex(&_3$$7, phalcon_mvc_model_transaction_failed_ce); zephir_read_property(&_4$$7, this_ptr, SL("rollbackRecord"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(NULL, &_3$$7, "__construct", NULL, 492, &rollbackMessage, &_4$$7); + ZEPHIR_CALL_METHOD(NULL, &_3$$7, "__construct", NULL, 494, &rollbackMessage, &_4$$7); zephir_check_call_status(); zephir_throw_exception_debug(&_3$$7, "phalcon/Mvc/Model/Transaction.zep", 186 TSRMLS_CC); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/mvc/model/transaction/exception.zep.c b/ext/phalcon/mvc/model/transaction/exception.zep.c index ddf519aae7e..b8afa5b0380 100644 --- a/ext/phalcon/mvc/model/transaction/exception.zep.c +++ b/ext/phalcon/mvc/model/transaction/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/model/transaction/failed.zep.c b/ext/phalcon/mvc/model/transaction/failed.zep.c index 6afb2fa3ea5..84c94949b8b 100644 --- a/ext/phalcon/mvc/model/transaction/failed.zep.c +++ b/ext/phalcon/mvc/model/transaction/failed.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/model/transaction/manager.zep.c b/ext/phalcon/mvc/model/transaction/manager.zep.c index 68bb9894e5d..a05d63e4563 100644 --- a/ext/phalcon/mvc/model/transaction/manager.zep.c +++ b/ext/phalcon/mvc/model/transaction/manager.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -312,7 +312,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, get) { ZEPHIR_INIT_VAR(&_3$$4); ZVAL_STRING(&_3$$4, "rollbackPendent"); zephir_array_fast_append(&_2$$4, &_3$$4); - ZEPHIR_CALL_FUNCTION(NULL, "register_shutdown_function", NULL, 493, &_2$$4); + ZEPHIR_CALL_FUNCTION(NULL, "register_shutdown_function", NULL, 495, &_2$$4); zephir_check_call_status(); } if (1) { @@ -455,9 +455,9 @@ PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, getOrCreateTransaction) { } else { ZVAL_BOOL(&_11, 0); } - ZEPHIR_CALL_METHOD(NULL, &transaction, "__construct", NULL, 494, &container, &_11, &_10); + ZEPHIR_CALL_METHOD(NULL, &transaction, "__construct", NULL, 496, &container, &_11, &_10); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &transaction, "settransactionmanager", NULL, 495, this_ptr); + ZEPHIR_CALL_METHOD(NULL, &transaction, "settransactionmanager", NULL, 497, this_ptr); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("transactions"), &transaction); RETURN_ON_FAILURE(zephir_property_incr(this_ptr, SL("number") TSRMLS_CC)); diff --git a/ext/phalcon/mvc/model/transaction/managerinterface.zep.c b/ext/phalcon/mvc/model/transaction/managerinterface.zep.c index 89f13ddd727..8b1daf12106 100644 --- a/ext/phalcon/mvc/model/transaction/managerinterface.zep.c +++ b/ext/phalcon/mvc/model/transaction/managerinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/model/transactioninterface.zep.c b/ext/phalcon/mvc/model/transactioninterface.zep.c index 03daa8e84d3..d1ca0eeff4f 100644 --- a/ext/phalcon/mvc/model/transactioninterface.zep.c +++ b/ext/phalcon/mvc/model/transactioninterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/model/validationfailed.zep.c b/ext/phalcon/mvc/model/validationfailed.zep.c index 7af1dc0cfe0..ffebd522ce5 100644 --- a/ext/phalcon/mvc/model/validationfailed.zep.c +++ b/ext/phalcon/mvc/model/validationfailed.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/moduledefinitioninterface.zep.c b/ext/phalcon/mvc/moduledefinitioninterface.zep.c index 8f311fd7bb8..22041b0f566 100644 --- a/ext/phalcon/mvc/moduledefinitioninterface.zep.c +++ b/ext/phalcon/mvc/moduledefinitioninterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/router.zep.c b/ext/phalcon/mvc/router.zep.c index 4351664827b..724e9d127bb 100644 --- a/ext/phalcon/mvc/router.zep.c +++ b/ext/phalcon/mvc/router.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/router/annotations.zep.c b/ext/phalcon/mvc/router/annotations.zep.c index 65e2d516879..2f37e3487d6 100644 --- a/ext/phalcon/mvc/router/annotations.zep.c +++ b/ext/phalcon/mvc/router/annotations.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/router/exception.zep.c b/ext/phalcon/mvc/router/exception.zep.c index 8846e067bd8..87472155668 100644 --- a/ext/phalcon/mvc/router/exception.zep.c +++ b/ext/phalcon/mvc/router/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/router/group.zep.c b/ext/phalcon/mvc/router/group.zep.c index eb3fcf6f470..ae98c1f75c5 100644 --- a/ext/phalcon/mvc/router/group.zep.c +++ b/ext/phalcon/mvc/router/group.zep.c @@ -25,7 +25,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -872,7 +872,7 @@ PHP_METHOD(Phalcon_Mvc_Router_Group, addRoute) { ZEPHIR_CALL_METHOD(NULL, &route, "__construct", NULL, 105, &_2, &mergedPaths, httpMethods); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("routes"), &route); - ZEPHIR_CALL_METHOD(NULL, &route, "setgroup", NULL, 496, this_ptr); + ZEPHIR_CALL_METHOD(NULL, &route, "setgroup", NULL, 498, this_ptr); zephir_check_call_status(); RETURN_CCTOR(&route); diff --git a/ext/phalcon/mvc/router/groupinterface.zep.c b/ext/phalcon/mvc/router/groupinterface.zep.c index 9ee27f96a32..42445e27351 100644 --- a/ext/phalcon/mvc/router/groupinterface.zep.c +++ b/ext/phalcon/mvc/router/groupinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/router/route.zep.c b/ext/phalcon/mvc/router/route.zep.c index e07283a5fad..f332f7a1aae 100644 --- a/ext/phalcon/mvc/router/route.zep.c +++ b/ext/phalcon/mvc/router/route.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/router/routeinterface.zep.c b/ext/phalcon/mvc/router/routeinterface.zep.c index 7014e28a97c..c841fc26f73 100644 --- a/ext/phalcon/mvc/router/routeinterface.zep.c +++ b/ext/phalcon/mvc/router/routeinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/routerinterface.zep.c b/ext/phalcon/mvc/routerinterface.zep.c index b1cc25a9535..913941f30c7 100644 --- a/ext/phalcon/mvc/routerinterface.zep.c +++ b/ext/phalcon/mvc/routerinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/view.zep.c b/ext/phalcon/mvc/view.zep.c index 319cf0d4fd0..2e4856c8702 100644 --- a/ext/phalcon/mvc/view.zep.c +++ b/ext/phalcon/mvc/view.zep.c @@ -28,7 +28,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -1937,7 +1937,7 @@ PHP_METHOD(Phalcon_Mvc_View, engineRender) { { ZEPHIR_INIT_NVAR(&viewsDir); ZVAL_COPY(&viewsDir, _2); - ZEPHIR_CALL_METHOD(&_4$$3, this_ptr, "isabsolutepath", &_5, 497, &viewPath); + ZEPHIR_CALL_METHOD(&_4$$3, this_ptr, "isabsolutepath", &_5, 499, &viewPath); zephir_check_call_status(); if (!(zephir_is_true(&_4$$3))) { ZEPHIR_INIT_NVAR(&viewsDirPath); @@ -2055,7 +2055,7 @@ PHP_METHOD(Phalcon_Mvc_View, engineRender) { } ZEPHIR_CALL_METHOD(&viewsDir, &_1, "current", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_24$$16, this_ptr, "isabsolutepath", &_5, 497, &viewPath); + ZEPHIR_CALL_METHOD(&_24$$16, this_ptr, "isabsolutepath", &_5, 499, &viewPath); zephir_check_call_status(); if (!(zephir_is_true(&_24$$16))) { ZEPHIR_INIT_NVAR(&viewsDirPath); @@ -2288,7 +2288,7 @@ PHP_METHOD(Phalcon_Mvc_View, loadTemplateEngines) { if (ZEPHIR_IS_EMPTY(®isteredEngines)) { ZEPHIR_INIT_VAR(&_2$$4); object_init_ex(&_2$$4, phalcon_mvc_view_engine_php_ce); - ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 498, this_ptr, &di); + ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 500, this_ptr, &di); zephir_check_call_status(); zephir_array_update_string(&engines, SL(".phtml"), &_2$$4, PH_COPY | PH_SEPARATE); } else { @@ -2505,7 +2505,7 @@ PHP_METHOD(Phalcon_Mvc_View, processRender) { zephir_update_property_zval(this_ptr, SL("currentRenderLevel"), &_0); zephir_read_property(&_0, this_ptr, SL("disabled"), PH_NOISY_CC | PH_READONLY); if (!ZEPHIR_IS_FALSE_IDENTICAL(&_0)) { - ZEPHIR_CALL_FUNCTION(&_1$$3, "ob_get_contents", NULL, 499); + ZEPHIR_CALL_FUNCTION(&_1$$3, "ob_get_contents", NULL, 501); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("content"), &_1$$3); RETURN_MM_BOOL(0); @@ -2563,7 +2563,7 @@ PHP_METHOD(Phalcon_Mvc_View, processRender) { RETURN_MM_BOOL(0); } } - ZEPHIR_CALL_FUNCTION(&_8, "ob_get_contents", NULL, 499); + ZEPHIR_CALL_FUNCTION(&_8, "ob_get_contents", NULL, 501); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("content"), &_8); silence = 1; diff --git a/ext/phalcon/mvc/view/engine/abstractengine.zep.c b/ext/phalcon/mvc/view/engine/abstractengine.zep.c index a231e0c1e64..e4039c5bf2f 100644 --- a/ext/phalcon/mvc/view/engine/abstractengine.zep.c +++ b/ext/phalcon/mvc/view/engine/abstractengine.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/view/engine/engineinterface.zep.c b/ext/phalcon/mvc/view/engine/engineinterface.zep.c index 37034e9828f..49e96cd3ff5 100644 --- a/ext/phalcon/mvc/view/engine/engineinterface.zep.c +++ b/ext/phalcon/mvc/view/engine/engineinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/view/engine/php.zep.c b/ext/phalcon/mvc/view/engine/php.zep.c index dfe08ab5c01..ae3814f034a 100644 --- a/ext/phalcon/mvc/view/engine/php.zep.c +++ b/ext/phalcon/mvc/view/engine/php.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -85,7 +85,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render) { if (mustClean) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 500); + ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 502); zephir_check_call_status(); } if (Z_TYPE_P(params) == IS_ARRAY) { @@ -135,7 +135,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render) { } if (mustClean) { zephir_read_property(&_6$$7, this_ptr, SL("view"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_7$$7, "ob_get_contents", NULL, 499); + ZEPHIR_CALL_FUNCTION(&_7$$7, "ob_get_contents", NULL, 501); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_6$$7, "setcontent", NULL, 0, &_7$$7); zephir_check_call_status(); diff --git a/ext/phalcon/mvc/view/engine/volt.zep.c b/ext/phalcon/mvc/view/engine/volt.zep.c index b09fda64a73..746a15df842 100644 --- a/ext/phalcon/mvc/view/engine/volt.zep.c +++ b/ext/phalcon/mvc/view/engine/volt.zep.c @@ -27,7 +27,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -155,7 +155,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, convertEncoding) { _0 = ZEPHIR_IS_STRING(&to, "utf8"); } if (_0) { - ZEPHIR_RETURN_CALL_FUNCTION("utf8_encode", NULL, 501, &text); + ZEPHIR_RETURN_CALL_FUNCTION("utf8_encode", NULL, 503, &text); zephir_check_call_status(); RETURN_MM(); } @@ -208,18 +208,18 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, getCompiler) { ZEPHIR_INIT_NVAR(&compiler); object_init_ex(&compiler, phalcon_mvc_view_engine_volt_compiler_ce); zephir_read_property(&_1$$3, this_ptr, SL("view"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(NULL, &compiler, "__construct", NULL, 502, &_1$$3); + ZEPHIR_CALL_METHOD(NULL, &compiler, "__construct", NULL, 504, &_1$$3); zephir_check_call_status(); zephir_read_property(&_2$$3, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&container, &_2$$3); if (Z_TYPE_P(&container) == IS_OBJECT) { - ZEPHIR_CALL_METHOD(NULL, &compiler, "setdi", NULL, 503, &container); + ZEPHIR_CALL_METHOD(NULL, &compiler, "setdi", NULL, 505, &container); zephir_check_call_status(); } zephir_read_property(&_2$$3, this_ptr, SL("options"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&options, &_2$$3); if (Z_TYPE_P(&options) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, &compiler, "setoptions", NULL, 504, &options); + ZEPHIR_CALL_METHOD(NULL, &compiler, "setoptions", NULL, 506, &options); zephir_check_call_status(); } zephir_update_property_zval(this_ptr, SL("compiler"), &compiler); @@ -365,7 +365,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, render) { if (mustClean) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 500); + ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 502); zephir_check_call_status(); } ZEPHIR_CALL_METHOD(&compiler, this_ptr, "getcompiler", NULL, 0); @@ -441,7 +441,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, render) { } if (mustClean) { zephir_read_property(&_11$$11, this_ptr, SL("view"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_12$$11, "ob_get_contents", NULL, 499); + ZEPHIR_CALL_FUNCTION(&_12$$11, "ob_get_contents", NULL, 501); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_11$$11, "setcontent", NULL, 0, &_12$$11); zephir_check_call_status(); @@ -601,7 +601,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, sort) { ZEPHIR_MAKE_REF(&value); - ZEPHIR_CALL_FUNCTION(NULL, "asort", NULL, 505, &value); + ZEPHIR_CALL_FUNCTION(NULL, "asort", NULL, 507, &value); ZEPHIR_UNREF(&value); zephir_check_call_status(); RETURN_CTOR(&value); diff --git a/ext/phalcon/mvc/view/engine/volt/compiler.zep.c b/ext/phalcon/mvc/view/engine/volt/compiler.zep.c index ef8d2a753ce..6329d813517 100644 --- a/ext/phalcon/mvc/view/engine/volt/compiler.zep.c +++ b/ext/phalcon/mvc/view/engine/volt/compiler.zep.c @@ -30,7 +30,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -293,7 +293,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, attributeReader) { } } } else { - ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", NULL, 506, &left); + ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", NULL, 508, &left); zephir_check_call_status(); ZEPHIR_OBS_VAR(&leftType); zephir_array_fetch_string(&leftType, &left, SL("type"), PH_NOISY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 137 TSRMLS_CC); @@ -315,7 +315,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, attributeReader) { zephir_array_fetch_string(&_11$$11, &right, SL("value"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 151 TSRMLS_CC); zephir_concat_self(&exprCode, &_11$$11 TSRMLS_CC); } else { - ZEPHIR_CALL_METHOD(&_12$$12, this_ptr, "expression", NULL, 506, &right); + ZEPHIR_CALL_METHOD(&_12$$12, this_ptr, "expression", NULL, 508, &right); zephir_check_call_status(); zephir_concat_self(&exprCode, &_12$$12 TSRMLS_CC); } @@ -575,7 +575,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compile) { object_init_ex(&_17$$35, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_18$$35); ZEPHIR_CONCAT_SVS(&_18$$35, "Extends compilation file ", &compiledTemplatePath, " could not be opened"); - ZEPHIR_CALL_METHOD(NULL, &_17$$35, "__construct", NULL, 507, &_18$$35); + ZEPHIR_CALL_METHOD(NULL, &_17$$35, "__construct", NULL, 509, &_18$$35); zephir_check_call_status(); zephir_throw_exception_debug(&_17$$35, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 366 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -637,7 +637,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileAutoEscape) { } else { ZVAL_BOOL(&_1, 0); } - ZEPHIR_CALL_METHOD(&compilation, this_ptr, "statementlist", NULL, 508, &_0, &_1); + ZEPHIR_CALL_METHOD(&compilation, this_ptr, "statementlist", NULL, 510, &_0, &_1); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("autoescape"), &oldAutoescape); RETURN_CCTOR(&compilation); @@ -702,15 +702,15 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileCache) { object_init_ex(&_0$$3, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "Corrupt statement"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 507, &_1$$3, &statement); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 509, &_1$$3, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$3, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 429 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 506, &expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 508, &expr); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 506, &expr); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 508, &expr); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_3); ZEPHIR_CONCAT_SVS(&_3, "di->get('viewCache'); "); @@ -746,7 +746,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileCache) { } else { ZVAL_BOOL(&_14, 0); } - ZEPHIR_CALL_METHOD(&_12, this_ptr, "statementlist", NULL, 508, &_13, &_14); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "statementlist", NULL, 510, &_13, &_14); zephir_check_call_status(); zephir_concat_self(&compilation, &_12 TSRMLS_CC); ZEPHIR_OBS_NVAR(&lifetime); @@ -836,13 +836,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileCase) { object_init_ex(&_0$$4, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_1$$4); ZVAL_STRING(&_1$$4, "Corrupt statement"); - ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 507, &_1$$4, &statement); + ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 509, &_1$$4, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$4, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 505 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 506, &expr); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 508, &expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -875,7 +875,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileDo) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 525); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 506, &expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 508, &expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -916,13 +916,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileEcho) { object_init_ex(&_0$$3, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "Corrupt statement"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 507, &_1$$3, &statement); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 509, &_1$$3, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$3, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 545 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 506, &expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 508, &expr); zephir_check_call_status(); zephir_array_fetch_string(&_2, &expr, SL("type"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 553 TSRMLS_CC); if (ZEPHIR_IS_LONG(&_2, 350)) { @@ -974,13 +974,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileElseIf) { object_init_ex(&_0$$3, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "Corrupt statement"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 507, &_1$$3, &statement); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 509, &_1$$3, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$3, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 588 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 506, &expr); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 508, &expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -1059,7 +1059,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { object_init_ex(&_0$$4, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_1$$4); ZEPHIR_CONCAT_SVS(&_1$$4, "Template file ", &path, " does not exist"); - ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 507, &_1$$4); + ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 509, &_1$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$4, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 623 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -1072,7 +1072,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { object_init_ex(&_2$$5, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_3$$5); ZEPHIR_CONCAT_SVS(&_3$$5, "Template file ", &path, " could not be opened"); - ZEPHIR_CALL_METHOD(NULL, &_2$$5, "__construct", NULL, 507, &_3$$5); + ZEPHIR_CALL_METHOD(NULL, &_2$$5, "__construct", NULL, 509, &_3$$5); zephir_check_call_status(); zephir_throw_exception_debug(&_2$$5, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 635 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -1186,7 +1186,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { ZEPHIR_CONCAT_VV(&prefixLevel, &prefix, &level); ZEPHIR_OBS_VAR(&expr); zephir_array_fetch_string(&expr, &statement, SL("expr"), PH_NOISY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 696 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 506, &expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 508, &expr); zephir_check_call_status(); ZEPHIR_OBS_VAR(&blockStatements); zephir_array_fetch_string(&blockStatements, &statement, SL("block_statements"), PH_NOISY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 703 TSRMLS_CC); @@ -1246,7 +1246,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { } else { ZVAL_BOOL(&_4, 0); } - ZEPHIR_CALL_METHOD(&code, this_ptr, "statementlist", NULL, 508, &blockStatements, &_4); + ZEPHIR_CALL_METHOD(&code, this_ptr, "statementlist", NULL, 510, &blockStatements, &_4); zephir_check_call_status(); ZEPHIR_OBS_VAR(&loopContext); zephir_read_property(&loopContext, this_ptr, SL("loopPointers"), PH_NOISY_CC); @@ -1297,7 +1297,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { } ZEPHIR_OBS_VAR(&ifExpr); if (zephir_array_isset_string_fetch(&ifExpr, &statement, SL("if_expr"), 0)) { - ZEPHIR_CALL_METHOD(&_16$$15, this_ptr, "expression", NULL, 506, &ifExpr); + ZEPHIR_CALL_METHOD(&_16$$15, this_ptr, "expression", NULL, 508, &ifExpr); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_17$$15); ZEPHIR_CONCAT_SVS(&_17$$15, "if (", &_16$$15, ") { ?>"); @@ -1424,13 +1424,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileIf) { object_init_ex(&_0$$3, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "Corrupt statement"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 507, &_1$$3, &statement); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 509, &_1$$3, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$3, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 850 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 506, &expr); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 508, &expr); zephir_check_call_status(); zephir_array_fetch_string(&_4, &statement, SL("true_statements"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 856 TSRMLS_CC); if (extendsMode) { @@ -1438,7 +1438,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileIf) { } else { ZVAL_BOOL(&_5, 0); } - ZEPHIR_CALL_METHOD(&_3, this_ptr, "statementlist", NULL, 508, &_4, &_5); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "statementlist", NULL, 510, &_4, &_5); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_6); ZEPHIR_CONCAT_SVSV(&_6, "", &_3); @@ -1450,7 +1450,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileIf) { } else { ZVAL_BOOL(&_8$$4, 0); } - ZEPHIR_CALL_METHOD(&_7$$4, this_ptr, "statementlist", NULL, 508, &blockStatements, &_8$$4); + ZEPHIR_CALL_METHOD(&_7$$4, this_ptr, "statementlist", NULL, 510, &blockStatements, &_8$$4); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_9$$4); ZEPHIR_CONCAT_SV(&_9$$4, "", &_7$$4); @@ -1518,14 +1518,14 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileInclude) { RETURN_CCTOR(&compilation); } } - ZEPHIR_CALL_METHOD(&path, this_ptr, "expression", NULL, 506, &pathExpr); + ZEPHIR_CALL_METHOD(&path, this_ptr, "expression", NULL, 508, &pathExpr); zephir_check_call_status(); ZEPHIR_OBS_VAR(¶ms); if (!(zephir_array_isset_string_fetch(¶ms, &statement, SL("params"), 0))) { ZEPHIR_CONCAT_SVS(return_value, "partial(", &path, "); ?>"); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_3, this_ptr, "expression", NULL, 506, ¶ms); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "expression", NULL, 508, ¶ms); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "partial(", &path, ", ", &_3, "); ?>"); RETURN_MM(); @@ -1602,7 +1602,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { object_init_ex(&_1$$4, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_2$$4); ZEPHIR_CONCAT_SVS(&_2$$4, "Macro '", &name, "' is already defined"); - ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 507, &_2$$4); + ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 509, &_2$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$4, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 962 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -1653,7 +1653,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { zephir_concat_self_str(&code, " } else { ", sizeof(" } else { ")-1 TSRMLS_CC); ZEPHIR_OBS_NVAR(&defaultValue); if (EXPECTED(zephir_array_isset_string_fetch(&defaultValue, ¶meter, SL("default"), 0))) { - ZEPHIR_CALL_METHOD(&_14$$8, this_ptr, "expression", &_15, 506, &defaultValue); + ZEPHIR_CALL_METHOD(&_14$$8, this_ptr, "expression", &_15, 508, &defaultValue); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_16$$8); ZEPHIR_CONCAT_SVSVS(&_16$$8, "$", &variableName, " = ", &_14$$8, ";"); @@ -1696,7 +1696,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { zephir_concat_self_str(&code, " } else { ", sizeof(" } else { ")-1 TSRMLS_CC); ZEPHIR_OBS_NVAR(&defaultValue); if (EXPECTED(zephir_array_isset_string_fetch(&defaultValue, ¶meter, SL("default"), 0))) { - ZEPHIR_CALL_METHOD(&_22$$11, this_ptr, "expression", &_15, 506, &defaultValue); + ZEPHIR_CALL_METHOD(&_22$$11, this_ptr, "expression", &_15, 508, &defaultValue); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_23$$11); ZEPHIR_CONCAT_SVSVS(&_23$$11, "$", &variableName, " = ", &_22$$11, ";"); @@ -1722,7 +1722,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { } else { ZVAL_BOOL(&_26$$13, 0); } - ZEPHIR_CALL_METHOD(&_25$$13, this_ptr, "statementlist", NULL, 508, &blockStatements, &_26$$13); + ZEPHIR_CALL_METHOD(&_25$$13, this_ptr, "statementlist", NULL, 510, &blockStatements, &_26$$13); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_27$$13); ZEPHIR_CONCAT_VS(&_27$$13, &_25$$13, ""); RETURN_MM(); @@ -1827,10 +1827,10 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSet) { ZEPHIR_INIT_NVAR(&assignment); ZVAL_COPY(&assignment, _0); zephir_array_fetch_string(&_2$$4, &assignment, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1067 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_3, 506, &_2$$4); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_3, 508, &_2$$4); zephir_check_call_status(); zephir_array_fetch_string(&_4$$4, &assignment, SL("variable"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1074 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_3, 506, &_4$$4); + ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_3, 508, &_4$$4); zephir_check_call_status(); zephir_array_fetch_string(&_5$$4, &assignment, SL("op"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1080 TSRMLS_CC); do { @@ -1877,10 +1877,10 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSet) { ZEPHIR_CALL_METHOD(&assignment, &assignments, "current", NULL, 0); zephir_check_call_status(); zephir_array_fetch_string(&_11$$10, &assignment, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1067 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_3, 506, &_11$$10); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_3, 508, &_11$$10); zephir_check_call_status(); zephir_array_fetch_string(&_12$$10, &assignment, SL("variable"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1074 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_3, 506, &_12$$10); + ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_3, 508, &_12$$10); zephir_check_call_status(); zephir_array_fetch_string(&_13$$10, &assignment, SL("op"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1080 TSRMLS_CC); do { @@ -2021,13 +2021,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSwitch) { object_init_ex(&_0$$3, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "Corrupt statement"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 507, &_1$$3, &statement); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 509, &_1$$3, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$3, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1135 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 506, &expr); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 508, &expr); zephir_check_call_status(); ZEPHIR_INIT_VAR(&compilation); ZEPHIR_CONCAT_SVS(&compilation, ""); @@ -2038,7 +2038,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSwitch) { } else { ZVAL_BOOL(&_3$$4, 0); } - ZEPHIR_CALL_METHOD(&lines, this_ptr, "statementlist", NULL, 508, &caseClauses, &_3$$4); + ZEPHIR_CALL_METHOD(&lines, this_ptr, "statementlist", NULL, 510, &caseClauses, &_3$$4); zephir_check_call_status(); if (zephir_fast_strlen_ev(&lines) != 0) { ZEPHIR_INIT_VAR(&_4$$5); @@ -2124,7 +2124,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { zephir_array_fast_append(&_1$$4, &expr); ZEPHIR_INIT_NVAR(&_2$$4); ZVAL_STRING(&_2$$4, "resolveExpression"); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "fireextensionevent", &_3, 509, &_2$$4, &_1$$4); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "fireextensionevent", &_3, 511, &_2$$4, &_1$$4); zephir_check_call_status(); if (Z_TYPE_P(&exprCode) == IS_STRING) { break; @@ -2141,7 +2141,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { ZEPHIR_INIT_NVAR(&singleExpr); ZVAL_COPY(&singleExpr, _4$$6); zephir_array_fetch_string(&_6$$7, &singleExpr, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1219 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 506, &_6$$7); + ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 508, &_6$$7); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&name); if (zephir_array_isset_string_fetch(&name, &singleExpr, SL("name"), 0)) { @@ -2164,7 +2164,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { ZEPHIR_CALL_METHOD(&singleExpr, &expr, "current", NULL, 0); zephir_check_call_status(); zephir_array_fetch_string(&_9$$10, &singleExpr, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1219 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 506, &_9$$10); + ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 508, &_9$$10); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&name); if (zephir_array_isset_string_fetch(&name, &singleExpr, SL("name"), 0)) { @@ -2190,7 +2190,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } ZEPHIR_OBS_NVAR(&left); if (zephir_array_isset_string_fetch(&left, &expr, SL("left"), 0)) { - ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_7, 506, &left); + ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_7, 508, &left); zephir_check_call_status(); } if (ZEPHIR_IS_LONG(&type, 311)) { @@ -2201,13 +2201,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } if (ZEPHIR_IS_LONG(&type, 124)) { zephir_array_fetch_string(&_14$$16, &expr, SL("right"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1266 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "resolvefilter", &_15, 510, &_14$$16, &leftCode); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "resolvefilter", &_15, 0, &_14$$16, &leftCode); zephir_check_call_status(); break; } ZEPHIR_OBS_NVAR(&right); if (zephir_array_isset_string_fetch(&right, &expr, SL("right"), 0)) { - ZEPHIR_CALL_METHOD(&rightCode, this_ptr, "expression", &_7, 506, &right); + ZEPHIR_CALL_METHOD(&rightCode, this_ptr, "expression", &_7, 508, &right); zephir_check_call_status(); } ZEPHIR_INIT_NVAR(&exprCode); @@ -2383,7 +2383,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { if (ZEPHIR_IS_LONG(&type, 365)) { ZEPHIR_OBS_NVAR(&start); if (zephir_array_isset_string_fetch(&start, &expr, SL("start"), 0)) { - ZEPHIR_CALL_METHOD(&startCode, this_ptr, "expression", &_7, 506, &start); + ZEPHIR_CALL_METHOD(&startCode, this_ptr, "expression", &_7, 508, &start); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(&startCode); @@ -2391,7 +2391,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } ZEPHIR_OBS_NVAR(&end); if (zephir_array_isset_string_fetch(&end, &expr, SL("end"), 0)) { - ZEPHIR_CALL_METHOD(&endCode, this_ptr, "expression", &_7, 506, &end); + ZEPHIR_CALL_METHOD(&endCode, this_ptr, "expression", &_7, 508, &end); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(&endCode); @@ -2483,7 +2483,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } if (ZEPHIR_IS_LONG(&type, 366)) { zephir_array_fetch_string(&_23$$72, &expr, SL("ternary"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1500 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_22$$72, this_ptr, "expression", &_7, 506, &_23$$72); + ZEPHIR_CALL_METHOD(&_22$$72, this_ptr, "expression", &_7, 508, &_23$$72); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&exprCode); ZEPHIR_CONCAT_SVSVSVS(&exprCode, "(", &_22$$72, " ? ", &leftCode, " : ", &rightCode, ")"); @@ -2510,7 +2510,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { zephir_array_fetch_string(&_26$$76, &expr, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1518 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_27$$76); ZEPHIR_CONCAT_SVSVSV(&_27$$76, "Unknown expression ", &type, " in ", &_25$$76, " on line ", &_26$$76); - ZEPHIR_CALL_METHOD(NULL, &_24$$76, "__construct", &_28, 507, &_27$$76); + ZEPHIR_CALL_METHOD(NULL, &_24$$76, "__construct", &_28, 509, &_27$$76); zephir_check_call_status(); zephir_throw_exception_debug(&_24$$76, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1518 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -2703,7 +2703,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { ZVAL_NULL(&funcArguments); ZEPHIR_OBS_NVAR(&funcArguments); if (zephir_array_isset_string_fetch(&funcArguments, &expr, SL("arguments"), 0)) { - ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 506, &funcArguments); + ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 508, &funcArguments); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(&arguments); @@ -2726,7 +2726,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { zephir_array_fast_append(&_1$$6, &funcArguments); ZEPHIR_INIT_VAR(&_2$$6); ZVAL_STRING(&_2$$6, "compileFunction"); - ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 509, &_2$$6, &_1$$6); + ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 511, &_2$$6, &_1$$6); zephir_check_call_status(); if (Z_TYPE_P(&code) == IS_STRING) { RETURN_CCTOR(&code); @@ -2758,7 +2758,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { zephir_array_fetch_string(&_6$$9, &expr, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1645 TSRMLS_CC); ZEPHIR_INIT_VAR(&_7$$9); ZEPHIR_CONCAT_SVSVSV(&_7$$9, "Invalid definition for user function '", &name, "' in ", &_5$$9, " on line ", &_6$$9); - ZEPHIR_CALL_METHOD(NULL, &_4$$9, "__construct", NULL, 507, &_7$$9); + ZEPHIR_CALL_METHOD(NULL, &_4$$9, "__construct", NULL, 509, &_7$$9); zephir_check_call_status(); zephir_throw_exception_debug(&_4$$9, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1645 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -2787,7 +2787,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { zephir_read_property(&_11$$17, this_ptr, SL("exprLevel"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&exprLevel, &_11$$17); if (Z_TYPE_P(&block) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&code, this_ptr, "statementlistorextends", NULL, 511, &block); + ZEPHIR_CALL_METHOD(&code, this_ptr, "statementlistorextends", NULL, 0, &block); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&exprLevel, 1)) { ZEPHIR_CPY_WRT(&escapedCode, &code); @@ -2876,7 +2876,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { ZEPHIR_CONCAT_SVSVS(return_value, "$this->callMacro('", &name, "', [", &arguments, "])"); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_14, this_ptr, "expression", NULL, 506, &nameExpr); + ZEPHIR_CALL_METHOD(&_14, this_ptr, "expression", NULL, 508, &nameExpr); zephir_check_call_status(); ZEPHIR_CONCAT_VSVS(return_value, &_14, "(", &arguments, ")"); RETURN_MM(); @@ -3177,28 +3177,28 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveTest) { if (zephir_array_isset_string_fetch(&name, &testName, SL("value"), 0)) { if (ZEPHIR_IS_STRING(&name, "divisibleby")) { zephir_array_fetch_string(&_1$$12, &test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2036 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0$$12, this_ptr, "expression", NULL, 506, &_1$$12); + ZEPHIR_CALL_METHOD(&_0$$12, this_ptr, "expression", NULL, 508, &_1$$12); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "(((", &left, ") % (", &_0$$12, ")) == 0)"); RETURN_MM(); } if (ZEPHIR_IS_STRING(&name, "sameas")) { zephir_array_fetch_string(&_3$$13, &test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2043 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_2$$13, this_ptr, "expression", NULL, 506, &_3$$13); + ZEPHIR_CALL_METHOD(&_2$$13, this_ptr, "expression", NULL, 508, &_3$$13); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "(", &left, ") === (", &_2$$13, ")"); RETURN_MM(); } if (ZEPHIR_IS_STRING(&name, "type")) { zephir_array_fetch_string(&_5$$14, &test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2050 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_4$$14, this_ptr, "expression", NULL, 506, &_5$$14); + ZEPHIR_CALL_METHOD(&_4$$14, this_ptr, "expression", NULL, 508, &_5$$14); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "gettype(", &left, ") === (", &_4$$14, ")"); RETURN_MM(); } } } - ZEPHIR_CALL_METHOD(&_6, this_ptr, "expression", NULL, 506, &test); + ZEPHIR_CALL_METHOD(&_6, this_ptr, "expression", NULL, 508, &test); zephir_check_call_status(); ZEPHIR_CONCAT_VSV(return_value, &left, " == ", &_6); RETURN_MM(); @@ -3392,7 +3392,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSource) { } else { ZVAL_BOOL(&_0, 0); } - ZEPHIR_CALL_METHOD(&compilation, this_ptr, "statementlist", NULL, 508, &intermediate, &_0); + ZEPHIR_CALL_METHOD(&compilation, this_ptr, "statementlist", NULL, 510, &intermediate, &_0); zephir_check_call_status(); zephir_read_property(&_1, this_ptr, SL("extended"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&extended, &_1); @@ -3424,11 +3424,11 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSource) { ZEPHIR_OBS_NVAR(&localBlock); zephir_array_fetch(&localBlock, &blocks, &name, PH_NOISY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2165 TSRMLS_CC); zephir_update_property_zval(this_ptr, SL("currentBlock"), &name); - ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 508, &localBlock); + ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 510, &localBlock); zephir_check_call_status(); } else { if (Z_TYPE_P(&block) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 508, &block); + ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 510, &block); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&blockCompilation, &block); @@ -3465,11 +3465,11 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSource) { ZEPHIR_OBS_NVAR(&localBlock); zephir_array_fetch(&localBlock, &blocks, &name, PH_NOISY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2165 TSRMLS_CC); zephir_update_property_zval(this_ptr, SL("currentBlock"), &name); - ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 508, &localBlock); + ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 510, &localBlock); zephir_check_call_status(); } else { if (Z_TYPE_P(&block) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 508, &block); + ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 510, &block); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&blockCompilation, &block); @@ -3647,7 +3647,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fetch_string(&_2$$5, &filter, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2263 TSRMLS_CC); ZEPHIR_INIT_VAR(&_3$$5); ZEPHIR_CONCAT_SVSV(&_3$$5, "Unknown filter type in ", &_1$$5, " on line ", &_2$$5); - ZEPHIR_CALL_METHOD(NULL, &_0$$5, "__construct", NULL, 507, &_3$$5); + ZEPHIR_CALL_METHOD(NULL, &_0$$5, "__construct", NULL, 509, &_3$$5); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$5, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2263 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -3685,7 +3685,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { ZEPHIR_UNREF(&funcArguments); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 506, &funcArguments); + ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 508, &funcArguments); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&arguments, &left); @@ -3700,7 +3700,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fast_append(&_7$$9, &funcArguments); ZEPHIR_INIT_VAR(&_8$$9); ZVAL_STRING(&_8$$9, "compileFilter"); - ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 509, &_8$$9, &_7$$9); + ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 511, &_8$$9, &_7$$9); zephir_check_call_status(); if (Z_TYPE_P(&code) == IS_STRING) { RETURN_CCTOR(&code); @@ -3731,7 +3731,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fetch_string(&_12$$11, &filter, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2357 TSRMLS_CC); ZEPHIR_INIT_VAR(&_13$$11); ZEPHIR_CONCAT_SVSVSV(&_13$$11, "Invalid definition for user filter '", &name, "' in ", &_11$$11, " on line ", &_12$$11); - ZEPHIR_CALL_METHOD(NULL, &_10$$11, "__construct", NULL, 507, &_13$$11); + ZEPHIR_CALL_METHOD(NULL, &_10$$11, "__construct", NULL, 509, &_13$$11); zephir_check_call_status(); zephir_throw_exception_debug(&_10$$11, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2357 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -3859,7 +3859,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fetch_string(&_19, &filter, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2551 TSRMLS_CC); ZEPHIR_INIT_VAR(&_20); ZEPHIR_CONCAT_SVSVSV(&_20, "Unknown filter \"", &name, "\" in ", &_18, " on line ", &_19); - ZEPHIR_CALL_METHOD(NULL, &_17, "__construct", NULL, 507, &_20); + ZEPHIR_CALL_METHOD(NULL, &_17, "__construct", NULL, 509, &_20); zephir_check_call_status(); zephir_throw_exception_debug(&_17, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2551 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -4027,7 +4027,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { zephir_array_fetch_string(&_6$$7, &statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2599 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_7$$7); ZEPHIR_CONCAT_SVSV(&_7$$7, "Invalid statement in ", &_5$$7, " on line ", &_6$$7); - ZEPHIR_CALL_METHOD(NULL, &_4$$7, "__construct", &_8, 507, &_7$$7, &statement); + ZEPHIR_CALL_METHOD(NULL, &_4$$7, "__construct", &_8, 509, &_7$$7, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_4$$7, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2601 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -4039,7 +4039,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { zephir_array_fast_append(&_9$$8, &statement); ZEPHIR_INIT_NVAR(&_10$$8); ZVAL_STRING(&_10$$8, "compileStatement"); - ZEPHIR_CALL_METHOD(&tempCompilation, this_ptr, "fireextensionevent", &_11, 509, &_10$$8, &_9$$8); + ZEPHIR_CALL_METHOD(&tempCompilation, this_ptr, "fireextensionevent", &_11, 511, &_10$$8, &_9$$8); zephir_check_call_status(); if (Z_TYPE_P(&tempCompilation) == IS_STRING) { zephir_concat_self(&compilation, &tempCompilation TSRMLS_CC); @@ -4144,7 +4144,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { } else { ZVAL_BOOL(&_34$$24, 0); } - ZEPHIR_CALL_METHOD(&_33$$24, this_ptr, "statementlist", &_35, 508, &blockStatements, &_34$$24); + ZEPHIR_CALL_METHOD(&_33$$24, this_ptr, "statementlist", &_35, 510, &blockStatements, &_34$$24); zephir_check_call_status(); zephir_concat_self(&compilation, &_33$$24 TSRMLS_CC); } @@ -4265,7 +4265,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { zephir_array_fetch_string(&_61$$38, &statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2839 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_62$$38); ZEPHIR_CONCAT_SVSVSV(&_62$$38, "Unknown statement ", &type, " in ", &_60$$38, " on line ", &_61$$38); - ZEPHIR_CALL_METHOD(NULL, &_59$$38, "__construct", &_8, 507, &_62$$38); + ZEPHIR_CALL_METHOD(NULL, &_59$$38, "__construct", &_8, 509, &_62$$38); zephir_check_call_status(); zephir_throw_exception_debug(&_59$$38, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2839 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -4295,7 +4295,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { zephir_array_fetch_string(&_65$$41, &statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2599 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_66$$41); ZEPHIR_CONCAT_SVSV(&_66$$41, "Invalid statement in ", &_64$$41, " on line ", &_65$$41); - ZEPHIR_CALL_METHOD(NULL, &_63$$41, "__construct", &_8, 507, &_66$$41, &statement); + ZEPHIR_CALL_METHOD(NULL, &_63$$41, "__construct", &_8, 509, &_66$$41, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_63$$41, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2601 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -4307,7 +4307,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { zephir_array_fast_append(&_67$$42, &statement); ZEPHIR_INIT_NVAR(&_68$$42); ZVAL_STRING(&_68$$42, "compileStatement"); - ZEPHIR_CALL_METHOD(&tempCompilation, this_ptr, "fireextensionevent", &_11, 509, &_68$$42, &_67$$42); + ZEPHIR_CALL_METHOD(&tempCompilation, this_ptr, "fireextensionevent", &_11, 511, &_68$$42, &_67$$42); zephir_check_call_status(); if (Z_TYPE_P(&tempCompilation) == IS_STRING) { zephir_concat_self(&compilation, &tempCompilation TSRMLS_CC); @@ -4412,7 +4412,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { } else { ZVAL_BOOL(&_84$$58, 0); } - ZEPHIR_CALL_METHOD(&_83$$58, this_ptr, "statementlist", &_35, 508, &blockStatements, &_84$$58); + ZEPHIR_CALL_METHOD(&_83$$58, this_ptr, "statementlist", &_35, 510, &blockStatements, &_84$$58); zephir_check_call_status(); zephir_concat_self(&compilation, &_83$$58 TSRMLS_CC); } @@ -4533,7 +4533,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { zephir_array_fetch_string(&_101$$72, &statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2839 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_102$$72); ZEPHIR_CONCAT_SVSVSV(&_102$$72, "Unknown statement ", &type, " in ", &_100$$72, " on line ", &_101$$72); - ZEPHIR_CALL_METHOD(NULL, &_99$$72, "__construct", &_8, 507, &_102$$72); + ZEPHIR_CALL_METHOD(NULL, &_99$$72, "__construct", &_8, 509, &_102$$72); zephir_check_call_status(); zephir_throw_exception_debug(&_99$$72, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2839 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -4621,7 +4621,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementListOrExtends) { ZEPHIR_INIT_NVAR(&statement); } if (isStatementList) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "statementlist", NULL, 508, statements); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "statementlist", NULL, 510, statements); zephir_check_call_status(); RETURN_MM(); } diff --git a/ext/phalcon/mvc/view/engine/volt/exception.zep.c b/ext/phalcon/mvc/view/engine/volt/exception.zep.c index 6b31bf4aab0..d7c59339fea 100644 --- a/ext/phalcon/mvc/view/engine/volt/exception.zep.c +++ b/ext/phalcon/mvc/view/engine/volt/exception.zep.c @@ -21,7 +21,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/view/engine/volt/parser.php7.lemon b/ext/phalcon/mvc/view/engine/volt/parser.php7.lemon index 807483eab8e..4756a233454 100644 --- a/ext/phalcon/mvc/view/engine/volt/parser.php7.lemon +++ b/ext/phalcon/mvc/view/engine/volt/parser.php7.lemon @@ -2,7 +2,7 @@ * * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. diff --git a/ext/phalcon/mvc/view/engine/volt/scanner.re b/ext/phalcon/mvc/view/engine/volt/scanner.re index c90584550f3..a301093428d 100644 --- a/ext/phalcon/mvc/view/engine/volt/scanner.re +++ b/ext/phalcon/mvc/view/engine/volt/scanner.re @@ -2,7 +2,7 @@ * * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. diff --git a/ext/phalcon/mvc/view/exception.zep.c b/ext/phalcon/mvc/view/exception.zep.c index b6f607891e4..090157de085 100644 --- a/ext/phalcon/mvc/view/exception.zep.c +++ b/ext/phalcon/mvc/view/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/view/simple.zep.c b/ext/phalcon/mvc/view/simple.zep.c index f9416391f3b..753918ea07c 100644 --- a/ext/phalcon/mvc/view/simple.zep.c +++ b/ext/phalcon/mvc/view/simple.zep.c @@ -28,7 +28,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -712,7 +712,7 @@ PHP_METHOD(Phalcon_Mvc_View_Simple, loadTemplateEngines) { if (Z_TYPE_P(®isteredEngines) != IS_ARRAY) { ZEPHIR_INIT_VAR(&_2$$4); object_init_ex(&_2$$4, phalcon_mvc_view_engine_php_ce); - ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 498, this_ptr, &di); + ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 500, this_ptr, &di); zephir_check_call_status(); zephir_array_update_string(&engines, SL(".phtml"), &_2$$4, PH_COPY | PH_SEPARATE); } else { diff --git a/ext/phalcon/mvc/viewbaseinterface.zep.c b/ext/phalcon/mvc/viewbaseinterface.zep.c index 7e3922e0a80..534dcadb464 100644 --- a/ext/phalcon/mvc/viewbaseinterface.zep.c +++ b/ext/phalcon/mvc/viewbaseinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/mvc/viewinterface.zep.c b/ext/phalcon/mvc/viewinterface.zep.c index 1eb8f74b5c2..9591c156f2f 100644 --- a/ext/phalcon/mvc/viewinterface.zep.c +++ b/ext/phalcon/mvc/viewinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/paginator/adapter/abstractadapter.zep.c b/ext/phalcon/paginator/adapter/abstractadapter.zep.c index 97705466c3a..cdab9f3936e 100644 --- a/ext/phalcon/paginator/adapter/abstractadapter.zep.c +++ b/ext/phalcon/paginator/adapter/abstractadapter.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/paginator/adapter/adapterinterface.zep.c b/ext/phalcon/paginator/adapter/adapterinterface.zep.c index b0f1d9bff8c..bd0bafa827d 100644 --- a/ext/phalcon/paginator/adapter/adapterinterface.zep.c +++ b/ext/phalcon/paginator/adapter/adapterinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/paginator/adapter/model.zep.c b/ext/phalcon/paginator/adapter/model.zep.c index 15c214dde16..7369bc3370f 100644 --- a/ext/phalcon/paginator/adapter/model.zep.c +++ b/ext/phalcon/paginator/adapter/model.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/paginator/adapter/nativearray.zep.c b/ext/phalcon/paginator/adapter/nativearray.zep.c index d733f7564e9..c6575daf3f6 100644 --- a/ext/phalcon/paginator/adapter/nativearray.zep.c +++ b/ext/phalcon/paginator/adapter/nativearray.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/paginator/adapter/querybuilder.zep.c b/ext/phalcon/paginator/adapter/querybuilder.zep.c index 3bd3f5f8f97..a64aa9a8822 100644 --- a/ext/phalcon/paginator/adapter/querybuilder.zep.c +++ b/ext/phalcon/paginator/adapter/querybuilder.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/paginator/exception.zep.c b/ext/phalcon/paginator/exception.zep.c index abdbc3d5838..f6573cbff63 100644 --- a/ext/phalcon/paginator/exception.zep.c +++ b/ext/phalcon/paginator/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/paginator/paginatorfactory.zep.c b/ext/phalcon/paginator/paginatorfactory.zep.c index f7a5c35d8ce..a299499f47d 100644 --- a/ext/phalcon/paginator/paginatorfactory.zep.c +++ b/ext/phalcon/paginator/paginatorfactory.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/paginator/repository.zep.c b/ext/phalcon/paginator/repository.zep.c index e0c324a20dc..4acf1624b31 100644 --- a/ext/phalcon/paginator/repository.zep.c +++ b/ext/phalcon/paginator/repository.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/paginator/repositoryinterface.zep.c b/ext/phalcon/paginator/repositoryinterface.zep.c index ca01eb29447..9367c4a7e74 100644 --- a/ext/phalcon/paginator/repositoryinterface.zep.c +++ b/ext/phalcon/paginator/repositoryinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/plugin.zep.c b/ext/phalcon/plugin.zep.c index b5a0352c847..2114bafb221 100644 --- a/ext/phalcon/plugin.zep.c +++ b/ext/phalcon/plugin.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/registry.zep.c b/ext/phalcon/registry.zep.c index d2c3c0cb1db..d2b53aefe0b 100644 --- a/ext/phalcon/registry.zep.c +++ b/ext/phalcon/registry.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/security.zep.c b/ext/phalcon/security.zep.c index 0a40f9cbc8d..20633e34070 100644 --- a/ext/phalcon/security.zep.c +++ b/ext/phalcon/security.zep.c @@ -25,7 +25,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/security/exception.zep.c b/ext/phalcon/security/exception.zep.c index 1fce82d1b8b..4570cba74f7 100644 --- a/ext/phalcon/security/exception.zep.c +++ b/ext/phalcon/security/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/security/random.zep.c b/ext/phalcon/security/random.zep.c index 224b61a1639..0eccf1d9019 100644 --- a/ext/phalcon/security/random.zep.c +++ b/ext/phalcon/security/random.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/session/adapter/abstractadapter.zep.c b/ext/phalcon/session/adapter/abstractadapter.zep.c index f4a405bdc32..b564f65acc2 100644 --- a/ext/phalcon/session/adapter/abstractadapter.zep.c +++ b/ext/phalcon/session/adapter/abstractadapter.zep.c @@ -115,11 +115,13 @@ PHP_METHOD(Phalcon_Session_Adapter_AbstractAdapter, read) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; - zval *id, id_sub, _0; + zval *id, id_sub, data, _0, _1; zval *this_ptr = getThis(); ZVAL_UNDEF(&id_sub); + ZVAL_UNDEF(&data); ZVAL_UNDEF(&_0); + ZVAL_UNDEF(&_1); ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &id); @@ -127,9 +129,15 @@ PHP_METHOD(Phalcon_Session_Adapter_AbstractAdapter, read) { zephir_read_property(&_0, this_ptr, SL("adapter"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_RETURN_CALL_METHOD(&_0, "get", NULL, 0, id); + ZEPHIR_CALL_METHOD(&data, &_0, "get", NULL, 0, id); zephir_check_call_status(); - RETURN_MM(); + ZEPHIR_INIT_VAR(&_1); + if (Z_TYPE_P(&data) == IS_NULL) { + ZVAL_STRING(&_1, ""); + } else { + ZEPHIR_CPY_WRT(&_1, &data); + } + RETURN_CCTOR(&_1); } diff --git a/ext/phalcon/storage/adapter/abstractadapter.zep.c b/ext/phalcon/storage/adapter/abstractadapter.zep.c index 9b98d4599af..5e5cb98dbc2 100644 --- a/ext/phalcon/storage/adapter/abstractadapter.zep.c +++ b/ext/phalcon/storage/adapter/abstractadapter.zep.c @@ -27,7 +27,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/storage/adapter/adapterinterface.zep.c b/ext/phalcon/storage/adapter/adapterinterface.zep.c index 276d683ae81..b65e077599f 100644 --- a/ext/phalcon/storage/adapter/adapterinterface.zep.c +++ b/ext/phalcon/storage/adapter/adapterinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/storage/adapter/apcu.zep.c b/ext/phalcon/storage/adapter/apcu.zep.c index 2f21284738b..87537a26281 100644 --- a/ext/phalcon/storage/adapter/apcu.zep.c +++ b/ext/phalcon/storage/adapter/apcu.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/storage/adapter/libmemcached.zep.c b/ext/phalcon/storage/adapter/libmemcached.zep.c index 9f3b11098e8..713298dddef 100644 --- a/ext/phalcon/storage/adapter/libmemcached.zep.c +++ b/ext/phalcon/storage/adapter/libmemcached.zep.c @@ -25,7 +25,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/storage/adapter/memory.zep.c b/ext/phalcon/storage/adapter/memory.zep.c index c3c827aa36f..c9776aa676d 100644 --- a/ext/phalcon/storage/adapter/memory.zep.c +++ b/ext/phalcon/storage/adapter/memory.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/storage/adapter/redis.zep.c b/ext/phalcon/storage/adapter/redis.zep.c index cffa41973bb..fd2e6de8551 100644 --- a/ext/phalcon/storage/adapter/redis.zep.c +++ b/ext/phalcon/storage/adapter/redis.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -351,10 +351,8 @@ PHP_METHOD(Phalcon_Storage_Adapter_Redis, getAdapter) { ZEPHIR_CPY_WRT(&options, &_1$$3); ZEPHIR_INIT_VAR(&connection); object_init_ex(&connection, zephir_get_internal_ce(SL("redis"))); - if (zephir_has_constructor(&connection TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, &connection, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, &connection, "__construct", NULL, 0); + zephir_check_call_status(); ZEPHIR_OBS_VAR(&auth); zephir_array_fetch_string(&auth, &options, SL("auth"), PH_NOISY, "phalcon/Storage/Adapter/Redis.zep", 119 TSRMLS_CC); ZEPHIR_OBS_VAR(&host); diff --git a/ext/phalcon/storage/adapter/stream.zep.c b/ext/phalcon/storage/adapter/stream.zep.c index 80baa7c728b..abf4b6193bf 100644 --- a/ext/phalcon/storage/adapter/stream.zep.c +++ b/ext/phalcon/storage/adapter/stream.zep.c @@ -30,7 +30,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/storage/adapterfactory.zep.c b/ext/phalcon/storage/adapterfactory.zep.c index e4ce91213d2..2de2db71f46 100644 --- a/ext/phalcon/storage/adapterfactory.zep.c +++ b/ext/phalcon/storage/adapterfactory.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/storage/exception.zep.c b/ext/phalcon/storage/exception.zep.c index de84a574d14..2cf7c67bf1c 100644 --- a/ext/phalcon/storage/exception.zep.c +++ b/ext/phalcon/storage/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/storage/serializer/abstractserializer.zep.c b/ext/phalcon/storage/serializer/abstractserializer.zep.c index e44ad709e87..e2a02a7ded0 100644 --- a/ext/phalcon/storage/serializer/abstractserializer.zep.c +++ b/ext/phalcon/storage/serializer/abstractserializer.zep.c @@ -20,7 +20,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/storage/serializer/base64.zep.c b/ext/phalcon/storage/serializer/base64.zep.c index 9a7fc3b5fa3..8ef220729d2 100644 --- a/ext/phalcon/storage/serializer/base64.zep.c +++ b/ext/phalcon/storage/serializer/base64.zep.c @@ -22,7 +22,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/storage/serializer/igbinary.zep.c b/ext/phalcon/storage/serializer/igbinary.zep.c index 8e09ec03b96..64125c8300e 100644 --- a/ext/phalcon/storage/serializer/igbinary.zep.c +++ b/ext/phalcon/storage/serializer/igbinary.zep.c @@ -21,7 +21,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/storage/serializer/json.zep.c b/ext/phalcon/storage/serializer/json.zep.c index 4220a5a2a76..d0fd1de97e5 100644 --- a/ext/phalcon/storage/serializer/json.zep.c +++ b/ext/phalcon/storage/serializer/json.zep.c @@ -22,7 +22,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/storage/serializer/msgpack.zep.c b/ext/phalcon/storage/serializer/msgpack.zep.c index bf049abacc0..33cc8d66947 100644 --- a/ext/phalcon/storage/serializer/msgpack.zep.c +++ b/ext/phalcon/storage/serializer/msgpack.zep.c @@ -21,7 +21,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/storage/serializer/none.zep.c b/ext/phalcon/storage/serializer/none.zep.c index 0c6d642005f..8336d2435f0 100644 --- a/ext/phalcon/storage/serializer/none.zep.c +++ b/ext/phalcon/storage/serializer/none.zep.c @@ -19,7 +19,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/storage/serializer/php.zep.c b/ext/phalcon/storage/serializer/php.zep.c index f2084c04011..b2c89e2afa4 100644 --- a/ext/phalcon/storage/serializer/php.zep.c +++ b/ext/phalcon/storage/serializer/php.zep.c @@ -21,7 +21,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/storage/serializer/serializerinterface.zep.c b/ext/phalcon/storage/serializer/serializerinterface.zep.c index 1bd27c2a195..df8e67a0cf0 100644 --- a/ext/phalcon/storage/serializer/serializerinterface.zep.c +++ b/ext/phalcon/storage/serializer/serializerinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/storage/serializerfactory.zep.c b/ext/phalcon/storage/serializerfactory.zep.c index cb7c36cac66..24f9d2f7f46 100644 --- a/ext/phalcon/storage/serializerfactory.zep.c +++ b/ext/phalcon/storage/serializerfactory.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/tag.zep.c b/ext/phalcon/tag.zep.c index 68ea98f31eb..c3467ca9dc9 100644 --- a/ext/phalcon/tag.zep.c +++ b/ext/phalcon/tag.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -1554,11 +1554,11 @@ PHP_METHOD(Phalcon_Tag, javascriptInclude) { * ] * ); * - * echo Phalcon\Tag::linkTo("http://phalconphp.com/", "Phalcon", false); + * echo Phalcon\Tag::linkTo("http://phalcon.io/", "Phalcon", false); * * echo Phalcon\Tag::linkTo( * [ - * "http://phalconphp.com/", + * "http://phalcon.io/", * "Phalcon Home", * false, * ] @@ -1566,7 +1566,7 @@ PHP_METHOD(Phalcon_Tag, javascriptInclude) { * * echo Phalcon\Tag::linkTo( * [ - * "http://phalconphp.com/", + * "http://phalcon.io/", * "Phalcon Home", * "local" => false, * ] @@ -1574,7 +1574,7 @@ PHP_METHOD(Phalcon_Tag, javascriptInclude) { * * echo Phalcon\Tag::linkTo( * [ - * "action" => "http://phalconphp.com/", + * "action" => "http://phalcon.io/", * "text" => "Phalcon Home", * "local" => false, * "target" => "_new" diff --git a/ext/phalcon/tag/exception.zep.c b/ext/phalcon/tag/exception.zep.c index 4801a59b3f9..9c668d8693a 100644 --- a/ext/phalcon/tag/exception.zep.c +++ b/ext/phalcon/tag/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/tag/select.zep.c b/ext/phalcon/tag/select.zep.c index 06cba1e4939..717fa6cd5bf 100644 --- a/ext/phalcon/tag/select.zep.c +++ b/ext/phalcon/tag/select.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/text.zep.c b/ext/phalcon/text.zep.c index c9fafa9f8fe..19df03ca82d 100644 --- a/ext/phalcon/text.zep.c +++ b/ext/phalcon/text.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/translate/adapter/abstractadapter.zep.c b/ext/phalcon/translate/adapter/abstractadapter.zep.c index ac8ba1145b5..09c8217634e 100644 --- a/ext/phalcon/translate/adapter/abstractadapter.zep.c +++ b/ext/phalcon/translate/adapter/abstractadapter.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/translate/adapter/adapterinterface.zep.c b/ext/phalcon/translate/adapter/adapterinterface.zep.c index 0f1dfb51a5e..200e763534a 100644 --- a/ext/phalcon/translate/adapter/adapterinterface.zep.c +++ b/ext/phalcon/translate/adapter/adapterinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/translate/adapter/csv.zep.c b/ext/phalcon/translate/adapter/csv.zep.c index ca572095d9b..68cc4987382 100644 --- a/ext/phalcon/translate/adapter/csv.zep.c +++ b/ext/phalcon/translate/adapter/csv.zep.c @@ -27,7 +27,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/translate/adapter/gettext.zep.c b/ext/phalcon/translate/adapter/gettext.zep.c index 9156c2df1d9..746af350b4b 100644 --- a/ext/phalcon/translate/adapter/gettext.zep.c +++ b/ext/phalcon/translate/adapter/gettext.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/translate/adapter/nativearray.zep.c b/ext/phalcon/translate/adapter/nativearray.zep.c index f5aa7e0a8a0..102e7a4ba3f 100644 --- a/ext/phalcon/translate/adapter/nativearray.zep.c +++ b/ext/phalcon/translate/adapter/nativearray.zep.c @@ -25,7 +25,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/translate/exception.zep.c b/ext/phalcon/translate/exception.zep.c index 3e38410bcec..23bb425d64e 100644 --- a/ext/phalcon/translate/exception.zep.c +++ b/ext/phalcon/translate/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/translate/interpolator/associativearray.zep.c b/ext/phalcon/translate/interpolator/associativearray.zep.c index 20df6a33ed7..ce37d977e7b 100644 --- a/ext/phalcon/translate/interpolator/associativearray.zep.c +++ b/ext/phalcon/translate/interpolator/associativearray.zep.c @@ -25,7 +25,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/translate/interpolator/indexedarray.zep.c b/ext/phalcon/translate/interpolator/indexedarray.zep.c index e6b2d6a1e70..27353cd2987 100644 --- a/ext/phalcon/translate/interpolator/indexedarray.zep.c +++ b/ext/phalcon/translate/interpolator/indexedarray.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/translate/interpolator/interpolatorinterface.zep.c b/ext/phalcon/translate/interpolator/interpolatorinterface.zep.c index ef79a227390..6bf8decd384 100644 --- a/ext/phalcon/translate/interpolator/interpolatorinterface.zep.c +++ b/ext/phalcon/translate/interpolator/interpolatorinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/translate/interpolatorfactory.zep.c b/ext/phalcon/translate/interpolatorfactory.zep.c index e72b8daa3ce..58cf6a35cae 100644 --- a/ext/phalcon/translate/interpolatorfactory.zep.c +++ b/ext/phalcon/translate/interpolatorfactory.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/translate/translatefactory.zep.c b/ext/phalcon/translate/translatefactory.zep.c index a2b4de39112..d9c6860dbcf 100644 --- a/ext/phalcon/translate/translatefactory.zep.c +++ b/ext/phalcon/translate/translatefactory.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/url.zep.c b/ext/phalcon/url.zep.c index 05bcbcc58a4..18a3140aaa3 100644 --- a/ext/phalcon/url.zep.c +++ b/ext/phalcon/url.zep.c @@ -27,7 +27,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -108,7 +108,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Url) { * * // Generate an absolute URL by setting the third parameter as false. * echo $url->get( - * "https://phalconphp.com/", + * "https://phalcon.io/", * null, * false * ); diff --git a/ext/phalcon/url/exception.zep.c b/ext/phalcon/url/exception.zep.c index 68ab3c74860..504d61d9a41 100644 --- a/ext/phalcon/url/exception.zep.c +++ b/ext/phalcon/url/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/url/urlinterface.zep.c b/ext/phalcon/url/urlinterface.zep.c index 5820fc25092..a4e64960109 100644 --- a/ext/phalcon/url/urlinterface.zep.c +++ b/ext/phalcon/url/urlinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation.zep.c b/ext/phalcon/validation.zep.c index 3090d68b30e..db3a3ae6e0e 100644 --- a/ext/phalcon/validation.zep.c +++ b/ext/phalcon/validation.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. @@ -513,7 +513,7 @@ PHP_METHOD(Phalcon_Validation, getValue) { if (Z_TYPE_P(&entity) == IS_OBJECT) { ZEPHIR_INIT_NVAR(&method); ZEPHIR_CONCAT_SV(&method, "set", &camelizedField); - ZEPHIR_CALL_FUNCTION(&_10$$21, "property_exists", NULL, 434, &entity, &field); + ZEPHIR_CALL_FUNCTION(&_10$$21, "property_exists", NULL, 436, &entity, &field); zephir_check_call_status(); if ((zephir_method_exists(&entity, &method TSRMLS_CC) == SUCCESS)) { ZEPHIR_CALL_METHOD_ZVAL(NULL, &entity, &method, NULL, 0, &value); diff --git a/ext/phalcon/validation/abstractcombinedfieldsvalidator.zep.c b/ext/phalcon/validation/abstractcombinedfieldsvalidator.zep.c index 69de57a7e9e..2f14088c8a5 100644 --- a/ext/phalcon/validation/abstractcombinedfieldsvalidator.zep.c +++ b/ext/phalcon/validation/abstractcombinedfieldsvalidator.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/abstractvalidator.zep.c b/ext/phalcon/validation/abstractvalidator.zep.c index 2e7ef4ef2fc..5f65cdac0bd 100644 --- a/ext/phalcon/validation/abstractvalidator.zep.c +++ b/ext/phalcon/validation/abstractvalidator.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/abstractvalidatorcomposite.zep.c b/ext/phalcon/validation/abstractvalidatorcomposite.zep.c index 124ba9e98ee..137f9b8aa5f 100644 --- a/ext/phalcon/validation/abstractvalidatorcomposite.zep.c +++ b/ext/phalcon/validation/abstractvalidatorcomposite.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/exception.zep.c b/ext/phalcon/validation/exception.zep.c index 40f3f7a4ff9..13a4a1b31bd 100644 --- a/ext/phalcon/validation/exception.zep.c +++ b/ext/phalcon/validation/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/validationinterface.zep.c b/ext/phalcon/validation/validationinterface.zep.c index ab0ad40fc7d..7693b38262b 100644 --- a/ext/phalcon/validation/validationinterface.zep.c +++ b/ext/phalcon/validation/validationinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/validator/alnum.zep.c b/ext/phalcon/validation/validator/alnum.zep.c index 7efa5691627..9446219b102 100644 --- a/ext/phalcon/validation/validator/alnum.zep.c +++ b/ext/phalcon/validation/validator/alnum.zep.c @@ -21,7 +21,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/validator/alpha.zep.c b/ext/phalcon/validation/validator/alpha.zep.c index caf1d2f49a5..19687af7e5c 100644 --- a/ext/phalcon/validation/validator/alpha.zep.c +++ b/ext/phalcon/validation/validator/alpha.zep.c @@ -22,7 +22,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/validator/between.zep.c b/ext/phalcon/validation/validator/between.zep.c index eb4d9325f52..036527e1349 100644 --- a/ext/phalcon/validation/validator/between.zep.c +++ b/ext/phalcon/validation/validator/between.zep.c @@ -22,7 +22,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/validator/callback.zep.c b/ext/phalcon/validation/validator/callback.zep.c index b400cc41c50..f972aaf9380 100644 --- a/ext/phalcon/validation/validator/callback.zep.c +++ b/ext/phalcon/validation/validator/callback.zep.c @@ -22,7 +22,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/validator/confirmation.zep.c b/ext/phalcon/validation/validator/confirmation.zep.c index bc4570a3e3d..422028356c3 100644 --- a/ext/phalcon/validation/validator/confirmation.zep.c +++ b/ext/phalcon/validation/validator/confirmation.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/validator/creditcard.zep.c b/ext/phalcon/validation/validator/creditcard.zep.c index d71896c766c..2d7ff57c60f 100644 --- a/ext/phalcon/validation/validator/creditcard.zep.c +++ b/ext/phalcon/validation/validator/creditcard.zep.c @@ -21,7 +21,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/validator/date.zep.c b/ext/phalcon/validation/validator/date.zep.c index 7e02957a4ec..893cd93e480 100644 --- a/ext/phalcon/validation/validator/date.zep.c +++ b/ext/phalcon/validation/validator/date.zep.c @@ -22,7 +22,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/validator/digit.zep.c b/ext/phalcon/validation/validator/digit.zep.c index ecfb817184f..ff10429b148 100644 --- a/ext/phalcon/validation/validator/digit.zep.c +++ b/ext/phalcon/validation/validator/digit.zep.c @@ -21,7 +21,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/validator/email.zep.c b/ext/phalcon/validation/validator/email.zep.c index 56afa4c07d0..0f28373e95e 100644 --- a/ext/phalcon/validation/validator/email.zep.c +++ b/ext/phalcon/validation/validator/email.zep.c @@ -21,7 +21,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/validator/exception.zep.c b/ext/phalcon/validation/validator/exception.zep.c index 367382fa4b5..a8b35a20f91 100644 --- a/ext/phalcon/validation/validator/exception.zep.c +++ b/ext/phalcon/validation/validator/exception.zep.c @@ -17,7 +17,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/validator/exclusionin.zep.c b/ext/phalcon/validation/validator/exclusionin.zep.c index 927f82a216f..a24caa40bc5 100644 --- a/ext/phalcon/validation/validator/exclusionin.zep.c +++ b/ext/phalcon/validation/validator/exclusionin.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/validator/file.zep.c b/ext/phalcon/validation/validator/file.zep.c index 67ff216e5a7..5fd137abf62 100644 --- a/ext/phalcon/validation/validator/file.zep.c +++ b/ext/phalcon/validation/validator/file.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/validator/file/abstractfile.zep.c b/ext/phalcon/validation/validator/file/abstractfile.zep.c index d876d7b62d4..08abb8878ac 100644 --- a/ext/phalcon/validation/validator/file/abstractfile.zep.c +++ b/ext/phalcon/validation/validator/file/abstractfile.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/validator/file/mimetype.zep.c b/ext/phalcon/validation/validator/file/mimetype.zep.c index b8648f0c64d..cb5142b51c4 100644 --- a/ext/phalcon/validation/validator/file/mimetype.zep.c +++ b/ext/phalcon/validation/validator/file/mimetype.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/validator/file/resolution/equal.zep.c b/ext/phalcon/validation/validator/file/resolution/equal.zep.c index c3568b93133..0f474382329 100644 --- a/ext/phalcon/validation/validator/file/resolution/equal.zep.c +++ b/ext/phalcon/validation/validator/file/resolution/equal.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/validator/file/resolution/max.zep.c b/ext/phalcon/validation/validator/file/resolution/max.zep.c index 6ea6fca48dc..cacebcfda46 100644 --- a/ext/phalcon/validation/validator/file/resolution/max.zep.c +++ b/ext/phalcon/validation/validator/file/resolution/max.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/validator/file/resolution/min.zep.c b/ext/phalcon/validation/validator/file/resolution/min.zep.c index 4ea794053e2..f16534e830f 100644 --- a/ext/phalcon/validation/validator/file/resolution/min.zep.c +++ b/ext/phalcon/validation/validator/file/resolution/min.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/validator/file/size/equal.zep.c b/ext/phalcon/validation/validator/file/size/equal.zep.c index 28dba37486f..be1824627ee 100644 --- a/ext/phalcon/validation/validator/file/size/equal.zep.c +++ b/ext/phalcon/validation/validator/file/size/equal.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/validator/file/size/max.zep.c b/ext/phalcon/validation/validator/file/size/max.zep.c index 762ed712562..f5336a9d8dd 100644 --- a/ext/phalcon/validation/validator/file/size/max.zep.c +++ b/ext/phalcon/validation/validator/file/size/max.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/validator/file/size/min.zep.c b/ext/phalcon/validation/validator/file/size/min.zep.c index 3a2c121d7b7..24cb4257835 100644 --- a/ext/phalcon/validation/validator/file/size/min.zep.c +++ b/ext/phalcon/validation/validator/file/size/min.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/validator/identical.zep.c b/ext/phalcon/validation/validator/identical.zep.c index f223066214b..eee26cf529f 100644 --- a/ext/phalcon/validation/validator/identical.zep.c +++ b/ext/phalcon/validation/validator/identical.zep.c @@ -22,7 +22,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/validator/inclusionin.zep.c b/ext/phalcon/validation/validator/inclusionin.zep.c index 48d3e8dc78a..cf490bbed0e 100644 --- a/ext/phalcon/validation/validator/inclusionin.zep.c +++ b/ext/phalcon/validation/validator/inclusionin.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/validator/ip.zep.c b/ext/phalcon/validation/validator/ip.zep.c index 3b4e7ad322b..d4d74c53244 100644 --- a/ext/phalcon/validation/validator/ip.zep.c +++ b/ext/phalcon/validation/validator/ip.zep.c @@ -22,7 +22,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/validator/numericality.zep.c b/ext/phalcon/validation/validator/numericality.zep.c index f93a7c79110..99a069ff02b 100644 --- a/ext/phalcon/validation/validator/numericality.zep.c +++ b/ext/phalcon/validation/validator/numericality.zep.c @@ -22,7 +22,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/validator/presenceof.zep.c b/ext/phalcon/validation/validator/presenceof.zep.c index 631037ccf0d..ec89ed55c51 100644 --- a/ext/phalcon/validation/validator/presenceof.zep.c +++ b/ext/phalcon/validation/validator/presenceof.zep.c @@ -21,7 +21,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/validator/regex.zep.c b/ext/phalcon/validation/validator/regex.zep.c index cab091a3e4b..7b152899dc2 100644 --- a/ext/phalcon/validation/validator/regex.zep.c +++ b/ext/phalcon/validation/validator/regex.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/validator/stringlength.zep.c b/ext/phalcon/validation/validator/stringlength.zep.c index 6816e2dadd1..5e3a9b9ec86 100644 --- a/ext/phalcon/validation/validator/stringlength.zep.c +++ b/ext/phalcon/validation/validator/stringlength.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/validator/stringlength/max.zep.c b/ext/phalcon/validation/validator/stringlength/max.zep.c index 136b78ae5d5..df3ab552224 100644 --- a/ext/phalcon/validation/validator/stringlength/max.zep.c +++ b/ext/phalcon/validation/validator/stringlength/max.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/validator/stringlength/min.zep.c b/ext/phalcon/validation/validator/stringlength/min.zep.c index e987de2a3db..33b66319801 100644 --- a/ext/phalcon/validation/validator/stringlength/min.zep.c +++ b/ext/phalcon/validation/validator/stringlength/min.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/validator/uniqueness.zep.c b/ext/phalcon/validation/validator/uniqueness.zep.c index 40bb9a41c42..46dd0d49a7e 100644 --- a/ext/phalcon/validation/validator/uniqueness.zep.c +++ b/ext/phalcon/validation/validator/uniqueness.zep.c @@ -26,7 +26,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/validator/url.zep.c b/ext/phalcon/validation/validator/url.zep.c index dd9c98bd3be..445b195378a 100644 --- a/ext/phalcon/validation/validator/url.zep.c +++ b/ext/phalcon/validation/validator/url.zep.c @@ -22,7 +22,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/validatorcompositeinterface.zep.c b/ext/phalcon/validation/validatorcompositeinterface.zep.c index c2a3e45d420..e9956f09bb9 100644 --- a/ext/phalcon/validation/validatorcompositeinterface.zep.c +++ b/ext/phalcon/validation/validatorcompositeinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/validatorfactory.zep.c b/ext/phalcon/validation/validatorfactory.zep.c index d61219964dc..4236e407bab 100644 --- a/ext/phalcon/validation/validatorfactory.zep.c +++ b/ext/phalcon/validation/validatorfactory.zep.c @@ -24,7 +24,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/validation/validatorinterface.zep.c b/ext/phalcon/validation/validatorinterface.zep.c index efb2084a978..9f43c8cdfcd 100644 --- a/ext/phalcon/validation/validatorinterface.zep.c +++ b/ext/phalcon/validation/validatorinterface.zep.c @@ -15,7 +15,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/ext/phalcon/version.zep.c b/ext/phalcon/version.zep.c index ca4f23bf35c..5859a25443f 100644 --- a/ext/phalcon/version.zep.c +++ b/ext/phalcon/version.zep.c @@ -23,7 +23,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. From 38e1582e84b76a9d644dbab198d9f2a88ad08332 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Sun, 25 Aug 2019 15:11:32 -0400 Subject: [PATCH 024/202] [4.0.x] - Updated the domain --- optimizers/PhalconCssminOptimizer.php | 2 +- optimizers/PhalconEscapeCssOptimizer.php | 2 +- optimizers/PhalconEscapeJsOptimizer.php | 2 +- optimizers/PhalconFilterAlphanumOptimizer.php | 2 +- optimizers/PhalconFixPathOptimizer.php | 2 +- optimizers/PhalconGetUriOptimizer.php | 2 +- optimizers/PhalconIsBasicCharsetOptimizer.php | 2 +- optimizers/PhalconJsminOptimizer.php | 2 +- optimizers/PhalconOrmDestroyCacheOptimizer.php | 2 +- optimizers/PhalconOrmSinglequotesOptimizer.php | 2 +- optimizers/PhalconPossibleAutoloadFilepathOptimizer.php | 2 +- optimizers/PhalconPrepareVirtualPathOptimizer.php | 2 +- optimizers/PhalconReplacePathsOptimizer.php | 2 +- optimizers/PhannotParseAnnotationsOptimizer.php | 2 +- optimizers/PhqlParsePhqlOptimizer.php | 2 +- optimizers/PhvoltParseViewOptimizer.php | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/optimizers/PhalconCssminOptimizer.php b/optimizers/PhalconCssminOptimizer.php index 3f975277624..c948497f5ce 100644 --- a/optimizers/PhalconCssminOptimizer.php +++ b/optimizers/PhalconCssminOptimizer.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/optimizers/PhalconEscapeCssOptimizer.php b/optimizers/PhalconEscapeCssOptimizer.php index 91e4f71c145..72a9dcac536 100644 --- a/optimizers/PhalconEscapeCssOptimizer.php +++ b/optimizers/PhalconEscapeCssOptimizer.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/optimizers/PhalconEscapeJsOptimizer.php b/optimizers/PhalconEscapeJsOptimizer.php index 3ce85011f08..8bd5dc9d405 100644 --- a/optimizers/PhalconEscapeJsOptimizer.php +++ b/optimizers/PhalconEscapeJsOptimizer.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/optimizers/PhalconFilterAlphanumOptimizer.php b/optimizers/PhalconFilterAlphanumOptimizer.php index 8c52bff0255..93c96b9aeca 100644 --- a/optimizers/PhalconFilterAlphanumOptimizer.php +++ b/optimizers/PhalconFilterAlphanumOptimizer.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/optimizers/PhalconFixPathOptimizer.php b/optimizers/PhalconFixPathOptimizer.php index 860328a6e75..22f17b55532 100644 --- a/optimizers/PhalconFixPathOptimizer.php +++ b/optimizers/PhalconFixPathOptimizer.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/optimizers/PhalconGetUriOptimizer.php b/optimizers/PhalconGetUriOptimizer.php index 0d6816f57cb..0cbe2a835e8 100644 --- a/optimizers/PhalconGetUriOptimizer.php +++ b/optimizers/PhalconGetUriOptimizer.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/optimizers/PhalconIsBasicCharsetOptimizer.php b/optimizers/PhalconIsBasicCharsetOptimizer.php index ad926077e6a..019edd4bcc5 100644 --- a/optimizers/PhalconIsBasicCharsetOptimizer.php +++ b/optimizers/PhalconIsBasicCharsetOptimizer.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/optimizers/PhalconJsminOptimizer.php b/optimizers/PhalconJsminOptimizer.php index b9cf8b95742..cf73658c440 100644 --- a/optimizers/PhalconJsminOptimizer.php +++ b/optimizers/PhalconJsminOptimizer.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/optimizers/PhalconOrmDestroyCacheOptimizer.php b/optimizers/PhalconOrmDestroyCacheOptimizer.php index b6b69c96da3..4f778068686 100644 --- a/optimizers/PhalconOrmDestroyCacheOptimizer.php +++ b/optimizers/PhalconOrmDestroyCacheOptimizer.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/optimizers/PhalconOrmSinglequotesOptimizer.php b/optimizers/PhalconOrmSinglequotesOptimizer.php index cc5c8ac1cc8..d9732d3bc97 100644 --- a/optimizers/PhalconOrmSinglequotesOptimizer.php +++ b/optimizers/PhalconOrmSinglequotesOptimizer.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/optimizers/PhalconPossibleAutoloadFilepathOptimizer.php b/optimizers/PhalconPossibleAutoloadFilepathOptimizer.php index 921cc83367a..d66ca65c5d7 100644 --- a/optimizers/PhalconPossibleAutoloadFilepathOptimizer.php +++ b/optimizers/PhalconPossibleAutoloadFilepathOptimizer.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/optimizers/PhalconPrepareVirtualPathOptimizer.php b/optimizers/PhalconPrepareVirtualPathOptimizer.php index e52725717cf..655fb88d55c 100644 --- a/optimizers/PhalconPrepareVirtualPathOptimizer.php +++ b/optimizers/PhalconPrepareVirtualPathOptimizer.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/optimizers/PhalconReplacePathsOptimizer.php b/optimizers/PhalconReplacePathsOptimizer.php index d707235cfd3..f6e5d93c0f7 100644 --- a/optimizers/PhalconReplacePathsOptimizer.php +++ b/optimizers/PhalconReplacePathsOptimizer.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/optimizers/PhannotParseAnnotationsOptimizer.php b/optimizers/PhannotParseAnnotationsOptimizer.php index cf6bbc7eedc..71db05971af 100644 --- a/optimizers/PhannotParseAnnotationsOptimizer.php +++ b/optimizers/PhannotParseAnnotationsOptimizer.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/optimizers/PhqlParsePhqlOptimizer.php b/optimizers/PhqlParsePhqlOptimizer.php index f036adc4648..35d5a15afa7 100644 --- a/optimizers/PhqlParsePhqlOptimizer.php +++ b/optimizers/PhqlParsePhqlOptimizer.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. diff --git a/optimizers/PhvoltParseViewOptimizer.php b/optimizers/PhvoltParseViewOptimizer.php index 4f16074f069..e4d0dee27b6 100644 --- a/optimizers/PhvoltParseViewOptimizer.php +++ b/optimizers/PhvoltParseViewOptimizer.php @@ -4,7 +4,7 @@ /** * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. From 2db93a2cf5bb28a007ae09128c50de606def931c Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Sun, 25 Aug 2019 15:11:46 -0400 Subject: [PATCH 025/202] [4.0.x] - Updated docblocks --- ext/phalcon/annotations/annot.h | 25 +-- ext/phalcon/annotations/base.c | 25 +-- ext/phalcon/annotations/parser.c | 113 +++++------ ext/phalcon/annotations/scanner.c | 29 +-- ext/phalcon/annotations/scanner.h | 27 +-- ext/phalcon/db/adapter/pdo_constants.h | 28 +-- ext/phalcon/db/utils.c | 25 +-- ext/phalcon/db/utils.h | 25 +-- ext/phalcon/mvc/model/orm.c | 25 +-- ext/phalcon/mvc/model/orm.h | 25 +-- ext/phalcon/mvc/model/query/base.c | 25 +-- ext/phalcon/mvc/model/query/parser.c | 189 +++++++++--------- ext/phalcon/mvc/model/query/phql.h | 25 +-- ext/phalcon/mvc/model/query/scanner.c | 27 +-- ext/phalcon/mvc/model/query/scanner.h | 25 +-- ext/phalcon/mvc/model_contants.h | 25 +-- ext/phalcon/mvc/view/engine/pphp.h | 27 +-- ext/phalcon/mvc/view/engine/volt/base.c | 2 +- ext/phalcon/mvc/view/engine/volt/generate | 2 +- ext/phalcon/mvc/view/engine/volt/parser.c | 76 +++---- .../mvc/view/engine/volt/parser.php7.inc.h | 2 +- ext/phalcon/mvc/view/engine/volt/scanner.c | 4 +- ext/phalcon/mvc/view/engine/volt/scanner.h | 2 +- ext/phalcon/mvc/view/engine/volt/volt.h | 2 +- ext/phalcon/pconfig.h | 25 +-- 25 files changed, 321 insertions(+), 484 deletions(-) diff --git a/ext/phalcon/annotations/annot.h b/ext/phalcon/annotations/annot.h index a5f650974d7..1b2544d1230 100644 --- a/ext/phalcon/annotations/annot.h +++ b/ext/phalcon/annotations/annot.h @@ -1,21 +1,12 @@ -/* - +------------------------------------------------------------------------+ - | Phalcon Framework | - +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 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 | - +------------------------------------------------------------------------+ -*/ +/** + * This file is part of the Phalcon Framework. + * + * (c) Phalcon Team + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ #ifndef PHALCON_ANNOTATIONS_ANNOT_H #define PHALCON_ANNOTATIONS_ANNOT_H diff --git a/ext/phalcon/annotations/base.c b/ext/phalcon/annotations/base.c index b6f167393db..9586201118c 100644 --- a/ext/phalcon/annotations/base.c +++ b/ext/phalcon/annotations/base.c @@ -1,21 +1,12 @@ -/* - +------------------------------------------------------------------------+ - | Phalcon Framework | - +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 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 | - +------------------------------------------------------------------------+ -*/ +/** + * This file is part of the Phalcon Framework. + * + * (c) Phalcon Team + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ const phannot_token_names phannot_tokens[] = { diff --git a/ext/phalcon/annotations/parser.c b/ext/phalcon/annotations/parser.c index 10dbda59499..aa3d6974623 100644 --- a/ext/phalcon/annotations/parser.c +++ b/ext/phalcon/annotations/parser.c @@ -14,10 +14,10 @@ /* Next is all token values, in a form suitable for use by makeheaders. ** This section will be null unless lemon is run with the -m switch. */ -/* +/* ** These constants (all generated automatically by the parser generator) ** specify the various kinds of tokens (terminals) that the parser -** understands. +** understands. ** ** Each symbol here is a terminal symbol in the grammar. */ @@ -34,7 +34,7 @@ ** and nonterminals. "int" is used otherwise. ** AANOCODE is a number of type AACODETYPE which corresponds ** to no legal terminal or nonterminal number. This -** number is used to fill in empty slots of the hash +** number is used to fill in empty slots of the hash ** table. ** AAFALLBACK If defined, this indicates that one or more tokens ** have fall-back values which should be used if the @@ -43,7 +43,7 @@ ** and nonterminal numbers. "unsigned char" is ** used if there are fewer than 250 rules and ** states combined. "int" is used otherwise. -** phannot_TOKENTYPE is the data type used for minor tokens given +** phannot_TOKENTYPE is the data type used for minor tokens given ** directly to the parser from the tokenizer. ** AAMINORTYPE is the data type used for all minor tokens. ** This is typically a union of many types, one of @@ -84,7 +84,7 @@ typedef union { /* Next are that tables used to determine what action to take based on the ** current state and lookahead token. These tables are used to implement ** functions that take a state number and lookahead value and return an -** action integer. +** action integer. ** ** Suppose the action integer is N. Then the action is determined as ** follows @@ -109,7 +109,7 @@ typedef union { ** If the index value aa_shift_ofst[S]+X is out of range or if the value ** aa_lookahead[aa_shift_ofst[S]+X] is not equal to X or if aa_shift_ofst[S] ** is equal to AA_SHIFT_USE_DFLT, it means that the action is not in the table -** and that aa_default[S] should be used instead. +** and that aa_default[S] should be used instead. ** ** The formula above is for computing the action when the lookahead is ** a terminal symbol. If the lookahead is a non-terminal (as occurs after @@ -174,7 +174,7 @@ static AAACTIONTYPE aa_default[] = { /* The next table maps tokens into fallback tokens. If a construct ** like the following: -** +** ** %fallback ID X Y Z. ** ** appears in the grammer, then ID becomes a fallback token for X, Y, @@ -225,10 +225,10 @@ static char *aaTracePrompt = 0; #endif /* NDEBUG */ #ifndef NDEBUG -/* +/* ** Turn parser tracing on by giving a stream to which to write the trace ** and a prompt to preface each trace message. Tracing is turned off -** by making either argument NULL +** by making either argument NULL ** ** Inputs: **
    @@ -253,14 +253,14 @@ void phannot_Trace(FILE *TraceFILE, char *zTracePrompt){ #ifndef NDEBUG /* For tracing shifts, the names of all terminals and nonterminals ** are required. The following table supplies these names */ -static const char *aaTokenName[] = { - "$", "COMMA", "AT", "IDENTIFIER", - "PARENTHESES_OPEN", "PARENTHESES_CLOSE", "STRING", "EQUALS", - "COLON", "INTEGER", "DOUBLE", "NULL", +static const char *aaTokenName[] = { + "$", "COMMA", "AT", "IDENTIFIER", + "PARENTHESES_OPEN", "PARENTHESES_CLOSE", "STRING", "EQUALS", + "COLON", "INTEGER", "DOUBLE", "NULL", "FALSE", "TRUE", "BRACKET_OPEN", "BRACKET_CLOSE", - "SBRACKET_OPEN", "SBRACKET_CLOSE", "error", "program", + "SBRACKET_OPEN", "SBRACKET_CLOSE", "error", "program", "annotation_language", "annotation_list", "annotation", "argument_list", - "argument_item", "expr", "array", + "argument_item", "expr", "array", }; #endif /* NDEBUG */ @@ -312,7 +312,7 @@ const char *phannot_TokenName(int tokenType){ #endif } -/* +/* ** This function allocates a new parser. ** The only argument is a pointer to a function which works like ** malloc. @@ -343,7 +343,7 @@ static void aa_destructor(AACODETYPE aamajor, AAMINORTYPE *aapminor){ /* Here is inserted the actions which take place when a ** terminal or non-terminal is destroyed. This can happen ** when the symbol is popped from the stack during a - ** reduce or during error processing or when a parser is + ** reduce or during error processing or when a parser is ** being destroyed before it is finished parsing. ** ** Note: during a reduce, the only symbols destroyed are those @@ -420,7 +420,7 @@ static int aa_pop_parser_stack(aaParser *pParser){ return aamajor; } -/* +/* ** Deallocate and destroy a parser. Destructors are all called for ** all stack elements before shutting the parser down. ** @@ -456,7 +456,7 @@ static int aa_find_shift_action( ){ int i; int stateno = pParser->aastack[pParser->aaidx].stateno; - + /* if( pParser->aaidx<0 ) return AA_NO_ACTION; */ i = aa_shift_ofst[stateno]; if( i==AA_SHIFT_USE_DFLT ){ @@ -500,7 +500,7 @@ static int aa_find_reduce_action( ){ int i; int stateno = pParser->aastack[pParser->aaidx].stateno; - + i = aa_reduce_ofst[stateno]; if( i==AA_REDUCE_USE_DFLT ){ return aa_default[stateno]; @@ -609,7 +609,7 @@ static void aa_reduce( phannot_ARG_FETCH; aamsp = &aapParser->aastack[aapParser->aaidx]; #ifndef NDEBUG - if( aaTraceFILE && aaruleno>=0 + if( aaTraceFILE && aaruleno>=0 && aaruleno @@ -1297,14 +1297,14 @@ void phannot_Trace(FILE *TraceFILE, char *zTracePrompt){ #ifndef NDEBUG /* For tracing shifts, the names of all terminals and nonterminals ** are required. The following table supplies these names */ -static const char *aaTokenName[] = { - "$", "COMMA", "AT", "IDENTIFIER", - "PARENTHESES_OPEN", "PARENTHESES_CLOSE", "STRING", "EQUALS", - "COLON", "INTEGER", "DOUBLE", "NULL", +static const char *aaTokenName[] = { + "$", "COMMA", "AT", "IDENTIFIER", + "PARENTHESES_OPEN", "PARENTHESES_CLOSE", "STRING", "EQUALS", + "COLON", "INTEGER", "DOUBLE", "NULL", "FALSE", "TRUE", "BRACKET_OPEN", "BRACKET_CLOSE", - "SBRACKET_OPEN", "SBRACKET_CLOSE", "error", "program", + "SBRACKET_OPEN", "SBRACKET_CLOSE", "error", "program", "annotation_language", "annotation_list", "annotation", "argument_list", - "argument_item", "expr", "array", + "argument_item", "expr", "array", }; #endif /* NDEBUG */ @@ -1356,7 +1356,7 @@ const char *phannot_TokenName(int tokenType){ #endif } -/* +/* ** This function allocates a new parser. ** The only argument is a pointer to a function which works like ** malloc. @@ -1387,7 +1387,7 @@ static void aa_destructor(AACODETYPE aamajor, AAMINORTYPE *aapminor){ /* Here is inserted the actions which take place when a ** terminal or non-terminal is destroyed. This can happen ** when the symbol is popped from the stack during a - ** reduce or during error processing or when a parser is + ** reduce or during error processing or when a parser is ** being destroyed before it is finished parsing. ** ** Note: during a reduce, the only symbols destroyed are those @@ -1464,7 +1464,7 @@ static int aa_pop_parser_stack(aaParser *pParser){ return aamajor; } -/* +/* ** Deallocate and destroy a parser. Destructors are all called for ** all stack elements before shutting the parser down. ** @@ -1500,7 +1500,7 @@ static int aa_find_shift_action( ){ int i; int stateno = pParser->aastack[pParser->aaidx].stateno; - + /* if( pParser->aaidx<0 ) return AA_NO_ACTION; */ i = aa_shift_ofst[stateno]; if( i==AA_SHIFT_USE_DFLT ){ @@ -1544,7 +1544,7 @@ static int aa_find_reduce_action( ){ int i; int stateno = pParser->aastack[pParser->aaidx].stateno; - + i = aa_reduce_ofst[stateno]; if( i==AA_REDUCE_USE_DFLT ){ return aa_default[stateno]; @@ -1653,7 +1653,7 @@ static void aa_reduce( phannot_ARG_FETCH; aamsp = &aapParser->aastack[aapParser->aaidx]; #ifndef NDEBUG - if( aaTraceFILE && aaruleno>=0 + if( aaTraceFILE && aaruleno>=0 && aaruleno | - | Eduar Carvajal | - +------------------------------------------------------------------------+ -*/ +/** + * This file is part of the Phalcon Framework. + * + * (c) Phalcon Team + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ const phannot_token_names phannot_tokens[] = { diff --git a/ext/phalcon/annotations/scanner.c b/ext/phalcon/annotations/scanner.c index d4a899027df..54c5a30bb27 100644 --- a/ext/phalcon/annotations/scanner.c +++ b/ext/phalcon/annotations/scanner.c @@ -1,23 +1,14 @@ /* Generated by re2c 0.13.6 on Tue Apr 26 22:58:08 2016 */ // 1 "scanner.re" -/* - +------------------------------------------------------------------------+ - | Phalcon Framework | - +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 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 | - +------------------------------------------------------------------------+ -*/ +/** + * This file is part of the Phalcon Framework. + * + * (c) Phalcon Team + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ #include "php_phalcon.h" @@ -56,7 +47,7 @@ int phannot_get_token(phannot_scanner_state *s, phannot_scanner_token *token) { } else { - + // 61 "scanner.c" { AACTYPE aach; @@ -1023,4 +1014,4 @@ int phannot_get_token(phannot_scanner_state *s, phannot_scanner_token *token) { } return status; -} \ No newline at end of file +} diff --git a/ext/phalcon/annotations/scanner.h b/ext/phalcon/annotations/scanner.h index e93aa2e60a8..a85f145c618 100644 --- a/ext/phalcon/annotations/scanner.h +++ b/ext/phalcon/annotations/scanner.h @@ -1,21 +1,12 @@ -/* - +------------------------------------------------------------------------+ - | Phalcon Framework | - +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 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 | - +------------------------------------------------------------------------+ -*/ +/** + * This file is part of the Phalcon Framework. + * + * (c) Phalcon Team + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ #ifndef PHALCON_ANNOTATIONS_SCANNER_H #define PHALCON_ANNOTATIONS_SCANNER_H @@ -85,4 +76,4 @@ int phannot_get_token(phannot_scanner_state *s, phannot_scanner_token *token); extern const phannot_token_names phannot_tokens[]; -#endif /* PHALCON_ANNOTATIONS_SCANNER_H */ \ No newline at end of file +#endif /* PHALCON_ANNOTATIONS_SCANNER_H */ diff --git a/ext/phalcon/db/adapter/pdo_constants.h b/ext/phalcon/db/adapter/pdo_constants.h index 5f21391b477..1f3267d8d3c 100644 --- a/ext/phalcon/db/adapter/pdo_constants.h +++ b/ext/phalcon/db/adapter/pdo_constants.h @@ -1,22 +1,12 @@ -/* - +------------------------------------------------------------------------+ - | 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 | - | Rack Lin | - +------------------------------------------------------------------------+ -*/ +/** + * This file is part of the Phalcon Framework. + * + * (c) Phalcon Team + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ #define PDO_ATTR_ERRMODE 3 #define PDO_ATTR_CASE 8 @@ -27,4 +17,4 @@ #define PDO_CURSOR_SCROLL 1 #define PDO_ERRMODE_SILENT 0 #define PDO_ERRMODE_WARNING 1 -#define PDO_ERRMODE_EXCEPTION 2 \ No newline at end of file +#define PDO_ERRMODE_EXCEPTION 2 diff --git a/ext/phalcon/db/utils.c b/ext/phalcon/db/utils.c index a9b1f33ad05..922eade26bc 100644 --- a/ext/phalcon/db/utils.c +++ b/ext/phalcon/db/utils.c @@ -1,21 +1,12 @@ -/* - +------------------------------------------------------------------------+ - | Phalcon Framework | - +------------------------------------------------------------------------+ - | Copyright (c) 2011-2015 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 | - +------------------------------------------------------------------------+ -*/ +/** + * This file is part of the Phalcon Framework. + * + * (c) Phalcon Team + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ int phalcon_db_checktype(zval *return_value, zval *placeholder TSRMLS_DC) { diff --git a/ext/phalcon/db/utils.h b/ext/phalcon/db/utils.h index 7a17fb600b2..c66e7a05681 100644 --- a/ext/phalcon/db/utils.h +++ b/ext/phalcon/db/utils.h @@ -1,20 +1,11 @@ -/* - +------------------------------------------------------------------------+ - | Phalcon Framework | - +------------------------------------------------------------------------+ - | Copyright (c) 2011-2015 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 | - +------------------------------------------------------------------------+ -*/ +/** + * This file is part of the Phalcon Framework. + * + * (c) Phalcon Team + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ int phalcon_db_checktype(zval *return_value, zval *placeholder TSRMLS_DC); diff --git a/ext/phalcon/mvc/model/orm.c b/ext/phalcon/mvc/model/orm.c index 1a10531bc6d..b5cce58c34e 100644 --- a/ext/phalcon/mvc/model/orm.c +++ b/ext/phalcon/mvc/model/orm.c @@ -1,21 +1,12 @@ -/* - +------------------------------------------------------------------------+ - | Phalcon Framework | - +------------------------------------------------------------------------+ - | Copyright (c) 2011-2015 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 | - +------------------------------------------------------------------------+ -*/ +/** + * This file is part of the Phalcon Framework. + * + * (c) Phalcon Team + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/ext/phalcon/mvc/model/orm.h b/ext/phalcon/mvc/model/orm.h index f01f7246521..60b60f3aa9f 100644 --- a/ext/phalcon/mvc/model/orm.h +++ b/ext/phalcon/mvc/model/orm.h @@ -1,21 +1,12 @@ -/* - +------------------------------------------------------------------------+ - | Phalcon Framework | - +------------------------------------------------------------------------+ - | Copyright (c) 2011-2015 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 | - +------------------------------------------------------------------------+ -*/ +/** + * This file is part of the Phalcon Framework. + * + * (c) Phalcon Team + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ void phalcon_orm_destroy_cache(TSRMLS_D); void phalcon_orm_singlequotes(zval *return_value, zval *str TSRMLS_DC); diff --git a/ext/phalcon/mvc/model/query/base.c b/ext/phalcon/mvc/model/query/base.c index 1e036caf43b..a7da2e6b387 100644 --- a/ext/phalcon/mvc/model/query/base.c +++ b/ext/phalcon/mvc/model/query/base.c @@ -1,21 +1,12 @@ -/* - +------------------------------------------------------------------------+ - | Phalcon Framework | - +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 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 | - +------------------------------------------------------------------------+ -*/ +/** + * This file is part of the Phalcon Framework. + * + * (c) Phalcon Team + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ const phql_token_names phql_tokens[] = { diff --git a/ext/phalcon/mvc/model/query/parser.c b/ext/phalcon/mvc/model/query/parser.c index 098b64bf660..a0adfda0059 100644 --- a/ext/phalcon/mvc/model/query/parser.c +++ b/ext/phalcon/mvc/model/query/parser.c @@ -14,10 +14,10 @@ /* Next is all token values, in a form suitable for use by makeheaders. ** This section will be null unless lemon is run with the -m switch. */ -/* +/* ** These constants (all generated automatically by the parser generator) ** specify the various kinds of tokens (terminals) that the parser -** understands. +** understands. ** ** Each symbol here is a terminal symbol in the grammar. */ @@ -34,7 +34,7 @@ ** and nonterminals. "int" is used otherwise. ** PPNOCODE is a number of type PPCODETYPE which corresponds ** to no legal terminal or nonterminal number. This -** number is used to fill in empty slots of the hash +** number is used to fill in empty slots of the hash ** table. ** PPFALLBACK If defined, this indicates that one or more tokens ** have fall-back values which should be used if the @@ -43,7 +43,7 @@ ** and nonterminal numbers. "unsigned char" is ** used if there are fewer than 250 rules and ** states combined. "int" is used otherwise. -** phql_TOKENTYPE is the data type used for minor tokens given +** phql_TOKENTYPE is the data type used for minor tokens given ** directly to the parser from the tokenizer. ** PPMINORTYPE is the data type used for all minor tokens. ** This is typically a union of many types, one of @@ -84,7 +84,7 @@ typedef union { /* Next are that tables used to determine what action to take based on the ** current state and lookahead token. These tables are used to implement ** functions that take a state number and lookahead value and return an -** action integer. +** action integer. ** ** Suppose the action integer is N. Then the action is determined as ** follows @@ -109,7 +109,7 @@ typedef union { ** If the index value pp_shift_ofst[S]+X is out of range or if the value ** pp_lookahead[pp_shift_ofst[S]+X] is not equal to X or if pp_shift_ofst[S] ** is equal to PP_SHIFT_USE_DFLT, it means that the action is not in the table -** and that pp_default[S] should be used instead. +** and that pp_default[S] should be used instead. ** ** The formula above is for computing the action when the lookahead is ** a terminal symbol. If the lookahead is a non-terminal (as occurs after @@ -394,7 +394,7 @@ static PPACTIONTYPE pp_default[] = { /* The next table maps tokens into fallback tokens. If a construct ** like the following: -** +** ** %fallback ID X Y Z. ** ** appears in the grammer, then ID becomes a fallback token for X, Y, @@ -445,10 +445,10 @@ static char *ppTracePrompt = 0; #endif /* NDEBUG */ #ifndef NDEBUG -/* +/* ** Turn parser tracing on by giving a stream to which to write the trace ** and a prompt to preface each trace message. Tracing is turned off -** by making either argument NULL +** by making either argument NULL ** ** Inputs: **
      @@ -473,38 +473,38 @@ void phql_Trace(FILE *TraceFILE, char *zTracePrompt){ #ifndef NDEBUG /* For tracing shifts, the names of all terminals and nonterminals ** are required. The following table supplies these names */ -static const char *ppTokenName[] = { - "$", "AGAINST", "BETWEEN", "EQUALS", +static const char *ppTokenName[] = { + "$", "AGAINST", "BETWEEN", "EQUALS", "NOTEQUALS", "LESS", "GREATER", "GREATEREQUAL", - "LESSEQUAL", "AND", "OR", "LIKE", - "ILIKE", "BITWISE_AND", "BITWISE_OR", "BITWISE_XOR", - "DIVIDE", "TIMES", "MOD", "PLUS", - "MINUS", "IS", "IN", "NOT", - "BITWISE_NOT", "COMMA", "SELECT", "FROM", - "DISTINCT", "ALL", "IDENTIFIER", "DOT", - "AS", "INNER", "JOIN", "CROSS", - "LEFT", "OUTER", "RIGHT", "FULL", - "ON", "INSERT", "INTO", "VALUES", - "PARENTHESES_OPEN", "PARENTHESES_CLOSE", "UPDATE", "SET", - "DELETE", "WITH", "WHERE", "ORDER", - "BY", "ASC", "DESC", "GROUP", - "HAVING", "FOR", "LIMIT", "OFFSET", + "LESSEQUAL", "AND", "OR", "LIKE", + "ILIKE", "BITWISE_AND", "BITWISE_OR", "BITWISE_XOR", + "DIVIDE", "TIMES", "MOD", "PLUS", + "MINUS", "IS", "IN", "NOT", + "BITWISE_NOT", "COMMA", "SELECT", "FROM", + "DISTINCT", "ALL", "IDENTIFIER", "DOT", + "AS", "INNER", "JOIN", "CROSS", + "LEFT", "OUTER", "RIGHT", "FULL", + "ON", "INSERT", "INTO", "VALUES", + "PARENTHESES_OPEN", "PARENTHESES_CLOSE", "UPDATE", "SET", + "DELETE", "WITH", "WHERE", "ORDER", + "BY", "ASC", "DESC", "GROUP", + "HAVING", "FOR", "LIMIT", "OFFSET", "INTEGER", "HINTEGER", "NPLACEHOLDER", "SPLACEHOLDER", - "BPLACEHOLDER", "EXISTS", "CAST", "CONVERT", - "USING", "CASE", "END", "WHEN", - "THEN", "ELSE", "NULL", "STRING", - "DOUBLE", "TRUE", "FALSE", "error", + "BPLACEHOLDER", "EXISTS", "CAST", "CONVERT", + "USING", "CASE", "END", "WHEN", + "THEN", "ELSE", "NULL", "STRING", + "DOUBLE", "TRUE", "FALSE", "error", "program", "query_language", "select_statement", "insert_statement", "update_statement", "delete_statement", "select_clause", "where_clause", "group_clause", "having_clause", "order_clause", "select_limit_clause", "for_update_clause", "distinct_all", "column_list", "associated_name_list", "join_list_or_null", "column_item", "expr", "associated_name", - "join_list", "join_item", "join_clause", "join_type", - "aliased_or_qualified_name", "join_associated_name", "join_conditions", "values_list", - "field_list", "value_list", "value_item", "field_item", - "update_clause", "limit_clause", "update_item_list", "update_item", - "qualified_name", "new_value", "delete_clause", "with_item", - "with_list", "order_list", "order_item", "group_list", + "join_list", "join_item", "join_clause", "join_type", + "aliased_or_qualified_name", "join_associated_name", "join_conditions", "values_list", + "field_list", "value_list", "value_item", "field_item", + "update_clause", "limit_clause", "update_item_list", "update_item", + "qualified_name", "new_value", "delete_clause", "with_item", + "with_list", "order_list", "order_item", "group_list", "group_item", "integer_or_placeholder", "argument_list", "when_clauses", "when_clause", "function_call", "distinct_or_null", "argument_list_or_null", "argument_item", @@ -695,7 +695,7 @@ const char *phql_TokenName(int tokenType){ #endif } -/* +/* ** This function allocates a new parser. ** The only argument is a pointer to a function which works like ** malloc. @@ -726,7 +726,7 @@ static void pp_destructor(PPCODETYPE ppmajor, PPMINORTYPE *pppminor){ /* Here is inserted the actions which take place when a ** terminal or non-terminal is destroyed. This can happen ** when the symbol is popped from the stack during a - ** reduce or during error processing or when a parser is + ** reduce or during error processing or when a parser is ** being destroyed before it is finished parsing. ** ** Note: during a reduce, the only symbols destroyed are those @@ -915,7 +915,7 @@ static int pp_pop_parser_stack(ppParser *pParser){ return ppmajor; } -/* +/* ** Deallocate and destroy a parser. Destructors are all called for ** all stack elements before shutting the parser down. ** @@ -951,7 +951,7 @@ static int pp_find_shift_action( ){ int i; int stateno = pParser->ppstack[pParser->ppidx].stateno; - + /* if( pParser->ppidx<0 ) return PP_NO_ACTION; */ i = pp_shift_ofst[stateno]; if( i==PP_SHIFT_USE_DFLT ){ @@ -995,7 +995,7 @@ static int pp_find_reduce_action( ){ int i; int stateno = pParser->ppstack[pParser->ppidx].stateno; - + i = pp_reduce_ofst[stateno]; if( i==PP_REDUCE_USE_DFLT ){ return pp_default[stateno]; @@ -1240,7 +1240,7 @@ static void pp_reduce( phql_ARG_FETCH; ppmsp = &pppParser->ppstack[pppParser->ppidx]; #ifndef NDEBUG - if( ppTraceFILE && ppruleno>=0 + if( ppTraceFILE && ppruleno>=0 && ppruleno @@ -2943,38 +2943,38 @@ void phql_Trace(FILE *TraceFILE, char *zTracePrompt){ #ifndef NDEBUG /* For tracing shifts, the names of all terminals and nonterminals ** are required. The following table supplies these names */ -static const char *ppTokenName[] = { - "$", "AGAINST", "BETWEEN", "EQUALS", +static const char *ppTokenName[] = { + "$", "AGAINST", "BETWEEN", "EQUALS", "NOTEQUALS", "LESS", "GREATER", "GREATEREQUAL", - "LESSEQUAL", "AND", "OR", "LIKE", - "ILIKE", "BITWISE_AND", "BITWISE_OR", "BITWISE_XOR", - "DIVIDE", "TIMES", "MOD", "PLUS", - "MINUS", "IS", "IN", "NOT", - "BITWISE_NOT", "COMMA", "SELECT", "FROM", - "DISTINCT", "ALL", "IDENTIFIER", "DOT", - "AS", "INNER", "JOIN", "CROSS", - "LEFT", "OUTER", "RIGHT", "FULL", - "ON", "INSERT", "INTO", "VALUES", - "PARENTHESES_OPEN", "PARENTHESES_CLOSE", "UPDATE", "SET", - "DELETE", "WITH", "WHERE", "ORDER", - "BY", "ASC", "DESC", "GROUP", - "HAVING", "FOR", "LIMIT", "OFFSET", + "LESSEQUAL", "AND", "OR", "LIKE", + "ILIKE", "BITWISE_AND", "BITWISE_OR", "BITWISE_XOR", + "DIVIDE", "TIMES", "MOD", "PLUS", + "MINUS", "IS", "IN", "NOT", + "BITWISE_NOT", "COMMA", "SELECT", "FROM", + "DISTINCT", "ALL", "IDENTIFIER", "DOT", + "AS", "INNER", "JOIN", "CROSS", + "LEFT", "OUTER", "RIGHT", "FULL", + "ON", "INSERT", "INTO", "VALUES", + "PARENTHESES_OPEN", "PARENTHESES_CLOSE", "UPDATE", "SET", + "DELETE", "WITH", "WHERE", "ORDER", + "BY", "ASC", "DESC", "GROUP", + "HAVING", "FOR", "LIMIT", "OFFSET", "INTEGER", "HINTEGER", "NPLACEHOLDER", "SPLACEHOLDER", - "BPLACEHOLDER", "EXISTS", "CAST", "CONVERT", - "USING", "CASE", "END", "WHEN", - "THEN", "ELSE", "NULL", "STRING", - "DOUBLE", "TRUE", "FALSE", "error", + "BPLACEHOLDER", "EXISTS", "CAST", "CONVERT", + "USING", "CASE", "END", "WHEN", + "THEN", "ELSE", "NULL", "STRING", + "DOUBLE", "TRUE", "FALSE", "error", "program", "query_language", "select_statement", "insert_statement", "update_statement", "delete_statement", "select_clause", "where_clause", "group_clause", "having_clause", "order_clause", "select_limit_clause", "for_update_clause", "distinct_all", "column_list", "associated_name_list", "join_list_or_null", "column_item", "expr", "associated_name", - "join_list", "join_item", "join_clause", "join_type", - "aliased_or_qualified_name", "join_associated_name", "join_conditions", "values_list", - "field_list", "value_list", "value_item", "field_item", - "update_clause", "limit_clause", "update_item_list", "update_item", - "qualified_name", "new_value", "delete_clause", "with_item", - "with_list", "order_list", "order_item", "group_list", + "join_list", "join_item", "join_clause", "join_type", + "aliased_or_qualified_name", "join_associated_name", "join_conditions", "values_list", + "field_list", "value_list", "value_item", "field_item", + "update_clause", "limit_clause", "update_item_list", "update_item", + "qualified_name", "new_value", "delete_clause", "with_item", + "with_list", "order_list", "order_item", "group_list", "group_item", "integer_or_placeholder", "argument_list", "when_clauses", "when_clause", "function_call", "distinct_or_null", "argument_list_or_null", "argument_item", @@ -3165,7 +3165,7 @@ const char *phql_TokenName(int tokenType){ #endif } -/* +/* ** This function allocates a new parser. ** The only argument is a pointer to a function which works like ** malloc. @@ -3196,7 +3196,7 @@ static void pp_destructor(PPCODETYPE ppmajor, PPMINORTYPE *pppminor){ /* Here is inserted the actions which take place when a ** terminal or non-terminal is destroyed. This can happen ** when the symbol is popped from the stack during a - ** reduce or during error processing or when a parser is + ** reduce or during error processing or when a parser is ** being destroyed before it is finished parsing. ** ** Note: during a reduce, the only symbols destroyed are those @@ -3385,7 +3385,7 @@ static int pp_pop_parser_stack(ppParser *pParser){ return ppmajor; } -/* +/* ** Deallocate and destroy a parser. Destructors are all called for ** all stack elements before shutting the parser down. ** @@ -3421,7 +3421,7 @@ static int pp_find_shift_action( ){ int i; int stateno = pParser->ppstack[pParser->ppidx].stateno; - + /* if( pParser->ppidx<0 ) return PP_NO_ACTION; */ i = pp_shift_ofst[stateno]; if( i==PP_SHIFT_USE_DFLT ){ @@ -3465,7 +3465,7 @@ static int pp_find_reduce_action( ){ int i; int stateno = pParser->ppstack[pParser->ppidx].stateno; - + i = pp_reduce_ofst[stateno]; if( i==PP_REDUCE_USE_DFLT ){ return pp_default[stateno]; @@ -3710,7 +3710,7 @@ static void pp_reduce( phql_ARG_FETCH; ppmsp = &pppParser->ppstack[pppParser->ppidx]; #ifndef NDEBUG - if( ppTraceFILE && ppruleno>=0 + if( ppTraceFILE && ppruleno>=0 && ppruleno | - | Eduar Carvajal | - +------------------------------------------------------------------------+ -*/ +/** + * This file is part of the Phalcon Framework. + * + * (c) Phalcon Team + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ const phql_token_names phql_tokens[] = { diff --git a/ext/phalcon/mvc/model/query/phql.h b/ext/phalcon/mvc/model/query/phql.h index 434b8c3b200..a10a2b98ab6 100644 --- a/ext/phalcon/mvc/model/query/phql.h +++ b/ext/phalcon/mvc/model/query/phql.h @@ -1,21 +1,12 @@ -/* - +------------------------------------------------------------------------+ - | Phalcon Framework | - +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 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 | - +------------------------------------------------------------------------+ -*/ +/** + * This file is part of the Phalcon Framework. + * + * (c) Phalcon Team + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ #ifndef PHALCON_MVC_MODEL_QUERY_PHQL_H #define PHALCON_MVC_MODEL_QUERY_PHQL_H diff --git a/ext/phalcon/mvc/model/query/scanner.c b/ext/phalcon/mvc/model/query/scanner.c index a1f590b4abd..9076e70f307 100644 --- a/ext/phalcon/mvc/model/query/scanner.c +++ b/ext/phalcon/mvc/model/query/scanner.c @@ -1,23 +1,14 @@ /* Generated by re2c 0.14.3 on Wed Jul 27 23:59:57 2016 */ // 1 "scanner.re" -/* - +------------------------------------------------------------------------+ - | Phalcon Framework | - +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 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 | - +------------------------------------------------------------------------+ -*/ +/** + * This file is part of the Phalcon Framework. + * + * (c) Phalcon Team + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -40,7 +31,7 @@ int phql_get_token(phql_scanner_state *s, phql_scanner_token *token) { while (PHQL_SCANNER_RETCODE_IMPOSSIBLE == status) { - + // 45 "scanner.c" { PPCTYPE ppch; diff --git a/ext/phalcon/mvc/model/query/scanner.h b/ext/phalcon/mvc/model/query/scanner.h index acf76c79fa5..117f07020ed 100644 --- a/ext/phalcon/mvc/model/query/scanner.h +++ b/ext/phalcon/mvc/model/query/scanner.h @@ -1,21 +1,12 @@ -/* - +------------------------------------------------------------------------+ - | Phalcon Framework | - +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 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 | - +------------------------------------------------------------------------+ -*/ +/** + * This file is part of the Phalcon Framework. + * + * (c) Phalcon Team + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ #define PHQL_SCANNER_RETCODE_EOF -1 #define PHQL_SCANNER_RETCODE_ERR -2 diff --git a/ext/phalcon/mvc/model_contants.h b/ext/phalcon/mvc/model_contants.h index e6ccf6c367e..53a2498bc4d 100644 --- a/ext/phalcon/mvc/model_contants.h +++ b/ext/phalcon/mvc/model_contants.h @@ -1,21 +1,12 @@ -/* - +------------------------------------------------------------------------+ - | Phalcon Framework | - +------------------------------------------------------------------------+ - | Copyright (c) 2011-2014 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 | - +------------------------------------------------------------------------+ -*/ +/** + * This file is part of the Phalcon Framework. + * + * (c) Phalcon Team + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ #ifndef PHALCON_MVC_MODEL_CONSTANTS_H #define PHALCON_MVC_MODEL_CONSTANTS_H diff --git a/ext/phalcon/mvc/view/engine/pphp.h b/ext/phalcon/mvc/view/engine/pphp.h index 92767fd6726..65f35ee1d1b 100644 --- a/ext/phalcon/mvc/view/engine/pphp.h +++ b/ext/phalcon/mvc/view/engine/pphp.h @@ -1,21 +1,12 @@ -/* - +------------------------------------------------------------------------+ - | 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 | - +------------------------------------------------------------------------+ -*/ +/** + * This file is part of the Phalcon Framework. + * + * (c) Phalcon Team + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ extern zend_class_entry *phalcon_mvc_view_engine_php_ce; @@ -30,7 +21,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_engine_php_render, 0, 0, 2) 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_ME(Phalcon_Mvc_View_Engine_Php, render, arginfo_phalcon_mvc_view_engine_php_render, ZEND_ACC_PUBLIC) PHP_FE_END }; diff --git a/ext/phalcon/mvc/view/engine/volt/base.c b/ext/phalcon/mvc/view/engine/volt/base.c index a1b59077aea..6e2808151e6 100644 --- a/ext/phalcon/mvc/view/engine/volt/base.c +++ b/ext/phalcon/mvc/view/engine/volt/base.c @@ -2,7 +2,7 @@ * * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. diff --git a/ext/phalcon/mvc/view/engine/volt/generate b/ext/phalcon/mvc/view/engine/volt/generate index 75e7b12f545..c3b49a64094 100755 --- a/ext/phalcon/mvc/view/engine/volt/generate +++ b/ext/phalcon/mvc/view/engine/volt/generate @@ -2,7 +2,7 @@ # # This file is part of the Phalcon Framework. # -# (c) Phalcon Team +# (c) Phalcon Team # # For the full copyright and license information, please view the # LICENSE.txt file that was distributed with this source code. diff --git a/ext/phalcon/mvc/view/engine/volt/parser.c b/ext/phalcon/mvc/view/engine/volt/parser.c index f0922a4915b..1843708ce31 100644 --- a/ext/phalcon/mvc/view/engine/volt/parser.c +++ b/ext/phalcon/mvc/view/engine/volt/parser.c @@ -13,10 +13,10 @@ /* Next is all token values, in a form suitable for use by makeheaders. ** This section will be null unless lemon is run with the -m switch. */ -/* +/* ** These constants (all generated automatically by the parser generator) ** specify the various kinds of tokens (terminals) that the parser -** understands. +** understands. ** ** Each symbol here is a terminal symbol in the grammar. */ @@ -33,7 +33,7 @@ ** and nonterminals. "int" is used otherwise. ** VVNOCODE is a number of type VVCODETYPE which corresponds ** to no legal terminal or nonterminal number. This -** number is used to fill in empty slots of the hash +** number is used to fill in empty slots of the hash ** table. ** VVFALLBACK If defined, this indicates that one or more tokens ** have fall-back values which should be used if the @@ -42,7 +42,7 @@ ** and nonterminal numbers. "unsigned char" is ** used if there are fewer than 250 rules and ** states combined. "int" is used otherwise. -** phvolt_TOKENTYPE is the data type used for minor tokens given +** phvolt_TOKENTYPE is the data type used for minor tokens given ** directly to the parser from the tokenizer. ** VVMINORTYPE is the data type used for all minor tokens. ** This is typically a union of many types, one of @@ -83,7 +83,7 @@ typedef union { /* Next are that tables used to determine what action to take based on the ** current state and lookahead token. These tables are used to implement ** functions that take a state number and lookahead value and return an -** action integer. +** action integer. ** ** Suppose the action integer is N. Then the action is determined as ** follows @@ -108,7 +108,7 @@ typedef union { ** If the index value vv_shift_ofst[S]+X is out of range or if the value ** vv_lookahead[vv_shift_ofst[S]+X] is not equal to X or if vv_shift_ofst[S] ** is equal to VV_SHIFT_USE_DFLT, it means that the action is not in the table -** and that vv_default[S] should be used instead. +** and that vv_default[S] should be used instead. ** ** The formula above is for computing the action when the lookahead is ** a terminal symbol. If the lookahead is a non-terminal (as occurs after @@ -782,7 +782,7 @@ static VVACTIONTYPE vv_default[] = { /* The next table maps tokens into fallback tokens. If a construct ** like the following: -** +** ** %fallback ID X Y Z. ** ** appears in the grammer, then ID becomes a fallback token for X, Y, @@ -833,10 +833,10 @@ static char *vvTracePrompt = 0; #endif /* NDEBUG */ #ifndef NDEBUG -/* +/* ** Turn parser tracing on by giving a stream to which to write the trace ** and a prompt to preface each trace message. Tracing is turned off -** by making either argument NULL +** by making either argument NULL ** ** Inputs: **
        @@ -861,28 +861,28 @@ void phvolt_Trace(FILE *TraceFILE, char *zTracePrompt){ #ifndef NDEBUG /* For tracing shifts, the names of all terminals and nonterminals ** are required. The following table supplies these names */ -static const char *vvTokenName[] = { - "$", "OPEN_DELIMITER", "COMMA", "IN", - "QUESTION", "COLON", "RANGE", "AND", - "OR", "IS", "EQUALS", "NOTEQUALS", - "LESS", "GREATER", "GREATEREQUAL", "LESSEQUAL", - "IDENTICAL", "NOTIDENTICAL", "DIVIDE", "TIMES", - "MOD", "PLUS", "MINUS", "CONCAT", - "SBRACKET_OPEN", "PIPE", "NOT", "INCR", - "DECR", "PARENTHESES_OPEN", "DOT", "IF", - "CLOSE_DELIMITER", "ENDIF", "ELSE", "ELSEIF", - "ELSEFOR", "FOR", "IDENTIFIER", "ENDFOR", - "SWITCH", "ENDSWITCH", "CASE", "DEFAULT", - "SET", "ASSIGN", "ADD_ASSIGN", "SUB_ASSIGN", - "MUL_ASSIGN", "DIV_ASSIGN", "SBRACKET_CLOSE", "MACRO", - "PARENTHESES_CLOSE", "ENDMACRO", "INTEGER", "STRING", - "DOUBLE", "NULL", "FALSE", "TRUE", +static const char *vvTokenName[] = { + "$", "OPEN_DELIMITER", "COMMA", "IN", + "QUESTION", "COLON", "RANGE", "AND", + "OR", "IS", "EQUALS", "NOTEQUALS", + "LESS", "GREATER", "GREATEREQUAL", "LESSEQUAL", + "IDENTICAL", "NOTIDENTICAL", "DIVIDE", "TIMES", + "MOD", "PLUS", "MINUS", "CONCAT", + "SBRACKET_OPEN", "PIPE", "NOT", "INCR", + "DECR", "PARENTHESES_OPEN", "DOT", "IF", + "CLOSE_DELIMITER", "ENDIF", "ELSE", "ELSEIF", + "ELSEFOR", "FOR", "IDENTIFIER", "ENDFOR", + "SWITCH", "ENDSWITCH", "CASE", "DEFAULT", + "SET", "ASSIGN", "ADD_ASSIGN", "SUB_ASSIGN", + "MUL_ASSIGN", "DIV_ASSIGN", "SBRACKET_CLOSE", "MACRO", + "PARENTHESES_CLOSE", "ENDMACRO", "INTEGER", "STRING", + "DOUBLE", "NULL", "FALSE", "TRUE", "CALL", "ENDCALL", "OPEN_EDELIMITER", "CLOSE_EDELIMITER", - "BLOCK", "ENDBLOCK", "CACHE", "ENDCACHE", - "RAW", "ENDRAW", "EXTENDS", "INCLUDE", - "WITH", "DO", "RETURN", "AUTOESCAPE", + "BLOCK", "ENDBLOCK", "CACHE", "ENDCACHE", + "RAW", "ENDRAW", "EXTENDS", "INCLUDE", + "WITH", "DO", "RETURN", "AUTOESCAPE", "ENDAUTOESCAPE", "BREAK", "CONTINUE", "RAW_FRAGMENT", - "DEFINED", "EMPTY", "EVEN", "ODD", + "DEFINED", "EMPTY", "EVEN", "ODD", "NUMERIC", "SCALAR", "ITERABLE", "CBRACKET_OPEN", "CBRACKET_CLOSE", "error", "program", "volt_language", "statement_list", "statement", "raw_fragment", "if_statement", @@ -893,7 +893,7 @@ static const char *vvTokenName[] = { "continue_statement", "macro_statement", "empty_statement", "macro_call_statement", "expr", "set_assignments", "set_assignment", "assignable_expr", "macro_parameters", "macro_parameter", "macro_parameter_default", "argument_list", - "cache_lifetime", "array_list", "slice_offset", "array_item", + "cache_lifetime", "array_list", "slice_offset", "array_item", "function_call", "argument_item", }; #endif /* NDEBUG */ @@ -1079,7 +1079,7 @@ const char *phvolt_TokenName(int tokenType){ #endif } -/* +/* ** This function allocates a new parser. ** The only argument is a pointer to a function which works like ** malloc. @@ -1110,7 +1110,7 @@ static void vv_destructor(VVCODETYPE vvmajor, VVMINORTYPE *vvpminor){ /* Here is inserted the actions which take place when a ** terminal or non-terminal is destroyed. This can happen ** when the symbol is popped from the stack during a - ** reduce or during error processing or when a parser is + ** reduce or during error processing or when a parser is ** being destroyed before it is finished parsing. ** ** Note: during a reduce, the only symbols destroyed are those @@ -1288,7 +1288,7 @@ static int vv_pop_parser_stack(vvParser *pParser){ return vvmajor; } -/* +/* ** Deallocate and destroy a parser. Destructors are all called for ** all stack elements before shutting the parser down. ** @@ -1324,7 +1324,7 @@ static int vv_find_shift_action( ){ int i; int stateno = pParser->vvstack[pParser->vvidx].stateno; - + /* if( pParser->vvidx<0 ) return VV_NO_ACTION; */ i = vv_shift_ofst[stateno]; if( i==VV_SHIFT_USE_DFLT ){ @@ -1368,7 +1368,7 @@ static int vv_find_reduce_action( ){ int i; int stateno = pParser->vvstack[pParser->vvidx].stateno; - + i = vv_reduce_ofst[stateno]; if( i==VV_REDUCE_USE_DFLT ){ return vv_default[stateno]; @@ -1610,7 +1610,7 @@ static void vv_reduce( phvolt_ARG_FETCH; vvmsp = &vvpParser->vvstack[vvpParser->vvidx]; #ifndef NDEBUG - if( vvTraceFILE && vvruleno>=0 + if( vvTraceFILE && vvruleno>=0 && vvruleno + * (c) Phalcon Team * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. diff --git a/ext/phalcon/mvc/view/engine/volt/parser.php7.inc.h b/ext/phalcon/mvc/view/engine/volt/parser.php7.inc.h index f97c32f80ca..d9b7da92447 100644 --- a/ext/phalcon/mvc/view/engine/volt/parser.php7.inc.h +++ b/ext/phalcon/mvc/view/engine/volt/parser.php7.inc.h @@ -2,7 +2,7 @@ * * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. diff --git a/ext/phalcon/mvc/view/engine/volt/scanner.c b/ext/phalcon/mvc/view/engine/volt/scanner.c index b77b2b174e4..e34976cbdef 100644 --- a/ext/phalcon/mvc/view/engine/volt/scanner.c +++ b/ext/phalcon/mvc/view/engine/volt/scanner.c @@ -3,7 +3,7 @@ * * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. @@ -166,7 +166,7 @@ int phvolt_get_token(phvolt_scanner_state *s, phvolt_scanner_token *token) { } else { - + { VVCTYPE vvch; unsigned int vvaccept = 0; diff --git a/ext/phalcon/mvc/view/engine/volt/scanner.h b/ext/phalcon/mvc/view/engine/volt/scanner.h index 79ef36080dd..beffa9a9233 100644 --- a/ext/phalcon/mvc/view/engine/volt/scanner.h +++ b/ext/phalcon/mvc/view/engine/volt/scanner.h @@ -2,7 +2,7 @@ * * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. diff --git a/ext/phalcon/mvc/view/engine/volt/volt.h b/ext/phalcon/mvc/view/engine/volt/volt.h index 96db0bacc26..9b27a5a9a6e 100644 --- a/ext/phalcon/mvc/view/engine/volt/volt.h +++ b/ext/phalcon/mvc/view/engine/volt/volt.h @@ -2,7 +2,7 @@ * * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. diff --git a/ext/phalcon/pconfig.h b/ext/phalcon/pconfig.h index 055eb5ad175..1f5fea96011 100644 --- a/ext/phalcon/pconfig.h +++ b/ext/phalcon/pconfig.h @@ -1,21 +1,12 @@ -/* - +------------------------------------------------------------------------+ - | Phalcon Framework | - +------------------------------------------------------------------------+ - | Copyright (c) 2011-2014 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 | - +------------------------------------------------------------------------+ -*/ +/** + * This file is part of the Phalcon Framework. + * + * (c) Phalcon Team + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ #ifndef PHALCON_PCONFIG_H #define PHALCON_PCONFIG_H From bbc1a0357d42677214ba85c6b2ac4e125304b30c Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Sun, 25 Aug 2019 15:12:07 -0400 Subject: [PATCH 026/202] [4.0.x] - Updated docblocks --- .ci/after-failure.sh | 2 +- .ci/appveyor.psm1 | 2 +- .ci/build.sh | 2 +- .ci/export-variables.sh | 2 +- .ci/install-php-extensions.sh | 2 +- .ci/install-re2c.sh | 2 +- .ci/install-zephir.sh | 2 +- .ci/pear-setup.sh | 2 +- .ci/phalcon.ini | 2 +- .ci/run-volt-tests.sh | 2 +- .ci/setup-dbs.sh | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.ci/after-failure.sh b/.ci/after-failure.sh index d84e0b0e7bb..df6e46c13b0 100755 --- a/.ci/after-failure.sh +++ b/.ci/after-failure.sh @@ -2,7 +2,7 @@ # # This file is part of the Phalcon Framework. # -# (c) Phalcon Team +# (c) Phalcon Team # # For the full copyright and license information, please view # the LICENSE.txt file that was distributed with this source code. diff --git a/.ci/appveyor.psm1 b/.ci/appveyor.psm1 index 04fd43faed4..c09a1756031 100644 --- a/.ci/appveyor.psm1 +++ b/.ci/appveyor.psm1 @@ -1,6 +1,6 @@ # This file is part of the Phalcon Framework. # -# (c) Phalcon Team +# (c) Phalcon Team # # For the full copyright and license information, please view # the LICENSE.txt file that was distributed with this source code. diff --git a/.ci/build.sh b/.ci/build.sh index d4b21b65303..27e887919ae 100755 --- a/.ci/build.sh +++ b/.ci/build.sh @@ -2,7 +2,7 @@ # # This file is part of the Phalcon Framework. # -# (c) Phalcon Team +# (c) Phalcon Team # # For the full copyright and license information, please view the # LICENSE.txt file that was distributed with this source code. diff --git a/.ci/export-variables.sh b/.ci/export-variables.sh index 2889ee62aaf..905a8adb9bc 100755 --- a/.ci/export-variables.sh +++ b/.ci/export-variables.sh @@ -2,7 +2,7 @@ # # This file is part of the Phalcon Framework. # -# (c) Phalcon Team +# (c) Phalcon Team # # For the full copyright and license information, please view the # LICENSE.txt file that was distributed with this source code. diff --git a/.ci/install-php-extensions.sh b/.ci/install-php-extensions.sh index d376d5f5ee6..e67bd9302ab 100755 --- a/.ci/install-php-extensions.sh +++ b/.ci/install-php-extensions.sh @@ -2,7 +2,7 @@ # # This file is part of the Phalcon Framework. # -# (c) Phalcon Team +# (c) Phalcon Team # # For the full copyright and license information, please view the # LICENSE.txt file that was distributed with this source code. diff --git a/.ci/install-re2c.sh b/.ci/install-re2c.sh index 1e5e98554ec..44a89b12f55 100755 --- a/.ci/install-re2c.sh +++ b/.ci/install-re2c.sh @@ -2,7 +2,7 @@ # # This file is part of the Phalcon Framework. # -# (c) Phalcon Team +# (c) Phalcon Team # # For the full copyright and license information, please view the # LICENSE.txt file that was distributed with this source code. diff --git a/.ci/install-zephir.sh b/.ci/install-zephir.sh index cec6548b8c1..f1657f4e4df 100755 --- a/.ci/install-zephir.sh +++ b/.ci/install-zephir.sh @@ -2,7 +2,7 @@ # # This file is part of the Phalcon Framework. # -# (c) Phalcon Team +# (c) Phalcon Team # # For the full copyright and license information, please view the # LICENSE.txt file that was distributed with this source code. diff --git a/.ci/pear-setup.sh b/.ci/pear-setup.sh index aded938731a..92889c616d3 100755 --- a/.ci/pear-setup.sh +++ b/.ci/pear-setup.sh @@ -2,7 +2,7 @@ # # This file is part of the Phalcon Framework. # -# (c) Phalcon Team +# (c) Phalcon Team # # For the full copyright and license information, please view the # LICENSE.txt file that was distributed with this source code. diff --git a/.ci/phalcon.ini b/.ci/phalcon.ini index 5054f701c05..ca491e18768 100644 --- a/.ci/phalcon.ini +++ b/.ci/phalcon.ini @@ -1,7 +1,7 @@ ; ; This file is part of the Phalcon Framework. ; -; (c) Phalcon Team +; (c) Phalcon Team ; ; For the full copyright and license information, please view the ; LICENSE.txt file that was distributed with this source code. diff --git a/.ci/run-volt-tests.sh b/.ci/run-volt-tests.sh index e4a074b2b42..73989969261 100755 --- a/.ci/run-volt-tests.sh +++ b/.ci/run-volt-tests.sh @@ -2,7 +2,7 @@ # # This file is part of the Phalcon Framework. # -# (c) Phalcon Team +# (c) Phalcon Team # # For the full copyright and license information, please view the # LICENSE.txt file that was distributed with this source code. diff --git a/.ci/setup-dbs.sh b/.ci/setup-dbs.sh index b1b80803352..86d18f6d76a 100755 --- a/.ci/setup-dbs.sh +++ b/.ci/setup-dbs.sh @@ -2,7 +2,7 @@ # # This file is part of the Phalcon Framework. # -# (c) Phalcon Team +# (c) Phalcon Team # # For the full copyright and license information, please view the # LICENSE.txt file that was distributed with this source code. From be15afbd51ed3f141c07c6d6417d665ab9ccd558 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Sun, 25 Aug 2019 15:12:15 -0400 Subject: [PATCH 027/202] [4.0.x] - Updated domain to phalcon.io --- .github/ISSUE_TEMPLATE.md | 4 +- .github/stale.yml | 4 +- CODE_OF_CONDUCT.md | 2 +- CONTRIBUTING.md | 6 +- appveyor.yml | 2 +- build/README.md | 2 +- build/install | 19 +- build/php7/32bits/phalcon.zep.c | 770 ++++++++++++++++---------------- build/php7/64bits/phalcon.zep.c | 770 ++++++++++++++++---------------- build/php7/safe/phalcon.zep.c | 770 ++++++++++++++++---------------- composer.json | 10 +- 11 files changed, 1176 insertions(+), 1183 deletions(-) diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 252c43ea6d2..8b4894ab502 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,11 +1,11 @@ -> Questions should go to https://forum.phalconphp.com +> Questions should go to https://phalcon.link/forum > Documentation issues should go to https://github.com/phalcon/docs/issues ### Expected and Actual Behavior > **Describe what you are trying to achieve and what goes wrong.** -> Provide output if related. Provide coredump if any. Use https://docs.phalconphp.com/en/latest/generating-backtrace as reference +> Provide output if related. Provide coredump if any. Use https://docs.phalcon.io/latest/en/generating-backtrace as reference ```php // paste output here diff --git a/.github/stale.yml b/.github/stale.yml index 6e5a4cb9b89..362453f3868 100644 --- a/.github/stale.yml +++ b/.github/stale.yml @@ -26,14 +26,14 @@ staleLabel: stale # Comment to post when marking as stale. Set to `false` to disable markComment: > - Thank you for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please feel free to either reopen this issue or open a new one. We will be more than happy to look at it again! You can read more here: https://blog.phalconphp.com/post/github-closing-old-issues + Thank you for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please feel free to either reopen this issue or open a new one. We will be more than happy to look at it again! You can read more here: https://blog.phalcon.io/post/github-closing-old-issues # Comment to post when removing the stale label. # unmarkComment: > # Your comment here. # Comment to post when closing a stale Issue or Pull Request. #closeComment: > -# Thank you for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please feel free to either reopen this issue or open a new one. We will be more than happy to look at it again! You can read more here: https://blog.phalconphp.com/post/github-closing-old-issues +# Thank you for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please feel free to either reopen this issue or open a new one. We will be more than happy to look at it again! You can read more here: https://blog.phalcon.io/post/github-closing-old-issues # Limit the number of actions per hour, from 1-30. Default is 30 limitPerRun: 30 diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 3fa9137025c..3727d09f870 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -20,6 +20,6 @@ disagree. If ever conflict arises, please bring it to the attention of the maintainers privately. You can always find us on our [Discord](https://phalcon.link/discord) -server or you can send us an email at team@phalconphp.com +server or you can send us an email at team@phalcon.io The core team maintains the final decision on any conflict that may arise. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 89833c4937e..afbb320db93 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -34,9 +34,9 @@ Please report bugs when you've exhausted all of the above options. ## Bug Report Checklist * Make sure you are using the latest released version of Phalcon before submitting a bug report. Bugs in versions older than the latest released one will not be addressed by the core team (so long as the version is not LTS). -* If you have found a bug it is important to add relevant reproducibility information to your issue to allow us to reproduce the bug and fix it quicker. Add a script, small program or repository providing the necessary code to make everyone reproduce the issue reported easily. If a bug cannot be reproduced by the development it would be difficult provide corrections and solutions. [Submit Reproducible Test](https://docs.phalconphp.com/en/latest/reproducible-tests) for more information +* If you have found a bug it is important to add relevant reproducibility information to your issue to allow us to reproduce the bug and fix it quicker. Add a script, small program or repository providing the necessary code to make everyone reproduce the issue reported easily. If a bug cannot be reproduced by the development it would be difficult provide corrections and solutions. [Submit Reproducible Test](https://docs.phalcon.io/en/latest/reproducible-tests) for more information * Be sure that information such as OS, Phalcon version and PHP version are part of the bug report -* If you're submitting a [Segmentation Fault](https://en.wikipedia.org/wiki/Segmentation_fault) error, we would require a backtrace, please see [Generating a Backtrace](https://docs.phalconphp.com/en/latest/generating-backtrace) +* If you're submitting a [Segmentation Fault](https://en.wikipedia.org/wiki/Segmentation_fault) error, we would require a backtrace, please see [Generating a Backtrace](https://docs.phalcon.io/en/latest/generating-backtrace) ## Pull Request Checklist @@ -48,7 +48,7 @@ Please report bugs when you've exhausted all of the above options. ## Requesting Features -If you have a change or new feature in mind, please fill a [NFR](https://docs.phalconphp.com/en/latest/new-feature-request) on the GitHub. Alternatively you may also request features via [the FeatHub page](https://feathub.com/phalcon/cphalcon). +If you have a change or new feature in mind, please fill a [NFR](https://docs.phalcon.io/en/latest/new-feature-request) on the GitHub. Alternatively you may also request features via [the FeatHub page](https://feathub.com/phalcon/cphalcon). Thanks!
        diff --git a/appveyor.yml b/appveyor.yml index 90428fae9a9..49c7efd714c 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,6 +1,6 @@ # This file is part of the Phalcon Framework. # -# (c) Phalcon Team +# (c) Phalcon Team # # For the full copyright and license information, please view # the LICENSE.txt file that was distributed with this source code. diff --git a/build/README.md b/build/README.md index 5b3a1997ad5..d6e3f102940 100644 --- a/build/README.md +++ b/build/README.md @@ -47,7 +47,7 @@ After running `gen-build.php` you are ready to build Phalcon extension. ## Building extension for Linux -Please, refer to [Phalcon documentation](https://docs.phalconphp.com) +Please, refer to [Phalcon documentation](https://phalcon.link/docs) ## Building extension for Windows diff --git a/build/install b/build/install index 0a84b776a86..15655e2ff5c 100755 --- a/build/install +++ b/build/install @@ -1,18 +1,11 @@ #!/usr/bin/env bash # -# Phalcon Framework +# This file is part of the Phalcon Framework. # -# Copyright (c) 2011-present Phalcon Team (https://phalconphp.com) +# (c) Phalcon Team # -# This source file is subject to the New BSD License that is bundled -# with this package in the file 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 +# For the full copyright and license information, please view the LICENSE.txt +# file that was distributed with this source code. # # Available params: # --arch @@ -23,7 +16,7 @@ # ./install --phpize /usr/bin/phpize7.3 --php-config /usr/bin/php-config7.3 --arch 32bits # Check best compilation flags for GCC -# By default we compile to be as compatible as possible with all processors. +# By default we compile to be as compatible as possible with all processors. # If you would like instruct the compiler to generate optimized machine code that matches the processor where it is currently running on you can set your own compile flags by exporting CFLAGS before the build. # # Example: @@ -32,7 +25,7 @@ # This will generate the best possible code for that chipset but will likely break the compiled object on older chipsets. export CC="gcc" -if [ -z "$CFLAGS" ] +if [ -z "$CFLAGS" ] then export CFLAGS="-mtune=native -O2 -fomit-frame-pointer" fi diff --git a/build/php7/32bits/phalcon.zep.c b/build/php7/32bits/phalcon.zep.c index 67d6383bee9..356bdaf19d0 100644 --- a/build/php7/32bits/phalcon.zep.c +++ b/build/php7/32bits/phalcon.zep.c @@ -405,7 +405,7 @@ static int phql_internal_parse_phql(zval **result, char *phql, unsigned int phql * * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. @@ -618,7 +618,7 @@ const phvolt_token_names phvolt_tokens[]; * * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. @@ -1165,7 +1165,7 @@ static void phql_ret_func_call(zval *ret, phql_parser_token *name, zval *argumen * * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. @@ -6016,7 +6016,7 @@ static int zephir_array_isset_string_fetch(zval *fetched, const zval *arr, char static int zephir_array_isset_long_fetch(zval *fetched, const zval *arr, unsigned long index, int readonly) { zval *zv; - + if (UNEXPECTED(Z_TYPE_P(arr) == IS_OBJECT && zephir_instance_of_ev((zval *)arr, (const zend_class_entry *)zend_ce_arrayaccess))) { zend_long ZEPHIR_LAST_CALL_STATUS; zval exist, offset; @@ -13292,7 +13292,7 @@ static PHP_METHOD(Phalcon_Cache, setMultiple) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(values), _2, _3, _0) { ZEPHIR_INIT_NVAR(&key); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&key, _3); } else { ZVAL_LONG(&key, _2); @@ -13714,7 +13714,7 @@ static PHP_METHOD(Phalcon_Collection, init) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _2, _3, _0) { ZEPHIR_INIT_NVAR(&key); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&key, _3); } else { ZVAL_LONG(&key, _2); @@ -14057,7 +14057,7 @@ zend_object *zephir_init_properties_Phalcon_Collection(zend_class_entry *class_t ZVAL_UNDEF(&_3$$4); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -14310,7 +14310,7 @@ static PHP_METHOD(Phalcon_Config, toArray) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _3, _4, _1) { ZEPHIR_INIT_NVAR(&key); - if (_4 != NULL) { + if (_4 != NULL) { ZVAL_STR_COPY(&key, _4); } else { ZVAL_LONG(&key, _3); @@ -14397,7 +14397,7 @@ static PHP_METHOD(Phalcon_Config, internalMerge) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&target), _2, _3, _0) { ZEPHIR_INIT_NVAR(&key); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&key, _3); } else { ZVAL_LONG(&key, _2); @@ -15824,7 +15824,7 @@ static PHP_METHOD(Phalcon_Crypt, initializeAvailableCiphers) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&availableCiphers), _2, _3, _0) { ZEPHIR_INIT_NVAR(&i); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&i, _3); } else { ZVAL_LONG(&i, _2); @@ -16300,7 +16300,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Debug) { zend_declare_property_bool(phalcon_debug_ce, SL("showFiles"), 1, ZEND_ACC_PROTECTED TSRMLS_CC); - zend_declare_property_string(phalcon_debug_ce, SL("uri"), "https://assets.phalconphp.com/debug/4.0.x/", ZEND_ACC_PROTECTED TSRMLS_CC); + zend_declare_property_string(phalcon_debug_ce, SL("uri"), "https://assets.phalcon.io/debug/4.0.x/", ZEND_ACC_PROTECTED TSRMLS_CC); phalcon_debug_ce->create_object = zephir_init_properties_Phalcon_Debug; return SUCCESS; @@ -16451,7 +16451,7 @@ static PHP_METHOD(Phalcon_Debug, getVersion) { ZEPHIR_CALL_CE_STATIC(&_3, phalcon_version_ce, "getpart", &_1, 0, &_2); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_4); - ZEPHIR_CONCAT_SVSVS(&_4, "https://docs.phalconphp.com/", &_0, ".", &_3, "/en/"); + ZEPHIR_CONCAT_SVSVS(&_4, "https://docs.phalcon.io/", &_0, ".", &_3, "/en/"); zephir_array_update_string(&link, SL("action"), &_4, PH_COPY | PH_SEPARATE); ZEPHIR_CALL_CE_STATIC(&_5, phalcon_version_ce, "get", &_6, 0); zephir_check_call_status(); @@ -16724,7 +16724,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_11$$5), _14$$5, _15$$5, _12$$5) { ZEPHIR_INIT_NVAR(&n); - if (_15$$5 != NULL) { + if (_15$$5 != NULL) { ZVAL_STR_COPY(&n, _15$$5); } else { ZVAL_LONG(&n, _14$$5); @@ -16772,7 +16772,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_REQUEST), _25$$5, _26$$5, _23$$5) { ZEPHIR_INIT_NVAR(&keyRequest); - if (_26$$5 != NULL) { + if (_26$$5 != NULL) { ZVAL_STR_COPY(&keyRequest, _26$$5); } else { ZVAL_LONG(&keyRequest, _25$$5); @@ -16844,7 +16844,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_SERVER), _40$$5, _41$$5, _38$$5) { ZEPHIR_INIT_NVAR(&keyServer); - if (_41$$5 != NULL) { + if (_41$$5 != NULL) { ZVAL_STR_COPY(&keyServer, _41$$5); } else { ZVAL_LONG(&keyServer, _40$$5); @@ -16899,7 +16899,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_49$$5), _52$$5, _53$$5, _50$$5) { ZEPHIR_INIT_NVAR(&keyFile); - if (_53$$5 != NULL) { + if (_53$$5 != NULL) { ZVAL_STR_COPY(&keyFile, _53$$5); } else { ZVAL_LONG(&keyFile, _52$$5); @@ -16948,7 +16948,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&dataVars), _60$$23, _61$$23, _58$$23) { ZEPHIR_INIT_NVAR(&keyVar); - if (_61$$23 != NULL) { + if (_61$$23 != NULL) { ZVAL_STR_COPY(&keyVar, _61$$23); } else { ZVAL_LONG(&keyVar, _60$$23); @@ -17362,7 +17362,7 @@ static PHP_METHOD(Phalcon_Debug, getArrayDump) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&argument), _3, _4, _1) { ZEPHIR_INIT_NVAR(&k); - if (_4 != NULL) { + if (_4 != NULL) { ZVAL_STR_COPY(&k, _4); } else { ZVAL_LONG(&k, _3); @@ -17619,7 +17619,7 @@ static PHP_METHOD(Phalcon_Debug, showTraceItem) { ZEPHIR_INIT_VAR(&prepareUriClass); zephir_fast_str_replace(&prepareUriClass, &_6$$4, &_7$$4, &className TSRMLS_CC); ZEPHIR_INIT_VAR(&classNameWithLink); - ZEPHIR_CONCAT_SVSVS(&classNameWithLink, "", &className, ""); + ZEPHIR_CONCAT_SVSVS(&classNameWithLink, "", &className, ""); } else { ZEPHIR_INIT_VAR(&classReflection); object_init_ex(&classReflection, zephir_get_internal_ce(SL("reflectionclass"))); @@ -17838,7 +17838,7 @@ zend_object *zephir_init_properties_Phalcon_Debug(zend_class_entry *class_type T ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -18405,7 +18405,7 @@ static PHP_METHOD(Phalcon_Di, loadFromConfig) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&services), _2, _3, _0) { ZEPHIR_INIT_NVAR(&name); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&name, _3); } else { ZVAL_LONG(&name, _2); @@ -19289,7 +19289,7 @@ static PHP_METHOD(Phalcon_Kernel, preComputeHashKey) { } - + { @@ -19297,7 +19297,7 @@ static PHP_METHOD(Phalcon_Kernel, preComputeHashKey) { } - + ZEPHIR_MM_RESTORE(); } @@ -19487,7 +19487,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&namespaces), _5, _6, _3) { ZEPHIR_INIT_NVAR(&nsPrefix); - if (_6 != NULL) { + if (_6 != NULL) { ZVAL_STR_COPY(&nsPrefix, _6); } else { ZVAL_LONG(&nsPrefix, _5); @@ -20460,7 +20460,7 @@ static PHP_METHOD(Phalcon_Loader, registerNamespaces) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&preparedNamespaces), _2$$3, _3$$3, _0$$3) { ZEPHIR_INIT_NVAR(&name); - if (_3$$3 != NULL) { + if (_3$$3 != NULL) { ZVAL_STR_COPY(&name, _3$$3); } else { ZVAL_LONG(&name, _2$$3); @@ -20652,7 +20652,7 @@ static PHP_METHOD(Phalcon_Loader, prepareNamespace) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&namespaceName), _2, _3, _0) { ZEPHIR_INIT_NVAR(&name); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&name, _3); } else { ZVAL_LONG(&name, _2); @@ -20718,7 +20718,7 @@ zend_object *zephir_init_properties_Phalcon_Loader(zend_class_entry *class_type ZVAL_UNDEF(&_5$$5); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -21498,7 +21498,7 @@ static PHP_METHOD(Phalcon_Security, checkHash) { zephir_concat_self(&cryptedHash, &passwordHash TSRMLS_CC); sum = (cryptedLength - passwordLength); for (_3 = 0; _3 < Z_STRLEN_P(&passwordHash); _3++) { - i = _3; + i = _3; ch = ZEPHIR_STRING_OFFSET(&passwordHash, _3); _4$$4 = ZEPHIR_STRING_OFFSET(&cryptedHash, i); sum = (sum | ((_4$$4 ^ ch))); @@ -23795,7 +23795,7 @@ static PHP_METHOD(Phalcon_Tag, renderAttributes) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&order), _2, _3, _0) { ZEPHIR_INIT_NVAR(&key); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&key, _3); } else { ZVAL_LONG(&key, _2); @@ -23835,7 +23835,7 @@ static PHP_METHOD(Phalcon_Tag, renderAttributes) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&attributes), _6, _7, _4) { ZEPHIR_INIT_NVAR(&key); - if (_7 != NULL) { + if (_7 != NULL) { ZVAL_STR_COPY(&key, _7); } else { ZVAL_LONG(&key, _6); @@ -23878,7 +23878,7 @@ static PHP_METHOD(Phalcon_Tag, renderAttributes) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&attrs), _11, _12, _9) { ZEPHIR_INIT_NVAR(&key); - if (_12 != NULL) { + if (_12 != NULL) { ZVAL_STR_COPY(&key, _12); } else { ZVAL_LONG(&key, _11); @@ -26741,7 +26741,7 @@ static PHP_METHOD(Phalcon_Validation, validate) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&validatorData), _4, _5, _2) { ZEPHIR_INIT_NVAR(&field); - if (_5 != NULL) { + if (_5 != NULL) { ZVAL_STR_COPY(&field, _5); } else { ZVAL_LONG(&field, _4); @@ -27104,7 +27104,7 @@ zend_object *zephir_init_properties_Phalcon_Validation(zend_class_entry *class_t ZVAL_UNDEF(&_3$$4); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -28017,7 +28017,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, __construct) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&iniConfig), _5, _6, _3) { ZEPHIR_INIT_NVAR(§ion); - if (_6 != NULL) { + if (_6 != NULL) { ZVAL_STR_COPY(§ion, _6); } else { ZVAL_LONG(§ion, _5); @@ -28032,7 +28032,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, __construct) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&directives), _9$$6, _10$$6, _7$$6) { ZEPHIR_INIT_NVAR(&path); - if (_10$$6 != NULL) { + if (_10$$6 != NULL) { ZVAL_STR_COPY(&path, _10$$6); } else { ZVAL_LONG(&path, _9$$6); @@ -28102,7 +28102,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, __construct) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&directives), _22$$12, _23$$12, _20$$12) { ZEPHIR_INIT_NVAR(&path); - if (_23$$12 != NULL) { + if (_23$$12 != NULL) { ZVAL_STR_COPY(&path, _23$$12); } else { ZVAL_LONG(&path, _22$$12); @@ -28199,7 +28199,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, cast) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(ini), _2$$3, _3$$3, _0$$3) { ZEPHIR_INIT_NVAR(&key); - if (_3$$3 != NULL) { + if (_3$$3 != NULL) { ZVAL_STR_COPY(&key, _3$$3); } else { ZVAL_LONG(&key, _2$$3); @@ -29190,7 +29190,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, escape) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&parts), _10, _11, _8) { ZEPHIR_INIT_NVAR(&key); - if (_11 != NULL) { + if (_11 != NULL) { ZVAL_STR_COPY(&key, _11); } else { ZVAL_LONG(&key, _10); @@ -39620,7 +39620,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_AbstractAdapter, describeIndexes) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&indexes), _10, _11, _8) { ZEPHIR_INIT_NVAR(&name); - if (_11 != NULL) { + if (_11 != NULL) { ZVAL_STR_COPY(&name, _11); } else { ZVAL_LONG(&name, _10); @@ -39851,7 +39851,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_AbstractAdapter, describeReferences) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&references), _22, _23, _20) { ZEPHIR_INIT_NVAR(&name); - if (_23 != NULL) { + if (_23 != NULL) { ZVAL_STR_COPY(&name, _23); } else { ZVAL_LONG(&name, _22); @@ -40716,7 +40716,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_AbstractAdapter, insert) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&values), _4, _5, _2) { ZEPHIR_INIT_NVAR(&position); - if (_5 != NULL) { + if (_5 != NULL) { ZVAL_STR_COPY(&position, _5); } else { ZVAL_LONG(&position, _4); @@ -40906,7 +40906,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_AbstractAdapter, insertAsDict) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(data), _3, _4, _1) { ZEPHIR_INIT_NVAR(&field); - if (_4 != NULL) { + if (_4 != NULL) { ZVAL_STR_COPY(&field, _4); } else { ZVAL_LONG(&field, _3); @@ -41585,7 +41585,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_AbstractAdapter, update) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(values), _2, _3, _0) { ZEPHIR_INIT_NVAR(&position); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&position, _3); } else { ZVAL_LONG(&position, _2); @@ -41785,7 +41785,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_AbstractAdapter, updateAsDict) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(data), _3, _4, _1) { ZEPHIR_INIT_NVAR(&field); - if (_4 != NULL) { + if (_4 != NULL) { ZVAL_STR_COPY(&field, _4); } else { ZVAL_LONG(&field, _3); @@ -41896,7 +41896,7 @@ zend_object *zephir_init_properties_Phalcon_Db_Adapter_AbstractAdapter(zend_clas ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -42543,7 +42543,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_AbstractPdo, connect) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&dsnAttributesMap), _6, _7, _4) { ZEPHIR_INIT_NVAR(&key); - if (_7 != NULL) { + if (_7 != NULL) { ZVAL_STR_COPY(&key, _7); } else { ZVAL_LONG(&key, _6); @@ -42888,7 +42888,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_AbstractPdo, executePrepared) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&placeholders), _2, _3, _0) { ZEPHIR_INIT_NVAR(&wildcard); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&wildcard, _3); } else { ZVAL_LONG(&wildcard, _2); @@ -42965,7 +42965,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_AbstractPdo, executePrepared) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&castValue), _12$$22, _13$$22, _10$$22) { ZEPHIR_INIT_NVAR(&position); - if (_13$$22 != NULL) { + if (_13$$22 != NULL) { ZVAL_STR_COPY(&position, _13$$22); } else { ZVAL_LONG(&position, _12$$22); @@ -43025,7 +43025,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_AbstractPdo, executePrepared) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&value), _20$$31, _21$$31, _18$$31) { ZEPHIR_INIT_NVAR(&position); - if (_21$$31 != NULL) { + if (_21$$31 != NULL) { ZVAL_STR_COPY(&position, _21$$31); } else { ZVAL_LONG(&position, _20$$31); @@ -43146,7 +43146,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_AbstractPdo, executePrepared) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&castValue), _30$$53, _31$$53, _28$$53) { ZEPHIR_INIT_NVAR(&position); - if (_31$$53 != NULL) { + if (_31$$53 != NULL) { ZVAL_STR_COPY(&position, _31$$53); } else { ZVAL_LONG(&position, _30$$53); @@ -43206,7 +43206,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_AbstractPdo, executePrepared) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&value), _38$$62, _39$$62, _36$$62) { ZEPHIR_INIT_NVAR(&position); - if (_39$$62 != NULL) { + if (_39$$62 != NULL) { ZVAL_STR_COPY(&position, _39$$62); } else { ZVAL_LONG(&position, _38$$62); @@ -44552,7 +44552,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeIndexes) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&indexes), _24, _25, _22) { ZEPHIR_INIT_NVAR(&name); - if (_25 != NULL) { + if (_25 != NULL) { ZVAL_STR_COPY(&name, _25); } else { ZVAL_LONG(&name, _24); @@ -44817,7 +44817,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeReferences) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&references), _26, _27, _24) { ZEPHIR_INIT_NVAR(&name); - if (_27 != NULL) { + if (_27 != NULL) { ZVAL_STR_COPY(&name, _27); } else { ZVAL_LONG(&name, _26); @@ -46137,7 +46137,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeReferences) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&references), _26, _27, _24) { ZEPHIR_INIT_NVAR(&name); - if (_27 != NULL) { + if (_27 != NULL) { ZVAL_STR_COPY(&name, _27); } else { ZVAL_LONG(&name, _26); @@ -47259,7 +47259,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeIndexes) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&indexes), _45, _46, _43) { ZEPHIR_INIT_NVAR(&name); - if (_46 != NULL) { + if (_46 != NULL) { ZVAL_STR_COPY(&name, _46); } else { ZVAL_LONG(&name, _45); @@ -47399,7 +47399,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeReferences) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_0), _6, _7, _4) { ZEPHIR_INIT_NVAR(&number); - if (_7 != NULL) { + if (_7 != NULL) { ZVAL_STR_COPY(&number, _7); } else { ZVAL_LONG(&number, _6); @@ -47505,7 +47505,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeReferences) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&references), _24, _25, _22) { ZEPHIR_INIT_NVAR(&name); - if (_25 != NULL) { + if (_25 != NULL) { ZVAL_STR_COPY(&name, _25); } else { ZVAL_LONG(&name, _24); @@ -49669,7 +49669,7 @@ static PHP_METHOD(Phalcon_Http_Request, getHeaders) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&server), _2, _3, _0) { ZEPHIR_INIT_NVAR(&name); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&name, _3); } else { ZVAL_LONG(&name, _2); @@ -50574,7 +50574,7 @@ static PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&superFiles), _2$$3, _3$$3, _0$$3) { ZEPHIR_INIT_NVAR(&prefix); - if (_3$$3 != NULL) { + if (_3$$3 != NULL) { ZVAL_STR_COPY(&prefix, _3$$3); } else { ZVAL_LONG(&prefix, _2$$3); @@ -52703,7 +52703,7 @@ static PHP_METHOD(Phalcon_Http_Request, smoothFiles) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&names), _2, _3, _0) { ZEPHIR_INIT_NVAR(&idx); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&idx, _3); } else { ZVAL_LONG(&idx, _2); @@ -52920,7 +52920,7 @@ zend_object *zephir_init_properties_Phalcon_Http_Request(zend_class_entry *class ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -53995,7 +53995,7 @@ static PHP_METHOD(Phalcon_Http_Response, setHeaders) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _2, _3, _0) { ZEPHIR_INIT_NVAR(&name); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&name, _3); } else { ZVAL_LONG(&name, _2); @@ -54193,7 +54193,7 @@ static PHP_METHOD(Phalcon_Http_Response, setStatusCode) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(¤tHeadersRaw), _3, _4, _1) { ZEPHIR_INIT_NVAR(&key); - if (_4 != NULL) { + if (_4 != NULL) { ZVAL_STR_COPY(&key, _4); } else { ZVAL_LONG(&key, _3); @@ -55197,7 +55197,7 @@ static PHP_METHOD(Phalcon_Http_Message_AbstractMessage, populateHeaderCollection ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&headers), _2, _3, _0) { ZEPHIR_INIT_NVAR(&name); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&name, _3); } else { ZVAL_LONG(&name, _2); @@ -56752,7 +56752,7 @@ zend_object *zephir_init_properties_Phalcon_Http_Message_ServerRequest(zend_clas ZVAL_UNDEF(&_7$$6); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -57530,7 +57530,7 @@ static PHP_METHOD(Phalcon_Http_Message_ServerRequestFactory, parseHeaders) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&serverArray), _2, _3, _0) { ZEPHIR_INIT_NVAR(&key); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&key, _3); } else { ZVAL_LONG(&key, _2); @@ -57776,7 +57776,7 @@ static PHP_METHOD(Phalcon_Http_Message_ServerRequestFactory, parseUploadedFiles) ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&files), _2, _3, _0) { ZEPHIR_INIT_NVAR(&key); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&key, _3); } else { ZVAL_LONG(&key, _2); @@ -60073,7 +60073,7 @@ static PHP_METHOD(Phalcon_Http_Message_Uri, filterPath) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&parts), _4, _5, _2) { ZEPHIR_INIT_NVAR(&key); - if (_5 != NULL) { + if (_5 != NULL) { ZVAL_STR_COPY(&key, _5); } else { ZVAL_LONG(&key, _4); @@ -60212,7 +60212,7 @@ static PHP_METHOD(Phalcon_Http_Message_Uri, filterQuery) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&parts), _5, _6, _3) { ZEPHIR_INIT_NVAR(&index); - if (_6 != NULL) { + if (_6 != NULL) { ZVAL_STR_COPY(&index, _6); } else { ZVAL_LONG(&index, _5); @@ -61631,7 +61631,7 @@ zend_object *zephir_init_properties_Phalcon_Http_Response_Cookies(zend_class_ent ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -61853,7 +61853,7 @@ static PHP_METHOD(Phalcon_Http_Response_Headers, send) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_1), _4, _5, _2) { ZEPHIR_INIT_NVAR(&header); - if (_5 != NULL) { + if (_5 != NULL) { ZVAL_STR_COPY(&header, _5); } else { ZVAL_LONG(&header, _4); @@ -61992,7 +61992,7 @@ zend_object *zephir_init_properties_Phalcon_Http_Response_Headers(zend_class_ent ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -62326,7 +62326,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, variables) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_0), _3, _4, _1) { ZEPHIR_INIT_NVAR(&key); - if (_4 != NULL) { + if (_4 != NULL) { ZVAL_STR_COPY(&key, _4); } else { ZVAL_LONG(&key, _3); @@ -62612,7 +62612,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(variable), _6$$4, _7$$4, _4$$4) { ZEPHIR_INIT_NVAR(&key); - if (_7$$4 != NULL) { + if (_7$$4 != NULL) { ZVAL_STR_COPY(&key, _7$$4); } else { ZVAL_LONG(&key, _6$$4); @@ -62783,7 +62783,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_46$$12), _49$$12, _50$$12, _47$$12) { ZEPHIR_INIT_NVAR(&key); - if (_50$$12 != NULL) { + if (_50$$12 != NULL) { ZVAL_STR_COPY(&key, _50$$12); } else { ZVAL_LONG(&key, _49$$12); @@ -63273,7 +63273,7 @@ zend_object *zephir_init_properties_Phalcon_Debug_Dump(zend_class_entry *class_t ZVAL_UNDEF(&_3$$4); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -63529,7 +63529,7 @@ zend_object *zephir_init_properties_Phalcon_Application_AbstractApplication(zend ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -63898,7 +63898,7 @@ static PHP_METHOD(Phalcon_Filter_Filter, sanitize) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(sanitizers), _2$$3, _3$$3, _0$$3) { ZEPHIR_INIT_NVAR(&sanitizerKey); - if (_3$$3 != NULL) { + if (_3$$3 != NULL) { ZVAL_STR_COPY(&sanitizerKey, _3$$3); } else { ZVAL_LONG(&sanitizerKey, _2$$3); @@ -64045,7 +64045,7 @@ static PHP_METHOD(Phalcon_Filter_Filter, init) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&mapper), _2, _3, _0) { ZEPHIR_INIT_NVAR(&name); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&name, _3); } else { ZVAL_LONG(&name, _2); @@ -64122,7 +64122,7 @@ static PHP_METHOD(Phalcon_Filter_Filter, processArrayValues) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&values), _2, _3, _0) { ZEPHIR_INIT_NVAR(&itemKey); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&itemKey, _3); } else { ZVAL_LONG(&itemKey, _2); @@ -64226,7 +64226,7 @@ zend_object *zephir_init_properties_Phalcon_Filter_Filter(zend_class_entry *clas ZVAL_UNDEF(&_3$$4); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -66451,7 +66451,7 @@ static PHP_METHOD(Phalcon_Firewall_Adapter_Acl, handleDispatcher) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&boundModels), _32$$19, _33$$19, _30$$19) { ZEPHIR_INIT_NVAR(&boundModelKey); - if (_33$$19 != NULL) { + if (_33$$19 != NULL) { ZVAL_STR_COPY(&boundModelKey, _33$$19); } else { ZVAL_LONG(&boundModelKey, _32$$19); @@ -68015,7 +68015,7 @@ static PHP_METHOD(Phalcon_Firewall_Adapter_Micro_Acl, handleRouter) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&boundModels), _22$$19, _23$$19, _20$$19) { ZEPHIR_INIT_NVAR(&boundModelKey); - if (_23$$19 != NULL) { + if (_23$$19 != NULL) { ZVAL_STR_COPY(&boundModelKey, _23$$19); } else { ZVAL_LONG(&boundModelKey, _22$$19); @@ -68815,7 +68815,7 @@ static PHP_METHOD(Phalcon_Html_Breadcrumbs, render) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&elements), _3, _4, _1) { ZEPHIR_INIT_NVAR(&url); - if (_4 != NULL) { + if (_4 != NULL) { ZVAL_STR_COPY(&url, _4); } else { ZVAL_LONG(&url, _3); @@ -68920,7 +68920,7 @@ zend_object *zephir_init_properties_Phalcon_Html_Breadcrumbs(zend_class_entry *c ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -71745,7 +71745,7 @@ static PHP_METHOD(Phalcon_Html_Tag, renderAttributes) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&attrs), _3, _4, _1) { ZEPHIR_INIT_NVAR(&key); - if (_4 != NULL) { + if (_4 != NULL) { ZVAL_STR_COPY(&key, _4); } else { ZVAL_LONG(&key, _3); @@ -72070,7 +72070,7 @@ static PHP_METHOD(Phalcon_Html_Tag, renderSelectArray) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&options), _2, _3, _0) { ZEPHIR_INIT_NVAR(&optionValue); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&optionValue, _3); } else { ZVAL_LONG(&optionValue, _2); @@ -72323,7 +72323,7 @@ zend_object *zephir_init_properties_Phalcon_Html_Tag(zend_class_entry *class_typ ZVAL_UNDEF(&_5$$5); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -72703,7 +72703,7 @@ static PHP_METHOD(Phalcon_Html_Helper_AbstractHelper, renderAttributes) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&attributes), _2, _3, _0) { ZEPHIR_INIT_NVAR(&key); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&key, _3); } else { ZVAL_LONG(&key, _2); @@ -73632,7 +73632,7 @@ static PHP_METHOD(Phalcon_Helper_Arr, arrayToObject) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&collection), _2, _3, _0) { ZEPHIR_INIT_NVAR(&key); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&key, _3); } else { ZVAL_LONG(&key, _2); @@ -76170,7 +76170,7 @@ static PHP_METHOD(Phalcon_Factory_AbstractFactory, init) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&adapters), _3, _4, _1) { ZEPHIR_INIT_NVAR(&name); - if (_4 != NULL) { + if (_4 != NULL) { ZVAL_STR_COPY(&name, _4); } else { ZVAL_LONG(&name, _3); @@ -76217,7 +76217,7 @@ zend_object *zephir_init_properties_Phalcon_Factory_AbstractFactory(zend_class_e ZVAL_UNDEF(&_3$$4); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -76790,7 +76790,7 @@ zend_object *zephir_init_properties_Phalcon_Paginator_Repository(zend_class_entr ZVAL_UNDEF(&_3$$4); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -78317,7 +78317,7 @@ zend_object *zephir_init_properties_Phalcon_Messages_Message(zend_class_entry *c ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -79814,7 +79814,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(¶mCalls), _3$$10, _4$$10, _1$$10) { ZEPHIR_INIT_NVAR(&methodPosition); - if (_4$$10 != NULL) { + if (_4$$10 != NULL) { ZVAL_STR_COPY(&methodPosition, _4$$10); } else { ZVAL_LONG(&methodPosition, _3$$10); @@ -79962,7 +79962,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(¶mCalls), _27$$25, _28$$25, _25$$25) { ZEPHIR_INIT_NVAR(&propertyPosition); - if (_28$$25 != NULL) { + if (_28$$25 != NULL) { ZVAL_STR_COPY(&propertyPosition, _28$$25); } else { ZVAL_LONG(&propertyPosition, _27$$25); @@ -80242,7 +80242,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, buildParameters) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&arguments), _2, _3, _0) { ZEPHIR_INIT_NVAR(&position); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&position, _3); } else { ZVAL_LONG(&position, _2); @@ -81087,7 +81087,7 @@ zend_object *zephir_init_properties_Phalcon_Flash_AbstractFlash(zend_class_entry ZVAL_UNDEF(&_3$$4); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -81435,7 +81435,7 @@ static PHP_METHOD(Phalcon_Flash_Session, output) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&messages), _3, _4, _1) { ZEPHIR_INIT_NVAR(&type); - if (_4 != NULL) { + if (_4 != NULL) { ZVAL_STR_COPY(&type, _4); } else { ZVAL_LONG(&type, _3); @@ -82546,7 +82546,7 @@ zend_object *zephir_init_properties_Phalcon_Session_Manager(zend_class_entry *cl ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -83006,7 +83006,7 @@ zend_object *zephir_init_properties_Phalcon_Session_Adapter_Noop(zend_class_entr ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -84331,7 +84331,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Annotations_Exception) { ** and nonterminals. "int" is used otherwise. ** AANOCODE is a number of type AACODETYPE which corresponds ** to no legal terminal or nonterminal number. This -** number is used to fill in empty slots of the hash +** number is used to fill in empty slots of the hash ** table. ** AAFALLBACK If defined, this indicates that one or more tokens ** have fall-back values which should be used if the @@ -84340,7 +84340,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Annotations_Exception) { ** and nonterminal numbers. "unsigned char" is ** used if there are fewer than 250 rules and ** states combined. "int" is used otherwise. -** phannot_TOKENTYPE is the data type used for minor tokens given +** phannot_TOKENTYPE is the data type used for minor tokens given ** directly to the parser from the tokenizer. ** AAMINORTYPE is the data type used for all minor tokens. ** This is typically a union of many types, one of @@ -84381,7 +84381,7 @@ typedef union { /* Next are that tables used to determine what action to take based on the ** current state and lookahead token. These tables are used to implement ** functions that take a state number and lookahead value and return an -** action integer. +** action integer. ** ** Suppose the action integer is N. Then the action is determined as ** follows @@ -84406,7 +84406,7 @@ typedef union { ** If the index value aa_shift_ofst[S]+X is out of range or if the value ** aa_lookahead[aa_shift_ofst[S]+X] is not equal to X or if aa_shift_ofst[S] ** is equal to AA_SHIFT_USE_DFLT, it means that the action is not in the table -** and that aa_default[S] should be used instead. +** and that aa_default[S] should be used instead. ** ** The formula above is for computing the action when the lookahead is ** a terminal symbol. If the lookahead is a non-terminal (as occurs after @@ -84471,7 +84471,7 @@ static AAACTIONTYPE aa_default[] = { /* The next table maps tokens into fallback tokens. If a construct ** like the following: -** +** ** %fallback ID X Y Z. ** ** appears in the grammer, then ID becomes a fallback token for X, Y, @@ -84532,14 +84532,14 @@ static void phannot_Trace(FILE *TraceFILE, char *zTracePrompt){ #ifndef NDEBUG /* For tracing shifts, the names of all terminals and nonterminals ** are required. The following table supplies these names */ -static const char *aaTokenName[] = { - "$", "COMMA", "AT", "IDENTIFIER", - "PARENTHESES_OPEN", "PARENTHESES_CLOSE", "STRING", "EQUALS", - "COLON", "INTEGER", "DOUBLE", "NULL", +static const char *aaTokenName[] = { + "$", "COMMA", "AT", "IDENTIFIER", + "PARENTHESES_OPEN", "PARENTHESES_CLOSE", "STRING", "EQUALS", + "COLON", "INTEGER", "DOUBLE", "NULL", "FALSE", "TRUE", "BRACKET_OPEN", "BRACKET_CLOSE", - "SBRACKET_OPEN", "SBRACKET_CLOSE", "error", "program", + "SBRACKET_OPEN", "SBRACKET_CLOSE", "error", "program", "annotation_language", "annotation_list", "annotation", "argument_list", - "argument_item", "expr", "array", + "argument_item", "expr", "array", }; #endif /* NDEBUG */ @@ -84606,7 +84606,7 @@ static void aa_destructor(AACODETYPE aamajor, AAMINORTYPE *aapminor){ /* Here is inserted the actions which take place when a ** terminal or non-terminal is destroyed. This can happen ** when the symbol is popped from the stack during a - ** reduce or during error processing or when a parser is + ** reduce or during error processing or when a parser is ** being destroyed before it is finished parsing. ** ** Note: during a reduce, the only symbols destroyed are those @@ -84691,7 +84691,7 @@ static int aa_find_shift_action( ){ int i; int stateno = pParser->aastack[pParser->aaidx].stateno; - + /* if( pParser->aaidx<0 ) return AA_NO_ACTION; */ i = aa_shift_ofst[stateno]; if( i==AA_SHIFT_USE_DFLT ){ @@ -84727,7 +84727,7 @@ static int aa_find_reduce_action( ){ int i; int stateno = pParser->aastack[pParser->aaidx].stateno; - + i = aa_reduce_ofst[stateno]; if( i==AA_REDUCE_USE_DFLT ){ return aa_default[stateno]; @@ -84829,7 +84829,7 @@ static void aa_reduce( phannot_ARG_FETCH; aamsp = &aapParser->aastack[aapParser->aaidx]; #ifndef NDEBUG - if( aaTraceFILE && aaruleno>=0 + if( aaTraceFILE && aaruleno>=0 && aarulenoaastack[pParser->aaidx].stateno; - + /* if( pParser->aaidx<0 ) return AA_NO_ACTION; */ i = aa_shift_ofst[stateno]; if( i==AA_SHIFT_USE_DFLT ){ @@ -85676,7 +85676,7 @@ static int aa_find_reduce_action( ){ int i; int stateno = pParser->aastack[pParser->aaidx].stateno; - + i = aa_reduce_ofst[stateno]; if( i==AA_REDUCE_USE_DFLT ){ return aa_default[stateno]; @@ -85778,7 +85778,7 @@ static void aa_reduce( phannot_ARG_FETCH; aamsp = &aapParser->aastack[aapParser->aaidx]; #ifndef NDEBUG - if( aaTraceFILE && aaruleno>=0 + if( aaTraceFILE && aaruleno>=0 && aarulenoppstack[pParser->ppidx].stateno; - + /* if( pParser->ppidx<0 ) return PP_NO_ACTION; */ i = pp_shift_ofst[stateno]; if( i==PP_SHIFT_USE_DFLT ){ @@ -138403,7 +138403,7 @@ static int pp_find_reduce_action( ){ int i; int stateno = pParser->ppstack[pParser->ppidx].stateno; - + i = pp_reduce_ofst[stateno]; if( i==PP_REDUCE_USE_DFLT ){ return pp_default[stateno]; @@ -138641,7 +138641,7 @@ static void pp_reduce( phql_ARG_FETCH; ppmsp = &pppParser->ppstack[pppParser->ppidx]; #ifndef NDEBUG - if( ppTraceFILE && ppruleno>=0 + if( ppTraceFILE && ppruleno>=0 && pprulenoppstack[pParser->ppidx].stateno; - + /* if( pParser->ppidx<0 ) return PP_NO_ACTION; */ i = pp_shift_ofst[stateno]; if( i==PP_SHIFT_USE_DFLT ){ @@ -140778,7 +140778,7 @@ static int pp_find_reduce_action( ){ int i; int stateno = pParser->ppstack[pParser->ppidx].stateno; - + i = pp_reduce_ofst[stateno]; if( i==PP_REDUCE_USE_DFLT ){ return pp_default[stateno]; @@ -141016,7 +141016,7 @@ static void pp_reduce( phql_ARG_FETCH; ppmsp = &pppParser->ppstack[pppParser->ppidx]; #ifndef NDEBUG - if( ppTraceFILE && ppruleno>=0 + if( ppTraceFILE && ppruleno>=0 && pprulenovvstack[pParser->vvidx].stateno; - + /* if( pParser->vvidx<0 ) return VV_NO_ACTION; */ i = vv_shift_ofst[stateno]; if( i==VV_SHIFT_USE_DFLT ){ @@ -160520,7 +160520,7 @@ static int vv_find_reduce_action( ){ int i; int stateno = pParser->vvstack[pParser->vvidx].stateno; - + i = vv_reduce_ofst[stateno]; if( i==VV_REDUCE_USE_DFLT ){ return vv_default[stateno]; @@ -160755,7 +160755,7 @@ static void vv_reduce( phvolt_ARG_FETCH; vvmsp = &vvpParser->vvstack[vvpParser->vvidx]; #ifndef NDEBUG - if( vvTraceFILE && vvruleno>=0 + if( vvTraceFILE && vvruleno>=0 && vvruleno + * (c) Phalcon Team * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. @@ -163062,7 +163062,7 @@ static int phvolt_internal_parse_view(zval **result, zval *view_code, zval *temp * * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. @@ -163223,7 +163223,7 @@ static int phvolt_get_token(phvolt_scanner_state *s, phvolt_scanner_token *token } else { - + { VVCTYPE vvch; unsigned int vvaccept = 0; @@ -170519,7 +170519,7 @@ zend_object *zephir_init_properties_Phalcon_Storage_Adapter_Apcu(zend_class_entr ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -171074,7 +171074,7 @@ zend_object *zephir_init_properties_Phalcon_Storage_Adapter_Libmemcached(zend_cl ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -171502,7 +171502,7 @@ zend_object *zephir_init_properties_Phalcon_Storage_Adapter_Memory(zend_class_en ZVAL_UNDEF(&_3$$4); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -172100,7 +172100,7 @@ zend_object *zephir_init_properties_Phalcon_Storage_Adapter_Redis(zend_class_ent ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -172900,7 +172900,7 @@ zend_object *zephir_init_properties_Phalcon_Storage_Adapter_Stream(zend_class_en ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -173953,7 +173953,7 @@ zend_object *zephir_init_properties_Phalcon_Translate_InterpolatorFactory(zend_c ZVAL_UNDEF(&_3$$4); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -174209,7 +174209,7 @@ static PHP_METHOD(Phalcon_Translate_Interpolator_AssociativeArray, replacePlaceh ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&placeholders), _2, _3, _0) { ZEPHIR_INIT_NVAR(&key); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&key, _3); } else { ZVAL_LONG(&key, _2); @@ -174844,7 +174844,7 @@ zend_object *zephir_init_properties_Phalcon_Translate_Adapter_Csv(zend_class_ent ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -175185,7 +175185,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDirectory) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(directory), _2$$4, _3$$4, _0$$4) { ZEPHIR_INIT_NVAR(&key); - if (_3$$4 != NULL) { + if (_3$$4 != NULL) { ZVAL_STR_COPY(&key, _3$$4); } else { ZVAL_LONG(&key, _2$$4); @@ -175796,7 +175796,7 @@ static PHP_METHOD(Phalcon_Validation_AbstractValidator, setTemplates) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&templates), _3, _4, _1) { ZEPHIR_INIT_NVAR(&field); - if (_4 != NULL) { + if (_4 != NULL) { ZVAL_STR_COPY(&field, _4); } else { ZVAL_LONG(&field, _3); @@ -176137,7 +176137,7 @@ zend_object *zephir_init_properties_Phalcon_Validation_AbstractValidator(zend_cl ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -176273,7 +176273,7 @@ zend_object *zephir_init_properties_Phalcon_Validation_AbstractValidatorComposit ZVAL_UNDEF(&_3$$4); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -177054,7 +177054,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_3), _6, _7, _4) { ZEPHIR_INIT_NVAR(&position); - if (_7 != NULL) { + if (_7 != NULL) { ZVAL_STR_COPY(&position, _7); } else { ZVAL_LONG(&position, _6); @@ -177546,7 +177546,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, __construct) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&options), _2, _3, _0) { ZEPHIR_INIT_NVAR(&key); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&key, _3); } else { ZVAL_LONG(&key, _2); @@ -178501,7 +178501,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, __construct) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&options), _2, _3, _0) { ZEPHIR_INIT_NVAR(&key); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&key, _3); } else { ZVAL_LONG(&key, _2); @@ -179464,7 +179464,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&except), _17$$7, _18$$7, _15$$7) { ZEPHIR_INIT_NVAR(&singleField); - if (_18$$7 != NULL) { + if (_18$$7 != NULL) { ZVAL_STR_COPY(&singleField, _18$$7); } else { ZVAL_LONG(&singleField, _17$$7); @@ -179864,7 +179864,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&except), _94$$38, _95$$38, _92$$38) { ZEPHIR_INIT_NVAR(&singleField); - if (_95$$38 != NULL) { + if (_95$$38 != NULL) { ZVAL_STR_COPY(&singleField, _95$$38); } else { ZVAL_LONG(&singleField, _94$$38); @@ -182318,7 +182318,7 @@ zend_object *zephir_init_properties_Phalcon_Cli_Console(zend_class_entry *class_ ZVAL_UNDEF(&_5$$5); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -182720,7 +182720,7 @@ zend_object *zephir_init_properties_Phalcon_Cli_Dispatcher(zend_class_entry *cla ZVAL_UNDEF(&_9$$7); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -183282,7 +183282,7 @@ static PHP_METHOD(Phalcon_Cli_Router, handle) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&paths), _7$$12, _8$$12, _5$$12) { ZEPHIR_INIT_NVAR(&part); - if (_8$$12 != NULL) { + if (_8$$12 != NULL) { ZVAL_STR_COPY(&part, _8$$12); } else { ZVAL_LONG(&part, _7$$12); @@ -183417,7 +183417,7 @@ static PHP_METHOD(Phalcon_Cli_Router, handle) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&paths), _20$$32, _21$$32, _18$$32) { ZEPHIR_INIT_NVAR(&part); - if (_21$$32 != NULL) { + if (_21$$32 != NULL) { ZVAL_STR_COPY(&part, _21$$32); } else { ZVAL_LONG(&part, _20$$32); @@ -183721,7 +183721,7 @@ zend_object *zephir_init_properties_Phalcon_Cli_Router(zend_class_entry *class_t ZVAL_UNDEF(&_3$$4); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -184246,7 +184246,7 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, extractNamedParams) { ZEPHIR_INIT_VAR(&route); ZVAL_STRING(&route, ""); for (_0 = 0; _0 < Z_STRLEN_P(&pattern); _0++) { - cursor = _0; + cursor = _0; ch = ZEPHIR_STRING_OFFSET(&pattern, _0); if (parenthesesCount == 0) { if (ch == '{') { @@ -184272,7 +184272,7 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, extractNamedParams) { zephir_get_strval(&_4$$10, &_3$$10); ZEPHIR_CPY_WRT(&item, &_4$$10); for (_5$$10 = 0; _5$$10 < Z_STRLEN_P(&item); _5$$10++) { - cursorVar = _5$$10; + cursorVar = _5$$10; ch = ZEPHIR_STRING_OFFSET(&item, _5$$10); if (ch == '\0') { break; @@ -186502,7 +186502,7 @@ zend_object *zephir_init_properties_Phalcon_Assets_Collection(zend_class_entry * ZVAL_UNDEF(&_7$$6); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -190477,7 +190477,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, allow) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_1$$4), _5$$4, _6$$4, _3$$4) { ZEPHIR_INIT_NVAR(&innerRoleName); - if (_6$$4 != NULL) { + if (_6$$4 != NULL) { ZVAL_STR_COPY(&innerRoleName, _6$$4); } else { ZVAL_LONG(&innerRoleName, _5$$4); @@ -190564,7 +190564,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, deny) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_2$$4), _6$$4, _7$$4, _4$$4) { ZEPHIR_INIT_NVAR(&innerRoleName); - if (_7$$4 != NULL) { + if (_7$$4 != NULL) { ZVAL_STR_COPY(&innerRoleName, _7$$4); } else { ZVAL_LONG(&innerRoleName, _6$$4); @@ -193249,7 +193249,7 @@ zend_object *zephir_init_properties_Phalcon_Dispatcher_AbstractDispatcher(zend_c ZVAL_UNDEF(&_7$$6); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -198344,7 +198344,7 @@ static PHP_METHOD(Phalcon_Tag_Select, optionsFromArray) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _2, _3, _0) { ZEPHIR_INIT_NVAR(&optionValue); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&optionValue, _3); } else { ZVAL_LONG(&optionValue, _2); @@ -198784,7 +198784,7 @@ static PHP_METHOD(Phalcon_Forms_Form, add) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_2$$4), _5$$4, _6$$4, _3$$4) { ZEPHIR_INIT_NVAR(&key); - if (_6$$4 != NULL) { + if (_6$$4 != NULL) { ZVAL_STR_COPY(&key, _6$$4); } else { ZVAL_LONG(&key, _5$$4); @@ -198899,7 +198899,7 @@ static PHP_METHOD(Phalcon_Forms_Form, bind) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _3, _4, _1) { ZEPHIR_INIT_NVAR(&key); - if (_4 != NULL) { + if (_4 != NULL) { ZVAL_STR_COPY(&key, _4); } else { ZVAL_LONG(&key, _3); @@ -200179,7 +200179,7 @@ zend_object *zephir_init_properties_Phalcon_Forms_Form(zend_class_entry *class_t ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -200335,7 +200335,7 @@ zend_object *zephir_init_properties_Phalcon_Forms_Manager(zend_class_entry *clas ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -201150,7 +201150,7 @@ zend_object *zephir_init_properties_Phalcon_Forms_Element_AbstractElement(zend_c ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -201722,7 +201722,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Select, addOption) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(option), _2$$3, _3$$3, _0$$3) { ZEPHIR_INIT_NVAR(&key); - if (_3$$3 != NULL) { + if (_3$$3 != NULL) { ZVAL_STR_COPY(&key, _3$$3); } else { ZVAL_LONG(&key, _2$$3); @@ -202461,8 +202461,8 @@ ZEND_DECLARE_MODULE_GLOBALS(phalcon) PHP_INI_BEGIN() STD_PHP_INI_BOOLEAN("phalcon.db.escape_identifiers", "1", PHP_INI_ALL, OnUpdateBool, db.escape_identifiers, zend_phalcon_globals, phalcon_globals) STD_PHP_INI_BOOLEAN("phalcon.db.force_casting", "0", PHP_INI_ALL, OnUpdateBool, db.force_casting, zend_phalcon_globals, phalcon_globals) - - + + STD_PHP_INI_BOOLEAN("phalcon.orm.case_insensitive_column_map", "0", PHP_INI_ALL, OnUpdateBool, orm.case_insensitive_column_map, zend_phalcon_globals, phalcon_globals) STD_PHP_INI_BOOLEAN("phalcon.orm.cast_last_insert_id_to_int", "0", PHP_INI_ALL, OnUpdateBool, orm.cast_last_insert_id_to_int, zend_phalcon_globals, phalcon_globals) STD_PHP_INI_BOOLEAN("phalcon.orm.cast_on_hydrate", "0", PHP_INI_ALL, OnUpdateBool, orm.cast_on_hydrate, zend_phalcon_globals, phalcon_globals) @@ -202476,9 +202476,9 @@ PHP_INI_BEGIN() STD_PHP_INI_BOOLEAN("phalcon.orm.ignore_unknown_columns", "0", PHP_INI_ALL, OnUpdateBool, orm.ignore_unknown_columns, zend_phalcon_globals, phalcon_globals) STD_PHP_INI_BOOLEAN("phalcon.orm.late_state_binding", "0", PHP_INI_ALL, OnUpdateBool, orm.late_state_binding, zend_phalcon_globals, phalcon_globals) STD_PHP_INI_BOOLEAN("phalcon.orm.not_null_validations", "1", PHP_INI_ALL, OnUpdateBool, orm.not_null_validations, zend_phalcon_globals, phalcon_globals) - - - + + + STD_PHP_INI_BOOLEAN("phalcon.orm.update_snapshot_on_save", "1", PHP_INI_ALL, OnUpdateBool, orm.update_snapshot_on_save, zend_phalcon_globals, phalcon_globals) STD_PHP_INI_BOOLEAN("phalcon.orm.virtual_foreign_keys", "1", PHP_INI_ALL, OnUpdateBool, orm.virtual_foreign_keys, zend_phalcon_globals, phalcon_globals) PHP_INI_END() @@ -202964,14 +202964,14 @@ static PHP_MINIT_FUNCTION(phalcon) ZEPHIR_INIT(phalcon_2__closure); ZEPHIR_INIT(phalcon_3__closure); ZEPHIR_INIT(phalcon_4__closure); - + return SUCCESS; } #ifndef ZEPHIR_RELEASE static PHP_MSHUTDOWN_FUNCTION(phalcon) { - + zephir_deinitialize_memory(TSRMLS_C); UNREGISTER_INI_ENTRIES(); return SUCCESS; @@ -202991,7 +202991,7 @@ static void php_zephir_init_globals(zend_phalcon_globals *phalcon_globals TSRMLS /* Static cache */ memset(phalcon_globals->scache, '\0', sizeof(zephir_fcall_cache_entry*) * ZEPHIR_MAX_CACHE_SLOTS); - + phalcon_globals->orm.ast_cache = NULL; phalcon_globals->orm.cache_level = 3; @@ -203014,12 +203014,12 @@ static void php_zephir_init_globals(zend_phalcon_globals *phalcon_globals TSRMLS - + } static void php_zephir_init_module_globals(zend_phalcon_globals *phalcon_globals TSRMLS_DC) { - + } static PHP_RINIT_FUNCTION(phalcon) @@ -203033,7 +203033,7 @@ static PHP_RINIT_FUNCTION(phalcon) php_zephir_init_globals(phalcon_globals_ptr TSRMLS_CC); zephir_initialize_memory(phalcon_globals_ptr TSRMLS_CC); - + return SUCCESS; } @@ -203059,7 +203059,7 @@ static PHP_MINFO_FUNCTION(phalcon) php_info_print_table_row(2, "Build Date", __DATE__ " " __TIME__ ); php_info_print_table_row(2, "Powered by Zephir", "Version " PHP_PHALCON_ZEPVERSION); php_info_print_table_end(); - + DISPLAY_INI_ENTRIES(); } @@ -203071,7 +203071,7 @@ static PHP_GINIT_FUNCTION(phalcon) static PHP_GSHUTDOWN_FUNCTION(phalcon) { - + } diff --git a/build/php7/64bits/phalcon.zep.c b/build/php7/64bits/phalcon.zep.c index 67d6383bee9..356bdaf19d0 100644 --- a/build/php7/64bits/phalcon.zep.c +++ b/build/php7/64bits/phalcon.zep.c @@ -405,7 +405,7 @@ static int phql_internal_parse_phql(zval **result, char *phql, unsigned int phql * * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. @@ -618,7 +618,7 @@ const phvolt_token_names phvolt_tokens[]; * * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. @@ -1165,7 +1165,7 @@ static void phql_ret_func_call(zval *ret, phql_parser_token *name, zval *argumen * * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. @@ -6016,7 +6016,7 @@ static int zephir_array_isset_string_fetch(zval *fetched, const zval *arr, char static int zephir_array_isset_long_fetch(zval *fetched, const zval *arr, unsigned long index, int readonly) { zval *zv; - + if (UNEXPECTED(Z_TYPE_P(arr) == IS_OBJECT && zephir_instance_of_ev((zval *)arr, (const zend_class_entry *)zend_ce_arrayaccess))) { zend_long ZEPHIR_LAST_CALL_STATUS; zval exist, offset; @@ -13292,7 +13292,7 @@ static PHP_METHOD(Phalcon_Cache, setMultiple) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(values), _2, _3, _0) { ZEPHIR_INIT_NVAR(&key); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&key, _3); } else { ZVAL_LONG(&key, _2); @@ -13714,7 +13714,7 @@ static PHP_METHOD(Phalcon_Collection, init) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _2, _3, _0) { ZEPHIR_INIT_NVAR(&key); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&key, _3); } else { ZVAL_LONG(&key, _2); @@ -14057,7 +14057,7 @@ zend_object *zephir_init_properties_Phalcon_Collection(zend_class_entry *class_t ZVAL_UNDEF(&_3$$4); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -14310,7 +14310,7 @@ static PHP_METHOD(Phalcon_Config, toArray) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _3, _4, _1) { ZEPHIR_INIT_NVAR(&key); - if (_4 != NULL) { + if (_4 != NULL) { ZVAL_STR_COPY(&key, _4); } else { ZVAL_LONG(&key, _3); @@ -14397,7 +14397,7 @@ static PHP_METHOD(Phalcon_Config, internalMerge) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&target), _2, _3, _0) { ZEPHIR_INIT_NVAR(&key); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&key, _3); } else { ZVAL_LONG(&key, _2); @@ -15824,7 +15824,7 @@ static PHP_METHOD(Phalcon_Crypt, initializeAvailableCiphers) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&availableCiphers), _2, _3, _0) { ZEPHIR_INIT_NVAR(&i); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&i, _3); } else { ZVAL_LONG(&i, _2); @@ -16300,7 +16300,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Debug) { zend_declare_property_bool(phalcon_debug_ce, SL("showFiles"), 1, ZEND_ACC_PROTECTED TSRMLS_CC); - zend_declare_property_string(phalcon_debug_ce, SL("uri"), "https://assets.phalconphp.com/debug/4.0.x/", ZEND_ACC_PROTECTED TSRMLS_CC); + zend_declare_property_string(phalcon_debug_ce, SL("uri"), "https://assets.phalcon.io/debug/4.0.x/", ZEND_ACC_PROTECTED TSRMLS_CC); phalcon_debug_ce->create_object = zephir_init_properties_Phalcon_Debug; return SUCCESS; @@ -16451,7 +16451,7 @@ static PHP_METHOD(Phalcon_Debug, getVersion) { ZEPHIR_CALL_CE_STATIC(&_3, phalcon_version_ce, "getpart", &_1, 0, &_2); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_4); - ZEPHIR_CONCAT_SVSVS(&_4, "https://docs.phalconphp.com/", &_0, ".", &_3, "/en/"); + ZEPHIR_CONCAT_SVSVS(&_4, "https://docs.phalcon.io/", &_0, ".", &_3, "/en/"); zephir_array_update_string(&link, SL("action"), &_4, PH_COPY | PH_SEPARATE); ZEPHIR_CALL_CE_STATIC(&_5, phalcon_version_ce, "get", &_6, 0); zephir_check_call_status(); @@ -16724,7 +16724,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_11$$5), _14$$5, _15$$5, _12$$5) { ZEPHIR_INIT_NVAR(&n); - if (_15$$5 != NULL) { + if (_15$$5 != NULL) { ZVAL_STR_COPY(&n, _15$$5); } else { ZVAL_LONG(&n, _14$$5); @@ -16772,7 +16772,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_REQUEST), _25$$5, _26$$5, _23$$5) { ZEPHIR_INIT_NVAR(&keyRequest); - if (_26$$5 != NULL) { + if (_26$$5 != NULL) { ZVAL_STR_COPY(&keyRequest, _26$$5); } else { ZVAL_LONG(&keyRequest, _25$$5); @@ -16844,7 +16844,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_SERVER), _40$$5, _41$$5, _38$$5) { ZEPHIR_INIT_NVAR(&keyServer); - if (_41$$5 != NULL) { + if (_41$$5 != NULL) { ZVAL_STR_COPY(&keyServer, _41$$5); } else { ZVAL_LONG(&keyServer, _40$$5); @@ -16899,7 +16899,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_49$$5), _52$$5, _53$$5, _50$$5) { ZEPHIR_INIT_NVAR(&keyFile); - if (_53$$5 != NULL) { + if (_53$$5 != NULL) { ZVAL_STR_COPY(&keyFile, _53$$5); } else { ZVAL_LONG(&keyFile, _52$$5); @@ -16948,7 +16948,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&dataVars), _60$$23, _61$$23, _58$$23) { ZEPHIR_INIT_NVAR(&keyVar); - if (_61$$23 != NULL) { + if (_61$$23 != NULL) { ZVAL_STR_COPY(&keyVar, _61$$23); } else { ZVAL_LONG(&keyVar, _60$$23); @@ -17362,7 +17362,7 @@ static PHP_METHOD(Phalcon_Debug, getArrayDump) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&argument), _3, _4, _1) { ZEPHIR_INIT_NVAR(&k); - if (_4 != NULL) { + if (_4 != NULL) { ZVAL_STR_COPY(&k, _4); } else { ZVAL_LONG(&k, _3); @@ -17619,7 +17619,7 @@ static PHP_METHOD(Phalcon_Debug, showTraceItem) { ZEPHIR_INIT_VAR(&prepareUriClass); zephir_fast_str_replace(&prepareUriClass, &_6$$4, &_7$$4, &className TSRMLS_CC); ZEPHIR_INIT_VAR(&classNameWithLink); - ZEPHIR_CONCAT_SVSVS(&classNameWithLink, "", &className, ""); + ZEPHIR_CONCAT_SVSVS(&classNameWithLink, "", &className, ""); } else { ZEPHIR_INIT_VAR(&classReflection); object_init_ex(&classReflection, zephir_get_internal_ce(SL("reflectionclass"))); @@ -17838,7 +17838,7 @@ zend_object *zephir_init_properties_Phalcon_Debug(zend_class_entry *class_type T ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -18405,7 +18405,7 @@ static PHP_METHOD(Phalcon_Di, loadFromConfig) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&services), _2, _3, _0) { ZEPHIR_INIT_NVAR(&name); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&name, _3); } else { ZVAL_LONG(&name, _2); @@ -19289,7 +19289,7 @@ static PHP_METHOD(Phalcon_Kernel, preComputeHashKey) { } - + { @@ -19297,7 +19297,7 @@ static PHP_METHOD(Phalcon_Kernel, preComputeHashKey) { } - + ZEPHIR_MM_RESTORE(); } @@ -19487,7 +19487,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&namespaces), _5, _6, _3) { ZEPHIR_INIT_NVAR(&nsPrefix); - if (_6 != NULL) { + if (_6 != NULL) { ZVAL_STR_COPY(&nsPrefix, _6); } else { ZVAL_LONG(&nsPrefix, _5); @@ -20460,7 +20460,7 @@ static PHP_METHOD(Phalcon_Loader, registerNamespaces) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&preparedNamespaces), _2$$3, _3$$3, _0$$3) { ZEPHIR_INIT_NVAR(&name); - if (_3$$3 != NULL) { + if (_3$$3 != NULL) { ZVAL_STR_COPY(&name, _3$$3); } else { ZVAL_LONG(&name, _2$$3); @@ -20652,7 +20652,7 @@ static PHP_METHOD(Phalcon_Loader, prepareNamespace) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&namespaceName), _2, _3, _0) { ZEPHIR_INIT_NVAR(&name); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&name, _3); } else { ZVAL_LONG(&name, _2); @@ -20718,7 +20718,7 @@ zend_object *zephir_init_properties_Phalcon_Loader(zend_class_entry *class_type ZVAL_UNDEF(&_5$$5); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -21498,7 +21498,7 @@ static PHP_METHOD(Phalcon_Security, checkHash) { zephir_concat_self(&cryptedHash, &passwordHash TSRMLS_CC); sum = (cryptedLength - passwordLength); for (_3 = 0; _3 < Z_STRLEN_P(&passwordHash); _3++) { - i = _3; + i = _3; ch = ZEPHIR_STRING_OFFSET(&passwordHash, _3); _4$$4 = ZEPHIR_STRING_OFFSET(&cryptedHash, i); sum = (sum | ((_4$$4 ^ ch))); @@ -23795,7 +23795,7 @@ static PHP_METHOD(Phalcon_Tag, renderAttributes) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&order), _2, _3, _0) { ZEPHIR_INIT_NVAR(&key); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&key, _3); } else { ZVAL_LONG(&key, _2); @@ -23835,7 +23835,7 @@ static PHP_METHOD(Phalcon_Tag, renderAttributes) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&attributes), _6, _7, _4) { ZEPHIR_INIT_NVAR(&key); - if (_7 != NULL) { + if (_7 != NULL) { ZVAL_STR_COPY(&key, _7); } else { ZVAL_LONG(&key, _6); @@ -23878,7 +23878,7 @@ static PHP_METHOD(Phalcon_Tag, renderAttributes) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&attrs), _11, _12, _9) { ZEPHIR_INIT_NVAR(&key); - if (_12 != NULL) { + if (_12 != NULL) { ZVAL_STR_COPY(&key, _12); } else { ZVAL_LONG(&key, _11); @@ -26741,7 +26741,7 @@ static PHP_METHOD(Phalcon_Validation, validate) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&validatorData), _4, _5, _2) { ZEPHIR_INIT_NVAR(&field); - if (_5 != NULL) { + if (_5 != NULL) { ZVAL_STR_COPY(&field, _5); } else { ZVAL_LONG(&field, _4); @@ -27104,7 +27104,7 @@ zend_object *zephir_init_properties_Phalcon_Validation(zend_class_entry *class_t ZVAL_UNDEF(&_3$$4); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -28017,7 +28017,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, __construct) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&iniConfig), _5, _6, _3) { ZEPHIR_INIT_NVAR(§ion); - if (_6 != NULL) { + if (_6 != NULL) { ZVAL_STR_COPY(§ion, _6); } else { ZVAL_LONG(§ion, _5); @@ -28032,7 +28032,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, __construct) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&directives), _9$$6, _10$$6, _7$$6) { ZEPHIR_INIT_NVAR(&path); - if (_10$$6 != NULL) { + if (_10$$6 != NULL) { ZVAL_STR_COPY(&path, _10$$6); } else { ZVAL_LONG(&path, _9$$6); @@ -28102,7 +28102,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, __construct) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&directives), _22$$12, _23$$12, _20$$12) { ZEPHIR_INIT_NVAR(&path); - if (_23$$12 != NULL) { + if (_23$$12 != NULL) { ZVAL_STR_COPY(&path, _23$$12); } else { ZVAL_LONG(&path, _22$$12); @@ -28199,7 +28199,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, cast) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(ini), _2$$3, _3$$3, _0$$3) { ZEPHIR_INIT_NVAR(&key); - if (_3$$3 != NULL) { + if (_3$$3 != NULL) { ZVAL_STR_COPY(&key, _3$$3); } else { ZVAL_LONG(&key, _2$$3); @@ -29190,7 +29190,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, escape) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&parts), _10, _11, _8) { ZEPHIR_INIT_NVAR(&key); - if (_11 != NULL) { + if (_11 != NULL) { ZVAL_STR_COPY(&key, _11); } else { ZVAL_LONG(&key, _10); @@ -39620,7 +39620,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_AbstractAdapter, describeIndexes) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&indexes), _10, _11, _8) { ZEPHIR_INIT_NVAR(&name); - if (_11 != NULL) { + if (_11 != NULL) { ZVAL_STR_COPY(&name, _11); } else { ZVAL_LONG(&name, _10); @@ -39851,7 +39851,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_AbstractAdapter, describeReferences) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&references), _22, _23, _20) { ZEPHIR_INIT_NVAR(&name); - if (_23 != NULL) { + if (_23 != NULL) { ZVAL_STR_COPY(&name, _23); } else { ZVAL_LONG(&name, _22); @@ -40716,7 +40716,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_AbstractAdapter, insert) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&values), _4, _5, _2) { ZEPHIR_INIT_NVAR(&position); - if (_5 != NULL) { + if (_5 != NULL) { ZVAL_STR_COPY(&position, _5); } else { ZVAL_LONG(&position, _4); @@ -40906,7 +40906,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_AbstractAdapter, insertAsDict) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(data), _3, _4, _1) { ZEPHIR_INIT_NVAR(&field); - if (_4 != NULL) { + if (_4 != NULL) { ZVAL_STR_COPY(&field, _4); } else { ZVAL_LONG(&field, _3); @@ -41585,7 +41585,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_AbstractAdapter, update) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(values), _2, _3, _0) { ZEPHIR_INIT_NVAR(&position); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&position, _3); } else { ZVAL_LONG(&position, _2); @@ -41785,7 +41785,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_AbstractAdapter, updateAsDict) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(data), _3, _4, _1) { ZEPHIR_INIT_NVAR(&field); - if (_4 != NULL) { + if (_4 != NULL) { ZVAL_STR_COPY(&field, _4); } else { ZVAL_LONG(&field, _3); @@ -41896,7 +41896,7 @@ zend_object *zephir_init_properties_Phalcon_Db_Adapter_AbstractAdapter(zend_clas ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -42543,7 +42543,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_AbstractPdo, connect) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&dsnAttributesMap), _6, _7, _4) { ZEPHIR_INIT_NVAR(&key); - if (_7 != NULL) { + if (_7 != NULL) { ZVAL_STR_COPY(&key, _7); } else { ZVAL_LONG(&key, _6); @@ -42888,7 +42888,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_AbstractPdo, executePrepared) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&placeholders), _2, _3, _0) { ZEPHIR_INIT_NVAR(&wildcard); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&wildcard, _3); } else { ZVAL_LONG(&wildcard, _2); @@ -42965,7 +42965,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_AbstractPdo, executePrepared) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&castValue), _12$$22, _13$$22, _10$$22) { ZEPHIR_INIT_NVAR(&position); - if (_13$$22 != NULL) { + if (_13$$22 != NULL) { ZVAL_STR_COPY(&position, _13$$22); } else { ZVAL_LONG(&position, _12$$22); @@ -43025,7 +43025,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_AbstractPdo, executePrepared) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&value), _20$$31, _21$$31, _18$$31) { ZEPHIR_INIT_NVAR(&position); - if (_21$$31 != NULL) { + if (_21$$31 != NULL) { ZVAL_STR_COPY(&position, _21$$31); } else { ZVAL_LONG(&position, _20$$31); @@ -43146,7 +43146,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_AbstractPdo, executePrepared) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&castValue), _30$$53, _31$$53, _28$$53) { ZEPHIR_INIT_NVAR(&position); - if (_31$$53 != NULL) { + if (_31$$53 != NULL) { ZVAL_STR_COPY(&position, _31$$53); } else { ZVAL_LONG(&position, _30$$53); @@ -43206,7 +43206,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_AbstractPdo, executePrepared) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&value), _38$$62, _39$$62, _36$$62) { ZEPHIR_INIT_NVAR(&position); - if (_39$$62 != NULL) { + if (_39$$62 != NULL) { ZVAL_STR_COPY(&position, _39$$62); } else { ZVAL_LONG(&position, _38$$62); @@ -44552,7 +44552,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeIndexes) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&indexes), _24, _25, _22) { ZEPHIR_INIT_NVAR(&name); - if (_25 != NULL) { + if (_25 != NULL) { ZVAL_STR_COPY(&name, _25); } else { ZVAL_LONG(&name, _24); @@ -44817,7 +44817,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeReferences) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&references), _26, _27, _24) { ZEPHIR_INIT_NVAR(&name); - if (_27 != NULL) { + if (_27 != NULL) { ZVAL_STR_COPY(&name, _27); } else { ZVAL_LONG(&name, _26); @@ -46137,7 +46137,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeReferences) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&references), _26, _27, _24) { ZEPHIR_INIT_NVAR(&name); - if (_27 != NULL) { + if (_27 != NULL) { ZVAL_STR_COPY(&name, _27); } else { ZVAL_LONG(&name, _26); @@ -47259,7 +47259,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeIndexes) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&indexes), _45, _46, _43) { ZEPHIR_INIT_NVAR(&name); - if (_46 != NULL) { + if (_46 != NULL) { ZVAL_STR_COPY(&name, _46); } else { ZVAL_LONG(&name, _45); @@ -47399,7 +47399,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeReferences) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_0), _6, _7, _4) { ZEPHIR_INIT_NVAR(&number); - if (_7 != NULL) { + if (_7 != NULL) { ZVAL_STR_COPY(&number, _7); } else { ZVAL_LONG(&number, _6); @@ -47505,7 +47505,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeReferences) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&references), _24, _25, _22) { ZEPHIR_INIT_NVAR(&name); - if (_25 != NULL) { + if (_25 != NULL) { ZVAL_STR_COPY(&name, _25); } else { ZVAL_LONG(&name, _24); @@ -49669,7 +49669,7 @@ static PHP_METHOD(Phalcon_Http_Request, getHeaders) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&server), _2, _3, _0) { ZEPHIR_INIT_NVAR(&name); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&name, _3); } else { ZVAL_LONG(&name, _2); @@ -50574,7 +50574,7 @@ static PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&superFiles), _2$$3, _3$$3, _0$$3) { ZEPHIR_INIT_NVAR(&prefix); - if (_3$$3 != NULL) { + if (_3$$3 != NULL) { ZVAL_STR_COPY(&prefix, _3$$3); } else { ZVAL_LONG(&prefix, _2$$3); @@ -52703,7 +52703,7 @@ static PHP_METHOD(Phalcon_Http_Request, smoothFiles) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&names), _2, _3, _0) { ZEPHIR_INIT_NVAR(&idx); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&idx, _3); } else { ZVAL_LONG(&idx, _2); @@ -52920,7 +52920,7 @@ zend_object *zephir_init_properties_Phalcon_Http_Request(zend_class_entry *class ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -53995,7 +53995,7 @@ static PHP_METHOD(Phalcon_Http_Response, setHeaders) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _2, _3, _0) { ZEPHIR_INIT_NVAR(&name); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&name, _3); } else { ZVAL_LONG(&name, _2); @@ -54193,7 +54193,7 @@ static PHP_METHOD(Phalcon_Http_Response, setStatusCode) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(¤tHeadersRaw), _3, _4, _1) { ZEPHIR_INIT_NVAR(&key); - if (_4 != NULL) { + if (_4 != NULL) { ZVAL_STR_COPY(&key, _4); } else { ZVAL_LONG(&key, _3); @@ -55197,7 +55197,7 @@ static PHP_METHOD(Phalcon_Http_Message_AbstractMessage, populateHeaderCollection ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&headers), _2, _3, _0) { ZEPHIR_INIT_NVAR(&name); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&name, _3); } else { ZVAL_LONG(&name, _2); @@ -56752,7 +56752,7 @@ zend_object *zephir_init_properties_Phalcon_Http_Message_ServerRequest(zend_clas ZVAL_UNDEF(&_7$$6); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -57530,7 +57530,7 @@ static PHP_METHOD(Phalcon_Http_Message_ServerRequestFactory, parseHeaders) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&serverArray), _2, _3, _0) { ZEPHIR_INIT_NVAR(&key); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&key, _3); } else { ZVAL_LONG(&key, _2); @@ -57776,7 +57776,7 @@ static PHP_METHOD(Phalcon_Http_Message_ServerRequestFactory, parseUploadedFiles) ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&files), _2, _3, _0) { ZEPHIR_INIT_NVAR(&key); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&key, _3); } else { ZVAL_LONG(&key, _2); @@ -60073,7 +60073,7 @@ static PHP_METHOD(Phalcon_Http_Message_Uri, filterPath) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&parts), _4, _5, _2) { ZEPHIR_INIT_NVAR(&key); - if (_5 != NULL) { + if (_5 != NULL) { ZVAL_STR_COPY(&key, _5); } else { ZVAL_LONG(&key, _4); @@ -60212,7 +60212,7 @@ static PHP_METHOD(Phalcon_Http_Message_Uri, filterQuery) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&parts), _5, _6, _3) { ZEPHIR_INIT_NVAR(&index); - if (_6 != NULL) { + if (_6 != NULL) { ZVAL_STR_COPY(&index, _6); } else { ZVAL_LONG(&index, _5); @@ -61631,7 +61631,7 @@ zend_object *zephir_init_properties_Phalcon_Http_Response_Cookies(zend_class_ent ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -61853,7 +61853,7 @@ static PHP_METHOD(Phalcon_Http_Response_Headers, send) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_1), _4, _5, _2) { ZEPHIR_INIT_NVAR(&header); - if (_5 != NULL) { + if (_5 != NULL) { ZVAL_STR_COPY(&header, _5); } else { ZVAL_LONG(&header, _4); @@ -61992,7 +61992,7 @@ zend_object *zephir_init_properties_Phalcon_Http_Response_Headers(zend_class_ent ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -62326,7 +62326,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, variables) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_0), _3, _4, _1) { ZEPHIR_INIT_NVAR(&key); - if (_4 != NULL) { + if (_4 != NULL) { ZVAL_STR_COPY(&key, _4); } else { ZVAL_LONG(&key, _3); @@ -62612,7 +62612,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(variable), _6$$4, _7$$4, _4$$4) { ZEPHIR_INIT_NVAR(&key); - if (_7$$4 != NULL) { + if (_7$$4 != NULL) { ZVAL_STR_COPY(&key, _7$$4); } else { ZVAL_LONG(&key, _6$$4); @@ -62783,7 +62783,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_46$$12), _49$$12, _50$$12, _47$$12) { ZEPHIR_INIT_NVAR(&key); - if (_50$$12 != NULL) { + if (_50$$12 != NULL) { ZVAL_STR_COPY(&key, _50$$12); } else { ZVAL_LONG(&key, _49$$12); @@ -63273,7 +63273,7 @@ zend_object *zephir_init_properties_Phalcon_Debug_Dump(zend_class_entry *class_t ZVAL_UNDEF(&_3$$4); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -63529,7 +63529,7 @@ zend_object *zephir_init_properties_Phalcon_Application_AbstractApplication(zend ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -63898,7 +63898,7 @@ static PHP_METHOD(Phalcon_Filter_Filter, sanitize) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(sanitizers), _2$$3, _3$$3, _0$$3) { ZEPHIR_INIT_NVAR(&sanitizerKey); - if (_3$$3 != NULL) { + if (_3$$3 != NULL) { ZVAL_STR_COPY(&sanitizerKey, _3$$3); } else { ZVAL_LONG(&sanitizerKey, _2$$3); @@ -64045,7 +64045,7 @@ static PHP_METHOD(Phalcon_Filter_Filter, init) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&mapper), _2, _3, _0) { ZEPHIR_INIT_NVAR(&name); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&name, _3); } else { ZVAL_LONG(&name, _2); @@ -64122,7 +64122,7 @@ static PHP_METHOD(Phalcon_Filter_Filter, processArrayValues) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&values), _2, _3, _0) { ZEPHIR_INIT_NVAR(&itemKey); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&itemKey, _3); } else { ZVAL_LONG(&itemKey, _2); @@ -64226,7 +64226,7 @@ zend_object *zephir_init_properties_Phalcon_Filter_Filter(zend_class_entry *clas ZVAL_UNDEF(&_3$$4); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -66451,7 +66451,7 @@ static PHP_METHOD(Phalcon_Firewall_Adapter_Acl, handleDispatcher) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&boundModels), _32$$19, _33$$19, _30$$19) { ZEPHIR_INIT_NVAR(&boundModelKey); - if (_33$$19 != NULL) { + if (_33$$19 != NULL) { ZVAL_STR_COPY(&boundModelKey, _33$$19); } else { ZVAL_LONG(&boundModelKey, _32$$19); @@ -68015,7 +68015,7 @@ static PHP_METHOD(Phalcon_Firewall_Adapter_Micro_Acl, handleRouter) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&boundModels), _22$$19, _23$$19, _20$$19) { ZEPHIR_INIT_NVAR(&boundModelKey); - if (_23$$19 != NULL) { + if (_23$$19 != NULL) { ZVAL_STR_COPY(&boundModelKey, _23$$19); } else { ZVAL_LONG(&boundModelKey, _22$$19); @@ -68815,7 +68815,7 @@ static PHP_METHOD(Phalcon_Html_Breadcrumbs, render) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&elements), _3, _4, _1) { ZEPHIR_INIT_NVAR(&url); - if (_4 != NULL) { + if (_4 != NULL) { ZVAL_STR_COPY(&url, _4); } else { ZVAL_LONG(&url, _3); @@ -68920,7 +68920,7 @@ zend_object *zephir_init_properties_Phalcon_Html_Breadcrumbs(zend_class_entry *c ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -71745,7 +71745,7 @@ static PHP_METHOD(Phalcon_Html_Tag, renderAttributes) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&attrs), _3, _4, _1) { ZEPHIR_INIT_NVAR(&key); - if (_4 != NULL) { + if (_4 != NULL) { ZVAL_STR_COPY(&key, _4); } else { ZVAL_LONG(&key, _3); @@ -72070,7 +72070,7 @@ static PHP_METHOD(Phalcon_Html_Tag, renderSelectArray) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&options), _2, _3, _0) { ZEPHIR_INIT_NVAR(&optionValue); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&optionValue, _3); } else { ZVAL_LONG(&optionValue, _2); @@ -72323,7 +72323,7 @@ zend_object *zephir_init_properties_Phalcon_Html_Tag(zend_class_entry *class_typ ZVAL_UNDEF(&_5$$5); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -72703,7 +72703,7 @@ static PHP_METHOD(Phalcon_Html_Helper_AbstractHelper, renderAttributes) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&attributes), _2, _3, _0) { ZEPHIR_INIT_NVAR(&key); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&key, _3); } else { ZVAL_LONG(&key, _2); @@ -73632,7 +73632,7 @@ static PHP_METHOD(Phalcon_Helper_Arr, arrayToObject) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&collection), _2, _3, _0) { ZEPHIR_INIT_NVAR(&key); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&key, _3); } else { ZVAL_LONG(&key, _2); @@ -76170,7 +76170,7 @@ static PHP_METHOD(Phalcon_Factory_AbstractFactory, init) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&adapters), _3, _4, _1) { ZEPHIR_INIT_NVAR(&name); - if (_4 != NULL) { + if (_4 != NULL) { ZVAL_STR_COPY(&name, _4); } else { ZVAL_LONG(&name, _3); @@ -76217,7 +76217,7 @@ zend_object *zephir_init_properties_Phalcon_Factory_AbstractFactory(zend_class_e ZVAL_UNDEF(&_3$$4); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -76790,7 +76790,7 @@ zend_object *zephir_init_properties_Phalcon_Paginator_Repository(zend_class_entr ZVAL_UNDEF(&_3$$4); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -78317,7 +78317,7 @@ zend_object *zephir_init_properties_Phalcon_Messages_Message(zend_class_entry *c ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -79814,7 +79814,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(¶mCalls), _3$$10, _4$$10, _1$$10) { ZEPHIR_INIT_NVAR(&methodPosition); - if (_4$$10 != NULL) { + if (_4$$10 != NULL) { ZVAL_STR_COPY(&methodPosition, _4$$10); } else { ZVAL_LONG(&methodPosition, _3$$10); @@ -79962,7 +79962,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(¶mCalls), _27$$25, _28$$25, _25$$25) { ZEPHIR_INIT_NVAR(&propertyPosition); - if (_28$$25 != NULL) { + if (_28$$25 != NULL) { ZVAL_STR_COPY(&propertyPosition, _28$$25); } else { ZVAL_LONG(&propertyPosition, _27$$25); @@ -80242,7 +80242,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, buildParameters) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&arguments), _2, _3, _0) { ZEPHIR_INIT_NVAR(&position); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&position, _3); } else { ZVAL_LONG(&position, _2); @@ -81087,7 +81087,7 @@ zend_object *zephir_init_properties_Phalcon_Flash_AbstractFlash(zend_class_entry ZVAL_UNDEF(&_3$$4); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -81435,7 +81435,7 @@ static PHP_METHOD(Phalcon_Flash_Session, output) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&messages), _3, _4, _1) { ZEPHIR_INIT_NVAR(&type); - if (_4 != NULL) { + if (_4 != NULL) { ZVAL_STR_COPY(&type, _4); } else { ZVAL_LONG(&type, _3); @@ -82546,7 +82546,7 @@ zend_object *zephir_init_properties_Phalcon_Session_Manager(zend_class_entry *cl ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -83006,7 +83006,7 @@ zend_object *zephir_init_properties_Phalcon_Session_Adapter_Noop(zend_class_entr ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -84331,7 +84331,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Annotations_Exception) { ** and nonterminals. "int" is used otherwise. ** AANOCODE is a number of type AACODETYPE which corresponds ** to no legal terminal or nonterminal number. This -** number is used to fill in empty slots of the hash +** number is used to fill in empty slots of the hash ** table. ** AAFALLBACK If defined, this indicates that one or more tokens ** have fall-back values which should be used if the @@ -84340,7 +84340,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Annotations_Exception) { ** and nonterminal numbers. "unsigned char" is ** used if there are fewer than 250 rules and ** states combined. "int" is used otherwise. -** phannot_TOKENTYPE is the data type used for minor tokens given +** phannot_TOKENTYPE is the data type used for minor tokens given ** directly to the parser from the tokenizer. ** AAMINORTYPE is the data type used for all minor tokens. ** This is typically a union of many types, one of @@ -84381,7 +84381,7 @@ typedef union { /* Next are that tables used to determine what action to take based on the ** current state and lookahead token. These tables are used to implement ** functions that take a state number and lookahead value and return an -** action integer. +** action integer. ** ** Suppose the action integer is N. Then the action is determined as ** follows @@ -84406,7 +84406,7 @@ typedef union { ** If the index value aa_shift_ofst[S]+X is out of range or if the value ** aa_lookahead[aa_shift_ofst[S]+X] is not equal to X or if aa_shift_ofst[S] ** is equal to AA_SHIFT_USE_DFLT, it means that the action is not in the table -** and that aa_default[S] should be used instead. +** and that aa_default[S] should be used instead. ** ** The formula above is for computing the action when the lookahead is ** a terminal symbol. If the lookahead is a non-terminal (as occurs after @@ -84471,7 +84471,7 @@ static AAACTIONTYPE aa_default[] = { /* The next table maps tokens into fallback tokens. If a construct ** like the following: -** +** ** %fallback ID X Y Z. ** ** appears in the grammer, then ID becomes a fallback token for X, Y, @@ -84532,14 +84532,14 @@ static void phannot_Trace(FILE *TraceFILE, char *zTracePrompt){ #ifndef NDEBUG /* For tracing shifts, the names of all terminals and nonterminals ** are required. The following table supplies these names */ -static const char *aaTokenName[] = { - "$", "COMMA", "AT", "IDENTIFIER", - "PARENTHESES_OPEN", "PARENTHESES_CLOSE", "STRING", "EQUALS", - "COLON", "INTEGER", "DOUBLE", "NULL", +static const char *aaTokenName[] = { + "$", "COMMA", "AT", "IDENTIFIER", + "PARENTHESES_OPEN", "PARENTHESES_CLOSE", "STRING", "EQUALS", + "COLON", "INTEGER", "DOUBLE", "NULL", "FALSE", "TRUE", "BRACKET_OPEN", "BRACKET_CLOSE", - "SBRACKET_OPEN", "SBRACKET_CLOSE", "error", "program", + "SBRACKET_OPEN", "SBRACKET_CLOSE", "error", "program", "annotation_language", "annotation_list", "annotation", "argument_list", - "argument_item", "expr", "array", + "argument_item", "expr", "array", }; #endif /* NDEBUG */ @@ -84606,7 +84606,7 @@ static void aa_destructor(AACODETYPE aamajor, AAMINORTYPE *aapminor){ /* Here is inserted the actions which take place when a ** terminal or non-terminal is destroyed. This can happen ** when the symbol is popped from the stack during a - ** reduce or during error processing or when a parser is + ** reduce or during error processing or when a parser is ** being destroyed before it is finished parsing. ** ** Note: during a reduce, the only symbols destroyed are those @@ -84691,7 +84691,7 @@ static int aa_find_shift_action( ){ int i; int stateno = pParser->aastack[pParser->aaidx].stateno; - + /* if( pParser->aaidx<0 ) return AA_NO_ACTION; */ i = aa_shift_ofst[stateno]; if( i==AA_SHIFT_USE_DFLT ){ @@ -84727,7 +84727,7 @@ static int aa_find_reduce_action( ){ int i; int stateno = pParser->aastack[pParser->aaidx].stateno; - + i = aa_reduce_ofst[stateno]; if( i==AA_REDUCE_USE_DFLT ){ return aa_default[stateno]; @@ -84829,7 +84829,7 @@ static void aa_reduce( phannot_ARG_FETCH; aamsp = &aapParser->aastack[aapParser->aaidx]; #ifndef NDEBUG - if( aaTraceFILE && aaruleno>=0 + if( aaTraceFILE && aaruleno>=0 && aarulenoaastack[pParser->aaidx].stateno; - + /* if( pParser->aaidx<0 ) return AA_NO_ACTION; */ i = aa_shift_ofst[stateno]; if( i==AA_SHIFT_USE_DFLT ){ @@ -85676,7 +85676,7 @@ static int aa_find_reduce_action( ){ int i; int stateno = pParser->aastack[pParser->aaidx].stateno; - + i = aa_reduce_ofst[stateno]; if( i==AA_REDUCE_USE_DFLT ){ return aa_default[stateno]; @@ -85778,7 +85778,7 @@ static void aa_reduce( phannot_ARG_FETCH; aamsp = &aapParser->aastack[aapParser->aaidx]; #ifndef NDEBUG - if( aaTraceFILE && aaruleno>=0 + if( aaTraceFILE && aaruleno>=0 && aarulenoppstack[pParser->ppidx].stateno; - + /* if( pParser->ppidx<0 ) return PP_NO_ACTION; */ i = pp_shift_ofst[stateno]; if( i==PP_SHIFT_USE_DFLT ){ @@ -138403,7 +138403,7 @@ static int pp_find_reduce_action( ){ int i; int stateno = pParser->ppstack[pParser->ppidx].stateno; - + i = pp_reduce_ofst[stateno]; if( i==PP_REDUCE_USE_DFLT ){ return pp_default[stateno]; @@ -138641,7 +138641,7 @@ static void pp_reduce( phql_ARG_FETCH; ppmsp = &pppParser->ppstack[pppParser->ppidx]; #ifndef NDEBUG - if( ppTraceFILE && ppruleno>=0 + if( ppTraceFILE && ppruleno>=0 && pprulenoppstack[pParser->ppidx].stateno; - + /* if( pParser->ppidx<0 ) return PP_NO_ACTION; */ i = pp_shift_ofst[stateno]; if( i==PP_SHIFT_USE_DFLT ){ @@ -140778,7 +140778,7 @@ static int pp_find_reduce_action( ){ int i; int stateno = pParser->ppstack[pParser->ppidx].stateno; - + i = pp_reduce_ofst[stateno]; if( i==PP_REDUCE_USE_DFLT ){ return pp_default[stateno]; @@ -141016,7 +141016,7 @@ static void pp_reduce( phql_ARG_FETCH; ppmsp = &pppParser->ppstack[pppParser->ppidx]; #ifndef NDEBUG - if( ppTraceFILE && ppruleno>=0 + if( ppTraceFILE && ppruleno>=0 && pprulenovvstack[pParser->vvidx].stateno; - + /* if( pParser->vvidx<0 ) return VV_NO_ACTION; */ i = vv_shift_ofst[stateno]; if( i==VV_SHIFT_USE_DFLT ){ @@ -160520,7 +160520,7 @@ static int vv_find_reduce_action( ){ int i; int stateno = pParser->vvstack[pParser->vvidx].stateno; - + i = vv_reduce_ofst[stateno]; if( i==VV_REDUCE_USE_DFLT ){ return vv_default[stateno]; @@ -160755,7 +160755,7 @@ static void vv_reduce( phvolt_ARG_FETCH; vvmsp = &vvpParser->vvstack[vvpParser->vvidx]; #ifndef NDEBUG - if( vvTraceFILE && vvruleno>=0 + if( vvTraceFILE && vvruleno>=0 && vvruleno + * (c) Phalcon Team * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. @@ -163062,7 +163062,7 @@ static int phvolt_internal_parse_view(zval **result, zval *view_code, zval *temp * * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. @@ -163223,7 +163223,7 @@ static int phvolt_get_token(phvolt_scanner_state *s, phvolt_scanner_token *token } else { - + { VVCTYPE vvch; unsigned int vvaccept = 0; @@ -170519,7 +170519,7 @@ zend_object *zephir_init_properties_Phalcon_Storage_Adapter_Apcu(zend_class_entr ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -171074,7 +171074,7 @@ zend_object *zephir_init_properties_Phalcon_Storage_Adapter_Libmemcached(zend_cl ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -171502,7 +171502,7 @@ zend_object *zephir_init_properties_Phalcon_Storage_Adapter_Memory(zend_class_en ZVAL_UNDEF(&_3$$4); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -172100,7 +172100,7 @@ zend_object *zephir_init_properties_Phalcon_Storage_Adapter_Redis(zend_class_ent ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -172900,7 +172900,7 @@ zend_object *zephir_init_properties_Phalcon_Storage_Adapter_Stream(zend_class_en ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -173953,7 +173953,7 @@ zend_object *zephir_init_properties_Phalcon_Translate_InterpolatorFactory(zend_c ZVAL_UNDEF(&_3$$4); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -174209,7 +174209,7 @@ static PHP_METHOD(Phalcon_Translate_Interpolator_AssociativeArray, replacePlaceh ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&placeholders), _2, _3, _0) { ZEPHIR_INIT_NVAR(&key); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&key, _3); } else { ZVAL_LONG(&key, _2); @@ -174844,7 +174844,7 @@ zend_object *zephir_init_properties_Phalcon_Translate_Adapter_Csv(zend_class_ent ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -175185,7 +175185,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDirectory) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(directory), _2$$4, _3$$4, _0$$4) { ZEPHIR_INIT_NVAR(&key); - if (_3$$4 != NULL) { + if (_3$$4 != NULL) { ZVAL_STR_COPY(&key, _3$$4); } else { ZVAL_LONG(&key, _2$$4); @@ -175796,7 +175796,7 @@ static PHP_METHOD(Phalcon_Validation_AbstractValidator, setTemplates) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&templates), _3, _4, _1) { ZEPHIR_INIT_NVAR(&field); - if (_4 != NULL) { + if (_4 != NULL) { ZVAL_STR_COPY(&field, _4); } else { ZVAL_LONG(&field, _3); @@ -176137,7 +176137,7 @@ zend_object *zephir_init_properties_Phalcon_Validation_AbstractValidator(zend_cl ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -176273,7 +176273,7 @@ zend_object *zephir_init_properties_Phalcon_Validation_AbstractValidatorComposit ZVAL_UNDEF(&_3$$4); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -177054,7 +177054,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_3), _6, _7, _4) { ZEPHIR_INIT_NVAR(&position); - if (_7 != NULL) { + if (_7 != NULL) { ZVAL_STR_COPY(&position, _7); } else { ZVAL_LONG(&position, _6); @@ -177546,7 +177546,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, __construct) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&options), _2, _3, _0) { ZEPHIR_INIT_NVAR(&key); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&key, _3); } else { ZVAL_LONG(&key, _2); @@ -178501,7 +178501,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, __construct) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&options), _2, _3, _0) { ZEPHIR_INIT_NVAR(&key); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&key, _3); } else { ZVAL_LONG(&key, _2); @@ -179464,7 +179464,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&except), _17$$7, _18$$7, _15$$7) { ZEPHIR_INIT_NVAR(&singleField); - if (_18$$7 != NULL) { + if (_18$$7 != NULL) { ZVAL_STR_COPY(&singleField, _18$$7); } else { ZVAL_LONG(&singleField, _17$$7); @@ -179864,7 +179864,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&except), _94$$38, _95$$38, _92$$38) { ZEPHIR_INIT_NVAR(&singleField); - if (_95$$38 != NULL) { + if (_95$$38 != NULL) { ZVAL_STR_COPY(&singleField, _95$$38); } else { ZVAL_LONG(&singleField, _94$$38); @@ -182318,7 +182318,7 @@ zend_object *zephir_init_properties_Phalcon_Cli_Console(zend_class_entry *class_ ZVAL_UNDEF(&_5$$5); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -182720,7 +182720,7 @@ zend_object *zephir_init_properties_Phalcon_Cli_Dispatcher(zend_class_entry *cla ZVAL_UNDEF(&_9$$7); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -183282,7 +183282,7 @@ static PHP_METHOD(Phalcon_Cli_Router, handle) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&paths), _7$$12, _8$$12, _5$$12) { ZEPHIR_INIT_NVAR(&part); - if (_8$$12 != NULL) { + if (_8$$12 != NULL) { ZVAL_STR_COPY(&part, _8$$12); } else { ZVAL_LONG(&part, _7$$12); @@ -183417,7 +183417,7 @@ static PHP_METHOD(Phalcon_Cli_Router, handle) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&paths), _20$$32, _21$$32, _18$$32) { ZEPHIR_INIT_NVAR(&part); - if (_21$$32 != NULL) { + if (_21$$32 != NULL) { ZVAL_STR_COPY(&part, _21$$32); } else { ZVAL_LONG(&part, _20$$32); @@ -183721,7 +183721,7 @@ zend_object *zephir_init_properties_Phalcon_Cli_Router(zend_class_entry *class_t ZVAL_UNDEF(&_3$$4); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -184246,7 +184246,7 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, extractNamedParams) { ZEPHIR_INIT_VAR(&route); ZVAL_STRING(&route, ""); for (_0 = 0; _0 < Z_STRLEN_P(&pattern); _0++) { - cursor = _0; + cursor = _0; ch = ZEPHIR_STRING_OFFSET(&pattern, _0); if (parenthesesCount == 0) { if (ch == '{') { @@ -184272,7 +184272,7 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, extractNamedParams) { zephir_get_strval(&_4$$10, &_3$$10); ZEPHIR_CPY_WRT(&item, &_4$$10); for (_5$$10 = 0; _5$$10 < Z_STRLEN_P(&item); _5$$10++) { - cursorVar = _5$$10; + cursorVar = _5$$10; ch = ZEPHIR_STRING_OFFSET(&item, _5$$10); if (ch == '\0') { break; @@ -186502,7 +186502,7 @@ zend_object *zephir_init_properties_Phalcon_Assets_Collection(zend_class_entry * ZVAL_UNDEF(&_7$$6); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -190477,7 +190477,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, allow) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_1$$4), _5$$4, _6$$4, _3$$4) { ZEPHIR_INIT_NVAR(&innerRoleName); - if (_6$$4 != NULL) { + if (_6$$4 != NULL) { ZVAL_STR_COPY(&innerRoleName, _6$$4); } else { ZVAL_LONG(&innerRoleName, _5$$4); @@ -190564,7 +190564,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, deny) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_2$$4), _6$$4, _7$$4, _4$$4) { ZEPHIR_INIT_NVAR(&innerRoleName); - if (_7$$4 != NULL) { + if (_7$$4 != NULL) { ZVAL_STR_COPY(&innerRoleName, _7$$4); } else { ZVAL_LONG(&innerRoleName, _6$$4); @@ -193249,7 +193249,7 @@ zend_object *zephir_init_properties_Phalcon_Dispatcher_AbstractDispatcher(zend_c ZVAL_UNDEF(&_7$$6); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -198344,7 +198344,7 @@ static PHP_METHOD(Phalcon_Tag_Select, optionsFromArray) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _2, _3, _0) { ZEPHIR_INIT_NVAR(&optionValue); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&optionValue, _3); } else { ZVAL_LONG(&optionValue, _2); @@ -198784,7 +198784,7 @@ static PHP_METHOD(Phalcon_Forms_Form, add) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_2$$4), _5$$4, _6$$4, _3$$4) { ZEPHIR_INIT_NVAR(&key); - if (_6$$4 != NULL) { + if (_6$$4 != NULL) { ZVAL_STR_COPY(&key, _6$$4); } else { ZVAL_LONG(&key, _5$$4); @@ -198899,7 +198899,7 @@ static PHP_METHOD(Phalcon_Forms_Form, bind) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _3, _4, _1) { ZEPHIR_INIT_NVAR(&key); - if (_4 != NULL) { + if (_4 != NULL) { ZVAL_STR_COPY(&key, _4); } else { ZVAL_LONG(&key, _3); @@ -200179,7 +200179,7 @@ zend_object *zephir_init_properties_Phalcon_Forms_Form(zend_class_entry *class_t ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -200335,7 +200335,7 @@ zend_object *zephir_init_properties_Phalcon_Forms_Manager(zend_class_entry *clas ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -201150,7 +201150,7 @@ zend_object *zephir_init_properties_Phalcon_Forms_Element_AbstractElement(zend_c ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -201722,7 +201722,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Select, addOption) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(option), _2$$3, _3$$3, _0$$3) { ZEPHIR_INIT_NVAR(&key); - if (_3$$3 != NULL) { + if (_3$$3 != NULL) { ZVAL_STR_COPY(&key, _3$$3); } else { ZVAL_LONG(&key, _2$$3); @@ -202461,8 +202461,8 @@ ZEND_DECLARE_MODULE_GLOBALS(phalcon) PHP_INI_BEGIN() STD_PHP_INI_BOOLEAN("phalcon.db.escape_identifiers", "1", PHP_INI_ALL, OnUpdateBool, db.escape_identifiers, zend_phalcon_globals, phalcon_globals) STD_PHP_INI_BOOLEAN("phalcon.db.force_casting", "0", PHP_INI_ALL, OnUpdateBool, db.force_casting, zend_phalcon_globals, phalcon_globals) - - + + STD_PHP_INI_BOOLEAN("phalcon.orm.case_insensitive_column_map", "0", PHP_INI_ALL, OnUpdateBool, orm.case_insensitive_column_map, zend_phalcon_globals, phalcon_globals) STD_PHP_INI_BOOLEAN("phalcon.orm.cast_last_insert_id_to_int", "0", PHP_INI_ALL, OnUpdateBool, orm.cast_last_insert_id_to_int, zend_phalcon_globals, phalcon_globals) STD_PHP_INI_BOOLEAN("phalcon.orm.cast_on_hydrate", "0", PHP_INI_ALL, OnUpdateBool, orm.cast_on_hydrate, zend_phalcon_globals, phalcon_globals) @@ -202476,9 +202476,9 @@ PHP_INI_BEGIN() STD_PHP_INI_BOOLEAN("phalcon.orm.ignore_unknown_columns", "0", PHP_INI_ALL, OnUpdateBool, orm.ignore_unknown_columns, zend_phalcon_globals, phalcon_globals) STD_PHP_INI_BOOLEAN("phalcon.orm.late_state_binding", "0", PHP_INI_ALL, OnUpdateBool, orm.late_state_binding, zend_phalcon_globals, phalcon_globals) STD_PHP_INI_BOOLEAN("phalcon.orm.not_null_validations", "1", PHP_INI_ALL, OnUpdateBool, orm.not_null_validations, zend_phalcon_globals, phalcon_globals) - - - + + + STD_PHP_INI_BOOLEAN("phalcon.orm.update_snapshot_on_save", "1", PHP_INI_ALL, OnUpdateBool, orm.update_snapshot_on_save, zend_phalcon_globals, phalcon_globals) STD_PHP_INI_BOOLEAN("phalcon.orm.virtual_foreign_keys", "1", PHP_INI_ALL, OnUpdateBool, orm.virtual_foreign_keys, zend_phalcon_globals, phalcon_globals) PHP_INI_END() @@ -202964,14 +202964,14 @@ static PHP_MINIT_FUNCTION(phalcon) ZEPHIR_INIT(phalcon_2__closure); ZEPHIR_INIT(phalcon_3__closure); ZEPHIR_INIT(phalcon_4__closure); - + return SUCCESS; } #ifndef ZEPHIR_RELEASE static PHP_MSHUTDOWN_FUNCTION(phalcon) { - + zephir_deinitialize_memory(TSRMLS_C); UNREGISTER_INI_ENTRIES(); return SUCCESS; @@ -202991,7 +202991,7 @@ static void php_zephir_init_globals(zend_phalcon_globals *phalcon_globals TSRMLS /* Static cache */ memset(phalcon_globals->scache, '\0', sizeof(zephir_fcall_cache_entry*) * ZEPHIR_MAX_CACHE_SLOTS); - + phalcon_globals->orm.ast_cache = NULL; phalcon_globals->orm.cache_level = 3; @@ -203014,12 +203014,12 @@ static void php_zephir_init_globals(zend_phalcon_globals *phalcon_globals TSRMLS - + } static void php_zephir_init_module_globals(zend_phalcon_globals *phalcon_globals TSRMLS_DC) { - + } static PHP_RINIT_FUNCTION(phalcon) @@ -203033,7 +203033,7 @@ static PHP_RINIT_FUNCTION(phalcon) php_zephir_init_globals(phalcon_globals_ptr TSRMLS_CC); zephir_initialize_memory(phalcon_globals_ptr TSRMLS_CC); - + return SUCCESS; } @@ -203059,7 +203059,7 @@ static PHP_MINFO_FUNCTION(phalcon) php_info_print_table_row(2, "Build Date", __DATE__ " " __TIME__ ); php_info_print_table_row(2, "Powered by Zephir", "Version " PHP_PHALCON_ZEPVERSION); php_info_print_table_end(); - + DISPLAY_INI_ENTRIES(); } @@ -203071,7 +203071,7 @@ static PHP_GINIT_FUNCTION(phalcon) static PHP_GSHUTDOWN_FUNCTION(phalcon) { - + } diff --git a/build/php7/safe/phalcon.zep.c b/build/php7/safe/phalcon.zep.c index 67d6383bee9..356bdaf19d0 100644 --- a/build/php7/safe/phalcon.zep.c +++ b/build/php7/safe/phalcon.zep.c @@ -405,7 +405,7 @@ static int phql_internal_parse_phql(zval **result, char *phql, unsigned int phql * * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. @@ -618,7 +618,7 @@ const phvolt_token_names phvolt_tokens[]; * * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. @@ -1165,7 +1165,7 @@ static void phql_ret_func_call(zval *ret, phql_parser_token *name, zval *argumen * * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. @@ -6016,7 +6016,7 @@ static int zephir_array_isset_string_fetch(zval *fetched, const zval *arr, char static int zephir_array_isset_long_fetch(zval *fetched, const zval *arr, unsigned long index, int readonly) { zval *zv; - + if (UNEXPECTED(Z_TYPE_P(arr) == IS_OBJECT && zephir_instance_of_ev((zval *)arr, (const zend_class_entry *)zend_ce_arrayaccess))) { zend_long ZEPHIR_LAST_CALL_STATUS; zval exist, offset; @@ -13292,7 +13292,7 @@ static PHP_METHOD(Phalcon_Cache, setMultiple) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(values), _2, _3, _0) { ZEPHIR_INIT_NVAR(&key); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&key, _3); } else { ZVAL_LONG(&key, _2); @@ -13714,7 +13714,7 @@ static PHP_METHOD(Phalcon_Collection, init) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _2, _3, _0) { ZEPHIR_INIT_NVAR(&key); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&key, _3); } else { ZVAL_LONG(&key, _2); @@ -14057,7 +14057,7 @@ zend_object *zephir_init_properties_Phalcon_Collection(zend_class_entry *class_t ZVAL_UNDEF(&_3$$4); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -14310,7 +14310,7 @@ static PHP_METHOD(Phalcon_Config, toArray) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _3, _4, _1) { ZEPHIR_INIT_NVAR(&key); - if (_4 != NULL) { + if (_4 != NULL) { ZVAL_STR_COPY(&key, _4); } else { ZVAL_LONG(&key, _3); @@ -14397,7 +14397,7 @@ static PHP_METHOD(Phalcon_Config, internalMerge) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&target), _2, _3, _0) { ZEPHIR_INIT_NVAR(&key); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&key, _3); } else { ZVAL_LONG(&key, _2); @@ -15824,7 +15824,7 @@ static PHP_METHOD(Phalcon_Crypt, initializeAvailableCiphers) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&availableCiphers), _2, _3, _0) { ZEPHIR_INIT_NVAR(&i); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&i, _3); } else { ZVAL_LONG(&i, _2); @@ -16300,7 +16300,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Debug) { zend_declare_property_bool(phalcon_debug_ce, SL("showFiles"), 1, ZEND_ACC_PROTECTED TSRMLS_CC); - zend_declare_property_string(phalcon_debug_ce, SL("uri"), "https://assets.phalconphp.com/debug/4.0.x/", ZEND_ACC_PROTECTED TSRMLS_CC); + zend_declare_property_string(phalcon_debug_ce, SL("uri"), "https://assets.phalcon.io/debug/4.0.x/", ZEND_ACC_PROTECTED TSRMLS_CC); phalcon_debug_ce->create_object = zephir_init_properties_Phalcon_Debug; return SUCCESS; @@ -16451,7 +16451,7 @@ static PHP_METHOD(Phalcon_Debug, getVersion) { ZEPHIR_CALL_CE_STATIC(&_3, phalcon_version_ce, "getpart", &_1, 0, &_2); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_4); - ZEPHIR_CONCAT_SVSVS(&_4, "https://docs.phalconphp.com/", &_0, ".", &_3, "/en/"); + ZEPHIR_CONCAT_SVSVS(&_4, "https://docs.phalcon.io/", &_0, ".", &_3, "/en/"); zephir_array_update_string(&link, SL("action"), &_4, PH_COPY | PH_SEPARATE); ZEPHIR_CALL_CE_STATIC(&_5, phalcon_version_ce, "get", &_6, 0); zephir_check_call_status(); @@ -16724,7 +16724,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_11$$5), _14$$5, _15$$5, _12$$5) { ZEPHIR_INIT_NVAR(&n); - if (_15$$5 != NULL) { + if (_15$$5 != NULL) { ZVAL_STR_COPY(&n, _15$$5); } else { ZVAL_LONG(&n, _14$$5); @@ -16772,7 +16772,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_REQUEST), _25$$5, _26$$5, _23$$5) { ZEPHIR_INIT_NVAR(&keyRequest); - if (_26$$5 != NULL) { + if (_26$$5 != NULL) { ZVAL_STR_COPY(&keyRequest, _26$$5); } else { ZVAL_LONG(&keyRequest, _25$$5); @@ -16844,7 +16844,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_SERVER), _40$$5, _41$$5, _38$$5) { ZEPHIR_INIT_NVAR(&keyServer); - if (_41$$5 != NULL) { + if (_41$$5 != NULL) { ZVAL_STR_COPY(&keyServer, _41$$5); } else { ZVAL_LONG(&keyServer, _40$$5); @@ -16899,7 +16899,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_49$$5), _52$$5, _53$$5, _50$$5) { ZEPHIR_INIT_NVAR(&keyFile); - if (_53$$5 != NULL) { + if (_53$$5 != NULL) { ZVAL_STR_COPY(&keyFile, _53$$5); } else { ZVAL_LONG(&keyFile, _52$$5); @@ -16948,7 +16948,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&dataVars), _60$$23, _61$$23, _58$$23) { ZEPHIR_INIT_NVAR(&keyVar); - if (_61$$23 != NULL) { + if (_61$$23 != NULL) { ZVAL_STR_COPY(&keyVar, _61$$23); } else { ZVAL_LONG(&keyVar, _60$$23); @@ -17362,7 +17362,7 @@ static PHP_METHOD(Phalcon_Debug, getArrayDump) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&argument), _3, _4, _1) { ZEPHIR_INIT_NVAR(&k); - if (_4 != NULL) { + if (_4 != NULL) { ZVAL_STR_COPY(&k, _4); } else { ZVAL_LONG(&k, _3); @@ -17619,7 +17619,7 @@ static PHP_METHOD(Phalcon_Debug, showTraceItem) { ZEPHIR_INIT_VAR(&prepareUriClass); zephir_fast_str_replace(&prepareUriClass, &_6$$4, &_7$$4, &className TSRMLS_CC); ZEPHIR_INIT_VAR(&classNameWithLink); - ZEPHIR_CONCAT_SVSVS(&classNameWithLink, "", &className, ""); + ZEPHIR_CONCAT_SVSVS(&classNameWithLink, "", &className, ""); } else { ZEPHIR_INIT_VAR(&classReflection); object_init_ex(&classReflection, zephir_get_internal_ce(SL("reflectionclass"))); @@ -17838,7 +17838,7 @@ zend_object *zephir_init_properties_Phalcon_Debug(zend_class_entry *class_type T ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -18405,7 +18405,7 @@ static PHP_METHOD(Phalcon_Di, loadFromConfig) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&services), _2, _3, _0) { ZEPHIR_INIT_NVAR(&name); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&name, _3); } else { ZVAL_LONG(&name, _2); @@ -19289,7 +19289,7 @@ static PHP_METHOD(Phalcon_Kernel, preComputeHashKey) { } - + { @@ -19297,7 +19297,7 @@ static PHP_METHOD(Phalcon_Kernel, preComputeHashKey) { } - + ZEPHIR_MM_RESTORE(); } @@ -19487,7 +19487,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&namespaces), _5, _6, _3) { ZEPHIR_INIT_NVAR(&nsPrefix); - if (_6 != NULL) { + if (_6 != NULL) { ZVAL_STR_COPY(&nsPrefix, _6); } else { ZVAL_LONG(&nsPrefix, _5); @@ -20460,7 +20460,7 @@ static PHP_METHOD(Phalcon_Loader, registerNamespaces) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&preparedNamespaces), _2$$3, _3$$3, _0$$3) { ZEPHIR_INIT_NVAR(&name); - if (_3$$3 != NULL) { + if (_3$$3 != NULL) { ZVAL_STR_COPY(&name, _3$$3); } else { ZVAL_LONG(&name, _2$$3); @@ -20652,7 +20652,7 @@ static PHP_METHOD(Phalcon_Loader, prepareNamespace) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&namespaceName), _2, _3, _0) { ZEPHIR_INIT_NVAR(&name); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&name, _3); } else { ZVAL_LONG(&name, _2); @@ -20718,7 +20718,7 @@ zend_object *zephir_init_properties_Phalcon_Loader(zend_class_entry *class_type ZVAL_UNDEF(&_5$$5); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -21498,7 +21498,7 @@ static PHP_METHOD(Phalcon_Security, checkHash) { zephir_concat_self(&cryptedHash, &passwordHash TSRMLS_CC); sum = (cryptedLength - passwordLength); for (_3 = 0; _3 < Z_STRLEN_P(&passwordHash); _3++) { - i = _3; + i = _3; ch = ZEPHIR_STRING_OFFSET(&passwordHash, _3); _4$$4 = ZEPHIR_STRING_OFFSET(&cryptedHash, i); sum = (sum | ((_4$$4 ^ ch))); @@ -23795,7 +23795,7 @@ static PHP_METHOD(Phalcon_Tag, renderAttributes) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&order), _2, _3, _0) { ZEPHIR_INIT_NVAR(&key); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&key, _3); } else { ZVAL_LONG(&key, _2); @@ -23835,7 +23835,7 @@ static PHP_METHOD(Phalcon_Tag, renderAttributes) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&attributes), _6, _7, _4) { ZEPHIR_INIT_NVAR(&key); - if (_7 != NULL) { + if (_7 != NULL) { ZVAL_STR_COPY(&key, _7); } else { ZVAL_LONG(&key, _6); @@ -23878,7 +23878,7 @@ static PHP_METHOD(Phalcon_Tag, renderAttributes) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&attrs), _11, _12, _9) { ZEPHIR_INIT_NVAR(&key); - if (_12 != NULL) { + if (_12 != NULL) { ZVAL_STR_COPY(&key, _12); } else { ZVAL_LONG(&key, _11); @@ -26741,7 +26741,7 @@ static PHP_METHOD(Phalcon_Validation, validate) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&validatorData), _4, _5, _2) { ZEPHIR_INIT_NVAR(&field); - if (_5 != NULL) { + if (_5 != NULL) { ZVAL_STR_COPY(&field, _5); } else { ZVAL_LONG(&field, _4); @@ -27104,7 +27104,7 @@ zend_object *zephir_init_properties_Phalcon_Validation(zend_class_entry *class_t ZVAL_UNDEF(&_3$$4); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -28017,7 +28017,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, __construct) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&iniConfig), _5, _6, _3) { ZEPHIR_INIT_NVAR(§ion); - if (_6 != NULL) { + if (_6 != NULL) { ZVAL_STR_COPY(§ion, _6); } else { ZVAL_LONG(§ion, _5); @@ -28032,7 +28032,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, __construct) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&directives), _9$$6, _10$$6, _7$$6) { ZEPHIR_INIT_NVAR(&path); - if (_10$$6 != NULL) { + if (_10$$6 != NULL) { ZVAL_STR_COPY(&path, _10$$6); } else { ZVAL_LONG(&path, _9$$6); @@ -28102,7 +28102,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, __construct) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&directives), _22$$12, _23$$12, _20$$12) { ZEPHIR_INIT_NVAR(&path); - if (_23$$12 != NULL) { + if (_23$$12 != NULL) { ZVAL_STR_COPY(&path, _23$$12); } else { ZVAL_LONG(&path, _22$$12); @@ -28199,7 +28199,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, cast) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(ini), _2$$3, _3$$3, _0$$3) { ZEPHIR_INIT_NVAR(&key); - if (_3$$3 != NULL) { + if (_3$$3 != NULL) { ZVAL_STR_COPY(&key, _3$$3); } else { ZVAL_LONG(&key, _2$$3); @@ -29190,7 +29190,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, escape) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&parts), _10, _11, _8) { ZEPHIR_INIT_NVAR(&key); - if (_11 != NULL) { + if (_11 != NULL) { ZVAL_STR_COPY(&key, _11); } else { ZVAL_LONG(&key, _10); @@ -39620,7 +39620,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_AbstractAdapter, describeIndexes) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&indexes), _10, _11, _8) { ZEPHIR_INIT_NVAR(&name); - if (_11 != NULL) { + if (_11 != NULL) { ZVAL_STR_COPY(&name, _11); } else { ZVAL_LONG(&name, _10); @@ -39851,7 +39851,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_AbstractAdapter, describeReferences) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&references), _22, _23, _20) { ZEPHIR_INIT_NVAR(&name); - if (_23 != NULL) { + if (_23 != NULL) { ZVAL_STR_COPY(&name, _23); } else { ZVAL_LONG(&name, _22); @@ -40716,7 +40716,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_AbstractAdapter, insert) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&values), _4, _5, _2) { ZEPHIR_INIT_NVAR(&position); - if (_5 != NULL) { + if (_5 != NULL) { ZVAL_STR_COPY(&position, _5); } else { ZVAL_LONG(&position, _4); @@ -40906,7 +40906,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_AbstractAdapter, insertAsDict) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(data), _3, _4, _1) { ZEPHIR_INIT_NVAR(&field); - if (_4 != NULL) { + if (_4 != NULL) { ZVAL_STR_COPY(&field, _4); } else { ZVAL_LONG(&field, _3); @@ -41585,7 +41585,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_AbstractAdapter, update) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(values), _2, _3, _0) { ZEPHIR_INIT_NVAR(&position); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&position, _3); } else { ZVAL_LONG(&position, _2); @@ -41785,7 +41785,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_AbstractAdapter, updateAsDict) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(data), _3, _4, _1) { ZEPHIR_INIT_NVAR(&field); - if (_4 != NULL) { + if (_4 != NULL) { ZVAL_STR_COPY(&field, _4); } else { ZVAL_LONG(&field, _3); @@ -41896,7 +41896,7 @@ zend_object *zephir_init_properties_Phalcon_Db_Adapter_AbstractAdapter(zend_clas ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -42543,7 +42543,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_AbstractPdo, connect) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&dsnAttributesMap), _6, _7, _4) { ZEPHIR_INIT_NVAR(&key); - if (_7 != NULL) { + if (_7 != NULL) { ZVAL_STR_COPY(&key, _7); } else { ZVAL_LONG(&key, _6); @@ -42888,7 +42888,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_AbstractPdo, executePrepared) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&placeholders), _2, _3, _0) { ZEPHIR_INIT_NVAR(&wildcard); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&wildcard, _3); } else { ZVAL_LONG(&wildcard, _2); @@ -42965,7 +42965,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_AbstractPdo, executePrepared) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&castValue), _12$$22, _13$$22, _10$$22) { ZEPHIR_INIT_NVAR(&position); - if (_13$$22 != NULL) { + if (_13$$22 != NULL) { ZVAL_STR_COPY(&position, _13$$22); } else { ZVAL_LONG(&position, _12$$22); @@ -43025,7 +43025,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_AbstractPdo, executePrepared) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&value), _20$$31, _21$$31, _18$$31) { ZEPHIR_INIT_NVAR(&position); - if (_21$$31 != NULL) { + if (_21$$31 != NULL) { ZVAL_STR_COPY(&position, _21$$31); } else { ZVAL_LONG(&position, _20$$31); @@ -43146,7 +43146,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_AbstractPdo, executePrepared) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&castValue), _30$$53, _31$$53, _28$$53) { ZEPHIR_INIT_NVAR(&position); - if (_31$$53 != NULL) { + if (_31$$53 != NULL) { ZVAL_STR_COPY(&position, _31$$53); } else { ZVAL_LONG(&position, _30$$53); @@ -43206,7 +43206,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_AbstractPdo, executePrepared) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&value), _38$$62, _39$$62, _36$$62) { ZEPHIR_INIT_NVAR(&position); - if (_39$$62 != NULL) { + if (_39$$62 != NULL) { ZVAL_STR_COPY(&position, _39$$62); } else { ZVAL_LONG(&position, _38$$62); @@ -44552,7 +44552,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeIndexes) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&indexes), _24, _25, _22) { ZEPHIR_INIT_NVAR(&name); - if (_25 != NULL) { + if (_25 != NULL) { ZVAL_STR_COPY(&name, _25); } else { ZVAL_LONG(&name, _24); @@ -44817,7 +44817,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeReferences) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&references), _26, _27, _24) { ZEPHIR_INIT_NVAR(&name); - if (_27 != NULL) { + if (_27 != NULL) { ZVAL_STR_COPY(&name, _27); } else { ZVAL_LONG(&name, _26); @@ -46137,7 +46137,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeReferences) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&references), _26, _27, _24) { ZEPHIR_INIT_NVAR(&name); - if (_27 != NULL) { + if (_27 != NULL) { ZVAL_STR_COPY(&name, _27); } else { ZVAL_LONG(&name, _26); @@ -47259,7 +47259,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeIndexes) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&indexes), _45, _46, _43) { ZEPHIR_INIT_NVAR(&name); - if (_46 != NULL) { + if (_46 != NULL) { ZVAL_STR_COPY(&name, _46); } else { ZVAL_LONG(&name, _45); @@ -47399,7 +47399,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeReferences) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_0), _6, _7, _4) { ZEPHIR_INIT_NVAR(&number); - if (_7 != NULL) { + if (_7 != NULL) { ZVAL_STR_COPY(&number, _7); } else { ZVAL_LONG(&number, _6); @@ -47505,7 +47505,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeReferences) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&references), _24, _25, _22) { ZEPHIR_INIT_NVAR(&name); - if (_25 != NULL) { + if (_25 != NULL) { ZVAL_STR_COPY(&name, _25); } else { ZVAL_LONG(&name, _24); @@ -49669,7 +49669,7 @@ static PHP_METHOD(Phalcon_Http_Request, getHeaders) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&server), _2, _3, _0) { ZEPHIR_INIT_NVAR(&name); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&name, _3); } else { ZVAL_LONG(&name, _2); @@ -50574,7 +50574,7 @@ static PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&superFiles), _2$$3, _3$$3, _0$$3) { ZEPHIR_INIT_NVAR(&prefix); - if (_3$$3 != NULL) { + if (_3$$3 != NULL) { ZVAL_STR_COPY(&prefix, _3$$3); } else { ZVAL_LONG(&prefix, _2$$3); @@ -52703,7 +52703,7 @@ static PHP_METHOD(Phalcon_Http_Request, smoothFiles) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&names), _2, _3, _0) { ZEPHIR_INIT_NVAR(&idx); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&idx, _3); } else { ZVAL_LONG(&idx, _2); @@ -52920,7 +52920,7 @@ zend_object *zephir_init_properties_Phalcon_Http_Request(zend_class_entry *class ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -53995,7 +53995,7 @@ static PHP_METHOD(Phalcon_Http_Response, setHeaders) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _2, _3, _0) { ZEPHIR_INIT_NVAR(&name); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&name, _3); } else { ZVAL_LONG(&name, _2); @@ -54193,7 +54193,7 @@ static PHP_METHOD(Phalcon_Http_Response, setStatusCode) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(¤tHeadersRaw), _3, _4, _1) { ZEPHIR_INIT_NVAR(&key); - if (_4 != NULL) { + if (_4 != NULL) { ZVAL_STR_COPY(&key, _4); } else { ZVAL_LONG(&key, _3); @@ -55197,7 +55197,7 @@ static PHP_METHOD(Phalcon_Http_Message_AbstractMessage, populateHeaderCollection ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&headers), _2, _3, _0) { ZEPHIR_INIT_NVAR(&name); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&name, _3); } else { ZVAL_LONG(&name, _2); @@ -56752,7 +56752,7 @@ zend_object *zephir_init_properties_Phalcon_Http_Message_ServerRequest(zend_clas ZVAL_UNDEF(&_7$$6); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -57530,7 +57530,7 @@ static PHP_METHOD(Phalcon_Http_Message_ServerRequestFactory, parseHeaders) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&serverArray), _2, _3, _0) { ZEPHIR_INIT_NVAR(&key); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&key, _3); } else { ZVAL_LONG(&key, _2); @@ -57776,7 +57776,7 @@ static PHP_METHOD(Phalcon_Http_Message_ServerRequestFactory, parseUploadedFiles) ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&files), _2, _3, _0) { ZEPHIR_INIT_NVAR(&key); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&key, _3); } else { ZVAL_LONG(&key, _2); @@ -60073,7 +60073,7 @@ static PHP_METHOD(Phalcon_Http_Message_Uri, filterPath) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&parts), _4, _5, _2) { ZEPHIR_INIT_NVAR(&key); - if (_5 != NULL) { + if (_5 != NULL) { ZVAL_STR_COPY(&key, _5); } else { ZVAL_LONG(&key, _4); @@ -60212,7 +60212,7 @@ static PHP_METHOD(Phalcon_Http_Message_Uri, filterQuery) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&parts), _5, _6, _3) { ZEPHIR_INIT_NVAR(&index); - if (_6 != NULL) { + if (_6 != NULL) { ZVAL_STR_COPY(&index, _6); } else { ZVAL_LONG(&index, _5); @@ -61631,7 +61631,7 @@ zend_object *zephir_init_properties_Phalcon_Http_Response_Cookies(zend_class_ent ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -61853,7 +61853,7 @@ static PHP_METHOD(Phalcon_Http_Response_Headers, send) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_1), _4, _5, _2) { ZEPHIR_INIT_NVAR(&header); - if (_5 != NULL) { + if (_5 != NULL) { ZVAL_STR_COPY(&header, _5); } else { ZVAL_LONG(&header, _4); @@ -61992,7 +61992,7 @@ zend_object *zephir_init_properties_Phalcon_Http_Response_Headers(zend_class_ent ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -62326,7 +62326,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, variables) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_0), _3, _4, _1) { ZEPHIR_INIT_NVAR(&key); - if (_4 != NULL) { + if (_4 != NULL) { ZVAL_STR_COPY(&key, _4); } else { ZVAL_LONG(&key, _3); @@ -62612,7 +62612,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(variable), _6$$4, _7$$4, _4$$4) { ZEPHIR_INIT_NVAR(&key); - if (_7$$4 != NULL) { + if (_7$$4 != NULL) { ZVAL_STR_COPY(&key, _7$$4); } else { ZVAL_LONG(&key, _6$$4); @@ -62783,7 +62783,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_46$$12), _49$$12, _50$$12, _47$$12) { ZEPHIR_INIT_NVAR(&key); - if (_50$$12 != NULL) { + if (_50$$12 != NULL) { ZVAL_STR_COPY(&key, _50$$12); } else { ZVAL_LONG(&key, _49$$12); @@ -63273,7 +63273,7 @@ zend_object *zephir_init_properties_Phalcon_Debug_Dump(zend_class_entry *class_t ZVAL_UNDEF(&_3$$4); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -63529,7 +63529,7 @@ zend_object *zephir_init_properties_Phalcon_Application_AbstractApplication(zend ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -63898,7 +63898,7 @@ static PHP_METHOD(Phalcon_Filter_Filter, sanitize) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(sanitizers), _2$$3, _3$$3, _0$$3) { ZEPHIR_INIT_NVAR(&sanitizerKey); - if (_3$$3 != NULL) { + if (_3$$3 != NULL) { ZVAL_STR_COPY(&sanitizerKey, _3$$3); } else { ZVAL_LONG(&sanitizerKey, _2$$3); @@ -64045,7 +64045,7 @@ static PHP_METHOD(Phalcon_Filter_Filter, init) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&mapper), _2, _3, _0) { ZEPHIR_INIT_NVAR(&name); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&name, _3); } else { ZVAL_LONG(&name, _2); @@ -64122,7 +64122,7 @@ static PHP_METHOD(Phalcon_Filter_Filter, processArrayValues) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&values), _2, _3, _0) { ZEPHIR_INIT_NVAR(&itemKey); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&itemKey, _3); } else { ZVAL_LONG(&itemKey, _2); @@ -64226,7 +64226,7 @@ zend_object *zephir_init_properties_Phalcon_Filter_Filter(zend_class_entry *clas ZVAL_UNDEF(&_3$$4); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -66451,7 +66451,7 @@ static PHP_METHOD(Phalcon_Firewall_Adapter_Acl, handleDispatcher) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&boundModels), _32$$19, _33$$19, _30$$19) { ZEPHIR_INIT_NVAR(&boundModelKey); - if (_33$$19 != NULL) { + if (_33$$19 != NULL) { ZVAL_STR_COPY(&boundModelKey, _33$$19); } else { ZVAL_LONG(&boundModelKey, _32$$19); @@ -68015,7 +68015,7 @@ static PHP_METHOD(Phalcon_Firewall_Adapter_Micro_Acl, handleRouter) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&boundModels), _22$$19, _23$$19, _20$$19) { ZEPHIR_INIT_NVAR(&boundModelKey); - if (_23$$19 != NULL) { + if (_23$$19 != NULL) { ZVAL_STR_COPY(&boundModelKey, _23$$19); } else { ZVAL_LONG(&boundModelKey, _22$$19); @@ -68815,7 +68815,7 @@ static PHP_METHOD(Phalcon_Html_Breadcrumbs, render) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&elements), _3, _4, _1) { ZEPHIR_INIT_NVAR(&url); - if (_4 != NULL) { + if (_4 != NULL) { ZVAL_STR_COPY(&url, _4); } else { ZVAL_LONG(&url, _3); @@ -68920,7 +68920,7 @@ zend_object *zephir_init_properties_Phalcon_Html_Breadcrumbs(zend_class_entry *c ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -71745,7 +71745,7 @@ static PHP_METHOD(Phalcon_Html_Tag, renderAttributes) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&attrs), _3, _4, _1) { ZEPHIR_INIT_NVAR(&key); - if (_4 != NULL) { + if (_4 != NULL) { ZVAL_STR_COPY(&key, _4); } else { ZVAL_LONG(&key, _3); @@ -72070,7 +72070,7 @@ static PHP_METHOD(Phalcon_Html_Tag, renderSelectArray) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&options), _2, _3, _0) { ZEPHIR_INIT_NVAR(&optionValue); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&optionValue, _3); } else { ZVAL_LONG(&optionValue, _2); @@ -72323,7 +72323,7 @@ zend_object *zephir_init_properties_Phalcon_Html_Tag(zend_class_entry *class_typ ZVAL_UNDEF(&_5$$5); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -72703,7 +72703,7 @@ static PHP_METHOD(Phalcon_Html_Helper_AbstractHelper, renderAttributes) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&attributes), _2, _3, _0) { ZEPHIR_INIT_NVAR(&key); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&key, _3); } else { ZVAL_LONG(&key, _2); @@ -73632,7 +73632,7 @@ static PHP_METHOD(Phalcon_Helper_Arr, arrayToObject) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&collection), _2, _3, _0) { ZEPHIR_INIT_NVAR(&key); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&key, _3); } else { ZVAL_LONG(&key, _2); @@ -76170,7 +76170,7 @@ static PHP_METHOD(Phalcon_Factory_AbstractFactory, init) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&adapters), _3, _4, _1) { ZEPHIR_INIT_NVAR(&name); - if (_4 != NULL) { + if (_4 != NULL) { ZVAL_STR_COPY(&name, _4); } else { ZVAL_LONG(&name, _3); @@ -76217,7 +76217,7 @@ zend_object *zephir_init_properties_Phalcon_Factory_AbstractFactory(zend_class_e ZVAL_UNDEF(&_3$$4); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -76790,7 +76790,7 @@ zend_object *zephir_init_properties_Phalcon_Paginator_Repository(zend_class_entr ZVAL_UNDEF(&_3$$4); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -78317,7 +78317,7 @@ zend_object *zephir_init_properties_Phalcon_Messages_Message(zend_class_entry *c ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -79814,7 +79814,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(¶mCalls), _3$$10, _4$$10, _1$$10) { ZEPHIR_INIT_NVAR(&methodPosition); - if (_4$$10 != NULL) { + if (_4$$10 != NULL) { ZVAL_STR_COPY(&methodPosition, _4$$10); } else { ZVAL_LONG(&methodPosition, _3$$10); @@ -79962,7 +79962,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(¶mCalls), _27$$25, _28$$25, _25$$25) { ZEPHIR_INIT_NVAR(&propertyPosition); - if (_28$$25 != NULL) { + if (_28$$25 != NULL) { ZVAL_STR_COPY(&propertyPosition, _28$$25); } else { ZVAL_LONG(&propertyPosition, _27$$25); @@ -80242,7 +80242,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, buildParameters) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&arguments), _2, _3, _0) { ZEPHIR_INIT_NVAR(&position); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&position, _3); } else { ZVAL_LONG(&position, _2); @@ -81087,7 +81087,7 @@ zend_object *zephir_init_properties_Phalcon_Flash_AbstractFlash(zend_class_entry ZVAL_UNDEF(&_3$$4); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -81435,7 +81435,7 @@ static PHP_METHOD(Phalcon_Flash_Session, output) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&messages), _3, _4, _1) { ZEPHIR_INIT_NVAR(&type); - if (_4 != NULL) { + if (_4 != NULL) { ZVAL_STR_COPY(&type, _4); } else { ZVAL_LONG(&type, _3); @@ -82546,7 +82546,7 @@ zend_object *zephir_init_properties_Phalcon_Session_Manager(zend_class_entry *cl ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -83006,7 +83006,7 @@ zend_object *zephir_init_properties_Phalcon_Session_Adapter_Noop(zend_class_entr ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -84331,7 +84331,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Annotations_Exception) { ** and nonterminals. "int" is used otherwise. ** AANOCODE is a number of type AACODETYPE which corresponds ** to no legal terminal or nonterminal number. This -** number is used to fill in empty slots of the hash +** number is used to fill in empty slots of the hash ** table. ** AAFALLBACK If defined, this indicates that one or more tokens ** have fall-back values which should be used if the @@ -84340,7 +84340,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Annotations_Exception) { ** and nonterminal numbers. "unsigned char" is ** used if there are fewer than 250 rules and ** states combined. "int" is used otherwise. -** phannot_TOKENTYPE is the data type used for minor tokens given +** phannot_TOKENTYPE is the data type used for minor tokens given ** directly to the parser from the tokenizer. ** AAMINORTYPE is the data type used for all minor tokens. ** This is typically a union of many types, one of @@ -84381,7 +84381,7 @@ typedef union { /* Next are that tables used to determine what action to take based on the ** current state and lookahead token. These tables are used to implement ** functions that take a state number and lookahead value and return an -** action integer. +** action integer. ** ** Suppose the action integer is N. Then the action is determined as ** follows @@ -84406,7 +84406,7 @@ typedef union { ** If the index value aa_shift_ofst[S]+X is out of range or if the value ** aa_lookahead[aa_shift_ofst[S]+X] is not equal to X or if aa_shift_ofst[S] ** is equal to AA_SHIFT_USE_DFLT, it means that the action is not in the table -** and that aa_default[S] should be used instead. +** and that aa_default[S] should be used instead. ** ** The formula above is for computing the action when the lookahead is ** a terminal symbol. If the lookahead is a non-terminal (as occurs after @@ -84471,7 +84471,7 @@ static AAACTIONTYPE aa_default[] = { /* The next table maps tokens into fallback tokens. If a construct ** like the following: -** +** ** %fallback ID X Y Z. ** ** appears in the grammer, then ID becomes a fallback token for X, Y, @@ -84532,14 +84532,14 @@ static void phannot_Trace(FILE *TraceFILE, char *zTracePrompt){ #ifndef NDEBUG /* For tracing shifts, the names of all terminals and nonterminals ** are required. The following table supplies these names */ -static const char *aaTokenName[] = { - "$", "COMMA", "AT", "IDENTIFIER", - "PARENTHESES_OPEN", "PARENTHESES_CLOSE", "STRING", "EQUALS", - "COLON", "INTEGER", "DOUBLE", "NULL", +static const char *aaTokenName[] = { + "$", "COMMA", "AT", "IDENTIFIER", + "PARENTHESES_OPEN", "PARENTHESES_CLOSE", "STRING", "EQUALS", + "COLON", "INTEGER", "DOUBLE", "NULL", "FALSE", "TRUE", "BRACKET_OPEN", "BRACKET_CLOSE", - "SBRACKET_OPEN", "SBRACKET_CLOSE", "error", "program", + "SBRACKET_OPEN", "SBRACKET_CLOSE", "error", "program", "annotation_language", "annotation_list", "annotation", "argument_list", - "argument_item", "expr", "array", + "argument_item", "expr", "array", }; #endif /* NDEBUG */ @@ -84606,7 +84606,7 @@ static void aa_destructor(AACODETYPE aamajor, AAMINORTYPE *aapminor){ /* Here is inserted the actions which take place when a ** terminal or non-terminal is destroyed. This can happen ** when the symbol is popped from the stack during a - ** reduce or during error processing or when a parser is + ** reduce or during error processing or when a parser is ** being destroyed before it is finished parsing. ** ** Note: during a reduce, the only symbols destroyed are those @@ -84691,7 +84691,7 @@ static int aa_find_shift_action( ){ int i; int stateno = pParser->aastack[pParser->aaidx].stateno; - + /* if( pParser->aaidx<0 ) return AA_NO_ACTION; */ i = aa_shift_ofst[stateno]; if( i==AA_SHIFT_USE_DFLT ){ @@ -84727,7 +84727,7 @@ static int aa_find_reduce_action( ){ int i; int stateno = pParser->aastack[pParser->aaidx].stateno; - + i = aa_reduce_ofst[stateno]; if( i==AA_REDUCE_USE_DFLT ){ return aa_default[stateno]; @@ -84829,7 +84829,7 @@ static void aa_reduce( phannot_ARG_FETCH; aamsp = &aapParser->aastack[aapParser->aaidx]; #ifndef NDEBUG - if( aaTraceFILE && aaruleno>=0 + if( aaTraceFILE && aaruleno>=0 && aarulenoaastack[pParser->aaidx].stateno; - + /* if( pParser->aaidx<0 ) return AA_NO_ACTION; */ i = aa_shift_ofst[stateno]; if( i==AA_SHIFT_USE_DFLT ){ @@ -85676,7 +85676,7 @@ static int aa_find_reduce_action( ){ int i; int stateno = pParser->aastack[pParser->aaidx].stateno; - + i = aa_reduce_ofst[stateno]; if( i==AA_REDUCE_USE_DFLT ){ return aa_default[stateno]; @@ -85778,7 +85778,7 @@ static void aa_reduce( phannot_ARG_FETCH; aamsp = &aapParser->aastack[aapParser->aaidx]; #ifndef NDEBUG - if( aaTraceFILE && aaruleno>=0 + if( aaTraceFILE && aaruleno>=0 && aarulenoppstack[pParser->ppidx].stateno; - + /* if( pParser->ppidx<0 ) return PP_NO_ACTION; */ i = pp_shift_ofst[stateno]; if( i==PP_SHIFT_USE_DFLT ){ @@ -138403,7 +138403,7 @@ static int pp_find_reduce_action( ){ int i; int stateno = pParser->ppstack[pParser->ppidx].stateno; - + i = pp_reduce_ofst[stateno]; if( i==PP_REDUCE_USE_DFLT ){ return pp_default[stateno]; @@ -138641,7 +138641,7 @@ static void pp_reduce( phql_ARG_FETCH; ppmsp = &pppParser->ppstack[pppParser->ppidx]; #ifndef NDEBUG - if( ppTraceFILE && ppruleno>=0 + if( ppTraceFILE && ppruleno>=0 && pprulenoppstack[pParser->ppidx].stateno; - + /* if( pParser->ppidx<0 ) return PP_NO_ACTION; */ i = pp_shift_ofst[stateno]; if( i==PP_SHIFT_USE_DFLT ){ @@ -140778,7 +140778,7 @@ static int pp_find_reduce_action( ){ int i; int stateno = pParser->ppstack[pParser->ppidx].stateno; - + i = pp_reduce_ofst[stateno]; if( i==PP_REDUCE_USE_DFLT ){ return pp_default[stateno]; @@ -141016,7 +141016,7 @@ static void pp_reduce( phql_ARG_FETCH; ppmsp = &pppParser->ppstack[pppParser->ppidx]; #ifndef NDEBUG - if( ppTraceFILE && ppruleno>=0 + if( ppTraceFILE && ppruleno>=0 && pprulenovvstack[pParser->vvidx].stateno; - + /* if( pParser->vvidx<0 ) return VV_NO_ACTION; */ i = vv_shift_ofst[stateno]; if( i==VV_SHIFT_USE_DFLT ){ @@ -160520,7 +160520,7 @@ static int vv_find_reduce_action( ){ int i; int stateno = pParser->vvstack[pParser->vvidx].stateno; - + i = vv_reduce_ofst[stateno]; if( i==VV_REDUCE_USE_DFLT ){ return vv_default[stateno]; @@ -160755,7 +160755,7 @@ static void vv_reduce( phvolt_ARG_FETCH; vvmsp = &vvpParser->vvstack[vvpParser->vvidx]; #ifndef NDEBUG - if( vvTraceFILE && vvruleno>=0 + if( vvTraceFILE && vvruleno>=0 && vvruleno + * (c) Phalcon Team * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. @@ -163062,7 +163062,7 @@ static int phvolt_internal_parse_view(zval **result, zval *view_code, zval *temp * * This file is part of the Phalcon Framework. * - * (c) Phalcon Team + * (c) Phalcon Team * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. @@ -163223,7 +163223,7 @@ static int phvolt_get_token(phvolt_scanner_state *s, phvolt_scanner_token *token } else { - + { VVCTYPE vvch; unsigned int vvaccept = 0; @@ -170519,7 +170519,7 @@ zend_object *zephir_init_properties_Phalcon_Storage_Adapter_Apcu(zend_class_entr ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -171074,7 +171074,7 @@ zend_object *zephir_init_properties_Phalcon_Storage_Adapter_Libmemcached(zend_cl ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -171502,7 +171502,7 @@ zend_object *zephir_init_properties_Phalcon_Storage_Adapter_Memory(zend_class_en ZVAL_UNDEF(&_3$$4); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -172100,7 +172100,7 @@ zend_object *zephir_init_properties_Phalcon_Storage_Adapter_Redis(zend_class_ent ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -172900,7 +172900,7 @@ zend_object *zephir_init_properties_Phalcon_Storage_Adapter_Stream(zend_class_en ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -173953,7 +173953,7 @@ zend_object *zephir_init_properties_Phalcon_Translate_InterpolatorFactory(zend_c ZVAL_UNDEF(&_3$$4); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -174209,7 +174209,7 @@ static PHP_METHOD(Phalcon_Translate_Interpolator_AssociativeArray, replacePlaceh ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&placeholders), _2, _3, _0) { ZEPHIR_INIT_NVAR(&key); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&key, _3); } else { ZVAL_LONG(&key, _2); @@ -174844,7 +174844,7 @@ zend_object *zephir_init_properties_Phalcon_Translate_Adapter_Csv(zend_class_ent ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -175185,7 +175185,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDirectory) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(directory), _2$$4, _3$$4, _0$$4) { ZEPHIR_INIT_NVAR(&key); - if (_3$$4 != NULL) { + if (_3$$4 != NULL) { ZVAL_STR_COPY(&key, _3$$4); } else { ZVAL_LONG(&key, _2$$4); @@ -175796,7 +175796,7 @@ static PHP_METHOD(Phalcon_Validation_AbstractValidator, setTemplates) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&templates), _3, _4, _1) { ZEPHIR_INIT_NVAR(&field); - if (_4 != NULL) { + if (_4 != NULL) { ZVAL_STR_COPY(&field, _4); } else { ZVAL_LONG(&field, _3); @@ -176137,7 +176137,7 @@ zend_object *zephir_init_properties_Phalcon_Validation_AbstractValidator(zend_cl ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -176273,7 +176273,7 @@ zend_object *zephir_init_properties_Phalcon_Validation_AbstractValidatorComposit ZVAL_UNDEF(&_3$$4); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -177054,7 +177054,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_3), _6, _7, _4) { ZEPHIR_INIT_NVAR(&position); - if (_7 != NULL) { + if (_7 != NULL) { ZVAL_STR_COPY(&position, _7); } else { ZVAL_LONG(&position, _6); @@ -177546,7 +177546,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, __construct) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&options), _2, _3, _0) { ZEPHIR_INIT_NVAR(&key); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&key, _3); } else { ZVAL_LONG(&key, _2); @@ -178501,7 +178501,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, __construct) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&options), _2, _3, _0) { ZEPHIR_INIT_NVAR(&key); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&key, _3); } else { ZVAL_LONG(&key, _2); @@ -179464,7 +179464,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&except), _17$$7, _18$$7, _15$$7) { ZEPHIR_INIT_NVAR(&singleField); - if (_18$$7 != NULL) { + if (_18$$7 != NULL) { ZVAL_STR_COPY(&singleField, _18$$7); } else { ZVAL_LONG(&singleField, _17$$7); @@ -179864,7 +179864,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&except), _94$$38, _95$$38, _92$$38) { ZEPHIR_INIT_NVAR(&singleField); - if (_95$$38 != NULL) { + if (_95$$38 != NULL) { ZVAL_STR_COPY(&singleField, _95$$38); } else { ZVAL_LONG(&singleField, _94$$38); @@ -182318,7 +182318,7 @@ zend_object *zephir_init_properties_Phalcon_Cli_Console(zend_class_entry *class_ ZVAL_UNDEF(&_5$$5); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -182720,7 +182720,7 @@ zend_object *zephir_init_properties_Phalcon_Cli_Dispatcher(zend_class_entry *cla ZVAL_UNDEF(&_9$$7); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -183282,7 +183282,7 @@ static PHP_METHOD(Phalcon_Cli_Router, handle) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&paths), _7$$12, _8$$12, _5$$12) { ZEPHIR_INIT_NVAR(&part); - if (_8$$12 != NULL) { + if (_8$$12 != NULL) { ZVAL_STR_COPY(&part, _8$$12); } else { ZVAL_LONG(&part, _7$$12); @@ -183417,7 +183417,7 @@ static PHP_METHOD(Phalcon_Cli_Router, handle) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&paths), _20$$32, _21$$32, _18$$32) { ZEPHIR_INIT_NVAR(&part); - if (_21$$32 != NULL) { + if (_21$$32 != NULL) { ZVAL_STR_COPY(&part, _21$$32); } else { ZVAL_LONG(&part, _20$$32); @@ -183721,7 +183721,7 @@ zend_object *zephir_init_properties_Phalcon_Cli_Router(zend_class_entry *class_t ZVAL_UNDEF(&_3$$4); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -184246,7 +184246,7 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, extractNamedParams) { ZEPHIR_INIT_VAR(&route); ZVAL_STRING(&route, ""); for (_0 = 0; _0 < Z_STRLEN_P(&pattern); _0++) { - cursor = _0; + cursor = _0; ch = ZEPHIR_STRING_OFFSET(&pattern, _0); if (parenthesesCount == 0) { if (ch == '{') { @@ -184272,7 +184272,7 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, extractNamedParams) { zephir_get_strval(&_4$$10, &_3$$10); ZEPHIR_CPY_WRT(&item, &_4$$10); for (_5$$10 = 0; _5$$10 < Z_STRLEN_P(&item); _5$$10++) { - cursorVar = _5$$10; + cursorVar = _5$$10; ch = ZEPHIR_STRING_OFFSET(&item, _5$$10); if (ch == '\0') { break; @@ -186502,7 +186502,7 @@ zend_object *zephir_init_properties_Phalcon_Assets_Collection(zend_class_entry * ZVAL_UNDEF(&_7$$6); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -190477,7 +190477,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, allow) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_1$$4), _5$$4, _6$$4, _3$$4) { ZEPHIR_INIT_NVAR(&innerRoleName); - if (_6$$4 != NULL) { + if (_6$$4 != NULL) { ZVAL_STR_COPY(&innerRoleName, _6$$4); } else { ZVAL_LONG(&innerRoleName, _5$$4); @@ -190564,7 +190564,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, deny) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_2$$4), _6$$4, _7$$4, _4$$4) { ZEPHIR_INIT_NVAR(&innerRoleName); - if (_7$$4 != NULL) { + if (_7$$4 != NULL) { ZVAL_STR_COPY(&innerRoleName, _7$$4); } else { ZVAL_LONG(&innerRoleName, _6$$4); @@ -193249,7 +193249,7 @@ zend_object *zephir_init_properties_Phalcon_Dispatcher_AbstractDispatcher(zend_c ZVAL_UNDEF(&_7$$6); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -198344,7 +198344,7 @@ static PHP_METHOD(Phalcon_Tag_Select, optionsFromArray) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _2, _3, _0) { ZEPHIR_INIT_NVAR(&optionValue); - if (_3 != NULL) { + if (_3 != NULL) { ZVAL_STR_COPY(&optionValue, _3); } else { ZVAL_LONG(&optionValue, _2); @@ -198784,7 +198784,7 @@ static PHP_METHOD(Phalcon_Forms_Form, add) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_2$$4), _5$$4, _6$$4, _3$$4) { ZEPHIR_INIT_NVAR(&key); - if (_6$$4 != NULL) { + if (_6$$4 != NULL) { ZVAL_STR_COPY(&key, _6$$4); } else { ZVAL_LONG(&key, _5$$4); @@ -198899,7 +198899,7 @@ static PHP_METHOD(Phalcon_Forms_Form, bind) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _3, _4, _1) { ZEPHIR_INIT_NVAR(&key); - if (_4 != NULL) { + if (_4 != NULL) { ZVAL_STR_COPY(&key, _4); } else { ZVAL_LONG(&key, _3); @@ -200179,7 +200179,7 @@ zend_object *zephir_init_properties_Phalcon_Forms_Form(zend_class_entry *class_t ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -200335,7 +200335,7 @@ zend_object *zephir_init_properties_Phalcon_Forms_Manager(zend_class_entry *clas ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -201150,7 +201150,7 @@ zend_object *zephir_init_properties_Phalcon_Forms_Element_AbstractElement(zend_c ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - + { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); @@ -201722,7 +201722,7 @@ static PHP_METHOD(Phalcon_Forms_Element_Select, addOption) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(option), _2$$3, _3$$3, _0$$3) { ZEPHIR_INIT_NVAR(&key); - if (_3$$3 != NULL) { + if (_3$$3 != NULL) { ZVAL_STR_COPY(&key, _3$$3); } else { ZVAL_LONG(&key, _2$$3); @@ -202461,8 +202461,8 @@ ZEND_DECLARE_MODULE_GLOBALS(phalcon) PHP_INI_BEGIN() STD_PHP_INI_BOOLEAN("phalcon.db.escape_identifiers", "1", PHP_INI_ALL, OnUpdateBool, db.escape_identifiers, zend_phalcon_globals, phalcon_globals) STD_PHP_INI_BOOLEAN("phalcon.db.force_casting", "0", PHP_INI_ALL, OnUpdateBool, db.force_casting, zend_phalcon_globals, phalcon_globals) - - + + STD_PHP_INI_BOOLEAN("phalcon.orm.case_insensitive_column_map", "0", PHP_INI_ALL, OnUpdateBool, orm.case_insensitive_column_map, zend_phalcon_globals, phalcon_globals) STD_PHP_INI_BOOLEAN("phalcon.orm.cast_last_insert_id_to_int", "0", PHP_INI_ALL, OnUpdateBool, orm.cast_last_insert_id_to_int, zend_phalcon_globals, phalcon_globals) STD_PHP_INI_BOOLEAN("phalcon.orm.cast_on_hydrate", "0", PHP_INI_ALL, OnUpdateBool, orm.cast_on_hydrate, zend_phalcon_globals, phalcon_globals) @@ -202476,9 +202476,9 @@ PHP_INI_BEGIN() STD_PHP_INI_BOOLEAN("phalcon.orm.ignore_unknown_columns", "0", PHP_INI_ALL, OnUpdateBool, orm.ignore_unknown_columns, zend_phalcon_globals, phalcon_globals) STD_PHP_INI_BOOLEAN("phalcon.orm.late_state_binding", "0", PHP_INI_ALL, OnUpdateBool, orm.late_state_binding, zend_phalcon_globals, phalcon_globals) STD_PHP_INI_BOOLEAN("phalcon.orm.not_null_validations", "1", PHP_INI_ALL, OnUpdateBool, orm.not_null_validations, zend_phalcon_globals, phalcon_globals) - - - + + + STD_PHP_INI_BOOLEAN("phalcon.orm.update_snapshot_on_save", "1", PHP_INI_ALL, OnUpdateBool, orm.update_snapshot_on_save, zend_phalcon_globals, phalcon_globals) STD_PHP_INI_BOOLEAN("phalcon.orm.virtual_foreign_keys", "1", PHP_INI_ALL, OnUpdateBool, orm.virtual_foreign_keys, zend_phalcon_globals, phalcon_globals) PHP_INI_END() @@ -202964,14 +202964,14 @@ static PHP_MINIT_FUNCTION(phalcon) ZEPHIR_INIT(phalcon_2__closure); ZEPHIR_INIT(phalcon_3__closure); ZEPHIR_INIT(phalcon_4__closure); - + return SUCCESS; } #ifndef ZEPHIR_RELEASE static PHP_MSHUTDOWN_FUNCTION(phalcon) { - + zephir_deinitialize_memory(TSRMLS_C); UNREGISTER_INI_ENTRIES(); return SUCCESS; @@ -202991,7 +202991,7 @@ static void php_zephir_init_globals(zend_phalcon_globals *phalcon_globals TSRMLS /* Static cache */ memset(phalcon_globals->scache, '\0', sizeof(zephir_fcall_cache_entry*) * ZEPHIR_MAX_CACHE_SLOTS); - + phalcon_globals->orm.ast_cache = NULL; phalcon_globals->orm.cache_level = 3; @@ -203014,12 +203014,12 @@ static void php_zephir_init_globals(zend_phalcon_globals *phalcon_globals TSRMLS - + } static void php_zephir_init_module_globals(zend_phalcon_globals *phalcon_globals TSRMLS_DC) { - + } static PHP_RINIT_FUNCTION(phalcon) @@ -203033,7 +203033,7 @@ static PHP_RINIT_FUNCTION(phalcon) php_zephir_init_globals(phalcon_globals_ptr TSRMLS_CC); zephir_initialize_memory(phalcon_globals_ptr TSRMLS_CC); - + return SUCCESS; } @@ -203059,7 +203059,7 @@ static PHP_MINFO_FUNCTION(phalcon) php_info_print_table_row(2, "Build Date", __DATE__ " " __TIME__ ); php_info_print_table_row(2, "Powered by Zephir", "Version " PHP_PHALCON_ZEPVERSION); php_info_print_table_end(); - + DISPLAY_INI_ENTRIES(); } @@ -203071,7 +203071,7 @@ static PHP_GINIT_FUNCTION(phalcon) static PHP_GSHUTDOWN_FUNCTION(phalcon) { - + } diff --git a/composer.json b/composer.json index 754ad71fd94..22a557539a8 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ "authors": [ { "name": "Phalcon Team", - "email": "team@phalconphp.com", + "email": "team@phalcon.io", "homepage": "https://phalconphp.com/en/team" }, { @@ -74,11 +74,11 @@ } }, "support": { - "email": "support@phalconphp.com", + "email": "support@phalcon.io", "issues": "https://github.com/phalcon/cphalcon/issues", - "forum": "https://forum.phalconphp.com/", + "forum": "https://phalcon.link/forum/", "source": "https://github.com/phalcon/cphalcon", - "docs": "https://docs.phalconphp.com/", - "rss": "https://blog.phalconphp.com/rss" + "docs": "https://phalcon.link/docs/", + "rss": "https://blog.phalcon.io/rss" } } From d283df537448eb70e3751e6c40a21e88a7ec851a Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Sun, 25 Aug 2019 15:28:28 -0400 Subject: [PATCH 028/202] [4.0.x] - Fixed test --- tests/unit/Escaper/EscapeCssCest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/Escaper/EscapeCssCest.php b/tests/unit/Escaper/EscapeCssCest.php index 3e20ef3b003..1cd5c999105 100644 --- a/tests/unit/Escaper/EscapeCssCest.php +++ b/tests/unit/Escaper/EscapeCssCest.php @@ -32,7 +32,7 @@ public function escaperEscapeCss(UnitTester $I) $source = ".émotion { background: url('http://phalcon.io/a.php?c=d&e=f'); }"; $expected = '\2e \e9 motion\20 \7b \20 background\3a \20 url\28 ' - . '\27 http\3a \2f \2f phalconphp\2e com\2f a\2e php' + . '\27 http\3a \2f \2f phalcon\2e io\2f a\2e php' . '\3f c\3d d\26 e\3d f\27 \29 \3b \20 \7d '; $I->assertEquals( From 9c3e095a7a374483c96e86001677b8923e2bafce Mon Sep 17 00:00:00 2001 From: zhangruiming Date: Mon, 26 Aug 2019 11:23:09 +0800 Subject: [PATCH 029/202] Add tests for issue #14324 --- .../Cache/AdapterFactory/NewInstanceCest.php | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/tests/unit/Cache/AdapterFactory/NewInstanceCest.php b/tests/unit/Cache/AdapterFactory/NewInstanceCest.php index 7fc9dfcaf40..7866222631b 100644 --- a/tests/unit/Cache/AdapterFactory/NewInstanceCest.php +++ b/tests/unit/Cache/AdapterFactory/NewInstanceCest.php @@ -22,6 +22,7 @@ use Phalcon\Factory\Exception; use Phalcon\Storage\SerializerFactory; use UnitTester; +use Phalcon\Storage\Serializer\Json; use function getOptionsLibmemcached; use function getOptionsRedis; use function outputDir; @@ -51,6 +52,15 @@ public function cacheAdapterFactoryNewInstance(UnitTester $I, Example $example) $example[1], $service ); + + // Given `serializer` parameter + $adapter = new AdapterFactory(); + $service = $adapter->newInstance($example[0], $example[3]); + + $I->assertInstanceOf( + $example[1], + $service + ); } /** @@ -78,26 +88,34 @@ function () { private function getExamples(): array { + $jsonSerializer = new Json(); + $optionsWithSerializer = [ + 'serializer' => $jsonSerializer + ]; return [ [ 'apcu', Apcu::class, [], + $optionsWithSerializer, ], [ 'libmemcached', Libmemcached::class, getOptionsLibmemcached(), + array_merge(getOptionsLibmemcached(), $optionsWithSerializer), ], [ 'memory', Memory::class, [], + $optionsWithSerializer ], [ 'redis', Redis::class, getOptionsRedis(), + array_merge(getOptionsRedis(), $optionsWithSerializer) ], [ 'stream', @@ -105,6 +123,10 @@ private function getExamples(): array [ 'cacheDir' => outputDir(), ], + [ + 'cacheDir' => outputDir(), + 'serializer' => $jsonSerializer, + ], ], ]; } From 3b0f68ed1d801953578a9ff0082314e189c8f2cf Mon Sep 17 00:00:00 2001 From: zhangruiming Date: Mon, 26 Aug 2019 12:02:49 +0800 Subject: [PATCH 030/202] Add changelog for branch #fixed-issue-14324 --- CHANGELOG-4.0.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG-4.0.md b/CHANGELOG-4.0.md index c26b0b1ca6d..a9bf533f057 100644 --- a/CHANGELOG-4.0.md +++ b/CHANGELOG-4.0.md @@ -9,6 +9,7 @@ - Fixed `Phalcon\Cache\Exception` to extend Phalcon\Exception - Fixed `Phalcon\Cache\InvalidArgumentException` to extend Phalcon\Exception - Fixed `Phalcon\Collection\Exception` to extend Phalcon\Exception +- Fixed `Phalcon\Storage\Adapter\AbstractAdapter::initSerializer` to throw exception if `null === $this->serializerFactory && null === $this->serializer` [#14324](https://github.com/phalcon/cphalcon/issues/14324) # [4.0.0-beta.2](https://github.com/phalcon/cphalcon/releases/tag/v4.0.0-beta.2) (2019-08-18) From d649d7ad6b70591d6f3f14463b43dfccaee36043 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Crnjakovi=C4=87?= Date: Mon, 26 Aug 2019 22:12:01 +0200 Subject: [PATCH 031/202] Update Url.zep Used `Phalcon\Helper\Str::reduceSlashes` method instead of ```zephir if substr(baseUri, -1) == "/" && strlen(strUri) > 2 && strUri[0] == '/' && strUri[1] != '/' { let uri = baseUri . substr(strUri, 1); } else { if baseUri == "/" && strlen(strUri) == 1 && strUri[0] == '/' { let uri = baseUri; } else { let uri = baseUri . strUri; } } ``` --- phalcon/Url.zep | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/phalcon/Url.zep b/phalcon/Url.zep index d0c63dbefea..8a8ab2e77f2 100644 --- a/phalcon/Url.zep +++ b/phalcon/Url.zep @@ -16,6 +16,7 @@ use Phalcon\Url\Exception; use Phalcon\Mvc\RouterInterface; use Phalcon\Mvc\Router\RouteInterface; use Phalcon\Di\InjectionAwareInterface; +use Phalcon\Helper\Str; /** * This components helps in the generation of: URIs, URLs and Paths @@ -162,16 +163,7 @@ class Url implements UrlInterface, InjectionAwareInterface if local { let strUri = (string) uri; - - if substr(baseUri, -1) == "/" && strlen(strUri) > 2 && strUri[0] == '/' && strUri[1] != '/' { - let uri = baseUri . substr(strUri, 1); - } else { - if baseUri == "/" && strlen(strUri) == 1 && strUri[0] == '/' { - let uri = baseUri; - } else { - let uri = baseUri . strUri; - } - } + let uri = preg_replace("#(? Date: Mon, 26 Aug 2019 22:25:55 +0200 Subject: [PATCH 032/202] Update CHANGELOG-4.0.md --- CHANGELOG-4.0.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG-4.0.md b/CHANGELOG-4.0.md index a9bf533f057..35b187e8830 100644 --- a/CHANGELOG-4.0.md +++ b/CHANGELOG-4.0.md @@ -1,5 +1,6 @@ # [4.0.0](https://github.com/phalcon/cphalcon/releases/tag/v4.0.0) (2019-xx-xx) ## Changed +- Changed `Phalcon\Url::get` to use implementation behind `Phalcon\Helper\Str::reduceSlashes` to reduce slashes [#14331](https://github.com/phalcon/cphalcon/issues/14331) - Changed `Phalcon\Http\Headers\set()` to return self for a more fluent interface ## Fixed From 30d85acd3cf1af28cf88df4a398fcd70a7fc910a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Crnjakovi=C4=87?= Date: Mon, 26 Aug 2019 22:27:52 +0200 Subject: [PATCH 033/202] Removed unnecessary use statement --- phalcon/Url.zep | 1 - 1 file changed, 1 deletion(-) diff --git a/phalcon/Url.zep b/phalcon/Url.zep index 8a8ab2e77f2..190959d6f49 100644 --- a/phalcon/Url.zep +++ b/phalcon/Url.zep @@ -16,7 +16,6 @@ use Phalcon\Url\Exception; use Phalcon\Mvc\RouterInterface; use Phalcon\Mvc\Router\RouteInterface; use Phalcon\Di\InjectionAwareInterface; -use Phalcon\Helper\Str; /** * This components helps in the generation of: URIs, URLs and Paths From 2ee7e90837367c270fe04768a9b30fb3021b46a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=8F=E6=AD=8C?= Date: Tue, 27 Aug 2019 15:23:19 +0800 Subject: [PATCH 034/202] Fixes #13919, make response->setFileToSend support non-ASCII filename. - see https://bugs.php.net/bug.php?id=37738 - see https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21File%21FileSystem.php/function/FileSystem%3A%3Abasename/8.2.x - see https://tools.ietf.org/html/rfc2231#section-5 --- phalcon/Helper/Fs.zep | 42 +++++++++++++++++++++++++++++++++++++++ phalcon/Http/Response.zep | 13 +++++++++--- 2 files changed, 52 insertions(+), 3 deletions(-) create mode 100644 phalcon/Helper/Fs.zep diff --git a/phalcon/Helper/Fs.zep b/phalcon/Helper/Fs.zep new file mode 100644 index 00000000000..bdb5df2268b --- /dev/null +++ b/phalcon/Helper/Fs.zep @@ -0,0 +1,42 @@ + +/** + * This file is part of the Phalcon. + * + * (c) Phalcon Team + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Phalcon\Helper; + +/** + * This class offers file operation helper + */ +class Fs { + + /** + * Gets the filename from a given path, Same as PHP's basename() but has non-ASCII support. + * PHP's basename() does not properly support streams or filenames beginning with a non-US-ASCII character. + * see https://bugs.php.net/bug.php?id=37738 + * + * @param string $uri + * @param string $suffix + * + * @return string + */ + final public static function basename(string! uri, string suffix = null) -> string + { + var filename; + var separators; + var matches; + let separators = DIRECTORY_SEPARATOR; + let uri = rtrim(uri, separators); + let filename = preg_match("@[^" . preg_quote(separators, "@") . "]+$@", uri, matches) ? matches[0] : ""; + if suffix { + let filename = preg_replace("@" . preg_quote(suffix, "@") . "$@", "", filename); + } + + return filename; + } +} diff --git a/phalcon/Http/Response.zep b/phalcon/Http/Response.zep index 5def2a68cf2..13bada6194c 100644 --- a/phalcon/Http/Response.zep +++ b/phalcon/Http/Response.zep @@ -14,6 +14,7 @@ use DateTime; use DateTimeZone; use Phalcon\Di; use Phalcon\Di\DiInterface; +use Phalcon\Helper\Fs; use Phalcon\Http\Response\Exception; use Phalcon\Http\Response\HeadersInterface; use Phalcon\Http\Response\CookiesInterface; @@ -546,18 +547,24 @@ class Response implements ResponseInterface, InjectionAwareInterface, EventsAwar public function setFileToSend(string filePath, attachmentName = null, attachment = true) -> { var basePath; + var basePathEncoding; + var basePathEncoded; if typeof attachmentName != "string" { - let basePath = basename(filePath); + let basePath = Fs::basename(filePath); } else { let basePath = attachmentName; } - if attachment { + let basePathEncoded = rawurlencode(basePath); + let basePathEncoding = mb_detect_encoding(basePath, mb_detect_order(), true); this->setRawHeader("Content-Description: File Transfer"); this->setRawHeader("Content-Type: application/octet-stream"); - this->setRawHeader("Content-Disposition: attachment; filename=" . basePath . ";"); + this->setRawHeader("Content-Disposition: attachment; filename=" . basePathEncoded . ";"); this->setRawHeader("Content-Transfer-Encoding: binary"); + if basePathEncoding != "ASCII" { + this->setRawHeader("Content-Disposition: attachment; filename=" . basePathEncoded . "; filename*=". strtolower(basePathEncoding) . "''" . basePathEncoded . ";"); + } } let this->file = filePath; From c414023b0d60b5dfd6722c62f5e31f3b2abf6250 Mon Sep 17 00:00:00 2001 From: Ian Hu Date: Tue, 27 Aug 2019 19:30:22 +0800 Subject: [PATCH 035/202] Update phalcon/Helper/Fs.zep Apply sugguestion Co-Authored-By: Serghei Iakovlev --- phalcon/Helper/Fs.zep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phalcon/Helper/Fs.zep b/phalcon/Helper/Fs.zep index bdb5df2268b..dbf9f7cb9a6 100644 --- a/phalcon/Helper/Fs.zep +++ b/phalcon/Helper/Fs.zep @@ -31,7 +31,7 @@ class Fs { var separators; var matches; let separators = DIRECTORY_SEPARATOR; - let uri = rtrim(uri, separators); + let uri = rtrim(uri, DIRECTORY_SEPARATOR); let filename = preg_match("@[^" . preg_quote(separators, "@") . "]+$@", uri, matches) ? matches[0] : ""; if suffix { let filename = preg_replace("@" . preg_quote(suffix, "@") . "$@", "", filename); From 2cdaf58c70ce7a275dcd0933bb4ff6e626d9299b Mon Sep 17 00:00:00 2001 From: Ian Hu Date: Tue, 27 Aug 2019 19:30:43 +0800 Subject: [PATCH 036/202] Update phalcon/Http/Response.zep Apply sugguestion Co-Authored-By: Serghei Iakovlev --- phalcon/Http/Response.zep | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/phalcon/Http/Response.zep b/phalcon/Http/Response.zep index 13bada6194c..8fcf61bda64 100644 --- a/phalcon/Http/Response.zep +++ b/phalcon/Http/Response.zep @@ -557,7 +557,14 @@ class Response implements ResponseInterface, InjectionAwareInterface, EventsAwar } if attachment { let basePathEncoded = rawurlencode(basePath); - let basePathEncoding = mb_detect_encoding(basePath, mb_detect_order(), true); + // mbstring is a non-default extension + if function_exists("mb_detect_encoding") { + let basePathEncoding = mb_detect_encoding( + basePath, + mb_detect_order(), + true + ); + } this->setRawHeader("Content-Description: File Transfer"); this->setRawHeader("Content-Type: application/octet-stream"); this->setRawHeader("Content-Disposition: attachment; filename=" . basePathEncoded . ";"); From fd361286a652327896b165c7675da38f0427cec8 Mon Sep 17 00:00:00 2001 From: Ian Hu Date: Tue, 27 Aug 2019 19:31:09 +0800 Subject: [PATCH 037/202] Update phalcon/Http/Response.zep apply sugguestion Co-Authored-By: Serghei Iakovlev --- phalcon/Http/Response.zep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phalcon/Http/Response.zep b/phalcon/Http/Response.zep index 8fcf61bda64..9e347282620 100644 --- a/phalcon/Http/Response.zep +++ b/phalcon/Http/Response.zep @@ -547,7 +547,7 @@ class Response implements ResponseInterface, InjectionAwareInterface, EventsAwar public function setFileToSend(string filePath, attachmentName = null, attachment = true) -> { var basePath; - var basePathEncoding; + var basePathEncoding = "ASCII"; var basePathEncoded; if typeof attachmentName != "string" { From c2792a027b680e3e013934ce743ab95b22c37a33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=8F=E6=AD=8C?= Date: Tue, 27 Aug 2019 19:35:55 +0800 Subject: [PATCH 038/202] Apply sugguestions --- phalcon/Helper/Fs.zep | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/phalcon/Helper/Fs.zep b/phalcon/Helper/Fs.zep index dbf9f7cb9a6..c1727c789b4 100644 --- a/phalcon/Helper/Fs.zep +++ b/phalcon/Helper/Fs.zep @@ -27,12 +27,13 @@ class Fs { */ final public static function basename(string! uri, string suffix = null) -> string { - var filename; - var separators; - var matches; - let separators = DIRECTORY_SEPARATOR; + var filename, matches; let uri = rtrim(uri, DIRECTORY_SEPARATOR); - let filename = preg_match("@[^" . preg_quote(separators, "@") . "]+$@", uri, matches) ? matches[0] : ""; + let filename = preg_match( + "@[^" . preg_quote(DIRECTORY_SEPARATOR, "@") . "]+$@", + uri, + matches + ) ? matches[0] : ""; if suffix { let filename = preg_replace("@" . preg_quote(suffix, "@") . "$@", "", filename); } From 294207bc6b5397b30a4aa43b5add8884c0a069c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=8F=E6=AD=8C?= Date: Tue, 27 Aug 2019 21:55:09 +0800 Subject: [PATCH 039/202] Add Unit test for Phalcon\Helper\Fs::basename() --- phalcon/Helper/Fs.zep | 4 +- tests/unit/Helper/Fs/FsBasenameCest.php | 71 +++++++++++++++++++++++++ 2 files changed, 73 insertions(+), 2 deletions(-) create mode 100644 tests/unit/Helper/Fs/FsBasenameCest.php diff --git a/phalcon/Helper/Fs.zep b/phalcon/Helper/Fs.zep index c1727c789b4..1b098739219 100644 --- a/phalcon/Helper/Fs.zep +++ b/phalcon/Helper/Fs.zep @@ -21,11 +21,11 @@ class Fs { * see https://bugs.php.net/bug.php?id=37738 * * @param string $uri - * @param string $suffix + * @param string $suffix * * @return string */ - final public static function basename(string! uri, string suffix = null) -> string + final public static function basename(string! uri, var suffix = null) -> string { var filename, matches; let uri = rtrim(uri, DIRECTORY_SEPARATOR); diff --git a/tests/unit/Helper/Fs/FsBasenameCest.php b/tests/unit/Helper/Fs/FsBasenameCest.php new file mode 100644 index 00000000000..ef949888cf9 --- /dev/null +++ b/tests/unit/Helper/Fs/FsBasenameCest.php @@ -0,0 +1,71 @@ + + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ + +namespace Phalcon\Test\Unit\Helper\Fs; + + +use Phalcon\Helper\Fs; +use UnitTester; + +class FsBasenameCest { + /** + * Tests Phalcon\Helper\Fs :: basename() + * with ASCII $uri it should be same as PHP's basename + * + * @author Ian Hu + * @since 2019-08-27 + */ + public function helperFsBasenamePureASCII(UnitTester $I) { + $I->wantToTest('Helper\Fs - basename() with pure ASCII uri'); + $filePathAndSuffixes = [ + ["/etc/sudoers.d", ".d"], + ["/etc/sudoers.d", ''], + ['/etc/passwd', ''], + ['/etc/', ''], + ['.', ''], + ['/', ''] + ]; + + foreach ($filePathAndSuffixes as $filePathAndSuffix) { + list($filePath, $suffix) = $filePathAndSuffix; + $I->assertEquals( + basename($filePath, $suffix), + Fs::basename($filePath, $suffix) + ); + } + } + + /** + * Tests Phalcon\Helper\Fs :: basename() + * with non-ASCII $uri support + * + * @author Ian Hu + * @since 2019-08-27 + */ + public function helperFsBasenameNonASCII(UnitTester $I) { + $I->wantToTest('Helper\Fs - basename() with non-ASCII uri'); + $filePathAndExpects = [ + '/file/热爱中文.txt' => '热爱中文.txt', + '/中文目录/热爱中文.txt' => '热爱中文.txt', + '/myfolder/日本語のファイル名.txt' => '日本語のファイル名.txt', + '/のファ/日本語のファイル名.txt' => '日本語のファイル名.txt', + '/root/ελληνικά.txt' => 'ελληνικά.txt', + '/νικά/ελληνικά.txt' => 'ελληνικά.txt' + ]; + foreach ($filePathAndExpects as $filePath => $expect) { + $I->assertEquals( + $expect, + Fs::basename($filePath) + ); + } + } +} \ No newline at end of file From b6132eebb0b4165e8a43d870336b84584208a6f8 Mon Sep 17 00:00:00 2001 From: Ruud Boon Date: Tue, 27 Aug 2019 15:58:03 +0200 Subject: [PATCH 040/202] Fixed issue #14265 --- CHANGELOG-4.0.md | 1 + phalcon/Session/Adapter/Stream.zep | 13 ++++------ .../Session/Adapter/Stream/OpenCest.php | 25 +++++++++++++++++++ 3 files changed, 31 insertions(+), 8 deletions(-) diff --git a/CHANGELOG-4.0.md b/CHANGELOG-4.0.md index 35b187e8830..b463f4123a0 100644 --- a/CHANGELOG-4.0.md +++ b/CHANGELOG-4.0.md @@ -11,6 +11,7 @@ - Fixed `Phalcon\Cache\InvalidArgumentException` to extend Phalcon\Exception - Fixed `Phalcon\Collection\Exception` to extend Phalcon\Exception - Fixed `Phalcon\Storage\Adapter\AbstractAdapter::initSerializer` to throw exception if `null === $this->serializerFactory && null === $this->serializer` [#14324](https://github.com/phalcon/cphalcon/issues/14324) +- Fixed `Phalcon\Session\Adapter\Stream` to not override configured save path [#14265](https://github.com/phalcon/cphalcon/issues/14265) # [4.0.0-beta.2](https://github.com/phalcon/cphalcon/releases/tag/v4.0.0-beta.2) (2019-08-18) diff --git a/phalcon/Session/Adapter/Stream.zep b/phalcon/Session/Adapter/Stream.zep index cb6d649f728..a6ee4588066 100644 --- a/phalcon/Session/Adapter/Stream.zep +++ b/phalcon/Session/Adapter/Stream.zep @@ -94,16 +94,13 @@ class Stream extends Noop return true; } + /** + * Ignore the savePath and use local defined path + * + * @return bool + */ public function open(var savePath, var sessionName) -> bool { - var path; - - if true !== ends_with(savePath, "/") { - let path = savePath . "/"; - } - - let this->path = path; - return true; } diff --git a/tests/integration/Session/Adapter/Stream/OpenCest.php b/tests/integration/Session/Adapter/Stream/OpenCest.php index ea993a45f1e..e52d90d59ba 100644 --- a/tests/integration/Session/Adapter/Stream/OpenCest.php +++ b/tests/integration/Session/Adapter/Stream/OpenCest.php @@ -15,6 +15,8 @@ use IntegrationTester; use Phalcon\Test\Fixtures\Traits\DiTrait; use Phalcon\Test\Fixtures\Traits\SessionTrait; +use Phalcon\Session\Manager; +use Phalcon\Session\Adapter\Stream; class OpenCest { @@ -45,4 +47,27 @@ public function sessionAdapterStreamOpen(IntegrationTester $I) ) ); } + + /** + * Tests Phalcon\Session\Adapter\Stream :: open() + * + * @author Phalcon Team + * @since 2019-08-06 + */ + public function issue14265(IntegrationTester $I) + { + $I->wantToTest('Session\Adapter\Stream - open() for issue 14265'); + $session = new Manager(); + $stream = new Stream(getOptionsSessionStream()); + $session->setHandler($stream); + $I->assertTrue( + $session->start() + ); + $value = uniqid(); + $stream->write('test1', $value); + $I->amInPath(cacheDir('sessions')); + $I->seeFileFound('test1'); + $I->seeInThisFile($value); + $I->safeDeleteFile(cacheDir('sessions/test1')); + } } From c08d82c9a19e4cb633231fa786032740389f5153 Mon Sep 17 00:00:00 2001 From: Ian Hu Date: Tue, 27 Aug 2019 22:42:51 +0800 Subject: [PATCH 041/202] Fix phpcs code style error --- tests/unit/Helper/Fs/FsBasenameCest.php | 102 ++++++++++++------------ 1 file changed, 52 insertions(+), 50 deletions(-) diff --git a/tests/unit/Helper/Fs/FsBasenameCest.php b/tests/unit/Helper/Fs/FsBasenameCest.php index ef949888cf9..bd18f8734e7 100644 --- a/tests/unit/Helper/Fs/FsBasenameCest.php +++ b/tests/unit/Helper/Fs/FsBasenameCest.php @@ -12,60 +12,62 @@ namespace Phalcon\Test\Unit\Helper\Fs; - use Phalcon\Helper\Fs; use UnitTester; -class FsBasenameCest { - /** - * Tests Phalcon\Helper\Fs :: basename() - * with ASCII $uri it should be same as PHP's basename - * - * @author Ian Hu - * @since 2019-08-27 - */ - public function helperFsBasenamePureASCII(UnitTester $I) { - $I->wantToTest('Helper\Fs - basename() with pure ASCII uri'); - $filePathAndSuffixes = [ - ["/etc/sudoers.d", ".d"], - ["/etc/sudoers.d", ''], - ['/etc/passwd', ''], - ['/etc/', ''], - ['.', ''], - ['/', ''] - ]; +class FsBasenameCest +{ + /** + * Tests Phalcon\Helper\Fs :: basename() + * with ASCII $uri it should be same as PHP's basename + * + * @author Ian Hu + * @since 2019-08-27 + */ + public function helperFsBasenamePureASCII(UnitTester $I) + { + $I->wantToTest('Helper\Fs - basename() with pure ASCII uri'); + $filePathAndSuffixes = [ + ["/etc/sudoers.d", ".d"], + ["/etc/sudoers.d", ''], + ['/etc/passwd', ''], + ['/etc/', ''], + ['.', ''], + ['/', ''] + ]; - foreach ($filePathAndSuffixes as $filePathAndSuffix) { - list($filePath, $suffix) = $filePathAndSuffix; - $I->assertEquals( - basename($filePath, $suffix), - Fs::basename($filePath, $suffix) - ); - } + foreach ($filePathAndSuffixes as $filePathAndSuffix) { + list($filePath, $suffix) = $filePathAndSuffix; + $I->assertEquals( + basename($filePath, $suffix), + Fs::basename($filePath, $suffix) + ); + } } - /** - * Tests Phalcon\Helper\Fs :: basename() - * with non-ASCII $uri support - * - * @author Ian Hu - * @since 2019-08-27 - */ - public function helperFsBasenameNonASCII(UnitTester $I) { - $I->wantToTest('Helper\Fs - basename() with non-ASCII uri'); - $filePathAndExpects = [ - '/file/热爱中文.txt' => '热爱中文.txt', - '/中文目录/热爱中文.txt' => '热爱中文.txt', - '/myfolder/日本語のファイル名.txt' => '日本語のファイル名.txt', - '/のファ/日本語のファイル名.txt' => '日本語のファイル名.txt', - '/root/ελληνικά.txt' => 'ελληνικά.txt', - '/νικά/ελληνικά.txt' => 'ελληνικά.txt' - ]; - foreach ($filePathAndExpects as $filePath => $expect) { - $I->assertEquals( - $expect, - Fs::basename($filePath) - ); - } + /** + * Tests Phalcon\Helper\Fs :: basename() + * with non-ASCII $uri support + * + * @author Ian Hu + * @since 2019-08-27 + */ + public function helperFsBasenameNonASCII(UnitTester $I) + { + $I->wantToTest('Helper\Fs - basename() with non-ASCII uri'); + $filePathAndExpects = [ + '/file/热爱中文.txt' => '热爱中文.txt', + '/中文目录/热爱中文.txt' => '热爱中文.txt', + '/myfolder/日本語のファイル名.txt' => '日本語のファイル名.txt', + '/のファ/日本語のファイル名.txt' => '日本語のファイル名.txt', + '/root/ελληνικά.txt' => 'ελληνικά.txt', + '/νικά/ελληνικά.txt' => 'ελληνικά.txt' + ]; + foreach ($filePathAndExpects as $filePath => $expect) { + $I->assertEquals( + $expect, + Fs::basename($filePath) + ); + } } -} \ No newline at end of file +} From 22cb0520c91ccce77393153ca6bbd5300548b116 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=B0=E6=9E=97?= Date: Wed, 28 Aug 2019 14:13:06 +0800 Subject: [PATCH 042/202] redis adapter update --- .gitignore | 1 + CHANGELOG-4.0.md | 4 ++++ phalcon/Storage/Adapter/Redis.zep | 16 ++++++++++------ 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 909c493e541..28a3ce195bf 100644 --- a/.gitignore +++ b/.gitignore @@ -60,3 +60,4 @@ build/gccarch tests/_cache .php_cs.cache +.idea diff --git a/CHANGELOG-4.0.md b/CHANGELOG-4.0.md index 35b187e8830..2cca3dd4fa4 100644 --- a/CHANGELOG-4.0.md +++ b/CHANGELOG-4.0.md @@ -12,6 +12,10 @@ - Fixed `Phalcon\Collection\Exception` to extend Phalcon\Exception - Fixed `Phalcon\Storage\Adapter\AbstractAdapter::initSerializer` to throw exception if `null === $this->serializerFactory && null === $this->serializer` [#14324](https://github.com/phalcon/cphalcon/issues/14324) +## Fixed +- Fixed `Phalcon\Storage\Adapter\Redis::getAdapter()` to provide a persistent id for redis persistent connection [#14334](https://github.com/phalcon/cphalcon/issues/14334) + + # [4.0.0-beta.2](https://github.com/phalcon/cphalcon/releases/tag/v4.0.0-beta.2) (2019-08-18) ## Fixed diff --git a/phalcon/Storage/Adapter/Redis.zep b/phalcon/Storage/Adapter/Redis.zep index 5138655e169..d4016bcfba0 100644 --- a/phalcon/Storage/Adapter/Redis.zep +++ b/phalcon/Storage/Adapter/Redis.zep @@ -110,20 +110,24 @@ class Redis extends AbstractAdapter */ public function getAdapter() -> var { - var auth, connection, host, index, method, options, - persistent, port, result; + var auth, connection, host, index, options, port, result, + persistent, persistentid; if null === this->adapter { let options = this->options, connection = new \Redis(), auth = options["auth"], host = options["host"], - index = options["index"], - persistent = options["persistent"], port = options["port"], - method = persistent ? "pconnect" : "connect"; + index = options["index"], + persistent = options["persistent"]; - let result = connection->{method}(host, port, this->lifetime); + if !persistent { + let result = connection->connect(host, port, this->lifetime); + } else { + let persistentid = "persistentid_" . index; + let result = connection->pconnect(host, port, this->lifetime, persistentid); + } if !result { throw new Exception( From 898a454d951627804ea4775f8f136815608e5459 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=B0=E6=9E=97?= Date: Wed, 28 Aug 2019 15:09:04 +0800 Subject: [PATCH 043/202] correction changelog format --- .gitignore | 1 - CHANGELOG-4.0.md | 3 --- 2 files changed, 4 deletions(-) diff --git a/.gitignore b/.gitignore index 28a3ce195bf..909c493e541 100644 --- a/.gitignore +++ b/.gitignore @@ -60,4 +60,3 @@ build/gccarch tests/_cache .php_cs.cache -.idea diff --git a/CHANGELOG-4.0.md b/CHANGELOG-4.0.md index 2cca3dd4fa4..1f3d66e4bf3 100644 --- a/CHANGELOG-4.0.md +++ b/CHANGELOG-4.0.md @@ -11,11 +11,8 @@ - Fixed `Phalcon\Cache\InvalidArgumentException` to extend Phalcon\Exception - Fixed `Phalcon\Collection\Exception` to extend Phalcon\Exception - Fixed `Phalcon\Storage\Adapter\AbstractAdapter::initSerializer` to throw exception if `null === $this->serializerFactory && null === $this->serializer` [#14324](https://github.com/phalcon/cphalcon/issues/14324) - -## Fixed - Fixed `Phalcon\Storage\Adapter\Redis::getAdapter()` to provide a persistent id for redis persistent connection [#14334](https://github.com/phalcon/cphalcon/issues/14334) - # [4.0.0-beta.2](https://github.com/phalcon/cphalcon/releases/tag/v4.0.0-beta.2) (2019-08-18) ## Fixed From 4280b78e59b92850d667157f0dc1bed130d1c818 Mon Sep 17 00:00:00 2001 From: Fenikkusu Date: Wed, 28 Aug 2019 22:23:21 -0400 Subject: [PATCH 044/202] Adding Makefile --- Makefile | 176 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 176 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 00000000000..883e66670dc --- /dev/null +++ b/Makefile @@ -0,0 +1,176 @@ +###################################################### +# SYSTEM MAKE FILE # +###################################################### +# Use this to allow quick/easy modifications and/or # +# updates to the software. Requires make to be # +# installed. # +# # +# Note: This assumes you already have PHP setup and # +# properly configured in your path environment # +###################################################### +# Windows # +# # +# http://gnuwin32.sourceforge.net/downlinks/make.php # +###################################################### +# OS X / Linux # +# # +# Likely Already Installed. Otherwise use the os's # +# package manager (IE: apt-get, brew, macports, etc) # +###################################################### + +CACHE_PATH := cache +BIN_PATH := bin +NODE_MODULES := node_modules + +PHP-CS-FIXER_URL := https://cs.sensiolabs.org/download/php-cs-fixer-v2.phar + +COMPOSER_ACTION ?= install +COMPOSER_OPTIONS ?= $(COMPOSER_EXTRA_OPTIONS) --ignore-platform-reqs + +TEST_EXTRA_OPTIONS ?= --ext DotReporter +TEST_OPTIONS ?= --fail-fast $(TEST_EXTRA_OPTIONS) +TEST_ENABLE_COVERAGE=false +TEST_COVERAGE ?= + +PHP_IDE_CONFIG = PHP_IDE_CONFIG='serverName=zephir.test' + +DOCKER_IMAGE ?= twistersfury/zephir:phalcon +DOCKER_EXTRA_OPTIONS ?= + +DEBUG_ENABLE ?= false + +ifneq ($(TEST_ENABLE_COVERAGE),false) + TEST_COVERAGE := --coverage --coverage-html +endif + +APP_DIRECTORY ?= /app +DOCKER_COMMAND ?= docker run --rm -it -v $(CURDIR):$(APP_DIRECTORY) -w $(APP_DIRECTORY) --env $(PHP_IDE_CONFIG) $(DOCKER_EXTRA_OPTIONS) $(DOCKER_IMAGE) +PHP_REMOTE_HOST := host.docker.internal + +ifneq ($(DEBUG_ENABLE),false) + PHP_ARGS ?= -d xdebug.remote_enable=1 -d xdebug.remote_autostart=1 -d xdebug.remote_host=$(PHP_REMOTE_HOST) +endif + +###################################################### +# Default Run Command # +###################################################### +.PHONY: default +default: analyse + +###################################################### +# Hard File Dependencies # +###################################################### + +# Primary Cache Directory +$(CACHE_PATH): + mkdir -p $(CACHE_PATH) + +# Primary Bin Directory +$(BIN_PATH): + mkdir -p $(BIN_PATH) + +# Composer Dependencies +vendor: composer.json + make composer-install + +# Binaries +vendor/codeception/codeception/codecept: | vendor + +$(BIN_PATH)/.docker-login: | $(BIN_PATH) + docker login registry.gitlab.com + touch $@ + +# Docker Installation +$(BIN_PATH)/.docker: | $(BIN_PATH) + which docker || (echo "Docker Is Not Installed" && exit 1) + touch $(BIN_PATH)/.docker + +ext/modules/phalcon.so: $(shell find ./phalcon -type f -name "*.zep") + make build + +vendor/codeception/codeception/codecept: | vendor +vendor/phalcon/zephir/zephir: | vendor + +###################################################### +# Installation Dependencies # +###################################################### + +.PHONY: clean composer install + +install: vendor + +clean: zephir-clean docker-clean + rm -rf $(BIN_PATH) + rm -rf $(CACHE_PATH) + rm -rf vendor + rm -f compile.log + rm -f compile-errors.log + +###################################################### +# Composer Commands # +###################################################### + +.PHONY: composer composer-install composer-dump-autoload + +composer-install: COMPOSER_COMMAND=install +composer-install: COMPOSER_OPTIONS=--ignore-platform-reqs +composer-install: composer + +composer-dump-autoload: COMPOSER_COMMAND=dump-autoload +composer-dump-autoload: COMPOSER_OPTIONS= +composer-dump-autoload: composer + +composer: DOCKER_IMAGE=composer:latest +composer: $(BIN_PATH)/.docker composer.json + $(DOCKER_COMMAND) php $(PHP_ARGS) /usr/bin/composer $(COMPOSER_COMMAND) $(COMPOSER_OPTIONS) + + +###################################################### +# Zephir Commands # +###################################################### + +.PHONY: zephir-clean clean-build build stubs compile generate + +clean-build: zephir-clean build + +zephir-clean: vendor/phalcon/zephir/zephir + $(DOCKER_COMMAND) php $(PHP_ARGS) /composer/vendor/bin/zephir clean + +build: vendor/phalcon/zephir/zephir + $(DOCKER_COMMAND) php $(PHP_ARGS) /composer/vendor/bin/zephir build + make stubs + +generate: vendor/phalcon/zephir/zephir + $(DOCKER_COMMAND) php $(PHP_ARGS) /composer/vendor/bin/zephir generate + make stubs + +compile: generate + $(DOCKER_COMMAND) php $(PHP_ARGS) /composer/vendor/bin/zephir compile + make stubs + +stubs: vendor/phalcon/zephir/zephir + $(DOCKER_COMMAND) php $(PHP_ARGS) /composer/vendor/bin/zephir stub + +###################################################### +# Testing Commands # +###################################################### + +.PHONY: analyse test test-unit + +# Run All Testing/QA +analyse: test + +# Run All Testing +test: DOCKER_EXTRA_OPTIONS=-v $$(pwd)/ext/modules/phalcon.so:/usr/local/lib/php/extensions/no-debug-non-zts-20180731/phalcon.so +test: vendor/codeception/codeception/codecept ext/modules/phalcon.so + $(DOCKER_COMMAND) php $(PHP_ARGS) $(PHP_EXTRA_ARGS) ./vendor/codeception/codeception/codecept run $(TEST_OPTIONS) $(TEST_COVERAGE) + +# Run Just The Unit Suite +test-unit: DOCKER_EXTRA_OPTIONS=-v $$(pwd)/ext/modules/phalcon.so:/usr/local/lib/php/extensions/no-debug-non-zts-20180731/phalcon.so +test-unit: vendor/codeception/codeception/codecept ext/modules/phalcon.so + $(DOCKER_COMMAND) php $(PHP_ARGS) $(PHP_EXTRA_ARGS) ./vendor/codeception/codeception/codecept run unit $(TEST_OPTIONS) $(TEST_COVERAGE) + +# Build Codecept +codecept-build: vendor/codeception/codeception/codecept + $(DOCKER_COMMAND) php $(PHP_ARGS) $(PHP_EXTRA_ARGS) ./vendor/codeception/codeception/codecept build + From 67da4bdeab1548c44dc1e3bc80cff833715fd5a0 Mon Sep 17 00:00:00 2001 From: Fenikkusu Date: Thu, 29 Aug 2019 19:39:41 -0400 Subject: [PATCH 045/202] Tweaks To Makefile (Includes Requested Changes) --- Makefile | 43 +++++++++++++++++++++++++------------------ 1 file changed, 25 insertions(+), 18 deletions(-) diff --git a/Makefile b/Makefile index 883e66670dc..29872fbcb2b 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,12 @@ ###################################################### +# This file is part of the Phalcon Framework. # +# # +# (c) Phalcon Team # +# # +# For the full copyright and license information, # +# please view the LICENSE.txt file that was # +# distributed with this source code. # +###################################################### # SYSTEM MAKE FILE # ###################################################### # Use this to allow quick/easy modifications and/or # @@ -20,17 +28,11 @@ CACHE_PATH := cache BIN_PATH := bin -NODE_MODULES := node_modules - -PHP-CS-FIXER_URL := https://cs.sensiolabs.org/download/php-cs-fixer-v2.phar COMPOSER_ACTION ?= install COMPOSER_OPTIONS ?= $(COMPOSER_EXTRA_OPTIONS) --ignore-platform-reqs -TEST_EXTRA_OPTIONS ?= --ext DotReporter -TEST_OPTIONS ?= --fail-fast $(TEST_EXTRA_OPTIONS) -TEST_ENABLE_COVERAGE=false -TEST_COVERAGE ?= +COVERAGE_ENABLE ?= false PHP_IDE_CONFIG = PHP_IDE_CONFIG='serverName=zephir.test' @@ -39,8 +41,8 @@ DOCKER_EXTRA_OPTIONS ?= DEBUG_ENABLE ?= false -ifneq ($(TEST_ENABLE_COVERAGE),false) - TEST_COVERAGE := --coverage --coverage-html +ifneq ($(COVERAGE_ENABLE),false) + CODECEPT_OPTIONS := --coverage --coverage-html endif APP_DIRECTORY ?= /app @@ -82,7 +84,7 @@ $(BIN_PATH)/.docker-login: | $(BIN_PATH) # Docker Installation $(BIN_PATH)/.docker: | $(BIN_PATH) - which docker || (echo "Docker Is Not Installed" && exit 1) + command -v docker 2>/dev/null || (echo "Docker Is Not Installed" && exit 1) touch $(BIN_PATH)/.docker ext/modules/phalcon.so: $(shell find ./phalcon -type f -name "*.zep") @@ -161,16 +163,21 @@ stubs: vendor/phalcon/zephir/zephir analyse: test # Run All Testing -test: DOCKER_EXTRA_OPTIONS=-v $$(pwd)/ext/modules/phalcon.so:/usr/local/lib/php/extensions/no-debug-non-zts-20180731/phalcon.so -test: vendor/codeception/codeception/codecept ext/modules/phalcon.so - $(DOCKER_COMMAND) php $(PHP_ARGS) $(PHP_EXTRA_ARGS) ./vendor/codeception/codeception/codecept run $(TEST_OPTIONS) $(TEST_COVERAGE) +test: codecept-run # Run Just The Unit Suite -test-unit: DOCKER_EXTRA_OPTIONS=-v $$(pwd)/ext/modules/phalcon.so:/usr/local/lib/php/extensions/no-debug-non-zts-20180731/phalcon.so -test-unit: vendor/codeception/codeception/codecept ext/modules/phalcon.so - $(DOCKER_COMMAND) php $(PHP_ARGS) $(PHP_EXTRA_ARGS) ./vendor/codeception/codeception/codecept run unit $(TEST_OPTIONS) $(TEST_COVERAGE) +test-unit: CODECEPT_EXTRA_OPTIONS=unit +test-unit: codecept-run + +# Run Codecept +codecept-run: DOCKER_EXTRA_OPTIONS=-v $$(pwd)/ext/modules/phalcon.so:/usr/local/lib/php/extensions/no-debug-non-zts-20180731/phalcon.so +codecept-run: CODECEPT_OPTIONS ?= --ext DotReporter --fail-fast +codecept-run: CODECEPT_COMMAND=run +codecept-run: codecept # Build Codecept -codecept-build: vendor/codeception/codeception/codecept - $(DOCKER_COMMAND) php $(PHP_ARGS) $(PHP_EXTRA_ARGS) ./vendor/codeception/codeception/codecept build +codecept-build: CODECEPT_COMMAND=build +codecept-build: codecept +codecept: ./vendor/codeception/codeception/codecept ext/modules/phalcon.so + $(DOCKER_COMMAND) php $(PHP_ARGS) $(PHP_EXTRA_ARGS) ./vendor/codeception/codeception/codecept $(CODECEPT_COMMAND) $(CODECEPT_OPTIONS) $(CODECEPT_EXTRA_OPTIONS) From 3bab341538c4af714811e6b705697bb3eba62273 Mon Sep 17 00:00:00 2001 From: Fenikkusu Date: Thu, 29 Aug 2019 19:41:22 -0400 Subject: [PATCH 046/202] Tweaking Missed Command --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 29872fbcb2b..ce44ae84fe0 100644 --- a/Makefile +++ b/Makefile @@ -42,7 +42,7 @@ DOCKER_EXTRA_OPTIONS ?= DEBUG_ENABLE ?= false ifneq ($(COVERAGE_ENABLE),false) - CODECEPT_OPTIONS := --coverage --coverage-html + CODECEPT_COVERAGE_OPTIONS := --coverage --coverage-html endif APP_DIRECTORY ?= /app @@ -180,4 +180,4 @@ codecept-build: CODECEPT_COMMAND=build codecept-build: codecept codecept: ./vendor/codeception/codeception/codecept ext/modules/phalcon.so - $(DOCKER_COMMAND) php $(PHP_ARGS) $(PHP_EXTRA_ARGS) ./vendor/codeception/codeception/codecept $(CODECEPT_COMMAND) $(CODECEPT_OPTIONS) $(CODECEPT_EXTRA_OPTIONS) + $(DOCKER_COMMAND) php $(PHP_ARGS) $(PHP_EXTRA_ARGS) ./vendor/codeception/codeception/codecept $(CODECEPT_COMMAND) $(CODECEPT_OPTIONS) $(CODECEPT_EXTRA_OPTIONS) $(CODECEPT_COVERAGE_OPTIONS) From f2b744555d9a6bcd6979c285d46958e2bc98bc10 Mon Sep 17 00:00:00 2001 From: Ian Hu Date: Fri, 30 Aug 2019 15:21:58 +0800 Subject: [PATCH 047/202] Remove trailing semicolon The trailing semicolon makes the header field value syntactically incorrect, as no other parameter follows. Thus the header field should be ignored. from: @StudioMaX --- phalcon/Http/Response.zep | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phalcon/Http/Response.zep b/phalcon/Http/Response.zep index 9e347282620..d3680ce484a 100644 --- a/phalcon/Http/Response.zep +++ b/phalcon/Http/Response.zep @@ -567,10 +567,10 @@ class Response implements ResponseInterface, InjectionAwareInterface, EventsAwar } this->setRawHeader("Content-Description: File Transfer"); this->setRawHeader("Content-Type: application/octet-stream"); - this->setRawHeader("Content-Disposition: attachment; filename=" . basePathEncoded . ";"); + this->setRawHeader("Content-Disposition: attachment; filename=" . basePathEncoded); this->setRawHeader("Content-Transfer-Encoding: binary"); if basePathEncoding != "ASCII" { - this->setRawHeader("Content-Disposition: attachment; filename=" . basePathEncoded . "; filename*=". strtolower(basePathEncoding) . "''" . basePathEncoded . ";"); + this->setRawHeader("Content-Disposition: attachment; filename=" . basePathEncoded . "; filename*=". strtolower(basePathEncoding) . "''" . basePathEncoded); } } From 7a9e24111fd3819779dfe023661f00c9fe1355e5 Mon Sep 17 00:00:00 2001 From: Ian Hu Date: Fri, 30 Aug 2019 15:24:44 +0800 Subject: [PATCH 048/202] Avoid duplicate Content-Disposition --- phalcon/Http/Response.zep | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phalcon/Http/Response.zep b/phalcon/Http/Response.zep index d3680ce484a..a70d0e7374a 100644 --- a/phalcon/Http/Response.zep +++ b/phalcon/Http/Response.zep @@ -567,10 +567,11 @@ class Response implements ResponseInterface, InjectionAwareInterface, EventsAwar } this->setRawHeader("Content-Description: File Transfer"); this->setRawHeader("Content-Type: application/octet-stream"); - this->setRawHeader("Content-Disposition: attachment; filename=" . basePathEncoded); this->setRawHeader("Content-Transfer-Encoding: binary"); if basePathEncoding != "ASCII" { this->setRawHeader("Content-Disposition: attachment; filename=" . basePathEncoded . "; filename*=". strtolower(basePathEncoding) . "''" . basePathEncoded); + } else { + this->setRawHeader("Content-Disposition: attachment; filename=" . basePathEncoded); } } From 133c50bbebc147cf21b15ebd7106e6c42a22db6a Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Fri, 30 Aug 2019 15:04:20 +0300 Subject: [PATCH 049/202] Update CHANGELOG.md [ci skip] --- CHANGELOG-4.0.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG-4.0.md b/CHANGELOG-4.0.md index e01f3a36eb5..8f0c03c7e6f 100644 --- a/CHANGELOG-4.0.md +++ b/CHANGELOG-4.0.md @@ -13,6 +13,7 @@ - Fixed `Phalcon\Storage\Adapter\AbstractAdapter::initSerializer` to throw exception if `null === $this->serializerFactory && null === $this->serializer` [#14324](https://github.com/phalcon/cphalcon/issues/14324) - Fixed `Phalcon\Storage\Adapter\Redis::getAdapter()` to provide a persistent id for redis persistent connection [#14334](https://github.com/phalcon/cphalcon/issues/14334) - Fixed `Phalcon\Session\Adapter\Stream` to not override configured save path [#14265](https://github.com/phalcon/cphalcon/issues/14265) +- Fixed `Phalcon\Http\Response::setFileToSend` to properly handle non-ASCII filenames [#13919](https://github.com/phalcon/cphalcon/issues/13919) # [4.0.0-beta.2](https://github.com/phalcon/cphalcon/releases/tag/v4.0.0-beta.2) (2019-08-18) From acccf49e6af7a7cf1fe2ee39fe4affdfadeceb83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?hjx=E8=83=A1=E7=BB=A7=E7=BB=AD?= Date: Sun, 1 Sep 2019 11:39:02 +0800 Subject: [PATCH 050/202] filename as quoted-string, Additianal correction for #13919 #14333 --- phalcon/Http/Response.zep | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/phalcon/Http/Response.zep b/phalcon/Http/Response.zep index a91cffb7c0a..3b347d2b048 100644 --- a/phalcon/Http/Response.zep +++ b/phalcon/Http/Response.zep @@ -548,7 +548,6 @@ class Response implements ResponseInterface, InjectionAwareInterface, EventsAwar { var basePath; var basePathEncoding = "ASCII"; - var basePathEncoded; if typeof attachmentName != "string" { let basePath = Fs::basename(filePath); @@ -556,7 +555,6 @@ class Response implements ResponseInterface, InjectionAwareInterface, EventsAwar let basePath = attachmentName; } if attachment { - let basePathEncoded = rawurlencode(basePath); // mbstring is a non-default extension if function_exists("mb_detect_encoding") { let basePathEncoding = mb_detect_encoding( @@ -568,10 +566,16 @@ class Response implements ResponseInterface, InjectionAwareInterface, EventsAwar this->setRawHeader("Content-Description: File Transfer"); this->setRawHeader("Content-Type: application/octet-stream"); this->setRawHeader("Content-Transfer-Encoding: binary"); + // According RFC2231 section-7, non-ASCII header param must add a extended one to indicate charset if basePathEncoding != "ASCII" { - this->setRawHeader("Content-Disposition: attachment; filename=" . basePathEncoded . "; filename*=". strtolower(basePathEncoding) . "''" . basePathEncoded); + let basePath = rawurlencode(basePath); + this->setRawHeader("Content-Disposition: attachment; filename=" . basePath . "; filename*=". strtolower(basePathEncoding) . "''" . basePath); } else { - this->setRawHeader("Content-Disposition: attachment; filename=" . basePathEncoded); + // According RFC2045 section-5.1, header param value contains special chars must be as quoted-string + // Always quote value is accepted because the special chars is a large list + // According RFC822 appendix-D, CR "\" <"> must to be quoted in syntax rule of quoted-string + let basePath = addcslashes(basePath, "\15\17\\\""); + this->setRawHeader("Content-Disposition: attachment; filename=\"" . basePath . "\""); } } From 528bfc6d3b70c44e99ebb5169e5733c1b5d043a7 Mon Sep 17 00:00:00 2001 From: Anton Vasiliev Date: Sun, 1 Sep 2019 19:58:02 +0100 Subject: [PATCH 051/202] Fix exception message --- phalcon/Session/Adapter/Stream.zep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phalcon/Session/Adapter/Stream.zep b/phalcon/Session/Adapter/Stream.zep index a6ee4588066..45b59844af2 100644 --- a/phalcon/Session/Adapter/Stream.zep +++ b/phalcon/Session/Adapter/Stream.zep @@ -57,7 +57,7 @@ class Stream extends Noop } if unlikely !is_writable(path) { - throw new Exception("The save_path [" . path . "]is not writeable"); + throw new Exception("The savePath [" . path . "] is not writeable"); } let this->path = Str::dirSeparator(path); From 4d6d1ccece983e3e5eb250d5c8080ca068088b1b Mon Sep 17 00:00:00 2001 From: Anton Vasiliev Date: Mon, 2 Sep 2019 09:19:41 +0100 Subject: [PATCH 052/202] Update phalcon/Session/Adapter/Stream.zep Co-Authored-By: Serghei Iakovlev --- phalcon/Session/Adapter/Stream.zep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phalcon/Session/Adapter/Stream.zep b/phalcon/Session/Adapter/Stream.zep index 45b59844af2..f6fb1ac4a16 100644 --- a/phalcon/Session/Adapter/Stream.zep +++ b/phalcon/Session/Adapter/Stream.zep @@ -57,7 +57,7 @@ class Stream extends Noop } if unlikely !is_writable(path) { - throw new Exception("The savePath [" . path . "] is not writeable"); + throw new Exception("The session save path [" . path . "] is not writable"); } let this->path = Str::dirSeparator(path); From 87d258d274445de8b69ad0202a21ce464ce445f1 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Mon, 2 Sep 2019 12:16:30 -0400 Subject: [PATCH 053/202] Delete FUNDING.yml --- .github/FUNDING.yml | 1 - 1 file changed, 1 deletion(-) delete mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index 50569858553..00000000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1 +0,0 @@ -open_collective: phalcon From 001bcdfafb5ba3571d73c6820c45ac30672d0e51 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Mon, 2 Sep 2019 22:29:55 +0300 Subject: [PATCH 054/202] Fixed Phalcon\Security::getSessionToken return value --- CHANGELOG-4.0.md | 1 + phalcon/Security.zep | 12 ++++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG-4.0.md b/CHANGELOG-4.0.md index 8f0c03c7e6f..e5df949ac23 100644 --- a/CHANGELOG-4.0.md +++ b/CHANGELOG-4.0.md @@ -14,6 +14,7 @@ - Fixed `Phalcon\Storage\Adapter\Redis::getAdapter()` to provide a persistent id for redis persistent connection [#14334](https://github.com/phalcon/cphalcon/issues/14334) - Fixed `Phalcon\Session\Adapter\Stream` to not override configured save path [#14265](https://github.com/phalcon/cphalcon/issues/14265) - Fixed `Phalcon\Http\Response::setFileToSend` to properly handle non-ASCII filenames [#13919](https://github.com/phalcon/cphalcon/issues/13919) +- Fixed `Phalcon\Security::getSessionToken` return value [#14346](https://github.com/phalcon/cphalcon/issues/14346) # [4.0.0-beta.2](https://github.com/phalcon/cphalcon/releases/tag/v4.0.0-beta.2) (2019-08-18) diff --git a/phalcon/Security.zep b/phalcon/Security.zep index 4c8e1d75828..e6004b38569 100644 --- a/phalcon/Security.zep +++ b/phalcon/Security.zep @@ -101,7 +101,7 @@ class Security implements InjectionAwareInterface */ public function checkToken(var tokenKey = null, var tokenValue = null, bool destroyIfValid = true) -> bool { - var container, session, request, equals, userToken, knownToken; + var container, session, request, equals = false, userToken, knownToken; let container = this->container; @@ -142,6 +142,10 @@ class Security implements InjectionAwareInterface */ let knownToken = this->getRequestToken(); + if null === knownToken { + return false; + } + let equals = hash_equals(knownToken, userToken); /** @@ -238,7 +242,7 @@ class Security implements InjectionAwareInterface /** * Returns the value of the CSRF token for the current request. */ - public function getRequestToken() -> string + public function getRequestToken() -> string | null { if empty this->requestToken { return this->getSessionToken(); @@ -250,9 +254,9 @@ class Security implements InjectionAwareInterface /** * Returns the value of the CSRF token in session */ - public function getSessionToken() -> string + public function getSessionToken() -> string | null { - var container, session; + var container, session, tokenValue; let container = this->container; From 19c70c7a54d11b54303dbd139a39f37c96ad149c Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Mon, 2 Sep 2019 22:59:41 +0300 Subject: [PATCH 055/202] Add test for #14347, #14346 --- phalcon/Security.zep | 4 ++-- tests/unit/Security/GetRequestTokenCest.php | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/phalcon/Security.zep b/phalcon/Security.zep index e6004b38569..8de3a0e13a8 100644 --- a/phalcon/Security.zep +++ b/phalcon/Security.zep @@ -101,7 +101,7 @@ class Security implements InjectionAwareInterface */ public function checkToken(var tokenKey = null, var tokenValue = null, bool destroyIfValid = true) -> bool { - var container, session, request, equals = false, userToken, knownToken; + var container, session, request, equals, userToken, knownToken; let container = this->container; @@ -256,7 +256,7 @@ class Security implements InjectionAwareInterface */ public function getSessionToken() -> string | null { - var container, session, tokenValue; + var container, session; let container = this->container; diff --git a/tests/unit/Security/GetRequestTokenCest.php b/tests/unit/Security/GetRequestTokenCest.php index 1797d0a75dd..37e59756877 100644 --- a/tests/unit/Security/GetRequestTokenCest.php +++ b/tests/unit/Security/GetRequestTokenCest.php @@ -46,6 +46,26 @@ public function _after(UnitTester $I) } } + /** + * Tests Phalcon\Security :: getRequestToken() and getSessionToken() without session initialization + * + * @author Phalcon Team + * @since 2019-09-02 + */ + public function securityGetTokensWithoutSessionInitialization(UnitTester $I) + { + $I->wantToTest('Security - getRequestToken() and getSessionToken() without session initialization'); + + $this->startSession(); + + $container = $this->getDI(); + $security = new Security(); + $security->setDI($container); + + $I->assertNull($security->getSessionToken()); + $I->assertNull($security->getRequestToken()); + } + /** * Tests Phalcon\Security :: getRequestToken() and getSessionToken() * From 5198ff0a8f4c94816553d5925493d3135f77f517 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Mon, 2 Sep 2019 20:18:44 -0400 Subject: [PATCH 056/202] [#14346] - Added more checks for the di container Added checks for request/session Added optional services injection in the constructor --- phalcon/Security.zep | 148 ++++++++++++++++++++++++------------------- 1 file changed, 83 insertions(+), 65 deletions(-) diff --git a/phalcon/Security.zep b/phalcon/Security.zep index 8de3a0e13a8..75579d0b840 100644 --- a/phalcon/Security.zep +++ b/phalcon/Security.zep @@ -11,9 +11,10 @@ namespace Phalcon; use Phalcon\Di\DiInterface; +use Phalcon\Di\InjectionAwareInterface; +use Phalcon\Http\RequestInterface; use Phalcon\Security\Random; use Phalcon\Security\Exception; -use Phalcon\Di\InjectionAwareInterface; use Phalcon\Session\ManagerInterface as SessionInterface; /** @@ -57,12 +58,17 @@ class Security implements InjectionAwareInterface protected tokenValueSessionId = "$PHALCON/CSRF$"; protected workFactor = 8 { set, get }; + private localSession = null; + private localRequest = null; + /** * Phalcon\Security constructor */ - public function __construct() -> void + public function __construct( session = null, request) -> void { - let this->random = new Random(); + let this->random = new Random(), + this->localRequest = request, + this->localSession = session; } /** @@ -103,17 +109,9 @@ class Security implements InjectionAwareInterface { var container, session, request, equals, userToken, knownToken; - let container = this->container; - - if unlikely typeof container != "object" { - throw new Exception( - Exception::containerServiceNotFound("the 'session' service") - ); - } - - let session = container->getShared("session"); + let sesion = this->getLocalSession(); - if !tokenKey { + if likely session && !tokenKey { let tokenKey = session->get( this->tokenKeySessionId ); @@ -127,7 +125,7 @@ class Security implements InjectionAwareInterface } if !tokenValue { - let request = container->getShared("request"); + let request = this->getLocalRequest(); /** * We always check if the value is correct in post @@ -184,24 +182,18 @@ class Security implements InjectionAwareInterface */ public function destroyToken() -> { - var container, session; + var session; - let container = this->container; + let sesion = this->getLocalSession(); - if unlikely typeof container != "object" { - throw new Exception( - Exception::containerServiceNotFound("the 'session' service") - ); + if likely session { + session->remove(this->tokenKeySessionId); + session->remove(this->tokenValueSessionId); } - let session = container->getShared("session"); - - session->remove(this->tokenKeySessionId); - session->remove(this->tokenValueSessionId); - - let this->token = null; - let this->tokenKey = null; - let this->requestToken = null; + let this->token = null, + this->tokenKey = null, + this->requestToken = null; return this; } @@ -256,19 +248,15 @@ class Security implements InjectionAwareInterface */ public function getSessionToken() -> string | null { - var container, session; + var session; - let container = this->container; + let sesion = this->getLocalSession(); - if unlikely typeof container != "object" { - throw new Exception( - Exception::containerServiceNotFound("the 'session' service") - ); + if likely session { + return session->get(this->tokenValueSessionId); } - let session = container->getShared("session"); - - return session->get(this->tokenValueSessionId); + return null; } /** @@ -300,26 +288,21 @@ class Security implements InjectionAwareInterface */ public function getToken() -> string { - var container, session; + var session; if null === this->token { - let this->requestToken = this->getSessionToken(); - let this->token = this->random->base64Safe(this->numberBytes); + let this->requestToken = this->getSessionToken(), + this->token = this->random->base64Safe(this->numberBytes); + - let container = this->container; + let sesion = this->getLocalSession(); - if unlikely typeof container != "object" { - throw new Exception( - Exception::containerServiceNotFound("the 'session' service") + if likely session { + session->set( + this->tokenValueSessionId, + this->token ); } - - let session = container->getShared("session"); - - session->set( - this->tokenValueSessionId, - this->token - ); } return this->token; @@ -331,25 +314,18 @@ class Security implements InjectionAwareInterface */ public function getTokenKey() -> string { - var container, session; + var session; if null === this->tokenKey { - let container = this->container; + let sesion = this->getLocalSession(); - if unlikely typeof container != "object" { - throw new Exception( - Exception::containerServiceNotFound("the 'session' service") + if likely session { + let this->tokenKey = this->random->base64Safe(this->numberBytes); + session->set( + this->tokenKeySessionId, + this->tokenKey ); } - - let this->tokenKey = this->random->base64Safe(this->numberBytes); - - let session = container->getShared("session"); - - session->set( - this->tokenKeySessionId, - this->tokenKey - ); } return this->tokenKey; @@ -523,4 +499,46 @@ class Security implements InjectionAwareInterface return this; } + + private function getLocalRequest() -> | null + { + var container, request; + + let request = null, + container = this->container; + if unlikely typeof container != "object" { + throw new Exception( + Exception::containerServiceNotFound("the 'request' service") + ); + } + + if this->localRequest { + let request = this->localRequest; + } else if container->has("request") { + let request = container->getShared("request"); + } + + return request; + } + + private function getLocalSession() -> | null + { + var container, session; + + let session = null, + container = this->container; + if unlikely typeof container != "object" { + throw new Exception( + Exception::containerServiceNotFound("the 'session' service") + ); + } + + if this->localSession { + let session = this->localSession; + } else if container->has("session") { + let session = container->getShared("session"); + } + + return session; + } } From ee063904fef86bb407f777396646fa14577f9acd Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Mon, 2 Sep 2019 20:23:15 -0400 Subject: [PATCH 057/202] [#14346] - Minor adjustments --- phalcon/Security.zep | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/phalcon/Security.zep b/phalcon/Security.zep index 75579d0b840..35b7cc99239 100644 --- a/phalcon/Security.zep +++ b/phalcon/Security.zep @@ -502,43 +502,45 @@ class Security implements InjectionAwareInterface private function getLocalRequest() -> | null { - var container, request; + var container; - let request = null, - container = this->container; + if this->localRequest { + return this->localRequest; + } + + let container = this->container; if unlikely typeof container != "object" { throw new Exception( Exception::containerServiceNotFound("the 'request' service") ); } - if this->localRequest { - let request = this->localRequest; - } else if container->has("request") { - let request = container->getShared("request"); + if likely container->has("request") { + return container->getShared("request"); } - return request; + return null; } private function getLocalSession() -> | null { - var container, session; + var container; - let session = null, - container = this->container; + if this->localSession { + return this->localSession; + } + + let container = this->container; if unlikely typeof container != "object" { throw new Exception( Exception::containerServiceNotFound("the 'session' service") ); } - if this->localSession { - let session = this->localSession; - } else if container->has("session") { - let session = container->getShared("session"); + if likely container->has("session") { + return container->getShared("session"); } - return session; + return null; } } From 4168c3931778fe511c5c1c2fb7e04e3e87d84629 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Mon, 2 Sep 2019 20:29:55 -0400 Subject: [PATCH 058/202] [#14346] - Corrected typo --- phalcon/Security.zep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phalcon/Security.zep b/phalcon/Security.zep index 35b7cc99239..5378c25e5f4 100644 --- a/phalcon/Security.zep +++ b/phalcon/Security.zep @@ -184,7 +184,7 @@ class Security implements InjectionAwareInterface { var session; - let sesion = this->getLocalSession(); + let session = this->getLocalSession(); if likely session { session->remove(this->tokenKeySessionId); From a26e6c4e72246469e416072f7ff91483f31d0091 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Mon, 2 Sep 2019 20:43:06 -0400 Subject: [PATCH 059/202] [#14346] - More typo corrections --- phalcon/Security.zep | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/phalcon/Security.zep b/phalcon/Security.zep index 5378c25e5f4..3fee6e97dfb 100644 --- a/phalcon/Security.zep +++ b/phalcon/Security.zep @@ -107,9 +107,9 @@ class Security implements InjectionAwareInterface */ public function checkToken(var tokenKey = null, var tokenValue = null, bool destroyIfValid = true) -> bool { - var container, session, request, equals, userToken, knownToken; + var session, request, equals, userToken, knownToken; - let sesion = this->getLocalSession(); + let session = this->getLocalSession(); if likely session && !tokenKey { let tokenKey = session->get( @@ -250,7 +250,7 @@ class Security implements InjectionAwareInterface { var session; - let sesion = this->getLocalSession(); + let session = this->getLocalSession(); if likely session { return session->get(this->tokenValueSessionId); @@ -295,7 +295,7 @@ class Security implements InjectionAwareInterface this->token = this->random->base64Safe(this->numberBytes); - let sesion = this->getLocalSession(); + let session = this->getLocalSession(); if likely session { session->set( @@ -317,7 +317,7 @@ class Security implements InjectionAwareInterface var session; if null === this->tokenKey { - let sesion = this->getLocalSession(); + let session = this->getLocalSession(); if likely session { let this->tokenKey = this->random->base64Safe(this->numberBytes); From cfd17d9b32eeef26bf4c32c1ef05671ed71ff96b Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Mon, 2 Sep 2019 20:56:21 -0400 Subject: [PATCH 060/202] [#14346] - Corrected constructor --- phalcon/Security.zep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phalcon/Security.zep b/phalcon/Security.zep index 3fee6e97dfb..6a83ba88a2f 100644 --- a/phalcon/Security.zep +++ b/phalcon/Security.zep @@ -64,7 +64,7 @@ class Security implements InjectionAwareInterface /** * Phalcon\Security constructor */ - public function __construct( session = null, request) -> void + public function __construct( session = null, request = null) -> void { let this->random = new Random(), this->localRequest = request, From 9839ffe2c921f0d7ee19e677728c93c79563339b Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Mon, 2 Sep 2019 21:54:13 -0400 Subject: [PATCH 061/202] [#14346] - Added AbstractDiAware class; Refactored components to use it --- phalcon/Assets/Manager.zep | 25 +----------- phalcon/Cli/Router.zep | 22 +--------- phalcon/Di/AbstractDiAware.zep | 44 ++++++++++++++++++++ phalcon/Dispatcher/AbstractDispatcher.zep | 22 +--------- phalcon/Html/Tag.zep | 25 +----------- phalcon/Http/Cookie.zep | 24 ++--------- phalcon/Http/Request.zep | 25 ++---------- phalcon/Http/Response/Cookies.zep | 22 +--------- phalcon/Mvc/Model.zep | 22 +--------- phalcon/Mvc/Model/Manager.zep | 22 +--------- phalcon/Mvc/Model/MetaData.zep | 22 +--------- phalcon/Mvc/Model/Query/Builder.zep | 25 ++---------- phalcon/Mvc/Model/Transaction/Manager.zep | 22 +--------- phalcon/Mvc/Router.zep | 29 +++----------- phalcon/Security.zep | 21 +--------- phalcon/Session/Manager.zep | 25 +----------- phalcon/Url.zep | 49 ++++++++++------------- 17 files changed, 103 insertions(+), 343 deletions(-) create mode 100644 phalcon/Di/AbstractDiAware.zep diff --git a/phalcon/Assets/Manager.zep b/phalcon/Assets/Manager.zep index e5b1ac10a11..ec086711c54 100644 --- a/phalcon/Assets/Manager.zep +++ b/phalcon/Assets/Manager.zep @@ -19,22 +19,17 @@ use Phalcon\Assets\Asset\Css as AssetCss; use Phalcon\Assets\Inline\Css as InlineCss; use Phalcon\Assets\Inline\Js as InlineJs; use Phalcon\Di\DiInterface; -use Phalcon\Di\InjectionAwareInterface; +use Phalcon\Di\AbstractDiAware; /** * Phalcon\Assets\Manager * * Manages collections of CSS/Javascript assets */ -class Manager implements InjectionAwareInterface +class Manager extends AbstractDiAware { protected collections; - /** - * @var DiInterface - */ - protected container; - /** * Options configure * @var array @@ -303,14 +298,6 @@ class Manager implements InjectionAwareInterface return collection; } - /** - * Returns the internal dependency injector - */ - public function getDI() -> - { - return this->container; - } - /** * Returns the CSS collection of assets */ @@ -932,14 +919,6 @@ class Manager implements InjectionAwareInterface return this; } - /** - * Sets the dependency injector - */ - public function setDI( container) -> void - { - let this->container = container; - } - /** * Sets the manager options */ diff --git a/phalcon/Cli/Router.zep b/phalcon/Cli/Router.zep index d9a61cc31d4..fcd6ba0d8a5 100644 --- a/phalcon/Cli/Router.zep +++ b/phalcon/Cli/Router.zep @@ -11,7 +11,7 @@ namespace Phalcon\Cli; use Phalcon\Di\DiInterface; -use Phalcon\Di\InjectionAwareInterface; +use Phalcon\Di\AbstractDiAware; use Phalcon\Cli\Router\Route; use Phalcon\Cli\Router\Exception; @@ -35,12 +35,10 @@ use Phalcon\Cli\Router\Exception; * echo $router->getTaskName(); *``` */ -class Router implements InjectionAwareInterface +class Router extends AbstractDiAware { protected action; - protected container; - protected defaultAction = null; protected defaultModule = null; @@ -129,14 +127,6 @@ class Router implements InjectionAwareInterface return this->action; } - /** - * Returns the internal dependency injector - */ - public function getDI() -> - { - return this->container; - } - /** * Returns the route that matches the handled URI */ @@ -492,14 +482,6 @@ class Router implements InjectionAwareInterface let this->defaultTask = taskName; } - /** - * Sets the dependency injector - */ - public function setDI( container) -> void - { - let this->container = container; - } - /** * Checks if the router matches any of the defined routes */ diff --git a/phalcon/Di/AbstractDiAware.zep b/phalcon/Di/AbstractDiAware.zep new file mode 100644 index 00000000000..011b537da13 --- /dev/null +++ b/phalcon/Di/AbstractDiAware.zep @@ -0,0 +1,44 @@ + +/** + * This file is part of the Phalcon Framework. + * + * (c) Phalcon Team + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ + +namespace Phalcon\Di; + +use Phalcon\Di; +use Phalcon\Di\DiInterface; +use Phalcon\Di\InjectionAwareInterface; + +/** + * This abstract class offers common access to the DI in a class + */ +abstract class AbstractDiAware implements InjectionAwareInterface +{ + /** + * Dependency Injector + * + * @var DiInterface + */ + protected container; + + /** + * Returns the internal dependency injector + */ + public function getDI() -> + { + return this->container; + } + + /** + * Sets the dependency injector + */ + public function setDI( container) -> void + { + let this->container = container; + } +} diff --git a/phalcon/Dispatcher/AbstractDispatcher.zep b/phalcon/Dispatcher/AbstractDispatcher.zep index 806ba8a0858..dedc7b33dc6 100644 --- a/phalcon/Dispatcher/AbstractDispatcher.zep +++ b/phalcon/Dispatcher/AbstractDispatcher.zep @@ -12,7 +12,7 @@ namespace Phalcon\Dispatcher; use Exception; use Phalcon\Di\DiInterface; -use Phalcon\Di\InjectionAwareInterface; +use Phalcon\Di\AbstractDiAware; use Phalcon\Dispatcher\DispatcherInterface; use Phalcon\Dispatcher\Exception as PhalconException; use Phalcon\Events\EventsAwareInterface; @@ -26,7 +26,7 @@ use Phalcon\Mvc\Model\BinderInterface; * This class can't be instantiated directly, you can use it to create your own * dispatchers. */ -abstract class AbstractDispatcher implements DispatcherInterface, InjectionAwareInterface, EventsAwareInterface +abstract class AbstractDispatcher extends AbstractDiAware implements DispatcherInterface, EventsAwareInterface { protected activeHandler; @@ -47,8 +47,6 @@ abstract class AbstractDispatcher implements DispatcherInterface, InjectionAware */ protected camelCaseMap = []; - protected container; - /** * @var string */ @@ -724,14 +722,6 @@ abstract class AbstractDispatcher implements DispatcherInterface, InjectionAware return this->defaultNamespace; } - /** - * Returns the internal dependency injector - */ - public function getDI() -> - { - return this->container; - } - /** * Returns the internal event manager */ @@ -860,14 +850,6 @@ abstract class AbstractDispatcher implements DispatcherInterface, InjectionAware let this->defaultNamespace = namespaceName; } - /** - * Sets the dependency injector - */ - public function setDI( container) -> void - { - let this->container = container; - } - /** * Possible class name that will be located to dispatch the request */ diff --git a/phalcon/Html/Tag.zep b/phalcon/Html/Tag.zep index 01e779b5878..62a1f20774c 100644 --- a/phalcon/Html/Tag.zep +++ b/phalcon/Html/Tag.zep @@ -11,7 +11,7 @@ namespace Phalcon\Html; use Phalcon\Di\DiInterface; -use Phalcon\Di\InjectionAwareInterface; +use Phalcon\Di\AbstractDiAware; use Phalcon\Escaper; use Phalcon\Escaper\EscaperInterface; use Phalcon\Helper\Arr; @@ -25,13 +25,8 @@ use Phalcon\Mvc\Model\ResultsetInterface; * Phalcon\Html\Tag is designed to simplify building of HTML tags. It provides a * set of helpers to dynamically generate HTML. */ -class Tag implements InjectionAwareInterface +class Tag extends AbstractDiAware { - /** - * @var DiInterface - */ - protected container; - /** * @var array */ @@ -369,14 +364,6 @@ class Tag implements InjectionAwareInterface return output; } - /** - * Returns the internal dependency injector - */ - public function getDI() -> - { - return this->container; - } - /** * Get the document type declaration of content. If the docType has not * been set properly, XHTML5 is returned @@ -1341,14 +1328,6 @@ class Tag implements InjectionAwareInterface return this; } - /** - * Sets the dependency injector - */ - public function setDI( container) -> void - { - let this->container = container; - } - /** * Set the document type of content */ diff --git a/phalcon/Http/Cookie.zep b/phalcon/Http/Cookie.zep index 874e8d352c0..c518f409a5d 100644 --- a/phalcon/Http/Cookie.zep +++ b/phalcon/Http/Cookie.zep @@ -11,21 +11,19 @@ namespace Phalcon\Http; use Phalcon\Di\DiInterface; +use Phalcon\Di\AbstractDiAware; use Phalcon\Crypt\CryptInterface; -use Phalcon\Di\InjectionAwareInterface; +use Phalcon\Crypt\Mismatch; use Phalcon\Filter\FilterInterface; use Phalcon\Http\Response\Exception; use Phalcon\Http\Cookie\Exception as CookieException; -use Phalcon\Crypt\Mismatch; use Phalcon\Session\ManagerInterface as SessionManagerInterface; /** * Provide OO wrappers to manage a HTTP cookie. */ -class Cookie implements CookieInterface, InjectionAwareInterface +class Cookie extends AbstractDiAware implements CookieInterface { - protected container; - protected domain; protected expire; @@ -127,14 +125,6 @@ class Cookie implements CookieInterface, InjectionAwareInterface ); } - /** - * Returns the internal dependency injector - */ - public function getDI() -> - { - return this->container; - } - /** * Returns the domain that the cookie is available to */ @@ -468,14 +458,6 @@ class Cookie implements CookieInterface, InjectionAwareInterface return this; } - /** - * Sets the dependency injector - */ - public function setDI( container) -> void - { - let this->container = container; - } - /** * Sets the domain that the cookie is available to */ diff --git a/phalcon/Http/Request.zep b/phalcon/Http/Request.zep index 58ef166cfb3..ee2158222fb 100644 --- a/phalcon/Http/Request.zep +++ b/phalcon/Http/Request.zep @@ -11,12 +11,12 @@ namespace Phalcon\Http; use Phalcon\Di\DiInterface; +use Phalcon\Di\AbstractDiAware; +use Phalcon\Events\ManagerInterface; use Phalcon\Filter\FilterInterface; use Phalcon\Http\Request\File; use Phalcon\Http\Request\FileInterface; use Phalcon\Http\Request\Exception; -use Phalcon\Events\ManagerInterface; -use Phalcon\Di\InjectionAwareInterface; use UnexpectedValueException; use stdClass; @@ -46,10 +46,8 @@ use stdClass; * $request->getLanguages(); *``` */ -class Request implements RequestInterface, InjectionAwareInterface +class Request extends AbstractDiAware implements RequestInterface { - private container; - private filterService; /** @@ -213,15 +211,6 @@ class Request implements RequestInterface, InjectionAwareInterface return contentType; } - - /** - * Returns the internal dependency injector - */ - public function getDI() -> - { - return this->container; - } - /** * Gets auth info accepted by the browser/client from * $_SERVER["PHP_AUTH_DIGEST"] @@ -1162,14 +1151,6 @@ class Request implements RequestInterface, InjectionAwareInterface return false; } - /** - * Sets the dependency injector - */ - public function setDI( container) -> void - { - let this->container = container; - } - /** * Sets automatic sanitizers/filters for a particular field and for * particular methods diff --git a/phalcon/Http/Response/Cookies.zep b/phalcon/Http/Response/Cookies.zep index e5e8b3dc5a9..d3fa5a38d8c 100644 --- a/phalcon/Http/Response/Cookies.zep +++ b/phalcon/Http/Response/Cookies.zep @@ -11,9 +11,9 @@ namespace Phalcon\Http\Response; use Phalcon\Di\DiInterface; +use Phalcon\Di\AbstractDiAware; use Phalcon\Http\CookieInterface; use Phalcon\Http\Response\CookiesInterface; -use Phalcon\Di\InjectionAwareInterface; use Phalcon\Http\Cookie\Exception; /** @@ -64,10 +64,8 @@ use Phalcon\Http\Cookie\Exception; * ); * ``` */ -class Cookies implements CookiesInterface, InjectionAwareInterface +class Cookies extends AbstractDiAware implements CookiesInterface { - protected container; - protected cookies = []; protected registered = false; @@ -160,14 +158,6 @@ class Cookies implements CookiesInterface, InjectionAwareInterface return this->cookies; } - /** - * Returns the internal dependency injector - */ - public function getDI() -> - { - return this->container; - } - /** * Check if a cookie is defined in the bag or exists in the _COOKIE * superglobal @@ -312,14 +302,6 @@ class Cookies implements CookiesInterface, InjectionAwareInterface return this; } - /** - * Sets the dependency injector - */ - public function setDI( container) -> void - { - let this->container = container; - } - /** * Sets the cookie's sign key. * diff --git a/phalcon/Mvc/Model.zep b/phalcon/Mvc/Model.zep index 2824faf6dae..544058d574e 100644 --- a/phalcon/Mvc/Model.zep +++ b/phalcon/Mvc/Model.zep @@ -15,7 +15,7 @@ use Phalcon\Db\Column; use Phalcon\Db\DialectInterface; use Phalcon\Db\Enum; use Phalcon\Db\RawValue; -use Phalcon\Di\InjectionAwareInterface; +use Phalcon\Di\AbstractDiAware; use Phalcon\Di; use Phalcon\Di\DiInterface; use Phalcon\Events\ManagerInterface as EventsManagerInterface; @@ -81,7 +81,7 @@ use Serializable; * } * ``` */ -abstract class Model implements EntityInterface, ModelInterface, ResultInterface, InjectionAwareInterface, Serializable, JsonSerializable +abstract class Model extends AbstractDiAware implements EntityInterface, ModelInterface, ResultInterface, Serializable, JsonSerializable { const DIRTY_STATE_DETACHED = 2; const DIRTY_STATE_PERSISTENT = 0; @@ -92,8 +92,6 @@ abstract class Model implements EntityInterface, ModelInterface, ResultInterface const OP_UPDATE = 2; const TRANSACTION_INDEX = "transaction"; - protected container; - protected dirtyState = 1; protected dirtyRelated = []; @@ -1591,14 +1589,6 @@ abstract class Model implements EntityInterface, ModelInterface, ResultInterface return this->dirtyState; } - /** - * Returns the dependency injection container - */ - public function getDI() -> - { - return this->container; - } - /** * Returns the custom events manager */ @@ -2544,14 +2534,6 @@ abstract class Model implements EntityInterface, ModelInterface, ResultInterface return this; } - /** - * Sets the dependency injection container - */ - public function setDI( container) -> void - { - let this->container = container; - } - /** * Sets a custom events manager */ diff --git a/phalcon/Mvc/Model/Manager.zep b/phalcon/Mvc/Model/Manager.zep index 28ffa344bd3..0779fb8dcf5 100644 --- a/phalcon/Mvc/Model/Manager.zep +++ b/phalcon/Mvc/Model/Manager.zep @@ -11,6 +11,7 @@ namespace Phalcon\Mvc\Model; use Phalcon\Di\DiInterface; +use Phalcon\Di\AbstractDiAware; use Phalcon\Mvc\Model\Relation; use Phalcon\Mvc\Model\RelationInterface; use Phalcon\Mvc\Model\Exception; @@ -18,7 +19,6 @@ use Phalcon\Mvc\ModelInterface; use Phalcon\Db\Adapter\AdapterInterface; use Phalcon\Mvc\Model\ResultsetInterface; use Phalcon\Mvc\Model\ManagerInterface; -use Phalcon\Di\InjectionAwareInterface; use Phalcon\Events\EventsAwareInterface; use Phalcon\Mvc\Model\Query; use Phalcon\Mvc\Model\QueryInterface; @@ -52,7 +52,7 @@ use Phalcon\Events\ManagerInterface as EventsManagerInterface; * $robot = new Robots($di); * ``` */ -class Manager implements ManagerInterface, InjectionAwareInterface, EventsAwareInterface +class Manager extends AbstractDiAware implements ManagerInterface, EventsAwareInterface { protected aliases = []; @@ -71,8 +71,6 @@ class Manager implements ManagerInterface, InjectionAwareInterface, EventsAwareI */ protected belongsToSingle = []; - protected container; - protected customEventsManager = []; /** @@ -146,22 +144,6 @@ class Manager implements ManagerInterface, InjectionAwareInterface, EventsAwareI */ protected reusable = []; - /** - * Sets the DependencyInjector container - */ - public function setDI( container) -> void - { - let this->container = container; - } - - /** - * Returns the DependencyInjector container - */ - public function getDI() -> - { - return this->container; - } - /** * Sets a global events manager */ diff --git a/phalcon/Mvc/Model/MetaData.zep b/phalcon/Mvc/Model/MetaData.zep index a8eb22c524c..7430d8dd546 100644 --- a/phalcon/Mvc/Model/MetaData.zep +++ b/phalcon/Mvc/Model/MetaData.zep @@ -11,9 +11,9 @@ namespace Phalcon\Mvc\Model; use Phalcon\Di\DiInterface; +use Phalcon\Di\AbstractDiAware; use Phalcon\Mvc\ModelInterface; use Phalcon\Mvc\Model\Exception; -use Phalcon\Di\InjectionAwareInterface; use Phalcon\Mvc\Model\MetaData\Strategy\Introspection; use Phalcon\Mvc\Model\MetaData\StrategyInterface; use Phalcon\Cache\Adapter\AdapterInterface as CacheAdapterInterface; @@ -38,7 +38,7 @@ use Phalcon\Cache\Adapter\AdapterInterface as CacheAdapterInterface; * print_r($attributes); * ``` */ -abstract class MetaData implements InjectionAwareInterface, MetaDataInterface +abstract class MetaData extends AbstractDiAware implements MetaDataInterface { const MODELS_ATTRIBUTES = 0; const MODELS_AUTOMATIC_DEFAULT_INSERT = 10; @@ -64,8 +64,6 @@ abstract class MetaData implements InjectionAwareInterface, MetaDataInterface protected columnMap; - protected container; - protected metaData = []; protected strategy; @@ -274,14 +272,6 @@ abstract class MetaData implements InjectionAwareInterface, MetaDataInterface return data; } - /** - * Returns the DependencyInjector container - */ - public function getDI() -> - { - return this->container; - } - /** * Returns attributes allow empty strings * @@ -688,14 +678,6 @@ abstract class MetaData implements InjectionAwareInterface, MetaDataInterface ); } - /** - * Sets the DependencyInjector container - */ - public function setDI( container) -> void - { - let this->container = container; - } - /** * Set the meta-data extraction strategy */ diff --git a/phalcon/Mvc/Model/Query/Builder.zep b/phalcon/Mvc/Model/Query/Builder.zep index ce492395d6b..b9513058cdb 100644 --- a/phalcon/Mvc/Model/Query/Builder.zep +++ b/phalcon/Mvc/Model/Query/Builder.zep @@ -11,11 +11,11 @@ namespace Phalcon\Mvc\Model\Query; use Phalcon\Di; -use Phalcon\Db\Column; +use Phalcon\Di\AbstractDiAware; use Phalcon\Di\DiInterface; +use Phalcon\Db\Column; use Phalcon\Helper\Arr; use Phalcon\Mvc\Model\Exception; -use Phalcon\Di\InjectionAwareInterface; use Phalcon\Mvc\Model\QueryInterface; use Phalcon\Mvc\Model\Query\BuilderInterface; @@ -55,13 +55,12 @@ use Phalcon\Mvc\Model\Query\BuilderInterface; * $queryBuilder = new \Phalcon\Mvc\Model\Query\Builder($params); *``` */ -class Builder implements BuilderInterface, InjectionAwareInterface +class Builder extends AbstractDiAware implements BuilderInterface { protected bindParams; protected bindTypes; protected columns; protected conditions; - protected container; protected distinct; protected forUpdate; @@ -500,14 +499,6 @@ class Builder implements BuilderInterface, InjectionAwareInterface return this->columns; } - /** - * Returns the DependencyInjector container - */ - public function getDI() -> - { - return this->container; - } - /** * Returns SELECT DISTINCT / SELECT ALL flag */ @@ -1423,16 +1414,6 @@ class Builder implements BuilderInterface, InjectionAwareInterface return this; } - /** - * Sets the DependencyInjector container - */ - public function setDI( container) -> - { - let this->container = container; - - return this; - } - /** * Sets the query WHERE conditions * diff --git a/phalcon/Mvc/Model/Transaction/Manager.zep b/phalcon/Mvc/Model/Transaction/Manager.zep index 8780c835b74..80fdb73fb89 100644 --- a/phalcon/Mvc/Model/Transaction/Manager.zep +++ b/phalcon/Mvc/Model/Transaction/Manager.zep @@ -11,8 +11,8 @@ namespace Phalcon\Mvc\Model\Transaction; use Phalcon\Di; +use Phalcon\Di\AbstractDiAware; use Phalcon\Di\DiInterface; -use Phalcon\Di\InjectionAwareInterface; use Phalcon\Mvc\Model\Transaction\ManagerInterface; use Phalcon\Mvc\Model\Transaction\Exception; use Phalcon\Mvc\Model\Transaction; @@ -65,10 +65,8 @@ use Phalcon\Mvc\Model\TransactionInterface; * } *``` */ -class Manager implements ManagerInterface, InjectionAwareInterface +class Manager extends AbstractDiAware implements ManagerInterface { - protected container; - protected initialized = false; protected number = 0; @@ -166,14 +164,6 @@ class Manager implements ManagerInterface, InjectionAwareInterface return this->service; } - /** - * Returns the dependency injection container - */ - public function getDI() -> - { - return this->container; - } - /** * Create/Returns a new transaction or an existing one */ @@ -286,14 +276,6 @@ class Manager implements ManagerInterface, InjectionAwareInterface return this; } - /** - * Sets the dependency injection container - */ - public function setDI( container) -> void - { - let this->container = container; - } - /** * Set if the transaction manager must register a shutdown function to clean * up pendent transactions diff --git a/phalcon/Mvc/Router.zep b/phalcon/Mvc/Router.zep index 96847abd163..75c4d15a5de 100644 --- a/phalcon/Mvc/Router.zep +++ b/phalcon/Mvc/Router.zep @@ -11,14 +11,14 @@ namespace Phalcon\Mvc; use Phalcon\Di\DiInterface; -use Phalcon\Mvc\Router\Route; -use Phalcon\Mvc\Router\Exception; +use Phalcon\Di\AbstractDiAware; +use Phalcon\Events\EventsAwareInterface; +use Phalcon\Events\ManagerInterface; use Phalcon\Http\RequestInterface; +use Phalcon\Mvc\Router\Exception; use Phalcon\Mvc\Router\GroupInterface; +use Phalcon\Mvc\Router\Route; use Phalcon\Mvc\Router\RouteInterface; -use Phalcon\Di\InjectionAwareInterface; -use Phalcon\Events\ManagerInterface; -use Phalcon\Events\EventsAwareInterface; /** * Phalcon\Mvc\Router @@ -48,13 +48,12 @@ use Phalcon\Events\EventsAwareInterface; * echo $router->getControllerName(); * ``` */ -class Router implements InjectionAwareInterface, RouterInterface, EventsAwareInterface +class Router extends AbstractDiAware implements RouterInterface, EventsAwareInterface { const POSITION_FIRST = 0; const POSITION_LAST = 1; protected action = null; - protected container; protected controller = null; protected defaultAction; protected defaultController; @@ -268,14 +267,6 @@ class Router implements InjectionAwareInterface, RouterInterface, EventsAwareInt let this->routes = []; } - /** - * Returns the internal dependency injector - */ - public function getDI() -> - { - return this->container; - } - /** * Returns the internal event manager */ @@ -959,14 +950,6 @@ class Router implements InjectionAwareInterface, RouterInterface, EventsAwareInt ]; } - /** - * Sets the dependency injector - */ - public function setDI( container) -> void - { - let this->container = container; - } - /** * Sets the events manager */ diff --git a/phalcon/Security.zep b/phalcon/Security.zep index 6a83ba88a2f..288dea72ffc 100644 --- a/phalcon/Security.zep +++ b/phalcon/Security.zep @@ -11,7 +11,7 @@ namespace Phalcon; use Phalcon\Di\DiInterface; -use Phalcon\Di\InjectionAwareInterface; +use Phalcon\Di\AbstractDiAware; use Phalcon\Http\RequestInterface; use Phalcon\Security\Random; use Phalcon\Security\Exception; @@ -34,7 +34,7 @@ use Phalcon\Session\ManagerInterface as SessionInterface; * } *``` */ -class Security implements InjectionAwareInterface +class Security extends AbstractDiAware { const CRYPT_DEFAULT = 0; const CRYPT_BLOWFISH = 4; @@ -47,7 +47,6 @@ class Security implements InjectionAwareInterface const CRYPT_SHA512 = 9; const CRYPT_STD_DES = 1; - protected container; protected defaultHash; protected numberBytes = 16; protected random; @@ -206,14 +205,6 @@ class Security implements InjectionAwareInterface return this->defaultHash; } - /** - * Returns the internal dependency injector - */ - public function getDI() -> - { - return this->container; - } - /** * Returns a secure random number generator instance */ @@ -481,14 +472,6 @@ class Security implements InjectionAwareInterface return this; } - /** - * Sets the dependency injector - */ - public function setDI( container) -> void - { - let this->container = container; - } - /** * Sets a number of bytes to be generated by the openssl pseudo random * generator diff --git a/phalcon/Session/Manager.zep b/phalcon/Session/Manager.zep index 4022781b8f5..63416b0ec35 100644 --- a/phalcon/Session/Manager.zep +++ b/phalcon/Session/Manager.zep @@ -13,8 +13,8 @@ namespace Phalcon\Session; use InvalidArgumentException; use RuntimeException; use SessionHandlerInterface; +use Phalcon\DI\AbstractDiAware; use Phalcon\Di\DiInterface; -use Phalcon\DI\InjectionAwareInterface; use Phalcon\Helper\Arr; use Phalcon\Session\ManagerInterface; @@ -23,13 +23,8 @@ use Phalcon\Session\ManagerInterface; * * Session manager class */ -class Manager implements ManagerInterface, InjectionAwareInterface +class Manager extends AbstractDiAware implements ManagerInterface { - /** - * @var - */ - private container; - /** * @var |null */ @@ -132,14 +127,6 @@ class Manager implements ManagerInterface, InjectionAwareInterface return value; } - /** - * Returns the DependencyInjector container - */ - public function getDI() -> - { - return this->container; - } - /** * Returns the stored session handler */ @@ -250,14 +237,6 @@ class Manager implements ManagerInterface, InjectionAwareInterface _SESSION[uniqueKey] = value; } - /** - * Sets the DependencyInjector container - */ - public function setDI( container) -> void - { - let this->container = container; - } - /** * Set the handler for the session */ diff --git a/phalcon/Url.zep b/phalcon/Url.zep index 190959d6f49..9603a9b99f9 100644 --- a/phalcon/Url.zep +++ b/phalcon/Url.zep @@ -11,11 +11,11 @@ namespace Phalcon; use Phalcon\Di\DiInterface; -use Phalcon\Url\UrlInterface; -use Phalcon\Url\Exception; +use Phalcon\Di\AbstractDiAware; use Phalcon\Mvc\RouterInterface; use Phalcon\Mvc\Router\RouteInterface; -use Phalcon\Di\InjectionAwareInterface; +use Phalcon\Url\Exception; +use Phalcon\Url\UrlInterface; /** * This components helps in the generation of: URIs, URLs and Paths @@ -34,7 +34,7 @@ use Phalcon\Di\InjectionAwareInterface; * ); *``` */ -class Url implements UrlInterface, InjectionAwareInterface +class Url extends AbstractDiAware implements UrlInterface { /** * @var null | string @@ -47,17 +47,20 @@ class Url implements UrlInterface, InjectionAwareInterface protected basePath = null; /** - * @var + * @var | null */ - protected container; - - protected router; + protected router = null; /** * @var null | string */ protected staticBaseUri = null; + public function __construct( router = null) + { + let this->router = router; + } + /** * Generates a URL * @@ -119,12 +122,12 @@ class Url implements UrlInterface, InjectionAwareInterface ); } - let router = this->router; + let router = this->router; /** * Check if the router has not previously set */ - if typeof router != "object" { + if unlikely !router { let container = this->container; if unlikely typeof container != "object" { @@ -135,7 +138,15 @@ class Url implements UrlInterface, InjectionAwareInterface ); } - let router = container->getShared("router"), + if unlikely !container->has("router") { + throw new Exception( + Exception::containerServiceNotFound( + "the 'router' service" + ) + ); + } + + let router = container->getShared("router"), this->router = router; } @@ -216,14 +227,6 @@ class Url implements UrlInterface, InjectionAwareInterface return baseUri; } - /** - * Returns the DependencyInjector container - */ - public function getDI() -> - { - return this->container; - } - /** * Generates a URL for a static resource * @@ -299,14 +302,6 @@ class Url implements UrlInterface, InjectionAwareInterface return this; } - /** - * Sets the DependencyInjector container - */ - public function setDI( container) -> void - { - let this->container = container; - } - /** * Sets a prefix for all static URLs generated * From 285602d8dabf0506d5521df3507e06d41caecbdc Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Mon, 2 Sep 2019 22:12:12 -0400 Subject: [PATCH 062/202] [#14346] - Reverting some model classes --- phalcon/Mvc/Model/Manager.zep | 22 ++++++++++++++++++-- phalcon/Mvc/Model/MetaData.zep | 22 ++++++++++++++++++-- phalcon/Mvc/Model/Query/Builder.zep | 25 ++++++++++++++++++++--- phalcon/Mvc/Model/Transaction/Manager.zep | 22 ++++++++++++++++++-- 4 files changed, 82 insertions(+), 9 deletions(-) diff --git a/phalcon/Mvc/Model/Manager.zep b/phalcon/Mvc/Model/Manager.zep index 0779fb8dcf5..28ffa344bd3 100644 --- a/phalcon/Mvc/Model/Manager.zep +++ b/phalcon/Mvc/Model/Manager.zep @@ -11,7 +11,6 @@ namespace Phalcon\Mvc\Model; use Phalcon\Di\DiInterface; -use Phalcon\Di\AbstractDiAware; use Phalcon\Mvc\Model\Relation; use Phalcon\Mvc\Model\RelationInterface; use Phalcon\Mvc\Model\Exception; @@ -19,6 +18,7 @@ use Phalcon\Mvc\ModelInterface; use Phalcon\Db\Adapter\AdapterInterface; use Phalcon\Mvc\Model\ResultsetInterface; use Phalcon\Mvc\Model\ManagerInterface; +use Phalcon\Di\InjectionAwareInterface; use Phalcon\Events\EventsAwareInterface; use Phalcon\Mvc\Model\Query; use Phalcon\Mvc\Model\QueryInterface; @@ -52,7 +52,7 @@ use Phalcon\Events\ManagerInterface as EventsManagerInterface; * $robot = new Robots($di); * ``` */ -class Manager extends AbstractDiAware implements ManagerInterface, EventsAwareInterface +class Manager implements ManagerInterface, InjectionAwareInterface, EventsAwareInterface { protected aliases = []; @@ -71,6 +71,8 @@ class Manager extends AbstractDiAware implements ManagerInterface, EventsAwareIn */ protected belongsToSingle = []; + protected container; + protected customEventsManager = []; /** @@ -144,6 +146,22 @@ class Manager extends AbstractDiAware implements ManagerInterface, EventsAwareIn */ protected reusable = []; + /** + * Sets the DependencyInjector container + */ + public function setDI( container) -> void + { + let this->container = container; + } + + /** + * Returns the DependencyInjector container + */ + public function getDI() -> + { + return this->container; + } + /** * Sets a global events manager */ diff --git a/phalcon/Mvc/Model/MetaData.zep b/phalcon/Mvc/Model/MetaData.zep index 7430d8dd546..a8eb22c524c 100644 --- a/phalcon/Mvc/Model/MetaData.zep +++ b/phalcon/Mvc/Model/MetaData.zep @@ -11,9 +11,9 @@ namespace Phalcon\Mvc\Model; use Phalcon\Di\DiInterface; -use Phalcon\Di\AbstractDiAware; use Phalcon\Mvc\ModelInterface; use Phalcon\Mvc\Model\Exception; +use Phalcon\Di\InjectionAwareInterface; use Phalcon\Mvc\Model\MetaData\Strategy\Introspection; use Phalcon\Mvc\Model\MetaData\StrategyInterface; use Phalcon\Cache\Adapter\AdapterInterface as CacheAdapterInterface; @@ -38,7 +38,7 @@ use Phalcon\Cache\Adapter\AdapterInterface as CacheAdapterInterface; * print_r($attributes); * ``` */ -abstract class MetaData extends AbstractDiAware implements MetaDataInterface +abstract class MetaData implements InjectionAwareInterface, MetaDataInterface { const MODELS_ATTRIBUTES = 0; const MODELS_AUTOMATIC_DEFAULT_INSERT = 10; @@ -64,6 +64,8 @@ abstract class MetaData extends AbstractDiAware implements MetaDataInterface protected columnMap; + protected container; + protected metaData = []; protected strategy; @@ -272,6 +274,14 @@ abstract class MetaData extends AbstractDiAware implements MetaDataInterface return data; } + /** + * Returns the DependencyInjector container + */ + public function getDI() -> + { + return this->container; + } + /** * Returns attributes allow empty strings * @@ -678,6 +688,14 @@ abstract class MetaData extends AbstractDiAware implements MetaDataInterface ); } + /** + * Sets the DependencyInjector container + */ + public function setDI( container) -> void + { + let this->container = container; + } + /** * Set the meta-data extraction strategy */ diff --git a/phalcon/Mvc/Model/Query/Builder.zep b/phalcon/Mvc/Model/Query/Builder.zep index b9513058cdb..ce492395d6b 100644 --- a/phalcon/Mvc/Model/Query/Builder.zep +++ b/phalcon/Mvc/Model/Query/Builder.zep @@ -11,11 +11,11 @@ namespace Phalcon\Mvc\Model\Query; use Phalcon\Di; -use Phalcon\Di\AbstractDiAware; -use Phalcon\Di\DiInterface; use Phalcon\Db\Column; +use Phalcon\Di\DiInterface; use Phalcon\Helper\Arr; use Phalcon\Mvc\Model\Exception; +use Phalcon\Di\InjectionAwareInterface; use Phalcon\Mvc\Model\QueryInterface; use Phalcon\Mvc\Model\Query\BuilderInterface; @@ -55,12 +55,13 @@ use Phalcon\Mvc\Model\Query\BuilderInterface; * $queryBuilder = new \Phalcon\Mvc\Model\Query\Builder($params); *``` */ -class Builder extends AbstractDiAware implements BuilderInterface +class Builder implements BuilderInterface, InjectionAwareInterface { protected bindParams; protected bindTypes; protected columns; protected conditions; + protected container; protected distinct; protected forUpdate; @@ -499,6 +500,14 @@ class Builder extends AbstractDiAware implements BuilderInterface return this->columns; } + /** + * Returns the DependencyInjector container + */ + public function getDI() -> + { + return this->container; + } + /** * Returns SELECT DISTINCT / SELECT ALL flag */ @@ -1414,6 +1423,16 @@ class Builder extends AbstractDiAware implements BuilderInterface return this; } + /** + * Sets the DependencyInjector container + */ + public function setDI( container) -> + { + let this->container = container; + + return this; + } + /** * Sets the query WHERE conditions * diff --git a/phalcon/Mvc/Model/Transaction/Manager.zep b/phalcon/Mvc/Model/Transaction/Manager.zep index 80fdb73fb89..8780c835b74 100644 --- a/phalcon/Mvc/Model/Transaction/Manager.zep +++ b/phalcon/Mvc/Model/Transaction/Manager.zep @@ -11,8 +11,8 @@ namespace Phalcon\Mvc\Model\Transaction; use Phalcon\Di; -use Phalcon\Di\AbstractDiAware; use Phalcon\Di\DiInterface; +use Phalcon\Di\InjectionAwareInterface; use Phalcon\Mvc\Model\Transaction\ManagerInterface; use Phalcon\Mvc\Model\Transaction\Exception; use Phalcon\Mvc\Model\Transaction; @@ -65,8 +65,10 @@ use Phalcon\Mvc\Model\TransactionInterface; * } *``` */ -class Manager extends AbstractDiAware implements ManagerInterface +class Manager implements ManagerInterface, InjectionAwareInterface { + protected container; + protected initialized = false; protected number = 0; @@ -164,6 +166,14 @@ class Manager extends AbstractDiAware implements ManagerInterface return this->service; } + /** + * Returns the dependency injection container + */ + public function getDI() -> + { + return this->container; + } + /** * Create/Returns a new transaction or an existing one */ @@ -276,6 +286,14 @@ class Manager extends AbstractDiAware implements ManagerInterface return this; } + /** + * Sets the dependency injection container + */ + public function setDI( container) -> void + { + let this->container = container; + } + /** * Set if the transaction manager must register a shutdown function to clean * up pendent transactions From 61eade2fece11583db378dbc1c776c1082163211 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Tue, 3 Sep 2019 07:04:51 -0400 Subject: [PATCH 063/202] [#14346] - Updated the changelog --- CHANGELOG-4.0.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG-4.0.md b/CHANGELOG-4.0.md index e5df949ac23..af76b6b255f 100644 --- a/CHANGELOG-4.0.md +++ b/CHANGELOG-4.0.md @@ -2,6 +2,9 @@ ## Changed - Changed `Phalcon\Url::get` to use implementation behind `Phalcon\Helper\Str::reduceSlashes` to reduce slashes [#14331](https://github.com/phalcon/cphalcon/issues/14331) - Changed `Phalcon\Http\Headers\set()` to return self for a more fluent interface +- Changed `Phalcon\Assets\Manager`, `Phalcon\Cli\Router`, `Phalcon\Dispatcher\AbstractDispatcher`, `Phalcon\Html\Tag`, `Phalcon\Http\Cookie`, `Phalcon\Http\Request`, `Phalcon\Http\Response\Cookies`, `Phalcon\Mvc\Model`, `Phalcon\Mvc\Router`, `Phalcon\Security`, `Phalcon\Session\Manager` to use `Phalcon\Di\AbstractDiAware` for container functionality [#14351](https://github.com/phalcon/cphalcon/pull/14351) +- Changed `Phalcon\Security` to allow `session` and `request` in the constructor [#14351](https://github.com/phalcon/cphalcon/pull/14351) +- Changed `Phalcon\Session\Manager` to allow `router` in the constructor [#14351](https://github.com/phalcon/cphalcon/pull/14351) ## Fixed - Fixed `Phalcon\Helper\Str::includes` to return correct result [#14301](https://github.com/phalcon/cphalcon/issues/14301) From e30d10e40e4d178ab6a08562bd0534aa9cd69e18 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Wed, 4 Sep 2019 19:08:12 +0300 Subject: [PATCH 064/202] Cleaned up build on Travis CI [skip appveyor] --- .ci/after-failure.sh | 4 +- .ci/export-variables.sh | 8 ---- .ci/install-php-extensions.sh | 4 +- .ci/install-re2c.sh | 86 ----------------------------------- .ci/install-zephir.sh | 2 +- .ci/pear-setup.sh | 58 ----------------------- .travis.yml | 8 +--- 7 files changed, 7 insertions(+), 163 deletions(-) delete mode 100755 .ci/install-re2c.sh delete mode 100755 .ci/pear-setup.sh diff --git a/.ci/after-failure.sh b/.ci/after-failure.sh index df6e46c13b0..2f7baff6822 100755 --- a/.ci/after-failure.sh +++ b/.ci/after-failure.sh @@ -31,7 +31,7 @@ then fi # for some reason Ubuntu 18.04 on Travis CI doesn't install gdb -function install_gcc() { +function install_gdb() { if [ "${CI}" = "true" ] && [ "$(command -v gdb 2>/dev/null)" = "" ] then (>&1 echo "Install gdb...") @@ -40,7 +40,7 @@ function install_gcc() { } for i in /tmp/core.php.*; do - install_gcc + install_gdb (>&1 printf "Found core dump file: %s\\n\\n" "$i") gdb -q "$(phpenv which php)" "$i" <&1 echo 'Install apcu extension ...') printf "\\n" | pecl install --force apcu_bc 1> /dev/null diff --git a/.ci/install-re2c.sh b/.ci/install-re2c.sh deleted file mode 100755 index 44a89b12f55..00000000000 --- a/.ci/install-re2c.sh +++ /dev/null @@ -1,86 +0,0 @@ -#!/usr/bin/env bash -# -# This file is part of the Phalcon Framework. -# -# (c) Phalcon Team -# -# For the full copyright and license information, please view the -# LICENSE.txt file that was distributed with this source code. - -if [ -z ${RE2C_VERSION+x} ] -then - (>&2 echo "The RE2C_VERSION is unset.") - (>&2 echo "Aborting.") - exit 1 -fi - -if [ "${RE2C_VERSION}" == "system" ] -then - (>&2 echo "Use system re2c.") - (>&2 echo "Skip.") - exit 0 -fi - -pkgname=re2c -source="https://github.com/skvadrik/${pkgname}/releases/download/${RE2C_VERSION}/${pkgname}-${RE2C_VERSION}.tar.gz" -downloaddir="${HOME}/.cache/${pkgname}/${pkgname}-${RE2C_VERSION}" -prefix="${HOME}/.local/opt/${pkgname}/${pkgname}-${RE2C_VERSION}" -bindir="${prefix}/bin" - -if [ ! -f "${bindir}/re2c" ] -then - if [ ! -d "$(dirname "$downloaddir")" ] - then - mkdir -p "$(dirname "$downloaddir")" - fi - - cd "$(dirname "$downloaddir")" || exit 1 - - if [ ! -f "${pkgname}-${RE2C_VERSION}.tar.gz" ] - then - curl -sSL "$source" -o "${pkgname}-${RE2C_VERSION}.tar.gz" - fi - - if [ ! -f "${pkgname}-${RE2C_VERSION}.tar.gz" ] - then - (>&2 printf "Unable to locate %s-%s .tar.gz file.\\n" "$pkgname" "$RE2C_VERSION") - (>&2 echo "Stop.") - exit 1 - fi - - if [ ! -d "$downloaddir" ] - then - mkdir -p "$downloaddir" - tar -zxf "${pkgname}-${RE2C_VERSION}.tar.gz" - fi - - if [ ! -d "$downloaddir" ] - then - (>&2 echo "Unable to locate re2c source.") - (>&2 echo "Stop.") - exit 1 - fi - - if [ ! -d "$prefix" ] - then - mkdir -p "$prefix" - fi - - cd "$downloaddir" || exit 1 - ./configure --silent --prefix="${prefix}" - - make --silent -j"$(getconf _NPROCESSORS_ONLN)" - make --silent install -fi - -if [ ! -x "$bindir/re2c" ]; then - (>&2 echo "Unable to locate re2c executable.") - (>&2 echo "Stop.") - exit 1 -fi - -mkdir -p "$HOME/bin" -ln -s "$bindir/re2c" "$HOME/bin/re2c" - -re2c --version -exit 0 diff --git a/.ci/install-zephir.sh b/.ci/install-zephir.sh index f1657f4e4df..eece7bd30f2 100755 --- a/.ci/install-zephir.sh +++ b/.ci/install-zephir.sh @@ -20,7 +20,7 @@ $(phpenv which phpize) ./configure --silent --with-php-config="$(phpenv which php-config)" --enable-zephir_parser make --silent -j"$(getconf _NPROCESSORS_ONLN)" make --silent install -echo 'extension="zephir_parser.so"' > "$(phpenv root)/versions/$(phpenv version-name)/etc/conf.d/zephir_parser.ini" +echo 'extension="zephir_parser.so"' > "$(phpenv prefix)/etc/conf.d/zephir_parser.ini" # Install zephir if [[ ! $ZEPHIR_VERSION =~ ^(master|development)$ ]] diff --git a/.ci/pear-setup.sh b/.ci/pear-setup.sh deleted file mode 100755 index 92889c616d3..00000000000 --- a/.ci/pear-setup.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/usr/bin/env bash -# -# This file is part of the Phalcon Framework. -# -# (c) Phalcon Team -# -# For the full copyright and license information, please view the -# LICENSE.txt file that was distributed with this source code. - -# trace ERR through pipes -set -o pipefail - -# trace ERR through 'time command' and other functions -set -o errtrace - -# set -u : exit the script if you try to use an uninitialised variable -set -o nounset - -# set -e : exit the script if any statement returns a non-true return value -set -o errexit - -mkdir -p "$HOME/pear" - -mkdir -p "$(phpenv root)/versions/$(phpenv version-name)/etc/conf.d" -mkdir -p "$(phpenv root)/versions/$(phpenv version-name)/share/pear/docs" -mkdir -p "$(phpenv root)/versions/$(phpenv version-name)/share/pear/cfg" -mkdir -p "$(phpenv root)/versions/$(phpenv version-name)/share/pear/data" -mkdir -p "$(phpenv root)/versions/$(phpenv version-name)/share/pear/tests" -mkdir -p "$(phpenv root)/versions/$(phpenv version-name)/share/pear/www" -mkdir -p "$(phpenv root)/versions/$(phpenv version-name)/php/man" -mkdir -p "$(phpenv root)/versions/$(phpenv version-name)/etc/pearkeys" - -mkdir -p "$HOME/bin" - -# Travis CI ugly hack -ln -s "$(phpenv which php)" "$HOME/bin/php" -ln -s "$(phpenv which phpize)" "$HOME/bin/phpize" - -pear config-set auto_discover 1 -pear config-set preferred_state devel - -pear config-set php_bin "$(phpenv which php)" - -pear config-set download_dir "$HOME/pear" -pear config-set php_dir "$(phpenv root)/versions/$(phpenv version-name)/share/pear" -# shellcheck disable=SC2006 -pear config-set ext_dir "`$(phpenv which php-config) --extension-dir`" -pear config-set bin_dir "$(phpenv root)/versions/$(phpenv version-name)/bin" -pear config-set doc_dir "$(phpenv root)/versions/$(phpenv version-name)/share/pear/docs" -pear config-set cfg_dir "$(phpenv root)/versions/$(phpenv version-name)/share/pear/cfg" -pear config-set data_dir "$(phpenv root)/versions/$(phpenv version-name)/share/pear/data" -pear config-set test_dir "$(phpenv root)/versions/$(phpenv version-name)/share/pear/tests" -pear config-set www_dir "$(phpenv root)/versions/$(phpenv version-name)/share/pear/www" -pear config-set sig_keydir "$(phpenv root)/versions/$(phpenv version-name)/etc/pearkeys" -pear config-set man_dir "$(phpenv root)/versions/$(phpenv version-name)/php/man" -pear config-set php_ini "$(phpenv root)/versions/$(phpenv version-name)/etc/php.ini" - -pecl channel-update pecl.php.net || true diff --git a/.travis.yml b/.travis.yml index bf4fe5b94ac..f2bc3e6ef7c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,8 +27,6 @@ cache: timeout: 604800 directories: - ${HOME}/.composer/cache - - ${HOME}/pear - - ${HOME}/.local/opt services: - mysql @@ -42,7 +40,6 @@ env: - CC="gcc" - ZEPHIR_VERSION="0.12.2" - ZEPHIR_PARSER_VERSION="v1.3.1" - - RE2C_VERSION="1.1.1" - REPORT_COVERAGE=1 - PATH="${HOME}/.composer/vendor/bin:${PATH}" - TRAVIS_COMMIT_LOG="$(git log --format=fuller -5)" @@ -60,6 +57,7 @@ before_install: [ -d ~/bin ] || mkdir ~/bin export DEFAULT_COMPOSER_FLAGS=("--no-interaction" "--no-ansi" "--no-progress" "--no-suggest") + export PHP_PEAR_PHP_BIN="$(phpenv which php)" # Hide "You are in 'detached HEAD' state" message git config --global advice.detachedHead false @@ -68,8 +66,6 @@ before_install: install: - .ci/setup-dbs.sh - - .ci/pear-setup.sh - - .ci/install-re2c.sh - .ci/install-zephir.sh - .ci/install-php-extensions.sh - travis_retry composer install ${DEFAULT_COMPOSER_FLAGS[*]} @@ -77,7 +73,7 @@ install: before_script: - | # Setting up Travis' PHP - cat .ci/travis.ini >> "$(phpenv root)/versions/$(phpenv version-name)/etc/conf.d/travis.ini" + cat .ci/travis.ini >> "$(phpenv prefix)/etc/conf.d/travis.ini" if [ "$(php-config --vernum)" -ge "70400" ] then export REPORT_COVERAGE=0 From 42a6077c5e6d9fbb9a454499060ca17e524c02d3 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Fri, 6 Sep 2019 13:07:08 -0400 Subject: [PATCH 065/202] [#14349] - Changed the interfaces and added escaper to the constructor --- phalcon/Flash/AbstractFlash.zep | 101 +++++++++++++------------------ phalcon/Flash/FlashInterface.zep | 10 +-- 2 files changed, 48 insertions(+), 63 deletions(-) diff --git a/phalcon/Flash/AbstractFlash.zep b/phalcon/Flash/AbstractFlash.zep index b23ce44b692..60c0174683c 100644 --- a/phalcon/Flash/AbstractFlash.zep +++ b/phalcon/Flash/AbstractFlash.zep @@ -12,7 +12,7 @@ namespace Phalcon\Flash; use Phalcon\Di; use Phalcon\Di\DiInterface; -use Phalcon\Di\InjectionAwareInterface; +use Phalcon\Di\AbstractDiAware; use Phalcon\Escaper\EscaperInterface; use Phalcon\Flash\Exception; @@ -25,7 +25,7 @@ use Phalcon\Flash\Exception; * $flash->error("Cannot open the file"); *``` */ -abstract class AbstractFlash implements FlashInterface, InjectionAwareInterface +abstract class AbstractFlash extends AbstractDiAware implements FlashInterface { /** * @var bool @@ -47,8 +47,9 @@ abstract class AbstractFlash implements FlashInterface, InjectionAwareInterface */ protected customTemplate = ""; - protected container = null; - + /** + * @var EscaperInterface | null + */ protected escaperService = null; /** @@ -56,23 +57,24 @@ abstract class AbstractFlash implements FlashInterface, InjectionAwareInterface */ protected implicitFlush = true; + /** + * @var array + */ protected messages = []; /** * Phalcon\Flash constructor */ - public function __construct(cssClasses = null) -> void + public function __construct( escaper = null) -> void { - if typeof cssClasses != "array" { - let cssClasses = [ - "error": "errorMessage", - "notice": "noticeMessage", - "success": "successMessage", - "warning": "warningMessage" - ]; - } - - let this->cssClasses = cssClasses; + let this->escaperService = escaper; + + let this->cssClasses = [ + "error" : "errorMessage", + "notice" : "noticeMessage", + "success" : "successMessage", + "warning" : "warningMessage" + ]; } /** @@ -90,9 +92,9 @@ abstract class AbstractFlash implements FlashInterface, InjectionAwareInterface * $flash->error("This is an error"); *``` */ - public function error(string message) -> string + public function error(string message) -> void { - return this->{"message"}("error", message); + this->{"message"}("error", message); } /** @@ -111,40 +113,33 @@ abstract class AbstractFlash implements FlashInterface, InjectionAwareInterface return this->customTemplate; } - /** - * Returns the internal dependency injector - */ - public function getDI() -> - { - var di; - - let di = this->container; - - if typeof di != "object" { - let di = Di::getDefault(); - } - - return di; - } - /** * Returns the Escaper Service */ public function getEscaperService() -> { - var escaper, container; - - let escaper = this->escaperService; + var container; - if typeof escaper != "object" { - let container = this->getDI(); + if this->escaperService { + return this->escaperService; + } - let escaper = container->getShared("escaper"), - this->escaperService = escaper; + let container = this->container; + if unlikely typeof container != "object" { + throw new Exception( + Exception::containerServiceNotFound("the 'escaper' service") + ); } - return escaper; + if likely container->has("escaper") { + return container->getShared("escaper"); + } else { + throw new Exception( + Exception::containerServiceNotFound("the 'escaper' service") + ); + } } + /** * Shows a HTML notice/information message * @@ -152,15 +147,15 @@ abstract class AbstractFlash implements FlashInterface, InjectionAwareInterface * $flash->notice("This is an information"); *``` */ - public function notice(string message) -> string + public function notice(string message) -> void { - return this->{"message"}("notice", message); + this->{"message"}("notice", message); } /** * Set the autoescape mode in generated html */ - public function setAutoescape(bool autoescape) -> + public function setAutoescape(bool autoescape) -> { let this->autoescape = autoescape; @@ -197,16 +192,6 @@ abstract class AbstractFlash implements FlashInterface, InjectionAwareInterface return this; } - /** - * Sets the dependency injector - */ - public function setDI( container) -> - { - let this->container = container; - - return this; - } - /** * Sets the Escaper Service */ @@ -235,9 +220,9 @@ abstract class AbstractFlash implements FlashInterface, InjectionAwareInterface * $flash->success("The process was finished successfully"); *``` */ - public function success(string message) -> string + public function success(string message) -> void { - return this->{"message"}("success", message); + this->{"message"}("success", message); } /** @@ -326,9 +311,9 @@ abstract class AbstractFlash implements FlashInterface, InjectionAwareInterface * $flash->warning("Hey, this is important"); *``` */ - public function warning(string message) -> string + public function warning(string message) -> void { - return this->{"message"}("warning", message); + this->{"message"}("warning", message); } diff --git a/phalcon/Flash/FlashInterface.zep b/phalcon/Flash/FlashInterface.zep index f398a82b2b6..5c8a02da6b7 100644 --- a/phalcon/Flash/FlashInterface.zep +++ b/phalcon/Flash/FlashInterface.zep @@ -20,25 +20,25 @@ interface FlashInterface /** * Shows a HTML error message */ - public function error(string message) -> string; + public function error(string message) -> void; /** * Outputs a message */ - public function message(string type, string message); + public function message(string type, string message) -> void; /** * Shows a HTML notice/information message */ - public function notice(string message) -> string; + public function notice(string message) -> void; /** * Shows a HTML success message */ - public function success(string message) -> string; + public function success(string message) -> void; /** * Shows a HTML warning message */ - public function warning(string message) -> string; + public function warning(string message) -> void; } From edc7982610edb075a49c764cd91118dd744148cd Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Fri, 6 Sep 2019 13:44:35 -0400 Subject: [PATCH 066/202] [#14349] - Correcting tests --- tests/unit/Flash/Direct/Helper/FlashBase.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/unit/Flash/Direct/Helper/FlashBase.php b/tests/unit/Flash/Direct/Helper/FlashBase.php index c63c1d8f81e..6f33fea6f76 100644 --- a/tests/unit/Flash/Direct/Helper/FlashBase.php +++ b/tests/unit/Flash/Direct/Helper/FlashBase.php @@ -23,6 +23,7 @@ class FlashBase private $notImplicit = false; private $notHtml = false; private $classes = null; + private $escaper = null; private $default = [ 'success' => 'successMessage', @@ -33,8 +34,7 @@ class FlashBase public function _before(UnitTester $I) { - $this->newDi(); - $this->setDiEscaper(); + $this->escaper = $this->newEscaper(); } /** @@ -65,7 +65,9 @@ public function testFlashDirectImplicitFlushHtml(UnitTester $I) */ private function stringTest(UnitTester $I, string $function) { - $flash = new Direct($this->classes); + $flash = new Direct($this->escaper); + $flash->setClasses($this->classes); + $message = 'sample message'; if ($this->notHtml) { @@ -214,7 +216,8 @@ public function testFlashDirectNoImplicitFlushNoHtml(UnitTester $I) */ public function testFlashDirectWithAutoEscaping(UnitTester $I) { - $flash = new Direct($this->classes); + $flash = new Direct($this->escaper); + $flash->setClasses($this->classes); $flash->setAutomaticHtml(false); $flash->setImplicitFlush(false); From 4f00bf7e459ebeec32abaa3d046d3fa976fd71ca Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Fri, 6 Sep 2019 13:48:59 -0400 Subject: [PATCH 067/202] [#14349] - Fixing tests --- tests/unit/Flash/Direct/Helper/FlashBase.php | 18 +++++------------- tests/unit/Flash/DirectCest.php | 4 ++-- tests/unit/Flash/Session/OutputCest.php | 4 ++-- .../Flash/Session/SetCustomTemplateCest.php | 4 ++-- 4 files changed, 11 insertions(+), 19 deletions(-) diff --git a/tests/unit/Flash/Direct/Helper/FlashBase.php b/tests/unit/Flash/Direct/Helper/FlashBase.php index 6f33fea6f76..e982330c56c 100644 --- a/tests/unit/Flash/Direct/Helper/FlashBase.php +++ b/tests/unit/Flash/Direct/Helper/FlashBase.php @@ -12,18 +12,15 @@ namespace Phalcon\Test\Unit\Flash\Direct\Helper; +use Phalcon\Escaper; use Phalcon\Flash\Direct; -use Phalcon\Test\Fixtures\Traits\DiTrait; use UnitTester; class FlashBase { - use DiTrait; - - private $notImplicit = false; - private $notHtml = false; private $classes = null; - private $escaper = null; + private $notHtml = false; + private $notImplicit = false; private $default = [ 'success' => 'successMessage', @@ -32,11 +29,6 @@ class FlashBase 'error' => 'errorMessage', ]; - public function _before(UnitTester $I) - { - $this->escaper = $this->newEscaper(); - } - /** * Tests warning (implicit flush) * @@ -65,7 +57,7 @@ public function testFlashDirectImplicitFlushHtml(UnitTester $I) */ private function stringTest(UnitTester $I, string $function) { - $flash = new Direct($this->escaper); + $flash = new Direct(new Escaper()); $flash->setClasses($this->classes); $message = 'sample message'; @@ -216,7 +208,7 @@ public function testFlashDirectNoImplicitFlushNoHtml(UnitTester $I) */ public function testFlashDirectWithAutoEscaping(UnitTester $I) { - $flash = new Direct($this->escaper); + $flash = new Direct(new Escaper()); $flash->setClasses($this->classes); $flash->setAutomaticHtml(false); diff --git a/tests/unit/Flash/DirectCest.php b/tests/unit/Flash/DirectCest.php index 1b5b24dfe26..36d3db69c2e 100644 --- a/tests/unit/Flash/DirectCest.php +++ b/tests/unit/Flash/DirectCest.php @@ -101,9 +101,9 @@ protected function getFlash() { $container = $this->getDi(); - $flash = new Direct($this->classes); - + $flash = new Direct(); $flash->setDI($container); + $flash->setClasses($this->classes); return $flash; } diff --git a/tests/unit/Flash/Session/OutputCest.php b/tests/unit/Flash/Session/OutputCest.php index 5a3df640e0e..6d70acfa027 100644 --- a/tests/unit/Flash/Session/OutputCest.php +++ b/tests/unit/Flash/Session/OutputCest.php @@ -77,9 +77,9 @@ public function emptyFlashSessionOutput(UnitTester $I) protected function getFlash() { $container = $this->getDi(); - $flash = new Session($this->classes); - + $flash = new Session(); $flash->setDI($container); + $flash->setClasses($this->classes); return $flash; } diff --git a/tests/unit/Flash/Session/SetCustomTemplateCest.php b/tests/unit/Flash/Session/SetCustomTemplateCest.php index 21902896218..ddfee9675fc 100644 --- a/tests/unit/Flash/Session/SetCustomTemplateCest.php +++ b/tests/unit/Flash/Session/SetCustomTemplateCest.php @@ -44,9 +44,9 @@ protected function getFlash() { $container = $this->getDi(); - $flash = new Session($this->classes); - + $flash = new Session(); $flash->setDI($container); + $flash->setClasses($this->classes); return $flash; } From 5978fcb6b5cde111e86132045467015f028cffb5 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Fri, 6 Sep 2019 14:08:06 -0400 Subject: [PATCH 068/202] [#14349] - Fixing test --- tests/unit/Flash/SessionCest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/Flash/SessionCest.php b/tests/unit/Flash/SessionCest.php index 1a74859e2df..bf3d6f30e9f 100644 --- a/tests/unit/Flash/SessionCest.php +++ b/tests/unit/Flash/SessionCest.php @@ -140,9 +140,9 @@ protected function getFlash() { $container = $this->getDi(); - $flash = new Session($this->classes); - + $flash = new Session(); $flash->setDI($container); + $flash->setClasses($this->classes); return $flash; } From fe6158de2c6d02f76b44ba413573c39ea0904292 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Fri, 6 Sep 2019 14:32:01 -0400 Subject: [PATCH 069/202] [#14349] - Added _before in the helper class --- tests/unit/Flash/Direct/Helper/FlashBase.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unit/Flash/Direct/Helper/FlashBase.php b/tests/unit/Flash/Direct/Helper/FlashBase.php index e982330c56c..df3956d5287 100644 --- a/tests/unit/Flash/Direct/Helper/FlashBase.php +++ b/tests/unit/Flash/Direct/Helper/FlashBase.php @@ -29,6 +29,10 @@ class FlashBase 'error' => 'errorMessage', ]; + public function _before(UnitTester $I) + { + } + /** * Tests warning (implicit flush) * From eff7cb07095672095dcf9da1629de459ea465354 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Fri, 6 Sep 2019 15:08:41 -0400 Subject: [PATCH 070/202] [#14349] - Corrected class name --- tests/unit/Flash/Direct/Helper/FlashBase.php | 4 ++-- tests/unit/Flash/DirectCest.php | 2 +- tests/unit/Flash/Session/OutputCest.php | 2 +- tests/unit/Flash/Session/SetCustomTemplateCest.php | 2 +- tests/unit/Flash/SessionCest.php | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/unit/Flash/Direct/Helper/FlashBase.php b/tests/unit/Flash/Direct/Helper/FlashBase.php index df3956d5287..9ea2e640a86 100644 --- a/tests/unit/Flash/Direct/Helper/FlashBase.php +++ b/tests/unit/Flash/Direct/Helper/FlashBase.php @@ -62,7 +62,7 @@ public function testFlashDirectImplicitFlushHtml(UnitTester $I) private function stringTest(UnitTester $I, string $function) { $flash = new Direct(new Escaper()); - $flash->setClasses($this->classes); + $flash->setCssClasses($this->classes); $message = 'sample message'; @@ -213,7 +213,7 @@ public function testFlashDirectNoImplicitFlushNoHtml(UnitTester $I) public function testFlashDirectWithAutoEscaping(UnitTester $I) { $flash = new Direct(new Escaper()); - $flash->setClasses($this->classes); + $flash->setCssClasses($this->classes); $flash->setAutomaticHtml(false); $flash->setImplicitFlush(false); diff --git a/tests/unit/Flash/DirectCest.php b/tests/unit/Flash/DirectCest.php index 36d3db69c2e..0ca1561a604 100644 --- a/tests/unit/Flash/DirectCest.php +++ b/tests/unit/Flash/DirectCest.php @@ -103,7 +103,7 @@ protected function getFlash() $flash = new Direct(); $flash->setDI($container); - $flash->setClasses($this->classes); + $flash->setCssClasses($this->classes); return $flash; } diff --git a/tests/unit/Flash/Session/OutputCest.php b/tests/unit/Flash/Session/OutputCest.php index 6d70acfa027..b0925747a75 100644 --- a/tests/unit/Flash/Session/OutputCest.php +++ b/tests/unit/Flash/Session/OutputCest.php @@ -79,7 +79,7 @@ protected function getFlash() $container = $this->getDi(); $flash = new Session(); $flash->setDI($container); - $flash->setClasses($this->classes); + $flash->setCssClasses($this->classes); return $flash; } diff --git a/tests/unit/Flash/Session/SetCustomTemplateCest.php b/tests/unit/Flash/Session/SetCustomTemplateCest.php index ddfee9675fc..e15d9b9e401 100644 --- a/tests/unit/Flash/Session/SetCustomTemplateCest.php +++ b/tests/unit/Flash/Session/SetCustomTemplateCest.php @@ -46,7 +46,7 @@ protected function getFlash() $flash = new Session(); $flash->setDI($container); - $flash->setClasses($this->classes); + $flash->setCssClasses($this->classes); return $flash; } diff --git a/tests/unit/Flash/SessionCest.php b/tests/unit/Flash/SessionCest.php index bf3d6f30e9f..224098e9a67 100644 --- a/tests/unit/Flash/SessionCest.php +++ b/tests/unit/Flash/SessionCest.php @@ -142,7 +142,7 @@ protected function getFlash() $flash = new Session(); $flash->setDI($container); - $flash->setClasses($this->classes); + $flash->setCssClasses($this->classes); return $flash; } From e88f0ef21921857feba349453693325c87621908 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Fri, 6 Sep 2019 16:56:53 -0400 Subject: [PATCH 071/202] [#14349] - Adjusting the interfaces again --- phalcon/Flash/AbstractFlash.zep | 16 ++++++++-------- phalcon/Flash/Direct.zep | 2 +- phalcon/Flash/FlashInterface.zep | 10 +++++----- phalcon/Flash/Session.zep | 4 +++- 4 files changed, 17 insertions(+), 15 deletions(-) diff --git a/phalcon/Flash/AbstractFlash.zep b/phalcon/Flash/AbstractFlash.zep index 60c0174683c..ed6b0103225 100644 --- a/phalcon/Flash/AbstractFlash.zep +++ b/phalcon/Flash/AbstractFlash.zep @@ -92,9 +92,9 @@ abstract class AbstractFlash extends AbstractDiAware implements FlashInterface * $flash->error("This is an error"); *``` */ - public function error(string message) -> void + public function error(string message) -> string { - this->{"message"}("error", message); + return this->{"message"}("error", message); } /** @@ -147,9 +147,9 @@ abstract class AbstractFlash extends AbstractDiAware implements FlashInterface * $flash->notice("This is an information"); *``` */ - public function notice(string message) -> void + public function notice(string message) -> string { - this->{"message"}("notice", message); + return this->{"message"}("notice", message); } /** @@ -220,9 +220,9 @@ abstract class AbstractFlash extends AbstractDiAware implements FlashInterface * $flash->success("The process was finished successfully"); *``` */ - public function success(string message) -> void + public function success(string message) -> string { - this->{"message"}("success", message); + return this->{"message"}("success", message); } /** @@ -311,9 +311,9 @@ abstract class AbstractFlash extends AbstractDiAware implements FlashInterface * $flash->warning("Hey, this is important"); *``` */ - public function warning(string message) -> void + public function warning(string message) -> string { - this->{"message"}("warning", message); + return this->{"message"}("warning", message); } diff --git a/phalcon/Flash/Direct.zep b/phalcon/Flash/Direct.zep index 6214754069f..4cc69f6a8c8 100644 --- a/phalcon/Flash/Direct.zep +++ b/phalcon/Flash/Direct.zep @@ -21,7 +21,7 @@ class Direct extends AbstractFlash /** * Outputs a message */ - public function message(string type, var message) -> string + public function message(string type, var message) -> string | null { return this->outputMessage(type, message); } diff --git a/phalcon/Flash/FlashInterface.zep b/phalcon/Flash/FlashInterface.zep index 5c8a02da6b7..9eb9fc2b249 100644 --- a/phalcon/Flash/FlashInterface.zep +++ b/phalcon/Flash/FlashInterface.zep @@ -20,25 +20,25 @@ interface FlashInterface /** * Shows a HTML error message */ - public function error(string message) -> void; + public function error(string message) -> string; /** * Outputs a message */ - public function message(string type, string message) -> void; + public function message(string type, string message) -> string | null; /** * Shows a HTML notice/information message */ - public function notice(string message) -> void; + public function notice(string message) -> string; /** * Shows a HTML success message */ - public function success(string message) -> void; + public function success(string message) -> string; /** * Shows a HTML warning message */ - public function warning(string message) -> void; + public function warning(string message) -> string; } diff --git a/phalcon/Flash/Session.zep b/phalcon/Flash/Session.zep index 49447a8161b..4522ca4d07e 100644 --- a/phalcon/Flash/Session.zep +++ b/phalcon/Flash/Session.zep @@ -57,7 +57,7 @@ class Session extends AbstractFlash /** * Adds a message to the session flasher */ - public function message(string type, string message) -> void + public function message(string type, string message) -> string | null { var messages; @@ -70,6 +70,8 @@ class Session extends AbstractFlash let messages[type][] = message; this->setSessionMessages(messages); + + return null; } /** From 8ec28908085eef92cc123e14cbf8848491de07d6 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Fri, 6 Sep 2019 17:19:12 -0400 Subject: [PATCH 072/202] [#14349] - Updated the changelog --- CHANGELOG-4.0.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG-4.0.md b/CHANGELOG-4.0.md index af76b6b255f..6d2d0954b7e 100644 --- a/CHANGELOG-4.0.md +++ b/CHANGELOG-4.0.md @@ -5,6 +5,8 @@ - Changed `Phalcon\Assets\Manager`, `Phalcon\Cli\Router`, `Phalcon\Dispatcher\AbstractDispatcher`, `Phalcon\Html\Tag`, `Phalcon\Http\Cookie`, `Phalcon\Http\Request`, `Phalcon\Http\Response\Cookies`, `Phalcon\Mvc\Model`, `Phalcon\Mvc\Router`, `Phalcon\Security`, `Phalcon\Session\Manager` to use `Phalcon\Di\AbstractDiAware` for container functionality [#14351](https://github.com/phalcon/cphalcon/pull/14351) - Changed `Phalcon\Security` to allow `session` and `request` in the constructor [#14351](https://github.com/phalcon/cphalcon/pull/14351) - Changed `Phalcon\Session\Manager` to allow `router` in the constructor [#14351](https://github.com/phalcon/cphalcon/pull/14351) +- Changed `Phalcon\Flash\Direct` to allow `escaper` in the constructor [#14349](https://github.com/phalcon/cphalcon/issues/14349) +- Changed `Phalcon\Flash\Session` to allow `escaper` in the constructor [#14349](https://github.com/phalcon/cphalcon/issues/14349) ## Fixed - Fixed `Phalcon\Helper\Str::includes` to return correct result [#14301](https://github.com/phalcon/cphalcon/issues/14301) @@ -18,6 +20,7 @@ - Fixed `Phalcon\Session\Adapter\Stream` to not override configured save path [#14265](https://github.com/phalcon/cphalcon/issues/14265) - Fixed `Phalcon\Http\Response::setFileToSend` to properly handle non-ASCII filenames [#13919](https://github.com/phalcon/cphalcon/issues/13919) - Fixed `Phalcon\Security::getSessionToken` return value [#14346](https://github.com/phalcon/cphalcon/issues/14346) +- Fixed `Phalcon\Flash\*` interfaces for `message()` to return `string/null` [#14349](https://github.com/phalcon/cphalcon/issues/14349) # [4.0.0-beta.2](https://github.com/phalcon/cphalcon/releases/tag/v4.0.0-beta.2) (2019-08-18) From 3bd81e4d47bdd37184a0980745b9e71a9bacbd45 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Fri, 6 Sep 2019 18:49:59 -0400 Subject: [PATCH 073/202] [#14359] - Renamed DI classes to abstract* --- phalcon/Application/AbstractApplication.zep | 4 +- phalcon/Assets/Manager.zep | 4 +- phalcon/Cli/Router.zep | 4 +- phalcon/Cli/Task.zep | 4 +- ...{Injectable.zep => AbstractInjectable.zep} | 2 +- ...DiAware.zep => AbstractInjectionAware.zep} | 2 +- phalcon/Dispatcher/AbstractDispatcher.zep | 4 +- phalcon/Flash/AbstractFlash.zep | 85 ++++++++----------- phalcon/Forms/Form.zep | 4 +- phalcon/Html/Tag.zep | 4 +- phalcon/Http/Cookie.zep | 4 +- phalcon/Http/Request.zep | 4 +- phalcon/Http/Response/Cookies.zep | 4 +- phalcon/Mvc/Controller.zep | 4 +- phalcon/Mvc/Micro.zep | 4 +- phalcon/Mvc/Model.zep | 4 +- phalcon/Mvc/Router.zep | 4 +- phalcon/Mvc/View.zep | 4 +- phalcon/Mvc/View/Engine/AbstractEngine.zep | 4 +- phalcon/Mvc/View/Simple.zep | 4 +- phalcon/Plugin.zep | 22 ----- phalcon/Security.zep | 4 +- phalcon/Session/Manager.zep | 4 +- phalcon/Url.zep | 4 +- phalcon/Validation.zep | 4 +- phalcon/Validation/ValidationInterface.zep | 2 +- 26 files changed, 80 insertions(+), 117 deletions(-) rename phalcon/Di/{Injectable.zep => AbstractInjectable.zep} (98%) rename phalcon/Di/{AbstractDiAware.zep => AbstractInjectionAware.zep} (91%) delete mode 100644 phalcon/Plugin.zep diff --git a/phalcon/Application/AbstractApplication.zep b/phalcon/Application/AbstractApplication.zep index f064920d930..92a8525a372 100644 --- a/phalcon/Application/AbstractApplication.zep +++ b/phalcon/Application/AbstractApplication.zep @@ -12,14 +12,14 @@ namespace Phalcon\Application; use Phalcon\Application\Exception; use Phalcon\Di\DiInterface; -use Phalcon\Di\Injectable; +use Phalcon\Di\AbstractInjectable; use Phalcon\Events\EventsAwareInterface; use Phalcon\Events\ManagerInterface; /** * Base class for Phalcon\Cli\Console and Phalcon\Mvc\Application. */ -abstract class AbstractApplication extends Injectable implements EventsAwareInterface +abstract class AbstractApplication extends AbstractInjectable implements EventsAwareInterface { /** * @var DiInterface diff --git a/phalcon/Assets/Manager.zep b/phalcon/Assets/Manager.zep index ec086711c54..d1537e296f1 100644 --- a/phalcon/Assets/Manager.zep +++ b/phalcon/Assets/Manager.zep @@ -19,14 +19,14 @@ use Phalcon\Assets\Asset\Css as AssetCss; use Phalcon\Assets\Inline\Css as InlineCss; use Phalcon\Assets\Inline\Js as InlineJs; use Phalcon\Di\DiInterface; -use Phalcon\Di\AbstractDiAware; +use Phalcon\Di\AbstractInjectionAware; /** * Phalcon\Assets\Manager * * Manages collections of CSS/Javascript assets */ -class Manager extends AbstractDiAware +class Manager extends AbstractInjectionAware { protected collections; diff --git a/phalcon/Cli/Router.zep b/phalcon/Cli/Router.zep index fcd6ba0d8a5..35410df035b 100644 --- a/phalcon/Cli/Router.zep +++ b/phalcon/Cli/Router.zep @@ -11,7 +11,7 @@ namespace Phalcon\Cli; use Phalcon\Di\DiInterface; -use Phalcon\Di\AbstractDiAware; +use Phalcon\Di\AbstractInjectionAware; use Phalcon\Cli\Router\Route; use Phalcon\Cli\Router\Exception; @@ -35,7 +35,7 @@ use Phalcon\Cli\Router\Exception; * echo $router->getTaskName(); *``` */ -class Router extends AbstractDiAware +class Router extends AbstractInjectionAware { protected action; diff --git a/phalcon/Cli/Task.zep b/phalcon/Cli/Task.zep index d367d059226..6bd8413f670 100644 --- a/phalcon/Cli/Task.zep +++ b/phalcon/Cli/Task.zep @@ -10,7 +10,7 @@ namespace Phalcon\Cli; -use Phalcon\Di\Injectable; +use Phalcon\Di\AbstractInjectable; /** * Every command-line task should extend this class that encapsulates all the @@ -36,7 +36,7 @@ use Phalcon\Di\Injectable; * } *``` */ -class Task extends Injectable implements TaskInterface +class Task extends AbstractInjectable implements TaskInterface { /** * Phalcon\Cli\Task constructor diff --git a/phalcon/Di/Injectable.zep b/phalcon/Di/AbstractInjectable.zep similarity index 98% rename from phalcon/Di/Injectable.zep rename to phalcon/Di/AbstractInjectable.zep index cc45ae35bc9..d85ba962798 100644 --- a/phalcon/Di/Injectable.zep +++ b/phalcon/Di/AbstractInjectable.zep @@ -47,7 +47,7 @@ use Phalcon\Session\BagInterface; * @property \Phalcon\Session\Bag|\Phalcon\Session\BagInterface $persistent * @property \Phalcon\Mvc\View|\Phalcon\Mvc\ViewInterface $view */ -abstract class Injectable implements InjectionAwareInterface, EventsAwareInterface +abstract class AbstractInjectable implements InjectionAwareInterface, EventsAwareInterface { /** * Dependency Injector diff --git a/phalcon/Di/AbstractDiAware.zep b/phalcon/Di/AbstractInjectionAware.zep similarity index 91% rename from phalcon/Di/AbstractDiAware.zep rename to phalcon/Di/AbstractInjectionAware.zep index 011b537da13..84fff1f3078 100644 --- a/phalcon/Di/AbstractDiAware.zep +++ b/phalcon/Di/AbstractInjectionAware.zep @@ -17,7 +17,7 @@ use Phalcon\Di\InjectionAwareInterface; /** * This abstract class offers common access to the DI in a class */ -abstract class AbstractDiAware implements InjectionAwareInterface +abstract class AbstractInjectionAware implements InjectionAwareInterface { /** * Dependency Injector diff --git a/phalcon/Dispatcher/AbstractDispatcher.zep b/phalcon/Dispatcher/AbstractDispatcher.zep index dedc7b33dc6..286a67653f8 100644 --- a/phalcon/Dispatcher/AbstractDispatcher.zep +++ b/phalcon/Dispatcher/AbstractDispatcher.zep @@ -12,7 +12,7 @@ namespace Phalcon\Dispatcher; use Exception; use Phalcon\Di\DiInterface; -use Phalcon\Di\AbstractDiAware; +use Phalcon\Di\AbstractInjectionAware; use Phalcon\Dispatcher\DispatcherInterface; use Phalcon\Dispatcher\Exception as PhalconException; use Phalcon\Events\EventsAwareInterface; @@ -26,7 +26,7 @@ use Phalcon\Mvc\Model\BinderInterface; * This class can't be instantiated directly, you can use it to create your own * dispatchers. */ -abstract class AbstractDispatcher extends AbstractDiAware implements DispatcherInterface, EventsAwareInterface +abstract class AbstractDispatcher extends AbstractInjectionAware implements DispatcherInterface, EventsAwareInterface { protected activeHandler; diff --git a/phalcon/Flash/AbstractFlash.zep b/phalcon/Flash/AbstractFlash.zep index b23ce44b692..35000e00575 100644 --- a/phalcon/Flash/AbstractFlash.zep +++ b/phalcon/Flash/AbstractFlash.zep @@ -12,7 +12,7 @@ namespace Phalcon\Flash; use Phalcon\Di; use Phalcon\Di\DiInterface; -use Phalcon\Di\InjectionAwareInterface; +use Phalcon\Di\AbstractInjectionAware; use Phalcon\Escaper\EscaperInterface; use Phalcon\Flash\Exception; @@ -25,7 +25,7 @@ use Phalcon\Flash\Exception; * $flash->error("Cannot open the file"); *``` */ -abstract class AbstractFlash implements FlashInterface, InjectionAwareInterface +abstract class AbstractFlash extends AbstractInjectionAware implements FlashInterface { /** * @var bool @@ -47,8 +47,9 @@ abstract class AbstractFlash implements FlashInterface, InjectionAwareInterface */ protected customTemplate = ""; - protected container = null; - + /** + * @var EscaperInterface | null + */ protected escaperService = null; /** @@ -56,23 +57,24 @@ abstract class AbstractFlash implements FlashInterface, InjectionAwareInterface */ protected implicitFlush = true; + /** + * @var array + */ protected messages = []; /** * Phalcon\Flash constructor */ - public function __construct(cssClasses = null) -> void + public function __construct( escaper = null) -> void { - if typeof cssClasses != "array" { - let cssClasses = [ - "error": "errorMessage", - "notice": "noticeMessage", - "success": "successMessage", - "warning": "warningMessage" - ]; - } - - let this->cssClasses = cssClasses; + let this->escaperService = escaper; + + let this->cssClasses = [ + "error" : "errorMessage", + "notice" : "noticeMessage", + "success" : "successMessage", + "warning" : "warningMessage" + ]; } /** @@ -111,40 +113,33 @@ abstract class AbstractFlash implements FlashInterface, InjectionAwareInterface return this->customTemplate; } - /** - * Returns the internal dependency injector - */ - public function getDI() -> - { - var di; - - let di = this->container; - - if typeof di != "object" { - let di = Di::getDefault(); - } - - return di; - } - /** * Returns the Escaper Service */ public function getEscaperService() -> { - var escaper, container; - - let escaper = this->escaperService; + var container; - if typeof escaper != "object" { - let container = this->getDI(); + if this->escaperService { + return this->escaperService; + } - let escaper = container->getShared("escaper"), - this->escaperService = escaper; + let container = this->container; + if unlikely typeof container != "object" { + throw new Exception( + Exception::containerServiceNotFound("the 'escaper' service") + ); } - return escaper; + if likely container->has("escaper") { + return container->getShared("escaper"); + } else { + throw new Exception( + Exception::containerServiceNotFound("the 'escaper' service") + ); + } } + /** * Shows a HTML notice/information message * @@ -160,7 +155,7 @@ abstract class AbstractFlash implements FlashInterface, InjectionAwareInterface /** * Set the autoescape mode in generated html */ - public function setAutoescape(bool autoescape) -> + public function setAutoescape(bool autoescape) -> { let this->autoescape = autoescape; @@ -197,16 +192,6 @@ abstract class AbstractFlash implements FlashInterface, InjectionAwareInterface return this; } - /** - * Sets the dependency injector - */ - public function setDI( container) -> - { - let this->container = container; - - return this; - } - /** * Sets the Escaper Service */ diff --git a/phalcon/Forms/Form.zep b/phalcon/Forms/Form.zep index c5148032e23..f296517f607 100644 --- a/phalcon/Forms/Form.zep +++ b/phalcon/Forms/Form.zep @@ -12,7 +12,7 @@ namespace Phalcon\Forms; use Countable; use Iterator; -use Phalcon\Di\Injectable; +use Phalcon\Di\AbstractInjectable; use Phalcon\Di\DiInterface; use Phalcon\FilterInterface; use Phalcon\Filter\FilterInterface; @@ -28,7 +28,7 @@ use Phalcon\Validation\ValidationInterface; /** * This component allows to build forms using an object-oriented interface */ -class Form extends Injectable implements Countable, Iterator, AttributesInterface +class Form extends AbstractInjectable implements Countable, Iterator, AttributesInterface { protected attributes; diff --git a/phalcon/Html/Tag.zep b/phalcon/Html/Tag.zep index 62a1f20774c..c19a0b34322 100644 --- a/phalcon/Html/Tag.zep +++ b/phalcon/Html/Tag.zep @@ -11,7 +11,7 @@ namespace Phalcon\Html; use Phalcon\Di\DiInterface; -use Phalcon\Di\AbstractDiAware; +use Phalcon\Di\AbstractInjectionAware; use Phalcon\Escaper; use Phalcon\Escaper\EscaperInterface; use Phalcon\Helper\Arr; @@ -25,7 +25,7 @@ use Phalcon\Mvc\Model\ResultsetInterface; * Phalcon\Html\Tag is designed to simplify building of HTML tags. It provides a * set of helpers to dynamically generate HTML. */ -class Tag extends AbstractDiAware +class Tag extends AbstractInjectionAware { /** * @var array diff --git a/phalcon/Http/Cookie.zep b/phalcon/Http/Cookie.zep index c518f409a5d..6e5c931edd2 100644 --- a/phalcon/Http/Cookie.zep +++ b/phalcon/Http/Cookie.zep @@ -11,7 +11,7 @@ namespace Phalcon\Http; use Phalcon\Di\DiInterface; -use Phalcon\Di\AbstractDiAware; +use Phalcon\Di\AbstractInjectionAware; use Phalcon\Crypt\CryptInterface; use Phalcon\Crypt\Mismatch; use Phalcon\Filter\FilterInterface; @@ -22,7 +22,7 @@ use Phalcon\Session\ManagerInterface as SessionManagerInterface; /** * Provide OO wrappers to manage a HTTP cookie. */ -class Cookie extends AbstractDiAware implements CookieInterface +class Cookie extends AbstractInjectionAware implements CookieInterface { protected domain; diff --git a/phalcon/Http/Request.zep b/phalcon/Http/Request.zep index ee2158222fb..81c34d2f7c8 100644 --- a/phalcon/Http/Request.zep +++ b/phalcon/Http/Request.zep @@ -11,7 +11,7 @@ namespace Phalcon\Http; use Phalcon\Di\DiInterface; -use Phalcon\Di\AbstractDiAware; +use Phalcon\Di\AbstractInjectionAware; use Phalcon\Events\ManagerInterface; use Phalcon\Filter\FilterInterface; use Phalcon\Http\Request\File; @@ -46,7 +46,7 @@ use stdClass; * $request->getLanguages(); *``` */ -class Request extends AbstractDiAware implements RequestInterface +class Request extends AbstractInjectionAware implements RequestInterface { private filterService; diff --git a/phalcon/Http/Response/Cookies.zep b/phalcon/Http/Response/Cookies.zep index d3fa5a38d8c..d8cd72770c7 100644 --- a/phalcon/Http/Response/Cookies.zep +++ b/phalcon/Http/Response/Cookies.zep @@ -11,7 +11,7 @@ namespace Phalcon\Http\Response; use Phalcon\Di\DiInterface; -use Phalcon\Di\AbstractDiAware; +use Phalcon\Di\AbstractInjectionAware; use Phalcon\Http\CookieInterface; use Phalcon\Http\Response\CookiesInterface; use Phalcon\Http\Cookie\Exception; @@ -64,7 +64,7 @@ use Phalcon\Http\Cookie\Exception; * ); * ``` */ -class Cookies extends AbstractDiAware implements CookiesInterface +class Cookies extends AbstractInjectionAware implements CookiesInterface { protected cookies = []; diff --git a/phalcon/Mvc/Controller.zep b/phalcon/Mvc/Controller.zep index c6dddfe6d97..2b1bcfbc012 100644 --- a/phalcon/Mvc/Controller.zep +++ b/phalcon/Mvc/Controller.zep @@ -10,7 +10,7 @@ namespace Phalcon\Mvc; -use Phalcon\Di\Injectable; +use Phalcon\Di\AbstractInjectable; /** * Phalcon\Mvc\Controller @@ -52,7 +52,7 @@ use Phalcon\Di\Injectable; * } *``` */ -abstract class Controller extends Injectable implements ControllerInterface +abstract class Controller extends AbstractInjectable implements ControllerInterface { /** * Phalcon\Mvc\Controller constructor diff --git a/phalcon/Mvc/Micro.zep b/phalcon/Mvc/Micro.zep index ddef0d18c4d..57f26a1a58d 100644 --- a/phalcon/Mvc/Micro.zep +++ b/phalcon/Mvc/Micro.zep @@ -13,7 +13,7 @@ namespace Phalcon\Mvc; use ArrayAccess; use Closure; use Phalcon\Di\DiInterface; -use Phalcon\Di\Injectable; +use Phalcon\Di\AbstractInjectable; use Phalcon\Mvc\Controller; use Phalcon\Di\FactoryDefault; use Phalcon\Mvc\Micro\Exception; @@ -48,7 +48,7 @@ use Throwable; * $app->handle("/say/welcome/Phalcon"); *``` */ -class Micro extends Injectable implements ArrayAccess +class Micro extends AbstractInjectable implements ArrayAccess { protected activeHandler; diff --git a/phalcon/Mvc/Model.zep b/phalcon/Mvc/Model.zep index 544058d574e..c04f2239e10 100644 --- a/phalcon/Mvc/Model.zep +++ b/phalcon/Mvc/Model.zep @@ -15,7 +15,7 @@ use Phalcon\Db\Column; use Phalcon\Db\DialectInterface; use Phalcon\Db\Enum; use Phalcon\Db\RawValue; -use Phalcon\Di\AbstractDiAware; +use Phalcon\Di\AbstractInjectionAware; use Phalcon\Di; use Phalcon\Di\DiInterface; use Phalcon\Events\ManagerInterface as EventsManagerInterface; @@ -81,7 +81,7 @@ use Serializable; * } * ``` */ -abstract class Model extends AbstractDiAware implements EntityInterface, ModelInterface, ResultInterface, Serializable, JsonSerializable +abstract class Model extends AbstractInjectionAware implements EntityInterface, ModelInterface, ResultInterface, Serializable, JsonSerializable { const DIRTY_STATE_DETACHED = 2; const DIRTY_STATE_PERSISTENT = 0; diff --git a/phalcon/Mvc/Router.zep b/phalcon/Mvc/Router.zep index 75c4d15a5de..4449ac99956 100644 --- a/phalcon/Mvc/Router.zep +++ b/phalcon/Mvc/Router.zep @@ -11,7 +11,7 @@ namespace Phalcon\Mvc; use Phalcon\Di\DiInterface; -use Phalcon\Di\AbstractDiAware; +use Phalcon\Di\AbstractInjectionAware; use Phalcon\Events\EventsAwareInterface; use Phalcon\Events\ManagerInterface; use Phalcon\Http\RequestInterface; @@ -48,7 +48,7 @@ use Phalcon\Mvc\Router\RouteInterface; * echo $router->getControllerName(); * ``` */ -class Router extends AbstractDiAware implements RouterInterface, EventsAwareInterface +class Router extends AbstractInjectionAware implements RouterInterface, EventsAwareInterface { const POSITION_FIRST = 0; const POSITION_LAST = 1; diff --git a/phalcon/Mvc/View.zep b/phalcon/Mvc/View.zep index 20676111ab6..082765f836f 100644 --- a/phalcon/Mvc/View.zep +++ b/phalcon/Mvc/View.zep @@ -12,7 +12,7 @@ namespace Phalcon\Mvc; use Closure; use Phalcon\Di\DiInterface; -use Phalcon\Di\Injectable; +use Phalcon\Di\AbstractInjectable; use Phalcon\Events\ManagerInterface; use Phalcon\Helper\Arr; use Phalcon\Helper\Str; @@ -46,7 +46,7 @@ use Phalcon\Mvc\View\Engine\Php as PhpEngine; * echo $view->getContent(); * ``` */ -class View extends Injectable implements ViewInterface +class View extends AbstractInjectable implements ViewInterface { /** * Render Level: To the action view diff --git a/phalcon/Mvc/View/Engine/AbstractEngine.zep b/phalcon/Mvc/View/Engine/AbstractEngine.zep index a193da8ee21..87521ba48f3 100644 --- a/phalcon/Mvc/View/Engine/AbstractEngine.zep +++ b/phalcon/Mvc/View/Engine/AbstractEngine.zep @@ -11,14 +11,14 @@ namespace Phalcon\Mvc\View\Engine; use Phalcon\Di\DiInterface; -use Phalcon\Di\Injectable; +use Phalcon\Di\AbstractInjectable; use Phalcon\Mvc\ViewBaseInterface; /** * All the template engine adapters must inherit this class. This provides * basic interfacing between the engine and the Phalcon\Mvc\View component. */ -abstract class AbstractEngine extends Injectable implements EngineInterface +abstract class AbstractEngine extends AbstractInjectable implements EngineInterface { protected view; diff --git a/phalcon/Mvc/View/Simple.zep b/phalcon/Mvc/View/Simple.zep index d09f627cb4d..e8d7b527170 100644 --- a/phalcon/Mvc/View/Simple.zep +++ b/phalcon/Mvc/View/Simple.zep @@ -12,7 +12,7 @@ namespace Phalcon\Mvc\View; use Closure; use Phalcon\Di\DiInterface; -use Phalcon\Di\Injectable; +use Phalcon\Di\AbstractInjectable; use Phalcon\Helper\Arr; use Phalcon\Helper\Str; use Phalcon\Mvc\View\Exception; @@ -47,7 +47,7 @@ use Phalcon\Mvc\View\Engine\Php as PhpEngine; * ); *``` */ -class Simple extends Injectable implements ViewBaseInterface +class Simple extends AbstractInjectable implements ViewBaseInterface { protected activeRenderPath; protected content; diff --git a/phalcon/Plugin.zep b/phalcon/Plugin.zep deleted file mode 100644 index 0359cd7f579..00000000000 --- a/phalcon/Plugin.zep +++ /dev/null @@ -1,22 +0,0 @@ - -/** - * This file is part of the Phalcon Framework. - * - * (c) Phalcon Team - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon; - -use Phalcon\Di\Injectable; - -/** - * This class can be used to provide user plugins an easy access to services - * in the application - */ -abstract class Plugin extends Injectable -{ - -} diff --git a/phalcon/Security.zep b/phalcon/Security.zep index 288dea72ffc..8de8c2cb475 100644 --- a/phalcon/Security.zep +++ b/phalcon/Security.zep @@ -11,7 +11,7 @@ namespace Phalcon; use Phalcon\Di\DiInterface; -use Phalcon\Di\AbstractDiAware; +use Phalcon\Di\AbstractInjectionAware; use Phalcon\Http\RequestInterface; use Phalcon\Security\Random; use Phalcon\Security\Exception; @@ -34,7 +34,7 @@ use Phalcon\Session\ManagerInterface as SessionInterface; * } *``` */ -class Security extends AbstractDiAware +class Security extends AbstractInjectionAware { const CRYPT_DEFAULT = 0; const CRYPT_BLOWFISH = 4; diff --git a/phalcon/Session/Manager.zep b/phalcon/Session/Manager.zep index 63416b0ec35..be697bf9026 100644 --- a/phalcon/Session/Manager.zep +++ b/phalcon/Session/Manager.zep @@ -13,7 +13,7 @@ namespace Phalcon\Session; use InvalidArgumentException; use RuntimeException; use SessionHandlerInterface; -use Phalcon\DI\AbstractDiAware; +use Phalcon\DI\AbstractInjectionAware; use Phalcon\Di\DiInterface; use Phalcon\Helper\Arr; use Phalcon\Session\ManagerInterface; @@ -23,7 +23,7 @@ use Phalcon\Session\ManagerInterface; * * Session manager class */ -class Manager extends AbstractDiAware implements ManagerInterface +class Manager extends AbstractInjectionAware implements ManagerInterface { /** * @var |null diff --git a/phalcon/Url.zep b/phalcon/Url.zep index 9603a9b99f9..399f93a0e9b 100644 --- a/phalcon/Url.zep +++ b/phalcon/Url.zep @@ -11,7 +11,7 @@ namespace Phalcon; use Phalcon\Di\DiInterface; -use Phalcon\Di\AbstractDiAware; +use Phalcon\Di\AbstractInjectionAware; use Phalcon\Mvc\RouterInterface; use Phalcon\Mvc\Router\RouteInterface; use Phalcon\Url\Exception; @@ -34,7 +34,7 @@ use Phalcon\Url\UrlInterface; * ); *``` */ -class Url extends AbstractDiAware implements UrlInterface +class Url extends AbstractInjectionAware implements UrlInterface { /** * @var null | string diff --git a/phalcon/Validation.zep b/phalcon/Validation.zep index f9171e8d268..48b4e005c79 100644 --- a/phalcon/Validation.zep +++ b/phalcon/Validation.zep @@ -12,7 +12,7 @@ namespace Phalcon; use Phalcon\Di; use Phalcon\Di\DiInterface; -use Phalcon\Di\Injectable; +use Phalcon\Di\AbstractInjectable; use Phalcon\Filter\FilterInterface; use Phalcon\Messages\MessageInterface; use Phalcon\Messages\Messages; @@ -24,7 +24,7 @@ use Phalcon\Validation\AbstractCombinedFieldsValidator; /** * Allows to validate data using custom or built-in validators */ -class Validation extends Injectable implements ValidationInterface +class Validation extends AbstractInjectable implements ValidationInterface { protected combinedFieldsValidators; protected data { get }; diff --git a/phalcon/Validation/ValidationInterface.zep b/phalcon/Validation/ValidationInterface.zep index 00a02c93290..a4b6f374969 100644 --- a/phalcon/Validation/ValidationInterface.zep +++ b/phalcon/Validation/ValidationInterface.zep @@ -10,7 +10,7 @@ namespace Phalcon\Validation; -use Phalcon\Di\Injectable; +use Phalcon\Di\AbstractInjectable; use Phalcon\Messages\MessageInterface; use Phalcon\Messages\Messages; use Phalcon\Validation\Exception; From 39478e93da50938bf3f81058d115e0197f0db370 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Fri, 6 Sep 2019 19:34:10 -0400 Subject: [PATCH 074/202] [#14359] - trying a hack for codeception --- tests/_config/bootstrap.php | 5 + tests/_data/fixtures/Phalcon.php | 674 +++++++++++++++++++++++++++++++ 2 files changed, 679 insertions(+) create mode 100644 tests/_data/fixtures/Phalcon.php diff --git a/tests/_config/bootstrap.php b/tests/_config/bootstrap.php index 28d0ee13ee2..0c86928a890 100644 --- a/tests/_config/bootstrap.php +++ b/tests/_config/bootstrap.php @@ -20,6 +20,11 @@ loadEnvironment($root); +/** + * @todo Ugly hack to make codeception work with a phalcon4 module + */ +require_once $root . '/tests/_data/fixtures/Phalcon.php'; + /** * Config */ diff --git a/tests/_data/fixtures/Phalcon.php b/tests/_data/fixtures/Phalcon.php new file mode 100644 index 00000000000..7ed479833c2 --- /dev/null +++ b/tests/_data/fixtures/Phalcon.php @@ -0,0 +1,674 @@ + + * + * ## Status + * + * * Maintainer: **Serghei Iakovlev** + * * Stability: **stable** + * * Contact: serghei@phalcon.io + * + * ## Config + * + * The following configurations are required for this module: + * + * * bootstrap: `string`, default `app/config/bootstrap.php` - relative path to app.php config file + * * cleanup: `boolean`, default `true` - all database queries will be run in a transaction, + * which will be rolled back at the end of each test + * * savepoints: `boolean`, default `true` - use savepoints to emulate nested transactions + * + * The application bootstrap file must return Application object but not call its handle() method. + * + * ## API + * + * * di - `Phalcon\Di\Injectable` instance + * * client - `BrowserKit` client + * + * ## Parts + * + * By default all available methods are loaded, but you can specify parts to select only needed + * actions and avoid conflicts. + * + * * `orm` - include only `haveRecord/grabRecord/seeRecord/dontSeeRecord` actions. + * * `services` - allows to use `grabServiceFromContainer` and `addServiceToContainer`. + * + * Usage example: + * + * Sample bootstrap (`app/config/bootstrap.php`): + * + * ``` php + * + * ``` + * + * ```yaml + * actor: AcceptanceTester + * modules: + * enabled: + * - Phalcon: + * part: services + * bootstrap: 'app/config/bootstrap.php' + * cleanup: true + * savepoints: true + * - WebDriver: + * url: http://your-url.com + * browser: phantomjs + * ``` + */ +class Phalcon extends Framework implements ActiveRecord, PartedModule +{ + protected $config = [ + 'bootstrap' => 'app/config/bootstrap.php', + 'cleanup' => true, + 'savepoints' => true, + 'session' => PhalconConnector\MemorySession::class + ]; + + /** + * Phalcon bootstrap file path + */ + protected $bootstrapFile = null; + + /** + * Dependency injection container + * @var DiInterface + */ + public $di = null; + + /** + * Phalcon Connector + * @var PhalconConnector + */ + public $client; + + /** + * HOOK: used after configuration is loaded + * + * @throws ModuleConfigException + */ + public function _initialize() + { + $this->bootstrapFile = Configuration::projectDir() . $this->config['bootstrap']; + + if (!file_exists($this->bootstrapFile)) { + throw new ModuleConfigException( + __CLASS__, + "Bootstrap file does not exist in " . $this->config['bootstrap'] . "\n" + . "Please create the bootstrap file that returns Application object\n" + . "And specify path to it with 'bootstrap' config\n\n" + . "Sample bootstrap: \n\nclient = new PhalconConnector(); + } + + /** + * HOOK: before scenario + * + * @param TestInterface $test + * @throws ModuleException + */ + public function _before(TestInterface $test) + { + /** @noinspection PhpIncludeInspection */ + $application = require $this->bootstrapFile; + if (!$application instanceof AbstractInjectable) { + throw new ModuleException(__CLASS__, 'Bootstrap must return \Phalcon\Di\AbstractInjectable object'); + } + + $this->di = $application->getDI(); + + Di::reset(); + Di::setDefault($this->di); + + if ($this->di->has('session')) { + // Destroy existing sessions of previous tests + $this->di['session'] = $this->di->get($this->config['session']); + } + + if ($this->di->has('cookies')) { + $this->di['cookies']->useEncryption(false); + } + + if ($this->config['cleanup'] && $this->di->has('db')) { + if ($this->config['savepoints']) { + $this->di['db']->setNestedTransactionsWithSavepoints(true); + } + $this->di['db']->begin(); + $this->debugSection('Database', 'Transaction started'); + } + + // localize + $bootstrap = $this->bootstrapFile; + $this->client->setApplication(function () use ($bootstrap) { + $currentDi = Di::getDefault(); + /** @noinspection PhpIncludeInspection */ + $application = require $bootstrap; + $di = $application->getDI(); + if ($currentDi->has('db')) { + $di['db'] = $currentDi['db']; + } + if ($currentDi->has('session')) { + $di['session'] = $currentDi['session']; + } + if ($di->has('cookies')) { + $di['cookies']->useEncryption(false); + } + return $application; + }); + } + + /** + * HOOK: after scenario + * + * @param TestInterface $test + */ + public function _after(TestInterface $test) + { + if ($this->config['cleanup'] && isset($this->di['db'])) { + while ($this->di['db']->isUnderTransaction()) { + $level = $this->di['db']->getTransactionLevel(); + try { + $this->di['db']->rollback(true); + $this->debugSection('Database', 'Transaction cancelled; all changes reverted.'); + } catch (PDOException $e) { + } + if ($level == $this->di['db']->getTransactionLevel()) { + break; + } + } + $this->di['db']->close(); + } + $this->di = null; + Di::reset(); + + $_SESSION = $_FILES = $_GET = $_POST = $_COOKIE = $_REQUEST = []; + } + + public function _parts() + { + return ['orm', 'services']; + } + + /** + * Provides access the Phalcon application object. + * + * @see \Codeception\Lib\Connector\Phalcon::getApplication + * @return \Phalcon\Application|\Phalcon\Mvc\Micro + */ + public function getApplication() + { + return $this->client->getApplication(); + } + + /** + * Sets value to session. Use for authorization. + * + * @param string $key + * @param mixed $val + */ + public function haveInSession($key, $val) + { + $this->di->get('session')->set($key, $val); + $this->debugSection('Session', json_encode($this->di['session']->toArray())); + } + + /** + * Checks that session contains value. + * If value is `null` checks that session has key. + * + * ``` php + * seeInSession('key'); + * $I->seeInSession('key', 'value'); + * ?> + * ``` + * + * @param string $key + * @param mixed $value + */ + public function seeInSession($key, $value = null) + { + $this->debugSection('Session', json_encode($this->di['session']->toArray())); + + if (is_array($key)) { + $this->seeSessionHasValues($key); + return; + } + + if (!$this->di['session']->has($key)) { + $this->fail("No session variable with key '$key'"); + } + + if (is_null($value)) { + $this->assertTrue($this->di['session']->has($key)); + } else { + $this->assertEquals($value, $this->di['session']->get($key)); + } + } + + /** + * Assert that the session has a given list of values. + * + * ``` php + * seeSessionHasValues(['key1', 'key2']); + * $I->seeSessionHasValues(['key1' => 'value1', 'key2' => 'value2']); + * ?> + * ``` + * + * @param array $bindings + * @return void + */ + public function seeSessionHasValues(array $bindings) + { + foreach ($bindings as $key => $value) { + if (is_int($key)) { + $this->seeInSession($value); + } else { + $this->seeInSession($key, $value); + } + } + } + + /** + * Inserts record into the database. + * + * ``` php + * haveRecord('App\Models\Users', ['name' => 'Phalcon']); + * $I->haveRecord('App\Models\Categories', ['name' => 'Testing']'); + * ?> + * ``` + * + * @param string $model Model name + * @param array $attributes Model attributes + * @return mixed + * @part orm + */ + public function haveRecord($model, $attributes = []) + { + $record = $this->getModelRecord($model); + $res = $record->save($attributes); + $field = function ($field) { + if (is_array($field)) { + return implode(', ', $field); + } + + return $field; + }; + + if (!$res) { + $messages = $record->getMessages(); + $errors = []; + foreach ($messages as $message) { + /** @var \Phalcon\Mvc\Model\MessageInterface $message */ + $errors[] = sprintf( + '[%s] %s: %s', + $message->getType(), + $field($message->getField()), + $message->getMessage() + ); + } + + $this->fail(sprintf("Record %s was not saved. Messages: \n%s", $model, implode(PHP_EOL, $errors))); + + return null; + } + + $this->debugSection($model, json_encode($record)); + + return $this->getModelIdentity($record); + } + + /** + * Checks that record exists in database. + * + * ``` php + * seeRecord('App\Models\Categories', ['name' => 'Testing']); + * ?> + * ``` + * + * @param string $model Model name + * @param array $attributes Model attributes + * @part orm + */ + public function seeRecord($model, $attributes = []) + { + $record = $this->findRecord($model, $attributes); + if (!$record) { + $this->fail("Couldn't find $model with " . json_encode($attributes)); + } + $this->debugSection($model, json_encode($record)); + } + + /** + * Checks that record does not exist in database. + * + * ``` php + * dontSeeRecord('App\Models\Categories', ['name' => 'Testing']); + * ?> + * ``` + * + * @param string $model Model name + * @param array $attributes Model attributes + * @part orm + */ + public function dontSeeRecord($model, $attributes = []) + { + $record = $this->findRecord($model, $attributes); + $this->debugSection($model, json_encode($record)); + if ($record) { + $this->fail("Unexpectedly managed to find $model with " . json_encode($attributes)); + } + } + + /** + * Retrieves record from database + * + * ``` php + * grabRecord('App\Models\Categories', ['name' => 'Testing']); + * ?> + * ``` + * + * @param string $model Model name + * @param array $attributes Model attributes + * @return mixed + * @part orm + */ + public function grabRecord($model, $attributes = []) + { + return $this->findRecord($model, $attributes); + } + + /** + * Resolves the service based on its configuration from Phalcon's DI container + * Recommended to use for unit testing. + * + * @param string $service Service name + * @param array $parameters Parameters [Optional] + * @return mixed + * @part services + */ + public function grabServiceFromContainer($service, array $parameters = []) + { + if (!$this->di->has($service)) { + $this->fail("Service $service is not available in container"); + } + + return $this->di->get($service, $parameters); + } + + /** + * Alias for `grabServiceFromContainer`. + * + * Note: Deprecated. Will be removed in Codeception 2.3. + * + * @param string $service Service name + * @param array $parameters Parameters [Optional] + * @return mixed + * @part services + */ + public function grabServiceFromDi($service, array $parameters = []) + { + return $this->grabServiceFromContainer($service, $parameters); + } + + /** + * Registers a service in the services container and resolve it. This record will be erased after the test. + * Recommended to use for unit testing. + * + * ``` php + * addServiceToContainer('filter', ['className' => '\Phalcon\Filter']); + * $filter = $I->addServiceToContainer('answer', function () { + * return rand(0, 1) ? 'Yes' : 'No'; + * }, true); + * ?> + * ``` + * + * @param string $name + * @param mixed $definition + * @param boolean $shared + * @return mixed|null + * @part services + */ + public function addServiceToContainer($name, $definition, $shared = false) + { + try { + $service = $this->di->set($name, $definition, $shared); + return $service->resolve(); + } catch (\Exception $e) { + $this->fail($e->getMessage()); + + return null; + } + } + + /** + * Alias for `addServiceToContainer`. + * + * Note: Deprecated. Will be removed in Codeception 2.3. + * + * @param string $name + * @param mixed $definition + * @param boolean $shared + * @return mixed|null + * @part services + */ + public function haveServiceInDi($name, $definition, $shared = false) + { + return $this->addServiceToContainer($name, $definition, $shared); + } + + /** + * Opens web page using route name and parameters. + * + * ``` php + * amOnRoute('posts.create'); + * ?> + * ``` + * + * @param string $routeName + * @param array $params + */ + public function amOnRoute($routeName, array $params = []) + { + if (!$this->di->has('url')) { + $this->fail('Unable to resolve "url" service.'); + } + + /** @var Url $url */ + $url = $this->di->getShared('url'); + + $urlParams = ['for' => $routeName]; + + if ($params) { + $urlParams += $params; + } + + $this->amOnPage($url->get($urlParams, null, true)); + } + + /** + * Checks that current url matches route + * + * ``` php + * seeCurrentRouteIs('posts.index'); + * ?> + * ``` + * @param string $routeName + */ + public function seeCurrentRouteIs($routeName) + { + if (!$this->di->has('url')) { + $this->fail('Unable to resolve "url" service.'); + } + + /** @var Url $url */ + $url = $this->di->getShared('url'); + $this->seeCurrentUrlEquals($url->get(['for' => $routeName], null, true)); + } + + /** + * Allows to query the first record that match the specified conditions + * + * @param string $model Model name + * @param array $attributes Model attributes + * + * @return \Phalcon\Mvc\Model + */ + protected function findRecord($model, $attributes = []) + { + $this->getModelRecord($model); + $conditions = []; + $bind = []; + foreach ($attributes as $key => $value) { + if ($value === null) { + $conditions[] = "$key IS NULL"; + } else { + $conditions[] = "$key = :$key:"; + $bind[$key] = $value; + } + } + $query = implode(' AND ', $conditions); + $this->debugSection('Query', $query); + return call_user_func_array([$model, 'findFirst'], [ + [ + 'conditions' => $query, + 'bind' => $bind, + ] + ]); + } + + /** + * Get Model Record + * + * @param $model + * + * @return \Phalcon\Mvc\Model + * @throws ModuleException + */ + protected function getModelRecord($model) + { + if (!class_exists($model)) { + throw new ModuleException(__CLASS__, "Model $model does not exist"); + } + + $record = new $model; + if (!$record instanceof PhalconModel) { + throw new ModuleException(__CLASS__, "Model $model is not instance of \\Phalcon\\Mvc\\Model"); + } + + return $record; + } + + /** + * Get identity. + * + * @param \Phalcon\Mvc\Model $model + * @return mixed + */ + protected function getModelIdentity(PhalconModel $model) + { + if (property_exists($model, 'id')) { + return $model->id; + } + + if (!$this->di->has('modelsMetadata')) { + return null; + } + + $primaryKeys = $this->di->get('modelsMetadata')->getPrimaryKeyAttributes($model); + + switch (count($primaryKeys)) { + case 0: + return null; + case 1: + return $model->{$primaryKeys[0]}; + default: + return array_intersect_key(get_object_vars($model), array_flip($primaryKeys)); + } + } + + /** + * Returns a list of recognized domain names + * + * @return array + */ + protected function getInternalDomains() + { + $internalDomains = [$this->getApplicationDomainRegex()]; + + /** @var RouterInterface $router */ + $router = $this->di->get('router'); + + if ($router instanceof RouterInterface) { + /** @var RouteInterface[] $routes */ + $routes = $router->getRoutes(); + + foreach ($routes as $route) { + if ($route instanceof RouteInterface) { + $hostName = $route->getHostname(); + if (!empty($hostName)) { + $internalDomains[] = '/^' . str_replace('.', '\.', $route->getHostname()) . '$/'; + } + } + } + } + + return array_unique($internalDomains); + } + + /** + * @return string + */ + private function getApplicationDomainRegex() + { + $server = ReflectionHelper::readPrivateProperty($this->client, 'server'); + $domain = $server['HTTP_HOST']; + + return '/^' . str_replace('.', '\.', $domain) . '$/'; + } +} From d84caca2f02f4081c70c71aa5455ffe888d9404a Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Fri, 6 Sep 2019 20:00:03 -0400 Subject: [PATCH 075/202] [#14359] - Trying require --- tests/_config/bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/_config/bootstrap.php b/tests/_config/bootstrap.php index 0c86928a890..9a46085e139 100644 --- a/tests/_config/bootstrap.php +++ b/tests/_config/bootstrap.php @@ -23,7 +23,7 @@ /** * @todo Ugly hack to make codeception work with a phalcon4 module */ -require_once $root . '/tests/_data/fixtures/Phalcon.php'; +require $root . '/tests/_data/fixtures/Phalcon.php'; /** * Config From 3aa527fe813b6806ae14aca082c78eef2db2b450 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Fri, 6 Sep 2019 20:01:50 -0400 Subject: [PATCH 076/202] [#14359] - Renamed Injectable again --- phalcon/Application/AbstractApplication.zep | 4 +- phalcon/Cli/Task.zep | 4 +- ...{AbstractInjectable.zep => Injectable.zep} | 2 +- phalcon/Forms/Form.zep | 4 +- phalcon/Mvc/Controller.zep | 4 +- phalcon/Mvc/Micro.zep | 4 +- phalcon/Mvc/View.zep | 4 +- phalcon/Mvc/View/Engine/AbstractEngine.zep | 4 +- phalcon/Mvc/View/Simple.zep | 4 +- phalcon/Validation.zep | 4 +- phalcon/Validation/ValidationInterface.zep | 2 +- tests/_config/bootstrap.php | 5 - tests/_data/fixtures/Phalcon.php | 674 ------------------ 13 files changed, 20 insertions(+), 699 deletions(-) rename phalcon/Di/{AbstractInjectable.zep => Injectable.zep} (98%) delete mode 100644 tests/_data/fixtures/Phalcon.php diff --git a/phalcon/Application/AbstractApplication.zep b/phalcon/Application/AbstractApplication.zep index 92a8525a372..f064920d930 100644 --- a/phalcon/Application/AbstractApplication.zep +++ b/phalcon/Application/AbstractApplication.zep @@ -12,14 +12,14 @@ namespace Phalcon\Application; use Phalcon\Application\Exception; use Phalcon\Di\DiInterface; -use Phalcon\Di\AbstractInjectable; +use Phalcon\Di\Injectable; use Phalcon\Events\EventsAwareInterface; use Phalcon\Events\ManagerInterface; /** * Base class for Phalcon\Cli\Console and Phalcon\Mvc\Application. */ -abstract class AbstractApplication extends AbstractInjectable implements EventsAwareInterface +abstract class AbstractApplication extends Injectable implements EventsAwareInterface { /** * @var DiInterface diff --git a/phalcon/Cli/Task.zep b/phalcon/Cli/Task.zep index 6bd8413f670..d367d059226 100644 --- a/phalcon/Cli/Task.zep +++ b/phalcon/Cli/Task.zep @@ -10,7 +10,7 @@ namespace Phalcon\Cli; -use Phalcon\Di\AbstractInjectable; +use Phalcon\Di\Injectable; /** * Every command-line task should extend this class that encapsulates all the @@ -36,7 +36,7 @@ use Phalcon\Di\AbstractInjectable; * } *``` */ -class Task extends AbstractInjectable implements TaskInterface +class Task extends Injectable implements TaskInterface { /** * Phalcon\Cli\Task constructor diff --git a/phalcon/Di/AbstractInjectable.zep b/phalcon/Di/Injectable.zep similarity index 98% rename from phalcon/Di/AbstractInjectable.zep rename to phalcon/Di/Injectable.zep index d85ba962798..cc45ae35bc9 100644 --- a/phalcon/Di/AbstractInjectable.zep +++ b/phalcon/Di/Injectable.zep @@ -47,7 +47,7 @@ use Phalcon\Session\BagInterface; * @property \Phalcon\Session\Bag|\Phalcon\Session\BagInterface $persistent * @property \Phalcon\Mvc\View|\Phalcon\Mvc\ViewInterface $view */ -abstract class AbstractInjectable implements InjectionAwareInterface, EventsAwareInterface +abstract class Injectable implements InjectionAwareInterface, EventsAwareInterface { /** * Dependency Injector diff --git a/phalcon/Forms/Form.zep b/phalcon/Forms/Form.zep index f296517f607..c5148032e23 100644 --- a/phalcon/Forms/Form.zep +++ b/phalcon/Forms/Form.zep @@ -12,7 +12,7 @@ namespace Phalcon\Forms; use Countable; use Iterator; -use Phalcon\Di\AbstractInjectable; +use Phalcon\Di\Injectable; use Phalcon\Di\DiInterface; use Phalcon\FilterInterface; use Phalcon\Filter\FilterInterface; @@ -28,7 +28,7 @@ use Phalcon\Validation\ValidationInterface; /** * This component allows to build forms using an object-oriented interface */ -class Form extends AbstractInjectable implements Countable, Iterator, AttributesInterface +class Form extends Injectable implements Countable, Iterator, AttributesInterface { protected attributes; diff --git a/phalcon/Mvc/Controller.zep b/phalcon/Mvc/Controller.zep index 2b1bcfbc012..c6dddfe6d97 100644 --- a/phalcon/Mvc/Controller.zep +++ b/phalcon/Mvc/Controller.zep @@ -10,7 +10,7 @@ namespace Phalcon\Mvc; -use Phalcon\Di\AbstractInjectable; +use Phalcon\Di\Injectable; /** * Phalcon\Mvc\Controller @@ -52,7 +52,7 @@ use Phalcon\Di\AbstractInjectable; * } *``` */ -abstract class Controller extends AbstractInjectable implements ControllerInterface +abstract class Controller extends Injectable implements ControllerInterface { /** * Phalcon\Mvc\Controller constructor diff --git a/phalcon/Mvc/Micro.zep b/phalcon/Mvc/Micro.zep index 57f26a1a58d..ddef0d18c4d 100644 --- a/phalcon/Mvc/Micro.zep +++ b/phalcon/Mvc/Micro.zep @@ -13,7 +13,7 @@ namespace Phalcon\Mvc; use ArrayAccess; use Closure; use Phalcon\Di\DiInterface; -use Phalcon\Di\AbstractInjectable; +use Phalcon\Di\Injectable; use Phalcon\Mvc\Controller; use Phalcon\Di\FactoryDefault; use Phalcon\Mvc\Micro\Exception; @@ -48,7 +48,7 @@ use Throwable; * $app->handle("/say/welcome/Phalcon"); *``` */ -class Micro extends AbstractInjectable implements ArrayAccess +class Micro extends Injectable implements ArrayAccess { protected activeHandler; diff --git a/phalcon/Mvc/View.zep b/phalcon/Mvc/View.zep index 082765f836f..20676111ab6 100644 --- a/phalcon/Mvc/View.zep +++ b/phalcon/Mvc/View.zep @@ -12,7 +12,7 @@ namespace Phalcon\Mvc; use Closure; use Phalcon\Di\DiInterface; -use Phalcon\Di\AbstractInjectable; +use Phalcon\Di\Injectable; use Phalcon\Events\ManagerInterface; use Phalcon\Helper\Arr; use Phalcon\Helper\Str; @@ -46,7 +46,7 @@ use Phalcon\Mvc\View\Engine\Php as PhpEngine; * echo $view->getContent(); * ``` */ -class View extends AbstractInjectable implements ViewInterface +class View extends Injectable implements ViewInterface { /** * Render Level: To the action view diff --git a/phalcon/Mvc/View/Engine/AbstractEngine.zep b/phalcon/Mvc/View/Engine/AbstractEngine.zep index 87521ba48f3..a193da8ee21 100644 --- a/phalcon/Mvc/View/Engine/AbstractEngine.zep +++ b/phalcon/Mvc/View/Engine/AbstractEngine.zep @@ -11,14 +11,14 @@ namespace Phalcon\Mvc\View\Engine; use Phalcon\Di\DiInterface; -use Phalcon\Di\AbstractInjectable; +use Phalcon\Di\Injectable; use Phalcon\Mvc\ViewBaseInterface; /** * All the template engine adapters must inherit this class. This provides * basic interfacing between the engine and the Phalcon\Mvc\View component. */ -abstract class AbstractEngine extends AbstractInjectable implements EngineInterface +abstract class AbstractEngine extends Injectable implements EngineInterface { protected view; diff --git a/phalcon/Mvc/View/Simple.zep b/phalcon/Mvc/View/Simple.zep index e8d7b527170..d09f627cb4d 100644 --- a/phalcon/Mvc/View/Simple.zep +++ b/phalcon/Mvc/View/Simple.zep @@ -12,7 +12,7 @@ namespace Phalcon\Mvc\View; use Closure; use Phalcon\Di\DiInterface; -use Phalcon\Di\AbstractInjectable; +use Phalcon\Di\Injectable; use Phalcon\Helper\Arr; use Phalcon\Helper\Str; use Phalcon\Mvc\View\Exception; @@ -47,7 +47,7 @@ use Phalcon\Mvc\View\Engine\Php as PhpEngine; * ); *``` */ -class Simple extends AbstractInjectable implements ViewBaseInterface +class Simple extends Injectable implements ViewBaseInterface { protected activeRenderPath; protected content; diff --git a/phalcon/Validation.zep b/phalcon/Validation.zep index 48b4e005c79..f9171e8d268 100644 --- a/phalcon/Validation.zep +++ b/phalcon/Validation.zep @@ -12,7 +12,7 @@ namespace Phalcon; use Phalcon\Di; use Phalcon\Di\DiInterface; -use Phalcon\Di\AbstractInjectable; +use Phalcon\Di\Injectable; use Phalcon\Filter\FilterInterface; use Phalcon\Messages\MessageInterface; use Phalcon\Messages\Messages; @@ -24,7 +24,7 @@ use Phalcon\Validation\AbstractCombinedFieldsValidator; /** * Allows to validate data using custom or built-in validators */ -class Validation extends AbstractInjectable implements ValidationInterface +class Validation extends Injectable implements ValidationInterface { protected combinedFieldsValidators; protected data { get }; diff --git a/phalcon/Validation/ValidationInterface.zep b/phalcon/Validation/ValidationInterface.zep index a4b6f374969..00a02c93290 100644 --- a/phalcon/Validation/ValidationInterface.zep +++ b/phalcon/Validation/ValidationInterface.zep @@ -10,7 +10,7 @@ namespace Phalcon\Validation; -use Phalcon\Di\AbstractInjectable; +use Phalcon\Di\Injectable; use Phalcon\Messages\MessageInterface; use Phalcon\Messages\Messages; use Phalcon\Validation\Exception; diff --git a/tests/_config/bootstrap.php b/tests/_config/bootstrap.php index 9a46085e139..28d0ee13ee2 100644 --- a/tests/_config/bootstrap.php +++ b/tests/_config/bootstrap.php @@ -20,11 +20,6 @@ loadEnvironment($root); -/** - * @todo Ugly hack to make codeception work with a phalcon4 module - */ -require $root . '/tests/_data/fixtures/Phalcon.php'; - /** * Config */ diff --git a/tests/_data/fixtures/Phalcon.php b/tests/_data/fixtures/Phalcon.php deleted file mode 100644 index 7ed479833c2..00000000000 --- a/tests/_data/fixtures/Phalcon.php +++ /dev/null @@ -1,674 +0,0 @@ - - * - * ## Status - * - * * Maintainer: **Serghei Iakovlev** - * * Stability: **stable** - * * Contact: serghei@phalcon.io - * - * ## Config - * - * The following configurations are required for this module: - * - * * bootstrap: `string`, default `app/config/bootstrap.php` - relative path to app.php config file - * * cleanup: `boolean`, default `true` - all database queries will be run in a transaction, - * which will be rolled back at the end of each test - * * savepoints: `boolean`, default `true` - use savepoints to emulate nested transactions - * - * The application bootstrap file must return Application object but not call its handle() method. - * - * ## API - * - * * di - `Phalcon\Di\Injectable` instance - * * client - `BrowserKit` client - * - * ## Parts - * - * By default all available methods are loaded, but you can specify parts to select only needed - * actions and avoid conflicts. - * - * * `orm` - include only `haveRecord/grabRecord/seeRecord/dontSeeRecord` actions. - * * `services` - allows to use `grabServiceFromContainer` and `addServiceToContainer`. - * - * Usage example: - * - * Sample bootstrap (`app/config/bootstrap.php`): - * - * ``` php - * - * ``` - * - * ```yaml - * actor: AcceptanceTester - * modules: - * enabled: - * - Phalcon: - * part: services - * bootstrap: 'app/config/bootstrap.php' - * cleanup: true - * savepoints: true - * - WebDriver: - * url: http://your-url.com - * browser: phantomjs - * ``` - */ -class Phalcon extends Framework implements ActiveRecord, PartedModule -{ - protected $config = [ - 'bootstrap' => 'app/config/bootstrap.php', - 'cleanup' => true, - 'savepoints' => true, - 'session' => PhalconConnector\MemorySession::class - ]; - - /** - * Phalcon bootstrap file path - */ - protected $bootstrapFile = null; - - /** - * Dependency injection container - * @var DiInterface - */ - public $di = null; - - /** - * Phalcon Connector - * @var PhalconConnector - */ - public $client; - - /** - * HOOK: used after configuration is loaded - * - * @throws ModuleConfigException - */ - public function _initialize() - { - $this->bootstrapFile = Configuration::projectDir() . $this->config['bootstrap']; - - if (!file_exists($this->bootstrapFile)) { - throw new ModuleConfigException( - __CLASS__, - "Bootstrap file does not exist in " . $this->config['bootstrap'] . "\n" - . "Please create the bootstrap file that returns Application object\n" - . "And specify path to it with 'bootstrap' config\n\n" - . "Sample bootstrap: \n\nclient = new PhalconConnector(); - } - - /** - * HOOK: before scenario - * - * @param TestInterface $test - * @throws ModuleException - */ - public function _before(TestInterface $test) - { - /** @noinspection PhpIncludeInspection */ - $application = require $this->bootstrapFile; - if (!$application instanceof AbstractInjectable) { - throw new ModuleException(__CLASS__, 'Bootstrap must return \Phalcon\Di\AbstractInjectable object'); - } - - $this->di = $application->getDI(); - - Di::reset(); - Di::setDefault($this->di); - - if ($this->di->has('session')) { - // Destroy existing sessions of previous tests - $this->di['session'] = $this->di->get($this->config['session']); - } - - if ($this->di->has('cookies')) { - $this->di['cookies']->useEncryption(false); - } - - if ($this->config['cleanup'] && $this->di->has('db')) { - if ($this->config['savepoints']) { - $this->di['db']->setNestedTransactionsWithSavepoints(true); - } - $this->di['db']->begin(); - $this->debugSection('Database', 'Transaction started'); - } - - // localize - $bootstrap = $this->bootstrapFile; - $this->client->setApplication(function () use ($bootstrap) { - $currentDi = Di::getDefault(); - /** @noinspection PhpIncludeInspection */ - $application = require $bootstrap; - $di = $application->getDI(); - if ($currentDi->has('db')) { - $di['db'] = $currentDi['db']; - } - if ($currentDi->has('session')) { - $di['session'] = $currentDi['session']; - } - if ($di->has('cookies')) { - $di['cookies']->useEncryption(false); - } - return $application; - }); - } - - /** - * HOOK: after scenario - * - * @param TestInterface $test - */ - public function _after(TestInterface $test) - { - if ($this->config['cleanup'] && isset($this->di['db'])) { - while ($this->di['db']->isUnderTransaction()) { - $level = $this->di['db']->getTransactionLevel(); - try { - $this->di['db']->rollback(true); - $this->debugSection('Database', 'Transaction cancelled; all changes reverted.'); - } catch (PDOException $e) { - } - if ($level == $this->di['db']->getTransactionLevel()) { - break; - } - } - $this->di['db']->close(); - } - $this->di = null; - Di::reset(); - - $_SESSION = $_FILES = $_GET = $_POST = $_COOKIE = $_REQUEST = []; - } - - public function _parts() - { - return ['orm', 'services']; - } - - /** - * Provides access the Phalcon application object. - * - * @see \Codeception\Lib\Connector\Phalcon::getApplication - * @return \Phalcon\Application|\Phalcon\Mvc\Micro - */ - public function getApplication() - { - return $this->client->getApplication(); - } - - /** - * Sets value to session. Use for authorization. - * - * @param string $key - * @param mixed $val - */ - public function haveInSession($key, $val) - { - $this->di->get('session')->set($key, $val); - $this->debugSection('Session', json_encode($this->di['session']->toArray())); - } - - /** - * Checks that session contains value. - * If value is `null` checks that session has key. - * - * ``` php - * seeInSession('key'); - * $I->seeInSession('key', 'value'); - * ?> - * ``` - * - * @param string $key - * @param mixed $value - */ - public function seeInSession($key, $value = null) - { - $this->debugSection('Session', json_encode($this->di['session']->toArray())); - - if (is_array($key)) { - $this->seeSessionHasValues($key); - return; - } - - if (!$this->di['session']->has($key)) { - $this->fail("No session variable with key '$key'"); - } - - if (is_null($value)) { - $this->assertTrue($this->di['session']->has($key)); - } else { - $this->assertEquals($value, $this->di['session']->get($key)); - } - } - - /** - * Assert that the session has a given list of values. - * - * ``` php - * seeSessionHasValues(['key1', 'key2']); - * $I->seeSessionHasValues(['key1' => 'value1', 'key2' => 'value2']); - * ?> - * ``` - * - * @param array $bindings - * @return void - */ - public function seeSessionHasValues(array $bindings) - { - foreach ($bindings as $key => $value) { - if (is_int($key)) { - $this->seeInSession($value); - } else { - $this->seeInSession($key, $value); - } - } - } - - /** - * Inserts record into the database. - * - * ``` php - * haveRecord('App\Models\Users', ['name' => 'Phalcon']); - * $I->haveRecord('App\Models\Categories', ['name' => 'Testing']'); - * ?> - * ``` - * - * @param string $model Model name - * @param array $attributes Model attributes - * @return mixed - * @part orm - */ - public function haveRecord($model, $attributes = []) - { - $record = $this->getModelRecord($model); - $res = $record->save($attributes); - $field = function ($field) { - if (is_array($field)) { - return implode(', ', $field); - } - - return $field; - }; - - if (!$res) { - $messages = $record->getMessages(); - $errors = []; - foreach ($messages as $message) { - /** @var \Phalcon\Mvc\Model\MessageInterface $message */ - $errors[] = sprintf( - '[%s] %s: %s', - $message->getType(), - $field($message->getField()), - $message->getMessage() - ); - } - - $this->fail(sprintf("Record %s was not saved. Messages: \n%s", $model, implode(PHP_EOL, $errors))); - - return null; - } - - $this->debugSection($model, json_encode($record)); - - return $this->getModelIdentity($record); - } - - /** - * Checks that record exists in database. - * - * ``` php - * seeRecord('App\Models\Categories', ['name' => 'Testing']); - * ?> - * ``` - * - * @param string $model Model name - * @param array $attributes Model attributes - * @part orm - */ - public function seeRecord($model, $attributes = []) - { - $record = $this->findRecord($model, $attributes); - if (!$record) { - $this->fail("Couldn't find $model with " . json_encode($attributes)); - } - $this->debugSection($model, json_encode($record)); - } - - /** - * Checks that record does not exist in database. - * - * ``` php - * dontSeeRecord('App\Models\Categories', ['name' => 'Testing']); - * ?> - * ``` - * - * @param string $model Model name - * @param array $attributes Model attributes - * @part orm - */ - public function dontSeeRecord($model, $attributes = []) - { - $record = $this->findRecord($model, $attributes); - $this->debugSection($model, json_encode($record)); - if ($record) { - $this->fail("Unexpectedly managed to find $model with " . json_encode($attributes)); - } - } - - /** - * Retrieves record from database - * - * ``` php - * grabRecord('App\Models\Categories', ['name' => 'Testing']); - * ?> - * ``` - * - * @param string $model Model name - * @param array $attributes Model attributes - * @return mixed - * @part orm - */ - public function grabRecord($model, $attributes = []) - { - return $this->findRecord($model, $attributes); - } - - /** - * Resolves the service based on its configuration from Phalcon's DI container - * Recommended to use for unit testing. - * - * @param string $service Service name - * @param array $parameters Parameters [Optional] - * @return mixed - * @part services - */ - public function grabServiceFromContainer($service, array $parameters = []) - { - if (!$this->di->has($service)) { - $this->fail("Service $service is not available in container"); - } - - return $this->di->get($service, $parameters); - } - - /** - * Alias for `grabServiceFromContainer`. - * - * Note: Deprecated. Will be removed in Codeception 2.3. - * - * @param string $service Service name - * @param array $parameters Parameters [Optional] - * @return mixed - * @part services - */ - public function grabServiceFromDi($service, array $parameters = []) - { - return $this->grabServiceFromContainer($service, $parameters); - } - - /** - * Registers a service in the services container and resolve it. This record will be erased after the test. - * Recommended to use for unit testing. - * - * ``` php - * addServiceToContainer('filter', ['className' => '\Phalcon\Filter']); - * $filter = $I->addServiceToContainer('answer', function () { - * return rand(0, 1) ? 'Yes' : 'No'; - * }, true); - * ?> - * ``` - * - * @param string $name - * @param mixed $definition - * @param boolean $shared - * @return mixed|null - * @part services - */ - public function addServiceToContainer($name, $definition, $shared = false) - { - try { - $service = $this->di->set($name, $definition, $shared); - return $service->resolve(); - } catch (\Exception $e) { - $this->fail($e->getMessage()); - - return null; - } - } - - /** - * Alias for `addServiceToContainer`. - * - * Note: Deprecated. Will be removed in Codeception 2.3. - * - * @param string $name - * @param mixed $definition - * @param boolean $shared - * @return mixed|null - * @part services - */ - public function haveServiceInDi($name, $definition, $shared = false) - { - return $this->addServiceToContainer($name, $definition, $shared); - } - - /** - * Opens web page using route name and parameters. - * - * ``` php - * amOnRoute('posts.create'); - * ?> - * ``` - * - * @param string $routeName - * @param array $params - */ - public function amOnRoute($routeName, array $params = []) - { - if (!$this->di->has('url')) { - $this->fail('Unable to resolve "url" service.'); - } - - /** @var Url $url */ - $url = $this->di->getShared('url'); - - $urlParams = ['for' => $routeName]; - - if ($params) { - $urlParams += $params; - } - - $this->amOnPage($url->get($urlParams, null, true)); - } - - /** - * Checks that current url matches route - * - * ``` php - * seeCurrentRouteIs('posts.index'); - * ?> - * ``` - * @param string $routeName - */ - public function seeCurrentRouteIs($routeName) - { - if (!$this->di->has('url')) { - $this->fail('Unable to resolve "url" service.'); - } - - /** @var Url $url */ - $url = $this->di->getShared('url'); - $this->seeCurrentUrlEquals($url->get(['for' => $routeName], null, true)); - } - - /** - * Allows to query the first record that match the specified conditions - * - * @param string $model Model name - * @param array $attributes Model attributes - * - * @return \Phalcon\Mvc\Model - */ - protected function findRecord($model, $attributes = []) - { - $this->getModelRecord($model); - $conditions = []; - $bind = []; - foreach ($attributes as $key => $value) { - if ($value === null) { - $conditions[] = "$key IS NULL"; - } else { - $conditions[] = "$key = :$key:"; - $bind[$key] = $value; - } - } - $query = implode(' AND ', $conditions); - $this->debugSection('Query', $query); - return call_user_func_array([$model, 'findFirst'], [ - [ - 'conditions' => $query, - 'bind' => $bind, - ] - ]); - } - - /** - * Get Model Record - * - * @param $model - * - * @return \Phalcon\Mvc\Model - * @throws ModuleException - */ - protected function getModelRecord($model) - { - if (!class_exists($model)) { - throw new ModuleException(__CLASS__, "Model $model does not exist"); - } - - $record = new $model; - if (!$record instanceof PhalconModel) { - throw new ModuleException(__CLASS__, "Model $model is not instance of \\Phalcon\\Mvc\\Model"); - } - - return $record; - } - - /** - * Get identity. - * - * @param \Phalcon\Mvc\Model $model - * @return mixed - */ - protected function getModelIdentity(PhalconModel $model) - { - if (property_exists($model, 'id')) { - return $model->id; - } - - if (!$this->di->has('modelsMetadata')) { - return null; - } - - $primaryKeys = $this->di->get('modelsMetadata')->getPrimaryKeyAttributes($model); - - switch (count($primaryKeys)) { - case 0: - return null; - case 1: - return $model->{$primaryKeys[0]}; - default: - return array_intersect_key(get_object_vars($model), array_flip($primaryKeys)); - } - } - - /** - * Returns a list of recognized domain names - * - * @return array - */ - protected function getInternalDomains() - { - $internalDomains = [$this->getApplicationDomainRegex()]; - - /** @var RouterInterface $router */ - $router = $this->di->get('router'); - - if ($router instanceof RouterInterface) { - /** @var RouteInterface[] $routes */ - $routes = $router->getRoutes(); - - foreach ($routes as $route) { - if ($route instanceof RouteInterface) { - $hostName = $route->getHostname(); - if (!empty($hostName)) { - $internalDomains[] = '/^' . str_replace('.', '\.', $route->getHostname()) . '$/'; - } - } - } - } - - return array_unique($internalDomains); - } - - /** - * @return string - */ - private function getApplicationDomainRegex() - { - $server = ReflectionHelper::readPrivateProperty($this->client, 'server'); - $domain = $server['HTTP_HOST']; - - return '/^' . str_replace('.', '\.', $domain) . '$/'; - } -} From 40b75db5d59b444a77f354f676041e19668e97c6 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Fri, 6 Sep 2019 21:20:23 -0400 Subject: [PATCH 077/202] [#14359] - Updated changelog --- CHANGELOG-4.0.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG-4.0.md b/CHANGELOG-4.0.md index 6d2d0954b7e..8e48c80f37b 100644 --- a/CHANGELOG-4.0.md +++ b/CHANGELOG-4.0.md @@ -7,6 +7,7 @@ - Changed `Phalcon\Session\Manager` to allow `router` in the constructor [#14351](https://github.com/phalcon/cphalcon/pull/14351) - Changed `Phalcon\Flash\Direct` to allow `escaper` in the constructor [#14349](https://github.com/phalcon/cphalcon/issues/14349) - Changed `Phalcon\Flash\Session` to allow `escaper` in the constructor [#14349](https://github.com/phalcon/cphalcon/issues/14349) +- Changed `Phalcon\Di\AbstractDIAware` to `Phalcon\Di\AbstractInjectionAware` [#14359](https://github.com/phalcon/cphalcon/issues/14359) ## Fixed - Fixed `Phalcon\Helper\Str::includes` to return correct result [#14301](https://github.com/phalcon/cphalcon/issues/14301) @@ -22,6 +23,9 @@ - Fixed `Phalcon\Security::getSessionToken` return value [#14346](https://github.com/phalcon/cphalcon/issues/14346) - Fixed `Phalcon\Flash\*` interfaces for `message()` to return `string/null` [#14349](https://github.com/phalcon/cphalcon/issues/14349) +## Removed +- Removed `Phalcon\Plugin` - duplicate of `Phalcon\DI\Injectable` [#14359](https://github.com/phalcon/cphalcon/issues/14359) + # [4.0.0-beta.2](https://github.com/phalcon/cphalcon/releases/tag/v4.0.0-beta.2) (2019-08-18) ## Fixed From 432d9fcc899e20660f096aa22dc70728e6dfca32 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Fri, 6 Sep 2019 21:24:51 -0400 Subject: [PATCH 078/202] [#14359] - Fixing appveyor --- ext/phalcon/plugin.zep.c | 36 ------------------------------------ ext/phalcon/plugin.zep.h | 5 ----- 2 files changed, 41 deletions(-) delete mode 100644 ext/phalcon/plugin.zep.c delete mode 100644 ext/phalcon/plugin.zep.h diff --git a/ext/phalcon/plugin.zep.c b/ext/phalcon/plugin.zep.c deleted file mode 100644 index 2114bafb221..00000000000 --- a/ext/phalcon/plugin.zep.c +++ /dev/null @@ -1,36 +0,0 @@ - -#ifdef HAVE_CONFIG_H -#include "../ext_config.h" -#endif - -#include -#include "../php_ext.h" -#include "../ext.h" - -#include -#include -#include - -#include "kernel/main.h" - - -/** - * This file is part of the Phalcon Framework. - * - * (c) Phalcon Team - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ -/** - * This class can be used to provide user plugins an easy access to services - * in the application - */ -ZEPHIR_INIT_CLASS(Phalcon_Plugin) { - - ZEPHIR_REGISTER_CLASS_EX(Phalcon, Plugin, phalcon, plugin, phalcon_di_injectable_ce, NULL, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); - - return SUCCESS; - -} - diff --git a/ext/phalcon/plugin.zep.h b/ext/phalcon/plugin.zep.h deleted file mode 100644 index 892108120a7..00000000000 --- a/ext/phalcon/plugin.zep.h +++ /dev/null @@ -1,5 +0,0 @@ - -extern zend_class_entry *phalcon_plugin_ce; - -ZEPHIR_INIT_CLASS(Phalcon_Plugin); - From a185740074ed56e5ad0412542b1ee645e10bbd32 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Fri, 6 Sep 2019 13:07:08 -0400 Subject: [PATCH 079/202] [#14349] - Changed the interfaces and added escaper to the constructor --- phalcon/Flash/AbstractFlash.zep | 101 +++++++++++++------------------ phalcon/Flash/FlashInterface.zep | 10 +-- 2 files changed, 48 insertions(+), 63 deletions(-) diff --git a/phalcon/Flash/AbstractFlash.zep b/phalcon/Flash/AbstractFlash.zep index b23ce44b692..60c0174683c 100644 --- a/phalcon/Flash/AbstractFlash.zep +++ b/phalcon/Flash/AbstractFlash.zep @@ -12,7 +12,7 @@ namespace Phalcon\Flash; use Phalcon\Di; use Phalcon\Di\DiInterface; -use Phalcon\Di\InjectionAwareInterface; +use Phalcon\Di\AbstractDiAware; use Phalcon\Escaper\EscaperInterface; use Phalcon\Flash\Exception; @@ -25,7 +25,7 @@ use Phalcon\Flash\Exception; * $flash->error("Cannot open the file"); *``` */ -abstract class AbstractFlash implements FlashInterface, InjectionAwareInterface +abstract class AbstractFlash extends AbstractDiAware implements FlashInterface { /** * @var bool @@ -47,8 +47,9 @@ abstract class AbstractFlash implements FlashInterface, InjectionAwareInterface */ protected customTemplate = ""; - protected container = null; - + /** + * @var EscaperInterface | null + */ protected escaperService = null; /** @@ -56,23 +57,24 @@ abstract class AbstractFlash implements FlashInterface, InjectionAwareInterface */ protected implicitFlush = true; + /** + * @var array + */ protected messages = []; /** * Phalcon\Flash constructor */ - public function __construct(cssClasses = null) -> void + public function __construct( escaper = null) -> void { - if typeof cssClasses != "array" { - let cssClasses = [ - "error": "errorMessage", - "notice": "noticeMessage", - "success": "successMessage", - "warning": "warningMessage" - ]; - } - - let this->cssClasses = cssClasses; + let this->escaperService = escaper; + + let this->cssClasses = [ + "error" : "errorMessage", + "notice" : "noticeMessage", + "success" : "successMessage", + "warning" : "warningMessage" + ]; } /** @@ -90,9 +92,9 @@ abstract class AbstractFlash implements FlashInterface, InjectionAwareInterface * $flash->error("This is an error"); *``` */ - public function error(string message) -> string + public function error(string message) -> void { - return this->{"message"}("error", message); + this->{"message"}("error", message); } /** @@ -111,40 +113,33 @@ abstract class AbstractFlash implements FlashInterface, InjectionAwareInterface return this->customTemplate; } - /** - * Returns the internal dependency injector - */ - public function getDI() -> - { - var di; - - let di = this->container; - - if typeof di != "object" { - let di = Di::getDefault(); - } - - return di; - } - /** * Returns the Escaper Service */ public function getEscaperService() -> { - var escaper, container; - - let escaper = this->escaperService; + var container; - if typeof escaper != "object" { - let container = this->getDI(); + if this->escaperService { + return this->escaperService; + } - let escaper = container->getShared("escaper"), - this->escaperService = escaper; + let container = this->container; + if unlikely typeof container != "object" { + throw new Exception( + Exception::containerServiceNotFound("the 'escaper' service") + ); } - return escaper; + if likely container->has("escaper") { + return container->getShared("escaper"); + } else { + throw new Exception( + Exception::containerServiceNotFound("the 'escaper' service") + ); + } } + /** * Shows a HTML notice/information message * @@ -152,15 +147,15 @@ abstract class AbstractFlash implements FlashInterface, InjectionAwareInterface * $flash->notice("This is an information"); *``` */ - public function notice(string message) -> string + public function notice(string message) -> void { - return this->{"message"}("notice", message); + this->{"message"}("notice", message); } /** * Set the autoescape mode in generated html */ - public function setAutoescape(bool autoescape) -> + public function setAutoescape(bool autoescape) -> { let this->autoescape = autoescape; @@ -197,16 +192,6 @@ abstract class AbstractFlash implements FlashInterface, InjectionAwareInterface return this; } - /** - * Sets the dependency injector - */ - public function setDI( container) -> - { - let this->container = container; - - return this; - } - /** * Sets the Escaper Service */ @@ -235,9 +220,9 @@ abstract class AbstractFlash implements FlashInterface, InjectionAwareInterface * $flash->success("The process was finished successfully"); *``` */ - public function success(string message) -> string + public function success(string message) -> void { - return this->{"message"}("success", message); + this->{"message"}("success", message); } /** @@ -326,9 +311,9 @@ abstract class AbstractFlash implements FlashInterface, InjectionAwareInterface * $flash->warning("Hey, this is important"); *``` */ - public function warning(string message) -> string + public function warning(string message) -> void { - return this->{"message"}("warning", message); + this->{"message"}("warning", message); } diff --git a/phalcon/Flash/FlashInterface.zep b/phalcon/Flash/FlashInterface.zep index f398a82b2b6..5c8a02da6b7 100644 --- a/phalcon/Flash/FlashInterface.zep +++ b/phalcon/Flash/FlashInterface.zep @@ -20,25 +20,25 @@ interface FlashInterface /** * Shows a HTML error message */ - public function error(string message) -> string; + public function error(string message) -> void; /** * Outputs a message */ - public function message(string type, string message); + public function message(string type, string message) -> void; /** * Shows a HTML notice/information message */ - public function notice(string message) -> string; + public function notice(string message) -> void; /** * Shows a HTML success message */ - public function success(string message) -> string; + public function success(string message) -> void; /** * Shows a HTML warning message */ - public function warning(string message) -> string; + public function warning(string message) -> void; } From 6000b5a22aac0e2779dec3f79f16a5d2f70ed701 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Fri, 6 Sep 2019 13:44:35 -0400 Subject: [PATCH 080/202] [#14349] - Correcting tests --- tests/unit/Flash/Direct/Helper/FlashBase.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/unit/Flash/Direct/Helper/FlashBase.php b/tests/unit/Flash/Direct/Helper/FlashBase.php index c63c1d8f81e..6f33fea6f76 100644 --- a/tests/unit/Flash/Direct/Helper/FlashBase.php +++ b/tests/unit/Flash/Direct/Helper/FlashBase.php @@ -23,6 +23,7 @@ class FlashBase private $notImplicit = false; private $notHtml = false; private $classes = null; + private $escaper = null; private $default = [ 'success' => 'successMessage', @@ -33,8 +34,7 @@ class FlashBase public function _before(UnitTester $I) { - $this->newDi(); - $this->setDiEscaper(); + $this->escaper = $this->newEscaper(); } /** @@ -65,7 +65,9 @@ public function testFlashDirectImplicitFlushHtml(UnitTester $I) */ private function stringTest(UnitTester $I, string $function) { - $flash = new Direct($this->classes); + $flash = new Direct($this->escaper); + $flash->setClasses($this->classes); + $message = 'sample message'; if ($this->notHtml) { @@ -214,7 +216,8 @@ public function testFlashDirectNoImplicitFlushNoHtml(UnitTester $I) */ public function testFlashDirectWithAutoEscaping(UnitTester $I) { - $flash = new Direct($this->classes); + $flash = new Direct($this->escaper); + $flash->setClasses($this->classes); $flash->setAutomaticHtml(false); $flash->setImplicitFlush(false); From ced0bb432b982e1cb4c961537ed84e45527ab4d4 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Fri, 6 Sep 2019 13:48:59 -0400 Subject: [PATCH 081/202] [#14349] - Fixing tests --- tests/unit/Flash/Direct/Helper/FlashBase.php | 18 +++++------------- tests/unit/Flash/DirectCest.php | 4 ++-- tests/unit/Flash/Session/OutputCest.php | 4 ++-- .../Flash/Session/SetCustomTemplateCest.php | 4 ++-- 4 files changed, 11 insertions(+), 19 deletions(-) diff --git a/tests/unit/Flash/Direct/Helper/FlashBase.php b/tests/unit/Flash/Direct/Helper/FlashBase.php index 6f33fea6f76..e982330c56c 100644 --- a/tests/unit/Flash/Direct/Helper/FlashBase.php +++ b/tests/unit/Flash/Direct/Helper/FlashBase.php @@ -12,18 +12,15 @@ namespace Phalcon\Test\Unit\Flash\Direct\Helper; +use Phalcon\Escaper; use Phalcon\Flash\Direct; -use Phalcon\Test\Fixtures\Traits\DiTrait; use UnitTester; class FlashBase { - use DiTrait; - - private $notImplicit = false; - private $notHtml = false; private $classes = null; - private $escaper = null; + private $notHtml = false; + private $notImplicit = false; private $default = [ 'success' => 'successMessage', @@ -32,11 +29,6 @@ class FlashBase 'error' => 'errorMessage', ]; - public function _before(UnitTester $I) - { - $this->escaper = $this->newEscaper(); - } - /** * Tests warning (implicit flush) * @@ -65,7 +57,7 @@ public function testFlashDirectImplicitFlushHtml(UnitTester $I) */ private function stringTest(UnitTester $I, string $function) { - $flash = new Direct($this->escaper); + $flash = new Direct(new Escaper()); $flash->setClasses($this->classes); $message = 'sample message'; @@ -216,7 +208,7 @@ public function testFlashDirectNoImplicitFlushNoHtml(UnitTester $I) */ public function testFlashDirectWithAutoEscaping(UnitTester $I) { - $flash = new Direct($this->escaper); + $flash = new Direct(new Escaper()); $flash->setClasses($this->classes); $flash->setAutomaticHtml(false); diff --git a/tests/unit/Flash/DirectCest.php b/tests/unit/Flash/DirectCest.php index 1b5b24dfe26..36d3db69c2e 100644 --- a/tests/unit/Flash/DirectCest.php +++ b/tests/unit/Flash/DirectCest.php @@ -101,9 +101,9 @@ protected function getFlash() { $container = $this->getDi(); - $flash = new Direct($this->classes); - + $flash = new Direct(); $flash->setDI($container); + $flash->setClasses($this->classes); return $flash; } diff --git a/tests/unit/Flash/Session/OutputCest.php b/tests/unit/Flash/Session/OutputCest.php index 5a3df640e0e..6d70acfa027 100644 --- a/tests/unit/Flash/Session/OutputCest.php +++ b/tests/unit/Flash/Session/OutputCest.php @@ -77,9 +77,9 @@ public function emptyFlashSessionOutput(UnitTester $I) protected function getFlash() { $container = $this->getDi(); - $flash = new Session($this->classes); - + $flash = new Session(); $flash->setDI($container); + $flash->setClasses($this->classes); return $flash; } diff --git a/tests/unit/Flash/Session/SetCustomTemplateCest.php b/tests/unit/Flash/Session/SetCustomTemplateCest.php index 21902896218..ddfee9675fc 100644 --- a/tests/unit/Flash/Session/SetCustomTemplateCest.php +++ b/tests/unit/Flash/Session/SetCustomTemplateCest.php @@ -44,9 +44,9 @@ protected function getFlash() { $container = $this->getDi(); - $flash = new Session($this->classes); - + $flash = new Session(); $flash->setDI($container); + $flash->setClasses($this->classes); return $flash; } From b5624146eabf5ad6bb57e016a394cd93f1da2106 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Fri, 6 Sep 2019 14:08:06 -0400 Subject: [PATCH 082/202] [#14349] - Fixing test --- tests/unit/Flash/SessionCest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/Flash/SessionCest.php b/tests/unit/Flash/SessionCest.php index 1a74859e2df..bf3d6f30e9f 100644 --- a/tests/unit/Flash/SessionCest.php +++ b/tests/unit/Flash/SessionCest.php @@ -140,9 +140,9 @@ protected function getFlash() { $container = $this->getDi(); - $flash = new Session($this->classes); - + $flash = new Session(); $flash->setDI($container); + $flash->setClasses($this->classes); return $flash; } From 373894bb952e79d87b9a50e38593ac6fad9d27de Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Fri, 6 Sep 2019 14:32:01 -0400 Subject: [PATCH 083/202] [#14349] - Added _before in the helper class --- tests/unit/Flash/Direct/Helper/FlashBase.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unit/Flash/Direct/Helper/FlashBase.php b/tests/unit/Flash/Direct/Helper/FlashBase.php index e982330c56c..df3956d5287 100644 --- a/tests/unit/Flash/Direct/Helper/FlashBase.php +++ b/tests/unit/Flash/Direct/Helper/FlashBase.php @@ -29,6 +29,10 @@ class FlashBase 'error' => 'errorMessage', ]; + public function _before(UnitTester $I) + { + } + /** * Tests warning (implicit flush) * From a92d80ed2565d5b7146860714ccc7e04ebce14a6 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Fri, 6 Sep 2019 15:08:41 -0400 Subject: [PATCH 084/202] [#14349] - Corrected class name --- tests/unit/Flash/Direct/Helper/FlashBase.php | 4 ++-- tests/unit/Flash/DirectCest.php | 2 +- tests/unit/Flash/Session/OutputCest.php | 2 +- tests/unit/Flash/Session/SetCustomTemplateCest.php | 2 +- tests/unit/Flash/SessionCest.php | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/unit/Flash/Direct/Helper/FlashBase.php b/tests/unit/Flash/Direct/Helper/FlashBase.php index df3956d5287..9ea2e640a86 100644 --- a/tests/unit/Flash/Direct/Helper/FlashBase.php +++ b/tests/unit/Flash/Direct/Helper/FlashBase.php @@ -62,7 +62,7 @@ public function testFlashDirectImplicitFlushHtml(UnitTester $I) private function stringTest(UnitTester $I, string $function) { $flash = new Direct(new Escaper()); - $flash->setClasses($this->classes); + $flash->setCssClasses($this->classes); $message = 'sample message'; @@ -213,7 +213,7 @@ public function testFlashDirectNoImplicitFlushNoHtml(UnitTester $I) public function testFlashDirectWithAutoEscaping(UnitTester $I) { $flash = new Direct(new Escaper()); - $flash->setClasses($this->classes); + $flash->setCssClasses($this->classes); $flash->setAutomaticHtml(false); $flash->setImplicitFlush(false); diff --git a/tests/unit/Flash/DirectCest.php b/tests/unit/Flash/DirectCest.php index 36d3db69c2e..0ca1561a604 100644 --- a/tests/unit/Flash/DirectCest.php +++ b/tests/unit/Flash/DirectCest.php @@ -103,7 +103,7 @@ protected function getFlash() $flash = new Direct(); $flash->setDI($container); - $flash->setClasses($this->classes); + $flash->setCssClasses($this->classes); return $flash; } diff --git a/tests/unit/Flash/Session/OutputCest.php b/tests/unit/Flash/Session/OutputCest.php index 6d70acfa027..b0925747a75 100644 --- a/tests/unit/Flash/Session/OutputCest.php +++ b/tests/unit/Flash/Session/OutputCest.php @@ -79,7 +79,7 @@ protected function getFlash() $container = $this->getDi(); $flash = new Session(); $flash->setDI($container); - $flash->setClasses($this->classes); + $flash->setCssClasses($this->classes); return $flash; } diff --git a/tests/unit/Flash/Session/SetCustomTemplateCest.php b/tests/unit/Flash/Session/SetCustomTemplateCest.php index ddfee9675fc..e15d9b9e401 100644 --- a/tests/unit/Flash/Session/SetCustomTemplateCest.php +++ b/tests/unit/Flash/Session/SetCustomTemplateCest.php @@ -46,7 +46,7 @@ protected function getFlash() $flash = new Session(); $flash->setDI($container); - $flash->setClasses($this->classes); + $flash->setCssClasses($this->classes); return $flash; } diff --git a/tests/unit/Flash/SessionCest.php b/tests/unit/Flash/SessionCest.php index bf3d6f30e9f..224098e9a67 100644 --- a/tests/unit/Flash/SessionCest.php +++ b/tests/unit/Flash/SessionCest.php @@ -142,7 +142,7 @@ protected function getFlash() $flash = new Session(); $flash->setDI($container); - $flash->setClasses($this->classes); + $flash->setCssClasses($this->classes); return $flash; } From 8ad287cb0a350b154928566d6d20d4817203840a Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Fri, 6 Sep 2019 16:56:53 -0400 Subject: [PATCH 085/202] [#14349] - Adjusting the interfaces again --- phalcon/Flash/AbstractFlash.zep | 16 ++++++++-------- phalcon/Flash/Direct.zep | 2 +- phalcon/Flash/FlashInterface.zep | 10 +++++----- phalcon/Flash/Session.zep | 4 +++- 4 files changed, 17 insertions(+), 15 deletions(-) diff --git a/phalcon/Flash/AbstractFlash.zep b/phalcon/Flash/AbstractFlash.zep index 60c0174683c..ed6b0103225 100644 --- a/phalcon/Flash/AbstractFlash.zep +++ b/phalcon/Flash/AbstractFlash.zep @@ -92,9 +92,9 @@ abstract class AbstractFlash extends AbstractDiAware implements FlashInterface * $flash->error("This is an error"); *``` */ - public function error(string message) -> void + public function error(string message) -> string { - this->{"message"}("error", message); + return this->{"message"}("error", message); } /** @@ -147,9 +147,9 @@ abstract class AbstractFlash extends AbstractDiAware implements FlashInterface * $flash->notice("This is an information"); *``` */ - public function notice(string message) -> void + public function notice(string message) -> string { - this->{"message"}("notice", message); + return this->{"message"}("notice", message); } /** @@ -220,9 +220,9 @@ abstract class AbstractFlash extends AbstractDiAware implements FlashInterface * $flash->success("The process was finished successfully"); *``` */ - public function success(string message) -> void + public function success(string message) -> string { - this->{"message"}("success", message); + return this->{"message"}("success", message); } /** @@ -311,9 +311,9 @@ abstract class AbstractFlash extends AbstractDiAware implements FlashInterface * $flash->warning("Hey, this is important"); *``` */ - public function warning(string message) -> void + public function warning(string message) -> string { - this->{"message"}("warning", message); + return this->{"message"}("warning", message); } diff --git a/phalcon/Flash/Direct.zep b/phalcon/Flash/Direct.zep index 6214754069f..4cc69f6a8c8 100644 --- a/phalcon/Flash/Direct.zep +++ b/phalcon/Flash/Direct.zep @@ -21,7 +21,7 @@ class Direct extends AbstractFlash /** * Outputs a message */ - public function message(string type, var message) -> string + public function message(string type, var message) -> string | null { return this->outputMessage(type, message); } diff --git a/phalcon/Flash/FlashInterface.zep b/phalcon/Flash/FlashInterface.zep index 5c8a02da6b7..9eb9fc2b249 100644 --- a/phalcon/Flash/FlashInterface.zep +++ b/phalcon/Flash/FlashInterface.zep @@ -20,25 +20,25 @@ interface FlashInterface /** * Shows a HTML error message */ - public function error(string message) -> void; + public function error(string message) -> string; /** * Outputs a message */ - public function message(string type, string message) -> void; + public function message(string type, string message) -> string | null; /** * Shows a HTML notice/information message */ - public function notice(string message) -> void; + public function notice(string message) -> string; /** * Shows a HTML success message */ - public function success(string message) -> void; + public function success(string message) -> string; /** * Shows a HTML warning message */ - public function warning(string message) -> void; + public function warning(string message) -> string; } diff --git a/phalcon/Flash/Session.zep b/phalcon/Flash/Session.zep index 49447a8161b..4522ca4d07e 100644 --- a/phalcon/Flash/Session.zep +++ b/phalcon/Flash/Session.zep @@ -57,7 +57,7 @@ class Session extends AbstractFlash /** * Adds a message to the session flasher */ - public function message(string type, string message) -> void + public function message(string type, string message) -> string | null { var messages; @@ -70,6 +70,8 @@ class Session extends AbstractFlash let messages[type][] = message; this->setSessionMessages(messages); + + return null; } /** From e9540a4aa58da7c4cef3eefbb0c3b4336644a12d Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Fri, 6 Sep 2019 17:19:12 -0400 Subject: [PATCH 086/202] [#14349] - Updated the changelog --- CHANGELOG-4.0.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG-4.0.md b/CHANGELOG-4.0.md index af76b6b255f..6d2d0954b7e 100644 --- a/CHANGELOG-4.0.md +++ b/CHANGELOG-4.0.md @@ -5,6 +5,8 @@ - Changed `Phalcon\Assets\Manager`, `Phalcon\Cli\Router`, `Phalcon\Dispatcher\AbstractDispatcher`, `Phalcon\Html\Tag`, `Phalcon\Http\Cookie`, `Phalcon\Http\Request`, `Phalcon\Http\Response\Cookies`, `Phalcon\Mvc\Model`, `Phalcon\Mvc\Router`, `Phalcon\Security`, `Phalcon\Session\Manager` to use `Phalcon\Di\AbstractDiAware` for container functionality [#14351](https://github.com/phalcon/cphalcon/pull/14351) - Changed `Phalcon\Security` to allow `session` and `request` in the constructor [#14351](https://github.com/phalcon/cphalcon/pull/14351) - Changed `Phalcon\Session\Manager` to allow `router` in the constructor [#14351](https://github.com/phalcon/cphalcon/pull/14351) +- Changed `Phalcon\Flash\Direct` to allow `escaper` in the constructor [#14349](https://github.com/phalcon/cphalcon/issues/14349) +- Changed `Phalcon\Flash\Session` to allow `escaper` in the constructor [#14349](https://github.com/phalcon/cphalcon/issues/14349) ## Fixed - Fixed `Phalcon\Helper\Str::includes` to return correct result [#14301](https://github.com/phalcon/cphalcon/issues/14301) @@ -18,6 +20,7 @@ - Fixed `Phalcon\Session\Adapter\Stream` to not override configured save path [#14265](https://github.com/phalcon/cphalcon/issues/14265) - Fixed `Phalcon\Http\Response::setFileToSend` to properly handle non-ASCII filenames [#13919](https://github.com/phalcon/cphalcon/issues/13919) - Fixed `Phalcon\Security::getSessionToken` return value [#14346](https://github.com/phalcon/cphalcon/issues/14346) +- Fixed `Phalcon\Flash\*` interfaces for `message()` to return `string/null` [#14349](https://github.com/phalcon/cphalcon/issues/14349) # [4.0.0-beta.2](https://github.com/phalcon/cphalcon/releases/tag/v4.0.0-beta.2) (2019-08-18) From 3d512ec367863b79b33704e81d9339eb6dafa891 Mon Sep 17 00:00:00 2001 From: Ruud Boon Date: Wed, 4 Sep 2019 16:50:49 +0200 Subject: [PATCH 087/202] Added test for issue 14355 --- .../_data/assets/db/schemas/mysql_schema.sql | 6 +++++ tests/_data/fixtures/models/TinyIntTest.php | 15 ++++++++++++ tests/integration/Mvc/Model/SaveCest.php | 23 +++++++++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 tests/_data/fixtures/models/TinyIntTest.php diff --git a/tests/_data/assets/db/schemas/mysql_schema.sql b/tests/_data/assets/db/schemas/mysql_schema.sql index 6a50f74d022..6817dfd48a2 100644 --- a/tests/_data/assets/db/schemas/mysql_schema.sql +++ b/tests/_data/assets/db/schemas/mysql_schema.sql @@ -12787,3 +12787,9 @@ create table dialect_table_intermediate on update cascade on delete set null ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +drop table if exists `tiny_int_test`; +CREATE TABLE `tiny_int_test` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `test` tinyint(1) unsigned DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; diff --git a/tests/_data/fixtures/models/TinyIntTest.php b/tests/_data/fixtures/models/TinyIntTest.php new file mode 100644 index 00000000000..4d8ad0cb528 --- /dev/null +++ b/tests/_data/fixtures/models/TinyIntTest.php @@ -0,0 +1,15 @@ +setSource("tiny_int_test"); + } +} diff --git a/tests/integration/Mvc/Model/SaveCest.php b/tests/integration/Mvc/Model/SaveCest.php index 93682b1a78f..0e86089a797 100644 --- a/tests/integration/Mvc/Model/SaveCest.php +++ b/tests/integration/Mvc/Model/SaveCest.php @@ -22,6 +22,7 @@ use Phalcon\Test\Models\Robots; use Phalcon\Test\Models\RobotsParts; use Phalcon\Test\Models\Users; +use Phalcon\Test\Models\TinyIntTest; class SaveCest { @@ -437,4 +438,26 @@ public function mvcModelSaveAfterFetchingRelatedIssue14270(IntegrationTester $I) count($allAlbums) ); } + + public function tinyIntNotStoredIssue14355(IntegrationTester $I) + { + $I->wantToTest('Saving a tinyint(1)'); + + $referenceModel = new TinyIntTest(); + $referenceModel->test = 0; + + $I->assertTrue( + $referenceModel->save() + ); + $id = $referenceModel->id; + $I->assertNotNull( + $id + ); + + $storedModel = TinyIntTest::findFirstById($id); + $I->assertEquals( + '0', + $storedModel->test + ); + } } From 60b6eaa71d8a443e3ce65bd49e96d2769ed726a8 Mon Sep 17 00:00:00 2001 From: Ruud Boon Date: Wed, 4 Sep 2019 17:08:43 +0200 Subject: [PATCH 088/202] Added test for issue 14355 --- tests/integration/Db/Adapter/Pdo/Mysql/ListTablesCest.php | 1 + tests/integration/Db/Adapter/Pdo/Sqlite/ListTablesCest.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/ListTablesCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/ListTablesCest.php index d1885cf7e99..fc4c307f27d 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/ListTablesCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/ListTablesCest.php @@ -88,6 +88,7 @@ public function dbAdapterPdoMysqlListTables(IntegrationTester $I) 'table_with_string_field', 'tipo_documento', 'users', + 'tiny_int_test' ]; diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/ListTablesCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/ListTablesCest.php index 80fe770e7c4..ed4592c86a7 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/ListTablesCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/ListTablesCest.php @@ -53,7 +53,7 @@ public function dbAdapterPdoSqliteListTables(IntegrationTester $I) 'sqlite_sequence', 'subscriptores', 'table_with_string_field', - 'tipo_documento', + 'tipo_documento' ]; $I->assertEquals( From 5927bb997a3d314366b4546e7d4756ade82ecd31 Mon Sep 17 00:00:00 2001 From: Ruud Boon Date: Wed, 4 Sep 2019 17:23:50 +0200 Subject: [PATCH 089/202] Changed order --- tests/integration/Db/Adapter/Pdo/Mysql/ListTablesCest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/ListTablesCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/ListTablesCest.php index fc4c307f27d..d9057640fa9 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/ListTablesCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/ListTablesCest.php @@ -86,9 +86,9 @@ public function dbAdapterPdoMysqlListTables(IntegrationTester $I) 'stock', 'subscriptores', 'table_with_string_field', + 'tiny_int_test', 'tipo_documento', - 'users', - 'tiny_int_test' + 'users' ]; From 398c9c7ae0a534e0ad10d34b17f7b6d84e500ac5 Mon Sep 17 00:00:00 2001 From: Ruud Boon Date: Thu, 5 Sep 2019 08:06:04 +0200 Subject: [PATCH 090/202] Add dangling comma --- tests/integration/Db/Adapter/Pdo/Mysql/ListTablesCest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/ListTablesCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/ListTablesCest.php index d9057640fa9..ba5c331a288 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/ListTablesCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/ListTablesCest.php @@ -88,7 +88,7 @@ public function dbAdapterPdoMysqlListTables(IntegrationTester $I) 'table_with_string_field', 'tiny_int_test', 'tipo_documento', - 'users' + 'users', ]; From ec28f7354f2b30f6b5a4e77632e949785ff4df03 Mon Sep 17 00:00:00 2001 From: Ruud Boon Date: Thu, 5 Sep 2019 20:50:15 +0200 Subject: [PATCH 091/202] Removed dangling comma --- tests/integration/Db/Adapter/Pdo/Mysql/ListTablesCest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/ListTablesCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/ListTablesCest.php index ba5c331a288..d9057640fa9 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/ListTablesCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/ListTablesCest.php @@ -88,7 +88,7 @@ public function dbAdapterPdoMysqlListTables(IntegrationTester $I) 'table_with_string_field', 'tiny_int_test', 'tipo_documento', - 'users', + 'users' ]; From 16af7f2eadce8941e16c4c4d7bda64688aa2ad50 Mon Sep 17 00:00:00 2001 From: Ruud Boon Date: Thu, 5 Sep 2019 20:57:04 +0200 Subject: [PATCH 092/202] added dangling comma's :D --- tests/integration/Db/Adapter/Pdo/Mysql/ListTablesCest.php | 2 +- tests/integration/Db/Adapter/Pdo/Sqlite/ListTablesCest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/Db/Adapter/Pdo/Mysql/ListTablesCest.php b/tests/integration/Db/Adapter/Pdo/Mysql/ListTablesCest.php index d9057640fa9..ba5c331a288 100644 --- a/tests/integration/Db/Adapter/Pdo/Mysql/ListTablesCest.php +++ b/tests/integration/Db/Adapter/Pdo/Mysql/ListTablesCest.php @@ -88,7 +88,7 @@ public function dbAdapterPdoMysqlListTables(IntegrationTester $I) 'table_with_string_field', 'tiny_int_test', 'tipo_documento', - 'users' + 'users', ]; diff --git a/tests/integration/Db/Adapter/Pdo/Sqlite/ListTablesCest.php b/tests/integration/Db/Adapter/Pdo/Sqlite/ListTablesCest.php index ed4592c86a7..80fe770e7c4 100644 --- a/tests/integration/Db/Adapter/Pdo/Sqlite/ListTablesCest.php +++ b/tests/integration/Db/Adapter/Pdo/Sqlite/ListTablesCest.php @@ -53,7 +53,7 @@ public function dbAdapterPdoSqliteListTables(IntegrationTester $I) 'sqlite_sequence', 'subscriptores', 'table_with_string_field', - 'tipo_documento' + 'tipo_documento', ]; $I->assertEquals( From fb389109a92a507bbacddcca71043f9a922cd973 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Sat, 7 Sep 2019 10:53:27 -0400 Subject: [PATCH 093/202] [#13697] - Removed collection classes for mongo --- phalcon/Mvc/Collection.zep | 1726 ----------------- phalcon/Mvc/Collection/Behavior.zep | 74 - .../Mvc/Collection/Behavior/SoftDelete.zep | 90 - .../Mvc/Collection/Behavior/Timestampable.zep | 90 - phalcon/Mvc/Collection/BehaviorInterface.zep | 31 - phalcon/Mvc/Collection/Document.zep | 100 - phalcon/Mvc/Collection/Exception.zep | 22 - phalcon/Mvc/Collection/Manager.zep | 378 ---- phalcon/Mvc/Collection/ManagerInterface.zep | 96 - phalcon/Mvc/CollectionInterface.zep | 132 -- 10 files changed, 2739 deletions(-) delete mode 100644 phalcon/Mvc/Collection.zep delete mode 100644 phalcon/Mvc/Collection/Behavior.zep delete mode 100644 phalcon/Mvc/Collection/Behavior/SoftDelete.zep delete mode 100644 phalcon/Mvc/Collection/Behavior/Timestampable.zep delete mode 100644 phalcon/Mvc/Collection/BehaviorInterface.zep delete mode 100644 phalcon/Mvc/Collection/Document.zep delete mode 100644 phalcon/Mvc/Collection/Exception.zep delete mode 100644 phalcon/Mvc/Collection/Manager.zep delete mode 100644 phalcon/Mvc/Collection/ManagerInterface.zep delete mode 100644 phalcon/Mvc/CollectionInterface.zep diff --git a/phalcon/Mvc/Collection.zep b/phalcon/Mvc/Collection.zep deleted file mode 100644 index 42d0213a4ae..00000000000 --- a/phalcon/Mvc/Collection.zep +++ /dev/null @@ -1,1726 +0,0 @@ - -/** - * This file is part of the Phalcon Framework. - * - * (c) Phalcon Team - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Mvc; - -use Mongo; -use MongoCollection; -use MongoId; -use Phalcon\Di; -use Phalcon\Di\DiInterface; -use Phalcon\Di\InjectionAwareInterface; -use Phalcon\Messages\MessageInterface; -use Phalcon\Mvc\Collection\BehaviorInterface; -use Phalcon\Mvc\Collection\Document; -use Phalcon\Mvc\Collection\Exception; -use Phalcon\Mvc\Collection\ManagerInterface; -use Phalcon\Messages\Message as Message; -use Phalcon\Validation\ValidationInterface; -use Phalcon\Storage\Serializer\SerializerInterface; -use Serializable; - -/** - * Phalcon\Mvc\Collection - * - * This component implements a high level abstraction for NoSQL databases which - * works with documents - */ -abstract class Collection implements EntityInterface, CollectionInterface, InjectionAwareInterface, Serializable -{ - const DIRTY_STATE_DETACHED = 2; - const DIRTY_STATE_PERSISTENT = 0; - const DIRTY_STATE_TRANSIENT = 1; - const OP_CREATE = 1; - const OP_DELETE = 3; - const OP_NONE = 0; - const OP_UPDATE = 2; - - public _id; - - protected connection; - - protected container; - - protected dirtyState = 1; - - protected static disableEvents; - - protected errorMessages = []; - - protected modelsManager; - - protected operationMade = 0; - - protected static reserved; - - protected skipped = false; - - protected source; - - /** - * Phalcon\Mvc\Collection constructor - */ - final public function __construct( container = null, modelsManager = null) - { - /** - * We use a default DI if the user doesn't define one - */ - if typeof container != "object" { - let container = Di::getDefault(); - } - - if unlikely typeof container != "object" { - throw new Exception( - Exception::containerServiceNotFound( - "the services related to the ODM" - ) - ); - } - - let this->container = container; - - /** - * Inject the manager service from the DI - */ - if typeof modelsManager != "object" { - let modelsManager = container->getShared("collectionManager"); - if unlikely typeof modelsManager != "object" { - throw new Exception( - "The injected service 'modelsManager' is not valid" - ); - } - } - - /** - * Update the models-manager - */ - let this->modelsManager = modelsManager; - - /** - * The manager always initializes the object - */ - modelsManager->initialize(this); - - /** - * This allows the developer to execute initialization stuff every time - * an instance is created - */ - if method_exists(this, "onConstruct") { - this->{"onConstruct"}(); - } - } - - /** - * Sets up a behavior in a collection - */ - protected function addBehavior( behavior) -> void - { - ( this->modelsManager)->addBehavior(this, behavior); - } - - /** - * Perform an aggregation using the Mongo aggregation framework - */ - public static function aggregate(array parameters = null, array options = null) -> array - { - var className, model, connection, source; - - let className = get_called_class(); - - let model = new {className}(); - - let connection = model->getConnection(); - - let source = model->getSource(); - if unlikely empty source { - throw new Exception("Method getSource() returns empty string"); - } - - return connection->selectCollection(source)->aggregate( - parameters, - options - ); - } - - /** - * Appends a customized message on the validation process - * - *```php - * use \Phalcon\Messages\Message as Message; - * - * class Robots extends \Phalcon\Mvc\Model - * { - * public function beforeSave() - * { - * if ($this->name === "Peter") { - * $message = new Message( - * "Sorry, but a robot cannot be named Peter" - * ); - * - * $this->appendMessage(message); - * } - * } - * } - *``` - */ - public function appendMessage( message) - { - let this->errorMessages[] = message; - } - - /** - * Returns a cloned collection - */ - public static function cloneResult( collection, array! document) -> - { - var clonedCollection, key, value; - - let clonedCollection = clone collection; - for key, value in document { - clonedCollection->writeAttribute(key, value); - } - - if method_exists(clonedCollection, "afterFetch") { - clonedCollection->{"afterFetch"}(); - } - - return clonedCollection; - } - - /** - * Creates a collection based on the values in the attributes - */ - public function create() -> bool - { - var data, success, status, id, ok, collection; - bool exists; - - let collection = this->prepareCU(); - - /** - * Check the dirty state of the current operation to update the current - * operation - */ - let exists = false; - let this->operationMade = self::OP_CREATE; - - /** - * The messages added to the validator are reset here - */ - let this->errorMessages = []; - - /** - * Execute the preSave hook - */ - if this->preSave(this->container, self::disableEvents, exists) === false { - return false; - } - - let data = this->toArray(); - - let success = false; - - /** - * We always use safe stores to get the success state - * Save the document - */ - let status = collection->insert( - data, - [ - "w": true - ] - ); - - if fetch ok, status["ok"] && ok { - let success = true; - - if fetch id, data["_id"] { - let this->_id = id; - } - - let this->dirtyState = self::DIRTY_STATE_PERSISTENT; - } - - /** - * Call the postSave hooks - */ - return this->postSave( - self::disableEvents, - success, - exists - ); - } - - /** - * Creates a document based on the values in the attributes, if not found by - * criteria. Preferred way to avoid duplication is to create index o - * attribute - * - * ```php - * $robot = new Robot(); - * - * $robot->name = "MyRobot"; - * $robot->type = "Droid"; - * - * // Create only if robot with same name and type does not exist - * $robot->createIfNotExist( - * [ - * "name", - * "type", - * ] - * ); - * ``` - */ - public function createIfNotExist(array! criteria) -> bool - { - var exists, data, keys, query, success, status, doc, collection; - - if unlikely empty criteria { - throw new Exception( - "Criteria parameter must be array with one or more attributes of the model" - ); - } - - /** - * Choose a collection according to the collection name - */ - let collection = this->prepareCU(); - - /** - * Assume non-existence to fire beforeCreate events - no update does - * occur anyway - */ - let exists = false; - - /** - * Reset current operation - */ - - let this->operationMade = self::OP_NONE; - - /** - * The messages added to the validator are reset here - */ - let this->errorMessages = []; - - /** - * Execute the preSave hook - */ - if this->preSave(this->container, self::disableEvents, exists) === false { - return false; - } - - let keys = array_flip(criteria); - let data = this->toArray(); - - if unlikely array_diff_key(keys, data) { - throw new Exception( - "Criteria parameter must be array with one or more attributes of the model" - ); - } - - let query = array_intersect_key(data, keys); - - let success = false; - - /** - * $setOnInsert in conjunction with upsert ensures creating a new document - * "new": false returns null if new document created, otherwise new or old document could be returned - */ - let status = collection->findAndModify( - query, - [ - "$setOnInsert": data - ], - null, - [ - "new": false, - "upsert": true - ] - ); - - if status == null { - let doc = collection->findOne(query); - - if typeof doc == "array" { - let success = true; - let this->operationMade = self::OP_CREATE; - let this->_id = doc["_id"]; - } - } else { - this->appendMessage( - new Message("Document already exists") - ); - } - - /** - * Call the postSave hooks - */ - return this->postSave( - self::disableEvents, - success, - exists - ); - } - - /** - * Perform a count over a collection - * - *```php - * echo "There are ", Robots::count(), " robots"; - *``` - */ - public static function count(array parameters = null) -> int - { - var className, collection, connection; - - let className = get_called_class(); - - let collection = new {className}(); - - let connection = collection->getConnection(); - - return self::getGroupResultset(parameters, collection, connection); - } - - /** - * Deletes a model instance. Returning true on success or false otherwise. - * - * ```php - * $robot = Robots::findFirst(); - * - * $robot->delete(); - * - * $robots = Robots::find(); - * - * foreach ($robots as $robot) { - * $robot->delete(); - * } - * ``` - */ - public function delete() -> bool - { - var disableEvents, status, id, connection, source, collection, mongoId, - success, ok; - - if unlikely !fetch id, this->_id { - throw new Exception( - "The document cannot be deleted because it doesn't exist" - ); - } - - let disableEvents = self::disableEvents; - - if !disableEvents { - if this->fireEventCancel("beforeDelete") === false { - return false; - } - } - - if this->skipped === true { - return true; - } - - let connection = this->getConnection(); - - let source = this->getSource(); - if unlikely empty source { - throw new Exception("Method getSource() returns empty string"); - } - - /** - * Get the MongoCollection - */ - let collection = connection->selectCollection(source); - - if typeof id == "object" { - let mongoId = id; - } else { - /** - * Is the collection using implicit object Ids? - */ - if this->modelsManager->isUsingImplicitObjectIds(this) { - let mongoId = new MongoId(id); - } else { - let mongoId = id; - } - } - - let success = false; - - /** - * Remove the instance - */ - let status = collection->remove( - [ - "_id": mongoId - ], - [ - "w": true - ] - ); - - if typeof status != "array" { - return false; - } - - /** - * Check the operation status - */ - if fetch ok, status["ok"] { - if ok { - let success = true; - - if !disableEvents { - this->fireEvent("afterDelete"); - } - - let this->dirtyState = self::DIRTY_STATE_DETACHED; - } - } else { - let success = false; - } - - return success; - } - - /** - * Allows to query a set of records that match the specified conditions - * - * ```php - * // How many robots are there? - * $robots = Robots::find(); - * - * echo "There are ", count($robots), "\n"; - * - * // How many mechanical robots are there? - * $robots = Robots::find( - * [ - * [ - * "type" => "mechanical", - * ] - * ] - * ); - * - * echo "There are ", count(robots), "\n"; - * - * // Get and print virtual robots ordered by name - * $robots = Robots::findFirst( - * [ - * [ - * "type" => "virtual" - * ], - * "order" => [ - * "name" => 1, - * ] - * ] - * ); - * - * foreach ($robots as $robot) { - * echo $robot->name, "\n"; - * } - * - * // Get first 100 virtual robots ordered by name - * $robots = Robots::find( - * [ - * [ - * "type" => "virtual", - * ], - * "order" => [ - * "name" => 1, - * ], - * "limit" => 100, - * ] - * ); - * - * foreach ($robots as $robot) { - * echo $robot->name, "\n"; - * } - * ``` - */ - public static function find(array parameters = null) -> array - { - var className, collection; - - let className = get_called_class(); - let collection = new {className}(); - - return self::getResultset( - parameters, - collection, - collection->getConnection(), - false - ); - } - - /** - * Find a document by its id (_id) - * - * ```php - * // Find user by using \MongoId object - * $user = Users::findById( - * new \MongoId("545eb081631d16153a293a66") - * ); - * - * // Find user by using id as sting - * $user = Users::findById("45cbc4a0e4123f6920000002"); - * - * // Validate input - * if ($user = Users::findById($_POST["id"])) { - * // ... - * } - * ``` - */ - public static function findById(var id) -> | null - { - var className, collection, mongoId; - - if typeof id != "object" { - if !preg_match("/^[a-f\d]{24}$/i", id) { - return null; - } - - let className = get_called_class(); - - let collection = new {className}(); - - /** - * Check if the model use implicit ids - */ - if collection->getCollectionManager()->isUsingImplicitObjectIds(collection) { - let mongoId = new MongoId(id); - } else { - let mongoId = id; - } - } else { - let mongoId = id; - } - - return self::findFirst( - [ - [ - "_id": mongoId - ] - ] - ); - } - - /** - * Allows to query the first record that match the specified conditions - * - * ```php - * // What's the first robot in the robots table? - * $robot = Robots::findFirst(); - * - * echo "The robot name is ", $robot->name, "\n"; - * - * // What's the first mechanical robot in robots table? - * $robot = Robots::findFirst( - * [ - * [ - * "type" => "mechanical", - * ] - * ] - * ); - * - * echo "The first mechanical robot name is ", $robot->name, "\n"; - * - * // Get first virtual robot ordered by name - * $robot = Robots::findFirst( - * [ - * [ - * "type" => "mechanical", - * ], - * "order" => [ - * "name" => 1, - * ], - * ] - * ); - * - * echo "The first virtual robot name is ", $robot->name, "\n"; - * - * // Get first robot by id (_id) - * $robot = Robots::findFirst( - * [ - * [ - * "_id" => new \MongoId("45cbc4a0e4123f6920000002"), - * ] - * ] - * ); - * - * echo "The robot id is ", $robot->_id, "\n"; - * ``` - */ - public static function findFirst(array parameters = null) -> array - { - var className, collection, connection; - - let className = get_called_class(); - - let collection = new {className}(); - - let connection = collection->getConnection(); - - return self::getResultset(parameters, collection, connection, true); - } - - /** - * Fires an internal event - */ - public function fireEvent(string! eventName) -> bool - { - /** - * Check if there is a method with the same name of the event - */ - if method_exists(this, eventName) { - this->{eventName}(); - } - - /** - * Send a notification to the events manager - */ - return this->modelsManager->notifyEvent(eventName, this); - } - - /** - * Fires an internal event that cancels the operation - */ - public function fireEventCancel(string! eventName) -> bool - { - /** - * Check if there is a method with the same name of the event - */ - if method_exists(this, eventName) { - if this->{eventName}() === false { - return false; - } - } - - /** - * Send a notification to the events manager - */ - if this->modelsManager->notifyEvent(eventName, this) === false { - return false; - } - - return true; - } - - /** - * Returns the models manager related to the entity instance - */ - public function getCollectionManager() -> - { - return this->modelsManager; - } - - /** - * Retrieves a database connection - * - * @return \MongoDb - */ - public function getConnection() - { - if typeof this->connection != "object" { - let this->connection = this->modelsManager->getConnection(this); - } - - return this->connection; - } - - /** - * Returns DependencyInjection connection service - */ - public function getConnectionService() -> string - { - return this->modelsManager->getConnectionService(this); - } - - /** - * Returns the dependency injection container - */ - public function getDI() -> - { - return this->container; - } - - /** - * Returns one of the DIRTY_STATE_* constants telling if the document exists - * in the collection or not - */ - public function getDirtyState() -> int - { - return this->dirtyState; - } - - /** - * Returns the custom events manager - */ - protected function getEventsManager() -> - { - return this->modelsManager->getCustomEventsManager(this); - } - - /** - * Returns the value of the _id property - * - * @return \MongoId - */ - public function getId() - { - return this->_id; - } - - /** - * Returns all the validation messages - * - * ```php - * $robot = new Robots(); - * - * $robot->type = "mechanical"; - * $robot->name = "Astro Boy"; - * $robot->year = 1952; - * - * if ($robot->save() === false) { - * echo "Umh, We can't store robots right now "; - * - * $messages = $robot->getMessages(); - * - * foreach ($messages as $message) { - * echo $message; - * } - * } else { - * echo "Great, a new robot was saved successfully!"; - * } - * ``` - */ - public function getMessages() -> - { - return this->errorMessages; - } - - /** - * Returns an array with reserved properties that cannot be part of the - * insert/update - */ - public function getReservedAttributes() -> array - { - if typeof self::reserved != "array" { - let self::reserved = [ - "_connection" : true, - "container" : true, - "source" : true, - "operationMade" : true, - "errorMessages" : true, - "dirtyState" : true, - "modelsManager" : true, - "skipped" : true - ]; - } - - return self::reserved; - } - - /** - * Returns collection name mapped in the model - */ - public function getSource() -> string - { - var collection; - - if !this->source { - let collection = this; - let this->source = uncamelize(get_class_ns(collection)); - } - - return this->source; - } - - /** - * Reads an attribute value by its name - * - *```php - * echo $robot->readAttribute("name"); - *``` - */ - public function readAttribute(string! attribute) -> var | null - { - if !isset this->{attribute} { - return null; - } - - return this->{attribute}; - } - - /** - * Creates/Updates a collection based on the values in the attributes - */ - public function save() -> bool - { - var exists, data, success, status, id, ok, collection; - - let collection = this->prepareCU(); - - /** - * Check the dirty state of the current operation to update the current - * operation - */ - let exists = this->exists(collection); - - if exists === false { - let this->operationMade = self::OP_CREATE; - } else { - let this->operationMade = self::OP_UPDATE; - } - - /** - * The messages added to the validator are reset here - */ - let this->errorMessages = []; - - /** - * Execute the preSave hook - */ - if this->preSave(this->container, self::disableEvents, exists) === false { - return false; - } - - let data = this->toArray(); - - let success = false; - - /** - * We always use safe stores to get the success state - * Save the document - */ - let status = collection->save( - data, - [ - "w": true - ] - ); - - if fetch ok, status["ok"] && ok { - let success = true; - - if exists === false { - if fetch id, data["_id"] { - let this->_id = id; - } - - let this->dirtyState = self::DIRTY_STATE_PERSISTENT; - } - } - - /** - * Call the postSave hooks - */ - return this->postSave( - self::disableEvents, - success, - exists - ); - } - - /** - * Serializes the object ignoring connections or protected properties - */ - public function serialize() -> string - { - var container, serializer; - - /** - * Obtain the default DI - */ - let container = Di::getDefault(); - if unlikely typeof container != "object" { - throw new Exception( - "The dependency injector container is not valid" - ); - } - - if container->has("serializer") { - let serializer = this->container->getShared("serializer"); - - serializer->setData( - this->toArray() - ); - - return serializer->serialize(); - } - - /** - * Use the standard serialize function to serialize the array data - */ - return serialize( - this->toArray() - ); - } - - /** - * Sets the DependencyInjection connection service name - */ - public function setConnectionService(string! connectionService) -> - { - this->modelsManager->setConnectionService(this, connectionService); - - return this; - } - - /** - * Sets the dependency injection container - */ - public function setDI( container) -> void - { - let this->container = container; - } - - /** - * Sets the dirty state of the object using one of the DIRTY_STATE_* - * constants - */ - public function setDirtyState(int dirtyState) -> - { - let this->dirtyState = dirtyState; - - return this; - } - - /** - * Sets a custom events manager - */ - protected function setEventsManager( eventsManager) -> void - { - this->modelsManager->setCustomEventsManager(this, eventsManager); - } - - /** - * Sets a value for the _id property, creates a MongoId object if needed - * - * @param mixed id - */ - public function setId(id) - { - var mongoId; - - if typeof id != "object" { - /** - * Check if the model use implicit ids - */ - if this->modelsManager->isUsingImplicitObjectIds(this) { - let mongoId = new MongoId(id); - } else { - let mongoId = id; - } - } else { - let mongoId = id; - } - - let this->_id = mongoId; - } - - /** - * Sets collection name which model should be mapped - */ - protected function setSource(string! source) -> - { - let this->source = source; - - return this; - } - - /** - * Skips the current operation forcing a success state - */ - public function skipOperation(bool skip) - { - let this->skipped = skip; - } - - /** - * Allows to perform a summatory group for a column in the collection - */ - public static function summatory(string! field, conditions = null, finalize = null) -> array - { - var className, model, connection, source, collection, initial, - reduce, group, retval, firstRetval; - - let className = get_called_class(); - - let model = new {className}(); - - let connection = model->getConnection(); - - let source = model->getSource(); - if unlikely empty source { - throw new Exception("Method getSource() returns empty string"); - } - - let collection = connection->selectCollection(source); - - /** - * Uses a javascript hash to group the results - */ - let initial = [ - "summatory": [] - ]; - - /** - * Uses a javascript hash to group the results, however this is slow - * with larger datasets - */ - let reduce = "function (curr, result) { if (typeof result.summatory[curr." . field . "] === \"undefined\") { result.summatory[curr." . field . "] = 1; } else { result.summatory[curr." . field . "]++; } }"; - - let group = collection->group([], initial, reduce); - - if !fetch retval, group["retval"] { - return []; - } - - if fetch firstRetval, retval[0] { - if isset firstRetval["summatory"] { - return firstRetval["summatory"]; - } - - return firstRetval; - } - - return retval; - } - - /** - * Returns the instance as an array representation - * - *```php - * print_r( - * $robot->toArray() - * ); - *``` - */ - public function toArray() -> array - { - var reserved, key, value; - array data; - - let reserved = this->getReservedAttributes(); - - /** - * Get an array with the values of the object - * We only assign values to the public properties - */ - let data = []; - - for key, value in get_object_vars(this) { - if key == "_id" { - if value { - let data[key] = value; - } - } elseif !isset reserved[key] { - let data[key] = value; - } - } - - return data; - } - - /** - * Unserializes the object from a serialized string - */ - public function unserialize(var data) - { - var attributes, container, manager, key, value, serializer; - - /** - * Obtain the default DI - */ - let container = Di::getDefault(); - if unlikely typeof container != "object" { - throw new Exception( - Exception::containerServiceNotFound( - "the services related to the ODM" - ) - ); - } - - /** - * Update the dependency injector - */ - let this->container = container; - - if container->has("serializer") { - let serializer = container->getShared("serializer"); - let attributes = serializer->unserialize(data); - } else { - let attributes = unserialize(data); - } - - if typeof attributes == "array" { - /** - * Gets the default modelsManager service - */ - let manager = container->getShared("collectionManager"); - - if unlikely typeof manager != "object" { - throw new Exception( - "The injected service 'collectionManager' is not valid" - ); - } - - /** - * Update the models manager - */ - let this->modelsManager = manager; - - /** - * Update the objects attributes - */ - for key, value in attributes { - let this->{key} = value; - } - } - } - - /** - * Creates/Updates a collection based on the values in the attributes - */ - public function update() -> bool - { - var exists, data, success, status, ok, collection; - - let collection = this->prepareCU(); - - /** - * Check the dirty state of the current operation to update the current - * operation - */ - let exists = this->exists(collection); - - if unlikely !exists { - throw new Exception( - "The document cannot be updated because it doesn't exist" - ); - } - - let this->operationMade = self::OP_UPDATE; - - /** - * The messages added to the validator are reset here - */ - let this->errorMessages = []; - - /** - * Execute the preSave hook - */ - if this->preSave(this->container, self::disableEvents, exists) === false { - return false; - } - - let data = this->toArray(); - - /** - * We always use safe stores to get the success state - * Save the document - */ - let status = collection->update( - [ - "_id": this->_id - ], - data, - [ - "w": true - ] - ); - - if fetch ok, status["ok"] && ok { - let success = true; - } else { - let success = false; - } - - /** - * Call the postSave hooks - */ - return this->postSave( - self::disableEvents, - success, - exists - ); - } - - /** - * Executes validators on every validation call - * - *```php - * use Phalcon\Mvc\Collection; - * use Phalcon\Validation; - * use Phalcon\Validation\Validator\ExclusionIn; - * - * class Subscriptors extends Collection - * { - * public function validation() - * { - * $validator = new Validation(); - * - * $validator->add( - * "status", - * new ExclusionIn( - * [ - * "domain" => [ - * "A", - * "I", - * ], - * ] - * ) - * ); - * - * return $this->validate($validator); - * } - * } - *``` - */ - protected function validate( validator) -> bool - { - var messages, message; - - let messages = validator->validate(null, this); - - // Call the validation, if it returns not the bool - // we append the messages to the current object - if typeof messages == "boolean" { - return messages; - } - - for message in iterator(messages) { - this->appendMessage( - new Message( - message->getMessage(), - message->getField(), - message->getType(), - null, - message->getCode() - ) - ); - } - - // If there is a message, it returns false otherwise true - return !count(messages); - } - - /** - * Sets if a model must use implicit objects ids - */ - protected function useImplicitObjectIds(bool useImplicitObjectIds) - { - this->modelsManager->useImplicitObjectIds(this, useImplicitObjectIds); - } - - /** - * Writes an attribute value by its name - * - *```php - * $robot->writeAttribute("name", "Rosey"); - *``` - */ - public function writeAttribute(string attribute, var value) - { - let this->{attribute} = value; - } - - /** - * Cancel the current operation - */ - protected function cancelOperation(bool disableEvents) -> bool - { - var eventName; - - if disableEvents { - return false; - } - - if this->operationMade == self::OP_DELETE { - let eventName = "notDeleted"; - } else { - let eventName = "notSaved"; - } - - this->fireEvent(eventName); - - return true; - } - - /** - * Checks if the document exists in the collection - * - * @param MongoCollection collection - */ - protected function exists(collection) -> bool - { - var id, mongoId, exists; - - if !fetch id, this->_id { - return false; - } - - if typeof id == "object" { - let mongoId = id; - } else { - /** - * Check if the model use implicit ids - */ - if this->modelsManager->isUsingImplicitObjectIds(this) { - let mongoId = new MongoId(id); - let this->_id = mongoId; - } else { - let mongoId = id; - } - } - - /** - * If we already know if the document exists we don't check it - */ - if !this->dirtyState { - return true; - } - - /** - * Perform the count using the function provided by the driver - */ - let exists = collection->count(["_id": mongoId]) > 0; - - if exists { - let this->dirtyState = self::DIRTY_STATE_PERSISTENT; - } else { - let this->dirtyState = self::DIRTY_STATE_TRANSIENT; - } - - return exists; - } - - /** - * Perform a count over a resultset - * - * @param array params - * @param \MongoDb connection - */ - protected static function getGroupResultset(params, collection, connection) -> int - { - var source, mongoCollection, conditions, limit, sort, documentsCursor; - - let source = collection->getSource(); - if unlikely empty source { - throw new Exception("Method getSource() returns empty string"); - } - - let mongoCollection = connection->selectCollection(source); - - /** - * Convert the string to an array - */ - if !fetch conditions, params[0] { - if !fetch conditions, params["conditions"] { - let conditions = []; - } - } - - if isset params["limit"] || isset params["sort"] || isset params["skip"] { - /** - * Perform the find - */ - let documentsCursor = mongoCollection->find(conditions); - - /** - * Check if a "limit" clause was defined - */ - if fetch limit, params["limit"] { - documentsCursor->limit(limit); - } - - /** - * Check if a "sort" clause was defined - */ - if fetch sort, params["sort"] { - documentsCursor->sort(sort); - } - - /** - * Check if a "skip" clause was defined - */ - if fetch sort, params["skip"] { - documentsCursor->skip(sort); - } - - /** - * Only "count" is supported - */ - return count(documentsCursor); - } - - return mongoCollection->count(conditions); - } - - /** - * Returns a collection resultset - * - * @param array params - * @param \MongoDb connection - * @return array - */ - protected static function getResultset(var params, collection, connection, bool unique) - { - var source, mongoCollection, conditions, base, documentsCursor, - fields, skip, limit, sort, document, collections, className; - - /** - * Check if "class" clause was defined - */ - if fetch className, params["class"] { - let base = new {className}(); - - if unlikely !(base instanceof CollectionInterface || base instanceof Collection\Document) { - throw new Exception( - "Object of class '" . className . "' must be an implementation of Phalcon\\Mvc\\CollectionInterface or an instance of Phalcon\\Mvc\\Collection\\Document" - ); - } - } else { - let base = collection; - } - - if base instanceof Collection { - base->setDirtyState( - self::DIRTY_STATE_PERSISTENT - ); - } - - let source = collection->getSource(); - if unlikely empty source { - throw new Exception("Method getSource() returns empty string"); - } - - let mongoCollection = connection->selectCollection(source); - - if unlikely typeof mongoCollection != "object" { - throw new Exception("Couldn't select mongo collection"); - } - - /** - * Convert the string to an array - */ - if !fetch conditions, params[0] { - if !fetch conditions, params["conditions"] { - let conditions = []; - } - } - - if unlikely typeof conditions != "array" { - throw new Exception("Find parameters must be an array"); - } - - /** - * Perform the find - */ - if fetch fields, params["fields"] { - let documentsCursor = mongoCollection->find(conditions, fields); - } else { - let documentsCursor = mongoCollection->find(conditions); - } - - /** - * Check if a "limit" clause was defined - */ - if fetch limit, params["limit"] { - documentsCursor->limit(limit); - } - - /** - * Check if a "sort" clause was defined - */ - if fetch sort, params["sort"] { - documentsCursor->sort(sort); - } - - /** - * Check if a "skip" clause was defined - */ - if fetch skip, params["skip"] { - documentsCursor->skip(skip); - } - - if unique { - /** - * Requesting a single result - */ - documentsCursor->rewind(); - - let document = documentsCursor->current(); - - if typeof document != "array" { - return false; - } - - /** - * Assign the values to the base object - */ - return self::cloneResult(base, document); - } - - /** - * Requesting a complete resultset - */ - let collections = []; - for document in iterator_to_array(documentsCursor, false) { - /** - * Assign the values to the base object - */ - let collections[] = self::cloneResult(base, document); - } - - return collections; - } - - /** - * Executes internal hooks before save a document - */ - final protected function preSave( container, bool disableEvents, bool exists) -> bool - { - var eventName; - - /** - * Run Validation Callbacks Before - */ - if !disableEvents { - if this->fireEventCancel("beforeValidation") === false { - return false; - } - - if !exists { - let eventName = "beforeValidationOnCreate"; - } else { - let eventName = "beforeValidationOnUpdate"; - } - - if this->fireEventCancel(eventName) === false { - return false; - } - } - - /** - * Run validation - */ - if this->fireEventCancel("validation") === false { - if !disableEvents { - this->fireEvent("onValidationFails"); - } - - return false; - } - - if !disableEvents { - /** - * Run Validation Callbacks After - */ - if !exists { - let eventName = "afterValidationOnCreate"; - } else { - let eventName = "afterValidationOnUpdate"; - } - - if this->fireEventCancel(eventName) === false { - return false; - } - - if this->fireEventCancel("afterValidation") === false { - return false; - } - - /** - * Run Before Callbacks - */ - if this->fireEventCancel("beforeSave") === false { - return false; - } - - if exists { - let eventName = "beforeUpdate"; - } else { - let eventName = "beforeCreate"; - } - - if this->fireEventCancel(eventName) === false { - return false; - } - } - - return true; - } - - /** - * Executes internal events after save a document - */ - final protected function postSave(bool disableEvents, bool success, bool exists) -> bool - { - var eventName; - - if !success { - if !disableEvents { - this->fireEvent("notSaved"); - } - - this->cancelOperation(disableEvents); - - return false; - } - - if !disableEvents { - if exists { - let eventName = "afterUpdate"; - } else { - let eventName = "afterCreate"; - } - - this->fireEvent(eventName); - - this->fireEvent("afterSave"); - } - - return success; - } - - /** - * Shared Code for CU Operations - * Prepares Collection - */ - protected function prepareCU() - { - var container, connection, source, collection; - - let container = this->container; - if unlikely typeof container != "object" { - throw new Exception( - Exception::containerServiceNotFound( - "the services related to the ODM" - ) - ); - } - - let source = this->getSource(); - if unlikely empty source { - throw new Exception("Method getSource() returns empty string"); - } - - let connection = this->getConnection(); - - /** - * Choose a collection according to the collection name - */ - let collection = connection->selectCollection(source); - - return collection; - } -} diff --git a/phalcon/Mvc/Collection/Behavior.zep b/phalcon/Mvc/Collection/Behavior.zep deleted file mode 100644 index 1b5c7614b23..00000000000 --- a/phalcon/Mvc/Collection/Behavior.zep +++ /dev/null @@ -1,74 +0,0 @@ - -/** - * This file is part of the Phalcon Framework. - * - * (c) Phalcon Team - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Mvc\Collection; - -use Phalcon\Mvc\CollectionInterface; - -/** - * Phalcon\Mvc\Collection\Behavior - * - * This is an optional base class for ORM behaviors - */ -abstract class Behavior implements BehaviorInterface -{ - protected options; - - /** - * Phalcon\Mvc\Collection\Behavior - */ - public function __construct(array options = []) - { - let this->options = options; - } - - /** - * Returns the behavior options related to an event - * - * @return array - */ - protected function getOptions(string! eventName = null) - { - var options, eventOptions; - - let options = this->options; - if eventName !== null { - if fetch eventOptions, options[eventName] { - return eventOptions; - } - return null; - } - return options; - } - - /** - * Acts as fallbacks when a missing method is called on the collection - */ - public function missingMethod( model, string method, array arguments = []) - { - return null; - } - - /** - * Checks whether the behavior must take action on certain event - */ - protected function mustTakeAction(string! eventName) -> bool - { - return isset this->options[eventName]; - } - - /** - * This method receives the notifications from the EventsManager - */ - public function notify(string type, model) - { - return null; - } -} diff --git a/phalcon/Mvc/Collection/Behavior/SoftDelete.zep b/phalcon/Mvc/Collection/Behavior/SoftDelete.zep deleted file mode 100644 index f1e250dab44..00000000000 --- a/phalcon/Mvc/Collection/Behavior/SoftDelete.zep +++ /dev/null @@ -1,90 +0,0 @@ - -/** - * This file is part of the Phalcon Framework. - * - * (c) Phalcon Team - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Mvc\Collection\Behavior; - -use Phalcon\Mvc\CollectionInterface; -use Phalcon\Mvc\Collection\Behavior; -use Phalcon\Mvc\Collection\Exception; - -/** - * Phalcon\Mvc\Collection\Behavior\SoftDelete - * - * Instead of permanently delete a record it marks the record as - * deleted changing the value of a flag column - */ -class SoftDelete extends Behavior -{ - /** - * Listens for notifications from the models manager - */ - public function notify(string! type, model) - { - var options, value, field, updateModel, message; - - if type !== "beforeDelete" { - return; - } - - let options = this->getOptions(); - - /** - * 'value' is the value to be updated instead of delete the record - */ - if unlikely !fetch value, options["value"] { - throw new Exception("The option 'value' is required"); - } - - /** - * 'field' is the attribute to be updated instead of delete the record - */ - if unlikely !fetch field, options["field"] { - throw new Exception("The option 'field' is required"); - } - - /** - * Skip the current operation - */ - model->skipOperation(true); - - /** - * If the record is already flagged as 'deleted' we don't delete it again - */ - if model->readAttribute(field) == value { - return; - } - - /** - * Clone the current model to make a clean new operation - */ - let updateModel = clone model; - - updateModel->writeAttribute(field, value); - - /** - * Update the cloned model - */ - if !updateModel->save() { - /** - * Transfer the messages from the cloned model to the original model - */ - for message in updateModel->getMessages() { - model->appendMessage(message); - } - - return false; - } - - /** - * Update the original model too - */ - model->writeAttribute(field, value); - } -} diff --git a/phalcon/Mvc/Collection/Behavior/Timestampable.zep b/phalcon/Mvc/Collection/Behavior/Timestampable.zep deleted file mode 100644 index ba762339172..00000000000 --- a/phalcon/Mvc/Collection/Behavior/Timestampable.zep +++ /dev/null @@ -1,90 +0,0 @@ - -/** - * This file is part of the Phalcon Framework. - * - * (c) Phalcon Team - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Mvc\Collection\Behavior; - -use Closure; -use Phalcon\Mvc\CollectionInterface; -use Phalcon\Mvc\Collection\Behavior; -use Phalcon\Mvc\Collection\Exception; - -/** - * Phalcon\Mvc\Collection\Behavior\Timestampable - * - * Allows to automatically update a model’s attribute saving the - * datetime when a record is created or updated - */ -class Timestampable extends Behavior -{ - /** - * Listens for notifications from the models manager - */ - public function notify(string! type, model) - { - var options, timestamp, singleField, field, generator, format; - - /** - * Check if the developer decided to take action here - */ - if this->mustTakeAction(type) !== true { - return null; - } - - let options = this->getOptions(type); - if typeof options == "array" { - - /** - * The field name is required in this behavior - */ - if unlikely !fetch field, options["field"] { - throw new Exception("The option 'field' is required"); - } - - let timestamp = null; - - if fetch format, options["format"] { - /** - * Format is a format for date() - */ - let timestamp = date(format); - } else { - if fetch generator, options["generator"] { - - /** - * A generator is a closure that produce the correct timestamp value - */ - if typeof generator == "object" { - if generator instanceof Closure { - let timestamp = call_user_func(generator); - } - } - } - } - - /** - * Last resort call time() - */ - if timestamp === null { - let timestamp = time(); - } - - /** - * Assign the value to the field, use writeattribute if the property is protected - */ - if typeof field == "array" { - for singleField in field { - model->writeAttribute(singleField, timestamp); - } - } else { - model->writeAttribute(field, timestamp); - } - } - } -} diff --git a/phalcon/Mvc/Collection/BehaviorInterface.zep b/phalcon/Mvc/Collection/BehaviorInterface.zep deleted file mode 100644 index ffa3bb458fa..00000000000 --- a/phalcon/Mvc/Collection/BehaviorInterface.zep +++ /dev/null @@ -1,31 +0,0 @@ - -/** - * This file is part of the Phalcon Framework. - * - * (c) Phalcon Team - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Mvc\Collection; - -use Phalcon\Mvc\CollectionInterface; - -/** - * Phalcon\Mvc\Collection\BehaviorInterface - * - * Interface for Phalcon\Mvc\Collection\Behavior - */ -interface BehaviorInterface -{ - /** - * Calls a method when it's missing in the collection - */ - public function missingMethod( collection, string !method, array arguments = []); - - /** - * This method receives the notifications from the EventsManager - */ - public function notify(string! type, collection); -} diff --git a/phalcon/Mvc/Collection/Document.zep b/phalcon/Mvc/Collection/Document.zep deleted file mode 100644 index f3d63118d7d..00000000000 --- a/phalcon/Mvc/Collection/Document.zep +++ /dev/null @@ -1,100 +0,0 @@ - -/** - * This file is part of the Phalcon Framework. - * - * (c) Phalcon Team - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Mvc\Collection; - -use ArrayAccess; -use Phalcon\Mvc\EntityInterface; -use Phalcon\Mvc\Collection\Exception; - -/** - * Phalcon\Mvc\Collection\Document - * - * This component allows Phalcon\Mvc\Collection to return rows without an associated entity. - * This objects implements the ArrayAccess interface to allow access the object as object->x or array[x]. - */ -class Document implements EntityInterface, ArrayAccess -{ - /** - * Returns the value of a field using the ArrayAccess interfase - */ - public function offsetGet(var index) -> var - { - var value; - - if unlikely !fetch value, this->{index} { - throw new Exception("The index does not exist in the row"); - } - - return value; - } - - /** - * Checks whether an offset exists in the document - */ - public function offsetExists(var index) -> bool - { - return isset this->{index}; - } - - /** - * Change a value using the ArrayAccess interface - */ - public function offsetSet(var index, value) -> void - { - let this->{index} = value; - } - - /** - * Rows cannot be changed. It has only been implemented to meet the definition of the ArrayAccess interface - */ - public function offsetUnset(var index) -> void - { - throw new Exception("The index does not exist in the row"); - } - - /** - * Reads an attribute value by its name - * - *```php - * echo $robot->readAttribute("name"); - *``` - */ - public function readAttribute(string! attribute) -> var | null - { - var value; - - if !fetch value, this->{attribute} { - return null; - } - - return value; - } - - /** - * Returns the instance as an array representation - */ - public function toArray() -> array - { - return get_object_vars(this); - } - - /** - * Writes an attribute value by its name - * - *```php - * $robot->writeAttribute("name", "Rosey"); - *``` - */ - public function writeAttribute(string! attribute, var value) -> void - { - let this->{attribute} = value; - } -} diff --git a/phalcon/Mvc/Collection/Exception.zep b/phalcon/Mvc/Collection/Exception.zep deleted file mode 100644 index e3a3e5109c3..00000000000 --- a/phalcon/Mvc/Collection/Exception.zep +++ /dev/null @@ -1,22 +0,0 @@ - -/** - * This file is part of the Phalcon Framework. - * - * (c) Phalcon Team - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Mvc\Collection; - -/** - * Phalcon\Mvc\Collection\Exception - * - * Exceptions thrown in Phalcon\Mvc\Collection\* classes will use this class - * - */ -class Exception extends \Phalcon\Exception -{ - -} diff --git a/phalcon/Mvc/Collection/Manager.zep b/phalcon/Mvc/Collection/Manager.zep deleted file mode 100644 index be75a26c86f..00000000000 --- a/phalcon/Mvc/Collection/Manager.zep +++ /dev/null @@ -1,378 +0,0 @@ - -/** - * This file is part of the Phalcon Framework. - * - * (c) Phalcon Team - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Mvc\Collection; - -use Phalcon\Di\DiInterface; -use Phalcon\Di\InjectionAwareInterface; -use Phalcon\Events\EventsAwareInterface; -use Phalcon\Events\ManagerInterface; -use Phalcon\Mvc\CollectionInterface; -use Phalcon\Mvc\Collection\BehaviorInterface; - -/** - * Phalcon\Mvc\Collection\Manager - * - * This components controls the initialization of models, keeping record of relations - * between the different models of the application. - * - * A CollectionManager is injected to a model via a Dependency Injector Container such as Phalcon\Di. - * - * ```php - * $di = new \Phalcon\Di(); - * - * $di->set( - * "collectionManager", - * function () { - * return new \Phalcon\Mvc\Collection\Manager(); - * } - * ); - * - * $robot = new Robots($di); - * ``` - */ -class Manager implements InjectionAwareInterface, EventsAwareInterface -{ - protected behaviors; - - protected connectionServices; - - protected container; - - protected customEventsManager; - - protected eventsManager; - - protected implicitObjectsIds; - - protected initialized; - - protected lastInitialized; - - protected serviceName = "mongo" { get, set }; - - /** - * Binds a behavior to a model - */ - public function addBehavior( model, behavior) - { - var entityName, modelsBehaviors; - - let entityName = get_class_lower(model); - - /** - * Get the current behaviors - */ - if !fetch modelsBehaviors, this->behaviors[entityName] { - let modelsBehaviors = []; - } - - /** - * Append the behavior to the list of behaviors - */ - let modelsBehaviors[] = behavior; - - /** - * Update the behaviors list - */ - let this->behaviors[entityName] = modelsBehaviors; - } - - /** - * Returns a custom events manager related to a model - */ - public function getCustomEventsManager( model) -> var | null - { - var customEventsManager, className; - - let customEventsManager = this->customEventsManager; - if typeof customEventsManager == "array" { - let className = get_class_lower(model); - if isset customEventsManager[className] { - return customEventsManager[className]; - } - } - - return null; - } - - /** - * Returns the connection related to a model - * - * @return \Mongo - */ - public function getConnection( model) - { - var service, connectionService, connection, container, entityName; - - let service = this->serviceName; - let connectionService = this->connectionServices; - if typeof connectionService == "array" { - let entityName = get_class(model); - - /** - * Check if the model has a custom connection service - */ - if isset connectionService[entityName] { - let service = connectionService[entityName]; - } - } - - let container = this->container; - if unlikely typeof container != "object" { - throw new Exception( - Exception::containerServiceNotFound( - "the services related to the ORM" - ) - ); - } - - /** - * Request the connection service from the DI - */ - let connection = container->getShared(service); - if unlikely typeof connection != "object" { - throw new Exception("Invalid injected connection service"); - } - - return connection; - } - - /** - * Gets a connection service for a specific model - */ - public function getConnectionService( model) -> string - { - var service, entityName; - - let service = this->serviceName; - let entityName = get_class(model); - if isset this->connectionServices[entityName] { - let service = this->connectionServices[entityName]; - } - - return service; - } - - /** - * Returns the DependencyInjector container - */ - public function getDI() -> - { - return this->container; - } - - /** - * Returns the internal event manager - */ - public function getEventsManager() -> - { - return this->eventsManager; - } - - /** - * Get the latest initialized model - */ - public function getLastInitialized() -> - { - return this->lastInitialized; - } - - /** - * Checks if a model is using implicit object ids - */ - public function isUsingImplicitObjectIds( model) -> bool - { - var implicit; - - /** - * All collections use by default are using implicit object ids - */ - if fetch implicit, this->implicitObjectsIds[get_class(model)] { - return implicit; - } - - return true; - } - - /** - * Check whether a model is already initialized - */ - public function isInitialized(string! className) -> bool - { - return isset this->initialized[strtolower(className)]; - } - - /** - * Initializes a model in the models manager - */ - public function initialize( model) -> void - { - var className, initialized, eventsManager; - - let className = get_class_lower(model); - let initialized = this->initialized; - - /** - * Models are just initialized once per request - */ - if !isset initialized[className] { - /** - * Call the 'initialize' method if it's implemented - */ - if method_exists(model, "initialize") { - model->{"initialize"}(); - } - - /** - * If an EventsManager is available we pass to it every initialized model - */ - let eventsManager = this->eventsManager; - if typeof eventsManager == "object" { - eventsManager->fire("collectionManager:afterInitialize", model); - } - - let this->initialized[className] = model; - let this->lastInitialized = model; - } - } - - /** - * Dispatch an event to the listeners and behaviors - * This method expects that the endpoint listeners/behaviors returns true - * meaning that at least one was implemented - */ - public function missingMethod( model, string! eventName, var data) -> bool - { - var behaviors, modelsBehaviors, result, eventsManager, behavior; - - /** - * Dispatch events to the global events manager - */ - let behaviors = this->behaviors; - if typeof behaviors == "array" { - - if fetch modelsBehaviors, behaviors[get_class_lower(model)] { - - /** - * Notify all the events on the behavior - */ - for behavior in modelsBehaviors { - let result = behavior->missingMethod(model, eventName, data); - if result !== null { - return result; - } - } - } - } - - /** - * Dispatch events to the global events manager - */ - let eventsManager = this->eventsManager; - if typeof eventsManager == "object" { - return eventsManager->fire("model:" . eventName, model, data); - } - - return false; - } - - /** - * Receives events generated in the models and dispatches them to an events-manager if available - * Notify the behaviors that are listening in the model - */ - public function notifyEvent(string! eventName, model) - { - var behavior, behaviors, modelsBehaviors, eventsManager, status = null, - customEventsManager; - - let behaviors = this->behaviors; - if typeof behaviors == "array" { - if fetch modelsBehaviors, behaviors[get_class_lower(model)] { - - /** - * Notify all the events on the behavior - */ - for behavior in modelsBehaviors { - let status = behavior->notify(eventName, model); - if status === false { - return false; - } - } - } - } - - /** - * Dispatch events to the global events manager - */ - let eventsManager = this->eventsManager; - if typeof eventsManager == "object" { - let status = eventsManager->fire( "collection:". eventName, model); - if !status { - return status; - } - } - - /** - * A model can has a specific events manager for it - */ - let customEventsManager = this->customEventsManager; - if typeof customEventsManager == "array" { - if isset customEventsManager[get_class_lower(model)] { - let status = customEventsManager->fire("collection:" . eventName, model); - if !status { - return status; - } - } - } - - return status; - } - - /** - * Sets a custom events manager for a specific model - */ - public function setCustomEventsManager( model, eventsManager) -> void - { - let this->customEventsManager[get_class(model)] = eventsManager; - } - - /** - * Sets a connection service for a specific model - */ - public function setConnectionService( model, string! connectionService) -> void - { - let this->connectionServices[get_class(model)] = connectionService; - } - - /** - * Sets the DependencyInjector container - */ - public function setDI( container) -> void - { - let this->container = container; - } - - /** - * Sets the event manager - */ - public function setEventsManager( eventsManager) -> void - { - let this->eventsManager = eventsManager; - } - - /** - * Sets whether a model must use implicit objects ids - */ - public function useImplicitObjectIds( model, bool useImplicitObjectIds) -> void - { - let this->implicitObjectsIds[get_class(model)] = useImplicitObjectIds; - } -} diff --git a/phalcon/Mvc/Collection/ManagerInterface.zep b/phalcon/Mvc/Collection/ManagerInterface.zep deleted file mode 100644 index 7f9ffb5156e..00000000000 --- a/phalcon/Mvc/Collection/ManagerInterface.zep +++ /dev/null @@ -1,96 +0,0 @@ - -/** - * This file is part of the Phalcon Framework. - * - * (c) Phalcon Team - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Mvc\Collection; - -use Phalcon\Db\Adapter\AdapterInterface; -use Phalcon\Mvc\CollectionInterface; -use Phalcon\Mvc\Collection\BehaviorInterface; -use Phalcon\Events\ManagerInterface as EventsManagerInterface; - -/** - * Phalcon\Mvc\Collection\Manager - * - * This components controls the initialization of models, keeping record of relations - * between the different models of the application. - * - * A CollectionManager is injected to a model via a Dependency Injector Container such as Phalcon\Di. - * - * ```php - * $di = new \Phalcon\Di(); - * - * $di->set( - * "collectionManager", - * function() { - * return new \Phalcon\Mvc\Collection\Manager(); - * } - * ); - * - * $robot = new Robots(di); - * ``` - */ -interface ManagerInterface -{ - /** - * Binds a behavior to a collection - */ - public function addBehavior( model, behavior); - - /** - * Returns the connection related to a model - */ - public function getConnection( model) -> ; - - /** - * Returns a custom events manager related to a model - */ - public function getCustomEventsManager( model) -> ; - - /** - * Get the latest initialized model - */ - public function getLastInitialized() -> ; - - /** - * Initializes a model in the models manager - */ - public function initialize( model); - - /** - * Check whether a model is already initialized - */ - public function isInitialized(string! className) -> bool; - - /** - * Checks if a model is using implicit object ids - */ - public function isUsingImplicitObjectIds( model) -> bool; - - /** - * Receives events generated in the models and dispatches them to an events-manager if available - * Notify the behaviors that are listening in the model - */ - public function notifyEvent(string! eventName, model); - - /** - * Sets a custom events manager for a specific model - */ - public function setCustomEventsManager( model, eventsManager); - - /** - * Sets a connection service for a specific model - */ - public function setConnectionService( model, string! connectionService); - - /** - * Sets if a model must use implicit objects ids - */ - public function useImplicitObjectIds( model, bool useImplicitObjectIds); -} diff --git a/phalcon/Mvc/CollectionInterface.zep b/phalcon/Mvc/CollectionInterface.zep deleted file mode 100644 index e671923cf39..00000000000 --- a/phalcon/Mvc/CollectionInterface.zep +++ /dev/null @@ -1,132 +0,0 @@ - -/** - * This file is part of the Phalcon Framework. - * - * (c) Phalcon Team - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Mvc; - -use Phalcon\Messages\MessageInterface; - -/** - * Interface for Phalcon\Mvc\Collection - */ -interface CollectionInterface -{ - /** - * Appends a customized message on the validation process - */ - public function appendMessage( message); - - /** - * Returns a cloned collection - */ - public static function cloneResult( collection, array! document) -> ; - - /** - * Perform a count over a collection - */ - public static function count(array parameters = null) -> int; - - /** - * Deletes a model instance. Returning true on success or false otherwise - */ - public function delete() -> bool; - - /** - * Allows to query a set of records that match the specified conditions - */ - public static function find(array parameters = null) -> array; - - /** - * Find a document by its id - * - * @param string id - */ - public static function findById(var id) -> | null; - - /** - * Allows to query the first record that match the specified conditions - */ - public static function findFirst(array parameters = null) -> array; - - /** - * Fires an event, implicitly calls behaviors and listeners in the events - * manager are notified - */ - public function fireEvent(string! eventName) -> bool; - - /** - * Fires an event, implicitly listeners in the events manager are notified - * This method stops if one of the callbacks/listeners returns bool false - */ - public function fireEventCancel(string! eventName) -> bool; - - /** - * Retrieves a database connection - * - * @return MongoDb - */ - public function getConnection(); - - /** - * Returns one of the DIRTY_STATE_* constants telling if the record exists - * in the database or not - */ - public function getDirtyState() -> int; - - /** - * Returns the value of the _id property - * - * @return MongoId - */ - public function getId(); - - /** - * Returns all the validation messages - */ - public function getMessages() -> ; - - /** - * Returns an array with reserved properties that cannot be part of the - * insert/update - */ - public function getReservedAttributes() -> array; - - /** - * Returns collection name mapped in the model - */ - public function getSource() -> string; - - /** - * Creates/Updates a collection based on the values in the attributes - */ - public function save() -> bool; - - /** - * Sets a service in the services container that returns the Mongo database - */ - public function setConnectionService(string! connectionService); - - /** - * Sets the dirty state of the object using one of the DIRTY_STATE_* - * constants - */ - public function setDirtyState(int dirtyState) -> ; - - /** - * Sets a value for the _id property, creates a MongoId object if needed - * - * @param mixed id - */ - public function setId(id); - - /** - * Check whether validation process has generated any messages - */ - public function validationHasFailed() -> bool; -} From 342967af4ad1e717d15e0efd4649adf29b274e09 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Sat, 7 Sep 2019 10:53:59 -0400 Subject: [PATCH 094/202] [#13697] - Removed collection tests --- .../Mvc/Collection/AggregateCest.php | 33 --------- .../Mvc/Collection/AppendMessageCest.php | 33 --------- .../Mvc/Collection/Behavior/ConstructCest.php | 33 --------- .../Collection/Behavior/MissingMethodCest.php | 33 --------- .../Mvc/Collection/Behavior/NotifyCest.php | 33 --------- .../Behavior/SoftDelete/ConstructCest.php | 33 --------- .../Behavior/SoftDelete/MissingMethodCest.php | 33 --------- .../Behavior/SoftDelete/NotifyCest.php | 33 --------- .../Behavior/Timestampable/ConstructCest.php | 33 --------- .../Timestampable/MissingMethodCest.php | 33 --------- .../Behavior/Timestampable/NotifyCest.php | 33 --------- .../Mvc/Collection/CloneResultCest.php | 33 --------- .../Mvc/Collection/ConstructCest.php | 33 --------- .../integration/Mvc/Collection/CountCest.php | 33 --------- .../integration/Mvc/Collection/CreateCest.php | 33 --------- .../Mvc/Collection/CreateIfNotExistCest.php | 33 --------- .../integration/Mvc/Collection/DeleteCest.php | 33 --------- .../Collection/Document/OffsetExistsCest.php | 33 --------- .../Mvc/Collection/Document/OffsetGetCest.php | 33 --------- .../Mvc/Collection/Document/OffsetSetCest.php | 33 --------- .../Collection/Document/OffsetUnsetCest.php | 33 --------- .../Collection/Document/ReadAttributeCest.php | 33 --------- .../Mvc/Collection/Document/ToArrayCest.php | 33 --------- .../Document/WriteAttributeCest.php | 33 --------- .../Mvc/Collection/FindByIdCest.php | 33 --------- tests/integration/Mvc/Collection/FindCest.php | 33 --------- .../Mvc/Collection/FindFirstCest.php | 33 --------- .../Mvc/Collection/FireEventCancelCest.php | 33 --------- .../Mvc/Collection/FireEventCest.php | 33 --------- .../Collection/GetCollectionManagerCest.php | 33 --------- .../Mvc/Collection/GetConnectionCest.php | 33 --------- .../Collection/GetConnectionServiceCest.php | 33 --------- .../integration/Mvc/Collection/GetDICest.php | 33 --------- .../Mvc/Collection/GetDirtyStateCest.php | 33 --------- .../integration/Mvc/Collection/GetIdCest.php | 33 --------- .../Mvc/Collection/GetMessagesCest.php | 33 --------- .../Collection/GetReservedAttributesCest.php | 33 --------- .../Mvc/Collection/GetSourceCest.php | 33 --------- .../Collection/Manager/AddBehaviorCest.php | 33 --------- .../Collection/Manager/GetConnectionCest.php | 33 --------- .../Manager/GetConnectionServiceCest.php | 33 --------- .../Manager/GetCustomEventsManagerCest.php | 33 --------- .../Mvc/Collection/Manager/GetDICest.php | 33 --------- .../Manager/GetEventsManagerCest.php | 33 --------- .../Manager/GetLastInitializedCest.php | 33 --------- .../Collection/Manager/GetServiceNameCest.php | 33 --------- .../Mvc/Collection/Manager/InitializeCest.php | 33 --------- .../Collection/Manager/IsInitializedCest.php | 33 --------- .../Manager/IsUsingImplicitObjectIdsCest.php | 33 --------- .../Collection/Manager/MissingMethodCest.php | 33 --------- .../Collection/Manager/NotifyEventCest.php | 33 --------- .../Manager/SetConnectionServiceCest.php | 33 --------- .../Manager/SetCustomEventsManagerCest.php | 33 --------- .../Mvc/Collection/Manager/SetDICest.php | 33 --------- .../Manager/SetEventsManagerCest.php | 33 --------- .../Collection/Manager/SetServiceNameCest.php | 33 --------- .../Manager/UseImplicitObjectIdsCest.php | 33 --------- .../Mvc/Collection/ReadAttributeCest.php | 33 --------- .../Mvc/Collection/Refactor-BehaviorCest.php | 72 ------------------- tests/integration/Mvc/Collection/SaveCest.php | 33 --------- .../Mvc/Collection/SerializeCest.php | 33 --------- .../Collection/SetConnectionServiceCest.php | 33 --------- .../integration/Mvc/Collection/SetDICest.php | 33 --------- .../Mvc/Collection/SetDirtyStateCest.php | 33 --------- .../integration/Mvc/Collection/SetIdCest.php | 33 --------- .../Mvc/Collection/SkipOperationCest.php | 33 --------- .../Mvc/Collection/SummatoryCest.php | 33 --------- .../Mvc/Collection/ToArrayCest.php | 33 --------- .../Mvc/Collection/UnserializeCest.php | 33 --------- .../integration/Mvc/Collection/UpdateCest.php | 33 --------- .../Collection/ValidationHasFailedCest.php | 33 --------- .../Mvc/Collection/WriteAttributeCest.php | 33 --------- 72 files changed, 2415 deletions(-) delete mode 100644 tests/integration/Mvc/Collection/AggregateCest.php delete mode 100644 tests/integration/Mvc/Collection/AppendMessageCest.php delete mode 100644 tests/integration/Mvc/Collection/Behavior/ConstructCest.php delete mode 100644 tests/integration/Mvc/Collection/Behavior/MissingMethodCest.php delete mode 100644 tests/integration/Mvc/Collection/Behavior/NotifyCest.php delete mode 100644 tests/integration/Mvc/Collection/Behavior/SoftDelete/ConstructCest.php delete mode 100644 tests/integration/Mvc/Collection/Behavior/SoftDelete/MissingMethodCest.php delete mode 100644 tests/integration/Mvc/Collection/Behavior/SoftDelete/NotifyCest.php delete mode 100644 tests/integration/Mvc/Collection/Behavior/Timestampable/ConstructCest.php delete mode 100644 tests/integration/Mvc/Collection/Behavior/Timestampable/MissingMethodCest.php delete mode 100644 tests/integration/Mvc/Collection/Behavior/Timestampable/NotifyCest.php delete mode 100644 tests/integration/Mvc/Collection/CloneResultCest.php delete mode 100644 tests/integration/Mvc/Collection/ConstructCest.php delete mode 100644 tests/integration/Mvc/Collection/CountCest.php delete mode 100644 tests/integration/Mvc/Collection/CreateCest.php delete mode 100644 tests/integration/Mvc/Collection/CreateIfNotExistCest.php delete mode 100644 tests/integration/Mvc/Collection/DeleteCest.php delete mode 100644 tests/integration/Mvc/Collection/Document/OffsetExistsCest.php delete mode 100644 tests/integration/Mvc/Collection/Document/OffsetGetCest.php delete mode 100644 tests/integration/Mvc/Collection/Document/OffsetSetCest.php delete mode 100644 tests/integration/Mvc/Collection/Document/OffsetUnsetCest.php delete mode 100644 tests/integration/Mvc/Collection/Document/ReadAttributeCest.php delete mode 100644 tests/integration/Mvc/Collection/Document/ToArrayCest.php delete mode 100644 tests/integration/Mvc/Collection/Document/WriteAttributeCest.php delete mode 100644 tests/integration/Mvc/Collection/FindByIdCest.php delete mode 100644 tests/integration/Mvc/Collection/FindCest.php delete mode 100644 tests/integration/Mvc/Collection/FindFirstCest.php delete mode 100644 tests/integration/Mvc/Collection/FireEventCancelCest.php delete mode 100644 tests/integration/Mvc/Collection/FireEventCest.php delete mode 100644 tests/integration/Mvc/Collection/GetCollectionManagerCest.php delete mode 100644 tests/integration/Mvc/Collection/GetConnectionCest.php delete mode 100644 tests/integration/Mvc/Collection/GetConnectionServiceCest.php delete mode 100644 tests/integration/Mvc/Collection/GetDICest.php delete mode 100644 tests/integration/Mvc/Collection/GetDirtyStateCest.php delete mode 100644 tests/integration/Mvc/Collection/GetIdCest.php delete mode 100644 tests/integration/Mvc/Collection/GetMessagesCest.php delete mode 100644 tests/integration/Mvc/Collection/GetReservedAttributesCest.php delete mode 100644 tests/integration/Mvc/Collection/GetSourceCest.php delete mode 100644 tests/integration/Mvc/Collection/Manager/AddBehaviorCest.php delete mode 100644 tests/integration/Mvc/Collection/Manager/GetConnectionCest.php delete mode 100644 tests/integration/Mvc/Collection/Manager/GetConnectionServiceCest.php delete mode 100644 tests/integration/Mvc/Collection/Manager/GetCustomEventsManagerCest.php delete mode 100644 tests/integration/Mvc/Collection/Manager/GetDICest.php delete mode 100644 tests/integration/Mvc/Collection/Manager/GetEventsManagerCest.php delete mode 100644 tests/integration/Mvc/Collection/Manager/GetLastInitializedCest.php delete mode 100644 tests/integration/Mvc/Collection/Manager/GetServiceNameCest.php delete mode 100644 tests/integration/Mvc/Collection/Manager/InitializeCest.php delete mode 100644 tests/integration/Mvc/Collection/Manager/IsInitializedCest.php delete mode 100644 tests/integration/Mvc/Collection/Manager/IsUsingImplicitObjectIdsCest.php delete mode 100644 tests/integration/Mvc/Collection/Manager/MissingMethodCest.php delete mode 100644 tests/integration/Mvc/Collection/Manager/NotifyEventCest.php delete mode 100644 tests/integration/Mvc/Collection/Manager/SetConnectionServiceCest.php delete mode 100644 tests/integration/Mvc/Collection/Manager/SetCustomEventsManagerCest.php delete mode 100644 tests/integration/Mvc/Collection/Manager/SetDICest.php delete mode 100644 tests/integration/Mvc/Collection/Manager/SetEventsManagerCest.php delete mode 100644 tests/integration/Mvc/Collection/Manager/SetServiceNameCest.php delete mode 100644 tests/integration/Mvc/Collection/Manager/UseImplicitObjectIdsCest.php delete mode 100644 tests/integration/Mvc/Collection/ReadAttributeCest.php delete mode 100644 tests/integration/Mvc/Collection/Refactor-BehaviorCest.php delete mode 100644 tests/integration/Mvc/Collection/SaveCest.php delete mode 100644 tests/integration/Mvc/Collection/SerializeCest.php delete mode 100644 tests/integration/Mvc/Collection/SetConnectionServiceCest.php delete mode 100644 tests/integration/Mvc/Collection/SetDICest.php delete mode 100644 tests/integration/Mvc/Collection/SetDirtyStateCest.php delete mode 100644 tests/integration/Mvc/Collection/SetIdCest.php delete mode 100644 tests/integration/Mvc/Collection/SkipOperationCest.php delete mode 100644 tests/integration/Mvc/Collection/SummatoryCest.php delete mode 100644 tests/integration/Mvc/Collection/ToArrayCest.php delete mode 100644 tests/integration/Mvc/Collection/UnserializeCest.php delete mode 100644 tests/integration/Mvc/Collection/UpdateCest.php delete mode 100644 tests/integration/Mvc/Collection/ValidationHasFailedCest.php delete mode 100644 tests/integration/Mvc/Collection/WriteAttributeCest.php diff --git a/tests/integration/Mvc/Collection/AggregateCest.php b/tests/integration/Mvc/Collection/AggregateCest.php deleted file mode 100644 index 16e2b46669d..00000000000 --- a/tests/integration/Mvc/Collection/AggregateCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection; - -use IntegrationTester; - -/** - * Class AggregateCest - */ -class AggregateCest -{ - /** - * Tests Phalcon\Mvc\Collection :: aggregate() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionAggregate(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection - aggregate()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/AppendMessageCest.php b/tests/integration/Mvc/Collection/AppendMessageCest.php deleted file mode 100644 index f32baa020f6..00000000000 --- a/tests/integration/Mvc/Collection/AppendMessageCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection; - -use IntegrationTester; - -/** - * Class AppendMessageCest - */ -class AppendMessageCest -{ - /** - * Tests Phalcon\Mvc\Collection :: appendMessage() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionAppendMessage(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection - appendMessage()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/Behavior/ConstructCest.php b/tests/integration/Mvc/Collection/Behavior/ConstructCest.php deleted file mode 100644 index 40b720ed6b2..00000000000 --- a/tests/integration/Mvc/Collection/Behavior/ConstructCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection\Behavior; - -use IntegrationTester; - -/** - * Class ConstructCest - */ -class ConstructCest -{ - /** - * Tests Phalcon\Mvc\Collection\Behavior :: __construct() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionBehaviorConstruct(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection\Behavior - __construct()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/Behavior/MissingMethodCest.php b/tests/integration/Mvc/Collection/Behavior/MissingMethodCest.php deleted file mode 100644 index fd757943c28..00000000000 --- a/tests/integration/Mvc/Collection/Behavior/MissingMethodCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection\Behavior; - -use IntegrationTester; - -/** - * Class MissingMethodCest - */ -class MissingMethodCest -{ - /** - * Tests Phalcon\Mvc\Collection\Behavior :: missingMethod() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionBehaviorMissingMethod(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection\Behavior - missingMethod()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/Behavior/NotifyCest.php b/tests/integration/Mvc/Collection/Behavior/NotifyCest.php deleted file mode 100644 index 90cf7458d71..00000000000 --- a/tests/integration/Mvc/Collection/Behavior/NotifyCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection\Behavior; - -use IntegrationTester; - -/** - * Class NotifyCest - */ -class NotifyCest -{ - /** - * Tests Phalcon\Mvc\Collection\Behavior :: notify() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionBehaviorNotify(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection\Behavior - notify()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/Behavior/SoftDelete/ConstructCest.php b/tests/integration/Mvc/Collection/Behavior/SoftDelete/ConstructCest.php deleted file mode 100644 index 9566624f921..00000000000 --- a/tests/integration/Mvc/Collection/Behavior/SoftDelete/ConstructCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection\Behavior\SoftDelete; - -use IntegrationTester; - -/** - * Class ConstructCest - */ -class ConstructCest -{ - /** - * Tests Phalcon\Mvc\Collection\Behavior\SoftDelete :: __construct() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionBehaviorSoftdeleteConstruct(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection\Behavior\SoftDelete - __construct()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/Behavior/SoftDelete/MissingMethodCest.php b/tests/integration/Mvc/Collection/Behavior/SoftDelete/MissingMethodCest.php deleted file mode 100644 index 426c28d393c..00000000000 --- a/tests/integration/Mvc/Collection/Behavior/SoftDelete/MissingMethodCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection\Behavior\SoftDelete; - -use IntegrationTester; - -/** - * Class MissingMethodCest - */ -class MissingMethodCest -{ - /** - * Tests Phalcon\Mvc\Collection\Behavior\SoftDelete :: missingMethod() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionBehaviorSoftdeleteMissingMethod(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection\Behavior\SoftDelete - missingMethod()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/Behavior/SoftDelete/NotifyCest.php b/tests/integration/Mvc/Collection/Behavior/SoftDelete/NotifyCest.php deleted file mode 100644 index 14c8d4ab246..00000000000 --- a/tests/integration/Mvc/Collection/Behavior/SoftDelete/NotifyCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection\Behavior\SoftDelete; - -use IntegrationTester; - -/** - * Class NotifyCest - */ -class NotifyCest -{ - /** - * Tests Phalcon\Mvc\Collection\Behavior\SoftDelete :: notify() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionBehaviorSoftdeleteNotify(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection\Behavior\SoftDelete - notify()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/Behavior/Timestampable/ConstructCest.php b/tests/integration/Mvc/Collection/Behavior/Timestampable/ConstructCest.php deleted file mode 100644 index a7daaa94630..00000000000 --- a/tests/integration/Mvc/Collection/Behavior/Timestampable/ConstructCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection\Behavior\Timestampable; - -use IntegrationTester; - -/** - * Class ConstructCest - */ -class ConstructCest -{ - /** - * Tests Phalcon\Mvc\Collection\Behavior\Timestampable :: __construct() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionBehaviorTimestampableConstruct(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection\Behavior\Timestampable - __construct()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/Behavior/Timestampable/MissingMethodCest.php b/tests/integration/Mvc/Collection/Behavior/Timestampable/MissingMethodCest.php deleted file mode 100644 index 780f777c249..00000000000 --- a/tests/integration/Mvc/Collection/Behavior/Timestampable/MissingMethodCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection\Behavior\Timestampable; - -use IntegrationTester; - -/** - * Class MissingMethodCest - */ -class MissingMethodCest -{ - /** - * Tests Phalcon\Mvc\Collection\Behavior\Timestampable :: missingMethod() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionBehaviorTimestampableMissingMethod(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection\Behavior\Timestampable - missingMethod()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/Behavior/Timestampable/NotifyCest.php b/tests/integration/Mvc/Collection/Behavior/Timestampable/NotifyCest.php deleted file mode 100644 index 469a5bd8bf8..00000000000 --- a/tests/integration/Mvc/Collection/Behavior/Timestampable/NotifyCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection\Behavior\Timestampable; - -use IntegrationTester; - -/** - * Class NotifyCest - */ -class NotifyCest -{ - /** - * Tests Phalcon\Mvc\Collection\Behavior\Timestampable :: notify() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionBehaviorTimestampableNotify(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection\Behavior\Timestampable - notify()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/CloneResultCest.php b/tests/integration/Mvc/Collection/CloneResultCest.php deleted file mode 100644 index 2e7c8fe16b3..00000000000 --- a/tests/integration/Mvc/Collection/CloneResultCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection; - -use IntegrationTester; - -/** - * Class CloneResultCest - */ -class CloneResultCest -{ - /** - * Tests Phalcon\Mvc\Collection :: cloneResult() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionCloneResult(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection - cloneResult()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/ConstructCest.php b/tests/integration/Mvc/Collection/ConstructCest.php deleted file mode 100644 index 5ae30ec0db8..00000000000 --- a/tests/integration/Mvc/Collection/ConstructCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection; - -use IntegrationTester; - -/** - * Class ConstructCest - */ -class ConstructCest -{ - /** - * Tests Phalcon\Mvc\Collection :: __construct() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionConstruct(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection - __construct()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/CountCest.php b/tests/integration/Mvc/Collection/CountCest.php deleted file mode 100644 index 474c0cf0a04..00000000000 --- a/tests/integration/Mvc/Collection/CountCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection; - -use IntegrationTester; - -/** - * Class CountCest - */ -class CountCest -{ - /** - * Tests Phalcon\Mvc\Collection :: count() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionCount(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection - count()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/CreateCest.php b/tests/integration/Mvc/Collection/CreateCest.php deleted file mode 100644 index f613dda5633..00000000000 --- a/tests/integration/Mvc/Collection/CreateCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection; - -use IntegrationTester; - -/** - * Class CreateCest - */ -class CreateCest -{ - /** - * Tests Phalcon\Mvc\Collection :: create() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionCreate(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection - create()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/CreateIfNotExistCest.php b/tests/integration/Mvc/Collection/CreateIfNotExistCest.php deleted file mode 100644 index 641af06997a..00000000000 --- a/tests/integration/Mvc/Collection/CreateIfNotExistCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection; - -use IntegrationTester; - -/** - * Class CreateIfNotExistCest - */ -class CreateIfNotExistCest -{ - /** - * Tests Phalcon\Mvc\Collection :: createIfNotExist() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionCreateIfNotExist(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection - createIfNotExist()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/DeleteCest.php b/tests/integration/Mvc/Collection/DeleteCest.php deleted file mode 100644 index da6bc05488f..00000000000 --- a/tests/integration/Mvc/Collection/DeleteCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection; - -use IntegrationTester; - -/** - * Class DeleteCest - */ -class DeleteCest -{ - /** - * Tests Phalcon\Mvc\Collection :: delete() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionDelete(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection - delete()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/Document/OffsetExistsCest.php b/tests/integration/Mvc/Collection/Document/OffsetExistsCest.php deleted file mode 100644 index dc2fdd6b021..00000000000 --- a/tests/integration/Mvc/Collection/Document/OffsetExistsCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection\Document; - -use IntegrationTester; - -/** - * Class OffsetExistsCest - */ -class OffsetExistsCest -{ - /** - * Tests Phalcon\Mvc\Collection\Document :: offsetExists() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionDocumentOffsetExists(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection\Document - offsetExists()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/Document/OffsetGetCest.php b/tests/integration/Mvc/Collection/Document/OffsetGetCest.php deleted file mode 100644 index 989dcd14308..00000000000 --- a/tests/integration/Mvc/Collection/Document/OffsetGetCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection\Document; - -use IntegrationTester; - -/** - * Class OffsetGetCest - */ -class OffsetGetCest -{ - /** - * Tests Phalcon\Mvc\Collection\Document :: offsetGet() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionDocumentOffsetGet(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection\Document - offsetGet()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/Document/OffsetSetCest.php b/tests/integration/Mvc/Collection/Document/OffsetSetCest.php deleted file mode 100644 index b9864e1f025..00000000000 --- a/tests/integration/Mvc/Collection/Document/OffsetSetCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection\Document; - -use IntegrationTester; - -/** - * Class OffsetSetCest - */ -class OffsetSetCest -{ - /** - * Tests Phalcon\Mvc\Collection\Document :: offsetSet() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionDocumentOffsetSet(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection\Document - offsetSet()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/Document/OffsetUnsetCest.php b/tests/integration/Mvc/Collection/Document/OffsetUnsetCest.php deleted file mode 100644 index 46c79ddb9c7..00000000000 --- a/tests/integration/Mvc/Collection/Document/OffsetUnsetCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection\Document; - -use IntegrationTester; - -/** - * Class OffsetUnsetCest - */ -class OffsetUnsetCest -{ - /** - * Tests Phalcon\Mvc\Collection\Document :: offsetUnset() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionDocumentOffsetUnset(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection\Document - offsetUnset()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/Document/ReadAttributeCest.php b/tests/integration/Mvc/Collection/Document/ReadAttributeCest.php deleted file mode 100644 index 4dc2a795fd6..00000000000 --- a/tests/integration/Mvc/Collection/Document/ReadAttributeCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection\Document; - -use IntegrationTester; - -/** - * Class ReadAttributeCest - */ -class ReadAttributeCest -{ - /** - * Tests Phalcon\Mvc\Collection\Document :: readAttribute() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionDocumentReadAttribute(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection\Document - readAttribute()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/Document/ToArrayCest.php b/tests/integration/Mvc/Collection/Document/ToArrayCest.php deleted file mode 100644 index 0953e6024cd..00000000000 --- a/tests/integration/Mvc/Collection/Document/ToArrayCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection\Document; - -use IntegrationTester; - -/** - * Class ToArrayCest - */ -class ToArrayCest -{ - /** - * Tests Phalcon\Mvc\Collection\Document :: toArray() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionDocumentToArray(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection\Document - toArray()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/Document/WriteAttributeCest.php b/tests/integration/Mvc/Collection/Document/WriteAttributeCest.php deleted file mode 100644 index d3222f9f9af..00000000000 --- a/tests/integration/Mvc/Collection/Document/WriteAttributeCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection\Document; - -use IntegrationTester; - -/** - * Class WriteAttributeCest - */ -class WriteAttributeCest -{ - /** - * Tests Phalcon\Mvc\Collection\Document :: writeAttribute() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionDocumentWriteAttribute(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection\Document - writeAttribute()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/FindByIdCest.php b/tests/integration/Mvc/Collection/FindByIdCest.php deleted file mode 100644 index dce91530e84..00000000000 --- a/tests/integration/Mvc/Collection/FindByIdCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection; - -use IntegrationTester; - -/** - * Class FindByIdCest - */ -class FindByIdCest -{ - /** - * Tests Phalcon\Mvc\Collection :: findById() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionFindById(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection - findById()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/FindCest.php b/tests/integration/Mvc/Collection/FindCest.php deleted file mode 100644 index 3e281c35d83..00000000000 --- a/tests/integration/Mvc/Collection/FindCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection; - -use IntegrationTester; - -/** - * Class FindCest - */ -class FindCest -{ - /** - * Tests Phalcon\Mvc\Collection :: find() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionFind(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection - find()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/FindFirstCest.php b/tests/integration/Mvc/Collection/FindFirstCest.php deleted file mode 100644 index 92d067a0cb2..00000000000 --- a/tests/integration/Mvc/Collection/FindFirstCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection; - -use IntegrationTester; - -/** - * Class FindFirstCest - */ -class FindFirstCest -{ - /** - * Tests Phalcon\Mvc\Collection :: findFirst() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionFindFirst(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection - findFirst()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/FireEventCancelCest.php b/tests/integration/Mvc/Collection/FireEventCancelCest.php deleted file mode 100644 index f4a945ddae4..00000000000 --- a/tests/integration/Mvc/Collection/FireEventCancelCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection; - -use IntegrationTester; - -/** - * Class FireEventCancelCest - */ -class FireEventCancelCest -{ - /** - * Tests Phalcon\Mvc\Collection :: fireEventCancel() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionFireEventCancel(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection - fireEventCancel()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/FireEventCest.php b/tests/integration/Mvc/Collection/FireEventCest.php deleted file mode 100644 index 93d1df6af9b..00000000000 --- a/tests/integration/Mvc/Collection/FireEventCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection; - -use IntegrationTester; - -/** - * Class FireEventCest - */ -class FireEventCest -{ - /** - * Tests Phalcon\Mvc\Collection :: fireEvent() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionFireEvent(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection - fireEvent()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/GetCollectionManagerCest.php b/tests/integration/Mvc/Collection/GetCollectionManagerCest.php deleted file mode 100644 index 2fa887a021a..00000000000 --- a/tests/integration/Mvc/Collection/GetCollectionManagerCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection; - -use IntegrationTester; - -/** - * Class GetCollectionManagerCest - */ -class GetCollectionManagerCest -{ - /** - * Tests Phalcon\Mvc\Collection :: getCollectionManager() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionGetCollectionManager(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection - getCollectionManager()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/GetConnectionCest.php b/tests/integration/Mvc/Collection/GetConnectionCest.php deleted file mode 100644 index 22a0d9297e1..00000000000 --- a/tests/integration/Mvc/Collection/GetConnectionCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection; - -use IntegrationTester; - -/** - * Class GetConnectionCest - */ -class GetConnectionCest -{ - /** - * Tests Phalcon\Mvc\Collection :: getConnection() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionGetConnection(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection - getConnection()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/GetConnectionServiceCest.php b/tests/integration/Mvc/Collection/GetConnectionServiceCest.php deleted file mode 100644 index fffeacd5baf..00000000000 --- a/tests/integration/Mvc/Collection/GetConnectionServiceCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection; - -use IntegrationTester; - -/** - * Class GetConnectionServiceCest - */ -class GetConnectionServiceCest -{ - /** - * Tests Phalcon\Mvc\Collection :: getConnectionService() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionGetConnectionService(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection - getConnectionService()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/GetDICest.php b/tests/integration/Mvc/Collection/GetDICest.php deleted file mode 100644 index 5764ab59f28..00000000000 --- a/tests/integration/Mvc/Collection/GetDICest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection; - -use IntegrationTester; - -/** - * Class GetDICest - */ -class GetDICest -{ - /** - * Tests Phalcon\Mvc\Collection :: getDI() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionGetDI(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection - getDI()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/GetDirtyStateCest.php b/tests/integration/Mvc/Collection/GetDirtyStateCest.php deleted file mode 100644 index 89928ec98d2..00000000000 --- a/tests/integration/Mvc/Collection/GetDirtyStateCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection; - -use IntegrationTester; - -/** - * Class GetDirtyStateCest - */ -class GetDirtyStateCest -{ - /** - * Tests Phalcon\Mvc\Collection :: getDirtyState() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionGetDirtyState(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection - getDirtyState()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/GetIdCest.php b/tests/integration/Mvc/Collection/GetIdCest.php deleted file mode 100644 index 59bf6c28c42..00000000000 --- a/tests/integration/Mvc/Collection/GetIdCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection; - -use IntegrationTester; - -/** - * Class GetIdCest - */ -class GetIdCest -{ - /** - * Tests Phalcon\Mvc\Collection :: getId() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionGetId(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection - getId()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/GetMessagesCest.php b/tests/integration/Mvc/Collection/GetMessagesCest.php deleted file mode 100644 index 7eda678ef28..00000000000 --- a/tests/integration/Mvc/Collection/GetMessagesCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection; - -use IntegrationTester; - -/** - * Class GetMessagesCest - */ -class GetMessagesCest -{ - /** - * Tests Phalcon\Mvc\Collection :: getMessages() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionGetMessages(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection - getMessages()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/GetReservedAttributesCest.php b/tests/integration/Mvc/Collection/GetReservedAttributesCest.php deleted file mode 100644 index ba8aa1a0708..00000000000 --- a/tests/integration/Mvc/Collection/GetReservedAttributesCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection; - -use IntegrationTester; - -/** - * Class GetReservedAttributesCest - */ -class GetReservedAttributesCest -{ - /** - * Tests Phalcon\Mvc\Collection :: getReservedAttributes() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionGetReservedAttributes(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection - getReservedAttributes()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/GetSourceCest.php b/tests/integration/Mvc/Collection/GetSourceCest.php deleted file mode 100644 index 611d82419b2..00000000000 --- a/tests/integration/Mvc/Collection/GetSourceCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection; - -use IntegrationTester; - -/** - * Class GetSourceCest - */ -class GetSourceCest -{ - /** - * Tests Phalcon\Mvc\Collection :: getSource() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionGetSource(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection - getSource()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/Manager/AddBehaviorCest.php b/tests/integration/Mvc/Collection/Manager/AddBehaviorCest.php deleted file mode 100644 index 9d833ef34c1..00000000000 --- a/tests/integration/Mvc/Collection/Manager/AddBehaviorCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection\Manager; - -use IntegrationTester; - -/** - * Class AddBehaviorCest - */ -class AddBehaviorCest -{ - /** - * Tests Phalcon\Mvc\Collection\Manager :: addBehavior() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionManagerAddBehavior(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection\Manager - addBehavior()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/Manager/GetConnectionCest.php b/tests/integration/Mvc/Collection/Manager/GetConnectionCest.php deleted file mode 100644 index 403b23e712a..00000000000 --- a/tests/integration/Mvc/Collection/Manager/GetConnectionCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection\Manager; - -use IntegrationTester; - -/** - * Class GetConnectionCest - */ -class GetConnectionCest -{ - /** - * Tests Phalcon\Mvc\Collection\Manager :: getConnection() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionManagerGetConnection(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection\Manager - getConnection()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/Manager/GetConnectionServiceCest.php b/tests/integration/Mvc/Collection/Manager/GetConnectionServiceCest.php deleted file mode 100644 index fd6517bab51..00000000000 --- a/tests/integration/Mvc/Collection/Manager/GetConnectionServiceCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection\Manager; - -use IntegrationTester; - -/** - * Class GetConnectionServiceCest - */ -class GetConnectionServiceCest -{ - /** - * Tests Phalcon\Mvc\Collection\Manager :: getConnectionService() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionManagerGetConnectionService(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection\Manager - getConnectionService()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/Manager/GetCustomEventsManagerCest.php b/tests/integration/Mvc/Collection/Manager/GetCustomEventsManagerCest.php deleted file mode 100644 index 075b448f099..00000000000 --- a/tests/integration/Mvc/Collection/Manager/GetCustomEventsManagerCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection\Manager; - -use IntegrationTester; - -/** - * Class GetCustomEventsManagerCest - */ -class GetCustomEventsManagerCest -{ - /** - * Tests Phalcon\Mvc\Collection\Manager :: getCustomEventsManager() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionManagerGetCustomEventsManager(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection\Manager - getCustomEventsManager()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/Manager/GetDICest.php b/tests/integration/Mvc/Collection/Manager/GetDICest.php deleted file mode 100644 index f81c4983387..00000000000 --- a/tests/integration/Mvc/Collection/Manager/GetDICest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection\Manager; - -use IntegrationTester; - -/** - * Class GetDICest - */ -class GetDICest -{ - /** - * Tests Phalcon\Mvc\Collection\Manager :: getDI() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionManagerGetDI(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection\Manager - getDI()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/Manager/GetEventsManagerCest.php b/tests/integration/Mvc/Collection/Manager/GetEventsManagerCest.php deleted file mode 100644 index fab9ecd16dc..00000000000 --- a/tests/integration/Mvc/Collection/Manager/GetEventsManagerCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection\Manager; - -use IntegrationTester; - -/** - * Class GetEventsManagerCest - */ -class GetEventsManagerCest -{ - /** - * Tests Phalcon\Mvc\Collection\Manager :: getEventsManager() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionManagerGetEventsManager(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection\Manager - getEventsManager()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/Manager/GetLastInitializedCest.php b/tests/integration/Mvc/Collection/Manager/GetLastInitializedCest.php deleted file mode 100644 index 9e700a8e381..00000000000 --- a/tests/integration/Mvc/Collection/Manager/GetLastInitializedCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection\Manager; - -use IntegrationTester; - -/** - * Class GetLastInitializedCest - */ -class GetLastInitializedCest -{ - /** - * Tests Phalcon\Mvc\Collection\Manager :: getLastInitialized() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionManagerGetLastInitialized(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection\Manager - getLastInitialized()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/Manager/GetServiceNameCest.php b/tests/integration/Mvc/Collection/Manager/GetServiceNameCest.php deleted file mode 100644 index fcb02c878d6..00000000000 --- a/tests/integration/Mvc/Collection/Manager/GetServiceNameCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection\Manager; - -use IntegrationTester; - -/** - * Class GetServiceNameCest - */ -class GetServiceNameCest -{ - /** - * Tests Phalcon\Mvc\Collection\Manager :: getServiceName() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionManagerGetServiceName(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection\Manager - getServiceName()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/Manager/InitializeCest.php b/tests/integration/Mvc/Collection/Manager/InitializeCest.php deleted file mode 100644 index 5078fc7fcba..00000000000 --- a/tests/integration/Mvc/Collection/Manager/InitializeCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection\Manager; - -use IntegrationTester; - -/** - * Class InitializeCest - */ -class InitializeCest -{ - /** - * Tests Phalcon\Mvc\Collection\Manager :: initialize() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionManagerInitialize(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection\Manager - initialize()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/Manager/IsInitializedCest.php b/tests/integration/Mvc/Collection/Manager/IsInitializedCest.php deleted file mode 100644 index 570370cf3fc..00000000000 --- a/tests/integration/Mvc/Collection/Manager/IsInitializedCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection\Manager; - -use IntegrationTester; - -/** - * Class IsInitializedCest - */ -class IsInitializedCest -{ - /** - * Tests Phalcon\Mvc\Collection\Manager :: isInitialized() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionManagerIsInitialized(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection\Manager - isInitialized()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/Manager/IsUsingImplicitObjectIdsCest.php b/tests/integration/Mvc/Collection/Manager/IsUsingImplicitObjectIdsCest.php deleted file mode 100644 index a0ad6758ca3..00000000000 --- a/tests/integration/Mvc/Collection/Manager/IsUsingImplicitObjectIdsCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection\Manager; - -use IntegrationTester; - -/** - * Class IsUsingImplicitObjectIdsCest - */ -class IsUsingImplicitObjectIdsCest -{ - /** - * Tests Phalcon\Mvc\Collection\Manager :: isUsingImplicitObjectIds() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionManagerIsUsingImplicitObjectIds(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection\Manager - isUsingImplicitObjectIds()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/Manager/MissingMethodCest.php b/tests/integration/Mvc/Collection/Manager/MissingMethodCest.php deleted file mode 100644 index ee0a461146c..00000000000 --- a/tests/integration/Mvc/Collection/Manager/MissingMethodCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection\Manager; - -use IntegrationTester; - -/** - * Class MissingMethodCest - */ -class MissingMethodCest -{ - /** - * Tests Phalcon\Mvc\Collection\Manager :: missingMethod() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionManagerMissingMethod(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection\Manager - missingMethod()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/Manager/NotifyEventCest.php b/tests/integration/Mvc/Collection/Manager/NotifyEventCest.php deleted file mode 100644 index 401de61de9a..00000000000 --- a/tests/integration/Mvc/Collection/Manager/NotifyEventCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection\Manager; - -use IntegrationTester; - -/** - * Class NotifyEventCest - */ -class NotifyEventCest -{ - /** - * Tests Phalcon\Mvc\Collection\Manager :: notifyEvent() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionManagerNotifyEvent(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection\Manager - notifyEvent()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/Manager/SetConnectionServiceCest.php b/tests/integration/Mvc/Collection/Manager/SetConnectionServiceCest.php deleted file mode 100644 index 10e8dec996c..00000000000 --- a/tests/integration/Mvc/Collection/Manager/SetConnectionServiceCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection\Manager; - -use IntegrationTester; - -/** - * Class SetConnectionServiceCest - */ -class SetConnectionServiceCest -{ - /** - * Tests Phalcon\Mvc\Collection\Manager :: setConnectionService() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionManagerSetConnectionService(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection\Manager - setConnectionService()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/Manager/SetCustomEventsManagerCest.php b/tests/integration/Mvc/Collection/Manager/SetCustomEventsManagerCest.php deleted file mode 100644 index da35523c320..00000000000 --- a/tests/integration/Mvc/Collection/Manager/SetCustomEventsManagerCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection\Manager; - -use IntegrationTester; - -/** - * Class SetCustomEventsManagerCest - */ -class SetCustomEventsManagerCest -{ - /** - * Tests Phalcon\Mvc\Collection\Manager :: setCustomEventsManager() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionManagerSetCustomEventsManager(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection\Manager - setCustomEventsManager()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/Manager/SetDICest.php b/tests/integration/Mvc/Collection/Manager/SetDICest.php deleted file mode 100644 index e1c3ca7d014..00000000000 --- a/tests/integration/Mvc/Collection/Manager/SetDICest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection\Manager; - -use IntegrationTester; - -/** - * Class SetDICest - */ -class SetDICest -{ - /** - * Tests Phalcon\Mvc\Collection\Manager :: setDI() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionManagerSetDI(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection\Manager - setDI()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/Manager/SetEventsManagerCest.php b/tests/integration/Mvc/Collection/Manager/SetEventsManagerCest.php deleted file mode 100644 index 8c8039a0b14..00000000000 --- a/tests/integration/Mvc/Collection/Manager/SetEventsManagerCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection\Manager; - -use IntegrationTester; - -/** - * Class SetEventsManagerCest - */ -class SetEventsManagerCest -{ - /** - * Tests Phalcon\Mvc\Collection\Manager :: setEventsManager() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionManagerSetEventsManager(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection\Manager - setEventsManager()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/Manager/SetServiceNameCest.php b/tests/integration/Mvc/Collection/Manager/SetServiceNameCest.php deleted file mode 100644 index 0ee3e973887..00000000000 --- a/tests/integration/Mvc/Collection/Manager/SetServiceNameCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection\Manager; - -use IntegrationTester; - -/** - * Class SetServiceNameCest - */ -class SetServiceNameCest -{ - /** - * Tests Phalcon\Mvc\Collection\Manager :: setServiceName() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionManagerSetServiceName(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection\Manager - setServiceName()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/Manager/UseImplicitObjectIdsCest.php b/tests/integration/Mvc/Collection/Manager/UseImplicitObjectIdsCest.php deleted file mode 100644 index 4479d713909..00000000000 --- a/tests/integration/Mvc/Collection/Manager/UseImplicitObjectIdsCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection\Manager; - -use IntegrationTester; - -/** - * Class UseImplicitObjectIdsCest - */ -class UseImplicitObjectIdsCest -{ - /** - * Tests Phalcon\Mvc\Collection\Manager :: useImplicitObjectIds() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionManagerUseImplicitObjectIds(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection\Manager - useImplicitObjectIds()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/ReadAttributeCest.php b/tests/integration/Mvc/Collection/ReadAttributeCest.php deleted file mode 100644 index 6a63d1fe970..00000000000 --- a/tests/integration/Mvc/Collection/ReadAttributeCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection; - -use IntegrationTester; - -/** - * Class ReadAttributeCest - */ -class ReadAttributeCest -{ - /** - * Tests Phalcon\Mvc\Collection :: readAttribute() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionReadAttribute(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection - readAttribute()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/Refactor-BehaviorCest.php b/tests/integration/Mvc/Collection/Refactor-BehaviorCest.php deleted file mode 100644 index 4cab4b690c7..00000000000 --- a/tests/integration/Mvc/Collection/Refactor-BehaviorCest.php +++ /dev/null @@ -1,72 +0,0 @@ - - * @author Phalcon Team - * - * The contents of this file are subject to the New BSD License that is - * bundled with this package in the file 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@phalcon.io - * so that we can send you a copy immediately. - */ -class BehaviorCest -{ - use CollectionTrait; - - public function behaviors(IntegrationTester $I) - { - $this->setupMongo($I); - - $I->wantToTest('using behaviors with collections'); - - - - // Timestampable - $subscriber = new Subs(); - - $subscriber->email = 'some@some.com'; - $subscriber->status = 'I'; - - $I->assertTrue( - $subscriber->save() - ); - - $I->assertRegExp( - '/[0-9]{4}-[0-9]{2}-[0-9]{2}/', - $subscriber->created_at - ); - - - - // Soft delete - $total = Subs::count(); - $subscriber = Subs::findFirst(); - - $I->assertTrue( - $subscriber->delete() - ); - - $I->assertEquals( - 'D', - $subscriber->status - ); - - $I->assertEquals( - $total, - Subs::count() - ); - } -} diff --git a/tests/integration/Mvc/Collection/SaveCest.php b/tests/integration/Mvc/Collection/SaveCest.php deleted file mode 100644 index 1d11e055723..00000000000 --- a/tests/integration/Mvc/Collection/SaveCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection; - -use IntegrationTester; - -/** - * Class SaveCest - */ -class SaveCest -{ - /** - * Tests Phalcon\Mvc\Collection :: save() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionSave(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection - save()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/SerializeCest.php b/tests/integration/Mvc/Collection/SerializeCest.php deleted file mode 100644 index 9e2c78b6967..00000000000 --- a/tests/integration/Mvc/Collection/SerializeCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection; - -use IntegrationTester; - -/** - * Class SerializeCest - */ -class SerializeCest -{ - /** - * Tests Phalcon\Mvc\Collection :: serialize() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionSerialize(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection - serialize()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/SetConnectionServiceCest.php b/tests/integration/Mvc/Collection/SetConnectionServiceCest.php deleted file mode 100644 index 09131634cc1..00000000000 --- a/tests/integration/Mvc/Collection/SetConnectionServiceCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection; - -use IntegrationTester; - -/** - * Class SetConnectionServiceCest - */ -class SetConnectionServiceCest -{ - /** - * Tests Phalcon\Mvc\Collection :: setConnectionService() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionSetConnectionService(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection - setConnectionService()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/SetDICest.php b/tests/integration/Mvc/Collection/SetDICest.php deleted file mode 100644 index 5b1a1a74355..00000000000 --- a/tests/integration/Mvc/Collection/SetDICest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection; - -use IntegrationTester; - -/** - * Class SetDICest - */ -class SetDICest -{ - /** - * Tests Phalcon\Mvc\Collection :: setDI() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionSetDI(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection - setDI()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/SetDirtyStateCest.php b/tests/integration/Mvc/Collection/SetDirtyStateCest.php deleted file mode 100644 index 0c352561f6b..00000000000 --- a/tests/integration/Mvc/Collection/SetDirtyStateCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection; - -use IntegrationTester; - -/** - * Class SetDirtyStateCest - */ -class SetDirtyStateCest -{ - /** - * Tests Phalcon\Mvc\Collection :: setDirtyState() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionSetDirtyState(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection - setDirtyState()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/SetIdCest.php b/tests/integration/Mvc/Collection/SetIdCest.php deleted file mode 100644 index 606d2f1ec14..00000000000 --- a/tests/integration/Mvc/Collection/SetIdCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection; - -use IntegrationTester; - -/** - * Class SetIdCest - */ -class SetIdCest -{ - /** - * Tests Phalcon\Mvc\Collection :: setId() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionSetId(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection - setId()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/SkipOperationCest.php b/tests/integration/Mvc/Collection/SkipOperationCest.php deleted file mode 100644 index 961261299b3..00000000000 --- a/tests/integration/Mvc/Collection/SkipOperationCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection; - -use IntegrationTester; - -/** - * Class SkipOperationCest - */ -class SkipOperationCest -{ - /** - * Tests Phalcon\Mvc\Collection :: skipOperation() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionSkipOperation(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection - skipOperation()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/SummatoryCest.php b/tests/integration/Mvc/Collection/SummatoryCest.php deleted file mode 100644 index 2409116f8d3..00000000000 --- a/tests/integration/Mvc/Collection/SummatoryCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection; - -use IntegrationTester; - -/** - * Class SummatoryCest - */ -class SummatoryCest -{ - /** - * Tests Phalcon\Mvc\Collection :: summatory() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionSummatory(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection - summatory()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/ToArrayCest.php b/tests/integration/Mvc/Collection/ToArrayCest.php deleted file mode 100644 index d446544e010..00000000000 --- a/tests/integration/Mvc/Collection/ToArrayCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection; - -use IntegrationTester; - -/** - * Class ToArrayCest - */ -class ToArrayCest -{ - /** - * Tests Phalcon\Mvc\Collection :: toArray() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionToArray(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection - toArray()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/UnserializeCest.php b/tests/integration/Mvc/Collection/UnserializeCest.php deleted file mode 100644 index dfbcdc6a568..00000000000 --- a/tests/integration/Mvc/Collection/UnserializeCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection; - -use IntegrationTester; - -/** - * Class UnserializeCest - */ -class UnserializeCest -{ - /** - * Tests Phalcon\Mvc\Collection :: unserialize() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionUnserialize(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection - unserialize()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/UpdateCest.php b/tests/integration/Mvc/Collection/UpdateCest.php deleted file mode 100644 index d24dea265a6..00000000000 --- a/tests/integration/Mvc/Collection/UpdateCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection; - -use IntegrationTester; - -/** - * Class UpdateCest - */ -class UpdateCest -{ - /** - * Tests Phalcon\Mvc\Collection :: update() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionUpdate(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection - update()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/ValidationHasFailedCest.php b/tests/integration/Mvc/Collection/ValidationHasFailedCest.php deleted file mode 100644 index 3d70047b1fe..00000000000 --- a/tests/integration/Mvc/Collection/ValidationHasFailedCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection; - -use IntegrationTester; - -/** - * Class ValidationHasFailedCest - */ -class ValidationHasFailedCest -{ - /** - * Tests Phalcon\Mvc\Collection :: validationHasFailed() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionValidationHasFailed(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection - validationHasFailed()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/integration/Mvc/Collection/WriteAttributeCest.php b/tests/integration/Mvc/Collection/WriteAttributeCest.php deleted file mode 100644 index ddda6e71927..00000000000 --- a/tests/integration/Mvc/Collection/WriteAttributeCest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Integration\Mvc\Collection; - -use IntegrationTester; - -/** - * Class WriteAttributeCest - */ -class WriteAttributeCest -{ - /** - * Tests Phalcon\Mvc\Collection :: writeAttribute() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function mvcCollectionWriteAttribute(IntegrationTester $I) - { - $I->wantToTest('Mvc\Collection - writeAttribute()'); - $I->skipTest('Need implementation'); - } -} From e0e0d72475b0181867bdde40fe8174e176d6e0b8 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Sat, 7 Sep 2019 10:54:37 -0400 Subject: [PATCH 095/202] [#13697] - Removed ext files --- ext/phalcon/mvc/collection.zep.c | 2933 ----------------- ext/phalcon/mvc/collection.zep.h | 487 --- ext/phalcon/mvc/collection/behavior.zep.c | 210 -- ext/phalcon/mvc/collection/behavior.zep.h | 62 - .../mvc/collection/behavior/softdelete.zep.c | 154 - .../mvc/collection/behavior/softdelete.zep.h | 20 - .../collection/behavior/timestampable.zep.c | 157 - .../collection/behavior/timestampable.zep.h | 20 - .../mvc/collection/behaviorinterface.zep.c | 45 - .../mvc/collection/behaviorinterface.zep.h | 29 - ext/phalcon/mvc/collection/document.zep.c | 224 -- ext/phalcon/mvc/collection/document.zep.h | 68 - ext/phalcon/mvc/collection/exception.zep.c | 38 - ext/phalcon/mvc/collection/exception.zep.h | 5 - ext/phalcon/mvc/collection/manager.zep.c | 761 ----- ext/phalcon/mvc/collection/manager.zep.h | 171 - .../mvc/collection/managerinterface.zep.c | 107 - .../mvc/collection/managerinterface.zep.h | 103 - ext/phalcon/mvc/collectioninterface.zep.c | 146 - ext/phalcon/mvc/collectioninterface.zep.h | 170 - 20 files changed, 5910 deletions(-) delete mode 100644 ext/phalcon/mvc/collection.zep.c delete mode 100644 ext/phalcon/mvc/collection.zep.h delete mode 100644 ext/phalcon/mvc/collection/behavior.zep.c delete mode 100644 ext/phalcon/mvc/collection/behavior.zep.h delete mode 100644 ext/phalcon/mvc/collection/behavior/softdelete.zep.c delete mode 100644 ext/phalcon/mvc/collection/behavior/softdelete.zep.h delete mode 100644 ext/phalcon/mvc/collection/behavior/timestampable.zep.c delete mode 100644 ext/phalcon/mvc/collection/behavior/timestampable.zep.h delete mode 100644 ext/phalcon/mvc/collection/behaviorinterface.zep.c delete mode 100644 ext/phalcon/mvc/collection/behaviorinterface.zep.h delete mode 100644 ext/phalcon/mvc/collection/document.zep.c delete mode 100644 ext/phalcon/mvc/collection/document.zep.h delete mode 100644 ext/phalcon/mvc/collection/exception.zep.c delete mode 100644 ext/phalcon/mvc/collection/exception.zep.h delete mode 100644 ext/phalcon/mvc/collection/manager.zep.c delete mode 100644 ext/phalcon/mvc/collection/manager.zep.h delete mode 100644 ext/phalcon/mvc/collection/managerinterface.zep.c delete mode 100644 ext/phalcon/mvc/collection/managerinterface.zep.h delete mode 100644 ext/phalcon/mvc/collectioninterface.zep.c delete mode 100644 ext/phalcon/mvc/collectioninterface.zep.h diff --git a/ext/phalcon/mvc/collection.zep.c b/ext/phalcon/mvc/collection.zep.c deleted file mode 100644 index 328bcbbf5f1..00000000000 --- a/ext/phalcon/mvc/collection.zep.c +++ /dev/null @@ -1,2933 +0,0 @@ - -#ifdef HAVE_CONFIG_H -#include "../../ext_config.h" -#endif - -#include -#include "../../php_ext.h" -#include "../../ext.h" - -#include -#include -#include - -#include "kernel/main.h" -#include "kernel/fcall.h" -#include "kernel/exception.h" -#include "kernel/memory.h" -#include "kernel/object.h" -#include "kernel/operators.h" -#include "ext/spl/spl_exceptions.h" -#include "kernel/array.h" -#include "kernel/string.h" -#include "kernel/concat.h" -#include "kernel/iterator.h" - - -/** - * This file is part of the Phalcon Framework. - * - * (c) Phalcon Team - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ -/** - * Phalcon\Mvc\Collection - * - * This component implements a high level abstraction for NoSQL databases which - * works with documents - */ -ZEPHIR_INIT_CLASS(Phalcon_Mvc_Collection) { - - ZEPHIR_REGISTER_CLASS(Phalcon\\Mvc, Collection, phalcon, mvc_collection, phalcon_mvc_collection_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); - - zend_declare_property_null(phalcon_mvc_collection_ce, SL("_id"), ZEND_ACC_PUBLIC TSRMLS_CC); - - zend_declare_property_null(phalcon_mvc_collection_ce, SL("connection"), ZEND_ACC_PROTECTED TSRMLS_CC); - - zend_declare_property_null(phalcon_mvc_collection_ce, SL("container"), ZEND_ACC_PROTECTED TSRMLS_CC); - - zend_declare_property_long(phalcon_mvc_collection_ce, SL("dirtyState"), 1, ZEND_ACC_PROTECTED TSRMLS_CC); - - zend_declare_property_null(phalcon_mvc_collection_ce, SL("disableEvents"), ZEND_ACC_PROTECTED|ZEND_ACC_STATIC TSRMLS_CC); - - zend_declare_property_null(phalcon_mvc_collection_ce, SL("errorMessages"), ZEND_ACC_PROTECTED TSRMLS_CC); - - zend_declare_property_null(phalcon_mvc_collection_ce, SL("modelsManager"), ZEND_ACC_PROTECTED TSRMLS_CC); - - zend_declare_property_long(phalcon_mvc_collection_ce, SL("operationMade"), 0, ZEND_ACC_PROTECTED TSRMLS_CC); - - zend_declare_property_null(phalcon_mvc_collection_ce, SL("reserved"), ZEND_ACC_PROTECTED|ZEND_ACC_STATIC TSRMLS_CC); - - zend_declare_property_bool(phalcon_mvc_collection_ce, SL("skipped"), 0, ZEND_ACC_PROTECTED TSRMLS_CC); - - zend_declare_property_null(phalcon_mvc_collection_ce, SL("source"), ZEND_ACC_PROTECTED TSRMLS_CC); - - phalcon_mvc_collection_ce->create_object = zephir_init_properties_Phalcon_Mvc_Collection; - zephir_declare_class_constant_long(phalcon_mvc_collection_ce, SL("DIRTY_STATE_DETACHED"), 2); - - zephir_declare_class_constant_long(phalcon_mvc_collection_ce, SL("DIRTY_STATE_PERSISTENT"), 0); - - zephir_declare_class_constant_long(phalcon_mvc_collection_ce, SL("DIRTY_STATE_TRANSIENT"), 1); - - zephir_declare_class_constant_long(phalcon_mvc_collection_ce, SL("OP_CREATE"), 1); - - zephir_declare_class_constant_long(phalcon_mvc_collection_ce, SL("OP_DELETE"), 3); - - zephir_declare_class_constant_long(phalcon_mvc_collection_ce, SL("OP_NONE"), 0); - - zephir_declare_class_constant_long(phalcon_mvc_collection_ce, SL("OP_UPDATE"), 2); - - zend_class_implements(phalcon_mvc_collection_ce TSRMLS_CC, 1, phalcon_mvc_entityinterface_ce); - zend_class_implements(phalcon_mvc_collection_ce TSRMLS_CC, 1, phalcon_mvc_collectioninterface_ce); - zend_class_implements(phalcon_mvc_collection_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); - zend_class_implements(phalcon_mvc_collection_ce TSRMLS_CC, 1, zend_ce_serializable); - return SUCCESS; - -} - -/** - * Phalcon\Mvc\Collection constructor - */ -PHP_METHOD(Phalcon_Mvc_Collection, __construct) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zephir_fcall_cache_entry *_0 = NULL, *_3 = NULL; - zval *container = NULL, container_sub, *modelsManager = NULL, modelsManager_sub, __$null, _1$$4, _2$$4, _4$$4, _5$$5; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&container_sub); - ZVAL_UNDEF(&modelsManager_sub); - ZVAL_NULL(&__$null); - ZVAL_UNDEF(&_1$$4); - ZVAL_UNDEF(&_2$$4); - ZVAL_UNDEF(&_4$$4); - ZVAL_UNDEF(&_5$$5); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 0, 2, &container, &modelsManager); - - if (!container) { - container = &container_sub; - ZEPHIR_CPY_WRT(container, &__$null); - } else { - ZEPHIR_SEPARATE_PARAM(container); - } - if (!modelsManager) { - modelsManager = &modelsManager_sub; - ZEPHIR_CPY_WRT(modelsManager, &__$null); - } else { - ZEPHIR_SEPARATE_PARAM(modelsManager); - } - - - if (Z_TYPE_P(container) != IS_OBJECT) { - ZEPHIR_CALL_CE_STATIC(container, phalcon_di_ce, "getdefault", &_0, 0); - zephir_check_call_status(); - } - if (UNEXPECTED(Z_TYPE_P(container) != IS_OBJECT)) { - ZEPHIR_INIT_VAR(&_1$$4); - object_init_ex(&_1$$4, phalcon_mvc_collection_exception_ce); - ZEPHIR_INIT_VAR(&_4$$4); - ZVAL_STRING(&_4$$4, "the services related to the ODM"); - ZEPHIR_CALL_CE_STATIC(&_2$$4, phalcon_mvc_collection_exception_ce, "containerservicenotfound", &_3, 0, &_4$$4); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 5, &_2$$4); - zephir_check_call_status(); - zephir_throw_exception_debug(&_1$$4, "phalcon/Mvc/Collection.zep", 84 TSRMLS_CC); - ZEPHIR_MM_RESTORE(); - return; - } - zephir_update_property_zval(this_ptr, SL("container"), container); - if (Z_TYPE_P(modelsManager) != IS_OBJECT) { - ZEPHIR_INIT_VAR(&_5$$5); - ZVAL_STRING(&_5$$5, "collectionManager"); - ZEPHIR_CALL_METHOD(modelsManager, container, "getshared", NULL, 0, &_5$$5); - zephir_check_call_status(); - if (UNEXPECTED(Z_TYPE_P(modelsManager) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_collection_exception_ce, "The injected service 'modelsManager' is not valid", "phalcon/Mvc/Collection.zep", 97); - return; - } - } - zephir_update_property_zval(this_ptr, SL("modelsManager"), modelsManager); - ZEPHIR_CALL_METHOD(NULL, modelsManager, "initialize", NULL, 0, this_ptr); - zephir_check_call_status(); - if ((zephir_method_exists_ex(this_ptr, SL("onconstruct") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_METHOD(NULL, this_ptr, "onconstruct", NULL, 0); - zephir_check_call_status(); - } - ZEPHIR_MM_RESTORE(); - -} - -/** - * Sets up a behavior in a collection - */ -PHP_METHOD(Phalcon_Mvc_Collection, addBehavior) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *behavior, behavior_sub, _0; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&behavior_sub); - ZVAL_UNDEF(&_0); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &behavior); - - - - zephir_read_property(&_0, this_ptr, SL("modelsManager"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(NULL, &_0, "addbehavior", NULL, 0, this_ptr, behavior); - zephir_check_call_status(); - ZEPHIR_MM_RESTORE(); - -} - -/** - * Perform an aggregation using the Mongo aggregation framework - */ -PHP_METHOD(Phalcon_Mvc_Collection, aggregate) { - - zend_class_entry *_1; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *parameters_param = NULL, *options_param = NULL, className, model, connection, source, _0, _2; - zval parameters, options; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(¶meters); - ZVAL_UNDEF(&options); - ZVAL_UNDEF(&className); - ZVAL_UNDEF(&model); - ZVAL_UNDEF(&connection); - ZVAL_UNDEF(&source); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_2); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 0, 2, ¶meters_param, &options_param); - - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - if (!options_param) { - ZEPHIR_INIT_VAR(&options); - array_init(&options); - } else { - zephir_get_arrval(&options, options_param); - } - - - ZEPHIR_INIT_VAR(&className); - zephir_get_called_class(&className TSRMLS_CC); - ZEPHIR_INIT_VAR(&model); - zephir_fetch_safe_class(&_0, &className); - _1 = zephir_fetch_class_str_ex(Z_STRVAL_P(&_0), Z_STRLEN_P(&_0), ZEND_FETCH_CLASS_AUTO); - if(!_1) { - RETURN_MM_NULL(); - } - object_init_ex(&model, _1); - if (zephir_has_constructor(&model TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, &model, "__construct", NULL, 0); - zephir_check_call_status(); - } - ZEPHIR_CALL_METHOD(&connection, &model, "getconnection", NULL, 0); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&source, &model, "getsource", NULL, 0); - zephir_check_call_status(); - if (UNEXPECTED(ZEPHIR_IS_EMPTY(&source))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_collection_exception_ce, "Method getSource() returns empty string", "phalcon/Mvc/Collection.zep", 143); - return; - } - ZEPHIR_CALL_METHOD(&_2, &connection, "selectcollection", NULL, 0, &source); - zephir_check_call_status(); - ZEPHIR_RETURN_CALL_METHOD(&_2, "aggregate", NULL, 0, ¶meters, &options); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Appends a customized message on the validation process - * - *```php - * use \Phalcon\Messages\Message as Message; - * - * class Robots extends \Phalcon\Mvc\Model - * { - * public function beforeSave() - * { - * if ($this->name === "Peter") { - * $message = new Message( - * "Sorry, but a robot cannot be named Peter" - * ); - * - * $this->appendMessage(message); - * } - * } - * } - *``` - */ -PHP_METHOD(Phalcon_Mvc_Collection, appendMessage) { - - zval *message, message_sub; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&message_sub); - - zephir_fetch_params_without_memory_grow(1, 0, &message); - - - - zephir_update_property_array_append(this_ptr, SL("errorMessages"), message); - -} - -/** - * Returns a cloned collection - */ -PHP_METHOD(Phalcon_Mvc_Collection, cloneResult) { - - zend_string *_3; - zend_ulong _2; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zephir_fcall_cache_entry *_4 = NULL, *_5 = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval document; - zval *collection, collection_sub, *document_param = NULL, clonedCollection, key, value, *_0, _1; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&collection_sub); - ZVAL_UNDEF(&clonedCollection); - ZVAL_UNDEF(&key); - ZVAL_UNDEF(&value); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&document); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 2, 0, &collection, &document_param); - - ZEPHIR_OBS_COPY_OR_DUP(&document, document_param); - - - ZEPHIR_INIT_VAR(&clonedCollection); - if (zephir_clone(&clonedCollection, collection TSRMLS_CC) == FAILURE) { - RETURN_MM(); - } - zephir_is_iterable(&document, 0, "phalcon/Mvc/Collection.zep", 190); - if (Z_TYPE_P(&document) == IS_ARRAY) { - ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&document), _2, _3, _0) - { - ZEPHIR_INIT_NVAR(&key); - if (_3 != NULL) { - ZVAL_STR_COPY(&key, _3); - } else { - ZVAL_LONG(&key, _2); - } - ZEPHIR_INIT_NVAR(&value); - ZVAL_COPY(&value, _0); - ZEPHIR_CALL_METHOD(NULL, &clonedCollection, "writeattribute", &_4, 0, &key, &value); - zephir_check_call_status(); - } ZEND_HASH_FOREACH_END(); - } else { - ZEPHIR_CALL_METHOD(NULL, &document, "rewind", NULL, 0); - zephir_check_call_status(); - while (1) { - ZEPHIR_CALL_METHOD(&_1, &document, "valid", NULL, 0); - zephir_check_call_status(); - if (!zend_is_true(&_1)) { - break; - } - ZEPHIR_CALL_METHOD(&key, &document, "key", NULL, 0); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&value, &document, "current", NULL, 0); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &clonedCollection, "writeattribute", &_5, 0, &key, &value); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &document, "next", NULL, 0); - zephir_check_call_status(); - } - } - ZEPHIR_INIT_NVAR(&value); - ZEPHIR_INIT_NVAR(&key); - if ((zephir_method_exists_ex(&clonedCollection, SL("afterfetch") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_METHOD(NULL, &clonedCollection, "afterfetch", NULL, 0); - zephir_check_call_status(); - } - RETURN_CCTOR(&clonedCollection); - -} - -/** - * Creates a collection based on the values in the attributes - */ -PHP_METHOD(Phalcon_Mvc_Collection, create) { - - zval _5; - zend_bool success = 0, exists = 0, _6; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval __$true, data, status, id, ok, collection, _0, _1, _2, _3, _4, _8, _9, _10, _7$$4; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *this_ptr = getThis(); - - ZVAL_BOOL(&__$true, 1); - ZVAL_UNDEF(&data); - ZVAL_UNDEF(&status); - ZVAL_UNDEF(&id); - ZVAL_UNDEF(&ok); - ZVAL_UNDEF(&collection); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&_2); - ZVAL_UNDEF(&_3); - ZVAL_UNDEF(&_4); - ZVAL_UNDEF(&_8); - ZVAL_UNDEF(&_9); - ZVAL_UNDEF(&_10); - ZVAL_UNDEF(&_7$$4); - ZVAL_UNDEF(&_5); - - ZEPHIR_MM_GROW(); - - ZEPHIR_CALL_METHOD(&collection, this_ptr, "preparecu", NULL, 0); - zephir_check_call_status(); - exists = 0; - ZEPHIR_INIT_ZVAL_NREF(_0); - ZVAL_LONG(&_0, 1); - zephir_update_property_zval(this_ptr, SL("operationMade"), &_0); - ZEPHIR_INIT_VAR(&_1); - array_init(&_1); - zephir_update_property_zval(this_ptr, SL("errorMessages"), &_1); - zephir_read_property(&_0, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); - zephir_read_static_property_ce(&_3, phalcon_mvc_collection_ce, SL("disableEvents"), PH_NOISY_CC | PH_READONLY); - if (exists) { - ZVAL_BOOL(&_4, 1); - } else { - ZVAL_BOOL(&_4, 0); - } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "presave", NULL, 423, &_0, &_3, &_4); - zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_2)) { - RETURN_MM_BOOL(0); - } - ZEPHIR_CALL_METHOD(&data, this_ptr, "toarray", NULL, 0); - zephir_check_call_status(); - success = 0; - ZEPHIR_INIT_VAR(&_5); - zephir_create_array(&_5, 1, 0 TSRMLS_CC); - zephir_array_update_string(&_5, SL("w"), &__$true, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&status, &collection, "insert", NULL, 0, &data, &_5); - zephir_check_call_status(); - ZEPHIR_OBS_VAR(&ok); - _6 = zephir_array_isset_string_fetch(&ok, &status, SL("ok"), 0); - if (_6) { - _6 = zephir_is_true(&ok); - } - if (_6) { - success = 1; - ZEPHIR_OBS_VAR(&id); - if (zephir_array_isset_string_fetch(&id, &data, SL("_id"), 0)) { - zephir_update_property_zval(this_ptr, SL("_id"), &id); - } - ZEPHIR_INIT_ZVAL_NREF(_7$$4); - ZVAL_LONG(&_7$$4, 0); - zephir_update_property_zval(this_ptr, SL("dirtyState"), &_7$$4); - } - zephir_read_static_property_ce(&_8, phalcon_mvc_collection_ce, SL("disableEvents"), PH_NOISY_CC | PH_READONLY); - if (success) { - ZVAL_BOOL(&_9, 1); - } else { - ZVAL_BOOL(&_9, 0); - } - if (exists) { - ZVAL_BOOL(&_10, 1); - } else { - ZVAL_BOOL(&_10, 0); - } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "postsave", NULL, 424, &_8, &_9, &_10); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Creates a document based on the values in the attributes, if not found by - * criteria. Preferred way to avoid duplication is to create index o - * attribute - * - * ```php - * $robot = new Robot(); - * - * $robot->name = "MyRobot"; - * $robot->type = "Droid"; - * - * // Create only if robot with same name and type does not exist - * $robot->createIfNotExist( - * [ - * "name", - * "type", - * ] - * ); - * ``` - */ -PHP_METHOD(Phalcon_Mvc_Collection, createIfNotExist) { - - zend_bool exists = 0, success = 0; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *criteria_param = NULL, __$false, __$true, data, keys, query, status, doc, collection, _0, _1, _2, _3, _4, _5, _8, _13, _14, _9$$7, _10$$7, _11$$8, _12$$8; - zval criteria, _6, _7; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&criteria); - ZVAL_UNDEF(&_6); - ZVAL_UNDEF(&_7); - ZVAL_BOOL(&__$false, 0); - ZVAL_BOOL(&__$true, 1); - ZVAL_UNDEF(&data); - ZVAL_UNDEF(&keys); - ZVAL_UNDEF(&query); - ZVAL_UNDEF(&status); - ZVAL_UNDEF(&doc); - ZVAL_UNDEF(&collection); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&_2); - ZVAL_UNDEF(&_3); - ZVAL_UNDEF(&_4); - ZVAL_UNDEF(&_5); - ZVAL_UNDEF(&_8); - ZVAL_UNDEF(&_13); - ZVAL_UNDEF(&_14); - ZVAL_UNDEF(&_9$$7); - ZVAL_UNDEF(&_10$$7); - ZVAL_UNDEF(&_11$$8); - ZVAL_UNDEF(&_12$$8); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &criteria_param); - - ZEPHIR_OBS_COPY_OR_DUP(&criteria, criteria_param); - - - if (UNEXPECTED(ZEPHIR_IS_EMPTY(&criteria))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_collection_exception_ce, "Criteria parameter must be array with one or more attributes of the model", "phalcon/Mvc/Collection.zep", 288); - return; - } - ZEPHIR_CALL_METHOD(&collection, this_ptr, "preparecu", NULL, 0); - zephir_check_call_status(); - exists = 0; - ZEPHIR_INIT_ZVAL_NREF(_0); - ZVAL_LONG(&_0, 0); - zephir_update_property_zval(this_ptr, SL("operationMade"), &_0); - ZEPHIR_INIT_VAR(&_1); - array_init(&_1); - zephir_update_property_zval(this_ptr, SL("errorMessages"), &_1); - zephir_read_property(&_0, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); - zephir_read_static_property_ce(&_3, phalcon_mvc_collection_ce, SL("disableEvents"), PH_NOISY_CC | PH_READONLY); - if (exists) { - ZVAL_BOOL(&_4, 1); - } else { - ZVAL_BOOL(&_4, 0); - } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "presave", NULL, 423, &_0, &_3, &_4); - zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_2)) { - RETURN_MM_BOOL(0); - } - ZEPHIR_CALL_FUNCTION(&keys, "array_flip", NULL, 162, &criteria); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&data, this_ptr, "toarray", NULL, 0); - zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_5, "array_diff_key", NULL, 425, &keys, &data); - zephir_check_call_status(); - if (UNEXPECTED(zephir_is_true(&_5))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_collection_exception_ce, "Criteria parameter must be array with one or more attributes of the model", "phalcon/Mvc/Collection.zep", 326); - return; - } - ZEPHIR_CALL_FUNCTION(&query, "array_intersect_key", NULL, 8, &data, &keys); - zephir_check_call_status(); - success = 0; - ZEPHIR_INIT_VAR(&_6); - zephir_create_array(&_6, 1, 0 TSRMLS_CC); - zephir_array_update_string(&_6, SL("$setOnInsert"), &data, PH_COPY | PH_SEPARATE); - ZEPHIR_INIT_VAR(&_7); - zephir_create_array(&_7, 2, 0 TSRMLS_CC); - zephir_array_update_string(&_7, SL("new"), &__$false, PH_COPY | PH_SEPARATE); - zephir_array_update_string(&_7, SL("upsert"), &__$true, PH_COPY | PH_SEPARATE); - ZVAL_NULL(&_8); - ZEPHIR_CALL_METHOD(&status, &collection, "findandmodify", NULL, 0, &query, &_6, &_8, &_7); - zephir_check_call_status(); - if (Z_TYPE_P(&status) == IS_NULL) { - ZEPHIR_CALL_METHOD(&doc, &collection, "findone", NULL, 0, &query); - zephir_check_call_status(); - if (Z_TYPE_P(&doc) == IS_ARRAY) { - success = 1; - ZEPHIR_INIT_ZVAL_NREF(_9$$7); - ZVAL_LONG(&_9$$7, 1); - zephir_update_property_zval(this_ptr, SL("operationMade"), &_9$$7); - zephir_array_fetch_string(&_10$$7, &doc, SL("_id"), PH_NOISY | PH_READONLY, "phalcon/Mvc/Collection.zep", 355 TSRMLS_CC); - zephir_update_property_zval(this_ptr, SL("_id"), &_10$$7); - } - } else { - ZEPHIR_INIT_VAR(&_11$$8); - object_init_ex(&_11$$8, phalcon_messages_message_ce); - ZEPHIR_INIT_VAR(&_12$$8); - ZVAL_STRING(&_12$$8, "Document already exists"); - ZEPHIR_CALL_METHOD(NULL, &_11$$8, "__construct", NULL, 4, &_12$$8); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", NULL, 0, &_11$$8); - zephir_check_call_status(); - } - zephir_read_static_property_ce(&_8, phalcon_mvc_collection_ce, SL("disableEvents"), PH_NOISY_CC | PH_READONLY); - if (success) { - ZVAL_BOOL(&_13, 1); - } else { - ZVAL_BOOL(&_13, 0); - } - if (exists) { - ZVAL_BOOL(&_14, 1); - } else { - ZVAL_BOOL(&_14, 0); - } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "postsave", NULL, 424, &_8, &_13, &_14); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Perform a count over a collection - * - *```php - * echo "There are ", Robots::count(), " robots"; - *``` - */ -PHP_METHOD(Phalcon_Mvc_Collection, count) { - - zend_class_entry *_1; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *parameters_param = NULL, className, collection, connection, _0; - zval parameters; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(¶meters); - ZVAL_UNDEF(&className); - ZVAL_UNDEF(&collection); - ZVAL_UNDEF(&connection); - ZVAL_UNDEF(&_0); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 0, 1, ¶meters_param); - - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - - - ZEPHIR_INIT_VAR(&className); - zephir_get_called_class(&className TSRMLS_CC); - ZEPHIR_INIT_VAR(&collection); - zephir_fetch_safe_class(&_0, &className); - _1 = zephir_fetch_class_str_ex(Z_STRVAL_P(&_0), Z_STRLEN_P(&_0), ZEND_FETCH_CLASS_AUTO); - if(!_1) { - RETURN_MM_NULL(); - } - object_init_ex(&collection, _1); - if (zephir_has_constructor(&collection TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, &collection, "__construct", NULL, 0); - zephir_check_call_status(); - } - ZEPHIR_CALL_METHOD(&connection, &collection, "getconnection", NULL, 0); - zephir_check_call_status(); - ZEPHIR_RETURN_CALL_SELF("getgroupresultset", NULL, 0, ¶meters, &collection, &connection); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Deletes a model instance. Returning true on success or false otherwise. - * - * ```php - * $robot = Robots::findFirst(); - * - * $robot->delete(); - * - * $robots = Robots::find(); - * - * foreach ($robots as $robot) { - * $robot->delete(); - * } - * ``` - */ -PHP_METHOD(Phalcon_Mvc_Collection, delete) { - - zval _5, _6; - zend_bool success = 0; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval __$true, disableEvents, status, id, connection, source, collection, mongoId, ok, _0, _1$$4, _2$$4, _3$$9, _4$$9, _7$$15, _8$$14; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *this_ptr = getThis(); - - ZVAL_BOOL(&__$true, 1); - ZVAL_UNDEF(&disableEvents); - ZVAL_UNDEF(&status); - ZVAL_UNDEF(&id); - ZVAL_UNDEF(&connection); - ZVAL_UNDEF(&source); - ZVAL_UNDEF(&collection); - ZVAL_UNDEF(&mongoId); - ZVAL_UNDEF(&ok); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1$$4); - ZVAL_UNDEF(&_2$$4); - ZVAL_UNDEF(&_3$$9); - ZVAL_UNDEF(&_4$$9); - ZVAL_UNDEF(&_7$$15); - ZVAL_UNDEF(&_8$$14); - ZVAL_UNDEF(&_5); - ZVAL_UNDEF(&_6); - - ZEPHIR_MM_GROW(); - - ZEPHIR_OBS_VAR(&id); - if (UNEXPECTED(!(zephir_fetch_property(&id, this_ptr, SL("_id"), PH_SILENT_CC)))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_collection_exception_ce, "The document cannot be deleted because it doesn't exist", "phalcon/Mvc/Collection.zep", 416); - return; - } - ZEPHIR_OBS_VAR(&_0); - zephir_read_static_property_ce(&_0, phalcon_mvc_collection_ce, SL("disableEvents"), PH_NOISY_CC); - ZEPHIR_CPY_WRT(&disableEvents, &_0); - if (!(zephir_is_true(&disableEvents))) { - ZEPHIR_INIT_VAR(&_2$$4); - ZVAL_STRING(&_2$$4, "beforeDelete"); - ZEPHIR_CALL_METHOD(&_1$$4, this_ptr, "fireeventcancel", NULL, 0, &_2$$4); - zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_1$$4)) { - RETURN_MM_BOOL(0); - } - } - zephir_read_property(&_0, this_ptr, SL("skipped"), PH_NOISY_CC | PH_READONLY); - if (ZEPHIR_IS_TRUE_IDENTICAL(&_0)) { - RETURN_MM_BOOL(1); - } - ZEPHIR_CALL_METHOD(&connection, this_ptr, "getconnection", NULL, 0); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 0); - zephir_check_call_status(); - if (UNEXPECTED(ZEPHIR_IS_EMPTY(&source))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_collection_exception_ce, "Method getSource() returns empty string", "phalcon/Mvc/Collection.zep", 435); - return; - } - ZEPHIR_CALL_METHOD(&collection, &connection, "selectcollection", NULL, 0, &source); - zephir_check_call_status(); - if (Z_TYPE_P(&id) == IS_OBJECT) { - ZEPHIR_CPY_WRT(&mongoId, &id); - } else { - zephir_read_property(&_3$$9, this_ptr, SL("modelsManager"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(&_4$$9, &_3$$9, "isusingimplicitobjectids", NULL, 0, this_ptr); - zephir_check_call_status(); - if (zephir_is_true(&_4$$9)) { - ZEPHIR_INIT_NVAR(&mongoId); - object_init_ex(&mongoId, zephir_get_internal_ce(SL("mongoid"))); - if (zephir_has_constructor(&mongoId TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, &mongoId, "__construct", NULL, 0, &id); - zephir_check_call_status(); - } - } else { - ZEPHIR_CPY_WRT(&mongoId, &id); - } - } - success = 0; - ZEPHIR_INIT_VAR(&_5); - zephir_create_array(&_5, 1, 0 TSRMLS_CC); - zephir_array_update_string(&_5, SL("_id"), &mongoId, PH_COPY | PH_SEPARATE); - ZEPHIR_INIT_VAR(&_6); - zephir_create_array(&_6, 1, 0 TSRMLS_CC); - zephir_array_update_string(&_6, SL("w"), &__$true, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&status, &collection, "remove", NULL, 0, &_5, &_6); - zephir_check_call_status(); - if (Z_TYPE_P(&status) != IS_ARRAY) { - RETURN_MM_BOOL(0); - } - ZEPHIR_OBS_VAR(&ok); - if (zephir_array_isset_string_fetch(&ok, &status, SL("ok"), 0)) { - if (zephir_is_true(&ok)) { - success = 1; - if (!(zephir_is_true(&disableEvents))) { - ZEPHIR_INIT_VAR(&_7$$15); - ZVAL_STRING(&_7$$15, "afterDelete"); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "fireevent", NULL, 0, &_7$$15); - zephir_check_call_status(); - } - ZEPHIR_INIT_ZVAL_NREF(_8$$14); - ZVAL_LONG(&_8$$14, 2); - zephir_update_property_zval(this_ptr, SL("dirtyState"), &_8$$14); - } - } else { - success = 0; - } - RETURN_MM_BOOL(success); - -} - -/** - * Allows to query a set of records that match the specified conditions - * - * ```php - * // How many robots are there? - * $robots = Robots::find(); - * - * echo "There are ", count($robots), "\n"; - * - * // How many mechanical robots are there? - * $robots = Robots::find( - * [ - * [ - * "type" => "mechanical", - * ] - * ] - * ); - * - * echo "There are ", count(robots), "\n"; - * - * // Get and print virtual robots ordered by name - * $robots = Robots::findFirst( - * [ - * [ - * "type" => "virtual" - * ], - * "order" => [ - * "name" => 1, - * ] - * ] - * ); - * - * foreach ($robots as $robot) { - * echo $robot->name, "\n"; - * } - * - * // Get first 100 virtual robots ordered by name - * $robots = Robots::find( - * [ - * [ - * "type" => "virtual", - * ], - * "order" => [ - * "name" => 1, - * ], - * "limit" => 100, - * ] - * ); - * - * foreach ($robots as $robot) { - * echo $robot->name, "\n"; - * } - * ``` - */ -PHP_METHOD(Phalcon_Mvc_Collection, find) { - - zend_class_entry *_1; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *parameters_param = NULL, className, collection, _0, _2, _3; - zval parameters; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(¶meters); - ZVAL_UNDEF(&className); - ZVAL_UNDEF(&collection); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_2); - ZVAL_UNDEF(&_3); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 0, 1, ¶meters_param); - - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - - - ZEPHIR_INIT_VAR(&className); - zephir_get_called_class(&className TSRMLS_CC); - ZEPHIR_INIT_VAR(&collection); - zephir_fetch_safe_class(&_0, &className); - _1 = zephir_fetch_class_str_ex(Z_STRVAL_P(&_0), Z_STRLEN_P(&_0), ZEND_FETCH_CLASS_AUTO); - if(!_1) { - RETURN_MM_NULL(); - } - object_init_ex(&collection, _1); - if (zephir_has_constructor(&collection TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, &collection, "__construct", NULL, 0); - zephir_check_call_status(); - } - ZEPHIR_CALL_METHOD(&_2, &collection, "getconnection", NULL, 0); - zephir_check_call_status(); - ZVAL_BOOL(&_3, 0); - ZEPHIR_RETURN_CALL_SELF("getresultset", NULL, 0, ¶meters, &collection, &_2, &_3); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Find a document by its id (_id) - * - * ```php - * // Find user by using \MongoId object - * $user = Users::findById( - * new \MongoId("545eb081631d16153a293a66") - * ); - * - * // Find user by using id as sting - * $user = Users::findById("45cbc4a0e4123f6920000002"); - * - * // Validate input - * if ($user = Users::findById($_POST["id"])) { - * // ... - * } - * ``` - */ -PHP_METHOD(Phalcon_Mvc_Collection, findById) { - - zend_class_entry *_5$$3; - zval _8, _9; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *id, id_sub, className, collection, mongoId, _0$$3, _1$$3, _2$$3, _3$$3, _4$$3, _6$$3, _7$$3; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&id_sub); - ZVAL_UNDEF(&className); - ZVAL_UNDEF(&collection); - ZVAL_UNDEF(&mongoId); - ZVAL_UNDEF(&_0$$3); - ZVAL_UNDEF(&_1$$3); - ZVAL_UNDEF(&_2$$3); - ZVAL_UNDEF(&_3$$3); - ZVAL_UNDEF(&_4$$3); - ZVAL_UNDEF(&_6$$3); - ZVAL_UNDEF(&_7$$3); - ZVAL_UNDEF(&_8); - ZVAL_UNDEF(&_9); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &id); - - - - if (Z_TYPE_P(id) != IS_OBJECT) { - ZEPHIR_INIT_VAR(&_0$$3); - ZEPHIR_INIT_VAR(&_1$$3); - ZVAL_STRING(&_1$$3, "/^[a-f\\d]{24}$/i"); - ZEPHIR_INIT_VAR(&_2$$3); - ZEPHIR_INIT_VAR(&_3$$3); - ZVAL_STRING(&_3$$3, "/^[a-f\\d]{24}$/i"); - zephir_preg_match(&_2$$3, &_3$$3, id, &_0$$3, 0, 0 , 0 TSRMLS_CC); - if (!(zephir_is_true(&_2$$3))) { - RETURN_MM_NULL(); - } - ZEPHIR_INIT_VAR(&className); - zephir_get_called_class(&className TSRMLS_CC); - ZEPHIR_INIT_VAR(&collection); - zephir_fetch_safe_class(&_4$$3, &className); - _5$$3 = zephir_fetch_class_str_ex(Z_STRVAL_P(&_4$$3), Z_STRLEN_P(&_4$$3), ZEND_FETCH_CLASS_AUTO); - if(!_5$$3) { - RETURN_MM_NULL(); - } - object_init_ex(&collection, _5$$3); - if (zephir_has_constructor(&collection TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, &collection, "__construct", NULL, 0); - zephir_check_call_status(); - } - ZEPHIR_CALL_METHOD(&_6$$3, &collection, "getcollectionmanager", NULL, 0); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_7$$3, &_6$$3, "isusingimplicitobjectids", NULL, 0, &collection); - zephir_check_call_status(); - if (zephir_is_true(&_7$$3)) { - ZEPHIR_INIT_VAR(&mongoId); - object_init_ex(&mongoId, zephir_get_internal_ce(SL("mongoid"))); - if (zephir_has_constructor(&mongoId TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, &mongoId, "__construct", NULL, 0, id); - zephir_check_call_status(); - } - } else { - ZEPHIR_CPY_WRT(&mongoId, id); - } - } else { - ZEPHIR_CPY_WRT(&mongoId, id); - } - ZEPHIR_INIT_VAR(&_8); - zephir_create_array(&_8, 1, 0 TSRMLS_CC); - ZEPHIR_INIT_VAR(&_9); - zephir_create_array(&_9, 1, 0 TSRMLS_CC); - zephir_array_update_string(&_9, SL("_id"), &mongoId, PH_COPY | PH_SEPARATE); - zephir_array_fast_append(&_8, &_9); - ZEPHIR_RETURN_CALL_SELF("findfirst", NULL, 0, &_8); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Allows to query the first record that match the specified conditions - * - * ```php - * // What's the first robot in the robots table? - * $robot = Robots::findFirst(); - * - * echo "The robot name is ", $robot->name, "\n"; - * - * // What's the first mechanical robot in robots table? - * $robot = Robots::findFirst( - * [ - * [ - * "type" => "mechanical", - * ] - * ] - * ); - * - * echo "The first mechanical robot name is ", $robot->name, "\n"; - * - * // Get first virtual robot ordered by name - * $robot = Robots::findFirst( - * [ - * [ - * "type" => "mechanical", - * ], - * "order" => [ - * "name" => 1, - * ], - * ] - * ); - * - * echo "The first virtual robot name is ", $robot->name, "\n"; - * - * // Get first robot by id (_id) - * $robot = Robots::findFirst( - * [ - * [ - * "_id" => new \MongoId("45cbc4a0e4123f6920000002"), - * ] - * ] - * ); - * - * echo "The robot id is ", $robot->_id, "\n"; - * ``` - */ -PHP_METHOD(Phalcon_Mvc_Collection, findFirst) { - - zend_class_entry *_1; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *parameters_param = NULL, className, collection, connection, _0, _2; - zval parameters; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(¶meters); - ZVAL_UNDEF(&className); - ZVAL_UNDEF(&collection); - ZVAL_UNDEF(&connection); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_2); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 0, 1, ¶meters_param); - - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - - - ZEPHIR_INIT_VAR(&className); - zephir_get_called_class(&className TSRMLS_CC); - ZEPHIR_INIT_VAR(&collection); - zephir_fetch_safe_class(&_0, &className); - _1 = zephir_fetch_class_str_ex(Z_STRVAL_P(&_0), Z_STRLEN_P(&_0), ZEND_FETCH_CLASS_AUTO); - if(!_1) { - RETURN_MM_NULL(); - } - object_init_ex(&collection, _1); - if (zephir_has_constructor(&collection TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, &collection, "__construct", NULL, 0); - zephir_check_call_status(); - } - ZEPHIR_CALL_METHOD(&connection, &collection, "getconnection", NULL, 0); - zephir_check_call_status(); - ZVAL_BOOL(&_2, 1); - ZEPHIR_RETURN_CALL_SELF("getresultset", NULL, 0, ¶meters, &collection, &connection, &_2); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Fires an internal event - */ -PHP_METHOD(Phalcon_Mvc_Collection, fireEvent) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *eventName_param = NULL, _0; - zval eventName; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&eventName); - ZVAL_UNDEF(&_0); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &eventName_param); - - if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { - zephir_get_strval(&eventName, eventName_param); - } else { - ZEPHIR_INIT_VAR(&eventName); - ZVAL_EMPTY_STRING(&eventName); - } - - - if ((zephir_method_exists(this_ptr, &eventName TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_METHOD_ZVAL(NULL, this_ptr, &eventName, NULL, 0); - zephir_check_call_status(); - } - zephir_read_property(&_0, this_ptr, SL("modelsManager"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_RETURN_CALL_METHOD(&_0, "notifyevent", NULL, 0, &eventName, this_ptr); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Fires an internal event that cancels the operation - */ -PHP_METHOD(Phalcon_Mvc_Collection, fireEventCancel) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *eventName_param = NULL, _0$$3, _1, _2; - zval eventName; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&eventName); - ZVAL_UNDEF(&_0$$3); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&_2); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &eventName_param); - - if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { - zephir_get_strval(&eventName, eventName_param); - } else { - ZEPHIR_INIT_VAR(&eventName); - ZVAL_EMPTY_STRING(&eventName); - } - - - if ((zephir_method_exists(this_ptr, &eventName TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_METHOD_ZVAL(&_0$$3, this_ptr, &eventName, NULL, 0); - zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_0$$3)) { - RETURN_MM_BOOL(0); - } - } - zephir_read_property(&_1, this_ptr, SL("modelsManager"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(&_2, &_1, "notifyevent", NULL, 0, &eventName, this_ptr); - zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_2)) { - RETURN_MM_BOOL(0); - } - RETURN_MM_BOOL(1); - -} - -/** - * Returns the models manager related to the entity instance - */ -PHP_METHOD(Phalcon_Mvc_Collection, getCollectionManager) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "modelsManager"); - -} - -/** - * Retrieves a database connection - * - * @return \MongoDb - */ -PHP_METHOD(Phalcon_Mvc_Collection, getConnection) { - - zval _0, _1$$3, _2$$3; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1$$3); - ZVAL_UNDEF(&_2$$3); - - ZEPHIR_MM_GROW(); - - ZEPHIR_OBS_VAR(&_0); - zephir_read_property(&_0, this_ptr, SL("connection"), PH_NOISY_CC); - if (Z_TYPE_P(&_0) != IS_OBJECT) { - zephir_read_property(&_1$$3, this_ptr, SL("modelsManager"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(&_2$$3, &_1$$3, "getconnection", NULL, 0, this_ptr); - zephir_check_call_status(); - zephir_update_property_zval(this_ptr, SL("connection"), &_2$$3); - } - RETURN_MM_MEMBER(getThis(), "connection"); - -} - -/** - * Returns DependencyInjection connection service - */ -PHP_METHOD(Phalcon_Mvc_Collection, getConnectionService) { - - zval _0; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&_0); - - ZEPHIR_MM_GROW(); - - zephir_read_property(&_0, this_ptr, SL("modelsManager"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_RETURN_CALL_METHOD(&_0, "getconnectionservice", NULL, 0, this_ptr); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Returns the dependency injection container - */ -PHP_METHOD(Phalcon_Mvc_Collection, getDI) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "container"); - -} - -/** - * Returns one of the DIRTY_STATE_* constants telling if the document exists - * in the collection or not - */ -PHP_METHOD(Phalcon_Mvc_Collection, getDirtyState) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "dirtyState"); - -} - -/** - * Returns the custom events manager - */ -PHP_METHOD(Phalcon_Mvc_Collection, getEventsManager) { - - zval _0; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&_0); - - ZEPHIR_MM_GROW(); - - zephir_read_property(&_0, this_ptr, SL("modelsManager"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_RETURN_CALL_METHOD(&_0, "getcustomeventsmanager", NULL, 0, this_ptr); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Returns the value of the _id property - * - * @return \MongoId - */ -PHP_METHOD(Phalcon_Mvc_Collection, getId) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "_id"); - -} - -/** - * Returns all the validation messages - * - * ```php - * $robot = new Robots(); - * - * $robot->type = "mechanical"; - * $robot->name = "Astro Boy"; - * $robot->year = 1952; - * - * if ($robot->save() === false) { - * echo "Umh, We can't store robots right now "; - * - * $messages = $robot->getMessages(); - * - * foreach ($messages as $message) { - * echo $message; - * } - * } else { - * echo "Great, a new robot was saved successfully!"; - * } - * ``` - */ -PHP_METHOD(Phalcon_Mvc_Collection, getMessages) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "errorMessages"); - -} - -/** - * Returns an array with reserved properties that cannot be part of the - * insert/update - */ -PHP_METHOD(Phalcon_Mvc_Collection, getReservedAttributes) { - - zval _1$$3; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval __$true, _0, _2; - zval *this_ptr = getThis(); - - ZVAL_BOOL(&__$true, 1); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_2); - ZVAL_UNDEF(&_1$$3); - - ZEPHIR_MM_GROW(); - - ZEPHIR_OBS_VAR(&_0); - zephir_read_static_property_ce(&_0, phalcon_mvc_collection_ce, SL("reserved"), PH_NOISY_CC); - if (Z_TYPE_P(&_0) != IS_ARRAY) { - ZEPHIR_INIT_VAR(&_1$$3); - zephir_create_array(&_1$$3, 8, 0 TSRMLS_CC); - zephir_array_update_string(&_1$$3, SL("_connection"), &__$true, PH_COPY | PH_SEPARATE); - zephir_array_update_string(&_1$$3, SL("container"), &__$true, PH_COPY | PH_SEPARATE); - zephir_array_update_string(&_1$$3, SL("source"), &__$true, PH_COPY | PH_SEPARATE); - zephir_array_update_string(&_1$$3, SL("operationMade"), &__$true, PH_COPY | PH_SEPARATE); - zephir_array_update_string(&_1$$3, SL("errorMessages"), &__$true, PH_COPY | PH_SEPARATE); - zephir_array_update_string(&_1$$3, SL("dirtyState"), &__$true, PH_COPY | PH_SEPARATE); - zephir_array_update_string(&_1$$3, SL("modelsManager"), &__$true, PH_COPY | PH_SEPARATE); - zephir_array_update_string(&_1$$3, SL("skipped"), &__$true, PH_COPY | PH_SEPARATE); - zend_update_static_property(phalcon_mvc_collection_ce, ZEND_STRL("reserved"), &_1$$3); - } - zephir_read_static_property_ce(&_2, phalcon_mvc_collection_ce, SL("reserved"), PH_NOISY_CC | PH_READONLY); - RETURN_CTOR(&_2); - -} - -/** - * Returns collection name mapped in the model - */ -PHP_METHOD(Phalcon_Mvc_Collection, getSource) { - - zval collection, _0, _1$$3, _2$$3; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&collection); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1$$3); - ZVAL_UNDEF(&_2$$3); - - ZEPHIR_MM_GROW(); - - zephir_read_property(&_0, this_ptr, SL("source"), PH_NOISY_CC | PH_READONLY); - if (!(zephir_is_true(&_0))) { - ZEPHIR_CPY_WRT(&collection, this_ptr); - ZEPHIR_INIT_VAR(&_1$$3); - ZEPHIR_INIT_VAR(&_2$$3); - zephir_get_class_ns(&_2$$3, &collection, 0 TSRMLS_CC); - zephir_uncamelize(&_1$$3, &_2$$3, NULL ); - zephir_update_property_zval(this_ptr, SL("source"), &_1$$3); - } - RETURN_MM_MEMBER(getThis(), "source"); - -} - -/** - * Reads an attribute value by its name - * - *```php - * echo $robot->readAttribute("name"); - *``` - */ -PHP_METHOD(Phalcon_Mvc_Collection, readAttribute) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *attribute_param = NULL, _0; - zval attribute; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&attribute); - ZVAL_UNDEF(&_0); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &attribute_param); - - if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { - zephir_get_strval(&attribute, attribute_param); - } else { - ZEPHIR_INIT_VAR(&attribute); - ZVAL_EMPTY_STRING(&attribute); - } - - - if (!(zephir_isset_property_zval(this_ptr, &attribute TSRMLS_CC))) { - RETURN_MM_NULL(); - } - ZEPHIR_OBS_VAR(&_0); - zephir_read_property_zval(&_0, this_ptr, &attribute, PH_NOISY_CC); - RETURN_CCTOR(&_0); - -} - -/** - * Creates/Updates a collection based on the values in the attributes - */ -PHP_METHOD(Phalcon_Mvc_Collection, save) { - - zval _6; - zend_bool success = 0, _7; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval __$true, exists, data, status, id, ok, collection, _2, _3, _4, _5, _9, _10, _0$$3, _1$$4, _8$$7; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *this_ptr = getThis(); - - ZVAL_BOOL(&__$true, 1); - ZVAL_UNDEF(&exists); - ZVAL_UNDEF(&data); - ZVAL_UNDEF(&status); - ZVAL_UNDEF(&id); - ZVAL_UNDEF(&ok); - ZVAL_UNDEF(&collection); - ZVAL_UNDEF(&_2); - ZVAL_UNDEF(&_3); - ZVAL_UNDEF(&_4); - ZVAL_UNDEF(&_5); - ZVAL_UNDEF(&_9); - ZVAL_UNDEF(&_10); - ZVAL_UNDEF(&_0$$3); - ZVAL_UNDEF(&_1$$4); - ZVAL_UNDEF(&_8$$7); - ZVAL_UNDEF(&_6); - - ZEPHIR_MM_GROW(); - - ZEPHIR_CALL_METHOD(&collection, this_ptr, "preparecu", NULL, 0); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&exists, this_ptr, "exists", NULL, 0, &collection); - zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(&exists)) { - ZEPHIR_INIT_ZVAL_NREF(_0$$3); - ZVAL_LONG(&_0$$3, 1); - zephir_update_property_zval(this_ptr, SL("operationMade"), &_0$$3); - } else { - ZEPHIR_INIT_ZVAL_NREF(_1$$4); - ZVAL_LONG(&_1$$4, 2); - zephir_update_property_zval(this_ptr, SL("operationMade"), &_1$$4); - } - ZEPHIR_INIT_VAR(&_2); - array_init(&_2); - zephir_update_property_zval(this_ptr, SL("errorMessages"), &_2); - zephir_read_property(&_4, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); - zephir_read_static_property_ce(&_5, phalcon_mvc_collection_ce, SL("disableEvents"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "presave", NULL, 423, &_4, &_5, &exists); - zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_3)) { - RETURN_MM_BOOL(0); - } - ZEPHIR_CALL_METHOD(&data, this_ptr, "toarray", NULL, 0); - zephir_check_call_status(); - success = 0; - ZEPHIR_INIT_VAR(&_6); - zephir_create_array(&_6, 1, 0 TSRMLS_CC); - zephir_array_update_string(&_6, SL("w"), &__$true, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&status, &collection, "save", NULL, 0, &data, &_6); - zephir_check_call_status(); - ZEPHIR_OBS_VAR(&ok); - _7 = zephir_array_isset_string_fetch(&ok, &status, SL("ok"), 0); - if (_7) { - _7 = zephir_is_true(&ok); - } - if (_7) { - success = 1; - if (ZEPHIR_IS_FALSE_IDENTICAL(&exists)) { - ZEPHIR_OBS_VAR(&id); - if (zephir_array_isset_string_fetch(&id, &data, SL("_id"), 0)) { - zephir_update_property_zval(this_ptr, SL("_id"), &id); - } - ZEPHIR_INIT_ZVAL_NREF(_8$$7); - ZVAL_LONG(&_8$$7, 0); - zephir_update_property_zval(this_ptr, SL("dirtyState"), &_8$$7); - } - } - zephir_read_static_property_ce(&_9, phalcon_mvc_collection_ce, SL("disableEvents"), PH_NOISY_CC | PH_READONLY); - if (success) { - ZVAL_BOOL(&_10, 1); - } else { - ZVAL_BOOL(&_10, 0); - } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "postsave", NULL, 424, &_9, &_10, &exists); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Serializes the object ignoring connections or protected properties - */ -PHP_METHOD(Phalcon_Mvc_Collection, serialize) { - - zval container, serializer, _1, _2, _6, _3$$4, _4$$4, _5$$4; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zephir_fcall_cache_entry *_0 = NULL; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&container); - ZVAL_UNDEF(&serializer); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&_2); - ZVAL_UNDEF(&_6); - ZVAL_UNDEF(&_3$$4); - ZVAL_UNDEF(&_4$$4); - ZVAL_UNDEF(&_5$$4); - - ZEPHIR_MM_GROW(); - - ZEPHIR_CALL_CE_STATIC(&container, phalcon_di_ce, "getdefault", &_0, 0); - zephir_check_call_status(); - if (UNEXPECTED(Z_TYPE_P(&container) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_collection_exception_ce, "The dependency injector container is not valid", "phalcon/Mvc/Collection.zep", 946); - return; - } - ZEPHIR_INIT_VAR(&_2); - ZVAL_STRING(&_2, "serializer"); - ZEPHIR_CALL_METHOD(&_1, &container, "has", NULL, 0, &_2); - zephir_check_call_status(); - if (zephir_is_true(&_1)) { - zephir_read_property(&_3$$4, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_INIT_VAR(&_5$$4); - ZVAL_STRING(&_5$$4, "serializer"); - ZEPHIR_CALL_METHOD(&_4$$4, &_3$$4, "getshared", NULL, 0, &_5$$4); - zephir_check_call_status(); - ZEPHIR_CPY_WRT(&serializer, &_4$$4); - ZEPHIR_CALL_METHOD(&_4$$4, this_ptr, "toarray", NULL, 0); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &serializer, "setdata", NULL, 0, &_4$$4); - zephir_check_call_status(); - ZEPHIR_RETURN_CALL_METHOD(&serializer, "serialize", NULL, 0); - zephir_check_call_status(); - RETURN_MM(); - } - ZEPHIR_CALL_METHOD(&_6, this_ptr, "toarray", NULL, 0); - zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 10, &_6); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Sets the DependencyInjection connection service name - */ -PHP_METHOD(Phalcon_Mvc_Collection, setConnectionService) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *connectionService_param = NULL, _0; - zval connectionService; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&connectionService); - ZVAL_UNDEF(&_0); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &connectionService_param); - - if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { - zephir_get_strval(&connectionService, connectionService_param); - } else { - ZEPHIR_INIT_VAR(&connectionService); - ZVAL_EMPTY_STRING(&connectionService); - } - - - zephir_read_property(&_0, this_ptr, SL("modelsManager"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(NULL, &_0, "setconnectionservice", NULL, 0, this_ptr, &connectionService); - zephir_check_call_status(); - RETURN_THIS(); - -} - -/** - * Sets the dependency injection container - */ -PHP_METHOD(Phalcon_Mvc_Collection, setDI) { - - zval *container, container_sub; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&container_sub); - - zephir_fetch_params_without_memory_grow(1, 0, &container); - - - - zephir_update_property_zval(this_ptr, SL("container"), container); - -} - -/** - * Sets the dirty state of the object using one of the DIRTY_STATE_* - * constants - */ -PHP_METHOD(Phalcon_Mvc_Collection, setDirtyState) { - - zval *dirtyState_param = NULL, _0; - zend_long dirtyState; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&_0); - - zephir_fetch_params_without_memory_grow(1, 0, &dirtyState_param); - - dirtyState = zephir_get_intval(dirtyState_param); - - - ZEPHIR_INIT_ZVAL_NREF(_0); - ZVAL_LONG(&_0, dirtyState); - zephir_update_property_zval(this_ptr, SL("dirtyState"), &_0); - RETURN_THISW(); - -} - -/** - * Sets a custom events manager - */ -PHP_METHOD(Phalcon_Mvc_Collection, setEventsManager) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *eventsManager, eventsManager_sub, _0; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&eventsManager_sub); - ZVAL_UNDEF(&_0); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &eventsManager); - - - - zephir_read_property(&_0, this_ptr, SL("modelsManager"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(NULL, &_0, "setcustomeventsmanager", NULL, 0, this_ptr, eventsManager); - zephir_check_call_status(); - ZEPHIR_MM_RESTORE(); - -} - -/** - * Sets a value for the _id property, creates a MongoId object if needed - * - * @param mixed id - */ -PHP_METHOD(Phalcon_Mvc_Collection, setId) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *id, id_sub, mongoId, _0$$3, _1$$3; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&id_sub); - ZVAL_UNDEF(&mongoId); - ZVAL_UNDEF(&_0$$3); - ZVAL_UNDEF(&_1$$3); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &id); - - - - if (Z_TYPE_P(id) != IS_OBJECT) { - zephir_read_property(&_0$$3, this_ptr, SL("modelsManager"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(&_1$$3, &_0$$3, "isusingimplicitobjectids", NULL, 0, this_ptr); - zephir_check_call_status(); - if (zephir_is_true(&_1$$3)) { - ZEPHIR_INIT_VAR(&mongoId); - object_init_ex(&mongoId, zephir_get_internal_ce(SL("mongoid"))); - if (zephir_has_constructor(&mongoId TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, &mongoId, "__construct", NULL, 0, id); - zephir_check_call_status(); - } - } else { - ZEPHIR_CPY_WRT(&mongoId, id); - } - } else { - ZEPHIR_CPY_WRT(&mongoId, id); - } - zephir_update_property_zval(this_ptr, SL("_id"), &mongoId); - ZEPHIR_MM_RESTORE(); - -} - -/** - * Sets collection name which model should be mapped - */ -PHP_METHOD(Phalcon_Mvc_Collection, setSource) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *source_param = NULL; - zval source; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&source); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &source_param); - - if (UNEXPECTED(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'source' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(source_param) == IS_STRING)) { - zephir_get_strval(&source, source_param); - } else { - ZEPHIR_INIT_VAR(&source); - ZVAL_EMPTY_STRING(&source); - } - - - zephir_update_property_zval(this_ptr, SL("source"), &source); - RETURN_THIS(); - -} - -/** - * Skips the current operation forcing a success state - */ -PHP_METHOD(Phalcon_Mvc_Collection, skipOperation) { - - zval *skip_param = NULL, __$true, __$false; - zend_bool skip; - zval *this_ptr = getThis(); - - ZVAL_BOOL(&__$true, 1); - ZVAL_BOOL(&__$false, 0); - - zephir_fetch_params_without_memory_grow(1, 0, &skip_param); - - skip = zephir_get_boolval(skip_param); - - - if (skip) { - zephir_update_property_zval(this_ptr, SL("skipped"), &__$true); - } else { - zephir_update_property_zval(this_ptr, SL("skipped"), &__$false); - } - -} - -/** - * Allows to perform a summatory group for a column in the collection - */ -PHP_METHOD(Phalcon_Mvc_Collection, summatory) { - - zend_class_entry *_1; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *field_param = NULL, *conditions = NULL, conditions_sub, *finalize = NULL, finalize_sub, __$null, className, model, connection, source, collection, initial, reduce, group, retval, firstRetval, _0, _2, _4$$6; - zval field, _3; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&field); - ZVAL_UNDEF(&_3); - ZVAL_UNDEF(&conditions_sub); - ZVAL_UNDEF(&finalize_sub); - ZVAL_NULL(&__$null); - ZVAL_UNDEF(&className); - ZVAL_UNDEF(&model); - ZVAL_UNDEF(&connection); - ZVAL_UNDEF(&source); - ZVAL_UNDEF(&collection); - ZVAL_UNDEF(&initial); - ZVAL_UNDEF(&reduce); - ZVAL_UNDEF(&group); - ZVAL_UNDEF(&retval); - ZVAL_UNDEF(&firstRetval); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_2); - ZVAL_UNDEF(&_4$$6); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 2, &field_param, &conditions, &finalize); - - if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { - zephir_get_strval(&field, field_param); - } else { - ZEPHIR_INIT_VAR(&field); - ZVAL_EMPTY_STRING(&field); - } - if (!conditions) { - conditions = &conditions_sub; - conditions = &__$null; - } - if (!finalize) { - finalize = &finalize_sub; - finalize = &__$null; - } - - - ZEPHIR_INIT_VAR(&className); - zephir_get_called_class(&className TSRMLS_CC); - ZEPHIR_INIT_VAR(&model); - zephir_fetch_safe_class(&_0, &className); - _1 = zephir_fetch_class_str_ex(Z_STRVAL_P(&_0), Z_STRLEN_P(&_0), ZEND_FETCH_CLASS_AUTO); - if(!_1) { - RETURN_MM_NULL(); - } - object_init_ex(&model, _1); - if (zephir_has_constructor(&model TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, &model, "__construct", NULL, 0); - zephir_check_call_status(); - } - ZEPHIR_CALL_METHOD(&connection, &model, "getconnection", NULL, 0); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&source, &model, "getsource", NULL, 0); - zephir_check_call_status(); - if (UNEXPECTED(ZEPHIR_IS_EMPTY(&source))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_collection_exception_ce, "Method getSource() returns empty string", "phalcon/Mvc/Collection.zep", 1063); - return; - } - ZEPHIR_CALL_METHOD(&collection, &connection, "selectcollection", NULL, 0, &source); - zephir_check_call_status(); - ZEPHIR_INIT_VAR(&initial); - zephir_create_array(&initial, 1, 0 TSRMLS_CC); - ZEPHIR_INIT_VAR(&_2); - array_init(&_2); - zephir_array_update_string(&initial, SL("summatory"), &_2, PH_COPY | PH_SEPARATE); - ZEPHIR_INIT_VAR(&_3); - ZEPHIR_CONCAT_SVSVSVS(&_3, "function (curr, result) { if (typeof result.summatory[curr.", &field, "] === \"undefined\") { result.summatory[curr.", &field, "] = 1; } else { result.summatory[curr.", &field, "]++; } }"); - ZEPHIR_CPY_WRT(&reduce, &_3); - ZEPHIR_INIT_NVAR(&_2); - array_init(&_2); - ZEPHIR_CALL_METHOD(&group, &collection, "group", NULL, 0, &_2, &initial, &reduce); - zephir_check_call_status(); - if (!(zephir_array_isset_string_fetch(&retval, &group, SL("retval"), 1))) { - array_init(return_value); - RETURN_MM(); - } - if (zephir_array_isset_long_fetch(&firstRetval, &retval, 0, 1 TSRMLS_CC)) { - if (zephir_array_isset_string(&firstRetval, SL("summatory"))) { - zephir_array_fetch_string(&_4$$6, &firstRetval, SL("summatory"), PH_NOISY | PH_READONLY, "phalcon/Mvc/Collection.zep", 1089 TSRMLS_CC); - RETURN_CTOR(&_4$$6); - } - RETURN_CTOR(&firstRetval); - } - RETURN_CTOR(&retval); - -} - -/** - * Returns the instance as an array representation - * - *```php - * print_r( - * $robot->toArray() - * ); - *``` - */ -PHP_METHOD(Phalcon_Mvc_Collection, toArray) { - - zend_string *_4; - zend_ulong _3; - zval data; - zval reserved, key, value, _0, *_1, _2; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&reserved); - ZVAL_UNDEF(&key); - ZVAL_UNDEF(&value); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_2); - ZVAL_UNDEF(&data); - - ZEPHIR_MM_GROW(); - - ZEPHIR_CALL_METHOD(&reserved, this_ptr, "getreservedattributes", NULL, 0); - zephir_check_call_status(); - ZEPHIR_INIT_VAR(&data); - array_init(&data); - ZEPHIR_CALL_FUNCTION(&_0, "get_object_vars", NULL, 214, this_ptr); - zephir_check_call_status(); - zephir_is_iterable(&_0, 0, "phalcon/Mvc/Collection.zep", 1130); - if (Z_TYPE_P(&_0) == IS_ARRAY) { - ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_0), _3, _4, _1) - { - ZEPHIR_INIT_NVAR(&key); - if (_4 != NULL) { - ZVAL_STR_COPY(&key, _4); - } else { - ZVAL_LONG(&key, _3); - } - ZEPHIR_INIT_NVAR(&value); - ZVAL_COPY(&value, _1); - if (ZEPHIR_IS_STRING(&key, "_id")) { - if (zephir_is_true(&value)) { - zephir_array_update_zval(&data, &key, &value, PH_COPY | PH_SEPARATE); - } - } else if (!(zephir_array_isset(&reserved, &key))) { - zephir_array_update_zval(&data, &key, &value, PH_COPY | PH_SEPARATE); - } - } ZEND_HASH_FOREACH_END(); - } else { - ZEPHIR_CALL_METHOD(NULL, &_0, "rewind", NULL, 0); - zephir_check_call_status(); - while (1) { - ZEPHIR_CALL_METHOD(&_2, &_0, "valid", NULL, 0); - zephir_check_call_status(); - if (!zend_is_true(&_2)) { - break; - } - ZEPHIR_CALL_METHOD(&key, &_0, "key", NULL, 0); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&value, &_0, "current", NULL, 0); - zephir_check_call_status(); - if (ZEPHIR_IS_STRING(&key, "_id")) { - if (zephir_is_true(&value)) { - zephir_array_update_zval(&data, &key, &value, PH_COPY | PH_SEPARATE); - } - } else if (!(zephir_array_isset(&reserved, &key))) { - zephir_array_update_zval(&data, &key, &value, PH_COPY | PH_SEPARATE); - } - ZEPHIR_CALL_METHOD(NULL, &_0, "next", NULL, 0); - zephir_check_call_status(); - } - } - ZEPHIR_INIT_NVAR(&value); - ZEPHIR_INIT_NVAR(&key); - RETURN_CTOR(&data); - -} - -/** - * Unserializes the object from a serialized string - */ -PHP_METHOD(Phalcon_Mvc_Collection, unserialize) { - - zend_string *_13$$6; - zend_ulong _12$$6; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zephir_fcall_cache_entry *_0 = NULL, *_3 = NULL; - zval *data, data_sub, attributes, container, manager, key, value, serializer, _5, _6, _1$$3, _2$$3, _4$$3, _7$$4, _8$$4, _9$$6, *_10$$6, _11$$6; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&data_sub); - ZVAL_UNDEF(&attributes); - ZVAL_UNDEF(&container); - ZVAL_UNDEF(&manager); - ZVAL_UNDEF(&key); - ZVAL_UNDEF(&value); - ZVAL_UNDEF(&serializer); - ZVAL_UNDEF(&_5); - ZVAL_UNDEF(&_6); - ZVAL_UNDEF(&_1$$3); - ZVAL_UNDEF(&_2$$3); - ZVAL_UNDEF(&_4$$3); - ZVAL_UNDEF(&_7$$4); - ZVAL_UNDEF(&_8$$4); - ZVAL_UNDEF(&_9$$6); - ZVAL_UNDEF(&_11$$6); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &data); - - - - ZEPHIR_CALL_CE_STATIC(&container, phalcon_di_ce, "getdefault", &_0, 0); - zephir_check_call_status(); - if (UNEXPECTED(Z_TYPE_P(&container) != IS_OBJECT)) { - ZEPHIR_INIT_VAR(&_1$$3); - object_init_ex(&_1$$3, phalcon_mvc_collection_exception_ce); - ZEPHIR_INIT_VAR(&_4$$3); - ZVAL_STRING(&_4$$3, "the services related to the ODM"); - ZEPHIR_CALL_CE_STATIC(&_2$$3, phalcon_mvc_collection_exception_ce, "containerservicenotfound", &_3, 0, &_4$$3); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 5, &_2$$3); - zephir_check_call_status(); - zephir_throw_exception_debug(&_1$$3, "phalcon/Mvc/Collection.zep", 1149 TSRMLS_CC); - ZEPHIR_MM_RESTORE(); - return; - } - zephir_update_property_zval(this_ptr, SL("container"), &container); - ZEPHIR_INIT_VAR(&_6); - ZVAL_STRING(&_6, "serializer"); - ZEPHIR_CALL_METHOD(&_5, &container, "has", NULL, 0, &_6); - zephir_check_call_status(); - if (zephir_is_true(&_5)) { - ZEPHIR_INIT_VAR(&_8$$4); - ZVAL_STRING(&_8$$4, "serializer"); - ZEPHIR_CALL_METHOD(&_7$$4, &container, "getshared", NULL, 0, &_8$$4); - zephir_check_call_status(); - ZEPHIR_CPY_WRT(&serializer, &_7$$4); - ZEPHIR_CALL_METHOD(&attributes, &serializer, "unserialize", NULL, 0, data); - zephir_check_call_status(); - } else { - ZEPHIR_CALL_FUNCTION(&attributes, "unserialize", NULL, 11, data); - zephir_check_call_status(); - } - if (Z_TYPE_P(&attributes) == IS_ARRAY) { - ZEPHIR_INIT_VAR(&_9$$6); - ZVAL_STRING(&_9$$6, "collectionManager"); - ZEPHIR_CALL_METHOD(&manager, &container, "getshared", NULL, 0, &_9$$6); - zephir_check_call_status(); - if (UNEXPECTED(Z_TYPE_P(&manager) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_collection_exception_ce, "The injected service 'collectionManager' is not valid", "phalcon/Mvc/Collection.zep", 1173); - return; - } - zephir_update_property_zval(this_ptr, SL("modelsManager"), &manager); - zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Collection.zep", 1187); - if (Z_TYPE_P(&attributes) == IS_ARRAY) { - ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&attributes), _12$$6, _13$$6, _10$$6) - { - ZEPHIR_INIT_NVAR(&key); - if (_13$$6 != NULL) { - ZVAL_STR_COPY(&key, _13$$6); - } else { - ZVAL_LONG(&key, _12$$6); - } - ZEPHIR_INIT_NVAR(&value); - ZVAL_COPY(&value, _10$$6); - zephir_update_property_zval_zval(this_ptr, &key, &value TSRMLS_CC); - } ZEND_HASH_FOREACH_END(); - } else { - ZEPHIR_CALL_METHOD(NULL, &attributes, "rewind", NULL, 0); - zephir_check_call_status(); - while (1) { - ZEPHIR_CALL_METHOD(&_11$$6, &attributes, "valid", NULL, 0); - zephir_check_call_status(); - if (!zend_is_true(&_11$$6)) { - break; - } - ZEPHIR_CALL_METHOD(&key, &attributes, "key", NULL, 0); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&value, &attributes, "current", NULL, 0); - zephir_check_call_status(); - zephir_update_property_zval_zval(this_ptr, &key, &value TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &attributes, "next", NULL, 0); - zephir_check_call_status(); - } - } - ZEPHIR_INIT_NVAR(&value); - ZEPHIR_INIT_NVAR(&key); - } - ZEPHIR_MM_RESTORE(); - -} - -/** - * Creates/Updates a collection based on the values in the attributes - */ -PHP_METHOD(Phalcon_Mvc_Collection, update) { - - zval _4, _6; - zend_bool success = 0, _7; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval __$true, exists, data, status, ok, collection, _0, _1, _2, _3, _5, _8, _9; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *this_ptr = getThis(); - - ZVAL_BOOL(&__$true, 1); - ZVAL_UNDEF(&exists); - ZVAL_UNDEF(&data); - ZVAL_UNDEF(&status); - ZVAL_UNDEF(&ok); - ZVAL_UNDEF(&collection); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&_2); - ZVAL_UNDEF(&_3); - ZVAL_UNDEF(&_5); - ZVAL_UNDEF(&_8); - ZVAL_UNDEF(&_9); - ZVAL_UNDEF(&_4); - ZVAL_UNDEF(&_6); - - ZEPHIR_MM_GROW(); - - ZEPHIR_CALL_METHOD(&collection, this_ptr, "preparecu", NULL, 0); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&exists, this_ptr, "exists", NULL, 0, &collection); - zephir_check_call_status(); - if (UNEXPECTED(!zephir_is_true(&exists))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_collection_exception_ce, "The document cannot be updated because it doesn't exist", "phalcon/Mvc/Collection.zep", 1208); - return; - } - ZEPHIR_INIT_ZVAL_NREF(_0); - ZVAL_LONG(&_0, 2); - zephir_update_property_zval(this_ptr, SL("operationMade"), &_0); - ZEPHIR_INIT_VAR(&_1); - array_init(&_1); - zephir_update_property_zval(this_ptr, SL("errorMessages"), &_1); - zephir_read_property(&_0, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); - zephir_read_static_property_ce(&_3, phalcon_mvc_collection_ce, SL("disableEvents"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "presave", NULL, 423, &_0, &_3, &exists); - zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_2)) { - RETURN_MM_BOOL(0); - } - ZEPHIR_CALL_METHOD(&data, this_ptr, "toarray", NULL, 0); - zephir_check_call_status(); - ZEPHIR_INIT_VAR(&_4); - zephir_create_array(&_4, 1, 0 TSRMLS_CC); - ZEPHIR_OBS_VAR(&_5); - zephir_read_property(&_5, this_ptr, SL("_id"), PH_NOISY_CC); - zephir_array_update_string(&_4, SL("_id"), &_5, PH_COPY | PH_SEPARATE); - ZEPHIR_INIT_VAR(&_6); - zephir_create_array(&_6, 1, 0 TSRMLS_CC); - zephir_array_update_string(&_6, SL("w"), &__$true, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&status, &collection, "update", NULL, 0, &_4, &data, &_6); - zephir_check_call_status(); - ZEPHIR_OBS_VAR(&ok); - _7 = zephir_array_isset_string_fetch(&ok, &status, SL("ok"), 0); - if (_7) { - _7 = zephir_is_true(&ok); - } - if (_7) { - success = 1; - } else { - success = 0; - } - zephir_read_static_property_ce(&_8, phalcon_mvc_collection_ce, SL("disableEvents"), PH_NOISY_CC | PH_READONLY); - if (success) { - ZVAL_BOOL(&_9, 1); - } else { - ZVAL_BOOL(&_9, 0); - } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "postsave", NULL, 424, &_8, &_9, &exists); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Executes validators on every validation call - * - *```php - * use Phalcon\Mvc\Collection; - * use Phalcon\Validation; - * use Phalcon\Validation\Validator\ExclusionIn; - * - * class Subscriptors extends Collection - * { - * public function validation() - * { - * $validator = new Validation(); - * - * $validator->add( - * "status", - * new ExclusionIn( - * [ - * "domain" => [ - * "A", - * "I", - * ], - * ] - * ) - * ); - * - * return $this->validate($validator); - * } - * } - *``` - */ -PHP_METHOD(Phalcon_Mvc_Collection, validate) { - - zend_object_iterator *_1; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zephir_fcall_cache_entry *_8 = NULL, *_9 = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *validator, validator_sub, messages, message, _0, _2$$4, _3$$4, _4$$4, _5$$4, _6$$4, _7$$4; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&validator_sub); - ZVAL_UNDEF(&messages); - ZVAL_UNDEF(&message); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_2$$4); - ZVAL_UNDEF(&_3$$4); - ZVAL_UNDEF(&_4$$4); - ZVAL_UNDEF(&_5$$4); - ZVAL_UNDEF(&_6$$4); - ZVAL_UNDEF(&_7$$4); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &validator); - - - - ZVAL_NULL(&_0); - ZEPHIR_CALL_METHOD(&messages, validator, "validate", NULL, 0, &_0, this_ptr); - zephir_check_call_status(); - if (((Z_TYPE_P(&messages) == IS_TRUE || Z_TYPE_P(&messages) == IS_FALSE) == 1)) { - RETURN_CCTOR(&messages); - } - _1 = zephir_get_iterator(&messages TSRMLS_CC); - _1->funcs->rewind(_1 TSRMLS_CC); - for (;_1->funcs->valid(_1 TSRMLS_CC) == SUCCESS && !EG(exception); _1->funcs->move_forward(_1 TSRMLS_CC)) { - { - ZEPHIR_ITERATOR_COPY(&message, _1); - } - ZEPHIR_INIT_NVAR(&_2$$4); - object_init_ex(&_2$$4, phalcon_messages_message_ce); - ZEPHIR_CALL_METHOD(&_3$$4, &message, "getmessage", NULL, 0); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_4$$4, &message, "getfield", NULL, 0); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_5$$4, &message, "gettype", NULL, 0); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_6$$4, &message, "getcode", NULL, 0); - zephir_check_call_status(); - ZVAL_NULL(&_7$$4); - ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", &_8, 4, &_3$$4, &_4$$4, &_5$$4, &_7$$4, &_6$$4); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", &_9, 0, &_2$$4); - zephir_check_call_status(); - } - zend_iterator_dtor(_1); - RETURN_MM_BOOL(!(zephir_fast_count_int(&messages TSRMLS_CC))); - -} - -/** - * Sets if a model must use implicit objects ids - */ -PHP_METHOD(Phalcon_Mvc_Collection, useImplicitObjectIds) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *useImplicitObjectIds_param = NULL, _0, _1; - zend_bool useImplicitObjectIds; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &useImplicitObjectIds_param); - - useImplicitObjectIds = zephir_get_boolval(useImplicitObjectIds_param); - - - zephir_read_property(&_0, this_ptr, SL("modelsManager"), PH_NOISY_CC | PH_READONLY); - if (useImplicitObjectIds) { - ZVAL_BOOL(&_1, 1); - } else { - ZVAL_BOOL(&_1, 0); - } - ZEPHIR_CALL_METHOD(NULL, &_0, "useimplicitobjectids", NULL, 0, this_ptr, &_1); - zephir_check_call_status(); - ZEPHIR_MM_RESTORE(); - -} - -/** - * Writes an attribute value by its name - * - *```php - * $robot->writeAttribute("name", "Rosey"); - *``` - */ -PHP_METHOD(Phalcon_Mvc_Collection, writeAttribute) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *attribute_param = NULL, *value, value_sub; - zval attribute; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&attribute); - ZVAL_UNDEF(&value_sub); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 2, 0, &attribute_param, &value); - - zephir_get_strval(&attribute, attribute_param); - - - zephir_update_property_zval_zval(this_ptr, &attribute, value TSRMLS_CC); - ZEPHIR_MM_RESTORE(); - -} - -/** - * Cancel the current operation - */ -PHP_METHOD(Phalcon_Mvc_Collection, cancelOperation) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *disableEvents_param = NULL, eventName, _0; - zend_bool disableEvents; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&eventName); - ZVAL_UNDEF(&_0); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &disableEvents_param); - - disableEvents = zephir_get_boolval(disableEvents_param); - - - if (disableEvents) { - RETURN_MM_BOOL(0); - } - zephir_read_property(&_0, this_ptr, SL("operationMade"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_INIT_VAR(&eventName); - if (ZEPHIR_IS_LONG(&_0, 3)) { - ZVAL_STRING(&eventName, "notDeleted"); - } else { - ZVAL_STRING(&eventName, "notSaved"); - } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "fireevent", NULL, 0, &eventName); - zephir_check_call_status(); - RETURN_MM_BOOL(1); - -} - -/** - * Checks if the document exists in the collection - * - * @param MongoCollection collection - */ -PHP_METHOD(Phalcon_Mvc_Collection, exists) { - - zval _4; - zend_bool exists = 0; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *collection, collection_sub, id, mongoId, _2, _3, _0$$5, _1$$5, _5$$9, _6$$10; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&collection_sub); - ZVAL_UNDEF(&id); - ZVAL_UNDEF(&mongoId); - ZVAL_UNDEF(&_2); - ZVAL_UNDEF(&_3); - ZVAL_UNDEF(&_0$$5); - ZVAL_UNDEF(&_1$$5); - ZVAL_UNDEF(&_5$$9); - ZVAL_UNDEF(&_6$$10); - ZVAL_UNDEF(&_4); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &collection); - - - - ZEPHIR_OBS_VAR(&id); - if (!(zephir_fetch_property(&id, this_ptr, SL("_id"), PH_SILENT_CC))) { - RETURN_MM_BOOL(0); - } - if (Z_TYPE_P(&id) == IS_OBJECT) { - ZEPHIR_CPY_WRT(&mongoId, &id); - } else { - zephir_read_property(&_0$$5, this_ptr, SL("modelsManager"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(&_1$$5, &_0$$5, "isusingimplicitobjectids", NULL, 0, this_ptr); - zephir_check_call_status(); - if (zephir_is_true(&_1$$5)) { - ZEPHIR_INIT_NVAR(&mongoId); - object_init_ex(&mongoId, zephir_get_internal_ce(SL("mongoid"))); - if (zephir_has_constructor(&mongoId TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, &mongoId, "__construct", NULL, 0, &id); - zephir_check_call_status(); - } - zephir_update_property_zval(this_ptr, SL("_id"), &mongoId); - } else { - ZEPHIR_CPY_WRT(&mongoId, &id); - } - } - zephir_read_property(&_2, this_ptr, SL("dirtyState"), PH_NOISY_CC | PH_READONLY); - if (!(zephir_is_true(&_2))) { - RETURN_MM_BOOL(1); - } - ZEPHIR_INIT_VAR(&_4); - zephir_create_array(&_4, 1, 0 TSRMLS_CC); - zephir_array_update_string(&_4, SL("_id"), &mongoId, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_3, collection, "count", NULL, 0, &_4); - zephir_check_call_status(); - exists = ZEPHIR_GT_LONG(&_3, 0); - if (exists) { - ZEPHIR_INIT_ZVAL_NREF(_5$$9); - ZVAL_LONG(&_5$$9, 0); - zephir_update_property_zval(this_ptr, SL("dirtyState"), &_5$$9); - } else { - ZEPHIR_INIT_ZVAL_NREF(_6$$10); - ZVAL_LONG(&_6$$10, 1); - zephir_update_property_zval(this_ptr, SL("dirtyState"), &_6$$10); - } - RETURN_MM_BOOL(exists); - -} - -/** - * Perform a count over a resultset - * - * @param array params - * @param \MongoDb connection - */ -PHP_METHOD(Phalcon_Mvc_Collection, getGroupResultset) { - - zend_bool _0, _1; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *params, params_sub, *collection, collection_sub, *connection, connection_sub, source, mongoCollection, conditions, limit, sort, documentsCursor; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(¶ms_sub); - ZVAL_UNDEF(&collection_sub); - ZVAL_UNDEF(&connection_sub); - ZVAL_UNDEF(&source); - ZVAL_UNDEF(&mongoCollection); - ZVAL_UNDEF(&conditions); - ZVAL_UNDEF(&limit); - ZVAL_UNDEF(&sort); - ZVAL_UNDEF(&documentsCursor); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 3, 0, ¶ms, &collection, &connection); - - - - ZEPHIR_CALL_METHOD(&source, collection, "getsource", NULL, 0); - zephir_check_call_status(); - if (UNEXPECTED(ZEPHIR_IS_EMPTY(&source))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_collection_exception_ce, "Method getSource() returns empty string", "phalcon/Mvc/Collection.zep", 1418); - return; - } - ZEPHIR_CALL_METHOD(&mongoCollection, connection, "selectcollection", NULL, 0, &source); - zephir_check_call_status(); - ZEPHIR_OBS_VAR(&conditions); - if (!(zephir_array_isset_long_fetch(&conditions, params, 0, 0 TSRMLS_CC))) { - ZEPHIR_OBS_NVAR(&conditions); - if (!(zephir_array_isset_string_fetch(&conditions, params, SL("conditions"), 0))) { - ZEPHIR_INIT_NVAR(&conditions); - array_init(&conditions); - } - } - _0 = zephir_array_isset_string(params, SL("limit")); - if (!(_0)) { - _0 = zephir_array_isset_string(params, SL("sort")); - } - _1 = _0; - if (!(_1)) { - _1 = zephir_array_isset_string(params, SL("skip")); - } - if (_1) { - ZEPHIR_CALL_METHOD(&documentsCursor, &mongoCollection, "find", NULL, 0, &conditions); - zephir_check_call_status(); - ZEPHIR_OBS_VAR(&limit); - if (zephir_array_isset_string_fetch(&limit, params, SL("limit"), 0)) { - ZEPHIR_CALL_METHOD(NULL, &documentsCursor, "limit", NULL, 0, &limit); - zephir_check_call_status(); - } - ZEPHIR_OBS_VAR(&sort); - if (zephir_array_isset_string_fetch(&sort, params, SL("sort"), 0)) { - ZEPHIR_CALL_METHOD(NULL, &documentsCursor, "sort", NULL, 0, &sort); - zephir_check_call_status(); - } - ZEPHIR_OBS_NVAR(&sort); - if (zephir_array_isset_string_fetch(&sort, params, SL("skip"), 0)) { - ZEPHIR_CALL_METHOD(NULL, &documentsCursor, "skip", NULL, 0, &sort); - zephir_check_call_status(); - } - RETURN_MM_LONG(zephir_fast_count_int(&documentsCursor TSRMLS_CC)); - } - ZEPHIR_RETURN_CALL_METHOD(&mongoCollection, "count", NULL, 0, &conditions); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Returns a collection resultset - * - * @param array params - * @param \MongoDb connection - * @return array - */ -PHP_METHOD(Phalcon_Mvc_Collection, getResultset) { - - zend_class_entry *_1$$3; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zephir_fcall_cache_entry *_10 = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zend_bool unique, _2$$3; - zval *params, params_sub, *collection, collection_sub, *connection, connection_sub, *unique_param = NULL, __$false, source, mongoCollection, conditions, base, documentsCursor, fields, skip, limit, sort, document, collections, className, _6, *_7, _8, _0$$3, _3$$4, _4$$4, _5$$6, _9$$19, _11$$20; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(¶ms_sub); - ZVAL_UNDEF(&collection_sub); - ZVAL_UNDEF(&connection_sub); - ZVAL_BOOL(&__$false, 0); - ZVAL_UNDEF(&source); - ZVAL_UNDEF(&mongoCollection); - ZVAL_UNDEF(&conditions); - ZVAL_UNDEF(&base); - ZVAL_UNDEF(&documentsCursor); - ZVAL_UNDEF(&fields); - ZVAL_UNDEF(&skip); - ZVAL_UNDEF(&limit); - ZVAL_UNDEF(&sort); - ZVAL_UNDEF(&document); - ZVAL_UNDEF(&collections); - ZVAL_UNDEF(&className); - ZVAL_UNDEF(&_6); - ZVAL_UNDEF(&_8); - ZVAL_UNDEF(&_0$$3); - ZVAL_UNDEF(&_3$$4); - ZVAL_UNDEF(&_4$$4); - ZVAL_UNDEF(&_5$$6); - ZVAL_UNDEF(&_9$$19); - ZVAL_UNDEF(&_11$$20); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 4, 0, ¶ms, &collection, &connection, &unique_param); - - unique = zephir_get_boolval(unique_param); - - - ZEPHIR_OBS_VAR(&className); - if (zephir_array_isset_string_fetch(&className, params, SL("class"), 0)) { - ZEPHIR_INIT_VAR(&base); - zephir_fetch_safe_class(&_0$$3, &className); - _1$$3 = zephir_fetch_class_str_ex(Z_STRVAL_P(&_0$$3), Z_STRLEN_P(&_0$$3), ZEND_FETCH_CLASS_AUTO); - if(!_1$$3) { - RETURN_MM_NULL(); - } - object_init_ex(&base, _1$$3); - if (zephir_has_constructor(&base TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, &base, "__construct", NULL, 0); - zephir_check_call_status(); - } - _2$$3 = zephir_instance_of_ev(&base, phalcon_mvc_collectioninterface_ce TSRMLS_CC); - if (!(_2$$3)) { - _2$$3 = zephir_instance_of_ev(&base, phalcon_mvc_collection_document_ce TSRMLS_CC); - } - if (UNEXPECTED(!(_2$$3))) { - ZEPHIR_INIT_VAR(&_3$$4); - object_init_ex(&_3$$4, phalcon_mvc_collection_exception_ce); - ZEPHIR_INIT_VAR(&_4$$4); - ZEPHIR_CONCAT_SVS(&_4$$4, "Object of class '", &className, "' must be an implementation of Phalcon\\Mvc\\CollectionInterface or an instance of Phalcon\\Mvc\\Collection\\Document"); - ZEPHIR_CALL_METHOD(NULL, &_3$$4, "__construct", NULL, 5, &_4$$4); - zephir_check_call_status(); - zephir_throw_exception_debug(&_3$$4, "phalcon/Mvc/Collection.zep", 1489 TSRMLS_CC); - ZEPHIR_MM_RESTORE(); - return; - } - } else { - ZEPHIR_CPY_WRT(&base, collection); - } - if (zephir_instance_of_ev(&base, phalcon_mvc_collection_ce TSRMLS_CC)) { - ZVAL_LONG(&_5$$6, 0); - ZEPHIR_CALL_METHOD(NULL, &base, "setdirtystate", NULL, 0, &_5$$6); - zephir_check_call_status(); - } - ZEPHIR_CALL_METHOD(&source, collection, "getsource", NULL, 0); - zephir_check_call_status(); - if (UNEXPECTED(ZEPHIR_IS_EMPTY(&source))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_collection_exception_ce, "Method getSource() returns empty string", "phalcon/Mvc/Collection.zep", 1503); - return; - } - ZEPHIR_CALL_METHOD(&mongoCollection, connection, "selectcollection", NULL, 0, &source); - zephir_check_call_status(); - if (UNEXPECTED(Z_TYPE_P(&mongoCollection) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_collection_exception_ce, "Couldn't select mongo collection", "phalcon/Mvc/Collection.zep", 1509); - return; - } - ZEPHIR_OBS_VAR(&conditions); - if (!(zephir_array_isset_long_fetch(&conditions, params, 0, 0 TSRMLS_CC))) { - ZEPHIR_OBS_NVAR(&conditions); - if (!(zephir_array_isset_string_fetch(&conditions, params, SL("conditions"), 0))) { - ZEPHIR_INIT_NVAR(&conditions); - array_init(&conditions); - } - } - if (UNEXPECTED(Z_TYPE_P(&conditions) != IS_ARRAY)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_collection_exception_ce, "Find parameters must be an array", "phalcon/Mvc/Collection.zep", 1522); - return; - } - ZEPHIR_OBS_VAR(&fields); - if (zephir_array_isset_string_fetch(&fields, params, SL("fields"), 0)) { - ZEPHIR_CALL_METHOD(&documentsCursor, &mongoCollection, "find", NULL, 0, &conditions, &fields); - zephir_check_call_status(); - } else { - ZEPHIR_CALL_METHOD(&documentsCursor, &mongoCollection, "find", NULL, 0, &conditions); - zephir_check_call_status(); - } - ZEPHIR_OBS_VAR(&limit); - if (zephir_array_isset_string_fetch(&limit, params, SL("limit"), 0)) { - ZEPHIR_CALL_METHOD(NULL, &documentsCursor, "limit", NULL, 0, &limit); - zephir_check_call_status(); - } - ZEPHIR_OBS_VAR(&sort); - if (zephir_array_isset_string_fetch(&sort, params, SL("sort"), 0)) { - ZEPHIR_CALL_METHOD(NULL, &documentsCursor, "sort", NULL, 0, &sort); - zephir_check_call_status(); - } - ZEPHIR_OBS_VAR(&skip); - if (zephir_array_isset_string_fetch(&skip, params, SL("skip"), 0)) { - ZEPHIR_CALL_METHOD(NULL, &documentsCursor, "skip", NULL, 0, &skip); - zephir_check_call_status(); - } - if (unique) { - ZEPHIR_CALL_METHOD(NULL, &documentsCursor, "rewind", NULL, 0); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&document, &documentsCursor, "current", NULL, 0); - zephir_check_call_status(); - if (Z_TYPE_P(&document) != IS_ARRAY) { - RETURN_MM_BOOL(0); - } - ZEPHIR_RETURN_CALL_SELF("cloneresult", NULL, 0, &base, &document); - zephir_check_call_status(); - RETURN_MM(); - } - ZEPHIR_INIT_VAR(&collections); - array_init(&collections); - ZEPHIR_CALL_FUNCTION(&_6, "iterator_to_array", NULL, 426, &documentsCursor, &__$false); - zephir_check_call_status(); - zephir_is_iterable(&_6, 0, "phalcon/Mvc/Collection.zep", 1584); - if (Z_TYPE_P(&_6) == IS_ARRAY) { - ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_6), _7) - { - ZEPHIR_INIT_NVAR(&document); - ZVAL_COPY(&document, _7); - ZEPHIR_CALL_SELF(&_9$$19, "cloneresult", &_10, 0, &base, &document); - zephir_check_call_status(); - zephir_array_append(&collections, &_9$$19, PH_SEPARATE, "phalcon/Mvc/Collection.zep", 1581); - } ZEND_HASH_FOREACH_END(); - } else { - ZEPHIR_CALL_METHOD(NULL, &_6, "rewind", NULL, 0); - zephir_check_call_status(); - while (1) { - ZEPHIR_CALL_METHOD(&_8, &_6, "valid", NULL, 0); - zephir_check_call_status(); - if (!zend_is_true(&_8)) { - break; - } - ZEPHIR_CALL_METHOD(&document, &_6, "current", NULL, 0); - zephir_check_call_status(); - ZEPHIR_CALL_SELF(&_11$$20, "cloneresult", &_10, 0, &base, &document); - zephir_check_call_status(); - zephir_array_append(&collections, &_11$$20, PH_SEPARATE, "phalcon/Mvc/Collection.zep", 1581); - ZEPHIR_CALL_METHOD(NULL, &_6, "next", NULL, 0); - zephir_check_call_status(); - } - } - ZEPHIR_INIT_NVAR(&document); - RETURN_CCTOR(&collections); - -} - -/** - * Executes internal hooks before save a document - */ -PHP_METHOD(Phalcon_Mvc_Collection, preSave) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zend_bool disableEvents, exists; - zval *container, container_sub, *disableEvents_param = NULL, *exists_param = NULL, eventName, _3, _4, _0$$3, _1$$3, _2$$3, _5$$9, _6$$10, _7$$10, _8$$10, _9$$10, _10$$10; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&container_sub); - ZVAL_UNDEF(&eventName); - ZVAL_UNDEF(&_3); - ZVAL_UNDEF(&_4); - ZVAL_UNDEF(&_0$$3); - ZVAL_UNDEF(&_1$$3); - ZVAL_UNDEF(&_2$$3); - ZVAL_UNDEF(&_5$$9); - ZVAL_UNDEF(&_6$$10); - ZVAL_UNDEF(&_7$$10); - ZVAL_UNDEF(&_8$$10); - ZVAL_UNDEF(&_9$$10); - ZVAL_UNDEF(&_10$$10); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 3, 0, &container, &disableEvents_param, &exists_param); - - disableEvents = zephir_get_boolval(disableEvents_param); - exists = zephir_get_boolval(exists_param); - - - if (!(disableEvents)) { - ZEPHIR_INIT_VAR(&_1$$3); - ZVAL_STRING(&_1$$3, "beforeValidation"); - ZEPHIR_CALL_METHOD(&_0$$3, this_ptr, "fireeventcancel", NULL, 0, &_1$$3); - zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_0$$3)) { - RETURN_MM_BOOL(0); - } - ZEPHIR_INIT_VAR(&eventName); - if (!(exists)) { - ZVAL_STRING(&eventName, "beforeValidationOnCreate"); - } else { - ZVAL_STRING(&eventName, "beforeValidationOnUpdate"); - } - ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "fireeventcancel", NULL, 0, &eventName); - zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_2$$3)) { - RETURN_MM_BOOL(0); - } - } - ZEPHIR_INIT_VAR(&_4); - ZVAL_STRING(&_4, "validation"); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "fireeventcancel", NULL, 0, &_4); - zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_3)) { - if (!(disableEvents)) { - ZEPHIR_INIT_VAR(&_5$$9); - ZVAL_STRING(&_5$$9, "onValidationFails"); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "fireevent", NULL, 0, &_5$$9); - zephir_check_call_status(); - } - RETURN_MM_BOOL(0); - } - if (!(disableEvents)) { - ZEPHIR_INIT_NVAR(&eventName); - if (!(exists)) { - ZVAL_STRING(&eventName, "afterValidationOnCreate"); - } else { - ZVAL_STRING(&eventName, "afterValidationOnUpdate"); - } - ZEPHIR_CALL_METHOD(&_6$$10, this_ptr, "fireeventcancel", NULL, 0, &eventName); - zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_6$$10)) { - RETURN_MM_BOOL(0); - } - ZEPHIR_INIT_VAR(&_8$$10); - ZVAL_STRING(&_8$$10, "afterValidation"); - ZEPHIR_CALL_METHOD(&_7$$10, this_ptr, "fireeventcancel", NULL, 0, &_8$$10); - zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_7$$10)) { - RETURN_MM_BOOL(0); - } - ZEPHIR_INIT_NVAR(&_8$$10); - ZVAL_STRING(&_8$$10, "beforeSave"); - ZEPHIR_CALL_METHOD(&_9$$10, this_ptr, "fireeventcancel", NULL, 0, &_8$$10); - zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_9$$10)) { - RETURN_MM_BOOL(0); - } - ZEPHIR_INIT_NVAR(&eventName); - if (exists) { - ZVAL_STRING(&eventName, "beforeUpdate"); - } else { - ZVAL_STRING(&eventName, "beforeCreate"); - } - ZEPHIR_CALL_METHOD(&_10$$10, this_ptr, "fireeventcancel", NULL, 0, &eventName); - zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_10$$10)) { - RETURN_MM_BOOL(0); - } - } - RETURN_MM_BOOL(1); - -} - -/** - * Executes internal events after save a document - */ -PHP_METHOD(Phalcon_Mvc_Collection, postSave) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *disableEvents_param = NULL, *success_param = NULL, *exists_param = NULL, eventName, _0$$4, _1$$3, _2$$5; - zend_bool disableEvents, success, exists; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&eventName); - ZVAL_UNDEF(&_0$$4); - ZVAL_UNDEF(&_1$$3); - ZVAL_UNDEF(&_2$$5); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 3, 0, &disableEvents_param, &success_param, &exists_param); - - disableEvents = zephir_get_boolval(disableEvents_param); - success = zephir_get_boolval(success_param); - exists = zephir_get_boolval(exists_param); - - - if (!(success)) { - if (!(disableEvents)) { - ZEPHIR_INIT_VAR(&_0$$4); - ZVAL_STRING(&_0$$4, "notSaved"); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "fireevent", NULL, 0, &_0$$4); - zephir_check_call_status(); - } - if (disableEvents) { - ZVAL_BOOL(&_1$$3, 1); - } else { - ZVAL_BOOL(&_1$$3, 0); - } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "canceloperation", NULL, 0, &_1$$3); - zephir_check_call_status(); - RETURN_MM_BOOL(0); - } - if (!(disableEvents)) { - ZEPHIR_INIT_VAR(&eventName); - if (exists) { - ZVAL_STRING(&eventName, "afterUpdate"); - } else { - ZVAL_STRING(&eventName, "afterCreate"); - } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "fireevent", NULL, 0, &eventName); - zephir_check_call_status(); - ZEPHIR_INIT_VAR(&_2$$5); - ZVAL_STRING(&_2$$5, "afterSave"); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "fireevent", NULL, 0, &_2$$5); - zephir_check_call_status(); - } - RETURN_MM_BOOL(success); - -} - -/** - * Shared Code for CU Operations - * Prepares Collection - */ -PHP_METHOD(Phalcon_Mvc_Collection, prepareCU) { - - zval container, connection, source, collection, _0, _1$$3, _2$$3, _4$$3; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zephir_fcall_cache_entry *_3 = NULL; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&container); - ZVAL_UNDEF(&connection); - ZVAL_UNDEF(&source); - ZVAL_UNDEF(&collection); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1$$3); - ZVAL_UNDEF(&_2$$3); - ZVAL_UNDEF(&_4$$3); - - ZEPHIR_MM_GROW(); - - zephir_read_property(&_0, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CPY_WRT(&container, &_0); - if (UNEXPECTED(Z_TYPE_P(&container) != IS_OBJECT)) { - ZEPHIR_INIT_VAR(&_1$$3); - object_init_ex(&_1$$3, phalcon_mvc_collection_exception_ce); - ZEPHIR_INIT_VAR(&_4$$3); - ZVAL_STRING(&_4$$3, "the services related to the ODM"); - ZEPHIR_CALL_CE_STATIC(&_2$$3, phalcon_mvc_collection_exception_ce, "containerservicenotfound", &_3, 0, &_4$$3); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 5, &_2$$3); - zephir_check_call_status(); - zephir_throw_exception_debug(&_1$$3, "phalcon/Mvc/Collection.zep", 1709 TSRMLS_CC); - ZEPHIR_MM_RESTORE(); - return; - } - ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 0); - zephir_check_call_status(); - if (UNEXPECTED(ZEPHIR_IS_EMPTY(&source))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_collection_exception_ce, "Method getSource() returns empty string", "phalcon/Mvc/Collection.zep", 1714); - return; - } - ZEPHIR_CALL_METHOD(&connection, this_ptr, "getconnection", NULL, 0); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&collection, &connection, "selectcollection", NULL, 0, &source); - zephir_check_call_status(); - RETURN_CCTOR(&collection); - -} - -zend_object *zephir_init_properties_Phalcon_Mvc_Collection(zend_class_entry *class_type TSRMLS_DC) { - - zval _0, _1$$3; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1$$3); - - ZEPHIR_MM_GROW(); - - { - zval local_this_ptr, *this_ptr = &local_this_ptr; - ZEPHIR_CREATE_OBJECT(this_ptr, class_type); - zephir_read_property(&_0, this_ptr, SL("errorMessages"), PH_NOISY_CC | PH_READONLY); - if (Z_TYPE_P(&_0) == IS_NULL) { - ZEPHIR_INIT_VAR(&_1$$3); - array_init(&_1$$3); - zephir_update_property_zval(this_ptr, SL("errorMessages"), &_1$$3); - } - ZEPHIR_MM_RESTORE(); - return Z_OBJ_P(this_ptr); - } - -} - diff --git a/ext/phalcon/mvc/collection.zep.h b/ext/phalcon/mvc/collection.zep.h deleted file mode 100644 index 19816a3bc82..00000000000 --- a/ext/phalcon/mvc/collection.zep.h +++ /dev/null @@ -1,487 +0,0 @@ - -extern zend_class_entry *phalcon_mvc_collection_ce; - -ZEPHIR_INIT_CLASS(Phalcon_Mvc_Collection); - -PHP_METHOD(Phalcon_Mvc_Collection, __construct); -PHP_METHOD(Phalcon_Mvc_Collection, addBehavior); -PHP_METHOD(Phalcon_Mvc_Collection, aggregate); -PHP_METHOD(Phalcon_Mvc_Collection, appendMessage); -PHP_METHOD(Phalcon_Mvc_Collection, cloneResult); -PHP_METHOD(Phalcon_Mvc_Collection, create); -PHP_METHOD(Phalcon_Mvc_Collection, createIfNotExist); -PHP_METHOD(Phalcon_Mvc_Collection, count); -PHP_METHOD(Phalcon_Mvc_Collection, delete); -PHP_METHOD(Phalcon_Mvc_Collection, find); -PHP_METHOD(Phalcon_Mvc_Collection, findById); -PHP_METHOD(Phalcon_Mvc_Collection, findFirst); -PHP_METHOD(Phalcon_Mvc_Collection, fireEvent); -PHP_METHOD(Phalcon_Mvc_Collection, fireEventCancel); -PHP_METHOD(Phalcon_Mvc_Collection, getCollectionManager); -PHP_METHOD(Phalcon_Mvc_Collection, getConnection); -PHP_METHOD(Phalcon_Mvc_Collection, getConnectionService); -PHP_METHOD(Phalcon_Mvc_Collection, getDI); -PHP_METHOD(Phalcon_Mvc_Collection, getDirtyState); -PHP_METHOD(Phalcon_Mvc_Collection, getEventsManager); -PHP_METHOD(Phalcon_Mvc_Collection, getId); -PHP_METHOD(Phalcon_Mvc_Collection, getMessages); -PHP_METHOD(Phalcon_Mvc_Collection, getReservedAttributes); -PHP_METHOD(Phalcon_Mvc_Collection, getSource); -PHP_METHOD(Phalcon_Mvc_Collection, readAttribute); -PHP_METHOD(Phalcon_Mvc_Collection, save); -PHP_METHOD(Phalcon_Mvc_Collection, serialize); -PHP_METHOD(Phalcon_Mvc_Collection, setConnectionService); -PHP_METHOD(Phalcon_Mvc_Collection, setDI); -PHP_METHOD(Phalcon_Mvc_Collection, setDirtyState); -PHP_METHOD(Phalcon_Mvc_Collection, setEventsManager); -PHP_METHOD(Phalcon_Mvc_Collection, setId); -PHP_METHOD(Phalcon_Mvc_Collection, setSource); -PHP_METHOD(Phalcon_Mvc_Collection, skipOperation); -PHP_METHOD(Phalcon_Mvc_Collection, summatory); -PHP_METHOD(Phalcon_Mvc_Collection, toArray); -PHP_METHOD(Phalcon_Mvc_Collection, unserialize); -PHP_METHOD(Phalcon_Mvc_Collection, update); -PHP_METHOD(Phalcon_Mvc_Collection, validate); -PHP_METHOD(Phalcon_Mvc_Collection, useImplicitObjectIds); -PHP_METHOD(Phalcon_Mvc_Collection, writeAttribute); -PHP_METHOD(Phalcon_Mvc_Collection, cancelOperation); -PHP_METHOD(Phalcon_Mvc_Collection, exists); -PHP_METHOD(Phalcon_Mvc_Collection, getGroupResultset); -PHP_METHOD(Phalcon_Mvc_Collection, getResultset); -PHP_METHOD(Phalcon_Mvc_Collection, preSave); -PHP_METHOD(Phalcon_Mvc_Collection, postSave); -PHP_METHOD(Phalcon_Mvc_Collection, prepareCU); -zend_object *zephir_init_properties_Phalcon_Mvc_Collection(zend_class_entry *class_type TSRMLS_DC); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection___construct, 0, 0, 0) - ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 1) - ZEND_ARG_OBJ_INFO(0, modelsManager, Phalcon\\Mvc\\Collection\\ManagerInterface, 1) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_addbehavior, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, behavior, Phalcon\\Mvc\\Collection\\BehaviorInterface, 0) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_aggregate, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_aggregate, 0, 0, IS_ARRAY, NULL, 0) -#endif - ZEND_ARG_ARRAY_INFO(0, parameters, 1) - ZEND_ARG_ARRAY_INFO(0, options, 1) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_appendmessage, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, message, Phalcon\\Messages\\MessageInterface, 0) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_mvc_collection_cloneresult, 0, 2, Phalcon\\Mvc\\CollectionInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_cloneresult, 0, 2, IS_OBJECT, "Phalcon\\Mvc\\CollectionInterface", 0) -#endif - ZEND_ARG_OBJ_INFO(0, collection, Phalcon\\Mvc\\CollectionInterface, 0) - ZEND_ARG_ARRAY_INFO(0, document, 0) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_create, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_create, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_createifnotexist, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_createifnotexist, 0, 1, _IS_BOOL, NULL, 0) -#endif - ZEND_ARG_ARRAY_INFO(0, criteria, 0) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_count, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_count, 0, 0, IS_LONG, NULL, 0) -#endif - ZEND_ARG_ARRAY_INFO(0, parameters, 1) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_delete, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_delete, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_find, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_find, 0, 0, IS_ARRAY, NULL, 0) -#endif - ZEND_ARG_ARRAY_INFO(0, parameters, 1) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_mvc_collection_findbyid, 0, 1, Phalcon\\Mvc\\CollectionInterface, 1) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_findbyid, 0, 1, IS_OBJECT, "Phalcon\\Mvc\\CollectionInterface", 1) -#endif - ZEND_ARG_INFO(0, id) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_findfirst, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_findfirst, 0, 0, IS_ARRAY, NULL, 0) -#endif - ZEND_ARG_ARRAY_INFO(0, parameters, 1) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_fireevent, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_fireevent, 0, 1, _IS_BOOL, NULL, 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, eventName, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, eventName) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_fireeventcancel, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_fireeventcancel, 0, 1, _IS_BOOL, NULL, 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, eventName, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, eventName) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_mvc_collection_getcollectionmanager, 0, 0, Phalcon\\Mvc\\Collection\\ManagerInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_getcollectionmanager, 0, 0, IS_OBJECT, "Phalcon\\Mvc\\Collection\\ManagerInterface", 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_getconnectionservice, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_getconnectionservice, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_mvc_collection_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_getdirtystate, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_getdirtystate, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_mvc_collection_geteventsmanager, 0, 0, Phalcon\\Mvc\\Collection\\ManagerInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_geteventsmanager, 0, 0, IS_OBJECT, "Phalcon\\Mvc\\Collection\\ManagerInterface", 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_getmessages, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_getmessages, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_getreservedattributes, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_getreservedattributes, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_getsource, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_getsource, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_readattribute, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, attribute, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, attribute) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_save, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_save, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_serialize, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_serialize, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_mvc_collection_setconnectionservice, 0, 1, Phalcon\\Mvc\\Collection, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_setconnectionservice, 0, 1, IS_OBJECT, "Phalcon\\Mvc\\Collection", 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, connectionService, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, connectionService) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_setdi, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_mvc_collection_setdirtystate, 0, 1, Phalcon\\Mvc\\CollectionInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_setdirtystate, 0, 1, IS_OBJECT, "Phalcon\\Mvc\\CollectionInterface", 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, dirtyState, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, dirtyState) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_seteventsmanager, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, eventsManager, Phalcon\\Mvc\\Collection\\ManagerInterface, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_setid, 0, 0, 1) - ZEND_ARG_INFO(0, id) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_mvc_collection_setsource, 0, 1, Phalcon\\Mvc\\Collection, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_setsource, 0, 1, IS_OBJECT, "Phalcon\\Mvc\\Collection", 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, source, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, source) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_skipoperation, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, skip, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, skip) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_summatory, 0, 1, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_summatory, 0, 1, IS_ARRAY, NULL, 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, field, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, field) -#endif - ZEND_ARG_INFO(0, conditions) - ZEND_ARG_INFO(0, finalize) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_toarray, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_toarray, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_unserialize, 0, 0, 1) - ZEND_ARG_INFO(0, data) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_update, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_update, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_validate, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_validate, 0, 1, _IS_BOOL, NULL, 0) -#endif - ZEND_ARG_OBJ_INFO(0, validator, Phalcon\\Validation\\ValidationInterface, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_useimplicitobjectids, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, useImplicitObjectIds, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, useImplicitObjectIds) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_writeattribute, 0, 0, 2) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, attribute, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, attribute) -#endif - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_canceloperation, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_canceloperation, 0, 1, _IS_BOOL, NULL, 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, disableEvents, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, disableEvents) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_exists, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_exists, 0, 1, _IS_BOOL, NULL, 0) -#endif - ZEND_ARG_INFO(0, collection) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_getgroupresultset, 0, 3, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_getgroupresultset, 0, 3, IS_LONG, NULL, 0) -#endif - ZEND_ARG_INFO(0, params) - ZEND_ARG_OBJ_INFO(0, collection, Phalcon\\Mvc\\Collection, 0) - ZEND_ARG_INFO(0, connection) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_getresultset, 0, 0, 4) - ZEND_ARG_INFO(0, params) - ZEND_ARG_OBJ_INFO(0, collection, Phalcon\\Mvc\\CollectionInterface, 0) - ZEND_ARG_INFO(0, connection) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, unique, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, unique) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_presave, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_presave, 0, 3, _IS_BOOL, NULL, 0) -#endif - ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, disableEvents, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, disableEvents) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, exists, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, exists) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_postsave, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_postsave, 0, 3, _IS_BOOL, NULL, 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, disableEvents, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, disableEvents) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, success, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, success) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, exists, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, exists) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(phalcon_mvc_collection_method_entry) { - PHP_ME(Phalcon_Mvc_Collection, __construct, arginfo_phalcon_mvc_collection___construct, ZEND_ACC_FINAL|ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Mvc_Collection, addBehavior, arginfo_phalcon_mvc_collection_addbehavior, ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Mvc_Collection, aggregate, arginfo_phalcon_mvc_collection_aggregate, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Phalcon_Mvc_Collection, appendMessage, arginfo_phalcon_mvc_collection_appendmessage, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection, cloneResult, arginfo_phalcon_mvc_collection_cloneresult, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Phalcon_Mvc_Collection, create, arginfo_phalcon_mvc_collection_create, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection, createIfNotExist, arginfo_phalcon_mvc_collection_createifnotexist, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection, count, arginfo_phalcon_mvc_collection_count, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Phalcon_Mvc_Collection, delete, arginfo_phalcon_mvc_collection_delete, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection, find, arginfo_phalcon_mvc_collection_find, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Phalcon_Mvc_Collection, findById, arginfo_phalcon_mvc_collection_findbyid, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Phalcon_Mvc_Collection, findFirst, arginfo_phalcon_mvc_collection_findfirst, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Phalcon_Mvc_Collection, fireEvent, arginfo_phalcon_mvc_collection_fireevent, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection, fireEventCancel, arginfo_phalcon_mvc_collection_fireeventcancel, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection, getCollectionManager, arginfo_phalcon_mvc_collection_getcollectionmanager, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection, getConnection, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection, getConnectionService, arginfo_phalcon_mvc_collection_getconnectionservice, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection, getDI, arginfo_phalcon_mvc_collection_getdi, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection, getDirtyState, arginfo_phalcon_mvc_collection_getdirtystate, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection, getEventsManager, arginfo_phalcon_mvc_collection_geteventsmanager, ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Mvc_Collection, getId, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection, getMessages, arginfo_phalcon_mvc_collection_getmessages, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection, getReservedAttributes, arginfo_phalcon_mvc_collection_getreservedattributes, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection, getSource, arginfo_phalcon_mvc_collection_getsource, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection, readAttribute, arginfo_phalcon_mvc_collection_readattribute, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection, save, arginfo_phalcon_mvc_collection_save, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection, serialize, arginfo_phalcon_mvc_collection_serialize, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection, setConnectionService, arginfo_phalcon_mvc_collection_setconnectionservice, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection, setDI, arginfo_phalcon_mvc_collection_setdi, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection, setDirtyState, arginfo_phalcon_mvc_collection_setdirtystate, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection, setEventsManager, arginfo_phalcon_mvc_collection_seteventsmanager, ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Mvc_Collection, setId, arginfo_phalcon_mvc_collection_setid, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection, setSource, arginfo_phalcon_mvc_collection_setsource, ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Mvc_Collection, skipOperation, arginfo_phalcon_mvc_collection_skipoperation, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection, summatory, arginfo_phalcon_mvc_collection_summatory, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Phalcon_Mvc_Collection, toArray, arginfo_phalcon_mvc_collection_toarray, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection, unserialize, arginfo_phalcon_mvc_collection_unserialize, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection, update, arginfo_phalcon_mvc_collection_update, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection, validate, arginfo_phalcon_mvc_collection_validate, ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Mvc_Collection, useImplicitObjectIds, arginfo_phalcon_mvc_collection_useimplicitobjectids, ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Mvc_Collection, writeAttribute, arginfo_phalcon_mvc_collection_writeattribute, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection, cancelOperation, arginfo_phalcon_mvc_collection_canceloperation, ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Mvc_Collection, exists, arginfo_phalcon_mvc_collection_exists, ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Mvc_Collection, getGroupResultset, arginfo_phalcon_mvc_collection_getgroupresultset, ZEND_ACC_PROTECTED|ZEND_ACC_STATIC) - PHP_ME(Phalcon_Mvc_Collection, getResultset, arginfo_phalcon_mvc_collection_getresultset, ZEND_ACC_PROTECTED|ZEND_ACC_STATIC) - PHP_ME(Phalcon_Mvc_Collection, preSave, arginfo_phalcon_mvc_collection_presave, ZEND_ACC_FINAL|ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Mvc_Collection, postSave, arginfo_phalcon_mvc_collection_postsave, ZEND_ACC_FINAL|ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Mvc_Collection, prepareCU, NULL, ZEND_ACC_PROTECTED) - PHP_FE_END -}; diff --git a/ext/phalcon/mvc/collection/behavior.zep.c b/ext/phalcon/mvc/collection/behavior.zep.c deleted file mode 100644 index 11d51c09f81..00000000000 --- a/ext/phalcon/mvc/collection/behavior.zep.c +++ /dev/null @@ -1,210 +0,0 @@ - -#ifdef HAVE_CONFIG_H -#include "../../../ext_config.h" -#endif - -#include -#include "../../../php_ext.h" -#include "../../../ext.h" - -#include -#include -#include - -#include "kernel/main.h" -#include "kernel/object.h" -#include "kernel/memory.h" -#include "kernel/operators.h" -#include "kernel/array.h" -#include "ext/spl/spl_exceptions.h" -#include "kernel/exception.h" - - -/** - * This file is part of the Phalcon Framework. - * - * (c) Phalcon Team - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ -/** - * Phalcon\Mvc\Collection\Behavior - * - * This is an optional base class for ORM behaviors - */ -ZEPHIR_INIT_CLASS(Phalcon_Mvc_Collection_Behavior) { - - ZEPHIR_REGISTER_CLASS(Phalcon\\Mvc\\Collection, Behavior, phalcon, mvc_collection_behavior, phalcon_mvc_collection_behavior_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); - - zend_declare_property_null(phalcon_mvc_collection_behavior_ce, SL("options"), ZEND_ACC_PROTECTED TSRMLS_CC); - - zend_class_implements(phalcon_mvc_collection_behavior_ce TSRMLS_CC, 1, phalcon_mvc_collection_behaviorinterface_ce); - return SUCCESS; - -} - -/** - * Phalcon\Mvc\Collection\Behavior - */ -PHP_METHOD(Phalcon_Mvc_Collection_Behavior, __construct) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *options_param = NULL; - zval options; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&options); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 0, 1, &options_param); - - if (!options_param) { - ZEPHIR_INIT_VAR(&options); - array_init(&options); - } else { - zephir_get_arrval(&options, options_param); - } - - - zephir_update_property_zval(this_ptr, SL("options"), &options); - ZEPHIR_MM_RESTORE(); - -} - -/** - * Returns the behavior options related to an event - * - * @return array - */ -PHP_METHOD(Phalcon_Mvc_Collection_Behavior, getOptions) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *eventName_param = NULL, options, eventOptions, _0; - zval eventName; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&eventName); - ZVAL_UNDEF(&options); - ZVAL_UNDEF(&eventOptions); - ZVAL_UNDEF(&_0); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 0, 1, &eventName_param); - - if (!eventName_param) { - ZEPHIR_INIT_VAR(&eventName); - ZVAL_STRING(&eventName, ""); - } else { - if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { - zephir_get_strval(&eventName, eventName_param); - } else { - ZEPHIR_INIT_VAR(&eventName); - ZVAL_EMPTY_STRING(&eventName); - } - } - - - zephir_read_property(&_0, this_ptr, SL("options"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CPY_WRT(&options, &_0); - if (!ZEPHIR_IS_STRING_IDENTICAL(&eventName, "")) { - if (zephir_array_isset_fetch(&eventOptions, &options, &eventName, 1 TSRMLS_CC)) { - RETURN_CTOR(&eventOptions); - } - RETURN_MM_NULL(); - } - RETURN_CCTOR(&options); - -} - -/** - * Acts as fallbacks when a missing method is called on the collection - */ -PHP_METHOD(Phalcon_Mvc_Collection_Behavior, missingMethod) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval arguments; - zval method; - zval *model, model_sub, *method_param = NULL, *arguments_param = NULL; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&model_sub); - ZVAL_UNDEF(&method); - ZVAL_UNDEF(&arguments); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 2, 1, &model, &method_param, &arguments_param); - - zephir_get_strval(&method, method_param); - if (!arguments_param) { - ZEPHIR_INIT_VAR(&arguments); - array_init(&arguments); - } else { - zephir_get_arrval(&arguments, arguments_param); - } - - - RETURN_MM_NULL(); - -} - -/** - * Checks whether the behavior must take action on certain event - */ -PHP_METHOD(Phalcon_Mvc_Collection_Behavior, mustTakeAction) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *eventName_param = NULL, _0; - zval eventName; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&eventName); - ZVAL_UNDEF(&_0); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &eventName_param); - - if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { - zephir_get_strval(&eventName, eventName_param); - } else { - ZEPHIR_INIT_VAR(&eventName); - ZVAL_EMPTY_STRING(&eventName); - } - - - zephir_read_property(&_0, this_ptr, SL("options"), PH_NOISY_CC | PH_READONLY); - RETURN_MM_BOOL(zephir_array_isset(&_0, &eventName)); - -} - -/** - * This method receives the notifications from the EventsManager - */ -PHP_METHOD(Phalcon_Mvc_Collection_Behavior, notify) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *type_param = NULL, *model, model_sub; - zval type; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&type); - ZVAL_UNDEF(&model_sub); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 2, 0, &type_param, &model); - - zephir_get_strval(&type, type_param); - - - RETURN_MM_NULL(); - -} - diff --git a/ext/phalcon/mvc/collection/behavior.zep.h b/ext/phalcon/mvc/collection/behavior.zep.h deleted file mode 100644 index 3cbc2872eab..00000000000 --- a/ext/phalcon/mvc/collection/behavior.zep.h +++ /dev/null @@ -1,62 +0,0 @@ - -extern zend_class_entry *phalcon_mvc_collection_behavior_ce; - -ZEPHIR_INIT_CLASS(Phalcon_Mvc_Collection_Behavior); - -PHP_METHOD(Phalcon_Mvc_Collection_Behavior, __construct); -PHP_METHOD(Phalcon_Mvc_Collection_Behavior, getOptions); -PHP_METHOD(Phalcon_Mvc_Collection_Behavior, missingMethod); -PHP_METHOD(Phalcon_Mvc_Collection_Behavior, mustTakeAction); -PHP_METHOD(Phalcon_Mvc_Collection_Behavior, notify); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_behavior___construct, 0, 0, 0) - ZEND_ARG_ARRAY_INFO(0, options, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_behavior_getoptions, 0, 0, 0) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, eventName, IS_STRING, 1) -#else - ZEND_ARG_INFO(0, eventName) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_behavior_missingmethod, 0, 0, 2) - ZEND_ARG_OBJ_INFO(0, model, Phalcon\\Mvc\\CollectionInterface, 0) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, method, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, method) -#endif - ZEND_ARG_ARRAY_INFO(0, arguments, 0) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_behavior_musttakeaction, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_behavior_musttakeaction, 0, 1, _IS_BOOL, NULL, 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, eventName, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, eventName) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_behavior_notify, 0, 0, 2) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, type, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, type) -#endif - ZEND_ARG_OBJ_INFO(0, model, Phalcon\\Mvc\\CollectionInterface, 0) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(phalcon_mvc_collection_behavior_method_entry) { - PHP_ME(Phalcon_Mvc_Collection_Behavior, __construct, arginfo_phalcon_mvc_collection_behavior___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Mvc_Collection_Behavior, getOptions, arginfo_phalcon_mvc_collection_behavior_getoptions, ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Mvc_Collection_Behavior, missingMethod, arginfo_phalcon_mvc_collection_behavior_missingmethod, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection_Behavior, mustTakeAction, arginfo_phalcon_mvc_collection_behavior_musttakeaction, ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Mvc_Collection_Behavior, notify, arginfo_phalcon_mvc_collection_behavior_notify, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/phalcon/mvc/collection/behavior/softdelete.zep.c b/ext/phalcon/mvc/collection/behavior/softdelete.zep.c deleted file mode 100644 index 73720f1a0fd..00000000000 --- a/ext/phalcon/mvc/collection/behavior/softdelete.zep.c +++ /dev/null @@ -1,154 +0,0 @@ - -#ifdef HAVE_CONFIG_H -#include "../../../../ext_config.h" -#endif - -#include -#include "../../../../php_ext.h" -#include "../../../../ext.h" - -#include -#include -#include - -#include "kernel/main.h" -#include "kernel/operators.h" -#include "kernel/fcall.h" -#include "kernel/array.h" -#include "kernel/memory.h" -#include "kernel/exception.h" -#include "kernel/object.h" -#include "ext/spl/spl_exceptions.h" - - -/** - * This file is part of the Phalcon Framework. - * - * (c) Phalcon Team - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ -/** - * Phalcon\Mvc\Collection\Behavior\SoftDelete - * - * Instead of permanently delete a record it marks the record as - * deleted changing the value of a flag column - */ -ZEPHIR_INIT_CLASS(Phalcon_Mvc_Collection_Behavior_SoftDelete) { - - ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Mvc\\Collection\\Behavior, SoftDelete, phalcon, mvc_collection_behavior_softdelete, phalcon_mvc_collection_behavior_ce, phalcon_mvc_collection_behavior_softdelete_method_entry, 0); - - return SUCCESS; - -} - -/** - * Listens for notifications from the models manager - */ -PHP_METHOD(Phalcon_Mvc_Collection_Behavior_SoftDelete, notify) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zephir_fcall_cache_entry *_6 = NULL, *_7 = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *type_param = NULL, *model, model_sub, options, value, field, updateModel, message, _0, _1, _2, _3$$7, *_4$$7, _5$$7; - zval type; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&type); - ZVAL_UNDEF(&model_sub); - ZVAL_UNDEF(&options); - ZVAL_UNDEF(&value); - ZVAL_UNDEF(&field); - ZVAL_UNDEF(&updateModel); - ZVAL_UNDEF(&message); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&_2); - ZVAL_UNDEF(&_3$$7); - ZVAL_UNDEF(&_5$$7); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 2, 0, &type_param, &model); - - if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { - zephir_get_strval(&type, type_param); - } else { - ZEPHIR_INIT_VAR(&type); - ZVAL_EMPTY_STRING(&type); - } - - - if (!ZEPHIR_IS_STRING_IDENTICAL(&type, "beforeDelete")) { - RETURN_MM_NULL(); - } - ZEPHIR_CALL_METHOD(&options, this_ptr, "getoptions", NULL, 0); - zephir_check_call_status(); - ZEPHIR_OBS_VAR(&value); - if (UNEXPECTED(!(zephir_array_isset_string_fetch(&value, &options, SL("value"), 0)))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_collection_exception_ce, "The option 'value' is required", "phalcon/Mvc/Collection/Behavior/SoftDelete.zep", 42); - return; - } - ZEPHIR_OBS_VAR(&field); - if (UNEXPECTED(!(zephir_array_isset_string_fetch(&field, &options, SL("field"), 0)))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_collection_exception_ce, "The option 'field' is required", "phalcon/Mvc/Collection/Behavior/SoftDelete.zep", 49); - return; - } - ZVAL_BOOL(&_0, 1); - ZEPHIR_CALL_METHOD(NULL, model, "skipoperation", NULL, 0, &_0); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_1, model, "readattribute", NULL, 0, &field); - zephir_check_call_status(); - if (ZEPHIR_IS_EQUAL(&_1, &value)) { - RETURN_MM_NULL(); - } - ZEPHIR_INIT_VAR(&updateModel); - if (zephir_clone(&updateModel, model TSRMLS_CC) == FAILURE) { - RETURN_MM(); - } - ZEPHIR_CALL_METHOD(NULL, &updateModel, "writeattribute", NULL, 0, &field, &value); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_2, &updateModel, "save", NULL, 0); - zephir_check_call_status(); - if (!(zephir_is_true(&_2))) { - ZEPHIR_CALL_METHOD(&_3$$7, &updateModel, "getmessages", NULL, 0); - zephir_check_call_status(); - zephir_is_iterable(&_3$$7, 0, "phalcon/Mvc/Collection/Behavior/SoftDelete.zep", 82); - if (Z_TYPE_P(&_3$$7) == IS_ARRAY) { - ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_3$$7), _4$$7) - { - ZEPHIR_INIT_NVAR(&message); - ZVAL_COPY(&message, _4$$7); - ZEPHIR_CALL_METHOD(NULL, model, "appendmessage", &_6, 0, &message); - zephir_check_call_status(); - } ZEND_HASH_FOREACH_END(); - } else { - ZEPHIR_CALL_METHOD(NULL, &_3$$7, "rewind", NULL, 0); - zephir_check_call_status(); - while (1) { - ZEPHIR_CALL_METHOD(&_5$$7, &_3$$7, "valid", NULL, 0); - zephir_check_call_status(); - if (!zend_is_true(&_5$$7)) { - break; - } - ZEPHIR_CALL_METHOD(&message, &_3$$7, "current", NULL, 0); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, model, "appendmessage", &_7, 0, &message); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_3$$7, "next", NULL, 0); - zephir_check_call_status(); - } - } - ZEPHIR_INIT_NVAR(&message); - RETURN_MM_BOOL(0); - } - ZEPHIR_CALL_METHOD(NULL, model, "writeattribute", NULL, 0, &field, &value); - zephir_check_call_status(); - ZEPHIR_MM_RESTORE(); - -} - diff --git a/ext/phalcon/mvc/collection/behavior/softdelete.zep.h b/ext/phalcon/mvc/collection/behavior/softdelete.zep.h deleted file mode 100644 index 382a98ea337..00000000000 --- a/ext/phalcon/mvc/collection/behavior/softdelete.zep.h +++ /dev/null @@ -1,20 +0,0 @@ - -extern zend_class_entry *phalcon_mvc_collection_behavior_softdelete_ce; - -ZEPHIR_INIT_CLASS(Phalcon_Mvc_Collection_Behavior_SoftDelete); - -PHP_METHOD(Phalcon_Mvc_Collection_Behavior_SoftDelete, notify); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_behavior_softdelete_notify, 0, 0, 2) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, type, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, type) -#endif - ZEND_ARG_OBJ_INFO(0, model, Phalcon\\Mvc\\CollectionInterface, 0) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(phalcon_mvc_collection_behavior_softdelete_method_entry) { - PHP_ME(Phalcon_Mvc_Collection_Behavior_SoftDelete, notify, arginfo_phalcon_mvc_collection_behavior_softdelete_notify, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/phalcon/mvc/collection/behavior/timestampable.zep.c b/ext/phalcon/mvc/collection/behavior/timestampable.zep.c deleted file mode 100644 index 8190dad1177..00000000000 --- a/ext/phalcon/mvc/collection/behavior/timestampable.zep.c +++ /dev/null @@ -1,157 +0,0 @@ - -#ifdef HAVE_CONFIG_H -#include "../../../../ext_config.h" -#endif - -#include -#include "../../../../php_ext.h" -#include "../../../../ext.h" - -#include -#include -#include - -#include "kernel/main.h" -#include "kernel/memory.h" -#include "kernel/fcall.h" -#include "kernel/operators.h" -#include "kernel/array.h" -#include "kernel/exception.h" -#include "Zend/zend_closures.h" -#include "kernel/object.h" -#include "kernel/time.h" -#include "ext/spl/spl_exceptions.h" - - -/** - * This file is part of the Phalcon Framework. - * - * (c) Phalcon Team - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ -/** - * Phalcon\Mvc\Collection\Behavior\Timestampable - * - * Allows to automatically update a model’s attribute saving the - * datetime when a record is created or updated - */ -ZEPHIR_INIT_CLASS(Phalcon_Mvc_Collection_Behavior_Timestampable) { - - ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Mvc\\Collection\\Behavior, Timestampable, phalcon, mvc_collection_behavior_timestampable, phalcon_mvc_collection_behavior_ce, phalcon_mvc_collection_behavior_timestampable_method_entry, 0); - - return SUCCESS; - -} - -/** - * Listens for notifications from the models manager - */ -PHP_METHOD(Phalcon_Mvc_Collection_Behavior_Timestampable, notify) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zephir_fcall_cache_entry *_3 = NULL, *_4 = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *type_param = NULL, *model, model_sub, options, timestamp, singleField, field, generator, format, _0, *_1$$12, _2$$12; - zval type; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&type); - ZVAL_UNDEF(&model_sub); - ZVAL_UNDEF(&options); - ZVAL_UNDEF(×tamp); - ZVAL_UNDEF(&singleField); - ZVAL_UNDEF(&field); - ZVAL_UNDEF(&generator); - ZVAL_UNDEF(&format); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_2$$12); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 2, 0, &type_param, &model); - - if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { - zephir_get_strval(&type, type_param); - } else { - ZEPHIR_INIT_VAR(&type); - ZVAL_EMPTY_STRING(&type); - } - - - ZEPHIR_CALL_METHOD(&_0, this_ptr, "musttakeaction", NULL, 0, &type); - zephir_check_call_status(); - if (!ZEPHIR_IS_TRUE_IDENTICAL(&_0)) { - RETURN_MM_NULL(); - } - ZEPHIR_CALL_METHOD(&options, this_ptr, "getoptions", NULL, 0, &type); - zephir_check_call_status(); - if (Z_TYPE_P(&options) == IS_ARRAY) { - ZEPHIR_OBS_VAR(&field); - if (UNEXPECTED(!(zephir_array_isset_string_fetch(&field, &options, SL("field"), 0)))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_collection_exception_ce, "The option 'field' is required", "phalcon/Mvc/Collection/Behavior/Timestampable.zep", 47); - return; - } - ZEPHIR_INIT_VAR(×tamp); - ZVAL_NULL(×tamp); - ZEPHIR_OBS_VAR(&format); - if (zephir_array_isset_string_fetch(&format, &options, SL("format"), 0)) { - ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 420, &format); - zephir_check_call_status(); - } else { - ZEPHIR_OBS_VAR(&generator); - if (zephir_array_isset_string_fetch(&generator, &options, SL("generator"), 0)) { - if (Z_TYPE_P(&generator) == IS_OBJECT) { - if (zephir_instance_of_ev(&generator, zend_ce_closure TSRMLS_CC)) { - ZEPHIR_INIT_NVAR(×tamp); - ZEPHIR_CALL_USER_FUNC(×tamp, &generator); - zephir_check_call_status(); - } - } - } - } - if (Z_TYPE_P(×tamp) == IS_NULL) { - ZEPHIR_INIT_NVAR(×tamp); - zephir_time(×tamp); - } - if (Z_TYPE_P(&field) == IS_ARRAY) { - zephir_is_iterable(&field, 0, "phalcon/Mvc/Collection/Behavior/Timestampable.zep", 85); - if (Z_TYPE_P(&field) == IS_ARRAY) { - ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&field), _1$$12) - { - ZEPHIR_INIT_NVAR(&singleField); - ZVAL_COPY(&singleField, _1$$12); - ZEPHIR_CALL_METHOD(NULL, model, "writeattribute", &_3, 0, &singleField, ×tamp); - zephir_check_call_status(); - } ZEND_HASH_FOREACH_END(); - } else { - ZEPHIR_CALL_METHOD(NULL, &field, "rewind", NULL, 0); - zephir_check_call_status(); - while (1) { - ZEPHIR_CALL_METHOD(&_2$$12, &field, "valid", NULL, 0); - zephir_check_call_status(); - if (!zend_is_true(&_2$$12)) { - break; - } - ZEPHIR_CALL_METHOD(&singleField, &field, "current", NULL, 0); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, model, "writeattribute", &_4, 0, &singleField, ×tamp); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &field, "next", NULL, 0); - zephir_check_call_status(); - } - } - ZEPHIR_INIT_NVAR(&singleField); - } else { - ZEPHIR_CALL_METHOD(NULL, model, "writeattribute", NULL, 0, &field, ×tamp); - zephir_check_call_status(); - } - } - ZEPHIR_MM_RESTORE(); - -} - diff --git a/ext/phalcon/mvc/collection/behavior/timestampable.zep.h b/ext/phalcon/mvc/collection/behavior/timestampable.zep.h deleted file mode 100644 index c0d1d2092dd..00000000000 --- a/ext/phalcon/mvc/collection/behavior/timestampable.zep.h +++ /dev/null @@ -1,20 +0,0 @@ - -extern zend_class_entry *phalcon_mvc_collection_behavior_timestampable_ce; - -ZEPHIR_INIT_CLASS(Phalcon_Mvc_Collection_Behavior_Timestampable); - -PHP_METHOD(Phalcon_Mvc_Collection_Behavior_Timestampable, notify); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_behavior_timestampable_notify, 0, 0, 2) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, type, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, type) -#endif - ZEND_ARG_OBJ_INFO(0, model, Phalcon\\Mvc\\CollectionInterface, 0) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(phalcon_mvc_collection_behavior_timestampable_method_entry) { - PHP_ME(Phalcon_Mvc_Collection_Behavior_Timestampable, notify, arginfo_phalcon_mvc_collection_behavior_timestampable_notify, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/phalcon/mvc/collection/behaviorinterface.zep.c b/ext/phalcon/mvc/collection/behaviorinterface.zep.c deleted file mode 100644 index e95b4422918..00000000000 --- a/ext/phalcon/mvc/collection/behaviorinterface.zep.c +++ /dev/null @@ -1,45 +0,0 @@ - -#ifdef HAVE_CONFIG_H -#include "../../../ext_config.h" -#endif - -#include -#include "../../../php_ext.h" -#include "../../../ext.h" - -#include - -#include "kernel/main.h" - - -/** - * This file is part of the Phalcon Framework. - * - * (c) Phalcon Team - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ -/** - * Phalcon\Mvc\Collection\BehaviorInterface - * - * Interface for Phalcon\Mvc\Collection\Behavior - */ -ZEPHIR_INIT_CLASS(Phalcon_Mvc_Collection_BehaviorInterface) { - - ZEPHIR_REGISTER_INTERFACE(Phalcon\\Mvc\\Collection, BehaviorInterface, phalcon, mvc_collection_behaviorinterface, phalcon_mvc_collection_behaviorinterface_method_entry); - - return SUCCESS; - -} - -/** - * Calls a method when it's missing in the collection - */ -ZEPHIR_DOC_METHOD(Phalcon_Mvc_Collection_BehaviorInterface, missingMethod); - -/** - * This method receives the notifications from the EventsManager - */ -ZEPHIR_DOC_METHOD(Phalcon_Mvc_Collection_BehaviorInterface, notify); - diff --git a/ext/phalcon/mvc/collection/behaviorinterface.zep.h b/ext/phalcon/mvc/collection/behaviorinterface.zep.h deleted file mode 100644 index 68751b8c2f2..00000000000 --- a/ext/phalcon/mvc/collection/behaviorinterface.zep.h +++ /dev/null @@ -1,29 +0,0 @@ - -extern zend_class_entry *phalcon_mvc_collection_behaviorinterface_ce; - -ZEPHIR_INIT_CLASS(Phalcon_Mvc_Collection_BehaviorInterface); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_behaviorinterface_missingmethod, 0, 0, 2) - ZEND_ARG_OBJ_INFO(0, collection, Phalcon\\Mvc\\CollectionInterface, 0) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, method, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, method) -#endif - ZEND_ARG_ARRAY_INFO(0, arguments, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_behaviorinterface_notify, 0, 0, 2) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, type, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, type) -#endif - ZEND_ARG_OBJ_INFO(0, collection, Phalcon\\Mvc\\CollectionInterface, 0) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(phalcon_mvc_collection_behaviorinterface_method_entry) { - PHP_ABSTRACT_ME(Phalcon_Mvc_Collection_BehaviorInterface, missingMethod, arginfo_phalcon_mvc_collection_behaviorinterface_missingmethod) - PHP_ABSTRACT_ME(Phalcon_Mvc_Collection_BehaviorInterface, notify, arginfo_phalcon_mvc_collection_behaviorinterface_notify) - PHP_FE_END -}; diff --git a/ext/phalcon/mvc/collection/document.zep.c b/ext/phalcon/mvc/collection/document.zep.c deleted file mode 100644 index 29f0b87cb9d..00000000000 --- a/ext/phalcon/mvc/collection/document.zep.c +++ /dev/null @@ -1,224 +0,0 @@ - -#ifdef HAVE_CONFIG_H -#include "../../../ext_config.h" -#endif - -#include -#include "../../../php_ext.h" -#include "../../../ext.h" - -#include -#include -#include - -#include "kernel/main.h" -#include "kernel/array.h" -#include "kernel/memory.h" -#include "kernel/object.h" -#include "kernel/exception.h" -#include "ext/spl/spl_exceptions.h" -#include "kernel/operators.h" -#include "kernel/fcall.h" - - -/** - * This file is part of the Phalcon Framework. - * - * (c) Phalcon Team - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ -/** - * Phalcon\Mvc\Collection\Document - * - * This component allows Phalcon\Mvc\Collection to return rows without an associated entity. - * This objects implements the ArrayAccess interface to allow access the object as object->x or array[x]. - */ -ZEPHIR_INIT_CLASS(Phalcon_Mvc_Collection_Document) { - - ZEPHIR_REGISTER_CLASS(Phalcon\\Mvc\\Collection, Document, phalcon, mvc_collection_document, phalcon_mvc_collection_document_method_entry, 0); - - zend_class_implements(phalcon_mvc_collection_document_ce TSRMLS_CC, 1, phalcon_mvc_entityinterface_ce); - zend_class_implements(phalcon_mvc_collection_document_ce TSRMLS_CC, 1, zend_ce_arrayaccess); - return SUCCESS; - -} - -/** - * Returns the value of a field using the ArrayAccess interfase - */ -PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetGet) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *index, index_sub, value; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&index_sub); - ZVAL_UNDEF(&value); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &index); - - - - ZEPHIR_OBS_VAR(&value); - if (UNEXPECTED(!(zephir_fetch_property_zval(&value, this_ptr, index, PH_SILENT_CC)))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_collection_exception_ce, "The index does not exist in the row", "phalcon/Mvc/Collection/Document.zep", 33); - return; - } - RETURN_CCTOR(&value); - -} - -/** - * Checks whether an offset exists in the document - */ -PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetExists) { - - zval *index, index_sub; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&index_sub); - - zephir_fetch_params_without_memory_grow(1, 0, &index); - - - - RETURN_BOOL(zephir_isset_property_zval(this_ptr, index TSRMLS_CC)); - -} - -/** - * Change a value using the ArrayAccess interface - */ -PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetSet) { - - zval *index, index_sub, *value, value_sub; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&index_sub); - ZVAL_UNDEF(&value_sub); - - zephir_fetch_params_without_memory_grow(2, 0, &index, &value); - - - - zephir_update_property_zval_zval(this_ptr, index, value TSRMLS_CC); - -} - -/** - * Rows cannot be changed. It has only been implemented to meet the definition of the ArrayAccess interface - */ -PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetUnset) { - - zval *index, index_sub; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&index_sub); - - zephir_fetch_params_without_memory_grow(1, 0, &index); - - - - ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(phalcon_mvc_collection_exception_ce, "The index does not exist in the row", "phalcon/Mvc/Collection/Document.zep", 60); - return; - -} - -/** - * Reads an attribute value by its name - * - *```php - * echo $robot->readAttribute("name"); - *``` - */ -PHP_METHOD(Phalcon_Mvc_Collection_Document, readAttribute) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *attribute_param = NULL, value; - zval attribute; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&attribute); - ZVAL_UNDEF(&value); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &attribute_param); - - if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { - zephir_get_strval(&attribute, attribute_param); - } else { - ZEPHIR_INIT_VAR(&attribute); - ZVAL_EMPTY_STRING(&attribute); - } - - - ZEPHIR_OBS_VAR(&value); - if (!(zephir_fetch_property_zval(&value, this_ptr, &attribute, PH_SILENT_CC))) { - RETURN_MM_NULL(); - } - RETURN_CTOR(&value); - -} - -/** - * Returns the instance as an array representation - */ -PHP_METHOD(Phalcon_Mvc_Collection_Document, toArray) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *this_ptr = getThis(); - - - ZEPHIR_MM_GROW(); - - ZEPHIR_RETURN_CALL_FUNCTION("get_object_vars", NULL, 214, this_ptr); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Writes an attribute value by its name - * - *```php - * $robot->writeAttribute("name", "Rosey"); - *``` - */ -PHP_METHOD(Phalcon_Mvc_Collection_Document, writeAttribute) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *attribute_param = NULL, *value, value_sub; - zval attribute; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&attribute); - ZVAL_UNDEF(&value_sub); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 2, 0, &attribute_param, &value); - - if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { - zephir_get_strval(&attribute, attribute_param); - } else { - ZEPHIR_INIT_VAR(&attribute); - ZVAL_EMPTY_STRING(&attribute); - } - - - zephir_update_property_zval_zval(this_ptr, &attribute, value TSRMLS_CC); - ZEPHIR_MM_RESTORE(); - -} - diff --git a/ext/phalcon/mvc/collection/document.zep.h b/ext/phalcon/mvc/collection/document.zep.h deleted file mode 100644 index 3409c508976..00000000000 --- a/ext/phalcon/mvc/collection/document.zep.h +++ /dev/null @@ -1,68 +0,0 @@ - -extern zend_class_entry *phalcon_mvc_collection_document_ce; - -ZEPHIR_INIT_CLASS(Phalcon_Mvc_Collection_Document); - -PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetGet); -PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetExists); -PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetSet); -PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetUnset); -PHP_METHOD(Phalcon_Mvc_Collection_Document, readAttribute); -PHP_METHOD(Phalcon_Mvc_Collection_Document, toArray); -PHP_METHOD(Phalcon_Mvc_Collection_Document, writeAttribute); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_document_offsetget, 0, 0, 1) - ZEND_ARG_INFO(0, index) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_document_offsetexists, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_document_offsetexists, 0, 1, _IS_BOOL, NULL, 0) -#endif - ZEND_ARG_INFO(0, index) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_document_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_collection_document_offsetunset, 0, 0, 1) - ZEND_ARG_INFO(0, index) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_document_readattribute, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, attribute, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, attribute) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_document_toarray, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_document_toarray, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_document_writeattribute, 0, 0, 2) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, attribute, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, attribute) -#endif - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(phalcon_mvc_collection_document_method_entry) { - PHP_ME(Phalcon_Mvc_Collection_Document, offsetGet, arginfo_phalcon_mvc_collection_document_offsetget, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection_Document, offsetExists, arginfo_phalcon_mvc_collection_document_offsetexists, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection_Document, offsetSet, arginfo_phalcon_mvc_collection_document_offsetset, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection_Document, offsetUnset, arginfo_phalcon_mvc_collection_document_offsetunset, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection_Document, readAttribute, arginfo_phalcon_mvc_collection_document_readattribute, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection_Document, toArray, arginfo_phalcon_mvc_collection_document_toarray, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection_Document, writeAttribute, arginfo_phalcon_mvc_collection_document_writeattribute, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/phalcon/mvc/collection/exception.zep.c b/ext/phalcon/mvc/collection/exception.zep.c deleted file mode 100644 index d5535c6c6aa..00000000000 --- a/ext/phalcon/mvc/collection/exception.zep.c +++ /dev/null @@ -1,38 +0,0 @@ - -#ifdef HAVE_CONFIG_H -#include "../../../ext_config.h" -#endif - -#include -#include "../../../php_ext.h" -#include "../../../ext.h" - -#include -#include -#include - -#include "kernel/main.h" - - -/** - * This file is part of the Phalcon Framework. - * - * (c) Phalcon Team - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ -/** - * Phalcon\Mvc\Collection\Exception - * - * Exceptions thrown in Phalcon\Mvc\Collection\* classes will use this class - * - */ -ZEPHIR_INIT_CLASS(Phalcon_Mvc_Collection_Exception) { - - ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Mvc\\Collection, Exception, phalcon, mvc_collection_exception, phalcon_exception_ce, NULL, 0); - - return SUCCESS; - -} - diff --git a/ext/phalcon/mvc/collection/exception.zep.h b/ext/phalcon/mvc/collection/exception.zep.h deleted file mode 100644 index 390bad92535..00000000000 --- a/ext/phalcon/mvc/collection/exception.zep.h +++ /dev/null @@ -1,5 +0,0 @@ - -extern zend_class_entry *phalcon_mvc_collection_exception_ce; - -ZEPHIR_INIT_CLASS(Phalcon_Mvc_Collection_Exception); - diff --git a/ext/phalcon/mvc/collection/manager.zep.c b/ext/phalcon/mvc/collection/manager.zep.c deleted file mode 100644 index e2dfa11333b..00000000000 --- a/ext/phalcon/mvc/collection/manager.zep.c +++ /dev/null @@ -1,761 +0,0 @@ - -#ifdef HAVE_CONFIG_H -#include "../../../ext_config.h" -#endif - -#include -#include "../../../php_ext.h" -#include "../../../ext.h" - -#include -#include -#include - -#include "kernel/main.h" -#include "kernel/object.h" -#include "kernel/memory.h" -#include "kernel/array.h" -#include "kernel/exception.h" -#include "kernel/fcall.h" -#include "kernel/string.h" -#include "ext/spl/spl_exceptions.h" -#include "kernel/operators.h" -#include "kernel/concat.h" - - -/** - * This file is part of the Phalcon Framework. - * - * (c) Phalcon Team - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ -/** - * Phalcon\Mvc\Collection\Manager - * - * This components controls the initialization of models, keeping record of relations - * between the different models of the application. - * - * A CollectionManager is injected to a model via a Dependency Injector Container such as Phalcon\Di. - * - * ```php - * $di = new \Phalcon\Di(); - * - * $di->set( - * "collectionManager", - * function () { - * return new \Phalcon\Mvc\Collection\Manager(); - * } - * ); - * - * $robot = new Robots($di); - * ``` - */ -ZEPHIR_INIT_CLASS(Phalcon_Mvc_Collection_Manager) { - - ZEPHIR_REGISTER_CLASS(Phalcon\\Mvc\\Collection, Manager, phalcon, mvc_collection_manager, phalcon_mvc_collection_manager_method_entry, 0); - - zend_declare_property_null(phalcon_mvc_collection_manager_ce, SL("behaviors"), ZEND_ACC_PROTECTED TSRMLS_CC); - - zend_declare_property_null(phalcon_mvc_collection_manager_ce, SL("connectionServices"), ZEND_ACC_PROTECTED TSRMLS_CC); - - zend_declare_property_null(phalcon_mvc_collection_manager_ce, SL("container"), ZEND_ACC_PROTECTED TSRMLS_CC); - - zend_declare_property_null(phalcon_mvc_collection_manager_ce, SL("customEventsManager"), ZEND_ACC_PROTECTED TSRMLS_CC); - - zend_declare_property_null(phalcon_mvc_collection_manager_ce, SL("eventsManager"), ZEND_ACC_PROTECTED TSRMLS_CC); - - zend_declare_property_null(phalcon_mvc_collection_manager_ce, SL("implicitObjectsIds"), ZEND_ACC_PROTECTED TSRMLS_CC); - - zend_declare_property_null(phalcon_mvc_collection_manager_ce, SL("initialized"), ZEND_ACC_PROTECTED TSRMLS_CC); - - zend_declare_property_null(phalcon_mvc_collection_manager_ce, SL("lastInitialized"), ZEND_ACC_PROTECTED TSRMLS_CC); - - zend_declare_property_string(phalcon_mvc_collection_manager_ce, SL("serviceName"), "mongo", ZEND_ACC_PROTECTED TSRMLS_CC); - - zend_class_implements(phalcon_mvc_collection_manager_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); - zend_class_implements(phalcon_mvc_collection_manager_ce TSRMLS_CC, 1, phalcon_events_eventsawareinterface_ce); - return SUCCESS; - -} - -PHP_METHOD(Phalcon_Mvc_Collection_Manager, getServiceName) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "serviceName"); - -} - -PHP_METHOD(Phalcon_Mvc_Collection_Manager, setServiceName) { - - zval *serviceName, serviceName_sub; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&serviceName_sub); - - zephir_fetch_params_without_memory_grow(1, 0, &serviceName); - - - - zephir_update_property_zval(this_ptr, SL("serviceName"), serviceName); - RETURN_THISW(); - -} - -/** - * Binds a behavior to a model - */ -PHP_METHOD(Phalcon_Mvc_Collection_Manager, addBehavior) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *model, model_sub, *behavior, behavior_sub, entityName, modelsBehaviors, _0; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&model_sub); - ZVAL_UNDEF(&behavior_sub); - ZVAL_UNDEF(&entityName); - ZVAL_UNDEF(&modelsBehaviors); - ZVAL_UNDEF(&_0); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 2, 0, &model, &behavior); - - - - ZEPHIR_INIT_VAR(&entityName); - zephir_get_class(&entityName, model, 1 TSRMLS_CC); - ZEPHIR_OBS_VAR(&modelsBehaviors); - zephir_read_property(&_0, this_ptr, SL("behaviors"), PH_NOISY_CC | PH_READONLY); - if (!(zephir_array_isset_fetch(&modelsBehaviors, &_0, &entityName, 0 TSRMLS_CC))) { - ZEPHIR_INIT_NVAR(&modelsBehaviors); - array_init(&modelsBehaviors); - } - zephir_array_append(&modelsBehaviors, behavior, PH_SEPARATE, "phalcon/Mvc/Collection/Manager.zep", 80); - zephir_update_property_array(this_ptr, SL("behaviors"), &entityName, &modelsBehaviors); - ZEPHIR_MM_RESTORE(); - -} - -/** - * Returns a custom events manager related to a model - */ -PHP_METHOD(Phalcon_Mvc_Collection_Manager, getCustomEventsManager) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *model, model_sub, customEventsManager, className, _0, _1$$4; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&model_sub); - ZVAL_UNDEF(&customEventsManager); - ZVAL_UNDEF(&className); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1$$4); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &model); - - - - zephir_read_property(&_0, this_ptr, SL("customEventsManager"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CPY_WRT(&customEventsManager, &_0); - if (Z_TYPE_P(&customEventsManager) == IS_ARRAY) { - ZEPHIR_INIT_VAR(&className); - zephir_get_class(&className, model, 1 TSRMLS_CC); - if (zephir_array_isset(&customEventsManager, &className)) { - zephir_array_fetch(&_1$$4, &customEventsManager, &className, PH_NOISY | PH_READONLY, "phalcon/Mvc/Collection/Manager.zep", 99 TSRMLS_CC); - RETURN_CTOR(&_1$$4); - } - } - RETURN_MM_NULL(); - -} - -/** - * Returns the connection related to a model - * - * @return \Mongo - */ -PHP_METHOD(Phalcon_Mvc_Collection_Manager, getConnection) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zephir_fcall_cache_entry *_3 = NULL; - zval *model, model_sub, service, connectionService, connection, container, entityName, _0, _1$$5, _2$$5, _4$$5; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&model_sub); - ZVAL_UNDEF(&service); - ZVAL_UNDEF(&connectionService); - ZVAL_UNDEF(&connection); - ZVAL_UNDEF(&container); - ZVAL_UNDEF(&entityName); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1$$5); - ZVAL_UNDEF(&_2$$5); - ZVAL_UNDEF(&_4$$5); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &model); - - - - ZEPHIR_OBS_VAR(&service); - zephir_read_property(&service, this_ptr, SL("serviceName"), PH_NOISY_CC); - ZEPHIR_OBS_VAR(&connectionService); - zephir_read_property(&connectionService, this_ptr, SL("connectionServices"), PH_NOISY_CC); - if (Z_TYPE_P(&connectionService) == IS_ARRAY) { - ZEPHIR_INIT_VAR(&entityName); - zephir_get_class(&entityName, model, 0 TSRMLS_CC); - if (zephir_array_isset(&connectionService, &entityName)) { - ZEPHIR_OBS_NVAR(&service); - zephir_array_fetch(&service, &connectionService, &entityName, PH_NOISY, "phalcon/Mvc/Collection/Manager.zep", 124 TSRMLS_CC); - } - } - zephir_read_property(&_0, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CPY_WRT(&container, &_0); - if (UNEXPECTED(Z_TYPE_P(&container) != IS_OBJECT)) { - ZEPHIR_INIT_VAR(&_1$$5); - object_init_ex(&_1$$5, phalcon_mvc_collection_exception_ce); - ZEPHIR_INIT_VAR(&_4$$5); - ZVAL_STRING(&_4$$5, "the services related to the ORM"); - ZEPHIR_CALL_CE_STATIC(&_2$$5, phalcon_mvc_collection_exception_ce, "containerservicenotfound", &_3, 0, &_4$$5); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_1$$5, "__construct", NULL, 5, &_2$$5); - zephir_check_call_status(); - zephir_throw_exception_debug(&_1$$5, "phalcon/Mvc/Collection/Manager.zep", 134 TSRMLS_CC); - ZEPHIR_MM_RESTORE(); - return; - } - ZEPHIR_CALL_METHOD(&connection, &container, "getshared", NULL, 0, &service); - zephir_check_call_status(); - if (UNEXPECTED(Z_TYPE_P(&connection) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_collection_exception_ce, "Invalid injected connection service", "phalcon/Mvc/Collection/Manager.zep", 142); - return; - } - RETURN_CCTOR(&connection); - -} - -/** - * Gets a connection service for a specific model - */ -PHP_METHOD(Phalcon_Mvc_Collection_Manager, getConnectionService) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *model, model_sub, service, entityName, _0, _1$$3; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&model_sub); - ZVAL_UNDEF(&service); - ZVAL_UNDEF(&entityName); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1$$3); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &model); - - - - ZEPHIR_OBS_VAR(&service); - zephir_read_property(&service, this_ptr, SL("serviceName"), PH_NOISY_CC); - ZEPHIR_INIT_VAR(&entityName); - zephir_get_class(&entityName, model, 0 TSRMLS_CC); - zephir_read_property(&_0, this_ptr, SL("connectionServices"), PH_NOISY_CC | PH_READONLY); - if (zephir_array_isset(&_0, &entityName)) { - zephir_read_property(&_1$$3, this_ptr, SL("connectionServices"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_OBS_NVAR(&service); - zephir_array_fetch(&service, &_1$$3, &entityName, PH_NOISY, "phalcon/Mvc/Collection/Manager.zep", 158 TSRMLS_CC); - } - RETURN_CCTOR(&service); - -} - -/** - * Returns the DependencyInjector container - */ -PHP_METHOD(Phalcon_Mvc_Collection_Manager, getDI) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "container"); - -} - -/** - * Returns the internal event manager - */ -PHP_METHOD(Phalcon_Mvc_Collection_Manager, getEventsManager) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "eventsManager"); - -} - -/** - * Get the latest initialized model - */ -PHP_METHOD(Phalcon_Mvc_Collection_Manager, getLastInitialized) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "lastInitialized"); - -} - -/** - * Checks if a model is using implicit object ids - */ -PHP_METHOD(Phalcon_Mvc_Collection_Manager, isUsingImplicitObjectIds) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *model, model_sub, implicit, _0, _1; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&model_sub); - ZVAL_UNDEF(&implicit); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &model); - - - - zephir_read_property(&_0, this_ptr, SL("implicitObjectsIds"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_INIT_VAR(&_1); - zephir_get_class(&_1, model, 0 TSRMLS_CC); - if (zephir_array_isset_fetch(&implicit, &_0, &_1, 1 TSRMLS_CC)) { - RETURN_CTOR(&implicit); - } - RETURN_MM_BOOL(1); - -} - -/** - * Check whether a model is already initialized - */ -PHP_METHOD(Phalcon_Mvc_Collection_Manager, isInitialized) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *className_param = NULL, _0, _1; - zval className; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&className); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &className_param); - - if (UNEXPECTED(Z_TYPE_P(className_param) != IS_STRING && Z_TYPE_P(className_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'className' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(className_param) == IS_STRING)) { - zephir_get_strval(&className, className_param); - } else { - ZEPHIR_INIT_VAR(&className); - ZVAL_EMPTY_STRING(&className); - } - - - zephir_read_property(&_0, this_ptr, SL("initialized"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_INIT_VAR(&_1); - zephir_fast_strtolower(&_1, &className); - RETURN_MM_BOOL(zephir_array_isset(&_0, &_1)); - -} - -/** - * Initializes a model in the models manager - */ -PHP_METHOD(Phalcon_Mvc_Collection_Manager, initialize) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *model, model_sub, className, initialized, eventsManager, _0, _1$$3, _2$$5; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&model_sub); - ZVAL_UNDEF(&className); - ZVAL_UNDEF(&initialized); - ZVAL_UNDEF(&eventsManager); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1$$3); - ZVAL_UNDEF(&_2$$5); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &model); - - - - ZEPHIR_INIT_VAR(&className); - zephir_get_class(&className, model, 1 TSRMLS_CC); - zephir_read_property(&_0, this_ptr, SL("initialized"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CPY_WRT(&initialized, &_0); - if (!(zephir_array_isset(&initialized, &className))) { - if ((zephir_method_exists_ex(model, SL("initialize") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_METHOD(NULL, model, "initialize", NULL, 0); - zephir_check_call_status(); - } - zephir_read_property(&_1$$3, this_ptr, SL("eventsManager"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CPY_WRT(&eventsManager, &_1$$3); - if (Z_TYPE_P(&eventsManager) == IS_OBJECT) { - ZEPHIR_INIT_VAR(&_2$$5); - ZVAL_STRING(&_2$$5, "collectionManager:afterInitialize"); - ZEPHIR_CALL_METHOD(NULL, &eventsManager, "fire", NULL, 0, &_2$$5, model); - zephir_check_call_status(); - } - zephir_update_property_array(this_ptr, SL("initialized"), &className, model); - zephir_update_property_zval(this_ptr, SL("lastInitialized"), model); - } - ZEPHIR_MM_RESTORE(); - -} - -/** - * Dispatch an event to the listeners and behaviors - * This method expects that the endpoint listeners/behaviors returns true - * meaning that at least one was implemented - */ -PHP_METHOD(Phalcon_Mvc_Collection_Manager, missingMethod) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval eventName, _4$$9; - zval *model, model_sub, *eventName_param = NULL, *data, data_sub, behaviors, modelsBehaviors, result, eventsManager, behavior, _0, _1$$3, *_2$$4, _3$$4; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&model_sub); - ZVAL_UNDEF(&data_sub); - ZVAL_UNDEF(&behaviors); - ZVAL_UNDEF(&modelsBehaviors); - ZVAL_UNDEF(&result); - ZVAL_UNDEF(&eventsManager); - ZVAL_UNDEF(&behavior); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1$$3); - ZVAL_UNDEF(&_3$$4); - ZVAL_UNDEF(&eventName); - ZVAL_UNDEF(&_4$$9); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 3, 0, &model, &eventName_param, &data); - - if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { - zephir_get_strval(&eventName, eventName_param); - } else { - ZEPHIR_INIT_VAR(&eventName); - ZVAL_EMPTY_STRING(&eventName); - } - - - zephir_read_property(&_0, this_ptr, SL("behaviors"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CPY_WRT(&behaviors, &_0); - if (Z_TYPE_P(&behaviors) == IS_ARRAY) { - ZEPHIR_OBS_VAR(&modelsBehaviors); - ZEPHIR_INIT_VAR(&_1$$3); - zephir_get_class(&_1$$3, model, 1 TSRMLS_CC); - if (zephir_array_isset_fetch(&modelsBehaviors, &behaviors, &_1$$3, 0 TSRMLS_CC)) { - zephir_is_iterable(&modelsBehaviors, 0, "phalcon/Mvc/Collection/Manager.zep", 273); - if (Z_TYPE_P(&modelsBehaviors) == IS_ARRAY) { - ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&modelsBehaviors), _2$$4) - { - ZEPHIR_INIT_NVAR(&behavior); - ZVAL_COPY(&behavior, _2$$4); - ZEPHIR_CALL_METHOD(&result, &behavior, "missingmethod", NULL, 0, model, &eventName, data); - zephir_check_call_status(); - if (Z_TYPE_P(&result) != IS_NULL) { - RETURN_CCTOR(&result); - } - } ZEND_HASH_FOREACH_END(); - } else { - ZEPHIR_CALL_METHOD(NULL, &modelsBehaviors, "rewind", NULL, 0); - zephir_check_call_status(); - while (1) { - ZEPHIR_CALL_METHOD(&_3$$4, &modelsBehaviors, "valid", NULL, 0); - zephir_check_call_status(); - if (!zend_is_true(&_3$$4)) { - break; - } - ZEPHIR_CALL_METHOD(&behavior, &modelsBehaviors, "current", NULL, 0); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&result, &behavior, "missingmethod", NULL, 0, model, &eventName, data); - zephir_check_call_status(); - if (Z_TYPE_P(&result) != IS_NULL) { - RETURN_CCTOR(&result); - } - ZEPHIR_CALL_METHOD(NULL, &modelsBehaviors, "next", NULL, 0); - zephir_check_call_status(); - } - } - ZEPHIR_INIT_NVAR(&behavior); - } - } - zephir_read_property(&_0, this_ptr, SL("eventsManager"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CPY_WRT(&eventsManager, &_0); - if (Z_TYPE_P(&eventsManager) == IS_OBJECT) { - ZEPHIR_INIT_VAR(&_4$$9); - ZEPHIR_CONCAT_SV(&_4$$9, "model:", &eventName); - ZEPHIR_RETURN_CALL_METHOD(&eventsManager, "fire", NULL, 0, &_4$$9, model, data); - zephir_check_call_status(); - RETURN_MM(); - } - RETURN_MM_BOOL(0); - -} - -/** - * Receives events generated in the models and dispatches them to an events-manager if available - * Notify the behaviors that are listening in the model - */ -PHP_METHOD(Phalcon_Mvc_Collection_Manager, notifyEvent) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *eventName_param = NULL, *model, model_sub, behavior, behaviors, modelsBehaviors, eventsManager, status, customEventsManager, _0, _1$$3, *_2$$4, _3$$4, _5$$11; - zval eventName, _4$$9, _6$$12; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&eventName); - ZVAL_UNDEF(&_4$$9); - ZVAL_UNDEF(&_6$$12); - ZVAL_UNDEF(&model_sub); - ZVAL_UNDEF(&behavior); - ZVAL_UNDEF(&behaviors); - ZVAL_UNDEF(&modelsBehaviors); - ZVAL_UNDEF(&eventsManager); - ZVAL_UNDEF(&status); - ZVAL_UNDEF(&customEventsManager); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1$$3); - ZVAL_UNDEF(&_3$$4); - ZVAL_UNDEF(&_5$$11); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 2, 0, &eventName_param, &model); - - if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { - zephir_get_strval(&eventName, eventName_param); - } else { - ZEPHIR_INIT_VAR(&eventName); - ZVAL_EMPTY_STRING(&eventName); - } - - - ZEPHIR_INIT_VAR(&status); - ZVAL_NULL(&status); - zephir_read_property(&_0, this_ptr, SL("behaviors"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CPY_WRT(&behaviors, &_0); - if (Z_TYPE_P(&behaviors) == IS_ARRAY) { - ZEPHIR_OBS_VAR(&modelsBehaviors); - ZEPHIR_INIT_VAR(&_1$$3); - zephir_get_class(&_1$$3, model, 1 TSRMLS_CC); - if (zephir_array_isset_fetch(&modelsBehaviors, &behaviors, &_1$$3, 0 TSRMLS_CC)) { - zephir_is_iterable(&modelsBehaviors, 0, "phalcon/Mvc/Collection/Manager.zep", 309); - if (Z_TYPE_P(&modelsBehaviors) == IS_ARRAY) { - ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&modelsBehaviors), _2$$4) - { - ZEPHIR_INIT_NVAR(&behavior); - ZVAL_COPY(&behavior, _2$$4); - ZEPHIR_CALL_METHOD(&status, &behavior, "notify", NULL, 0, &eventName, model); - zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(&status)) { - RETURN_MM_BOOL(0); - } - } ZEND_HASH_FOREACH_END(); - } else { - ZEPHIR_CALL_METHOD(NULL, &modelsBehaviors, "rewind", NULL, 0); - zephir_check_call_status(); - while (1) { - ZEPHIR_CALL_METHOD(&_3$$4, &modelsBehaviors, "valid", NULL, 0); - zephir_check_call_status(); - if (!zend_is_true(&_3$$4)) { - break; - } - ZEPHIR_CALL_METHOD(&behavior, &modelsBehaviors, "current", NULL, 0); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&status, &behavior, "notify", NULL, 0, &eventName, model); - zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(&status)) { - RETURN_MM_BOOL(0); - } - ZEPHIR_CALL_METHOD(NULL, &modelsBehaviors, "next", NULL, 0); - zephir_check_call_status(); - } - } - ZEPHIR_INIT_NVAR(&behavior); - } - } - zephir_read_property(&_0, this_ptr, SL("eventsManager"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CPY_WRT(&eventsManager, &_0); - if (Z_TYPE_P(&eventsManager) == IS_OBJECT) { - ZEPHIR_INIT_VAR(&_4$$9); - ZEPHIR_CONCAT_SV(&_4$$9, "collection:", &eventName); - ZEPHIR_CALL_METHOD(&status, &eventsManager, "fire", NULL, 0, &_4$$9, model); - zephir_check_call_status(); - if (!(zephir_is_true(&status))) { - RETURN_CCTOR(&status); - } - } - zephir_read_property(&_0, this_ptr, SL("customEventsManager"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CPY_WRT(&customEventsManager, &_0); - if (Z_TYPE_P(&customEventsManager) == IS_ARRAY) { - ZEPHIR_INIT_VAR(&_5$$11); - zephir_get_class(&_5$$11, model, 1 TSRMLS_CC); - if (zephir_array_isset(&customEventsManager, &_5$$11)) { - ZEPHIR_INIT_VAR(&_6$$12); - ZEPHIR_CONCAT_SV(&_6$$12, "collection:", &eventName); - ZEPHIR_CALL_METHOD(&status, &customEventsManager, "fire", NULL, 0, &_6$$12, model); - zephir_check_call_status(); - if (!(zephir_is_true(&status))) { - RETURN_CCTOR(&status); - } - } - } - RETURN_CCTOR(&status); - -} - -/** - * Sets a custom events manager for a specific model - */ -PHP_METHOD(Phalcon_Mvc_Collection_Manager, setCustomEventsManager) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *model, model_sub, *eventsManager, eventsManager_sub, _0; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&model_sub); - ZVAL_UNDEF(&eventsManager_sub); - ZVAL_UNDEF(&_0); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 2, 0, &model, &eventsManager); - - - - ZEPHIR_INIT_VAR(&_0); - zephir_get_class(&_0, model, 0 TSRMLS_CC); - zephir_update_property_array(this_ptr, SL("customEventsManager"), &_0, eventsManager); - ZEPHIR_MM_RESTORE(); - -} - -/** - * Sets a connection service for a specific model - */ -PHP_METHOD(Phalcon_Mvc_Collection_Manager, setConnectionService) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval connectionService; - zval *model, model_sub, *connectionService_param = NULL, _0; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&model_sub); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&connectionService); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 2, 0, &model, &connectionService_param); - - if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { - zephir_get_strval(&connectionService, connectionService_param); - } else { - ZEPHIR_INIT_VAR(&connectionService); - ZVAL_EMPTY_STRING(&connectionService); - } - - - ZEPHIR_INIT_VAR(&_0); - zephir_get_class(&_0, model, 0 TSRMLS_CC); - zephir_update_property_array(this_ptr, SL("connectionServices"), &_0, &connectionService); - ZEPHIR_MM_RESTORE(); - -} - -/** - * Sets the DependencyInjector container - */ -PHP_METHOD(Phalcon_Mvc_Collection_Manager, setDI) { - - zval *container, container_sub; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&container_sub); - - zephir_fetch_params_without_memory_grow(1, 0, &container); - - - - zephir_update_property_zval(this_ptr, SL("container"), container); - -} - -/** - * Sets the event manager - */ -PHP_METHOD(Phalcon_Mvc_Collection_Manager, setEventsManager) { - - zval *eventsManager, eventsManager_sub; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&eventsManager_sub); - - zephir_fetch_params_without_memory_grow(1, 0, &eventsManager); - - - - zephir_update_property_zval(this_ptr, SL("eventsManager"), eventsManager); - -} - -/** - * Sets whether a model must use implicit objects ids - */ -PHP_METHOD(Phalcon_Mvc_Collection_Manager, useImplicitObjectIds) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_bool useImplicitObjectIds; - zval *model, model_sub, *useImplicitObjectIds_param = NULL, _0, _1; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&model_sub); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 2, 0, &model, &useImplicitObjectIds_param); - - useImplicitObjectIds = zephir_get_boolval(useImplicitObjectIds_param); - - - ZEPHIR_INIT_VAR(&_0); - zephir_get_class(&_0, model, 0 TSRMLS_CC); - ZEPHIR_INIT_VAR(&_1); - ZVAL_BOOL(&_1, useImplicitObjectIds); - zephir_update_property_array(this_ptr, SL("implicitObjectsIds"), &_0, &_1); - ZEPHIR_MM_RESTORE(); - -} - diff --git a/ext/phalcon/mvc/collection/manager.zep.h b/ext/phalcon/mvc/collection/manager.zep.h deleted file mode 100644 index daceede24ae..00000000000 --- a/ext/phalcon/mvc/collection/manager.zep.h +++ /dev/null @@ -1,171 +0,0 @@ - -extern zend_class_entry *phalcon_mvc_collection_manager_ce; - -ZEPHIR_INIT_CLASS(Phalcon_Mvc_Collection_Manager); - -PHP_METHOD(Phalcon_Mvc_Collection_Manager, getServiceName); -PHP_METHOD(Phalcon_Mvc_Collection_Manager, setServiceName); -PHP_METHOD(Phalcon_Mvc_Collection_Manager, addBehavior); -PHP_METHOD(Phalcon_Mvc_Collection_Manager, getCustomEventsManager); -PHP_METHOD(Phalcon_Mvc_Collection_Manager, getConnection); -PHP_METHOD(Phalcon_Mvc_Collection_Manager, getConnectionService); -PHP_METHOD(Phalcon_Mvc_Collection_Manager, getDI); -PHP_METHOD(Phalcon_Mvc_Collection_Manager, getEventsManager); -PHP_METHOD(Phalcon_Mvc_Collection_Manager, getLastInitialized); -PHP_METHOD(Phalcon_Mvc_Collection_Manager, isUsingImplicitObjectIds); -PHP_METHOD(Phalcon_Mvc_Collection_Manager, isInitialized); -PHP_METHOD(Phalcon_Mvc_Collection_Manager, initialize); -PHP_METHOD(Phalcon_Mvc_Collection_Manager, missingMethod); -PHP_METHOD(Phalcon_Mvc_Collection_Manager, notifyEvent); -PHP_METHOD(Phalcon_Mvc_Collection_Manager, setCustomEventsManager); -PHP_METHOD(Phalcon_Mvc_Collection_Manager, setConnectionService); -PHP_METHOD(Phalcon_Mvc_Collection_Manager, setDI); -PHP_METHOD(Phalcon_Mvc_Collection_Manager, setEventsManager); -PHP_METHOD(Phalcon_Mvc_Collection_Manager, useImplicitObjectIds); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_manager_setservicename, 0, 0, 1) - ZEND_ARG_INFO(0, serviceName) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_manager_addbehavior, 0, 0, 2) - ZEND_ARG_OBJ_INFO(0, model, Phalcon\\Mvc\\CollectionInterface, 0) - ZEND_ARG_OBJ_INFO(0, behavior, Phalcon\\Mvc\\Collection\\BehaviorInterface, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_manager_getcustomeventsmanager, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, model, Phalcon\\Mvc\\CollectionInterface, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_manager_getconnection, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, model, Phalcon\\Mvc\\CollectionInterface, 0) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_manager_getconnectionservice, 0, 1, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_manager_getconnectionservice, 0, 1, IS_STRING, NULL, 0) -#endif - ZEND_ARG_OBJ_INFO(0, model, Phalcon\\Mvc\\CollectionInterface, 0) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_mvc_collection_manager_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_manager_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_mvc_collection_manager_geteventsmanager, 0, 0, Phalcon\\Events\\ManagerInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_manager_geteventsmanager, 0, 0, IS_OBJECT, "Phalcon\\Events\\ManagerInterface", 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_mvc_collection_manager_getlastinitialized, 0, 0, Phalcon\\Mvc\\CollectionInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_manager_getlastinitialized, 0, 0, IS_OBJECT, "Phalcon\\Mvc\\CollectionInterface", 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_manager_isusingimplicitobjectids, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_manager_isusingimplicitobjectids, 0, 1, _IS_BOOL, NULL, 0) -#endif - ZEND_ARG_OBJ_INFO(0, model, Phalcon\\Mvc\\CollectionInterface, 0) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_manager_isinitialized, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_manager_isinitialized, 0, 1, _IS_BOOL, NULL, 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, className, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, className) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_manager_initialize, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, model, Phalcon\\Mvc\\CollectionInterface, 0) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_manager_missingmethod, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_manager_missingmethod, 0, 3, _IS_BOOL, NULL, 0) -#endif - ZEND_ARG_OBJ_INFO(0, model, Phalcon\\Mvc\\CollectionInterface, 0) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, eventName, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, eventName) -#endif - ZEND_ARG_INFO(0, data) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_manager_notifyevent, 0, 0, 2) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, eventName, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, eventName) -#endif - ZEND_ARG_OBJ_INFO(0, model, Phalcon\\Mvc\\CollectionInterface, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_manager_setcustomeventsmanager, 0, 0, 2) - ZEND_ARG_OBJ_INFO(0, model, Phalcon\\Mvc\\CollectionInterface, 0) - ZEND_ARG_OBJ_INFO(0, eventsManager, Phalcon\\Events\\ManagerInterface, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_manager_setconnectionservice, 0, 0, 2) - ZEND_ARG_OBJ_INFO(0, model, Phalcon\\Mvc\\CollectionInterface, 0) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, connectionService, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, connectionService) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_manager_setdi, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_manager_seteventsmanager, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, eventsManager, Phalcon\\Events\\ManagerInterface, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_manager_useimplicitobjectids, 0, 0, 2) - ZEND_ARG_OBJ_INFO(0, model, Phalcon\\Mvc\\CollectionInterface, 0) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, useImplicitObjectIds, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, useImplicitObjectIds) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(phalcon_mvc_collection_manager_method_entry) { - PHP_ME(Phalcon_Mvc_Collection_Manager, getServiceName, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection_Manager, setServiceName, arginfo_phalcon_mvc_collection_manager_setservicename, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection_Manager, addBehavior, arginfo_phalcon_mvc_collection_manager_addbehavior, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection_Manager, getCustomEventsManager, arginfo_phalcon_mvc_collection_manager_getcustomeventsmanager, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection_Manager, getConnection, arginfo_phalcon_mvc_collection_manager_getconnection, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection_Manager, getConnectionService, arginfo_phalcon_mvc_collection_manager_getconnectionservice, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection_Manager, getDI, arginfo_phalcon_mvc_collection_manager_getdi, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection_Manager, getEventsManager, arginfo_phalcon_mvc_collection_manager_geteventsmanager, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection_Manager, getLastInitialized, arginfo_phalcon_mvc_collection_manager_getlastinitialized, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection_Manager, isUsingImplicitObjectIds, arginfo_phalcon_mvc_collection_manager_isusingimplicitobjectids, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection_Manager, isInitialized, arginfo_phalcon_mvc_collection_manager_isinitialized, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection_Manager, initialize, arginfo_phalcon_mvc_collection_manager_initialize, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection_Manager, missingMethod, arginfo_phalcon_mvc_collection_manager_missingmethod, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection_Manager, notifyEvent, arginfo_phalcon_mvc_collection_manager_notifyevent, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection_Manager, setCustomEventsManager, arginfo_phalcon_mvc_collection_manager_setcustomeventsmanager, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection_Manager, setConnectionService, arginfo_phalcon_mvc_collection_manager_setconnectionservice, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection_Manager, setDI, arginfo_phalcon_mvc_collection_manager_setdi, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection_Manager, setEventsManager, arginfo_phalcon_mvc_collection_manager_seteventsmanager, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Collection_Manager, useImplicitObjectIds, arginfo_phalcon_mvc_collection_manager_useimplicitobjectids, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/phalcon/mvc/collection/managerinterface.zep.c b/ext/phalcon/mvc/collection/managerinterface.zep.c deleted file mode 100644 index d9a795c91ad..00000000000 --- a/ext/phalcon/mvc/collection/managerinterface.zep.c +++ /dev/null @@ -1,107 +0,0 @@ - -#ifdef HAVE_CONFIG_H -#include "../../../ext_config.h" -#endif - -#include -#include "../../../php_ext.h" -#include "../../../ext.h" - -#include - -#include "kernel/main.h" - - -/** - * This file is part of the Phalcon Framework. - * - * (c) Phalcon Team - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ -/** - * Phalcon\Mvc\Collection\Manager - * - * This components controls the initialization of models, keeping record of relations - * between the different models of the application. - * - * A CollectionManager is injected to a model via a Dependency Injector Container such as Phalcon\Di. - * - * ```php - * $di = new \Phalcon\Di(); - * - * $di->set( - * "collectionManager", - * function() { - * return new \Phalcon\Mvc\Collection\Manager(); - * } - * ); - * - * $robot = new Robots(di); - * ``` - */ -ZEPHIR_INIT_CLASS(Phalcon_Mvc_Collection_ManagerInterface) { - - ZEPHIR_REGISTER_INTERFACE(Phalcon\\Mvc\\Collection, ManagerInterface, phalcon, mvc_collection_managerinterface, phalcon_mvc_collection_managerinterface_method_entry); - - return SUCCESS; - -} - -/** - * Binds a behavior to a collection - */ -ZEPHIR_DOC_METHOD(Phalcon_Mvc_Collection_ManagerInterface, addBehavior); - -/** - * Returns the connection related to a model - */ -ZEPHIR_DOC_METHOD(Phalcon_Mvc_Collection_ManagerInterface, getConnection); - -/** - * Returns a custom events manager related to a model - */ -ZEPHIR_DOC_METHOD(Phalcon_Mvc_Collection_ManagerInterface, getCustomEventsManager); - -/** - * Get the latest initialized model - */ -ZEPHIR_DOC_METHOD(Phalcon_Mvc_Collection_ManagerInterface, getLastInitialized); - -/** - * Initializes a model in the models manager - */ -ZEPHIR_DOC_METHOD(Phalcon_Mvc_Collection_ManagerInterface, initialize); - -/** - * Check whether a model is already initialized - */ -ZEPHIR_DOC_METHOD(Phalcon_Mvc_Collection_ManagerInterface, isInitialized); - -/** - * Checks if a model is using implicit object ids - */ -ZEPHIR_DOC_METHOD(Phalcon_Mvc_Collection_ManagerInterface, isUsingImplicitObjectIds); - -/** - * Receives events generated in the models and dispatches them to an events-manager if available - * Notify the behaviors that are listening in the model - */ -ZEPHIR_DOC_METHOD(Phalcon_Mvc_Collection_ManagerInterface, notifyEvent); - -/** - * Sets a custom events manager for a specific model - */ -ZEPHIR_DOC_METHOD(Phalcon_Mvc_Collection_ManagerInterface, setCustomEventsManager); - -/** - * Sets a connection service for a specific model - */ -ZEPHIR_DOC_METHOD(Phalcon_Mvc_Collection_ManagerInterface, setConnectionService); - -/** - * Sets if a model must use implicit objects ids - */ -ZEPHIR_DOC_METHOD(Phalcon_Mvc_Collection_ManagerInterface, useImplicitObjectIds); - diff --git a/ext/phalcon/mvc/collection/managerinterface.zep.h b/ext/phalcon/mvc/collection/managerinterface.zep.h deleted file mode 100644 index a46355c3d4b..00000000000 --- a/ext/phalcon/mvc/collection/managerinterface.zep.h +++ /dev/null @@ -1,103 +0,0 @@ - -extern zend_class_entry *phalcon_mvc_collection_managerinterface_ce; - -ZEPHIR_INIT_CLASS(Phalcon_Mvc_Collection_ManagerInterface); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_managerinterface_addbehavior, 0, 0, 2) - ZEND_ARG_OBJ_INFO(0, model, Phalcon\\Mvc\\CollectionInterface, 0) - ZEND_ARG_OBJ_INFO(0, behavior, Phalcon\\Mvc\\Collection\\BehaviorInterface, 0) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_mvc_collection_managerinterface_getconnection, 0, 1, Phalcon\\Db\\Adapter\\AdapterInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_managerinterface_getconnection, 0, 1, IS_OBJECT, "Phalcon\\Db\\Adapter\\AdapterInterface", 0) -#endif - ZEND_ARG_OBJ_INFO(0, model, Phalcon\\Mvc\\CollectionInterface, 0) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_mvc_collection_managerinterface_getcustomeventsmanager, 0, 1, Phalcon\\Events\\ManagerInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_managerinterface_getcustomeventsmanager, 0, 1, IS_OBJECT, "Phalcon\\Events\\ManagerInterface", 0) -#endif - ZEND_ARG_OBJ_INFO(0, model, Phalcon\\Mvc\\CollectionInterface, 0) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_mvc_collection_managerinterface_getlastinitialized, 0, 0, Phalcon\\Mvc\\CollectionInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_managerinterface_getlastinitialized, 0, 0, IS_OBJECT, "Phalcon\\Mvc\\CollectionInterface", 0) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_managerinterface_initialize, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, model, Phalcon\\Mvc\\CollectionInterface, 0) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_managerinterface_isinitialized, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_managerinterface_isinitialized, 0, 1, _IS_BOOL, NULL, 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, className, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, className) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_managerinterface_isusingimplicitobjectids, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collection_managerinterface_isusingimplicitobjectids, 0, 1, _IS_BOOL, NULL, 0) -#endif - ZEND_ARG_OBJ_INFO(0, model, Phalcon\\Mvc\\CollectionInterface, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_managerinterface_notifyevent, 0, 0, 2) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, eventName, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, eventName) -#endif - ZEND_ARG_OBJ_INFO(0, model, Phalcon\\Mvc\\CollectionInterface, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_managerinterface_setcustomeventsmanager, 0, 0, 2) - ZEND_ARG_OBJ_INFO(0, model, Phalcon\\Mvc\\CollectionInterface, 0) - ZEND_ARG_OBJ_INFO(0, eventsManager, Phalcon\\Events\\ManagerInterface, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_managerinterface_setconnectionservice, 0, 0, 2) - ZEND_ARG_OBJ_INFO(0, model, Phalcon\\Mvc\\CollectionInterface, 0) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, connectionService, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, connectionService) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_managerinterface_useimplicitobjectids, 0, 0, 2) - ZEND_ARG_OBJ_INFO(0, model, Phalcon\\Mvc\\CollectionInterface, 0) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, useImplicitObjectIds, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, useImplicitObjectIds) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(phalcon_mvc_collection_managerinterface_method_entry) { - PHP_ABSTRACT_ME(Phalcon_Mvc_Collection_ManagerInterface, addBehavior, arginfo_phalcon_mvc_collection_managerinterface_addbehavior) - PHP_ABSTRACT_ME(Phalcon_Mvc_Collection_ManagerInterface, getConnection, arginfo_phalcon_mvc_collection_managerinterface_getconnection) - PHP_ABSTRACT_ME(Phalcon_Mvc_Collection_ManagerInterface, getCustomEventsManager, arginfo_phalcon_mvc_collection_managerinterface_getcustomeventsmanager) - PHP_ABSTRACT_ME(Phalcon_Mvc_Collection_ManagerInterface, getLastInitialized, arginfo_phalcon_mvc_collection_managerinterface_getlastinitialized) - PHP_ABSTRACT_ME(Phalcon_Mvc_Collection_ManagerInterface, initialize, arginfo_phalcon_mvc_collection_managerinterface_initialize) - PHP_ABSTRACT_ME(Phalcon_Mvc_Collection_ManagerInterface, isInitialized, arginfo_phalcon_mvc_collection_managerinterface_isinitialized) - PHP_ABSTRACT_ME(Phalcon_Mvc_Collection_ManagerInterface, isUsingImplicitObjectIds, arginfo_phalcon_mvc_collection_managerinterface_isusingimplicitobjectids) - PHP_ABSTRACT_ME(Phalcon_Mvc_Collection_ManagerInterface, notifyEvent, arginfo_phalcon_mvc_collection_managerinterface_notifyevent) - PHP_ABSTRACT_ME(Phalcon_Mvc_Collection_ManagerInterface, setCustomEventsManager, arginfo_phalcon_mvc_collection_managerinterface_setcustomeventsmanager) - PHP_ABSTRACT_ME(Phalcon_Mvc_Collection_ManagerInterface, setConnectionService, arginfo_phalcon_mvc_collection_managerinterface_setconnectionservice) - PHP_ABSTRACT_ME(Phalcon_Mvc_Collection_ManagerInterface, useImplicitObjectIds, arginfo_phalcon_mvc_collection_managerinterface_useimplicitobjectids) - PHP_FE_END -}; diff --git a/ext/phalcon/mvc/collectioninterface.zep.c b/ext/phalcon/mvc/collectioninterface.zep.c deleted file mode 100644 index 882b7f3ac3d..00000000000 --- a/ext/phalcon/mvc/collectioninterface.zep.c +++ /dev/null @@ -1,146 +0,0 @@ - -#ifdef HAVE_CONFIG_H -#include "../../ext_config.h" -#endif - -#include -#include "../../php_ext.h" -#include "../../ext.h" - -#include - -#include "kernel/main.h" - - -/** - * This file is part of the Phalcon Framework. - * - * (c) Phalcon Team - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ -/** - * Interface for Phalcon\Mvc\Collection - */ -ZEPHIR_INIT_CLASS(Phalcon_Mvc_CollectionInterface) { - - ZEPHIR_REGISTER_INTERFACE(Phalcon\\Mvc, CollectionInterface, phalcon, mvc_collectioninterface, phalcon_mvc_collectioninterface_method_entry); - - return SUCCESS; - -} - -/** - * Appends a customized message on the validation process - */ -ZEPHIR_DOC_METHOD(Phalcon_Mvc_CollectionInterface, appendMessage); - -/** - * Returns a cloned collection - */ -ZEPHIR_DOC_METHOD(Phalcon_Mvc_CollectionInterface, cloneResult); - -/** - * Perform a count over a collection - */ -ZEPHIR_DOC_METHOD(Phalcon_Mvc_CollectionInterface, count); - -/** - * Deletes a model instance. Returning true on success or false otherwise - */ -ZEPHIR_DOC_METHOD(Phalcon_Mvc_CollectionInterface, delete); - -/** - * Allows to query a set of records that match the specified conditions - */ -ZEPHIR_DOC_METHOD(Phalcon_Mvc_CollectionInterface, find); - -/** - * Find a document by its id - * - * @param string id - */ -ZEPHIR_DOC_METHOD(Phalcon_Mvc_CollectionInterface, findById); - -/** - * Allows to query the first record that match the specified conditions - */ -ZEPHIR_DOC_METHOD(Phalcon_Mvc_CollectionInterface, findFirst); - -/** - * Fires an event, implicitly calls behaviors and listeners in the events - * manager are notified - */ -ZEPHIR_DOC_METHOD(Phalcon_Mvc_CollectionInterface, fireEvent); - -/** - * Fires an event, implicitly listeners in the events manager are notified - * This method stops if one of the callbacks/listeners returns bool false - */ -ZEPHIR_DOC_METHOD(Phalcon_Mvc_CollectionInterface, fireEventCancel); - -/** - * Retrieves a database connection - * - * @return MongoDb - */ -ZEPHIR_DOC_METHOD(Phalcon_Mvc_CollectionInterface, getConnection); - -/** - * Returns one of the DIRTY_STATE_* constants telling if the record exists - * in the database or not - */ -ZEPHIR_DOC_METHOD(Phalcon_Mvc_CollectionInterface, getDirtyState); - -/** - * Returns the value of the _id property - * - * @return MongoId - */ -ZEPHIR_DOC_METHOD(Phalcon_Mvc_CollectionInterface, getId); - -/** - * Returns all the validation messages - */ -ZEPHIR_DOC_METHOD(Phalcon_Mvc_CollectionInterface, getMessages); - -/** - * Returns an array with reserved properties that cannot be part of the - * insert/update - */ -ZEPHIR_DOC_METHOD(Phalcon_Mvc_CollectionInterface, getReservedAttributes); - -/** - * Returns collection name mapped in the model - */ -ZEPHIR_DOC_METHOD(Phalcon_Mvc_CollectionInterface, getSource); - -/** - * Creates/Updates a collection based on the values in the attributes - */ -ZEPHIR_DOC_METHOD(Phalcon_Mvc_CollectionInterface, save); - -/** - * Sets a service in the services container that returns the Mongo database - */ -ZEPHIR_DOC_METHOD(Phalcon_Mvc_CollectionInterface, setConnectionService); - -/** - * Sets the dirty state of the object using one of the DIRTY_STATE_* - * constants - */ -ZEPHIR_DOC_METHOD(Phalcon_Mvc_CollectionInterface, setDirtyState); - -/** - * Sets a value for the _id property, creates a MongoId object if needed - * - * @param mixed id - */ -ZEPHIR_DOC_METHOD(Phalcon_Mvc_CollectionInterface, setId); - -/** - * Check whether validation process has generated any messages - */ -ZEPHIR_DOC_METHOD(Phalcon_Mvc_CollectionInterface, validationHasFailed); - diff --git a/ext/phalcon/mvc/collectioninterface.zep.h b/ext/phalcon/mvc/collectioninterface.zep.h deleted file mode 100644 index 134cfaa6c85..00000000000 --- a/ext/phalcon/mvc/collectioninterface.zep.h +++ /dev/null @@ -1,170 +0,0 @@ - -extern zend_class_entry *phalcon_mvc_collectioninterface_ce; - -ZEPHIR_INIT_CLASS(Phalcon_Mvc_CollectionInterface); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collectioninterface_appendmessage, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, message, Phalcon\\Messages\\MessageInterface, 0) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_mvc_collectioninterface_cloneresult, 0, 2, Phalcon\\Mvc\\CollectionInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collectioninterface_cloneresult, 0, 2, IS_OBJECT, "Phalcon\\Mvc\\CollectionInterface", 0) -#endif - ZEND_ARG_OBJ_INFO(0, collection, Phalcon\\Mvc\\CollectionInterface, 0) - ZEND_ARG_ARRAY_INFO(0, document, 0) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collectioninterface_count, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collectioninterface_count, 0, 0, IS_LONG, NULL, 0) -#endif - ZEND_ARG_ARRAY_INFO(0, parameters, 1) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collectioninterface_delete, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collectioninterface_delete, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collectioninterface_find, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collectioninterface_find, 0, 0, IS_ARRAY, NULL, 0) -#endif - ZEND_ARG_ARRAY_INFO(0, parameters, 1) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_mvc_collectioninterface_findbyid, 0, 1, Phalcon\\Mvc\\CollectionInterface, 1) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collectioninterface_findbyid, 0, 1, IS_OBJECT, "Phalcon\\Mvc\\CollectionInterface", 1) -#endif - ZEND_ARG_INFO(0, id) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collectioninterface_findfirst, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collectioninterface_findfirst, 0, 0, IS_ARRAY, NULL, 0) -#endif - ZEND_ARG_ARRAY_INFO(0, parameters, 1) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collectioninterface_fireevent, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collectioninterface_fireevent, 0, 1, _IS_BOOL, NULL, 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, eventName, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, eventName) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collectioninterface_fireeventcancel, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collectioninterface_fireeventcancel, 0, 1, _IS_BOOL, NULL, 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, eventName, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, eventName) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collectioninterface_getdirtystate, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collectioninterface_getdirtystate, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collectioninterface_getmessages, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collectioninterface_getmessages, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collectioninterface_getreservedattributes, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collectioninterface_getreservedattributes, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collectioninterface_getsource, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collectioninterface_getsource, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collectioninterface_save, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collectioninterface_save, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collectioninterface_setconnectionservice, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, connectionService, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, connectionService) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_mvc_collectioninterface_setdirtystate, 0, 1, Phalcon\\Mvc\\CollectionInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collectioninterface_setdirtystate, 0, 1, IS_OBJECT, "Phalcon\\Mvc\\CollectionInterface", 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, dirtyState, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, dirtyState) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collectioninterface_setid, 0, 0, 1) - ZEND_ARG_INFO(0, id) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collectioninterface_validationhasfailed, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_collectioninterface_validationhasfailed, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(phalcon_mvc_collectioninterface_method_entry) { - PHP_ABSTRACT_ME(Phalcon_Mvc_CollectionInterface, appendMessage, arginfo_phalcon_mvc_collectioninterface_appendmessage) - ZEND_FENTRY(cloneResult, NULL, arginfo_phalcon_mvc_collectioninterface_cloneresult, ZEND_ACC_STATIC|ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) - ZEND_FENTRY(count, NULL, arginfo_phalcon_mvc_collectioninterface_count, ZEND_ACC_STATIC|ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) - PHP_ABSTRACT_ME(Phalcon_Mvc_CollectionInterface, delete, arginfo_phalcon_mvc_collectioninterface_delete) - ZEND_FENTRY(find, NULL, arginfo_phalcon_mvc_collectioninterface_find, ZEND_ACC_STATIC|ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) - ZEND_FENTRY(findById, NULL, arginfo_phalcon_mvc_collectioninterface_findbyid, ZEND_ACC_STATIC|ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) - ZEND_FENTRY(findFirst, NULL, arginfo_phalcon_mvc_collectioninterface_findfirst, ZEND_ACC_STATIC|ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) - PHP_ABSTRACT_ME(Phalcon_Mvc_CollectionInterface, fireEvent, arginfo_phalcon_mvc_collectioninterface_fireevent) - PHP_ABSTRACT_ME(Phalcon_Mvc_CollectionInterface, fireEventCancel, arginfo_phalcon_mvc_collectioninterface_fireeventcancel) - PHP_ABSTRACT_ME(Phalcon_Mvc_CollectionInterface, getConnection, NULL) - PHP_ABSTRACT_ME(Phalcon_Mvc_CollectionInterface, getDirtyState, arginfo_phalcon_mvc_collectioninterface_getdirtystate) - PHP_ABSTRACT_ME(Phalcon_Mvc_CollectionInterface, getId, NULL) - PHP_ABSTRACT_ME(Phalcon_Mvc_CollectionInterface, getMessages, arginfo_phalcon_mvc_collectioninterface_getmessages) - PHP_ABSTRACT_ME(Phalcon_Mvc_CollectionInterface, getReservedAttributes, arginfo_phalcon_mvc_collectioninterface_getreservedattributes) - PHP_ABSTRACT_ME(Phalcon_Mvc_CollectionInterface, getSource, arginfo_phalcon_mvc_collectioninterface_getsource) - PHP_ABSTRACT_ME(Phalcon_Mvc_CollectionInterface, save, arginfo_phalcon_mvc_collectioninterface_save) - PHP_ABSTRACT_ME(Phalcon_Mvc_CollectionInterface, setConnectionService, arginfo_phalcon_mvc_collectioninterface_setconnectionservice) - PHP_ABSTRACT_ME(Phalcon_Mvc_CollectionInterface, setDirtyState, arginfo_phalcon_mvc_collectioninterface_setdirtystate) - PHP_ABSTRACT_ME(Phalcon_Mvc_CollectionInterface, setId, arginfo_phalcon_mvc_collectioninterface_setid) - PHP_ABSTRACT_ME(Phalcon_Mvc_CollectionInterface, validationHasFailed, arginfo_phalcon_mvc_collectioninterface_validationhasfailed) - PHP_FE_END -}; From 737d30e2b80e5bee9ac32aa4ebd42c89fec93caa Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Sat, 7 Sep 2019 11:18:40 -0400 Subject: [PATCH 096/202] [#13697] - Removed collection references --- phalcon/Validation/Validator/Uniqueness.zep | 158 ++++++++++---------- 1 file changed, 79 insertions(+), 79 deletions(-) diff --git a/phalcon/Validation/Validator/Uniqueness.zep b/phalcon/Validation/Validator/Uniqueness.zep index f553eb3670d..378a8b235a1 100644 --- a/phalcon/Validation/Validator/Uniqueness.zep +++ b/phalcon/Validation/Validator/Uniqueness.zep @@ -11,13 +11,13 @@ namespace Phalcon\Validation\Validator; use Phalcon\Messages\Message; +use Phalcon\Mvc\Model; +use Phalcon\Mvc\ModelInterface; use Phalcon\Validation; use Phalcon\Validation\AbstractCombinedFieldsValidator; use Phalcon\Validation\Exception; -use Phalcon\Mvc\ModelInterface; -use Phalcon\Mvc\CollectionInterface; -use Phalcon\Mvc\Model; -use Phalcon\Mvc\Collection; +//use Phalcon\Mvc\CollectionInterface; +//use Phalcon\Mvc\Collection; /** * Check that a field is unique in the related table @@ -170,13 +170,13 @@ class Uniqueness extends AbstractCombinedFieldsValidator } } - let isModel = record instanceof ModelInterface, - isDocument = record instanceof CollectionInterface; + let isModel = record instanceof ModelInterface; +// let isDocument = record instanceof CollectionInterface; if isModel { let params = this->isUniquenessModel(record, field, values); - } elseif isDocument { - let params = this->isUniquenessCollection(record, field, values); +// } elseif isDocument { +// let params = this->isUniquenessCollection(record, field, values); } else { throw new Exception( "The uniqueness validator works only with Phalcon\\Mvc\\Model or Phalcon\\Mvc\\Collection" @@ -188,77 +188,77 @@ class Uniqueness extends AbstractCombinedFieldsValidator return {className}::count(params) == 0; } - /** - * Uniqueness method used for collection - */ - protected function isUniquenessCollection(var record, array field, array values) - { - var exceptConditions, fieldExcept, notInValues, value, singleField, - params, except, singleExcept; - - let exceptConditions = []; - let params = [ - "conditions" : [] - ]; - - for singleField in field { - let fieldExcept = null; - let notInValues = []; - let value = values[singleField]; - - let except = this->getOption("except"); - - let params["conditions"][singleField] = value; - - if except { - if typeof except == "array" && count(field) > 1 { - if isset except[singleField] { - let fieldExcept = except[singleField]; - } - } - - if fieldExcept != null { - if typeof fieldExcept == "array" { - for singleExcept in fieldExcept { - let notInValues[] = singleExcept; - } - - let exceptConditions[singleField] = [ - "$nin": notInValues - ]; - } else { - let exceptConditions[singleField] = [ - "$ne": fieldExcept - ]; - } - } elseif typeof except == "array" && count(field) == 1 { - for singleExcept in except { - let notInValues[] = singleExcept; - } - - let params["conditions"][singleField] = [ - "$nin": notInValues - ]; - } elseif count(field) == 1 { - let params["conditions"][singleField] = [ - "$ne": except - ]; - } - } - } - - if record->getDirtyState() == Collection::DIRTY_STATE_PERSISTENT { - let params["conditions"]["_id"] = [ - "$ne": record->getId() - ]; - } - - if !empty exceptConditions { - let params["conditions"]["$or"] = [exceptConditions]; - } - - return params; - } +// /** +// * Uniqueness method used for collection +// */ +// protected function isUniquenessCollection(var record, array field, array values) +// { +// var exceptConditions, fieldExcept, notInValues, value, singleField, +// params, except, singleExcept; +// +// let exceptConditions = []; +// let params = [ +// "conditions" : [] +// ]; +// +// for singleField in field { +// let fieldExcept = null; +// let notInValues = []; +// let value = values[singleField]; +// +// let except = this->getOption("except"); +// +// let params["conditions"][singleField] = value; +// +// if except { +// if typeof except == "array" && count(field) > 1 { +// if isset except[singleField] { +// let fieldExcept = except[singleField]; +// } +// } +// +// if fieldExcept != null { +// if typeof fieldExcept == "array" { +// for singleExcept in fieldExcept { +// let notInValues[] = singleExcept; +// } +// +// let exceptConditions[singleField] = [ +// "$nin": notInValues +// ]; +// } else { +// let exceptConditions[singleField] = [ +// "$ne": fieldExcept +// ]; +// } +// } elseif typeof except == "array" && count(field) == 1 { +// for singleExcept in except { +// let notInValues[] = singleExcept; +// } +// +// let params["conditions"][singleField] = [ +// "$nin": notInValues +// ]; +// } elseif count(field) == 1 { +// let params["conditions"][singleField] = [ +// "$ne": except +// ]; +// } +// } +// } +// +// if record->getDirtyState() == Collection::DIRTY_STATE_PERSISTENT { +// let params["conditions"]["_id"] = [ +// "$ne": record->getId() +// ]; +// } +// +// if !empty exceptConditions { +// let params["conditions"]["$or"] = [exceptConditions]; +// } +// +// return params; +// } /** * Uniqueness method used for model From f63cf39b7f0c08925c9c20ae68bdbb5a6c5a4da8 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Sat, 7 Sep 2019 11:45:17 -0400 Subject: [PATCH 097/202] [#13697] - Updated changelog --- CHANGELOG-4.0.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG-4.0.md b/CHANGELOG-4.0.md index 8e48c80f37b..26eb87ead6c 100644 --- a/CHANGELOG-4.0.md +++ b/CHANGELOG-4.0.md @@ -25,6 +25,7 @@ ## Removed - Removed `Phalcon\Plugin` - duplicate of `Phalcon\DI\Injectable` [#14359](https://github.com/phalcon/cphalcon/issues/14359) +- Removed `Phalcon\Mvc\Collection` and all related references. 4.0 will not support mongo as it is being re-implemented to take advantage of the latest Mongo driver (see [#13697](https://github.com/phalcon/cphalcon/issues/13697)) [#14361](https://github.com/phalcon/cphalcon/pull/14361) # [4.0.0-beta.2](https://github.com/phalcon/cphalcon/releases/tag/v4.0.0-beta.2) (2019-08-18) From f86730aedd95df02465f331e26144eb37391957a Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Sat, 7 Sep 2019 11:48:40 -0400 Subject: [PATCH 098/202] [#13697] - Removed unused variable --- ext/config.m4 | 15 +- ext/config.w32 | 10 +- ext/phalcon.c | 30 +- ext/phalcon.h | 15 +- ext/phalcon/assets/manager.zep.c | 100 +-- ext/phalcon/assets/manager.zep.h | 15 - ext/phalcon/cli/router.zep.c | 60 +- ext/phalcon/cli/router.zep.h | 15 - ext/phalcon/di/abstractinjectionaware.zep.c | 75 ++ ext/phalcon/di/abstractinjectionaware.zep.h | 24 + .../dispatcher/abstractdispatcher.zep.c | 61 +- .../dispatcher/abstractdispatcher.zep.h | 15 - ext/phalcon/flash/abstractflash.zep.c | 166 ++--- ext/phalcon/flash/abstractflash.zep.h | 25 +- ext/phalcon/flash/direct.zep.h | 4 +- ext/phalcon/flash/flashinterface.zep.h | 6 +- ext/phalcon/flash/session.zep.c | 4 +- ext/phalcon/flash/session.zep.h | 6 +- ext/phalcon/helper/fs.zep.c | 136 ++++ ext/phalcon/helper/fs.zep.h | 24 + ext/phalcon/helper/str.zep.c | 30 +- ext/phalcon/html/tag.zep.c | 88 +-- ext/phalcon/html/tag.zep.h | 15 - ext/phalcon/http/cookie.zep.c | 49 +- ext/phalcon/http/cookie.zep.h | 15 - ext/phalcon/http/request.zep.c | 327 ++++----- ext/phalcon/http/request.zep.h | 15 - ext/phalcon/http/response.zep.c | 84 ++- ext/phalcon/http/response/cookies.zep.c | 41 +- ext/phalcon/http/response/cookies.zep.h | 15 - ext/phalcon/http/response/headers.zep.c | 14 +- ext/phalcon/image/adapter/gd.zep.c | 232 +++--- ext/phalcon/loader.zep.c | 4 +- ext/phalcon/logger.zep.c | 4 +- ext/phalcon/logger/adapter/syslog.zep.c | 10 +- ext/phalcon/logger/formatter/json.zep.c | 2 +- ext/phalcon/logger/formatter/line.zep.c | 2 +- ext/phalcon/logger/loggerfactory.zep.c | 2 +- ext/phalcon/messages/messages.zep.c | 2 +- ext/phalcon/mvc/micro.zep.c | 22 +- ext/phalcon/mvc/model.zep.c | 683 +++++++++--------- ext/phalcon/mvc/model.zep.h | 15 - .../mvc/model/behavior/timestampable.zep.c | 4 +- ext/phalcon/mvc/model/binder.zep.c | 6 +- ext/phalcon/mvc/model/criteria.zep.c | 6 +- ext/phalcon/mvc/model/manager.zep.c | 16 +- ext/phalcon/mvc/model/metadata/stream.zep.c | 4 +- ext/phalcon/mvc/model/query.zep.c | 204 +++--- ext/phalcon/mvc/model/query/builder.zep.c | 60 +- ext/phalcon/mvc/model/resultset/complex.zep.c | 2 +- ext/phalcon/mvc/model/transaction.zep.c | 4 +- .../mvc/model/transaction/manager.zep.c | 6 +- ext/phalcon/mvc/router.zep.c | 99 +-- ext/phalcon/mvc/router.zep.h | 15 - ext/phalcon/mvc/router/group.zep.c | 2 +- ext/phalcon/mvc/view.zep.c | 16 +- ext/phalcon/mvc/view/engine/php.zep.c | 4 +- ext/phalcon/mvc/view/engine/volt.zep.c | 14 +- .../mvc/view/engine/volt/compiler.zep.c | 152 ++-- ext/phalcon/mvc/view/simple.zep.c | 6 +- ext/phalcon/security.zep.c | 409 +++++------ ext/phalcon/security.zep.h | 48 +- ext/phalcon/session/adapter/stream.zep.c | 22 +- ext/phalcon/session/manager.zep.c | 50 +- ext/phalcon/session/manager.zep.h | 15 - .../storage/adapter/abstractadapter.zep.c | 41 +- ext/phalcon/storage/adapter/redis.zep.c | 84 +-- ext/phalcon/text.zep.c | 4 +- ext/phalcon/url.zep.c | 230 +++--- ext/phalcon/url.zep.h | 21 +- ext/phalcon/validation.zep.c | 2 +- .../validator/file/resolution/equal.zep.c | 2 +- .../validator/file/resolution/max.zep.c | 2 +- .../validator/file/resolution/min.zep.c | 2 +- .../validation/validator/uniqueness.zep.c | 308 +------- .../validation/validator/uniqueness.zep.h | 8 - phalcon/Validation/Validator/Uniqueness.zep | 4 +- 77 files changed, 1878 insertions(+), 2471 deletions(-) create mode 100644 ext/phalcon/di/abstractinjectionaware.zep.c create mode 100644 ext/phalcon/di/abstractinjectionaware.zep.h create mode 100644 ext/phalcon/helper/fs.zep.c create mode 100644 ext/phalcon/helper/fs.zep.h diff --git a/ext/config.m4 b/ext/config.m4 index 0240ecc63a3..e16cd66697f 100644 --- a/ext/config.m4 +++ b/ext/config.m4 @@ -14,6 +14,7 @@ if test "$PHP_PHALCON" = "yes"; then phalcon/events/eventsawareinterface.zep.c phalcon/validation/validatorinterface.zep.c phalcon/validation/abstractvalidator.zep.c + phalcon/di/abstractinjectionaware.zep.c phalcon/storage/adapter/adapterinterface.zep.c phalcon/di/injectable.zep.c phalcon/factory/abstractfactory.zep.c @@ -40,7 +41,6 @@ if test "$PHP_PHALCON" = "yes"; then phalcon/http/message/abstractmessage.zep.c phalcon/logger/adapter/adapterinterface.zep.c phalcon/logger/formatter/formatterinterface.zep.c - phalcon/mvc/entityinterface.zep.c phalcon/mvc/model/resultsetinterface.zep.c phalcon/paginator/adapter/adapterinterface.zep.c phalcon/translate/adapter/adapterinterface.zep.c @@ -55,7 +55,6 @@ if test "$PHP_PHALCON" = "yes"; then phalcon/image/adapter/adapterinterface.zep.c phalcon/logger/adapter/abstractadapter.zep.c phalcon/logger/formatter/abstractformatter.zep.c - phalcon/mvc/collection/behaviorinterface.zep.c phalcon/mvc/model/behaviorinterface.zep.c phalcon/mvc/model/exception.zep.c phalcon/mvc/view/engine/engineinterface.zep.c @@ -76,7 +75,7 @@ if test "$PHP_PHALCON" = "yes"; then phalcon/flash/abstractflash.zep.c phalcon/http/message/abstractrequest.zep.c phalcon/image/adapter/abstractadapter.zep.c - phalcon/mvc/collection/behavior.zep.c + phalcon/mvc/entityinterface.zep.c phalcon/mvc/model/behavior.zep.c phalcon/mvc/model/metadata/strategyinterface.zep.c phalcon/mvc/model/resultinterface.zep.c @@ -115,7 +114,6 @@ if test "$PHP_PHALCON" = "yes"; then phalcon/http/response/headersinterface.zep.c phalcon/http/responseinterface.zep.c phalcon/messages/messageinterface.zep.c - phalcon/mvc/collectioninterface.zep.c phalcon/mvc/controllerinterface.zep.c phalcon/mvc/dispatcherinterface.zep.c phalcon/mvc/micro/collectioninterface.zep.c @@ -286,6 +284,7 @@ if test "$PHP_PHALCON" = "yes"; then phalcon/forms/manager.zep.c phalcon/helper/arr.zep.c phalcon/helper/exception.zep.c + phalcon/helper/fs.zep.c phalcon/helper/number.zep.c phalcon/helper/str.zep.c phalcon/html/attributes.zep.c @@ -354,13 +353,6 @@ if test "$PHP_PHALCON" = "yes"; then phalcon/messages/messages.zep.c phalcon/mvc/application.zep.c phalcon/mvc/application/exception.zep.c - phalcon/mvc/collection.zep.c - phalcon/mvc/collection/behavior/softdelete.zep.c - phalcon/mvc/collection/behavior/timestampable.zep.c - phalcon/mvc/collection/document.zep.c - phalcon/mvc/collection/exception.zep.c - phalcon/mvc/collection/manager.zep.c - phalcon/mvc/collection/managerinterface.zep.c phalcon/mvc/controller.zep.c phalcon/mvc/controller/bindmodelinterface.zep.c phalcon/mvc/dispatcher.zep.c @@ -413,7 +405,6 @@ if test "$PHP_PHALCON" = "yes"; then phalcon/paginator/exception.zep.c phalcon/paginator/paginatorfactory.zep.c phalcon/paginator/repository.zep.c - phalcon/plugin.zep.c phalcon/registry.zep.c phalcon/security.zep.c phalcon/security/exception.zep.c diff --git a/ext/config.w32 b/ext/config.w32 index 1d5e169526e..a94144d6f6f 100644 --- a/ext/config.w32 +++ b/ext/config.w32 @@ -14,8 +14,8 @@ if (PHP_PHALCON != "no") { ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/query", "scanner.c parser.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/view/engine/volt", "parser.c scanner.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/url", "utils.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon", "exception.zep.c collection.zep.c config.zep.c di.zep.c cache.zep.c container.zep.c crypt.zep.c debug.zep.c escaper.zep.c kernel.zep.c loader.zep.c logger.zep.c plugin.zep.c registry.zep.c security.zep.c tag.zep.c text.zep.c url.zep.c validation.zep.c version.zep.c 0__closure.zep.c 1__closure.zep.c 2__closure.zep.c 3__closure.zep.c 4__closure.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/di", "injectionawareinterface.zep.c injectable.zep.c diinterface.zep.c exception.zep.c factorydefault.zep.c serviceinterface.zep.c service.zep.c serviceproviderinterface.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon", "exception.zep.c collection.zep.c config.zep.c di.zep.c cache.zep.c container.zep.c crypt.zep.c debug.zep.c escaper.zep.c kernel.zep.c loader.zep.c logger.zep.c registry.zep.c security.zep.c tag.zep.c text.zep.c url.zep.c validation.zep.c version.zep.c 0__closure.zep.c 1__closure.zep.c 2__closure.zep.c 3__closure.zep.c 4__closure.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/di", "injectionawareinterface.zep.c abstractinjectionaware.zep.c injectable.zep.c diinterface.zep.c exception.zep.c factorydefault.zep.c serviceinterface.zep.c service.zep.c serviceproviderinterface.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/events", "eventsawareinterface.zep.c eventinterface.zep.c managerinterface.zep.c event.zep.c exception.zep.c manager.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/validation", "validatorinterface.zep.c abstractvalidator.zep.c validatorcompositeinterface.zep.c abstractvalidatorcomposite.zep.c abstractcombinedfieldsvalidator.zep.c validationinterface.zep.c exception.zep.c validatorfactory.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/storage/adapter", "adapterinterface.zep.c abstractadapter.zep.c apcu.zep.c libmemcached.zep.c memory.zep.c redis.zep.c stream.zep.c", "phalcon"); @@ -35,14 +35,13 @@ if (PHP_PHALCON != "no") { ADD_SOURCES(configure_module_dirname + "/phalcon/firewall/adapter", "adapterinterface.zep.c abstractadapter.zep.c acl.zep.c annotations.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/logger/adapter", "adapterinterface.zep.c abstractadapter.zep.c noop.zep.c stream.zep.c syslog.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/logger/formatter", "formatterinterface.zep.c abstractformatter.zep.c json.zep.c line.zep.c syslog.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc", "entityinterface.zep.c viewbaseinterface.zep.c routerinterface.zep.c collectioninterface.zep.c controllerinterface.zep.c dispatcherinterface.zep.c modelinterface.zep.c router.zep.c viewinterface.zep.c application.zep.c collection.zep.c controller.zep.c dispatcher.zep.c micro.zep.c model.zep.c moduledefinitioninterface.zep.c view.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/paginator/adapter", "adapterinterface.zep.c abstractadapter.zep.c model.zep.c nativearray.zep.c querybuilder.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/translate/adapter", "adapterinterface.zep.c abstractadapter.zep.c csv.zep.c gettext.zep.c nativearray.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/db/adapter/pdo", "abstractpdo.zep.c mysql.zep.c postgresql.zep.c sqlite.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/flash", "flashinterface.zep.c abstractflash.zep.c direct.zep.c exception.zep.c session.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/image/adapter", "adapterinterface.zep.c abstractadapter.zep.c gd.zep.c imagick.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/collection", "behaviorinterface.zep.c behavior.zep.c document.zep.c exception.zep.c manager.zep.c managerinterface.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/view/engine", "engineinterface.zep.c abstractengine.zep.c php.zep.c volt.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc", "viewbaseinterface.zep.c entityinterface.zep.c routerinterface.zep.c controllerinterface.zep.c dispatcherinterface.zep.c modelinterface.zep.c router.zep.c viewinterface.zep.c application.zep.c controller.zep.c dispatcher.zep.c micro.zep.c model.zep.c moduledefinitioninterface.zep.c view.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/acl/adapter", "adapterinterface.zep.c abstractadapter.zep.c memory.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/application", "abstractapplication.zep.c exception.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/domain/payload", "readableinterface.zep.c writeableinterface.zep.c payloadinterface.zep.c payload.zep.c payloadfactory.zep.c status.zep.c", "phalcon"); @@ -90,7 +89,7 @@ if (PHP_PHALCON != "no") { ADD_SOURCES(configure_module_dirname + "/phalcon/firewall/adapter/micro", "acl.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/firewall", "exception.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/forms", "exception.zep.c form.zep.c manager.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/helper", "arr.zep.c exception.zep.c number.zep.c str.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/helper", "arr.zep.c exception.zep.c fs.zep.c number.zep.c str.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/html", "attributes.zep.c breadcrumbs.zep.c exception.zep.c tag.zep.c tagfactory.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/http/cookie", "exception.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/http/message/exception", "invalidargumentexception.zep.c", "phalcon"); @@ -100,7 +99,6 @@ if (PHP_PHALCON != "no") { ADD_SOURCES(configure_module_dirname + "/phalcon/loader", "exception.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/logger", "adapterfactory.zep.c exception.zep.c item.zep.c loggerfactory.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/application", "exception.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/collection/behavior", "softdelete.zep.c timestampable.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/controller", "bindmodelinterface.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/dispatcher", "exception.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/behavior", "softdelete.zep.c timestampable.zep.c", "phalcon"); diff --git a/ext/phalcon.c b/ext/phalcon.c index 462f60c0ece..efa72b564be 100644 --- a/ext/phalcon.c +++ b/ext/phalcon.c @@ -40,7 +40,6 @@ zend_class_entry *phalcon_db_dialectinterface_ce; zend_class_entry *phalcon_firewall_adapter_adapterinterface_ce; zend_class_entry *phalcon_logger_adapter_adapterinterface_ce; zend_class_entry *phalcon_logger_formatter_formatterinterface_ce; -zend_class_entry *phalcon_mvc_entityinterface_ce; zend_class_entry *phalcon_mvc_model_resultsetinterface_ce; zend_class_entry *phalcon_paginator_adapter_adapterinterface_ce; zend_class_entry *phalcon_translate_adapter_adapterinterface_ce; @@ -48,7 +47,6 @@ zend_class_entry *phalcon_assets_filterinterface_ce; zend_class_entry *phalcon_di_diinterface_ce; zend_class_entry *phalcon_flash_flashinterface_ce; zend_class_entry *phalcon_image_adapter_adapterinterface_ce; -zend_class_entry *phalcon_mvc_collection_behaviorinterface_ce; zend_class_entry *phalcon_mvc_model_behaviorinterface_ce; zend_class_entry *phalcon_mvc_view_engine_engineinterface_ce; zend_class_entry *phalcon_mvc_viewbaseinterface_ce; @@ -56,6 +54,7 @@ zend_class_entry *phalcon_validation_validatorcompositeinterface_ce; zend_class_entry *phalcon_acl_adapter_adapterinterface_ce; zend_class_entry *phalcon_domain_payload_readableinterface_ce; zend_class_entry *phalcon_domain_payload_writeableinterface_ce; +zend_class_entry *phalcon_mvc_entityinterface_ce; zend_class_entry *phalcon_mvc_model_metadata_strategyinterface_ce; zend_class_entry *phalcon_mvc_model_resultinterface_ce; zend_class_entry *phalcon_mvc_routerinterface_ce; @@ -85,7 +84,6 @@ zend_class_entry *phalcon_http_response_cookiesinterface_ce; zend_class_entry *phalcon_http_response_headersinterface_ce; zend_class_entry *phalcon_http_responseinterface_ce; zend_class_entry *phalcon_messages_messageinterface_ce; -zend_class_entry *phalcon_mvc_collectioninterface_ce; zend_class_entry *phalcon_mvc_controllerinterface_ce; zend_class_entry *phalcon_mvc_dispatcherinterface_ce; zend_class_entry *phalcon_mvc_micro_collectioninterface_ce; @@ -111,13 +109,13 @@ zend_class_entry *phalcon_acl_roleaware_ce; zend_class_entry *phalcon_cli_router_routeinterface_ce; zend_class_entry *phalcon_cli_routerinterface_ce; zend_class_entry *phalcon_di_serviceproviderinterface_ce; -zend_class_entry *phalcon_mvc_collection_managerinterface_ce; zend_class_entry *phalcon_mvc_controller_bindmodelinterface_ce; zend_class_entry *phalcon_mvc_micro_middlewareinterface_ce; zend_class_entry *phalcon_mvc_model_binder_bindableinterface_ce; zend_class_entry *phalcon_mvc_moduledefinitioninterface_ce; zend_class_entry *phalcon_exception_ce; zend_class_entry *phalcon_validation_abstractvalidator_ce; +zend_class_entry *phalcon_di_abstractinjectionaware_ce; zend_class_entry *phalcon_di_injectable_ce; zend_class_entry *phalcon_factory_abstractfactory_ce; zend_class_entry *phalcon_forms_element_abstractelement_ce; @@ -151,7 +149,6 @@ zend_class_entry *phalcon_dispatcher_exception_ce; zend_class_entry *phalcon_flash_abstractflash_ce; zend_class_entry *phalcon_http_message_abstractrequest_ce; zend_class_entry *phalcon_image_adapter_abstractadapter_ce; -zend_class_entry *phalcon_mvc_collection_behavior_ce; zend_class_entry *phalcon_mvc_model_behavior_ce; zend_class_entry *phalcon_mvc_model_resultset_ce; zend_class_entry *phalcon_mvc_view_engine_abstractengine_ce; @@ -311,6 +308,7 @@ zend_class_entry *phalcon_forms_form_ce; zend_class_entry *phalcon_forms_manager_ce; zend_class_entry *phalcon_helper_arr_ce; zend_class_entry *phalcon_helper_exception_ce; +zend_class_entry *phalcon_helper_fs_ce; zend_class_entry *phalcon_helper_number_ce; zend_class_entry *phalcon_helper_str_ce; zend_class_entry *phalcon_html_attributes_ce; @@ -379,12 +377,6 @@ zend_class_entry *phalcon_messages_message_ce; zend_class_entry *phalcon_messages_messages_ce; zend_class_entry *phalcon_mvc_application_ce; zend_class_entry *phalcon_mvc_application_exception_ce; -zend_class_entry *phalcon_mvc_collection_behavior_softdelete_ce; -zend_class_entry *phalcon_mvc_collection_behavior_timestampable_ce; -zend_class_entry *phalcon_mvc_collection_ce; -zend_class_entry *phalcon_mvc_collection_document_ce; -zend_class_entry *phalcon_mvc_collection_exception_ce; -zend_class_entry *phalcon_mvc_collection_manager_ce; zend_class_entry *phalcon_mvc_controller_ce; zend_class_entry *phalcon_mvc_dispatcher_ce; zend_class_entry *phalcon_mvc_dispatcher_exception_ce; @@ -433,7 +425,6 @@ zend_class_entry *phalcon_paginator_adapter_querybuilder_ce; zend_class_entry *phalcon_paginator_exception_ce; zend_class_entry *phalcon_paginator_paginatorfactory_ce; zend_class_entry *phalcon_paginator_repository_ce; -zend_class_entry *phalcon_plugin_ce; zend_class_entry *phalcon_registry_ce; zend_class_entry *phalcon_security_ce; zend_class_entry *phalcon_security_exception_ce; @@ -549,7 +540,6 @@ static PHP_MINIT_FUNCTION(phalcon) ZEPHIR_INIT(Phalcon_Firewall_Adapter_AdapterInterface); ZEPHIR_INIT(Phalcon_Logger_Adapter_AdapterInterface); ZEPHIR_INIT(Phalcon_Logger_Formatter_FormatterInterface); - ZEPHIR_INIT(Phalcon_Mvc_EntityInterface); ZEPHIR_INIT(Phalcon_Mvc_Model_ResultsetInterface); ZEPHIR_INIT(Phalcon_Paginator_Adapter_AdapterInterface); ZEPHIR_INIT(Phalcon_Translate_Adapter_AdapterInterface); @@ -557,7 +547,6 @@ static PHP_MINIT_FUNCTION(phalcon) ZEPHIR_INIT(Phalcon_Di_DiInterface); ZEPHIR_INIT(Phalcon_Flash_FlashInterface); ZEPHIR_INIT(Phalcon_Image_Adapter_AdapterInterface); - ZEPHIR_INIT(Phalcon_Mvc_Collection_BehaviorInterface); ZEPHIR_INIT(Phalcon_Mvc_Model_BehaviorInterface); ZEPHIR_INIT(Phalcon_Mvc_ViewBaseInterface); ZEPHIR_INIT(Phalcon_Mvc_View_Engine_EngineInterface); @@ -565,6 +554,7 @@ static PHP_MINIT_FUNCTION(phalcon) ZEPHIR_INIT(Phalcon_Acl_Adapter_AdapterInterface); ZEPHIR_INIT(Phalcon_Domain_Payload_ReadableInterface); ZEPHIR_INIT(Phalcon_Domain_Payload_WriteableInterface); + ZEPHIR_INIT(Phalcon_Mvc_EntityInterface); ZEPHIR_INIT(Phalcon_Mvc_Model_MetaData_StrategyInterface); ZEPHIR_INIT(Phalcon_Mvc_Model_ResultInterface); ZEPHIR_INIT(Phalcon_Mvc_RouterInterface); @@ -594,7 +584,6 @@ static PHP_MINIT_FUNCTION(phalcon) ZEPHIR_INIT(Phalcon_Http_Response_CookiesInterface); ZEPHIR_INIT(Phalcon_Http_Response_HeadersInterface); ZEPHIR_INIT(Phalcon_Messages_MessageInterface); - ZEPHIR_INIT(Phalcon_Mvc_CollectionInterface); ZEPHIR_INIT(Phalcon_Mvc_ControllerInterface); ZEPHIR_INIT(Phalcon_Mvc_DispatcherInterface); ZEPHIR_INIT(Phalcon_Mvc_Micro_CollectionInterface); @@ -620,13 +609,13 @@ static PHP_MINIT_FUNCTION(phalcon) ZEPHIR_INIT(Phalcon_Cli_RouterInterface); ZEPHIR_INIT(Phalcon_Cli_Router_RouteInterface); ZEPHIR_INIT(Phalcon_Di_ServiceProviderInterface); - ZEPHIR_INIT(Phalcon_Mvc_Collection_ManagerInterface); ZEPHIR_INIT(Phalcon_Mvc_Controller_BindModelInterface); ZEPHIR_INIT(Phalcon_Mvc_Micro_MiddlewareInterface); ZEPHIR_INIT(Phalcon_Mvc_Model_Binder_BindableInterface); ZEPHIR_INIT(Phalcon_Mvc_ModuleDefinitionInterface); ZEPHIR_INIT(Phalcon_Exception); ZEPHIR_INIT(Phalcon_Validation_AbstractValidator); + ZEPHIR_INIT(Phalcon_Di_AbstractInjectionAware); ZEPHIR_INIT(Phalcon_Di_Injectable); ZEPHIR_INIT(Phalcon_Factory_AbstractFactory); ZEPHIR_INIT(Phalcon_Forms_Element_AbstractElement); @@ -660,7 +649,6 @@ static PHP_MINIT_FUNCTION(phalcon) ZEPHIR_INIT(Phalcon_Flash_AbstractFlash); ZEPHIR_INIT(Phalcon_Http_Message_AbstractRequest); ZEPHIR_INIT(Phalcon_Image_Adapter_AbstractAdapter); - ZEPHIR_INIT(Phalcon_Mvc_Collection_Behavior); ZEPHIR_INIT(Phalcon_Mvc_Model_Behavior); ZEPHIR_INIT(Phalcon_Mvc_Model_Resultset); ZEPHIR_INIT(Phalcon_Mvc_View_Engine_AbstractEngine); @@ -815,6 +803,7 @@ static PHP_MINIT_FUNCTION(phalcon) ZEPHIR_INIT(Phalcon_Forms_Manager); ZEPHIR_INIT(Phalcon_Helper_Arr); ZEPHIR_INIT(Phalcon_Helper_Exception); + ZEPHIR_INIT(Phalcon_Helper_Fs); ZEPHIR_INIT(Phalcon_Helper_Number); ZEPHIR_INIT(Phalcon_Helper_Str); ZEPHIR_INIT(Phalcon_Html_Attributes); @@ -883,12 +872,6 @@ static PHP_MINIT_FUNCTION(phalcon) ZEPHIR_INIT(Phalcon_Messages_Messages); ZEPHIR_INIT(Phalcon_Mvc_Application); ZEPHIR_INIT(Phalcon_Mvc_Application_Exception); - ZEPHIR_INIT(Phalcon_Mvc_Collection); - ZEPHIR_INIT(Phalcon_Mvc_Collection_Behavior_SoftDelete); - ZEPHIR_INIT(Phalcon_Mvc_Collection_Behavior_Timestampable); - ZEPHIR_INIT(Phalcon_Mvc_Collection_Document); - ZEPHIR_INIT(Phalcon_Mvc_Collection_Exception); - ZEPHIR_INIT(Phalcon_Mvc_Collection_Manager); ZEPHIR_INIT(Phalcon_Mvc_Controller); ZEPHIR_INIT(Phalcon_Mvc_Dispatcher); ZEPHIR_INIT(Phalcon_Mvc_Dispatcher_Exception); @@ -937,7 +920,6 @@ static PHP_MINIT_FUNCTION(phalcon) ZEPHIR_INIT(Phalcon_Paginator_Exception); ZEPHIR_INIT(Phalcon_Paginator_PaginatorFactory); ZEPHIR_INIT(Phalcon_Paginator_Repository); - ZEPHIR_INIT(Phalcon_Plugin); ZEPHIR_INIT(Phalcon_Registry); ZEPHIR_INIT(Phalcon_Security); ZEPHIR_INIT(Phalcon_Security_Exception); diff --git a/ext/phalcon.h b/ext/phalcon.h index 4341ec838c9..49495d4c156 100644 --- a/ext/phalcon.h +++ b/ext/phalcon.h @@ -9,6 +9,7 @@ #include "phalcon/events/eventsawareinterface.zep.h" #include "phalcon/validation/validatorinterface.zep.h" #include "phalcon/validation/abstractvalidator.zep.h" +#include "phalcon/di/abstractinjectionaware.zep.h" #include "phalcon/storage/adapter/adapterinterface.zep.h" #include "phalcon/di/injectable.zep.h" #include "phalcon/factory/abstractfactory.zep.h" @@ -35,7 +36,6 @@ #include "phalcon/http/message/abstractmessage.zep.h" #include "phalcon/logger/adapter/adapterinterface.zep.h" #include "phalcon/logger/formatter/formatterinterface.zep.h" -#include "phalcon/mvc/entityinterface.zep.h" #include "phalcon/mvc/model/resultsetinterface.zep.h" #include "phalcon/paginator/adapter/adapterinterface.zep.h" #include "phalcon/translate/adapter/adapterinterface.zep.h" @@ -50,7 +50,6 @@ #include "phalcon/image/adapter/adapterinterface.zep.h" #include "phalcon/logger/adapter/abstractadapter.zep.h" #include "phalcon/logger/formatter/abstractformatter.zep.h" -#include "phalcon/mvc/collection/behaviorinterface.zep.h" #include "phalcon/mvc/model/behaviorinterface.zep.h" #include "phalcon/mvc/model/exception.zep.h" #include "phalcon/mvc/view/engine/engineinterface.zep.h" @@ -71,7 +70,7 @@ #include "phalcon/flash/abstractflash.zep.h" #include "phalcon/http/message/abstractrequest.zep.h" #include "phalcon/image/adapter/abstractadapter.zep.h" -#include "phalcon/mvc/collection/behavior.zep.h" +#include "phalcon/mvc/entityinterface.zep.h" #include "phalcon/mvc/model/behavior.zep.h" #include "phalcon/mvc/model/metadata/strategyinterface.zep.h" #include "phalcon/mvc/model/resultinterface.zep.h" @@ -110,7 +109,6 @@ #include "phalcon/http/response/headersinterface.zep.h" #include "phalcon/http/responseinterface.zep.h" #include "phalcon/messages/messageinterface.zep.h" -#include "phalcon/mvc/collectioninterface.zep.h" #include "phalcon/mvc/controllerinterface.zep.h" #include "phalcon/mvc/dispatcherinterface.zep.h" #include "phalcon/mvc/micro/collectioninterface.zep.h" @@ -281,6 +279,7 @@ #include "phalcon/forms/manager.zep.h" #include "phalcon/helper/arr.zep.h" #include "phalcon/helper/exception.zep.h" +#include "phalcon/helper/fs.zep.h" #include "phalcon/helper/number.zep.h" #include "phalcon/helper/str.zep.h" #include "phalcon/html/attributes.zep.h" @@ -349,13 +348,6 @@ #include "phalcon/messages/messages.zep.h" #include "phalcon/mvc/application.zep.h" #include "phalcon/mvc/application/exception.zep.h" -#include "phalcon/mvc/collection.zep.h" -#include "phalcon/mvc/collection/behavior/softdelete.zep.h" -#include "phalcon/mvc/collection/behavior/timestampable.zep.h" -#include "phalcon/mvc/collection/document.zep.h" -#include "phalcon/mvc/collection/exception.zep.h" -#include "phalcon/mvc/collection/manager.zep.h" -#include "phalcon/mvc/collection/managerinterface.zep.h" #include "phalcon/mvc/controller.zep.h" #include "phalcon/mvc/controller/bindmodelinterface.zep.h" #include "phalcon/mvc/dispatcher.zep.h" @@ -408,7 +400,6 @@ #include "phalcon/paginator/exception.zep.h" #include "phalcon/paginator/paginatorfactory.zep.h" #include "phalcon/paginator/repository.zep.h" -#include "phalcon/plugin.zep.h" #include "phalcon/registry.zep.h" #include "phalcon/security.zep.h" #include "phalcon/security/exception.zep.h" diff --git a/ext/phalcon/assets/manager.zep.c b/ext/phalcon/assets/manager.zep.c index 6681b926dc9..2f7f15087ae 100644 --- a/ext/phalcon/assets/manager.zep.c +++ b/ext/phalcon/assets/manager.zep.c @@ -38,15 +38,10 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Assets_Manager) { - ZEPHIR_REGISTER_CLASS(Phalcon\\Assets, Manager, phalcon, assets_manager, phalcon_assets_manager_method_entry, 0); + ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Assets, Manager, phalcon, assets_manager, phalcon_di_abstractinjectionaware_ce, phalcon_assets_manager_method_entry, 0); zend_declare_property_null(phalcon_assets_manager_ce, SL("collections"), ZEND_ACC_PROTECTED TSRMLS_CC); - /** - * @var DiInterface - */ - zend_declare_property_null(phalcon_assets_manager_ce, SL("container"), ZEND_ACC_PROTECTED TSRMLS_CC); - /** * Options configure * @var array @@ -58,7 +53,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Assets_Manager) { */ zend_declare_property_bool(phalcon_assets_manager_ce, SL("implicitOutput"), 1, ZEND_ACC_PROTECTED TSRMLS_CC); - zend_class_implements(phalcon_assets_manager_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); return SUCCESS; } @@ -579,7 +573,7 @@ PHP_METHOD(Phalcon_Assets_Manager, collectionAssetsByType) { ZEPHIR_INIT_VAR(&filtered); array_init(&filtered); - zephir_is_iterable(&assets, 0, "phalcon/Assets/Manager.zep", 244); + zephir_is_iterable(&assets, 0, "phalcon/Assets/Manager.zep", 239); if (Z_TYPE_P(&assets) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&assets), _0) { @@ -588,7 +582,7 @@ PHP_METHOD(Phalcon_Assets_Manager, collectionAssetsByType) { ZEPHIR_CALL_METHOD(&_2$$3, &asset, "gettype", NULL, 0); zephir_check_call_status(); if (ZEPHIR_IS_EQUAL(&_2$$3, &type)) { - zephir_array_append(&filtered, &asset, PH_SEPARATE, "phalcon/Assets/Manager.zep", 240); + zephir_array_append(&filtered, &asset, PH_SEPARATE, "phalcon/Assets/Manager.zep", 235); } } ZEND_HASH_FOREACH_END(); } else { @@ -605,7 +599,7 @@ PHP_METHOD(Phalcon_Assets_Manager, collectionAssetsByType) { ZEPHIR_CALL_METHOD(&_3$$5, &asset, "gettype", NULL, 0); zephir_check_call_status(); if (ZEPHIR_IS_EQUAL(&_3$$5, &type)) { - zephir_array_append(&filtered, &asset, PH_SEPARATE, "phalcon/Assets/Manager.zep", 240); + zephir_array_append(&filtered, &asset, PH_SEPARATE, "phalcon/Assets/Manager.zep", 235); } ZEPHIR_CALL_METHOD(NULL, &assets, "next", NULL, 0); zephir_check_call_status(); @@ -692,7 +686,7 @@ PHP_METHOD(Phalcon_Assets_Manager, get) { ZEPHIR_OBS_VAR(&collection); zephir_read_property(&_0, this_ptr, SL("collections"), PH_NOISY_CC | PH_READONLY); if (UNEXPECTED(!(zephir_array_isset_fetch(&collection, &_0, &id, 0 TSRMLS_CC)))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "The collection does not exist in the manager", "phalcon/Assets/Manager.zep", 274); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "The collection does not exist in the manager", "phalcon/Assets/Manager.zep", 269); return; } RETURN_CCTOR(&collection); @@ -737,18 +731,6 @@ PHP_METHOD(Phalcon_Assets_Manager, getCss) { } -/** - * Returns the internal dependency injector - */ -PHP_METHOD(Phalcon_Assets_Manager, getDI) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "container"); - -} - /** * Returns the CSS collection of assets */ @@ -955,7 +937,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_CONCAT_SVS(&_3$$10, "Path '", &completeTargetPath, "' is not a valid target path (1)"); ZEPHIR_CALL_METHOD(NULL, &_2$$10, "__construct", NULL, 5, &_3$$10); zephir_check_call_status(); - zephir_throw_exception_debug(&_2$$10, "phalcon/Assets/Manager.zep", 445 TSRMLS_CC); + zephir_throw_exception_debug(&_2$$10, "phalcon/Assets/Manager.zep", 432 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -968,13 +950,13 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_CONCAT_SVS(&_6$$11, "Path '", &completeTargetPath, "' is not a valid target path (2), is dir."); ZEPHIR_CALL_METHOD(NULL, &_5$$11, "__construct", NULL, 5, &_6$$11); zephir_check_call_status(); - zephir_throw_exception_debug(&_5$$11, "phalcon/Assets/Manager.zep", 451 TSRMLS_CC); + zephir_throw_exception_debug(&_5$$11, "phalcon/Assets/Manager.zep", 438 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } } } - zephir_is_iterable(&assets, 0, "phalcon/Assets/Manager.zep", 709); + zephir_is_iterable(&assets, 0, "phalcon/Assets/Manager.zep", 696); if (Z_TYPE_P(&assets) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&assets), _7) { @@ -998,7 +980,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_CONCAT_SVS(&_10$$15, "Asset '", &sourcePath, "' does not have a valid source path"); ZEPHIR_CALL_METHOD(NULL, &_9$$15, "__construct", NULL, 5, &_10$$15); zephir_check_call_status(); - zephir_throw_exception_debug(&_9$$15, "phalcon/Assets/Manager.zep", 489 TSRMLS_CC); + zephir_throw_exception_debug(&_9$$15, "phalcon/Assets/Manager.zep", 476 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1016,7 +998,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_CONCAT_SVS(&_12$$17, "Asset '", &sourcePath, "' does not have a valid target path"); ZEPHIR_CALL_METHOD(NULL, &_11$$17, "__construct", NULL, 5, &_12$$17); zephir_check_call_status(); - zephir_throw_exception_debug(&_11$$17, "phalcon/Assets/Manager.zep", 515 TSRMLS_CC); + zephir_throw_exception_debug(&_11$$17, "phalcon/Assets/Manager.zep", 502 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1028,7 +1010,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_CONCAT_SVS(&_14$$19, "Asset '", &targetPath, "' have the same source and target paths"); ZEPHIR_CALL_METHOD(NULL, &_13$$19, "__construct", NULL, 5, &_14$$19); zephir_check_call_status(); - zephir_throw_exception_debug(&_13$$19, "phalcon/Assets/Manager.zep", 525 TSRMLS_CC); + zephir_throw_exception_debug(&_13$$19, "phalcon/Assets/Manager.zep", 512 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1098,7 +1080,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { zephir_array_fast_append(&_27$$28, &prefixedPath); ZEPHIR_CPY_WRT(¶meters, &_27$$28); } - zephir_array_append(¶meters, &local, PH_SEPARATE, "phalcon/Assets/Manager.zep", 571); + zephir_array_append(¶meters, &local, PH_SEPARATE, "phalcon/Assets/Manager.zep", 558); ZEPHIR_INIT_NVAR(&html); ZEPHIR_CALL_USER_FUNC_ARRAY(&html, callback, ¶meters); zephir_check_call_status(); @@ -1115,14 +1097,14 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_CALL_METHOD(&mustFilter, &asset, "getfilter", NULL, 0); zephir_check_call_status(); if (ZEPHIR_IS_TRUE(&mustFilter)) { - zephir_is_iterable(&filters, 0, "phalcon/Assets/Manager.zep", 624); + zephir_is_iterable(&filters, 0, "phalcon/Assets/Manager.zep", 611); if (Z_TYPE_P(&filters) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&filters), _28$$32) { ZEPHIR_INIT_NVAR(&filter); ZVAL_COPY(&filter, _28$$32); if (UNEXPECTED(Z_TYPE_P(&filter) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 610); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 597); return; } ZEPHIR_CALL_METHOD(&filteredContent, &filter, "filter", NULL, 0, &content); @@ -1141,7 +1123,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_CALL_METHOD(&filter, &filters, "current", NULL, 0); zephir_check_call_status(); if (UNEXPECTED(Z_TYPE_P(&filter) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 610); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 597); return; } ZEPHIR_CALL_METHOD(&filteredContent, &filter, "filter", NULL, 0, &content); @@ -1230,7 +1212,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { zephir_array_fast_append(&_39$$49, &prefixedPath); ZEPHIR_CPY_WRT(¶meters, &_39$$49); } - zephir_array_append(¶meters, &local, PH_SEPARATE, "phalcon/Assets/Manager.zep", 691); + zephir_array_append(¶meters, &local, PH_SEPARATE, "phalcon/Assets/Manager.zep", 678); ZEPHIR_INIT_NVAR(&html); ZEPHIR_CALL_USER_FUNC_ARRAY(&html, callback, ¶meters); zephir_check_call_status(); @@ -1270,7 +1252,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_CONCAT_SVS(&_41$$55, "Asset '", &sourcePath, "' does not have a valid source path"); ZEPHIR_CALL_METHOD(NULL, &_40$$55, "__construct", NULL, 5, &_41$$55); zephir_check_call_status(); - zephir_throw_exception_debug(&_40$$55, "phalcon/Assets/Manager.zep", 489 TSRMLS_CC); + zephir_throw_exception_debug(&_40$$55, "phalcon/Assets/Manager.zep", 476 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1288,7 +1270,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_CONCAT_SVS(&_43$$57, "Asset '", &sourcePath, "' does not have a valid target path"); ZEPHIR_CALL_METHOD(NULL, &_42$$57, "__construct", NULL, 5, &_43$$57); zephir_check_call_status(); - zephir_throw_exception_debug(&_42$$57, "phalcon/Assets/Manager.zep", 515 TSRMLS_CC); + zephir_throw_exception_debug(&_42$$57, "phalcon/Assets/Manager.zep", 502 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1300,7 +1282,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_CONCAT_SVS(&_45$$59, "Asset '", &targetPath, "' have the same source and target paths"); ZEPHIR_CALL_METHOD(NULL, &_44$$59, "__construct", NULL, 5, &_45$$59); zephir_check_call_status(); - zephir_throw_exception_debug(&_44$$59, "phalcon/Assets/Manager.zep", 525 TSRMLS_CC); + zephir_throw_exception_debug(&_44$$59, "phalcon/Assets/Manager.zep", 512 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1369,7 +1351,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { zephir_array_fast_append(&_55$$68, &prefixedPath); ZEPHIR_CPY_WRT(¶meters, &_55$$68); } - zephir_array_append(¶meters, &local, PH_SEPARATE, "phalcon/Assets/Manager.zep", 571); + zephir_array_append(¶meters, &local, PH_SEPARATE, "phalcon/Assets/Manager.zep", 558); ZEPHIR_INIT_NVAR(&html); ZEPHIR_CALL_USER_FUNC_ARRAY(&html, callback, ¶meters); zephir_check_call_status(); @@ -1386,14 +1368,14 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_CALL_METHOD(&mustFilter, &asset, "getfilter", NULL, 0); zephir_check_call_status(); if (ZEPHIR_IS_TRUE(&mustFilter)) { - zephir_is_iterable(&filters, 0, "phalcon/Assets/Manager.zep", 624); + zephir_is_iterable(&filters, 0, "phalcon/Assets/Manager.zep", 611); if (Z_TYPE_P(&filters) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&filters), _56$$72) { ZEPHIR_INIT_NVAR(&filter); ZVAL_COPY(&filter, _56$$72); if (UNEXPECTED(Z_TYPE_P(&filter) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 610); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 597); return; } ZEPHIR_CALL_METHOD(&filteredContent, &filter, "filter", NULL, 0, &content); @@ -1412,7 +1394,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_CALL_METHOD(&filter, &filters, "current", NULL, 0); zephir_check_call_status(); if (UNEXPECTED(Z_TYPE_P(&filter) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 610); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 597); return; } ZEPHIR_CALL_METHOD(&filteredContent, &filter, "filter", NULL, 0, &content); @@ -1501,7 +1483,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { zephir_array_fast_append(&_67$$89, &prefixedPath); ZEPHIR_CPY_WRT(¶meters, &_67$$89); } - zephir_array_append(¶meters, &local, PH_SEPARATE, "phalcon/Assets/Manager.zep", 691); + zephir_array_append(¶meters, &local, PH_SEPARATE, "phalcon/Assets/Manager.zep", 678); ZEPHIR_INIT_NVAR(&html); ZEPHIR_CALL_USER_FUNC_ARRAY(&html, callback, ¶meters); zephir_check_call_status(); @@ -1564,7 +1546,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { zephir_array_fast_append(&_72$$97, &prefixedPath); ZEPHIR_CPY_WRT(¶meters, &_72$$97); } - zephir_array_append(¶meters, &local, PH_SEPARATE, "phalcon/Assets/Manager.zep", 753); + zephir_array_append(¶meters, &local, PH_SEPARATE, "phalcon/Assets/Manager.zep", 740); ZEPHIR_INIT_NVAR(&html); ZEPHIR_CALL_USER_FUNC_ARRAY(&html, callback, ¶meters); zephir_check_call_status(); @@ -1728,7 +1710,7 @@ PHP_METHOD(Phalcon_Assets_Manager, outputInline) { ZEPHIR_CALL_METHOD(&join, collection, "getjoin", NULL, 0); zephir_check_call_status(); if (zephir_fast_count_int(&codes TSRMLS_CC)) { - zephir_is_iterable(&codes, 0, "phalcon/Assets/Manager.zep", 845); + zephir_is_iterable(&codes, 0, "phalcon/Assets/Manager.zep", 832); if (Z_TYPE_P(&codes) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&codes), _0$$3) { @@ -1738,14 +1720,14 @@ PHP_METHOD(Phalcon_Assets_Manager, outputInline) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&content, &code, "getcontent", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&filters, 0, "phalcon/Assets/Manager.zep", 836); + zephir_is_iterable(&filters, 0, "phalcon/Assets/Manager.zep", 823); if (Z_TYPE_P(&filters) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&filters), _2$$4) { ZEPHIR_INIT_NVAR(&filter); ZVAL_COPY(&filter, _2$$4); if (UNEXPECTED(Z_TYPE_P(&filter) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 826); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 813); return; } ZEPHIR_CALL_METHOD(&_4$$5, &filter, "filter", NULL, 0, &content); @@ -1764,7 +1746,7 @@ PHP_METHOD(Phalcon_Assets_Manager, outputInline) { ZEPHIR_CALL_METHOD(&filter, &filters, "current", NULL, 0); zephir_check_call_status(); if (UNEXPECTED(Z_TYPE_P(&filter) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 826); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 813); return; } ZEPHIR_CALL_METHOD(&_5$$7, &filter, "filter", NULL, 0, &content); @@ -1805,14 +1787,14 @@ PHP_METHOD(Phalcon_Assets_Manager, outputInline) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&content, &code, "getcontent", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&filters, 0, "phalcon/Assets/Manager.zep", 836); + zephir_is_iterable(&filters, 0, "phalcon/Assets/Manager.zep", 823); if (Z_TYPE_P(&filters) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&filters), _13$$11) { ZEPHIR_INIT_NVAR(&filter); ZVAL_COPY(&filter, _13$$11); if (UNEXPECTED(Z_TYPE_P(&filter) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 826); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 813); return; } ZEPHIR_CALL_METHOD(&_15$$12, &filter, "filter", NULL, 0, &content); @@ -1831,7 +1813,7 @@ PHP_METHOD(Phalcon_Assets_Manager, outputInline) { ZEPHIR_CALL_METHOD(&filter, &filters, "current", NULL, 0); zephir_check_call_status(); if (UNEXPECTED(Z_TYPE_P(&filter) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 826); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 813); return; } ZEPHIR_CALL_METHOD(&_16$$14, &filter, "filter", NULL, 0, &content); @@ -2084,24 +2066,6 @@ PHP_METHOD(Phalcon_Assets_Manager, set) { } -/** - * Sets the dependency injector - */ -PHP_METHOD(Phalcon_Assets_Manager, setDI) { - - zval *container, container_sub; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&container_sub); - - zephir_fetch_params_without_memory_grow(1, 0, &container); - - - - zephir_update_property_zval(this_ptr, SL("container"), container); - -} - /** * Sets the manager options */ diff --git a/ext/phalcon/assets/manager.zep.h b/ext/phalcon/assets/manager.zep.h index 0de4836bed8..0ccb7942c27 100644 --- a/ext/phalcon/assets/manager.zep.h +++ b/ext/phalcon/assets/manager.zep.h @@ -18,7 +18,6 @@ PHP_METHOD(Phalcon_Assets_Manager, exists); PHP_METHOD(Phalcon_Assets_Manager, get); PHP_METHOD(Phalcon_Assets_Manager, getCollections); PHP_METHOD(Phalcon_Assets_Manager, getCss); -PHP_METHOD(Phalcon_Assets_Manager, getDI); PHP_METHOD(Phalcon_Assets_Manager, getJs); PHP_METHOD(Phalcon_Assets_Manager, getOptions); PHP_METHOD(Phalcon_Assets_Manager, output); @@ -28,7 +27,6 @@ PHP_METHOD(Phalcon_Assets_Manager, outputInlineCss); PHP_METHOD(Phalcon_Assets_Manager, outputInlineJs); PHP_METHOD(Phalcon_Assets_Manager, outputJs); PHP_METHOD(Phalcon_Assets_Manager, set); -PHP_METHOD(Phalcon_Assets_Manager, setDI); PHP_METHOD(Phalcon_Assets_Manager, setOptions); PHP_METHOD(Phalcon_Assets_Manager, useImplicitOutput); PHP_METHOD(Phalcon_Assets_Manager, getPrefixedPath); @@ -228,13 +226,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_assets_manager_getcss, 0 #endif ZEND_END_ARG_INFO() -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_assets_manager_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_assets_manager_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) -#endif -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_assets_manager_getjs, 0, 0, Phalcon\\Assets\\Collection, 0) #else @@ -329,10 +320,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_assets_manager_set, 0, 2 ZEND_ARG_OBJ_INFO(0, collection, Phalcon\\Assets\\Collection, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_assets_manager_setdi, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_assets_manager_setoptions, 0, 1, Phalcon\\Assets\\Manager, 0) #else @@ -382,7 +369,6 @@ ZEPHIR_INIT_FUNCS(phalcon_assets_manager_method_entry) { PHP_ME(Phalcon_Assets_Manager, get, arginfo_phalcon_assets_manager_get, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Assets_Manager, getCollections, arginfo_phalcon_assets_manager_getcollections, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Assets_Manager, getCss, arginfo_phalcon_assets_manager_getcss, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Assets_Manager, getDI, arginfo_phalcon_assets_manager_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Assets_Manager, getJs, arginfo_phalcon_assets_manager_getjs, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Assets_Manager, getOptions, arginfo_phalcon_assets_manager_getoptions, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Assets_Manager, output, arginfo_phalcon_assets_manager_output, ZEND_ACC_PUBLIC) @@ -392,7 +378,6 @@ ZEPHIR_INIT_FUNCS(phalcon_assets_manager_method_entry) { PHP_ME(Phalcon_Assets_Manager, outputInlineJs, arginfo_phalcon_assets_manager_outputinlinejs, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Assets_Manager, outputJs, arginfo_phalcon_assets_manager_outputjs, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Assets_Manager, set, arginfo_phalcon_assets_manager_set, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Assets_Manager, setDI, arginfo_phalcon_assets_manager_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Assets_Manager, setOptions, arginfo_phalcon_assets_manager_setoptions, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Assets_Manager, useImplicitOutput, arginfo_phalcon_assets_manager_useimplicitoutput, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Assets_Manager, getPrefixedPath, arginfo_phalcon_assets_manager_getprefixedpath, ZEND_ACC_PRIVATE) diff --git a/ext/phalcon/cli/router.zep.c b/ext/phalcon/cli/router.zep.c index 39fede73bd6..c70d10d8a08 100644 --- a/ext/phalcon/cli/router.zep.c +++ b/ext/phalcon/cli/router.zep.c @@ -52,12 +52,10 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Cli_Router) { - ZEPHIR_REGISTER_CLASS(Phalcon\\Cli, Router, phalcon, cli_router, phalcon_cli_router_method_entry, 0); + ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Cli, Router, phalcon, cli_router, phalcon_di_abstractinjectionaware_ce, phalcon_cli_router_method_entry, 0); zend_declare_property_null(phalcon_cli_router_ce, SL("action"), ZEND_ACC_PROTECTED TSRMLS_CC); - zend_declare_property_null(phalcon_cli_router_ce, SL("container"), ZEND_ACC_PROTECTED TSRMLS_CC); - zend_declare_property_null(phalcon_cli_router_ce, SL("defaultAction"), ZEND_ACC_PROTECTED TSRMLS_CC); zend_declare_property_null(phalcon_cli_router_ce, SL("defaultModule"), ZEND_ACC_PROTECTED TSRMLS_CC); @@ -87,8 +85,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Cli_Router) { zend_declare_property_bool(phalcon_cli_router_ce, SL("wasMatched"), 0, ZEND_ACC_PROTECTED TSRMLS_CC); phalcon_cli_router_ce->create_object = zephir_init_properties_Phalcon_Cli_Router; - - zend_class_implements(phalcon_cli_router_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); return SUCCESS; } @@ -134,7 +130,7 @@ PHP_METHOD(Phalcon_Cli_Router, __construct) { ZVAL_STRING(&_2$$3, "#^(?::delimiter)?([a-zA-Z0-9\\_\\-]+)[:delimiter]{0,1}$#"); ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 161, &_2$$3, &_1$$3); zephir_check_call_status(); - zephir_array_append(&routes, &_0$$3, PH_SEPARATE, "phalcon/Cli/Router.zep", 90); + zephir_array_append(&routes, &_0$$3, PH_SEPARATE, "phalcon/Cli/Router.zep", 88); ZEPHIR_INIT_NVAR(&_2$$3); object_init_ex(&_2$$3, phalcon_cli_router_route_ce); ZEPHIR_INIT_VAR(&_3$$3); @@ -146,7 +142,7 @@ PHP_METHOD(Phalcon_Cli_Router, __construct) { ZVAL_STRING(&_4$$3, "#^(?::delimiter)?([a-zA-Z0-9\\_\\-]+):delimiter([a-zA-Z0-9\\.\\_]+)(:delimiter.*)*$#"); ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 161, &_4$$3, &_3$$3); zephir_check_call_status(); - zephir_array_append(&routes, &_2$$3, PH_SEPARATE, "phalcon/Cli/Router.zep", 99); + zephir_array_append(&routes, &_2$$3, PH_SEPARATE, "phalcon/Cli/Router.zep", 97); } zephir_update_property_zval(this_ptr, SL("routes"), &routes); ZEPHIR_MM_RESTORE(); @@ -215,18 +211,6 @@ PHP_METHOD(Phalcon_Cli_Router, getActionName) { } -/** - * Returns the internal dependency injector - */ -PHP_METHOD(Phalcon_Cli_Router, getDI) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "container"); - -} - /** * Returns the route that matches the handled URI */ @@ -300,7 +284,7 @@ PHP_METHOD(Phalcon_Cli_Router, getRouteById) { zephir_read_property(&_0, this_ptr, SL("routes"), PH_NOISY_CC | PH_READONLY); - zephir_is_iterable(&_0, 0, "phalcon/Cli/Router.zep", 187); + zephir_is_iterable(&_0, 0, "phalcon/Cli/Router.zep", 177); if (Z_TYPE_P(&_0) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_0), _1) { @@ -371,7 +355,7 @@ PHP_METHOD(Phalcon_Cli_Router, getRouteByName) { zephir_read_property(&_0, this_ptr, SL("routes"), PH_NOISY_CC | PH_READONLY); - zephir_is_iterable(&_0, 0, "phalcon/Cli/Router.zep", 203); + zephir_is_iterable(&_0, 0, "phalcon/Cli/Router.zep", 193); if (Z_TYPE_P(&_0) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_0), _1) { @@ -531,11 +515,11 @@ PHP_METHOD(Phalcon_Cli_Router, handle) { _0$$3 = Z_TYPE_P(arguments) != IS_NULL; } if (UNEXPECTED(_0$$3)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cli_router_exception_ce, "Arguments must be an array or string", "phalcon/Cli/Router.zep", 242); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cli_router_exception_ce, "Arguments must be an array or string", "phalcon/Cli/Router.zep", 232); return; } zephir_read_property(&_1$$3, this_ptr, SL("routes"), PH_NOISY_CC | PH_READONLY); - zephir_is_iterable(&_1$$3, 0, "phalcon/Cli/Router.zep", 348); + zephir_is_iterable(&_1$$3, 0, "phalcon/Cli/Router.zep", 338); if (Z_TYPE_P(&_1$$3) == IS_ARRAY) { ZEND_HASH_REVERSE_FOREACH_VAL(Z_ARRVAL_P(&_1$$3), _2$$3) { @@ -543,7 +527,7 @@ PHP_METHOD(Phalcon_Cli_Router, handle) { ZVAL_COPY(&route, _2$$3); ZEPHIR_CALL_METHOD(&pattern, &route, "getcompiledpattern", NULL, 0); zephir_check_call_status(); - if (zephir_memnstr_str(&pattern, SL("^"), "phalcon/Cli/Router.zep", 251)) { + if (zephir_memnstr_str(&pattern, SL("^"), "phalcon/Cli/Router.zep", 241)) { ZEPHIR_INIT_NVAR(&routeFound); zephir_preg_match(&routeFound, &pattern, arguments, &matches, 0, 0 , 0 TSRMLS_CC); } else { @@ -555,7 +539,7 @@ PHP_METHOD(Phalcon_Cli_Router, handle) { zephir_check_call_status(); if (Z_TYPE_P(&beforeMatch) != IS_NULL) { if (UNEXPECTED(!(zephir_is_callable(&beforeMatch TSRMLS_CC)))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cli_router_exception_ce, "Before-Match callback is not callable in matched route", "phalcon/Cli/Router.zep", 270); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cli_router_exception_ce, "Before-Match callback is not callable in matched route", "phalcon/Cli/Router.zep", 260); return; } ZEPHIR_INIT_NVAR(&_4$$9); @@ -575,7 +559,7 @@ PHP_METHOD(Phalcon_Cli_Router, handle) { if (Z_TYPE_P(&matches) == IS_ARRAY) { ZEPHIR_CALL_METHOD(&converters, &route, "getconverters", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&paths, 0, "phalcon/Cli/Router.zep", 335); + zephir_is_iterable(&paths, 0, "phalcon/Cli/Router.zep", 325); if (Z_TYPE_P(&paths) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&paths), _7$$12, _8$$12, _5$$12) { @@ -678,7 +662,7 @@ PHP_METHOD(Phalcon_Cli_Router, handle) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&pattern, &route, "getcompiledpattern", NULL, 0); zephir_check_call_status(); - if (zephir_memnstr_str(&pattern, SL("^"), "phalcon/Cli/Router.zep", 251)) { + if (zephir_memnstr_str(&pattern, SL("^"), "phalcon/Cli/Router.zep", 241)) { ZEPHIR_INIT_NVAR(&routeFound); zephir_preg_match(&routeFound, &pattern, arguments, &matches, 0, 0 , 0 TSRMLS_CC); } else { @@ -690,7 +674,7 @@ PHP_METHOD(Phalcon_Cli_Router, handle) { zephir_check_call_status(); if (Z_TYPE_P(&beforeMatch) != IS_NULL) { if (UNEXPECTED(!(zephir_is_callable(&beforeMatch TSRMLS_CC)))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cli_router_exception_ce, "Before-Match callback is not callable in matched route", "phalcon/Cli/Router.zep", 270); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cli_router_exception_ce, "Before-Match callback is not callable in matched route", "phalcon/Cli/Router.zep", 260); return; } ZEPHIR_INIT_NVAR(&_17$$29); @@ -710,7 +694,7 @@ PHP_METHOD(Phalcon_Cli_Router, handle) { if (Z_TYPE_P(&matches) == IS_ARRAY) { ZEPHIR_CALL_METHOD(&converters, &route, "getconverters", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&paths, 0, "phalcon/Cli/Router.zep", 335); + zephir_is_iterable(&paths, 0, "phalcon/Cli/Router.zep", 325); if (Z_TYPE_P(&paths) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&paths), _20$$32, _21$$32, _18$$32) { @@ -1008,24 +992,6 @@ PHP_METHOD(Phalcon_Cli_Router, setDefaultTask) { } -/** - * Sets the dependency injector - */ -PHP_METHOD(Phalcon_Cli_Router, setDI) { - - zval *container, container_sub; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&container_sub); - - zephir_fetch_params_without_memory_grow(1, 0, &container); - - - - zephir_update_property_zval(this_ptr, SL("container"), container); - -} - /** * Checks if the router matches any of the defined routes */ diff --git a/ext/phalcon/cli/router.zep.h b/ext/phalcon/cli/router.zep.h index d87011c836f..d3ad257643c 100644 --- a/ext/phalcon/cli/router.zep.h +++ b/ext/phalcon/cli/router.zep.h @@ -6,7 +6,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Cli_Router); PHP_METHOD(Phalcon_Cli_Router, __construct); PHP_METHOD(Phalcon_Cli_Router, add); PHP_METHOD(Phalcon_Cli_Router, getActionName); -PHP_METHOD(Phalcon_Cli_Router, getDI); PHP_METHOD(Phalcon_Cli_Router, getMatchedRoute); PHP_METHOD(Phalcon_Cli_Router, getMatches); PHP_METHOD(Phalcon_Cli_Router, getModuleName); @@ -20,7 +19,6 @@ PHP_METHOD(Phalcon_Cli_Router, setDefaultAction); PHP_METHOD(Phalcon_Cli_Router, setDefaultModule); PHP_METHOD(Phalcon_Cli_Router, setDefaults); PHP_METHOD(Phalcon_Cli_Router, setDefaultTask); -PHP_METHOD(Phalcon_Cli_Router, setDI); PHP_METHOD(Phalcon_Cli_Router, wasMatched); zend_object *zephir_init_properties_Phalcon_Cli_Router(zend_class_entry *class_type TSRMLS_DC); @@ -52,13 +50,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_cli_router_getactionname #endif ZEND_END_ARG_INFO() -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_cli_router_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_cli_router_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) -#endif -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_cli_router_getmatchedroute, 0, 0, Phalcon\\Cli\\RouteInterface, 0) #else @@ -149,10 +140,6 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_cli_router_setdefaulttask, 0, 0, 1) #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_cli_router_setdi, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_cli_router_wasmatched, 0, 0, _IS_BOOL, 0) #else @@ -164,7 +151,6 @@ ZEPHIR_INIT_FUNCS(phalcon_cli_router_method_entry) { PHP_ME(Phalcon_Cli_Router, __construct, arginfo_phalcon_cli_router___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) PHP_ME(Phalcon_Cli_Router, add, arginfo_phalcon_cli_router_add, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Cli_Router, getActionName, arginfo_phalcon_cli_router_getactionname, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Cli_Router, getDI, arginfo_phalcon_cli_router_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Cli_Router, getMatchedRoute, arginfo_phalcon_cli_router_getmatchedroute, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Cli_Router, getMatches, arginfo_phalcon_cli_router_getmatches, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Cli_Router, getModuleName, arginfo_phalcon_cli_router_getmodulename, ZEND_ACC_PUBLIC) @@ -178,7 +164,6 @@ ZEPHIR_INIT_FUNCS(phalcon_cli_router_method_entry) { PHP_ME(Phalcon_Cli_Router, setDefaultModule, arginfo_phalcon_cli_router_setdefaultmodule, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Cli_Router, setDefaults, arginfo_phalcon_cli_router_setdefaults, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Cli_Router, setDefaultTask, arginfo_phalcon_cli_router_setdefaulttask, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Cli_Router, setDI, arginfo_phalcon_cli_router_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Cli_Router, wasMatched, arginfo_phalcon_cli_router_wasmatched, ZEND_ACC_PUBLIC) PHP_FE_END }; diff --git a/ext/phalcon/di/abstractinjectionaware.zep.c b/ext/phalcon/di/abstractinjectionaware.zep.c new file mode 100644 index 00000000000..1d6b68f777a --- /dev/null +++ b/ext/phalcon/di/abstractinjectionaware.zep.c @@ -0,0 +1,75 @@ + +#ifdef HAVE_CONFIG_H +#include "../../ext_config.h" +#endif + +#include +#include "../../php_ext.h" +#include "../../ext.h" + +#include +#include +#include + +#include "kernel/main.h" +#include "kernel/object.h" +#include "kernel/memory.h" + + +/** + * This file is part of the Phalcon Framework. + * + * (c) Phalcon Team + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ +/** + * This abstract class offers common access to the DI in a class + */ +ZEPHIR_INIT_CLASS(Phalcon_Di_AbstractInjectionAware) { + + ZEPHIR_REGISTER_CLASS(Phalcon\\Di, AbstractInjectionAware, phalcon, di_abstractinjectionaware, phalcon_di_abstractinjectionaware_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); + + /** + * Dependency Injector + * + * @var DiInterface + */ + zend_declare_property_null(phalcon_di_abstractinjectionaware_ce, SL("container"), ZEND_ACC_PROTECTED TSRMLS_CC); + + zend_class_implements(phalcon_di_abstractinjectionaware_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); + return SUCCESS; + +} + +/** + * Returns the internal dependency injector + */ +PHP_METHOD(Phalcon_Di_AbstractInjectionAware, getDI) { + + zval *this_ptr = getThis(); + + + RETURN_MEMBER(getThis(), "container"); + +} + +/** + * Sets the dependency injector + */ +PHP_METHOD(Phalcon_Di_AbstractInjectionAware, setDI) { + + zval *container, container_sub; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&container_sub); + + zephir_fetch_params_without_memory_grow(1, 0, &container); + + + + zephir_update_property_zval(this_ptr, SL("container"), container); + +} + diff --git a/ext/phalcon/di/abstractinjectionaware.zep.h b/ext/phalcon/di/abstractinjectionaware.zep.h new file mode 100644 index 00000000000..e3e7d8119ed --- /dev/null +++ b/ext/phalcon/di/abstractinjectionaware.zep.h @@ -0,0 +1,24 @@ + +extern zend_class_entry *phalcon_di_abstractinjectionaware_ce; + +ZEPHIR_INIT_CLASS(Phalcon_Di_AbstractInjectionAware); + +PHP_METHOD(Phalcon_Di_AbstractInjectionAware, getDI); +PHP_METHOD(Phalcon_Di_AbstractInjectionAware, setDI); + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_di_abstractinjectionaware_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_di_abstractinjectionaware_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_di_abstractinjectionaware_setdi, 0, 0, 1) + ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(phalcon_di_abstractinjectionaware_method_entry) { + PHP_ME(Phalcon_Di_AbstractInjectionAware, getDI, arginfo_phalcon_di_abstractinjectionaware_getdi, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Di_AbstractInjectionAware, setDI, arginfo_phalcon_di_abstractinjectionaware_setdi, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/phalcon/dispatcher/abstractdispatcher.zep.c b/ext/phalcon/dispatcher/abstractdispatcher.zep.c index 33f674230da..6312ee61a9d 100644 --- a/ext/phalcon/dispatcher/abstractdispatcher.zep.c +++ b/ext/phalcon/dispatcher/abstractdispatcher.zep.c @@ -38,7 +38,7 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Dispatcher_AbstractDispatcher) { - ZEPHIR_REGISTER_CLASS(Phalcon\\Dispatcher, AbstractDispatcher, phalcon, dispatcher_abstractdispatcher, phalcon_dispatcher_abstractdispatcher_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); + ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Dispatcher, AbstractDispatcher, phalcon, dispatcher_abstractdispatcher, phalcon_di_abstractinjectionaware_ce, phalcon_dispatcher_abstractdispatcher_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); zend_declare_property_null(phalcon_dispatcher_abstractdispatcher_ce, SL("activeHandler"), ZEND_ACC_PROTECTED TSRMLS_CC); @@ -59,8 +59,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Dispatcher_AbstractDispatcher) { */ zend_declare_property_null(phalcon_dispatcher_abstractdispatcher_ce, SL("camelCaseMap"), ZEND_ACC_PROTECTED TSRMLS_CC); - zend_declare_property_null(phalcon_dispatcher_abstractdispatcher_ce, SL("container"), ZEND_ACC_PROTECTED TSRMLS_CC); - /** * @var string */ @@ -128,7 +126,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Dispatcher_AbstractDispatcher) { phalcon_dispatcher_abstractdispatcher_ce->create_object = zephir_init_properties_Phalcon_Dispatcher_AbstractDispatcher; zend_class_implements(phalcon_dispatcher_abstractdispatcher_ce TSRMLS_CC, 1, phalcon_dispatcher_dispatcherinterface_ce); - zend_class_implements(phalcon_dispatcher_abstractdispatcher_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); zend_class_implements(phalcon_dispatcher_abstractdispatcher_ce TSRMLS_CC, 1, phalcon_events_eventsawareinterface_ce); return SUCCESS; @@ -345,7 +342,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, dispatch) { if (ZEPHIR_IS_FALSE_IDENTICAL(&status)) { RETURN_MM_BOOL(0); } - zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 184 TSRMLS_CC); + zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 182 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -419,7 +416,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, dispatch) { if (_23$$15) { continue; } - zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 225 TSRMLS_CC); + zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 223 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -574,7 +571,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, dispatch) { zephir_check_call_status(); continue; } - zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 366 TSRMLS_CC); + zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 364 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -618,7 +615,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, dispatch) { zephir_check_call_status(); continue; } - zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 385 TSRMLS_CC); + zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 383 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -661,7 +658,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, dispatch) { if (_79$$43) { continue; } - zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 427 TSRMLS_CC); + zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 425 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -708,7 +705,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, dispatch) { if (_89$$48) { continue; } - zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 446 TSRMLS_CC); + zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 444 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -780,7 +777,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, dispatch) { if (_105$$59) { continue; } - zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 518 TSRMLS_CC); + zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 516 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -821,7 +818,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, dispatch) { if (_115$$64) { continue; } - zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 534 TSRMLS_CC); + zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 532 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -861,7 +858,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, dispatch) { if (_123$$69) { continue; } - zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 551 TSRMLS_CC); + zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 549 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -895,7 +892,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, dispatch) { if (_130$$73) { continue; } - zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 568 TSRMLS_CC); + zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 566 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -925,7 +922,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, dispatch) { if (ZEPHIR_IS_FALSE_IDENTICAL(&_134$$77)) { RETURN_MM_BOOL(0); } - zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 585 TSRMLS_CC); + zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 583 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -977,7 +974,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, forward) { zephir_read_property(&_0, this_ptr, SL("isControllerInitialize"), PH_NOISY_CC | PH_READONLY); if (UNEXPECTED(ZEPHIR_IS_TRUE_IDENTICAL(&_0))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_dispatcher_exception_ce, "Forwarding inside a controller's initialize() method is forbidden", "phalcon/Dispatcher/AbstractDispatcher.zep", 619); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_dispatcher_exception_ce, "Forwarding inside a controller's initialize() method is forbidden", "phalcon/Dispatcher/AbstractDispatcher.zep", 617); return; } zephir_read_property(&_1, this_ptr, SL("namespaceName"), PH_NOISY_CC | PH_READONLY); @@ -1128,18 +1125,6 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, getDefaultNamespace) { } -/** - * Returns the internal dependency injector - */ -PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, getDI) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "container"); - -} - /** * Returns the internal event manager */ @@ -1390,24 +1375,6 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, setDefaultNamespace) { } -/** - * Sets the dependency injector - */ -PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, setDI) { - - zval *container, container_sub; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&container_sub); - - zephir_fetch_params_without_memory_grow(1, 0, &container); - - - - zephir_update_property_zval(this_ptr, SL("container"), container); - -} - /** * Possible class name that will be located to dispatch the request */ @@ -1435,7 +1402,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, getHandlerClass) { ZEPHIR_CPY_WRT(&handlerName, &_0); zephir_read_property(&_0, this_ptr, SL("namespaceName"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&namespaceName, &_0); - if (!(zephir_memnstr_str(&handlerName, SL("\\"), "phalcon/Dispatcher/AbstractDispatcher.zep", 886))) { + if (!(zephir_memnstr_str(&handlerName, SL("\\"), "phalcon/Dispatcher/AbstractDispatcher.zep", 868))) { ZEPHIR_CALL_METHOD(&camelizedClass, this_ptr, "tocamelcase", NULL, 0, &handlerName); zephir_check_call_status(); } else { diff --git a/ext/phalcon/dispatcher/abstractdispatcher.zep.h b/ext/phalcon/dispatcher/abstractdispatcher.zep.h index 42260688c4e..b847c11fec1 100644 --- a/ext/phalcon/dispatcher/abstractdispatcher.zep.h +++ b/ext/phalcon/dispatcher/abstractdispatcher.zep.h @@ -11,7 +11,6 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, getActionSuffix); PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, getActiveMethod); PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, getBoundModels); PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, getDefaultNamespace); -PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, getDI); PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, getEventsManager); PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, getHandlerSuffix); PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, getModelBinder); @@ -24,7 +23,6 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, isFinished); PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, setActionName); PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, setDefaultAction); PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, setDefaultNamespace); -PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, setDI); PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, getHandlerClass); PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, setParam); PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, setParams); @@ -90,13 +88,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_dispatcher_abstractdispa #endif ZEND_END_ARG_INFO() -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_dispatcher_abstractdispatcher_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_dispatcher_abstractdispatcher_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) -#endif -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_dispatcher_abstractdispatcher_geteventsmanager, 0, 0, Phalcon\\Events\\ManagerInterface, 0) #else @@ -184,10 +175,6 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_dispatcher_abstractdispatcher_setdefaultn #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_dispatcher_abstractdispatcher_setdi, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_dispatcher_abstractdispatcher_gethandlerclass, 0, 0, IS_STRING, 0) #else @@ -281,7 +268,6 @@ ZEPHIR_INIT_FUNCS(phalcon_dispatcher_abstractdispatcher_method_entry) { PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, getActiveMethod, arginfo_phalcon_dispatcher_abstractdispatcher_getactivemethod, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, getBoundModels, arginfo_phalcon_dispatcher_abstractdispatcher_getboundmodels, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, getDefaultNamespace, arginfo_phalcon_dispatcher_abstractdispatcher_getdefaultnamespace, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, getDI, arginfo_phalcon_dispatcher_abstractdispatcher_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, getEventsManager, arginfo_phalcon_dispatcher_abstractdispatcher_geteventsmanager, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, getHandlerSuffix, arginfo_phalcon_dispatcher_abstractdispatcher_gethandlersuffix, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, getModelBinder, arginfo_phalcon_dispatcher_abstractdispatcher_getmodelbinder, ZEND_ACC_PUBLIC) @@ -294,7 +280,6 @@ ZEPHIR_INIT_FUNCS(phalcon_dispatcher_abstractdispatcher_method_entry) { PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, setActionName, arginfo_phalcon_dispatcher_abstractdispatcher_setactionname, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, setDefaultAction, arginfo_phalcon_dispatcher_abstractdispatcher_setdefaultaction, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, setDefaultNamespace, arginfo_phalcon_dispatcher_abstractdispatcher_setdefaultnamespace, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, setDI, arginfo_phalcon_dispatcher_abstractdispatcher_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, getHandlerClass, arginfo_phalcon_dispatcher_abstractdispatcher_gethandlerclass, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, setParam, arginfo_phalcon_dispatcher_abstractdispatcher_setparam, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, setParams, arginfo_phalcon_dispatcher_abstractdispatcher_setparams, ZEND_ACC_PUBLIC) diff --git a/ext/phalcon/flash/abstractflash.zep.c b/ext/phalcon/flash/abstractflash.zep.c index 529dd61157d..8e6b9657842 100644 --- a/ext/phalcon/flash/abstractflash.zep.c +++ b/ext/phalcon/flash/abstractflash.zep.c @@ -12,13 +12,13 @@ #include #include "kernel/main.h" -#include "kernel/array.h" -#include "kernel/memory.h" #include "kernel/object.h" +#include "kernel/memory.h" +#include "kernel/array.h" #include "kernel/fcall.h" #include "kernel/operators.h" -#include "ext/spl/spl_exceptions.h" #include "kernel/exception.h" +#include "ext/spl/spl_exceptions.h" #include "kernel/concat.h" #include "kernel/string.h" @@ -42,7 +42,7 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Flash_AbstractFlash) { - ZEPHIR_REGISTER_CLASS(Phalcon\\Flash, AbstractFlash, phalcon, flash_abstractflash, phalcon_flash_abstractflash_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); + ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Flash, AbstractFlash, phalcon, flash_abstractflash, phalcon_di_abstractinjectionaware_ce, phalcon_flash_abstractflash_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); /** * @var bool @@ -64,8 +64,9 @@ ZEPHIR_INIT_CLASS(Phalcon_Flash_AbstractFlash) { */ zend_declare_property_string(phalcon_flash_abstractflash_ce, SL("customTemplate"), "", ZEND_ACC_PROTECTED TSRMLS_CC); - zend_declare_property_null(phalcon_flash_abstractflash_ce, SL("container"), ZEND_ACC_PROTECTED TSRMLS_CC); - + /** + * @var EscaperInterface | null + */ zend_declare_property_null(phalcon_flash_abstractflash_ce, SL("escaperService"), ZEND_ACC_PROTECTED TSRMLS_CC); /** @@ -73,12 +74,14 @@ ZEPHIR_INIT_CLASS(Phalcon_Flash_AbstractFlash) { */ zend_declare_property_bool(phalcon_flash_abstractflash_ce, SL("implicitFlush"), 1, ZEND_ACC_PROTECTED TSRMLS_CC); + /** + * @var array + */ zend_declare_property_null(phalcon_flash_abstractflash_ce, SL("messages"), ZEND_ACC_PROTECTED TSRMLS_CC); phalcon_flash_abstractflash_ce->create_object = zephir_init_properties_Phalcon_Flash_AbstractFlash; zend_class_implements(phalcon_flash_abstractflash_ce TSRMLS_CC, 1, phalcon_flash_flashinterface_ce); - zend_class_implements(phalcon_flash_abstractflash_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); return SUCCESS; } @@ -88,35 +91,32 @@ ZEPHIR_INIT_CLASS(Phalcon_Flash_AbstractFlash) { */ PHP_METHOD(Phalcon_Flash_AbstractFlash, __construct) { + zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *cssClasses = NULL, cssClasses_sub, __$null, _0$$3; + zval *escaper = NULL, escaper_sub, __$null; zval *this_ptr = getThis(); - ZVAL_UNDEF(&cssClasses_sub); + ZVAL_UNDEF(&escaper_sub); ZVAL_NULL(&__$null); - ZVAL_UNDEF(&_0$$3); + ZVAL_UNDEF(&_0); ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 0, 1, &cssClasses); + zephir_fetch_params(1, 0, 1, &escaper); - if (!cssClasses) { - cssClasses = &cssClasses_sub; - ZEPHIR_CPY_WRT(cssClasses, &__$null); - } else { - ZEPHIR_SEPARATE_PARAM(cssClasses); + if (!escaper) { + escaper = &escaper_sub; + escaper = &__$null; } - if (Z_TYPE_P(cssClasses) != IS_ARRAY) { - ZEPHIR_INIT_VAR(&_0$$3); - zephir_create_array(&_0$$3, 4, 0 TSRMLS_CC); - add_assoc_stringl_ex(&_0$$3, SL("error"), SL("errorMessage")); - add_assoc_stringl_ex(&_0$$3, SL("notice"), SL("noticeMessage")); - add_assoc_stringl_ex(&_0$$3, SL("success"), SL("successMessage")); - add_assoc_stringl_ex(&_0$$3, SL("warning"), SL("warningMessage")); - ZEPHIR_CPY_WRT(cssClasses, &_0$$3); - } - zephir_update_property_zval(this_ptr, SL("cssClasses"), cssClasses); + zephir_update_property_zval(this_ptr, SL("escaperService"), escaper); + ZEPHIR_INIT_VAR(&_0); + zephir_create_array(&_0, 4, 0 TSRMLS_CC); + add_assoc_stringl_ex(&_0, SL("error"), SL("errorMessage")); + add_assoc_stringl_ex(&_0, SL("notice"), SL("noticeMessage")); + add_assoc_stringl_ex(&_0, SL("success"), SL("successMessage")); + add_assoc_stringl_ex(&_0, SL("warning"), SL("warningMessage")); + zephir_update_property_zval(this_ptr, SL("cssClasses"), &_0); ZEPHIR_MM_RESTORE(); } @@ -197,62 +197,75 @@ PHP_METHOD(Phalcon_Flash_AbstractFlash, getCustomTemplate) { } -/** - * Returns the internal dependency injector - */ -PHP_METHOD(Phalcon_Flash_AbstractFlash, getDI) { - - zval di; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zephir_fcall_cache_entry *_0 = NULL; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&di); - - ZEPHIR_MM_GROW(); - - ZEPHIR_OBS_VAR(&di); - zephir_read_property(&di, this_ptr, SL("container"), PH_NOISY_CC); - if (Z_TYPE_P(&di) != IS_OBJECT) { - ZEPHIR_CALL_CE_STATIC(&di, phalcon_di_ce, "getdefault", &_0, 0); - zephir_check_call_status(); - } - RETURN_CCTOR(&di); - -} - /** * Returns the Escaper Service */ PHP_METHOD(Phalcon_Flash_AbstractFlash, getEscaperService) { - zval escaper, container, _0$$3, _1$$3; + zval container, _0, _1, _6, _7, _2$$4, _3$$4, _5$$4, _8$$5, _9$$5, _10$$6, _11$$6, _12$$6; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; + zephir_fcall_cache_entry *_4 = NULL; zval *this_ptr = getThis(); - ZVAL_UNDEF(&escaper); ZVAL_UNDEF(&container); - ZVAL_UNDEF(&_0$$3); - ZVAL_UNDEF(&_1$$3); + ZVAL_UNDEF(&_0); + ZVAL_UNDEF(&_1); + ZVAL_UNDEF(&_6); + ZVAL_UNDEF(&_7); + ZVAL_UNDEF(&_2$$4); + ZVAL_UNDEF(&_3$$4); + ZVAL_UNDEF(&_5$$4); + ZVAL_UNDEF(&_8$$5); + ZVAL_UNDEF(&_9$$5); + ZVAL_UNDEF(&_10$$6); + ZVAL_UNDEF(&_11$$6); + ZVAL_UNDEF(&_12$$6); ZEPHIR_MM_GROW(); - ZEPHIR_OBS_VAR(&escaper); - zephir_read_property(&escaper, this_ptr, SL("escaperService"), PH_NOISY_CC); - if (Z_TYPE_P(&escaper) != IS_OBJECT) { - ZEPHIR_CALL_METHOD(&_0$$3, this_ptr, "getdi", NULL, 0); + zephir_read_property(&_0, this_ptr, SL("escaperService"), PH_NOISY_CC | PH_READONLY); + if (zephir_is_true(&_0)) { + RETURN_MM_MEMBER(getThis(), "escaperService"); + } + zephir_read_property(&_1, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CPY_WRT(&container, &_1); + if (UNEXPECTED(Z_TYPE_P(&container) != IS_OBJECT)) { + ZEPHIR_INIT_VAR(&_2$$4); + object_init_ex(&_2$$4, phalcon_flash_exception_ce); + ZEPHIR_INIT_VAR(&_5$$4); + ZVAL_STRING(&_5$$4, "the 'escaper' service"); + ZEPHIR_CALL_CE_STATIC(&_3$$4, phalcon_flash_exception_ce, "containerservicenotfound", &_4, 0, &_5$$4); zephir_check_call_status(); - ZEPHIR_CPY_WRT(&container, &_0$$3); - ZEPHIR_INIT_VAR(&_1$$3); - ZVAL_STRING(&_1$$3, "escaper"); - ZEPHIR_CALL_METHOD(&_0$$3, &container, "getshared", NULL, 0, &_1$$3); + ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 5, &_3$$4); zephir_check_call_status(); - ZEPHIR_CPY_WRT(&escaper, &_0$$3); - zephir_update_property_zval(this_ptr, SL("escaperService"), &escaper); + zephir_throw_exception_debug(&_2$$4, "phalcon/Flash/AbstractFlash.zep", 131 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); + return; + } + ZEPHIR_INIT_VAR(&_7); + ZVAL_STRING(&_7, "escaper"); + ZEPHIR_CALL_METHOD(&_6, &container, "has", NULL, 0, &_7); + zephir_check_call_status(); + if (UNEXPECTED(zephir_is_true(&_6))) { + ZEPHIR_INIT_VAR(&_9$$5); + ZVAL_STRING(&_9$$5, "escaper"); + ZEPHIR_CALL_METHOD(&_8$$5, &container, "getshared", NULL, 0, &_9$$5); + zephir_check_call_status(); + RETURN_CCTOR(&_8$$5); + } else { + ZEPHIR_INIT_VAR(&_10$$6); + object_init_ex(&_10$$6, phalcon_flash_exception_ce); + ZEPHIR_INIT_VAR(&_12$$6); + ZVAL_STRING(&_12$$6, "the 'escaper' service"); + ZEPHIR_CALL_CE_STATIC(&_11$$6, phalcon_flash_exception_ce, "containerservicenotfound", &_4, 0, &_12$$6); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(NULL, &_10$$6, "__construct", NULL, 5, &_11$$6); + zephir_check_call_status(); + zephir_throw_exception_debug(&_10$$6, "phalcon/Flash/AbstractFlash.zep", 139 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); + return; } - RETURN_CCTOR(&escaper); } @@ -395,25 +408,6 @@ PHP_METHOD(Phalcon_Flash_AbstractFlash, setCustomTemplate) { } -/** - * Sets the dependency injector - */ -PHP_METHOD(Phalcon_Flash_AbstractFlash, setDI) { - - zval *container, container_sub; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&container_sub); - - zephir_fetch_params_without_memory_grow(1, 0, &container); - - - - zephir_update_property_zval(this_ptr, SL("container"), container); - RETURN_THISW(); - -} - /** * Sets the Escaper Service */ @@ -535,7 +529,7 @@ PHP_METHOD(Phalcon_Flash_AbstractFlash, outputMessage) { ZEPHIR_INIT_VAR(&content); ZVAL_STRING(&content, ""); } - zephir_is_iterable(message, 0, "phalcon/Flash/AbstractFlash.zep", 294); + zephir_is_iterable(message, 0, "phalcon/Flash/AbstractFlash.zep", 279); if (Z_TYPE_P(message) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(message), _1$$3) { diff --git a/ext/phalcon/flash/abstractflash.zep.h b/ext/phalcon/flash/abstractflash.zep.h index 0366dc9f588..999cc62195a 100644 --- a/ext/phalcon/flash/abstractflash.zep.h +++ b/ext/phalcon/flash/abstractflash.zep.h @@ -8,14 +8,12 @@ PHP_METHOD(Phalcon_Flash_AbstractFlash, clear); PHP_METHOD(Phalcon_Flash_AbstractFlash, error); PHP_METHOD(Phalcon_Flash_AbstractFlash, getAutoescape); PHP_METHOD(Phalcon_Flash_AbstractFlash, getCustomTemplate); -PHP_METHOD(Phalcon_Flash_AbstractFlash, getDI); PHP_METHOD(Phalcon_Flash_AbstractFlash, getEscaperService); PHP_METHOD(Phalcon_Flash_AbstractFlash, notice); PHP_METHOD(Phalcon_Flash_AbstractFlash, setAutoescape); PHP_METHOD(Phalcon_Flash_AbstractFlash, setAutomaticHtml); PHP_METHOD(Phalcon_Flash_AbstractFlash, setCssClasses); PHP_METHOD(Phalcon_Flash_AbstractFlash, setCustomTemplate); -PHP_METHOD(Phalcon_Flash_AbstractFlash, setDI); PHP_METHOD(Phalcon_Flash_AbstractFlash, setEscaperService); PHP_METHOD(Phalcon_Flash_AbstractFlash, setImplicitFlush); PHP_METHOD(Phalcon_Flash_AbstractFlash, success); @@ -27,7 +25,7 @@ PHP_METHOD(Phalcon_Flash_AbstractFlash, prepareHtmlMessage); zend_object *zephir_init_properties_Phalcon_Flash_AbstractFlash(zend_class_entry *class_type TSRMLS_DC); ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_flash_abstractflash___construct, 0, 0, 0) - ZEND_ARG_INFO(0, cssClasses) + ZEND_ARG_OBJ_INFO(0, escaper, Phalcon\\Escaper\\EscaperInterface, 1) ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 70200 @@ -56,13 +54,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_abstractflash_getc #endif ZEND_END_ARG_INFO() -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_flash_abstractflash_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_abstractflash_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) -#endif -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_flash_abstractflash_getescaperservice, 0, 0, Phalcon\\Escaper\\EscaperInterface, 0) #else @@ -83,9 +74,9 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_abstractflash_noti ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_flash_abstractflash_setautoescape, 0, 1, Phalcon\\Flash\\Flash, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_flash_abstractflash_setautoescape, 0, 1, Phalcon\\Flash\\FlashInterface, 0) #else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_abstractflash_setautoescape, 0, 1, IS_OBJECT, "Phalcon\\Flash\\Flash", 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_abstractflash_setautoescape, 0, 1, IS_OBJECT, "Phalcon\\Flash\\FlashInterface", 0) #endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, autoescape, _IS_BOOL, 0) @@ -126,14 +117,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_abstractflash_setc #endif ZEND_END_ARG_INFO() -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_flash_abstractflash_setdi, 0, 1, Phalcon\\Flash\\FlashInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_abstractflash_setdi, 0, 1, IS_OBJECT, "Phalcon\\Flash\\FlashInterface", 0) -#endif - ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_flash_abstractflash_setescaperservice, 0, 1, Phalcon\\Flash\\FlashInterface, 0) #else @@ -234,14 +217,12 @@ ZEPHIR_INIT_FUNCS(phalcon_flash_abstractflash_method_entry) { PHP_ME(Phalcon_Flash_AbstractFlash, error, arginfo_phalcon_flash_abstractflash_error, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, getAutoescape, arginfo_phalcon_flash_abstractflash_getautoescape, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, getCustomTemplate, arginfo_phalcon_flash_abstractflash_getcustomtemplate, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Flash_AbstractFlash, getDI, arginfo_phalcon_flash_abstractflash_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, getEscaperService, arginfo_phalcon_flash_abstractflash_getescaperservice, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, notice, arginfo_phalcon_flash_abstractflash_notice, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, setAutoescape, arginfo_phalcon_flash_abstractflash_setautoescape, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, setAutomaticHtml, arginfo_phalcon_flash_abstractflash_setautomatichtml, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, setCssClasses, arginfo_phalcon_flash_abstractflash_setcssclasses, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, setCustomTemplate, arginfo_phalcon_flash_abstractflash_setcustomtemplate, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Flash_AbstractFlash, setDI, arginfo_phalcon_flash_abstractflash_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, setEscaperService, arginfo_phalcon_flash_abstractflash_setescaperservice, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, setImplicitFlush, arginfo_phalcon_flash_abstractflash_setimplicitflush, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, success, arginfo_phalcon_flash_abstractflash_success, ZEND_ACC_PUBLIC) diff --git a/ext/phalcon/flash/direct.zep.h b/ext/phalcon/flash/direct.zep.h index 7dea27806f4..5a1be1d1e6d 100644 --- a/ext/phalcon/flash/direct.zep.h +++ b/ext/phalcon/flash/direct.zep.h @@ -7,9 +7,9 @@ PHP_METHOD(Phalcon_Flash_Direct, message); PHP_METHOD(Phalcon_Flash_Direct, output); #if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_direct_message, 0, 2, IS_STRING, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_direct_message, 0, 2, IS_STRING, 1) #else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_direct_message, 0, 2, IS_STRING, NULL, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_direct_message, 0, 2, IS_STRING, NULL, 1) #endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, type, IS_STRING, 0) diff --git a/ext/phalcon/flash/flashinterface.zep.h b/ext/phalcon/flash/flashinterface.zep.h index 251dce6193e..c33a6601d81 100644 --- a/ext/phalcon/flash/flashinterface.zep.h +++ b/ext/phalcon/flash/flashinterface.zep.h @@ -15,7 +15,11 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_flashinterface_err #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_flash_flashinterface_message, 0, 0, 2) +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_flashinterface_message, 0, 2, IS_STRING, 1) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_flashinterface_message, 0, 2, IS_STRING, NULL, 1) +#endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, type, IS_STRING, 0) #else diff --git a/ext/phalcon/flash/session.zep.c b/ext/phalcon/flash/session.zep.c index f14658a0899..d98fef6e402 100644 --- a/ext/phalcon/flash/session.zep.c +++ b/ext/phalcon/flash/session.zep.c @@ -174,7 +174,7 @@ PHP_METHOD(Phalcon_Flash_Session, message) { zephir_array_update_multi(&messages, &message TSRMLS_CC, SL("za"), 2, &type); ZEPHIR_CALL_METHOD(NULL, this_ptr, "setsessionmessages", NULL, 0, &messages); zephir_check_call_status(); - ZEPHIR_MM_RESTORE(); + RETURN_MM_NULL(); } @@ -215,7 +215,7 @@ PHP_METHOD(Phalcon_Flash_Session, output) { } ZEPHIR_CALL_METHOD(&messages, this_ptr, "getsessionmessages", NULL, 0, &_0); zephir_check_call_status(); - zephir_is_iterable(&messages, 0, "phalcon/Flash/Session.zep", 88); + zephir_is_iterable(&messages, 0, "phalcon/Flash/Session.zep", 90); if (Z_TYPE_P(&messages) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&messages), _3, _4, _1) { diff --git a/ext/phalcon/flash/session.zep.h b/ext/phalcon/flash/session.zep.h index ce45ab059d1..20db2c8ab8b 100644 --- a/ext/phalcon/flash/session.zep.h +++ b/ext/phalcon/flash/session.zep.h @@ -32,7 +32,11 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_session_has, 0, 0, ZEND_ARG_INFO(0, type) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_flash_session_message, 0, 0, 2) +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_session_message, 0, 2, IS_STRING, 1) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_session_message, 0, 2, IS_STRING, NULL, 1) +#endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, type, IS_STRING, 0) #else diff --git a/ext/phalcon/helper/fs.zep.c b/ext/phalcon/helper/fs.zep.c new file mode 100644 index 00000000000..4cd8416661c --- /dev/null +++ b/ext/phalcon/helper/fs.zep.c @@ -0,0 +1,136 @@ + +#ifdef HAVE_CONFIG_H +#include "../../ext_config.h" +#endif + +#include +#include "../../php_ext.h" +#include "../../ext.h" + +#include +#include +#include + +#include "kernel/main.h" +#include "kernel/memory.h" +#include "kernel/string.h" +#include "kernel/operators.h" +#include "kernel/concat.h" +#include "kernel/fcall.h" +#include "kernel/array.h" +#include "ext/spl/spl_exceptions.h" +#include "kernel/exception.h" +#include "kernel/object.h" + + +/** + * This file is part of the Phalcon. + * + * (c) Phalcon Team + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ +/** + * This class offers file operation helper + */ +ZEPHIR_INIT_CLASS(Phalcon_Helper_Fs) { + + ZEPHIR_REGISTER_CLASS(Phalcon\\Helper, Fs, phalcon, helper_fs, phalcon_helper_fs_method_entry, 0); + + return SUCCESS; + +} + +/** + * Gets the filename from a given path, Same as PHP's basename() but has non-ASCII support. + * PHP's basename() does not properly support streams or filenames beginning with a non-US-ASCII character. + * see https://bugs.php.net/bug.php?id=37738 + * + * @param string $uri + * @param string $suffix + * + * @return string + */ +PHP_METHOD(Phalcon_Helper_Fs, basename) { + + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; + zend_long ZEPHIR_LAST_CALL_STATUS; + zval *uri_param = NULL, *suffix = NULL, suffix_sub, __$null, filename, matches, _0, _1, _2, _3, _4, _5, _6$$3, _7$$3, _8$$3, _9$$3; + zval uri; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&uri); + ZVAL_UNDEF(&suffix_sub); + ZVAL_NULL(&__$null); + ZVAL_UNDEF(&filename); + ZVAL_UNDEF(&matches); + ZVAL_UNDEF(&_0); + ZVAL_UNDEF(&_1); + ZVAL_UNDEF(&_2); + ZVAL_UNDEF(&_3); + ZVAL_UNDEF(&_4); + ZVAL_UNDEF(&_5); + ZVAL_UNDEF(&_6$$3); + ZVAL_UNDEF(&_7$$3); + ZVAL_UNDEF(&_8$$3); + ZVAL_UNDEF(&_9$$3); + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 1, &uri_param, &suffix); + + if (UNEXPECTED(Z_TYPE_P(uri_param) != IS_STRING && Z_TYPE_P(uri_param) != IS_NULL)) { + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'uri' must be of the type string") TSRMLS_CC); + RETURN_MM_NULL(); + } + if (EXPECTED(Z_TYPE_P(uri_param) == IS_STRING)) { + zephir_get_strval(&uri, uri_param); + } else { + ZEPHIR_INIT_VAR(&uri); + ZVAL_EMPTY_STRING(&uri); + } + if (!suffix) { + suffix = &suffix_sub; + suffix = &__$null; + } + + + ZEPHIR_INIT_VAR(&_0); + ZEPHIR_INIT_VAR(&_1); + ZVAL_STRING(&_1, "/"); + zephir_fast_trim(&_0, &uri, &_1, ZEPHIR_TRIM_RIGHT TSRMLS_CC); + zephir_get_strval(&uri, &_0); + ZEPHIR_INIT_VAR(&_2); + ZVAL_STRING(&_2, "/"); + ZEPHIR_INIT_VAR(&_3); + ZVAL_STRING(&_3, "@"); + ZEPHIR_CALL_FUNCTION(&_4, "preg_quote", NULL, 258, &_2, &_3); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(&_5); + ZEPHIR_CONCAT_SVS(&_5, "@[^", &_4, "]+$@"); + ZEPHIR_INIT_NVAR(&_2); + zephir_preg_match(&_2, &_5, &uri, &matches, 0, 0 , 0 TSRMLS_CC); + if (zephir_is_true(&_2)) { + ZEPHIR_OBS_VAR(&filename); + zephir_array_fetch_long(&filename, &matches, 0, PH_NOISY, "phalcon/Helper/Fs.zep", 36 TSRMLS_CC); + } else { + ZEPHIR_INIT_NVAR(&filename); + ZVAL_STRING(&filename, ""); + } + if (zephir_is_true(suffix)) { + ZEPHIR_INIT_VAR(&_6$$3); + ZVAL_STRING(&_6$$3, "@"); + ZEPHIR_CALL_FUNCTION(&_7$$3, "preg_quote", NULL, 258, suffix, &_6$$3); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(&_8$$3); + ZEPHIR_CONCAT_SVS(&_8$$3, "@", &_7$$3, "$@"); + ZEPHIR_INIT_NVAR(&_6$$3); + ZVAL_STRING(&_6$$3, ""); + ZEPHIR_CALL_FUNCTION(&_9$$3, "preg_replace", NULL, 44, &_8$$3, &_6$$3, &filename); + zephir_check_call_status(); + ZEPHIR_CPY_WRT(&filename, &_9$$3); + } + RETURN_CCTOR(&filename); + +} + diff --git a/ext/phalcon/helper/fs.zep.h b/ext/phalcon/helper/fs.zep.h new file mode 100644 index 00000000000..a8d37ce62fa --- /dev/null +++ b/ext/phalcon/helper/fs.zep.h @@ -0,0 +1,24 @@ + +extern zend_class_entry *phalcon_helper_fs_ce; + +ZEPHIR_INIT_CLASS(Phalcon_Helper_Fs); + +PHP_METHOD(Phalcon_Helper_Fs, basename); + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_helper_fs_basename, 0, 1, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_helper_fs_basename, 0, 1, IS_STRING, NULL, 0) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, uri, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, uri) +#endif + ZEND_ARG_INFO(0, suffix) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(phalcon_helper_fs_method_entry) { + PHP_ME(Phalcon_Helper_Fs, basename, arginfo_phalcon_helper_fs_basename, ZEND_ACC_FINAL|ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_FE_END +}; diff --git a/ext/phalcon/helper/str.zep.c b/ext/phalcon/helper/str.zep.c index cc39afdc624..798af9fda04 100644 --- a/ext/phalcon/helper/str.zep.c +++ b/ext/phalcon/helper/str.zep.c @@ -163,12 +163,12 @@ PHP_METHOD(Phalcon_Helper_Str, concat) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_helper_exception_ce, "concat needs at least three parameters", "phalcon/Helper/Str.zep", 80); return; } - ZEPHIR_CALL_CE_STATIC(&delimiter, phalcon_helper_arr_ce, "first", &_0, 258, &arguments); + ZEPHIR_CALL_CE_STATIC(&delimiter, phalcon_helper_arr_ce, "first", &_0, 259, &arguments); zephir_check_call_status(); - ZEPHIR_CALL_CE_STATIC(&_1, phalcon_helper_arr_ce, "sliceright", &_2, 259, &arguments); + ZEPHIR_CALL_CE_STATIC(&_1, phalcon_helper_arr_ce, "sliceright", &_2, 260, &arguments); zephir_check_call_status(); ZEPHIR_CPY_WRT(&arguments, &_1); - ZEPHIR_CALL_CE_STATIC(&first, phalcon_helper_arr_ce, "first", &_0, 258, &arguments); + ZEPHIR_CALL_CE_STATIC(&first, phalcon_helper_arr_ce, "first", &_0, 259, &arguments); zephir_check_call_status(); ZEPHIR_CALL_CE_STATIC(&last, phalcon_helper_arr_ce, "last", &_3, 123, &arguments); zephir_check_call_status(); @@ -178,12 +178,12 @@ PHP_METHOD(Phalcon_Helper_Str, concat) { ZVAL_STRING(&suffix, ""); ZEPHIR_INIT_VAR(&data); array_init(&data); - ZEPHIR_CALL_SELF(&_1, "startswith", &_4, 260, &first, &delimiter); + ZEPHIR_CALL_SELF(&_1, "startswith", &_4, 261, &first, &delimiter); zephir_check_call_status(); if (zephir_is_true(&_1)) { ZEPHIR_CPY_WRT(&prefix, &delimiter); } - ZEPHIR_CALL_SELF(&_5, "endswith", &_6, 261, &last, &delimiter); + ZEPHIR_CALL_SELF(&_5, "endswith", &_6, 262, &last, &delimiter); zephir_check_call_status(); if (zephir_is_true(&_5)) { ZEPHIR_CPY_WRT(&suffix, &delimiter); @@ -353,7 +353,7 @@ PHP_METHOD(Phalcon_Helper_Str, decapitalize) { } if (upperRest) { if ((zephir_function_exists_ex(SL("mb_strtoupper") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&suffix, "mb_strtoupper", NULL, 262, &substr, &encoding); + ZEPHIR_CALL_FUNCTION(&suffix, "mb_strtoupper", NULL, 263, &substr, &encoding); zephir_check_call_status(); } else { ZEPHIR_CALL_METHOD(&suffix, &substr, "upper", NULL, 0); @@ -636,24 +636,24 @@ PHP_METHOD(Phalcon_Helper_Str, dynamic) { } - ZEPHIR_CALL_FUNCTION(&_0, "substr_count", NULL, 263, &text, &leftDelimiter); + ZEPHIR_CALL_FUNCTION(&_0, "substr_count", NULL, 264, &text, &leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "substr_count", NULL, 263, &text, &rightDelimiter); + ZEPHIR_CALL_FUNCTION(&_1, "substr_count", NULL, 264, &text, &rightDelimiter); zephir_check_call_status(); if (UNEXPECTED(!ZEPHIR_IS_IDENTICAL(&_0, &_1))) { ZEPHIR_INIT_VAR(&_2$$3); object_init_ex(&_2$$3, spl_ce_RuntimeException); ZEPHIR_INIT_VAR(&_3$$3); ZEPHIR_CONCAT_SVS(&_3$$3, "Syntax error in string \"", &text, "\""); - ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 264, &_3$$3); + ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 265, &_3$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_2$$3, "phalcon/Helper/Str.zep", 256 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", NULL, 265, &leftDelimiter); + ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", NULL, 258, &leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", NULL, 265, &rightDelimiter); + ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", NULL, 258, &rightDelimiter); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_4); ZEPHIR_CONCAT_SVSVVSVS(&_4, "/", &ldS, "([^", &ldS, &rdS, "]+)", &rdS, "/"); @@ -687,7 +687,7 @@ PHP_METHOD(Phalcon_Helper_Str, dynamic) { zephir_check_call_status(); zephir_array_fetch(&word, &words, &_10$$6, PH_NOISY, "phalcon/Helper/Str.zep", 275 TSRMLS_CC); zephir_array_fetch_long(&_12$$6, &match, 0, PH_NOISY | PH_READONLY, "phalcon/Helper/Str.zep", 276 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&sub, "preg_quote", NULL, 265, &_12$$6, &separator); + ZEPHIR_CALL_FUNCTION(&sub, "preg_quote", NULL, 258, &_12$$6, &separator); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_13$$6); ZEPHIR_CONCAT_SVS(&_13$$6, "/", &sub, "/"); @@ -722,7 +722,7 @@ PHP_METHOD(Phalcon_Helper_Str, dynamic) { zephir_check_call_status(); zephir_array_fetch(&word, &words, &_19$$8, PH_NOISY, "phalcon/Helper/Str.zep", 275 TSRMLS_CC); zephir_array_fetch_long(&_20$$8, &match, 0, PH_NOISY | PH_READONLY, "phalcon/Helper/Str.zep", 276 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&sub, "preg_quote", NULL, 265, &_20$$8, &separator); + ZEPHIR_CALL_FUNCTION(&sub, "preg_quote", NULL, 258, &_20$$8, &separator); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_21$$8); ZEPHIR_CONCAT_SVS(&_21$$8, "/", &sub, "/"); @@ -1256,7 +1256,7 @@ PHP_METHOD(Phalcon_Helper_Str, isUpper) { if ((zephir_function_exists_ex(SL("mb_strtoupper") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&_0$$3, "mb_strtoupper", NULL, 262, &text, &encoding); + ZEPHIR_CALL_FUNCTION(&_0$$3, "mb_strtoupper", NULL, 263, &text, &encoding); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_IDENTICAL(&text, &_0$$3)); } else { @@ -1769,7 +1769,7 @@ PHP_METHOD(Phalcon_Helper_Str, upper) { if ((zephir_function_exists_ex(SL("mb_strtoupper") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 262, &text, &encoding); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 263, &text, &encoding); zephir_check_call_status(); RETURN_MM(); } diff --git a/ext/phalcon/html/tag.zep.c b/ext/phalcon/html/tag.zep.c index 267806399aa..9f3ccde0925 100644 --- a/ext/phalcon/html/tag.zep.c +++ b/ext/phalcon/html/tag.zep.c @@ -40,12 +40,7 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Html_Tag) { - ZEPHIR_REGISTER_CLASS(Phalcon\\Html, Tag, phalcon, html_tag, phalcon_html_tag_method_entry, 0); - - /** - * @var DiInterface - */ - zend_declare_property_null(phalcon_html_tag_ce, SL("container"), ZEND_ACC_PROTECTED TSRMLS_CC); + ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Html, Tag, phalcon, html_tag, phalcon_di_abstractinjectionaware_ce, phalcon_html_tag_method_entry, 0); /** * @var array @@ -113,7 +108,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Html_Tag) { zephir_declare_class_constant_long(phalcon_html_tag_ce, SL("XHTML5"), 11); - zend_class_implements(phalcon_html_tag_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); return SUCCESS; } @@ -700,7 +694,7 @@ PHP_METHOD(Phalcon_Html_Tag, friendlyTitle) { _10$$4 = Z_TYPE_P(&replace) != IS_STRING; } if (UNEXPECTED(_10$$4)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "Parameter replace must be an array or a string", "phalcon/Html/Tag.zep", 340); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "Parameter replace must be an array or a string", "phalcon/Html/Tag.zep", 335); return; } if (Z_TYPE_P(&replace) == IS_STRING) { @@ -754,18 +748,6 @@ PHP_METHOD(Phalcon_Html_Tag, friendlyTitle) { } -/** - * Returns the internal dependency injector - */ -PHP_METHOD(Phalcon_Html_Tag, getDI) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "container"); - -} - /** * Get the document type declaration of content. If the docType has not * been set properly, XHTML5 is returned @@ -968,7 +950,7 @@ PHP_METHOD(Phalcon_Html_Tag, getTitle) { if (!(ZEPHIR_IS_EMPTY(&prependTitle))) { ZEPHIR_CALL_FUNCTION(&prependArray$$4, "array_reverse", NULL, 280, &prependTitle); zephir_check_call_status(); - zephir_is_iterable(&prependArray$$4, 0, "phalcon/Html/Tag.zep", 480); + zephir_is_iterable(&prependArray$$4, 0, "phalcon/Html/Tag.zep", 467); if (Z_TYPE_P(&prependArray$$4) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&prependArray$$4), _3$$4) { @@ -976,7 +958,7 @@ PHP_METHOD(Phalcon_Html_Tag, getTitle) { ZVAL_COPY(&item, _3$$4); ZEPHIR_CALL_METHOD(&_5$$5, &escaper, "escapehtml", &_6, 0, &item); zephir_check_call_status(); - zephir_array_append(&items, &_5$$5, PH_SEPARATE, "phalcon/Html/Tag.zep", 478); + zephir_array_append(&items, &_5$$5, PH_SEPARATE, "phalcon/Html/Tag.zep", 465); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &prependArray$$4, "rewind", NULL, 0); @@ -991,7 +973,7 @@ PHP_METHOD(Phalcon_Html_Tag, getTitle) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_7$$6, &escaper, "escapehtml", &_8, 0, &item); zephir_check_call_status(); - zephir_array_append(&items, &_7$$6, PH_SEPARATE, "phalcon/Html/Tag.zep", 478); + zephir_array_append(&items, &_7$$6, PH_SEPARATE, "phalcon/Html/Tag.zep", 465); ZEPHIR_CALL_METHOD(NULL, &prependArray$$4, "next", NULL, 0); zephir_check_call_status(); } @@ -1000,13 +982,13 @@ PHP_METHOD(Phalcon_Html_Tag, getTitle) { } } if (!(ZEPHIR_IS_EMPTY(&title))) { - zephir_array_append(&items, &title, PH_SEPARATE, "phalcon/Html/Tag.zep", 484); + zephir_array_append(&items, &title, PH_SEPARATE, "phalcon/Html/Tag.zep", 471); } if (append) { ZEPHIR_OBS_VAR(&appendTitle); zephir_read_property(&appendTitle, this_ptr, SL("append"), PH_NOISY_CC); if (!(ZEPHIR_IS_EMPTY(&appendTitle))) { - zephir_is_iterable(&appendTitle, 0, "phalcon/Html/Tag.zep", 494); + zephir_is_iterable(&appendTitle, 0, "phalcon/Html/Tag.zep", 481); if (Z_TYPE_P(&appendTitle) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&appendTitle), _9$$9) { @@ -1014,7 +996,7 @@ PHP_METHOD(Phalcon_Html_Tag, getTitle) { ZVAL_COPY(&item, _9$$9); ZEPHIR_CALL_METHOD(&_11$$10, &escaper, "escapehtml", &_12, 0, &item); zephir_check_call_status(); - zephir_array_append(&items, &_11$$10, PH_SEPARATE, "phalcon/Html/Tag.zep", 492); + zephir_array_append(&items, &_11$$10, PH_SEPARATE, "phalcon/Html/Tag.zep", 479); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &appendTitle, "rewind", NULL, 0); @@ -1029,7 +1011,7 @@ PHP_METHOD(Phalcon_Html_Tag, getTitle) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_13$$11, &escaper, "escapehtml", &_14, 0, &item); zephir_check_call_status(); - zephir_array_append(&items, &_13$$11, PH_SEPARATE, "phalcon/Html/Tag.zep", 492); + zephir_array_append(&items, &_13$$11, PH_SEPARATE, "phalcon/Html/Tag.zep", 479); ZEPHIR_CALL_METHOD(NULL, &appendTitle, "next", NULL, 0); zephir_check_call_status(); } @@ -2434,7 +2416,7 @@ PHP_METHOD(Phalcon_Html_Tag, javascript) { zephir_read_property(&_3, this_ptr, SL("docType"), PH_NOISY_CC | PH_READONLY); _7 = ZEPHIR_GE_LONG(&_3, 5); if (_7) { - zephir_array_fetch_string(&_8, ¶meters, SL("type"), PH_NOISY | PH_READONLY, "phalcon/Html/Tag.zep", 1018 TSRMLS_CC); + zephir_array_fetch_string(&_8, ¶meters, SL("type"), PH_NOISY | PH_READONLY, "phalcon/Html/Tag.zep", 1005 TSRMLS_CC); ZEPHIR_SINIT_VAR(_9); ZVAL_STRING(&_9, "text/javascript"); _7 = ZEPHIR_IS_EQUAL(&_9, &_8); @@ -2867,7 +2849,7 @@ PHP_METHOD(Phalcon_Html_Tag, select) { _4 = !ZEPHIR_IS_STRING_IDENTICAL(data, "object"); } if (UNEXPECTED(_4)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "The dataset must be either an array or a ResultsetInterface", "phalcon/Html/Tag.zep", 1217); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "The dataset must be either an array or a ResultsetInterface", "phalcon/Html/Tag.zep", 1204); return; } if (Z_TYPE_P(data) == IS_OBJECT) { @@ -2884,7 +2866,7 @@ PHP_METHOD(Phalcon_Html_Tag, select) { if (_7$$4) { zephir_array_unset_string(¶meters, SL("using"), PH_SEPARATE); } else { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "The 'using' parameter is not a valid array", "phalcon/Html/Tag.zep", 1235); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "The 'using' parameter is not a valid array", "phalcon/Html/Tag.zep", 1222); return; } } @@ -2943,7 +2925,7 @@ PHP_METHOD(Phalcon_Html_Tag, select) { zephir_check_call_status(); zephir_concat_self(&output, &_15$$11 TSRMLS_CC); } else { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "Invalid data provided to SELECT helper", "phalcon/Html/Tag.zep", 1276); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "Invalid data provided to SELECT helper", "phalcon/Html/Tag.zep", 1263); return; } zephir_concat_self_str(&output, SL("") TSRMLS_CC); @@ -2998,7 +2980,7 @@ PHP_METHOD(Phalcon_Html_Tag, setAttribute) { _0$$3 = Z_TYPE_P(value) == IS_OBJECT; } if (UNEXPECTED(_0$$3)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "Only scalar values can be assigned to UI components", "phalcon/Html/Tag.zep", 1305); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "Only scalar values can be assigned to UI components", "phalcon/Html/Tag.zep", 1292); return; } } @@ -3061,24 +3043,6 @@ PHP_METHOD(Phalcon_Html_Tag, setAttributes) { } -/** - * Sets the dependency injector - */ -PHP_METHOD(Phalcon_Html_Tag, setDI) { - - zval *container, container_sub; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&container_sub); - - zephir_fetch_params_without_memory_grow(1, 0, &container); - - - - zephir_update_property_zval(this_ptr, SL("container"), container); - -} - /** * Set the document type of content */ @@ -3417,10 +3381,10 @@ PHP_METHOD(Phalcon_Html_Tag, textArea) { zephir_array_update_string(¶meters, SL("name"), &_3, PH_COPY | PH_SEPARATE); if (zephir_array_isset_string(¶meters, SL("value"))) { ZEPHIR_OBS_VAR(&content); - zephir_array_fetch_string(&content, ¶meters, SL("value"), PH_NOISY, "phalcon/Html/Tag.zep", 1509 TSRMLS_CC); + zephir_array_fetch_string(&content, ¶meters, SL("value"), PH_NOISY, "phalcon/Html/Tag.zep", 1488 TSRMLS_CC); zephir_array_unset_string(¶meters, SL("value"), PH_SEPARATE); } else { - zephir_array_fetch_string(&_4$$4, ¶meters, SL("id"), PH_NOISY | PH_READONLY, "phalcon/Html/Tag.zep", 1513 TSRMLS_CC); + zephir_array_fetch_string(&_4$$4, ¶meters, SL("id"), PH_NOISY | PH_READONLY, "phalcon/Html/Tag.zep", 1492 TSRMLS_CC); ZEPHIR_CALL_METHOD(&content, this_ptr, "getvalue", NULL, 0, &_4$$4, ¶meters); zephir_check_call_status(); } @@ -3486,7 +3450,7 @@ PHP_METHOD(Phalcon_Html_Tag, getService) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_1$$6, "__construct", NULL, 5, &_2$$6); zephir_check_call_status(); - zephir_throw_exception_debug(&_1$$6, "phalcon/Html/Tag.zep", 1544 TSRMLS_CC); + zephir_throw_exception_debug(&_1$$6, "phalcon/Html/Tag.zep", 1523 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3585,7 +3549,7 @@ PHP_METHOD(Phalcon_Html_Tag, renderAttributes) { zephir_check_call_status(); zephir_array_unset_string(&attrs, SL("escape"), PH_SEPARATE); ZEPHIR_CPY_WRT(&newCode, &code); - zephir_is_iterable(&attrs, 0, "phalcon/Html/Tag.zep", 1605); + zephir_is_iterable(&attrs, 0, "phalcon/Html/Tag.zep", 1584); if (Z_TYPE_P(&attrs) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&attrs), _3, _4, _1) { @@ -3615,7 +3579,7 @@ PHP_METHOD(Phalcon_Html_Tag, renderAttributes) { ZEPHIR_CONCAT_SVSVS(&_9$$5, "Value at index: '", &key, "' type: '", &_8$$5, "' cannot be rendered"); ZEPHIR_CALL_METHOD(NULL, &_7$$5, "__construct", &_10, 5, &_9$$5); zephir_check_call_status(); - zephir_throw_exception_debug(&_7$$5, "phalcon/Html/Tag.zep", 1592 TSRMLS_CC); + zephir_throw_exception_debug(&_7$$5, "phalcon/Html/Tag.zep", 1571 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3661,7 +3625,7 @@ PHP_METHOD(Phalcon_Html_Tag, renderAttributes) { ZEPHIR_CONCAT_SVSVS(&_17$$10, "Value at index: '", &key, "' type: '", &_16$$10, "' cannot be rendered"); ZEPHIR_CALL_METHOD(NULL, &_15$$10, "__construct", &_10, 5, &_17$$10); zephir_check_call_status(); - zephir_throw_exception_debug(&_15$$10, "phalcon/Html/Tag.zep", 1592 TSRMLS_CC); + zephir_throw_exception_debug(&_15$$10, "phalcon/Html/Tag.zep", 1571 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3922,7 +3886,7 @@ PHP_METHOD(Phalcon_Html_Tag, renderSelectArray) { ZEPHIR_INIT_VAR(&output); ZVAL_STRING(&output, ""); - zephir_is_iterable(&options, 0, "phalcon/Html/Tag.zep", 1736); + zephir_is_iterable(&options, 0, "phalcon/Html/Tag.zep", 1715); if (Z_TYPE_P(&options) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&options), _2, _3, _0) { @@ -4090,9 +4054,9 @@ PHP_METHOD(Phalcon_Html_Tag, renderSelectResultset) { ZVAL_STRING(&output, ""); if (Z_TYPE_P(using) == IS_ARRAY) { ZEPHIR_OBS_VAR(&optionValue); - zephir_array_fetch_long(&optionValue, using, 0, PH_NOISY, "phalcon/Html/Tag.zep", 1756 TSRMLS_CC); + zephir_array_fetch_long(&optionValue, using, 0, PH_NOISY, "phalcon/Html/Tag.zep", 1735 TSRMLS_CC); ZEPHIR_OBS_VAR(&optionText); - zephir_array_fetch_long(&optionText, using, 1, PH_NOISY, "phalcon/Html/Tag.zep", 1757 TSRMLS_CC); + zephir_array_fetch_long(&optionText, using, 1, PH_NOISY, "phalcon/Html/Tag.zep", 1736 TSRMLS_CC); } _1 = zephir_get_iterator(resultset TSRMLS_CC); _1->funcs->rewind(_1 TSRMLS_CC); @@ -4117,12 +4081,12 @@ PHP_METHOD(Phalcon_Html_Tag, renderSelectResultset) { } } else { if (UNEXPECTED(Z_TYPE_P(&option) != IS_ARRAY)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "Resultset returned an invalid value", "phalcon/Html/Tag.zep", 1775); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "Resultset returned an invalid value", "phalcon/Html/Tag.zep", 1754); return; } - zephir_array_fetch(&_4$$9, &option, &optionValue, PH_NOISY | PH_READONLY, "phalcon/Html/Tag.zep", 1778 TSRMLS_CC); + zephir_array_fetch(&_4$$9, &option, &optionValue, PH_NOISY | PH_READONLY, "phalcon/Html/Tag.zep", 1757 TSRMLS_CC); ZEPHIR_CPY_WRT(&optionValue, &_4$$9); - zephir_array_fetch(&_4$$9, &option, &optionText, PH_NOISY | PH_READONLY, "phalcon/Html/Tag.zep", 1779 TSRMLS_CC); + zephir_array_fetch(&_4$$9, &option, &optionText, PH_NOISY | PH_READONLY, "phalcon/Html/Tag.zep", 1758 TSRMLS_CC); ZEPHIR_CPY_WRT(&optionText, &_4$$9); } ZEPHIR_CALL_METHOD(&_5$$5, &escaper, "escapehtmlattr", &_6, 0, &optionValue); diff --git a/ext/phalcon/html/tag.zep.h b/ext/phalcon/html/tag.zep.h index 95c0a8e60f2..d3c09526d03 100644 --- a/ext/phalcon/html/tag.zep.h +++ b/ext/phalcon/html/tag.zep.h @@ -12,7 +12,6 @@ PHP_METHOD(Phalcon_Html_Tag, elementClose); PHP_METHOD(Phalcon_Html_Tag, endForm); PHP_METHOD(Phalcon_Html_Tag, form); PHP_METHOD(Phalcon_Html_Tag, friendlyTitle); -PHP_METHOD(Phalcon_Html_Tag, getDI); PHP_METHOD(Phalcon_Html_Tag, getDocType); PHP_METHOD(Phalcon_Html_Tag, getTitle); PHP_METHOD(Phalcon_Html_Tag, getTitleSeparator); @@ -47,7 +46,6 @@ PHP_METHOD(Phalcon_Html_Tag, reset); PHP_METHOD(Phalcon_Html_Tag, select); PHP_METHOD(Phalcon_Html_Tag, setAttribute); PHP_METHOD(Phalcon_Html_Tag, setAttributes); -PHP_METHOD(Phalcon_Html_Tag, setDI); PHP_METHOD(Phalcon_Html_Tag, setDocType); PHP_METHOD(Phalcon_Html_Tag, setTitle); PHP_METHOD(Phalcon_Html_Tag, setTitleSeparator); @@ -153,13 +151,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_html_tag_friendlytitle, ZEND_ARG_ARRAY_INFO(0, parameters, 0) ZEND_END_ARG_INFO() -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_html_tag_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_html_tag_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) -#endif -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_html_tag_getdoctype, 0, 0, IS_STRING, 0) #else @@ -594,10 +585,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_html_tag_setattributes, #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_html_tag_setdi, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_html_tag_setdoctype, 0, 1, Phalcon\\Html\\Tag, 0) #else @@ -781,7 +768,6 @@ ZEPHIR_INIT_FUNCS(phalcon_html_tag_method_entry) { PHP_ME(Phalcon_Html_Tag, endForm, arginfo_phalcon_html_tag_endform, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Html_Tag, form, arginfo_phalcon_html_tag_form, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Html_Tag, friendlyTitle, arginfo_phalcon_html_tag_friendlytitle, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Html_Tag, getDI, arginfo_phalcon_html_tag_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Html_Tag, getDocType, arginfo_phalcon_html_tag_getdoctype, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Html_Tag, getTitle, arginfo_phalcon_html_tag_gettitle, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Html_Tag, getTitleSeparator, arginfo_phalcon_html_tag_gettitleseparator, ZEND_ACC_PUBLIC) @@ -816,7 +802,6 @@ ZEPHIR_INIT_FUNCS(phalcon_html_tag_method_entry) { PHP_ME(Phalcon_Html_Tag, select, arginfo_phalcon_html_tag_select, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Html_Tag, setAttribute, arginfo_phalcon_html_tag_setattribute, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Html_Tag, setAttributes, arginfo_phalcon_html_tag_setattributes, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Html_Tag, setDI, arginfo_phalcon_html_tag_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Html_Tag, setDocType, arginfo_phalcon_html_tag_setdoctype, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Html_Tag, setTitle, arginfo_phalcon_html_tag_settitle, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Html_Tag, setTitleSeparator, arginfo_phalcon_html_tag_settitleseparator, ZEND_ACC_PUBLIC) diff --git a/ext/phalcon/http/cookie.zep.c b/ext/phalcon/http/cookie.zep.c index b0851b26542..d10207ef283 100644 --- a/ext/phalcon/http/cookie.zep.c +++ b/ext/phalcon/http/cookie.zep.c @@ -36,9 +36,7 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Http_Cookie) { - ZEPHIR_REGISTER_CLASS(Phalcon\\Http, Cookie, phalcon, http_cookie, phalcon_http_cookie_method_entry, 0); - - zend_declare_property_null(phalcon_http_cookie_ce, SL("container"), ZEND_ACC_PROTECTED TSRMLS_CC); + ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Http, Cookie, phalcon, http_cookie, phalcon_di_abstractinjectionaware_ce, phalcon_http_cookie_method_entry, 0); zend_declare_property_null(phalcon_http_cookie_ce, SL("domain"), ZEND_ACC_PROTECTED TSRMLS_CC); @@ -69,7 +67,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Http_Cookie) { zend_declare_property_null(phalcon_http_cookie_ce, SL("value"), ZEND_ACC_PROTECTED TSRMLS_CC); zend_class_implements(phalcon_http_cookie_ce TSRMLS_CC, 1, phalcon_http_cookieinterface_ce); - zend_class_implements(phalcon_http_cookie_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); return SUCCESS; } @@ -251,18 +248,6 @@ PHP_METHOD(Phalcon_Http_Cookie, delete) { } -/** - * Returns the internal dependency injector - */ -PHP_METHOD(Phalcon_Http_Cookie, getDI) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "container"); - -} - /** * Returns the domain that the cookie is available to */ @@ -473,7 +458,7 @@ PHP_METHOD(Phalcon_Http_Cookie, getValue) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_4$$7, "__construct", NULL, 5, &_5$$7); zephir_check_call_status(); - zephir_throw_exception_debug(&_4$$7, "phalcon/Http/Cookie.zep", 234 TSRMLS_CC); + zephir_throw_exception_debug(&_4$$7, "phalcon/Http/Cookie.zep", 224 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -483,7 +468,7 @@ PHP_METHOD(Phalcon_Http_Cookie, getValue) { zephir_check_call_status(); ZEPHIR_CPY_WRT(&crypt, &_8$$6); if (UNEXPECTED(Z_TYPE_P(&crypt) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_response_exception_ce, "A dependency which implements CryptInterface is required to use encryption", "phalcon/Http/Cookie.zep", 242); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_response_exception_ce, "A dependency which implements CryptInterface is required to use encryption", "phalcon/Http/Cookie.zep", 232); return; } zephir_read_property(&_3$$6, this_ptr, SL("signKey"), PH_NOISY_CC | PH_READONLY); @@ -515,7 +500,7 @@ PHP_METHOD(Phalcon_Http_Cookie, getValue) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_12$$15, "__construct", NULL, 5, &_13$$15); zephir_check_call_status(); - zephir_throw_exception_debug(&_12$$15, "phalcon/Http/Cookie.zep", 285 TSRMLS_CC); + zephir_throw_exception_debug(&_12$$15, "phalcon/Http/Cookie.zep", 275 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -697,7 +682,7 @@ PHP_METHOD(Phalcon_Http_Cookie, send) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 5, &_2$$3); zephir_check_call_status(); - zephir_throw_exception_debug(&_1$$3, "phalcon/Http/Cookie.zep", 387 TSRMLS_CC); + zephir_throw_exception_debug(&_1$$3, "phalcon/Http/Cookie.zep", 377 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -748,7 +733,7 @@ PHP_METHOD(Phalcon_Http_Cookie, send) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_9$$12, "__construct", NULL, 5, &_10$$12); zephir_check_call_status(); - zephir_throw_exception_debug(&_9$$12, "phalcon/Http/Cookie.zep", 432 TSRMLS_CC); + zephir_throw_exception_debug(&_9$$12, "phalcon/Http/Cookie.zep", 422 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -758,7 +743,7 @@ PHP_METHOD(Phalcon_Http_Cookie, send) { zephir_check_call_status(); ZEPHIR_CPY_WRT(&crypt, &_12$$11); if (UNEXPECTED(Z_TYPE_P(&crypt) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_response_exception_ce, "A dependency which implements CryptInterface is required to use encryption", "phalcon/Http/Cookie.zep", 440); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_response_exception_ce, "A dependency which implements CryptInterface is required to use encryption", "phalcon/Http/Cookie.zep", 430); return; } zephir_read_property(&_14$$11, this_ptr, SL("signKey"), PH_NOISY_CC | PH_READONLY); @@ -781,24 +766,6 @@ PHP_METHOD(Phalcon_Http_Cookie, send) { } -/** - * Sets the dependency injector - */ -PHP_METHOD(Phalcon_Http_Cookie, setDI) { - - zval *container, container_sub; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&container_sub); - - zephir_fetch_params_without_memory_grow(1, 0, &container); - - - - zephir_update_property_zval(this_ptr, SL("container"), container); - -} - /** * Sets the domain that the cookie is available to */ @@ -1118,7 +1085,7 @@ PHP_METHOD(Phalcon_Http_Cookie, assertSignKeyIsLongEnough) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 5, &_2$$3); zephir_check_call_status(); - zephir_throw_exception_debug(&_0$$3, "phalcon/Http/Cookie.zep", 611 TSRMLS_CC); + zephir_throw_exception_debug(&_0$$3, "phalcon/Http/Cookie.zep", 593 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } diff --git a/ext/phalcon/http/cookie.zep.h b/ext/phalcon/http/cookie.zep.h index 4b098f85fb5..8deaed0937d 100644 --- a/ext/phalcon/http/cookie.zep.h +++ b/ext/phalcon/http/cookie.zep.h @@ -6,7 +6,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Http_Cookie); PHP_METHOD(Phalcon_Http_Cookie, __construct); PHP_METHOD(Phalcon_Http_Cookie, __toString); PHP_METHOD(Phalcon_Http_Cookie, delete); -PHP_METHOD(Phalcon_Http_Cookie, getDI); PHP_METHOD(Phalcon_Http_Cookie, getDomain); PHP_METHOD(Phalcon_Http_Cookie, getExpiration); PHP_METHOD(Phalcon_Http_Cookie, getHttpOnly); @@ -17,7 +16,6 @@ PHP_METHOD(Phalcon_Http_Cookie, getValue); PHP_METHOD(Phalcon_Http_Cookie, isUsingEncryption); PHP_METHOD(Phalcon_Http_Cookie, restore); PHP_METHOD(Phalcon_Http_Cookie, send); -PHP_METHOD(Phalcon_Http_Cookie, setDI); PHP_METHOD(Phalcon_Http_Cookie, setDomain); PHP_METHOD(Phalcon_Http_Cookie, setExpiration); PHP_METHOD(Phalcon_Http_Cookie, setHttpOnly); @@ -69,13 +67,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_cookie___tostring, #endif ZEND_END_ARG_INFO() -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_http_cookie_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_cookie_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) -#endif -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_cookie_getdomain, 0, 0, IS_STRING, 0) #else @@ -144,10 +135,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_cookie_send, 0, 0, #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_http_cookie_setdi, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_http_cookie_setdomain, 0, 1, Phalcon\\Http\\CookieInterface, 0) #else @@ -252,7 +239,6 @@ ZEPHIR_INIT_FUNCS(phalcon_http_cookie_method_entry) { PHP_ME(Phalcon_Http_Cookie, __construct, arginfo_phalcon_http_cookie___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) PHP_ME(Phalcon_Http_Cookie, __toString, arginfo_phalcon_http_cookie___tostring, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Cookie, delete, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Http_Cookie, getDI, arginfo_phalcon_http_cookie_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Cookie, getDomain, arginfo_phalcon_http_cookie_getdomain, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Cookie, getExpiration, arginfo_phalcon_http_cookie_getexpiration, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Cookie, getHttpOnly, arginfo_phalcon_http_cookie_gethttponly, ZEND_ACC_PUBLIC) @@ -263,7 +249,6 @@ ZEPHIR_INIT_FUNCS(phalcon_http_cookie_method_entry) { PHP_ME(Phalcon_Http_Cookie, isUsingEncryption, arginfo_phalcon_http_cookie_isusingencryption, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Cookie, restore, arginfo_phalcon_http_cookie_restore, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Cookie, send, arginfo_phalcon_http_cookie_send, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Http_Cookie, setDI, arginfo_phalcon_http_cookie_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Cookie, setDomain, arginfo_phalcon_http_cookie_setdomain, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Cookie, setExpiration, arginfo_phalcon_http_cookie_setexpiration, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Cookie, setHttpOnly, arginfo_phalcon_http_cookie_sethttponly, ZEND_ACC_PUBLIC) diff --git a/ext/phalcon/http/request.zep.c b/ext/phalcon/http/request.zep.c index acd14433f85..e07f212d179 100644 --- a/ext/phalcon/http/request.zep.c +++ b/ext/phalcon/http/request.zep.c @@ -60,9 +60,7 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Http_Request) { - ZEPHIR_REGISTER_CLASS(Phalcon\\Http, Request, phalcon, http_request, phalcon_http_request_method_entry, 0); - - zend_declare_property_null(phalcon_http_request_ce, SL("container"), ZEND_ACC_PRIVATE TSRMLS_CC); + ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Http, Request, phalcon, http_request, phalcon_di_abstractinjectionaware_ce, phalcon_http_request_method_entry, 0); zend_declare_property_null(phalcon_http_request_ce, SL("filterService"), ZEND_ACC_PRIVATE TSRMLS_CC); @@ -88,7 +86,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Http_Request) { phalcon_http_request_ce->create_object = zephir_init_properties_Phalcon_Http_Request; zend_class_implements(phalcon_http_request_ce TSRMLS_CC, 1, phalcon_http_requestinterface_ce); - zend_class_implements(phalcon_http_request_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); return SUCCESS; } @@ -413,10 +410,10 @@ PHP_METHOD(Phalcon_Http_Request, getClientAddress) { if (Z_TYPE_P(&address) != IS_STRING) { RETURN_MM_BOOL(0); } - if (zephir_memnstr_str(&address, SL(","), "phalcon/Http/Request.zep", 180)) { + if (zephir_memnstr_str(&address, SL(","), "phalcon/Http/Request.zep", 178)) { ZEPHIR_INIT_VAR(&_0$$7); zephir_fast_explode_str(&_0$$7, SL(","), &address, LONG_MAX TSRMLS_CC); - zephir_array_fetch_long(&_1$$7, &_0$$7, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 185 TSRMLS_CC); + zephir_array_fetch_long(&_1$$7, &_0$$7, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 183 TSRMLS_CC); RETURN_CTOR(&_1$$7); } RETURN_CCTOR(&address); @@ -473,18 +470,6 @@ PHP_METHOD(Phalcon_Http_Request, getContentType) { } -/** - * Returns the internal dependency injector - */ -PHP_METHOD(Phalcon_Http_Request, getDI) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "container"); - -} - /** * Gets auth info accepted by the browser/client from * $_SERVER["PHP_AUTH_DIGEST"] @@ -531,15 +516,15 @@ PHP_METHOD(Phalcon_Http_Request, getDigestAuth) { RETURN_CTOR(&auth); } if (Z_TYPE_P(&matches) == IS_ARRAY) { - zephir_is_iterable(&matches, 0, "phalcon/Http/Request.zep", 248); + zephir_is_iterable(&matches, 0, "phalcon/Http/Request.zep", 237); if (Z_TYPE_P(&matches) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&matches), _3$$5) { ZEPHIR_INIT_NVAR(&match); ZVAL_COPY(&match, _3$$5); - zephir_array_fetch_long(&_5$$6, &match, 3, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 246 TSRMLS_CC); + zephir_array_fetch_long(&_5$$6, &match, 3, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 235 TSRMLS_CC); ZEPHIR_OBS_NVAR(&_6$$6); - zephir_array_fetch_long(&_6$$6, &match, 1, PH_NOISY, "phalcon/Http/Request.zep", 246 TSRMLS_CC); + zephir_array_fetch_long(&_6$$6, &match, 1, PH_NOISY, "phalcon/Http/Request.zep", 235 TSRMLS_CC); zephir_array_update_zval(&auth, &_6$$6, &_5$$6, PH_COPY | PH_SEPARATE); } ZEND_HASH_FOREACH_END(); } else { @@ -553,9 +538,9 @@ PHP_METHOD(Phalcon_Http_Request, getDigestAuth) { } ZEPHIR_CALL_METHOD(&match, &matches, "current", NULL, 0); zephir_check_call_status(); - zephir_array_fetch_long(&_7$$7, &match, 3, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 246 TSRMLS_CC); + zephir_array_fetch_long(&_7$$7, &match, 3, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 235 TSRMLS_CC); ZEPHIR_OBS_NVAR(&_8$$7); - zephir_array_fetch_long(&_8$$7, &match, 1, PH_NOISY, "phalcon/Http/Request.zep", 246 TSRMLS_CC); + zephir_array_fetch_long(&_8$$7, &match, 1, PH_NOISY, "phalcon/Http/Request.zep", 235 TSRMLS_CC); zephir_array_update_zval(&auth, &_8$$7, &_7$$7, PH_COPY | PH_SEPARATE); ZEPHIR_CALL_METHOD(NULL, &matches, "next", NULL, 0); zephir_check_call_status(); @@ -625,7 +610,7 @@ PHP_METHOD(Phalcon_Http_Request, getFilteredQuery) { ZEPHIR_OBS_VAR(&filters); zephir_read_property(&_0, this_ptr, SL("queryFilters"), PH_NOISY_CC | PH_READONLY); - zephir_array_fetch_string(&_1, &_0, SL("get"), PH_READONLY, "phalcon/Http/Request.zep", 261 TSRMLS_CC); + zephir_array_fetch_string(&_1, &_0, SL("get"), PH_READONLY, "phalcon/Http/Request.zep", 250 TSRMLS_CC); if (!(zephir_array_isset_fetch(&filters, &_1, &name, 0 TSRMLS_CC))) { ZEPHIR_INIT_NVAR(&filters); array_init(&filters); @@ -703,7 +688,7 @@ PHP_METHOD(Phalcon_Http_Request, getFilteredPost) { ZEPHIR_OBS_VAR(&filters); zephir_read_property(&_0, this_ptr, SL("queryFilters"), PH_NOISY_CC | PH_READONLY); - zephir_array_fetch_string(&_1, &_0, SL("post"), PH_READONLY, "phalcon/Http/Request.zep", 281 TSRMLS_CC); + zephir_array_fetch_string(&_1, &_0, SL("post"), PH_READONLY, "phalcon/Http/Request.zep", 270 TSRMLS_CC); if (!(zephir_array_isset_fetch(&filters, &_1, &name, 0 TSRMLS_CC))) { ZEPHIR_INIT_NVAR(&filters); array_init(&filters); @@ -781,7 +766,7 @@ PHP_METHOD(Phalcon_Http_Request, getFilteredPut) { ZEPHIR_OBS_VAR(&filters); zephir_read_property(&_0, this_ptr, SL("queryFilters"), PH_NOISY_CC | PH_READONLY); - zephir_array_fetch_string(&_1, &_0, SL("put"), PH_READONLY, "phalcon/Http/Request.zep", 301 TSRMLS_CC); + zephir_array_fetch_string(&_1, &_0, SL("put"), PH_READONLY, "phalcon/Http/Request.zep", 290 TSRMLS_CC); if (!(zephir_array_isset_fetch(&filters, &_1, &name, 0 TSRMLS_CC))) { ZEPHIR_INIT_NVAR(&filters); array_init(&filters); @@ -941,7 +926,7 @@ PHP_METHOD(Phalcon_Http_Request, getHeaders) { zephir_array_update_string(&contentHeaders, SL("CONTENT_MD5"), &__$true, PH_COPY | PH_SEPARATE); ZEPHIR_CALL_METHOD(&server, this_ptr, "getserverarray", NULL, 348); zephir_check_call_status(); - zephir_is_iterable(&server, 0, "phalcon/Http/Request.zep", 402); + zephir_is_iterable(&server, 0, "phalcon/Http/Request.zep", 391); if (Z_TYPE_P(&server) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&server), _2, _3, _0) { @@ -1165,7 +1150,7 @@ PHP_METHOD(Phalcon_Http_Request, getHttpHost) { zephir_fast_trim(&_4$$5, &host, NULL , ZEPHIR_TRIM_BOTH TSRMLS_CC); ZEPHIR_INIT_NVAR(&host); zephir_fast_strtolower(&host, &_4$$5); - if (zephir_memnstr_str(&host, SL(":"), "phalcon/Http/Request.zep", 476)) { + if (zephir_memnstr_str(&host, SL(":"), "phalcon/Http/Request.zep", 465)) { ZEPHIR_INIT_VAR(&_5$$6); ZVAL_STRING(&_5$$6, "/:[[:digit:]]+$/"); ZEPHIR_INIT_VAR(&_6$$6); @@ -1189,7 +1174,7 @@ PHP_METHOD(Phalcon_Http_Request, getHttpHost) { ZEPHIR_CONCAT_SV(&_13$$7, "Invalid host ", &host); ZEPHIR_CALL_METHOD(NULL, &_12$$7, "__construct", NULL, 349, &_13$$7); zephir_check_call_status(); - zephir_throw_exception_debug(&_12$$7, "phalcon/Http/Request.zep", 486 TSRMLS_CC); + zephir_throw_exception_debug(&_12$$7, "phalcon/Http/Request.zep", 475 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1390,7 +1375,7 @@ PHP_METHOD(Phalcon_Http_Request, getPort) { zephir_check_call_status(); RETURN_MM_LONG(zephir_get_intval(&_1$$3)); } - if (zephir_memnstr_str(&host, SL(":"), "phalcon/Http/Request.zep", 593)) { + if (zephir_memnstr_str(&host, SL(":"), "phalcon/Http/Request.zep", 582)) { ZEPHIR_INIT_VAR(&_3$$4); ZVAL_STRING(&_3$$4, ":"); ZEPHIR_CALL_FUNCTION(&pos, "strrpos", NULL, 170, &host, &_3$$4); @@ -1960,7 +1945,7 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { array_init(&files); ZEPHIR_CPY_WRT(&superFiles, &_FILES); if (zephir_fast_count_int(&superFiles TSRMLS_CC) > 0) { - zephir_is_iterable(&superFiles, 0, "phalcon/Http/Request.zep", 842); + zephir_is_iterable(&superFiles, 0, "phalcon/Http/Request.zep", 831); if (Z_TYPE_P(&superFiles) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&superFiles), _2$$3, _3$$3, _0$$3) { @@ -1973,16 +1958,16 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { ZEPHIR_INIT_NVAR(&input); ZVAL_COPY(&input, _0$$3); ZEPHIR_OBS_NVAR(&_4$$4); - zephir_array_fetch_string(&_4$$4, &input, SL("name"), PH_NOISY, "phalcon/Http/Request.zep", 799 TSRMLS_CC); + zephir_array_fetch_string(&_4$$4, &input, SL("name"), PH_NOISY, "phalcon/Http/Request.zep", 788 TSRMLS_CC); if (Z_TYPE_P(&_4$$4) == IS_ARRAY) { - zephir_array_fetch_string(&_5$$5, &input, SL("name"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 801 TSRMLS_CC); - zephir_array_fetch_string(&_6$$5, &input, SL("type"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 802 TSRMLS_CC); - zephir_array_fetch_string(&_7$$5, &input, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 803 TSRMLS_CC); - zephir_array_fetch_string(&_8$$5, &input, SL("size"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 804 TSRMLS_CC); - zephir_array_fetch_string(&_9$$5, &input, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 805 TSRMLS_CC); + zephir_array_fetch_string(&_5$$5, &input, SL("name"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 790 TSRMLS_CC); + zephir_array_fetch_string(&_6$$5, &input, SL("type"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 791 TSRMLS_CC); + zephir_array_fetch_string(&_7$$5, &input, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 792 TSRMLS_CC); + zephir_array_fetch_string(&_8$$5, &input, SL("size"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 793 TSRMLS_CC); + zephir_array_fetch_string(&_9$$5, &input, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 794 TSRMLS_CC); ZEPHIR_CALL_METHOD(&smoothInput, this_ptr, "smoothfiles", &_10, 353, &_5$$5, &_6$$5, &_7$$5, &_8$$5, &_9$$5, &prefix); zephir_check_call_status(); - zephir_is_iterable(&smoothInput, 0, "phalcon/Http/Request.zep", 832); + zephir_is_iterable(&smoothInput, 0, "phalcon/Http/Request.zep", 821); if (Z_TYPE_P(&smoothInput) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&smoothInput), _11$$5) { @@ -1990,43 +1975,43 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { ZVAL_COPY(&file, _11$$5); _13$$6 = onlySuccessful == 0; if (!(_13$$6)) { - zephir_array_fetch_string(&_14$$6, &file, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 810 TSRMLS_CC); + zephir_array_fetch_string(&_14$$6, &file, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 799 TSRMLS_CC); _13$$6 = ZEPHIR_IS_LONG(&_14$$6, 0); } if (_13$$6) { ZEPHIR_INIT_NVAR(&dataFile); zephir_create_array(&dataFile, 5, 0 TSRMLS_CC); ZEPHIR_OBS_NVAR(&_15$$7); - zephir_array_fetch_string(&_15$$7, &file, SL("name"), PH_NOISY, "phalcon/Http/Request.zep", 812 TSRMLS_CC); + zephir_array_fetch_string(&_15$$7, &file, SL("name"), PH_NOISY, "phalcon/Http/Request.zep", 801 TSRMLS_CC); zephir_array_update_string(&dataFile, SL("name"), &_15$$7, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_15$$7); - zephir_array_fetch_string(&_15$$7, &file, SL("type"), PH_NOISY, "phalcon/Http/Request.zep", 813 TSRMLS_CC); + zephir_array_fetch_string(&_15$$7, &file, SL("type"), PH_NOISY, "phalcon/Http/Request.zep", 802 TSRMLS_CC); zephir_array_update_string(&dataFile, SL("type"), &_15$$7, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_15$$7); - zephir_array_fetch_string(&_15$$7, &file, SL("tmp_name"), PH_NOISY, "phalcon/Http/Request.zep", 814 TSRMLS_CC); + zephir_array_fetch_string(&_15$$7, &file, SL("tmp_name"), PH_NOISY, "phalcon/Http/Request.zep", 803 TSRMLS_CC); zephir_array_update_string(&dataFile, SL("tmp_name"), &_15$$7, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_15$$7); - zephir_array_fetch_string(&_15$$7, &file, SL("size"), PH_NOISY, "phalcon/Http/Request.zep", 815 TSRMLS_CC); + zephir_array_fetch_string(&_15$$7, &file, SL("size"), PH_NOISY, "phalcon/Http/Request.zep", 804 TSRMLS_CC); zephir_array_update_string(&dataFile, SL("size"), &_15$$7, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_15$$7); - zephir_array_fetch_string(&_15$$7, &file, SL("error"), PH_NOISY, "phalcon/Http/Request.zep", 817 TSRMLS_CC); + zephir_array_fetch_string(&_15$$7, &file, SL("error"), PH_NOISY, "phalcon/Http/Request.zep", 806 TSRMLS_CC); zephir_array_update_string(&dataFile, SL("error"), &_15$$7, PH_COPY | PH_SEPARATE); if (namedKeys == 1) { ZEPHIR_INIT_NVAR(&_16$$8); object_init_ex(&_16$$8, phalcon_http_request_file_ce); - zephir_array_fetch_string(&_17$$8, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 823 TSRMLS_CC); + zephir_array_fetch_string(&_17$$8, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 812 TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, &_16$$8, "__construct", &_18, 354, &dataFile, &_17$$8); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&_19$$8); - zephir_array_fetch_string(&_19$$8, &file, SL("key"), PH_NOISY, "phalcon/Http/Request.zep", 820 TSRMLS_CC); + zephir_array_fetch_string(&_19$$8, &file, SL("key"), PH_NOISY, "phalcon/Http/Request.zep", 809 TSRMLS_CC); zephir_array_update_zval(&files, &_19$$8, &_16$$8, PH_COPY | PH_SEPARATE); } else { ZEPHIR_INIT_NVAR(&_20$$9); object_init_ex(&_20$$9, phalcon_http_request_file_ce); - zephir_array_fetch_string(&_21$$9, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 828 TSRMLS_CC); + zephir_array_fetch_string(&_21$$9, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 817 TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, &_20$$9, "__construct", &_18, 354, &dataFile, &_21$$9); zephir_check_call_status(); - zephir_array_append(&files, &_20$$9, PH_SEPARATE, "phalcon/Http/Request.zep", 828); + zephir_array_append(&files, &_20$$9, PH_SEPARATE, "phalcon/Http/Request.zep", 817); } } } ZEND_HASH_FOREACH_END(); @@ -2043,44 +2028,44 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { zephir_check_call_status(); _22$$10 = onlySuccessful == 0; if (!(_22$$10)) { - zephir_array_fetch_string(&_23$$10, &file, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 810 TSRMLS_CC); + zephir_array_fetch_string(&_23$$10, &file, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 799 TSRMLS_CC); _22$$10 = ZEPHIR_IS_LONG(&_23$$10, 0); } if (_22$$10) { ZEPHIR_INIT_NVAR(&_24$$11); zephir_create_array(&_24$$11, 5, 0 TSRMLS_CC); ZEPHIR_OBS_NVAR(&_25$$11); - zephir_array_fetch_string(&_25$$11, &file, SL("name"), PH_NOISY, "phalcon/Http/Request.zep", 812 TSRMLS_CC); + zephir_array_fetch_string(&_25$$11, &file, SL("name"), PH_NOISY, "phalcon/Http/Request.zep", 801 TSRMLS_CC); zephir_array_update_string(&_24$$11, SL("name"), &_25$$11, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_25$$11); - zephir_array_fetch_string(&_25$$11, &file, SL("type"), PH_NOISY, "phalcon/Http/Request.zep", 813 TSRMLS_CC); + zephir_array_fetch_string(&_25$$11, &file, SL("type"), PH_NOISY, "phalcon/Http/Request.zep", 802 TSRMLS_CC); zephir_array_update_string(&_24$$11, SL("type"), &_25$$11, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_25$$11); - zephir_array_fetch_string(&_25$$11, &file, SL("tmp_name"), PH_NOISY, "phalcon/Http/Request.zep", 814 TSRMLS_CC); + zephir_array_fetch_string(&_25$$11, &file, SL("tmp_name"), PH_NOISY, "phalcon/Http/Request.zep", 803 TSRMLS_CC); zephir_array_update_string(&_24$$11, SL("tmp_name"), &_25$$11, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_25$$11); - zephir_array_fetch_string(&_25$$11, &file, SL("size"), PH_NOISY, "phalcon/Http/Request.zep", 815 TSRMLS_CC); + zephir_array_fetch_string(&_25$$11, &file, SL("size"), PH_NOISY, "phalcon/Http/Request.zep", 804 TSRMLS_CC); zephir_array_update_string(&_24$$11, SL("size"), &_25$$11, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_25$$11); - zephir_array_fetch_string(&_25$$11, &file, SL("error"), PH_NOISY, "phalcon/Http/Request.zep", 817 TSRMLS_CC); + zephir_array_fetch_string(&_25$$11, &file, SL("error"), PH_NOISY, "phalcon/Http/Request.zep", 806 TSRMLS_CC); zephir_array_update_string(&_24$$11, SL("error"), &_25$$11, PH_COPY | PH_SEPARATE); ZEPHIR_CPY_WRT(&dataFile, &_24$$11); if (namedKeys == 1) { ZEPHIR_INIT_NVAR(&_26$$12); object_init_ex(&_26$$12, phalcon_http_request_file_ce); - zephir_array_fetch_string(&_27$$12, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 823 TSRMLS_CC); + zephir_array_fetch_string(&_27$$12, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 812 TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, &_26$$12, "__construct", &_18, 354, &dataFile, &_27$$12); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&_28$$12); - zephir_array_fetch_string(&_28$$12, &file, SL("key"), PH_NOISY, "phalcon/Http/Request.zep", 820 TSRMLS_CC); + zephir_array_fetch_string(&_28$$12, &file, SL("key"), PH_NOISY, "phalcon/Http/Request.zep", 809 TSRMLS_CC); zephir_array_update_zval(&files, &_28$$12, &_26$$12, PH_COPY | PH_SEPARATE); } else { ZEPHIR_INIT_NVAR(&_29$$13); object_init_ex(&_29$$13, phalcon_http_request_file_ce); - zephir_array_fetch_string(&_30$$13, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 828 TSRMLS_CC); + zephir_array_fetch_string(&_30$$13, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 817 TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, &_29$$13, "__construct", &_18, 354, &dataFile, &_30$$13); zephir_check_call_status(); - zephir_array_append(&files, &_29$$13, PH_SEPARATE, "phalcon/Http/Request.zep", 828); + zephir_array_append(&files, &_29$$13, PH_SEPARATE, "phalcon/Http/Request.zep", 817); } } ZEPHIR_CALL_METHOD(NULL, &smoothInput, "next", NULL, 0); @@ -2091,7 +2076,7 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { } else { _31$$14 = onlySuccessful == 0; if (!(_31$$14)) { - zephir_array_fetch_string(&_32$$14, &input, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 833 TSRMLS_CC); + zephir_array_fetch_string(&_32$$14, &input, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 822 TSRMLS_CC); _31$$14 = ZEPHIR_IS_LONG(&_32$$14, 0); } if (_31$$14) { @@ -2106,7 +2091,7 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { object_init_ex(&_34$$17, phalcon_http_request_file_ce); ZEPHIR_CALL_METHOD(NULL, &_34$$17, "__construct", &_18, 354, &input, &prefix); zephir_check_call_status(); - zephir_array_append(&files, &_34$$17, PH_SEPARATE, "phalcon/Http/Request.zep", 837); + zephir_array_append(&files, &_34$$17, PH_SEPARATE, "phalcon/Http/Request.zep", 826); } } } @@ -2125,16 +2110,16 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { ZEPHIR_CALL_METHOD(&input, &superFiles, "current", NULL, 0); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&_35$$18); - zephir_array_fetch_string(&_35$$18, &input, SL("name"), PH_NOISY, "phalcon/Http/Request.zep", 799 TSRMLS_CC); + zephir_array_fetch_string(&_35$$18, &input, SL("name"), PH_NOISY, "phalcon/Http/Request.zep", 788 TSRMLS_CC); if (Z_TYPE_P(&_35$$18) == IS_ARRAY) { - zephir_array_fetch_string(&_36$$19, &input, SL("name"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 801 TSRMLS_CC); - zephir_array_fetch_string(&_37$$19, &input, SL("type"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 802 TSRMLS_CC); - zephir_array_fetch_string(&_38$$19, &input, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 803 TSRMLS_CC); - zephir_array_fetch_string(&_39$$19, &input, SL("size"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 804 TSRMLS_CC); - zephir_array_fetch_string(&_40$$19, &input, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 805 TSRMLS_CC); + zephir_array_fetch_string(&_36$$19, &input, SL("name"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 790 TSRMLS_CC); + zephir_array_fetch_string(&_37$$19, &input, SL("type"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 791 TSRMLS_CC); + zephir_array_fetch_string(&_38$$19, &input, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 792 TSRMLS_CC); + zephir_array_fetch_string(&_39$$19, &input, SL("size"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 793 TSRMLS_CC); + zephir_array_fetch_string(&_40$$19, &input, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 794 TSRMLS_CC); ZEPHIR_CALL_METHOD(&smoothInput, this_ptr, "smoothfiles", &_10, 353, &_36$$19, &_37$$19, &_38$$19, &_39$$19, &_40$$19, &prefix); zephir_check_call_status(); - zephir_is_iterable(&smoothInput, 0, "phalcon/Http/Request.zep", 832); + zephir_is_iterable(&smoothInput, 0, "phalcon/Http/Request.zep", 821); if (Z_TYPE_P(&smoothInput) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&smoothInput), _41$$19) { @@ -2142,44 +2127,44 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { ZVAL_COPY(&file, _41$$19); _43$$20 = onlySuccessful == 0; if (!(_43$$20)) { - zephir_array_fetch_string(&_44$$20, &file, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 810 TSRMLS_CC); + zephir_array_fetch_string(&_44$$20, &file, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 799 TSRMLS_CC); _43$$20 = ZEPHIR_IS_LONG(&_44$$20, 0); } if (_43$$20) { ZEPHIR_INIT_NVAR(&_45$$21); zephir_create_array(&_45$$21, 5, 0 TSRMLS_CC); ZEPHIR_OBS_NVAR(&_46$$21); - zephir_array_fetch_string(&_46$$21, &file, SL("name"), PH_NOISY, "phalcon/Http/Request.zep", 812 TSRMLS_CC); + zephir_array_fetch_string(&_46$$21, &file, SL("name"), PH_NOISY, "phalcon/Http/Request.zep", 801 TSRMLS_CC); zephir_array_update_string(&_45$$21, SL("name"), &_46$$21, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_46$$21); - zephir_array_fetch_string(&_46$$21, &file, SL("type"), PH_NOISY, "phalcon/Http/Request.zep", 813 TSRMLS_CC); + zephir_array_fetch_string(&_46$$21, &file, SL("type"), PH_NOISY, "phalcon/Http/Request.zep", 802 TSRMLS_CC); zephir_array_update_string(&_45$$21, SL("type"), &_46$$21, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_46$$21); - zephir_array_fetch_string(&_46$$21, &file, SL("tmp_name"), PH_NOISY, "phalcon/Http/Request.zep", 814 TSRMLS_CC); + zephir_array_fetch_string(&_46$$21, &file, SL("tmp_name"), PH_NOISY, "phalcon/Http/Request.zep", 803 TSRMLS_CC); zephir_array_update_string(&_45$$21, SL("tmp_name"), &_46$$21, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_46$$21); - zephir_array_fetch_string(&_46$$21, &file, SL("size"), PH_NOISY, "phalcon/Http/Request.zep", 815 TSRMLS_CC); + zephir_array_fetch_string(&_46$$21, &file, SL("size"), PH_NOISY, "phalcon/Http/Request.zep", 804 TSRMLS_CC); zephir_array_update_string(&_45$$21, SL("size"), &_46$$21, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_46$$21); - zephir_array_fetch_string(&_46$$21, &file, SL("error"), PH_NOISY, "phalcon/Http/Request.zep", 817 TSRMLS_CC); + zephir_array_fetch_string(&_46$$21, &file, SL("error"), PH_NOISY, "phalcon/Http/Request.zep", 806 TSRMLS_CC); zephir_array_update_string(&_45$$21, SL("error"), &_46$$21, PH_COPY | PH_SEPARATE); ZEPHIR_CPY_WRT(&dataFile, &_45$$21); if (namedKeys == 1) { ZEPHIR_INIT_NVAR(&_47$$22); object_init_ex(&_47$$22, phalcon_http_request_file_ce); - zephir_array_fetch_string(&_48$$22, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 823 TSRMLS_CC); + zephir_array_fetch_string(&_48$$22, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 812 TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, &_47$$22, "__construct", &_18, 354, &dataFile, &_48$$22); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&_49$$22); - zephir_array_fetch_string(&_49$$22, &file, SL("key"), PH_NOISY, "phalcon/Http/Request.zep", 820 TSRMLS_CC); + zephir_array_fetch_string(&_49$$22, &file, SL("key"), PH_NOISY, "phalcon/Http/Request.zep", 809 TSRMLS_CC); zephir_array_update_zval(&files, &_49$$22, &_47$$22, PH_COPY | PH_SEPARATE); } else { ZEPHIR_INIT_NVAR(&_50$$23); object_init_ex(&_50$$23, phalcon_http_request_file_ce); - zephir_array_fetch_string(&_51$$23, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 828 TSRMLS_CC); + zephir_array_fetch_string(&_51$$23, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 817 TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, &_50$$23, "__construct", &_18, 354, &dataFile, &_51$$23); zephir_check_call_status(); - zephir_array_append(&files, &_50$$23, PH_SEPARATE, "phalcon/Http/Request.zep", 828); + zephir_array_append(&files, &_50$$23, PH_SEPARATE, "phalcon/Http/Request.zep", 817); } } } ZEND_HASH_FOREACH_END(); @@ -2196,44 +2181,44 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { zephir_check_call_status(); _52$$24 = onlySuccessful == 0; if (!(_52$$24)) { - zephir_array_fetch_string(&_53$$24, &file, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 810 TSRMLS_CC); + zephir_array_fetch_string(&_53$$24, &file, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 799 TSRMLS_CC); _52$$24 = ZEPHIR_IS_LONG(&_53$$24, 0); } if (_52$$24) { ZEPHIR_INIT_NVAR(&_54$$25); zephir_create_array(&_54$$25, 5, 0 TSRMLS_CC); ZEPHIR_OBS_NVAR(&_55$$25); - zephir_array_fetch_string(&_55$$25, &file, SL("name"), PH_NOISY, "phalcon/Http/Request.zep", 812 TSRMLS_CC); + zephir_array_fetch_string(&_55$$25, &file, SL("name"), PH_NOISY, "phalcon/Http/Request.zep", 801 TSRMLS_CC); zephir_array_update_string(&_54$$25, SL("name"), &_55$$25, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_55$$25); - zephir_array_fetch_string(&_55$$25, &file, SL("type"), PH_NOISY, "phalcon/Http/Request.zep", 813 TSRMLS_CC); + zephir_array_fetch_string(&_55$$25, &file, SL("type"), PH_NOISY, "phalcon/Http/Request.zep", 802 TSRMLS_CC); zephir_array_update_string(&_54$$25, SL("type"), &_55$$25, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_55$$25); - zephir_array_fetch_string(&_55$$25, &file, SL("tmp_name"), PH_NOISY, "phalcon/Http/Request.zep", 814 TSRMLS_CC); + zephir_array_fetch_string(&_55$$25, &file, SL("tmp_name"), PH_NOISY, "phalcon/Http/Request.zep", 803 TSRMLS_CC); zephir_array_update_string(&_54$$25, SL("tmp_name"), &_55$$25, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_55$$25); - zephir_array_fetch_string(&_55$$25, &file, SL("size"), PH_NOISY, "phalcon/Http/Request.zep", 815 TSRMLS_CC); + zephir_array_fetch_string(&_55$$25, &file, SL("size"), PH_NOISY, "phalcon/Http/Request.zep", 804 TSRMLS_CC); zephir_array_update_string(&_54$$25, SL("size"), &_55$$25, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_55$$25); - zephir_array_fetch_string(&_55$$25, &file, SL("error"), PH_NOISY, "phalcon/Http/Request.zep", 817 TSRMLS_CC); + zephir_array_fetch_string(&_55$$25, &file, SL("error"), PH_NOISY, "phalcon/Http/Request.zep", 806 TSRMLS_CC); zephir_array_update_string(&_54$$25, SL("error"), &_55$$25, PH_COPY | PH_SEPARATE); ZEPHIR_CPY_WRT(&dataFile, &_54$$25); if (namedKeys == 1) { ZEPHIR_INIT_NVAR(&_56$$26); object_init_ex(&_56$$26, phalcon_http_request_file_ce); - zephir_array_fetch_string(&_57$$26, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 823 TSRMLS_CC); + zephir_array_fetch_string(&_57$$26, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 812 TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, &_56$$26, "__construct", &_18, 354, &dataFile, &_57$$26); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&_58$$26); - zephir_array_fetch_string(&_58$$26, &file, SL("key"), PH_NOISY, "phalcon/Http/Request.zep", 820 TSRMLS_CC); + zephir_array_fetch_string(&_58$$26, &file, SL("key"), PH_NOISY, "phalcon/Http/Request.zep", 809 TSRMLS_CC); zephir_array_update_zval(&files, &_58$$26, &_56$$26, PH_COPY | PH_SEPARATE); } else { ZEPHIR_INIT_NVAR(&_59$$27); object_init_ex(&_59$$27, phalcon_http_request_file_ce); - zephir_array_fetch_string(&_60$$27, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 828 TSRMLS_CC); + zephir_array_fetch_string(&_60$$27, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 817 TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, &_59$$27, "__construct", &_18, 354, &dataFile, &_60$$27); zephir_check_call_status(); - zephir_array_append(&files, &_59$$27, PH_SEPARATE, "phalcon/Http/Request.zep", 828); + zephir_array_append(&files, &_59$$27, PH_SEPARATE, "phalcon/Http/Request.zep", 817); } } ZEPHIR_CALL_METHOD(NULL, &smoothInput, "next", NULL, 0); @@ -2244,7 +2229,7 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { } else { _61$$28 = onlySuccessful == 0; if (!(_61$$28)) { - zephir_array_fetch_string(&_62$$28, &input, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 833 TSRMLS_CC); + zephir_array_fetch_string(&_62$$28, &input, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 822 TSRMLS_CC); _61$$28 = ZEPHIR_IS_LONG(&_62$$28, 0); } if (_61$$28) { @@ -2259,7 +2244,7 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { object_init_ex(&_64$$31, phalcon_http_request_file_ce); ZEPHIR_CALL_METHOD(NULL, &_64$$31, "__construct", &_18, 354, &input, &prefix); zephir_check_call_status(); - zephir_array_append(&files, &_64$$31, PH_SEPARATE, "phalcon/Http/Request.zep", 837); + zephir_array_append(&files, &_64$$31, PH_SEPARATE, "phalcon/Http/Request.zep", 826); } } } @@ -2399,7 +2384,7 @@ PHP_METHOD(Phalcon_Http_Request, hasFiles) { if (Z_TYPE_P(&files) != IS_ARRAY) { RETURN_MM_LONG(0); } - zephir_is_iterable(&files, 0, "phalcon/Http/Request.zep", 918); + zephir_is_iterable(&files, 0, "phalcon/Http/Request.zep", 907); if (Z_TYPE_P(&files) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&files), _0) { @@ -2832,14 +2817,14 @@ PHP_METHOD(Phalcon_Http_Request, isMethod) { ZEPHIR_CONCAT_SV(&_3$$4, "Invalid HTTP method: ", methods); ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 5, &_3$$4); zephir_check_call_status(); - zephir_throw_exception_debug(&_2$$4, "phalcon/Http/Request.zep", 1029 TSRMLS_CC); + zephir_throw_exception_debug(&_2$$4, "phalcon/Http/Request.zep", 1018 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } RETURN_MM_BOOL(ZEPHIR_IS_EQUAL(methods, &httpMethod)); } if (Z_TYPE_P(methods) == IS_ARRAY) { - zephir_is_iterable(methods, 0, "phalcon/Http/Request.zep", 1042); + zephir_is_iterable(methods, 0, "phalcon/Http/Request.zep", 1031); if (Z_TYPE_P(methods) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(methods), _4$$5) { @@ -2885,7 +2870,7 @@ PHP_METHOD(Phalcon_Http_Request, isMethod) { RETURN_MM_BOOL(0); } if (UNEXPECTED(strict)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_request_exception_ce, "Invalid HTTP method: non-string", "phalcon/Http/Request.zep", 1046); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_request_exception_ce, "Invalid HTTP method: non-string", "phalcon/Http/Request.zep", 1035); return; } RETURN_MM_BOOL(0); @@ -3058,7 +3043,7 @@ PHP_METHOD(Phalcon_Http_Request, isSoap) { if (ZEPHIR_IS_EMPTY(&contentType)) { RETURN_MM_BOOL(0); } - RETURN_MM_BOOL(zephir_memnstr_str(&contentType, SL("application/soap+xml"), "phalcon/Http/Request.zep", 1131)); + RETURN_MM_BOOL(zephir_memnstr_str(&contentType, SL("application/soap+xml"), "phalcon/Http/Request.zep", 1120)); } @@ -3114,24 +3099,6 @@ PHP_METHOD(Phalcon_Http_Request, isValidHttpMethod) { } -/** - * Sets the dependency injector - */ -PHP_METHOD(Phalcon_Http_Request, setDI) { - - zval *container, container_sub; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&container_sub); - - zephir_fetch_params_without_memory_grow(1, 0, &container); - - - - zephir_update_property_zval(this_ptr, SL("container"), container); - -} - /** * Sets automatic sanitizers/filters for a particular field and for * particular methods @@ -3199,13 +3166,13 @@ PHP_METHOD(Phalcon_Http_Request, setParameterFilters) { ZEPHIR_CONCAT_SVS(&_1$$3, "Filters have not been defined for '", &name, "'"); ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 5, &_1$$3); zephir_check_call_status(); - zephir_throw_exception_debug(&_0$$3, "phalcon/Http/Request.zep", 1184 TSRMLS_CC); + zephir_throw_exception_debug(&_0$$3, "phalcon/Http/Request.zep", 1165 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } ZEPHIR_CALL_METHOD(&filterService, this_ptr, "getfilterservice", NULL, 358); zephir_check_call_status(); - zephir_is_iterable(&filters, 0, "phalcon/Http/Request.zep", 1197); + zephir_is_iterable(&filters, 0, "phalcon/Http/Request.zep", 1178); if (Z_TYPE_P(&filters) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&filters), _2) { @@ -3220,7 +3187,7 @@ PHP_METHOD(Phalcon_Http_Request, setParameterFilters) { ZEPHIR_CONCAT_SVS(&_7$$5, "Sanitizer '", &sanitizer, "' does not exist in the filter locator"); ZEPHIR_CALL_METHOD(NULL, &_6$$5, "__construct", NULL, 5, &_7$$5); zephir_check_call_status(); - zephir_throw_exception_debug(&_6$$5, "phalcon/Http/Request.zep", 1193 TSRMLS_CC); + zephir_throw_exception_debug(&_6$$5, "phalcon/Http/Request.zep", 1174 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3245,7 +3212,7 @@ PHP_METHOD(Phalcon_Http_Request, setParameterFilters) { ZEPHIR_CONCAT_SVS(&_11$$7, "Sanitizer '", &sanitizer, "' does not exist in the filter locator"); ZEPHIR_CALL_METHOD(NULL, &_10$$7, "__construct", NULL, 5, &_11$$7); zephir_check_call_status(); - zephir_throw_exception_debug(&_10$$7, "phalcon/Http/Request.zep", 1193 TSRMLS_CC); + zephir_throw_exception_debug(&_10$$7, "phalcon/Http/Request.zep", 1174 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3269,7 +3236,7 @@ PHP_METHOD(Phalcon_Http_Request, setParameterFilters) { } else { ZEPHIR_CPY_WRT(&localScope, &scope); } - zephir_is_iterable(&localScope, 0, "phalcon/Http/Request.zep", 1207); + zephir_is_iterable(&localScope, 0, "phalcon/Http/Request.zep", 1188); if (Z_TYPE_P(&localScope) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&localScope), _13) { @@ -3372,7 +3339,7 @@ PHP_METHOD(Phalcon_Http_Request, getBestQuality) { quality = 0.0; ZEPHIR_INIT_VAR(&selectedName); ZVAL_STRING(&selectedName, ""); - zephir_is_iterable(&qualityParts, 0, "phalcon/Http/Request.zep", 1250); + zephir_is_iterable(&qualityParts, 0, "phalcon/Http/Request.zep", 1231); if (Z_TYPE_P(&qualityParts) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&qualityParts), _0) { @@ -3380,18 +3347,18 @@ PHP_METHOD(Phalcon_Http_Request, getBestQuality) { ZVAL_COPY(&accept, _0); if (i == 0) { ZEPHIR_OBS_NVAR(&_2$$4); - zephir_array_fetch_string(&_2$$4, &accept, SL("quality"), PH_NOISY, "phalcon/Http/Request.zep", 1236 TSRMLS_CC); + zephir_array_fetch_string(&_2$$4, &accept, SL("quality"), PH_NOISY, "phalcon/Http/Request.zep", 1217 TSRMLS_CC); quality = zephir_get_doubleval(&_2$$4); ZEPHIR_OBS_NVAR(&selectedName); - zephir_array_fetch(&selectedName, &accept, &name, PH_NOISY, "phalcon/Http/Request.zep", 1237 TSRMLS_CC); + zephir_array_fetch(&selectedName, &accept, &name, PH_NOISY, "phalcon/Http/Request.zep", 1218 TSRMLS_CC); } else { ZEPHIR_OBS_NVAR(&_3$$5); - zephir_array_fetch_string(&_3$$5, &accept, SL("quality"), PH_NOISY, "phalcon/Http/Request.zep", 1239 TSRMLS_CC); + zephir_array_fetch_string(&_3$$5, &accept, SL("quality"), PH_NOISY, "phalcon/Http/Request.zep", 1220 TSRMLS_CC); acceptQuality = zephir_get_doubleval(&_3$$5); if (acceptQuality > quality) { quality = acceptQuality; ZEPHIR_OBS_NVAR(&selectedName); - zephir_array_fetch(&selectedName, &accept, &name, PH_NOISY, "phalcon/Http/Request.zep", 1243 TSRMLS_CC); + zephir_array_fetch(&selectedName, &accept, &name, PH_NOISY, "phalcon/Http/Request.zep", 1224 TSRMLS_CC); } } i++; @@ -3409,18 +3376,18 @@ PHP_METHOD(Phalcon_Http_Request, getBestQuality) { zephir_check_call_status(); if (i == 0) { ZEPHIR_OBS_NVAR(&_4$$8); - zephir_array_fetch_string(&_4$$8, &accept, SL("quality"), PH_NOISY, "phalcon/Http/Request.zep", 1236 TSRMLS_CC); + zephir_array_fetch_string(&_4$$8, &accept, SL("quality"), PH_NOISY, "phalcon/Http/Request.zep", 1217 TSRMLS_CC); quality = zephir_get_doubleval(&_4$$8); ZEPHIR_OBS_NVAR(&selectedName); - zephir_array_fetch(&selectedName, &accept, &name, PH_NOISY, "phalcon/Http/Request.zep", 1237 TSRMLS_CC); + zephir_array_fetch(&selectedName, &accept, &name, PH_NOISY, "phalcon/Http/Request.zep", 1218 TSRMLS_CC); } else { ZEPHIR_OBS_NVAR(&_5$$9); - zephir_array_fetch_string(&_5$$9, &accept, SL("quality"), PH_NOISY, "phalcon/Http/Request.zep", 1239 TSRMLS_CC); + zephir_array_fetch_string(&_5$$9, &accept, SL("quality"), PH_NOISY, "phalcon/Http/Request.zep", 1220 TSRMLS_CC); acceptQuality = zephir_get_doubleval(&_5$$9); if (acceptQuality > quality) { quality = acceptQuality; ZEPHIR_OBS_NVAR(&selectedName); - zephir_array_fetch(&selectedName, &accept, &name, PH_NOISY, "phalcon/Http/Request.zep", 1243 TSRMLS_CC); + zephir_array_fetch(&selectedName, &accept, &name, PH_NOISY, "phalcon/Http/Request.zep", 1224 TSRMLS_CC); } } i++; @@ -3558,7 +3525,7 @@ PHP_METHOD(Phalcon_Http_Request, hasFileHelper) { if (Z_TYPE_P(data) != IS_ARRAY) { RETURN_MM_LONG(1); } - zephir_is_iterable(data, 0, "phalcon/Http/Request.zep", 1305); + zephir_is_iterable(data, 0, "phalcon/Http/Request.zep", 1286); if (Z_TYPE_P(data) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(data), _0) { @@ -3727,7 +3694,7 @@ PHP_METHOD(Phalcon_Http_Request, getQualityHeader) { ZVAL_LONG(&_3, 1); ZEPHIR_CALL_FUNCTION(&parts, "preg_split", NULL, 92, &_1, &_0, &_2, &_3); zephir_check_call_status(); - zephir_is_iterable(&parts, 0, "phalcon/Http/Request.zep", 1345); + zephir_is_iterable(&parts, 0, "phalcon/Http/Request.zep", 1326); if (Z_TYPE_P(&parts) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&parts), _4) { @@ -3743,7 +3710,7 @@ PHP_METHOD(Phalcon_Http_Request, getQualityHeader) { ZVAL_LONG(&_9$$3, 1); ZEPHIR_CALL_FUNCTION(&_10$$3, "preg_split", NULL, 92, &_7$$3, &_6$$3, &_8$$3, &_9$$3); zephir_check_call_status(); - zephir_is_iterable(&_10$$3, 0, "phalcon/Http/Request.zep", 1342); + zephir_is_iterable(&_10$$3, 0, "phalcon/Http/Request.zep", 1323); if (Z_TYPE_P(&_10$$3) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_10$$3), _11$$3) { @@ -3756,17 +3723,17 @@ PHP_METHOD(Phalcon_Http_Request, getQualityHeader) { if (!ZEPHIR_IS_FALSE_IDENTICAL(&_14$$4)) { ZEPHIR_INIT_NVAR(&split); zephir_fast_explode_str(&split, SL("="), &headerPart, 2 TSRMLS_CC); - zephir_array_fetch_long(&_15$$5, &split, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1331 TSRMLS_CC); + zephir_array_fetch_long(&_15$$5, &split, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1312 TSRMLS_CC); if (ZEPHIR_IS_STRING_IDENTICAL(&_15$$5, "q")) { ZEPHIR_OBS_NVAR(&_16$$6); - zephir_array_fetch_long(&_16$$6, &split, 1, PH_NOISY, "phalcon/Http/Request.zep", 1332 TSRMLS_CC); + zephir_array_fetch_long(&_16$$6, &split, 1, PH_NOISY, "phalcon/Http/Request.zep", 1313 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_17$$6); ZVAL_DOUBLE(&_17$$6, zephir_get_doubleval(&_16$$6)); zephir_array_update_string(&headerParts, SL("quality"), &_17$$6, PH_COPY | PH_SEPARATE); } else { - zephir_array_fetch_long(&_18$$7, &split, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1334 TSRMLS_CC); + zephir_array_fetch_long(&_18$$7, &split, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1315 TSRMLS_CC); ZEPHIR_OBS_NVAR(&_19$$7); - zephir_array_fetch_long(&_19$$7, &split, 0, PH_NOISY, "phalcon/Http/Request.zep", 1334 TSRMLS_CC); + zephir_array_fetch_long(&_19$$7, &split, 0, PH_NOISY, "phalcon/Http/Request.zep", 1315 TSRMLS_CC); zephir_array_update_zval(&headerParts, &_19$$7, &_18$$7, PH_COPY | PH_SEPARATE); } } else { @@ -3794,17 +3761,17 @@ PHP_METHOD(Phalcon_Http_Request, getQualityHeader) { if (!ZEPHIR_IS_FALSE_IDENTICAL(&_22$$9)) { ZEPHIR_INIT_NVAR(&split); zephir_fast_explode_str(&split, SL("="), &headerPart, 2 TSRMLS_CC); - zephir_array_fetch_long(&_23$$10, &split, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1331 TSRMLS_CC); + zephir_array_fetch_long(&_23$$10, &split, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1312 TSRMLS_CC); if (ZEPHIR_IS_STRING_IDENTICAL(&_23$$10, "q")) { ZEPHIR_OBS_NVAR(&_24$$11); - zephir_array_fetch_long(&_24$$11, &split, 1, PH_NOISY, "phalcon/Http/Request.zep", 1332 TSRMLS_CC); + zephir_array_fetch_long(&_24$$11, &split, 1, PH_NOISY, "phalcon/Http/Request.zep", 1313 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_25$$11); ZVAL_DOUBLE(&_25$$11, zephir_get_doubleval(&_24$$11)); zephir_array_update_string(&headerParts, SL("quality"), &_25$$11, PH_COPY | PH_SEPARATE); } else { - zephir_array_fetch_long(&_26$$12, &split, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1334 TSRMLS_CC); + zephir_array_fetch_long(&_26$$12, &split, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1315 TSRMLS_CC); ZEPHIR_OBS_NVAR(&_27$$12); - zephir_array_fetch_long(&_27$$12, &split, 0, PH_NOISY, "phalcon/Http/Request.zep", 1334 TSRMLS_CC); + zephir_array_fetch_long(&_27$$12, &split, 0, PH_NOISY, "phalcon/Http/Request.zep", 1315 TSRMLS_CC); zephir_array_update_zval(&headerParts, &_27$$12, &_26$$12, PH_COPY | PH_SEPARATE); } } else { @@ -3818,7 +3785,7 @@ PHP_METHOD(Phalcon_Http_Request, getQualityHeader) { } } ZEPHIR_INIT_NVAR(&headerPart); - zephir_array_append(&returnedParts, &headerParts, PH_SEPARATE, "phalcon/Http/Request.zep", 1342); + zephir_array_append(&returnedParts, &headerParts, PH_SEPARATE, "phalcon/Http/Request.zep", 1323); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &parts, "rewind", NULL, 0); @@ -3841,7 +3808,7 @@ PHP_METHOD(Phalcon_Http_Request, getQualityHeader) { ZVAL_LONG(&_32$$14, 1); ZEPHIR_CALL_FUNCTION(&_33$$14, "preg_split", NULL, 92, &_30$$14, &_29$$14, &_31$$14, &_32$$14); zephir_check_call_status(); - zephir_is_iterable(&_33$$14, 0, "phalcon/Http/Request.zep", 1342); + zephir_is_iterable(&_33$$14, 0, "phalcon/Http/Request.zep", 1323); if (Z_TYPE_P(&_33$$14) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_33$$14), _34$$14) { @@ -3854,17 +3821,17 @@ PHP_METHOD(Phalcon_Http_Request, getQualityHeader) { if (!ZEPHIR_IS_FALSE_IDENTICAL(&_37$$15)) { ZEPHIR_INIT_NVAR(&split); zephir_fast_explode_str(&split, SL("="), &headerPart, 2 TSRMLS_CC); - zephir_array_fetch_long(&_38$$16, &split, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1331 TSRMLS_CC); + zephir_array_fetch_long(&_38$$16, &split, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1312 TSRMLS_CC); if (ZEPHIR_IS_STRING_IDENTICAL(&_38$$16, "q")) { ZEPHIR_OBS_NVAR(&_39$$17); - zephir_array_fetch_long(&_39$$17, &split, 1, PH_NOISY, "phalcon/Http/Request.zep", 1332 TSRMLS_CC); + zephir_array_fetch_long(&_39$$17, &split, 1, PH_NOISY, "phalcon/Http/Request.zep", 1313 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_40$$17); ZVAL_DOUBLE(&_40$$17, zephir_get_doubleval(&_39$$17)); zephir_array_update_string(&headerParts, SL("quality"), &_40$$17, PH_COPY | PH_SEPARATE); } else { - zephir_array_fetch_long(&_41$$18, &split, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1334 TSRMLS_CC); + zephir_array_fetch_long(&_41$$18, &split, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1315 TSRMLS_CC); ZEPHIR_OBS_NVAR(&_42$$18); - zephir_array_fetch_long(&_42$$18, &split, 0, PH_NOISY, "phalcon/Http/Request.zep", 1334 TSRMLS_CC); + zephir_array_fetch_long(&_42$$18, &split, 0, PH_NOISY, "phalcon/Http/Request.zep", 1315 TSRMLS_CC); zephir_array_update_zval(&headerParts, &_42$$18, &_41$$18, PH_COPY | PH_SEPARATE); } } else { @@ -3892,17 +3859,17 @@ PHP_METHOD(Phalcon_Http_Request, getQualityHeader) { if (!ZEPHIR_IS_FALSE_IDENTICAL(&_45$$20)) { ZEPHIR_INIT_NVAR(&split); zephir_fast_explode_str(&split, SL("="), &headerPart, 2 TSRMLS_CC); - zephir_array_fetch_long(&_46$$21, &split, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1331 TSRMLS_CC); + zephir_array_fetch_long(&_46$$21, &split, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1312 TSRMLS_CC); if (ZEPHIR_IS_STRING_IDENTICAL(&_46$$21, "q")) { ZEPHIR_OBS_NVAR(&_47$$22); - zephir_array_fetch_long(&_47$$22, &split, 1, PH_NOISY, "phalcon/Http/Request.zep", 1332 TSRMLS_CC); + zephir_array_fetch_long(&_47$$22, &split, 1, PH_NOISY, "phalcon/Http/Request.zep", 1313 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_48$$22); ZVAL_DOUBLE(&_48$$22, zephir_get_doubleval(&_47$$22)); zephir_array_update_string(&headerParts, SL("quality"), &_48$$22, PH_COPY | PH_SEPARATE); } else { - zephir_array_fetch_long(&_49$$23, &split, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1334 TSRMLS_CC); + zephir_array_fetch_long(&_49$$23, &split, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1315 TSRMLS_CC); ZEPHIR_OBS_NVAR(&_50$$23); - zephir_array_fetch_long(&_50$$23, &split, 0, PH_NOISY, "phalcon/Http/Request.zep", 1334 TSRMLS_CC); + zephir_array_fetch_long(&_50$$23, &split, 0, PH_NOISY, "phalcon/Http/Request.zep", 1315 TSRMLS_CC); zephir_array_update_zval(&headerParts, &_50$$23, &_49$$23, PH_COPY | PH_SEPARATE); } } else { @@ -3916,7 +3883,7 @@ PHP_METHOD(Phalcon_Http_Request, getQualityHeader) { } } ZEPHIR_INIT_NVAR(&headerPart); - zephir_array_append(&returnedParts, &headerParts, PH_SEPARATE, "phalcon/Http/Request.zep", 1342); + zephir_array_append(&returnedParts, &headerParts, PH_SEPARATE, "phalcon/Http/Request.zep", 1323); ZEPHIR_CALL_METHOD(NULL, &parts, "next", NULL, 0); zephir_check_call_status(); } @@ -4099,9 +4066,9 @@ PHP_METHOD(Phalcon_Http_Request, resolveAuthorizationHeaders) { ZEPHIR_INIT_VAR(&exploded); zephir_fast_explode_str(&exploded, SL(":"), &_28$$12, 2 TSRMLS_CC); if (zephir_fast_count_int(&exploded TSRMLS_CC) == 2) { - zephir_array_fetch_long(&_29$$13, &exploded, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1404 TSRMLS_CC); + zephir_array_fetch_long(&_29$$13, &exploded, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1385 TSRMLS_CC); zephir_array_update_string(&headers, SL("Php-Auth-User"), &_29$$13, PH_COPY | PH_SEPARATE); - zephir_array_fetch_long(&_30$$13, &exploded, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1405 TSRMLS_CC); + zephir_array_fetch_long(&_30$$13, &exploded, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1386 TSRMLS_CC); zephir_array_update_string(&headers, SL("Php-Auth-Pw"), &_30$$13, PH_COPY | PH_SEPARATE); } } else if (_23$$11) { @@ -4114,8 +4081,8 @@ PHP_METHOD(Phalcon_Http_Request, resolveAuthorizationHeaders) { if (!(zephir_array_isset_string(&headers, SL("Authorization")))) { ZEPHIR_OBS_VAR(&digest); if (zephir_array_isset_string(&headers, SL("Php-Auth-User"))) { - zephir_array_fetch_string(&_31$$17, &headers, SL("Php-Auth-User"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1417 TSRMLS_CC); - zephir_array_fetch_string(&_32$$17, &headers, SL("Php-Auth-Pw"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1417 TSRMLS_CC); + zephir_array_fetch_string(&_31$$17, &headers, SL("Php-Auth-User"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1398 TSRMLS_CC); + zephir_array_fetch_string(&_32$$17, &headers, SL("Php-Auth-Pw"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1398 TSRMLS_CC); ZEPHIR_INIT_VAR(&_33$$17); ZEPHIR_CONCAT_VSV(&_33$$17, &_31$$17, ":", &_32$$17); ZEPHIR_CALL_FUNCTION(&_34$$17, "base64_encode", NULL, 179, &_33$$17); @@ -4208,7 +4175,7 @@ PHP_METHOD(Phalcon_Http_Request, smoothFiles) { ZEPHIR_INIT_VAR(&files); array_init(&files); - zephir_is_iterable(&names, 0, "phalcon/Http/Request.zep", 1481); + zephir_is_iterable(&names, 0, "phalcon/Http/Request.zep", 1462); if (Z_TYPE_P(&names) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&names), _2, _3, _0) { @@ -4227,35 +4194,35 @@ PHP_METHOD(Phalcon_Http_Request, smoothFiles) { zephir_create_array(&_4$$4, 6, 0 TSRMLS_CC); zephir_array_update_string(&_4$$4, SL("name"), &name, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_5$$4); - zephir_array_fetch(&_5$$4, &types, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1457 TSRMLS_CC); + zephir_array_fetch(&_5$$4, &types, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1438 TSRMLS_CC); zephir_array_update_string(&_4$$4, SL("type"), &_5$$4, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_5$$4); - zephir_array_fetch(&_5$$4, &tmp_names, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1458 TSRMLS_CC); + zephir_array_fetch(&_5$$4, &tmp_names, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1439 TSRMLS_CC); zephir_array_update_string(&_4$$4, SL("tmp_name"), &_5$$4, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_5$$4); - zephir_array_fetch(&_5$$4, &sizes, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1459 TSRMLS_CC); + zephir_array_fetch(&_5$$4, &sizes, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1440 TSRMLS_CC); zephir_array_update_string(&_4$$4, SL("size"), &_5$$4, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_5$$4); - zephir_array_fetch(&_5$$4, &errors, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1460 TSRMLS_CC); + zephir_array_fetch(&_5$$4, &errors, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1441 TSRMLS_CC); zephir_array_update_string(&_4$$4, SL("error"), &_5$$4, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4$$4, SL("key"), &p, PH_COPY | PH_SEPARATE); - zephir_array_append(&files, &_4$$4, PH_SEPARATE, "phalcon/Http/Request.zep", 1462); + zephir_array_append(&files, &_4$$4, PH_SEPARATE, "phalcon/Http/Request.zep", 1443); } if (Z_TYPE_P(&name) == IS_ARRAY) { - zephir_array_fetch(&_6$$5, &names, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1467 TSRMLS_CC); - zephir_array_fetch(&_7$$5, &types, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1468 TSRMLS_CC); - zephir_array_fetch(&_8$$5, &tmp_names, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1469 TSRMLS_CC); - zephir_array_fetch(&_9$$5, &sizes, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1470 TSRMLS_CC); - zephir_array_fetch(&_10$$5, &errors, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1471 TSRMLS_CC); + zephir_array_fetch(&_6$$5, &names, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1448 TSRMLS_CC); + zephir_array_fetch(&_7$$5, &types, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1449 TSRMLS_CC); + zephir_array_fetch(&_8$$5, &tmp_names, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1450 TSRMLS_CC); + zephir_array_fetch(&_9$$5, &sizes, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1451 TSRMLS_CC); + zephir_array_fetch(&_10$$5, &errors, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1452 TSRMLS_CC); ZEPHIR_CALL_METHOD(&parentFiles, this_ptr, "smoothfiles", &_11, 353, &_6$$5, &_7$$5, &_8$$5, &_9$$5, &_10$$5, &p); zephir_check_call_status(); - zephir_is_iterable(&parentFiles, 0, "phalcon/Http/Request.zep", 1478); + zephir_is_iterable(&parentFiles, 0, "phalcon/Http/Request.zep", 1459); if (Z_TYPE_P(&parentFiles) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&parentFiles), _12$$5) { ZEPHIR_INIT_NVAR(&file); ZVAL_COPY(&file, _12$$5); - zephir_array_append(&files, &file, PH_SEPARATE, "phalcon/Http/Request.zep", 1476); + zephir_array_append(&files, &file, PH_SEPARATE, "phalcon/Http/Request.zep", 1457); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &parentFiles, "rewind", NULL, 0); @@ -4268,7 +4235,7 @@ PHP_METHOD(Phalcon_Http_Request, smoothFiles) { } ZEPHIR_CALL_METHOD(&file, &parentFiles, "current", NULL, 0); zephir_check_call_status(); - zephir_array_append(&files, &file, PH_SEPARATE, "phalcon/Http/Request.zep", 1476); + zephir_array_append(&files, &file, PH_SEPARATE, "phalcon/Http/Request.zep", 1457); ZEPHIR_CALL_METHOD(NULL, &parentFiles, "next", NULL, 0); zephir_check_call_status(); } @@ -4296,35 +4263,35 @@ PHP_METHOD(Phalcon_Http_Request, smoothFiles) { zephir_create_array(&_14$$9, 6, 0 TSRMLS_CC); zephir_array_update_string(&_14$$9, SL("name"), &name, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_15$$9); - zephir_array_fetch(&_15$$9, &types, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1457 TSRMLS_CC); + zephir_array_fetch(&_15$$9, &types, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1438 TSRMLS_CC); zephir_array_update_string(&_14$$9, SL("type"), &_15$$9, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_15$$9); - zephir_array_fetch(&_15$$9, &tmp_names, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1458 TSRMLS_CC); + zephir_array_fetch(&_15$$9, &tmp_names, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1439 TSRMLS_CC); zephir_array_update_string(&_14$$9, SL("tmp_name"), &_15$$9, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_15$$9); - zephir_array_fetch(&_15$$9, &sizes, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1459 TSRMLS_CC); + zephir_array_fetch(&_15$$9, &sizes, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1440 TSRMLS_CC); zephir_array_update_string(&_14$$9, SL("size"), &_15$$9, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_15$$9); - zephir_array_fetch(&_15$$9, &errors, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1460 TSRMLS_CC); + zephir_array_fetch(&_15$$9, &errors, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1441 TSRMLS_CC); zephir_array_update_string(&_14$$9, SL("error"), &_15$$9, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_14$$9, SL("key"), &p, PH_COPY | PH_SEPARATE); - zephir_array_append(&files, &_14$$9, PH_SEPARATE, "phalcon/Http/Request.zep", 1462); + zephir_array_append(&files, &_14$$9, PH_SEPARATE, "phalcon/Http/Request.zep", 1443); } if (Z_TYPE_P(&name) == IS_ARRAY) { - zephir_array_fetch(&_16$$10, &names, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1467 TSRMLS_CC); - zephir_array_fetch(&_17$$10, &types, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1468 TSRMLS_CC); - zephir_array_fetch(&_18$$10, &tmp_names, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1469 TSRMLS_CC); - zephir_array_fetch(&_19$$10, &sizes, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1470 TSRMLS_CC); - zephir_array_fetch(&_20$$10, &errors, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1471 TSRMLS_CC); + zephir_array_fetch(&_16$$10, &names, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1448 TSRMLS_CC); + zephir_array_fetch(&_17$$10, &types, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1449 TSRMLS_CC); + zephir_array_fetch(&_18$$10, &tmp_names, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1450 TSRMLS_CC); + zephir_array_fetch(&_19$$10, &sizes, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1451 TSRMLS_CC); + zephir_array_fetch(&_20$$10, &errors, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1452 TSRMLS_CC); ZEPHIR_CALL_METHOD(&parentFiles, this_ptr, "smoothfiles", &_11, 353, &_16$$10, &_17$$10, &_18$$10, &_19$$10, &_20$$10, &p); zephir_check_call_status(); - zephir_is_iterable(&parentFiles, 0, "phalcon/Http/Request.zep", 1478); + zephir_is_iterable(&parentFiles, 0, "phalcon/Http/Request.zep", 1459); if (Z_TYPE_P(&parentFiles) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&parentFiles), _21$$10) { ZEPHIR_INIT_NVAR(&file); ZVAL_COPY(&file, _21$$10); - zephir_array_append(&files, &file, PH_SEPARATE, "phalcon/Http/Request.zep", 1476); + zephir_array_append(&files, &file, PH_SEPARATE, "phalcon/Http/Request.zep", 1457); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &parentFiles, "rewind", NULL, 0); @@ -4337,7 +4304,7 @@ PHP_METHOD(Phalcon_Http_Request, smoothFiles) { } ZEPHIR_CALL_METHOD(&file, &parentFiles, "current", NULL, 0); zephir_check_call_status(); - zephir_array_append(&files, &file, PH_SEPARATE, "phalcon/Http/Request.zep", 1476); + zephir_array_append(&files, &file, PH_SEPARATE, "phalcon/Http/Request.zep", 1457); ZEPHIR_CALL_METHOD(NULL, &parentFiles, "next", NULL, 0); zephir_check_call_status(); } @@ -4391,7 +4358,7 @@ PHP_METHOD(Phalcon_Http_Request, getFilterService) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 5, &_3$$4); zephir_check_call_status(); - zephir_throw_exception_debug(&_2$$4, "phalcon/Http/Request.zep", 1499 TSRMLS_CC); + zephir_throw_exception_debug(&_2$$4, "phalcon/Http/Request.zep", 1480 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } diff --git a/ext/phalcon/http/request.zep.h b/ext/phalcon/http/request.zep.h index d0a1754fdbb..5260ce8d9f4 100644 --- a/ext/phalcon/http/request.zep.h +++ b/ext/phalcon/http/request.zep.h @@ -14,7 +14,6 @@ PHP_METHOD(Phalcon_Http_Request, getBestLanguage); PHP_METHOD(Phalcon_Http_Request, getClientAddress); PHP_METHOD(Phalcon_Http_Request, getClientCharsets); PHP_METHOD(Phalcon_Http_Request, getContentType); -PHP_METHOD(Phalcon_Http_Request, getDI); PHP_METHOD(Phalcon_Http_Request, getDigestAuth); PHP_METHOD(Phalcon_Http_Request, getFilteredQuery); PHP_METHOD(Phalcon_Http_Request, getFilteredPost); @@ -61,7 +60,6 @@ PHP_METHOD(Phalcon_Http_Request, isStrictHostCheck); PHP_METHOD(Phalcon_Http_Request, isSoap); PHP_METHOD(Phalcon_Http_Request, isTrace); PHP_METHOD(Phalcon_Http_Request, isValidHttpMethod); -PHP_METHOD(Phalcon_Http_Request, setDI); PHP_METHOD(Phalcon_Http_Request, setParameterFilters); PHP_METHOD(Phalcon_Http_Request, setStrictHostCheck); PHP_METHOD(Phalcon_Http_Request, getBestQuality); @@ -166,13 +164,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_request_getcontentt #endif ZEND_END_ARG_INFO() -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_http_request_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_request_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) -#endif -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_request_getdigestauth, 0, 0, IS_ARRAY, 0) #else @@ -637,10 +628,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_request_isvalidhttp #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_http_request_setdi, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_http_request_setparameterfilters, 0, 1, Phalcon\\Http\\RequestInterface, 0) #else @@ -781,7 +768,6 @@ ZEPHIR_INIT_FUNCS(phalcon_http_request_method_entry) { PHP_ME(Phalcon_Http_Request, getClientAddress, arginfo_phalcon_http_request_getclientaddress, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Request, getClientCharsets, arginfo_phalcon_http_request_getclientcharsets, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Request, getContentType, arginfo_phalcon_http_request_getcontenttype, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Http_Request, getDI, arginfo_phalcon_http_request_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Request, getDigestAuth, arginfo_phalcon_http_request_getdigestauth, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Request, getFilteredQuery, arginfo_phalcon_http_request_getfilteredquery, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Request, getFilteredPost, arginfo_phalcon_http_request_getfilteredpost, ZEND_ACC_PUBLIC) @@ -828,7 +814,6 @@ ZEPHIR_INIT_FUNCS(phalcon_http_request_method_entry) { PHP_ME(Phalcon_Http_Request, isSoap, arginfo_phalcon_http_request_issoap, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Request, isTrace, arginfo_phalcon_http_request_istrace, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Request, isValidHttpMethod, arginfo_phalcon_http_request_isvalidhttpmethod, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Http_Request, setDI, arginfo_phalcon_http_request_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Request, setParameterFilters, arginfo_phalcon_http_request_setparameterfilters, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Request, setStrictHostCheck, arginfo_phalcon_http_request_setstricthostcheck, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Request, getBestQuality, arginfo_phalcon_http_request_getbestquality, ZEND_ACC_FINAL|ZEND_ACC_PROTECTED) diff --git a/ext/phalcon/http/response.zep.c b/ext/phalcon/http/response.zep.c index 3a46e08cb98..9c6fdaa0ccb 100644 --- a/ext/phalcon/http/response.zep.c +++ b/ext/phalcon/http/response.zep.c @@ -21,7 +21,6 @@ #include "kernel/string.h" #include "ext/date/php_date.h" #include "ext/spl/spl_exceptions.h" -#include "kernel/file.h" #include "kernel/array.h" @@ -211,7 +210,7 @@ PHP_METHOD(Phalcon_Http_Response, getDI) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 5, &_3$$4); zephir_check_call_status(); - zephir_throw_exception_debug(&_2$$4, "phalcon/Http/Response.zep", 120 TSRMLS_CC); + zephir_throw_exception_debug(&_2$$4, "phalcon/Http/Response.zep", 121 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -594,7 +593,7 @@ PHP_METHOD(Phalcon_Http_Response, send) { zephir_read_property(&_0, this_ptr, SL("sent"), PH_NOISY_CC | PH_READONLY); if (UNEXPECTED(zephir_is_true(&_0))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_response_exception_ce, "Response was already sent", "phalcon/Http/Response.zep", 322); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_response_exception_ce, "Response was already sent", "phalcon/Http/Response.zep", 323); return; } ZEPHIR_CALL_METHOD(NULL, this_ptr, "sendheaders", NULL, 0); @@ -1014,18 +1013,26 @@ PHP_METHOD(Phalcon_Http_Response, setFileToSend) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; - zval *filePath_param = NULL, *attachmentName = NULL, attachmentName_sub, *attachment = NULL, attachment_sub, __$null, __$true, basePath, _0$$5, _1$$5; + zephir_fcall_cache_entry *_0 = NULL; + zval *filePath_param = NULL, *attachmentName = NULL, attachmentName_sub, *attachment = NULL, attachment_sub, __$true, __$null, basePath, basePathEncoding, _1$$6, _2$$5, _3$$7, _4$$7, _5$$7, _6$$8, _7$$8, _8$$8; zval filePath; zval *this_ptr = getThis(); ZVAL_UNDEF(&filePath); ZVAL_UNDEF(&attachmentName_sub); ZVAL_UNDEF(&attachment_sub); - ZVAL_NULL(&__$null); ZVAL_BOOL(&__$true, 1); + ZVAL_NULL(&__$null); ZVAL_UNDEF(&basePath); - ZVAL_UNDEF(&_0$$5); - ZVAL_UNDEF(&_1$$5); + ZVAL_UNDEF(&basePathEncoding); + ZVAL_UNDEF(&_1$$6); + ZVAL_UNDEF(&_2$$5); + ZVAL_UNDEF(&_3$$7); + ZVAL_UNDEF(&_4$$7); + ZVAL_UNDEF(&_5$$7); + ZVAL_UNDEF(&_6$$8); + ZVAL_UNDEF(&_7$$8); + ZVAL_UNDEF(&_8$$8); ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &filePath_param, &attachmentName, &attachment); @@ -1041,29 +1048,54 @@ PHP_METHOD(Phalcon_Http_Response, setFileToSend) { } + ZEPHIR_INIT_VAR(&basePathEncoding); + ZVAL_STRING(&basePathEncoding, "ASCII"); if (Z_TYPE_P(attachmentName) != IS_STRING) { - ZEPHIR_INIT_VAR(&basePath); - zephir_basename(&basePath, &filePath TSRMLS_CC); + ZEPHIR_CALL_CE_STATIC(&basePath, phalcon_helper_fs_ce, "basename", &_0, 363, &filePath); + zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&basePath, attachmentName); } if (zephir_is_true(attachment)) { - ZEPHIR_INIT_VAR(&_0$$5); - ZVAL_STRING(&_0$$5, "Content-Description: File Transfer"); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "setrawheader", NULL, 0, &_0$$5); - zephir_check_call_status(); - ZEPHIR_INIT_NVAR(&_0$$5); - ZVAL_STRING(&_0$$5, "Content-Type: application/octet-stream"); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "setrawheader", NULL, 0, &_0$$5); + if ((zephir_function_exists_ex(SL("mb_detect_encoding") TSRMLS_CC) == SUCCESS)) { + ZEPHIR_CALL_FUNCTION(&_1$$6, "mb_detect_order", NULL, 364); + zephir_check_call_status(); + ZEPHIR_CALL_FUNCTION(&basePathEncoding, "mb_detect_encoding", NULL, 221, &basePath, &_1$$6, &__$true); + zephir_check_call_status(); + } + ZEPHIR_INIT_VAR(&_2$$5); + ZVAL_STRING(&_2$$5, "Content-Description: File Transfer"); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "setrawheader", NULL, 0, &_2$$5); zephir_check_call_status(); - ZEPHIR_INIT_VAR(&_1$$5); - ZEPHIR_CONCAT_SVS(&_1$$5, "Content-Disposition: attachment; filename=", &basePath, ";"); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "setrawheader", NULL, 0, &_1$$5); + ZEPHIR_INIT_NVAR(&_2$$5); + ZVAL_STRING(&_2$$5, "Content-Type: application/octet-stream"); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "setrawheader", NULL, 0, &_2$$5); zephir_check_call_status(); - ZEPHIR_INIT_NVAR(&_0$$5); - ZVAL_STRING(&_0$$5, "Content-Transfer-Encoding: binary"); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "setrawheader", NULL, 0, &_0$$5); + ZEPHIR_INIT_NVAR(&_2$$5); + ZVAL_STRING(&_2$$5, "Content-Transfer-Encoding: binary"); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "setrawheader", NULL, 0, &_2$$5); zephir_check_call_status(); + if (!ZEPHIR_IS_STRING(&basePathEncoding, "ASCII")) { + ZEPHIR_CALL_FUNCTION(&_3$$7, "rawurlencode", NULL, 224, &basePath); + zephir_check_call_status(); + ZEPHIR_CPY_WRT(&basePath, &_3$$7); + ZEPHIR_INIT_VAR(&_4$$7); + zephir_fast_strtolower(&_4$$7, &basePathEncoding); + ZEPHIR_INIT_VAR(&_5$$7); + ZEPHIR_CONCAT_SVSVSV(&_5$$7, "Content-Disposition: attachment; filename=", &basePath, "; filename*=", &_4$$7, "''", &basePath); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "setrawheader", NULL, 0, &_5$$7); + zephir_check_call_status(); + } else { + ZEPHIR_INIT_VAR(&_6$$8); + ZVAL_STRING(&_6$$8, "\\15\\17\\\""); + ZEPHIR_CALL_FUNCTION(&_7$$8, "addcslashes", NULL, 190, &basePath, &_6$$8); + zephir_check_call_status(); + ZEPHIR_CPY_WRT(&basePath, &_7$$8); + ZEPHIR_INIT_VAR(&_8$$8); + ZEPHIR_CONCAT_SVS(&_8$$8, "Content-Disposition: attachment; filename=\"", &basePath, "\""); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "setrawheader", NULL, 0, &_8$$8); + zephir_check_call_status(); + } } zephir_update_property_zval(this_ptr, SL("file"), &filePath); RETURN_THIS(); @@ -1132,7 +1164,7 @@ PHP_METHOD(Phalcon_Http_Response, setHeaders) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&existing, this_ptr, "getheaders", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&data, 0, "phalcon/Http/Response.zep", 600); + zephir_is_iterable(&data, 0, "phalcon/Http/Response.zep", 619); if (Z_TYPE_P(&data) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _2, _3, _0) { @@ -1361,7 +1393,7 @@ PHP_METHOD(Phalcon_Http_Response, setStatusCode) { ZEPHIR_CALL_METHOD(¤tHeadersRaw, &headers, "toarray", NULL, 0); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_0); - zephir_is_iterable(¤tHeadersRaw, 0, "phalcon/Http/Response.zep", 699); + zephir_is_iterable(¤tHeadersRaw, 0, "phalcon/Http/Response.zep", 718); if (Z_TYPE_P(¤tHeadersRaw) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(¤tHeadersRaw), _3, _4, _1) { @@ -1485,11 +1517,11 @@ PHP_METHOD(Phalcon_Http_Response, setStatusCode) { add_index_stringl(&statusCodes, 510, SL("Not Extended")); add_index_stringl(&statusCodes, 511, SL("Network Authentication Required")); if (UNEXPECTED(!(zephir_array_isset_long(&statusCodes, code)))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_response_exception_ce, "Non-standard statuscode given without a message", "phalcon/Http/Response.zep", 776); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_response_exception_ce, "Non-standard statuscode given without a message", "phalcon/Http/Response.zep", 795); return; } ZEPHIR_OBS_VAR(&defaultMessage); - zephir_array_fetch_long(&defaultMessage, &statusCodes, code, PH_NOISY, "phalcon/Http/Response.zep", 779 TSRMLS_CC); + zephir_array_fetch_long(&defaultMessage, &statusCodes, code, PH_NOISY, "phalcon/Http/Response.zep", 798 TSRMLS_CC); zephir_get_strval(&message, &defaultMessage); } ZEPHIR_SINIT_VAR(_14); diff --git a/ext/phalcon/http/response/cookies.zep.c b/ext/phalcon/http/response/cookies.zep.c index 1728648239f..0bbe5c87a60 100644 --- a/ext/phalcon/http/response/cookies.zep.c +++ b/ext/phalcon/http/response/cookies.zep.c @@ -79,9 +79,7 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Http_Response_Cookies) { - ZEPHIR_REGISTER_CLASS(Phalcon\\Http\\Response, Cookies, phalcon, http_response_cookies, phalcon_http_response_cookies_method_entry, 0); - - zend_declare_property_null(phalcon_http_response_cookies_ce, SL("container"), ZEND_ACC_PROTECTED TSRMLS_CC); + ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Http\\Response, Cookies, phalcon, http_response_cookies, phalcon_di_abstractinjectionaware_ce, phalcon_http_response_cookies_method_entry, 0); zend_declare_property_null(phalcon_http_response_cookies_ce, SL("cookies"), ZEND_ACC_PROTECTED TSRMLS_CC); @@ -98,7 +96,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Http_Response_Cookies) { phalcon_http_response_cookies_ce->create_object = zephir_init_properties_Phalcon_Http_Response_Cookies; zend_class_implements(phalcon_http_response_cookies_ce TSRMLS_CC, 1, phalcon_http_response_cookiesinterface_ce); - zend_class_implements(phalcon_http_response_cookies_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); return SUCCESS; } @@ -272,18 +269,6 @@ PHP_METHOD(Phalcon_Http_Response_Cookies, getCookies) { } -/** - * Returns the internal dependency injector - */ -PHP_METHOD(Phalcon_Http_Response_Cookies, getDI) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "container"); - -} - /** * Check if a cookie is defined in the bag or exists in the _COOKIE * superglobal @@ -375,13 +360,13 @@ PHP_METHOD(Phalcon_Http_Response_Cookies, send) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_FUNCTION(&_0, "headers_sent", NULL, 363); + ZEPHIR_CALL_FUNCTION(&_0, "headers_sent", NULL, 365); zephir_check_call_status(); if (zephir_is_true(&_0)) { RETURN_MM_BOOL(0); } zephir_read_property(&_1, this_ptr, SL("cookies"), PH_NOISY_CC | PH_READONLY); - zephir_is_iterable(&_1, 0, "phalcon/Http/Response/Cookies.zep", 214); + zephir_is_iterable(&_1, 0, "phalcon/Http/Response/Cookies.zep", 204); if (Z_TYPE_P(&_1) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_1), _2) { @@ -603,7 +588,7 @@ PHP_METHOD(Phalcon_Http_Response_Cookies, set) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_12$$7, "__construct", NULL, 5, &_13$$7); zephir_check_call_status(); - zephir_throw_exception_debug(&_12$$7, "phalcon/Http/Response/Cookies.zep", 298 TSRMLS_CC); + zephir_throw_exception_debug(&_12$$7, "phalcon/Http/Response/Cookies.zep", 288 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -623,24 +608,6 @@ PHP_METHOD(Phalcon_Http_Response_Cookies, set) { } -/** - * Sets the dependency injector - */ -PHP_METHOD(Phalcon_Http_Response_Cookies, setDI) { - - zval *container, container_sub; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&container_sub); - - zephir_fetch_params_without_memory_grow(1, 0, &container); - - - - zephir_update_property_zval(this_ptr, SL("container"), container); - -} - /** * Sets the cookie's sign key. * diff --git a/ext/phalcon/http/response/cookies.zep.h b/ext/phalcon/http/response/cookies.zep.h index fec96ad33cf..af89de28750 100644 --- a/ext/phalcon/http/response/cookies.zep.h +++ b/ext/phalcon/http/response/cookies.zep.h @@ -7,13 +7,11 @@ PHP_METHOD(Phalcon_Http_Response_Cookies, __construct); PHP_METHOD(Phalcon_Http_Response_Cookies, delete); PHP_METHOD(Phalcon_Http_Response_Cookies, get); PHP_METHOD(Phalcon_Http_Response_Cookies, getCookies); -PHP_METHOD(Phalcon_Http_Response_Cookies, getDI); PHP_METHOD(Phalcon_Http_Response_Cookies, has); PHP_METHOD(Phalcon_Http_Response_Cookies, isUsingEncryption); PHP_METHOD(Phalcon_Http_Response_Cookies, reset); PHP_METHOD(Phalcon_Http_Response_Cookies, send); PHP_METHOD(Phalcon_Http_Response_Cookies, set); -PHP_METHOD(Phalcon_Http_Response_Cookies, setDI); PHP_METHOD(Phalcon_Http_Response_Cookies, setSignKey); PHP_METHOD(Phalcon_Http_Response_Cookies, useEncryption); zend_object *zephir_init_properties_Phalcon_Http_Response_Cookies(zend_class_entry *class_type TSRMLS_DC); @@ -62,13 +60,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_response_cookies_ge #endif ZEND_END_ARG_INFO() -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_http_response_cookies_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_response_cookies_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) -#endif -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_response_cookies_has, 0, 1, _IS_BOOL, 0) #else @@ -140,10 +131,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_response_cookies_se #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_http_response_cookies_setdi, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_http_response_cookies_setsignkey, 0, 0, Phalcon\\Http\\CookieInterface, 0) #else @@ -173,13 +160,11 @@ ZEPHIR_INIT_FUNCS(phalcon_http_response_cookies_method_entry) { PHP_ME(Phalcon_Http_Response_Cookies, delete, arginfo_phalcon_http_response_cookies_delete, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Response_Cookies, get, arginfo_phalcon_http_response_cookies_get, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Response_Cookies, getCookies, arginfo_phalcon_http_response_cookies_getcookies, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Http_Response_Cookies, getDI, arginfo_phalcon_http_response_cookies_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Response_Cookies, has, arginfo_phalcon_http_response_cookies_has, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Response_Cookies, isUsingEncryption, arginfo_phalcon_http_response_cookies_isusingencryption, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Response_Cookies, reset, arginfo_phalcon_http_response_cookies_reset, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Response_Cookies, send, arginfo_phalcon_http_response_cookies_send, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Response_Cookies, set, arginfo_phalcon_http_response_cookies_set, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Http_Response_Cookies, setDI, arginfo_phalcon_http_response_cookies_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Response_Cookies, setSignKey, arginfo_phalcon_http_response_cookies_setsignkey, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Response_Cookies, useEncryption, arginfo_phalcon_http_response_cookies_useencryption, ZEND_ACC_PUBLIC) PHP_FE_END diff --git a/ext/phalcon/http/response/headers.zep.c b/ext/phalcon/http/response/headers.zep.c index 85e267588bf..2c9da668298 100644 --- a/ext/phalcon/http/response/headers.zep.c +++ b/ext/phalcon/http/response/headers.zep.c @@ -182,7 +182,7 @@ PHP_METHOD(Phalcon_Http_Response_Headers, send) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_FUNCTION(&_0, "headers_sent", NULL, 363); + ZEPHIR_CALL_FUNCTION(&_0, "headers_sent", NULL, 365); zephir_check_call_status(); if (zephir_is_true(&_0)) { RETURN_MM_BOOL(0); @@ -203,7 +203,7 @@ PHP_METHOD(Phalcon_Http_Response_Headers, send) { if (Z_TYPE_P(&value) != IS_NULL) { ZEPHIR_INIT_LNVAR(_6$$5); ZEPHIR_CONCAT_VSV(&_6$$5, &header, ": ", &value); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 364, &_6$$5, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 366, &_6$$5, &__$true); zephir_check_call_status(); } else { _8$$6 = zephir_memnstr_str(&header, SL(":"), "phalcon/Http/Response/Headers.zep", 88); @@ -215,12 +215,12 @@ PHP_METHOD(Phalcon_Http_Response_Headers, send) { _8$$6 = ZEPHIR_IS_STRING(&_11$$6, "HTTP/"); } if (_8$$6) { - ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 364, &header, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 366, &header, &__$true); zephir_check_call_status(); } else { ZEPHIR_INIT_LNVAR(_12$$8); ZEPHIR_CONCAT_VS(&_12$$8, &header, ": "); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 364, &_12$$8, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 366, &_12$$8, &__$true); zephir_check_call_status(); } } @@ -241,7 +241,7 @@ PHP_METHOD(Phalcon_Http_Response_Headers, send) { if (Z_TYPE_P(&value) != IS_NULL) { ZEPHIR_INIT_LNVAR(_13$$10); ZEPHIR_CONCAT_VSV(&_13$$10, &header, ": ", &value); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 364, &_13$$10, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 366, &_13$$10, &__$true); zephir_check_call_status(); } else { _14$$11 = zephir_memnstr_str(&header, SL(":"), "phalcon/Http/Response/Headers.zep", 88); @@ -253,12 +253,12 @@ PHP_METHOD(Phalcon_Http_Response_Headers, send) { _14$$11 = ZEPHIR_IS_STRING(&_17$$11, "HTTP/"); } if (_14$$11) { - ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 364, &header, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 366, &header, &__$true); zephir_check_call_status(); } else { ZEPHIR_INIT_LNVAR(_18$$13); ZEPHIR_CONCAT_VS(&_18$$13, &header, ": "); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 364, &_18$$13, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 366, &_18$$13, &__$true); zephir_check_call_status(); } } diff --git a/ext/phalcon/image/adapter/gd.zep.c b/ext/phalcon/image/adapter/gd.zep.c index 75027bce68f..3ab1ff47211 100644 --- a/ext/phalcon/image/adapter/gd.zep.c +++ b/ext/phalcon/image/adapter/gd.zep.c @@ -128,7 +128,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("realpath"), &_3$$4); zephir_read_property(&_4$$4, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&imageinfo, "getimagesize", NULL, 365, &_4$$4); + ZEPHIR_CALL_FUNCTION(&imageinfo, "getimagesize", NULL, 367, &_4$$4); zephir_check_call_status(); if (zephir_is_true(&imageinfo)) { zephir_array_fetch_long(&_5$$5, &imageinfo, 0, PH_NOISY | PH_READONLY, "phalcon/Image/Adapter/Gd.zep", 36 TSRMLS_CC); @@ -144,35 +144,35 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { do { if (ZEPHIR_IS_LONG(&_9$$4, 1)) { zephir_read_property(&_10$$6, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_11$$6, "imagecreatefromgif", NULL, 366, &_10$$6); + ZEPHIR_CALL_FUNCTION(&_11$$6, "imagecreatefromgif", NULL, 368, &_10$$6); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &_11$$6); break; } if (ZEPHIR_IS_LONG(&_9$$4, 2)) { zephir_read_property(&_12$$7, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_13$$7, "imagecreatefromjpeg", NULL, 367, &_12$$7); + ZEPHIR_CALL_FUNCTION(&_13$$7, "imagecreatefromjpeg", NULL, 369, &_12$$7); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &_13$$7); break; } if (ZEPHIR_IS_LONG(&_9$$4, 3)) { zephir_read_property(&_14$$8, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_15$$8, "imagecreatefrompng", NULL, 368, &_14$$8); + ZEPHIR_CALL_FUNCTION(&_15$$8, "imagecreatefrompng", NULL, 370, &_14$$8); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &_15$$8); break; } if (ZEPHIR_IS_LONG(&_9$$4, 15)) { zephir_read_property(&_16$$9, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_17$$9, "imagecreatefromwbmp", NULL, 369, &_16$$9); + ZEPHIR_CALL_FUNCTION(&_17$$9, "imagecreatefromwbmp", NULL, 371, &_16$$9); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &_17$$9); break; } if (ZEPHIR_IS_LONG(&_9$$4, 16)) { zephir_read_property(&_18$$10, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_19$$10, "imagecreatefromxbm", NULL, 370, &_18$$10); + ZEPHIR_CALL_FUNCTION(&_19$$10, "imagecreatefromxbm", NULL, 372, &_18$$10); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &_19$$10); break; @@ -195,7 +195,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { } while(0); zephir_read_property(&_24$$4, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 371, &_24$$4, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 373, &_24$$4, &__$true); zephir_check_call_status(); } else { _25$$13 = !width; @@ -216,14 +216,14 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { } ZVAL_LONG(&_29$$13, width); ZVAL_LONG(&_30$$13, height); - ZEPHIR_CALL_FUNCTION(&_31$$13, "imagecreatetruecolor", NULL, 372, &_29$$13, &_30$$13); + ZEPHIR_CALL_FUNCTION(&_31$$13, "imagecreatetruecolor", NULL, 374, &_29$$13, &_30$$13); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &_31$$13); zephir_read_property(&_29$$13, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 373, &_29$$13, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 375, &_29$$13, &__$true); zephir_check_call_status(); zephir_read_property(&_30$$13, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 371, &_30$$13, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 373, &_30$$13, &__$true); zephir_check_call_status(); zephir_read_property(&_32$$13, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); zephir_update_property_zval(this_ptr, SL("realpath"), &_32$$13); @@ -260,7 +260,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, __destruct) { zephir_read_property(&_0, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&image, &_0); if (Z_TYPE_P(&image) == IS_RESOURCE) { - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 374, &image); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &image); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -300,7 +300,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, check) { ZVAL_STRING(&_1, "2.0.1"); ZEPHIR_INIT_VAR(&_2); ZVAL_STRING(&_2, ">="); - ZEPHIR_CALL_FUNCTION(&_3, "version_compare", NULL, 375, &version, &_1, &_2); + ZEPHIR_CALL_FUNCTION(&_3, "version_compare", NULL, 377, &version, &_1, &_2); zephir_check_call_status(); if (UNEXPECTED(!zephir_is_true(&_3))) { ZEPHIR_INIT_VAR(&_4$$5); @@ -352,7 +352,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, getVersion) { ZEPHIR_INIT_NVAR(&version); ZEPHIR_MM_GET_CONSTANT(&version, "GD_VERSION"); } else { - ZEPHIR_CALL_FUNCTION(&info, "gd_info", NULL, 376); + ZEPHIR_CALL_FUNCTION(&info, "gd_info", NULL, 378); zephir_check_call_status(); ZEPHIR_INIT_VAR(&matches); ZVAL_NULL(&matches); @@ -412,9 +412,9 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processBackground) { ZVAL_LONG(&_3, g); ZVAL_LONG(&_4, b); ZVAL_LONG(&_5, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 377, &background, &_2, &_3, &_4, &_5); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 379, &background, &_2, &_3, &_4, &_5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 373, &background, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 375, &background, &__$true); zephir_check_call_status(); zephir_read_property(&_2, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_3, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY); @@ -423,11 +423,11 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processBackground) { ZVAL_LONG(&_6, 0); ZVAL_LONG(&_7, 0); ZVAL_LONG(&_8, 0); - ZEPHIR_CALL_FUNCTION(&_9, "imagecopy", NULL, 378, &background, &_2, &_5, &_6, &_7, &_8, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&_9, "imagecopy", NULL, 380, &background, &_2, &_5, &_6, &_7, &_8, &_3, &_4); zephir_check_call_status(); if (zephir_is_true(&_9)) { zephir_read_property(&_10$$3, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 374, &_10$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &_10$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &background); } @@ -459,7 +459,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processBlur) { } zephir_read_property(&_0$$3, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_1$$3, 7); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_2, 379, &_0$$3, &_1$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_2, 381, &_0$$3, &_1$$3); zephir_check_call_status(); i++; } @@ -489,11 +489,11 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processCreate) { ZVAL_LONG(&_0, width); ZVAL_LONG(&_1, height); - ZEPHIR_CALL_FUNCTION(&image, "imagecreatetruecolor", NULL, 372, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&image, "imagecreatetruecolor", NULL, 374, &_0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 373, &image, &__$false); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 375, &image, &__$false); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 371, &image, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 373, &image, &__$true); zephir_check_call_status(); RETURN_CCTOR(&image); @@ -538,16 +538,16 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processCrop) { ZVAL_LONG(&_0, height); zephir_array_update_string(&rect, SL("height"), &_0, PH_COPY | PH_SEPARATE); zephir_read_property(&_1, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&image, "imagecrop", NULL, 380, &_1, &rect); + ZEPHIR_CALL_FUNCTION(&image, "imagecrop", NULL, 382, &_1, &rect); zephir_check_call_status(); zephir_read_property(&_2, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 374, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &_2); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &image); - ZEPHIR_CALL_FUNCTION(&_3, "imagesx", NULL, 381, &image); + ZEPHIR_CALL_FUNCTION(&_3, "imagesx", NULL, 383, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("width"), &_3); - ZEPHIR_CALL_FUNCTION(&_4, "imagesy", NULL, 382, &image); + ZEPHIR_CALL_FUNCTION(&_4, "imagesy", NULL, 384, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("height"), &_4); ZEPHIR_MM_RESTORE(); @@ -575,12 +575,12 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processFlip) { if (direction == 11) { zephir_read_property(&_0$$3, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_1$$3, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imageflip", NULL, 383, &_0$$3, &_1$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imageflip", NULL, 385, &_0$$3, &_1$$3); zephir_check_call_status(); } else { zephir_read_property(&_2$$4, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_3$$4, 2); - ZEPHIR_CALL_FUNCTION(NULL, "imageflip", NULL, 383, &_2$$4, &_3$$4); + ZEPHIR_CALL_FUNCTION(NULL, "imageflip", NULL, 385, &_2$$4, &_3$$4); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -640,32 +640,32 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processMask) { ZEPHIR_CALL_METHOD(&_0, mask, "render", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&maskImage, "imagecreatefromstring", NULL, 384, &_0); + ZEPHIR_CALL_FUNCTION(&maskImage, "imagecreatefromstring", NULL, 386, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 381, &maskImage); + ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 383, &maskImage); zephir_check_call_status(); mask_width = zephir_get_intval(&_1); - ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 382, &maskImage); + ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 384, &maskImage); zephir_check_call_status(); mask_height = zephir_get_intval(&_2); alpha = 127; - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 371, &maskImage, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 373, &maskImage, &__$true); zephir_check_call_status(); zephir_read_property(&_3, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_4, this_ptr, SL("height"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CALL_METHOD(&newimage, this_ptr, "processcreate", NULL, 0, &_3, &_4); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 371, &newimage, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 373, &newimage, &__$true); zephir_check_call_status(); ZVAL_LONG(&_5, 0); ZVAL_LONG(&_6, 0); ZVAL_LONG(&_7, 0); ZVAL_LONG(&_8, alpha); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 377, &newimage, &_5, &_6, &_7, &_8); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 379, &newimage, &_5, &_6, &_7, &_8); zephir_check_call_status(); ZVAL_LONG(&_5, 0); ZVAL_LONG(&_6, 0); - ZEPHIR_CALL_FUNCTION(NULL, "imagefill", NULL, 385, &newimage, &_5, &_6, &color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefill", NULL, 387, &newimage, &_5, &_6, &color); zephir_check_call_status(); zephir_read_property(&_5, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY); _9 = !ZEPHIR_IS_LONG(&_5, mask_width); @@ -676,7 +676,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processMask) { if (_9) { zephir_read_property(&_10$$3, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_11$$3, this_ptr, SL("height"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&tempImage, "imagecreatetruecolor", NULL, 372, &_10$$3, &_11$$3); + ZEPHIR_CALL_FUNCTION(&tempImage, "imagecreatetruecolor", NULL, 374, &_10$$3, &_11$$3); zephir_check_call_status(); zephir_read_property(&_12$$3, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_13$$3, this_ptr, SL("height"), PH_NOISY_CC | PH_READONLY); @@ -686,9 +686,9 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processMask) { ZVAL_LONG(&_17$$3, 0); ZVAL_LONG(&_18$$3, mask_width); ZVAL_LONG(&_19$$3, mask_height); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopyresampled", NULL, 386, &tempImage, &maskImage, &_14$$3, &_15$$3, &_16$$3, &_17$$3, &_12$$3, &_13$$3, &_18$$3, &_19$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopyresampled", NULL, 388, &tempImage, &maskImage, &_14$$3, &_15$$3, &_16$$3, &_17$$3, &_12$$3, &_13$$3, &_18$$3, &_19$$3); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 374, &maskImage); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &maskImage); zephir_check_call_status(); ZEPHIR_CPY_WRT(&maskImage, &tempImage); } @@ -706,9 +706,9 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processMask) { } ZVAL_LONG(&_21$$5, x); ZVAL_LONG(&_22$$5, y); - ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_23, 387, &maskImage, &_21$$5, &_22$$5); + ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_23, 389, &maskImage, &_21$$5, &_22$$5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_24, 388, &maskImage, &index); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_24, 390, &maskImage, &index); zephir_check_call_status(); if (zephir_array_isset_string(&color, SL("red"))) { zephir_array_fetch_string(&_25$$6, &color, SL("red"), PH_NOISY | PH_READONLY, "phalcon/Image/Adapter/Gd.zep", 289 TSRMLS_CC); @@ -718,10 +718,10 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processMask) { zephir_read_property(&_21$$5, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_22$$5, x); ZVAL_LONG(&_27$$5, y); - ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_23, 387, &_21$$5, &_22$$5, &_27$$5); + ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_23, 389, &_21$$5, &_22$$5, &_27$$5); zephir_check_call_status(); zephir_read_property(&_22$$5, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_24, 388, &_22$$5, &index); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_24, 390, &_22$$5, &index); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&r); zephir_array_fetch_string(&r, &color, SL("red"), PH_NOISY, "phalcon/Image/Adapter/Gd.zep", 294 TSRMLS_CC); @@ -730,20 +730,20 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processMask) { ZEPHIR_OBS_NVAR(&b); zephir_array_fetch_string(&b, &color, SL("blue"), PH_NOISY, "phalcon/Image/Adapter/Gd.zep", 296 TSRMLS_CC); ZVAL_LONG(&_27$$5, alpha); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 377, &newimage, &r, &g, &b, &_27$$5); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 379, &newimage, &r, &g, &b, &_27$$5); zephir_check_call_status(); ZVAL_LONG(&_27$$5, x); ZVAL_LONG(&_28$$5, y); - ZEPHIR_CALL_FUNCTION(NULL, "imagesetpixel", &_29, 389, &newimage, &_27$$5, &_28$$5, &color); + ZEPHIR_CALL_FUNCTION(NULL, "imagesetpixel", &_29, 391, &newimage, &_27$$5, &_28$$5, &color); zephir_check_call_status(); y++; } x++; } zephir_read_property(&_8, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 374, &_8); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &_8); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 374, &maskImage); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &maskImage); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &newimage); ZEPHIR_MM_RESTORE(); @@ -803,7 +803,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processPixelate) { zephir_read_property(&_5$$4, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_6$$4, x1); ZVAL_LONG(&_7$$4, y1); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorat", &_8, 387, &_5$$4, &_6$$4, &_7$$4); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorat", &_8, 389, &_5$$4, &_6$$4, &_7$$4); zephir_check_call_status(); x2 = (x + amount); y2 = (y + amount); @@ -812,7 +812,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processPixelate) { ZVAL_LONG(&_9$$4, y); ZVAL_LONG(&_10$$4, x2); ZVAL_LONG(&_11$$4, y2); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", &_12, 390, &_6$$4, &_7$$4, &_9$$4, &_10$$4, &_11$$4, &color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", &_12, 392, &_6$$4, &_7$$4, &_9$$4, &_10$$4, &_11$$4, &color); zephir_check_call_status(); y += amount; } @@ -893,7 +893,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processReflection) { ZVAL_LONG(&_8, 0); ZVAL_LONG(&_9, 0); ZVAL_LONG(&_10, 0); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", NULL, 378, &reflection, &_4, &_7, &_8, &_9, &_10, &_5, &_6); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", NULL, 380, &reflection, &_4, &_7, &_8, &_9, &_10, &_5, &_6); zephir_check_call_status(); offset = 0; while (1) { @@ -926,14 +926,14 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processReflection) { ZVAL_LONG(&_22$$5, 0); ZVAL_LONG(&_23$$5, src_y); ZVAL_LONG(&_24$$5, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", NULL, 378, &line, &_18$$5, &_20$$5, &_21$$5, &_22$$5, &_23$$5, &_19$$5, &_24$$5); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", NULL, 380, &line, &_18$$5, &_20$$5, &_21$$5, &_22$$5, &_23$$5, &_19$$5, &_24$$5); zephir_check_call_status(); ZVAL_LONG(&_20$$5, 4); ZVAL_LONG(&_21$$5, 0); ZVAL_LONG(&_22$$5, 0); ZVAL_LONG(&_23$$5, 0); ZVAL_LONG(&_24$$5, dst_opacity); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_25, 379, &line, &_20$$5, &_21$$5, &_22$$5, &_23$$5, &_24$$5); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_25, 381, &line, &_20$$5, &_21$$5, &_22$$5, &_23$$5, &_24$$5); zephir_check_call_status(); zephir_read_property(&_20$$5, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_21$$5, 0); @@ -941,18 +941,18 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processReflection) { ZVAL_LONG(&_23$$5, 0); ZVAL_LONG(&_24$$5, 0); ZVAL_LONG(&_26$$5, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", NULL, 378, &reflection, &line, &_21$$5, &_22$$5, &_23$$5, &_24$$5, &_20$$5, &_26$$5); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", NULL, 380, &reflection, &line, &_21$$5, &_22$$5, &_23$$5, &_24$$5, &_20$$5, &_26$$5); zephir_check_call_status(); offset++; } zephir_read_property(&_7, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 374, &_7); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &_7); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &reflection); - ZEPHIR_CALL_FUNCTION(&_27, "imagesx", NULL, 381, &reflection); + ZEPHIR_CALL_FUNCTION(&_27, "imagesx", NULL, 383, &reflection); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("width"), &_27); - ZEPHIR_CALL_FUNCTION(&_28, "imagesy", NULL, 382, &reflection); + ZEPHIR_CALL_FUNCTION(&_28, "imagesy", NULL, 384, &reflection); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("height"), &_28); ZEPHIR_MM_RESTORE(); @@ -997,56 +997,56 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processRender) { ZEPHIR_INIT_VAR(&_0); zephir_fast_strtolower(&_0, &ext); zephir_get_strval(&ext, &_0); - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 391); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 393); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "gif"); - ZEPHIR_CALL_FUNCTION(&_2, "strcmp", NULL, 392, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "strcmp", NULL, 394, &ext, &_1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "jpg"); - ZEPHIR_CALL_FUNCTION(&_3, "strcmp", NULL, 392, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_3, "strcmp", NULL, 394, &ext, &_1); zephir_check_call_status(); _4 = ZEPHIR_IS_LONG(&_3, 0); if (!(_4)) { ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "jpeg"); - ZEPHIR_CALL_FUNCTION(&_5, "strcmp", NULL, 392, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_5, "strcmp", NULL, 394, &ext, &_1); zephir_check_call_status(); _4 = ZEPHIR_IS_LONG(&_5, 0); } ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "png"); - ZEPHIR_CALL_FUNCTION(&_6, "strcmp", NULL, 392, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_6, "strcmp", NULL, 394, &ext, &_1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "wbmp"); - ZEPHIR_CALL_FUNCTION(&_7, "strcmp", NULL, 392, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_7, "strcmp", NULL, 394, &ext, &_1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "xbm"); - ZEPHIR_CALL_FUNCTION(&_8, "strcmp", NULL, 392, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_8, "strcmp", NULL, 394, &ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_2, 0)) { zephir_read_property(&_9$$3, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 393, &_9$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 395, &_9$$3); zephir_check_call_status(); } else if (_4) { zephir_read_property(&_10$$4, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_11$$4, quality); - ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 394, &_10$$4, &__$null, &_11$$4); + ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 396, &_10$$4, &__$null, &_11$$4); zephir_check_call_status(); } else if (ZEPHIR_IS_LONG(&_6, 0)) { zephir_read_property(&_12$$5, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 395, &_12$$5); + ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 397, &_12$$5); zephir_check_call_status(); } else if (ZEPHIR_IS_LONG(&_7, 0)) { zephir_read_property(&_13$$6, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 396, &_13$$6); + ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 398, &_13$$6); zephir_check_call_status(); } else if (ZEPHIR_IS_LONG(&_8, 0)) { zephir_read_property(&_14$$7, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 397, &_14$$7, &__$null); + ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 399, &_14$$7, &__$null); zephir_check_call_status(); } else { ZEPHIR_INIT_VAR(&_15$$8); @@ -1059,7 +1059,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processRender) { ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", NULL, 398); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", NULL, 400); zephir_check_call_status(); RETURN_MM(); @@ -1089,16 +1089,16 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processResize) { zephir_read_property(&_0, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_1, width); ZVAL_LONG(&_2, height); - ZEPHIR_CALL_FUNCTION(&image, "imagescale", NULL, 399, &_0, &_1, &_2); + ZEPHIR_CALL_FUNCTION(&image, "imagescale", NULL, 401, &_0, &_1, &_2); zephir_check_call_status(); zephir_read_property(&_1, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 374, &_1); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &_1); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &image); - ZEPHIR_CALL_FUNCTION(&_3, "imagesx", NULL, 381, &image); + ZEPHIR_CALL_FUNCTION(&_3, "imagesx", NULL, 383, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("width"), &_3); - ZEPHIR_CALL_FUNCTION(&_4, "imagesy", NULL, 382, &image); + ZEPHIR_CALL_FUNCTION(&_4, "imagesy", NULL, 384, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("height"), &_4); ZEPHIR_MM_RESTORE(); @@ -1139,18 +1139,18 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processRotate) { ZVAL_LONG(&_2, 0); ZVAL_LONG(&_3, 0); ZVAL_LONG(&_4, 127); - ZEPHIR_CALL_FUNCTION(&transparent, "imagecolorallocatealpha", NULL, 377, &_0, &_1, &_2, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&transparent, "imagecolorallocatealpha", NULL, 379, &_0, &_1, &_2, &_3, &_4); zephir_check_call_status(); zephir_read_property(&_1, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_2, (360 - degrees)); ZVAL_LONG(&_3, 1); - ZEPHIR_CALL_FUNCTION(&image, "imagerotate", NULL, 400, &_1, &_2, &transparent, &_3); + ZEPHIR_CALL_FUNCTION(&image, "imagerotate", NULL, 402, &_1, &_2, &transparent, &_3); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 371, &image, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 373, &image, &__$true); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&width, "imagesx", NULL, 381, &image); + ZEPHIR_CALL_FUNCTION(&width, "imagesx", NULL, 383, &image); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&height, "imagesy", NULL, 382, &image); + ZEPHIR_CALL_FUNCTION(&height, "imagesy", NULL, 384, &image); zephir_check_call_status(); zephir_read_property(&_2, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_3, 0); @@ -1158,11 +1158,11 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processRotate) { ZVAL_LONG(&_5, 0); ZVAL_LONG(&_6, 0); ZVAL_LONG(&_7, 100); - ZEPHIR_CALL_FUNCTION(&_8, "imagecopymerge", NULL, 401, &_2, &image, &_3, &_4, &_5, &_6, &width, &height, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "imagecopymerge", NULL, 403, &_2, &image, &_3, &_4, &_5, &_6, &width, &height, &_7); zephir_check_call_status(); if (zephir_is_true(&_8)) { zephir_read_property(&_9$$3, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 374, &_9$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &_9$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &image); zephir_update_property_zval(this_ptr, SL("width"), &width); @@ -1224,7 +1224,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processSave) { zephir_check_call_status(); if (!(zephir_is_true(&ext))) { zephir_read_property(&_1$$3, this_ptr, SL("type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&ext, "image_type_to_extension", NULL, 402, &_1$$3, &__$false); + ZEPHIR_CALL_FUNCTION(&ext, "image_type_to_extension", NULL, 404, &_1$$3, &__$false); zephir_check_call_status(); } ZEPHIR_INIT_VAR(&_2); @@ -1232,30 +1232,30 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processSave) { ZEPHIR_CPY_WRT(&ext, &_2); ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "gif"); - ZEPHIR_CALL_FUNCTION(&_3, "strcmp", NULL, 392, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_3, "strcmp", NULL, 394, &ext, &_2); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_3, 0)) { ZEPHIR_INIT_ZVAL_NREF(_4$$4); ZVAL_LONG(&_4$$4, 1); zephir_update_property_zval(this_ptr, SL("type"), &_4$$4); zephir_read_property(&_4$$4, this_ptr, SL("type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_5$$4, "image_type_to_mime_type", NULL, 403, &_4$$4); + ZEPHIR_CALL_FUNCTION(&_5$$4, "image_type_to_mime_type", NULL, 405, &_4$$4); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("mime"), &_5$$4); zephir_read_property(&_6$$4, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 393, &_6$$4, &file); + ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 395, &_6$$4, &file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "jpg"); - ZEPHIR_CALL_FUNCTION(&_7, "strcmp", NULL, 392, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_7, "strcmp", NULL, 394, &ext, &_2); zephir_check_call_status(); _8 = ZEPHIR_IS_LONG(&_7, 0); if (!(_8)) { ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "jpeg"); - ZEPHIR_CALL_FUNCTION(&_9, "strcmp", NULL, 392, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_9, "strcmp", NULL, 394, &ext, &_2); zephir_check_call_status(); _8 = ZEPHIR_IS_LONG(&_9, 0); } @@ -1264,7 +1264,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processSave) { ZVAL_LONG(&_10$$5, 2); zephir_update_property_zval(this_ptr, SL("type"), &_10$$5); zephir_read_property(&_10$$5, this_ptr, SL("type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_11$$5, "image_type_to_mime_type", NULL, 403, &_10$$5); + ZEPHIR_CALL_FUNCTION(&_11$$5, "image_type_to_mime_type", NULL, 405, &_10$$5); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("mime"), &_11$$5); if (quality >= 0) { @@ -1275,63 +1275,63 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processSave) { } zephir_read_property(&_12$$6, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_13$$6, quality); - ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 394, &_12$$6, &file, &_13$$6); + ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 396, &_12$$6, &file, &_13$$6); zephir_check_call_status(); } else { zephir_read_property(&_14$$9, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 394, &_14$$9, &file); + ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 396, &_14$$9, &file); zephir_check_call_status(); } RETURN_MM_BOOL(1); } ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "png"); - ZEPHIR_CALL_FUNCTION(&_15, "strcmp", NULL, 392, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_15, "strcmp", NULL, 394, &ext, &_2); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_15, 0)) { ZEPHIR_INIT_ZVAL_NREF(_16$$10); ZVAL_LONG(&_16$$10, 3); zephir_update_property_zval(this_ptr, SL("type"), &_16$$10); zephir_read_property(&_16$$10, this_ptr, SL("type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_17$$10, "image_type_to_mime_type", NULL, 403, &_16$$10); + ZEPHIR_CALL_FUNCTION(&_17$$10, "image_type_to_mime_type", NULL, 405, &_16$$10); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("mime"), &_17$$10); zephir_read_property(&_18$$10, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 395, &_18$$10, &file); + ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 397, &_18$$10, &file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "wbmp"); - ZEPHIR_CALL_FUNCTION(&_19, "strcmp", NULL, 392, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_19, "strcmp", NULL, 394, &ext, &_2); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_19, 0)) { ZEPHIR_INIT_ZVAL_NREF(_20$$11); ZVAL_LONG(&_20$$11, 15); zephir_update_property_zval(this_ptr, SL("type"), &_20$$11); zephir_read_property(&_20$$11, this_ptr, SL("type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_21$$11, "image_type_to_mime_type", NULL, 403, &_20$$11); + ZEPHIR_CALL_FUNCTION(&_21$$11, "image_type_to_mime_type", NULL, 405, &_20$$11); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("mime"), &_21$$11); zephir_read_property(&_22$$11, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 396, &_22$$11, &file); + ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 398, &_22$$11, &file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "xbm"); - ZEPHIR_CALL_FUNCTION(&_23, "strcmp", NULL, 392, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_23, "strcmp", NULL, 394, &ext, &_2); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_23, 0)) { ZEPHIR_INIT_ZVAL_NREF(_24$$12); ZVAL_LONG(&_24$$12, 16); zephir_update_property_zval(this_ptr, SL("type"), &_24$$12); zephir_read_property(&_24$$12, this_ptr, SL("type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_25$$12, "image_type_to_mime_type", NULL, 403, &_24$$12); + ZEPHIR_CALL_FUNCTION(&_25$$12, "image_type_to_mime_type", NULL, 405, &_24$$12); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("mime"), &_25$$12); zephir_read_property(&_26$$12, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 397, &_26$$12, &file); + ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 399, &_26$$12, &file); zephir_check_call_status(); RETURN_MM_BOOL(1); } @@ -1424,15 +1424,15 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processSharpen) { zephir_read_property(&_5, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_6, (amount - 8)); ZVAL_LONG(&_7, 0); - ZEPHIR_CALL_FUNCTION(&_8, "imageconvolution", NULL, 404, &_5, &matrix, &_6, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "imageconvolution", NULL, 406, &_5, &matrix, &_6, &_7); zephir_check_call_status(); if (zephir_is_true(&_8)) { zephir_read_property(&_9$$3, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_10$$3, "imagesx", NULL, 381, &_9$$3); + ZEPHIR_CALL_FUNCTION(&_10$$3, "imagesx", NULL, 383, &_9$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("width"), &_10$$3); zephir_read_property(&_11$$3, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_12$$3, "imagesy", NULL, 382, &_11$$3); + ZEPHIR_CALL_FUNCTION(&_12$$3, "imagesy", NULL, 384, &_11$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("height"), &_12$$3); } @@ -1507,7 +1507,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processText) { if (!(Z_TYPE_P(&fontfile) == IS_UNDEF) && Z_STRLEN_P(&fontfile)) { ZVAL_LONG(&_3$$3, size); ZVAL_LONG(&_4$$3, 0); - ZEPHIR_CALL_FUNCTION(&space, "imagettfbbox", NULL, 405, &_3$$3, &_4$$3, &fontfile, &text); + ZEPHIR_CALL_FUNCTION(&space, "imagettfbbox", NULL, 407, &_3$$3, &_4$$3, &fontfile, &text); zephir_check_call_status(); if (zephir_array_isset_long(&space, 0)) { ZEPHIR_OBS_VAR(&_5$$4); @@ -1560,7 +1560,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processText) { ZVAL_LONG(&_16$$3, g); ZVAL_LONG(&_17$$3, b); ZVAL_LONG(&_18$$3, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 377, &_3$$3, &_4$$3, &_16$$3, &_17$$3, &_18$$3); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 379, &_3$$3, &_4$$3, &_16$$3, &_17$$3, &_18$$3); zephir_check_call_status(); angle = 0; zephir_read_property(&_4$$3, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); @@ -1568,15 +1568,15 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processText) { ZVAL_LONG(&_17$$3, angle); ZVAL_LONG(&_18$$3, offsetX); ZVAL_LONG(&_19$$3, offsetY); - ZEPHIR_CALL_FUNCTION(NULL, "imagettftext", NULL, 406, &_4$$3, &_16$$3, &_17$$3, &_18$$3, &_19$$3, &color, &fontfile, &text); + ZEPHIR_CALL_FUNCTION(NULL, "imagettftext", NULL, 408, &_4$$3, &_16$$3, &_17$$3, &_18$$3, &_19$$3, &color, &fontfile, &text); zephir_check_call_status(); } else { ZVAL_LONG(&_20$$8, size); - ZEPHIR_CALL_FUNCTION(&_21$$8, "imagefontwidth", NULL, 407, &_20$$8); + ZEPHIR_CALL_FUNCTION(&_21$$8, "imagefontwidth", NULL, 409, &_20$$8); zephir_check_call_status(); width = (zephir_get_intval(&_21$$8) * zephir_fast_strlen_ev(&text)); ZVAL_LONG(&_20$$8, size); - ZEPHIR_CALL_FUNCTION(&_22$$8, "imagefontheight", NULL, 408, &_20$$8); + ZEPHIR_CALL_FUNCTION(&_22$$8, "imagefontheight", NULL, 410, &_20$$8); zephir_check_call_status(); height = zephir_get_intval(&_22$$8); if (offsetX < 0) { @@ -1592,13 +1592,13 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processText) { ZVAL_LONG(&_26$$8, g); ZVAL_LONG(&_27$$8, b); ZVAL_LONG(&_28$$8, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 377, &_20$$8, &_25$$8, &_26$$8, &_27$$8, &_28$$8); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 379, &_20$$8, &_25$$8, &_26$$8, &_27$$8, &_28$$8); zephir_check_call_status(); zephir_read_property(&_25$$8, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_26$$8, size); ZVAL_LONG(&_27$$8, offsetX); ZVAL_LONG(&_28$$8, offsetY); - ZEPHIR_CALL_FUNCTION(NULL, "imagestring", NULL, 409, &_25$$8, &_26$$8, &_27$$8, &_28$$8, &text, &color); + ZEPHIR_CALL_FUNCTION(NULL, "imagestring", NULL, 411, &_25$$8, &_26$$8, &_27$$8, &_28$$8, &text, &color); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -1645,14 +1645,14 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processWatermark) { ZEPHIR_CALL_METHOD(&_0, watermark, "render", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&overlay, "imagecreatefromstring", NULL, 384, &_0); + ZEPHIR_CALL_FUNCTION(&overlay, "imagecreatefromstring", NULL, 386, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 371, &overlay, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 373, &overlay, &__$true); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 381, &overlay); + ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 383, &overlay); zephir_check_call_status(); width = zephir_get_intval(&_1); - ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 382, &overlay); + ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 384, &overlay); zephir_check_call_status(); height = zephir_get_intval(&_2); if (opacity < 100) { @@ -1666,20 +1666,20 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processWatermark) { ZVAL_LONG(&_6$$3, 127); ZVAL_LONG(&_7$$3, 127); ZVAL_LONG(&_8$$3, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 377, &overlay, &_4$$3, &_6$$3, &_7$$3, &_8$$3); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 379, &overlay, &_4$$3, &_6$$3, &_7$$3, &_8$$3); zephir_check_call_status(); ZVAL_LONG(&_4$$3, 3); - ZEPHIR_CALL_FUNCTION(NULL, "imagelayereffect", NULL, 410, &overlay, &_4$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagelayereffect", NULL, 412, &overlay, &_4$$3); zephir_check_call_status(); ZVAL_LONG(&_4$$3, 0); ZVAL_LONG(&_6$$3, 0); ZVAL_LONG(&_7$$3, width); ZVAL_LONG(&_8$$3, height); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", NULL, 390, &overlay, &_4$$3, &_6$$3, &_7$$3, &_8$$3, &color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", NULL, 392, &overlay, &_4$$3, &_6$$3, &_7$$3, &_8$$3, &color); zephir_check_call_status(); } zephir_read_property(&_9, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 373, &_9, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 375, &_9, &__$true); zephir_check_call_status(); zephir_read_property(&_10, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_11, offsetX); @@ -1688,10 +1688,10 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processWatermark) { ZVAL_LONG(&_14, 0); ZVAL_LONG(&_15, width); ZVAL_LONG(&_16, height); - ZEPHIR_CALL_FUNCTION(&_17, "imagecopy", NULL, 378, &_10, &overlay, &_11, &_12, &_13, &_14, &_15, &_16); + ZEPHIR_CALL_FUNCTION(&_17, "imagecopy", NULL, 380, &_10, &overlay, &_11, &_12, &_13, &_14, &_15, &_16); zephir_check_call_status(); if (zephir_is_true(&_17)) { - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 374, &overlay); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &overlay); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/loader.zep.c b/ext/phalcon/loader.zep.c index 673ec2c7564..789b320bb58 100644 --- a/ext/phalcon/loader.zep.c +++ b/ext/phalcon/loader.zep.c @@ -1097,7 +1097,7 @@ PHP_METHOD(Phalcon_Loader, register) { ZVAL_STRING(&_2$$3, "autoLoad"); zephir_array_fast_append(&_1$$3, &_2$$3); ZVAL_BOOL(&_3$$3, (prepend ? 1 : 0)); - ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_register", NULL, 411, &_1$$3, &__$true, &_3$$3); + ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_register", NULL, 413, &_1$$3, &__$true, &_3$$3); zephir_check_call_status(); if (1) { zephir_update_property_zval(this_ptr, SL("registered"), &__$true); @@ -1447,7 +1447,7 @@ PHP_METHOD(Phalcon_Loader, unregister) { ZEPHIR_INIT_VAR(&_2$$3); ZVAL_STRING(&_2$$3, "autoLoad"); zephir_array_fast_append(&_1$$3, &_2$$3); - ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_unregister", NULL, 412, &_1$$3); + ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_unregister", NULL, 414, &_1$$3); zephir_check_call_status(); if (0) { zephir_update_property_zval(this_ptr, SL("registered"), &__$true); diff --git a/ext/phalcon/logger.zep.c b/ext/phalcon/logger.zep.c index 8c770551a7c..3861f580375 100644 --- a/ext/phalcon/logger.zep.c +++ b/ext/phalcon/logger.zep.c @@ -576,7 +576,7 @@ PHP_METHOD(Phalcon_Logger, log) { } - ZEPHIR_CALL_METHOD(&intLevel, this_ptr, "getlevelnumber", NULL, 413, level); + ZEPHIR_CALL_METHOD(&intLevel, this_ptr, "getlevelnumber", NULL, 415, level); zephir_check_call_status(); zephir_get_strval(&_0, message); ZEPHIR_CALL_METHOD(NULL, this_ptr, "addmessage", NULL, 0, level, &_0, &context); @@ -791,7 +791,7 @@ PHP_METHOD(Phalcon_Logger, addMessage) { ZEPHIR_INIT_VAR(&_1); zephir_time(&_1); ZVAL_LONG(&_0, level); - ZEPHIR_CALL_METHOD(NULL, &item, "__construct", NULL, 414, &message, &levelName, &_0, &_1, &context); + ZEPHIR_CALL_METHOD(NULL, &item, "__construct", NULL, 416, &message, &levelName, &_0, &_1, &context); zephir_check_call_status(); zephir_is_iterable(®istered, 0, "phalcon/Logger.zep", 351); if (Z_TYPE_P(®istered) == IS_ARRAY) { diff --git a/ext/phalcon/logger/adapter/syslog.zep.c b/ext/phalcon/logger/adapter/syslog.zep.c index 54d565d6558..18111803241 100644 --- a/ext/phalcon/logger/adapter/syslog.zep.c +++ b/ext/phalcon/logger/adapter/syslog.zep.c @@ -159,7 +159,7 @@ PHP_METHOD(Phalcon_Logger_Adapter_Syslog, close) { if (!(zephir_is_true(&_0))) { RETURN_MM_BOOL(1); } - ZEPHIR_RETURN_CALL_FUNCTION("closelog", NULL, 415); + ZEPHIR_RETURN_CALL_FUNCTION("closelog", NULL, 417); zephir_check_call_status(); RETURN_MM(); @@ -212,7 +212,7 @@ PHP_METHOD(Phalcon_Logger_Adapter_Syslog, process) { ZEPHIR_CPY_WRT(&facility, &_0); zephir_read_property(&_0, this_ptr, SL("option"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&option, &_0); - ZEPHIR_CALL_FUNCTION(&result, "openlog", NULL, 416, &name, &option, &facility); + ZEPHIR_CALL_FUNCTION(&result, "openlog", NULL, 418, &name, &option, &facility); zephir_check_call_status(); if (!zephir_is_true(&result)) { ZEPHIR_INIT_VAR(&_1$$4); @@ -221,7 +221,7 @@ PHP_METHOD(Phalcon_Logger_Adapter_Syslog, process) { ZVAL_STRING(&_2$$4, "Cannot open syslog for name [%s] and facility [%s]"); ZEPHIR_CALL_FUNCTION(&_3$$4, "sprintf", NULL, 182, &_2$$4, &name, &facility); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 417, &_3$$4); + ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 419, &_3$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$4, "phalcon/Logger/Adapter/Syslog.zep", 132 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -234,10 +234,10 @@ PHP_METHOD(Phalcon_Logger_Adapter_Syslog, process) { zephir_update_property_zval(this_ptr, SL("opened"), &__$false); } zephir_array_fetch_long(&_4, &message, 1, PH_NOISY | PH_READONLY, "phalcon/Logger/Adapter/Syslog.zep", 137 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&level, this_ptr, "logleveltosyslog", NULL, 418, &_4); + ZEPHIR_CALL_METHOD(&level, this_ptr, "logleveltosyslog", NULL, 420, &_4); zephir_check_call_status(); zephir_array_fetch_long(&_5, &message, 1, PH_NOISY | PH_READONLY, "phalcon/Logger/Adapter/Syslog.zep", 139 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(NULL, "syslog", NULL, 419, &level, &_5); + ZEPHIR_CALL_FUNCTION(NULL, "syslog", NULL, 421, &level, &_5); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/logger/formatter/json.zep.c b/ext/phalcon/logger/formatter/json.zep.c index 8ad05eafa5e..eca3311375a 100644 --- a/ext/phalcon/logger/formatter/json.zep.c +++ b/ext/phalcon/logger/formatter/json.zep.c @@ -163,7 +163,7 @@ PHP_METHOD(Phalcon_Logger_Formatter_Json, format) { zephir_read_property(&_6, this_ptr, SL("dateFormat"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CALL_METHOD(&_5, item, "gettime", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_7, "date", NULL, 420, &_6, &_5); + ZEPHIR_CALL_FUNCTION(&_7, "date", NULL, 422, &_6, &_5); zephir_check_call_status(); zephir_array_update_string(&_4, SL("timestamp"), &_7, PH_COPY | PH_SEPARATE); zephir_json_encode(&_3, &_4, 0 ); diff --git a/ext/phalcon/logger/formatter/line.zep.c b/ext/phalcon/logger/formatter/line.zep.c index c2c411fb8ae..fec6d0cd0ae 100644 --- a/ext/phalcon/logger/formatter/line.zep.c +++ b/ext/phalcon/logger/formatter/line.zep.c @@ -202,7 +202,7 @@ PHP_METHOD(Phalcon_Logger_Formatter_Line, format) { zephir_read_property(&_2$$3, this_ptr, SL("dateFormat"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CALL_METHOD(&_3$$3, item, "gettime", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_4$$3, "date", NULL, 420, &_2$$3, &_3$$3); + ZEPHIR_CALL_FUNCTION(&_4$$3, "date", NULL, 422, &_2$$3, &_3$$3); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_5$$3); ZVAL_STRING(&_5$$3, "%date%"); diff --git a/ext/phalcon/logger/loggerfactory.zep.c b/ext/phalcon/logger/loggerfactory.zep.c index 5e7a93c9127..4f80e6849b1 100644 --- a/ext/phalcon/logger/loggerfactory.zep.c +++ b/ext/phalcon/logger/loggerfactory.zep.c @@ -244,7 +244,7 @@ PHP_METHOD(Phalcon_Logger_LoggerFactory, newInstance) { object_init_ex(return_value, phalcon_logger_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 421, &name, &adapters); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 423, &name, &adapters); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/messages/messages.zep.c b/ext/phalcon/messages/messages.zep.c index 5fab4dd0cbc..7daeb455322 100644 --- a/ext/phalcon/messages/messages.zep.c +++ b/ext/phalcon/messages/messages.zep.c @@ -520,7 +520,7 @@ PHP_METHOD(Phalcon_Messages_Messages, offsetUnset) { zephir_read_property(&_1$$3, this_ptr, SL("messages"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_2$$3, 1); ZEPHIR_MAKE_REF(&_1$$3); - ZEPHIR_CALL_FUNCTION(NULL, "array_splice", NULL, 422, &_1$$3, index, &_2$$3); + ZEPHIR_CALL_FUNCTION(NULL, "array_splice", NULL, 424, &_1$$3, index, &_2$$3); ZEPHIR_UNREF(&_1$$3); zephir_check_call_status(); } diff --git a/ext/phalcon/mvc/micro.zep.c b/ext/phalcon/mvc/micro.zep.c index d80256de13a..ca56341ad65 100644 --- a/ext/phalcon/mvc/micro.zep.c +++ b/ext/phalcon/mvc/micro.zep.c @@ -468,11 +468,11 @@ PHP_METHOD(Phalcon_Mvc_Micro, getService) { if (Z_TYPE_P(&container) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&container); object_init_ex(&container, phalcon_di_factorydefault_ce); - ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 427); + ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 425); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("container"), &container); } - ZEPHIR_RETURN_CALL_METHOD(&container, "get", NULL, 428, &serviceName); + ZEPHIR_RETURN_CALL_METHOD(&container, "get", NULL, 426, &serviceName); zephir_check_call_status(); RETURN_MM(); @@ -515,11 +515,11 @@ PHP_METHOD(Phalcon_Mvc_Micro, getSharedService) { if (Z_TYPE_P(&container) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&container); object_init_ex(&container, phalcon_di_factorydefault_ce); - ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 427); + ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 425); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("container"), &container); } - ZEPHIR_RETURN_CALL_METHOD(&container, "getshared", NULL, 429, &serviceName); + ZEPHIR_RETURN_CALL_METHOD(&container, "getshared", NULL, 427, &serviceName); zephir_check_call_status(); RETURN_MM(); @@ -1324,11 +1324,11 @@ PHP_METHOD(Phalcon_Mvc_Micro, hasService) { if (Z_TYPE_P(&container) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&container); object_init_ex(&container, phalcon_di_factorydefault_ce); - ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 427); + ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 425); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("container"), &container); } - ZEPHIR_RETURN_CALL_METHOD(&container, "has", NULL, 430, &serviceName); + ZEPHIR_RETURN_CALL_METHOD(&container, "has", NULL, 428, &serviceName); zephir_check_call_status(); RETURN_MM(); @@ -1475,7 +1475,7 @@ PHP_METHOD(Phalcon_Mvc_Micro, mount) { if (zephir_is_true(&_0)) { ZEPHIR_INIT_VAR(&lazyHandler); object_init_ex(&lazyHandler, phalcon_mvc_micro_lazyloader_ce); - ZEPHIR_CALL_METHOD(NULL, &lazyHandler, "__construct", NULL, 431, &mainHandler); + ZEPHIR_CALL_METHOD(NULL, &lazyHandler, "__construct", NULL, 429, &mainHandler); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&lazyHandler, &mainHandler); @@ -1728,11 +1728,11 @@ PHP_METHOD(Phalcon_Mvc_Micro, offsetUnset) { if (Z_TYPE_P(&container) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&container); object_init_ex(&container, phalcon_di_factorydefault_ce); - ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 427); + ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 425); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("container"), &container); } - ZEPHIR_CALL_METHOD(NULL, &container, "remove", NULL, 432, alias); + ZEPHIR_CALL_METHOD(NULL, &container, "remove", NULL, 430, alias); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -2086,7 +2086,7 @@ PHP_METHOD(Phalcon_Mvc_Micro, setService) { if (Z_TYPE_P(&container) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&container); object_init_ex(&container, phalcon_di_factorydefault_ce); - ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 427); + ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 425); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("container"), &container); } @@ -2095,7 +2095,7 @@ PHP_METHOD(Phalcon_Mvc_Micro, setService) { } else { ZVAL_BOOL(&_0, 0); } - ZEPHIR_RETURN_CALL_METHOD(&container, "set", NULL, 433, &serviceName, definition, &_0); + ZEPHIR_RETURN_CALL_METHOD(&container, "set", NULL, 431, &serviceName, definition, &_0); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/mvc/model.zep.c b/ext/phalcon/mvc/model.zep.c index 7fab2e04c1f..31e52d78b9b 100644 --- a/ext/phalcon/mvc/model.zep.c +++ b/ext/phalcon/mvc/model.zep.c @@ -71,9 +71,7 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Mvc_Model) { - ZEPHIR_REGISTER_CLASS(Phalcon\\Mvc, Model, phalcon, mvc_model, phalcon_mvc_model_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); - - zend_declare_property_null(phalcon_mvc_model_ce, SL("container"), ZEND_ACC_PROTECTED TSRMLS_CC); + ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Mvc, Model, phalcon, mvc_model, phalcon_di_abstractinjectionaware_ce, phalcon_mvc_model_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); zend_declare_property_long(phalcon_mvc_model_ce, SL("dirtyState"), 1, ZEND_ACC_PROTECTED TSRMLS_CC); @@ -123,7 +121,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Mvc_Model) { zend_class_implements(phalcon_mvc_model_ce TSRMLS_CC, 1, phalcon_mvc_entityinterface_ce); zend_class_implements(phalcon_mvc_model_ce TSRMLS_CC, 1, phalcon_mvc_modelinterface_ce); zend_class_implements(phalcon_mvc_model_ce TSRMLS_CC, 1, phalcon_mvc_model_resultinterface_ce); - zend_class_implements(phalcon_mvc_model_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); zend_class_implements(phalcon_mvc_model_ce TSRMLS_CC, 1, zend_ce_serializable); zend_class_implements(phalcon_mvc_model_ce TSRMLS_CC, 1, zephir_get_internal_ce(SL("jsonserializable"))); return SUCCESS; @@ -194,7 +191,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __construct) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 5, &_2$$4); zephir_check_call_status(); - zephir_throw_exception_debug(&_1$$4, "phalcon/Mvc/Model.zep", 142 TSRMLS_CC); + zephir_throw_exception_debug(&_1$$4, "phalcon/Mvc/Model.zep", 140 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -206,7 +203,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __construct) { zephir_check_call_status(); ZEPHIR_CPY_WRT(modelsManager, &_5$$5); if (UNEXPECTED(Z_TYPE_P(modelsManager) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsManager' is not valid", "phalcon/Mvc/Model.zep", 156); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsManager' is not valid", "phalcon/Mvc/Model.zep", 154); return; } } @@ -256,7 +253,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __call) { zephir_get_arrval(&arguments, arguments_param); - ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 434, &method, &arguments); + ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 432, &method, &arguments); zephir_check_call_status(); if (Z_TYPE_P(&records) != IS_NULL) { RETURN_CCTOR(&records); @@ -280,7 +277,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __call) { ZEPHIR_CONCAT_SVSVS(&_3, "The method '", &method, "' doesn't exist on model '", &modelName, "'"); ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 5, &_3); zephir_check_call_status(); - zephir_throw_exception_debug(&_2, "phalcon/Mvc/Model.zep", 224 TSRMLS_CC); + zephir_throw_exception_debug(&_2, "phalcon/Mvc/Model.zep", 222 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; @@ -311,7 +308,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __callStatic) { zephir_get_arrval(&arguments, arguments_param); - ZEPHIR_RETURN_CALL_SELF("_invokefinder", &_0, 434, &method, &arguments); + ZEPHIR_RETURN_CALL_SELF("_invokefinder", &_0, 432, &method, &arguments); zephir_check_call_status(); RETURN_MM(); @@ -373,7 +370,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __get) { zephir_read_property(&_1$$3, this_ptr, SL("dirtyRelated"), PH_NOISY_CC | PH_READONLY); if (zephir_array_isset(&_1$$3, &lowerProperty)) { zephir_read_property(&_2$$4, this_ptr, SL("dirtyRelated"), PH_NOISY_CC | PH_READONLY); - zephir_array_fetch(&_3$$4, &_2$$4, &lowerProperty, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 266 TSRMLS_CC); + zephir_array_fetch(&_3$$4, &_2$$4, &lowerProperty, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 264 TSRMLS_CC); RETURN_CTOR(&_3$$4); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getrelated", NULL, 0, &lowerProperty); @@ -556,7 +553,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __set) { if (ZEPHIR_IS_LONG(&_5$$7, 2) || ZEPHIR_IS_LONG(&_5$$7, 4)) { ZEPHIR_INIT_VAR(&related); array_init(&related); - zephir_is_iterable(value, 0, "phalcon/Mvc/Model.zep", 405); + zephir_is_iterable(value, 0, "phalcon/Mvc/Model.zep", 403); if (Z_TYPE_P(value) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(value), _9$$10) { @@ -564,7 +561,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __set) { ZVAL_COPY(&item, _9$$10); if (Z_TYPE_P(&item) == IS_OBJECT) { if (zephir_instance_of_ev(&item, phalcon_mvc_modelinterface_ce TSRMLS_CC)) { - zephir_array_append(&related, &item, PH_SEPARATE, "phalcon/Mvc/Model.zep", 400); + zephir_array_append(&related, &item, PH_SEPARATE, "phalcon/Mvc/Model.zep", 398); } } } ZEND_HASH_FOREACH_END(); @@ -581,7 +578,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __set) { zephir_check_call_status(); if (Z_TYPE_P(&item) == IS_OBJECT) { if (zephir_instance_of_ev(&item, phalcon_mvc_modelinterface_ce TSRMLS_CC)) { - zephir_array_append(&related, &item, PH_SEPARATE, "phalcon/Mvc/Model.zep", 400); + zephir_array_append(&related, &item, PH_SEPARATE, "phalcon/Mvc/Model.zep", 398); } } ZEPHIR_CALL_METHOD(NULL, value, "next", NULL, 0); @@ -605,13 +602,13 @@ PHP_METHOD(Phalcon_Mvc_Model, __set) { } } - ZEPHIR_CALL_METHOD(&_13, this_ptr, "_possiblesetter", NULL, 435, &property, value); + ZEPHIR_CALL_METHOD(&_13, this_ptr, "_possiblesetter", NULL, 433, &property, value); zephir_check_call_status(); if (zephir_is_true(&_13)) { RETVAL_ZVAL(value, 1, 0); RETURN_MM(); } - ZEPHIR_CALL_FUNCTION(&_14, "property_exists", NULL, 436, this_ptr, &property); + ZEPHIR_CALL_FUNCTION(&_14, "property_exists", NULL, 434, this_ptr, &property); zephir_check_call_status(); if (zephir_is_true(&_14)) { ZEPHIR_CALL_METHOD(&manager, this_ptr, "getmodelsmanager", NULL, 0); @@ -625,7 +622,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __set) { ZEPHIR_CONCAT_SVS(&_17$$20, "Property '", &property, "' does not have a setter."); ZEPHIR_CALL_METHOD(NULL, &_16$$20, "__construct", NULL, 5, &_17$$20); zephir_check_call_status(); - zephir_throw_exception_debug(&_16$$20, "phalcon/Mvc/Model.zep", 434 TSRMLS_CC); + zephir_throw_exception_debug(&_16$$20, "phalcon/Mvc/Model.zep", 432 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -826,7 +823,7 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { if (Z_TYPE_P(dataColumnMap) == IS_ARRAY) { ZEPHIR_INIT_VAR(&dataMapped); array_init(&dataMapped); - zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 568); + zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 566); if (Z_TYPE_P(&data) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _2$$3, _3$$3, _0$$3) { @@ -883,7 +880,7 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { } ZEPHIR_CALL_METHOD(&_4, &metaData, "getattributes", NULL, 0, this_ptr); zephir_check_call_status(); - zephir_is_iterable(&_4, 0, "phalcon/Mvc/Model.zep", 625); + zephir_is_iterable(&_4, 0, "phalcon/Mvc/Model.zep", 623); if (Z_TYPE_P(&_4) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_4), _5) { @@ -894,7 +891,7 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { _7$$12 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_7$$12) { - ZEPHIR_CALL_SELF(&_8$$13, "caseinsensitivecolumnmap", &_9, 437, &columnMap, &attribute); + ZEPHIR_CALL_SELF(&_8$$13, "caseinsensitivecolumnmap", &_9, 435, &columnMap, &attribute); zephir_check_call_status(); ZEPHIR_CPY_WRT(&attribute, &_8$$13); } @@ -908,7 +905,7 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { ZEPHIR_CONCAT_SVS(&_11$$16, "Column '", &attribute, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_10$$16, "__construct", &_12, 5, &_11$$16); zephir_check_call_status(); - zephir_throw_exception_debug(&_10$$16, "phalcon/Mvc/Model.zep", 599 TSRMLS_CC); + zephir_throw_exception_debug(&_10$$16, "phalcon/Mvc/Model.zep", 597 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -926,7 +923,7 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { } _13$$18 = zephir_is_true(&disableAssignSetters); if (!(_13$$18)) { - ZEPHIR_CALL_METHOD(&_14$$18, this_ptr, "_possiblesetter", &_15, 435, &attributeField, &value); + ZEPHIR_CALL_METHOD(&_14$$18, this_ptr, "_possiblesetter", &_15, 433, &attributeField, &value); zephir_check_call_status(); _13$$18 = !zephir_is_true(&_14$$18); } @@ -951,7 +948,7 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { _16$$22 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_16$$22) { - ZEPHIR_CALL_SELF(&_17$$23, "caseinsensitivecolumnmap", &_9, 437, &columnMap, &attribute); + ZEPHIR_CALL_SELF(&_17$$23, "caseinsensitivecolumnmap", &_9, 435, &columnMap, &attribute); zephir_check_call_status(); ZEPHIR_CPY_WRT(&attribute, &_17$$23); } @@ -965,7 +962,7 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { ZEPHIR_CONCAT_SVS(&_19$$26, "Column '", &attribute, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_18$$26, "__construct", &_12, 5, &_19$$26); zephir_check_call_status(); - zephir_throw_exception_debug(&_18$$26, "phalcon/Mvc/Model.zep", 599 TSRMLS_CC); + zephir_throw_exception_debug(&_18$$26, "phalcon/Mvc/Model.zep", 597 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -983,7 +980,7 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { } _20$$28 = zephir_is_true(&disableAssignSetters); if (!(_20$$28)) { - ZEPHIR_CALL_METHOD(&_21$$28, this_ptr, "_possiblesetter", &_15, 435, &attributeField, &value); + ZEPHIR_CALL_METHOD(&_21$$28, this_ptr, "_possiblesetter", &_15, 433, &attributeField, &value); zephir_check_call_status(); _20$$28 = !zephir_is_true(&_21$$28); } @@ -1110,7 +1107,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResult) { ZVAL_LONG(&_0, dirtyState); ZEPHIR_CALL_METHOD(NULL, &instance, "setdirtystate", NULL, 0, &_0); zephir_check_call_status(); - zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 703); + zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 701); if (Z_TYPE_P(&data) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _3, _4, _1) { @@ -1123,7 +1120,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResult) { ZEPHIR_INIT_NVAR(&value); ZVAL_COPY(&value, _1); if (UNEXPECTED(Z_TYPE_P(&key) != IS_STRING)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Invalid key in array data provided to dumpResult()", "phalcon/Mvc/Model.zep", 693); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Invalid key in array data provided to dumpResult()", "phalcon/Mvc/Model.zep", 691); return; } zephir_update_property_zval_zval(&instance, &key, &value TSRMLS_CC); @@ -1142,7 +1139,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResult) { ZEPHIR_CALL_METHOD(&value, &data, "current", NULL, 0); zephir_check_call_status(); if (UNEXPECTED(Z_TYPE_P(&key) != IS_STRING)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Invalid key in array data provided to dumpResult()", "phalcon/Mvc/Model.zep", 693); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Invalid key in array data provided to dumpResult()", "phalcon/Mvc/Model.zep", 691); return; } zephir_update_property_zval_zval(&instance, &key, &value TSRMLS_CC); @@ -1235,7 +1232,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { ZVAL_LONG(&_0, dirtyState); ZEPHIR_CALL_METHOD(NULL, &instance, "setdirtystate", NULL, 0, &_0); zephir_check_call_status(); - zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 806); + zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 804); if (Z_TYPE_P(&data) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _3, _4, _1) { @@ -1263,7 +1260,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { ZEPHIR_CONCAT_SVS(&_6$$7, "Column '", &key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_5$$7, "__construct", &_7, 5, &_6$$7); zephir_check_call_status(); - zephir_throw_exception_debug(&_5$$7, "phalcon/Mvc/Model.zep", 751 TSRMLS_CC); + zephir_throw_exception_debug(&_5$$7, "phalcon/Mvc/Model.zep", 749 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1278,7 +1275,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { _8$$3 = Z_TYPE_P(&value) != IS_NULL; } if (_8$$3) { - zephir_array_fetch_long(&_9$$9, &attribute, 1, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 764 TSRMLS_CC); + zephir_array_fetch_long(&_9$$9, &attribute, 1, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 762 TSRMLS_CC); do { if (ZEPHIR_IS_LONG(&_9$$9, 0)) { ZVAL_LONG(&_10$$10, 10); @@ -1301,7 +1298,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { } while(0); } else { - zephir_array_fetch_long(&_12$$14, &attribute, 1, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 784 TSRMLS_CC); + zephir_array_fetch_long(&_12$$14, &attribute, 1, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 782 TSRMLS_CC); do { if (ZEPHIR_IS_LONG(&_12$$14, 0) || ZEPHIR_IS_LONG(&_12$$14, 9) || ZEPHIR_IS_LONG(&_12$$14, 3) || ZEPHIR_IS_LONG(&_12$$14, 7) || ZEPHIR_IS_LONG(&_12$$14, 8)) { ZEPHIR_INIT_NVAR(&castValue); @@ -1314,7 +1311,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { } ZEPHIR_OBS_NVAR(&attributeName); - zephir_array_fetch_long(&attributeName, &attribute, 0, PH_NOISY, "phalcon/Mvc/Model.zep", 799 TSRMLS_CC); + zephir_array_fetch_long(&attributeName, &attribute, 0, PH_NOISY, "phalcon/Mvc/Model.zep", 797 TSRMLS_CC); zephir_update_property_zval_zval(&instance, &attributeName, &castValue TSRMLS_CC); } ZEND_HASH_FOREACH_END(); } else { @@ -1346,7 +1343,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { ZEPHIR_CONCAT_SVS(&_14$$21, "Column '", &key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_13$$21, "__construct", &_7, 5, &_14$$21); zephir_check_call_status(); - zephir_throw_exception_debug(&_13$$21, "phalcon/Mvc/Model.zep", 751 TSRMLS_CC); + zephir_throw_exception_debug(&_13$$21, "phalcon/Mvc/Model.zep", 749 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1361,7 +1358,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { _15$$17 = Z_TYPE_P(&value) != IS_NULL; } if (_15$$17) { - zephir_array_fetch_long(&_16$$23, &attribute, 1, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 764 TSRMLS_CC); + zephir_array_fetch_long(&_16$$23, &attribute, 1, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 762 TSRMLS_CC); do { if (ZEPHIR_IS_LONG(&_16$$23, 0)) { ZVAL_LONG(&_17$$24, 10); @@ -1384,7 +1381,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { } while(0); } else { - zephir_array_fetch_long(&_18$$28, &attribute, 1, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 784 TSRMLS_CC); + zephir_array_fetch_long(&_18$$28, &attribute, 1, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 782 TSRMLS_CC); do { if (ZEPHIR_IS_LONG(&_18$$28, 0) || ZEPHIR_IS_LONG(&_18$$28, 9) || ZEPHIR_IS_LONG(&_18$$28, 3) || ZEPHIR_IS_LONG(&_18$$28, 7) || ZEPHIR_IS_LONG(&_18$$28, 8)) { ZEPHIR_INIT_NVAR(&castValue); @@ -1397,7 +1394,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { } ZEPHIR_OBS_NVAR(&attributeName); - zephir_array_fetch_long(&attributeName, &attribute, 0, PH_NOISY, "phalcon/Mvc/Model.zep", 799 TSRMLS_CC); + zephir_array_fetch_long(&attributeName, &attribute, 0, PH_NOISY, "phalcon/Mvc/Model.zep", 797 TSRMLS_CC); zephir_update_property_zval_zval(&instance, &attributeName, &castValue TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, &data, "next", NULL, 0); zephir_check_call_status(); @@ -1468,7 +1465,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { } ZEPHIR_INIT_VAR(&hydrateArray); array_init(&hydrateArray); - zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 887); + zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 885); if (Z_TYPE_P(&data) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _2, _3, _0) { @@ -1489,7 +1486,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { _4$$7 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_4$$7) { - ZEPHIR_CALL_SELF(&_5$$8, "caseinsensitivecolumnmap", &_6, 437, columnMap, &key); + ZEPHIR_CALL_SELF(&_5$$8, "caseinsensitivecolumnmap", &_6, 435, columnMap, &key); zephir_check_call_status(); ZEPHIR_CPY_WRT(&key, &_5$$8); } @@ -1502,7 +1499,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { ZEPHIR_CONCAT_SVS(&_8$$10, "Column '", &key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_7$$10, "__construct", &_9, 5, &_8$$10); zephir_check_call_status(); - zephir_throw_exception_debug(&_7$$10, "phalcon/Mvc/Model.zep", 866 TSRMLS_CC); + zephir_throw_exception_debug(&_7$$10, "phalcon/Mvc/Model.zep", 864 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1510,7 +1507,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { } if (Z_TYPE_P(&attribute) == IS_ARRAY) { ZEPHIR_OBS_NVAR(&attributeName); - zephir_array_fetch_long(&attributeName, &attribute, 0, PH_NOISY, "phalcon/Mvc/Model.zep", 876 TSRMLS_CC); + zephir_array_fetch_long(&attributeName, &attribute, 0, PH_NOISY, "phalcon/Mvc/Model.zep", 874 TSRMLS_CC); } else { ZEPHIR_CPY_WRT(&attributeName, &attribute); } @@ -1541,7 +1538,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { _10$$16 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_10$$16) { - ZEPHIR_CALL_SELF(&_11$$17, "caseinsensitivecolumnmap", &_6, 437, columnMap, &key); + ZEPHIR_CALL_SELF(&_11$$17, "caseinsensitivecolumnmap", &_6, 435, columnMap, &key); zephir_check_call_status(); ZEPHIR_CPY_WRT(&key, &_11$$17); } @@ -1554,7 +1551,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { ZEPHIR_CONCAT_SVS(&_13$$19, "Column '", &key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_12$$19, "__construct", &_9, 5, &_13$$19); zephir_check_call_status(); - zephir_throw_exception_debug(&_12$$19, "phalcon/Mvc/Model.zep", 866 TSRMLS_CC); + zephir_throw_exception_debug(&_12$$19, "phalcon/Mvc/Model.zep", 864 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1562,7 +1559,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { } if (Z_TYPE_P(&attribute) == IS_ARRAY) { ZEPHIR_OBS_NVAR(&attributeName); - zephir_array_fetch_long(&attributeName, &attribute, 0, PH_NOISY, "phalcon/Mvc/Model.zep", 876 TSRMLS_CC); + zephir_array_fetch_long(&attributeName, &attribute, 0, PH_NOISY, "phalcon/Mvc/Model.zep", 874 TSRMLS_CC); } else { ZEPHIR_CPY_WRT(&attributeName, &attribute); } @@ -1577,7 +1574,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { ZEPHIR_INIT_NVAR(&value); ZEPHIR_INIT_NVAR(&key); if (hydrationMode != 1) { - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_helper_arr_ce, "arraytoobject", &_14, 438, &hydrateArray); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_helper_arr_ce, "arraytoobject", &_14, 436, &hydrateArray); zephir_check_call_status(); RETURN_MM(); } @@ -1688,7 +1685,7 @@ PHP_METHOD(Phalcon_Mvc_Model, create) { ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "getreadconnection", NULL, 439); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "getreadconnection", NULL, 437); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_0, this_ptr, "_exists", NULL, 0, &metaData, &_1); zephir_check_call_status(); @@ -1787,7 +1784,7 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&writeConnection, this_ptr, "getwriteconnection", NULL, 440); + ZEPHIR_CALL_METHOD(&writeConnection, this_ptr, "getwriteconnection", NULL, 438); zephir_check_call_status(); ZEPHIR_INIT_ZVAL_NREF(_0); ZVAL_LONG(&_0, 3); @@ -1796,7 +1793,7 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { array_init(&_1); zephir_update_property_zval(this_ptr, SL("errorMessages"), &_1); if (ZEPHIR_GLOBAL(orm).virtual_foreign_keys) { - ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "_checkforeignkeysreverserestrict", NULL, 441); + ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "_checkforeignkeysreverserestrict", NULL, 439); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_2$$3)) { RETURN_MM_BOOL(0); @@ -1820,10 +1817,10 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZVAL_NULL(&columnMap); } if (UNEXPECTED(!(zephir_fast_count_int(&primaryKeys TSRMLS_CC)))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/Mvc/Model.zep", 1041); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/Mvc/Model.zep", 1039); return; } - zephir_is_iterable(&primaryKeys, 0, "phalcon/Mvc/Model.zep", 1089); + zephir_is_iterable(&primaryKeys, 0, "phalcon/Mvc/Model.zep", 1087); if (Z_TYPE_P(&primaryKeys) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&primaryKeys), _3) { @@ -1837,7 +1834,7 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(&_6$$9, "Column '", &primaryKey, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, &_5$$9, "__construct", &_7, 5, &_6$$9); zephir_check_call_status(); - zephir_throw_exception_debug(&_5$$9, "phalcon/Mvc/Model.zep", 1055 TSRMLS_CC); + zephir_throw_exception_debug(&_5$$9, "phalcon/Mvc/Model.zep", 1053 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1850,7 +1847,7 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(&_9$$11, "Column '", &primaryKey, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_8$$11, "__construct", &_7, 5, &_9$$11); zephir_check_call_status(); - zephir_throw_exception_debug(&_8$$11, "phalcon/Mvc/Model.zep", 1065 TSRMLS_CC); + zephir_throw_exception_debug(&_8$$11, "phalcon/Mvc/Model.zep", 1063 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1865,17 +1862,17 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(&_11$$13, "Cannot delete the record because the primary key attribute: '", &attributeField, "' wasn't set"); ZEPHIR_CALL_METHOD(NULL, &_10$$13, "__construct", &_7, 5, &_11$$13); zephir_check_call_status(); - zephir_throw_exception_debug(&_10$$13, "phalcon/Mvc/Model.zep", 1078 TSRMLS_CC); + zephir_throw_exception_debug(&_10$$13, "phalcon/Mvc/Model.zep", 1076 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1084); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1082); ZEPHIR_CALL_METHOD(&_12$$8, &writeConnection, "escapeidentifier", &_13, 0, &primaryKey); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_14$$8); ZEPHIR_CONCAT_VS(&_14$$8, &_12$$8, " = ?"); - zephir_array_append(&conditions, &_14$$8, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1085); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1086); + zephir_array_append(&conditions, &_14$$8, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1083); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1084); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &primaryKeys, "rewind", NULL, 0); @@ -1896,7 +1893,7 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(&_16$$15, "Column '", &primaryKey, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, &_15$$15, "__construct", &_7, 5, &_16$$15); zephir_check_call_status(); - zephir_throw_exception_debug(&_15$$15, "phalcon/Mvc/Model.zep", 1055 TSRMLS_CC); + zephir_throw_exception_debug(&_15$$15, "phalcon/Mvc/Model.zep", 1053 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1909,7 +1906,7 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(&_18$$17, "Column '", &primaryKey, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_17$$17, "__construct", &_7, 5, &_18$$17); zephir_check_call_status(); - zephir_throw_exception_debug(&_17$$17, "phalcon/Mvc/Model.zep", 1065 TSRMLS_CC); + zephir_throw_exception_debug(&_17$$17, "phalcon/Mvc/Model.zep", 1063 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1924,17 +1921,17 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(&_20$$19, "Cannot delete the record because the primary key attribute: '", &attributeField, "' wasn't set"); ZEPHIR_CALL_METHOD(NULL, &_19$$19, "__construct", &_7, 5, &_20$$19); zephir_check_call_status(); - zephir_throw_exception_debug(&_19$$19, "phalcon/Mvc/Model.zep", 1078 TSRMLS_CC); + zephir_throw_exception_debug(&_19$$19, "phalcon/Mvc/Model.zep", 1076 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1084); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1082); ZEPHIR_CALL_METHOD(&_21$$14, &writeConnection, "escapeidentifier", &_22, 0, &primaryKey); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_23$$14); ZEPHIR_CONCAT_VS(&_23$$14, &_21$$14, " = ?"); - zephir_array_append(&conditions, &_23$$14, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1085); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1086); + zephir_array_append(&conditions, &_23$$14, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1083); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1084); ZEPHIR_CALL_METHOD(NULL, &primaryKeys, "next", NULL, 0); zephir_check_call_status(); } @@ -1958,9 +1955,9 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { RETURN_MM_BOOL(1); } } - ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 442); + ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 440); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 443); + ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 441); zephir_check_call_status(); if (zephir_is_true(&schema)) { ZEPHIR_INIT_VAR(&table); @@ -1975,7 +1972,7 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CALL_METHOD(&success, &writeConnection, "delete", NULL, 0, &table, &_27, &values, &bindTypes); zephir_check_call_status(); if (ZEPHIR_GLOBAL(orm).virtual_foreign_keys) { - ZEPHIR_CALL_METHOD(&_28$$25, this_ptr, "_checkforeignkeysreversecascade", NULL, 444); + ZEPHIR_CALL_METHOD(&_28$$25, this_ptr, "_checkforeignkeysreversecascade", NULL, 442); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_28$$25)) { RETURN_MM_BOOL(0); @@ -2208,12 +2205,12 @@ PHP_METHOD(Phalcon_Mvc_Model, find) { ZEPHIR_INIT_VAR(¶ms); array_init(¶ms); if (Z_TYPE_P(parameters) != IS_NULL) { - zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1332); + zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1330); } } else { ZEPHIR_CPY_WRT(¶ms, parameters); } - ZEPHIR_CALL_STATIC(&query, "getpreparedquery", &_0, 445, ¶ms); + ZEPHIR_CALL_STATIC(&query, "getpreparedquery", &_0, 443, ¶ms); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&resultset, &query, "execute", NULL, 0); zephir_check_call_status(); @@ -2336,11 +2333,11 @@ PHP_METHOD(Phalcon_Mvc_Model, findFirst) { zephir_array_fast_append(&_1$$5, parameters); ZEPHIR_CPY_WRT(¶ms, &_1$$5); } else { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Parameters passed must be of type array, string, numeric or null", "phalcon/Mvc/Model.zep", 1438); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Parameters passed must be of type array, string, numeric or null", "phalcon/Mvc/Model.zep", 1436); return; } ZVAL_LONG(&_3, 1); - ZEPHIR_CALL_STATIC(&query, "getpreparedquery", &_2, 445, ¶ms, &_3); + ZEPHIR_CALL_STATIC(&query, "getpreparedquery", &_2, 443, ¶ms, &_3); zephir_check_call_status(); ZVAL_BOOL(&_3, 1); ZEPHIR_CALL_METHOD(NULL, &query, "setuniquerow", NULL, 0, &_3); @@ -2479,7 +2476,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getChangedFields) { zephir_read_property(&_0, this_ptr, SL("snapshot"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&snapshot, &_0); if (UNEXPECTED(Z_TYPE_P(&snapshot) != IS_ARRAY)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record doesn't have a valid data snapshot", "phalcon/Mvc/Model.zep", 1524); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record doesn't have a valid data snapshot", "phalcon/Mvc/Model.zep", 1522); return; } ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); @@ -2495,7 +2492,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getChangedFields) { ZEPHIR_INIT_VAR(&changed); array_init(&changed); ZEPHIR_INIT_VAR(&_1); - zephir_is_iterable(&allAttributes, 0, "phalcon/Mvc/Model.zep", 1582); + zephir_is_iterable(&allAttributes, 0, "phalcon/Mvc/Model.zep", 1580); if (Z_TYPE_P(&allAttributes) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&allAttributes), _4, _5, _2) { @@ -2508,17 +2505,17 @@ PHP_METHOD(Phalcon_Mvc_Model, getChangedFields) { ZEPHIR_INIT_NVAR(&_1); ZVAL_COPY(&_1, _2); if (!(zephir_array_isset(&snapshot, &name))) { - zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1557); + zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1555); continue; } ZEPHIR_OBS_NVAR(&value); if (!(zephir_fetch_property_zval(&value, this_ptr, &name, PH_SILENT_CC))) { - zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1567); + zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1565); continue; } - zephir_array_fetch(&_6$$6, &snapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 1575 TSRMLS_CC); + zephir_array_fetch(&_6$$6, &snapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 1573 TSRMLS_CC); if (!ZEPHIR_IS_IDENTICAL(&value, &_6$$6)) { - zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1576); + zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1574); continue; } } ZEND_HASH_FOREACH_END(); @@ -2536,17 +2533,17 @@ PHP_METHOD(Phalcon_Mvc_Model, getChangedFields) { ZEPHIR_CALL_METHOD(&_1, &allAttributes, "current", NULL, 0); zephir_check_call_status(); if (!(zephir_array_isset(&snapshot, &name))) { - zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1557); + zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1555); continue; } ZEPHIR_OBS_NVAR(&value); if (!(zephir_fetch_property_zval(&value, this_ptr, &name, PH_SILENT_CC))) { - zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1567); + zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1565); continue; } - zephir_array_fetch(&_7$$10, &snapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 1575 TSRMLS_CC); + zephir_array_fetch(&_7$$10, &snapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 1573 TSRMLS_CC); if (!ZEPHIR_IS_IDENTICAL(&value, &_7$$10)) { - zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1576); + zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1574); continue; } ZEPHIR_CALL_METHOD(NULL, &allAttributes, "next", NULL, 0); @@ -2572,18 +2569,6 @@ PHP_METHOD(Phalcon_Mvc_Model, getDirtyState) { } -/** - * Returns the dependency injection container - */ -PHP_METHOD(Phalcon_Mvc_Model, getDI) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "container"); - -} - /** * Returns the custom events manager */ @@ -2663,7 +2648,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getMessages) { ZEPHIR_INIT_VAR(&filtered); array_init(&filtered); zephir_read_property(&_1$$3, this_ptr, SL("errorMessages"), PH_NOISY_CC | PH_READONLY); - zephir_is_iterable(&_1$$3, 0, "phalcon/Mvc/Model.zep", 1647); + zephir_is_iterable(&_1$$3, 0, "phalcon/Mvc/Model.zep", 1637); if (Z_TYPE_P(&_1$$3) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_1$$3), _2$$3) { @@ -2672,7 +2657,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getMessages) { ZEPHIR_CALL_METHOD(&_4$$4, &message, "getfield", NULL, 0); zephir_check_call_status(); if (ZEPHIR_IS_EQUAL(&_4$$4, filter)) { - zephir_array_append(&filtered, &message, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1643); + zephir_array_append(&filtered, &message, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1633); } } ZEND_HASH_FOREACH_END(); } else { @@ -2689,7 +2674,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getMessages) { ZEPHIR_CALL_METHOD(&_5$$6, &message, "getfield", NULL, 0); zephir_check_call_status(); if (ZEPHIR_IS_EQUAL(&_5$$6, filter)) { - zephir_array_append(&filtered, &message, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1643); + zephir_array_append(&filtered, &message, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1633); } ZEPHIR_CALL_METHOD(NULL, &_1$$3, "next", NULL, 0); zephir_check_call_status(); @@ -2743,7 +2728,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getModelsMetaData) { zephir_check_call_status(); ZEPHIR_CPY_WRT(&metaData, &_1$$3); if (UNEXPECTED(Z_TYPE_P(&metaData) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsMetadata' is not valid", "phalcon/Mvc/Model.zep", 1681); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsMetadata' is not valid", "phalcon/Mvc/Model.zep", 1671); return; } zephir_update_property_zval(this_ptr, SL("modelsMetaData"), &metaData); @@ -2885,7 +2870,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getRelated) { ZEPHIR_CONCAT_SVSVS(&_3$$3, "There is no defined relations for the model '", &className, "' using alias '", &alias, "'"); ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 5, &_3$$3); zephir_check_call_status(); - zephir_throw_exception_debug(&_2$$3, "phalcon/Mvc/Model.zep", 1760 TSRMLS_CC); + zephir_throw_exception_debug(&_2$$3, "phalcon/Mvc/Model.zep", 1750 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -2901,7 +2886,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getRelated) { if (_5$$4) { zephir_read_property(&_7$$5, this_ptr, SL("related"), PH_NOISY_CC | PH_READONLY); ZEPHIR_OBS_VAR(&result); - zephir_array_fetch(&result, &_7$$5, &lowerAlias, PH_NOISY, "phalcon/Mvc/Model.zep", 1772 TSRMLS_CC); + zephir_array_fetch(&result, &_7$$5, &lowerAlias, PH_NOISY, "phalcon/Mvc/Model.zep", 1762 TSRMLS_CC); } else { ZEPHIR_CALL_METHOD(&result, &manager, "getrelationrecords", NULL, 0, &relation, this_ptr, arguments); zephir_check_call_status(); @@ -3057,21 +3042,21 @@ PHP_METHOD(Phalcon_Mvc_Model, getUpdatedFields) { zephir_read_property(&_0, this_ptr, SL("oldSnapshot"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&oldSnapshot, &_0); if (UNEXPECTED(!(ZEPHIR_GLOBAL(orm).update_snapshot_on_save))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Update snapshot on save must be enabled for this method to work properly", "phalcon/Mvc/Model.zep", 1871); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Update snapshot on save must be enabled for this method to work properly", "phalcon/Mvc/Model.zep", 1861); return; } if (UNEXPECTED(Z_TYPE_P(&snapshot) != IS_ARRAY)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record doesn't have a valid data snapshot", "phalcon/Mvc/Model.zep", 1877); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record doesn't have a valid data snapshot", "phalcon/Mvc/Model.zep", 1867); return; } zephir_read_property(&_0, this_ptr, SL("dirtyState"), PH_NOISY_CC | PH_READONLY); if (UNEXPECTED(!ZEPHIR_IS_LONG(&_0, 0))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Change checking cannot be performed because the object has not been persisted or is deleted", "phalcon/Mvc/Model.zep", 1886); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Change checking cannot be performed because the object has not been persisted or is deleted", "phalcon/Mvc/Model.zep", 1876); return; } ZEPHIR_INIT_VAR(&updated); array_init(&updated); - zephir_is_iterable(&snapshot, 0, "phalcon/Mvc/Model.zep", 1901); + zephir_is_iterable(&snapshot, 0, "phalcon/Mvc/Model.zep", 1891); if (Z_TYPE_P(&snapshot) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&snapshot), _3, _4, _1) { @@ -3085,11 +3070,11 @@ PHP_METHOD(Phalcon_Mvc_Model, getUpdatedFields) { ZVAL_COPY(&value, _1); _5$$6 = !(zephir_array_isset(&oldSnapshot, &name)); if (!(_5$$6)) { - zephir_array_fetch(&_6$$6, &oldSnapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 1896 TSRMLS_CC); + zephir_array_fetch(&_6$$6, &oldSnapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 1886 TSRMLS_CC); _5$$6 = !ZEPHIR_IS_IDENTICAL(&value, &_6$$6); } if (_5$$6) { - zephir_array_append(&updated, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1897); + zephir_array_append(&updated, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1887); } } ZEND_HASH_FOREACH_END(); } else { @@ -3107,11 +3092,11 @@ PHP_METHOD(Phalcon_Mvc_Model, getUpdatedFields) { zephir_check_call_status(); _7$$8 = !(zephir_array_isset(&oldSnapshot, &name)); if (!(_7$$8)) { - zephir_array_fetch(&_8$$8, &oldSnapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 1896 TSRMLS_CC); + zephir_array_fetch(&_8$$8, &oldSnapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 1886 TSRMLS_CC); _7$$8 = !ZEPHIR_IS_IDENTICAL(&value, &_8$$8); } if (_7$$8) { - zephir_array_append(&updated, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1897); + zephir_array_append(&updated, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1887); } ZEPHIR_CALL_METHOD(NULL, &snapshot, "next", NULL, 0); zephir_check_call_status(); @@ -3495,12 +3480,12 @@ PHP_METHOD(Phalcon_Mvc_Model, query) { ZEPHIR_CALL_METHOD(NULL, &criteria, "__construct", NULL, 0); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, &criteria, "setdi", NULL, 446, container); + ZEPHIR_CALL_METHOD(NULL, &criteria, "setdi", NULL, 444, container); zephir_check_call_status(); } ZEPHIR_INIT_VAR(&_3); zephir_get_called_class(&_3 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &criteria, "setmodelname", NULL, 447, &_3); + ZEPHIR_CALL_METHOD(NULL, &criteria, "setmodelname", NULL, 445, &_3); zephir_check_call_status(); RETURN_CCTOR(&criteria); @@ -3590,18 +3575,18 @@ PHP_METHOD(Phalcon_Mvc_Model, refresh) { zephir_read_property(&_0, this_ptr, SL("dirtyState"), PH_NOISY_CC | PH_READONLY); if (UNEXPECTED(!ZEPHIR_IS_LONG(&_0, 0))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/Mvc/Model.zep", 2156); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/Mvc/Model.zep", 2146); return; } ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&readConnection, this_ptr, "getreadconnection", NULL, 439); + ZEPHIR_CALL_METHOD(&readConnection, this_ptr, "getreadconnection", NULL, 437); zephir_check_call_status(); zephir_read_property(&_1, this_ptr, SL("modelsManager"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&manager, &_1); - ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 442); + ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 440); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 443); + ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 441); zephir_check_call_status(); if (zephir_is_true(&schema)) { ZEPHIR_INIT_VAR(&table); @@ -3617,7 +3602,7 @@ PHP_METHOD(Phalcon_Mvc_Model, refresh) { ZEPHIR_CALL_METHOD(&_2$$6, this_ptr, "_exists", NULL, 0, &metaData, &readConnection); zephir_check_call_status(); if (UNEXPECTED(!zephir_is_true(&_2$$6))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/Mvc/Model.zep", 2181); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/Mvc/Model.zep", 2171); return; } zephir_read_property(&_3$$6, this_ptr, SL("uniqueKey"), PH_NOISY_CC | PH_READONLY); @@ -3626,14 +3611,14 @@ PHP_METHOD(Phalcon_Mvc_Model, refresh) { zephir_read_property(&_1, this_ptr, SL("uniqueParams"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&uniqueParams, &_1); if (UNEXPECTED(Z_TYPE_P(&uniqueParams) != IS_ARRAY)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/Mvc/Model.zep", 2192); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/Mvc/Model.zep", 2182); return; } ZEPHIR_INIT_VAR(&fields); array_init(&fields); ZEPHIR_CALL_METHOD(&_4, &metaData, "getattributes", NULL, 0, this_ptr); zephir_check_call_status(); - zephir_is_iterable(&_4, 0, "phalcon/Mvc/Model.zep", 2207); + zephir_is_iterable(&_4, 0, "phalcon/Mvc/Model.zep", 2197); if (Z_TYPE_P(&_4) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_4), _5) { @@ -3642,7 +3627,7 @@ PHP_METHOD(Phalcon_Mvc_Model, refresh) { ZEPHIR_INIT_NVAR(&_7$$9); zephir_create_array(&_7$$9, 1, 0 TSRMLS_CC); zephir_array_fast_append(&_7$$9, &attribute); - zephir_array_append(&fields, &_7$$9, PH_SEPARATE, "phalcon/Mvc/Model.zep", 2201); + zephir_array_append(&fields, &_7$$9, PH_SEPARATE, "phalcon/Mvc/Model.zep", 2191); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &_4, "rewind", NULL, 0); @@ -3658,7 +3643,7 @@ PHP_METHOD(Phalcon_Mvc_Model, refresh) { ZEPHIR_INIT_NVAR(&_8$$10); zephir_create_array(&_8$$10, 1, 0 TSRMLS_CC); zephir_array_fast_append(&_8$$10, &attribute); - zephir_array_append(&fields, &_8$$10, PH_SEPARATE, "phalcon/Mvc/Model.zep", 2201); + zephir_array_append(&fields, &_8$$10, PH_SEPARATE, "phalcon/Mvc/Model.zep", 2191); ZEPHIR_CALL_METHOD(NULL, &_4, "next", NULL, 0); zephir_check_call_status(); } @@ -3760,7 +3745,7 @@ PHP_METHOD(Phalcon_Mvc_Model, save) { ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&writeConnection, this_ptr, "getwriteconnection", NULL, 440); + ZEPHIR_CALL_METHOD(&writeConnection, this_ptr, "getwriteconnection", NULL, 438); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "prepareSave"); @@ -3776,9 +3761,9 @@ PHP_METHOD(Phalcon_Mvc_Model, save) { RETURN_MM_BOOL(0); } } - ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 442); + ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 440); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 443); + ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 441); zephir_check_call_status(); if (zephir_is_true(&schema)) { ZEPHIR_INIT_VAR(&table); @@ -3788,7 +3773,7 @@ PHP_METHOD(Phalcon_Mvc_Model, save) { } else { ZEPHIR_CPY_WRT(&table, &source); } - ZEPHIR_CALL_METHOD(&readConnection, this_ptr, "getreadconnection", NULL, 439); + ZEPHIR_CALL_METHOD(&readConnection, this_ptr, "getreadconnection", NULL, 437); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&exists, this_ptr, "_exists", NULL, 0, &metaData, &readConnection); zephir_check_call_status(); @@ -3819,9 +3804,9 @@ PHP_METHOD(Phalcon_Mvc_Model, save) { object_init_ex(&_7$$11, phalcon_mvc_model_validationfailed_ce); ZEPHIR_CALL_METHOD(&_8$$11, this_ptr, "getmessages", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_7$$11, "__construct", NULL, 448, this_ptr, &_8$$11); + ZEPHIR_CALL_METHOD(NULL, &_7$$11, "__construct", NULL, 446, this_ptr, &_8$$11); zephir_check_call_status(); - zephir_throw_exception_debug(&_7$$11, "phalcon/Mvc/Model.zep", 2356 TSRMLS_CC); + zephir_throw_exception_debug(&_7$$11, "phalcon/Mvc/Model.zep", 2346 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3971,7 +3956,7 @@ PHP_METHOD(Phalcon_Mvc_Model, unserialize) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 5, &_2$$4); zephir_check_call_status(); - zephir_throw_exception_debug(&_1$$4, "phalcon/Mvc/Model.zep", 2477 TSRMLS_CC); + zephir_throw_exception_debug(&_1$$4, "phalcon/Mvc/Model.zep", 2467 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3982,7 +3967,7 @@ PHP_METHOD(Phalcon_Mvc_Model, unserialize) { zephir_check_call_status(); ZEPHIR_CPY_WRT(&manager, &_5$$3); if (UNEXPECTED(Z_TYPE_P(&manager) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsManager' is not valid", "phalcon/Mvc/Model.zep", 2493); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsManager' is not valid", "phalcon/Mvc/Model.zep", 2483); return; } zephir_update_property_zval(this_ptr, SL("modelsManager"), &manager); @@ -3993,13 +3978,13 @@ PHP_METHOD(Phalcon_Mvc_Model, unserialize) { if (zephir_is_true(&_5$$3)) { if (zephir_array_isset_string_fetch(&snapshot, &attributes, SL("snapshot"), 1)) { zephir_update_property_zval(this_ptr, SL("snapshot"), &snapshot); - zephir_array_fetch_string(&_7$$7, &attributes, SL("_attributes"), PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 2509 TSRMLS_CC); + zephir_array_fetch_string(&_7$$7, &attributes, SL("_attributes"), PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 2499 TSRMLS_CC); ZEPHIR_CPY_WRT(&attributes, &_7$$7); } else { zephir_update_property_zval(this_ptr, SL("snapshot"), &attributes); } } - zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 2521); + zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 2511); if (Z_TYPE_P(&attributes) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&attributes), _10$$3, _11$$3, _8$$3) { @@ -4097,24 +4082,6 @@ PHP_METHOD(Phalcon_Mvc_Model, setDirtyState) { } -/** - * Sets the dependency injection container - */ -PHP_METHOD(Phalcon_Mvc_Model, setDI) { - - zval *container, container_sub; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&container_sub); - - zephir_fetch_params_without_memory_grow(1, 0, &container); - - - - zephir_update_property_zval(this_ptr, SL("container"), container); - -} - /** * Sets a custom events manager */ @@ -4225,7 +4192,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setOldSnapshotData) { if (Z_TYPE_P(columnMap) == IS_ARRAY) { ZEPHIR_INIT_VAR(&snapshot); array_init(&snapshot); - zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 2630); + zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 2612); if (Z_TYPE_P(&data) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _2$$3, _3$$3, _0$$3) { @@ -4249,7 +4216,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setOldSnapshotData) { ZEPHIR_CONCAT_SVS(&_5$$7, "Column '", &key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_4$$7, "__construct", &_6, 5, &_5$$7); zephir_check_call_status(); - zephir_throw_exception_debug(&_4$$7, "phalcon/Mvc/Model.zep", 2610 TSRMLS_CC); + zephir_throw_exception_debug(&_4$$7, "phalcon/Mvc/Model.zep", 2592 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -4265,7 +4232,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setOldSnapshotData) { ZEPHIR_CONCAT_SVS(&_8$$10, "Column '", &key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_7$$10, "__construct", &_6, 5, &_8$$10); zephir_check_call_status(); - zephir_throw_exception_debug(&_7$$10, "phalcon/Mvc/Model.zep", 2621 TSRMLS_CC); + zephir_throw_exception_debug(&_7$$10, "phalcon/Mvc/Model.zep", 2603 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -4299,7 +4266,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setOldSnapshotData) { ZEPHIR_CONCAT_SVS(&_10$$14, "Column '", &key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_9$$14, "__construct", &_6, 5, &_10$$14); zephir_check_call_status(); - zephir_throw_exception_debug(&_9$$14, "phalcon/Mvc/Model.zep", 2610 TSRMLS_CC); + zephir_throw_exception_debug(&_9$$14, "phalcon/Mvc/Model.zep", 2592 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -4315,7 +4282,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setOldSnapshotData) { ZEPHIR_CONCAT_SVS(&_12$$17, "Column '", &key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_11$$17, "__construct", &_6, 5, &_12$$17); zephir_check_call_status(); - zephir_throw_exception_debug(&_11$$17, "phalcon/Mvc/Model.zep", 2621 TSRMLS_CC); + zephir_throw_exception_debug(&_11$$17, "phalcon/Mvc/Model.zep", 2603 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -4388,7 +4355,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { if (Z_TYPE_P(columnMap) == IS_ARRAY) { ZEPHIR_INIT_VAR(&snapshot); array_init(&snapshot); - zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 2695); + zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 2677); if (Z_TYPE_P(&data) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _2$$3, _3$$3, _0$$3) { @@ -4408,7 +4375,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { _4$$4 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_4$$4) { - ZEPHIR_CALL_SELF(&_5$$6, "caseinsensitivecolumnmap", &_6, 437, columnMap, &key); + ZEPHIR_CALL_SELF(&_5$$6, "caseinsensitivecolumnmap", &_6, 435, columnMap, &key); zephir_check_call_status(); ZEPHIR_CPY_WRT(&key, &_5$$6); } @@ -4421,7 +4388,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { ZEPHIR_CONCAT_SVS(&_8$$8, "Column '", &key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_7$$8, "__construct", &_9, 5, &_8$$8); zephir_check_call_status(); - zephir_throw_exception_debug(&_7$$8, "phalcon/Mvc/Model.zep", 2675 TSRMLS_CC); + zephir_throw_exception_debug(&_7$$8, "phalcon/Mvc/Model.zep", 2657 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -4437,7 +4404,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { ZEPHIR_CONCAT_SVS(&_11$$11, "Column '", &key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_10$$11, "__construct", &_9, 5, &_11$$11); zephir_check_call_status(); - zephir_throw_exception_debug(&_10$$11, "phalcon/Mvc/Model.zep", 2686 TSRMLS_CC); + zephir_throw_exception_debug(&_10$$11, "phalcon/Mvc/Model.zep", 2668 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -4467,7 +4434,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { _12$$12 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_12$$12) { - ZEPHIR_CALL_SELF(&_13$$14, "caseinsensitivecolumnmap", &_6, 437, columnMap, &key); + ZEPHIR_CALL_SELF(&_13$$14, "caseinsensitivecolumnmap", &_6, 435, columnMap, &key); zephir_check_call_status(); ZEPHIR_CPY_WRT(&key, &_13$$14); } @@ -4480,7 +4447,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { ZEPHIR_CONCAT_SVS(&_15$$16, "Column '", &key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_14$$16, "__construct", &_9, 5, &_15$$16); zephir_check_call_status(); - zephir_throw_exception_debug(&_14$$16, "phalcon/Mvc/Model.zep", 2675 TSRMLS_CC); + zephir_throw_exception_debug(&_14$$16, "phalcon/Mvc/Model.zep", 2657 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -4496,7 +4463,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { ZEPHIR_CONCAT_SVS(&_17$$19, "Column '", &key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_16$$19, "__construct", &_9, 5, &_17$$19); zephir_check_call_status(); - zephir_throw_exception_debug(&_16$$19, "phalcon/Mvc/Model.zep", 2686 TSRMLS_CC); + zephir_throw_exception_debug(&_16$$19, "phalcon/Mvc/Model.zep", 2668 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -4845,7 +4812,7 @@ PHP_METHOD(Phalcon_Mvc_Model, toArray) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_0, &metaData, "getattributes", NULL, 0, this_ptr); zephir_check_call_status(); - zephir_is_iterable(&_0, 0, "phalcon/Mvc/Model.zep", 2967); + zephir_is_iterable(&_0, 0, "phalcon/Mvc/Model.zep", 2949); if (Z_TYPE_P(&_0) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_0), _1) { @@ -4857,7 +4824,7 @@ PHP_METHOD(Phalcon_Mvc_Model, toArray) { _3$$4 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_3$$4) { - ZEPHIR_CALL_SELF(&_4$$5, "caseinsensitivecolumnmap", &_5, 437, &columnMap, &attribute); + ZEPHIR_CALL_SELF(&_4$$5, "caseinsensitivecolumnmap", &_5, 435, &columnMap, &attribute); zephir_check_call_status(); ZEPHIR_CPY_WRT(&attribute, &_4$$5); } @@ -4870,7 +4837,7 @@ PHP_METHOD(Phalcon_Mvc_Model, toArray) { ZEPHIR_CONCAT_SVS(&_7$$7, "Column '", &attribute, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_6$$7, "__construct", &_8, 5, &_7$$7); zephir_check_call_status(); - zephir_throw_exception_debug(&_6$$7, "phalcon/Mvc/Model.zep", 2945 TSRMLS_CC); + zephir_throw_exception_debug(&_6$$7, "phalcon/Mvc/Model.zep", 2927 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -4908,7 +4875,7 @@ PHP_METHOD(Phalcon_Mvc_Model, toArray) { _9$$14 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_9$$14) { - ZEPHIR_CALL_SELF(&_10$$15, "caseinsensitivecolumnmap", &_5, 437, &columnMap, &attribute); + ZEPHIR_CALL_SELF(&_10$$15, "caseinsensitivecolumnmap", &_5, 435, &columnMap, &attribute); zephir_check_call_status(); ZEPHIR_CPY_WRT(&attribute, &_10$$15); } @@ -4921,7 +4888,7 @@ PHP_METHOD(Phalcon_Mvc_Model, toArray) { ZEPHIR_CONCAT_SVS(&_12$$17, "Column '", &attribute, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_11$$17, "__construct", &_8, 5, &_12$$17); zephir_check_call_status(); - zephir_throw_exception_debug(&_11$$17, "phalcon/Mvc/Model.zep", 2945 TSRMLS_CC); + zephir_throw_exception_debug(&_11$$17, "phalcon/Mvc/Model.zep", 2927 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -4988,7 +4955,7 @@ PHP_METHOD(Phalcon_Mvc_Model, update) { if (zephir_is_true(&_0)) { ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "getreadconnection", NULL, 439); + ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "getreadconnection", NULL, 437); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_1$$3, this_ptr, "_exists", NULL, 0, &metaData, &_2$$3); zephir_check_call_status(); @@ -5123,7 +5090,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { ZEPHIR_CALL_METHOD(&belongsTo, &manager, "getbelongsto", NULL, 0, this_ptr); zephir_check_call_status(); error = 0; - zephir_is_iterable(&belongsTo, 0, "phalcon/Mvc/Model.zep", 3174); + zephir_is_iterable(&belongsTo, 0, "phalcon/Mvc/Model.zep", 3156); if (Z_TYPE_P(&belongsTo) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&belongsTo), _1) { @@ -5138,7 +5105,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { action = 1; if (zephir_array_isset_string(&foreignKey, SL("action"))) { ZEPHIR_OBS_NVAR(&_3$$5); - zephir_array_fetch_string(&_3$$5, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3069 TSRMLS_CC); + zephir_array_fetch_string(&_3$$5, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3051 TSRMLS_CC); action = zephir_get_intval(&_3$$5); } if (action != 1) { @@ -5158,7 +5125,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { ZEPHIR_CALL_METHOD(&referencedFields, &relation, "getreferencedfields", NULL, 0); zephir_check_call_status(); if (Z_TYPE_P(&fields) == IS_ARRAY) { - zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3112); + zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3094); if (Z_TYPE_P(&fields) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&fields), _8$$7, _9$$7, _6$$7) { @@ -5172,11 +5139,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { ZVAL_COPY(&field, _6$$7); ZEPHIR_OBS_NVAR(&value); zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC); - zephir_array_fetch(&_10$$8, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3104 TSRMLS_CC); + zephir_array_fetch(&_10$$8, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3086 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_11$$8); ZEPHIR_CONCAT_SVSV(&_11$$8, "[", &_10$$8, "] = ?", &position); - zephir_array_append(&conditions, &_11$$8, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3104); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3105); + zephir_array_append(&conditions, &_11$$8, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3086); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3087); if (Z_TYPE_P(&value) == IS_NULL) { numberNull++; } @@ -5196,11 +5163,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { zephir_check_call_status(); ZEPHIR_OBS_NVAR(&value); zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC); - zephir_array_fetch(&_12$$10, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3104 TSRMLS_CC); + zephir_array_fetch(&_12$$10, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3086 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_13$$10); ZEPHIR_CONCAT_SVSV(&_13$$10, "[", &_12$$10, "] = ?", &position); - zephir_array_append(&conditions, &_13$$10, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3104); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3105); + zephir_array_append(&conditions, &_13$$10, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3086); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3087); if (Z_TYPE_P(&value) == IS_NULL) { numberNull++; } @@ -5216,15 +5183,15 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { zephir_fetch_property_zval(&value, this_ptr, &fields, PH_SILENT_CC); ZEPHIR_INIT_LNVAR(_14$$12); ZEPHIR_CONCAT_SVS(&_14$$12, "[", &referencedFields, "] = ?0"); - zephir_array_append(&conditions, &_14$$12, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3116); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3117); + zephir_array_append(&conditions, &_14$$12, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3098); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3099); if (Z_TYPE_P(&value) == IS_NULL) { validateWithNulls = 1; } } ZEPHIR_OBS_NVAR(&extraConditions); if (zephir_array_isset_string_fetch(&extraConditions, &foreignKey, SL("conditions"), 0)) { - zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3128); + zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3110); } if (validateWithNulls) { ZEPHIR_OBS_NVAR(&allowNulls); @@ -5290,7 +5257,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { action = 1; if (zephir_array_isset_string(&foreignKey, SL("action"))) { ZEPHIR_OBS_NVAR(&_24$$24); - zephir_array_fetch_string(&_24$$24, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3069 TSRMLS_CC); + zephir_array_fetch_string(&_24$$24, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3051 TSRMLS_CC); action = zephir_get_intval(&_24$$24); } if (action != 1) { @@ -5310,7 +5277,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { ZEPHIR_CALL_METHOD(&referencedFields, &relation, "getreferencedfields", NULL, 0); zephir_check_call_status(); if (Z_TYPE_P(&fields) == IS_ARRAY) { - zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3112); + zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3094); if (Z_TYPE_P(&fields) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&fields), _29$$26, _30$$26, _27$$26) { @@ -5324,11 +5291,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { ZVAL_COPY(&field, _27$$26); ZEPHIR_OBS_NVAR(&value); zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC); - zephir_array_fetch(&_31$$27, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3104 TSRMLS_CC); + zephir_array_fetch(&_31$$27, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3086 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_32$$27); ZEPHIR_CONCAT_SVSV(&_32$$27, "[", &_31$$27, "] = ?", &position); - zephir_array_append(&conditions, &_32$$27, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3104); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3105); + zephir_array_append(&conditions, &_32$$27, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3086); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3087); if (Z_TYPE_P(&value) == IS_NULL) { numberNull++; } @@ -5348,11 +5315,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { zephir_check_call_status(); ZEPHIR_OBS_NVAR(&value); zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC); - zephir_array_fetch(&_33$$29, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3104 TSRMLS_CC); + zephir_array_fetch(&_33$$29, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3086 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_34$$29); ZEPHIR_CONCAT_SVSV(&_34$$29, "[", &_33$$29, "] = ?", &position); - zephir_array_append(&conditions, &_34$$29, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3104); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3105); + zephir_array_append(&conditions, &_34$$29, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3086); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3087); if (Z_TYPE_P(&value) == IS_NULL) { numberNull++; } @@ -5368,15 +5335,15 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { zephir_fetch_property_zval(&value, this_ptr, &fields, PH_SILENT_CC); ZEPHIR_INIT_LNVAR(_35$$31); ZEPHIR_CONCAT_SVS(&_35$$31, "[", &referencedFields, "] = ?0"); - zephir_array_append(&conditions, &_35$$31, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3116); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3117); + zephir_array_append(&conditions, &_35$$31, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3098); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3099); if (Z_TYPE_P(&value) == IS_NULL) { validateWithNulls = 1; } } ZEPHIR_OBS_NVAR(&extraConditions); if (zephir_array_isset_string_fetch(&extraConditions, &foreignKey, SL("conditions"), 0)) { - zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3128); + zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3110); } if (validateWithNulls) { ZEPHIR_OBS_NVAR(&allowNulls); @@ -5502,7 +5469,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { ZEPHIR_CPY_WRT(&manager, &_0); ZEPHIR_CALL_METHOD(&relations, &manager, "gethasoneandhasmany", NULL, 0, this_ptr); zephir_check_call_status(); - zephir_is_iterable(&relations, 0, "phalcon/Mvc/Model.zep", 3294); + zephir_is_iterable(&relations, 0, "phalcon/Mvc/Model.zep", 3276); if (Z_TYPE_P(&relations) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&relations), _1) { @@ -5520,7 +5487,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { } if (_3$$3) { ZEPHIR_OBS_NVAR(&_4$$5); - zephir_array_fetch_string(&_4$$5, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3226 TSRMLS_CC); + zephir_array_fetch_string(&_4$$5, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3208 TSRMLS_CC); action = zephir_get_intval(&_4$$5); } if (action != 2) { @@ -5539,7 +5506,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { ZEPHIR_INIT_NVAR(&bindParams); array_init(&bindParams); if (Z_TYPE_P(&fields) == IS_ARRAY) { - zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3259); + zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3241); if (Z_TYPE_P(&fields) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&fields), _9$$7, _10$$7, _7$$7) { @@ -5553,11 +5520,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { ZVAL_COPY(&field, _7$$7); ZEPHIR_OBS_NVAR(&value); zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC); - zephir_array_fetch(&_11$$8, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3256 TSRMLS_CC); + zephir_array_fetch(&_11$$8, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3238 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_12$$8); ZEPHIR_CONCAT_SVSV(&_12$$8, "[", &_11$$8, "] = ?", &position); - zephir_array_append(&conditions, &_12$$8, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3256); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3257); + zephir_array_append(&conditions, &_12$$8, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3238); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3239); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &fields, "rewind", NULL, 0); @@ -5574,11 +5541,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { zephir_check_call_status(); ZEPHIR_OBS_NVAR(&value); zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC); - zephir_array_fetch(&_13$$9, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3256 TSRMLS_CC); + zephir_array_fetch(&_13$$9, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3238 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_14$$9); ZEPHIR_CONCAT_SVSV(&_14$$9, "[", &_13$$9, "] = ?", &position); - zephir_array_append(&conditions, &_14$$9, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3256); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3257); + zephir_array_append(&conditions, &_14$$9, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3238); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3239); ZEPHIR_CALL_METHOD(NULL, &fields, "next", NULL, 0); zephir_check_call_status(); } @@ -5590,12 +5557,12 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { zephir_fetch_property_zval(&value, this_ptr, &fields, PH_SILENT_CC); ZEPHIR_INIT_LNVAR(_15$$10); ZEPHIR_CONCAT_SVS(&_15$$10, "[", &referencedFields, "] = ?0"); - zephir_array_append(&conditions, &_15$$10, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3262); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3263); + zephir_array_append(&conditions, &_15$$10, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3244); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3245); } ZEPHIR_OBS_NVAR(&extraConditions); if (zephir_array_isset_string_fetch(&extraConditions, &foreignKey, SL("conditions"), 0)) { - zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3270); + zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3252); } ZEPHIR_INIT_NVAR(&_16$$3); zephir_create_array(&_16$$3, 2, 0 TSRMLS_CC); @@ -5634,7 +5601,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { } if (_19$$13) { ZEPHIR_OBS_NVAR(&_20$$15); - zephir_array_fetch_string(&_20$$15, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3226 TSRMLS_CC); + zephir_array_fetch_string(&_20$$15, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3208 TSRMLS_CC); action = zephir_get_intval(&_20$$15); } if (action != 2) { @@ -5653,7 +5620,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { ZEPHIR_INIT_NVAR(&bindParams); array_init(&bindParams); if (Z_TYPE_P(&fields) == IS_ARRAY) { - zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3259); + zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3241); if (Z_TYPE_P(&fields) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&fields), _25$$17, _26$$17, _23$$17) { @@ -5667,11 +5634,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { ZVAL_COPY(&field, _23$$17); ZEPHIR_OBS_NVAR(&value); zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC); - zephir_array_fetch(&_27$$18, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3256 TSRMLS_CC); + zephir_array_fetch(&_27$$18, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3238 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_28$$18); ZEPHIR_CONCAT_SVSV(&_28$$18, "[", &_27$$18, "] = ?", &position); - zephir_array_append(&conditions, &_28$$18, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3256); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3257); + zephir_array_append(&conditions, &_28$$18, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3238); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3239); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &fields, "rewind", NULL, 0); @@ -5688,11 +5655,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { zephir_check_call_status(); ZEPHIR_OBS_NVAR(&value); zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC); - zephir_array_fetch(&_29$$19, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3256 TSRMLS_CC); + zephir_array_fetch(&_29$$19, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3238 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_30$$19); ZEPHIR_CONCAT_SVSV(&_30$$19, "[", &_29$$19, "] = ?", &position); - zephir_array_append(&conditions, &_30$$19, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3256); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3257); + zephir_array_append(&conditions, &_30$$19, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3238); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3239); ZEPHIR_CALL_METHOD(NULL, &fields, "next", NULL, 0); zephir_check_call_status(); } @@ -5704,12 +5671,12 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { zephir_fetch_property_zval(&value, this_ptr, &fields, PH_SILENT_CC); ZEPHIR_INIT_LNVAR(_31$$20); ZEPHIR_CONCAT_SVS(&_31$$20, "[", &referencedFields, "] = ?0"); - zephir_array_append(&conditions, &_31$$20, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3262); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3263); + zephir_array_append(&conditions, &_31$$20, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3244); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3245); } ZEPHIR_OBS_NVAR(&extraConditions); if (zephir_array_isset_string_fetch(&extraConditions, &foreignKey, SL("conditions"), 0)) { - zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3270); + zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3252); } ZEPHIR_INIT_NVAR(&_32$$13); zephir_create_array(&_32$$13, 2, 0 TSRMLS_CC); @@ -5799,7 +5766,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { ZEPHIR_CALL_METHOD(&relations, &manager, "gethasoneandhasmany", NULL, 0, this_ptr); zephir_check_call_status(); error = 0; - zephir_is_iterable(&relations, 0, "phalcon/Mvc/Model.zep", 3417); + zephir_is_iterable(&relations, 0, "phalcon/Mvc/Model.zep", 3399); if (Z_TYPE_P(&relations) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&relations), _1) { @@ -5817,7 +5784,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { } if (_3$$3) { ZEPHIR_OBS_NVAR(&_4$$5); - zephir_array_fetch_string(&_4$$5, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3340 TSRMLS_CC); + zephir_array_fetch_string(&_4$$5, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3322 TSRMLS_CC); action = zephir_get_intval(&_4$$5); } if (action != 1) { @@ -5836,7 +5803,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { ZEPHIR_INIT_NVAR(&bindParams); array_init(&bindParams); if (Z_TYPE_P(&fields) == IS_ARRAY) { - zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3374); + zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3356); if (Z_TYPE_P(&fields) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&fields), _8$$7, _9$$7, _6$$7) { @@ -5850,11 +5817,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { ZVAL_COPY(&field, _6$$7); ZEPHIR_OBS_NVAR(&value); zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC); - zephir_array_fetch(&_10$$8, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3371 TSRMLS_CC); + zephir_array_fetch(&_10$$8, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3353 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_11$$8); ZEPHIR_CONCAT_SVSV(&_11$$8, "[", &_10$$8, "] = ?", &position); - zephir_array_append(&conditions, &_11$$8, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3371); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3372); + zephir_array_append(&conditions, &_11$$8, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3353); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3354); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &fields, "rewind", NULL, 0); @@ -5871,11 +5838,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { zephir_check_call_status(); ZEPHIR_OBS_NVAR(&value); zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC); - zephir_array_fetch(&_12$$9, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3371 TSRMLS_CC); + zephir_array_fetch(&_12$$9, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3353 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_13$$9); ZEPHIR_CONCAT_SVSV(&_13$$9, "[", &_12$$9, "] = ?", &position); - zephir_array_append(&conditions, &_13$$9, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3371); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3372); + zephir_array_append(&conditions, &_13$$9, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3353); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3354); ZEPHIR_CALL_METHOD(NULL, &fields, "next", NULL, 0); zephir_check_call_status(); } @@ -5887,12 +5854,12 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { zephir_fetch_property_zval(&value, this_ptr, &fields, PH_SILENT_CC); ZEPHIR_INIT_LNVAR(_14$$10); ZEPHIR_CONCAT_SVS(&_14$$10, "[", &referencedFields, "] = ?0"); - zephir_array_append(&conditions, &_14$$10, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3377); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3378); + zephir_array_append(&conditions, &_14$$10, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3359); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3360); } ZEPHIR_OBS_NVAR(&extraConditions); if (zephir_array_isset_string_fetch(&extraConditions, &foreignKey, SL("conditions"), 0)) { - zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3385); + zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3367); } ZEPHIR_INIT_NVAR(&_16$$3); zephir_create_array(&_16$$3, 2, 0 TSRMLS_CC); @@ -5943,7 +5910,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { } if (_22$$14) { ZEPHIR_OBS_NVAR(&_23$$16); - zephir_array_fetch_string(&_23$$16, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3340 TSRMLS_CC); + zephir_array_fetch_string(&_23$$16, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3322 TSRMLS_CC); action = zephir_get_intval(&_23$$16); } if (action != 1) { @@ -5962,7 +5929,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { ZEPHIR_INIT_NVAR(&bindParams); array_init(&bindParams); if (Z_TYPE_P(&fields) == IS_ARRAY) { - zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3374); + zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3356); if (Z_TYPE_P(&fields) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&fields), _27$$18, _28$$18, _25$$18) { @@ -5976,11 +5943,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { ZVAL_COPY(&field, _25$$18); ZEPHIR_OBS_NVAR(&value); zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC); - zephir_array_fetch(&_29$$19, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3371 TSRMLS_CC); + zephir_array_fetch(&_29$$19, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3353 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_30$$19); ZEPHIR_CONCAT_SVSV(&_30$$19, "[", &_29$$19, "] = ?", &position); - zephir_array_append(&conditions, &_30$$19, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3371); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3372); + zephir_array_append(&conditions, &_30$$19, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3353); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3354); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &fields, "rewind", NULL, 0); @@ -5997,11 +5964,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { zephir_check_call_status(); ZEPHIR_OBS_NVAR(&value); zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC); - zephir_array_fetch(&_31$$20, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3371 TSRMLS_CC); + zephir_array_fetch(&_31$$20, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3353 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_32$$20); ZEPHIR_CONCAT_SVSV(&_32$$20, "[", &_31$$20, "] = ?", &position); - zephir_array_append(&conditions, &_32$$20, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3371); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3372); + zephir_array_append(&conditions, &_32$$20, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3353); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3354); ZEPHIR_CALL_METHOD(NULL, &fields, "next", NULL, 0); zephir_check_call_status(); } @@ -6013,12 +5980,12 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { zephir_fetch_property_zval(&value, this_ptr, &fields, PH_SILENT_CC); ZEPHIR_INIT_LNVAR(_33$$21); ZEPHIR_CONCAT_SVS(&_33$$21, "[", &referencedFields, "] = ?0"); - zephir_array_append(&conditions, &_33$$21, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3377); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3378); + zephir_array_append(&conditions, &_33$$21, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3359); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3360); } ZEPHIR_OBS_NVAR(&extraConditions); if (zephir_array_isset_string_fetch(&extraConditions, &foreignKey, SL("conditions"), 0)) { - zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3385); + zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3367); } ZEPHIR_INIT_NVAR(&_35$$14); zephir_create_array(&_35$$14, 2, 0 TSRMLS_CC); @@ -6174,7 +6141,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_INIT_NVAR(&columnMap); ZVAL_NULL(&columnMap); } - zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 3534); + zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 3516); if (Z_TYPE_P(&attributes) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&attributes), _1) { @@ -6189,7 +6156,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CONCAT_SVS(&_4$$7, "Column '", &field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_3$$7, "__construct", &_5, 5, &_4$$7); zephir_check_call_status(); - zephir_throw_exception_debug(&_3$$7, "phalcon/Mvc/Model.zep", 3476 TSRMLS_CC); + zephir_throw_exception_debug(&_3$$7, "phalcon/Mvc/Model.zep", 3458 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -6207,9 +6174,9 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { if (_6$$11) { ZEPHIR_CALL_METHOD(&value, connection, "getdefaultvalue", &_7, 0); zephir_check_call_status(); - zephir_array_fetch(&_8$$12, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3495 TSRMLS_CC); + zephir_array_fetch(&_8$$12, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3477 TSRMLS_CC); zephir_array_update_zval(&snapshot, &attributeField, &_8$$12, PH_COPY | PH_SEPARATE); - zephir_array_fetch(&_9$$12, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3496 TSRMLS_CC); + zephir_array_fetch(&_9$$12, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3478 TSRMLS_CC); zephir_array_update_zval(&unsetDefaultValues, &attributeField, &_9$$12, PH_COPY | PH_SEPARATE); } else { zephir_array_update_zval(&snapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); @@ -6222,28 +6189,28 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CONCAT_SVS(&_11$$14, "Column '", &field, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, &_10$$14, "__construct", &_5, 5, &_11$$14); zephir_check_call_status(); - zephir_throw_exception_debug(&_10$$14, "phalcon/Mvc/Model.zep", 3507 TSRMLS_CC); + zephir_throw_exception_debug(&_10$$14, "phalcon/Mvc/Model.zep", 3489 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3510); - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3511); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3512); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3492); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3493); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3494); } else { if (zephir_array_isset(&defaultValues, &field)) { ZEPHIR_CALL_METHOD(&_12$$16, connection, "getdefaultvalue", &_13, 0); zephir_check_call_status(); - zephir_array_append(&values, &_12$$16, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3515); - zephir_array_fetch(&_14$$16, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3517 TSRMLS_CC); + zephir_array_append(&values, &_12$$16, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3497); + zephir_array_fetch(&_14$$16, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3499 TSRMLS_CC); zephir_array_update_zval(&snapshot, &attributeField, &_14$$16, PH_COPY | PH_SEPARATE); - zephir_array_fetch(&_15$$16, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3518 TSRMLS_CC); + zephir_array_fetch(&_15$$16, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3500 TSRMLS_CC); zephir_array_update_zval(&unsetDefaultValues, &attributeField, &_15$$16, PH_COPY | PH_SEPARATE); } else { - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3520); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3502); zephir_array_update_zval(&snapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); } - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3524); - zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3525); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3506); + zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3507); } } } @@ -6268,7 +6235,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CONCAT_SVS(&_17$$20, "Column '", &field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_16$$20, "__construct", &_5, 5, &_17$$20); zephir_check_call_status(); - zephir_throw_exception_debug(&_16$$20, "phalcon/Mvc/Model.zep", 3476 TSRMLS_CC); + zephir_throw_exception_debug(&_16$$20, "phalcon/Mvc/Model.zep", 3458 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -6286,9 +6253,9 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { if (_18$$24) { ZEPHIR_CALL_METHOD(&value, connection, "getdefaultvalue", &_19, 0); zephir_check_call_status(); - zephir_array_fetch(&_20$$25, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3495 TSRMLS_CC); + zephir_array_fetch(&_20$$25, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3477 TSRMLS_CC); zephir_array_update_zval(&snapshot, &attributeField, &_20$$25, PH_COPY | PH_SEPARATE); - zephir_array_fetch(&_21$$25, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3496 TSRMLS_CC); + zephir_array_fetch(&_21$$25, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3478 TSRMLS_CC); zephir_array_update_zval(&unsetDefaultValues, &attributeField, &_21$$25, PH_COPY | PH_SEPARATE); } else { zephir_array_update_zval(&snapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); @@ -6301,28 +6268,28 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CONCAT_SVS(&_23$$27, "Column '", &field, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, &_22$$27, "__construct", &_5, 5, &_23$$27); zephir_check_call_status(); - zephir_throw_exception_debug(&_22$$27, "phalcon/Mvc/Model.zep", 3507 TSRMLS_CC); + zephir_throw_exception_debug(&_22$$27, "phalcon/Mvc/Model.zep", 3489 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3510); - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3511); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3512); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3492); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3493); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3494); } else { if (zephir_array_isset(&defaultValues, &field)) { ZEPHIR_CALL_METHOD(&_24$$29, connection, "getdefaultvalue", &_25, 0); zephir_check_call_status(); - zephir_array_append(&values, &_24$$29, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3515); - zephir_array_fetch(&_26$$29, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3517 TSRMLS_CC); + zephir_array_append(&values, &_24$$29, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3497); + zephir_array_fetch(&_26$$29, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3499 TSRMLS_CC); zephir_array_update_zval(&snapshot, &attributeField, &_26$$29, PH_COPY | PH_SEPARATE); - zephir_array_fetch(&_27$$29, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3518 TSRMLS_CC); + zephir_array_fetch(&_27$$29, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3500 TSRMLS_CC); zephir_array_update_zval(&unsetDefaultValues, &attributeField, &_27$$29, PH_COPY | PH_SEPARATE); } else { - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3520); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3502); zephir_array_update_zval(&snapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); } - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3524); - zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3525); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3506); + zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3507); } } } @@ -6338,7 +6305,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { zephir_check_call_status(); useExplicitIdentity = zephir_get_boolval(&_28$$31); if (useExplicitIdentity) { - zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3544); + zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3526); } if (Z_TYPE_P(&columnMap) == IS_ARRAY) { ZEPHIR_OBS_NVAR(&attributeField); @@ -6349,7 +6316,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CONCAT_SVS(&_30$$34, "Identity column '", identityField, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_29$$34, "__construct", &_5, 5, &_30$$34); zephir_check_call_status(); - zephir_throw_exception_debug(&_29$$34, "phalcon/Mvc/Model.zep", 3554 TSRMLS_CC); + zephir_throw_exception_debug(&_29$$34, "phalcon/Mvc/Model.zep", 3536 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -6364,12 +6331,12 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { } if (_31$$36) { if (useExplicitIdentity) { - zephir_array_append(&values, &defaultValue, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3566); - zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3566); + zephir_array_append(&values, &defaultValue, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3548); + zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3548); } } else { if (!(useExplicitIdentity)) { - zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3574); + zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3556); } ZEPHIR_OBS_NVAR(&bindType); if (UNEXPECTED(!(zephir_array_isset_fetch(&bindType, &bindDataTypes, identityField, 0 TSRMLS_CC)))) { @@ -6379,17 +6346,17 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CONCAT_SVS(&_33$$41, "Identity column '", identityField, "' isn\\'t part of the table columns"); ZEPHIR_CALL_METHOD(NULL, &_32$$41, "__construct", &_5, 5, &_33$$41); zephir_check_call_status(); - zephir_throw_exception_debug(&_32$$41, "phalcon/Mvc/Model.zep", 3583 TSRMLS_CC); + zephir_throw_exception_debug(&_32$$41, "phalcon/Mvc/Model.zep", 3565 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3586); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3587); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3568); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3569); } } else { if (useExplicitIdentity) { - zephir_array_append(&values, &defaultValue, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3591); - zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3592); + zephir_array_append(&values, &defaultValue, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3573); + zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3574); } } } @@ -6409,9 +6376,9 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CALL_METHOD(&sequenceName, this_ptr, "getsequencename", NULL, 0); zephir_check_call_status(); } else { - ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 443); + ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 441); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 442); + ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 440); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&sequenceName); if (ZEPHIR_IS_EMPTY(&schema)) { @@ -6434,7 +6401,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { zephir_update_property_zval(this_ptr, SL("uniqueParams"), &__$null); } if (zephir_is_true(&success)) { - zephir_is_iterable(&unsetDefaultValues, 0, "phalcon/Mvc/Model.zep", 3655); + zephir_is_iterable(&unsetDefaultValues, 0, "phalcon/Mvc/Model.zep", 3637); if (Z_TYPE_P(&unsetDefaultValues) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&unsetDefaultValues), _40$$51, _41$$51, _38$$51) { @@ -6599,7 +6566,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_INIT_NVAR(&columnMap); ZVAL_NULL(&columnMap); } - zephir_is_iterable(&nonPrimary, 0, "phalcon/Mvc/Model.zep", 3830); + zephir_is_iterable(&nonPrimary, 0, "phalcon/Mvc/Model.zep", 3812); if (Z_TYPE_P(&nonPrimary) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&nonPrimary), _2) { @@ -6614,7 +6581,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(&_5$$9, "Column '", &field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_4$$9, "__construct", &_6, 5, &_5$$9); zephir_check_call_status(); - zephir_throw_exception_debug(&_4$$9, "phalcon/Mvc/Model.zep", 3719 TSRMLS_CC); + zephir_throw_exception_debug(&_4$$9, "phalcon/Mvc/Model.zep", 3701 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -6630,16 +6597,16 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(&_8$$12, "Column '", &field, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, &_7$$12, "__construct", &_6, 5, &_8$$12); zephir_check_call_status(); - zephir_throw_exception_debug(&_7$$12, "phalcon/Mvc/Model.zep", 3732 TSRMLS_CC); + zephir_throw_exception_debug(&_7$$12, "phalcon/Mvc/Model.zep", 3714 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } ZEPHIR_OBS_NVAR(&value); if (zephir_fetch_property_zval(&value, this_ptr, &attributeField, PH_SILENT_CC)) { if (!(useDynamicUpdate)) { - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3744); - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3745); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3746); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3726); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3727); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3728); } else { ZEPHIR_OBS_NVAR(&snapshotValue); if (!(zephir_array_isset_fetch(&snapshotValue, &snapshot, &attributeField, 0 TSRMLS_CC))) { @@ -6659,7 +6626,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(&_10$$22, "Column '", &field, "' have not defined a data type"); ZEPHIR_CALL_METHOD(NULL, &_9$$22, "__construct", &_6, 5, &_10$$22); zephir_check_call_status(); - zephir_throw_exception_debug(&_9$$22, "phalcon/Mvc/Model.zep", 3771 TSRMLS_CC); + zephir_throw_exception_debug(&_9$$22, "phalcon/Mvc/Model.zep", 3753 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -6689,17 +6656,17 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { } } if (changed) { - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3810); - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3811); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3812); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3792); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3793); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3794); } } zephir_array_update_zval(&newSnapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); } else { zephir_array_update_zval(&newSnapshot, &attributeField, &__$null, PH_COPY | PH_SEPARATE); - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3820); - zephir_array_append(&values, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3821); - zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3822); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3802); + zephir_array_append(&values, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3803); + zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3804); } } } ZEND_HASH_FOREACH_END(); @@ -6723,7 +6690,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(&_17$$31, "Column '", &field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_16$$31, "__construct", &_6, 5, &_17$$31); zephir_check_call_status(); - zephir_throw_exception_debug(&_16$$31, "phalcon/Mvc/Model.zep", 3719 TSRMLS_CC); + zephir_throw_exception_debug(&_16$$31, "phalcon/Mvc/Model.zep", 3701 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -6739,16 +6706,16 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(&_19$$34, "Column '", &field, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, &_18$$34, "__construct", &_6, 5, &_19$$34); zephir_check_call_status(); - zephir_throw_exception_debug(&_18$$34, "phalcon/Mvc/Model.zep", 3732 TSRMLS_CC); + zephir_throw_exception_debug(&_18$$34, "phalcon/Mvc/Model.zep", 3714 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } ZEPHIR_OBS_NVAR(&value); if (zephir_fetch_property_zval(&value, this_ptr, &attributeField, PH_SILENT_CC)) { if (!(useDynamicUpdate)) { - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3744); - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3745); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3746); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3726); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3727); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3728); } else { ZEPHIR_OBS_NVAR(&snapshotValue); if (!(zephir_array_isset_fetch(&snapshotValue, &snapshot, &attributeField, 0 TSRMLS_CC))) { @@ -6768,7 +6735,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(&_21$$44, "Column '", &field, "' have not defined a data type"); ZEPHIR_CALL_METHOD(NULL, &_20$$44, "__construct", &_6, 5, &_21$$44); zephir_check_call_status(); - zephir_throw_exception_debug(&_20$$44, "phalcon/Mvc/Model.zep", 3771 TSRMLS_CC); + zephir_throw_exception_debug(&_20$$44, "phalcon/Mvc/Model.zep", 3753 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -6798,17 +6765,17 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { } } if (changed) { - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3810); - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3811); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3812); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3792); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3793); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3794); } } zephir_array_update_zval(&newSnapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); } else { zephir_array_update_zval(&newSnapshot, &attributeField, &__$null, PH_COPY | PH_SEPARATE); - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3820); - zephir_array_append(&values, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3821); - zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3822); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3802); + zephir_array_append(&values, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3803); + zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3804); } } ZEPHIR_CALL_METHOD(NULL, &nonPrimary, "next", NULL, 0); @@ -6832,12 +6799,12 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CALL_METHOD(&primaryKeys, metaData, "getprimarykeyattributes", NULL, 0, this_ptr); zephir_check_call_status(); if (UNEXPECTED(!(zephir_fast_count_int(&primaryKeys TSRMLS_CC)))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/Mvc/Model.zep", 3854); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/Mvc/Model.zep", 3836); return; } ZEPHIR_INIT_NVAR(&uniqueParams); array_init(&uniqueParams); - zephir_is_iterable(&primaryKeys, 0, "phalcon/Mvc/Model.zep", 3881); + zephir_is_iterable(&primaryKeys, 0, "phalcon/Mvc/Model.zep", 3863); if (Z_TYPE_P(&primaryKeys) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&primaryKeys), _26$$53) { @@ -6852,7 +6819,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(&_29$$57, "Column '", &field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_28$$57, "__construct", &_6, 5, &_29$$57); zephir_check_call_status(); - zephir_throw_exception_debug(&_28$$57, "phalcon/Mvc/Model.zep", 3867 TSRMLS_CC); + zephir_throw_exception_debug(&_28$$57, "phalcon/Mvc/Model.zep", 3849 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -6862,10 +6829,10 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_OBS_NVAR(&value); if (zephir_fetch_property_zval(&value, this_ptr, &attributeField, PH_SILENT_CC)) { zephir_array_update_zval(&newSnapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); - zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3875); + zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3857); } else { zephir_array_update_zval(&newSnapshot, &attributeField, &__$null, PH_COPY | PH_SEPARATE); - zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3878); + zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3860); } } ZEND_HASH_FOREACH_END(); } else { @@ -6888,7 +6855,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(&_31$$63, "Column '", &field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_30$$63, "__construct", &_6, 5, &_31$$63); zephir_check_call_status(); - zephir_throw_exception_debug(&_30$$63, "phalcon/Mvc/Model.zep", 3867 TSRMLS_CC); + zephir_throw_exception_debug(&_30$$63, "phalcon/Mvc/Model.zep", 3849 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -6898,10 +6865,10 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_OBS_NVAR(&value); if (zephir_fetch_property_zval(&value, this_ptr, &attributeField, PH_SILENT_CC)) { zephir_array_update_zval(&newSnapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); - zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3875); + zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3857); } else { zephir_array_update_zval(&newSnapshot, &attributeField, &__$null, PH_COPY | PH_SEPARATE); - zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3878); + zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3860); } ZEPHIR_CALL_METHOD(NULL, &primaryKeys, "next", NULL, 0); zephir_check_call_status(); @@ -7032,7 +6999,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _exists) { array_init(&uniqueParams); ZEPHIR_INIT_NVAR(&uniqueTypes); array_init(&uniqueTypes); - zephir_is_iterable(&primaryKeys, 0, "phalcon/Mvc/Model.zep", 4003); + zephir_is_iterable(&primaryKeys, 0, "phalcon/Mvc/Model.zep", 3985); if (Z_TYPE_P(&primaryKeys) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&primaryKeys), _1$$3) { @@ -7047,7 +7014,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _exists) { ZEPHIR_CONCAT_SVS(&_4$$9, "Column '", &field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_3$$9, "__construct", &_5, 5, &_4$$9); zephir_check_call_status(); - zephir_throw_exception_debug(&_3$$9, "phalcon/Mvc/Model.zep", 3962 TSRMLS_CC); + zephir_throw_exception_debug(&_3$$9, "phalcon/Mvc/Model.zep", 3944 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -7065,9 +7032,9 @@ PHP_METHOD(Phalcon_Mvc_Model, _exists) { if (_6$$11) { numberEmpty++; } - zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3983); + zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3965); } else { - zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3985); + zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3967); numberEmpty++; } ZEPHIR_OBS_NVAR(&type); @@ -7078,16 +7045,16 @@ PHP_METHOD(Phalcon_Mvc_Model, _exists) { ZEPHIR_CONCAT_SVS(&_8$$14, "Column '", &field, "' isn't part of the table columns"); ZEPHIR_CALL_METHOD(NULL, &_7$$14, "__construct", &_5, 5, &_8$$14); zephir_check_call_status(); - zephir_throw_exception_debug(&_7$$14, "phalcon/Mvc/Model.zep", 3992 TSRMLS_CC); + zephir_throw_exception_debug(&_7$$14, "phalcon/Mvc/Model.zep", 3974 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&uniqueTypes, &type, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3995); + zephir_array_append(&uniqueTypes, &type, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3977); ZEPHIR_CALL_METHOD(&_9$$7, connection, "escapeidentifier", &_10, 0, &field); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_11$$7); ZEPHIR_CONCAT_VS(&_11$$7, &_9$$7, " = ?"); - zephir_array_append(&wherePk, &_11$$7, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3996); + zephir_array_append(&wherePk, &_11$$7, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3978); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &primaryKeys, "rewind", NULL, 0); @@ -7109,7 +7076,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _exists) { ZEPHIR_CONCAT_SVS(&_13$$17, "Column '", &field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_12$$17, "__construct", &_5, 5, &_13$$17); zephir_check_call_status(); - zephir_throw_exception_debug(&_12$$17, "phalcon/Mvc/Model.zep", 3962 TSRMLS_CC); + zephir_throw_exception_debug(&_12$$17, "phalcon/Mvc/Model.zep", 3944 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -7127,9 +7094,9 @@ PHP_METHOD(Phalcon_Mvc_Model, _exists) { if (_14$$19) { numberEmpty++; } - zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3983); + zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3965); } else { - zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3985); + zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3967); numberEmpty++; } ZEPHIR_OBS_NVAR(&type); @@ -7140,16 +7107,16 @@ PHP_METHOD(Phalcon_Mvc_Model, _exists) { ZEPHIR_CONCAT_SVS(&_16$$22, "Column '", &field, "' isn't part of the table columns"); ZEPHIR_CALL_METHOD(NULL, &_15$$22, "__construct", &_5, 5, &_16$$22); zephir_check_call_status(); - zephir_throw_exception_debug(&_15$$22, "phalcon/Mvc/Model.zep", 3992 TSRMLS_CC); + zephir_throw_exception_debug(&_15$$22, "phalcon/Mvc/Model.zep", 3974 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&uniqueTypes, &type, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3995); + zephir_array_append(&uniqueTypes, &type, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3977); ZEPHIR_CALL_METHOD(&_17$$15, connection, "escapeidentifier", &_18, 0, &field); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_19$$15); ZEPHIR_CONCAT_VS(&_19$$15, &_17$$15, " = ?"); - zephir_array_append(&wherePk, &_19$$15, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3996); + zephir_array_append(&wherePk, &_19$$15, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3978); ZEPHIR_CALL_METHOD(NULL, &primaryKeys, "next", NULL, 0); zephir_check_call_status(); } @@ -7181,9 +7148,9 @@ PHP_METHOD(Phalcon_Mvc_Model, _exists) { zephir_read_property(&_22$$27, this_ptr, SL("uniqueTypes"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&uniqueTypes, &_22$$27); } - ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 442); + ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 440); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 443); + ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 441); zephir_check_call_status(); if (zephir_is_true(&schema)) { ZEPHIR_INIT_VAR(&table); @@ -7200,7 +7167,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _exists) { ZVAL_NULL(&_25); ZEPHIR_CALL_METHOD(&num, connection, "fetchone", NULL, 0, &_24, &_25, &uniqueParams, &uniqueTypes); zephir_check_call_status(); - zephir_array_fetch_string(&_26, &num, SL("rowcount"), PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4057 TSRMLS_CC); + zephir_array_fetch_string(&_26, &num, SL("rowcount"), PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4039 TSRMLS_CC); if (zephir_is_true(&_26)) { ZEPHIR_INIT_ZVAL_NREF(_27$$30); ZVAL_LONG(&_27$$30, 0); @@ -7382,7 +7349,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _groupResult) { ZEPHIR_INIT_VAR(¶ms); array_init(¶ms); if (Z_TYPE_P(parameters) != IS_NULL) { - zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4152); + zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4134); } } else { ZEPHIR_CPY_WRT(¶ms, parameters); @@ -7523,7 +7490,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _invokeFinder) { ZEPHIR_CONCAT_SVS(&_4$$7, "The static method '", &method, "' requires one argument"); ZEPHIR_CALL_METHOD(NULL, &_3$$7, "__construct", NULL, 5, &_4$$7); zephir_check_call_status(); - zephir_throw_exception_debug(&_3$$7, "phalcon/Mvc/Model.zep", 4271 TSRMLS_CC); + zephir_throw_exception_debug(&_3$$7, "phalcon/Mvc/Model.zep", 4253 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -7563,7 +7530,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _invokeFinder) { ZEPHIR_CONCAT_SVS(&_8$$13, "Cannot resolve attribute '", &extraMethod, "' in the model"); ZEPHIR_CALL_METHOD(NULL, &_7$$13, "__construct", NULL, 5, &_8$$13); zephir_check_call_status(); - zephir_throw_exception_debug(&_7$$13, "phalcon/Mvc/Model.zep", 4308 TSRMLS_CC); + zephir_throw_exception_debug(&_7$$13, "phalcon/Mvc/Model.zep", 4290 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -7703,7 +7670,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSave) { } } if (ZEPHIR_GLOBAL(orm).virtual_foreign_keys) { - ZEPHIR_CALL_METHOD(&_3$$8, this_ptr, "_checkforeignkeysrestrict", NULL, 449); + ZEPHIR_CALL_METHOD(&_3$$8, this_ptr, "_checkforeignkeysrestrict", NULL, 447); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_3$$8)) { RETURN_MM_BOOL(0); @@ -7734,7 +7701,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSave) { ZEPHIR_CALL_METHOD(&emptyStringValues, metaData, "getemptystringattributes", NULL, 0, this_ptr); zephir_check_call_status(); error = 0; - zephir_is_iterable(¬Null, 0, "phalcon/Mvc/Model.zep", 4503); + zephir_is_iterable(¬Null, 0, "phalcon/Mvc/Model.zep", 4485); if (Z_TYPE_P(¬Null) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(¬Null), _4$$11) { @@ -7749,7 +7716,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSave) { ZEPHIR_CONCAT_SVS(&_7$$18, "Column '", &field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_6$$18, "__construct", &_8, 5, &_7$$18); zephir_check_call_status(); - zephir_throw_exception_debug(&_6$$18, "phalcon/Mvc/Model.zep", 4428 TSRMLS_CC); + zephir_throw_exception_debug(&_6$$18, "phalcon/Mvc/Model.zep", 4410 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -7773,7 +7740,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSave) { if (_10$$26) { _11$$26 = !(zephir_array_isset(&defaultValues, &field)); if (!(_11$$26)) { - zephir_array_fetch(&_12$$26, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4457 TSRMLS_CC); + zephir_array_fetch(&_12$$26, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4439 TSRMLS_CC); _11$$26 = !ZEPHIR_IS_IDENTICAL(&value, &_12$$26); } _10$$26 = _11$$26; @@ -7835,7 +7802,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSave) { ZEPHIR_CONCAT_SVS(&_18$$37, "Column '", &field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_17$$37, "__construct", &_8, 5, &_18$$37); zephir_check_call_status(); - zephir_throw_exception_debug(&_17$$37, "phalcon/Mvc/Model.zep", 4428 TSRMLS_CC); + zephir_throw_exception_debug(&_17$$37, "phalcon/Mvc/Model.zep", 4410 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -7859,7 +7826,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSave) { if (_20$$45) { _21$$45 = !(zephir_array_isset(&defaultValues, &field)); if (!(_21$$45)) { - zephir_array_fetch(&_22$$45, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4457 TSRMLS_CC); + zephir_array_fetch(&_22$$45, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4439 TSRMLS_CC); _21$$45 = !ZEPHIR_IS_IDENTICAL(&value, &_22$$45); } _20$$45 = _21$$45; @@ -8057,7 +8024,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "getmodelsmanager", NULL, 0); zephir_check_call_status(); ZEPHIR_CPY_WRT(&manager, &_1); - zephir_is_iterable(related, 0, "phalcon/Mvc/Model.zep", 4680); + zephir_is_iterable(related, 0, "phalcon/Mvc/Model.zep", 4662); if (Z_TYPE_P(related) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(related), _4, _5, _2) { @@ -8084,7 +8051,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_10, 0, &_9$$6); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects can be stored as part of belongs-to relations", "phalcon/Mvc/Model.zep", 4623); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects can be stored as part of belongs-to relations", "phalcon/Mvc/Model.zep", 4605); return; } ZEPHIR_CALL_METHOD(&columns, &relation, "getfields", &_11, 0); @@ -8101,7 +8068,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_15, 0, &_14$$7); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4633); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4615); return; } zephir_read_property(&_16$$5, &record, SL("dirtyState"), PH_NOISY_CC | PH_READONLY); @@ -8114,7 +8081,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { if (_17$$5) { ZEPHIR_CALL_METHOD(&_19$$8, &record, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_19$$8, 0, "phalcon/Mvc/Model.zep", 4666); + zephir_is_iterable(&_19$$8, 0, "phalcon/Mvc/Model.zep", 4648); if (Z_TYPE_P(&_19$$8) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_19$$8), _20$$8) { @@ -8198,7 +8165,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_31, 0, &_30$$16); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects can be stored as part of belongs-to relations", "phalcon/Mvc/Model.zep", 4623); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects can be stored as part of belongs-to relations", "phalcon/Mvc/Model.zep", 4605); return; } ZEPHIR_CALL_METHOD(&columns, &relation, "getfields", &_11, 0); @@ -8215,7 +8182,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_33, 0, &_32$$17); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4633); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4615); return; } zephir_read_property(&_34$$15, &record, SL("dirtyState"), PH_NOISY_CC | PH_READONLY); @@ -8228,7 +8195,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { if (_35$$15) { ZEPHIR_CALL_METHOD(&_37$$18, &record, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_37$$18, 0, "phalcon/Mvc/Model.zep", 4666); + zephir_is_iterable(&_37$$18, 0, "phalcon/Mvc/Model.zep", 4648); if (Z_TYPE_P(&_37$$18) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_37$$18), _38$$18) { @@ -8455,7 +8422,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmodelsmanager", NULL, 0); zephir_check_call_status(); ZEPHIR_CPY_WRT(&manager, &_0); - zephir_is_iterable(related, 0, "phalcon/Mvc/Model.zep", 4910); + zephir_is_iterable(related, 0, "phalcon/Mvc/Model.zep", 4892); if (Z_TYPE_P(related) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(related), _3, _4, _1) { @@ -8488,7 +8455,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_11, 0, &_10$$6); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects/arrays can be stored as part of has-many/has-one/has-many-to-many relations", "phalcon/Mvc/Model.zep", 4740); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects/arrays can be stored as part of has-many/has-one/has-many-to-many relations", "phalcon/Mvc/Model.zep", 4722); return; } ZEPHIR_CALL_METHOD(&columns, &relation, "getfields", &_12, 0); @@ -8505,7 +8472,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_16, 0, &_15$$7); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4750); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4732); return; } if (Z_TYPE_P(&record) == IS_OBJECT) { @@ -8530,7 +8497,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CONCAT_SVS(&_20$$10, "The column '", &columns, "' needs to be present in the model"); ZEPHIR_CALL_METHOD(NULL, &_19$$10, "__construct", &_21, 5, &_20$$10); zephir_check_call_status(); - zephir_throw_exception_debug(&_19$$10, "phalcon/Mvc/Model.zep", 4767 TSRMLS_CC); + zephir_throw_exception_debug(&_19$$10, "phalcon/Mvc/Model.zep", 4749 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -8545,7 +8512,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&intermediateReferencedFields, &relation, "getintermediatereferencedfields", &_26, 0); zephir_check_call_status(); } - zephir_is_iterable(&relatedRecords, 0, "phalcon/Mvc/Model.zep", 4896); + zephir_is_iterable(&relatedRecords, 0, "phalcon/Mvc/Model.zep", 4878); if (Z_TYPE_P(&relatedRecords) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&relatedRecords), _27$$4) { @@ -8560,7 +8527,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(&_29$$12))) { ZEPHIR_CALL_METHOD(&_30$$14, &recordAfter, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_30$$14, 0, "phalcon/Mvc/Model.zep", 4826); + zephir_is_iterable(&_30$$14, 0, "phalcon/Mvc/Model.zep", 4808); if (Z_TYPE_P(&_30$$14) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_30$$14), _31$$14) { @@ -8624,7 +8591,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(&_39$$19))) { ZEPHIR_CALL_METHOD(&_40$$20, &intermediateModel, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_40$$20, 0, "phalcon/Mvc/Model.zep", 4890); + zephir_is_iterable(&_40$$20, 0, "phalcon/Mvc/Model.zep", 4872); if (Z_TYPE_P(&_40$$20) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_40$$20), _41$$20) { @@ -8696,7 +8663,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(&_47$$25))) { ZEPHIR_CALL_METHOD(&_48$$27, &recordAfter, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_48$$27, 0, "phalcon/Mvc/Model.zep", 4826); + zephir_is_iterable(&_48$$27, 0, "phalcon/Mvc/Model.zep", 4808); if (Z_TYPE_P(&_48$$27) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_48$$27), _49$$27) { @@ -8760,7 +8727,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(&_56$$32))) { ZEPHIR_CALL_METHOD(&_57$$33, &intermediateModel, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_57$$33, 0, "phalcon/Mvc/Model.zep", 4890); + zephir_is_iterable(&_57$$33, 0, "phalcon/Mvc/Model.zep", 4872); if (Z_TYPE_P(&_57$$33) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_57$$33), _58$$33) { @@ -8831,7 +8798,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CONCAT_SVSVS(&_67$$39, "There are no defined relations for the model '", &className, "' using alias '", &name, "'"); ZEPHIR_CALL_METHOD(NULL, &_66$$39, "__construct", &_21, 5, &_67$$39); zephir_check_call_status(); - zephir_throw_exception_debug(&_66$$39, "phalcon/Mvc/Model.zep", 4902 TSRMLS_CC); + zephir_throw_exception_debug(&_66$$39, "phalcon/Mvc/Model.zep", 4884 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -8871,7 +8838,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_73, 0, &_72$$43); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects/arrays can be stored as part of has-many/has-one/has-many-to-many relations", "phalcon/Mvc/Model.zep", 4740); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects/arrays can be stored as part of has-many/has-one/has-many-to-many relations", "phalcon/Mvc/Model.zep", 4722); return; } ZEPHIR_CALL_METHOD(&columns, &relation, "getfields", &_12, 0); @@ -8888,7 +8855,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_75, 0, &_74$$44); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4750); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4732); return; } if (Z_TYPE_P(&record) == IS_OBJECT) { @@ -8914,7 +8881,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CONCAT_SVS(&_80$$47, "The column '", &columns, "' needs to be present in the model"); ZEPHIR_CALL_METHOD(NULL, &_79$$47, "__construct", &_21, 5, &_80$$47); zephir_check_call_status(); - zephir_throw_exception_debug(&_79$$47, "phalcon/Mvc/Model.zep", 4767 TSRMLS_CC); + zephir_throw_exception_debug(&_79$$47, "phalcon/Mvc/Model.zep", 4749 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -8929,7 +8896,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&intermediateReferencedFields, &relation, "getintermediatereferencedfields", &_26, 0); zephir_check_call_status(); } - zephir_is_iterable(&relatedRecords, 0, "phalcon/Mvc/Model.zep", 4896); + zephir_is_iterable(&relatedRecords, 0, "phalcon/Mvc/Model.zep", 4878); if (Z_TYPE_P(&relatedRecords) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&relatedRecords), _82$$41) { @@ -8944,7 +8911,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(&_84$$49))) { ZEPHIR_CALL_METHOD(&_85$$51, &recordAfter, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_85$$51, 0, "phalcon/Mvc/Model.zep", 4826); + zephir_is_iterable(&_85$$51, 0, "phalcon/Mvc/Model.zep", 4808); if (Z_TYPE_P(&_85$$51) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_85$$51), _86$$51) { @@ -9008,7 +8975,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(&_93$$56))) { ZEPHIR_CALL_METHOD(&_94$$57, &intermediateModel, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_94$$57, 0, "phalcon/Mvc/Model.zep", 4890); + zephir_is_iterable(&_94$$57, 0, "phalcon/Mvc/Model.zep", 4872); if (Z_TYPE_P(&_94$$57) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_94$$57), _95$$57) { @@ -9080,7 +9047,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(&_101$$62))) { ZEPHIR_CALL_METHOD(&_102$$64, &recordAfter, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_102$$64, 0, "phalcon/Mvc/Model.zep", 4826); + zephir_is_iterable(&_102$$64, 0, "phalcon/Mvc/Model.zep", 4808); if (Z_TYPE_P(&_102$$64) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_102$$64), _103$$64) { @@ -9144,7 +9111,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(&_110$$69))) { ZEPHIR_CALL_METHOD(&_111$$70, &intermediateModel, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_111$$70, 0, "phalcon/Mvc/Model.zep", 4890); + zephir_is_iterable(&_111$$70, 0, "phalcon/Mvc/Model.zep", 4872); if (Z_TYPE_P(&_111$$70) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_111$$70), _112$$70) { @@ -9215,7 +9182,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CONCAT_SVSVS(&_121$$76, "There are no defined relations for the model '", &className, "' using alias '", &name, "'"); ZEPHIR_CALL_METHOD(NULL, &_120$$76, "__construct", &_21, 5, &_121$$76); zephir_check_call_status(); - zephir_throw_exception_debug(&_120$$76, "phalcon/Mvc/Model.zep", 4902 TSRMLS_CC); + zephir_throw_exception_debug(&_120$$76, "phalcon/Mvc/Model.zep", 4884 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -9278,7 +9245,7 @@ PHP_METHOD(Phalcon_Mvc_Model, allowEmptyStringValues) { ZEPHIR_INIT_VAR(&keysAttributes); array_init(&keysAttributes); - zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 4943); + zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 4925); if (Z_TYPE_P(&attributes) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&attributes), _0) { @@ -9887,7 +9854,7 @@ PHP_METHOD(Phalcon_Mvc_Model, skipAttributesOnCreate) { ZEPHIR_INIT_VAR(&keysAttributes); array_init(&keysAttributes); - zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 5244); + zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 5226); if (Z_TYPE_P(&attributes) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&attributes), _0) { @@ -9961,7 +9928,7 @@ PHP_METHOD(Phalcon_Mvc_Model, skipAttributesOnUpdate) { ZEPHIR_INIT_VAR(&keysAttributes); array_init(&keysAttributes); - zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 5279); + zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 5261); if (Z_TYPE_P(&attributes) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&attributes), _0) { @@ -10196,7 +10163,7 @@ PHP_METHOD(Phalcon_Mvc_Model, caseInsensitiveColumnMap) { ZEPHIR_INIT_VAR(&_0); zephir_array_keys(&_0, columnMap TSRMLS_CC); - zephir_is_iterable(&_0, 0, "phalcon/Mvc/Model.zep", 5415); + zephir_is_iterable(&_0, 0, "phalcon/Mvc/Model.zep", 5397); if (Z_TYPE_P(&_0) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_0), _1) { diff --git a/ext/phalcon/mvc/model.zep.h b/ext/phalcon/mvc/model.zep.h index 901a3dd7a32..6a01ed43235 100644 --- a/ext/phalcon/mvc/model.zep.h +++ b/ext/phalcon/mvc/model.zep.h @@ -27,7 +27,6 @@ PHP_METHOD(Phalcon_Mvc_Model, fireEvent); PHP_METHOD(Phalcon_Mvc_Model, fireEventCancel); PHP_METHOD(Phalcon_Mvc_Model, getChangedFields); PHP_METHOD(Phalcon_Mvc_Model, getDirtyState); -PHP_METHOD(Phalcon_Mvc_Model, getDI); PHP_METHOD(Phalcon_Mvc_Model, getEventsManager); PHP_METHOD(Phalcon_Mvc_Model, getMessages); PHP_METHOD(Phalcon_Mvc_Model, getModelsManager); @@ -58,7 +57,6 @@ PHP_METHOD(Phalcon_Mvc_Model, serialize); PHP_METHOD(Phalcon_Mvc_Model, unserialize); PHP_METHOD(Phalcon_Mvc_Model, setConnectionService); PHP_METHOD(Phalcon_Mvc_Model, setDirtyState); -PHP_METHOD(Phalcon_Mvc_Model, setDI); PHP_METHOD(Phalcon_Mvc_Model, setEventsManager); PHP_METHOD(Phalcon_Mvc_Model, setReadConnectionService); PHP_METHOD(Phalcon_Mvc_Model, setOldSnapshotData); @@ -310,13 +308,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_model_getdirtystate, #endif ZEND_END_ARG_INFO() -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_mvc_model_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_model_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) -#endif -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_mvc_model_geteventsmanager, 0, 0, Phalcon\\Events\\ManagerInterface, 0) #else @@ -546,10 +537,6 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_setdirtystate, 0, 0, 1) #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_setdi, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) -ZEND_END_ARG_INFO() - ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_seteventsmanager, 0, 0, 1) ZEND_ARG_OBJ_INFO(0, eventsManager, Phalcon\\Events\\ManagerInterface, 0) ZEND_END_ARG_INFO() @@ -975,7 +962,6 @@ ZEPHIR_INIT_FUNCS(phalcon_mvc_model_method_entry) { PHP_ME(Phalcon_Mvc_Model, fireEventCancel, arginfo_phalcon_mvc_model_fireeventcancel, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Model, getChangedFields, arginfo_phalcon_mvc_model_getchangedfields, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Model, getDirtyState, arginfo_phalcon_mvc_model_getdirtystate, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model, getDI, arginfo_phalcon_mvc_model_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Model, getEventsManager, arginfo_phalcon_mvc_model_geteventsmanager, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Model, getMessages, arginfo_phalcon_mvc_model_getmessages, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Model, getModelsManager, arginfo_phalcon_mvc_model_getmodelsmanager, ZEND_ACC_PUBLIC) @@ -1006,7 +992,6 @@ ZEPHIR_INIT_FUNCS(phalcon_mvc_model_method_entry) { PHP_ME(Phalcon_Mvc_Model, unserialize, arginfo_phalcon_mvc_model_unserialize, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Model, setConnectionService, arginfo_phalcon_mvc_model_setconnectionservice, ZEND_ACC_FINAL|ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Model, setDirtyState, arginfo_phalcon_mvc_model_setdirtystate, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model, setDI, arginfo_phalcon_mvc_model_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Model, setEventsManager, arginfo_phalcon_mvc_model_seteventsmanager, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Model, setReadConnectionService, arginfo_phalcon_mvc_model_setreadconnectionservice, ZEND_ACC_FINAL|ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Model, setOldSnapshotData, arginfo_phalcon_mvc_model_setoldsnapshotdata, ZEND_ACC_PUBLIC) diff --git a/ext/phalcon/mvc/model/behavior/timestampable.zep.c b/ext/phalcon/mvc/model/behavior/timestampable.zep.c index 00938f852f8..7f4d7c9d90a 100644 --- a/ext/phalcon/mvc/model/behavior/timestampable.zep.c +++ b/ext/phalcon/mvc/model/behavior/timestampable.zep.c @@ -96,7 +96,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Behavior_Timestampable, notify) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The option 'field' is required", "phalcon/Mvc/Model/Behavior/Timestampable.zep", 50); return; } - ZEPHIR_CALL_METHOD(×tamp, this_ptr, "gettimestamp", NULL, 450, &options); + ZEPHIR_CALL_METHOD(×tamp, this_ptr, "gettimestamp", NULL, 448, &options); zephir_check_call_status(); if (UNEXPECTED(Z_TYPE_P(&field) == IS_ARRAY)) { zephir_is_iterable(&field, 0, "phalcon/Mvc/Model/Behavior/Timestampable.zep", 63); @@ -155,7 +155,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Behavior_Timestampable, getTimestamp) { ZEPHIR_OBS_VAR(&format); if (zephir_array_isset_string_fetch(&format, &options, SL("format"), 0)) { - ZEPHIR_RETURN_CALL_FUNCTION("date", NULL, 420, &format); + ZEPHIR_RETURN_CALL_FUNCTION("date", NULL, 422, &format); zephir_check_call_status(); RETURN_MM(); } diff --git a/ext/phalcon/mvc/model/binder.zep.c b/ext/phalcon/mvc/model/binder.zep.c index 128d4ddcf3f..9991583e63f 100644 --- a/ext/phalcon/mvc/model/binder.zep.c +++ b/ext/phalcon/mvc/model/binder.zep.c @@ -396,7 +396,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Binder, getParamsFromReflection) { ZEPHIR_INIT_VAR(&reflection); if (!ZEPHIR_IS_STRING(&methodName, "")) { object_init_ex(&reflection, zephir_get_internal_ce(SL("reflectionmethod"))); - ZEPHIR_CALL_METHOD(NULL, &reflection, "__construct", NULL, 451, handler, &methodName); + ZEPHIR_CALL_METHOD(NULL, &reflection, "__construct", NULL, 449, handler, &methodName); zephir_check_call_status(); } else { object_init_ex(&reflection, zephir_get_internal_ce(SL("reflectionfunction"))); @@ -438,7 +438,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Binder, getParamsFromReflection) { zephir_array_fetch(¶mValue, ¶ms, ¶mKey, PH_NOISY, "phalcon/Mvc/Model/Binder.zep", 171 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_6$$5); ZVAL_STRING(&_6$$5, "Phalcon\\Mvc\\Model"); - ZEPHIR_CALL_FUNCTION(&_7$$5, "is_subclass_of", &_8, 452, &className, &_6$$5); + ZEPHIR_CALL_FUNCTION(&_7$$5, "is_subclass_of", &_8, 450, &className, &_6$$5); zephir_check_call_status(); if (ZEPHIR_IS_STRING(&className, "Phalcon\\Mvc\\Model")) { if (Z_TYPE_P(&realClasses) == IS_NULL) { @@ -520,7 +520,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Binder, getParamsFromReflection) { zephir_array_fetch(¶mValue, ¶ms, ¶mKey, PH_NOISY, "phalcon/Mvc/Model/Binder.zep", 171 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_15$$19); ZVAL_STRING(&_15$$19, "Phalcon\\Mvc\\Model"); - ZEPHIR_CALL_FUNCTION(&_16$$19, "is_subclass_of", &_8, 452, &className, &_15$$19); + ZEPHIR_CALL_FUNCTION(&_16$$19, "is_subclass_of", &_8, 450, &className, &_15$$19); zephir_check_call_status(); if (ZEPHIR_IS_STRING(&className, "Phalcon\\Mvc\\Model")) { if (Z_TYPE_P(&realClasses) == IS_NULL) { diff --git a/ext/phalcon/mvc/model/criteria.zep.c b/ext/phalcon/mvc/model/criteria.zep.c index 8552a791694..3760284cde3 100644 --- a/ext/phalcon/mvc/model/criteria.zep.c +++ b/ext/phalcon/mvc/model/criteria.zep.c @@ -1776,12 +1776,12 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { ZEPHIR_INIT_VAR(&_19$$16); ZEPHIR_CONCAT_SVS(&_19$$16, " ", &operator, " "); zephir_fast_join(&_18$$16, &_19$$16, &conditions TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &criteria, "where", NULL, 453, &_18$$16); + ZEPHIR_CALL_METHOD(NULL, &criteria, "where", NULL, 451, &_18$$16); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &criteria, "bind", NULL, 454, &bind); + ZEPHIR_CALL_METHOD(NULL, &criteria, "bind", NULL, 452, &bind); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, &criteria, "setmodelname", NULL, 447, &modelName); + ZEPHIR_CALL_METHOD(NULL, &criteria, "setmodelname", NULL, 445, &modelName); zephir_check_call_status(); RETURN_CCTOR(&criteria); diff --git a/ext/phalcon/mvc/model/manager.zep.c b/ext/phalcon/mvc/model/manager.zep.c index aa6db53daef..c6ab8764fa9 100644 --- a/ext/phalcon/mvc/model/manager.zep.c +++ b/ext/phalcon/mvc/model/manager.zep.c @@ -1413,7 +1413,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasOne) { ZEPHIR_INIT_VAR(&relation); object_init_ex(&relation, phalcon_mvc_model_relation_ce); ZVAL_LONG(&_2, 1); - ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 455, &_2, &referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 453, &_2, &referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(&alias); if (zephir_array_isset_string_fetch(&alias, options, SL("alias"), 0)) { @@ -1516,7 +1516,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, addBelongsTo) { ZEPHIR_INIT_VAR(&relation); object_init_ex(&relation, phalcon_mvc_model_relation_ce); ZVAL_LONG(&_2, 0); - ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 455, &_2, &referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 453, &_2, &referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(&alias); if (zephir_array_isset_string_fetch(&alias, options, SL("alias"), 0)) { @@ -1621,7 +1621,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasMany) { ZEPHIR_INIT_VAR(&relation); object_init_ex(&relation, phalcon_mvc_model_relation_ce); ZVAL_LONG(&_1, 2); - ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 455, &_1, &referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 453, &_1, &referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(&alias); if (zephir_array_isset_string_fetch(&alias, options, SL("alias"), 0)) { @@ -1751,9 +1751,9 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasManyToMany) { ZEPHIR_INIT_VAR(&relation); object_init_ex(&relation, phalcon_mvc_model_relation_ce); ZVAL_LONG(&_1, 4); - ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 455, &_1, &referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 453, &_1, &referencedModel, fields, referencedFields, options); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &relation, "setintermediaterelation", NULL, 456, intermediateFields, &intermediateModel, intermediateReferencedFields); + ZEPHIR_CALL_METHOD(NULL, &relation, "setintermediaterelation", NULL, 454, intermediateFields, &intermediateModel, intermediateReferencedFields); zephir_check_call_status(); ZEPHIR_OBS_VAR(&alias); if (zephir_array_isset_string_fetch(&alias, options, SL("alias"), 0)) { @@ -2435,7 +2435,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { ZEPHIR_INIT_VAR(&_4$$3); ZEPHIR_CONCAT_SVSVSVSVS(&_4$$3, "[", &intermediateModel, "].[", &intermediateFields, "] = [", &referencedModel, "].[", &_3$$3, "]"); zephir_array_append(&joinConditions, &_4$$3, PH_SEPARATE, "phalcon/Mvc/Model/Manager.zep", 1299); - ZEPHIR_CALL_METHOD(&_5$$3, this_ptr, "_mergefindparameters", NULL, 457, &extraParameters, parameters); + ZEPHIR_CALL_METHOD(&_5$$3, this_ptr, "_mergefindparameters", NULL, 455, &extraParameters, parameters); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&builder, this_ptr, "createbuilder", NULL, 0, &_5$$3); zephir_check_call_status(); @@ -2548,10 +2548,10 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { ZEPHIR_CALL_METHOD(&_30, record, "getdi", NULL, 0); zephir_check_call_status(); zephir_array_update_string(&findParams, SL("di"), &_30, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&findArguments, this_ptr, "_mergefindparameters", NULL, 457, &findParams, parameters); + ZEPHIR_CALL_METHOD(&findArguments, this_ptr, "_mergefindparameters", NULL, 455, &findParams, parameters); zephir_check_call_status(); if (Z_TYPE_P(&extraParameters) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&findParams, this_ptr, "_mergefindparameters", NULL, 457, &extraParameters, &findArguments); + ZEPHIR_CALL_METHOD(&findParams, this_ptr, "_mergefindparameters", NULL, 455, &extraParameters, &findArguments); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&findParams, &findArguments); diff --git a/ext/phalcon/mvc/model/metadata/stream.zep.c b/ext/phalcon/mvc/model/metadata/stream.zep.c index 3e5cbac5570..80307773a3b 100644 --- a/ext/phalcon/mvc/model/metadata/stream.zep.c +++ b/ext/phalcon/mvc/model/metadata/stream.zep.c @@ -195,7 +195,7 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Stream, write) { ZEPHIR_CONCAT_SVS(&_5$$3, "= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_mvc_router_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_router_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) -#endif -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_mvc_router_geteventsmanager, 0, 0, Phalcon\\Events\\ManagerInterface, 0) #else @@ -417,10 +408,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_router_getdefaults, #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_router_setdi, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) -ZEND_END_ARG_INFO() - ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_router_seteventsmanager, 0, 0, 1) ZEND_ARG_OBJ_INFO(0, eventsManager, Phalcon\\Events\\ManagerInterface, 0) ZEND_END_ARG_INFO() @@ -451,7 +438,6 @@ ZEPHIR_INIT_FUNCS(phalcon_mvc_router_method_entry) { PHP_ME(Phalcon_Mvc_Router, addTrace, arginfo_phalcon_mvc_router_addtrace, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, attach, arginfo_phalcon_mvc_router_attach, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, clear, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Router, getDI, arginfo_phalcon_mvc_router_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, getEventsManager, arginfo_phalcon_mvc_router_geteventsmanager, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, getActionName, arginfo_phalcon_mvc_router_getactionname, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, getControllerName, arginfo_phalcon_mvc_router_getcontrollername, ZEND_ACC_PUBLIC) @@ -474,7 +460,6 @@ ZEPHIR_INIT_FUNCS(phalcon_mvc_router_method_entry) { PHP_ME(Phalcon_Mvc_Router, setDefaultNamespace, arginfo_phalcon_mvc_router_setdefaultnamespace, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, setDefaults, arginfo_phalcon_mvc_router_setdefaults, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, getDefaults, arginfo_phalcon_mvc_router_getdefaults, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Router, setDI, arginfo_phalcon_mvc_router_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, setEventsManager, arginfo_phalcon_mvc_router_seteventsmanager, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, wasMatched, arginfo_phalcon_mvc_router_wasmatched, ZEND_ACC_PUBLIC) PHP_FE_END diff --git a/ext/phalcon/mvc/router/group.zep.c b/ext/phalcon/mvc/router/group.zep.c index ae98c1f75c5..283821c101f 100644 --- a/ext/phalcon/mvc/router/group.zep.c +++ b/ext/phalcon/mvc/router/group.zep.c @@ -872,7 +872,7 @@ PHP_METHOD(Phalcon_Mvc_Router_Group, addRoute) { ZEPHIR_CALL_METHOD(NULL, &route, "__construct", NULL, 105, &_2, &mergedPaths, httpMethods); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("routes"), &route); - ZEPHIR_CALL_METHOD(NULL, &route, "setgroup", NULL, 498, this_ptr); + ZEPHIR_CALL_METHOD(NULL, &route, "setgroup", NULL, 496, this_ptr); zephir_check_call_status(); RETURN_CCTOR(&route); diff --git a/ext/phalcon/mvc/view.zep.c b/ext/phalcon/mvc/view.zep.c index 2e4856c8702..c63df9f3e9b 100644 --- a/ext/phalcon/mvc/view.zep.c +++ b/ext/phalcon/mvc/view.zep.c @@ -801,11 +801,11 @@ PHP_METHOD(Phalcon_Mvc_View, getPartial) { } - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 391); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 393); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "partial", NULL, 0, &partialPath, params); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", NULL, 398); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", NULL, 400); zephir_check_call_status(); RETURN_MM(); @@ -1777,7 +1777,7 @@ PHP_METHOD(Phalcon_Mvc_View, start) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 391); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 393); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("content"), &__$null); RETURN_THIS(); @@ -1937,7 +1937,7 @@ PHP_METHOD(Phalcon_Mvc_View, engineRender) { { ZEPHIR_INIT_NVAR(&viewsDir); ZVAL_COPY(&viewsDir, _2); - ZEPHIR_CALL_METHOD(&_4$$3, this_ptr, "isabsolutepath", &_5, 499, &viewPath); + ZEPHIR_CALL_METHOD(&_4$$3, this_ptr, "isabsolutepath", &_5, 497, &viewPath); zephir_check_call_status(); if (!(zephir_is_true(&_4$$3))) { ZEPHIR_INIT_NVAR(&viewsDirPath); @@ -2055,7 +2055,7 @@ PHP_METHOD(Phalcon_Mvc_View, engineRender) { } ZEPHIR_CALL_METHOD(&viewsDir, &_1, "current", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_24$$16, this_ptr, "isabsolutepath", &_5, 499, &viewPath); + ZEPHIR_CALL_METHOD(&_24$$16, this_ptr, "isabsolutepath", &_5, 497, &viewPath); zephir_check_call_status(); if (!(zephir_is_true(&_24$$16))) { ZEPHIR_INIT_NVAR(&viewsDirPath); @@ -2288,7 +2288,7 @@ PHP_METHOD(Phalcon_Mvc_View, loadTemplateEngines) { if (ZEPHIR_IS_EMPTY(®isteredEngines)) { ZEPHIR_INIT_VAR(&_2$$4); object_init_ex(&_2$$4, phalcon_mvc_view_engine_php_ce); - ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 500, this_ptr, &di); + ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 498, this_ptr, &di); zephir_check_call_status(); zephir_array_update_string(&engines, SL(".phtml"), &_2$$4, PH_COPY | PH_SEPARATE); } else { @@ -2505,7 +2505,7 @@ PHP_METHOD(Phalcon_Mvc_View, processRender) { zephir_update_property_zval(this_ptr, SL("currentRenderLevel"), &_0); zephir_read_property(&_0, this_ptr, SL("disabled"), PH_NOISY_CC | PH_READONLY); if (!ZEPHIR_IS_FALSE_IDENTICAL(&_0)) { - ZEPHIR_CALL_FUNCTION(&_1$$3, "ob_get_contents", NULL, 501); + ZEPHIR_CALL_FUNCTION(&_1$$3, "ob_get_contents", NULL, 499); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("content"), &_1$$3); RETURN_MM_BOOL(0); @@ -2563,7 +2563,7 @@ PHP_METHOD(Phalcon_Mvc_View, processRender) { RETURN_MM_BOOL(0); } } - ZEPHIR_CALL_FUNCTION(&_8, "ob_get_contents", NULL, 501); + ZEPHIR_CALL_FUNCTION(&_8, "ob_get_contents", NULL, 499); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("content"), &_8); silence = 1; diff --git a/ext/phalcon/mvc/view/engine/php.zep.c b/ext/phalcon/mvc/view/engine/php.zep.c index ae3814f034a..76970a13f12 100644 --- a/ext/phalcon/mvc/view/engine/php.zep.c +++ b/ext/phalcon/mvc/view/engine/php.zep.c @@ -85,7 +85,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render) { if (mustClean) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 502); + ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 500); zephir_check_call_status(); } if (Z_TYPE_P(params) == IS_ARRAY) { @@ -135,7 +135,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render) { } if (mustClean) { zephir_read_property(&_6$$7, this_ptr, SL("view"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_7$$7, "ob_get_contents", NULL, 501); + ZEPHIR_CALL_FUNCTION(&_7$$7, "ob_get_contents", NULL, 499); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_6$$7, "setcontent", NULL, 0, &_7$$7); zephir_check_call_status(); diff --git a/ext/phalcon/mvc/view/engine/volt.zep.c b/ext/phalcon/mvc/view/engine/volt.zep.c index 746a15df842..c9f12bdfd14 100644 --- a/ext/phalcon/mvc/view/engine/volt.zep.c +++ b/ext/phalcon/mvc/view/engine/volt.zep.c @@ -155,7 +155,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, convertEncoding) { _0 = ZEPHIR_IS_STRING(&to, "utf8"); } if (_0) { - ZEPHIR_RETURN_CALL_FUNCTION("utf8_encode", NULL, 503, &text); + ZEPHIR_RETURN_CALL_FUNCTION("utf8_encode", NULL, 501, &text); zephir_check_call_status(); RETURN_MM(); } @@ -208,18 +208,18 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, getCompiler) { ZEPHIR_INIT_NVAR(&compiler); object_init_ex(&compiler, phalcon_mvc_view_engine_volt_compiler_ce); zephir_read_property(&_1$$3, this_ptr, SL("view"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(NULL, &compiler, "__construct", NULL, 504, &_1$$3); + ZEPHIR_CALL_METHOD(NULL, &compiler, "__construct", NULL, 502, &_1$$3); zephir_check_call_status(); zephir_read_property(&_2$$3, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&container, &_2$$3); if (Z_TYPE_P(&container) == IS_OBJECT) { - ZEPHIR_CALL_METHOD(NULL, &compiler, "setdi", NULL, 505, &container); + ZEPHIR_CALL_METHOD(NULL, &compiler, "setdi", NULL, 503, &container); zephir_check_call_status(); } zephir_read_property(&_2$$3, this_ptr, SL("options"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&options, &_2$$3); if (Z_TYPE_P(&options) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, &compiler, "setoptions", NULL, 506, &options); + ZEPHIR_CALL_METHOD(NULL, &compiler, "setoptions", NULL, 504, &options); zephir_check_call_status(); } zephir_update_property_zval(this_ptr, SL("compiler"), &compiler); @@ -365,7 +365,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, render) { if (mustClean) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 502); + ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 500); zephir_check_call_status(); } ZEPHIR_CALL_METHOD(&compiler, this_ptr, "getcompiler", NULL, 0); @@ -441,7 +441,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, render) { } if (mustClean) { zephir_read_property(&_11$$11, this_ptr, SL("view"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_12$$11, "ob_get_contents", NULL, 501); + ZEPHIR_CALL_FUNCTION(&_12$$11, "ob_get_contents", NULL, 499); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_11$$11, "setcontent", NULL, 0, &_12$$11); zephir_check_call_status(); @@ -601,7 +601,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, sort) { ZEPHIR_MAKE_REF(&value); - ZEPHIR_CALL_FUNCTION(NULL, "asort", NULL, 507, &value); + ZEPHIR_CALL_FUNCTION(NULL, "asort", NULL, 505, &value); ZEPHIR_UNREF(&value); zephir_check_call_status(); RETURN_CTOR(&value); diff --git a/ext/phalcon/mvc/view/engine/volt/compiler.zep.c b/ext/phalcon/mvc/view/engine/volt/compiler.zep.c index 6329d813517..c19ca394af9 100644 --- a/ext/phalcon/mvc/view/engine/volt/compiler.zep.c +++ b/ext/phalcon/mvc/view/engine/volt/compiler.zep.c @@ -293,7 +293,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, attributeReader) { } } } else { - ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", NULL, 508, &left); + ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", NULL, 506, &left); zephir_check_call_status(); ZEPHIR_OBS_VAR(&leftType); zephir_array_fetch_string(&leftType, &left, SL("type"), PH_NOISY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 137 TSRMLS_CC); @@ -315,7 +315,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, attributeReader) { zephir_array_fetch_string(&_11$$11, &right, SL("value"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 151 TSRMLS_CC); zephir_concat_self(&exprCode, &_11$$11 TSRMLS_CC); } else { - ZEPHIR_CALL_METHOD(&_12$$12, this_ptr, "expression", NULL, 508, &right); + ZEPHIR_CALL_METHOD(&_12$$12, this_ptr, "expression", NULL, 506, &right); zephir_check_call_status(); zephir_concat_self(&exprCode, &_12$$12 TSRMLS_CC); } @@ -575,7 +575,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compile) { object_init_ex(&_17$$35, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_18$$35); ZEPHIR_CONCAT_SVS(&_18$$35, "Extends compilation file ", &compiledTemplatePath, " could not be opened"); - ZEPHIR_CALL_METHOD(NULL, &_17$$35, "__construct", NULL, 509, &_18$$35); + ZEPHIR_CALL_METHOD(NULL, &_17$$35, "__construct", NULL, 507, &_18$$35); zephir_check_call_status(); zephir_throw_exception_debug(&_17$$35, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 366 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -637,7 +637,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileAutoEscape) { } else { ZVAL_BOOL(&_1, 0); } - ZEPHIR_CALL_METHOD(&compilation, this_ptr, "statementlist", NULL, 510, &_0, &_1); + ZEPHIR_CALL_METHOD(&compilation, this_ptr, "statementlist", NULL, 508, &_0, &_1); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("autoescape"), &oldAutoescape); RETURN_CCTOR(&compilation); @@ -702,15 +702,15 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileCache) { object_init_ex(&_0$$3, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "Corrupt statement"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 509, &_1$$3, &statement); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 507, &_1$$3, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$3, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 429 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 508, &expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 506, &expr); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 508, &expr); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 506, &expr); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_3); ZEPHIR_CONCAT_SVS(&_3, "di->get('viewCache'); "); @@ -746,7 +746,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileCache) { } else { ZVAL_BOOL(&_14, 0); } - ZEPHIR_CALL_METHOD(&_12, this_ptr, "statementlist", NULL, 510, &_13, &_14); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "statementlist", NULL, 508, &_13, &_14); zephir_check_call_status(); zephir_concat_self(&compilation, &_12 TSRMLS_CC); ZEPHIR_OBS_NVAR(&lifetime); @@ -836,13 +836,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileCase) { object_init_ex(&_0$$4, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_1$$4); ZVAL_STRING(&_1$$4, "Corrupt statement"); - ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 509, &_1$$4, &statement); + ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 507, &_1$$4, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$4, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 505 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 508, &expr); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 506, &expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -875,7 +875,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileDo) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 525); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 508, &expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 506, &expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -916,13 +916,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileEcho) { object_init_ex(&_0$$3, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "Corrupt statement"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 509, &_1$$3, &statement); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 507, &_1$$3, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$3, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 545 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 508, &expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 506, &expr); zephir_check_call_status(); zephir_array_fetch_string(&_2, &expr, SL("type"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 553 TSRMLS_CC); if (ZEPHIR_IS_LONG(&_2, 350)) { @@ -974,13 +974,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileElseIf) { object_init_ex(&_0$$3, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "Corrupt statement"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 509, &_1$$3, &statement); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 507, &_1$$3, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$3, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 588 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 508, &expr); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 506, &expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -1059,7 +1059,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { object_init_ex(&_0$$4, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_1$$4); ZEPHIR_CONCAT_SVS(&_1$$4, "Template file ", &path, " does not exist"); - ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 509, &_1$$4); + ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 507, &_1$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$4, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 623 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -1072,7 +1072,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { object_init_ex(&_2$$5, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_3$$5); ZEPHIR_CONCAT_SVS(&_3$$5, "Template file ", &path, " could not be opened"); - ZEPHIR_CALL_METHOD(NULL, &_2$$5, "__construct", NULL, 509, &_3$$5); + ZEPHIR_CALL_METHOD(NULL, &_2$$5, "__construct", NULL, 507, &_3$$5); zephir_check_call_status(); zephir_throw_exception_debug(&_2$$5, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 635 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -1186,7 +1186,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { ZEPHIR_CONCAT_VV(&prefixLevel, &prefix, &level); ZEPHIR_OBS_VAR(&expr); zephir_array_fetch_string(&expr, &statement, SL("expr"), PH_NOISY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 696 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 508, &expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 506, &expr); zephir_check_call_status(); ZEPHIR_OBS_VAR(&blockStatements); zephir_array_fetch_string(&blockStatements, &statement, SL("block_statements"), PH_NOISY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 703 TSRMLS_CC); @@ -1246,7 +1246,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { } else { ZVAL_BOOL(&_4, 0); } - ZEPHIR_CALL_METHOD(&code, this_ptr, "statementlist", NULL, 510, &blockStatements, &_4); + ZEPHIR_CALL_METHOD(&code, this_ptr, "statementlist", NULL, 508, &blockStatements, &_4); zephir_check_call_status(); ZEPHIR_OBS_VAR(&loopContext); zephir_read_property(&loopContext, this_ptr, SL("loopPointers"), PH_NOISY_CC); @@ -1297,7 +1297,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { } ZEPHIR_OBS_VAR(&ifExpr); if (zephir_array_isset_string_fetch(&ifExpr, &statement, SL("if_expr"), 0)) { - ZEPHIR_CALL_METHOD(&_16$$15, this_ptr, "expression", NULL, 508, &ifExpr); + ZEPHIR_CALL_METHOD(&_16$$15, this_ptr, "expression", NULL, 506, &ifExpr); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_17$$15); ZEPHIR_CONCAT_SVS(&_17$$15, "if (", &_16$$15, ") { ?>"); @@ -1424,13 +1424,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileIf) { object_init_ex(&_0$$3, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "Corrupt statement"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 509, &_1$$3, &statement); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 507, &_1$$3, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$3, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 850 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 508, &expr); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 506, &expr); zephir_check_call_status(); zephir_array_fetch_string(&_4, &statement, SL("true_statements"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 856 TSRMLS_CC); if (extendsMode) { @@ -1438,7 +1438,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileIf) { } else { ZVAL_BOOL(&_5, 0); } - ZEPHIR_CALL_METHOD(&_3, this_ptr, "statementlist", NULL, 510, &_4, &_5); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "statementlist", NULL, 508, &_4, &_5); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_6); ZEPHIR_CONCAT_SVSV(&_6, "", &_3); @@ -1450,7 +1450,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileIf) { } else { ZVAL_BOOL(&_8$$4, 0); } - ZEPHIR_CALL_METHOD(&_7$$4, this_ptr, "statementlist", NULL, 510, &blockStatements, &_8$$4); + ZEPHIR_CALL_METHOD(&_7$$4, this_ptr, "statementlist", NULL, 508, &blockStatements, &_8$$4); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_9$$4); ZEPHIR_CONCAT_SV(&_9$$4, "", &_7$$4); @@ -1518,14 +1518,14 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileInclude) { RETURN_CCTOR(&compilation); } } - ZEPHIR_CALL_METHOD(&path, this_ptr, "expression", NULL, 508, &pathExpr); + ZEPHIR_CALL_METHOD(&path, this_ptr, "expression", NULL, 506, &pathExpr); zephir_check_call_status(); ZEPHIR_OBS_VAR(¶ms); if (!(zephir_array_isset_string_fetch(¶ms, &statement, SL("params"), 0))) { ZEPHIR_CONCAT_SVS(return_value, "partial(", &path, "); ?>"); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_3, this_ptr, "expression", NULL, 508, ¶ms); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "expression", NULL, 506, ¶ms); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "partial(", &path, ", ", &_3, "); ?>"); RETURN_MM(); @@ -1602,7 +1602,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { object_init_ex(&_1$$4, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_2$$4); ZEPHIR_CONCAT_SVS(&_2$$4, "Macro '", &name, "' is already defined"); - ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 509, &_2$$4); + ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 507, &_2$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$4, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 962 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -1653,7 +1653,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { zephir_concat_self_str(&code, " } else { ", sizeof(" } else { ")-1 TSRMLS_CC); ZEPHIR_OBS_NVAR(&defaultValue); if (EXPECTED(zephir_array_isset_string_fetch(&defaultValue, ¶meter, SL("default"), 0))) { - ZEPHIR_CALL_METHOD(&_14$$8, this_ptr, "expression", &_15, 508, &defaultValue); + ZEPHIR_CALL_METHOD(&_14$$8, this_ptr, "expression", &_15, 506, &defaultValue); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_16$$8); ZEPHIR_CONCAT_SVSVS(&_16$$8, "$", &variableName, " = ", &_14$$8, ";"); @@ -1696,7 +1696,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { zephir_concat_self_str(&code, " } else { ", sizeof(" } else { ")-1 TSRMLS_CC); ZEPHIR_OBS_NVAR(&defaultValue); if (EXPECTED(zephir_array_isset_string_fetch(&defaultValue, ¶meter, SL("default"), 0))) { - ZEPHIR_CALL_METHOD(&_22$$11, this_ptr, "expression", &_15, 508, &defaultValue); + ZEPHIR_CALL_METHOD(&_22$$11, this_ptr, "expression", &_15, 506, &defaultValue); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_23$$11); ZEPHIR_CONCAT_SVSVS(&_23$$11, "$", &variableName, " = ", &_22$$11, ";"); @@ -1722,7 +1722,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { } else { ZVAL_BOOL(&_26$$13, 0); } - ZEPHIR_CALL_METHOD(&_25$$13, this_ptr, "statementlist", NULL, 510, &blockStatements, &_26$$13); + ZEPHIR_CALL_METHOD(&_25$$13, this_ptr, "statementlist", NULL, 508, &blockStatements, &_26$$13); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_27$$13); ZEPHIR_CONCAT_VS(&_27$$13, &_25$$13, ""); RETURN_MM(); @@ -1827,10 +1827,10 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSet) { ZEPHIR_INIT_NVAR(&assignment); ZVAL_COPY(&assignment, _0); zephir_array_fetch_string(&_2$$4, &assignment, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1067 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_3, 508, &_2$$4); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_3, 506, &_2$$4); zephir_check_call_status(); zephir_array_fetch_string(&_4$$4, &assignment, SL("variable"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1074 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_3, 508, &_4$$4); + ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_3, 506, &_4$$4); zephir_check_call_status(); zephir_array_fetch_string(&_5$$4, &assignment, SL("op"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1080 TSRMLS_CC); do { @@ -1877,10 +1877,10 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSet) { ZEPHIR_CALL_METHOD(&assignment, &assignments, "current", NULL, 0); zephir_check_call_status(); zephir_array_fetch_string(&_11$$10, &assignment, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1067 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_3, 508, &_11$$10); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_3, 506, &_11$$10); zephir_check_call_status(); zephir_array_fetch_string(&_12$$10, &assignment, SL("variable"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1074 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_3, 508, &_12$$10); + ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_3, 506, &_12$$10); zephir_check_call_status(); zephir_array_fetch_string(&_13$$10, &assignment, SL("op"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1080 TSRMLS_CC); do { @@ -2021,13 +2021,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSwitch) { object_init_ex(&_0$$3, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "Corrupt statement"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 509, &_1$$3, &statement); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 507, &_1$$3, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$3, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1135 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 508, &expr); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 506, &expr); zephir_check_call_status(); ZEPHIR_INIT_VAR(&compilation); ZEPHIR_CONCAT_SVS(&compilation, ""); @@ -2038,7 +2038,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSwitch) { } else { ZVAL_BOOL(&_3$$4, 0); } - ZEPHIR_CALL_METHOD(&lines, this_ptr, "statementlist", NULL, 510, &caseClauses, &_3$$4); + ZEPHIR_CALL_METHOD(&lines, this_ptr, "statementlist", NULL, 508, &caseClauses, &_3$$4); zephir_check_call_status(); if (zephir_fast_strlen_ev(&lines) != 0) { ZEPHIR_INIT_VAR(&_4$$5); @@ -2124,7 +2124,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { zephir_array_fast_append(&_1$$4, &expr); ZEPHIR_INIT_NVAR(&_2$$4); ZVAL_STRING(&_2$$4, "resolveExpression"); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "fireextensionevent", &_3, 511, &_2$$4, &_1$$4); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "fireextensionevent", &_3, 509, &_2$$4, &_1$$4); zephir_check_call_status(); if (Z_TYPE_P(&exprCode) == IS_STRING) { break; @@ -2141,7 +2141,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { ZEPHIR_INIT_NVAR(&singleExpr); ZVAL_COPY(&singleExpr, _4$$6); zephir_array_fetch_string(&_6$$7, &singleExpr, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1219 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 508, &_6$$7); + ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 506, &_6$$7); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&name); if (zephir_array_isset_string_fetch(&name, &singleExpr, SL("name"), 0)) { @@ -2164,7 +2164,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { ZEPHIR_CALL_METHOD(&singleExpr, &expr, "current", NULL, 0); zephir_check_call_status(); zephir_array_fetch_string(&_9$$10, &singleExpr, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1219 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 508, &_9$$10); + ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 506, &_9$$10); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&name); if (zephir_array_isset_string_fetch(&name, &singleExpr, SL("name"), 0)) { @@ -2190,7 +2190,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } ZEPHIR_OBS_NVAR(&left); if (zephir_array_isset_string_fetch(&left, &expr, SL("left"), 0)) { - ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_7, 508, &left); + ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_7, 506, &left); zephir_check_call_status(); } if (ZEPHIR_IS_LONG(&type, 311)) { @@ -2201,13 +2201,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } if (ZEPHIR_IS_LONG(&type, 124)) { zephir_array_fetch_string(&_14$$16, &expr, SL("right"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1266 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "resolvefilter", &_15, 0, &_14$$16, &leftCode); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "resolvefilter", &_15, 510, &_14$$16, &leftCode); zephir_check_call_status(); break; } ZEPHIR_OBS_NVAR(&right); if (zephir_array_isset_string_fetch(&right, &expr, SL("right"), 0)) { - ZEPHIR_CALL_METHOD(&rightCode, this_ptr, "expression", &_7, 508, &right); + ZEPHIR_CALL_METHOD(&rightCode, this_ptr, "expression", &_7, 506, &right); zephir_check_call_status(); } ZEPHIR_INIT_NVAR(&exprCode); @@ -2383,7 +2383,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { if (ZEPHIR_IS_LONG(&type, 365)) { ZEPHIR_OBS_NVAR(&start); if (zephir_array_isset_string_fetch(&start, &expr, SL("start"), 0)) { - ZEPHIR_CALL_METHOD(&startCode, this_ptr, "expression", &_7, 508, &start); + ZEPHIR_CALL_METHOD(&startCode, this_ptr, "expression", &_7, 506, &start); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(&startCode); @@ -2391,7 +2391,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } ZEPHIR_OBS_NVAR(&end); if (zephir_array_isset_string_fetch(&end, &expr, SL("end"), 0)) { - ZEPHIR_CALL_METHOD(&endCode, this_ptr, "expression", &_7, 508, &end); + ZEPHIR_CALL_METHOD(&endCode, this_ptr, "expression", &_7, 506, &end); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(&endCode); @@ -2483,7 +2483,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } if (ZEPHIR_IS_LONG(&type, 366)) { zephir_array_fetch_string(&_23$$72, &expr, SL("ternary"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1500 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_22$$72, this_ptr, "expression", &_7, 508, &_23$$72); + ZEPHIR_CALL_METHOD(&_22$$72, this_ptr, "expression", &_7, 506, &_23$$72); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&exprCode); ZEPHIR_CONCAT_SVSVSVS(&exprCode, "(", &_22$$72, " ? ", &leftCode, " : ", &rightCode, ")"); @@ -2510,7 +2510,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { zephir_array_fetch_string(&_26$$76, &expr, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1518 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_27$$76); ZEPHIR_CONCAT_SVSVSV(&_27$$76, "Unknown expression ", &type, " in ", &_25$$76, " on line ", &_26$$76); - ZEPHIR_CALL_METHOD(NULL, &_24$$76, "__construct", &_28, 509, &_27$$76); + ZEPHIR_CALL_METHOD(NULL, &_24$$76, "__construct", &_28, 507, &_27$$76); zephir_check_call_status(); zephir_throw_exception_debug(&_24$$76, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1518 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -2703,7 +2703,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { ZVAL_NULL(&funcArguments); ZEPHIR_OBS_NVAR(&funcArguments); if (zephir_array_isset_string_fetch(&funcArguments, &expr, SL("arguments"), 0)) { - ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 508, &funcArguments); + ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 506, &funcArguments); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(&arguments); @@ -2726,7 +2726,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { zephir_array_fast_append(&_1$$6, &funcArguments); ZEPHIR_INIT_VAR(&_2$$6); ZVAL_STRING(&_2$$6, "compileFunction"); - ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 511, &_2$$6, &_1$$6); + ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 509, &_2$$6, &_1$$6); zephir_check_call_status(); if (Z_TYPE_P(&code) == IS_STRING) { RETURN_CCTOR(&code); @@ -2758,7 +2758,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { zephir_array_fetch_string(&_6$$9, &expr, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1645 TSRMLS_CC); ZEPHIR_INIT_VAR(&_7$$9); ZEPHIR_CONCAT_SVSVSV(&_7$$9, "Invalid definition for user function '", &name, "' in ", &_5$$9, " on line ", &_6$$9); - ZEPHIR_CALL_METHOD(NULL, &_4$$9, "__construct", NULL, 509, &_7$$9); + ZEPHIR_CALL_METHOD(NULL, &_4$$9, "__construct", NULL, 507, &_7$$9); zephir_check_call_status(); zephir_throw_exception_debug(&_4$$9, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1645 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -2787,7 +2787,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { zephir_read_property(&_11$$17, this_ptr, SL("exprLevel"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&exprLevel, &_11$$17); if (Z_TYPE_P(&block) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&code, this_ptr, "statementlistorextends", NULL, 0, &block); + ZEPHIR_CALL_METHOD(&code, this_ptr, "statementlistorextends", NULL, 511, &block); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&exprLevel, 1)) { ZEPHIR_CPY_WRT(&escapedCode, &code); @@ -2876,7 +2876,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { ZEPHIR_CONCAT_SVSVS(return_value, "$this->callMacro('", &name, "', [", &arguments, "])"); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_14, this_ptr, "expression", NULL, 508, &nameExpr); + ZEPHIR_CALL_METHOD(&_14, this_ptr, "expression", NULL, 506, &nameExpr); zephir_check_call_status(); ZEPHIR_CONCAT_VSVS(return_value, &_14, "(", &arguments, ")"); RETURN_MM(); @@ -3177,28 +3177,28 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveTest) { if (zephir_array_isset_string_fetch(&name, &testName, SL("value"), 0)) { if (ZEPHIR_IS_STRING(&name, "divisibleby")) { zephir_array_fetch_string(&_1$$12, &test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2036 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0$$12, this_ptr, "expression", NULL, 508, &_1$$12); + ZEPHIR_CALL_METHOD(&_0$$12, this_ptr, "expression", NULL, 506, &_1$$12); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "(((", &left, ") % (", &_0$$12, ")) == 0)"); RETURN_MM(); } if (ZEPHIR_IS_STRING(&name, "sameas")) { zephir_array_fetch_string(&_3$$13, &test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2043 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_2$$13, this_ptr, "expression", NULL, 508, &_3$$13); + ZEPHIR_CALL_METHOD(&_2$$13, this_ptr, "expression", NULL, 506, &_3$$13); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "(", &left, ") === (", &_2$$13, ")"); RETURN_MM(); } if (ZEPHIR_IS_STRING(&name, "type")) { zephir_array_fetch_string(&_5$$14, &test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2050 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_4$$14, this_ptr, "expression", NULL, 508, &_5$$14); + ZEPHIR_CALL_METHOD(&_4$$14, this_ptr, "expression", NULL, 506, &_5$$14); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "gettype(", &left, ") === (", &_4$$14, ")"); RETURN_MM(); } } } - ZEPHIR_CALL_METHOD(&_6, this_ptr, "expression", NULL, 508, &test); + ZEPHIR_CALL_METHOD(&_6, this_ptr, "expression", NULL, 506, &test); zephir_check_call_status(); ZEPHIR_CONCAT_VSV(return_value, &left, " == ", &_6); RETURN_MM(); @@ -3392,7 +3392,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSource) { } else { ZVAL_BOOL(&_0, 0); } - ZEPHIR_CALL_METHOD(&compilation, this_ptr, "statementlist", NULL, 510, &intermediate, &_0); + ZEPHIR_CALL_METHOD(&compilation, this_ptr, "statementlist", NULL, 508, &intermediate, &_0); zephir_check_call_status(); zephir_read_property(&_1, this_ptr, SL("extended"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&extended, &_1); @@ -3424,11 +3424,11 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSource) { ZEPHIR_OBS_NVAR(&localBlock); zephir_array_fetch(&localBlock, &blocks, &name, PH_NOISY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2165 TSRMLS_CC); zephir_update_property_zval(this_ptr, SL("currentBlock"), &name); - ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 510, &localBlock); + ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 508, &localBlock); zephir_check_call_status(); } else { if (Z_TYPE_P(&block) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 510, &block); + ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 508, &block); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&blockCompilation, &block); @@ -3465,11 +3465,11 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSource) { ZEPHIR_OBS_NVAR(&localBlock); zephir_array_fetch(&localBlock, &blocks, &name, PH_NOISY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2165 TSRMLS_CC); zephir_update_property_zval(this_ptr, SL("currentBlock"), &name); - ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 510, &localBlock); + ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 508, &localBlock); zephir_check_call_status(); } else { if (Z_TYPE_P(&block) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 510, &block); + ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 508, &block); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&blockCompilation, &block); @@ -3647,7 +3647,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fetch_string(&_2$$5, &filter, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2263 TSRMLS_CC); ZEPHIR_INIT_VAR(&_3$$5); ZEPHIR_CONCAT_SVSV(&_3$$5, "Unknown filter type in ", &_1$$5, " on line ", &_2$$5); - ZEPHIR_CALL_METHOD(NULL, &_0$$5, "__construct", NULL, 509, &_3$$5); + ZEPHIR_CALL_METHOD(NULL, &_0$$5, "__construct", NULL, 507, &_3$$5); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$5, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2263 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -3685,7 +3685,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { ZEPHIR_UNREF(&funcArguments); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 508, &funcArguments); + ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 506, &funcArguments); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&arguments, &left); @@ -3700,7 +3700,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fast_append(&_7$$9, &funcArguments); ZEPHIR_INIT_VAR(&_8$$9); ZVAL_STRING(&_8$$9, "compileFilter"); - ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 511, &_8$$9, &_7$$9); + ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 509, &_8$$9, &_7$$9); zephir_check_call_status(); if (Z_TYPE_P(&code) == IS_STRING) { RETURN_CCTOR(&code); @@ -3731,7 +3731,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fetch_string(&_12$$11, &filter, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2357 TSRMLS_CC); ZEPHIR_INIT_VAR(&_13$$11); ZEPHIR_CONCAT_SVSVSV(&_13$$11, "Invalid definition for user filter '", &name, "' in ", &_11$$11, " on line ", &_12$$11); - ZEPHIR_CALL_METHOD(NULL, &_10$$11, "__construct", NULL, 509, &_13$$11); + ZEPHIR_CALL_METHOD(NULL, &_10$$11, "__construct", NULL, 507, &_13$$11); zephir_check_call_status(); zephir_throw_exception_debug(&_10$$11, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2357 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -3859,7 +3859,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fetch_string(&_19, &filter, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2551 TSRMLS_CC); ZEPHIR_INIT_VAR(&_20); ZEPHIR_CONCAT_SVSVSV(&_20, "Unknown filter \"", &name, "\" in ", &_18, " on line ", &_19); - ZEPHIR_CALL_METHOD(NULL, &_17, "__construct", NULL, 509, &_20); + ZEPHIR_CALL_METHOD(NULL, &_17, "__construct", NULL, 507, &_20); zephir_check_call_status(); zephir_throw_exception_debug(&_17, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2551 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -4027,7 +4027,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { zephir_array_fetch_string(&_6$$7, &statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2599 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_7$$7); ZEPHIR_CONCAT_SVSV(&_7$$7, "Invalid statement in ", &_5$$7, " on line ", &_6$$7); - ZEPHIR_CALL_METHOD(NULL, &_4$$7, "__construct", &_8, 509, &_7$$7, &statement); + ZEPHIR_CALL_METHOD(NULL, &_4$$7, "__construct", &_8, 507, &_7$$7, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_4$$7, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2601 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -4039,7 +4039,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { zephir_array_fast_append(&_9$$8, &statement); ZEPHIR_INIT_NVAR(&_10$$8); ZVAL_STRING(&_10$$8, "compileStatement"); - ZEPHIR_CALL_METHOD(&tempCompilation, this_ptr, "fireextensionevent", &_11, 511, &_10$$8, &_9$$8); + ZEPHIR_CALL_METHOD(&tempCompilation, this_ptr, "fireextensionevent", &_11, 509, &_10$$8, &_9$$8); zephir_check_call_status(); if (Z_TYPE_P(&tempCompilation) == IS_STRING) { zephir_concat_self(&compilation, &tempCompilation TSRMLS_CC); @@ -4144,7 +4144,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { } else { ZVAL_BOOL(&_34$$24, 0); } - ZEPHIR_CALL_METHOD(&_33$$24, this_ptr, "statementlist", &_35, 510, &blockStatements, &_34$$24); + ZEPHIR_CALL_METHOD(&_33$$24, this_ptr, "statementlist", &_35, 508, &blockStatements, &_34$$24); zephir_check_call_status(); zephir_concat_self(&compilation, &_33$$24 TSRMLS_CC); } @@ -4265,7 +4265,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { zephir_array_fetch_string(&_61$$38, &statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2839 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_62$$38); ZEPHIR_CONCAT_SVSVSV(&_62$$38, "Unknown statement ", &type, " in ", &_60$$38, " on line ", &_61$$38); - ZEPHIR_CALL_METHOD(NULL, &_59$$38, "__construct", &_8, 509, &_62$$38); + ZEPHIR_CALL_METHOD(NULL, &_59$$38, "__construct", &_8, 507, &_62$$38); zephir_check_call_status(); zephir_throw_exception_debug(&_59$$38, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2839 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -4295,7 +4295,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { zephir_array_fetch_string(&_65$$41, &statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2599 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_66$$41); ZEPHIR_CONCAT_SVSV(&_66$$41, "Invalid statement in ", &_64$$41, " on line ", &_65$$41); - ZEPHIR_CALL_METHOD(NULL, &_63$$41, "__construct", &_8, 509, &_66$$41, &statement); + ZEPHIR_CALL_METHOD(NULL, &_63$$41, "__construct", &_8, 507, &_66$$41, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_63$$41, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2601 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -4307,7 +4307,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { zephir_array_fast_append(&_67$$42, &statement); ZEPHIR_INIT_NVAR(&_68$$42); ZVAL_STRING(&_68$$42, "compileStatement"); - ZEPHIR_CALL_METHOD(&tempCompilation, this_ptr, "fireextensionevent", &_11, 511, &_68$$42, &_67$$42); + ZEPHIR_CALL_METHOD(&tempCompilation, this_ptr, "fireextensionevent", &_11, 509, &_68$$42, &_67$$42); zephir_check_call_status(); if (Z_TYPE_P(&tempCompilation) == IS_STRING) { zephir_concat_self(&compilation, &tempCompilation TSRMLS_CC); @@ -4412,7 +4412,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { } else { ZVAL_BOOL(&_84$$58, 0); } - ZEPHIR_CALL_METHOD(&_83$$58, this_ptr, "statementlist", &_35, 510, &blockStatements, &_84$$58); + ZEPHIR_CALL_METHOD(&_83$$58, this_ptr, "statementlist", &_35, 508, &blockStatements, &_84$$58); zephir_check_call_status(); zephir_concat_self(&compilation, &_83$$58 TSRMLS_CC); } @@ -4533,7 +4533,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { zephir_array_fetch_string(&_101$$72, &statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2839 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_102$$72); ZEPHIR_CONCAT_SVSVSV(&_102$$72, "Unknown statement ", &type, " in ", &_100$$72, " on line ", &_101$$72); - ZEPHIR_CALL_METHOD(NULL, &_99$$72, "__construct", &_8, 509, &_102$$72); + ZEPHIR_CALL_METHOD(NULL, &_99$$72, "__construct", &_8, 507, &_102$$72); zephir_check_call_status(); zephir_throw_exception_debug(&_99$$72, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2839 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -4621,7 +4621,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementListOrExtends) { ZEPHIR_INIT_NVAR(&statement); } if (isStatementList) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "statementlist", NULL, 510, statements); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "statementlist", NULL, 508, statements); zephir_check_call_status(); RETURN_MM(); } diff --git a/ext/phalcon/mvc/view/simple.zep.c b/ext/phalcon/mvc/view/simple.zep.c index 753918ea07c..20cec2bb7ce 100644 --- a/ext/phalcon/mvc/view/simple.zep.c +++ b/ext/phalcon/mvc/view/simple.zep.c @@ -349,7 +349,7 @@ PHP_METHOD(Phalcon_Mvc_View_Simple, partial) { } - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 391); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 393); zephir_check_call_status(); if (Z_TYPE_P(params) == IS_ARRAY) { zephir_read_property(&_0$$3, this_ptr, SL("viewParams"), PH_NOISY_CC | PH_READONLY); @@ -451,7 +451,7 @@ PHP_METHOD(Phalcon_Mvc_View_Simple, render) { ZEPHIR_INIT_VAR(&_0); ZEPHIR_CREATE_SYMBOL_TABLE(); - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 391); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 393); zephir_check_call_status(); zephir_read_property(&_1, this_ptr, SL("viewParams"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&viewParams, &_1); @@ -712,7 +712,7 @@ PHP_METHOD(Phalcon_Mvc_View_Simple, loadTemplateEngines) { if (Z_TYPE_P(®isteredEngines) != IS_ARRAY) { ZEPHIR_INIT_VAR(&_2$$4); object_init_ex(&_2$$4, phalcon_mvc_view_engine_php_ce); - ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 500, this_ptr, &di); + ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 498, this_ptr, &di); zephir_check_call_status(); zephir_array_update_string(&engines, SL(".phtml"), &_2$$4, PH_COPY | PH_SEPARATE); } else { diff --git a/ext/phalcon/security.zep.c b/ext/phalcon/security.zep.c index 20633e34070..2e42112b6b0 100644 --- a/ext/phalcon/security.zep.c +++ b/ext/phalcon/security.zep.c @@ -49,9 +49,7 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Security) { - ZEPHIR_REGISTER_CLASS(Phalcon, Security, phalcon, security, phalcon_security_method_entry, 0); - - zend_declare_property_null(phalcon_security_ce, SL("container"), ZEND_ACC_PROTECTED TSRMLS_CC); + ZEPHIR_REGISTER_CLASS_EX(Phalcon, Security, phalcon, security, phalcon_di_abstractinjectionaware_ce, phalcon_security_method_entry, 0); zend_declare_property_null(phalcon_security_ce, SL("defaultHash"), ZEND_ACC_PROTECTED TSRMLS_CC); @@ -71,6 +69,10 @@ ZEPHIR_INIT_CLASS(Phalcon_Security) { zend_declare_property_long(phalcon_security_ce, SL("workFactor"), 8, ZEND_ACC_PROTECTED TSRMLS_CC); + zend_declare_property_null(phalcon_security_ce, SL("localSession"), ZEND_ACC_PRIVATE TSRMLS_CC); + + zend_declare_property_null(phalcon_security_ce, SL("localRequest"), ZEND_ACC_PRIVATE TSRMLS_CC); + zephir_declare_class_constant_long(phalcon_security_ce, SL("CRYPT_DEFAULT"), 0); zephir_declare_class_constant_long(phalcon_security_ce, SL("CRYPT_BLOWFISH"), 4); @@ -91,7 +93,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Security) { zephir_declare_class_constant_long(phalcon_security_ce, SL("CRYPT_STD_DES"), 1); - zend_class_implements(phalcon_security_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); return SUCCESS; } @@ -126,14 +127,28 @@ PHP_METHOD(Phalcon_Security, getWorkFactor) { */ PHP_METHOD(Phalcon_Security, __construct) { - zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; + zval *session = NULL, session_sub, *request = NULL, request_sub, __$null, _0; zval *this_ptr = getThis(); + ZVAL_UNDEF(&session_sub); + ZVAL_UNDEF(&request_sub); + ZVAL_NULL(&__$null); ZVAL_UNDEF(&_0); ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 0, 2, &session, &request); + + if (!session) { + session = &session_sub; + session = &__$null; + } + if (!request) { + request = &request_sub; + request = &__$null; + } + ZEPHIR_INIT_VAR(&_0); object_init_ex(&_0, phalcon_security_random_ce); @@ -142,6 +157,8 @@ PHP_METHOD(Phalcon_Security, __construct) { zephir_check_call_status(); } zephir_update_property_zval(this_ptr, SL("random"), &_0); + zephir_update_property_zval(this_ptr, SL("localRequest"), request); + zephir_update_property_zval(this_ptr, SL("localSession"), session); ZEPHIR_MM_RESTORE(); } @@ -213,28 +230,20 @@ PHP_METHOD(Phalcon_Security, checkToken) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; - zephir_fcall_cache_entry *_3 = NULL; - zend_bool destroyIfValid, _9; - zval *tokenKey = NULL, tokenKey_sub, *tokenValue = NULL, tokenValue_sub, *destroyIfValid_param = NULL, __$null, container, session, request, equals, userToken, knownToken, _0, _5, _6, _1$$3, _2$$3, _4$$3, _7$$4, _8$$6; + zend_bool destroyIfValid, _0, _3; + zval *tokenKey = NULL, tokenKey_sub, *tokenValue = NULL, tokenValue_sub, *destroyIfValid_param = NULL, __$null, session, request, equals, userToken, knownToken, _1$$3, _2$$5; zval *this_ptr = getThis(); ZVAL_UNDEF(&tokenKey_sub); ZVAL_UNDEF(&tokenValue_sub); ZVAL_NULL(&__$null); - ZVAL_UNDEF(&container); ZVAL_UNDEF(&session); ZVAL_UNDEF(&request); ZVAL_UNDEF(&equals); ZVAL_UNDEF(&userToken); ZVAL_UNDEF(&knownToken); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_5); - ZVAL_UNDEF(&_6); ZVAL_UNDEF(&_1$$3); - ZVAL_UNDEF(&_2$$3); - ZVAL_UNDEF(&_4$$3); - ZVAL_UNDEF(&_7$$4); - ZVAL_UNDEF(&_8$$6); + ZVAL_UNDEF(&_2$$5); ZEPHIR_MM_GROW(); zephir_fetch_params(1, 0, 3, &tokenKey, &tokenValue, &destroyIfValid_param); @@ -256,56 +265,43 @@ PHP_METHOD(Phalcon_Security, checkToken) { } - zephir_read_property(&_0, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CPY_WRT(&container, &_0); - if (UNEXPECTED(Z_TYPE_P(&container) != IS_OBJECT)) { - ZEPHIR_INIT_VAR(&_1$$3); - object_init_ex(&_1$$3, phalcon_security_exception_ce); - ZEPHIR_INIT_VAR(&_4$$3); - ZVAL_STRING(&_4$$3, "the 'session' service"); - ZEPHIR_CALL_CE_STATIC(&_2$$3, phalcon_security_exception_ce, "containerservicenotfound", &_3, 0, &_4$$3); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 5, &_2$$3); - zephir_check_call_status(); - zephir_throw_exception_debug(&_1$$3, "phalcon/Security.zep", 111 TSRMLS_CC); - ZEPHIR_MM_RESTORE(); - return; - } - ZEPHIR_INIT_VAR(&_6); - ZVAL_STRING(&_6, "session"); - ZEPHIR_CALL_METHOD(&_5, &container, "getshared", NULL, 0, &_6); + ZEPHIR_CALL_METHOD(&session, this_ptr, "getlocalsession", NULL, 0); zephir_check_call_status(); - ZEPHIR_CPY_WRT(&session, &_5); - if (!(zephir_is_true(tokenKey))) { - zephir_read_property(&_7$$4, this_ptr, SL("tokenKeySessionId"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(tokenKey, &session, "get", NULL, 0, &_7$$4); + _0 = zephir_is_true(&session); + if (_0) { + _0 = !zephir_is_true(tokenKey); + } + if (EXPECTED(_0)) { + zephir_read_property(&_1$$3, this_ptr, SL("tokenKeySessionId"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CALL_METHOD(tokenKey, &session, "get", NULL, 0, &_1$$3); zephir_check_call_status(); } if (!(zephir_is_true(tokenKey))) { RETURN_MM_BOOL(0); } if (!(zephir_is_true(tokenValue))) { - ZEPHIR_INIT_VAR(&_8$$6); - ZVAL_STRING(&_8$$6, "request"); - ZEPHIR_CALL_METHOD(&request, &container, "getshared", NULL, 0, &_8$$6); + ZEPHIR_CALL_METHOD(&request, this_ptr, "getlocalrequest", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_NVAR(&_8$$6); - ZVAL_STRING(&_8$$6, "string"); - ZEPHIR_CALL_METHOD(&userToken, &request, "getpost", NULL, 0, tokenKey, &_8$$6); + ZEPHIR_INIT_VAR(&_2$$5); + ZVAL_STRING(&_2$$5, "string"); + ZEPHIR_CALL_METHOD(&userToken, &request, "getpost", NULL, 0, tokenKey, &_2$$5); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&userToken, tokenValue); } ZEPHIR_CALL_METHOD(&knownToken, this_ptr, "getrequesttoken", NULL, 0); zephir_check_call_status(); + if (Z_TYPE_P(&knownToken) == IS_NULL) { + RETURN_MM_BOOL(0); + } ZEPHIR_INIT_VAR(&equals); ZEPHIR_INIT_NVAR(&equals); ZVAL_BOOL(&equals, zephir_hash_equals(&knownToken, &userToken)); - _9 = zephir_is_true(&equals); - if (_9) { - _9 = destroyIfValid; + _3 = zephir_is_true(&equals); + if (_3) { + _3 = destroyIfValid; } - if (_9) { + if (_3) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "destroytoken", NULL, 0); zephir_check_call_status(); } @@ -359,7 +355,7 @@ PHP_METHOD(Phalcon_Security, computeHmac) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 5, &_3$$3); zephir_check_call_status(); - zephir_throw_exception_debug(&_1$$3, "phalcon/Security.zep", 172 TSRMLS_CC); + zephir_throw_exception_debug(&_1$$3, "phalcon/Security.zep", 173 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -373,50 +369,27 @@ PHP_METHOD(Phalcon_Security, computeHmac) { PHP_METHOD(Phalcon_Security, destroyToken) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval __$null, container, session, _0, _5, _6, _7, _1$$3, _2$$3, _4$$3; + zval __$null, session, _0$$3, _1$$3; zend_long ZEPHIR_LAST_CALL_STATUS; - zephir_fcall_cache_entry *_3 = NULL; zval *this_ptr = getThis(); ZVAL_NULL(&__$null); - ZVAL_UNDEF(&container); ZVAL_UNDEF(&session); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_5); - ZVAL_UNDEF(&_6); - ZVAL_UNDEF(&_7); + ZVAL_UNDEF(&_0$$3); ZVAL_UNDEF(&_1$$3); - ZVAL_UNDEF(&_2$$3); - ZVAL_UNDEF(&_4$$3); ZEPHIR_MM_GROW(); - zephir_read_property(&_0, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CPY_WRT(&container, &_0); - if (UNEXPECTED(Z_TYPE_P(&container) != IS_OBJECT)) { - ZEPHIR_INIT_VAR(&_1$$3); - object_init_ex(&_1$$3, phalcon_security_exception_ce); - ZEPHIR_INIT_VAR(&_4$$3); - ZVAL_STRING(&_4$$3, "the 'session' service"); - ZEPHIR_CALL_CE_STATIC(&_2$$3, phalcon_security_exception_ce, "containerservicenotfound", &_3, 0, &_4$$3); + ZEPHIR_CALL_METHOD(&session, this_ptr, "getlocalsession", NULL, 0); + zephir_check_call_status(); + if (UNEXPECTED(zephir_is_true(&session))) { + zephir_read_property(&_0$$3, this_ptr, SL("tokenKeySessionId"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CALL_METHOD(NULL, &session, "remove", NULL, 0, &_0$$3); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 5, &_2$$3); + zephir_read_property(&_1$$3, this_ptr, SL("tokenValueSessionId"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CALL_METHOD(NULL, &session, "remove", NULL, 0, &_1$$3); zephir_check_call_status(); - zephir_throw_exception_debug(&_1$$3, "phalcon/Security.zep", 190 TSRMLS_CC); - ZEPHIR_MM_RESTORE(); - return; } - ZEPHIR_INIT_VAR(&_6); - ZVAL_STRING(&_6, "session"); - ZEPHIR_CALL_METHOD(&_5, &container, "getshared", NULL, 0, &_6); - zephir_check_call_status(); - ZEPHIR_CPY_WRT(&session, &_5); - zephir_read_property(&_0, this_ptr, SL("tokenKeySessionId"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(NULL, &session, "remove", NULL, 0, &_0); - zephir_check_call_status(); - zephir_read_property(&_7, this_ptr, SL("tokenValueSessionId"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(NULL, &session, "remove", NULL, 0, &_7); - zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("token"), &__$null); zephir_update_property_zval(this_ptr, SL("tokenKey"), &__$null); zephir_update_property_zval(this_ptr, SL("requestToken"), &__$null); @@ -436,18 +409,6 @@ PHP_METHOD(Phalcon_Security, getDefaultHash) { } -/** - * Returns the internal dependency injector - */ -PHP_METHOD(Phalcon_Security, getDI) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "container"); - -} - /** * Returns a secure random number generator instance */ @@ -502,47 +463,25 @@ PHP_METHOD(Phalcon_Security, getRequestToken) { */ PHP_METHOD(Phalcon_Security, getSessionToken) { - zval container, session, _0, _5, _6, _1$$3, _2$$3, _4$$3; + zval session, _0$$3; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; - zephir_fcall_cache_entry *_3 = NULL; zval *this_ptr = getThis(); - ZVAL_UNDEF(&container); ZVAL_UNDEF(&session); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_5); - ZVAL_UNDEF(&_6); - ZVAL_UNDEF(&_1$$3); - ZVAL_UNDEF(&_2$$3); - ZVAL_UNDEF(&_4$$3); + ZVAL_UNDEF(&_0$$3); ZEPHIR_MM_GROW(); - zephir_read_property(&_0, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CPY_WRT(&container, &_0); - if (UNEXPECTED(Z_TYPE_P(&container) != IS_OBJECT)) { - ZEPHIR_INIT_VAR(&_1$$3); - object_init_ex(&_1$$3, phalcon_security_exception_ce); - ZEPHIR_INIT_VAR(&_4$$3); - ZVAL_STRING(&_4$$3, "the 'session' service"); - ZEPHIR_CALL_CE_STATIC(&_2$$3, phalcon_security_exception_ce, "containerservicenotfound", &_3, 0, &_4$$3); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 5, &_2$$3); + ZEPHIR_CALL_METHOD(&session, this_ptr, "getlocalsession", NULL, 0); + zephir_check_call_status(); + if (UNEXPECTED(zephir_is_true(&session))) { + zephir_read_property(&_0$$3, this_ptr, SL("tokenValueSessionId"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_RETURN_CALL_METHOD(&session, "get", NULL, 0, &_0$$3); zephir_check_call_status(); - zephir_throw_exception_debug(&_1$$3, "phalcon/Security.zep", 262 TSRMLS_CC); - ZEPHIR_MM_RESTORE(); - return; + RETURN_MM(); } - ZEPHIR_INIT_VAR(&_6); - ZVAL_STRING(&_6, "session"); - ZEPHIR_CALL_METHOD(&_5, &container, "getshared", NULL, 0, &_6); - zephir_check_call_status(); - ZEPHIR_CPY_WRT(&session, &_5); - zephir_read_property(&_0, this_ptr, SL("tokenValueSessionId"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_RETURN_CALL_METHOD(&session, "get", NULL, 0, &_0); - zephir_check_call_status(); - RETURN_MM(); + RETURN_MM_NULL(); } @@ -601,26 +540,19 @@ PHP_METHOD(Phalcon_Security, getSaltBytes) { */ PHP_METHOD(Phalcon_Security, getToken) { - zval container, session, _0, _1$$3, _2$$3, _3$$3, _4$$3, _5$$3, _10$$3, _11$$3, _12$$3, _6$$4, _7$$4, _9$$4; + zval session, _0, _1$$3, _2$$3, _3$$3, _4$$3, _5$$4, _6$$4; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zephir_fcall_cache_entry *_8 = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; zval *this_ptr = getThis(); - ZVAL_UNDEF(&container); ZVAL_UNDEF(&session); ZVAL_UNDEF(&_0); ZVAL_UNDEF(&_1$$3); ZVAL_UNDEF(&_2$$3); ZVAL_UNDEF(&_3$$3); ZVAL_UNDEF(&_4$$3); - ZVAL_UNDEF(&_5$$3); - ZVAL_UNDEF(&_10$$3); - ZVAL_UNDEF(&_11$$3); - ZVAL_UNDEF(&_12$$3); + ZVAL_UNDEF(&_5$$4); ZVAL_UNDEF(&_6$$4); - ZVAL_UNDEF(&_7$$4); - ZVAL_UNDEF(&_9$$4); ZEPHIR_MM_GROW(); @@ -634,30 +566,14 @@ PHP_METHOD(Phalcon_Security, getToken) { ZEPHIR_CALL_METHOD(&_3$$3, &_2$$3, "base64safe", NULL, 0, &_4$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("token"), &_3$$3); - zephir_read_property(&_5$$3, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CPY_WRT(&container, &_5$$3); - if (UNEXPECTED(Z_TYPE_P(&container) != IS_OBJECT)) { - ZEPHIR_INIT_VAR(&_6$$4); - object_init_ex(&_6$$4, phalcon_security_exception_ce); - ZEPHIR_INIT_VAR(&_9$$4); - ZVAL_STRING(&_9$$4, "the 'session' service"); - ZEPHIR_CALL_CE_STATIC(&_7$$4, phalcon_security_exception_ce, "containerservicenotfound", &_8, 0, &_9$$4); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_6$$4, "__construct", NULL, 5, &_7$$4); + ZEPHIR_CALL_METHOD(&session, this_ptr, "getlocalsession", NULL, 0); + zephir_check_call_status(); + if (UNEXPECTED(zephir_is_true(&session))) { + zephir_read_property(&_5$$4, this_ptr, SL("tokenValueSessionId"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_6$$4, this_ptr, SL("token"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CALL_METHOD(NULL, &session, "set", NULL, 0, &_5$$4, &_6$$4); zephir_check_call_status(); - zephir_throw_exception_debug(&_6$$4, "phalcon/Security.zep", 310 TSRMLS_CC); - ZEPHIR_MM_RESTORE(); - return; } - ZEPHIR_INIT_VAR(&_11$$3); - ZVAL_STRING(&_11$$3, "session"); - ZEPHIR_CALL_METHOD(&_10$$3, &container, "getshared", NULL, 0, &_11$$3); - zephir_check_call_status(); - ZEPHIR_CPY_WRT(&session, &_10$$3); - zephir_read_property(&_5$$3, this_ptr, SL("tokenValueSessionId"), PH_NOISY_CC | PH_READONLY); - zephir_read_property(&_12$$3, this_ptr, SL("token"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(NULL, &session, "set", NULL, 0, &_5$$3, &_12$$3); - zephir_check_call_status(); } RETURN_MM_MEMBER(getThis(), "token"); @@ -669,59 +585,36 @@ PHP_METHOD(Phalcon_Security, getToken) { */ PHP_METHOD(Phalcon_Security, getTokenKey) { - zval container, session, _0, _1$$3, _6$$3, _7$$3, _8$$3, _9$$3, _10$$3, _11$$3, _2$$4, _3$$4, _5$$4; + zval session, _0, _1$$4, _2$$4, _3$$4, _4$$4, _5$$4; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; - zephir_fcall_cache_entry *_4 = NULL; zval *this_ptr = getThis(); - ZVAL_UNDEF(&container); ZVAL_UNDEF(&session); ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1$$3); - ZVAL_UNDEF(&_6$$3); - ZVAL_UNDEF(&_7$$3); - ZVAL_UNDEF(&_8$$3); - ZVAL_UNDEF(&_9$$3); - ZVAL_UNDEF(&_10$$3); - ZVAL_UNDEF(&_11$$3); + ZVAL_UNDEF(&_1$$4); ZVAL_UNDEF(&_2$$4); ZVAL_UNDEF(&_3$$4); + ZVAL_UNDEF(&_4$$4); ZVAL_UNDEF(&_5$$4); ZEPHIR_MM_GROW(); zephir_read_property(&_0, this_ptr, SL("tokenKey"), PH_NOISY_CC | PH_READONLY); if (Z_TYPE_P(&_0) == IS_NULL) { - zephir_read_property(&_1$$3, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CPY_WRT(&container, &_1$$3); - if (UNEXPECTED(Z_TYPE_P(&container) != IS_OBJECT)) { - ZEPHIR_INIT_VAR(&_2$$4); - object_init_ex(&_2$$4, phalcon_security_exception_ce); - ZEPHIR_INIT_VAR(&_5$$4); - ZVAL_STRING(&_5$$4, "the 'session' service"); - ZEPHIR_CALL_CE_STATIC(&_3$$4, phalcon_security_exception_ce, "containerservicenotfound", &_4, 0, &_5$$4); + ZEPHIR_CALL_METHOD(&session, this_ptr, "getlocalsession", NULL, 0); + zephir_check_call_status(); + if (UNEXPECTED(zephir_is_true(&session))) { + zephir_read_property(&_1$$4, this_ptr, SL("random"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_3$$4, this_ptr, SL("numberBytes"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CALL_METHOD(&_2$$4, &_1$$4, "base64safe", NULL, 0, &_3$$4); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 5, &_3$$4); + zephir_update_property_zval(this_ptr, SL("tokenKey"), &_2$$4); + zephir_read_property(&_4$$4, this_ptr, SL("tokenKeySessionId"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_5$$4, this_ptr, SL("tokenKey"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CALL_METHOD(NULL, &session, "set", NULL, 0, &_4$$4, &_5$$4); zephir_check_call_status(); - zephir_throw_exception_debug(&_2$$4, "phalcon/Security.zep", 338 TSRMLS_CC); - ZEPHIR_MM_RESTORE(); - return; } - zephir_read_property(&_1$$3, this_ptr, SL("random"), PH_NOISY_CC | PH_READONLY); - zephir_read_property(&_7$$3, this_ptr, SL("numberBytes"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(&_6$$3, &_1$$3, "base64safe", NULL, 0, &_7$$3); - zephir_check_call_status(); - zephir_update_property_zval(this_ptr, SL("tokenKey"), &_6$$3); - ZEPHIR_INIT_VAR(&_9$$3); - ZVAL_STRING(&_9$$3, "session"); - ZEPHIR_CALL_METHOD(&_8$$3, &container, "getshared", NULL, 0, &_9$$3); - zephir_check_call_status(); - ZEPHIR_CPY_WRT(&session, &_8$$3); - zephir_read_property(&_10$$3, this_ptr, SL("tokenKeySessionId"), PH_NOISY_CC | PH_READONLY); - zephir_read_property(&_11$$3, this_ptr, SL("tokenKey"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(NULL, &session, "set", NULL, 0, &_10$$3, &_11$$3); - zephir_check_call_status(); } RETURN_MM_MEMBER(getThis(), "tokenKey"); @@ -822,7 +715,7 @@ PHP_METHOD(Phalcon_Security, hash) { zephir_check_call_status(); } if (UNEXPECTED(Z_TYPE_P(&saltBytes) != IS_STRING)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Unable to get random bytes for the salt", "phalcon/Security.zep", 420); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Unable to get random bytes for the salt", "phalcon/Security.zep", 391); return; } ZEPHIR_RETURN_CALL_FUNCTION("crypt", NULL, 0, &password, &saltBytes); @@ -841,7 +734,7 @@ PHP_METHOD(Phalcon_Security, hash) { ZEPHIR_CALL_METHOD(&saltBytes, this_ptr, "getsaltbytes", NULL, 0, &_5$$15); zephir_check_call_status(); if (UNEXPECTED(Z_TYPE_P(&saltBytes) != IS_STRING)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Unable to get random bytes for the salt", "phalcon/Security.zep", 439); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Unable to get random bytes for the salt", "phalcon/Security.zep", 410); return; } ZEPHIR_INIT_VAR(&_6$$15); @@ -854,7 +747,7 @@ PHP_METHOD(Phalcon_Security, hash) { ZEPHIR_CALL_METHOD(&saltBytes, this_ptr, "getsaltbytes", NULL, 0, &_7$$17); zephir_check_call_status(); if (UNEXPECTED(Z_TYPE_P(&saltBytes) != IS_STRING)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Unable to get random bytes for the salt", "phalcon/Security.zep", 468); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Unable to get random bytes for the salt", "phalcon/Security.zep", 439); return; } if (workFactor < 4) { @@ -923,24 +816,6 @@ PHP_METHOD(Phalcon_Security, setDefaultHash) { } -/** - * Sets the dependency injector - */ -PHP_METHOD(Phalcon_Security, setDI) { - - zval *container, container_sub; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&container_sub); - - zephir_fetch_params_without_memory_grow(1, 0, &container); - - - - zephir_update_property_zval(this_ptr, SL("container"), container); - -} - /** * Sets a number of bytes to be generated by the openssl pseudo random * generator @@ -969,3 +844,113 @@ PHP_METHOD(Phalcon_Security, setRandomBytes) { } +PHP_METHOD(Phalcon_Security, getLocalRequest) { + + zval container, _0, _1, _6, _7, _2$$4, _3$$4, _5$$4, _8$$5, _9$$5; + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; + zend_long ZEPHIR_LAST_CALL_STATUS; + zephir_fcall_cache_entry *_4 = NULL; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&container); + ZVAL_UNDEF(&_0); + ZVAL_UNDEF(&_1); + ZVAL_UNDEF(&_6); + ZVAL_UNDEF(&_7); + ZVAL_UNDEF(&_2$$4); + ZVAL_UNDEF(&_3$$4); + ZVAL_UNDEF(&_5$$4); + ZVAL_UNDEF(&_8$$5); + ZVAL_UNDEF(&_9$$5); + + ZEPHIR_MM_GROW(); + + zephir_read_property(&_0, this_ptr, SL("localRequest"), PH_NOISY_CC | PH_READONLY); + if (zephir_is_true(&_0)) { + RETURN_MM_MEMBER(getThis(), "localRequest"); + } + zephir_read_property(&_1, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CPY_WRT(&container, &_1); + if (UNEXPECTED(Z_TYPE_P(&container) != IS_OBJECT)) { + ZEPHIR_INIT_VAR(&_2$$4); + object_init_ex(&_2$$4, phalcon_security_exception_ce); + ZEPHIR_INIT_VAR(&_5$$4); + ZVAL_STRING(&_5$$4, "the 'request' service"); + ZEPHIR_CALL_CE_STATIC(&_3$$4, phalcon_security_exception_ce, "containerservicenotfound", &_4, 0, &_5$$4); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 5, &_3$$4); + zephir_check_call_status(); + zephir_throw_exception_debug(&_2$$4, "phalcon/Security.zep", 498 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); + return; + } + ZEPHIR_INIT_VAR(&_7); + ZVAL_STRING(&_7, "request"); + ZEPHIR_CALL_METHOD(&_6, &container, "has", NULL, 0, &_7); + zephir_check_call_status(); + if (UNEXPECTED(zephir_is_true(&_6))) { + ZEPHIR_INIT_VAR(&_9$$5); + ZVAL_STRING(&_9$$5, "request"); + ZEPHIR_CALL_METHOD(&_8$$5, &container, "getshared", NULL, 0, &_9$$5); + zephir_check_call_status(); + RETURN_CCTOR(&_8$$5); + } + RETURN_MM_NULL(); + +} + +PHP_METHOD(Phalcon_Security, getLocalSession) { + + zval container, _0, _1, _6, _7, _2$$4, _3$$4, _5$$4, _8$$5, _9$$5; + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; + zend_long ZEPHIR_LAST_CALL_STATUS; + zephir_fcall_cache_entry *_4 = NULL; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&container); + ZVAL_UNDEF(&_0); + ZVAL_UNDEF(&_1); + ZVAL_UNDEF(&_6); + ZVAL_UNDEF(&_7); + ZVAL_UNDEF(&_2$$4); + ZVAL_UNDEF(&_3$$4); + ZVAL_UNDEF(&_5$$4); + ZVAL_UNDEF(&_8$$5); + ZVAL_UNDEF(&_9$$5); + + ZEPHIR_MM_GROW(); + + zephir_read_property(&_0, this_ptr, SL("localSession"), PH_NOISY_CC | PH_READONLY); + if (zephir_is_true(&_0)) { + RETURN_MM_MEMBER(getThis(), "localSession"); + } + zephir_read_property(&_1, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CPY_WRT(&container, &_1); + if (UNEXPECTED(Z_TYPE_P(&container) != IS_OBJECT)) { + ZEPHIR_INIT_VAR(&_2$$4); + object_init_ex(&_2$$4, phalcon_security_exception_ce); + ZEPHIR_INIT_VAR(&_5$$4); + ZVAL_STRING(&_5$$4, "the 'session' service"); + ZEPHIR_CALL_CE_STATIC(&_3$$4, phalcon_security_exception_ce, "containerservicenotfound", &_4, 0, &_5$$4); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 5, &_3$$4); + zephir_check_call_status(); + zephir_throw_exception_debug(&_2$$4, "phalcon/Security.zep", 520 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); + return; + } + ZEPHIR_INIT_VAR(&_7); + ZVAL_STRING(&_7, "session"); + ZEPHIR_CALL_METHOD(&_6, &container, "has", NULL, 0, &_7); + zephir_check_call_status(); + if (UNEXPECTED(zephir_is_true(&_6))) { + ZEPHIR_INIT_VAR(&_9$$5); + ZVAL_STRING(&_9$$5, "session"); + ZEPHIR_CALL_METHOD(&_8$$5, &container, "getshared", NULL, 0, &_9$$5); + zephir_check_call_status(); + RETURN_CCTOR(&_8$$5); + } + RETURN_MM_NULL(); + +} + diff --git a/ext/phalcon/security.zep.h b/ext/phalcon/security.zep.h index d8cb169ce1e..252f62c768d 100644 --- a/ext/phalcon/security.zep.h +++ b/ext/phalcon/security.zep.h @@ -11,7 +11,6 @@ PHP_METHOD(Phalcon_Security, checkToken); PHP_METHOD(Phalcon_Security, computeHmac); PHP_METHOD(Phalcon_Security, destroyToken); PHP_METHOD(Phalcon_Security, getDefaultHash); -PHP_METHOD(Phalcon_Security, getDI); PHP_METHOD(Phalcon_Security, getRandom); PHP_METHOD(Phalcon_Security, getRandomBytes); PHP_METHOD(Phalcon_Security, getRequestToken); @@ -22,13 +21,19 @@ PHP_METHOD(Phalcon_Security, getTokenKey); PHP_METHOD(Phalcon_Security, hash); PHP_METHOD(Phalcon_Security, isLegacyHash); PHP_METHOD(Phalcon_Security, setDefaultHash); -PHP_METHOD(Phalcon_Security, setDI); PHP_METHOD(Phalcon_Security, setRandomBytes); +PHP_METHOD(Phalcon_Security, getLocalRequest); +PHP_METHOD(Phalcon_Security, getLocalSession); ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_security_setworkfactor, 0, 0, 1) ZEND_ARG_INFO(0, workFactor) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_security___construct, 0, 0, 0) + ZEND_ARG_OBJ_INFO(0, session, Phalcon\\Session\\ManagerInterface, 1) + ZEND_ARG_OBJ_INFO(0, request, Phalcon\\Http\\RequestInterface, 1) +ZEND_END_ARG_INFO() + #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_checkhash, 0, 2, _IS_BOOL, 0) #else @@ -106,13 +111,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getdefaulthash, #endif ZEND_END_ARG_INFO() -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_security_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) -#endif -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_security_getrandom, 0, 0, Phalcon\\Security\\Random, 0) #else @@ -128,16 +126,16 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getrandombytes, ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getrequesttoken, 0, 0, IS_STRING, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getrequesttoken, 0, 0, IS_STRING, 1) #else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getrequesttoken, 0, 0, IS_STRING, NULL, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getrequesttoken, 0, 0, IS_STRING, NULL, 1) #endif ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getsessiontoken, 0, 0, IS_STRING, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getsessiontoken, 0, 0, IS_STRING, 1) #else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getsessiontoken, 0, 0, IS_STRING, NULL, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getsessiontoken, 0, 0, IS_STRING, NULL, 1) #endif ZEND_END_ARG_INFO() @@ -208,10 +206,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_setdefaulthash, #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_security_setdi, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_security_setrandombytes, 0, 1, Phalcon\\Security, 0) #else @@ -224,16 +218,29 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_setrandombytes, #endif ZEND_END_ARG_INFO() +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_security_getlocalrequest, 0, 0, Phalcon\\Http\\RequestInterface, 1) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getlocalrequest, 0, 0, IS_OBJECT, "Phalcon\\Http\\RequestInterface", 1) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_security_getlocalsession, 0, 0, Phalcon\\Session\\ManagerInterface, 1) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getlocalsession, 0, 0, IS_OBJECT, "Phalcon\\Session\\ManagerInterface", 1) +#endif +ZEND_END_ARG_INFO() + ZEPHIR_INIT_FUNCS(phalcon_security_method_entry) { PHP_ME(Phalcon_Security, setWorkFactor, arginfo_phalcon_security_setworkfactor, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security, getWorkFactor, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Security, __construct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Security, __construct, arginfo_phalcon_security___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) PHP_ME(Phalcon_Security, checkHash, arginfo_phalcon_security_checkhash, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security, checkToken, arginfo_phalcon_security_checktoken, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security, computeHmac, arginfo_phalcon_security_computehmac, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security, destroyToken, arginfo_phalcon_security_destroytoken, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security, getDefaultHash, arginfo_phalcon_security_getdefaulthash, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Security, getDI, arginfo_phalcon_security_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security, getRandom, arginfo_phalcon_security_getrandom, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security, getRandomBytes, arginfo_phalcon_security_getrandombytes, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security, getRequestToken, arginfo_phalcon_security_getrequesttoken, ZEND_ACC_PUBLIC) @@ -244,7 +251,8 @@ ZEPHIR_INIT_FUNCS(phalcon_security_method_entry) { PHP_ME(Phalcon_Security, hash, arginfo_phalcon_security_hash, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security, isLegacyHash, arginfo_phalcon_security_islegacyhash, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security, setDefaultHash, arginfo_phalcon_security_setdefaulthash, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Security, setDI, arginfo_phalcon_security_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security, setRandomBytes, arginfo_phalcon_security_setrandombytes, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Security, getLocalRequest, arginfo_phalcon_security_getlocalrequest, ZEND_ACC_PRIVATE) + PHP_ME(Phalcon_Security, getLocalSession, arginfo_phalcon_security_getlocalsession, ZEND_ACC_PRIVATE) PHP_FE_END }; diff --git a/ext/phalcon/session/adapter/stream.zep.c b/ext/phalcon/session/adapter/stream.zep.c index 8c02c522e95..bfedaf17066 100644 --- a/ext/phalcon/session/adapter/stream.zep.c +++ b/ext/phalcon/session/adapter/stream.zep.c @@ -22,7 +22,6 @@ #include "ext/spl/spl_exceptions.h" #include "kernel/file.h" #include "kernel/time.h" -#include "kernel/string.h" /** @@ -111,7 +110,7 @@ PHP_METHOD(Phalcon_Session_Adapter_Stream, __construct) { ZEPHIR_INIT_VAR(&_4$$4); object_init_ex(&_4$$4, phalcon_session_exception_ce); ZEPHIR_INIT_VAR(&_5$$4); - ZEPHIR_CONCAT_SVS(&_5$$4, "The save_path [", &path, "]is not writeable"); + ZEPHIR_CONCAT_SVS(&_5$$4, "The session save path [", &path, "] is not writable"); ZEPHIR_CALL_METHOD(NULL, &_4$$4, "__construct", NULL, 5, &_5$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_4$$4, "phalcon/Session/Adapter/Stream.zep", 60 TSRMLS_CC); @@ -260,27 +259,24 @@ PHP_METHOD(Phalcon_Session_Adapter_Stream, gc) { } +/** + * Ignore the savePath and use local defined path + * + * @return bool + */ PHP_METHOD(Phalcon_Session_Adapter_Stream, open) { - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *savePath, savePath_sub, *sessionName, sessionName_sub, path; + zval *savePath, savePath_sub, *sessionName, sessionName_sub; zval *this_ptr = getThis(); ZVAL_UNDEF(&savePath_sub); ZVAL_UNDEF(&sessionName_sub); - ZVAL_UNDEF(&path); - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 2, 0, &savePath, &sessionName); + zephir_fetch_params_without_memory_grow(2, 0, &savePath, &sessionName); - if (1 != zephir_end_with_str(savePath, SL("/"))) { - ZEPHIR_INIT_VAR(&path); - ZEPHIR_CONCAT_VS(&path, savePath, "/"); - } - zephir_update_property_zval(this_ptr, SL("path"), &path); - RETURN_MM_BOOL(1); + RETURN_BOOL(1); } diff --git a/ext/phalcon/session/manager.zep.c b/ext/phalcon/session/manager.zep.c index b773a063135..09c0486a64e 100644 --- a/ext/phalcon/session/manager.zep.c +++ b/ext/phalcon/session/manager.zep.c @@ -38,12 +38,7 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Session_Manager) { - ZEPHIR_REGISTER_CLASS(Phalcon\\Session, Manager, phalcon, session_manager, phalcon_session_manager_method_entry, 0); - - /** - * @var - */ - zend_declare_property_null(phalcon_session_manager_ce, SL("container"), ZEND_ACC_PRIVATE TSRMLS_CC); + ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Session, Manager, phalcon, session_manager, phalcon_di_abstractinjectionaware_ce, phalcon_session_manager_method_entry, 0); /** * @var |null @@ -68,7 +63,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Session_Manager) { phalcon_session_manager_ce->create_object = zephir_init_properties_Phalcon_Session_Manager; zend_class_implements(phalcon_session_manager_ce TSRMLS_CC, 1, phalcon_session_managerinterface_ce); - zend_class_implements(phalcon_session_manager_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); return SUCCESS; } @@ -307,18 +301,6 @@ PHP_METHOD(Phalcon_Session_Manager, get) { } -/** - * Returns the DependencyInjector container - */ -PHP_METHOD(Phalcon_Session_Manager, getDI) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "container"); - -} - /** * Returns the stored session handler */ @@ -554,24 +536,6 @@ PHP_METHOD(Phalcon_Session_Manager, set) { } -/** - * Sets the DependencyInjector container - */ -PHP_METHOD(Phalcon_Session_Manager, setDI) { - - zval *container, container_sub; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&container_sub); - - zephir_fetch_params_without_memory_grow(1, 0, &container); - - - - zephir_update_property_zval(this_ptr, SL("container"), container); - -} - /** * Set the handler for the session */ @@ -620,9 +584,9 @@ PHP_METHOD(Phalcon_Session_Manager, setId) { object_init_ex(&_1$$3, spl_ce_RuntimeException); ZEPHIR_INIT_VAR(&_2$$3); ZEPHIR_CONCAT_SS(&_2$$3, "The session has already been started. ", "To change the id, use regenerateId()"); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 264, &_2$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 265, &_2$$3); zephir_check_call_status(); - zephir_throw_exception_debug(&_1$$3, "phalcon/Session/Manager.zep", 280 TSRMLS_CC); + zephir_throw_exception_debug(&_1$$3, "phalcon/Session/Manager.zep", 259 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -666,7 +630,7 @@ PHP_METHOD(Phalcon_Session_Manager, setName) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "exists", NULL, 0); zephir_check_call_status(); if (UNEXPECTED(zephir_is_true(&_0))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(spl_ce_InvalidArgumentException, "Cannot set session name after a session has started", "phalcon/Session/Manager.zep", 303); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(spl_ce_InvalidArgumentException, "Cannot set session name after a session has started", "phalcon/Session/Manager.zep", 282); return; } ZEPHIR_INIT_VAR(&_1); @@ -677,7 +641,7 @@ PHP_METHOD(Phalcon_Session_Manager, setName) { ZVAL_STRING(&_4, "/^[\\p{L}\\p{N}_-]+$/u"); zephir_preg_match(&_3, &_4, &name, &_1, 0, 0 , 0 TSRMLS_CC); if (UNEXPECTED(!zephir_is_true(&_3))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(spl_ce_InvalidArgumentException, "The name contains non alphanum characters", "phalcon/Session/Manager.zep", 309); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(spl_ce_InvalidArgumentException, "The name contains non alphanum characters", "phalcon/Session/Manager.zep", 288); return; } zephir_update_property_zval(this_ptr, SL("name"), &name); @@ -745,7 +709,7 @@ PHP_METHOD(Phalcon_Session_Manager, start) { if (ZEPHIR_IS_TRUE_IDENTICAL(&_0)) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_1, "headers_sent", NULL, 363); + ZEPHIR_CALL_FUNCTION(&_1, "headers_sent", NULL, 365); zephir_check_call_status(); if (ZEPHIR_IS_TRUE_IDENTICAL(&_1)) { RETURN_MM_BOOL(0); @@ -753,7 +717,7 @@ PHP_METHOD(Phalcon_Session_Manager, start) { ZEPHIR_OBS_VAR(&_2); zephir_read_property(&_2, this_ptr, SL("handler"), PH_NOISY_CC); if (UNEXPECTED(!(zephir_is_instance_of(&_2, SL("SessionHandlerInterface") TSRMLS_CC)))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_session_exception_ce, "The session handler is not valid", "phalcon/Session/Manager.zep", 349); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_session_exception_ce, "The session handler is not valid", "phalcon/Session/Manager.zep", 328); return; } zephir_read_property(&_3, this_ptr, SL("handler"), PH_NOISY_CC | PH_READONLY); diff --git a/ext/phalcon/session/manager.zep.h b/ext/phalcon/session/manager.zep.h index 2cd49fdea6e..cd9c575e5b9 100644 --- a/ext/phalcon/session/manager.zep.h +++ b/ext/phalcon/session/manager.zep.h @@ -11,7 +11,6 @@ PHP_METHOD(Phalcon_Session_Manager, __unset); PHP_METHOD(Phalcon_Session_Manager, destroy); PHP_METHOD(Phalcon_Session_Manager, exists); PHP_METHOD(Phalcon_Session_Manager, get); -PHP_METHOD(Phalcon_Session_Manager, getDI); PHP_METHOD(Phalcon_Session_Manager, getHandler); PHP_METHOD(Phalcon_Session_Manager, getId); PHP_METHOD(Phalcon_Session_Manager, getName); @@ -21,7 +20,6 @@ PHP_METHOD(Phalcon_Session_Manager, regenerateId); PHP_METHOD(Phalcon_Session_Manager, registerHandler); PHP_METHOD(Phalcon_Session_Manager, remove); PHP_METHOD(Phalcon_Session_Manager, set); -PHP_METHOD(Phalcon_Session_Manager, setDI); PHP_METHOD(Phalcon_Session_Manager, setHandler); PHP_METHOD(Phalcon_Session_Manager, setId); PHP_METHOD(Phalcon_Session_Manager, setName); @@ -93,13 +91,6 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_manager_get, 0, 0, 1) #endif ZEND_END_ARG_INFO() -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_session_manager_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_session_manager_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) -#endif -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_session_manager_gethandler, 0, 0, SessionHandlerInterface, 0) #else @@ -173,10 +164,6 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_manager_set, 0, 0, 2) ZEND_ARG_INFO(0, value) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_manager_setdi, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_session_manager_sethandler, 0, 1, Phalcon\\Session\\ManagerInterface, 0) #else @@ -248,7 +235,6 @@ ZEPHIR_INIT_FUNCS(phalcon_session_manager_method_entry) { PHP_ME(Phalcon_Session_Manager, destroy, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, exists, arginfo_phalcon_session_manager_exists, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, get, arginfo_phalcon_session_manager_get, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Session_Manager, getDI, arginfo_phalcon_session_manager_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, getHandler, arginfo_phalcon_session_manager_gethandler, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, getId, arginfo_phalcon_session_manager_getid, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, getName, arginfo_phalcon_session_manager_getname, ZEND_ACC_PUBLIC) @@ -258,7 +244,6 @@ ZEPHIR_INIT_FUNCS(phalcon_session_manager_method_entry) { PHP_ME(Phalcon_Session_Manager, registerHandler, arginfo_phalcon_session_manager_registerhandler, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, remove, arginfo_phalcon_session_manager_remove, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, set, arginfo_phalcon_session_manager_set, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Session_Manager, setDI, arginfo_phalcon_session_manager_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, setHandler, arginfo_phalcon_session_manager_sethandler, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, setId, arginfo_phalcon_session_manager_setid, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, setName, arginfo_phalcon_session_manager_setname, ZEND_ACC_PUBLIC) diff --git a/ext/phalcon/storage/adapter/abstractadapter.zep.c b/ext/phalcon/storage/adapter/abstractadapter.zep.c index 5e5cb98dbc2..ea58da80ade 100644 --- a/ext/phalcon/storage/adapter/abstractadapter.zep.c +++ b/ext/phalcon/storage/adapter/abstractadapter.zep.c @@ -412,7 +412,8 @@ PHP_METHOD(Phalcon_Storage_Adapter_AbstractAdapter, getUnserializedData) { */ PHP_METHOD(Phalcon_Storage_Adapter_AbstractAdapter, initSerializer) { - zval _0, _1, _2, _3; + zend_bool _1, _4; + zval _0, _2, _3, _5, _6$$4, _7$$4, _8$$4; zval className; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -420,24 +421,42 @@ PHP_METHOD(Phalcon_Storage_Adapter_AbstractAdapter, initSerializer) { ZVAL_UNDEF(&className); ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1); ZVAL_UNDEF(&_2); ZVAL_UNDEF(&_3); + ZVAL_UNDEF(&_5); + ZVAL_UNDEF(&_6$$4); + ZVAL_UNDEF(&_7$$4); + ZVAL_UNDEF(&_8$$4); ZEPHIR_MM_GROW(); - zephir_read_property(&_0, this_ptr, SL("serializerFactory"), PH_NOISY_CC | PH_READONLY); - if (UNEXPECTED(Z_TYPE_P(&_0) == IS_NULL)) { + zephir_read_property(&_0, this_ptr, SL("serializer"), PH_NOISY_CC | PH_READONLY); + _1 = Z_TYPE_P(&_0) == IS_NULL; + if (_1) { + zephir_read_property(&_2, this_ptr, SL("serializerFactory"), PH_NOISY_CC | PH_READONLY); + _1 = Z_TYPE_P(&_2) == IS_NULL; + } + if (UNEXPECTED(_1)) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_storage_exception_ce, "A valid serializer is required", "phalcon/Storage/Adapter/AbstractAdapter.zep", 196); return; } - zephir_read_property(&_1, this_ptr, SL("defaultSerializer"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_INIT_VAR(&className); - zephir_fast_strtolower(&className, &_1); - zephir_read_property(&_2, this_ptr, SL("serializerFactory"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(&_3, &_2, "newinstance", NULL, 0, &className); - zephir_check_call_status(); - zephir_update_property_zval(this_ptr, SL("serializer"), &_3); + ZEPHIR_OBS_VAR(&_3); + zephir_read_property(&_3, this_ptr, SL("serializer"), PH_NOISY_CC); + _4 = Z_TYPE_P(&_3) == IS_OBJECT; + if (_4) { + ZEPHIR_OBS_VAR(&_5); + zephir_read_property(&_5, this_ptr, SL("serializer"), PH_NOISY_CC); + _4 = zephir_instance_of_ev(&_5, phalcon_storage_serializer_serializerinterface_ce TSRMLS_CC); + } + if (!(_4)) { + zephir_read_property(&_6$$4, this_ptr, SL("defaultSerializer"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_INIT_VAR(&className); + zephir_fast_strtolower(&className, &_6$$4); + zephir_read_property(&_7$$4, this_ptr, SL("serializerFactory"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CALL_METHOD(&_8$$4, &_7$$4, "newinstance", NULL, 0, &className); + zephir_check_call_status(); + zephir_update_property_zval(this_ptr, SL("serializer"), &_8$$4); + } ZEPHIR_MM_RESTORE(); } diff --git a/ext/phalcon/storage/adapter/redis.zep.c b/ext/phalcon/storage/adapter/redis.zep.c index fd2e6de8551..7e6ec0fa15d 100644 --- a/ext/phalcon/storage/adapter/redis.zep.c +++ b/ext/phalcon/storage/adapter/redis.zep.c @@ -319,8 +319,8 @@ PHP_METHOD(Phalcon_Storage_Adapter_Redis, get) { */ PHP_METHOD(Phalcon_Storage_Adapter_Redis, getAdapter) { - zend_bool _4$$3, _6$$3; - zval auth, connection, host, index, method, options, persistent, port, result, _0, _1$$3, _5$$3, _7$$3, _8$$3, _9$$3, _2$$4, _3$$4; + zend_bool _6$$3, _8$$3; + zval auth, connection, host, index, options, port, result, persistent, persistentid, _0, _1$$3, _7$$3, _9$$3, _10$$3, _2$$4, _3$$5, _4$$6, _5$$6; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; zval *this_ptr = getThis(); @@ -329,19 +329,20 @@ PHP_METHOD(Phalcon_Storage_Adapter_Redis, getAdapter) { ZVAL_UNDEF(&connection); ZVAL_UNDEF(&host); ZVAL_UNDEF(&index); - ZVAL_UNDEF(&method); ZVAL_UNDEF(&options); - ZVAL_UNDEF(&persistent); ZVAL_UNDEF(&port); ZVAL_UNDEF(&result); + ZVAL_UNDEF(&persistent); + ZVAL_UNDEF(&persistentid); ZVAL_UNDEF(&_0); ZVAL_UNDEF(&_1$$3); - ZVAL_UNDEF(&_5$$3); ZVAL_UNDEF(&_7$$3); - ZVAL_UNDEF(&_8$$3); ZVAL_UNDEF(&_9$$3); + ZVAL_UNDEF(&_10$$3); ZVAL_UNDEF(&_2$$4); - ZVAL_UNDEF(&_3$$4); + ZVAL_UNDEF(&_3$$5); + ZVAL_UNDEF(&_4$$6); + ZVAL_UNDEF(&_5$$6); ZEPHIR_MM_GROW(); @@ -357,56 +358,57 @@ PHP_METHOD(Phalcon_Storage_Adapter_Redis, getAdapter) { zephir_array_fetch_string(&auth, &options, SL("auth"), PH_NOISY, "phalcon/Storage/Adapter/Redis.zep", 119 TSRMLS_CC); ZEPHIR_OBS_VAR(&host); zephir_array_fetch_string(&host, &options, SL("host"), PH_NOISY, "phalcon/Storage/Adapter/Redis.zep", 120 TSRMLS_CC); + ZEPHIR_OBS_VAR(&port); + zephir_array_fetch_string(&port, &options, SL("port"), PH_NOISY, "phalcon/Storage/Adapter/Redis.zep", 121 TSRMLS_CC); ZEPHIR_OBS_VAR(&index); - zephir_array_fetch_string(&index, &options, SL("index"), PH_NOISY, "phalcon/Storage/Adapter/Redis.zep", 121 TSRMLS_CC); + zephir_array_fetch_string(&index, &options, SL("index"), PH_NOISY, "phalcon/Storage/Adapter/Redis.zep", 122 TSRMLS_CC); ZEPHIR_OBS_VAR(&persistent); - zephir_array_fetch_string(&persistent, &options, SL("persistent"), PH_NOISY, "phalcon/Storage/Adapter/Redis.zep", 122 TSRMLS_CC); - ZEPHIR_OBS_VAR(&port); - zephir_array_fetch_string(&port, &options, SL("port"), PH_NOISY, "phalcon/Storage/Adapter/Redis.zep", 123 TSRMLS_CC); - if (zephir_is_true(&persistent)) { - ZEPHIR_INIT_VAR(&method); - ZVAL_STRING(&method, "pconnect"); + zephir_array_fetch_string(&persistent, &options, SL("persistent"), PH_NOISY, "phalcon/Storage/Adapter/Redis.zep", 123 TSRMLS_CC); + if (!(zephir_is_true(&persistent))) { + zephir_read_property(&_2$$4, this_ptr, SL("lifetime"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CALL_METHOD(&result, &connection, "connect", NULL, 0, &host, &port, &_2$$4); + zephir_check_call_status(); } else { - ZEPHIR_INIT_NVAR(&method); - ZVAL_STRING(&method, "connect"); + ZEPHIR_INIT_VAR(&persistentid); + ZEPHIR_CONCAT_SV(&persistentid, "persistentid_", &index); + zephir_read_property(&_3$$5, this_ptr, SL("lifetime"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CALL_METHOD(&result, &connection, "pconnect", NULL, 0, &host, &port, &_3$$5, &persistentid); + zephir_check_call_status(); } - zephir_read_property(&_1$$3, this_ptr, SL("lifetime"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD_ZVAL(&result, &connection, &method, NULL, 0, &host, &port, &_1$$3); - zephir_check_call_status(); if (!(zephir_is_true(&result))) { - ZEPHIR_INIT_VAR(&_2$$4); - object_init_ex(&_2$$4, phalcon_storage_exception_ce); - ZEPHIR_INIT_VAR(&_3$$4); - ZEPHIR_CONCAT_SVSVS(&_3$$4, "Could not connect to the Redisd server [", &host, ":", &port, "]"); - ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 5, &_3$$4); + ZEPHIR_INIT_VAR(&_4$$6); + object_init_ex(&_4$$6, phalcon_storage_exception_ce); + ZEPHIR_INIT_VAR(&_5$$6); + ZEPHIR_CONCAT_SVSVS(&_5$$6, "Could not connect to the Redisd server [", &host, ":", &port, "]"); + ZEPHIR_CALL_METHOD(NULL, &_4$$6, "__construct", NULL, 5, &_5$$6); zephir_check_call_status(); - zephir_throw_exception_debug(&_2$$4, "phalcon/Storage/Adapter/Redis.zep", 131 TSRMLS_CC); + zephir_throw_exception_debug(&_4$$6, "phalcon/Storage/Adapter/Redis.zep", 135 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - _4$$3 = !(ZEPHIR_IS_EMPTY(&auth)); - if (_4$$3) { - ZEPHIR_CALL_METHOD(&_5$$3, &connection, "auth", NULL, 0, &auth); + _6$$3 = !(ZEPHIR_IS_EMPTY(&auth)); + if (_6$$3) { + ZEPHIR_CALL_METHOD(&_7$$3, &connection, "auth", NULL, 0, &auth); zephir_check_call_status(); - _4$$3 = !zephir_is_true(&_5$$3); + _6$$3 = !zephir_is_true(&_7$$3); } - if (_4$$3) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_storage_exception_ce, "Failed to authenticate with the Redis server", "phalcon/Storage/Adapter/Redis.zep", 135); + if (_6$$3) { + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_storage_exception_ce, "Failed to authenticate with the Redis server", "phalcon/Storage/Adapter/Redis.zep", 139); return; } - _6$$3 = ZEPHIR_GT_LONG(&index, 0); - if (_6$$3) { - ZEPHIR_CALL_METHOD(&_7$$3, &connection, "select", NULL, 0, &index); + _8$$3 = ZEPHIR_GT_LONG(&index, 0); + if (_8$$3) { + ZEPHIR_CALL_METHOD(&_9$$3, &connection, "select", NULL, 0, &index); zephir_check_call_status(); - _6$$3 = !zephir_is_true(&_7$$3); + _8$$3 = !zephir_is_true(&_9$$3); } - if (_6$$3) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_storage_exception_ce, "Redis server selected database failed", "phalcon/Storage/Adapter/Redis.zep", 139); + if (_8$$3) { + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_storage_exception_ce, "Redis server selected database failed", "phalcon/Storage/Adapter/Redis.zep", 143); return; } - zephir_read_property(&_8$$3, this_ptr, SL("prefix"), PH_NOISY_CC | PH_READONLY); - ZVAL_LONG(&_9$$3, 2); - ZEPHIR_CALL_METHOD(NULL, &connection, "setoption", NULL, 0, &_9$$3, &_8$$3); + zephir_read_property(&_1$$3, this_ptr, SL("prefix"), PH_NOISY_CC | PH_READONLY); + ZVAL_LONG(&_10$$3, 2); + ZEPHIR_CALL_METHOD(NULL, &connection, "setoption", NULL, 0, &_10$$3, &_1$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "setserializer", NULL, 114, &connection); zephir_check_call_status(); @@ -662,7 +664,7 @@ PHP_METHOD(Phalcon_Storage_Adapter_Redis, setSerializer) { ZEPHIR_INIT_NVAR(&_8$$5); ZVAL_STRING(&_8$$5, ""); zephir_update_property_zval(this_ptr, SL("defaultSerializer"), &_8$$5); - zephir_array_fetch(&_9$$5, &map, &serializer, PH_NOISY | PH_READONLY, "phalcon/Storage/Adapter/Redis.zep", 240 TSRMLS_CC); + zephir_array_fetch(&_9$$5, &map, &serializer, PH_NOISY | PH_READONLY, "phalcon/Storage/Adapter/Redis.zep", 244 TSRMLS_CC); ZVAL_LONG(&_10$$5, 1); ZEPHIR_CALL_METHOD(NULL, connection, "setoption", NULL, 0, &_10$$5, &_9$$5); zephir_check_call_status(); diff --git a/ext/phalcon/text.zep.c b/ext/phalcon/text.zep.c index 19df03ca82d..5f4c8fe86c9 100644 --- a/ext/phalcon/text.zep.c +++ b/ext/phalcon/text.zep.c @@ -284,7 +284,7 @@ PHP_METHOD(Phalcon_Text, endsWith) { } else { ZVAL_BOOL(&_1, 0); } - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_helper_str_ce, "endswith", &_0, 261, &text, &end, &_1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_helper_str_ce, "endswith", &_0, 262, &text, &end, &_1); zephir_check_call_status(); RETURN_MM(); @@ -465,7 +465,7 @@ PHP_METHOD(Phalcon_Text, startsWith) { } else { ZVAL_BOOL(&_1, 0); } - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_helper_str_ce, "startswith", &_0, 260, &text, &start, &_1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_helper_str_ce, "startswith", &_0, 261, &text, &start, &_1); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/url.zep.c b/ext/phalcon/url.zep.c index 18a3140aaa3..55bf3851c31 100644 --- a/ext/phalcon/url.zep.c +++ b/ext/phalcon/url.zep.c @@ -12,13 +12,13 @@ #include #include "kernel/main.h" -#include "kernel/string.h" +#include "kernel/object.h" #include "kernel/memory.h" +#include "kernel/string.h" #include "kernel/operators.h" #include "kernel/fcall.h" #include "kernel/array.h" #include "kernel/exception.h" -#include "kernel/object.h" #include "kernel/concat.h" #include "ext/spl/spl_exceptions.h" #include "phalcon/url/utils.h" @@ -51,7 +51,7 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Url) { - ZEPHIR_REGISTER_CLASS(Phalcon, Url, phalcon, url, phalcon_url_method_entry, 0); + ZEPHIR_REGISTER_CLASS_EX(Phalcon, Url, phalcon, url, phalcon_di_abstractinjectionaware_ce, phalcon_url_method_entry, 0); /** * @var null | string @@ -64,10 +64,8 @@ ZEPHIR_INIT_CLASS(Phalcon_Url) { zend_declare_property_null(phalcon_url_ce, SL("basePath"), ZEND_ACC_PROTECTED TSRMLS_CC); /** - * @var + * @var | null */ - zend_declare_property_null(phalcon_url_ce, SL("container"), ZEND_ACC_PROTECTED TSRMLS_CC); - zend_declare_property_null(phalcon_url_ce, SL("router"), ZEND_ACC_PROTECTED TSRMLS_CC); /** @@ -76,11 +74,30 @@ ZEPHIR_INIT_CLASS(Phalcon_Url) { zend_declare_property_null(phalcon_url_ce, SL("staticBaseUri"), ZEND_ACC_PROTECTED TSRMLS_CC); zend_class_implements(phalcon_url_ce TSRMLS_CC, 1, phalcon_url_urlinterface_ce); - zend_class_implements(phalcon_url_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); return SUCCESS; } +PHP_METHOD(Phalcon_Url, __construct) { + + zval *router = NULL, router_sub, __$null; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&router_sub); + ZVAL_NULL(&__$null); + + zephir_fetch_params_without_memory_grow(0, 1, &router); + + if (!router) { + router = &router_sub; + router = &__$null; + } + + + zephir_update_property_zval(this_ptr, SL("router"), router); + +} + /** * Generates a URL * @@ -116,13 +133,12 @@ ZEPHIR_INIT_CLASS(Phalcon_Url) { */ PHP_METHOD(Phalcon_Url, get) { - unsigned char _24$$14, _26$$14, _31$$16; - zval strUri, _19$$14; + zval strUri, _23$$15; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zephir_fcall_cache_entry *_10 = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; - zend_bool local, _0$$3, _1$$3, _22$$14, _23$$14, _25$$14, _29$$16, _30$$16, _32$$19; - zval *uri = NULL, uri_sub, *args = NULL, args_sub, *local_param = NULL, *baseUri = NULL, baseUri_sub, __$null, router, container, routeName, route, queryString, _2$$4, _3$$4, _4$$4, _5$$4, _6$$9, _14$$9, _17$$9, _18$$9, _7$$11, _12$$11, _13$$11, _8$$12, _9$$12, _11$$12, _15$$13, _16$$13, _20$$14, _21$$14, _27$$15, _28$$15, _33$$20, _34$$20, _35$$21, _36$$22; + zend_bool local, _0$$3, _1$$3, _27$$16; + zval *uri = NULL, uri_sub, *args = NULL, args_sub, *local_param = NULL, *baseUri = NULL, baseUri_sub, __$null, router, container, routeName, route, queryString, _2$$4, _3$$4, _4$$4, _5$$4, _6$$9, _18$$9, _21$$9, _22$$9, _7$$11, _12$$11, _13$$11, _17$$11, _8$$12, _9$$12, _11$$12, _14$$13, _15$$13, _16$$13, _19$$14, _20$$14, _24$$15, _25$$15, _26$$15, _28$$17, _29$$17, _30$$18, _31$$19; zval *this_ptr = getThis(); ZVAL_UNDEF(&uri_sub); @@ -139,27 +155,30 @@ PHP_METHOD(Phalcon_Url, get) { ZVAL_UNDEF(&_4$$4); ZVAL_UNDEF(&_5$$4); ZVAL_UNDEF(&_6$$9); - ZVAL_UNDEF(&_14$$9); - ZVAL_UNDEF(&_17$$9); ZVAL_UNDEF(&_18$$9); + ZVAL_UNDEF(&_21$$9); + ZVAL_UNDEF(&_22$$9); ZVAL_UNDEF(&_7$$11); ZVAL_UNDEF(&_12$$11); ZVAL_UNDEF(&_13$$11); + ZVAL_UNDEF(&_17$$11); ZVAL_UNDEF(&_8$$12); ZVAL_UNDEF(&_9$$12); ZVAL_UNDEF(&_11$$12); + ZVAL_UNDEF(&_14$$13); ZVAL_UNDEF(&_15$$13); ZVAL_UNDEF(&_16$$13); + ZVAL_UNDEF(&_19$$14); ZVAL_UNDEF(&_20$$14); - ZVAL_UNDEF(&_21$$14); - ZVAL_UNDEF(&_27$$15); - ZVAL_UNDEF(&_28$$15); - ZVAL_UNDEF(&_33$$20); - ZVAL_UNDEF(&_34$$20); - ZVAL_UNDEF(&_35$$21); - ZVAL_UNDEF(&_36$$22); + ZVAL_UNDEF(&_24$$15); + ZVAL_UNDEF(&_25$$15); + ZVAL_UNDEF(&_26$$15); + ZVAL_UNDEF(&_28$$17); + ZVAL_UNDEF(&_29$$17); + ZVAL_UNDEF(&_30$$18); + ZVAL_UNDEF(&_31$$19); ZVAL_UNDEF(&strUri); - ZVAL_UNDEF(&_19$$14); + ZVAL_UNDEF(&_23$$15); ZEPHIR_MM_GROW(); zephir_fetch_params(1, 0, 4, &uri, &args, &local_param, &baseUri); @@ -190,9 +209,9 @@ PHP_METHOD(Phalcon_Url, get) { if (local == 0) { _0$$3 = Z_TYPE_P(uri) == IS_STRING; if (_0$$3) { - _1$$3 = zephir_memnstr_str(uri, SL("//"), "phalcon/Url.zep", 100); + _1$$3 = zephir_memnstr_str(uri, SL("//"), "phalcon/Url.zep", 103); if (!(_1$$3)) { - _1$$3 = zephir_memnstr_str(uri, SL(":"), "phalcon/Url.zep", 100); + _1$$3 = zephir_memnstr_str(uri, SL(":"), "phalcon/Url.zep", 103); } _0$$3 = _1$$3; } @@ -220,12 +239,12 @@ PHP_METHOD(Phalcon_Url, get) { if (Z_TYPE_P(uri) == IS_ARRAY) { ZEPHIR_OBS_VAR(&routeName); if (UNEXPECTED(!(zephir_array_isset_string_fetch(&routeName, uri, SL("for"), 0)))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_url_exception_ce, "It's necessary to define the route name with the parameter 'for'", "phalcon/Url.zep", 119); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_url_exception_ce, "It's necessary to define the route name with the parameter 'for'", "phalcon/Url.zep", 122); return; } zephir_read_property(&_6$$9, this_ptr, SL("router"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&router, &_6$$9); - if (Z_TYPE_P(&router) != IS_OBJECT) { + if (UNEXPECTED(!zephir_is_true(&router))) { zephir_read_property(&_7$$11, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&container, &_7$$11); if (UNEXPECTED(Z_TYPE_P(&container) != IS_OBJECT)) { @@ -237,103 +256,88 @@ PHP_METHOD(Phalcon_Url, get) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_8$$12, "__construct", NULL, 5, &_9$$12); zephir_check_call_status(); - zephir_throw_exception_debug(&_8$$12, "phalcon/Url.zep", 135 TSRMLS_CC); + zephir_throw_exception_debug(&_8$$12, "phalcon/Url.zep", 138 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } ZEPHIR_INIT_VAR(&_13$$11); ZVAL_STRING(&_13$$11, "router"); - ZEPHIR_CALL_METHOD(&_12$$11, &container, "getshared", NULL, 0, &_13$$11); + ZEPHIR_CALL_METHOD(&_12$$11, &container, "has", NULL, 0, &_13$$11); + zephir_check_call_status(); + if (UNEXPECTED(!zephir_is_true(&_12$$11))) { + ZEPHIR_INIT_VAR(&_14$$13); + object_init_ex(&_14$$13, phalcon_url_exception_ce); + ZEPHIR_INIT_VAR(&_16$$13); + ZVAL_STRING(&_16$$13, "the 'router' service"); + ZEPHIR_CALL_CE_STATIC(&_15$$13, phalcon_url_exception_ce, "containerservicenotfound", &_10, 0, &_16$$13); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(NULL, &_14$$13, "__construct", NULL, 5, &_15$$13); + zephir_check_call_status(); + zephir_throw_exception_debug(&_14$$13, "phalcon/Url.zep", 146 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); + return; + } + ZEPHIR_INIT_NVAR(&_13$$11); + ZVAL_STRING(&_13$$11, "router"); + ZEPHIR_CALL_METHOD(&_17$$11, &container, "getshared", NULL, 0, &_13$$11); zephir_check_call_status(); - ZEPHIR_CPY_WRT(&router, &_12$$11); + ZEPHIR_CPY_WRT(&router, &_17$$11); zephir_update_property_zval(this_ptr, SL("router"), &router); } - ZEPHIR_CALL_METHOD(&_14$$9, &router, "getroutebyname", NULL, 0, &routeName); + ZEPHIR_CALL_METHOD(&_18$$9, &router, "getroutebyname", NULL, 0, &routeName); zephir_check_call_status(); - ZEPHIR_CPY_WRT(&route, &_14$$9); + ZEPHIR_CPY_WRT(&route, &_18$$9); if (UNEXPECTED(Z_TYPE_P(&route) != IS_OBJECT)) { - ZEPHIR_INIT_VAR(&_15$$13); - object_init_ex(&_15$$13, phalcon_url_exception_ce); - ZEPHIR_INIT_VAR(&_16$$13); - ZEPHIR_CONCAT_SVS(&_16$$13, "Cannot obtain a route using the name '", &routeName, "'"); - ZEPHIR_CALL_METHOD(NULL, &_15$$13, "__construct", NULL, 5, &_16$$13); + ZEPHIR_INIT_VAR(&_19$$14); + object_init_ex(&_19$$14, phalcon_url_exception_ce); + ZEPHIR_INIT_VAR(&_20$$14); + ZEPHIR_CONCAT_SVS(&_20$$14, "Cannot obtain a route using the name '", &routeName, "'"); + ZEPHIR_CALL_METHOD(NULL, &_19$$14, "__construct", NULL, 5, &_20$$14); zephir_check_call_status(); - zephir_throw_exception_debug(&_15$$13, "phalcon/Url.zep", 150 TSRMLS_CC); + zephir_throw_exception_debug(&_19$$14, "phalcon/Url.zep", 161 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_INIT_VAR(&_17$$9); - ZEPHIR_CALL_METHOD(&_14$$9, &route, "getpattern", NULL, 0); + ZEPHIR_INIT_VAR(&_21$$9); + ZEPHIR_CALL_METHOD(&_18$$9, &route, "getpattern", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_18$$9, &route, "getreversedpaths", NULL, 0); + ZEPHIR_CALL_METHOD(&_22$$9, &route, "getreversedpaths", NULL, 0); zephir_check_call_status(); - phalcon_replace_paths(&_17$$9, &_14$$9, &_18$$9, uri TSRMLS_CC); - ZEPHIR_CPY_WRT(uri, &_17$$9); + phalcon_replace_paths(&_21$$9, &_18$$9, &_22$$9, uri TSRMLS_CC); + ZEPHIR_CPY_WRT(uri, &_21$$9); } if (local) { - zephir_get_strval(&_19$$14, uri); - ZEPHIR_CPY_WRT(&strUri, &_19$$14); - ZVAL_LONG(&_20$$14, -1); - ZEPHIR_INIT_VAR(&_21$$14); - zephir_substr(&_21$$14, baseUri, -1 , 0, ZEPHIR_SUBSTR_NO_LENGTH); - _22$$14 = ZEPHIR_IS_STRING(&_21$$14, "/"); - if (_22$$14) { - _22$$14 = zephir_fast_strlen_ev(&strUri) > 2; - } - _23$$14 = _22$$14; - if (_23$$14) { - _24$$14 = ZEPHIR_STRING_OFFSET(&strUri, 0); - _23$$14 = _24$$14 == '/'; - } - _25$$14 = _23$$14; - if (_25$$14) { - _26$$14 = ZEPHIR_STRING_OFFSET(&strUri, 1); - _25$$14 = _26$$14 != '/'; - } - if (_25$$14) { - ZVAL_LONG(&_27$$15, 1); - ZEPHIR_INIT_VAR(&_28$$15); - zephir_substr(&_28$$15, &strUri, 1 , 0, ZEPHIR_SUBSTR_NO_LENGTH); - ZEPHIR_INIT_NVAR(uri); - ZEPHIR_CONCAT_VV(uri, baseUri, &_28$$15); - } else { - _29$$16 = ZEPHIR_IS_STRING(baseUri, "/"); - if (_29$$16) { - _29$$16 = zephir_fast_strlen_ev(&strUri) == 1; - } - _30$$16 = _29$$16; - if (_30$$16) { - _31$$16 = ZEPHIR_STRING_OFFSET(&strUri, 0); - _30$$16 = _31$$16 == '/'; - } - if (_30$$16) { - ZEPHIR_CPY_WRT(uri, baseUri); - } else { - ZEPHIR_INIT_NVAR(uri); - ZEPHIR_CONCAT_VV(uri, baseUri, &strUri); - } - } + zephir_get_strval(&_23$$15, uri); + ZEPHIR_CPY_WRT(&strUri, &_23$$15); + ZEPHIR_INIT_VAR(&_24$$15); + ZEPHIR_CONCAT_VV(&_24$$15, baseUri, &strUri); + ZEPHIR_INIT_VAR(&_25$$15); + ZVAL_STRING(&_25$$15, "#(?= 70200 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_url_get, 0, 0, IS_STRING, 0) #else @@ -44,13 +47,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_url_getbaseuri, 0, 0, IS #endif ZEND_END_ARG_INFO() -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_url_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_url_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) -#endif -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_url_getstatic, 0, 0, IS_STRING, 0) #else @@ -90,10 +86,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_url_setbaseuri, 0, 1, IS #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_url_setdi, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_url_setstaticbaseuri, 0, 1, Phalcon\\Url\\UrlInterface, 0) #else @@ -119,15 +111,14 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_url_path, 0, 0, IS_STRIN ZEND_END_ARG_INFO() ZEPHIR_INIT_FUNCS(phalcon_url_method_entry) { + PHP_ME(Phalcon_Url, __construct, arginfo_phalcon_url___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) PHP_ME(Phalcon_Url, get, arginfo_phalcon_url_get, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Url, getBasePath, arginfo_phalcon_url_getbasepath, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Url, getBaseUri, arginfo_phalcon_url_getbaseuri, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Url, getDI, arginfo_phalcon_url_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Url, getStatic, arginfo_phalcon_url_getstatic, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Url, getStaticBaseUri, arginfo_phalcon_url_getstaticbaseuri, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Url, setBasePath, arginfo_phalcon_url_setbasepath, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Url, setBaseUri, arginfo_phalcon_url_setbaseuri, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Url, setDI, arginfo_phalcon_url_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Url, setStaticBaseUri, arginfo_phalcon_url_setstaticbaseuri, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Url, path, arginfo_phalcon_url_path, ZEND_ACC_PUBLIC) PHP_FE_END diff --git a/ext/phalcon/validation.zep.c b/ext/phalcon/validation.zep.c index db3a3ae6e0e..9807dc9fc1b 100644 --- a/ext/phalcon/validation.zep.c +++ b/ext/phalcon/validation.zep.c @@ -513,7 +513,7 @@ PHP_METHOD(Phalcon_Validation, getValue) { if (Z_TYPE_P(&entity) == IS_OBJECT) { ZEPHIR_INIT_NVAR(&method); ZEPHIR_CONCAT_SV(&method, "set", &camelizedField); - ZEPHIR_CALL_FUNCTION(&_10$$21, "property_exists", NULL, 436, &entity, &field); + ZEPHIR_CALL_FUNCTION(&_10$$21, "property_exists", NULL, 434, &entity, &field); zephir_check_call_status(); if ((zephir_method_exists(&entity, &method TSRMLS_CC) == SUCCESS)) { ZEPHIR_CALL_METHOD_ZVAL(NULL, &entity, &method, NULL, 0, &value); diff --git a/ext/phalcon/validation/validator/file/resolution/equal.zep.c b/ext/phalcon/validation/validator/file/resolution/equal.zep.c index 0f474382329..22bc44c8b50 100644 --- a/ext/phalcon/validation/validator/file/resolution/equal.zep.c +++ b/ext/phalcon/validation/validator/file/resolution/equal.zep.c @@ -119,7 +119,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File_Resolution_Equal, validate) { ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, field); zephir_check_call_status(); zephir_array_fetch_string(&_1, &value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/Validation/Validator/File/Resolution/Equal.zep", 74 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 365, &_1); + ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 367, &_1); zephir_check_call_status(); ZEPHIR_OBS_VAR(&width); zephir_array_fetch_long(&width, &tmp, 0, PH_NOISY, "phalcon/Validation/Validator/File/Resolution/Equal.zep", 75 TSRMLS_CC); diff --git a/ext/phalcon/validation/validator/file/resolution/max.zep.c b/ext/phalcon/validation/validator/file/resolution/max.zep.c index cacebcfda46..dc6bd2ae902 100644 --- a/ext/phalcon/validation/validator/file/resolution/max.zep.c +++ b/ext/phalcon/validation/validator/file/resolution/max.zep.c @@ -129,7 +129,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File_Resolution_Max, validate) { ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, field); zephir_check_call_status(); zephir_array_fetch_string(&_1, &value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/Validation/Validator/File/Resolution/Max.zep", 79 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 365, &_1); + ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 367, &_1); zephir_check_call_status(); ZEPHIR_OBS_VAR(&width); zephir_array_fetch_long(&width, &tmp, 0, PH_NOISY, "phalcon/Validation/Validator/File/Resolution/Max.zep", 80 TSRMLS_CC); diff --git a/ext/phalcon/validation/validator/file/resolution/min.zep.c b/ext/phalcon/validation/validator/file/resolution/min.zep.c index f16534e830f..58f1dd6ae5a 100644 --- a/ext/phalcon/validation/validator/file/resolution/min.zep.c +++ b/ext/phalcon/validation/validator/file/resolution/min.zep.c @@ -129,7 +129,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File_Resolution_Min, validate) { ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, field); zephir_check_call_status(); zephir_array_fetch_string(&_1, &value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/Validation/Validator/File/Resolution/Min.zep", 79 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 365, &_1); + ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 367, &_1); zephir_check_call_status(); ZEPHIR_OBS_VAR(&width); zephir_array_fetch_long(&width, &tmp, 0, PH_NOISY, "phalcon/Validation/Validator/File/Resolution/Min.zep", 80 TSRMLS_CC); diff --git a/ext/phalcon/validation/validator/uniqueness.zep.c b/ext/phalcon/validation/validator/uniqueness.zep.c index 46dd0d49a7e..a31bd9153be 100644 --- a/ext/phalcon/validation/validator/uniqueness.zep.c +++ b/ext/phalcon/validation/validator/uniqueness.zep.c @@ -220,7 +220,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, getColumnNameReal) { PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniqueness) { zend_class_entry *_9; - zend_bool isModel = 0, isDocument = 0, _7; + zend_bool isModel = 0, _7; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zephir_fcall_cache_entry *_4 = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -315,13 +315,9 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniqueness) { } } isModel = zephir_instance_of_ev(&record, phalcon_mvc_modelinterface_ce TSRMLS_CC); - isDocument = zephir_instance_of_ev(&record, phalcon_mvc_collectioninterface_ce TSRMLS_CC); if (isModel) { ZEPHIR_CALL_METHOD(¶ms, this_ptr, "isuniquenessmodel", NULL, 0, &record, field, &values); zephir_check_call_status(); - } else if (isDocument) { - ZEPHIR_CALL_METHOD(¶ms, this_ptr, "isuniquenesscollection", NULL, 0, &record, field, &values); - zephir_check_call_status(); } else { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_validation_exception_ce, "The uniqueness validator works only with Phalcon\\Mvc\\Model or Phalcon\\Mvc\\Collection", "phalcon/Validation/Validator/Uniqueness.zep", 183); return; @@ -335,308 +331,6 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniqueness) { } -/** - * Uniqueness method used for collection - */ -PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessCollection) { - - zend_bool _5$$4, _6$$4, _16$$17, _17$$17; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zephir_fcall_cache_entry *_4 = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval field, values, _9$$8, _10$$11, _13$$12, _14$$15, _20$$21, _21$$24, _24$$25, _25$$28, _27$$29, _29$$30; - zval *record, record_sub, *field_param = NULL, *values_param = NULL, exceptConditions, fieldExcept, notInValues, value, singleField, params, except, singleExcept, _0, *_1, _2, _26, _3$$3, *_7$$8, _8$$8, *_11$$12, _12$$12, _15$$16, *_18$$21, _19$$21, *_22$$25, _23$$25, _28$$29; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&record_sub); - ZVAL_UNDEF(&exceptConditions); - ZVAL_UNDEF(&fieldExcept); - ZVAL_UNDEF(¬InValues); - ZVAL_UNDEF(&value); - ZVAL_UNDEF(&singleField); - ZVAL_UNDEF(¶ms); - ZVAL_UNDEF(&except); - ZVAL_UNDEF(&singleExcept); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_2); - ZVAL_UNDEF(&_26); - ZVAL_UNDEF(&_3$$3); - ZVAL_UNDEF(&_8$$8); - ZVAL_UNDEF(&_12$$12); - ZVAL_UNDEF(&_15$$16); - ZVAL_UNDEF(&_19$$21); - ZVAL_UNDEF(&_23$$25); - ZVAL_UNDEF(&_28$$29); - ZVAL_UNDEF(&field); - ZVAL_UNDEF(&values); - ZVAL_UNDEF(&_9$$8); - ZVAL_UNDEF(&_10$$11); - ZVAL_UNDEF(&_13$$12); - ZVAL_UNDEF(&_14$$15); - ZVAL_UNDEF(&_20$$21); - ZVAL_UNDEF(&_21$$24); - ZVAL_UNDEF(&_24$$25); - ZVAL_UNDEF(&_25$$28); - ZVAL_UNDEF(&_27$$29); - ZVAL_UNDEF(&_29$$30); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 3, 0, &record, &field_param, &values_param); - - zephir_get_arrval(&field, field_param); - zephir_get_arrval(&values, values_param); - - - ZEPHIR_INIT_VAR(&exceptConditions); - array_init(&exceptConditions); - ZEPHIR_INIT_VAR(¶ms); - zephir_create_array(¶ms, 1, 0 TSRMLS_CC); - ZEPHIR_INIT_VAR(&_0); - array_init(&_0); - zephir_array_update_string(¶ms, SL("conditions"), &_0, PH_COPY | PH_SEPARATE); - zephir_is_iterable(&field, 0, "phalcon/Validation/Validator/Uniqueness.zep", 250); - if (Z_TYPE_P(&field) == IS_ARRAY) { - ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&field), _1) - { - ZEPHIR_INIT_NVAR(&singleField); - ZVAL_COPY(&singleField, _1); - ZEPHIR_INIT_NVAR(&fieldExcept); - ZVAL_NULL(&fieldExcept); - ZEPHIR_INIT_NVAR(¬InValues); - array_init(¬InValues); - ZEPHIR_OBS_NVAR(&value); - zephir_array_fetch(&value, &values, &singleField, PH_NOISY, "phalcon/Validation/Validator/Uniqueness.zep", 207 TSRMLS_CC); - ZEPHIR_INIT_NVAR(&_3$$3); - ZVAL_STRING(&_3$$3, "except"); - ZEPHIR_CALL_METHOD(&except, this_ptr, "getoption", &_4, 0, &_3$$3); - zephir_check_call_status(); - zephir_array_update_multi(¶ms, &value TSRMLS_CC, SL("sz"), 3, SL("conditions"), &singleField); - if (zephir_is_true(&except)) { - _5$$4 = Z_TYPE_P(&except) == IS_ARRAY; - if (_5$$4) { - _5$$4 = zephir_fast_count_int(&field TSRMLS_CC) > 1; - } - if (_5$$4) { - if (zephir_array_isset(&except, &singleField)) { - ZEPHIR_OBS_NVAR(&fieldExcept); - zephir_array_fetch(&fieldExcept, &except, &singleField, PH_NOISY, "phalcon/Validation/Validator/Uniqueness.zep", 216 TSRMLS_CC); - } - } - _6$$4 = Z_TYPE_P(&except) == IS_ARRAY; - if (_6$$4) { - _6$$4 = zephir_fast_count_int(&field TSRMLS_CC) == 1; - } - if (Z_TYPE_P(&fieldExcept) != IS_NULL) { - if (Z_TYPE_P(&fieldExcept) == IS_ARRAY) { - zephir_is_iterable(&fieldExcept, 0, "phalcon/Validation/Validator/Uniqueness.zep", 226); - if (Z_TYPE_P(&fieldExcept) == IS_ARRAY) { - ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&fieldExcept), _7$$8) - { - ZEPHIR_INIT_NVAR(&singleExcept); - ZVAL_COPY(&singleExcept, _7$$8); - zephir_array_append(¬InValues, &singleExcept, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 223); - } ZEND_HASH_FOREACH_END(); - } else { - ZEPHIR_CALL_METHOD(NULL, &fieldExcept, "rewind", NULL, 0); - zephir_check_call_status(); - while (1) { - ZEPHIR_CALL_METHOD(&_8$$8, &fieldExcept, "valid", NULL, 0); - zephir_check_call_status(); - if (!zend_is_true(&_8$$8)) { - break; - } - ZEPHIR_CALL_METHOD(&singleExcept, &fieldExcept, "current", NULL, 0); - zephir_check_call_status(); - zephir_array_append(¬InValues, &singleExcept, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 223); - ZEPHIR_CALL_METHOD(NULL, &fieldExcept, "next", NULL, 0); - zephir_check_call_status(); - } - } - ZEPHIR_INIT_NVAR(&singleExcept); - ZEPHIR_INIT_NVAR(&_9$$8); - zephir_create_array(&_9$$8, 1, 0 TSRMLS_CC); - zephir_array_update_string(&_9$$8, SL("$nin"), ¬InValues, PH_COPY | PH_SEPARATE); - zephir_array_update_zval(&exceptConditions, &singleField, &_9$$8, PH_COPY | PH_SEPARATE); - } else { - ZEPHIR_INIT_NVAR(&_10$$11); - zephir_create_array(&_10$$11, 1, 0 TSRMLS_CC); - zephir_array_update_string(&_10$$11, SL("$ne"), &fieldExcept, PH_COPY | PH_SEPARATE); - zephir_array_update_zval(&exceptConditions, &singleField, &_10$$11, PH_COPY | PH_SEPARATE); - } - } else if (_6$$4) { - zephir_is_iterable(&except, 0, "phalcon/Validation/Validator/Uniqueness.zep", 239); - if (Z_TYPE_P(&except) == IS_ARRAY) { - ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&except), _11$$12) - { - ZEPHIR_INIT_NVAR(&singleExcept); - ZVAL_COPY(&singleExcept, _11$$12); - zephir_array_append(¬InValues, &singleExcept, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 236); - } ZEND_HASH_FOREACH_END(); - } else { - ZEPHIR_CALL_METHOD(NULL, &except, "rewind", NULL, 0); - zephir_check_call_status(); - while (1) { - ZEPHIR_CALL_METHOD(&_12$$12, &except, "valid", NULL, 0); - zephir_check_call_status(); - if (!zend_is_true(&_12$$12)) { - break; - } - ZEPHIR_CALL_METHOD(&singleExcept, &except, "current", NULL, 0); - zephir_check_call_status(); - zephir_array_append(¬InValues, &singleExcept, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 236); - ZEPHIR_CALL_METHOD(NULL, &except, "next", NULL, 0); - zephir_check_call_status(); - } - } - ZEPHIR_INIT_NVAR(&singleExcept); - ZEPHIR_INIT_NVAR(&_13$$12); - zephir_create_array(&_13$$12, 1, 0 TSRMLS_CC); - zephir_array_update_string(&_13$$12, SL("$nin"), ¬InValues, PH_COPY | PH_SEPARATE); - zephir_array_update_multi(¶ms, &_13$$12 TSRMLS_CC, SL("sz"), 3, SL("conditions"), &singleField); - } else if (zephir_fast_count_int(&field TSRMLS_CC) == 1) { - ZEPHIR_INIT_NVAR(&_14$$15); - zephir_create_array(&_14$$15, 1, 0 TSRMLS_CC); - zephir_array_update_string(&_14$$15, SL("$ne"), &except, PH_COPY | PH_SEPARATE); - zephir_array_update_multi(¶ms, &_14$$15 TSRMLS_CC, SL("sz"), 3, SL("conditions"), &singleField); - } - } - } ZEND_HASH_FOREACH_END(); - } else { - ZEPHIR_CALL_METHOD(NULL, &field, "rewind", NULL, 0); - zephir_check_call_status(); - while (1) { - ZEPHIR_CALL_METHOD(&_2, &field, "valid", NULL, 0); - zephir_check_call_status(); - if (!zend_is_true(&_2)) { - break; - } - ZEPHIR_CALL_METHOD(&singleField, &field, "current", NULL, 0); - zephir_check_call_status(); - ZEPHIR_INIT_NVAR(&fieldExcept); - ZVAL_NULL(&fieldExcept); - ZEPHIR_INIT_NVAR(¬InValues); - array_init(¬InValues); - ZEPHIR_OBS_NVAR(&value); - zephir_array_fetch(&value, &values, &singleField, PH_NOISY, "phalcon/Validation/Validator/Uniqueness.zep", 207 TSRMLS_CC); - ZEPHIR_INIT_NVAR(&_15$$16); - ZVAL_STRING(&_15$$16, "except"); - ZEPHIR_CALL_METHOD(&except, this_ptr, "getoption", &_4, 0, &_15$$16); - zephir_check_call_status(); - zephir_array_update_multi(¶ms, &value TSRMLS_CC, SL("sz"), 3, SL("conditions"), &singleField); - if (zephir_is_true(&except)) { - _16$$17 = Z_TYPE_P(&except) == IS_ARRAY; - if (_16$$17) { - _16$$17 = zephir_fast_count_int(&field TSRMLS_CC) > 1; - } - if (_16$$17) { - if (zephir_array_isset(&except, &singleField)) { - ZEPHIR_OBS_NVAR(&fieldExcept); - zephir_array_fetch(&fieldExcept, &except, &singleField, PH_NOISY, "phalcon/Validation/Validator/Uniqueness.zep", 216 TSRMLS_CC); - } - } - _17$$17 = Z_TYPE_P(&except) == IS_ARRAY; - if (_17$$17) { - _17$$17 = zephir_fast_count_int(&field TSRMLS_CC) == 1; - } - if (Z_TYPE_P(&fieldExcept) != IS_NULL) { - if (Z_TYPE_P(&fieldExcept) == IS_ARRAY) { - zephir_is_iterable(&fieldExcept, 0, "phalcon/Validation/Validator/Uniqueness.zep", 226); - if (Z_TYPE_P(&fieldExcept) == IS_ARRAY) { - ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&fieldExcept), _18$$21) - { - ZEPHIR_INIT_NVAR(&singleExcept); - ZVAL_COPY(&singleExcept, _18$$21); - zephir_array_append(¬InValues, &singleExcept, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 223); - } ZEND_HASH_FOREACH_END(); - } else { - ZEPHIR_CALL_METHOD(NULL, &fieldExcept, "rewind", NULL, 0); - zephir_check_call_status(); - while (1) { - ZEPHIR_CALL_METHOD(&_19$$21, &fieldExcept, "valid", NULL, 0); - zephir_check_call_status(); - if (!zend_is_true(&_19$$21)) { - break; - } - ZEPHIR_CALL_METHOD(&singleExcept, &fieldExcept, "current", NULL, 0); - zephir_check_call_status(); - zephir_array_append(¬InValues, &singleExcept, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 223); - ZEPHIR_CALL_METHOD(NULL, &fieldExcept, "next", NULL, 0); - zephir_check_call_status(); - } - } - ZEPHIR_INIT_NVAR(&singleExcept); - ZEPHIR_INIT_NVAR(&_20$$21); - zephir_create_array(&_20$$21, 1, 0 TSRMLS_CC); - zephir_array_update_string(&_20$$21, SL("$nin"), ¬InValues, PH_COPY | PH_SEPARATE); - zephir_array_update_zval(&exceptConditions, &singleField, &_20$$21, PH_COPY | PH_SEPARATE); - } else { - ZEPHIR_INIT_NVAR(&_21$$24); - zephir_create_array(&_21$$24, 1, 0 TSRMLS_CC); - zephir_array_update_string(&_21$$24, SL("$ne"), &fieldExcept, PH_COPY | PH_SEPARATE); - zephir_array_update_zval(&exceptConditions, &singleField, &_21$$24, PH_COPY | PH_SEPARATE); - } - } else if (_17$$17) { - zephir_is_iterable(&except, 0, "phalcon/Validation/Validator/Uniqueness.zep", 239); - if (Z_TYPE_P(&except) == IS_ARRAY) { - ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&except), _22$$25) - { - ZEPHIR_INIT_NVAR(&singleExcept); - ZVAL_COPY(&singleExcept, _22$$25); - zephir_array_append(¬InValues, &singleExcept, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 236); - } ZEND_HASH_FOREACH_END(); - } else { - ZEPHIR_CALL_METHOD(NULL, &except, "rewind", NULL, 0); - zephir_check_call_status(); - while (1) { - ZEPHIR_CALL_METHOD(&_23$$25, &except, "valid", NULL, 0); - zephir_check_call_status(); - if (!zend_is_true(&_23$$25)) { - break; - } - ZEPHIR_CALL_METHOD(&singleExcept, &except, "current", NULL, 0); - zephir_check_call_status(); - zephir_array_append(¬InValues, &singleExcept, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 236); - ZEPHIR_CALL_METHOD(NULL, &except, "next", NULL, 0); - zephir_check_call_status(); - } - } - ZEPHIR_INIT_NVAR(&singleExcept); - ZEPHIR_INIT_NVAR(&_24$$25); - zephir_create_array(&_24$$25, 1, 0 TSRMLS_CC); - zephir_array_update_string(&_24$$25, SL("$nin"), ¬InValues, PH_COPY | PH_SEPARATE); - zephir_array_update_multi(¶ms, &_24$$25 TSRMLS_CC, SL("sz"), 3, SL("conditions"), &singleField); - } else if (zephir_fast_count_int(&field TSRMLS_CC) == 1) { - ZEPHIR_INIT_NVAR(&_25$$28); - zephir_create_array(&_25$$28, 1, 0 TSRMLS_CC); - zephir_array_update_string(&_25$$28, SL("$ne"), &except, PH_COPY | PH_SEPARATE); - zephir_array_update_multi(¶ms, &_25$$28 TSRMLS_CC, SL("sz"), 3, SL("conditions"), &singleField); - } - } - ZEPHIR_CALL_METHOD(NULL, &field, "next", NULL, 0); - zephir_check_call_status(); - } - } - ZEPHIR_INIT_NVAR(&singleField); - ZEPHIR_CALL_METHOD(&_26, record, "getdirtystate", NULL, 0); - zephir_check_call_status(); - if (ZEPHIR_IS_LONG(&_26, 0)) { - ZEPHIR_INIT_VAR(&_27$$29); - zephir_create_array(&_27$$29, 1, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_28$$29, record, "getid", NULL, 0); - zephir_check_call_status(); - zephir_array_update_string(&_27$$29, SL("$ne"), &_28$$29, PH_COPY | PH_SEPARATE); - zephir_array_update_multi(¶ms, &_27$$29 TSRMLS_CC, SL("ss"), 4, SL("conditions"), SL("_id")); - } - if (!(ZEPHIR_IS_EMPTY(&exceptConditions))) { - ZEPHIR_INIT_VAR(&_29$$30); - zephir_create_array(&_29$$30, 1, 0 TSRMLS_CC); - zephir_array_fast_append(&_29$$30, &exceptConditions); - zephir_array_update_multi(¶ms, &_29$$30 TSRMLS_CC, SL("ss"), 4, SL("conditions"), SL("$or")); - } - RETURN_CCTOR(¶ms); - -} - /** * Uniqueness method used for model */ diff --git a/ext/phalcon/validation/validator/uniqueness.zep.h b/ext/phalcon/validation/validator/uniqueness.zep.h index 65123d3b173..fb8d84bbd0f 100644 --- a/ext/phalcon/validation/validator/uniqueness.zep.h +++ b/ext/phalcon/validation/validator/uniqueness.zep.h @@ -6,7 +6,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Validation_Validator_Uniqueness); PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, validate); PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, getColumnNameReal); PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniqueness); -PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessCollection); PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel); #if PHP_VERSION_ID >= 70200 @@ -40,12 +39,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_validation_validator_uni ZEND_ARG_INFO(0, field) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_uniqueness_isuniquenesscollection, 0, 0, 3) - ZEND_ARG_INFO(0, record) - ZEND_ARG_ARRAY_INFO(0, field, 0) - ZEND_ARG_ARRAY_INFO(0, values, 0) -ZEND_END_ARG_INFO() - ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_uniqueness_isuniquenessmodel, 0, 0, 3) ZEND_ARG_INFO(0, record) ZEND_ARG_ARRAY_INFO(0, field, 0) @@ -56,7 +49,6 @@ ZEPHIR_INIT_FUNCS(phalcon_validation_validator_uniqueness_method_entry) { PHP_ME(Phalcon_Validation_Validator_Uniqueness, validate, arginfo_phalcon_validation_validator_uniqueness_validate, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Validator_Uniqueness, getColumnNameReal, arginfo_phalcon_validation_validator_uniqueness_getcolumnnamereal, ZEND_ACC_PROTECTED) PHP_ME(Phalcon_Validation_Validator_Uniqueness, isUniqueness, arginfo_phalcon_validation_validator_uniqueness_isuniqueness, ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Validation_Validator_Uniqueness, isUniquenessCollection, arginfo_phalcon_validation_validator_uniqueness_isuniquenesscollection, ZEND_ACC_PROTECTED) PHP_ME(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel, arginfo_phalcon_validation_validator_uniqueness_isuniquenessmodel, ZEND_ACC_PROTECTED) PHP_FE_END }; diff --git a/phalcon/Validation/Validator/Uniqueness.zep b/phalcon/Validation/Validator/Uniqueness.zep index 378a8b235a1..92e8b570234 100644 --- a/phalcon/Validation/Validator/Uniqueness.zep +++ b/phalcon/Validation/Validator/Uniqueness.zep @@ -132,8 +132,8 @@ class Uniqueness extends AbstractCombinedFieldsValidator protected function isUniqueness( validation, var field) -> bool { - var values, convert, record, params, className, isModel, isDocument, - singleField; + var values, convert, record, params, className, isModel, singleField; +// var isDocument; if typeof field != "array" { let singleField = field, From 8a3f0c34a8000418bb0df1d94802659f6832f7cf Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Sat, 7 Sep 2019 11:49:43 -0400 Subject: [PATCH 099/202] Revert "[#13697] - Removed unused variable" This reverts commit bb2affa15be65cfe9d1b4e47e24c5e6f3cf971b8. --- ext/config.m4 | 15 +- ext/config.w32 | 10 +- ext/phalcon.c | 30 +- ext/phalcon.h | 15 +- ext/phalcon/assets/manager.zep.c | 100 ++- ext/phalcon/assets/manager.zep.h | 15 + ext/phalcon/cli/router.zep.c | 60 +- ext/phalcon/cli/router.zep.h | 15 + ext/phalcon/di/abstractinjectionaware.zep.c | 75 -- ext/phalcon/di/abstractinjectionaware.zep.h | 24 - .../dispatcher/abstractdispatcher.zep.c | 61 +- .../dispatcher/abstractdispatcher.zep.h | 15 + ext/phalcon/flash/abstractflash.zep.c | 166 +++-- ext/phalcon/flash/abstractflash.zep.h | 25 +- ext/phalcon/flash/direct.zep.h | 4 +- ext/phalcon/flash/flashinterface.zep.h | 6 +- ext/phalcon/flash/session.zep.c | 4 +- ext/phalcon/flash/session.zep.h | 6 +- ext/phalcon/helper/fs.zep.c | 136 ---- ext/phalcon/helper/fs.zep.h | 24 - ext/phalcon/helper/str.zep.c | 30 +- ext/phalcon/html/tag.zep.c | 88 ++- ext/phalcon/html/tag.zep.h | 15 + ext/phalcon/http/cookie.zep.c | 49 +- ext/phalcon/http/cookie.zep.h | 15 + ext/phalcon/http/request.zep.c | 327 +++++---- ext/phalcon/http/request.zep.h | 15 + ext/phalcon/http/response.zep.c | 84 +-- ext/phalcon/http/response/cookies.zep.c | 41 +- ext/phalcon/http/response/cookies.zep.h | 15 + ext/phalcon/http/response/headers.zep.c | 14 +- ext/phalcon/image/adapter/gd.zep.c | 232 +++--- ext/phalcon/loader.zep.c | 4 +- ext/phalcon/logger.zep.c | 4 +- ext/phalcon/logger/adapter/syslog.zep.c | 10 +- ext/phalcon/logger/formatter/json.zep.c | 2 +- ext/phalcon/logger/formatter/line.zep.c | 2 +- ext/phalcon/logger/loggerfactory.zep.c | 2 +- ext/phalcon/messages/messages.zep.c | 2 +- ext/phalcon/mvc/micro.zep.c | 22 +- ext/phalcon/mvc/model.zep.c | 683 +++++++++--------- ext/phalcon/mvc/model.zep.h | 15 + .../mvc/model/behavior/timestampable.zep.c | 4 +- ext/phalcon/mvc/model/binder.zep.c | 6 +- ext/phalcon/mvc/model/criteria.zep.c | 6 +- ext/phalcon/mvc/model/manager.zep.c | 16 +- ext/phalcon/mvc/model/metadata/stream.zep.c | 4 +- ext/phalcon/mvc/model/query.zep.c | 204 +++--- ext/phalcon/mvc/model/query/builder.zep.c | 60 +- ext/phalcon/mvc/model/resultset/complex.zep.c | 2 +- ext/phalcon/mvc/model/transaction.zep.c | 4 +- .../mvc/model/transaction/manager.zep.c | 6 +- ext/phalcon/mvc/router.zep.c | 99 ++- ext/phalcon/mvc/router.zep.h | 15 + ext/phalcon/mvc/router/group.zep.c | 2 +- ext/phalcon/mvc/view.zep.c | 16 +- ext/phalcon/mvc/view/engine/php.zep.c | 4 +- ext/phalcon/mvc/view/engine/volt.zep.c | 14 +- .../mvc/view/engine/volt/compiler.zep.c | 152 ++-- ext/phalcon/mvc/view/simple.zep.c | 6 +- ext/phalcon/security.zep.c | 409 ++++++----- ext/phalcon/security.zep.h | 48 +- ext/phalcon/session/adapter/stream.zep.c | 22 +- ext/phalcon/session/manager.zep.c | 50 +- ext/phalcon/session/manager.zep.h | 15 + .../storage/adapter/abstractadapter.zep.c | 41 +- ext/phalcon/storage/adapter/redis.zep.c | 84 ++- ext/phalcon/text.zep.c | 4 +- ext/phalcon/url.zep.c | 230 +++--- ext/phalcon/url.zep.h | 21 +- ext/phalcon/validation.zep.c | 2 +- .../validator/file/resolution/equal.zep.c | 2 +- .../validator/file/resolution/max.zep.c | 2 +- .../validator/file/resolution/min.zep.c | 2 +- .../validation/validator/uniqueness.zep.c | 308 +++++++- .../validation/validator/uniqueness.zep.h | 8 + phalcon/Validation/Validator/Uniqueness.zep | 4 +- 77 files changed, 2471 insertions(+), 1878 deletions(-) delete mode 100644 ext/phalcon/di/abstractinjectionaware.zep.c delete mode 100644 ext/phalcon/di/abstractinjectionaware.zep.h delete mode 100644 ext/phalcon/helper/fs.zep.c delete mode 100644 ext/phalcon/helper/fs.zep.h diff --git a/ext/config.m4 b/ext/config.m4 index e16cd66697f..0240ecc63a3 100644 --- a/ext/config.m4 +++ b/ext/config.m4 @@ -14,7 +14,6 @@ if test "$PHP_PHALCON" = "yes"; then phalcon/events/eventsawareinterface.zep.c phalcon/validation/validatorinterface.zep.c phalcon/validation/abstractvalidator.zep.c - phalcon/di/abstractinjectionaware.zep.c phalcon/storage/adapter/adapterinterface.zep.c phalcon/di/injectable.zep.c phalcon/factory/abstractfactory.zep.c @@ -41,6 +40,7 @@ if test "$PHP_PHALCON" = "yes"; then phalcon/http/message/abstractmessage.zep.c phalcon/logger/adapter/adapterinterface.zep.c phalcon/logger/formatter/formatterinterface.zep.c + phalcon/mvc/entityinterface.zep.c phalcon/mvc/model/resultsetinterface.zep.c phalcon/paginator/adapter/adapterinterface.zep.c phalcon/translate/adapter/adapterinterface.zep.c @@ -55,6 +55,7 @@ if test "$PHP_PHALCON" = "yes"; then phalcon/image/adapter/adapterinterface.zep.c phalcon/logger/adapter/abstractadapter.zep.c phalcon/logger/formatter/abstractformatter.zep.c + phalcon/mvc/collection/behaviorinterface.zep.c phalcon/mvc/model/behaviorinterface.zep.c phalcon/mvc/model/exception.zep.c phalcon/mvc/view/engine/engineinterface.zep.c @@ -75,7 +76,7 @@ if test "$PHP_PHALCON" = "yes"; then phalcon/flash/abstractflash.zep.c phalcon/http/message/abstractrequest.zep.c phalcon/image/adapter/abstractadapter.zep.c - phalcon/mvc/entityinterface.zep.c + phalcon/mvc/collection/behavior.zep.c phalcon/mvc/model/behavior.zep.c phalcon/mvc/model/metadata/strategyinterface.zep.c phalcon/mvc/model/resultinterface.zep.c @@ -114,6 +115,7 @@ if test "$PHP_PHALCON" = "yes"; then phalcon/http/response/headersinterface.zep.c phalcon/http/responseinterface.zep.c phalcon/messages/messageinterface.zep.c + phalcon/mvc/collectioninterface.zep.c phalcon/mvc/controllerinterface.zep.c phalcon/mvc/dispatcherinterface.zep.c phalcon/mvc/micro/collectioninterface.zep.c @@ -284,7 +286,6 @@ if test "$PHP_PHALCON" = "yes"; then phalcon/forms/manager.zep.c phalcon/helper/arr.zep.c phalcon/helper/exception.zep.c - phalcon/helper/fs.zep.c phalcon/helper/number.zep.c phalcon/helper/str.zep.c phalcon/html/attributes.zep.c @@ -353,6 +354,13 @@ if test "$PHP_PHALCON" = "yes"; then phalcon/messages/messages.zep.c phalcon/mvc/application.zep.c phalcon/mvc/application/exception.zep.c + phalcon/mvc/collection.zep.c + phalcon/mvc/collection/behavior/softdelete.zep.c + phalcon/mvc/collection/behavior/timestampable.zep.c + phalcon/mvc/collection/document.zep.c + phalcon/mvc/collection/exception.zep.c + phalcon/mvc/collection/manager.zep.c + phalcon/mvc/collection/managerinterface.zep.c phalcon/mvc/controller.zep.c phalcon/mvc/controller/bindmodelinterface.zep.c phalcon/mvc/dispatcher.zep.c @@ -405,6 +413,7 @@ if test "$PHP_PHALCON" = "yes"; then phalcon/paginator/exception.zep.c phalcon/paginator/paginatorfactory.zep.c phalcon/paginator/repository.zep.c + phalcon/plugin.zep.c phalcon/registry.zep.c phalcon/security.zep.c phalcon/security/exception.zep.c diff --git a/ext/config.w32 b/ext/config.w32 index a94144d6f6f..1d5e169526e 100644 --- a/ext/config.w32 +++ b/ext/config.w32 @@ -14,8 +14,8 @@ if (PHP_PHALCON != "no") { ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/query", "scanner.c parser.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/view/engine/volt", "parser.c scanner.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/url", "utils.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon", "exception.zep.c collection.zep.c config.zep.c di.zep.c cache.zep.c container.zep.c crypt.zep.c debug.zep.c escaper.zep.c kernel.zep.c loader.zep.c logger.zep.c registry.zep.c security.zep.c tag.zep.c text.zep.c url.zep.c validation.zep.c version.zep.c 0__closure.zep.c 1__closure.zep.c 2__closure.zep.c 3__closure.zep.c 4__closure.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/di", "injectionawareinterface.zep.c abstractinjectionaware.zep.c injectable.zep.c diinterface.zep.c exception.zep.c factorydefault.zep.c serviceinterface.zep.c service.zep.c serviceproviderinterface.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon", "exception.zep.c collection.zep.c config.zep.c di.zep.c cache.zep.c container.zep.c crypt.zep.c debug.zep.c escaper.zep.c kernel.zep.c loader.zep.c logger.zep.c plugin.zep.c registry.zep.c security.zep.c tag.zep.c text.zep.c url.zep.c validation.zep.c version.zep.c 0__closure.zep.c 1__closure.zep.c 2__closure.zep.c 3__closure.zep.c 4__closure.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/di", "injectionawareinterface.zep.c injectable.zep.c diinterface.zep.c exception.zep.c factorydefault.zep.c serviceinterface.zep.c service.zep.c serviceproviderinterface.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/events", "eventsawareinterface.zep.c eventinterface.zep.c managerinterface.zep.c event.zep.c exception.zep.c manager.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/validation", "validatorinterface.zep.c abstractvalidator.zep.c validatorcompositeinterface.zep.c abstractvalidatorcomposite.zep.c abstractcombinedfieldsvalidator.zep.c validationinterface.zep.c exception.zep.c validatorfactory.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/storage/adapter", "adapterinterface.zep.c abstractadapter.zep.c apcu.zep.c libmemcached.zep.c memory.zep.c redis.zep.c stream.zep.c", "phalcon"); @@ -35,13 +35,14 @@ if (PHP_PHALCON != "no") { ADD_SOURCES(configure_module_dirname + "/phalcon/firewall/adapter", "adapterinterface.zep.c abstractadapter.zep.c acl.zep.c annotations.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/logger/adapter", "adapterinterface.zep.c abstractadapter.zep.c noop.zep.c stream.zep.c syslog.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/logger/formatter", "formatterinterface.zep.c abstractformatter.zep.c json.zep.c line.zep.c syslog.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc", "entityinterface.zep.c viewbaseinterface.zep.c routerinterface.zep.c collectioninterface.zep.c controllerinterface.zep.c dispatcherinterface.zep.c modelinterface.zep.c router.zep.c viewinterface.zep.c application.zep.c collection.zep.c controller.zep.c dispatcher.zep.c micro.zep.c model.zep.c moduledefinitioninterface.zep.c view.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/paginator/adapter", "adapterinterface.zep.c abstractadapter.zep.c model.zep.c nativearray.zep.c querybuilder.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/translate/adapter", "adapterinterface.zep.c abstractadapter.zep.c csv.zep.c gettext.zep.c nativearray.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/db/adapter/pdo", "abstractpdo.zep.c mysql.zep.c postgresql.zep.c sqlite.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/flash", "flashinterface.zep.c abstractflash.zep.c direct.zep.c exception.zep.c session.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/image/adapter", "adapterinterface.zep.c abstractadapter.zep.c gd.zep.c imagick.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/collection", "behaviorinterface.zep.c behavior.zep.c document.zep.c exception.zep.c manager.zep.c managerinterface.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/view/engine", "engineinterface.zep.c abstractengine.zep.c php.zep.c volt.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc", "viewbaseinterface.zep.c entityinterface.zep.c routerinterface.zep.c controllerinterface.zep.c dispatcherinterface.zep.c modelinterface.zep.c router.zep.c viewinterface.zep.c application.zep.c controller.zep.c dispatcher.zep.c micro.zep.c model.zep.c moduledefinitioninterface.zep.c view.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/acl/adapter", "adapterinterface.zep.c abstractadapter.zep.c memory.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/application", "abstractapplication.zep.c exception.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/domain/payload", "readableinterface.zep.c writeableinterface.zep.c payloadinterface.zep.c payload.zep.c payloadfactory.zep.c status.zep.c", "phalcon"); @@ -89,7 +90,7 @@ if (PHP_PHALCON != "no") { ADD_SOURCES(configure_module_dirname + "/phalcon/firewall/adapter/micro", "acl.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/firewall", "exception.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/forms", "exception.zep.c form.zep.c manager.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/helper", "arr.zep.c exception.zep.c fs.zep.c number.zep.c str.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/helper", "arr.zep.c exception.zep.c number.zep.c str.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/html", "attributes.zep.c breadcrumbs.zep.c exception.zep.c tag.zep.c tagfactory.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/http/cookie", "exception.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/http/message/exception", "invalidargumentexception.zep.c", "phalcon"); @@ -99,6 +100,7 @@ if (PHP_PHALCON != "no") { ADD_SOURCES(configure_module_dirname + "/phalcon/loader", "exception.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/logger", "adapterfactory.zep.c exception.zep.c item.zep.c loggerfactory.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/application", "exception.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/collection/behavior", "softdelete.zep.c timestampable.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/controller", "bindmodelinterface.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/dispatcher", "exception.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/behavior", "softdelete.zep.c timestampable.zep.c", "phalcon"); diff --git a/ext/phalcon.c b/ext/phalcon.c index efa72b564be..462f60c0ece 100644 --- a/ext/phalcon.c +++ b/ext/phalcon.c @@ -40,6 +40,7 @@ zend_class_entry *phalcon_db_dialectinterface_ce; zend_class_entry *phalcon_firewall_adapter_adapterinterface_ce; zend_class_entry *phalcon_logger_adapter_adapterinterface_ce; zend_class_entry *phalcon_logger_formatter_formatterinterface_ce; +zend_class_entry *phalcon_mvc_entityinterface_ce; zend_class_entry *phalcon_mvc_model_resultsetinterface_ce; zend_class_entry *phalcon_paginator_adapter_adapterinterface_ce; zend_class_entry *phalcon_translate_adapter_adapterinterface_ce; @@ -47,6 +48,7 @@ zend_class_entry *phalcon_assets_filterinterface_ce; zend_class_entry *phalcon_di_diinterface_ce; zend_class_entry *phalcon_flash_flashinterface_ce; zend_class_entry *phalcon_image_adapter_adapterinterface_ce; +zend_class_entry *phalcon_mvc_collection_behaviorinterface_ce; zend_class_entry *phalcon_mvc_model_behaviorinterface_ce; zend_class_entry *phalcon_mvc_view_engine_engineinterface_ce; zend_class_entry *phalcon_mvc_viewbaseinterface_ce; @@ -54,7 +56,6 @@ zend_class_entry *phalcon_validation_validatorcompositeinterface_ce; zend_class_entry *phalcon_acl_adapter_adapterinterface_ce; zend_class_entry *phalcon_domain_payload_readableinterface_ce; zend_class_entry *phalcon_domain_payload_writeableinterface_ce; -zend_class_entry *phalcon_mvc_entityinterface_ce; zend_class_entry *phalcon_mvc_model_metadata_strategyinterface_ce; zend_class_entry *phalcon_mvc_model_resultinterface_ce; zend_class_entry *phalcon_mvc_routerinterface_ce; @@ -84,6 +85,7 @@ zend_class_entry *phalcon_http_response_cookiesinterface_ce; zend_class_entry *phalcon_http_response_headersinterface_ce; zend_class_entry *phalcon_http_responseinterface_ce; zend_class_entry *phalcon_messages_messageinterface_ce; +zend_class_entry *phalcon_mvc_collectioninterface_ce; zend_class_entry *phalcon_mvc_controllerinterface_ce; zend_class_entry *phalcon_mvc_dispatcherinterface_ce; zend_class_entry *phalcon_mvc_micro_collectioninterface_ce; @@ -109,13 +111,13 @@ zend_class_entry *phalcon_acl_roleaware_ce; zend_class_entry *phalcon_cli_router_routeinterface_ce; zend_class_entry *phalcon_cli_routerinterface_ce; zend_class_entry *phalcon_di_serviceproviderinterface_ce; +zend_class_entry *phalcon_mvc_collection_managerinterface_ce; zend_class_entry *phalcon_mvc_controller_bindmodelinterface_ce; zend_class_entry *phalcon_mvc_micro_middlewareinterface_ce; zend_class_entry *phalcon_mvc_model_binder_bindableinterface_ce; zend_class_entry *phalcon_mvc_moduledefinitioninterface_ce; zend_class_entry *phalcon_exception_ce; zend_class_entry *phalcon_validation_abstractvalidator_ce; -zend_class_entry *phalcon_di_abstractinjectionaware_ce; zend_class_entry *phalcon_di_injectable_ce; zend_class_entry *phalcon_factory_abstractfactory_ce; zend_class_entry *phalcon_forms_element_abstractelement_ce; @@ -149,6 +151,7 @@ zend_class_entry *phalcon_dispatcher_exception_ce; zend_class_entry *phalcon_flash_abstractflash_ce; zend_class_entry *phalcon_http_message_abstractrequest_ce; zend_class_entry *phalcon_image_adapter_abstractadapter_ce; +zend_class_entry *phalcon_mvc_collection_behavior_ce; zend_class_entry *phalcon_mvc_model_behavior_ce; zend_class_entry *phalcon_mvc_model_resultset_ce; zend_class_entry *phalcon_mvc_view_engine_abstractengine_ce; @@ -308,7 +311,6 @@ zend_class_entry *phalcon_forms_form_ce; zend_class_entry *phalcon_forms_manager_ce; zend_class_entry *phalcon_helper_arr_ce; zend_class_entry *phalcon_helper_exception_ce; -zend_class_entry *phalcon_helper_fs_ce; zend_class_entry *phalcon_helper_number_ce; zend_class_entry *phalcon_helper_str_ce; zend_class_entry *phalcon_html_attributes_ce; @@ -377,6 +379,12 @@ zend_class_entry *phalcon_messages_message_ce; zend_class_entry *phalcon_messages_messages_ce; zend_class_entry *phalcon_mvc_application_ce; zend_class_entry *phalcon_mvc_application_exception_ce; +zend_class_entry *phalcon_mvc_collection_behavior_softdelete_ce; +zend_class_entry *phalcon_mvc_collection_behavior_timestampable_ce; +zend_class_entry *phalcon_mvc_collection_ce; +zend_class_entry *phalcon_mvc_collection_document_ce; +zend_class_entry *phalcon_mvc_collection_exception_ce; +zend_class_entry *phalcon_mvc_collection_manager_ce; zend_class_entry *phalcon_mvc_controller_ce; zend_class_entry *phalcon_mvc_dispatcher_ce; zend_class_entry *phalcon_mvc_dispatcher_exception_ce; @@ -425,6 +433,7 @@ zend_class_entry *phalcon_paginator_adapter_querybuilder_ce; zend_class_entry *phalcon_paginator_exception_ce; zend_class_entry *phalcon_paginator_paginatorfactory_ce; zend_class_entry *phalcon_paginator_repository_ce; +zend_class_entry *phalcon_plugin_ce; zend_class_entry *phalcon_registry_ce; zend_class_entry *phalcon_security_ce; zend_class_entry *phalcon_security_exception_ce; @@ -540,6 +549,7 @@ static PHP_MINIT_FUNCTION(phalcon) ZEPHIR_INIT(Phalcon_Firewall_Adapter_AdapterInterface); ZEPHIR_INIT(Phalcon_Logger_Adapter_AdapterInterface); ZEPHIR_INIT(Phalcon_Logger_Formatter_FormatterInterface); + ZEPHIR_INIT(Phalcon_Mvc_EntityInterface); ZEPHIR_INIT(Phalcon_Mvc_Model_ResultsetInterface); ZEPHIR_INIT(Phalcon_Paginator_Adapter_AdapterInterface); ZEPHIR_INIT(Phalcon_Translate_Adapter_AdapterInterface); @@ -547,6 +557,7 @@ static PHP_MINIT_FUNCTION(phalcon) ZEPHIR_INIT(Phalcon_Di_DiInterface); ZEPHIR_INIT(Phalcon_Flash_FlashInterface); ZEPHIR_INIT(Phalcon_Image_Adapter_AdapterInterface); + ZEPHIR_INIT(Phalcon_Mvc_Collection_BehaviorInterface); ZEPHIR_INIT(Phalcon_Mvc_Model_BehaviorInterface); ZEPHIR_INIT(Phalcon_Mvc_ViewBaseInterface); ZEPHIR_INIT(Phalcon_Mvc_View_Engine_EngineInterface); @@ -554,7 +565,6 @@ static PHP_MINIT_FUNCTION(phalcon) ZEPHIR_INIT(Phalcon_Acl_Adapter_AdapterInterface); ZEPHIR_INIT(Phalcon_Domain_Payload_ReadableInterface); ZEPHIR_INIT(Phalcon_Domain_Payload_WriteableInterface); - ZEPHIR_INIT(Phalcon_Mvc_EntityInterface); ZEPHIR_INIT(Phalcon_Mvc_Model_MetaData_StrategyInterface); ZEPHIR_INIT(Phalcon_Mvc_Model_ResultInterface); ZEPHIR_INIT(Phalcon_Mvc_RouterInterface); @@ -584,6 +594,7 @@ static PHP_MINIT_FUNCTION(phalcon) ZEPHIR_INIT(Phalcon_Http_Response_CookiesInterface); ZEPHIR_INIT(Phalcon_Http_Response_HeadersInterface); ZEPHIR_INIT(Phalcon_Messages_MessageInterface); + ZEPHIR_INIT(Phalcon_Mvc_CollectionInterface); ZEPHIR_INIT(Phalcon_Mvc_ControllerInterface); ZEPHIR_INIT(Phalcon_Mvc_DispatcherInterface); ZEPHIR_INIT(Phalcon_Mvc_Micro_CollectionInterface); @@ -609,13 +620,13 @@ static PHP_MINIT_FUNCTION(phalcon) ZEPHIR_INIT(Phalcon_Cli_RouterInterface); ZEPHIR_INIT(Phalcon_Cli_Router_RouteInterface); ZEPHIR_INIT(Phalcon_Di_ServiceProviderInterface); + ZEPHIR_INIT(Phalcon_Mvc_Collection_ManagerInterface); ZEPHIR_INIT(Phalcon_Mvc_Controller_BindModelInterface); ZEPHIR_INIT(Phalcon_Mvc_Micro_MiddlewareInterface); ZEPHIR_INIT(Phalcon_Mvc_Model_Binder_BindableInterface); ZEPHIR_INIT(Phalcon_Mvc_ModuleDefinitionInterface); ZEPHIR_INIT(Phalcon_Exception); ZEPHIR_INIT(Phalcon_Validation_AbstractValidator); - ZEPHIR_INIT(Phalcon_Di_AbstractInjectionAware); ZEPHIR_INIT(Phalcon_Di_Injectable); ZEPHIR_INIT(Phalcon_Factory_AbstractFactory); ZEPHIR_INIT(Phalcon_Forms_Element_AbstractElement); @@ -649,6 +660,7 @@ static PHP_MINIT_FUNCTION(phalcon) ZEPHIR_INIT(Phalcon_Flash_AbstractFlash); ZEPHIR_INIT(Phalcon_Http_Message_AbstractRequest); ZEPHIR_INIT(Phalcon_Image_Adapter_AbstractAdapter); + ZEPHIR_INIT(Phalcon_Mvc_Collection_Behavior); ZEPHIR_INIT(Phalcon_Mvc_Model_Behavior); ZEPHIR_INIT(Phalcon_Mvc_Model_Resultset); ZEPHIR_INIT(Phalcon_Mvc_View_Engine_AbstractEngine); @@ -803,7 +815,6 @@ static PHP_MINIT_FUNCTION(phalcon) ZEPHIR_INIT(Phalcon_Forms_Manager); ZEPHIR_INIT(Phalcon_Helper_Arr); ZEPHIR_INIT(Phalcon_Helper_Exception); - ZEPHIR_INIT(Phalcon_Helper_Fs); ZEPHIR_INIT(Phalcon_Helper_Number); ZEPHIR_INIT(Phalcon_Helper_Str); ZEPHIR_INIT(Phalcon_Html_Attributes); @@ -872,6 +883,12 @@ static PHP_MINIT_FUNCTION(phalcon) ZEPHIR_INIT(Phalcon_Messages_Messages); ZEPHIR_INIT(Phalcon_Mvc_Application); ZEPHIR_INIT(Phalcon_Mvc_Application_Exception); + ZEPHIR_INIT(Phalcon_Mvc_Collection); + ZEPHIR_INIT(Phalcon_Mvc_Collection_Behavior_SoftDelete); + ZEPHIR_INIT(Phalcon_Mvc_Collection_Behavior_Timestampable); + ZEPHIR_INIT(Phalcon_Mvc_Collection_Document); + ZEPHIR_INIT(Phalcon_Mvc_Collection_Exception); + ZEPHIR_INIT(Phalcon_Mvc_Collection_Manager); ZEPHIR_INIT(Phalcon_Mvc_Controller); ZEPHIR_INIT(Phalcon_Mvc_Dispatcher); ZEPHIR_INIT(Phalcon_Mvc_Dispatcher_Exception); @@ -920,6 +937,7 @@ static PHP_MINIT_FUNCTION(phalcon) ZEPHIR_INIT(Phalcon_Paginator_Exception); ZEPHIR_INIT(Phalcon_Paginator_PaginatorFactory); ZEPHIR_INIT(Phalcon_Paginator_Repository); + ZEPHIR_INIT(Phalcon_Plugin); ZEPHIR_INIT(Phalcon_Registry); ZEPHIR_INIT(Phalcon_Security); ZEPHIR_INIT(Phalcon_Security_Exception); diff --git a/ext/phalcon.h b/ext/phalcon.h index 49495d4c156..4341ec838c9 100644 --- a/ext/phalcon.h +++ b/ext/phalcon.h @@ -9,7 +9,6 @@ #include "phalcon/events/eventsawareinterface.zep.h" #include "phalcon/validation/validatorinterface.zep.h" #include "phalcon/validation/abstractvalidator.zep.h" -#include "phalcon/di/abstractinjectionaware.zep.h" #include "phalcon/storage/adapter/adapterinterface.zep.h" #include "phalcon/di/injectable.zep.h" #include "phalcon/factory/abstractfactory.zep.h" @@ -36,6 +35,7 @@ #include "phalcon/http/message/abstractmessage.zep.h" #include "phalcon/logger/adapter/adapterinterface.zep.h" #include "phalcon/logger/formatter/formatterinterface.zep.h" +#include "phalcon/mvc/entityinterface.zep.h" #include "phalcon/mvc/model/resultsetinterface.zep.h" #include "phalcon/paginator/adapter/adapterinterface.zep.h" #include "phalcon/translate/adapter/adapterinterface.zep.h" @@ -50,6 +50,7 @@ #include "phalcon/image/adapter/adapterinterface.zep.h" #include "phalcon/logger/adapter/abstractadapter.zep.h" #include "phalcon/logger/formatter/abstractformatter.zep.h" +#include "phalcon/mvc/collection/behaviorinterface.zep.h" #include "phalcon/mvc/model/behaviorinterface.zep.h" #include "phalcon/mvc/model/exception.zep.h" #include "phalcon/mvc/view/engine/engineinterface.zep.h" @@ -70,7 +71,7 @@ #include "phalcon/flash/abstractflash.zep.h" #include "phalcon/http/message/abstractrequest.zep.h" #include "phalcon/image/adapter/abstractadapter.zep.h" -#include "phalcon/mvc/entityinterface.zep.h" +#include "phalcon/mvc/collection/behavior.zep.h" #include "phalcon/mvc/model/behavior.zep.h" #include "phalcon/mvc/model/metadata/strategyinterface.zep.h" #include "phalcon/mvc/model/resultinterface.zep.h" @@ -109,6 +110,7 @@ #include "phalcon/http/response/headersinterface.zep.h" #include "phalcon/http/responseinterface.zep.h" #include "phalcon/messages/messageinterface.zep.h" +#include "phalcon/mvc/collectioninterface.zep.h" #include "phalcon/mvc/controllerinterface.zep.h" #include "phalcon/mvc/dispatcherinterface.zep.h" #include "phalcon/mvc/micro/collectioninterface.zep.h" @@ -279,7 +281,6 @@ #include "phalcon/forms/manager.zep.h" #include "phalcon/helper/arr.zep.h" #include "phalcon/helper/exception.zep.h" -#include "phalcon/helper/fs.zep.h" #include "phalcon/helper/number.zep.h" #include "phalcon/helper/str.zep.h" #include "phalcon/html/attributes.zep.h" @@ -348,6 +349,13 @@ #include "phalcon/messages/messages.zep.h" #include "phalcon/mvc/application.zep.h" #include "phalcon/mvc/application/exception.zep.h" +#include "phalcon/mvc/collection.zep.h" +#include "phalcon/mvc/collection/behavior/softdelete.zep.h" +#include "phalcon/mvc/collection/behavior/timestampable.zep.h" +#include "phalcon/mvc/collection/document.zep.h" +#include "phalcon/mvc/collection/exception.zep.h" +#include "phalcon/mvc/collection/manager.zep.h" +#include "phalcon/mvc/collection/managerinterface.zep.h" #include "phalcon/mvc/controller.zep.h" #include "phalcon/mvc/controller/bindmodelinterface.zep.h" #include "phalcon/mvc/dispatcher.zep.h" @@ -400,6 +408,7 @@ #include "phalcon/paginator/exception.zep.h" #include "phalcon/paginator/paginatorfactory.zep.h" #include "phalcon/paginator/repository.zep.h" +#include "phalcon/plugin.zep.h" #include "phalcon/registry.zep.h" #include "phalcon/security.zep.h" #include "phalcon/security/exception.zep.h" diff --git a/ext/phalcon/assets/manager.zep.c b/ext/phalcon/assets/manager.zep.c index 2f7f15087ae..6681b926dc9 100644 --- a/ext/phalcon/assets/manager.zep.c +++ b/ext/phalcon/assets/manager.zep.c @@ -38,10 +38,15 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Assets_Manager) { - ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Assets, Manager, phalcon, assets_manager, phalcon_di_abstractinjectionaware_ce, phalcon_assets_manager_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Phalcon\\Assets, Manager, phalcon, assets_manager, phalcon_assets_manager_method_entry, 0); zend_declare_property_null(phalcon_assets_manager_ce, SL("collections"), ZEND_ACC_PROTECTED TSRMLS_CC); + /** + * @var DiInterface + */ + zend_declare_property_null(phalcon_assets_manager_ce, SL("container"), ZEND_ACC_PROTECTED TSRMLS_CC); + /** * Options configure * @var array @@ -53,6 +58,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Assets_Manager) { */ zend_declare_property_bool(phalcon_assets_manager_ce, SL("implicitOutput"), 1, ZEND_ACC_PROTECTED TSRMLS_CC); + zend_class_implements(phalcon_assets_manager_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); return SUCCESS; } @@ -573,7 +579,7 @@ PHP_METHOD(Phalcon_Assets_Manager, collectionAssetsByType) { ZEPHIR_INIT_VAR(&filtered); array_init(&filtered); - zephir_is_iterable(&assets, 0, "phalcon/Assets/Manager.zep", 239); + zephir_is_iterable(&assets, 0, "phalcon/Assets/Manager.zep", 244); if (Z_TYPE_P(&assets) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&assets), _0) { @@ -582,7 +588,7 @@ PHP_METHOD(Phalcon_Assets_Manager, collectionAssetsByType) { ZEPHIR_CALL_METHOD(&_2$$3, &asset, "gettype", NULL, 0); zephir_check_call_status(); if (ZEPHIR_IS_EQUAL(&_2$$3, &type)) { - zephir_array_append(&filtered, &asset, PH_SEPARATE, "phalcon/Assets/Manager.zep", 235); + zephir_array_append(&filtered, &asset, PH_SEPARATE, "phalcon/Assets/Manager.zep", 240); } } ZEND_HASH_FOREACH_END(); } else { @@ -599,7 +605,7 @@ PHP_METHOD(Phalcon_Assets_Manager, collectionAssetsByType) { ZEPHIR_CALL_METHOD(&_3$$5, &asset, "gettype", NULL, 0); zephir_check_call_status(); if (ZEPHIR_IS_EQUAL(&_3$$5, &type)) { - zephir_array_append(&filtered, &asset, PH_SEPARATE, "phalcon/Assets/Manager.zep", 235); + zephir_array_append(&filtered, &asset, PH_SEPARATE, "phalcon/Assets/Manager.zep", 240); } ZEPHIR_CALL_METHOD(NULL, &assets, "next", NULL, 0); zephir_check_call_status(); @@ -686,7 +692,7 @@ PHP_METHOD(Phalcon_Assets_Manager, get) { ZEPHIR_OBS_VAR(&collection); zephir_read_property(&_0, this_ptr, SL("collections"), PH_NOISY_CC | PH_READONLY); if (UNEXPECTED(!(zephir_array_isset_fetch(&collection, &_0, &id, 0 TSRMLS_CC)))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "The collection does not exist in the manager", "phalcon/Assets/Manager.zep", 269); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "The collection does not exist in the manager", "phalcon/Assets/Manager.zep", 274); return; } RETURN_CCTOR(&collection); @@ -731,6 +737,18 @@ PHP_METHOD(Phalcon_Assets_Manager, getCss) { } +/** + * Returns the internal dependency injector + */ +PHP_METHOD(Phalcon_Assets_Manager, getDI) { + + zval *this_ptr = getThis(); + + + RETURN_MEMBER(getThis(), "container"); + +} + /** * Returns the CSS collection of assets */ @@ -937,7 +955,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_CONCAT_SVS(&_3$$10, "Path '", &completeTargetPath, "' is not a valid target path (1)"); ZEPHIR_CALL_METHOD(NULL, &_2$$10, "__construct", NULL, 5, &_3$$10); zephir_check_call_status(); - zephir_throw_exception_debug(&_2$$10, "phalcon/Assets/Manager.zep", 432 TSRMLS_CC); + zephir_throw_exception_debug(&_2$$10, "phalcon/Assets/Manager.zep", 445 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -950,13 +968,13 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_CONCAT_SVS(&_6$$11, "Path '", &completeTargetPath, "' is not a valid target path (2), is dir."); ZEPHIR_CALL_METHOD(NULL, &_5$$11, "__construct", NULL, 5, &_6$$11); zephir_check_call_status(); - zephir_throw_exception_debug(&_5$$11, "phalcon/Assets/Manager.zep", 438 TSRMLS_CC); + zephir_throw_exception_debug(&_5$$11, "phalcon/Assets/Manager.zep", 451 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } } } - zephir_is_iterable(&assets, 0, "phalcon/Assets/Manager.zep", 696); + zephir_is_iterable(&assets, 0, "phalcon/Assets/Manager.zep", 709); if (Z_TYPE_P(&assets) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&assets), _7) { @@ -980,7 +998,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_CONCAT_SVS(&_10$$15, "Asset '", &sourcePath, "' does not have a valid source path"); ZEPHIR_CALL_METHOD(NULL, &_9$$15, "__construct", NULL, 5, &_10$$15); zephir_check_call_status(); - zephir_throw_exception_debug(&_9$$15, "phalcon/Assets/Manager.zep", 476 TSRMLS_CC); + zephir_throw_exception_debug(&_9$$15, "phalcon/Assets/Manager.zep", 489 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -998,7 +1016,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_CONCAT_SVS(&_12$$17, "Asset '", &sourcePath, "' does not have a valid target path"); ZEPHIR_CALL_METHOD(NULL, &_11$$17, "__construct", NULL, 5, &_12$$17); zephir_check_call_status(); - zephir_throw_exception_debug(&_11$$17, "phalcon/Assets/Manager.zep", 502 TSRMLS_CC); + zephir_throw_exception_debug(&_11$$17, "phalcon/Assets/Manager.zep", 515 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1010,7 +1028,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_CONCAT_SVS(&_14$$19, "Asset '", &targetPath, "' have the same source and target paths"); ZEPHIR_CALL_METHOD(NULL, &_13$$19, "__construct", NULL, 5, &_14$$19); zephir_check_call_status(); - zephir_throw_exception_debug(&_13$$19, "phalcon/Assets/Manager.zep", 512 TSRMLS_CC); + zephir_throw_exception_debug(&_13$$19, "phalcon/Assets/Manager.zep", 525 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1080,7 +1098,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { zephir_array_fast_append(&_27$$28, &prefixedPath); ZEPHIR_CPY_WRT(¶meters, &_27$$28); } - zephir_array_append(¶meters, &local, PH_SEPARATE, "phalcon/Assets/Manager.zep", 558); + zephir_array_append(¶meters, &local, PH_SEPARATE, "phalcon/Assets/Manager.zep", 571); ZEPHIR_INIT_NVAR(&html); ZEPHIR_CALL_USER_FUNC_ARRAY(&html, callback, ¶meters); zephir_check_call_status(); @@ -1097,14 +1115,14 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_CALL_METHOD(&mustFilter, &asset, "getfilter", NULL, 0); zephir_check_call_status(); if (ZEPHIR_IS_TRUE(&mustFilter)) { - zephir_is_iterable(&filters, 0, "phalcon/Assets/Manager.zep", 611); + zephir_is_iterable(&filters, 0, "phalcon/Assets/Manager.zep", 624); if (Z_TYPE_P(&filters) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&filters), _28$$32) { ZEPHIR_INIT_NVAR(&filter); ZVAL_COPY(&filter, _28$$32); if (UNEXPECTED(Z_TYPE_P(&filter) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 597); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 610); return; } ZEPHIR_CALL_METHOD(&filteredContent, &filter, "filter", NULL, 0, &content); @@ -1123,7 +1141,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_CALL_METHOD(&filter, &filters, "current", NULL, 0); zephir_check_call_status(); if (UNEXPECTED(Z_TYPE_P(&filter) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 597); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 610); return; } ZEPHIR_CALL_METHOD(&filteredContent, &filter, "filter", NULL, 0, &content); @@ -1212,7 +1230,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { zephir_array_fast_append(&_39$$49, &prefixedPath); ZEPHIR_CPY_WRT(¶meters, &_39$$49); } - zephir_array_append(¶meters, &local, PH_SEPARATE, "phalcon/Assets/Manager.zep", 678); + zephir_array_append(¶meters, &local, PH_SEPARATE, "phalcon/Assets/Manager.zep", 691); ZEPHIR_INIT_NVAR(&html); ZEPHIR_CALL_USER_FUNC_ARRAY(&html, callback, ¶meters); zephir_check_call_status(); @@ -1252,7 +1270,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_CONCAT_SVS(&_41$$55, "Asset '", &sourcePath, "' does not have a valid source path"); ZEPHIR_CALL_METHOD(NULL, &_40$$55, "__construct", NULL, 5, &_41$$55); zephir_check_call_status(); - zephir_throw_exception_debug(&_40$$55, "phalcon/Assets/Manager.zep", 476 TSRMLS_CC); + zephir_throw_exception_debug(&_40$$55, "phalcon/Assets/Manager.zep", 489 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1270,7 +1288,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_CONCAT_SVS(&_43$$57, "Asset '", &sourcePath, "' does not have a valid target path"); ZEPHIR_CALL_METHOD(NULL, &_42$$57, "__construct", NULL, 5, &_43$$57); zephir_check_call_status(); - zephir_throw_exception_debug(&_42$$57, "phalcon/Assets/Manager.zep", 502 TSRMLS_CC); + zephir_throw_exception_debug(&_42$$57, "phalcon/Assets/Manager.zep", 515 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1282,7 +1300,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_CONCAT_SVS(&_45$$59, "Asset '", &targetPath, "' have the same source and target paths"); ZEPHIR_CALL_METHOD(NULL, &_44$$59, "__construct", NULL, 5, &_45$$59); zephir_check_call_status(); - zephir_throw_exception_debug(&_44$$59, "phalcon/Assets/Manager.zep", 512 TSRMLS_CC); + zephir_throw_exception_debug(&_44$$59, "phalcon/Assets/Manager.zep", 525 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1351,7 +1369,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { zephir_array_fast_append(&_55$$68, &prefixedPath); ZEPHIR_CPY_WRT(¶meters, &_55$$68); } - zephir_array_append(¶meters, &local, PH_SEPARATE, "phalcon/Assets/Manager.zep", 558); + zephir_array_append(¶meters, &local, PH_SEPARATE, "phalcon/Assets/Manager.zep", 571); ZEPHIR_INIT_NVAR(&html); ZEPHIR_CALL_USER_FUNC_ARRAY(&html, callback, ¶meters); zephir_check_call_status(); @@ -1368,14 +1386,14 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_CALL_METHOD(&mustFilter, &asset, "getfilter", NULL, 0); zephir_check_call_status(); if (ZEPHIR_IS_TRUE(&mustFilter)) { - zephir_is_iterable(&filters, 0, "phalcon/Assets/Manager.zep", 611); + zephir_is_iterable(&filters, 0, "phalcon/Assets/Manager.zep", 624); if (Z_TYPE_P(&filters) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&filters), _56$$72) { ZEPHIR_INIT_NVAR(&filter); ZVAL_COPY(&filter, _56$$72); if (UNEXPECTED(Z_TYPE_P(&filter) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 597); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 610); return; } ZEPHIR_CALL_METHOD(&filteredContent, &filter, "filter", NULL, 0, &content); @@ -1394,7 +1412,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_CALL_METHOD(&filter, &filters, "current", NULL, 0); zephir_check_call_status(); if (UNEXPECTED(Z_TYPE_P(&filter) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 597); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 610); return; } ZEPHIR_CALL_METHOD(&filteredContent, &filter, "filter", NULL, 0, &content); @@ -1483,7 +1501,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { zephir_array_fast_append(&_67$$89, &prefixedPath); ZEPHIR_CPY_WRT(¶meters, &_67$$89); } - zephir_array_append(¶meters, &local, PH_SEPARATE, "phalcon/Assets/Manager.zep", 678); + zephir_array_append(¶meters, &local, PH_SEPARATE, "phalcon/Assets/Manager.zep", 691); ZEPHIR_INIT_NVAR(&html); ZEPHIR_CALL_USER_FUNC_ARRAY(&html, callback, ¶meters); zephir_check_call_status(); @@ -1546,7 +1564,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { zephir_array_fast_append(&_72$$97, &prefixedPath); ZEPHIR_CPY_WRT(¶meters, &_72$$97); } - zephir_array_append(¶meters, &local, PH_SEPARATE, "phalcon/Assets/Manager.zep", 740); + zephir_array_append(¶meters, &local, PH_SEPARATE, "phalcon/Assets/Manager.zep", 753); ZEPHIR_INIT_NVAR(&html); ZEPHIR_CALL_USER_FUNC_ARRAY(&html, callback, ¶meters); zephir_check_call_status(); @@ -1710,7 +1728,7 @@ PHP_METHOD(Phalcon_Assets_Manager, outputInline) { ZEPHIR_CALL_METHOD(&join, collection, "getjoin", NULL, 0); zephir_check_call_status(); if (zephir_fast_count_int(&codes TSRMLS_CC)) { - zephir_is_iterable(&codes, 0, "phalcon/Assets/Manager.zep", 832); + zephir_is_iterable(&codes, 0, "phalcon/Assets/Manager.zep", 845); if (Z_TYPE_P(&codes) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&codes), _0$$3) { @@ -1720,14 +1738,14 @@ PHP_METHOD(Phalcon_Assets_Manager, outputInline) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&content, &code, "getcontent", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&filters, 0, "phalcon/Assets/Manager.zep", 823); + zephir_is_iterable(&filters, 0, "phalcon/Assets/Manager.zep", 836); if (Z_TYPE_P(&filters) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&filters), _2$$4) { ZEPHIR_INIT_NVAR(&filter); ZVAL_COPY(&filter, _2$$4); if (UNEXPECTED(Z_TYPE_P(&filter) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 813); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 826); return; } ZEPHIR_CALL_METHOD(&_4$$5, &filter, "filter", NULL, 0, &content); @@ -1746,7 +1764,7 @@ PHP_METHOD(Phalcon_Assets_Manager, outputInline) { ZEPHIR_CALL_METHOD(&filter, &filters, "current", NULL, 0); zephir_check_call_status(); if (UNEXPECTED(Z_TYPE_P(&filter) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 813); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 826); return; } ZEPHIR_CALL_METHOD(&_5$$7, &filter, "filter", NULL, 0, &content); @@ -1787,14 +1805,14 @@ PHP_METHOD(Phalcon_Assets_Manager, outputInline) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&content, &code, "getcontent", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&filters, 0, "phalcon/Assets/Manager.zep", 823); + zephir_is_iterable(&filters, 0, "phalcon/Assets/Manager.zep", 836); if (Z_TYPE_P(&filters) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&filters), _13$$11) { ZEPHIR_INIT_NVAR(&filter); ZVAL_COPY(&filter, _13$$11); if (UNEXPECTED(Z_TYPE_P(&filter) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 813); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 826); return; } ZEPHIR_CALL_METHOD(&_15$$12, &filter, "filter", NULL, 0, &content); @@ -1813,7 +1831,7 @@ PHP_METHOD(Phalcon_Assets_Manager, outputInline) { ZEPHIR_CALL_METHOD(&filter, &filters, "current", NULL, 0); zephir_check_call_status(); if (UNEXPECTED(Z_TYPE_P(&filter) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 813); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 826); return; } ZEPHIR_CALL_METHOD(&_16$$14, &filter, "filter", NULL, 0, &content); @@ -2066,6 +2084,24 @@ PHP_METHOD(Phalcon_Assets_Manager, set) { } +/** + * Sets the dependency injector + */ +PHP_METHOD(Phalcon_Assets_Manager, setDI) { + + zval *container, container_sub; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&container_sub); + + zephir_fetch_params_without_memory_grow(1, 0, &container); + + + + zephir_update_property_zval(this_ptr, SL("container"), container); + +} + /** * Sets the manager options */ diff --git a/ext/phalcon/assets/manager.zep.h b/ext/phalcon/assets/manager.zep.h index 0ccb7942c27..0de4836bed8 100644 --- a/ext/phalcon/assets/manager.zep.h +++ b/ext/phalcon/assets/manager.zep.h @@ -18,6 +18,7 @@ PHP_METHOD(Phalcon_Assets_Manager, exists); PHP_METHOD(Phalcon_Assets_Manager, get); PHP_METHOD(Phalcon_Assets_Manager, getCollections); PHP_METHOD(Phalcon_Assets_Manager, getCss); +PHP_METHOD(Phalcon_Assets_Manager, getDI); PHP_METHOD(Phalcon_Assets_Manager, getJs); PHP_METHOD(Phalcon_Assets_Manager, getOptions); PHP_METHOD(Phalcon_Assets_Manager, output); @@ -27,6 +28,7 @@ PHP_METHOD(Phalcon_Assets_Manager, outputInlineCss); PHP_METHOD(Phalcon_Assets_Manager, outputInlineJs); PHP_METHOD(Phalcon_Assets_Manager, outputJs); PHP_METHOD(Phalcon_Assets_Manager, set); +PHP_METHOD(Phalcon_Assets_Manager, setDI); PHP_METHOD(Phalcon_Assets_Manager, setOptions); PHP_METHOD(Phalcon_Assets_Manager, useImplicitOutput); PHP_METHOD(Phalcon_Assets_Manager, getPrefixedPath); @@ -226,6 +228,13 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_assets_manager_getcss, 0 #endif ZEND_END_ARG_INFO() +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_assets_manager_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_assets_manager_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) +#endif +ZEND_END_ARG_INFO() + #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_assets_manager_getjs, 0, 0, Phalcon\\Assets\\Collection, 0) #else @@ -320,6 +329,10 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_assets_manager_set, 0, 2 ZEND_ARG_OBJ_INFO(0, collection, Phalcon\\Assets\\Collection, 0) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_assets_manager_setdi, 0, 0, 1) + ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) +ZEND_END_ARG_INFO() + #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_assets_manager_setoptions, 0, 1, Phalcon\\Assets\\Manager, 0) #else @@ -369,6 +382,7 @@ ZEPHIR_INIT_FUNCS(phalcon_assets_manager_method_entry) { PHP_ME(Phalcon_Assets_Manager, get, arginfo_phalcon_assets_manager_get, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Assets_Manager, getCollections, arginfo_phalcon_assets_manager_getcollections, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Assets_Manager, getCss, arginfo_phalcon_assets_manager_getcss, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Assets_Manager, getDI, arginfo_phalcon_assets_manager_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Assets_Manager, getJs, arginfo_phalcon_assets_manager_getjs, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Assets_Manager, getOptions, arginfo_phalcon_assets_manager_getoptions, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Assets_Manager, output, arginfo_phalcon_assets_manager_output, ZEND_ACC_PUBLIC) @@ -378,6 +392,7 @@ ZEPHIR_INIT_FUNCS(phalcon_assets_manager_method_entry) { PHP_ME(Phalcon_Assets_Manager, outputInlineJs, arginfo_phalcon_assets_manager_outputinlinejs, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Assets_Manager, outputJs, arginfo_phalcon_assets_manager_outputjs, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Assets_Manager, set, arginfo_phalcon_assets_manager_set, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Assets_Manager, setDI, arginfo_phalcon_assets_manager_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Assets_Manager, setOptions, arginfo_phalcon_assets_manager_setoptions, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Assets_Manager, useImplicitOutput, arginfo_phalcon_assets_manager_useimplicitoutput, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Assets_Manager, getPrefixedPath, arginfo_phalcon_assets_manager_getprefixedpath, ZEND_ACC_PRIVATE) diff --git a/ext/phalcon/cli/router.zep.c b/ext/phalcon/cli/router.zep.c index c70d10d8a08..39fede73bd6 100644 --- a/ext/phalcon/cli/router.zep.c +++ b/ext/phalcon/cli/router.zep.c @@ -52,10 +52,12 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Cli_Router) { - ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Cli, Router, phalcon, cli_router, phalcon_di_abstractinjectionaware_ce, phalcon_cli_router_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Phalcon\\Cli, Router, phalcon, cli_router, phalcon_cli_router_method_entry, 0); zend_declare_property_null(phalcon_cli_router_ce, SL("action"), ZEND_ACC_PROTECTED TSRMLS_CC); + zend_declare_property_null(phalcon_cli_router_ce, SL("container"), ZEND_ACC_PROTECTED TSRMLS_CC); + zend_declare_property_null(phalcon_cli_router_ce, SL("defaultAction"), ZEND_ACC_PROTECTED TSRMLS_CC); zend_declare_property_null(phalcon_cli_router_ce, SL("defaultModule"), ZEND_ACC_PROTECTED TSRMLS_CC); @@ -85,6 +87,8 @@ ZEPHIR_INIT_CLASS(Phalcon_Cli_Router) { zend_declare_property_bool(phalcon_cli_router_ce, SL("wasMatched"), 0, ZEND_ACC_PROTECTED TSRMLS_CC); phalcon_cli_router_ce->create_object = zephir_init_properties_Phalcon_Cli_Router; + + zend_class_implements(phalcon_cli_router_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); return SUCCESS; } @@ -130,7 +134,7 @@ PHP_METHOD(Phalcon_Cli_Router, __construct) { ZVAL_STRING(&_2$$3, "#^(?::delimiter)?([a-zA-Z0-9\\_\\-]+)[:delimiter]{0,1}$#"); ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 161, &_2$$3, &_1$$3); zephir_check_call_status(); - zephir_array_append(&routes, &_0$$3, PH_SEPARATE, "phalcon/Cli/Router.zep", 88); + zephir_array_append(&routes, &_0$$3, PH_SEPARATE, "phalcon/Cli/Router.zep", 90); ZEPHIR_INIT_NVAR(&_2$$3); object_init_ex(&_2$$3, phalcon_cli_router_route_ce); ZEPHIR_INIT_VAR(&_3$$3); @@ -142,7 +146,7 @@ PHP_METHOD(Phalcon_Cli_Router, __construct) { ZVAL_STRING(&_4$$3, "#^(?::delimiter)?([a-zA-Z0-9\\_\\-]+):delimiter([a-zA-Z0-9\\.\\_]+)(:delimiter.*)*$#"); ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 161, &_4$$3, &_3$$3); zephir_check_call_status(); - zephir_array_append(&routes, &_2$$3, PH_SEPARATE, "phalcon/Cli/Router.zep", 97); + zephir_array_append(&routes, &_2$$3, PH_SEPARATE, "phalcon/Cli/Router.zep", 99); } zephir_update_property_zval(this_ptr, SL("routes"), &routes); ZEPHIR_MM_RESTORE(); @@ -211,6 +215,18 @@ PHP_METHOD(Phalcon_Cli_Router, getActionName) { } +/** + * Returns the internal dependency injector + */ +PHP_METHOD(Phalcon_Cli_Router, getDI) { + + zval *this_ptr = getThis(); + + + RETURN_MEMBER(getThis(), "container"); + +} + /** * Returns the route that matches the handled URI */ @@ -284,7 +300,7 @@ PHP_METHOD(Phalcon_Cli_Router, getRouteById) { zephir_read_property(&_0, this_ptr, SL("routes"), PH_NOISY_CC | PH_READONLY); - zephir_is_iterable(&_0, 0, "phalcon/Cli/Router.zep", 177); + zephir_is_iterable(&_0, 0, "phalcon/Cli/Router.zep", 187); if (Z_TYPE_P(&_0) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_0), _1) { @@ -355,7 +371,7 @@ PHP_METHOD(Phalcon_Cli_Router, getRouteByName) { zephir_read_property(&_0, this_ptr, SL("routes"), PH_NOISY_CC | PH_READONLY); - zephir_is_iterable(&_0, 0, "phalcon/Cli/Router.zep", 193); + zephir_is_iterable(&_0, 0, "phalcon/Cli/Router.zep", 203); if (Z_TYPE_P(&_0) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_0), _1) { @@ -515,11 +531,11 @@ PHP_METHOD(Phalcon_Cli_Router, handle) { _0$$3 = Z_TYPE_P(arguments) != IS_NULL; } if (UNEXPECTED(_0$$3)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cli_router_exception_ce, "Arguments must be an array or string", "phalcon/Cli/Router.zep", 232); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cli_router_exception_ce, "Arguments must be an array or string", "phalcon/Cli/Router.zep", 242); return; } zephir_read_property(&_1$$3, this_ptr, SL("routes"), PH_NOISY_CC | PH_READONLY); - zephir_is_iterable(&_1$$3, 0, "phalcon/Cli/Router.zep", 338); + zephir_is_iterable(&_1$$3, 0, "phalcon/Cli/Router.zep", 348); if (Z_TYPE_P(&_1$$3) == IS_ARRAY) { ZEND_HASH_REVERSE_FOREACH_VAL(Z_ARRVAL_P(&_1$$3), _2$$3) { @@ -527,7 +543,7 @@ PHP_METHOD(Phalcon_Cli_Router, handle) { ZVAL_COPY(&route, _2$$3); ZEPHIR_CALL_METHOD(&pattern, &route, "getcompiledpattern", NULL, 0); zephir_check_call_status(); - if (zephir_memnstr_str(&pattern, SL("^"), "phalcon/Cli/Router.zep", 241)) { + if (zephir_memnstr_str(&pattern, SL("^"), "phalcon/Cli/Router.zep", 251)) { ZEPHIR_INIT_NVAR(&routeFound); zephir_preg_match(&routeFound, &pattern, arguments, &matches, 0, 0 , 0 TSRMLS_CC); } else { @@ -539,7 +555,7 @@ PHP_METHOD(Phalcon_Cli_Router, handle) { zephir_check_call_status(); if (Z_TYPE_P(&beforeMatch) != IS_NULL) { if (UNEXPECTED(!(zephir_is_callable(&beforeMatch TSRMLS_CC)))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cli_router_exception_ce, "Before-Match callback is not callable in matched route", "phalcon/Cli/Router.zep", 260); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cli_router_exception_ce, "Before-Match callback is not callable in matched route", "phalcon/Cli/Router.zep", 270); return; } ZEPHIR_INIT_NVAR(&_4$$9); @@ -559,7 +575,7 @@ PHP_METHOD(Phalcon_Cli_Router, handle) { if (Z_TYPE_P(&matches) == IS_ARRAY) { ZEPHIR_CALL_METHOD(&converters, &route, "getconverters", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&paths, 0, "phalcon/Cli/Router.zep", 325); + zephir_is_iterable(&paths, 0, "phalcon/Cli/Router.zep", 335); if (Z_TYPE_P(&paths) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&paths), _7$$12, _8$$12, _5$$12) { @@ -662,7 +678,7 @@ PHP_METHOD(Phalcon_Cli_Router, handle) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&pattern, &route, "getcompiledpattern", NULL, 0); zephir_check_call_status(); - if (zephir_memnstr_str(&pattern, SL("^"), "phalcon/Cli/Router.zep", 241)) { + if (zephir_memnstr_str(&pattern, SL("^"), "phalcon/Cli/Router.zep", 251)) { ZEPHIR_INIT_NVAR(&routeFound); zephir_preg_match(&routeFound, &pattern, arguments, &matches, 0, 0 , 0 TSRMLS_CC); } else { @@ -674,7 +690,7 @@ PHP_METHOD(Phalcon_Cli_Router, handle) { zephir_check_call_status(); if (Z_TYPE_P(&beforeMatch) != IS_NULL) { if (UNEXPECTED(!(zephir_is_callable(&beforeMatch TSRMLS_CC)))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cli_router_exception_ce, "Before-Match callback is not callable in matched route", "phalcon/Cli/Router.zep", 260); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cli_router_exception_ce, "Before-Match callback is not callable in matched route", "phalcon/Cli/Router.zep", 270); return; } ZEPHIR_INIT_NVAR(&_17$$29); @@ -694,7 +710,7 @@ PHP_METHOD(Phalcon_Cli_Router, handle) { if (Z_TYPE_P(&matches) == IS_ARRAY) { ZEPHIR_CALL_METHOD(&converters, &route, "getconverters", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&paths, 0, "phalcon/Cli/Router.zep", 325); + zephir_is_iterable(&paths, 0, "phalcon/Cli/Router.zep", 335); if (Z_TYPE_P(&paths) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&paths), _20$$32, _21$$32, _18$$32) { @@ -992,6 +1008,24 @@ PHP_METHOD(Phalcon_Cli_Router, setDefaultTask) { } +/** + * Sets the dependency injector + */ +PHP_METHOD(Phalcon_Cli_Router, setDI) { + + zval *container, container_sub; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&container_sub); + + zephir_fetch_params_without_memory_grow(1, 0, &container); + + + + zephir_update_property_zval(this_ptr, SL("container"), container); + +} + /** * Checks if the router matches any of the defined routes */ diff --git a/ext/phalcon/cli/router.zep.h b/ext/phalcon/cli/router.zep.h index d3ad257643c..d87011c836f 100644 --- a/ext/phalcon/cli/router.zep.h +++ b/ext/phalcon/cli/router.zep.h @@ -6,6 +6,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Cli_Router); PHP_METHOD(Phalcon_Cli_Router, __construct); PHP_METHOD(Phalcon_Cli_Router, add); PHP_METHOD(Phalcon_Cli_Router, getActionName); +PHP_METHOD(Phalcon_Cli_Router, getDI); PHP_METHOD(Phalcon_Cli_Router, getMatchedRoute); PHP_METHOD(Phalcon_Cli_Router, getMatches); PHP_METHOD(Phalcon_Cli_Router, getModuleName); @@ -19,6 +20,7 @@ PHP_METHOD(Phalcon_Cli_Router, setDefaultAction); PHP_METHOD(Phalcon_Cli_Router, setDefaultModule); PHP_METHOD(Phalcon_Cli_Router, setDefaults); PHP_METHOD(Phalcon_Cli_Router, setDefaultTask); +PHP_METHOD(Phalcon_Cli_Router, setDI); PHP_METHOD(Phalcon_Cli_Router, wasMatched); zend_object *zephir_init_properties_Phalcon_Cli_Router(zend_class_entry *class_type TSRMLS_DC); @@ -50,6 +52,13 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_cli_router_getactionname #endif ZEND_END_ARG_INFO() +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_cli_router_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_cli_router_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) +#endif +ZEND_END_ARG_INFO() + #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_cli_router_getmatchedroute, 0, 0, Phalcon\\Cli\\RouteInterface, 0) #else @@ -140,6 +149,10 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_cli_router_setdefaulttask, 0, 0, 1) #endif ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_cli_router_setdi, 0, 0, 1) + ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) +ZEND_END_ARG_INFO() + #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_cli_router_wasmatched, 0, 0, _IS_BOOL, 0) #else @@ -151,6 +164,7 @@ ZEPHIR_INIT_FUNCS(phalcon_cli_router_method_entry) { PHP_ME(Phalcon_Cli_Router, __construct, arginfo_phalcon_cli_router___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) PHP_ME(Phalcon_Cli_Router, add, arginfo_phalcon_cli_router_add, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Cli_Router, getActionName, arginfo_phalcon_cli_router_getactionname, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Cli_Router, getDI, arginfo_phalcon_cli_router_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Cli_Router, getMatchedRoute, arginfo_phalcon_cli_router_getmatchedroute, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Cli_Router, getMatches, arginfo_phalcon_cli_router_getmatches, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Cli_Router, getModuleName, arginfo_phalcon_cli_router_getmodulename, ZEND_ACC_PUBLIC) @@ -164,6 +178,7 @@ ZEPHIR_INIT_FUNCS(phalcon_cli_router_method_entry) { PHP_ME(Phalcon_Cli_Router, setDefaultModule, arginfo_phalcon_cli_router_setdefaultmodule, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Cli_Router, setDefaults, arginfo_phalcon_cli_router_setdefaults, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Cli_Router, setDefaultTask, arginfo_phalcon_cli_router_setdefaulttask, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Cli_Router, setDI, arginfo_phalcon_cli_router_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Cli_Router, wasMatched, arginfo_phalcon_cli_router_wasmatched, ZEND_ACC_PUBLIC) PHP_FE_END }; diff --git a/ext/phalcon/di/abstractinjectionaware.zep.c b/ext/phalcon/di/abstractinjectionaware.zep.c deleted file mode 100644 index 1d6b68f777a..00000000000 --- a/ext/phalcon/di/abstractinjectionaware.zep.c +++ /dev/null @@ -1,75 +0,0 @@ - -#ifdef HAVE_CONFIG_H -#include "../../ext_config.h" -#endif - -#include -#include "../../php_ext.h" -#include "../../ext.h" - -#include -#include -#include - -#include "kernel/main.h" -#include "kernel/object.h" -#include "kernel/memory.h" - - -/** - * This file is part of the Phalcon Framework. - * - * (c) Phalcon Team - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ -/** - * This abstract class offers common access to the DI in a class - */ -ZEPHIR_INIT_CLASS(Phalcon_Di_AbstractInjectionAware) { - - ZEPHIR_REGISTER_CLASS(Phalcon\\Di, AbstractInjectionAware, phalcon, di_abstractinjectionaware, phalcon_di_abstractinjectionaware_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); - - /** - * Dependency Injector - * - * @var DiInterface - */ - zend_declare_property_null(phalcon_di_abstractinjectionaware_ce, SL("container"), ZEND_ACC_PROTECTED TSRMLS_CC); - - zend_class_implements(phalcon_di_abstractinjectionaware_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); - return SUCCESS; - -} - -/** - * Returns the internal dependency injector - */ -PHP_METHOD(Phalcon_Di_AbstractInjectionAware, getDI) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "container"); - -} - -/** - * Sets the dependency injector - */ -PHP_METHOD(Phalcon_Di_AbstractInjectionAware, setDI) { - - zval *container, container_sub; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&container_sub); - - zephir_fetch_params_without_memory_grow(1, 0, &container); - - - - zephir_update_property_zval(this_ptr, SL("container"), container); - -} - diff --git a/ext/phalcon/di/abstractinjectionaware.zep.h b/ext/phalcon/di/abstractinjectionaware.zep.h deleted file mode 100644 index e3e7d8119ed..00000000000 --- a/ext/phalcon/di/abstractinjectionaware.zep.h +++ /dev/null @@ -1,24 +0,0 @@ - -extern zend_class_entry *phalcon_di_abstractinjectionaware_ce; - -ZEPHIR_INIT_CLASS(Phalcon_Di_AbstractInjectionAware); - -PHP_METHOD(Phalcon_Di_AbstractInjectionAware, getDI); -PHP_METHOD(Phalcon_Di_AbstractInjectionAware, setDI); - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_di_abstractinjectionaware_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_di_abstractinjectionaware_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_di_abstractinjectionaware_setdi, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(phalcon_di_abstractinjectionaware_method_entry) { - PHP_ME(Phalcon_Di_AbstractInjectionAware, getDI, arginfo_phalcon_di_abstractinjectionaware_getdi, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Di_AbstractInjectionAware, setDI, arginfo_phalcon_di_abstractinjectionaware_setdi, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/phalcon/dispatcher/abstractdispatcher.zep.c b/ext/phalcon/dispatcher/abstractdispatcher.zep.c index 6312ee61a9d..33f674230da 100644 --- a/ext/phalcon/dispatcher/abstractdispatcher.zep.c +++ b/ext/phalcon/dispatcher/abstractdispatcher.zep.c @@ -38,7 +38,7 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Dispatcher_AbstractDispatcher) { - ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Dispatcher, AbstractDispatcher, phalcon, dispatcher_abstractdispatcher, phalcon_di_abstractinjectionaware_ce, phalcon_dispatcher_abstractdispatcher_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); + ZEPHIR_REGISTER_CLASS(Phalcon\\Dispatcher, AbstractDispatcher, phalcon, dispatcher_abstractdispatcher, phalcon_dispatcher_abstractdispatcher_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); zend_declare_property_null(phalcon_dispatcher_abstractdispatcher_ce, SL("activeHandler"), ZEND_ACC_PROTECTED TSRMLS_CC); @@ -59,6 +59,8 @@ ZEPHIR_INIT_CLASS(Phalcon_Dispatcher_AbstractDispatcher) { */ zend_declare_property_null(phalcon_dispatcher_abstractdispatcher_ce, SL("camelCaseMap"), ZEND_ACC_PROTECTED TSRMLS_CC); + zend_declare_property_null(phalcon_dispatcher_abstractdispatcher_ce, SL("container"), ZEND_ACC_PROTECTED TSRMLS_CC); + /** * @var string */ @@ -126,6 +128,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Dispatcher_AbstractDispatcher) { phalcon_dispatcher_abstractdispatcher_ce->create_object = zephir_init_properties_Phalcon_Dispatcher_AbstractDispatcher; zend_class_implements(phalcon_dispatcher_abstractdispatcher_ce TSRMLS_CC, 1, phalcon_dispatcher_dispatcherinterface_ce); + zend_class_implements(phalcon_dispatcher_abstractdispatcher_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); zend_class_implements(phalcon_dispatcher_abstractdispatcher_ce TSRMLS_CC, 1, phalcon_events_eventsawareinterface_ce); return SUCCESS; @@ -342,7 +345,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, dispatch) { if (ZEPHIR_IS_FALSE_IDENTICAL(&status)) { RETURN_MM_BOOL(0); } - zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 182 TSRMLS_CC); + zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 184 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -416,7 +419,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, dispatch) { if (_23$$15) { continue; } - zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 223 TSRMLS_CC); + zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 225 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -571,7 +574,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, dispatch) { zephir_check_call_status(); continue; } - zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 364 TSRMLS_CC); + zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 366 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -615,7 +618,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, dispatch) { zephir_check_call_status(); continue; } - zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 383 TSRMLS_CC); + zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 385 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -658,7 +661,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, dispatch) { if (_79$$43) { continue; } - zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 425 TSRMLS_CC); + zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 427 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -705,7 +708,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, dispatch) { if (_89$$48) { continue; } - zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 444 TSRMLS_CC); + zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 446 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -777,7 +780,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, dispatch) { if (_105$$59) { continue; } - zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 516 TSRMLS_CC); + zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 518 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -818,7 +821,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, dispatch) { if (_115$$64) { continue; } - zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 532 TSRMLS_CC); + zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 534 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -858,7 +861,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, dispatch) { if (_123$$69) { continue; } - zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 549 TSRMLS_CC); + zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 551 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -892,7 +895,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, dispatch) { if (_130$$73) { continue; } - zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 566 TSRMLS_CC); + zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 568 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -922,7 +925,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, dispatch) { if (ZEPHIR_IS_FALSE_IDENTICAL(&_134$$77)) { RETURN_MM_BOOL(0); } - zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 583 TSRMLS_CC); + zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 585 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -974,7 +977,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, forward) { zephir_read_property(&_0, this_ptr, SL("isControllerInitialize"), PH_NOISY_CC | PH_READONLY); if (UNEXPECTED(ZEPHIR_IS_TRUE_IDENTICAL(&_0))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_dispatcher_exception_ce, "Forwarding inside a controller's initialize() method is forbidden", "phalcon/Dispatcher/AbstractDispatcher.zep", 617); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_dispatcher_exception_ce, "Forwarding inside a controller's initialize() method is forbidden", "phalcon/Dispatcher/AbstractDispatcher.zep", 619); return; } zephir_read_property(&_1, this_ptr, SL("namespaceName"), PH_NOISY_CC | PH_READONLY); @@ -1125,6 +1128,18 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, getDefaultNamespace) { } +/** + * Returns the internal dependency injector + */ +PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, getDI) { + + zval *this_ptr = getThis(); + + + RETURN_MEMBER(getThis(), "container"); + +} + /** * Returns the internal event manager */ @@ -1375,6 +1390,24 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, setDefaultNamespace) { } +/** + * Sets the dependency injector + */ +PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, setDI) { + + zval *container, container_sub; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&container_sub); + + zephir_fetch_params_without_memory_grow(1, 0, &container); + + + + zephir_update_property_zval(this_ptr, SL("container"), container); + +} + /** * Possible class name that will be located to dispatch the request */ @@ -1402,7 +1435,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, getHandlerClass) { ZEPHIR_CPY_WRT(&handlerName, &_0); zephir_read_property(&_0, this_ptr, SL("namespaceName"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&namespaceName, &_0); - if (!(zephir_memnstr_str(&handlerName, SL("\\"), "phalcon/Dispatcher/AbstractDispatcher.zep", 868))) { + if (!(zephir_memnstr_str(&handlerName, SL("\\"), "phalcon/Dispatcher/AbstractDispatcher.zep", 886))) { ZEPHIR_CALL_METHOD(&camelizedClass, this_ptr, "tocamelcase", NULL, 0, &handlerName); zephir_check_call_status(); } else { diff --git a/ext/phalcon/dispatcher/abstractdispatcher.zep.h b/ext/phalcon/dispatcher/abstractdispatcher.zep.h index b847c11fec1..42260688c4e 100644 --- a/ext/phalcon/dispatcher/abstractdispatcher.zep.h +++ b/ext/phalcon/dispatcher/abstractdispatcher.zep.h @@ -11,6 +11,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, getActionSuffix); PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, getActiveMethod); PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, getBoundModels); PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, getDefaultNamespace); +PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, getDI); PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, getEventsManager); PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, getHandlerSuffix); PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, getModelBinder); @@ -23,6 +24,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, isFinished); PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, setActionName); PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, setDefaultAction); PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, setDefaultNamespace); +PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, setDI); PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, getHandlerClass); PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, setParam); PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, setParams); @@ -88,6 +90,13 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_dispatcher_abstractdispa #endif ZEND_END_ARG_INFO() +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_dispatcher_abstractdispatcher_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_dispatcher_abstractdispatcher_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) +#endif +ZEND_END_ARG_INFO() + #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_dispatcher_abstractdispatcher_geteventsmanager, 0, 0, Phalcon\\Events\\ManagerInterface, 0) #else @@ -175,6 +184,10 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_dispatcher_abstractdispatcher_setdefaultn #endif ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_dispatcher_abstractdispatcher_setdi, 0, 0, 1) + ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) +ZEND_END_ARG_INFO() + #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_dispatcher_abstractdispatcher_gethandlerclass, 0, 0, IS_STRING, 0) #else @@ -268,6 +281,7 @@ ZEPHIR_INIT_FUNCS(phalcon_dispatcher_abstractdispatcher_method_entry) { PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, getActiveMethod, arginfo_phalcon_dispatcher_abstractdispatcher_getactivemethod, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, getBoundModels, arginfo_phalcon_dispatcher_abstractdispatcher_getboundmodels, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, getDefaultNamespace, arginfo_phalcon_dispatcher_abstractdispatcher_getdefaultnamespace, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, getDI, arginfo_phalcon_dispatcher_abstractdispatcher_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, getEventsManager, arginfo_phalcon_dispatcher_abstractdispatcher_geteventsmanager, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, getHandlerSuffix, arginfo_phalcon_dispatcher_abstractdispatcher_gethandlersuffix, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, getModelBinder, arginfo_phalcon_dispatcher_abstractdispatcher_getmodelbinder, ZEND_ACC_PUBLIC) @@ -280,6 +294,7 @@ ZEPHIR_INIT_FUNCS(phalcon_dispatcher_abstractdispatcher_method_entry) { PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, setActionName, arginfo_phalcon_dispatcher_abstractdispatcher_setactionname, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, setDefaultAction, arginfo_phalcon_dispatcher_abstractdispatcher_setdefaultaction, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, setDefaultNamespace, arginfo_phalcon_dispatcher_abstractdispatcher_setdefaultnamespace, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, setDI, arginfo_phalcon_dispatcher_abstractdispatcher_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, getHandlerClass, arginfo_phalcon_dispatcher_abstractdispatcher_gethandlerclass, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, setParam, arginfo_phalcon_dispatcher_abstractdispatcher_setparam, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, setParams, arginfo_phalcon_dispatcher_abstractdispatcher_setparams, ZEND_ACC_PUBLIC) diff --git a/ext/phalcon/flash/abstractflash.zep.c b/ext/phalcon/flash/abstractflash.zep.c index 8e6b9657842..529dd61157d 100644 --- a/ext/phalcon/flash/abstractflash.zep.c +++ b/ext/phalcon/flash/abstractflash.zep.c @@ -12,13 +12,13 @@ #include #include "kernel/main.h" -#include "kernel/object.h" -#include "kernel/memory.h" #include "kernel/array.h" +#include "kernel/memory.h" +#include "kernel/object.h" #include "kernel/fcall.h" #include "kernel/operators.h" -#include "kernel/exception.h" #include "ext/spl/spl_exceptions.h" +#include "kernel/exception.h" #include "kernel/concat.h" #include "kernel/string.h" @@ -42,7 +42,7 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Flash_AbstractFlash) { - ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Flash, AbstractFlash, phalcon, flash_abstractflash, phalcon_di_abstractinjectionaware_ce, phalcon_flash_abstractflash_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); + ZEPHIR_REGISTER_CLASS(Phalcon\\Flash, AbstractFlash, phalcon, flash_abstractflash, phalcon_flash_abstractflash_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); /** * @var bool @@ -64,9 +64,8 @@ ZEPHIR_INIT_CLASS(Phalcon_Flash_AbstractFlash) { */ zend_declare_property_string(phalcon_flash_abstractflash_ce, SL("customTemplate"), "", ZEND_ACC_PROTECTED TSRMLS_CC); - /** - * @var EscaperInterface | null - */ + zend_declare_property_null(phalcon_flash_abstractflash_ce, SL("container"), ZEND_ACC_PROTECTED TSRMLS_CC); + zend_declare_property_null(phalcon_flash_abstractflash_ce, SL("escaperService"), ZEND_ACC_PROTECTED TSRMLS_CC); /** @@ -74,14 +73,12 @@ ZEPHIR_INIT_CLASS(Phalcon_Flash_AbstractFlash) { */ zend_declare_property_bool(phalcon_flash_abstractflash_ce, SL("implicitFlush"), 1, ZEND_ACC_PROTECTED TSRMLS_CC); - /** - * @var array - */ zend_declare_property_null(phalcon_flash_abstractflash_ce, SL("messages"), ZEND_ACC_PROTECTED TSRMLS_CC); phalcon_flash_abstractflash_ce->create_object = zephir_init_properties_Phalcon_Flash_AbstractFlash; zend_class_implements(phalcon_flash_abstractflash_ce TSRMLS_CC, 1, phalcon_flash_flashinterface_ce); + zend_class_implements(phalcon_flash_abstractflash_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); return SUCCESS; } @@ -91,32 +88,35 @@ ZEPHIR_INIT_CLASS(Phalcon_Flash_AbstractFlash) { */ PHP_METHOD(Phalcon_Flash_AbstractFlash, __construct) { - zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *escaper = NULL, escaper_sub, __$null; + zval *cssClasses = NULL, cssClasses_sub, __$null, _0$$3; zval *this_ptr = getThis(); - ZVAL_UNDEF(&escaper_sub); + ZVAL_UNDEF(&cssClasses_sub); ZVAL_NULL(&__$null); - ZVAL_UNDEF(&_0); + ZVAL_UNDEF(&_0$$3); ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 0, 1, &escaper); + zephir_fetch_params(1, 0, 1, &cssClasses); - if (!escaper) { - escaper = &escaper_sub; - escaper = &__$null; + if (!cssClasses) { + cssClasses = &cssClasses_sub; + ZEPHIR_CPY_WRT(cssClasses, &__$null); + } else { + ZEPHIR_SEPARATE_PARAM(cssClasses); } - zephir_update_property_zval(this_ptr, SL("escaperService"), escaper); - ZEPHIR_INIT_VAR(&_0); - zephir_create_array(&_0, 4, 0 TSRMLS_CC); - add_assoc_stringl_ex(&_0, SL("error"), SL("errorMessage")); - add_assoc_stringl_ex(&_0, SL("notice"), SL("noticeMessage")); - add_assoc_stringl_ex(&_0, SL("success"), SL("successMessage")); - add_assoc_stringl_ex(&_0, SL("warning"), SL("warningMessage")); - zephir_update_property_zval(this_ptr, SL("cssClasses"), &_0); + if (Z_TYPE_P(cssClasses) != IS_ARRAY) { + ZEPHIR_INIT_VAR(&_0$$3); + zephir_create_array(&_0$$3, 4, 0 TSRMLS_CC); + add_assoc_stringl_ex(&_0$$3, SL("error"), SL("errorMessage")); + add_assoc_stringl_ex(&_0$$3, SL("notice"), SL("noticeMessage")); + add_assoc_stringl_ex(&_0$$3, SL("success"), SL("successMessage")); + add_assoc_stringl_ex(&_0$$3, SL("warning"), SL("warningMessage")); + ZEPHIR_CPY_WRT(cssClasses, &_0$$3); + } + zephir_update_property_zval(this_ptr, SL("cssClasses"), cssClasses); ZEPHIR_MM_RESTORE(); } @@ -197,75 +197,62 @@ PHP_METHOD(Phalcon_Flash_AbstractFlash, getCustomTemplate) { } +/** + * Returns the internal dependency injector + */ +PHP_METHOD(Phalcon_Flash_AbstractFlash, getDI) { + + zval di; + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; + zend_long ZEPHIR_LAST_CALL_STATUS; + zephir_fcall_cache_entry *_0 = NULL; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&di); + + ZEPHIR_MM_GROW(); + + ZEPHIR_OBS_VAR(&di); + zephir_read_property(&di, this_ptr, SL("container"), PH_NOISY_CC); + if (Z_TYPE_P(&di) != IS_OBJECT) { + ZEPHIR_CALL_CE_STATIC(&di, phalcon_di_ce, "getdefault", &_0, 0); + zephir_check_call_status(); + } + RETURN_CCTOR(&di); + +} + /** * Returns the Escaper Service */ PHP_METHOD(Phalcon_Flash_AbstractFlash, getEscaperService) { - zval container, _0, _1, _6, _7, _2$$4, _3$$4, _5$$4, _8$$5, _9$$5, _10$$6, _11$$6, _12$$6; + zval escaper, container, _0$$3, _1$$3; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; - zephir_fcall_cache_entry *_4 = NULL; zval *this_ptr = getThis(); + ZVAL_UNDEF(&escaper); ZVAL_UNDEF(&container); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&_6); - ZVAL_UNDEF(&_7); - ZVAL_UNDEF(&_2$$4); - ZVAL_UNDEF(&_3$$4); - ZVAL_UNDEF(&_5$$4); - ZVAL_UNDEF(&_8$$5); - ZVAL_UNDEF(&_9$$5); - ZVAL_UNDEF(&_10$$6); - ZVAL_UNDEF(&_11$$6); - ZVAL_UNDEF(&_12$$6); + ZVAL_UNDEF(&_0$$3); + ZVAL_UNDEF(&_1$$3); ZEPHIR_MM_GROW(); - zephir_read_property(&_0, this_ptr, SL("escaperService"), PH_NOISY_CC | PH_READONLY); - if (zephir_is_true(&_0)) { - RETURN_MM_MEMBER(getThis(), "escaperService"); - } - zephir_read_property(&_1, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CPY_WRT(&container, &_1); - if (UNEXPECTED(Z_TYPE_P(&container) != IS_OBJECT)) { - ZEPHIR_INIT_VAR(&_2$$4); - object_init_ex(&_2$$4, phalcon_flash_exception_ce); - ZEPHIR_INIT_VAR(&_5$$4); - ZVAL_STRING(&_5$$4, "the 'escaper' service"); - ZEPHIR_CALL_CE_STATIC(&_3$$4, phalcon_flash_exception_ce, "containerservicenotfound", &_4, 0, &_5$$4); + ZEPHIR_OBS_VAR(&escaper); + zephir_read_property(&escaper, this_ptr, SL("escaperService"), PH_NOISY_CC); + if (Z_TYPE_P(&escaper) != IS_OBJECT) { + ZEPHIR_CALL_METHOD(&_0$$3, this_ptr, "getdi", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 5, &_3$$4); + ZEPHIR_CPY_WRT(&container, &_0$$3); + ZEPHIR_INIT_VAR(&_1$$3); + ZVAL_STRING(&_1$$3, "escaper"); + ZEPHIR_CALL_METHOD(&_0$$3, &container, "getshared", NULL, 0, &_1$$3); zephir_check_call_status(); - zephir_throw_exception_debug(&_2$$4, "phalcon/Flash/AbstractFlash.zep", 131 TSRMLS_CC); - ZEPHIR_MM_RESTORE(); - return; - } - ZEPHIR_INIT_VAR(&_7); - ZVAL_STRING(&_7, "escaper"); - ZEPHIR_CALL_METHOD(&_6, &container, "has", NULL, 0, &_7); - zephir_check_call_status(); - if (UNEXPECTED(zephir_is_true(&_6))) { - ZEPHIR_INIT_VAR(&_9$$5); - ZVAL_STRING(&_9$$5, "escaper"); - ZEPHIR_CALL_METHOD(&_8$$5, &container, "getshared", NULL, 0, &_9$$5); - zephir_check_call_status(); - RETURN_CCTOR(&_8$$5); - } else { - ZEPHIR_INIT_VAR(&_10$$6); - object_init_ex(&_10$$6, phalcon_flash_exception_ce); - ZEPHIR_INIT_VAR(&_12$$6); - ZVAL_STRING(&_12$$6, "the 'escaper' service"); - ZEPHIR_CALL_CE_STATIC(&_11$$6, phalcon_flash_exception_ce, "containerservicenotfound", &_4, 0, &_12$$6); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_10$$6, "__construct", NULL, 5, &_11$$6); - zephir_check_call_status(); - zephir_throw_exception_debug(&_10$$6, "phalcon/Flash/AbstractFlash.zep", 139 TSRMLS_CC); - ZEPHIR_MM_RESTORE(); - return; + ZEPHIR_CPY_WRT(&escaper, &_0$$3); + zephir_update_property_zval(this_ptr, SL("escaperService"), &escaper); } + RETURN_CCTOR(&escaper); } @@ -408,6 +395,25 @@ PHP_METHOD(Phalcon_Flash_AbstractFlash, setCustomTemplate) { } +/** + * Sets the dependency injector + */ +PHP_METHOD(Phalcon_Flash_AbstractFlash, setDI) { + + zval *container, container_sub; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&container_sub); + + zephir_fetch_params_without_memory_grow(1, 0, &container); + + + + zephir_update_property_zval(this_ptr, SL("container"), container); + RETURN_THISW(); + +} + /** * Sets the Escaper Service */ @@ -529,7 +535,7 @@ PHP_METHOD(Phalcon_Flash_AbstractFlash, outputMessage) { ZEPHIR_INIT_VAR(&content); ZVAL_STRING(&content, ""); } - zephir_is_iterable(message, 0, "phalcon/Flash/AbstractFlash.zep", 279); + zephir_is_iterable(message, 0, "phalcon/Flash/AbstractFlash.zep", 294); if (Z_TYPE_P(message) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(message), _1$$3) { diff --git a/ext/phalcon/flash/abstractflash.zep.h b/ext/phalcon/flash/abstractflash.zep.h index 999cc62195a..0366dc9f588 100644 --- a/ext/phalcon/flash/abstractflash.zep.h +++ b/ext/phalcon/flash/abstractflash.zep.h @@ -8,12 +8,14 @@ PHP_METHOD(Phalcon_Flash_AbstractFlash, clear); PHP_METHOD(Phalcon_Flash_AbstractFlash, error); PHP_METHOD(Phalcon_Flash_AbstractFlash, getAutoescape); PHP_METHOD(Phalcon_Flash_AbstractFlash, getCustomTemplate); +PHP_METHOD(Phalcon_Flash_AbstractFlash, getDI); PHP_METHOD(Phalcon_Flash_AbstractFlash, getEscaperService); PHP_METHOD(Phalcon_Flash_AbstractFlash, notice); PHP_METHOD(Phalcon_Flash_AbstractFlash, setAutoescape); PHP_METHOD(Phalcon_Flash_AbstractFlash, setAutomaticHtml); PHP_METHOD(Phalcon_Flash_AbstractFlash, setCssClasses); PHP_METHOD(Phalcon_Flash_AbstractFlash, setCustomTemplate); +PHP_METHOD(Phalcon_Flash_AbstractFlash, setDI); PHP_METHOD(Phalcon_Flash_AbstractFlash, setEscaperService); PHP_METHOD(Phalcon_Flash_AbstractFlash, setImplicitFlush); PHP_METHOD(Phalcon_Flash_AbstractFlash, success); @@ -25,7 +27,7 @@ PHP_METHOD(Phalcon_Flash_AbstractFlash, prepareHtmlMessage); zend_object *zephir_init_properties_Phalcon_Flash_AbstractFlash(zend_class_entry *class_type TSRMLS_DC); ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_flash_abstractflash___construct, 0, 0, 0) - ZEND_ARG_OBJ_INFO(0, escaper, Phalcon\\Escaper\\EscaperInterface, 1) + ZEND_ARG_INFO(0, cssClasses) ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 70200 @@ -54,6 +56,13 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_abstractflash_getc #endif ZEND_END_ARG_INFO() +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_flash_abstractflash_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_abstractflash_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) +#endif +ZEND_END_ARG_INFO() + #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_flash_abstractflash_getescaperservice, 0, 0, Phalcon\\Escaper\\EscaperInterface, 0) #else @@ -74,9 +83,9 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_abstractflash_noti ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_flash_abstractflash_setautoescape, 0, 1, Phalcon\\Flash\\FlashInterface, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_flash_abstractflash_setautoescape, 0, 1, Phalcon\\Flash\\Flash, 0) #else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_abstractflash_setautoescape, 0, 1, IS_OBJECT, "Phalcon\\Flash\\FlashInterface", 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_abstractflash_setautoescape, 0, 1, IS_OBJECT, "Phalcon\\Flash\\Flash", 0) #endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, autoescape, _IS_BOOL, 0) @@ -117,6 +126,14 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_abstractflash_setc #endif ZEND_END_ARG_INFO() +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_flash_abstractflash_setdi, 0, 1, Phalcon\\Flash\\FlashInterface, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_abstractflash_setdi, 0, 1, IS_OBJECT, "Phalcon\\Flash\\FlashInterface", 0) +#endif + ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) +ZEND_END_ARG_INFO() + #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_flash_abstractflash_setescaperservice, 0, 1, Phalcon\\Flash\\FlashInterface, 0) #else @@ -217,12 +234,14 @@ ZEPHIR_INIT_FUNCS(phalcon_flash_abstractflash_method_entry) { PHP_ME(Phalcon_Flash_AbstractFlash, error, arginfo_phalcon_flash_abstractflash_error, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, getAutoescape, arginfo_phalcon_flash_abstractflash_getautoescape, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, getCustomTemplate, arginfo_phalcon_flash_abstractflash_getcustomtemplate, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Flash_AbstractFlash, getDI, arginfo_phalcon_flash_abstractflash_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, getEscaperService, arginfo_phalcon_flash_abstractflash_getescaperservice, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, notice, arginfo_phalcon_flash_abstractflash_notice, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, setAutoescape, arginfo_phalcon_flash_abstractflash_setautoescape, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, setAutomaticHtml, arginfo_phalcon_flash_abstractflash_setautomatichtml, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, setCssClasses, arginfo_phalcon_flash_abstractflash_setcssclasses, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, setCustomTemplate, arginfo_phalcon_flash_abstractflash_setcustomtemplate, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Flash_AbstractFlash, setDI, arginfo_phalcon_flash_abstractflash_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, setEscaperService, arginfo_phalcon_flash_abstractflash_setescaperservice, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, setImplicitFlush, arginfo_phalcon_flash_abstractflash_setimplicitflush, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, success, arginfo_phalcon_flash_abstractflash_success, ZEND_ACC_PUBLIC) diff --git a/ext/phalcon/flash/direct.zep.h b/ext/phalcon/flash/direct.zep.h index 5a1be1d1e6d..7dea27806f4 100644 --- a/ext/phalcon/flash/direct.zep.h +++ b/ext/phalcon/flash/direct.zep.h @@ -7,9 +7,9 @@ PHP_METHOD(Phalcon_Flash_Direct, message); PHP_METHOD(Phalcon_Flash_Direct, output); #if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_direct_message, 0, 2, IS_STRING, 1) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_direct_message, 0, 2, IS_STRING, 0) #else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_direct_message, 0, 2, IS_STRING, NULL, 1) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_direct_message, 0, 2, IS_STRING, NULL, 0) #endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, type, IS_STRING, 0) diff --git a/ext/phalcon/flash/flashinterface.zep.h b/ext/phalcon/flash/flashinterface.zep.h index c33a6601d81..251dce6193e 100644 --- a/ext/phalcon/flash/flashinterface.zep.h +++ b/ext/phalcon/flash/flashinterface.zep.h @@ -15,11 +15,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_flashinterface_err #endif ZEND_END_ARG_INFO() -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_flashinterface_message, 0, 2, IS_STRING, 1) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_flashinterface_message, 0, 2, IS_STRING, NULL, 1) -#endif +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_flash_flashinterface_message, 0, 0, 2) #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, type, IS_STRING, 0) #else diff --git a/ext/phalcon/flash/session.zep.c b/ext/phalcon/flash/session.zep.c index d98fef6e402..f14658a0899 100644 --- a/ext/phalcon/flash/session.zep.c +++ b/ext/phalcon/flash/session.zep.c @@ -174,7 +174,7 @@ PHP_METHOD(Phalcon_Flash_Session, message) { zephir_array_update_multi(&messages, &message TSRMLS_CC, SL("za"), 2, &type); ZEPHIR_CALL_METHOD(NULL, this_ptr, "setsessionmessages", NULL, 0, &messages); zephir_check_call_status(); - RETURN_MM_NULL(); + ZEPHIR_MM_RESTORE(); } @@ -215,7 +215,7 @@ PHP_METHOD(Phalcon_Flash_Session, output) { } ZEPHIR_CALL_METHOD(&messages, this_ptr, "getsessionmessages", NULL, 0, &_0); zephir_check_call_status(); - zephir_is_iterable(&messages, 0, "phalcon/Flash/Session.zep", 90); + zephir_is_iterable(&messages, 0, "phalcon/Flash/Session.zep", 88); if (Z_TYPE_P(&messages) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&messages), _3, _4, _1) { diff --git a/ext/phalcon/flash/session.zep.h b/ext/phalcon/flash/session.zep.h index 20db2c8ab8b..ce45ab059d1 100644 --- a/ext/phalcon/flash/session.zep.h +++ b/ext/phalcon/flash/session.zep.h @@ -32,11 +32,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_session_has, 0, 0, ZEND_ARG_INFO(0, type) ZEND_END_ARG_INFO() -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_session_message, 0, 2, IS_STRING, 1) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_session_message, 0, 2, IS_STRING, NULL, 1) -#endif +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_flash_session_message, 0, 0, 2) #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, type, IS_STRING, 0) #else diff --git a/ext/phalcon/helper/fs.zep.c b/ext/phalcon/helper/fs.zep.c deleted file mode 100644 index 4cd8416661c..00000000000 --- a/ext/phalcon/helper/fs.zep.c +++ /dev/null @@ -1,136 +0,0 @@ - -#ifdef HAVE_CONFIG_H -#include "../../ext_config.h" -#endif - -#include -#include "../../php_ext.h" -#include "../../ext.h" - -#include -#include -#include - -#include "kernel/main.h" -#include "kernel/memory.h" -#include "kernel/string.h" -#include "kernel/operators.h" -#include "kernel/concat.h" -#include "kernel/fcall.h" -#include "kernel/array.h" -#include "ext/spl/spl_exceptions.h" -#include "kernel/exception.h" -#include "kernel/object.h" - - -/** - * This file is part of the Phalcon. - * - * (c) Phalcon Team - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -/** - * This class offers file operation helper - */ -ZEPHIR_INIT_CLASS(Phalcon_Helper_Fs) { - - ZEPHIR_REGISTER_CLASS(Phalcon\\Helper, Fs, phalcon, helper_fs, phalcon_helper_fs_method_entry, 0); - - return SUCCESS; - -} - -/** - * Gets the filename from a given path, Same as PHP's basename() but has non-ASCII support. - * PHP's basename() does not properly support streams or filenames beginning with a non-US-ASCII character. - * see https://bugs.php.net/bug.php?id=37738 - * - * @param string $uri - * @param string $suffix - * - * @return string - */ -PHP_METHOD(Phalcon_Helper_Fs, basename) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *uri_param = NULL, *suffix = NULL, suffix_sub, __$null, filename, matches, _0, _1, _2, _3, _4, _5, _6$$3, _7$$3, _8$$3, _9$$3; - zval uri; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&uri); - ZVAL_UNDEF(&suffix_sub); - ZVAL_NULL(&__$null); - ZVAL_UNDEF(&filename); - ZVAL_UNDEF(&matches); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&_2); - ZVAL_UNDEF(&_3); - ZVAL_UNDEF(&_4); - ZVAL_UNDEF(&_5); - ZVAL_UNDEF(&_6$$3); - ZVAL_UNDEF(&_7$$3); - ZVAL_UNDEF(&_8$$3); - ZVAL_UNDEF(&_9$$3); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &uri_param, &suffix); - - if (UNEXPECTED(Z_TYPE_P(uri_param) != IS_STRING && Z_TYPE_P(uri_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'uri' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(uri_param) == IS_STRING)) { - zephir_get_strval(&uri, uri_param); - } else { - ZEPHIR_INIT_VAR(&uri); - ZVAL_EMPTY_STRING(&uri); - } - if (!suffix) { - suffix = &suffix_sub; - suffix = &__$null; - } - - - ZEPHIR_INIT_VAR(&_0); - ZEPHIR_INIT_VAR(&_1); - ZVAL_STRING(&_1, "/"); - zephir_fast_trim(&_0, &uri, &_1, ZEPHIR_TRIM_RIGHT TSRMLS_CC); - zephir_get_strval(&uri, &_0); - ZEPHIR_INIT_VAR(&_2); - ZVAL_STRING(&_2, "/"); - ZEPHIR_INIT_VAR(&_3); - ZVAL_STRING(&_3, "@"); - ZEPHIR_CALL_FUNCTION(&_4, "preg_quote", NULL, 258, &_2, &_3); - zephir_check_call_status(); - ZEPHIR_INIT_VAR(&_5); - ZEPHIR_CONCAT_SVS(&_5, "@[^", &_4, "]+$@"); - ZEPHIR_INIT_NVAR(&_2); - zephir_preg_match(&_2, &_5, &uri, &matches, 0, 0 , 0 TSRMLS_CC); - if (zephir_is_true(&_2)) { - ZEPHIR_OBS_VAR(&filename); - zephir_array_fetch_long(&filename, &matches, 0, PH_NOISY, "phalcon/Helper/Fs.zep", 36 TSRMLS_CC); - } else { - ZEPHIR_INIT_NVAR(&filename); - ZVAL_STRING(&filename, ""); - } - if (zephir_is_true(suffix)) { - ZEPHIR_INIT_VAR(&_6$$3); - ZVAL_STRING(&_6$$3, "@"); - ZEPHIR_CALL_FUNCTION(&_7$$3, "preg_quote", NULL, 258, suffix, &_6$$3); - zephir_check_call_status(); - ZEPHIR_INIT_VAR(&_8$$3); - ZEPHIR_CONCAT_SVS(&_8$$3, "@", &_7$$3, "$@"); - ZEPHIR_INIT_NVAR(&_6$$3); - ZVAL_STRING(&_6$$3, ""); - ZEPHIR_CALL_FUNCTION(&_9$$3, "preg_replace", NULL, 44, &_8$$3, &_6$$3, &filename); - zephir_check_call_status(); - ZEPHIR_CPY_WRT(&filename, &_9$$3); - } - RETURN_CCTOR(&filename); - -} - diff --git a/ext/phalcon/helper/fs.zep.h b/ext/phalcon/helper/fs.zep.h deleted file mode 100644 index a8d37ce62fa..00000000000 --- a/ext/phalcon/helper/fs.zep.h +++ /dev/null @@ -1,24 +0,0 @@ - -extern zend_class_entry *phalcon_helper_fs_ce; - -ZEPHIR_INIT_CLASS(Phalcon_Helper_Fs); - -PHP_METHOD(Phalcon_Helper_Fs, basename); - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_helper_fs_basename, 0, 1, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_helper_fs_basename, 0, 1, IS_STRING, NULL, 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, uri, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, uri) -#endif - ZEND_ARG_INFO(0, suffix) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(phalcon_helper_fs_method_entry) { - PHP_ME(Phalcon_Helper_Fs, basename, arginfo_phalcon_helper_fs_basename, ZEND_ACC_FINAL|ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_FE_END -}; diff --git a/ext/phalcon/helper/str.zep.c b/ext/phalcon/helper/str.zep.c index 798af9fda04..cc39afdc624 100644 --- a/ext/phalcon/helper/str.zep.c +++ b/ext/phalcon/helper/str.zep.c @@ -163,12 +163,12 @@ PHP_METHOD(Phalcon_Helper_Str, concat) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_helper_exception_ce, "concat needs at least three parameters", "phalcon/Helper/Str.zep", 80); return; } - ZEPHIR_CALL_CE_STATIC(&delimiter, phalcon_helper_arr_ce, "first", &_0, 259, &arguments); + ZEPHIR_CALL_CE_STATIC(&delimiter, phalcon_helper_arr_ce, "first", &_0, 258, &arguments); zephir_check_call_status(); - ZEPHIR_CALL_CE_STATIC(&_1, phalcon_helper_arr_ce, "sliceright", &_2, 260, &arguments); + ZEPHIR_CALL_CE_STATIC(&_1, phalcon_helper_arr_ce, "sliceright", &_2, 259, &arguments); zephir_check_call_status(); ZEPHIR_CPY_WRT(&arguments, &_1); - ZEPHIR_CALL_CE_STATIC(&first, phalcon_helper_arr_ce, "first", &_0, 259, &arguments); + ZEPHIR_CALL_CE_STATIC(&first, phalcon_helper_arr_ce, "first", &_0, 258, &arguments); zephir_check_call_status(); ZEPHIR_CALL_CE_STATIC(&last, phalcon_helper_arr_ce, "last", &_3, 123, &arguments); zephir_check_call_status(); @@ -178,12 +178,12 @@ PHP_METHOD(Phalcon_Helper_Str, concat) { ZVAL_STRING(&suffix, ""); ZEPHIR_INIT_VAR(&data); array_init(&data); - ZEPHIR_CALL_SELF(&_1, "startswith", &_4, 261, &first, &delimiter); + ZEPHIR_CALL_SELF(&_1, "startswith", &_4, 260, &first, &delimiter); zephir_check_call_status(); if (zephir_is_true(&_1)) { ZEPHIR_CPY_WRT(&prefix, &delimiter); } - ZEPHIR_CALL_SELF(&_5, "endswith", &_6, 262, &last, &delimiter); + ZEPHIR_CALL_SELF(&_5, "endswith", &_6, 261, &last, &delimiter); zephir_check_call_status(); if (zephir_is_true(&_5)) { ZEPHIR_CPY_WRT(&suffix, &delimiter); @@ -353,7 +353,7 @@ PHP_METHOD(Phalcon_Helper_Str, decapitalize) { } if (upperRest) { if ((zephir_function_exists_ex(SL("mb_strtoupper") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&suffix, "mb_strtoupper", NULL, 263, &substr, &encoding); + ZEPHIR_CALL_FUNCTION(&suffix, "mb_strtoupper", NULL, 262, &substr, &encoding); zephir_check_call_status(); } else { ZEPHIR_CALL_METHOD(&suffix, &substr, "upper", NULL, 0); @@ -636,24 +636,24 @@ PHP_METHOD(Phalcon_Helper_Str, dynamic) { } - ZEPHIR_CALL_FUNCTION(&_0, "substr_count", NULL, 264, &text, &leftDelimiter); + ZEPHIR_CALL_FUNCTION(&_0, "substr_count", NULL, 263, &text, &leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "substr_count", NULL, 264, &text, &rightDelimiter); + ZEPHIR_CALL_FUNCTION(&_1, "substr_count", NULL, 263, &text, &rightDelimiter); zephir_check_call_status(); if (UNEXPECTED(!ZEPHIR_IS_IDENTICAL(&_0, &_1))) { ZEPHIR_INIT_VAR(&_2$$3); object_init_ex(&_2$$3, spl_ce_RuntimeException); ZEPHIR_INIT_VAR(&_3$$3); ZEPHIR_CONCAT_SVS(&_3$$3, "Syntax error in string \"", &text, "\""); - ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 265, &_3$$3); + ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 264, &_3$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_2$$3, "phalcon/Helper/Str.zep", 256 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", NULL, 258, &leftDelimiter); + ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", NULL, 265, &leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", NULL, 258, &rightDelimiter); + ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", NULL, 265, &rightDelimiter); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_4); ZEPHIR_CONCAT_SVSVVSVS(&_4, "/", &ldS, "([^", &ldS, &rdS, "]+)", &rdS, "/"); @@ -687,7 +687,7 @@ PHP_METHOD(Phalcon_Helper_Str, dynamic) { zephir_check_call_status(); zephir_array_fetch(&word, &words, &_10$$6, PH_NOISY, "phalcon/Helper/Str.zep", 275 TSRMLS_CC); zephir_array_fetch_long(&_12$$6, &match, 0, PH_NOISY | PH_READONLY, "phalcon/Helper/Str.zep", 276 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&sub, "preg_quote", NULL, 258, &_12$$6, &separator); + ZEPHIR_CALL_FUNCTION(&sub, "preg_quote", NULL, 265, &_12$$6, &separator); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_13$$6); ZEPHIR_CONCAT_SVS(&_13$$6, "/", &sub, "/"); @@ -722,7 +722,7 @@ PHP_METHOD(Phalcon_Helper_Str, dynamic) { zephir_check_call_status(); zephir_array_fetch(&word, &words, &_19$$8, PH_NOISY, "phalcon/Helper/Str.zep", 275 TSRMLS_CC); zephir_array_fetch_long(&_20$$8, &match, 0, PH_NOISY | PH_READONLY, "phalcon/Helper/Str.zep", 276 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&sub, "preg_quote", NULL, 258, &_20$$8, &separator); + ZEPHIR_CALL_FUNCTION(&sub, "preg_quote", NULL, 265, &_20$$8, &separator); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_21$$8); ZEPHIR_CONCAT_SVS(&_21$$8, "/", &sub, "/"); @@ -1256,7 +1256,7 @@ PHP_METHOD(Phalcon_Helper_Str, isUpper) { if ((zephir_function_exists_ex(SL("mb_strtoupper") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&_0$$3, "mb_strtoupper", NULL, 263, &text, &encoding); + ZEPHIR_CALL_FUNCTION(&_0$$3, "mb_strtoupper", NULL, 262, &text, &encoding); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_IDENTICAL(&text, &_0$$3)); } else { @@ -1769,7 +1769,7 @@ PHP_METHOD(Phalcon_Helper_Str, upper) { if ((zephir_function_exists_ex(SL("mb_strtoupper") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 263, &text, &encoding); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 262, &text, &encoding); zephir_check_call_status(); RETURN_MM(); } diff --git a/ext/phalcon/html/tag.zep.c b/ext/phalcon/html/tag.zep.c index 9f3ccde0925..267806399aa 100644 --- a/ext/phalcon/html/tag.zep.c +++ b/ext/phalcon/html/tag.zep.c @@ -40,7 +40,12 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Html_Tag) { - ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Html, Tag, phalcon, html_tag, phalcon_di_abstractinjectionaware_ce, phalcon_html_tag_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Phalcon\\Html, Tag, phalcon, html_tag, phalcon_html_tag_method_entry, 0); + + /** + * @var DiInterface + */ + zend_declare_property_null(phalcon_html_tag_ce, SL("container"), ZEND_ACC_PROTECTED TSRMLS_CC); /** * @var array @@ -108,6 +113,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Html_Tag) { zephir_declare_class_constant_long(phalcon_html_tag_ce, SL("XHTML5"), 11); + zend_class_implements(phalcon_html_tag_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); return SUCCESS; } @@ -694,7 +700,7 @@ PHP_METHOD(Phalcon_Html_Tag, friendlyTitle) { _10$$4 = Z_TYPE_P(&replace) != IS_STRING; } if (UNEXPECTED(_10$$4)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "Parameter replace must be an array or a string", "phalcon/Html/Tag.zep", 335); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "Parameter replace must be an array or a string", "phalcon/Html/Tag.zep", 340); return; } if (Z_TYPE_P(&replace) == IS_STRING) { @@ -748,6 +754,18 @@ PHP_METHOD(Phalcon_Html_Tag, friendlyTitle) { } +/** + * Returns the internal dependency injector + */ +PHP_METHOD(Phalcon_Html_Tag, getDI) { + + zval *this_ptr = getThis(); + + + RETURN_MEMBER(getThis(), "container"); + +} + /** * Get the document type declaration of content. If the docType has not * been set properly, XHTML5 is returned @@ -950,7 +968,7 @@ PHP_METHOD(Phalcon_Html_Tag, getTitle) { if (!(ZEPHIR_IS_EMPTY(&prependTitle))) { ZEPHIR_CALL_FUNCTION(&prependArray$$4, "array_reverse", NULL, 280, &prependTitle); zephir_check_call_status(); - zephir_is_iterable(&prependArray$$4, 0, "phalcon/Html/Tag.zep", 467); + zephir_is_iterable(&prependArray$$4, 0, "phalcon/Html/Tag.zep", 480); if (Z_TYPE_P(&prependArray$$4) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&prependArray$$4), _3$$4) { @@ -958,7 +976,7 @@ PHP_METHOD(Phalcon_Html_Tag, getTitle) { ZVAL_COPY(&item, _3$$4); ZEPHIR_CALL_METHOD(&_5$$5, &escaper, "escapehtml", &_6, 0, &item); zephir_check_call_status(); - zephir_array_append(&items, &_5$$5, PH_SEPARATE, "phalcon/Html/Tag.zep", 465); + zephir_array_append(&items, &_5$$5, PH_SEPARATE, "phalcon/Html/Tag.zep", 478); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &prependArray$$4, "rewind", NULL, 0); @@ -973,7 +991,7 @@ PHP_METHOD(Phalcon_Html_Tag, getTitle) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_7$$6, &escaper, "escapehtml", &_8, 0, &item); zephir_check_call_status(); - zephir_array_append(&items, &_7$$6, PH_SEPARATE, "phalcon/Html/Tag.zep", 465); + zephir_array_append(&items, &_7$$6, PH_SEPARATE, "phalcon/Html/Tag.zep", 478); ZEPHIR_CALL_METHOD(NULL, &prependArray$$4, "next", NULL, 0); zephir_check_call_status(); } @@ -982,13 +1000,13 @@ PHP_METHOD(Phalcon_Html_Tag, getTitle) { } } if (!(ZEPHIR_IS_EMPTY(&title))) { - zephir_array_append(&items, &title, PH_SEPARATE, "phalcon/Html/Tag.zep", 471); + zephir_array_append(&items, &title, PH_SEPARATE, "phalcon/Html/Tag.zep", 484); } if (append) { ZEPHIR_OBS_VAR(&appendTitle); zephir_read_property(&appendTitle, this_ptr, SL("append"), PH_NOISY_CC); if (!(ZEPHIR_IS_EMPTY(&appendTitle))) { - zephir_is_iterable(&appendTitle, 0, "phalcon/Html/Tag.zep", 481); + zephir_is_iterable(&appendTitle, 0, "phalcon/Html/Tag.zep", 494); if (Z_TYPE_P(&appendTitle) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&appendTitle), _9$$9) { @@ -996,7 +1014,7 @@ PHP_METHOD(Phalcon_Html_Tag, getTitle) { ZVAL_COPY(&item, _9$$9); ZEPHIR_CALL_METHOD(&_11$$10, &escaper, "escapehtml", &_12, 0, &item); zephir_check_call_status(); - zephir_array_append(&items, &_11$$10, PH_SEPARATE, "phalcon/Html/Tag.zep", 479); + zephir_array_append(&items, &_11$$10, PH_SEPARATE, "phalcon/Html/Tag.zep", 492); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &appendTitle, "rewind", NULL, 0); @@ -1011,7 +1029,7 @@ PHP_METHOD(Phalcon_Html_Tag, getTitle) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_13$$11, &escaper, "escapehtml", &_14, 0, &item); zephir_check_call_status(); - zephir_array_append(&items, &_13$$11, PH_SEPARATE, "phalcon/Html/Tag.zep", 479); + zephir_array_append(&items, &_13$$11, PH_SEPARATE, "phalcon/Html/Tag.zep", 492); ZEPHIR_CALL_METHOD(NULL, &appendTitle, "next", NULL, 0); zephir_check_call_status(); } @@ -2416,7 +2434,7 @@ PHP_METHOD(Phalcon_Html_Tag, javascript) { zephir_read_property(&_3, this_ptr, SL("docType"), PH_NOISY_CC | PH_READONLY); _7 = ZEPHIR_GE_LONG(&_3, 5); if (_7) { - zephir_array_fetch_string(&_8, ¶meters, SL("type"), PH_NOISY | PH_READONLY, "phalcon/Html/Tag.zep", 1005 TSRMLS_CC); + zephir_array_fetch_string(&_8, ¶meters, SL("type"), PH_NOISY | PH_READONLY, "phalcon/Html/Tag.zep", 1018 TSRMLS_CC); ZEPHIR_SINIT_VAR(_9); ZVAL_STRING(&_9, "text/javascript"); _7 = ZEPHIR_IS_EQUAL(&_9, &_8); @@ -2849,7 +2867,7 @@ PHP_METHOD(Phalcon_Html_Tag, select) { _4 = !ZEPHIR_IS_STRING_IDENTICAL(data, "object"); } if (UNEXPECTED(_4)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "The dataset must be either an array or a ResultsetInterface", "phalcon/Html/Tag.zep", 1204); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "The dataset must be either an array or a ResultsetInterface", "phalcon/Html/Tag.zep", 1217); return; } if (Z_TYPE_P(data) == IS_OBJECT) { @@ -2866,7 +2884,7 @@ PHP_METHOD(Phalcon_Html_Tag, select) { if (_7$$4) { zephir_array_unset_string(¶meters, SL("using"), PH_SEPARATE); } else { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "The 'using' parameter is not a valid array", "phalcon/Html/Tag.zep", 1222); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "The 'using' parameter is not a valid array", "phalcon/Html/Tag.zep", 1235); return; } } @@ -2925,7 +2943,7 @@ PHP_METHOD(Phalcon_Html_Tag, select) { zephir_check_call_status(); zephir_concat_self(&output, &_15$$11 TSRMLS_CC); } else { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "Invalid data provided to SELECT helper", "phalcon/Html/Tag.zep", 1263); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "Invalid data provided to SELECT helper", "phalcon/Html/Tag.zep", 1276); return; } zephir_concat_self_str(&output, SL("") TSRMLS_CC); @@ -2980,7 +2998,7 @@ PHP_METHOD(Phalcon_Html_Tag, setAttribute) { _0$$3 = Z_TYPE_P(value) == IS_OBJECT; } if (UNEXPECTED(_0$$3)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "Only scalar values can be assigned to UI components", "phalcon/Html/Tag.zep", 1292); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "Only scalar values can be assigned to UI components", "phalcon/Html/Tag.zep", 1305); return; } } @@ -3043,6 +3061,24 @@ PHP_METHOD(Phalcon_Html_Tag, setAttributes) { } +/** + * Sets the dependency injector + */ +PHP_METHOD(Phalcon_Html_Tag, setDI) { + + zval *container, container_sub; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&container_sub); + + zephir_fetch_params_without_memory_grow(1, 0, &container); + + + + zephir_update_property_zval(this_ptr, SL("container"), container); + +} + /** * Set the document type of content */ @@ -3381,10 +3417,10 @@ PHP_METHOD(Phalcon_Html_Tag, textArea) { zephir_array_update_string(¶meters, SL("name"), &_3, PH_COPY | PH_SEPARATE); if (zephir_array_isset_string(¶meters, SL("value"))) { ZEPHIR_OBS_VAR(&content); - zephir_array_fetch_string(&content, ¶meters, SL("value"), PH_NOISY, "phalcon/Html/Tag.zep", 1488 TSRMLS_CC); + zephir_array_fetch_string(&content, ¶meters, SL("value"), PH_NOISY, "phalcon/Html/Tag.zep", 1509 TSRMLS_CC); zephir_array_unset_string(¶meters, SL("value"), PH_SEPARATE); } else { - zephir_array_fetch_string(&_4$$4, ¶meters, SL("id"), PH_NOISY | PH_READONLY, "phalcon/Html/Tag.zep", 1492 TSRMLS_CC); + zephir_array_fetch_string(&_4$$4, ¶meters, SL("id"), PH_NOISY | PH_READONLY, "phalcon/Html/Tag.zep", 1513 TSRMLS_CC); ZEPHIR_CALL_METHOD(&content, this_ptr, "getvalue", NULL, 0, &_4$$4, ¶meters); zephir_check_call_status(); } @@ -3450,7 +3486,7 @@ PHP_METHOD(Phalcon_Html_Tag, getService) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_1$$6, "__construct", NULL, 5, &_2$$6); zephir_check_call_status(); - zephir_throw_exception_debug(&_1$$6, "phalcon/Html/Tag.zep", 1523 TSRMLS_CC); + zephir_throw_exception_debug(&_1$$6, "phalcon/Html/Tag.zep", 1544 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3549,7 +3585,7 @@ PHP_METHOD(Phalcon_Html_Tag, renderAttributes) { zephir_check_call_status(); zephir_array_unset_string(&attrs, SL("escape"), PH_SEPARATE); ZEPHIR_CPY_WRT(&newCode, &code); - zephir_is_iterable(&attrs, 0, "phalcon/Html/Tag.zep", 1584); + zephir_is_iterable(&attrs, 0, "phalcon/Html/Tag.zep", 1605); if (Z_TYPE_P(&attrs) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&attrs), _3, _4, _1) { @@ -3579,7 +3615,7 @@ PHP_METHOD(Phalcon_Html_Tag, renderAttributes) { ZEPHIR_CONCAT_SVSVS(&_9$$5, "Value at index: '", &key, "' type: '", &_8$$5, "' cannot be rendered"); ZEPHIR_CALL_METHOD(NULL, &_7$$5, "__construct", &_10, 5, &_9$$5); zephir_check_call_status(); - zephir_throw_exception_debug(&_7$$5, "phalcon/Html/Tag.zep", 1571 TSRMLS_CC); + zephir_throw_exception_debug(&_7$$5, "phalcon/Html/Tag.zep", 1592 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3625,7 +3661,7 @@ PHP_METHOD(Phalcon_Html_Tag, renderAttributes) { ZEPHIR_CONCAT_SVSVS(&_17$$10, "Value at index: '", &key, "' type: '", &_16$$10, "' cannot be rendered"); ZEPHIR_CALL_METHOD(NULL, &_15$$10, "__construct", &_10, 5, &_17$$10); zephir_check_call_status(); - zephir_throw_exception_debug(&_15$$10, "phalcon/Html/Tag.zep", 1571 TSRMLS_CC); + zephir_throw_exception_debug(&_15$$10, "phalcon/Html/Tag.zep", 1592 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3886,7 +3922,7 @@ PHP_METHOD(Phalcon_Html_Tag, renderSelectArray) { ZEPHIR_INIT_VAR(&output); ZVAL_STRING(&output, ""); - zephir_is_iterable(&options, 0, "phalcon/Html/Tag.zep", 1715); + zephir_is_iterable(&options, 0, "phalcon/Html/Tag.zep", 1736); if (Z_TYPE_P(&options) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&options), _2, _3, _0) { @@ -4054,9 +4090,9 @@ PHP_METHOD(Phalcon_Html_Tag, renderSelectResultset) { ZVAL_STRING(&output, ""); if (Z_TYPE_P(using) == IS_ARRAY) { ZEPHIR_OBS_VAR(&optionValue); - zephir_array_fetch_long(&optionValue, using, 0, PH_NOISY, "phalcon/Html/Tag.zep", 1735 TSRMLS_CC); + zephir_array_fetch_long(&optionValue, using, 0, PH_NOISY, "phalcon/Html/Tag.zep", 1756 TSRMLS_CC); ZEPHIR_OBS_VAR(&optionText); - zephir_array_fetch_long(&optionText, using, 1, PH_NOISY, "phalcon/Html/Tag.zep", 1736 TSRMLS_CC); + zephir_array_fetch_long(&optionText, using, 1, PH_NOISY, "phalcon/Html/Tag.zep", 1757 TSRMLS_CC); } _1 = zephir_get_iterator(resultset TSRMLS_CC); _1->funcs->rewind(_1 TSRMLS_CC); @@ -4081,12 +4117,12 @@ PHP_METHOD(Phalcon_Html_Tag, renderSelectResultset) { } } else { if (UNEXPECTED(Z_TYPE_P(&option) != IS_ARRAY)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "Resultset returned an invalid value", "phalcon/Html/Tag.zep", 1754); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "Resultset returned an invalid value", "phalcon/Html/Tag.zep", 1775); return; } - zephir_array_fetch(&_4$$9, &option, &optionValue, PH_NOISY | PH_READONLY, "phalcon/Html/Tag.zep", 1757 TSRMLS_CC); + zephir_array_fetch(&_4$$9, &option, &optionValue, PH_NOISY | PH_READONLY, "phalcon/Html/Tag.zep", 1778 TSRMLS_CC); ZEPHIR_CPY_WRT(&optionValue, &_4$$9); - zephir_array_fetch(&_4$$9, &option, &optionText, PH_NOISY | PH_READONLY, "phalcon/Html/Tag.zep", 1758 TSRMLS_CC); + zephir_array_fetch(&_4$$9, &option, &optionText, PH_NOISY | PH_READONLY, "phalcon/Html/Tag.zep", 1779 TSRMLS_CC); ZEPHIR_CPY_WRT(&optionText, &_4$$9); } ZEPHIR_CALL_METHOD(&_5$$5, &escaper, "escapehtmlattr", &_6, 0, &optionValue); diff --git a/ext/phalcon/html/tag.zep.h b/ext/phalcon/html/tag.zep.h index d3c09526d03..95c0a8e60f2 100644 --- a/ext/phalcon/html/tag.zep.h +++ b/ext/phalcon/html/tag.zep.h @@ -12,6 +12,7 @@ PHP_METHOD(Phalcon_Html_Tag, elementClose); PHP_METHOD(Phalcon_Html_Tag, endForm); PHP_METHOD(Phalcon_Html_Tag, form); PHP_METHOD(Phalcon_Html_Tag, friendlyTitle); +PHP_METHOD(Phalcon_Html_Tag, getDI); PHP_METHOD(Phalcon_Html_Tag, getDocType); PHP_METHOD(Phalcon_Html_Tag, getTitle); PHP_METHOD(Phalcon_Html_Tag, getTitleSeparator); @@ -46,6 +47,7 @@ PHP_METHOD(Phalcon_Html_Tag, reset); PHP_METHOD(Phalcon_Html_Tag, select); PHP_METHOD(Phalcon_Html_Tag, setAttribute); PHP_METHOD(Phalcon_Html_Tag, setAttributes); +PHP_METHOD(Phalcon_Html_Tag, setDI); PHP_METHOD(Phalcon_Html_Tag, setDocType); PHP_METHOD(Phalcon_Html_Tag, setTitle); PHP_METHOD(Phalcon_Html_Tag, setTitleSeparator); @@ -151,6 +153,13 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_html_tag_friendlytitle, ZEND_ARG_ARRAY_INFO(0, parameters, 0) ZEND_END_ARG_INFO() +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_html_tag_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_html_tag_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) +#endif +ZEND_END_ARG_INFO() + #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_html_tag_getdoctype, 0, 0, IS_STRING, 0) #else @@ -585,6 +594,10 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_html_tag_setattributes, #endif ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_html_tag_setdi, 0, 0, 1) + ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) +ZEND_END_ARG_INFO() + #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_html_tag_setdoctype, 0, 1, Phalcon\\Html\\Tag, 0) #else @@ -768,6 +781,7 @@ ZEPHIR_INIT_FUNCS(phalcon_html_tag_method_entry) { PHP_ME(Phalcon_Html_Tag, endForm, arginfo_phalcon_html_tag_endform, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Html_Tag, form, arginfo_phalcon_html_tag_form, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Html_Tag, friendlyTitle, arginfo_phalcon_html_tag_friendlytitle, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Html_Tag, getDI, arginfo_phalcon_html_tag_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Html_Tag, getDocType, arginfo_phalcon_html_tag_getdoctype, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Html_Tag, getTitle, arginfo_phalcon_html_tag_gettitle, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Html_Tag, getTitleSeparator, arginfo_phalcon_html_tag_gettitleseparator, ZEND_ACC_PUBLIC) @@ -802,6 +816,7 @@ ZEPHIR_INIT_FUNCS(phalcon_html_tag_method_entry) { PHP_ME(Phalcon_Html_Tag, select, arginfo_phalcon_html_tag_select, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Html_Tag, setAttribute, arginfo_phalcon_html_tag_setattribute, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Html_Tag, setAttributes, arginfo_phalcon_html_tag_setattributes, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Html_Tag, setDI, arginfo_phalcon_html_tag_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Html_Tag, setDocType, arginfo_phalcon_html_tag_setdoctype, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Html_Tag, setTitle, arginfo_phalcon_html_tag_settitle, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Html_Tag, setTitleSeparator, arginfo_phalcon_html_tag_settitleseparator, ZEND_ACC_PUBLIC) diff --git a/ext/phalcon/http/cookie.zep.c b/ext/phalcon/http/cookie.zep.c index d10207ef283..b0851b26542 100644 --- a/ext/phalcon/http/cookie.zep.c +++ b/ext/phalcon/http/cookie.zep.c @@ -36,7 +36,9 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Http_Cookie) { - ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Http, Cookie, phalcon, http_cookie, phalcon_di_abstractinjectionaware_ce, phalcon_http_cookie_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Phalcon\\Http, Cookie, phalcon, http_cookie, phalcon_http_cookie_method_entry, 0); + + zend_declare_property_null(phalcon_http_cookie_ce, SL("container"), ZEND_ACC_PROTECTED TSRMLS_CC); zend_declare_property_null(phalcon_http_cookie_ce, SL("domain"), ZEND_ACC_PROTECTED TSRMLS_CC); @@ -67,6 +69,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Http_Cookie) { zend_declare_property_null(phalcon_http_cookie_ce, SL("value"), ZEND_ACC_PROTECTED TSRMLS_CC); zend_class_implements(phalcon_http_cookie_ce TSRMLS_CC, 1, phalcon_http_cookieinterface_ce); + zend_class_implements(phalcon_http_cookie_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); return SUCCESS; } @@ -248,6 +251,18 @@ PHP_METHOD(Phalcon_Http_Cookie, delete) { } +/** + * Returns the internal dependency injector + */ +PHP_METHOD(Phalcon_Http_Cookie, getDI) { + + zval *this_ptr = getThis(); + + + RETURN_MEMBER(getThis(), "container"); + +} + /** * Returns the domain that the cookie is available to */ @@ -458,7 +473,7 @@ PHP_METHOD(Phalcon_Http_Cookie, getValue) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_4$$7, "__construct", NULL, 5, &_5$$7); zephir_check_call_status(); - zephir_throw_exception_debug(&_4$$7, "phalcon/Http/Cookie.zep", 224 TSRMLS_CC); + zephir_throw_exception_debug(&_4$$7, "phalcon/Http/Cookie.zep", 234 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -468,7 +483,7 @@ PHP_METHOD(Phalcon_Http_Cookie, getValue) { zephir_check_call_status(); ZEPHIR_CPY_WRT(&crypt, &_8$$6); if (UNEXPECTED(Z_TYPE_P(&crypt) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_response_exception_ce, "A dependency which implements CryptInterface is required to use encryption", "phalcon/Http/Cookie.zep", 232); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_response_exception_ce, "A dependency which implements CryptInterface is required to use encryption", "phalcon/Http/Cookie.zep", 242); return; } zephir_read_property(&_3$$6, this_ptr, SL("signKey"), PH_NOISY_CC | PH_READONLY); @@ -500,7 +515,7 @@ PHP_METHOD(Phalcon_Http_Cookie, getValue) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_12$$15, "__construct", NULL, 5, &_13$$15); zephir_check_call_status(); - zephir_throw_exception_debug(&_12$$15, "phalcon/Http/Cookie.zep", 275 TSRMLS_CC); + zephir_throw_exception_debug(&_12$$15, "phalcon/Http/Cookie.zep", 285 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -682,7 +697,7 @@ PHP_METHOD(Phalcon_Http_Cookie, send) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 5, &_2$$3); zephir_check_call_status(); - zephir_throw_exception_debug(&_1$$3, "phalcon/Http/Cookie.zep", 377 TSRMLS_CC); + zephir_throw_exception_debug(&_1$$3, "phalcon/Http/Cookie.zep", 387 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -733,7 +748,7 @@ PHP_METHOD(Phalcon_Http_Cookie, send) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_9$$12, "__construct", NULL, 5, &_10$$12); zephir_check_call_status(); - zephir_throw_exception_debug(&_9$$12, "phalcon/Http/Cookie.zep", 422 TSRMLS_CC); + zephir_throw_exception_debug(&_9$$12, "phalcon/Http/Cookie.zep", 432 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -743,7 +758,7 @@ PHP_METHOD(Phalcon_Http_Cookie, send) { zephir_check_call_status(); ZEPHIR_CPY_WRT(&crypt, &_12$$11); if (UNEXPECTED(Z_TYPE_P(&crypt) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_response_exception_ce, "A dependency which implements CryptInterface is required to use encryption", "phalcon/Http/Cookie.zep", 430); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_response_exception_ce, "A dependency which implements CryptInterface is required to use encryption", "phalcon/Http/Cookie.zep", 440); return; } zephir_read_property(&_14$$11, this_ptr, SL("signKey"), PH_NOISY_CC | PH_READONLY); @@ -766,6 +781,24 @@ PHP_METHOD(Phalcon_Http_Cookie, send) { } +/** + * Sets the dependency injector + */ +PHP_METHOD(Phalcon_Http_Cookie, setDI) { + + zval *container, container_sub; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&container_sub); + + zephir_fetch_params_without_memory_grow(1, 0, &container); + + + + zephir_update_property_zval(this_ptr, SL("container"), container); + +} + /** * Sets the domain that the cookie is available to */ @@ -1085,7 +1118,7 @@ PHP_METHOD(Phalcon_Http_Cookie, assertSignKeyIsLongEnough) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 5, &_2$$3); zephir_check_call_status(); - zephir_throw_exception_debug(&_0$$3, "phalcon/Http/Cookie.zep", 593 TSRMLS_CC); + zephir_throw_exception_debug(&_0$$3, "phalcon/Http/Cookie.zep", 611 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } diff --git a/ext/phalcon/http/cookie.zep.h b/ext/phalcon/http/cookie.zep.h index 8deaed0937d..4b098f85fb5 100644 --- a/ext/phalcon/http/cookie.zep.h +++ b/ext/phalcon/http/cookie.zep.h @@ -6,6 +6,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Http_Cookie); PHP_METHOD(Phalcon_Http_Cookie, __construct); PHP_METHOD(Phalcon_Http_Cookie, __toString); PHP_METHOD(Phalcon_Http_Cookie, delete); +PHP_METHOD(Phalcon_Http_Cookie, getDI); PHP_METHOD(Phalcon_Http_Cookie, getDomain); PHP_METHOD(Phalcon_Http_Cookie, getExpiration); PHP_METHOD(Phalcon_Http_Cookie, getHttpOnly); @@ -16,6 +17,7 @@ PHP_METHOD(Phalcon_Http_Cookie, getValue); PHP_METHOD(Phalcon_Http_Cookie, isUsingEncryption); PHP_METHOD(Phalcon_Http_Cookie, restore); PHP_METHOD(Phalcon_Http_Cookie, send); +PHP_METHOD(Phalcon_Http_Cookie, setDI); PHP_METHOD(Phalcon_Http_Cookie, setDomain); PHP_METHOD(Phalcon_Http_Cookie, setExpiration); PHP_METHOD(Phalcon_Http_Cookie, setHttpOnly); @@ -67,6 +69,13 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_cookie___tostring, #endif ZEND_END_ARG_INFO() +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_http_cookie_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_cookie_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) +#endif +ZEND_END_ARG_INFO() + #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_cookie_getdomain, 0, 0, IS_STRING, 0) #else @@ -135,6 +144,10 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_cookie_send, 0, 0, #endif ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_http_cookie_setdi, 0, 0, 1) + ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) +ZEND_END_ARG_INFO() + #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_http_cookie_setdomain, 0, 1, Phalcon\\Http\\CookieInterface, 0) #else @@ -239,6 +252,7 @@ ZEPHIR_INIT_FUNCS(phalcon_http_cookie_method_entry) { PHP_ME(Phalcon_Http_Cookie, __construct, arginfo_phalcon_http_cookie___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) PHP_ME(Phalcon_Http_Cookie, __toString, arginfo_phalcon_http_cookie___tostring, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Cookie, delete, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Http_Cookie, getDI, arginfo_phalcon_http_cookie_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Cookie, getDomain, arginfo_phalcon_http_cookie_getdomain, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Cookie, getExpiration, arginfo_phalcon_http_cookie_getexpiration, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Cookie, getHttpOnly, arginfo_phalcon_http_cookie_gethttponly, ZEND_ACC_PUBLIC) @@ -249,6 +263,7 @@ ZEPHIR_INIT_FUNCS(phalcon_http_cookie_method_entry) { PHP_ME(Phalcon_Http_Cookie, isUsingEncryption, arginfo_phalcon_http_cookie_isusingencryption, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Cookie, restore, arginfo_phalcon_http_cookie_restore, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Cookie, send, arginfo_phalcon_http_cookie_send, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Http_Cookie, setDI, arginfo_phalcon_http_cookie_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Cookie, setDomain, arginfo_phalcon_http_cookie_setdomain, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Cookie, setExpiration, arginfo_phalcon_http_cookie_setexpiration, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Cookie, setHttpOnly, arginfo_phalcon_http_cookie_sethttponly, ZEND_ACC_PUBLIC) diff --git a/ext/phalcon/http/request.zep.c b/ext/phalcon/http/request.zep.c index e07f212d179..acd14433f85 100644 --- a/ext/phalcon/http/request.zep.c +++ b/ext/phalcon/http/request.zep.c @@ -60,7 +60,9 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Http_Request) { - ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Http, Request, phalcon, http_request, phalcon_di_abstractinjectionaware_ce, phalcon_http_request_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Phalcon\\Http, Request, phalcon, http_request, phalcon_http_request_method_entry, 0); + + zend_declare_property_null(phalcon_http_request_ce, SL("container"), ZEND_ACC_PRIVATE TSRMLS_CC); zend_declare_property_null(phalcon_http_request_ce, SL("filterService"), ZEND_ACC_PRIVATE TSRMLS_CC); @@ -86,6 +88,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Http_Request) { phalcon_http_request_ce->create_object = zephir_init_properties_Phalcon_Http_Request; zend_class_implements(phalcon_http_request_ce TSRMLS_CC, 1, phalcon_http_requestinterface_ce); + zend_class_implements(phalcon_http_request_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); return SUCCESS; } @@ -410,10 +413,10 @@ PHP_METHOD(Phalcon_Http_Request, getClientAddress) { if (Z_TYPE_P(&address) != IS_STRING) { RETURN_MM_BOOL(0); } - if (zephir_memnstr_str(&address, SL(","), "phalcon/Http/Request.zep", 178)) { + if (zephir_memnstr_str(&address, SL(","), "phalcon/Http/Request.zep", 180)) { ZEPHIR_INIT_VAR(&_0$$7); zephir_fast_explode_str(&_0$$7, SL(","), &address, LONG_MAX TSRMLS_CC); - zephir_array_fetch_long(&_1$$7, &_0$$7, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 183 TSRMLS_CC); + zephir_array_fetch_long(&_1$$7, &_0$$7, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 185 TSRMLS_CC); RETURN_CTOR(&_1$$7); } RETURN_CCTOR(&address); @@ -470,6 +473,18 @@ PHP_METHOD(Phalcon_Http_Request, getContentType) { } +/** + * Returns the internal dependency injector + */ +PHP_METHOD(Phalcon_Http_Request, getDI) { + + zval *this_ptr = getThis(); + + + RETURN_MEMBER(getThis(), "container"); + +} + /** * Gets auth info accepted by the browser/client from * $_SERVER["PHP_AUTH_DIGEST"] @@ -516,15 +531,15 @@ PHP_METHOD(Phalcon_Http_Request, getDigestAuth) { RETURN_CTOR(&auth); } if (Z_TYPE_P(&matches) == IS_ARRAY) { - zephir_is_iterable(&matches, 0, "phalcon/Http/Request.zep", 237); + zephir_is_iterable(&matches, 0, "phalcon/Http/Request.zep", 248); if (Z_TYPE_P(&matches) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&matches), _3$$5) { ZEPHIR_INIT_NVAR(&match); ZVAL_COPY(&match, _3$$5); - zephir_array_fetch_long(&_5$$6, &match, 3, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 235 TSRMLS_CC); + zephir_array_fetch_long(&_5$$6, &match, 3, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 246 TSRMLS_CC); ZEPHIR_OBS_NVAR(&_6$$6); - zephir_array_fetch_long(&_6$$6, &match, 1, PH_NOISY, "phalcon/Http/Request.zep", 235 TSRMLS_CC); + zephir_array_fetch_long(&_6$$6, &match, 1, PH_NOISY, "phalcon/Http/Request.zep", 246 TSRMLS_CC); zephir_array_update_zval(&auth, &_6$$6, &_5$$6, PH_COPY | PH_SEPARATE); } ZEND_HASH_FOREACH_END(); } else { @@ -538,9 +553,9 @@ PHP_METHOD(Phalcon_Http_Request, getDigestAuth) { } ZEPHIR_CALL_METHOD(&match, &matches, "current", NULL, 0); zephir_check_call_status(); - zephir_array_fetch_long(&_7$$7, &match, 3, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 235 TSRMLS_CC); + zephir_array_fetch_long(&_7$$7, &match, 3, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 246 TSRMLS_CC); ZEPHIR_OBS_NVAR(&_8$$7); - zephir_array_fetch_long(&_8$$7, &match, 1, PH_NOISY, "phalcon/Http/Request.zep", 235 TSRMLS_CC); + zephir_array_fetch_long(&_8$$7, &match, 1, PH_NOISY, "phalcon/Http/Request.zep", 246 TSRMLS_CC); zephir_array_update_zval(&auth, &_8$$7, &_7$$7, PH_COPY | PH_SEPARATE); ZEPHIR_CALL_METHOD(NULL, &matches, "next", NULL, 0); zephir_check_call_status(); @@ -610,7 +625,7 @@ PHP_METHOD(Phalcon_Http_Request, getFilteredQuery) { ZEPHIR_OBS_VAR(&filters); zephir_read_property(&_0, this_ptr, SL("queryFilters"), PH_NOISY_CC | PH_READONLY); - zephir_array_fetch_string(&_1, &_0, SL("get"), PH_READONLY, "phalcon/Http/Request.zep", 250 TSRMLS_CC); + zephir_array_fetch_string(&_1, &_0, SL("get"), PH_READONLY, "phalcon/Http/Request.zep", 261 TSRMLS_CC); if (!(zephir_array_isset_fetch(&filters, &_1, &name, 0 TSRMLS_CC))) { ZEPHIR_INIT_NVAR(&filters); array_init(&filters); @@ -688,7 +703,7 @@ PHP_METHOD(Phalcon_Http_Request, getFilteredPost) { ZEPHIR_OBS_VAR(&filters); zephir_read_property(&_0, this_ptr, SL("queryFilters"), PH_NOISY_CC | PH_READONLY); - zephir_array_fetch_string(&_1, &_0, SL("post"), PH_READONLY, "phalcon/Http/Request.zep", 270 TSRMLS_CC); + zephir_array_fetch_string(&_1, &_0, SL("post"), PH_READONLY, "phalcon/Http/Request.zep", 281 TSRMLS_CC); if (!(zephir_array_isset_fetch(&filters, &_1, &name, 0 TSRMLS_CC))) { ZEPHIR_INIT_NVAR(&filters); array_init(&filters); @@ -766,7 +781,7 @@ PHP_METHOD(Phalcon_Http_Request, getFilteredPut) { ZEPHIR_OBS_VAR(&filters); zephir_read_property(&_0, this_ptr, SL("queryFilters"), PH_NOISY_CC | PH_READONLY); - zephir_array_fetch_string(&_1, &_0, SL("put"), PH_READONLY, "phalcon/Http/Request.zep", 290 TSRMLS_CC); + zephir_array_fetch_string(&_1, &_0, SL("put"), PH_READONLY, "phalcon/Http/Request.zep", 301 TSRMLS_CC); if (!(zephir_array_isset_fetch(&filters, &_1, &name, 0 TSRMLS_CC))) { ZEPHIR_INIT_NVAR(&filters); array_init(&filters); @@ -926,7 +941,7 @@ PHP_METHOD(Phalcon_Http_Request, getHeaders) { zephir_array_update_string(&contentHeaders, SL("CONTENT_MD5"), &__$true, PH_COPY | PH_SEPARATE); ZEPHIR_CALL_METHOD(&server, this_ptr, "getserverarray", NULL, 348); zephir_check_call_status(); - zephir_is_iterable(&server, 0, "phalcon/Http/Request.zep", 391); + zephir_is_iterable(&server, 0, "phalcon/Http/Request.zep", 402); if (Z_TYPE_P(&server) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&server), _2, _3, _0) { @@ -1150,7 +1165,7 @@ PHP_METHOD(Phalcon_Http_Request, getHttpHost) { zephir_fast_trim(&_4$$5, &host, NULL , ZEPHIR_TRIM_BOTH TSRMLS_CC); ZEPHIR_INIT_NVAR(&host); zephir_fast_strtolower(&host, &_4$$5); - if (zephir_memnstr_str(&host, SL(":"), "phalcon/Http/Request.zep", 465)) { + if (zephir_memnstr_str(&host, SL(":"), "phalcon/Http/Request.zep", 476)) { ZEPHIR_INIT_VAR(&_5$$6); ZVAL_STRING(&_5$$6, "/:[[:digit:]]+$/"); ZEPHIR_INIT_VAR(&_6$$6); @@ -1174,7 +1189,7 @@ PHP_METHOD(Phalcon_Http_Request, getHttpHost) { ZEPHIR_CONCAT_SV(&_13$$7, "Invalid host ", &host); ZEPHIR_CALL_METHOD(NULL, &_12$$7, "__construct", NULL, 349, &_13$$7); zephir_check_call_status(); - zephir_throw_exception_debug(&_12$$7, "phalcon/Http/Request.zep", 475 TSRMLS_CC); + zephir_throw_exception_debug(&_12$$7, "phalcon/Http/Request.zep", 486 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1375,7 +1390,7 @@ PHP_METHOD(Phalcon_Http_Request, getPort) { zephir_check_call_status(); RETURN_MM_LONG(zephir_get_intval(&_1$$3)); } - if (zephir_memnstr_str(&host, SL(":"), "phalcon/Http/Request.zep", 582)) { + if (zephir_memnstr_str(&host, SL(":"), "phalcon/Http/Request.zep", 593)) { ZEPHIR_INIT_VAR(&_3$$4); ZVAL_STRING(&_3$$4, ":"); ZEPHIR_CALL_FUNCTION(&pos, "strrpos", NULL, 170, &host, &_3$$4); @@ -1945,7 +1960,7 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { array_init(&files); ZEPHIR_CPY_WRT(&superFiles, &_FILES); if (zephir_fast_count_int(&superFiles TSRMLS_CC) > 0) { - zephir_is_iterable(&superFiles, 0, "phalcon/Http/Request.zep", 831); + zephir_is_iterable(&superFiles, 0, "phalcon/Http/Request.zep", 842); if (Z_TYPE_P(&superFiles) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&superFiles), _2$$3, _3$$3, _0$$3) { @@ -1958,16 +1973,16 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { ZEPHIR_INIT_NVAR(&input); ZVAL_COPY(&input, _0$$3); ZEPHIR_OBS_NVAR(&_4$$4); - zephir_array_fetch_string(&_4$$4, &input, SL("name"), PH_NOISY, "phalcon/Http/Request.zep", 788 TSRMLS_CC); + zephir_array_fetch_string(&_4$$4, &input, SL("name"), PH_NOISY, "phalcon/Http/Request.zep", 799 TSRMLS_CC); if (Z_TYPE_P(&_4$$4) == IS_ARRAY) { - zephir_array_fetch_string(&_5$$5, &input, SL("name"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 790 TSRMLS_CC); - zephir_array_fetch_string(&_6$$5, &input, SL("type"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 791 TSRMLS_CC); - zephir_array_fetch_string(&_7$$5, &input, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 792 TSRMLS_CC); - zephir_array_fetch_string(&_8$$5, &input, SL("size"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 793 TSRMLS_CC); - zephir_array_fetch_string(&_9$$5, &input, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 794 TSRMLS_CC); + zephir_array_fetch_string(&_5$$5, &input, SL("name"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 801 TSRMLS_CC); + zephir_array_fetch_string(&_6$$5, &input, SL("type"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 802 TSRMLS_CC); + zephir_array_fetch_string(&_7$$5, &input, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 803 TSRMLS_CC); + zephir_array_fetch_string(&_8$$5, &input, SL("size"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 804 TSRMLS_CC); + zephir_array_fetch_string(&_9$$5, &input, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 805 TSRMLS_CC); ZEPHIR_CALL_METHOD(&smoothInput, this_ptr, "smoothfiles", &_10, 353, &_5$$5, &_6$$5, &_7$$5, &_8$$5, &_9$$5, &prefix); zephir_check_call_status(); - zephir_is_iterable(&smoothInput, 0, "phalcon/Http/Request.zep", 821); + zephir_is_iterable(&smoothInput, 0, "phalcon/Http/Request.zep", 832); if (Z_TYPE_P(&smoothInput) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&smoothInput), _11$$5) { @@ -1975,43 +1990,43 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { ZVAL_COPY(&file, _11$$5); _13$$6 = onlySuccessful == 0; if (!(_13$$6)) { - zephir_array_fetch_string(&_14$$6, &file, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 799 TSRMLS_CC); + zephir_array_fetch_string(&_14$$6, &file, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 810 TSRMLS_CC); _13$$6 = ZEPHIR_IS_LONG(&_14$$6, 0); } if (_13$$6) { ZEPHIR_INIT_NVAR(&dataFile); zephir_create_array(&dataFile, 5, 0 TSRMLS_CC); ZEPHIR_OBS_NVAR(&_15$$7); - zephir_array_fetch_string(&_15$$7, &file, SL("name"), PH_NOISY, "phalcon/Http/Request.zep", 801 TSRMLS_CC); + zephir_array_fetch_string(&_15$$7, &file, SL("name"), PH_NOISY, "phalcon/Http/Request.zep", 812 TSRMLS_CC); zephir_array_update_string(&dataFile, SL("name"), &_15$$7, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_15$$7); - zephir_array_fetch_string(&_15$$7, &file, SL("type"), PH_NOISY, "phalcon/Http/Request.zep", 802 TSRMLS_CC); + zephir_array_fetch_string(&_15$$7, &file, SL("type"), PH_NOISY, "phalcon/Http/Request.zep", 813 TSRMLS_CC); zephir_array_update_string(&dataFile, SL("type"), &_15$$7, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_15$$7); - zephir_array_fetch_string(&_15$$7, &file, SL("tmp_name"), PH_NOISY, "phalcon/Http/Request.zep", 803 TSRMLS_CC); + zephir_array_fetch_string(&_15$$7, &file, SL("tmp_name"), PH_NOISY, "phalcon/Http/Request.zep", 814 TSRMLS_CC); zephir_array_update_string(&dataFile, SL("tmp_name"), &_15$$7, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_15$$7); - zephir_array_fetch_string(&_15$$7, &file, SL("size"), PH_NOISY, "phalcon/Http/Request.zep", 804 TSRMLS_CC); + zephir_array_fetch_string(&_15$$7, &file, SL("size"), PH_NOISY, "phalcon/Http/Request.zep", 815 TSRMLS_CC); zephir_array_update_string(&dataFile, SL("size"), &_15$$7, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_15$$7); - zephir_array_fetch_string(&_15$$7, &file, SL("error"), PH_NOISY, "phalcon/Http/Request.zep", 806 TSRMLS_CC); + zephir_array_fetch_string(&_15$$7, &file, SL("error"), PH_NOISY, "phalcon/Http/Request.zep", 817 TSRMLS_CC); zephir_array_update_string(&dataFile, SL("error"), &_15$$7, PH_COPY | PH_SEPARATE); if (namedKeys == 1) { ZEPHIR_INIT_NVAR(&_16$$8); object_init_ex(&_16$$8, phalcon_http_request_file_ce); - zephir_array_fetch_string(&_17$$8, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 812 TSRMLS_CC); + zephir_array_fetch_string(&_17$$8, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 823 TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, &_16$$8, "__construct", &_18, 354, &dataFile, &_17$$8); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&_19$$8); - zephir_array_fetch_string(&_19$$8, &file, SL("key"), PH_NOISY, "phalcon/Http/Request.zep", 809 TSRMLS_CC); + zephir_array_fetch_string(&_19$$8, &file, SL("key"), PH_NOISY, "phalcon/Http/Request.zep", 820 TSRMLS_CC); zephir_array_update_zval(&files, &_19$$8, &_16$$8, PH_COPY | PH_SEPARATE); } else { ZEPHIR_INIT_NVAR(&_20$$9); object_init_ex(&_20$$9, phalcon_http_request_file_ce); - zephir_array_fetch_string(&_21$$9, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 817 TSRMLS_CC); + zephir_array_fetch_string(&_21$$9, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 828 TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, &_20$$9, "__construct", &_18, 354, &dataFile, &_21$$9); zephir_check_call_status(); - zephir_array_append(&files, &_20$$9, PH_SEPARATE, "phalcon/Http/Request.zep", 817); + zephir_array_append(&files, &_20$$9, PH_SEPARATE, "phalcon/Http/Request.zep", 828); } } } ZEND_HASH_FOREACH_END(); @@ -2028,44 +2043,44 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { zephir_check_call_status(); _22$$10 = onlySuccessful == 0; if (!(_22$$10)) { - zephir_array_fetch_string(&_23$$10, &file, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 799 TSRMLS_CC); + zephir_array_fetch_string(&_23$$10, &file, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 810 TSRMLS_CC); _22$$10 = ZEPHIR_IS_LONG(&_23$$10, 0); } if (_22$$10) { ZEPHIR_INIT_NVAR(&_24$$11); zephir_create_array(&_24$$11, 5, 0 TSRMLS_CC); ZEPHIR_OBS_NVAR(&_25$$11); - zephir_array_fetch_string(&_25$$11, &file, SL("name"), PH_NOISY, "phalcon/Http/Request.zep", 801 TSRMLS_CC); + zephir_array_fetch_string(&_25$$11, &file, SL("name"), PH_NOISY, "phalcon/Http/Request.zep", 812 TSRMLS_CC); zephir_array_update_string(&_24$$11, SL("name"), &_25$$11, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_25$$11); - zephir_array_fetch_string(&_25$$11, &file, SL("type"), PH_NOISY, "phalcon/Http/Request.zep", 802 TSRMLS_CC); + zephir_array_fetch_string(&_25$$11, &file, SL("type"), PH_NOISY, "phalcon/Http/Request.zep", 813 TSRMLS_CC); zephir_array_update_string(&_24$$11, SL("type"), &_25$$11, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_25$$11); - zephir_array_fetch_string(&_25$$11, &file, SL("tmp_name"), PH_NOISY, "phalcon/Http/Request.zep", 803 TSRMLS_CC); + zephir_array_fetch_string(&_25$$11, &file, SL("tmp_name"), PH_NOISY, "phalcon/Http/Request.zep", 814 TSRMLS_CC); zephir_array_update_string(&_24$$11, SL("tmp_name"), &_25$$11, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_25$$11); - zephir_array_fetch_string(&_25$$11, &file, SL("size"), PH_NOISY, "phalcon/Http/Request.zep", 804 TSRMLS_CC); + zephir_array_fetch_string(&_25$$11, &file, SL("size"), PH_NOISY, "phalcon/Http/Request.zep", 815 TSRMLS_CC); zephir_array_update_string(&_24$$11, SL("size"), &_25$$11, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_25$$11); - zephir_array_fetch_string(&_25$$11, &file, SL("error"), PH_NOISY, "phalcon/Http/Request.zep", 806 TSRMLS_CC); + zephir_array_fetch_string(&_25$$11, &file, SL("error"), PH_NOISY, "phalcon/Http/Request.zep", 817 TSRMLS_CC); zephir_array_update_string(&_24$$11, SL("error"), &_25$$11, PH_COPY | PH_SEPARATE); ZEPHIR_CPY_WRT(&dataFile, &_24$$11); if (namedKeys == 1) { ZEPHIR_INIT_NVAR(&_26$$12); object_init_ex(&_26$$12, phalcon_http_request_file_ce); - zephir_array_fetch_string(&_27$$12, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 812 TSRMLS_CC); + zephir_array_fetch_string(&_27$$12, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 823 TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, &_26$$12, "__construct", &_18, 354, &dataFile, &_27$$12); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&_28$$12); - zephir_array_fetch_string(&_28$$12, &file, SL("key"), PH_NOISY, "phalcon/Http/Request.zep", 809 TSRMLS_CC); + zephir_array_fetch_string(&_28$$12, &file, SL("key"), PH_NOISY, "phalcon/Http/Request.zep", 820 TSRMLS_CC); zephir_array_update_zval(&files, &_28$$12, &_26$$12, PH_COPY | PH_SEPARATE); } else { ZEPHIR_INIT_NVAR(&_29$$13); object_init_ex(&_29$$13, phalcon_http_request_file_ce); - zephir_array_fetch_string(&_30$$13, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 817 TSRMLS_CC); + zephir_array_fetch_string(&_30$$13, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 828 TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, &_29$$13, "__construct", &_18, 354, &dataFile, &_30$$13); zephir_check_call_status(); - zephir_array_append(&files, &_29$$13, PH_SEPARATE, "phalcon/Http/Request.zep", 817); + zephir_array_append(&files, &_29$$13, PH_SEPARATE, "phalcon/Http/Request.zep", 828); } } ZEPHIR_CALL_METHOD(NULL, &smoothInput, "next", NULL, 0); @@ -2076,7 +2091,7 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { } else { _31$$14 = onlySuccessful == 0; if (!(_31$$14)) { - zephir_array_fetch_string(&_32$$14, &input, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 822 TSRMLS_CC); + zephir_array_fetch_string(&_32$$14, &input, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 833 TSRMLS_CC); _31$$14 = ZEPHIR_IS_LONG(&_32$$14, 0); } if (_31$$14) { @@ -2091,7 +2106,7 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { object_init_ex(&_34$$17, phalcon_http_request_file_ce); ZEPHIR_CALL_METHOD(NULL, &_34$$17, "__construct", &_18, 354, &input, &prefix); zephir_check_call_status(); - zephir_array_append(&files, &_34$$17, PH_SEPARATE, "phalcon/Http/Request.zep", 826); + zephir_array_append(&files, &_34$$17, PH_SEPARATE, "phalcon/Http/Request.zep", 837); } } } @@ -2110,16 +2125,16 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { ZEPHIR_CALL_METHOD(&input, &superFiles, "current", NULL, 0); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&_35$$18); - zephir_array_fetch_string(&_35$$18, &input, SL("name"), PH_NOISY, "phalcon/Http/Request.zep", 788 TSRMLS_CC); + zephir_array_fetch_string(&_35$$18, &input, SL("name"), PH_NOISY, "phalcon/Http/Request.zep", 799 TSRMLS_CC); if (Z_TYPE_P(&_35$$18) == IS_ARRAY) { - zephir_array_fetch_string(&_36$$19, &input, SL("name"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 790 TSRMLS_CC); - zephir_array_fetch_string(&_37$$19, &input, SL("type"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 791 TSRMLS_CC); - zephir_array_fetch_string(&_38$$19, &input, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 792 TSRMLS_CC); - zephir_array_fetch_string(&_39$$19, &input, SL("size"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 793 TSRMLS_CC); - zephir_array_fetch_string(&_40$$19, &input, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 794 TSRMLS_CC); + zephir_array_fetch_string(&_36$$19, &input, SL("name"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 801 TSRMLS_CC); + zephir_array_fetch_string(&_37$$19, &input, SL("type"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 802 TSRMLS_CC); + zephir_array_fetch_string(&_38$$19, &input, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 803 TSRMLS_CC); + zephir_array_fetch_string(&_39$$19, &input, SL("size"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 804 TSRMLS_CC); + zephir_array_fetch_string(&_40$$19, &input, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 805 TSRMLS_CC); ZEPHIR_CALL_METHOD(&smoothInput, this_ptr, "smoothfiles", &_10, 353, &_36$$19, &_37$$19, &_38$$19, &_39$$19, &_40$$19, &prefix); zephir_check_call_status(); - zephir_is_iterable(&smoothInput, 0, "phalcon/Http/Request.zep", 821); + zephir_is_iterable(&smoothInput, 0, "phalcon/Http/Request.zep", 832); if (Z_TYPE_P(&smoothInput) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&smoothInput), _41$$19) { @@ -2127,44 +2142,44 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { ZVAL_COPY(&file, _41$$19); _43$$20 = onlySuccessful == 0; if (!(_43$$20)) { - zephir_array_fetch_string(&_44$$20, &file, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 799 TSRMLS_CC); + zephir_array_fetch_string(&_44$$20, &file, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 810 TSRMLS_CC); _43$$20 = ZEPHIR_IS_LONG(&_44$$20, 0); } if (_43$$20) { ZEPHIR_INIT_NVAR(&_45$$21); zephir_create_array(&_45$$21, 5, 0 TSRMLS_CC); ZEPHIR_OBS_NVAR(&_46$$21); - zephir_array_fetch_string(&_46$$21, &file, SL("name"), PH_NOISY, "phalcon/Http/Request.zep", 801 TSRMLS_CC); + zephir_array_fetch_string(&_46$$21, &file, SL("name"), PH_NOISY, "phalcon/Http/Request.zep", 812 TSRMLS_CC); zephir_array_update_string(&_45$$21, SL("name"), &_46$$21, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_46$$21); - zephir_array_fetch_string(&_46$$21, &file, SL("type"), PH_NOISY, "phalcon/Http/Request.zep", 802 TSRMLS_CC); + zephir_array_fetch_string(&_46$$21, &file, SL("type"), PH_NOISY, "phalcon/Http/Request.zep", 813 TSRMLS_CC); zephir_array_update_string(&_45$$21, SL("type"), &_46$$21, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_46$$21); - zephir_array_fetch_string(&_46$$21, &file, SL("tmp_name"), PH_NOISY, "phalcon/Http/Request.zep", 803 TSRMLS_CC); + zephir_array_fetch_string(&_46$$21, &file, SL("tmp_name"), PH_NOISY, "phalcon/Http/Request.zep", 814 TSRMLS_CC); zephir_array_update_string(&_45$$21, SL("tmp_name"), &_46$$21, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_46$$21); - zephir_array_fetch_string(&_46$$21, &file, SL("size"), PH_NOISY, "phalcon/Http/Request.zep", 804 TSRMLS_CC); + zephir_array_fetch_string(&_46$$21, &file, SL("size"), PH_NOISY, "phalcon/Http/Request.zep", 815 TSRMLS_CC); zephir_array_update_string(&_45$$21, SL("size"), &_46$$21, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_46$$21); - zephir_array_fetch_string(&_46$$21, &file, SL("error"), PH_NOISY, "phalcon/Http/Request.zep", 806 TSRMLS_CC); + zephir_array_fetch_string(&_46$$21, &file, SL("error"), PH_NOISY, "phalcon/Http/Request.zep", 817 TSRMLS_CC); zephir_array_update_string(&_45$$21, SL("error"), &_46$$21, PH_COPY | PH_SEPARATE); ZEPHIR_CPY_WRT(&dataFile, &_45$$21); if (namedKeys == 1) { ZEPHIR_INIT_NVAR(&_47$$22); object_init_ex(&_47$$22, phalcon_http_request_file_ce); - zephir_array_fetch_string(&_48$$22, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 812 TSRMLS_CC); + zephir_array_fetch_string(&_48$$22, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 823 TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, &_47$$22, "__construct", &_18, 354, &dataFile, &_48$$22); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&_49$$22); - zephir_array_fetch_string(&_49$$22, &file, SL("key"), PH_NOISY, "phalcon/Http/Request.zep", 809 TSRMLS_CC); + zephir_array_fetch_string(&_49$$22, &file, SL("key"), PH_NOISY, "phalcon/Http/Request.zep", 820 TSRMLS_CC); zephir_array_update_zval(&files, &_49$$22, &_47$$22, PH_COPY | PH_SEPARATE); } else { ZEPHIR_INIT_NVAR(&_50$$23); object_init_ex(&_50$$23, phalcon_http_request_file_ce); - zephir_array_fetch_string(&_51$$23, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 817 TSRMLS_CC); + zephir_array_fetch_string(&_51$$23, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 828 TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, &_50$$23, "__construct", &_18, 354, &dataFile, &_51$$23); zephir_check_call_status(); - zephir_array_append(&files, &_50$$23, PH_SEPARATE, "phalcon/Http/Request.zep", 817); + zephir_array_append(&files, &_50$$23, PH_SEPARATE, "phalcon/Http/Request.zep", 828); } } } ZEND_HASH_FOREACH_END(); @@ -2181,44 +2196,44 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { zephir_check_call_status(); _52$$24 = onlySuccessful == 0; if (!(_52$$24)) { - zephir_array_fetch_string(&_53$$24, &file, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 799 TSRMLS_CC); + zephir_array_fetch_string(&_53$$24, &file, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 810 TSRMLS_CC); _52$$24 = ZEPHIR_IS_LONG(&_53$$24, 0); } if (_52$$24) { ZEPHIR_INIT_NVAR(&_54$$25); zephir_create_array(&_54$$25, 5, 0 TSRMLS_CC); ZEPHIR_OBS_NVAR(&_55$$25); - zephir_array_fetch_string(&_55$$25, &file, SL("name"), PH_NOISY, "phalcon/Http/Request.zep", 801 TSRMLS_CC); + zephir_array_fetch_string(&_55$$25, &file, SL("name"), PH_NOISY, "phalcon/Http/Request.zep", 812 TSRMLS_CC); zephir_array_update_string(&_54$$25, SL("name"), &_55$$25, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_55$$25); - zephir_array_fetch_string(&_55$$25, &file, SL("type"), PH_NOISY, "phalcon/Http/Request.zep", 802 TSRMLS_CC); + zephir_array_fetch_string(&_55$$25, &file, SL("type"), PH_NOISY, "phalcon/Http/Request.zep", 813 TSRMLS_CC); zephir_array_update_string(&_54$$25, SL("type"), &_55$$25, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_55$$25); - zephir_array_fetch_string(&_55$$25, &file, SL("tmp_name"), PH_NOISY, "phalcon/Http/Request.zep", 803 TSRMLS_CC); + zephir_array_fetch_string(&_55$$25, &file, SL("tmp_name"), PH_NOISY, "phalcon/Http/Request.zep", 814 TSRMLS_CC); zephir_array_update_string(&_54$$25, SL("tmp_name"), &_55$$25, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_55$$25); - zephir_array_fetch_string(&_55$$25, &file, SL("size"), PH_NOISY, "phalcon/Http/Request.zep", 804 TSRMLS_CC); + zephir_array_fetch_string(&_55$$25, &file, SL("size"), PH_NOISY, "phalcon/Http/Request.zep", 815 TSRMLS_CC); zephir_array_update_string(&_54$$25, SL("size"), &_55$$25, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_55$$25); - zephir_array_fetch_string(&_55$$25, &file, SL("error"), PH_NOISY, "phalcon/Http/Request.zep", 806 TSRMLS_CC); + zephir_array_fetch_string(&_55$$25, &file, SL("error"), PH_NOISY, "phalcon/Http/Request.zep", 817 TSRMLS_CC); zephir_array_update_string(&_54$$25, SL("error"), &_55$$25, PH_COPY | PH_SEPARATE); ZEPHIR_CPY_WRT(&dataFile, &_54$$25); if (namedKeys == 1) { ZEPHIR_INIT_NVAR(&_56$$26); object_init_ex(&_56$$26, phalcon_http_request_file_ce); - zephir_array_fetch_string(&_57$$26, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 812 TSRMLS_CC); + zephir_array_fetch_string(&_57$$26, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 823 TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, &_56$$26, "__construct", &_18, 354, &dataFile, &_57$$26); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&_58$$26); - zephir_array_fetch_string(&_58$$26, &file, SL("key"), PH_NOISY, "phalcon/Http/Request.zep", 809 TSRMLS_CC); + zephir_array_fetch_string(&_58$$26, &file, SL("key"), PH_NOISY, "phalcon/Http/Request.zep", 820 TSRMLS_CC); zephir_array_update_zval(&files, &_58$$26, &_56$$26, PH_COPY | PH_SEPARATE); } else { ZEPHIR_INIT_NVAR(&_59$$27); object_init_ex(&_59$$27, phalcon_http_request_file_ce); - zephir_array_fetch_string(&_60$$27, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 817 TSRMLS_CC); + zephir_array_fetch_string(&_60$$27, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 828 TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, &_59$$27, "__construct", &_18, 354, &dataFile, &_60$$27); zephir_check_call_status(); - zephir_array_append(&files, &_59$$27, PH_SEPARATE, "phalcon/Http/Request.zep", 817); + zephir_array_append(&files, &_59$$27, PH_SEPARATE, "phalcon/Http/Request.zep", 828); } } ZEPHIR_CALL_METHOD(NULL, &smoothInput, "next", NULL, 0); @@ -2229,7 +2244,7 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { } else { _61$$28 = onlySuccessful == 0; if (!(_61$$28)) { - zephir_array_fetch_string(&_62$$28, &input, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 822 TSRMLS_CC); + zephir_array_fetch_string(&_62$$28, &input, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 833 TSRMLS_CC); _61$$28 = ZEPHIR_IS_LONG(&_62$$28, 0); } if (_61$$28) { @@ -2244,7 +2259,7 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { object_init_ex(&_64$$31, phalcon_http_request_file_ce); ZEPHIR_CALL_METHOD(NULL, &_64$$31, "__construct", &_18, 354, &input, &prefix); zephir_check_call_status(); - zephir_array_append(&files, &_64$$31, PH_SEPARATE, "phalcon/Http/Request.zep", 826); + zephir_array_append(&files, &_64$$31, PH_SEPARATE, "phalcon/Http/Request.zep", 837); } } } @@ -2384,7 +2399,7 @@ PHP_METHOD(Phalcon_Http_Request, hasFiles) { if (Z_TYPE_P(&files) != IS_ARRAY) { RETURN_MM_LONG(0); } - zephir_is_iterable(&files, 0, "phalcon/Http/Request.zep", 907); + zephir_is_iterable(&files, 0, "phalcon/Http/Request.zep", 918); if (Z_TYPE_P(&files) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&files), _0) { @@ -2817,14 +2832,14 @@ PHP_METHOD(Phalcon_Http_Request, isMethod) { ZEPHIR_CONCAT_SV(&_3$$4, "Invalid HTTP method: ", methods); ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 5, &_3$$4); zephir_check_call_status(); - zephir_throw_exception_debug(&_2$$4, "phalcon/Http/Request.zep", 1018 TSRMLS_CC); + zephir_throw_exception_debug(&_2$$4, "phalcon/Http/Request.zep", 1029 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } RETURN_MM_BOOL(ZEPHIR_IS_EQUAL(methods, &httpMethod)); } if (Z_TYPE_P(methods) == IS_ARRAY) { - zephir_is_iterable(methods, 0, "phalcon/Http/Request.zep", 1031); + zephir_is_iterable(methods, 0, "phalcon/Http/Request.zep", 1042); if (Z_TYPE_P(methods) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(methods), _4$$5) { @@ -2870,7 +2885,7 @@ PHP_METHOD(Phalcon_Http_Request, isMethod) { RETURN_MM_BOOL(0); } if (UNEXPECTED(strict)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_request_exception_ce, "Invalid HTTP method: non-string", "phalcon/Http/Request.zep", 1035); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_request_exception_ce, "Invalid HTTP method: non-string", "phalcon/Http/Request.zep", 1046); return; } RETURN_MM_BOOL(0); @@ -3043,7 +3058,7 @@ PHP_METHOD(Phalcon_Http_Request, isSoap) { if (ZEPHIR_IS_EMPTY(&contentType)) { RETURN_MM_BOOL(0); } - RETURN_MM_BOOL(zephir_memnstr_str(&contentType, SL("application/soap+xml"), "phalcon/Http/Request.zep", 1120)); + RETURN_MM_BOOL(zephir_memnstr_str(&contentType, SL("application/soap+xml"), "phalcon/Http/Request.zep", 1131)); } @@ -3099,6 +3114,24 @@ PHP_METHOD(Phalcon_Http_Request, isValidHttpMethod) { } +/** + * Sets the dependency injector + */ +PHP_METHOD(Phalcon_Http_Request, setDI) { + + zval *container, container_sub; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&container_sub); + + zephir_fetch_params_without_memory_grow(1, 0, &container); + + + + zephir_update_property_zval(this_ptr, SL("container"), container); + +} + /** * Sets automatic sanitizers/filters for a particular field and for * particular methods @@ -3166,13 +3199,13 @@ PHP_METHOD(Phalcon_Http_Request, setParameterFilters) { ZEPHIR_CONCAT_SVS(&_1$$3, "Filters have not been defined for '", &name, "'"); ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 5, &_1$$3); zephir_check_call_status(); - zephir_throw_exception_debug(&_0$$3, "phalcon/Http/Request.zep", 1165 TSRMLS_CC); + zephir_throw_exception_debug(&_0$$3, "phalcon/Http/Request.zep", 1184 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } ZEPHIR_CALL_METHOD(&filterService, this_ptr, "getfilterservice", NULL, 358); zephir_check_call_status(); - zephir_is_iterable(&filters, 0, "phalcon/Http/Request.zep", 1178); + zephir_is_iterable(&filters, 0, "phalcon/Http/Request.zep", 1197); if (Z_TYPE_P(&filters) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&filters), _2) { @@ -3187,7 +3220,7 @@ PHP_METHOD(Phalcon_Http_Request, setParameterFilters) { ZEPHIR_CONCAT_SVS(&_7$$5, "Sanitizer '", &sanitizer, "' does not exist in the filter locator"); ZEPHIR_CALL_METHOD(NULL, &_6$$5, "__construct", NULL, 5, &_7$$5); zephir_check_call_status(); - zephir_throw_exception_debug(&_6$$5, "phalcon/Http/Request.zep", 1174 TSRMLS_CC); + zephir_throw_exception_debug(&_6$$5, "phalcon/Http/Request.zep", 1193 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3212,7 +3245,7 @@ PHP_METHOD(Phalcon_Http_Request, setParameterFilters) { ZEPHIR_CONCAT_SVS(&_11$$7, "Sanitizer '", &sanitizer, "' does not exist in the filter locator"); ZEPHIR_CALL_METHOD(NULL, &_10$$7, "__construct", NULL, 5, &_11$$7); zephir_check_call_status(); - zephir_throw_exception_debug(&_10$$7, "phalcon/Http/Request.zep", 1174 TSRMLS_CC); + zephir_throw_exception_debug(&_10$$7, "phalcon/Http/Request.zep", 1193 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3236,7 +3269,7 @@ PHP_METHOD(Phalcon_Http_Request, setParameterFilters) { } else { ZEPHIR_CPY_WRT(&localScope, &scope); } - zephir_is_iterable(&localScope, 0, "phalcon/Http/Request.zep", 1188); + zephir_is_iterable(&localScope, 0, "phalcon/Http/Request.zep", 1207); if (Z_TYPE_P(&localScope) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&localScope), _13) { @@ -3339,7 +3372,7 @@ PHP_METHOD(Phalcon_Http_Request, getBestQuality) { quality = 0.0; ZEPHIR_INIT_VAR(&selectedName); ZVAL_STRING(&selectedName, ""); - zephir_is_iterable(&qualityParts, 0, "phalcon/Http/Request.zep", 1231); + zephir_is_iterable(&qualityParts, 0, "phalcon/Http/Request.zep", 1250); if (Z_TYPE_P(&qualityParts) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&qualityParts), _0) { @@ -3347,18 +3380,18 @@ PHP_METHOD(Phalcon_Http_Request, getBestQuality) { ZVAL_COPY(&accept, _0); if (i == 0) { ZEPHIR_OBS_NVAR(&_2$$4); - zephir_array_fetch_string(&_2$$4, &accept, SL("quality"), PH_NOISY, "phalcon/Http/Request.zep", 1217 TSRMLS_CC); + zephir_array_fetch_string(&_2$$4, &accept, SL("quality"), PH_NOISY, "phalcon/Http/Request.zep", 1236 TSRMLS_CC); quality = zephir_get_doubleval(&_2$$4); ZEPHIR_OBS_NVAR(&selectedName); - zephir_array_fetch(&selectedName, &accept, &name, PH_NOISY, "phalcon/Http/Request.zep", 1218 TSRMLS_CC); + zephir_array_fetch(&selectedName, &accept, &name, PH_NOISY, "phalcon/Http/Request.zep", 1237 TSRMLS_CC); } else { ZEPHIR_OBS_NVAR(&_3$$5); - zephir_array_fetch_string(&_3$$5, &accept, SL("quality"), PH_NOISY, "phalcon/Http/Request.zep", 1220 TSRMLS_CC); + zephir_array_fetch_string(&_3$$5, &accept, SL("quality"), PH_NOISY, "phalcon/Http/Request.zep", 1239 TSRMLS_CC); acceptQuality = zephir_get_doubleval(&_3$$5); if (acceptQuality > quality) { quality = acceptQuality; ZEPHIR_OBS_NVAR(&selectedName); - zephir_array_fetch(&selectedName, &accept, &name, PH_NOISY, "phalcon/Http/Request.zep", 1224 TSRMLS_CC); + zephir_array_fetch(&selectedName, &accept, &name, PH_NOISY, "phalcon/Http/Request.zep", 1243 TSRMLS_CC); } } i++; @@ -3376,18 +3409,18 @@ PHP_METHOD(Phalcon_Http_Request, getBestQuality) { zephir_check_call_status(); if (i == 0) { ZEPHIR_OBS_NVAR(&_4$$8); - zephir_array_fetch_string(&_4$$8, &accept, SL("quality"), PH_NOISY, "phalcon/Http/Request.zep", 1217 TSRMLS_CC); + zephir_array_fetch_string(&_4$$8, &accept, SL("quality"), PH_NOISY, "phalcon/Http/Request.zep", 1236 TSRMLS_CC); quality = zephir_get_doubleval(&_4$$8); ZEPHIR_OBS_NVAR(&selectedName); - zephir_array_fetch(&selectedName, &accept, &name, PH_NOISY, "phalcon/Http/Request.zep", 1218 TSRMLS_CC); + zephir_array_fetch(&selectedName, &accept, &name, PH_NOISY, "phalcon/Http/Request.zep", 1237 TSRMLS_CC); } else { ZEPHIR_OBS_NVAR(&_5$$9); - zephir_array_fetch_string(&_5$$9, &accept, SL("quality"), PH_NOISY, "phalcon/Http/Request.zep", 1220 TSRMLS_CC); + zephir_array_fetch_string(&_5$$9, &accept, SL("quality"), PH_NOISY, "phalcon/Http/Request.zep", 1239 TSRMLS_CC); acceptQuality = zephir_get_doubleval(&_5$$9); if (acceptQuality > quality) { quality = acceptQuality; ZEPHIR_OBS_NVAR(&selectedName); - zephir_array_fetch(&selectedName, &accept, &name, PH_NOISY, "phalcon/Http/Request.zep", 1224 TSRMLS_CC); + zephir_array_fetch(&selectedName, &accept, &name, PH_NOISY, "phalcon/Http/Request.zep", 1243 TSRMLS_CC); } } i++; @@ -3525,7 +3558,7 @@ PHP_METHOD(Phalcon_Http_Request, hasFileHelper) { if (Z_TYPE_P(data) != IS_ARRAY) { RETURN_MM_LONG(1); } - zephir_is_iterable(data, 0, "phalcon/Http/Request.zep", 1286); + zephir_is_iterable(data, 0, "phalcon/Http/Request.zep", 1305); if (Z_TYPE_P(data) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(data), _0) { @@ -3694,7 +3727,7 @@ PHP_METHOD(Phalcon_Http_Request, getQualityHeader) { ZVAL_LONG(&_3, 1); ZEPHIR_CALL_FUNCTION(&parts, "preg_split", NULL, 92, &_1, &_0, &_2, &_3); zephir_check_call_status(); - zephir_is_iterable(&parts, 0, "phalcon/Http/Request.zep", 1326); + zephir_is_iterable(&parts, 0, "phalcon/Http/Request.zep", 1345); if (Z_TYPE_P(&parts) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&parts), _4) { @@ -3710,7 +3743,7 @@ PHP_METHOD(Phalcon_Http_Request, getQualityHeader) { ZVAL_LONG(&_9$$3, 1); ZEPHIR_CALL_FUNCTION(&_10$$3, "preg_split", NULL, 92, &_7$$3, &_6$$3, &_8$$3, &_9$$3); zephir_check_call_status(); - zephir_is_iterable(&_10$$3, 0, "phalcon/Http/Request.zep", 1323); + zephir_is_iterable(&_10$$3, 0, "phalcon/Http/Request.zep", 1342); if (Z_TYPE_P(&_10$$3) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_10$$3), _11$$3) { @@ -3723,17 +3756,17 @@ PHP_METHOD(Phalcon_Http_Request, getQualityHeader) { if (!ZEPHIR_IS_FALSE_IDENTICAL(&_14$$4)) { ZEPHIR_INIT_NVAR(&split); zephir_fast_explode_str(&split, SL("="), &headerPart, 2 TSRMLS_CC); - zephir_array_fetch_long(&_15$$5, &split, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1312 TSRMLS_CC); + zephir_array_fetch_long(&_15$$5, &split, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1331 TSRMLS_CC); if (ZEPHIR_IS_STRING_IDENTICAL(&_15$$5, "q")) { ZEPHIR_OBS_NVAR(&_16$$6); - zephir_array_fetch_long(&_16$$6, &split, 1, PH_NOISY, "phalcon/Http/Request.zep", 1313 TSRMLS_CC); + zephir_array_fetch_long(&_16$$6, &split, 1, PH_NOISY, "phalcon/Http/Request.zep", 1332 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_17$$6); ZVAL_DOUBLE(&_17$$6, zephir_get_doubleval(&_16$$6)); zephir_array_update_string(&headerParts, SL("quality"), &_17$$6, PH_COPY | PH_SEPARATE); } else { - zephir_array_fetch_long(&_18$$7, &split, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1315 TSRMLS_CC); + zephir_array_fetch_long(&_18$$7, &split, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1334 TSRMLS_CC); ZEPHIR_OBS_NVAR(&_19$$7); - zephir_array_fetch_long(&_19$$7, &split, 0, PH_NOISY, "phalcon/Http/Request.zep", 1315 TSRMLS_CC); + zephir_array_fetch_long(&_19$$7, &split, 0, PH_NOISY, "phalcon/Http/Request.zep", 1334 TSRMLS_CC); zephir_array_update_zval(&headerParts, &_19$$7, &_18$$7, PH_COPY | PH_SEPARATE); } } else { @@ -3761,17 +3794,17 @@ PHP_METHOD(Phalcon_Http_Request, getQualityHeader) { if (!ZEPHIR_IS_FALSE_IDENTICAL(&_22$$9)) { ZEPHIR_INIT_NVAR(&split); zephir_fast_explode_str(&split, SL("="), &headerPart, 2 TSRMLS_CC); - zephir_array_fetch_long(&_23$$10, &split, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1312 TSRMLS_CC); + zephir_array_fetch_long(&_23$$10, &split, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1331 TSRMLS_CC); if (ZEPHIR_IS_STRING_IDENTICAL(&_23$$10, "q")) { ZEPHIR_OBS_NVAR(&_24$$11); - zephir_array_fetch_long(&_24$$11, &split, 1, PH_NOISY, "phalcon/Http/Request.zep", 1313 TSRMLS_CC); + zephir_array_fetch_long(&_24$$11, &split, 1, PH_NOISY, "phalcon/Http/Request.zep", 1332 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_25$$11); ZVAL_DOUBLE(&_25$$11, zephir_get_doubleval(&_24$$11)); zephir_array_update_string(&headerParts, SL("quality"), &_25$$11, PH_COPY | PH_SEPARATE); } else { - zephir_array_fetch_long(&_26$$12, &split, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1315 TSRMLS_CC); + zephir_array_fetch_long(&_26$$12, &split, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1334 TSRMLS_CC); ZEPHIR_OBS_NVAR(&_27$$12); - zephir_array_fetch_long(&_27$$12, &split, 0, PH_NOISY, "phalcon/Http/Request.zep", 1315 TSRMLS_CC); + zephir_array_fetch_long(&_27$$12, &split, 0, PH_NOISY, "phalcon/Http/Request.zep", 1334 TSRMLS_CC); zephir_array_update_zval(&headerParts, &_27$$12, &_26$$12, PH_COPY | PH_SEPARATE); } } else { @@ -3785,7 +3818,7 @@ PHP_METHOD(Phalcon_Http_Request, getQualityHeader) { } } ZEPHIR_INIT_NVAR(&headerPart); - zephir_array_append(&returnedParts, &headerParts, PH_SEPARATE, "phalcon/Http/Request.zep", 1323); + zephir_array_append(&returnedParts, &headerParts, PH_SEPARATE, "phalcon/Http/Request.zep", 1342); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &parts, "rewind", NULL, 0); @@ -3808,7 +3841,7 @@ PHP_METHOD(Phalcon_Http_Request, getQualityHeader) { ZVAL_LONG(&_32$$14, 1); ZEPHIR_CALL_FUNCTION(&_33$$14, "preg_split", NULL, 92, &_30$$14, &_29$$14, &_31$$14, &_32$$14); zephir_check_call_status(); - zephir_is_iterable(&_33$$14, 0, "phalcon/Http/Request.zep", 1323); + zephir_is_iterable(&_33$$14, 0, "phalcon/Http/Request.zep", 1342); if (Z_TYPE_P(&_33$$14) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_33$$14), _34$$14) { @@ -3821,17 +3854,17 @@ PHP_METHOD(Phalcon_Http_Request, getQualityHeader) { if (!ZEPHIR_IS_FALSE_IDENTICAL(&_37$$15)) { ZEPHIR_INIT_NVAR(&split); zephir_fast_explode_str(&split, SL("="), &headerPart, 2 TSRMLS_CC); - zephir_array_fetch_long(&_38$$16, &split, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1312 TSRMLS_CC); + zephir_array_fetch_long(&_38$$16, &split, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1331 TSRMLS_CC); if (ZEPHIR_IS_STRING_IDENTICAL(&_38$$16, "q")) { ZEPHIR_OBS_NVAR(&_39$$17); - zephir_array_fetch_long(&_39$$17, &split, 1, PH_NOISY, "phalcon/Http/Request.zep", 1313 TSRMLS_CC); + zephir_array_fetch_long(&_39$$17, &split, 1, PH_NOISY, "phalcon/Http/Request.zep", 1332 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_40$$17); ZVAL_DOUBLE(&_40$$17, zephir_get_doubleval(&_39$$17)); zephir_array_update_string(&headerParts, SL("quality"), &_40$$17, PH_COPY | PH_SEPARATE); } else { - zephir_array_fetch_long(&_41$$18, &split, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1315 TSRMLS_CC); + zephir_array_fetch_long(&_41$$18, &split, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1334 TSRMLS_CC); ZEPHIR_OBS_NVAR(&_42$$18); - zephir_array_fetch_long(&_42$$18, &split, 0, PH_NOISY, "phalcon/Http/Request.zep", 1315 TSRMLS_CC); + zephir_array_fetch_long(&_42$$18, &split, 0, PH_NOISY, "phalcon/Http/Request.zep", 1334 TSRMLS_CC); zephir_array_update_zval(&headerParts, &_42$$18, &_41$$18, PH_COPY | PH_SEPARATE); } } else { @@ -3859,17 +3892,17 @@ PHP_METHOD(Phalcon_Http_Request, getQualityHeader) { if (!ZEPHIR_IS_FALSE_IDENTICAL(&_45$$20)) { ZEPHIR_INIT_NVAR(&split); zephir_fast_explode_str(&split, SL("="), &headerPart, 2 TSRMLS_CC); - zephir_array_fetch_long(&_46$$21, &split, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1312 TSRMLS_CC); + zephir_array_fetch_long(&_46$$21, &split, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1331 TSRMLS_CC); if (ZEPHIR_IS_STRING_IDENTICAL(&_46$$21, "q")) { ZEPHIR_OBS_NVAR(&_47$$22); - zephir_array_fetch_long(&_47$$22, &split, 1, PH_NOISY, "phalcon/Http/Request.zep", 1313 TSRMLS_CC); + zephir_array_fetch_long(&_47$$22, &split, 1, PH_NOISY, "phalcon/Http/Request.zep", 1332 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_48$$22); ZVAL_DOUBLE(&_48$$22, zephir_get_doubleval(&_47$$22)); zephir_array_update_string(&headerParts, SL("quality"), &_48$$22, PH_COPY | PH_SEPARATE); } else { - zephir_array_fetch_long(&_49$$23, &split, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1315 TSRMLS_CC); + zephir_array_fetch_long(&_49$$23, &split, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1334 TSRMLS_CC); ZEPHIR_OBS_NVAR(&_50$$23); - zephir_array_fetch_long(&_50$$23, &split, 0, PH_NOISY, "phalcon/Http/Request.zep", 1315 TSRMLS_CC); + zephir_array_fetch_long(&_50$$23, &split, 0, PH_NOISY, "phalcon/Http/Request.zep", 1334 TSRMLS_CC); zephir_array_update_zval(&headerParts, &_50$$23, &_49$$23, PH_COPY | PH_SEPARATE); } } else { @@ -3883,7 +3916,7 @@ PHP_METHOD(Phalcon_Http_Request, getQualityHeader) { } } ZEPHIR_INIT_NVAR(&headerPart); - zephir_array_append(&returnedParts, &headerParts, PH_SEPARATE, "phalcon/Http/Request.zep", 1323); + zephir_array_append(&returnedParts, &headerParts, PH_SEPARATE, "phalcon/Http/Request.zep", 1342); ZEPHIR_CALL_METHOD(NULL, &parts, "next", NULL, 0); zephir_check_call_status(); } @@ -4066,9 +4099,9 @@ PHP_METHOD(Phalcon_Http_Request, resolveAuthorizationHeaders) { ZEPHIR_INIT_VAR(&exploded); zephir_fast_explode_str(&exploded, SL(":"), &_28$$12, 2 TSRMLS_CC); if (zephir_fast_count_int(&exploded TSRMLS_CC) == 2) { - zephir_array_fetch_long(&_29$$13, &exploded, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1385 TSRMLS_CC); + zephir_array_fetch_long(&_29$$13, &exploded, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1404 TSRMLS_CC); zephir_array_update_string(&headers, SL("Php-Auth-User"), &_29$$13, PH_COPY | PH_SEPARATE); - zephir_array_fetch_long(&_30$$13, &exploded, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1386 TSRMLS_CC); + zephir_array_fetch_long(&_30$$13, &exploded, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1405 TSRMLS_CC); zephir_array_update_string(&headers, SL("Php-Auth-Pw"), &_30$$13, PH_COPY | PH_SEPARATE); } } else if (_23$$11) { @@ -4081,8 +4114,8 @@ PHP_METHOD(Phalcon_Http_Request, resolveAuthorizationHeaders) { if (!(zephir_array_isset_string(&headers, SL("Authorization")))) { ZEPHIR_OBS_VAR(&digest); if (zephir_array_isset_string(&headers, SL("Php-Auth-User"))) { - zephir_array_fetch_string(&_31$$17, &headers, SL("Php-Auth-User"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1398 TSRMLS_CC); - zephir_array_fetch_string(&_32$$17, &headers, SL("Php-Auth-Pw"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1398 TSRMLS_CC); + zephir_array_fetch_string(&_31$$17, &headers, SL("Php-Auth-User"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1417 TSRMLS_CC); + zephir_array_fetch_string(&_32$$17, &headers, SL("Php-Auth-Pw"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1417 TSRMLS_CC); ZEPHIR_INIT_VAR(&_33$$17); ZEPHIR_CONCAT_VSV(&_33$$17, &_31$$17, ":", &_32$$17); ZEPHIR_CALL_FUNCTION(&_34$$17, "base64_encode", NULL, 179, &_33$$17); @@ -4175,7 +4208,7 @@ PHP_METHOD(Phalcon_Http_Request, smoothFiles) { ZEPHIR_INIT_VAR(&files); array_init(&files); - zephir_is_iterable(&names, 0, "phalcon/Http/Request.zep", 1462); + zephir_is_iterable(&names, 0, "phalcon/Http/Request.zep", 1481); if (Z_TYPE_P(&names) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&names), _2, _3, _0) { @@ -4194,35 +4227,35 @@ PHP_METHOD(Phalcon_Http_Request, smoothFiles) { zephir_create_array(&_4$$4, 6, 0 TSRMLS_CC); zephir_array_update_string(&_4$$4, SL("name"), &name, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_5$$4); - zephir_array_fetch(&_5$$4, &types, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1438 TSRMLS_CC); + zephir_array_fetch(&_5$$4, &types, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1457 TSRMLS_CC); zephir_array_update_string(&_4$$4, SL("type"), &_5$$4, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_5$$4); - zephir_array_fetch(&_5$$4, &tmp_names, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1439 TSRMLS_CC); + zephir_array_fetch(&_5$$4, &tmp_names, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1458 TSRMLS_CC); zephir_array_update_string(&_4$$4, SL("tmp_name"), &_5$$4, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_5$$4); - zephir_array_fetch(&_5$$4, &sizes, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1440 TSRMLS_CC); + zephir_array_fetch(&_5$$4, &sizes, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1459 TSRMLS_CC); zephir_array_update_string(&_4$$4, SL("size"), &_5$$4, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_5$$4); - zephir_array_fetch(&_5$$4, &errors, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1441 TSRMLS_CC); + zephir_array_fetch(&_5$$4, &errors, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1460 TSRMLS_CC); zephir_array_update_string(&_4$$4, SL("error"), &_5$$4, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4$$4, SL("key"), &p, PH_COPY | PH_SEPARATE); - zephir_array_append(&files, &_4$$4, PH_SEPARATE, "phalcon/Http/Request.zep", 1443); + zephir_array_append(&files, &_4$$4, PH_SEPARATE, "phalcon/Http/Request.zep", 1462); } if (Z_TYPE_P(&name) == IS_ARRAY) { - zephir_array_fetch(&_6$$5, &names, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1448 TSRMLS_CC); - zephir_array_fetch(&_7$$5, &types, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1449 TSRMLS_CC); - zephir_array_fetch(&_8$$5, &tmp_names, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1450 TSRMLS_CC); - zephir_array_fetch(&_9$$5, &sizes, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1451 TSRMLS_CC); - zephir_array_fetch(&_10$$5, &errors, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1452 TSRMLS_CC); + zephir_array_fetch(&_6$$5, &names, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1467 TSRMLS_CC); + zephir_array_fetch(&_7$$5, &types, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1468 TSRMLS_CC); + zephir_array_fetch(&_8$$5, &tmp_names, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1469 TSRMLS_CC); + zephir_array_fetch(&_9$$5, &sizes, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1470 TSRMLS_CC); + zephir_array_fetch(&_10$$5, &errors, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1471 TSRMLS_CC); ZEPHIR_CALL_METHOD(&parentFiles, this_ptr, "smoothfiles", &_11, 353, &_6$$5, &_7$$5, &_8$$5, &_9$$5, &_10$$5, &p); zephir_check_call_status(); - zephir_is_iterable(&parentFiles, 0, "phalcon/Http/Request.zep", 1459); + zephir_is_iterable(&parentFiles, 0, "phalcon/Http/Request.zep", 1478); if (Z_TYPE_P(&parentFiles) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&parentFiles), _12$$5) { ZEPHIR_INIT_NVAR(&file); ZVAL_COPY(&file, _12$$5); - zephir_array_append(&files, &file, PH_SEPARATE, "phalcon/Http/Request.zep", 1457); + zephir_array_append(&files, &file, PH_SEPARATE, "phalcon/Http/Request.zep", 1476); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &parentFiles, "rewind", NULL, 0); @@ -4235,7 +4268,7 @@ PHP_METHOD(Phalcon_Http_Request, smoothFiles) { } ZEPHIR_CALL_METHOD(&file, &parentFiles, "current", NULL, 0); zephir_check_call_status(); - zephir_array_append(&files, &file, PH_SEPARATE, "phalcon/Http/Request.zep", 1457); + zephir_array_append(&files, &file, PH_SEPARATE, "phalcon/Http/Request.zep", 1476); ZEPHIR_CALL_METHOD(NULL, &parentFiles, "next", NULL, 0); zephir_check_call_status(); } @@ -4263,35 +4296,35 @@ PHP_METHOD(Phalcon_Http_Request, smoothFiles) { zephir_create_array(&_14$$9, 6, 0 TSRMLS_CC); zephir_array_update_string(&_14$$9, SL("name"), &name, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_15$$9); - zephir_array_fetch(&_15$$9, &types, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1438 TSRMLS_CC); + zephir_array_fetch(&_15$$9, &types, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1457 TSRMLS_CC); zephir_array_update_string(&_14$$9, SL("type"), &_15$$9, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_15$$9); - zephir_array_fetch(&_15$$9, &tmp_names, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1439 TSRMLS_CC); + zephir_array_fetch(&_15$$9, &tmp_names, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1458 TSRMLS_CC); zephir_array_update_string(&_14$$9, SL("tmp_name"), &_15$$9, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_15$$9); - zephir_array_fetch(&_15$$9, &sizes, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1440 TSRMLS_CC); + zephir_array_fetch(&_15$$9, &sizes, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1459 TSRMLS_CC); zephir_array_update_string(&_14$$9, SL("size"), &_15$$9, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_15$$9); - zephir_array_fetch(&_15$$9, &errors, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1441 TSRMLS_CC); + zephir_array_fetch(&_15$$9, &errors, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1460 TSRMLS_CC); zephir_array_update_string(&_14$$9, SL("error"), &_15$$9, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_14$$9, SL("key"), &p, PH_COPY | PH_SEPARATE); - zephir_array_append(&files, &_14$$9, PH_SEPARATE, "phalcon/Http/Request.zep", 1443); + zephir_array_append(&files, &_14$$9, PH_SEPARATE, "phalcon/Http/Request.zep", 1462); } if (Z_TYPE_P(&name) == IS_ARRAY) { - zephir_array_fetch(&_16$$10, &names, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1448 TSRMLS_CC); - zephir_array_fetch(&_17$$10, &types, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1449 TSRMLS_CC); - zephir_array_fetch(&_18$$10, &tmp_names, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1450 TSRMLS_CC); - zephir_array_fetch(&_19$$10, &sizes, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1451 TSRMLS_CC); - zephir_array_fetch(&_20$$10, &errors, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1452 TSRMLS_CC); + zephir_array_fetch(&_16$$10, &names, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1467 TSRMLS_CC); + zephir_array_fetch(&_17$$10, &types, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1468 TSRMLS_CC); + zephir_array_fetch(&_18$$10, &tmp_names, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1469 TSRMLS_CC); + zephir_array_fetch(&_19$$10, &sizes, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1470 TSRMLS_CC); + zephir_array_fetch(&_20$$10, &errors, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1471 TSRMLS_CC); ZEPHIR_CALL_METHOD(&parentFiles, this_ptr, "smoothfiles", &_11, 353, &_16$$10, &_17$$10, &_18$$10, &_19$$10, &_20$$10, &p); zephir_check_call_status(); - zephir_is_iterable(&parentFiles, 0, "phalcon/Http/Request.zep", 1459); + zephir_is_iterable(&parentFiles, 0, "phalcon/Http/Request.zep", 1478); if (Z_TYPE_P(&parentFiles) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&parentFiles), _21$$10) { ZEPHIR_INIT_NVAR(&file); ZVAL_COPY(&file, _21$$10); - zephir_array_append(&files, &file, PH_SEPARATE, "phalcon/Http/Request.zep", 1457); + zephir_array_append(&files, &file, PH_SEPARATE, "phalcon/Http/Request.zep", 1476); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &parentFiles, "rewind", NULL, 0); @@ -4304,7 +4337,7 @@ PHP_METHOD(Phalcon_Http_Request, smoothFiles) { } ZEPHIR_CALL_METHOD(&file, &parentFiles, "current", NULL, 0); zephir_check_call_status(); - zephir_array_append(&files, &file, PH_SEPARATE, "phalcon/Http/Request.zep", 1457); + zephir_array_append(&files, &file, PH_SEPARATE, "phalcon/Http/Request.zep", 1476); ZEPHIR_CALL_METHOD(NULL, &parentFiles, "next", NULL, 0); zephir_check_call_status(); } @@ -4358,7 +4391,7 @@ PHP_METHOD(Phalcon_Http_Request, getFilterService) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 5, &_3$$4); zephir_check_call_status(); - zephir_throw_exception_debug(&_2$$4, "phalcon/Http/Request.zep", 1480 TSRMLS_CC); + zephir_throw_exception_debug(&_2$$4, "phalcon/Http/Request.zep", 1499 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } diff --git a/ext/phalcon/http/request.zep.h b/ext/phalcon/http/request.zep.h index 5260ce8d9f4..d0a1754fdbb 100644 --- a/ext/phalcon/http/request.zep.h +++ b/ext/phalcon/http/request.zep.h @@ -14,6 +14,7 @@ PHP_METHOD(Phalcon_Http_Request, getBestLanguage); PHP_METHOD(Phalcon_Http_Request, getClientAddress); PHP_METHOD(Phalcon_Http_Request, getClientCharsets); PHP_METHOD(Phalcon_Http_Request, getContentType); +PHP_METHOD(Phalcon_Http_Request, getDI); PHP_METHOD(Phalcon_Http_Request, getDigestAuth); PHP_METHOD(Phalcon_Http_Request, getFilteredQuery); PHP_METHOD(Phalcon_Http_Request, getFilteredPost); @@ -60,6 +61,7 @@ PHP_METHOD(Phalcon_Http_Request, isStrictHostCheck); PHP_METHOD(Phalcon_Http_Request, isSoap); PHP_METHOD(Phalcon_Http_Request, isTrace); PHP_METHOD(Phalcon_Http_Request, isValidHttpMethod); +PHP_METHOD(Phalcon_Http_Request, setDI); PHP_METHOD(Phalcon_Http_Request, setParameterFilters); PHP_METHOD(Phalcon_Http_Request, setStrictHostCheck); PHP_METHOD(Phalcon_Http_Request, getBestQuality); @@ -164,6 +166,13 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_request_getcontentt #endif ZEND_END_ARG_INFO() +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_http_request_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_request_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) +#endif +ZEND_END_ARG_INFO() + #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_request_getdigestauth, 0, 0, IS_ARRAY, 0) #else @@ -628,6 +637,10 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_request_isvalidhttp #endif ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_http_request_setdi, 0, 0, 1) + ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) +ZEND_END_ARG_INFO() + #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_http_request_setparameterfilters, 0, 1, Phalcon\\Http\\RequestInterface, 0) #else @@ -768,6 +781,7 @@ ZEPHIR_INIT_FUNCS(phalcon_http_request_method_entry) { PHP_ME(Phalcon_Http_Request, getClientAddress, arginfo_phalcon_http_request_getclientaddress, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Request, getClientCharsets, arginfo_phalcon_http_request_getclientcharsets, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Request, getContentType, arginfo_phalcon_http_request_getcontenttype, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Http_Request, getDI, arginfo_phalcon_http_request_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Request, getDigestAuth, arginfo_phalcon_http_request_getdigestauth, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Request, getFilteredQuery, arginfo_phalcon_http_request_getfilteredquery, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Request, getFilteredPost, arginfo_phalcon_http_request_getfilteredpost, ZEND_ACC_PUBLIC) @@ -814,6 +828,7 @@ ZEPHIR_INIT_FUNCS(phalcon_http_request_method_entry) { PHP_ME(Phalcon_Http_Request, isSoap, arginfo_phalcon_http_request_issoap, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Request, isTrace, arginfo_phalcon_http_request_istrace, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Request, isValidHttpMethod, arginfo_phalcon_http_request_isvalidhttpmethod, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Http_Request, setDI, arginfo_phalcon_http_request_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Request, setParameterFilters, arginfo_phalcon_http_request_setparameterfilters, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Request, setStrictHostCheck, arginfo_phalcon_http_request_setstricthostcheck, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Request, getBestQuality, arginfo_phalcon_http_request_getbestquality, ZEND_ACC_FINAL|ZEND_ACC_PROTECTED) diff --git a/ext/phalcon/http/response.zep.c b/ext/phalcon/http/response.zep.c index 9c6fdaa0ccb..3a46e08cb98 100644 --- a/ext/phalcon/http/response.zep.c +++ b/ext/phalcon/http/response.zep.c @@ -21,6 +21,7 @@ #include "kernel/string.h" #include "ext/date/php_date.h" #include "ext/spl/spl_exceptions.h" +#include "kernel/file.h" #include "kernel/array.h" @@ -210,7 +211,7 @@ PHP_METHOD(Phalcon_Http_Response, getDI) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 5, &_3$$4); zephir_check_call_status(); - zephir_throw_exception_debug(&_2$$4, "phalcon/Http/Response.zep", 121 TSRMLS_CC); + zephir_throw_exception_debug(&_2$$4, "phalcon/Http/Response.zep", 120 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -593,7 +594,7 @@ PHP_METHOD(Phalcon_Http_Response, send) { zephir_read_property(&_0, this_ptr, SL("sent"), PH_NOISY_CC | PH_READONLY); if (UNEXPECTED(zephir_is_true(&_0))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_response_exception_ce, "Response was already sent", "phalcon/Http/Response.zep", 323); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_response_exception_ce, "Response was already sent", "phalcon/Http/Response.zep", 322); return; } ZEPHIR_CALL_METHOD(NULL, this_ptr, "sendheaders", NULL, 0); @@ -1013,26 +1014,18 @@ PHP_METHOD(Phalcon_Http_Response, setFileToSend) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; - zephir_fcall_cache_entry *_0 = NULL; - zval *filePath_param = NULL, *attachmentName = NULL, attachmentName_sub, *attachment = NULL, attachment_sub, __$true, __$null, basePath, basePathEncoding, _1$$6, _2$$5, _3$$7, _4$$7, _5$$7, _6$$8, _7$$8, _8$$8; + zval *filePath_param = NULL, *attachmentName = NULL, attachmentName_sub, *attachment = NULL, attachment_sub, __$null, __$true, basePath, _0$$5, _1$$5; zval filePath; zval *this_ptr = getThis(); ZVAL_UNDEF(&filePath); ZVAL_UNDEF(&attachmentName_sub); ZVAL_UNDEF(&attachment_sub); - ZVAL_BOOL(&__$true, 1); ZVAL_NULL(&__$null); + ZVAL_BOOL(&__$true, 1); ZVAL_UNDEF(&basePath); - ZVAL_UNDEF(&basePathEncoding); - ZVAL_UNDEF(&_1$$6); - ZVAL_UNDEF(&_2$$5); - ZVAL_UNDEF(&_3$$7); - ZVAL_UNDEF(&_4$$7); - ZVAL_UNDEF(&_5$$7); - ZVAL_UNDEF(&_6$$8); - ZVAL_UNDEF(&_7$$8); - ZVAL_UNDEF(&_8$$8); + ZVAL_UNDEF(&_0$$5); + ZVAL_UNDEF(&_1$$5); ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &filePath_param, &attachmentName, &attachment); @@ -1048,54 +1041,29 @@ PHP_METHOD(Phalcon_Http_Response, setFileToSend) { } - ZEPHIR_INIT_VAR(&basePathEncoding); - ZVAL_STRING(&basePathEncoding, "ASCII"); if (Z_TYPE_P(attachmentName) != IS_STRING) { - ZEPHIR_CALL_CE_STATIC(&basePath, phalcon_helper_fs_ce, "basename", &_0, 363, &filePath); - zephir_check_call_status(); + ZEPHIR_INIT_VAR(&basePath); + zephir_basename(&basePath, &filePath TSRMLS_CC); } else { ZEPHIR_CPY_WRT(&basePath, attachmentName); } if (zephir_is_true(attachment)) { - if ((zephir_function_exists_ex(SL("mb_detect_encoding") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&_1$$6, "mb_detect_order", NULL, 364); - zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&basePathEncoding, "mb_detect_encoding", NULL, 221, &basePath, &_1$$6, &__$true); - zephir_check_call_status(); - } - ZEPHIR_INIT_VAR(&_2$$5); - ZVAL_STRING(&_2$$5, "Content-Description: File Transfer"); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "setrawheader", NULL, 0, &_2$$5); + ZEPHIR_INIT_VAR(&_0$$5); + ZVAL_STRING(&_0$$5, "Content-Description: File Transfer"); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "setrawheader", NULL, 0, &_0$$5); zephir_check_call_status(); - ZEPHIR_INIT_NVAR(&_2$$5); - ZVAL_STRING(&_2$$5, "Content-Type: application/octet-stream"); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "setrawheader", NULL, 0, &_2$$5); + ZEPHIR_INIT_NVAR(&_0$$5); + ZVAL_STRING(&_0$$5, "Content-Type: application/octet-stream"); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "setrawheader", NULL, 0, &_0$$5); zephir_check_call_status(); - ZEPHIR_INIT_NVAR(&_2$$5); - ZVAL_STRING(&_2$$5, "Content-Transfer-Encoding: binary"); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "setrawheader", NULL, 0, &_2$$5); + ZEPHIR_INIT_VAR(&_1$$5); + ZEPHIR_CONCAT_SVS(&_1$$5, "Content-Disposition: attachment; filename=", &basePath, ";"); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "setrawheader", NULL, 0, &_1$$5); + zephir_check_call_status(); + ZEPHIR_INIT_NVAR(&_0$$5); + ZVAL_STRING(&_0$$5, "Content-Transfer-Encoding: binary"); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "setrawheader", NULL, 0, &_0$$5); zephir_check_call_status(); - if (!ZEPHIR_IS_STRING(&basePathEncoding, "ASCII")) { - ZEPHIR_CALL_FUNCTION(&_3$$7, "rawurlencode", NULL, 224, &basePath); - zephir_check_call_status(); - ZEPHIR_CPY_WRT(&basePath, &_3$$7); - ZEPHIR_INIT_VAR(&_4$$7); - zephir_fast_strtolower(&_4$$7, &basePathEncoding); - ZEPHIR_INIT_VAR(&_5$$7); - ZEPHIR_CONCAT_SVSVSV(&_5$$7, "Content-Disposition: attachment; filename=", &basePath, "; filename*=", &_4$$7, "''", &basePath); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "setrawheader", NULL, 0, &_5$$7); - zephir_check_call_status(); - } else { - ZEPHIR_INIT_VAR(&_6$$8); - ZVAL_STRING(&_6$$8, "\\15\\17\\\""); - ZEPHIR_CALL_FUNCTION(&_7$$8, "addcslashes", NULL, 190, &basePath, &_6$$8); - zephir_check_call_status(); - ZEPHIR_CPY_WRT(&basePath, &_7$$8); - ZEPHIR_INIT_VAR(&_8$$8); - ZEPHIR_CONCAT_SVS(&_8$$8, "Content-Disposition: attachment; filename=\"", &basePath, "\""); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "setrawheader", NULL, 0, &_8$$8); - zephir_check_call_status(); - } } zephir_update_property_zval(this_ptr, SL("file"), &filePath); RETURN_THIS(); @@ -1164,7 +1132,7 @@ PHP_METHOD(Phalcon_Http_Response, setHeaders) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&existing, this_ptr, "getheaders", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&data, 0, "phalcon/Http/Response.zep", 619); + zephir_is_iterable(&data, 0, "phalcon/Http/Response.zep", 600); if (Z_TYPE_P(&data) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _2, _3, _0) { @@ -1393,7 +1361,7 @@ PHP_METHOD(Phalcon_Http_Response, setStatusCode) { ZEPHIR_CALL_METHOD(¤tHeadersRaw, &headers, "toarray", NULL, 0); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_0); - zephir_is_iterable(¤tHeadersRaw, 0, "phalcon/Http/Response.zep", 718); + zephir_is_iterable(¤tHeadersRaw, 0, "phalcon/Http/Response.zep", 699); if (Z_TYPE_P(¤tHeadersRaw) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(¤tHeadersRaw), _3, _4, _1) { @@ -1517,11 +1485,11 @@ PHP_METHOD(Phalcon_Http_Response, setStatusCode) { add_index_stringl(&statusCodes, 510, SL("Not Extended")); add_index_stringl(&statusCodes, 511, SL("Network Authentication Required")); if (UNEXPECTED(!(zephir_array_isset_long(&statusCodes, code)))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_response_exception_ce, "Non-standard statuscode given without a message", "phalcon/Http/Response.zep", 795); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_response_exception_ce, "Non-standard statuscode given without a message", "phalcon/Http/Response.zep", 776); return; } ZEPHIR_OBS_VAR(&defaultMessage); - zephir_array_fetch_long(&defaultMessage, &statusCodes, code, PH_NOISY, "phalcon/Http/Response.zep", 798 TSRMLS_CC); + zephir_array_fetch_long(&defaultMessage, &statusCodes, code, PH_NOISY, "phalcon/Http/Response.zep", 779 TSRMLS_CC); zephir_get_strval(&message, &defaultMessage); } ZEPHIR_SINIT_VAR(_14); diff --git a/ext/phalcon/http/response/cookies.zep.c b/ext/phalcon/http/response/cookies.zep.c index 0bbe5c87a60..1728648239f 100644 --- a/ext/phalcon/http/response/cookies.zep.c +++ b/ext/phalcon/http/response/cookies.zep.c @@ -79,7 +79,9 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Http_Response_Cookies) { - ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Http\\Response, Cookies, phalcon, http_response_cookies, phalcon_di_abstractinjectionaware_ce, phalcon_http_response_cookies_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Phalcon\\Http\\Response, Cookies, phalcon, http_response_cookies, phalcon_http_response_cookies_method_entry, 0); + + zend_declare_property_null(phalcon_http_response_cookies_ce, SL("container"), ZEND_ACC_PROTECTED TSRMLS_CC); zend_declare_property_null(phalcon_http_response_cookies_ce, SL("cookies"), ZEND_ACC_PROTECTED TSRMLS_CC); @@ -96,6 +98,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Http_Response_Cookies) { phalcon_http_response_cookies_ce->create_object = zephir_init_properties_Phalcon_Http_Response_Cookies; zend_class_implements(phalcon_http_response_cookies_ce TSRMLS_CC, 1, phalcon_http_response_cookiesinterface_ce); + zend_class_implements(phalcon_http_response_cookies_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); return SUCCESS; } @@ -269,6 +272,18 @@ PHP_METHOD(Phalcon_Http_Response_Cookies, getCookies) { } +/** + * Returns the internal dependency injector + */ +PHP_METHOD(Phalcon_Http_Response_Cookies, getDI) { + + zval *this_ptr = getThis(); + + + RETURN_MEMBER(getThis(), "container"); + +} + /** * Check if a cookie is defined in the bag or exists in the _COOKIE * superglobal @@ -360,13 +375,13 @@ PHP_METHOD(Phalcon_Http_Response_Cookies, send) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_FUNCTION(&_0, "headers_sent", NULL, 365); + ZEPHIR_CALL_FUNCTION(&_0, "headers_sent", NULL, 363); zephir_check_call_status(); if (zephir_is_true(&_0)) { RETURN_MM_BOOL(0); } zephir_read_property(&_1, this_ptr, SL("cookies"), PH_NOISY_CC | PH_READONLY); - zephir_is_iterable(&_1, 0, "phalcon/Http/Response/Cookies.zep", 204); + zephir_is_iterable(&_1, 0, "phalcon/Http/Response/Cookies.zep", 214); if (Z_TYPE_P(&_1) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_1), _2) { @@ -588,7 +603,7 @@ PHP_METHOD(Phalcon_Http_Response_Cookies, set) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_12$$7, "__construct", NULL, 5, &_13$$7); zephir_check_call_status(); - zephir_throw_exception_debug(&_12$$7, "phalcon/Http/Response/Cookies.zep", 288 TSRMLS_CC); + zephir_throw_exception_debug(&_12$$7, "phalcon/Http/Response/Cookies.zep", 298 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -608,6 +623,24 @@ PHP_METHOD(Phalcon_Http_Response_Cookies, set) { } +/** + * Sets the dependency injector + */ +PHP_METHOD(Phalcon_Http_Response_Cookies, setDI) { + + zval *container, container_sub; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&container_sub); + + zephir_fetch_params_without_memory_grow(1, 0, &container); + + + + zephir_update_property_zval(this_ptr, SL("container"), container); + +} + /** * Sets the cookie's sign key. * diff --git a/ext/phalcon/http/response/cookies.zep.h b/ext/phalcon/http/response/cookies.zep.h index af89de28750..fec96ad33cf 100644 --- a/ext/phalcon/http/response/cookies.zep.h +++ b/ext/phalcon/http/response/cookies.zep.h @@ -7,11 +7,13 @@ PHP_METHOD(Phalcon_Http_Response_Cookies, __construct); PHP_METHOD(Phalcon_Http_Response_Cookies, delete); PHP_METHOD(Phalcon_Http_Response_Cookies, get); PHP_METHOD(Phalcon_Http_Response_Cookies, getCookies); +PHP_METHOD(Phalcon_Http_Response_Cookies, getDI); PHP_METHOD(Phalcon_Http_Response_Cookies, has); PHP_METHOD(Phalcon_Http_Response_Cookies, isUsingEncryption); PHP_METHOD(Phalcon_Http_Response_Cookies, reset); PHP_METHOD(Phalcon_Http_Response_Cookies, send); PHP_METHOD(Phalcon_Http_Response_Cookies, set); +PHP_METHOD(Phalcon_Http_Response_Cookies, setDI); PHP_METHOD(Phalcon_Http_Response_Cookies, setSignKey); PHP_METHOD(Phalcon_Http_Response_Cookies, useEncryption); zend_object *zephir_init_properties_Phalcon_Http_Response_Cookies(zend_class_entry *class_type TSRMLS_DC); @@ -60,6 +62,13 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_response_cookies_ge #endif ZEND_END_ARG_INFO() +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_http_response_cookies_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_response_cookies_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) +#endif +ZEND_END_ARG_INFO() + #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_response_cookies_has, 0, 1, _IS_BOOL, 0) #else @@ -131,6 +140,10 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_response_cookies_se #endif ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_http_response_cookies_setdi, 0, 0, 1) + ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) +ZEND_END_ARG_INFO() + #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_http_response_cookies_setsignkey, 0, 0, Phalcon\\Http\\CookieInterface, 0) #else @@ -160,11 +173,13 @@ ZEPHIR_INIT_FUNCS(phalcon_http_response_cookies_method_entry) { PHP_ME(Phalcon_Http_Response_Cookies, delete, arginfo_phalcon_http_response_cookies_delete, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Response_Cookies, get, arginfo_phalcon_http_response_cookies_get, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Response_Cookies, getCookies, arginfo_phalcon_http_response_cookies_getcookies, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Http_Response_Cookies, getDI, arginfo_phalcon_http_response_cookies_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Response_Cookies, has, arginfo_phalcon_http_response_cookies_has, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Response_Cookies, isUsingEncryption, arginfo_phalcon_http_response_cookies_isusingencryption, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Response_Cookies, reset, arginfo_phalcon_http_response_cookies_reset, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Response_Cookies, send, arginfo_phalcon_http_response_cookies_send, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Response_Cookies, set, arginfo_phalcon_http_response_cookies_set, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Http_Response_Cookies, setDI, arginfo_phalcon_http_response_cookies_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Response_Cookies, setSignKey, arginfo_phalcon_http_response_cookies_setsignkey, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Response_Cookies, useEncryption, arginfo_phalcon_http_response_cookies_useencryption, ZEND_ACC_PUBLIC) PHP_FE_END diff --git a/ext/phalcon/http/response/headers.zep.c b/ext/phalcon/http/response/headers.zep.c index 2c9da668298..85e267588bf 100644 --- a/ext/phalcon/http/response/headers.zep.c +++ b/ext/phalcon/http/response/headers.zep.c @@ -182,7 +182,7 @@ PHP_METHOD(Phalcon_Http_Response_Headers, send) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_FUNCTION(&_0, "headers_sent", NULL, 365); + ZEPHIR_CALL_FUNCTION(&_0, "headers_sent", NULL, 363); zephir_check_call_status(); if (zephir_is_true(&_0)) { RETURN_MM_BOOL(0); @@ -203,7 +203,7 @@ PHP_METHOD(Phalcon_Http_Response_Headers, send) { if (Z_TYPE_P(&value) != IS_NULL) { ZEPHIR_INIT_LNVAR(_6$$5); ZEPHIR_CONCAT_VSV(&_6$$5, &header, ": ", &value); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 366, &_6$$5, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 364, &_6$$5, &__$true); zephir_check_call_status(); } else { _8$$6 = zephir_memnstr_str(&header, SL(":"), "phalcon/Http/Response/Headers.zep", 88); @@ -215,12 +215,12 @@ PHP_METHOD(Phalcon_Http_Response_Headers, send) { _8$$6 = ZEPHIR_IS_STRING(&_11$$6, "HTTP/"); } if (_8$$6) { - ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 366, &header, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 364, &header, &__$true); zephir_check_call_status(); } else { ZEPHIR_INIT_LNVAR(_12$$8); ZEPHIR_CONCAT_VS(&_12$$8, &header, ": "); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 366, &_12$$8, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 364, &_12$$8, &__$true); zephir_check_call_status(); } } @@ -241,7 +241,7 @@ PHP_METHOD(Phalcon_Http_Response_Headers, send) { if (Z_TYPE_P(&value) != IS_NULL) { ZEPHIR_INIT_LNVAR(_13$$10); ZEPHIR_CONCAT_VSV(&_13$$10, &header, ": ", &value); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 366, &_13$$10, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 364, &_13$$10, &__$true); zephir_check_call_status(); } else { _14$$11 = zephir_memnstr_str(&header, SL(":"), "phalcon/Http/Response/Headers.zep", 88); @@ -253,12 +253,12 @@ PHP_METHOD(Phalcon_Http_Response_Headers, send) { _14$$11 = ZEPHIR_IS_STRING(&_17$$11, "HTTP/"); } if (_14$$11) { - ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 366, &header, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 364, &header, &__$true); zephir_check_call_status(); } else { ZEPHIR_INIT_LNVAR(_18$$13); ZEPHIR_CONCAT_VS(&_18$$13, &header, ": "); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 366, &_18$$13, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 364, &_18$$13, &__$true); zephir_check_call_status(); } } diff --git a/ext/phalcon/image/adapter/gd.zep.c b/ext/phalcon/image/adapter/gd.zep.c index 3ab1ff47211..75027bce68f 100644 --- a/ext/phalcon/image/adapter/gd.zep.c +++ b/ext/phalcon/image/adapter/gd.zep.c @@ -128,7 +128,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("realpath"), &_3$$4); zephir_read_property(&_4$$4, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&imageinfo, "getimagesize", NULL, 367, &_4$$4); + ZEPHIR_CALL_FUNCTION(&imageinfo, "getimagesize", NULL, 365, &_4$$4); zephir_check_call_status(); if (zephir_is_true(&imageinfo)) { zephir_array_fetch_long(&_5$$5, &imageinfo, 0, PH_NOISY | PH_READONLY, "phalcon/Image/Adapter/Gd.zep", 36 TSRMLS_CC); @@ -144,35 +144,35 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { do { if (ZEPHIR_IS_LONG(&_9$$4, 1)) { zephir_read_property(&_10$$6, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_11$$6, "imagecreatefromgif", NULL, 368, &_10$$6); + ZEPHIR_CALL_FUNCTION(&_11$$6, "imagecreatefromgif", NULL, 366, &_10$$6); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &_11$$6); break; } if (ZEPHIR_IS_LONG(&_9$$4, 2)) { zephir_read_property(&_12$$7, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_13$$7, "imagecreatefromjpeg", NULL, 369, &_12$$7); + ZEPHIR_CALL_FUNCTION(&_13$$7, "imagecreatefromjpeg", NULL, 367, &_12$$7); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &_13$$7); break; } if (ZEPHIR_IS_LONG(&_9$$4, 3)) { zephir_read_property(&_14$$8, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_15$$8, "imagecreatefrompng", NULL, 370, &_14$$8); + ZEPHIR_CALL_FUNCTION(&_15$$8, "imagecreatefrompng", NULL, 368, &_14$$8); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &_15$$8); break; } if (ZEPHIR_IS_LONG(&_9$$4, 15)) { zephir_read_property(&_16$$9, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_17$$9, "imagecreatefromwbmp", NULL, 371, &_16$$9); + ZEPHIR_CALL_FUNCTION(&_17$$9, "imagecreatefromwbmp", NULL, 369, &_16$$9); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &_17$$9); break; } if (ZEPHIR_IS_LONG(&_9$$4, 16)) { zephir_read_property(&_18$$10, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_19$$10, "imagecreatefromxbm", NULL, 372, &_18$$10); + ZEPHIR_CALL_FUNCTION(&_19$$10, "imagecreatefromxbm", NULL, 370, &_18$$10); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &_19$$10); break; @@ -195,7 +195,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { } while(0); zephir_read_property(&_24$$4, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 373, &_24$$4, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 371, &_24$$4, &__$true); zephir_check_call_status(); } else { _25$$13 = !width; @@ -216,14 +216,14 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { } ZVAL_LONG(&_29$$13, width); ZVAL_LONG(&_30$$13, height); - ZEPHIR_CALL_FUNCTION(&_31$$13, "imagecreatetruecolor", NULL, 374, &_29$$13, &_30$$13); + ZEPHIR_CALL_FUNCTION(&_31$$13, "imagecreatetruecolor", NULL, 372, &_29$$13, &_30$$13); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &_31$$13); zephir_read_property(&_29$$13, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 375, &_29$$13, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 373, &_29$$13, &__$true); zephir_check_call_status(); zephir_read_property(&_30$$13, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 373, &_30$$13, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 371, &_30$$13, &__$true); zephir_check_call_status(); zephir_read_property(&_32$$13, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); zephir_update_property_zval(this_ptr, SL("realpath"), &_32$$13); @@ -260,7 +260,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, __destruct) { zephir_read_property(&_0, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&image, &_0); if (Z_TYPE_P(&image) == IS_RESOURCE) { - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &image); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 374, &image); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -300,7 +300,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, check) { ZVAL_STRING(&_1, "2.0.1"); ZEPHIR_INIT_VAR(&_2); ZVAL_STRING(&_2, ">="); - ZEPHIR_CALL_FUNCTION(&_3, "version_compare", NULL, 377, &version, &_1, &_2); + ZEPHIR_CALL_FUNCTION(&_3, "version_compare", NULL, 375, &version, &_1, &_2); zephir_check_call_status(); if (UNEXPECTED(!zephir_is_true(&_3))) { ZEPHIR_INIT_VAR(&_4$$5); @@ -352,7 +352,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, getVersion) { ZEPHIR_INIT_NVAR(&version); ZEPHIR_MM_GET_CONSTANT(&version, "GD_VERSION"); } else { - ZEPHIR_CALL_FUNCTION(&info, "gd_info", NULL, 378); + ZEPHIR_CALL_FUNCTION(&info, "gd_info", NULL, 376); zephir_check_call_status(); ZEPHIR_INIT_VAR(&matches); ZVAL_NULL(&matches); @@ -412,9 +412,9 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processBackground) { ZVAL_LONG(&_3, g); ZVAL_LONG(&_4, b); ZVAL_LONG(&_5, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 379, &background, &_2, &_3, &_4, &_5); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 377, &background, &_2, &_3, &_4, &_5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 375, &background, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 373, &background, &__$true); zephir_check_call_status(); zephir_read_property(&_2, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_3, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY); @@ -423,11 +423,11 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processBackground) { ZVAL_LONG(&_6, 0); ZVAL_LONG(&_7, 0); ZVAL_LONG(&_8, 0); - ZEPHIR_CALL_FUNCTION(&_9, "imagecopy", NULL, 380, &background, &_2, &_5, &_6, &_7, &_8, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&_9, "imagecopy", NULL, 378, &background, &_2, &_5, &_6, &_7, &_8, &_3, &_4); zephir_check_call_status(); if (zephir_is_true(&_9)) { zephir_read_property(&_10$$3, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &_10$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 374, &_10$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &background); } @@ -459,7 +459,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processBlur) { } zephir_read_property(&_0$$3, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_1$$3, 7); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_2, 381, &_0$$3, &_1$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_2, 379, &_0$$3, &_1$$3); zephir_check_call_status(); i++; } @@ -489,11 +489,11 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processCreate) { ZVAL_LONG(&_0, width); ZVAL_LONG(&_1, height); - ZEPHIR_CALL_FUNCTION(&image, "imagecreatetruecolor", NULL, 374, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&image, "imagecreatetruecolor", NULL, 372, &_0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 375, &image, &__$false); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 373, &image, &__$false); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 373, &image, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 371, &image, &__$true); zephir_check_call_status(); RETURN_CCTOR(&image); @@ -538,16 +538,16 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processCrop) { ZVAL_LONG(&_0, height); zephir_array_update_string(&rect, SL("height"), &_0, PH_COPY | PH_SEPARATE); zephir_read_property(&_1, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&image, "imagecrop", NULL, 382, &_1, &rect); + ZEPHIR_CALL_FUNCTION(&image, "imagecrop", NULL, 380, &_1, &rect); zephir_check_call_status(); zephir_read_property(&_2, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 374, &_2); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &image); - ZEPHIR_CALL_FUNCTION(&_3, "imagesx", NULL, 383, &image); + ZEPHIR_CALL_FUNCTION(&_3, "imagesx", NULL, 381, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("width"), &_3); - ZEPHIR_CALL_FUNCTION(&_4, "imagesy", NULL, 384, &image); + ZEPHIR_CALL_FUNCTION(&_4, "imagesy", NULL, 382, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("height"), &_4); ZEPHIR_MM_RESTORE(); @@ -575,12 +575,12 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processFlip) { if (direction == 11) { zephir_read_property(&_0$$3, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_1$$3, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imageflip", NULL, 385, &_0$$3, &_1$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imageflip", NULL, 383, &_0$$3, &_1$$3); zephir_check_call_status(); } else { zephir_read_property(&_2$$4, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_3$$4, 2); - ZEPHIR_CALL_FUNCTION(NULL, "imageflip", NULL, 385, &_2$$4, &_3$$4); + ZEPHIR_CALL_FUNCTION(NULL, "imageflip", NULL, 383, &_2$$4, &_3$$4); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -640,32 +640,32 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processMask) { ZEPHIR_CALL_METHOD(&_0, mask, "render", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&maskImage, "imagecreatefromstring", NULL, 386, &_0); + ZEPHIR_CALL_FUNCTION(&maskImage, "imagecreatefromstring", NULL, 384, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 383, &maskImage); + ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 381, &maskImage); zephir_check_call_status(); mask_width = zephir_get_intval(&_1); - ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 384, &maskImage); + ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 382, &maskImage); zephir_check_call_status(); mask_height = zephir_get_intval(&_2); alpha = 127; - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 373, &maskImage, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 371, &maskImage, &__$true); zephir_check_call_status(); zephir_read_property(&_3, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_4, this_ptr, SL("height"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CALL_METHOD(&newimage, this_ptr, "processcreate", NULL, 0, &_3, &_4); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 373, &newimage, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 371, &newimage, &__$true); zephir_check_call_status(); ZVAL_LONG(&_5, 0); ZVAL_LONG(&_6, 0); ZVAL_LONG(&_7, 0); ZVAL_LONG(&_8, alpha); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 379, &newimage, &_5, &_6, &_7, &_8); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 377, &newimage, &_5, &_6, &_7, &_8); zephir_check_call_status(); ZVAL_LONG(&_5, 0); ZVAL_LONG(&_6, 0); - ZEPHIR_CALL_FUNCTION(NULL, "imagefill", NULL, 387, &newimage, &_5, &_6, &color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefill", NULL, 385, &newimage, &_5, &_6, &color); zephir_check_call_status(); zephir_read_property(&_5, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY); _9 = !ZEPHIR_IS_LONG(&_5, mask_width); @@ -676,7 +676,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processMask) { if (_9) { zephir_read_property(&_10$$3, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_11$$3, this_ptr, SL("height"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&tempImage, "imagecreatetruecolor", NULL, 374, &_10$$3, &_11$$3); + ZEPHIR_CALL_FUNCTION(&tempImage, "imagecreatetruecolor", NULL, 372, &_10$$3, &_11$$3); zephir_check_call_status(); zephir_read_property(&_12$$3, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_13$$3, this_ptr, SL("height"), PH_NOISY_CC | PH_READONLY); @@ -686,9 +686,9 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processMask) { ZVAL_LONG(&_17$$3, 0); ZVAL_LONG(&_18$$3, mask_width); ZVAL_LONG(&_19$$3, mask_height); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopyresampled", NULL, 388, &tempImage, &maskImage, &_14$$3, &_15$$3, &_16$$3, &_17$$3, &_12$$3, &_13$$3, &_18$$3, &_19$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopyresampled", NULL, 386, &tempImage, &maskImage, &_14$$3, &_15$$3, &_16$$3, &_17$$3, &_12$$3, &_13$$3, &_18$$3, &_19$$3); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &maskImage); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 374, &maskImage); zephir_check_call_status(); ZEPHIR_CPY_WRT(&maskImage, &tempImage); } @@ -706,9 +706,9 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processMask) { } ZVAL_LONG(&_21$$5, x); ZVAL_LONG(&_22$$5, y); - ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_23, 389, &maskImage, &_21$$5, &_22$$5); + ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_23, 387, &maskImage, &_21$$5, &_22$$5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_24, 390, &maskImage, &index); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_24, 388, &maskImage, &index); zephir_check_call_status(); if (zephir_array_isset_string(&color, SL("red"))) { zephir_array_fetch_string(&_25$$6, &color, SL("red"), PH_NOISY | PH_READONLY, "phalcon/Image/Adapter/Gd.zep", 289 TSRMLS_CC); @@ -718,10 +718,10 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processMask) { zephir_read_property(&_21$$5, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_22$$5, x); ZVAL_LONG(&_27$$5, y); - ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_23, 389, &_21$$5, &_22$$5, &_27$$5); + ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_23, 387, &_21$$5, &_22$$5, &_27$$5); zephir_check_call_status(); zephir_read_property(&_22$$5, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_24, 390, &_22$$5, &index); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_24, 388, &_22$$5, &index); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&r); zephir_array_fetch_string(&r, &color, SL("red"), PH_NOISY, "phalcon/Image/Adapter/Gd.zep", 294 TSRMLS_CC); @@ -730,20 +730,20 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processMask) { ZEPHIR_OBS_NVAR(&b); zephir_array_fetch_string(&b, &color, SL("blue"), PH_NOISY, "phalcon/Image/Adapter/Gd.zep", 296 TSRMLS_CC); ZVAL_LONG(&_27$$5, alpha); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 379, &newimage, &r, &g, &b, &_27$$5); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 377, &newimage, &r, &g, &b, &_27$$5); zephir_check_call_status(); ZVAL_LONG(&_27$$5, x); ZVAL_LONG(&_28$$5, y); - ZEPHIR_CALL_FUNCTION(NULL, "imagesetpixel", &_29, 391, &newimage, &_27$$5, &_28$$5, &color); + ZEPHIR_CALL_FUNCTION(NULL, "imagesetpixel", &_29, 389, &newimage, &_27$$5, &_28$$5, &color); zephir_check_call_status(); y++; } x++; } zephir_read_property(&_8, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &_8); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 374, &_8); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &maskImage); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 374, &maskImage); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &newimage); ZEPHIR_MM_RESTORE(); @@ -803,7 +803,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processPixelate) { zephir_read_property(&_5$$4, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_6$$4, x1); ZVAL_LONG(&_7$$4, y1); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorat", &_8, 389, &_5$$4, &_6$$4, &_7$$4); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorat", &_8, 387, &_5$$4, &_6$$4, &_7$$4); zephir_check_call_status(); x2 = (x + amount); y2 = (y + amount); @@ -812,7 +812,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processPixelate) { ZVAL_LONG(&_9$$4, y); ZVAL_LONG(&_10$$4, x2); ZVAL_LONG(&_11$$4, y2); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", &_12, 392, &_6$$4, &_7$$4, &_9$$4, &_10$$4, &_11$$4, &color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", &_12, 390, &_6$$4, &_7$$4, &_9$$4, &_10$$4, &_11$$4, &color); zephir_check_call_status(); y += amount; } @@ -893,7 +893,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processReflection) { ZVAL_LONG(&_8, 0); ZVAL_LONG(&_9, 0); ZVAL_LONG(&_10, 0); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", NULL, 380, &reflection, &_4, &_7, &_8, &_9, &_10, &_5, &_6); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", NULL, 378, &reflection, &_4, &_7, &_8, &_9, &_10, &_5, &_6); zephir_check_call_status(); offset = 0; while (1) { @@ -926,14 +926,14 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processReflection) { ZVAL_LONG(&_22$$5, 0); ZVAL_LONG(&_23$$5, src_y); ZVAL_LONG(&_24$$5, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", NULL, 380, &line, &_18$$5, &_20$$5, &_21$$5, &_22$$5, &_23$$5, &_19$$5, &_24$$5); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", NULL, 378, &line, &_18$$5, &_20$$5, &_21$$5, &_22$$5, &_23$$5, &_19$$5, &_24$$5); zephir_check_call_status(); ZVAL_LONG(&_20$$5, 4); ZVAL_LONG(&_21$$5, 0); ZVAL_LONG(&_22$$5, 0); ZVAL_LONG(&_23$$5, 0); ZVAL_LONG(&_24$$5, dst_opacity); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_25, 381, &line, &_20$$5, &_21$$5, &_22$$5, &_23$$5, &_24$$5); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_25, 379, &line, &_20$$5, &_21$$5, &_22$$5, &_23$$5, &_24$$5); zephir_check_call_status(); zephir_read_property(&_20$$5, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_21$$5, 0); @@ -941,18 +941,18 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processReflection) { ZVAL_LONG(&_23$$5, 0); ZVAL_LONG(&_24$$5, 0); ZVAL_LONG(&_26$$5, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", NULL, 380, &reflection, &line, &_21$$5, &_22$$5, &_23$$5, &_24$$5, &_20$$5, &_26$$5); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", NULL, 378, &reflection, &line, &_21$$5, &_22$$5, &_23$$5, &_24$$5, &_20$$5, &_26$$5); zephir_check_call_status(); offset++; } zephir_read_property(&_7, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &_7); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 374, &_7); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &reflection); - ZEPHIR_CALL_FUNCTION(&_27, "imagesx", NULL, 383, &reflection); + ZEPHIR_CALL_FUNCTION(&_27, "imagesx", NULL, 381, &reflection); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("width"), &_27); - ZEPHIR_CALL_FUNCTION(&_28, "imagesy", NULL, 384, &reflection); + ZEPHIR_CALL_FUNCTION(&_28, "imagesy", NULL, 382, &reflection); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("height"), &_28); ZEPHIR_MM_RESTORE(); @@ -997,56 +997,56 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processRender) { ZEPHIR_INIT_VAR(&_0); zephir_fast_strtolower(&_0, &ext); zephir_get_strval(&ext, &_0); - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 393); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 391); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "gif"); - ZEPHIR_CALL_FUNCTION(&_2, "strcmp", NULL, 394, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "strcmp", NULL, 392, &ext, &_1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "jpg"); - ZEPHIR_CALL_FUNCTION(&_3, "strcmp", NULL, 394, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_3, "strcmp", NULL, 392, &ext, &_1); zephir_check_call_status(); _4 = ZEPHIR_IS_LONG(&_3, 0); if (!(_4)) { ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "jpeg"); - ZEPHIR_CALL_FUNCTION(&_5, "strcmp", NULL, 394, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_5, "strcmp", NULL, 392, &ext, &_1); zephir_check_call_status(); _4 = ZEPHIR_IS_LONG(&_5, 0); } ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "png"); - ZEPHIR_CALL_FUNCTION(&_6, "strcmp", NULL, 394, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_6, "strcmp", NULL, 392, &ext, &_1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "wbmp"); - ZEPHIR_CALL_FUNCTION(&_7, "strcmp", NULL, 394, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_7, "strcmp", NULL, 392, &ext, &_1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "xbm"); - ZEPHIR_CALL_FUNCTION(&_8, "strcmp", NULL, 394, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_8, "strcmp", NULL, 392, &ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_2, 0)) { zephir_read_property(&_9$$3, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 395, &_9$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 393, &_9$$3); zephir_check_call_status(); } else if (_4) { zephir_read_property(&_10$$4, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_11$$4, quality); - ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 396, &_10$$4, &__$null, &_11$$4); + ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 394, &_10$$4, &__$null, &_11$$4); zephir_check_call_status(); } else if (ZEPHIR_IS_LONG(&_6, 0)) { zephir_read_property(&_12$$5, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 397, &_12$$5); + ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 395, &_12$$5); zephir_check_call_status(); } else if (ZEPHIR_IS_LONG(&_7, 0)) { zephir_read_property(&_13$$6, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 398, &_13$$6); + ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 396, &_13$$6); zephir_check_call_status(); } else if (ZEPHIR_IS_LONG(&_8, 0)) { zephir_read_property(&_14$$7, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 399, &_14$$7, &__$null); + ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 397, &_14$$7, &__$null); zephir_check_call_status(); } else { ZEPHIR_INIT_VAR(&_15$$8); @@ -1059,7 +1059,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processRender) { ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", NULL, 400); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", NULL, 398); zephir_check_call_status(); RETURN_MM(); @@ -1089,16 +1089,16 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processResize) { zephir_read_property(&_0, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_1, width); ZVAL_LONG(&_2, height); - ZEPHIR_CALL_FUNCTION(&image, "imagescale", NULL, 401, &_0, &_1, &_2); + ZEPHIR_CALL_FUNCTION(&image, "imagescale", NULL, 399, &_0, &_1, &_2); zephir_check_call_status(); zephir_read_property(&_1, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &_1); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 374, &_1); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &image); - ZEPHIR_CALL_FUNCTION(&_3, "imagesx", NULL, 383, &image); + ZEPHIR_CALL_FUNCTION(&_3, "imagesx", NULL, 381, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("width"), &_3); - ZEPHIR_CALL_FUNCTION(&_4, "imagesy", NULL, 384, &image); + ZEPHIR_CALL_FUNCTION(&_4, "imagesy", NULL, 382, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("height"), &_4); ZEPHIR_MM_RESTORE(); @@ -1139,18 +1139,18 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processRotate) { ZVAL_LONG(&_2, 0); ZVAL_LONG(&_3, 0); ZVAL_LONG(&_4, 127); - ZEPHIR_CALL_FUNCTION(&transparent, "imagecolorallocatealpha", NULL, 379, &_0, &_1, &_2, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&transparent, "imagecolorallocatealpha", NULL, 377, &_0, &_1, &_2, &_3, &_4); zephir_check_call_status(); zephir_read_property(&_1, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_2, (360 - degrees)); ZVAL_LONG(&_3, 1); - ZEPHIR_CALL_FUNCTION(&image, "imagerotate", NULL, 402, &_1, &_2, &transparent, &_3); + ZEPHIR_CALL_FUNCTION(&image, "imagerotate", NULL, 400, &_1, &_2, &transparent, &_3); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 373, &image, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 371, &image, &__$true); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&width, "imagesx", NULL, 383, &image); + ZEPHIR_CALL_FUNCTION(&width, "imagesx", NULL, 381, &image); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&height, "imagesy", NULL, 384, &image); + ZEPHIR_CALL_FUNCTION(&height, "imagesy", NULL, 382, &image); zephir_check_call_status(); zephir_read_property(&_2, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_3, 0); @@ -1158,11 +1158,11 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processRotate) { ZVAL_LONG(&_5, 0); ZVAL_LONG(&_6, 0); ZVAL_LONG(&_7, 100); - ZEPHIR_CALL_FUNCTION(&_8, "imagecopymerge", NULL, 403, &_2, &image, &_3, &_4, &_5, &_6, &width, &height, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "imagecopymerge", NULL, 401, &_2, &image, &_3, &_4, &_5, &_6, &width, &height, &_7); zephir_check_call_status(); if (zephir_is_true(&_8)) { zephir_read_property(&_9$$3, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &_9$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 374, &_9$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &image); zephir_update_property_zval(this_ptr, SL("width"), &width); @@ -1224,7 +1224,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processSave) { zephir_check_call_status(); if (!(zephir_is_true(&ext))) { zephir_read_property(&_1$$3, this_ptr, SL("type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&ext, "image_type_to_extension", NULL, 404, &_1$$3, &__$false); + ZEPHIR_CALL_FUNCTION(&ext, "image_type_to_extension", NULL, 402, &_1$$3, &__$false); zephir_check_call_status(); } ZEPHIR_INIT_VAR(&_2); @@ -1232,30 +1232,30 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processSave) { ZEPHIR_CPY_WRT(&ext, &_2); ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "gif"); - ZEPHIR_CALL_FUNCTION(&_3, "strcmp", NULL, 394, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_3, "strcmp", NULL, 392, &ext, &_2); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_3, 0)) { ZEPHIR_INIT_ZVAL_NREF(_4$$4); ZVAL_LONG(&_4$$4, 1); zephir_update_property_zval(this_ptr, SL("type"), &_4$$4); zephir_read_property(&_4$$4, this_ptr, SL("type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_5$$4, "image_type_to_mime_type", NULL, 405, &_4$$4); + ZEPHIR_CALL_FUNCTION(&_5$$4, "image_type_to_mime_type", NULL, 403, &_4$$4); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("mime"), &_5$$4); zephir_read_property(&_6$$4, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 395, &_6$$4, &file); + ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 393, &_6$$4, &file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "jpg"); - ZEPHIR_CALL_FUNCTION(&_7, "strcmp", NULL, 394, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_7, "strcmp", NULL, 392, &ext, &_2); zephir_check_call_status(); _8 = ZEPHIR_IS_LONG(&_7, 0); if (!(_8)) { ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "jpeg"); - ZEPHIR_CALL_FUNCTION(&_9, "strcmp", NULL, 394, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_9, "strcmp", NULL, 392, &ext, &_2); zephir_check_call_status(); _8 = ZEPHIR_IS_LONG(&_9, 0); } @@ -1264,7 +1264,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processSave) { ZVAL_LONG(&_10$$5, 2); zephir_update_property_zval(this_ptr, SL("type"), &_10$$5); zephir_read_property(&_10$$5, this_ptr, SL("type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_11$$5, "image_type_to_mime_type", NULL, 405, &_10$$5); + ZEPHIR_CALL_FUNCTION(&_11$$5, "image_type_to_mime_type", NULL, 403, &_10$$5); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("mime"), &_11$$5); if (quality >= 0) { @@ -1275,63 +1275,63 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processSave) { } zephir_read_property(&_12$$6, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_13$$6, quality); - ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 396, &_12$$6, &file, &_13$$6); + ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 394, &_12$$6, &file, &_13$$6); zephir_check_call_status(); } else { zephir_read_property(&_14$$9, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 396, &_14$$9, &file); + ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 394, &_14$$9, &file); zephir_check_call_status(); } RETURN_MM_BOOL(1); } ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "png"); - ZEPHIR_CALL_FUNCTION(&_15, "strcmp", NULL, 394, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_15, "strcmp", NULL, 392, &ext, &_2); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_15, 0)) { ZEPHIR_INIT_ZVAL_NREF(_16$$10); ZVAL_LONG(&_16$$10, 3); zephir_update_property_zval(this_ptr, SL("type"), &_16$$10); zephir_read_property(&_16$$10, this_ptr, SL("type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_17$$10, "image_type_to_mime_type", NULL, 405, &_16$$10); + ZEPHIR_CALL_FUNCTION(&_17$$10, "image_type_to_mime_type", NULL, 403, &_16$$10); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("mime"), &_17$$10); zephir_read_property(&_18$$10, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 397, &_18$$10, &file); + ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 395, &_18$$10, &file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "wbmp"); - ZEPHIR_CALL_FUNCTION(&_19, "strcmp", NULL, 394, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_19, "strcmp", NULL, 392, &ext, &_2); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_19, 0)) { ZEPHIR_INIT_ZVAL_NREF(_20$$11); ZVAL_LONG(&_20$$11, 15); zephir_update_property_zval(this_ptr, SL("type"), &_20$$11); zephir_read_property(&_20$$11, this_ptr, SL("type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_21$$11, "image_type_to_mime_type", NULL, 405, &_20$$11); + ZEPHIR_CALL_FUNCTION(&_21$$11, "image_type_to_mime_type", NULL, 403, &_20$$11); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("mime"), &_21$$11); zephir_read_property(&_22$$11, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 398, &_22$$11, &file); + ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 396, &_22$$11, &file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "xbm"); - ZEPHIR_CALL_FUNCTION(&_23, "strcmp", NULL, 394, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_23, "strcmp", NULL, 392, &ext, &_2); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_23, 0)) { ZEPHIR_INIT_ZVAL_NREF(_24$$12); ZVAL_LONG(&_24$$12, 16); zephir_update_property_zval(this_ptr, SL("type"), &_24$$12); zephir_read_property(&_24$$12, this_ptr, SL("type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_25$$12, "image_type_to_mime_type", NULL, 405, &_24$$12); + ZEPHIR_CALL_FUNCTION(&_25$$12, "image_type_to_mime_type", NULL, 403, &_24$$12); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("mime"), &_25$$12); zephir_read_property(&_26$$12, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 399, &_26$$12, &file); + ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 397, &_26$$12, &file); zephir_check_call_status(); RETURN_MM_BOOL(1); } @@ -1424,15 +1424,15 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processSharpen) { zephir_read_property(&_5, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_6, (amount - 8)); ZVAL_LONG(&_7, 0); - ZEPHIR_CALL_FUNCTION(&_8, "imageconvolution", NULL, 406, &_5, &matrix, &_6, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "imageconvolution", NULL, 404, &_5, &matrix, &_6, &_7); zephir_check_call_status(); if (zephir_is_true(&_8)) { zephir_read_property(&_9$$3, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_10$$3, "imagesx", NULL, 383, &_9$$3); + ZEPHIR_CALL_FUNCTION(&_10$$3, "imagesx", NULL, 381, &_9$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("width"), &_10$$3); zephir_read_property(&_11$$3, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_12$$3, "imagesy", NULL, 384, &_11$$3); + ZEPHIR_CALL_FUNCTION(&_12$$3, "imagesy", NULL, 382, &_11$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("height"), &_12$$3); } @@ -1507,7 +1507,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processText) { if (!(Z_TYPE_P(&fontfile) == IS_UNDEF) && Z_STRLEN_P(&fontfile)) { ZVAL_LONG(&_3$$3, size); ZVAL_LONG(&_4$$3, 0); - ZEPHIR_CALL_FUNCTION(&space, "imagettfbbox", NULL, 407, &_3$$3, &_4$$3, &fontfile, &text); + ZEPHIR_CALL_FUNCTION(&space, "imagettfbbox", NULL, 405, &_3$$3, &_4$$3, &fontfile, &text); zephir_check_call_status(); if (zephir_array_isset_long(&space, 0)) { ZEPHIR_OBS_VAR(&_5$$4); @@ -1560,7 +1560,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processText) { ZVAL_LONG(&_16$$3, g); ZVAL_LONG(&_17$$3, b); ZVAL_LONG(&_18$$3, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 379, &_3$$3, &_4$$3, &_16$$3, &_17$$3, &_18$$3); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 377, &_3$$3, &_4$$3, &_16$$3, &_17$$3, &_18$$3); zephir_check_call_status(); angle = 0; zephir_read_property(&_4$$3, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); @@ -1568,15 +1568,15 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processText) { ZVAL_LONG(&_17$$3, angle); ZVAL_LONG(&_18$$3, offsetX); ZVAL_LONG(&_19$$3, offsetY); - ZEPHIR_CALL_FUNCTION(NULL, "imagettftext", NULL, 408, &_4$$3, &_16$$3, &_17$$3, &_18$$3, &_19$$3, &color, &fontfile, &text); + ZEPHIR_CALL_FUNCTION(NULL, "imagettftext", NULL, 406, &_4$$3, &_16$$3, &_17$$3, &_18$$3, &_19$$3, &color, &fontfile, &text); zephir_check_call_status(); } else { ZVAL_LONG(&_20$$8, size); - ZEPHIR_CALL_FUNCTION(&_21$$8, "imagefontwidth", NULL, 409, &_20$$8); + ZEPHIR_CALL_FUNCTION(&_21$$8, "imagefontwidth", NULL, 407, &_20$$8); zephir_check_call_status(); width = (zephir_get_intval(&_21$$8) * zephir_fast_strlen_ev(&text)); ZVAL_LONG(&_20$$8, size); - ZEPHIR_CALL_FUNCTION(&_22$$8, "imagefontheight", NULL, 410, &_20$$8); + ZEPHIR_CALL_FUNCTION(&_22$$8, "imagefontheight", NULL, 408, &_20$$8); zephir_check_call_status(); height = zephir_get_intval(&_22$$8); if (offsetX < 0) { @@ -1592,13 +1592,13 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processText) { ZVAL_LONG(&_26$$8, g); ZVAL_LONG(&_27$$8, b); ZVAL_LONG(&_28$$8, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 379, &_20$$8, &_25$$8, &_26$$8, &_27$$8, &_28$$8); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 377, &_20$$8, &_25$$8, &_26$$8, &_27$$8, &_28$$8); zephir_check_call_status(); zephir_read_property(&_25$$8, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_26$$8, size); ZVAL_LONG(&_27$$8, offsetX); ZVAL_LONG(&_28$$8, offsetY); - ZEPHIR_CALL_FUNCTION(NULL, "imagestring", NULL, 411, &_25$$8, &_26$$8, &_27$$8, &_28$$8, &text, &color); + ZEPHIR_CALL_FUNCTION(NULL, "imagestring", NULL, 409, &_25$$8, &_26$$8, &_27$$8, &_28$$8, &text, &color); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -1645,14 +1645,14 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processWatermark) { ZEPHIR_CALL_METHOD(&_0, watermark, "render", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&overlay, "imagecreatefromstring", NULL, 386, &_0); + ZEPHIR_CALL_FUNCTION(&overlay, "imagecreatefromstring", NULL, 384, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 373, &overlay, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 371, &overlay, &__$true); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 383, &overlay); + ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 381, &overlay); zephir_check_call_status(); width = zephir_get_intval(&_1); - ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 384, &overlay); + ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 382, &overlay); zephir_check_call_status(); height = zephir_get_intval(&_2); if (opacity < 100) { @@ -1666,20 +1666,20 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processWatermark) { ZVAL_LONG(&_6$$3, 127); ZVAL_LONG(&_7$$3, 127); ZVAL_LONG(&_8$$3, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 379, &overlay, &_4$$3, &_6$$3, &_7$$3, &_8$$3); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 377, &overlay, &_4$$3, &_6$$3, &_7$$3, &_8$$3); zephir_check_call_status(); ZVAL_LONG(&_4$$3, 3); - ZEPHIR_CALL_FUNCTION(NULL, "imagelayereffect", NULL, 412, &overlay, &_4$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagelayereffect", NULL, 410, &overlay, &_4$$3); zephir_check_call_status(); ZVAL_LONG(&_4$$3, 0); ZVAL_LONG(&_6$$3, 0); ZVAL_LONG(&_7$$3, width); ZVAL_LONG(&_8$$3, height); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", NULL, 392, &overlay, &_4$$3, &_6$$3, &_7$$3, &_8$$3, &color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", NULL, 390, &overlay, &_4$$3, &_6$$3, &_7$$3, &_8$$3, &color); zephir_check_call_status(); } zephir_read_property(&_9, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 375, &_9, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 373, &_9, &__$true); zephir_check_call_status(); zephir_read_property(&_10, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_11, offsetX); @@ -1688,10 +1688,10 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processWatermark) { ZVAL_LONG(&_14, 0); ZVAL_LONG(&_15, width); ZVAL_LONG(&_16, height); - ZEPHIR_CALL_FUNCTION(&_17, "imagecopy", NULL, 380, &_10, &overlay, &_11, &_12, &_13, &_14, &_15, &_16); + ZEPHIR_CALL_FUNCTION(&_17, "imagecopy", NULL, 378, &_10, &overlay, &_11, &_12, &_13, &_14, &_15, &_16); zephir_check_call_status(); if (zephir_is_true(&_17)) { - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &overlay); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 374, &overlay); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/loader.zep.c b/ext/phalcon/loader.zep.c index 789b320bb58..673ec2c7564 100644 --- a/ext/phalcon/loader.zep.c +++ b/ext/phalcon/loader.zep.c @@ -1097,7 +1097,7 @@ PHP_METHOD(Phalcon_Loader, register) { ZVAL_STRING(&_2$$3, "autoLoad"); zephir_array_fast_append(&_1$$3, &_2$$3); ZVAL_BOOL(&_3$$3, (prepend ? 1 : 0)); - ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_register", NULL, 413, &_1$$3, &__$true, &_3$$3); + ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_register", NULL, 411, &_1$$3, &__$true, &_3$$3); zephir_check_call_status(); if (1) { zephir_update_property_zval(this_ptr, SL("registered"), &__$true); @@ -1447,7 +1447,7 @@ PHP_METHOD(Phalcon_Loader, unregister) { ZEPHIR_INIT_VAR(&_2$$3); ZVAL_STRING(&_2$$3, "autoLoad"); zephir_array_fast_append(&_1$$3, &_2$$3); - ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_unregister", NULL, 414, &_1$$3); + ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_unregister", NULL, 412, &_1$$3); zephir_check_call_status(); if (0) { zephir_update_property_zval(this_ptr, SL("registered"), &__$true); diff --git a/ext/phalcon/logger.zep.c b/ext/phalcon/logger.zep.c index 3861f580375..8c770551a7c 100644 --- a/ext/phalcon/logger.zep.c +++ b/ext/phalcon/logger.zep.c @@ -576,7 +576,7 @@ PHP_METHOD(Phalcon_Logger, log) { } - ZEPHIR_CALL_METHOD(&intLevel, this_ptr, "getlevelnumber", NULL, 415, level); + ZEPHIR_CALL_METHOD(&intLevel, this_ptr, "getlevelnumber", NULL, 413, level); zephir_check_call_status(); zephir_get_strval(&_0, message); ZEPHIR_CALL_METHOD(NULL, this_ptr, "addmessage", NULL, 0, level, &_0, &context); @@ -791,7 +791,7 @@ PHP_METHOD(Phalcon_Logger, addMessage) { ZEPHIR_INIT_VAR(&_1); zephir_time(&_1); ZVAL_LONG(&_0, level); - ZEPHIR_CALL_METHOD(NULL, &item, "__construct", NULL, 416, &message, &levelName, &_0, &_1, &context); + ZEPHIR_CALL_METHOD(NULL, &item, "__construct", NULL, 414, &message, &levelName, &_0, &_1, &context); zephir_check_call_status(); zephir_is_iterable(®istered, 0, "phalcon/Logger.zep", 351); if (Z_TYPE_P(®istered) == IS_ARRAY) { diff --git a/ext/phalcon/logger/adapter/syslog.zep.c b/ext/phalcon/logger/adapter/syslog.zep.c index 18111803241..54d565d6558 100644 --- a/ext/phalcon/logger/adapter/syslog.zep.c +++ b/ext/phalcon/logger/adapter/syslog.zep.c @@ -159,7 +159,7 @@ PHP_METHOD(Phalcon_Logger_Adapter_Syslog, close) { if (!(zephir_is_true(&_0))) { RETURN_MM_BOOL(1); } - ZEPHIR_RETURN_CALL_FUNCTION("closelog", NULL, 417); + ZEPHIR_RETURN_CALL_FUNCTION("closelog", NULL, 415); zephir_check_call_status(); RETURN_MM(); @@ -212,7 +212,7 @@ PHP_METHOD(Phalcon_Logger_Adapter_Syslog, process) { ZEPHIR_CPY_WRT(&facility, &_0); zephir_read_property(&_0, this_ptr, SL("option"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&option, &_0); - ZEPHIR_CALL_FUNCTION(&result, "openlog", NULL, 418, &name, &option, &facility); + ZEPHIR_CALL_FUNCTION(&result, "openlog", NULL, 416, &name, &option, &facility); zephir_check_call_status(); if (!zephir_is_true(&result)) { ZEPHIR_INIT_VAR(&_1$$4); @@ -221,7 +221,7 @@ PHP_METHOD(Phalcon_Logger_Adapter_Syslog, process) { ZVAL_STRING(&_2$$4, "Cannot open syslog for name [%s] and facility [%s]"); ZEPHIR_CALL_FUNCTION(&_3$$4, "sprintf", NULL, 182, &_2$$4, &name, &facility); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 419, &_3$$4); + ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 417, &_3$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$4, "phalcon/Logger/Adapter/Syslog.zep", 132 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -234,10 +234,10 @@ PHP_METHOD(Phalcon_Logger_Adapter_Syslog, process) { zephir_update_property_zval(this_ptr, SL("opened"), &__$false); } zephir_array_fetch_long(&_4, &message, 1, PH_NOISY | PH_READONLY, "phalcon/Logger/Adapter/Syslog.zep", 137 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&level, this_ptr, "logleveltosyslog", NULL, 420, &_4); + ZEPHIR_CALL_METHOD(&level, this_ptr, "logleveltosyslog", NULL, 418, &_4); zephir_check_call_status(); zephir_array_fetch_long(&_5, &message, 1, PH_NOISY | PH_READONLY, "phalcon/Logger/Adapter/Syslog.zep", 139 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(NULL, "syslog", NULL, 421, &level, &_5); + ZEPHIR_CALL_FUNCTION(NULL, "syslog", NULL, 419, &level, &_5); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/logger/formatter/json.zep.c b/ext/phalcon/logger/formatter/json.zep.c index eca3311375a..8ad05eafa5e 100644 --- a/ext/phalcon/logger/formatter/json.zep.c +++ b/ext/phalcon/logger/formatter/json.zep.c @@ -163,7 +163,7 @@ PHP_METHOD(Phalcon_Logger_Formatter_Json, format) { zephir_read_property(&_6, this_ptr, SL("dateFormat"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CALL_METHOD(&_5, item, "gettime", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_7, "date", NULL, 422, &_6, &_5); + ZEPHIR_CALL_FUNCTION(&_7, "date", NULL, 420, &_6, &_5); zephir_check_call_status(); zephir_array_update_string(&_4, SL("timestamp"), &_7, PH_COPY | PH_SEPARATE); zephir_json_encode(&_3, &_4, 0 ); diff --git a/ext/phalcon/logger/formatter/line.zep.c b/ext/phalcon/logger/formatter/line.zep.c index fec6d0cd0ae..c2c411fb8ae 100644 --- a/ext/phalcon/logger/formatter/line.zep.c +++ b/ext/phalcon/logger/formatter/line.zep.c @@ -202,7 +202,7 @@ PHP_METHOD(Phalcon_Logger_Formatter_Line, format) { zephir_read_property(&_2$$3, this_ptr, SL("dateFormat"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CALL_METHOD(&_3$$3, item, "gettime", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_4$$3, "date", NULL, 422, &_2$$3, &_3$$3); + ZEPHIR_CALL_FUNCTION(&_4$$3, "date", NULL, 420, &_2$$3, &_3$$3); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_5$$3); ZVAL_STRING(&_5$$3, "%date%"); diff --git a/ext/phalcon/logger/loggerfactory.zep.c b/ext/phalcon/logger/loggerfactory.zep.c index 4f80e6849b1..5e7a93c9127 100644 --- a/ext/phalcon/logger/loggerfactory.zep.c +++ b/ext/phalcon/logger/loggerfactory.zep.c @@ -244,7 +244,7 @@ PHP_METHOD(Phalcon_Logger_LoggerFactory, newInstance) { object_init_ex(return_value, phalcon_logger_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 423, &name, &adapters); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 421, &name, &adapters); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/messages/messages.zep.c b/ext/phalcon/messages/messages.zep.c index 7daeb455322..5fab4dd0cbc 100644 --- a/ext/phalcon/messages/messages.zep.c +++ b/ext/phalcon/messages/messages.zep.c @@ -520,7 +520,7 @@ PHP_METHOD(Phalcon_Messages_Messages, offsetUnset) { zephir_read_property(&_1$$3, this_ptr, SL("messages"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_2$$3, 1); ZEPHIR_MAKE_REF(&_1$$3); - ZEPHIR_CALL_FUNCTION(NULL, "array_splice", NULL, 424, &_1$$3, index, &_2$$3); + ZEPHIR_CALL_FUNCTION(NULL, "array_splice", NULL, 422, &_1$$3, index, &_2$$3); ZEPHIR_UNREF(&_1$$3); zephir_check_call_status(); } diff --git a/ext/phalcon/mvc/micro.zep.c b/ext/phalcon/mvc/micro.zep.c index ca56341ad65..d80256de13a 100644 --- a/ext/phalcon/mvc/micro.zep.c +++ b/ext/phalcon/mvc/micro.zep.c @@ -468,11 +468,11 @@ PHP_METHOD(Phalcon_Mvc_Micro, getService) { if (Z_TYPE_P(&container) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&container); object_init_ex(&container, phalcon_di_factorydefault_ce); - ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 425); + ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 427); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("container"), &container); } - ZEPHIR_RETURN_CALL_METHOD(&container, "get", NULL, 426, &serviceName); + ZEPHIR_RETURN_CALL_METHOD(&container, "get", NULL, 428, &serviceName); zephir_check_call_status(); RETURN_MM(); @@ -515,11 +515,11 @@ PHP_METHOD(Phalcon_Mvc_Micro, getSharedService) { if (Z_TYPE_P(&container) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&container); object_init_ex(&container, phalcon_di_factorydefault_ce); - ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 425); + ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 427); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("container"), &container); } - ZEPHIR_RETURN_CALL_METHOD(&container, "getshared", NULL, 427, &serviceName); + ZEPHIR_RETURN_CALL_METHOD(&container, "getshared", NULL, 429, &serviceName); zephir_check_call_status(); RETURN_MM(); @@ -1324,11 +1324,11 @@ PHP_METHOD(Phalcon_Mvc_Micro, hasService) { if (Z_TYPE_P(&container) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&container); object_init_ex(&container, phalcon_di_factorydefault_ce); - ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 425); + ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 427); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("container"), &container); } - ZEPHIR_RETURN_CALL_METHOD(&container, "has", NULL, 428, &serviceName); + ZEPHIR_RETURN_CALL_METHOD(&container, "has", NULL, 430, &serviceName); zephir_check_call_status(); RETURN_MM(); @@ -1475,7 +1475,7 @@ PHP_METHOD(Phalcon_Mvc_Micro, mount) { if (zephir_is_true(&_0)) { ZEPHIR_INIT_VAR(&lazyHandler); object_init_ex(&lazyHandler, phalcon_mvc_micro_lazyloader_ce); - ZEPHIR_CALL_METHOD(NULL, &lazyHandler, "__construct", NULL, 429, &mainHandler); + ZEPHIR_CALL_METHOD(NULL, &lazyHandler, "__construct", NULL, 431, &mainHandler); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&lazyHandler, &mainHandler); @@ -1728,11 +1728,11 @@ PHP_METHOD(Phalcon_Mvc_Micro, offsetUnset) { if (Z_TYPE_P(&container) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&container); object_init_ex(&container, phalcon_di_factorydefault_ce); - ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 425); + ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 427); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("container"), &container); } - ZEPHIR_CALL_METHOD(NULL, &container, "remove", NULL, 430, alias); + ZEPHIR_CALL_METHOD(NULL, &container, "remove", NULL, 432, alias); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -2086,7 +2086,7 @@ PHP_METHOD(Phalcon_Mvc_Micro, setService) { if (Z_TYPE_P(&container) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&container); object_init_ex(&container, phalcon_di_factorydefault_ce); - ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 425); + ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 427); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("container"), &container); } @@ -2095,7 +2095,7 @@ PHP_METHOD(Phalcon_Mvc_Micro, setService) { } else { ZVAL_BOOL(&_0, 0); } - ZEPHIR_RETURN_CALL_METHOD(&container, "set", NULL, 431, &serviceName, definition, &_0); + ZEPHIR_RETURN_CALL_METHOD(&container, "set", NULL, 433, &serviceName, definition, &_0); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/mvc/model.zep.c b/ext/phalcon/mvc/model.zep.c index 31e52d78b9b..7fab2e04c1f 100644 --- a/ext/phalcon/mvc/model.zep.c +++ b/ext/phalcon/mvc/model.zep.c @@ -71,7 +71,9 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Mvc_Model) { - ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Mvc, Model, phalcon, mvc_model, phalcon_di_abstractinjectionaware_ce, phalcon_mvc_model_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); + ZEPHIR_REGISTER_CLASS(Phalcon\\Mvc, Model, phalcon, mvc_model, phalcon_mvc_model_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); + + zend_declare_property_null(phalcon_mvc_model_ce, SL("container"), ZEND_ACC_PROTECTED TSRMLS_CC); zend_declare_property_long(phalcon_mvc_model_ce, SL("dirtyState"), 1, ZEND_ACC_PROTECTED TSRMLS_CC); @@ -121,6 +123,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Mvc_Model) { zend_class_implements(phalcon_mvc_model_ce TSRMLS_CC, 1, phalcon_mvc_entityinterface_ce); zend_class_implements(phalcon_mvc_model_ce TSRMLS_CC, 1, phalcon_mvc_modelinterface_ce); zend_class_implements(phalcon_mvc_model_ce TSRMLS_CC, 1, phalcon_mvc_model_resultinterface_ce); + zend_class_implements(phalcon_mvc_model_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); zend_class_implements(phalcon_mvc_model_ce TSRMLS_CC, 1, zend_ce_serializable); zend_class_implements(phalcon_mvc_model_ce TSRMLS_CC, 1, zephir_get_internal_ce(SL("jsonserializable"))); return SUCCESS; @@ -191,7 +194,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __construct) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 5, &_2$$4); zephir_check_call_status(); - zephir_throw_exception_debug(&_1$$4, "phalcon/Mvc/Model.zep", 140 TSRMLS_CC); + zephir_throw_exception_debug(&_1$$4, "phalcon/Mvc/Model.zep", 142 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -203,7 +206,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __construct) { zephir_check_call_status(); ZEPHIR_CPY_WRT(modelsManager, &_5$$5); if (UNEXPECTED(Z_TYPE_P(modelsManager) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsManager' is not valid", "phalcon/Mvc/Model.zep", 154); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsManager' is not valid", "phalcon/Mvc/Model.zep", 156); return; } } @@ -253,7 +256,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __call) { zephir_get_arrval(&arguments, arguments_param); - ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 432, &method, &arguments); + ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 434, &method, &arguments); zephir_check_call_status(); if (Z_TYPE_P(&records) != IS_NULL) { RETURN_CCTOR(&records); @@ -277,7 +280,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __call) { ZEPHIR_CONCAT_SVSVS(&_3, "The method '", &method, "' doesn't exist on model '", &modelName, "'"); ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 5, &_3); zephir_check_call_status(); - zephir_throw_exception_debug(&_2, "phalcon/Mvc/Model.zep", 222 TSRMLS_CC); + zephir_throw_exception_debug(&_2, "phalcon/Mvc/Model.zep", 224 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; @@ -308,7 +311,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __callStatic) { zephir_get_arrval(&arguments, arguments_param); - ZEPHIR_RETURN_CALL_SELF("_invokefinder", &_0, 432, &method, &arguments); + ZEPHIR_RETURN_CALL_SELF("_invokefinder", &_0, 434, &method, &arguments); zephir_check_call_status(); RETURN_MM(); @@ -370,7 +373,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __get) { zephir_read_property(&_1$$3, this_ptr, SL("dirtyRelated"), PH_NOISY_CC | PH_READONLY); if (zephir_array_isset(&_1$$3, &lowerProperty)) { zephir_read_property(&_2$$4, this_ptr, SL("dirtyRelated"), PH_NOISY_CC | PH_READONLY); - zephir_array_fetch(&_3$$4, &_2$$4, &lowerProperty, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 264 TSRMLS_CC); + zephir_array_fetch(&_3$$4, &_2$$4, &lowerProperty, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 266 TSRMLS_CC); RETURN_CTOR(&_3$$4); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getrelated", NULL, 0, &lowerProperty); @@ -553,7 +556,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __set) { if (ZEPHIR_IS_LONG(&_5$$7, 2) || ZEPHIR_IS_LONG(&_5$$7, 4)) { ZEPHIR_INIT_VAR(&related); array_init(&related); - zephir_is_iterable(value, 0, "phalcon/Mvc/Model.zep", 403); + zephir_is_iterable(value, 0, "phalcon/Mvc/Model.zep", 405); if (Z_TYPE_P(value) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(value), _9$$10) { @@ -561,7 +564,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __set) { ZVAL_COPY(&item, _9$$10); if (Z_TYPE_P(&item) == IS_OBJECT) { if (zephir_instance_of_ev(&item, phalcon_mvc_modelinterface_ce TSRMLS_CC)) { - zephir_array_append(&related, &item, PH_SEPARATE, "phalcon/Mvc/Model.zep", 398); + zephir_array_append(&related, &item, PH_SEPARATE, "phalcon/Mvc/Model.zep", 400); } } } ZEND_HASH_FOREACH_END(); @@ -578,7 +581,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __set) { zephir_check_call_status(); if (Z_TYPE_P(&item) == IS_OBJECT) { if (zephir_instance_of_ev(&item, phalcon_mvc_modelinterface_ce TSRMLS_CC)) { - zephir_array_append(&related, &item, PH_SEPARATE, "phalcon/Mvc/Model.zep", 398); + zephir_array_append(&related, &item, PH_SEPARATE, "phalcon/Mvc/Model.zep", 400); } } ZEPHIR_CALL_METHOD(NULL, value, "next", NULL, 0); @@ -602,13 +605,13 @@ PHP_METHOD(Phalcon_Mvc_Model, __set) { } } - ZEPHIR_CALL_METHOD(&_13, this_ptr, "_possiblesetter", NULL, 433, &property, value); + ZEPHIR_CALL_METHOD(&_13, this_ptr, "_possiblesetter", NULL, 435, &property, value); zephir_check_call_status(); if (zephir_is_true(&_13)) { RETVAL_ZVAL(value, 1, 0); RETURN_MM(); } - ZEPHIR_CALL_FUNCTION(&_14, "property_exists", NULL, 434, this_ptr, &property); + ZEPHIR_CALL_FUNCTION(&_14, "property_exists", NULL, 436, this_ptr, &property); zephir_check_call_status(); if (zephir_is_true(&_14)) { ZEPHIR_CALL_METHOD(&manager, this_ptr, "getmodelsmanager", NULL, 0); @@ -622,7 +625,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __set) { ZEPHIR_CONCAT_SVS(&_17$$20, "Property '", &property, "' does not have a setter."); ZEPHIR_CALL_METHOD(NULL, &_16$$20, "__construct", NULL, 5, &_17$$20); zephir_check_call_status(); - zephir_throw_exception_debug(&_16$$20, "phalcon/Mvc/Model.zep", 432 TSRMLS_CC); + zephir_throw_exception_debug(&_16$$20, "phalcon/Mvc/Model.zep", 434 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -823,7 +826,7 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { if (Z_TYPE_P(dataColumnMap) == IS_ARRAY) { ZEPHIR_INIT_VAR(&dataMapped); array_init(&dataMapped); - zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 566); + zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 568); if (Z_TYPE_P(&data) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _2$$3, _3$$3, _0$$3) { @@ -880,7 +883,7 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { } ZEPHIR_CALL_METHOD(&_4, &metaData, "getattributes", NULL, 0, this_ptr); zephir_check_call_status(); - zephir_is_iterable(&_4, 0, "phalcon/Mvc/Model.zep", 623); + zephir_is_iterable(&_4, 0, "phalcon/Mvc/Model.zep", 625); if (Z_TYPE_P(&_4) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_4), _5) { @@ -891,7 +894,7 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { _7$$12 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_7$$12) { - ZEPHIR_CALL_SELF(&_8$$13, "caseinsensitivecolumnmap", &_9, 435, &columnMap, &attribute); + ZEPHIR_CALL_SELF(&_8$$13, "caseinsensitivecolumnmap", &_9, 437, &columnMap, &attribute); zephir_check_call_status(); ZEPHIR_CPY_WRT(&attribute, &_8$$13); } @@ -905,7 +908,7 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { ZEPHIR_CONCAT_SVS(&_11$$16, "Column '", &attribute, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_10$$16, "__construct", &_12, 5, &_11$$16); zephir_check_call_status(); - zephir_throw_exception_debug(&_10$$16, "phalcon/Mvc/Model.zep", 597 TSRMLS_CC); + zephir_throw_exception_debug(&_10$$16, "phalcon/Mvc/Model.zep", 599 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -923,7 +926,7 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { } _13$$18 = zephir_is_true(&disableAssignSetters); if (!(_13$$18)) { - ZEPHIR_CALL_METHOD(&_14$$18, this_ptr, "_possiblesetter", &_15, 433, &attributeField, &value); + ZEPHIR_CALL_METHOD(&_14$$18, this_ptr, "_possiblesetter", &_15, 435, &attributeField, &value); zephir_check_call_status(); _13$$18 = !zephir_is_true(&_14$$18); } @@ -948,7 +951,7 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { _16$$22 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_16$$22) { - ZEPHIR_CALL_SELF(&_17$$23, "caseinsensitivecolumnmap", &_9, 435, &columnMap, &attribute); + ZEPHIR_CALL_SELF(&_17$$23, "caseinsensitivecolumnmap", &_9, 437, &columnMap, &attribute); zephir_check_call_status(); ZEPHIR_CPY_WRT(&attribute, &_17$$23); } @@ -962,7 +965,7 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { ZEPHIR_CONCAT_SVS(&_19$$26, "Column '", &attribute, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_18$$26, "__construct", &_12, 5, &_19$$26); zephir_check_call_status(); - zephir_throw_exception_debug(&_18$$26, "phalcon/Mvc/Model.zep", 597 TSRMLS_CC); + zephir_throw_exception_debug(&_18$$26, "phalcon/Mvc/Model.zep", 599 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -980,7 +983,7 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { } _20$$28 = zephir_is_true(&disableAssignSetters); if (!(_20$$28)) { - ZEPHIR_CALL_METHOD(&_21$$28, this_ptr, "_possiblesetter", &_15, 433, &attributeField, &value); + ZEPHIR_CALL_METHOD(&_21$$28, this_ptr, "_possiblesetter", &_15, 435, &attributeField, &value); zephir_check_call_status(); _20$$28 = !zephir_is_true(&_21$$28); } @@ -1107,7 +1110,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResult) { ZVAL_LONG(&_0, dirtyState); ZEPHIR_CALL_METHOD(NULL, &instance, "setdirtystate", NULL, 0, &_0); zephir_check_call_status(); - zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 701); + zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 703); if (Z_TYPE_P(&data) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _3, _4, _1) { @@ -1120,7 +1123,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResult) { ZEPHIR_INIT_NVAR(&value); ZVAL_COPY(&value, _1); if (UNEXPECTED(Z_TYPE_P(&key) != IS_STRING)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Invalid key in array data provided to dumpResult()", "phalcon/Mvc/Model.zep", 691); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Invalid key in array data provided to dumpResult()", "phalcon/Mvc/Model.zep", 693); return; } zephir_update_property_zval_zval(&instance, &key, &value TSRMLS_CC); @@ -1139,7 +1142,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResult) { ZEPHIR_CALL_METHOD(&value, &data, "current", NULL, 0); zephir_check_call_status(); if (UNEXPECTED(Z_TYPE_P(&key) != IS_STRING)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Invalid key in array data provided to dumpResult()", "phalcon/Mvc/Model.zep", 691); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Invalid key in array data provided to dumpResult()", "phalcon/Mvc/Model.zep", 693); return; } zephir_update_property_zval_zval(&instance, &key, &value TSRMLS_CC); @@ -1232,7 +1235,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { ZVAL_LONG(&_0, dirtyState); ZEPHIR_CALL_METHOD(NULL, &instance, "setdirtystate", NULL, 0, &_0); zephir_check_call_status(); - zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 804); + zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 806); if (Z_TYPE_P(&data) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _3, _4, _1) { @@ -1260,7 +1263,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { ZEPHIR_CONCAT_SVS(&_6$$7, "Column '", &key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_5$$7, "__construct", &_7, 5, &_6$$7); zephir_check_call_status(); - zephir_throw_exception_debug(&_5$$7, "phalcon/Mvc/Model.zep", 749 TSRMLS_CC); + zephir_throw_exception_debug(&_5$$7, "phalcon/Mvc/Model.zep", 751 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1275,7 +1278,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { _8$$3 = Z_TYPE_P(&value) != IS_NULL; } if (_8$$3) { - zephir_array_fetch_long(&_9$$9, &attribute, 1, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 762 TSRMLS_CC); + zephir_array_fetch_long(&_9$$9, &attribute, 1, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 764 TSRMLS_CC); do { if (ZEPHIR_IS_LONG(&_9$$9, 0)) { ZVAL_LONG(&_10$$10, 10); @@ -1298,7 +1301,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { } while(0); } else { - zephir_array_fetch_long(&_12$$14, &attribute, 1, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 782 TSRMLS_CC); + zephir_array_fetch_long(&_12$$14, &attribute, 1, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 784 TSRMLS_CC); do { if (ZEPHIR_IS_LONG(&_12$$14, 0) || ZEPHIR_IS_LONG(&_12$$14, 9) || ZEPHIR_IS_LONG(&_12$$14, 3) || ZEPHIR_IS_LONG(&_12$$14, 7) || ZEPHIR_IS_LONG(&_12$$14, 8)) { ZEPHIR_INIT_NVAR(&castValue); @@ -1311,7 +1314,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { } ZEPHIR_OBS_NVAR(&attributeName); - zephir_array_fetch_long(&attributeName, &attribute, 0, PH_NOISY, "phalcon/Mvc/Model.zep", 797 TSRMLS_CC); + zephir_array_fetch_long(&attributeName, &attribute, 0, PH_NOISY, "phalcon/Mvc/Model.zep", 799 TSRMLS_CC); zephir_update_property_zval_zval(&instance, &attributeName, &castValue TSRMLS_CC); } ZEND_HASH_FOREACH_END(); } else { @@ -1343,7 +1346,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { ZEPHIR_CONCAT_SVS(&_14$$21, "Column '", &key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_13$$21, "__construct", &_7, 5, &_14$$21); zephir_check_call_status(); - zephir_throw_exception_debug(&_13$$21, "phalcon/Mvc/Model.zep", 749 TSRMLS_CC); + zephir_throw_exception_debug(&_13$$21, "phalcon/Mvc/Model.zep", 751 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1358,7 +1361,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { _15$$17 = Z_TYPE_P(&value) != IS_NULL; } if (_15$$17) { - zephir_array_fetch_long(&_16$$23, &attribute, 1, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 762 TSRMLS_CC); + zephir_array_fetch_long(&_16$$23, &attribute, 1, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 764 TSRMLS_CC); do { if (ZEPHIR_IS_LONG(&_16$$23, 0)) { ZVAL_LONG(&_17$$24, 10); @@ -1381,7 +1384,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { } while(0); } else { - zephir_array_fetch_long(&_18$$28, &attribute, 1, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 782 TSRMLS_CC); + zephir_array_fetch_long(&_18$$28, &attribute, 1, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 784 TSRMLS_CC); do { if (ZEPHIR_IS_LONG(&_18$$28, 0) || ZEPHIR_IS_LONG(&_18$$28, 9) || ZEPHIR_IS_LONG(&_18$$28, 3) || ZEPHIR_IS_LONG(&_18$$28, 7) || ZEPHIR_IS_LONG(&_18$$28, 8)) { ZEPHIR_INIT_NVAR(&castValue); @@ -1394,7 +1397,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { } ZEPHIR_OBS_NVAR(&attributeName); - zephir_array_fetch_long(&attributeName, &attribute, 0, PH_NOISY, "phalcon/Mvc/Model.zep", 797 TSRMLS_CC); + zephir_array_fetch_long(&attributeName, &attribute, 0, PH_NOISY, "phalcon/Mvc/Model.zep", 799 TSRMLS_CC); zephir_update_property_zval_zval(&instance, &attributeName, &castValue TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, &data, "next", NULL, 0); zephir_check_call_status(); @@ -1465,7 +1468,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { } ZEPHIR_INIT_VAR(&hydrateArray); array_init(&hydrateArray); - zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 885); + zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 887); if (Z_TYPE_P(&data) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _2, _3, _0) { @@ -1486,7 +1489,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { _4$$7 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_4$$7) { - ZEPHIR_CALL_SELF(&_5$$8, "caseinsensitivecolumnmap", &_6, 435, columnMap, &key); + ZEPHIR_CALL_SELF(&_5$$8, "caseinsensitivecolumnmap", &_6, 437, columnMap, &key); zephir_check_call_status(); ZEPHIR_CPY_WRT(&key, &_5$$8); } @@ -1499,7 +1502,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { ZEPHIR_CONCAT_SVS(&_8$$10, "Column '", &key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_7$$10, "__construct", &_9, 5, &_8$$10); zephir_check_call_status(); - zephir_throw_exception_debug(&_7$$10, "phalcon/Mvc/Model.zep", 864 TSRMLS_CC); + zephir_throw_exception_debug(&_7$$10, "phalcon/Mvc/Model.zep", 866 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1507,7 +1510,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { } if (Z_TYPE_P(&attribute) == IS_ARRAY) { ZEPHIR_OBS_NVAR(&attributeName); - zephir_array_fetch_long(&attributeName, &attribute, 0, PH_NOISY, "phalcon/Mvc/Model.zep", 874 TSRMLS_CC); + zephir_array_fetch_long(&attributeName, &attribute, 0, PH_NOISY, "phalcon/Mvc/Model.zep", 876 TSRMLS_CC); } else { ZEPHIR_CPY_WRT(&attributeName, &attribute); } @@ -1538,7 +1541,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { _10$$16 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_10$$16) { - ZEPHIR_CALL_SELF(&_11$$17, "caseinsensitivecolumnmap", &_6, 435, columnMap, &key); + ZEPHIR_CALL_SELF(&_11$$17, "caseinsensitivecolumnmap", &_6, 437, columnMap, &key); zephir_check_call_status(); ZEPHIR_CPY_WRT(&key, &_11$$17); } @@ -1551,7 +1554,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { ZEPHIR_CONCAT_SVS(&_13$$19, "Column '", &key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_12$$19, "__construct", &_9, 5, &_13$$19); zephir_check_call_status(); - zephir_throw_exception_debug(&_12$$19, "phalcon/Mvc/Model.zep", 864 TSRMLS_CC); + zephir_throw_exception_debug(&_12$$19, "phalcon/Mvc/Model.zep", 866 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1559,7 +1562,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { } if (Z_TYPE_P(&attribute) == IS_ARRAY) { ZEPHIR_OBS_NVAR(&attributeName); - zephir_array_fetch_long(&attributeName, &attribute, 0, PH_NOISY, "phalcon/Mvc/Model.zep", 874 TSRMLS_CC); + zephir_array_fetch_long(&attributeName, &attribute, 0, PH_NOISY, "phalcon/Mvc/Model.zep", 876 TSRMLS_CC); } else { ZEPHIR_CPY_WRT(&attributeName, &attribute); } @@ -1574,7 +1577,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { ZEPHIR_INIT_NVAR(&value); ZEPHIR_INIT_NVAR(&key); if (hydrationMode != 1) { - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_helper_arr_ce, "arraytoobject", &_14, 436, &hydrateArray); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_helper_arr_ce, "arraytoobject", &_14, 438, &hydrateArray); zephir_check_call_status(); RETURN_MM(); } @@ -1685,7 +1688,7 @@ PHP_METHOD(Phalcon_Mvc_Model, create) { ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "getreadconnection", NULL, 437); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "getreadconnection", NULL, 439); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_0, this_ptr, "_exists", NULL, 0, &metaData, &_1); zephir_check_call_status(); @@ -1784,7 +1787,7 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&writeConnection, this_ptr, "getwriteconnection", NULL, 438); + ZEPHIR_CALL_METHOD(&writeConnection, this_ptr, "getwriteconnection", NULL, 440); zephir_check_call_status(); ZEPHIR_INIT_ZVAL_NREF(_0); ZVAL_LONG(&_0, 3); @@ -1793,7 +1796,7 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { array_init(&_1); zephir_update_property_zval(this_ptr, SL("errorMessages"), &_1); if (ZEPHIR_GLOBAL(orm).virtual_foreign_keys) { - ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "_checkforeignkeysreverserestrict", NULL, 439); + ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "_checkforeignkeysreverserestrict", NULL, 441); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_2$$3)) { RETURN_MM_BOOL(0); @@ -1817,10 +1820,10 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZVAL_NULL(&columnMap); } if (UNEXPECTED(!(zephir_fast_count_int(&primaryKeys TSRMLS_CC)))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/Mvc/Model.zep", 1039); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/Mvc/Model.zep", 1041); return; } - zephir_is_iterable(&primaryKeys, 0, "phalcon/Mvc/Model.zep", 1087); + zephir_is_iterable(&primaryKeys, 0, "phalcon/Mvc/Model.zep", 1089); if (Z_TYPE_P(&primaryKeys) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&primaryKeys), _3) { @@ -1834,7 +1837,7 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(&_6$$9, "Column '", &primaryKey, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, &_5$$9, "__construct", &_7, 5, &_6$$9); zephir_check_call_status(); - zephir_throw_exception_debug(&_5$$9, "phalcon/Mvc/Model.zep", 1053 TSRMLS_CC); + zephir_throw_exception_debug(&_5$$9, "phalcon/Mvc/Model.zep", 1055 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1847,7 +1850,7 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(&_9$$11, "Column '", &primaryKey, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_8$$11, "__construct", &_7, 5, &_9$$11); zephir_check_call_status(); - zephir_throw_exception_debug(&_8$$11, "phalcon/Mvc/Model.zep", 1063 TSRMLS_CC); + zephir_throw_exception_debug(&_8$$11, "phalcon/Mvc/Model.zep", 1065 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1862,17 +1865,17 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(&_11$$13, "Cannot delete the record because the primary key attribute: '", &attributeField, "' wasn't set"); ZEPHIR_CALL_METHOD(NULL, &_10$$13, "__construct", &_7, 5, &_11$$13); zephir_check_call_status(); - zephir_throw_exception_debug(&_10$$13, "phalcon/Mvc/Model.zep", 1076 TSRMLS_CC); + zephir_throw_exception_debug(&_10$$13, "phalcon/Mvc/Model.zep", 1078 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1082); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1084); ZEPHIR_CALL_METHOD(&_12$$8, &writeConnection, "escapeidentifier", &_13, 0, &primaryKey); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_14$$8); ZEPHIR_CONCAT_VS(&_14$$8, &_12$$8, " = ?"); - zephir_array_append(&conditions, &_14$$8, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1083); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1084); + zephir_array_append(&conditions, &_14$$8, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1085); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1086); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &primaryKeys, "rewind", NULL, 0); @@ -1893,7 +1896,7 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(&_16$$15, "Column '", &primaryKey, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, &_15$$15, "__construct", &_7, 5, &_16$$15); zephir_check_call_status(); - zephir_throw_exception_debug(&_15$$15, "phalcon/Mvc/Model.zep", 1053 TSRMLS_CC); + zephir_throw_exception_debug(&_15$$15, "phalcon/Mvc/Model.zep", 1055 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1906,7 +1909,7 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(&_18$$17, "Column '", &primaryKey, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_17$$17, "__construct", &_7, 5, &_18$$17); zephir_check_call_status(); - zephir_throw_exception_debug(&_17$$17, "phalcon/Mvc/Model.zep", 1063 TSRMLS_CC); + zephir_throw_exception_debug(&_17$$17, "phalcon/Mvc/Model.zep", 1065 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1921,17 +1924,17 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(&_20$$19, "Cannot delete the record because the primary key attribute: '", &attributeField, "' wasn't set"); ZEPHIR_CALL_METHOD(NULL, &_19$$19, "__construct", &_7, 5, &_20$$19); zephir_check_call_status(); - zephir_throw_exception_debug(&_19$$19, "phalcon/Mvc/Model.zep", 1076 TSRMLS_CC); + zephir_throw_exception_debug(&_19$$19, "phalcon/Mvc/Model.zep", 1078 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1082); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1084); ZEPHIR_CALL_METHOD(&_21$$14, &writeConnection, "escapeidentifier", &_22, 0, &primaryKey); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_23$$14); ZEPHIR_CONCAT_VS(&_23$$14, &_21$$14, " = ?"); - zephir_array_append(&conditions, &_23$$14, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1083); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1084); + zephir_array_append(&conditions, &_23$$14, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1085); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1086); ZEPHIR_CALL_METHOD(NULL, &primaryKeys, "next", NULL, 0); zephir_check_call_status(); } @@ -1955,9 +1958,9 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { RETURN_MM_BOOL(1); } } - ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 440); + ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 442); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 441); + ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 443); zephir_check_call_status(); if (zephir_is_true(&schema)) { ZEPHIR_INIT_VAR(&table); @@ -1972,7 +1975,7 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CALL_METHOD(&success, &writeConnection, "delete", NULL, 0, &table, &_27, &values, &bindTypes); zephir_check_call_status(); if (ZEPHIR_GLOBAL(orm).virtual_foreign_keys) { - ZEPHIR_CALL_METHOD(&_28$$25, this_ptr, "_checkforeignkeysreversecascade", NULL, 442); + ZEPHIR_CALL_METHOD(&_28$$25, this_ptr, "_checkforeignkeysreversecascade", NULL, 444); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_28$$25)) { RETURN_MM_BOOL(0); @@ -2205,12 +2208,12 @@ PHP_METHOD(Phalcon_Mvc_Model, find) { ZEPHIR_INIT_VAR(¶ms); array_init(¶ms); if (Z_TYPE_P(parameters) != IS_NULL) { - zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1330); + zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1332); } } else { ZEPHIR_CPY_WRT(¶ms, parameters); } - ZEPHIR_CALL_STATIC(&query, "getpreparedquery", &_0, 443, ¶ms); + ZEPHIR_CALL_STATIC(&query, "getpreparedquery", &_0, 445, ¶ms); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&resultset, &query, "execute", NULL, 0); zephir_check_call_status(); @@ -2333,11 +2336,11 @@ PHP_METHOD(Phalcon_Mvc_Model, findFirst) { zephir_array_fast_append(&_1$$5, parameters); ZEPHIR_CPY_WRT(¶ms, &_1$$5); } else { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Parameters passed must be of type array, string, numeric or null", "phalcon/Mvc/Model.zep", 1436); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Parameters passed must be of type array, string, numeric or null", "phalcon/Mvc/Model.zep", 1438); return; } ZVAL_LONG(&_3, 1); - ZEPHIR_CALL_STATIC(&query, "getpreparedquery", &_2, 443, ¶ms, &_3); + ZEPHIR_CALL_STATIC(&query, "getpreparedquery", &_2, 445, ¶ms, &_3); zephir_check_call_status(); ZVAL_BOOL(&_3, 1); ZEPHIR_CALL_METHOD(NULL, &query, "setuniquerow", NULL, 0, &_3); @@ -2476,7 +2479,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getChangedFields) { zephir_read_property(&_0, this_ptr, SL("snapshot"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&snapshot, &_0); if (UNEXPECTED(Z_TYPE_P(&snapshot) != IS_ARRAY)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record doesn't have a valid data snapshot", "phalcon/Mvc/Model.zep", 1522); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record doesn't have a valid data snapshot", "phalcon/Mvc/Model.zep", 1524); return; } ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); @@ -2492,7 +2495,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getChangedFields) { ZEPHIR_INIT_VAR(&changed); array_init(&changed); ZEPHIR_INIT_VAR(&_1); - zephir_is_iterable(&allAttributes, 0, "phalcon/Mvc/Model.zep", 1580); + zephir_is_iterable(&allAttributes, 0, "phalcon/Mvc/Model.zep", 1582); if (Z_TYPE_P(&allAttributes) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&allAttributes), _4, _5, _2) { @@ -2505,17 +2508,17 @@ PHP_METHOD(Phalcon_Mvc_Model, getChangedFields) { ZEPHIR_INIT_NVAR(&_1); ZVAL_COPY(&_1, _2); if (!(zephir_array_isset(&snapshot, &name))) { - zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1555); + zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1557); continue; } ZEPHIR_OBS_NVAR(&value); if (!(zephir_fetch_property_zval(&value, this_ptr, &name, PH_SILENT_CC))) { - zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1565); + zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1567); continue; } - zephir_array_fetch(&_6$$6, &snapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 1573 TSRMLS_CC); + zephir_array_fetch(&_6$$6, &snapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 1575 TSRMLS_CC); if (!ZEPHIR_IS_IDENTICAL(&value, &_6$$6)) { - zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1574); + zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1576); continue; } } ZEND_HASH_FOREACH_END(); @@ -2533,17 +2536,17 @@ PHP_METHOD(Phalcon_Mvc_Model, getChangedFields) { ZEPHIR_CALL_METHOD(&_1, &allAttributes, "current", NULL, 0); zephir_check_call_status(); if (!(zephir_array_isset(&snapshot, &name))) { - zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1555); + zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1557); continue; } ZEPHIR_OBS_NVAR(&value); if (!(zephir_fetch_property_zval(&value, this_ptr, &name, PH_SILENT_CC))) { - zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1565); + zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1567); continue; } - zephir_array_fetch(&_7$$10, &snapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 1573 TSRMLS_CC); + zephir_array_fetch(&_7$$10, &snapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 1575 TSRMLS_CC); if (!ZEPHIR_IS_IDENTICAL(&value, &_7$$10)) { - zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1574); + zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1576); continue; } ZEPHIR_CALL_METHOD(NULL, &allAttributes, "next", NULL, 0); @@ -2569,6 +2572,18 @@ PHP_METHOD(Phalcon_Mvc_Model, getDirtyState) { } +/** + * Returns the dependency injection container + */ +PHP_METHOD(Phalcon_Mvc_Model, getDI) { + + zval *this_ptr = getThis(); + + + RETURN_MEMBER(getThis(), "container"); + +} + /** * Returns the custom events manager */ @@ -2648,7 +2663,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getMessages) { ZEPHIR_INIT_VAR(&filtered); array_init(&filtered); zephir_read_property(&_1$$3, this_ptr, SL("errorMessages"), PH_NOISY_CC | PH_READONLY); - zephir_is_iterable(&_1$$3, 0, "phalcon/Mvc/Model.zep", 1637); + zephir_is_iterable(&_1$$3, 0, "phalcon/Mvc/Model.zep", 1647); if (Z_TYPE_P(&_1$$3) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_1$$3), _2$$3) { @@ -2657,7 +2672,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getMessages) { ZEPHIR_CALL_METHOD(&_4$$4, &message, "getfield", NULL, 0); zephir_check_call_status(); if (ZEPHIR_IS_EQUAL(&_4$$4, filter)) { - zephir_array_append(&filtered, &message, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1633); + zephir_array_append(&filtered, &message, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1643); } } ZEND_HASH_FOREACH_END(); } else { @@ -2674,7 +2689,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getMessages) { ZEPHIR_CALL_METHOD(&_5$$6, &message, "getfield", NULL, 0); zephir_check_call_status(); if (ZEPHIR_IS_EQUAL(&_5$$6, filter)) { - zephir_array_append(&filtered, &message, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1633); + zephir_array_append(&filtered, &message, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1643); } ZEPHIR_CALL_METHOD(NULL, &_1$$3, "next", NULL, 0); zephir_check_call_status(); @@ -2728,7 +2743,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getModelsMetaData) { zephir_check_call_status(); ZEPHIR_CPY_WRT(&metaData, &_1$$3); if (UNEXPECTED(Z_TYPE_P(&metaData) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsMetadata' is not valid", "phalcon/Mvc/Model.zep", 1671); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsMetadata' is not valid", "phalcon/Mvc/Model.zep", 1681); return; } zephir_update_property_zval(this_ptr, SL("modelsMetaData"), &metaData); @@ -2870,7 +2885,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getRelated) { ZEPHIR_CONCAT_SVSVS(&_3$$3, "There is no defined relations for the model '", &className, "' using alias '", &alias, "'"); ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 5, &_3$$3); zephir_check_call_status(); - zephir_throw_exception_debug(&_2$$3, "phalcon/Mvc/Model.zep", 1750 TSRMLS_CC); + zephir_throw_exception_debug(&_2$$3, "phalcon/Mvc/Model.zep", 1760 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -2886,7 +2901,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getRelated) { if (_5$$4) { zephir_read_property(&_7$$5, this_ptr, SL("related"), PH_NOISY_CC | PH_READONLY); ZEPHIR_OBS_VAR(&result); - zephir_array_fetch(&result, &_7$$5, &lowerAlias, PH_NOISY, "phalcon/Mvc/Model.zep", 1762 TSRMLS_CC); + zephir_array_fetch(&result, &_7$$5, &lowerAlias, PH_NOISY, "phalcon/Mvc/Model.zep", 1772 TSRMLS_CC); } else { ZEPHIR_CALL_METHOD(&result, &manager, "getrelationrecords", NULL, 0, &relation, this_ptr, arguments); zephir_check_call_status(); @@ -3042,21 +3057,21 @@ PHP_METHOD(Phalcon_Mvc_Model, getUpdatedFields) { zephir_read_property(&_0, this_ptr, SL("oldSnapshot"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&oldSnapshot, &_0); if (UNEXPECTED(!(ZEPHIR_GLOBAL(orm).update_snapshot_on_save))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Update snapshot on save must be enabled for this method to work properly", "phalcon/Mvc/Model.zep", 1861); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Update snapshot on save must be enabled for this method to work properly", "phalcon/Mvc/Model.zep", 1871); return; } if (UNEXPECTED(Z_TYPE_P(&snapshot) != IS_ARRAY)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record doesn't have a valid data snapshot", "phalcon/Mvc/Model.zep", 1867); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record doesn't have a valid data snapshot", "phalcon/Mvc/Model.zep", 1877); return; } zephir_read_property(&_0, this_ptr, SL("dirtyState"), PH_NOISY_CC | PH_READONLY); if (UNEXPECTED(!ZEPHIR_IS_LONG(&_0, 0))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Change checking cannot be performed because the object has not been persisted or is deleted", "phalcon/Mvc/Model.zep", 1876); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Change checking cannot be performed because the object has not been persisted or is deleted", "phalcon/Mvc/Model.zep", 1886); return; } ZEPHIR_INIT_VAR(&updated); array_init(&updated); - zephir_is_iterable(&snapshot, 0, "phalcon/Mvc/Model.zep", 1891); + zephir_is_iterable(&snapshot, 0, "phalcon/Mvc/Model.zep", 1901); if (Z_TYPE_P(&snapshot) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&snapshot), _3, _4, _1) { @@ -3070,11 +3085,11 @@ PHP_METHOD(Phalcon_Mvc_Model, getUpdatedFields) { ZVAL_COPY(&value, _1); _5$$6 = !(zephir_array_isset(&oldSnapshot, &name)); if (!(_5$$6)) { - zephir_array_fetch(&_6$$6, &oldSnapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 1886 TSRMLS_CC); + zephir_array_fetch(&_6$$6, &oldSnapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 1896 TSRMLS_CC); _5$$6 = !ZEPHIR_IS_IDENTICAL(&value, &_6$$6); } if (_5$$6) { - zephir_array_append(&updated, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1887); + zephir_array_append(&updated, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1897); } } ZEND_HASH_FOREACH_END(); } else { @@ -3092,11 +3107,11 @@ PHP_METHOD(Phalcon_Mvc_Model, getUpdatedFields) { zephir_check_call_status(); _7$$8 = !(zephir_array_isset(&oldSnapshot, &name)); if (!(_7$$8)) { - zephir_array_fetch(&_8$$8, &oldSnapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 1886 TSRMLS_CC); + zephir_array_fetch(&_8$$8, &oldSnapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 1896 TSRMLS_CC); _7$$8 = !ZEPHIR_IS_IDENTICAL(&value, &_8$$8); } if (_7$$8) { - zephir_array_append(&updated, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1887); + zephir_array_append(&updated, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1897); } ZEPHIR_CALL_METHOD(NULL, &snapshot, "next", NULL, 0); zephir_check_call_status(); @@ -3480,12 +3495,12 @@ PHP_METHOD(Phalcon_Mvc_Model, query) { ZEPHIR_CALL_METHOD(NULL, &criteria, "__construct", NULL, 0); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, &criteria, "setdi", NULL, 444, container); + ZEPHIR_CALL_METHOD(NULL, &criteria, "setdi", NULL, 446, container); zephir_check_call_status(); } ZEPHIR_INIT_VAR(&_3); zephir_get_called_class(&_3 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &criteria, "setmodelname", NULL, 445, &_3); + ZEPHIR_CALL_METHOD(NULL, &criteria, "setmodelname", NULL, 447, &_3); zephir_check_call_status(); RETURN_CCTOR(&criteria); @@ -3575,18 +3590,18 @@ PHP_METHOD(Phalcon_Mvc_Model, refresh) { zephir_read_property(&_0, this_ptr, SL("dirtyState"), PH_NOISY_CC | PH_READONLY); if (UNEXPECTED(!ZEPHIR_IS_LONG(&_0, 0))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/Mvc/Model.zep", 2146); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/Mvc/Model.zep", 2156); return; } ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&readConnection, this_ptr, "getreadconnection", NULL, 437); + ZEPHIR_CALL_METHOD(&readConnection, this_ptr, "getreadconnection", NULL, 439); zephir_check_call_status(); zephir_read_property(&_1, this_ptr, SL("modelsManager"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&manager, &_1); - ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 440); + ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 442); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 441); + ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 443); zephir_check_call_status(); if (zephir_is_true(&schema)) { ZEPHIR_INIT_VAR(&table); @@ -3602,7 +3617,7 @@ PHP_METHOD(Phalcon_Mvc_Model, refresh) { ZEPHIR_CALL_METHOD(&_2$$6, this_ptr, "_exists", NULL, 0, &metaData, &readConnection); zephir_check_call_status(); if (UNEXPECTED(!zephir_is_true(&_2$$6))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/Mvc/Model.zep", 2171); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/Mvc/Model.zep", 2181); return; } zephir_read_property(&_3$$6, this_ptr, SL("uniqueKey"), PH_NOISY_CC | PH_READONLY); @@ -3611,14 +3626,14 @@ PHP_METHOD(Phalcon_Mvc_Model, refresh) { zephir_read_property(&_1, this_ptr, SL("uniqueParams"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&uniqueParams, &_1); if (UNEXPECTED(Z_TYPE_P(&uniqueParams) != IS_ARRAY)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/Mvc/Model.zep", 2182); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/Mvc/Model.zep", 2192); return; } ZEPHIR_INIT_VAR(&fields); array_init(&fields); ZEPHIR_CALL_METHOD(&_4, &metaData, "getattributes", NULL, 0, this_ptr); zephir_check_call_status(); - zephir_is_iterable(&_4, 0, "phalcon/Mvc/Model.zep", 2197); + zephir_is_iterable(&_4, 0, "phalcon/Mvc/Model.zep", 2207); if (Z_TYPE_P(&_4) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_4), _5) { @@ -3627,7 +3642,7 @@ PHP_METHOD(Phalcon_Mvc_Model, refresh) { ZEPHIR_INIT_NVAR(&_7$$9); zephir_create_array(&_7$$9, 1, 0 TSRMLS_CC); zephir_array_fast_append(&_7$$9, &attribute); - zephir_array_append(&fields, &_7$$9, PH_SEPARATE, "phalcon/Mvc/Model.zep", 2191); + zephir_array_append(&fields, &_7$$9, PH_SEPARATE, "phalcon/Mvc/Model.zep", 2201); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &_4, "rewind", NULL, 0); @@ -3643,7 +3658,7 @@ PHP_METHOD(Phalcon_Mvc_Model, refresh) { ZEPHIR_INIT_NVAR(&_8$$10); zephir_create_array(&_8$$10, 1, 0 TSRMLS_CC); zephir_array_fast_append(&_8$$10, &attribute); - zephir_array_append(&fields, &_8$$10, PH_SEPARATE, "phalcon/Mvc/Model.zep", 2191); + zephir_array_append(&fields, &_8$$10, PH_SEPARATE, "phalcon/Mvc/Model.zep", 2201); ZEPHIR_CALL_METHOD(NULL, &_4, "next", NULL, 0); zephir_check_call_status(); } @@ -3745,7 +3760,7 @@ PHP_METHOD(Phalcon_Mvc_Model, save) { ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&writeConnection, this_ptr, "getwriteconnection", NULL, 438); + ZEPHIR_CALL_METHOD(&writeConnection, this_ptr, "getwriteconnection", NULL, 440); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "prepareSave"); @@ -3761,9 +3776,9 @@ PHP_METHOD(Phalcon_Mvc_Model, save) { RETURN_MM_BOOL(0); } } - ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 440); + ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 442); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 441); + ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 443); zephir_check_call_status(); if (zephir_is_true(&schema)) { ZEPHIR_INIT_VAR(&table); @@ -3773,7 +3788,7 @@ PHP_METHOD(Phalcon_Mvc_Model, save) { } else { ZEPHIR_CPY_WRT(&table, &source); } - ZEPHIR_CALL_METHOD(&readConnection, this_ptr, "getreadconnection", NULL, 437); + ZEPHIR_CALL_METHOD(&readConnection, this_ptr, "getreadconnection", NULL, 439); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&exists, this_ptr, "_exists", NULL, 0, &metaData, &readConnection); zephir_check_call_status(); @@ -3804,9 +3819,9 @@ PHP_METHOD(Phalcon_Mvc_Model, save) { object_init_ex(&_7$$11, phalcon_mvc_model_validationfailed_ce); ZEPHIR_CALL_METHOD(&_8$$11, this_ptr, "getmessages", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_7$$11, "__construct", NULL, 446, this_ptr, &_8$$11); + ZEPHIR_CALL_METHOD(NULL, &_7$$11, "__construct", NULL, 448, this_ptr, &_8$$11); zephir_check_call_status(); - zephir_throw_exception_debug(&_7$$11, "phalcon/Mvc/Model.zep", 2346 TSRMLS_CC); + zephir_throw_exception_debug(&_7$$11, "phalcon/Mvc/Model.zep", 2356 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3956,7 +3971,7 @@ PHP_METHOD(Phalcon_Mvc_Model, unserialize) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 5, &_2$$4); zephir_check_call_status(); - zephir_throw_exception_debug(&_1$$4, "phalcon/Mvc/Model.zep", 2467 TSRMLS_CC); + zephir_throw_exception_debug(&_1$$4, "phalcon/Mvc/Model.zep", 2477 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3967,7 +3982,7 @@ PHP_METHOD(Phalcon_Mvc_Model, unserialize) { zephir_check_call_status(); ZEPHIR_CPY_WRT(&manager, &_5$$3); if (UNEXPECTED(Z_TYPE_P(&manager) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsManager' is not valid", "phalcon/Mvc/Model.zep", 2483); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsManager' is not valid", "phalcon/Mvc/Model.zep", 2493); return; } zephir_update_property_zval(this_ptr, SL("modelsManager"), &manager); @@ -3978,13 +3993,13 @@ PHP_METHOD(Phalcon_Mvc_Model, unserialize) { if (zephir_is_true(&_5$$3)) { if (zephir_array_isset_string_fetch(&snapshot, &attributes, SL("snapshot"), 1)) { zephir_update_property_zval(this_ptr, SL("snapshot"), &snapshot); - zephir_array_fetch_string(&_7$$7, &attributes, SL("_attributes"), PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 2499 TSRMLS_CC); + zephir_array_fetch_string(&_7$$7, &attributes, SL("_attributes"), PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 2509 TSRMLS_CC); ZEPHIR_CPY_WRT(&attributes, &_7$$7); } else { zephir_update_property_zval(this_ptr, SL("snapshot"), &attributes); } } - zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 2511); + zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 2521); if (Z_TYPE_P(&attributes) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&attributes), _10$$3, _11$$3, _8$$3) { @@ -4082,6 +4097,24 @@ PHP_METHOD(Phalcon_Mvc_Model, setDirtyState) { } +/** + * Sets the dependency injection container + */ +PHP_METHOD(Phalcon_Mvc_Model, setDI) { + + zval *container, container_sub; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&container_sub); + + zephir_fetch_params_without_memory_grow(1, 0, &container); + + + + zephir_update_property_zval(this_ptr, SL("container"), container); + +} + /** * Sets a custom events manager */ @@ -4192,7 +4225,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setOldSnapshotData) { if (Z_TYPE_P(columnMap) == IS_ARRAY) { ZEPHIR_INIT_VAR(&snapshot); array_init(&snapshot); - zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 2612); + zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 2630); if (Z_TYPE_P(&data) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _2$$3, _3$$3, _0$$3) { @@ -4216,7 +4249,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setOldSnapshotData) { ZEPHIR_CONCAT_SVS(&_5$$7, "Column '", &key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_4$$7, "__construct", &_6, 5, &_5$$7); zephir_check_call_status(); - zephir_throw_exception_debug(&_4$$7, "phalcon/Mvc/Model.zep", 2592 TSRMLS_CC); + zephir_throw_exception_debug(&_4$$7, "phalcon/Mvc/Model.zep", 2610 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -4232,7 +4265,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setOldSnapshotData) { ZEPHIR_CONCAT_SVS(&_8$$10, "Column '", &key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_7$$10, "__construct", &_6, 5, &_8$$10); zephir_check_call_status(); - zephir_throw_exception_debug(&_7$$10, "phalcon/Mvc/Model.zep", 2603 TSRMLS_CC); + zephir_throw_exception_debug(&_7$$10, "phalcon/Mvc/Model.zep", 2621 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -4266,7 +4299,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setOldSnapshotData) { ZEPHIR_CONCAT_SVS(&_10$$14, "Column '", &key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_9$$14, "__construct", &_6, 5, &_10$$14); zephir_check_call_status(); - zephir_throw_exception_debug(&_9$$14, "phalcon/Mvc/Model.zep", 2592 TSRMLS_CC); + zephir_throw_exception_debug(&_9$$14, "phalcon/Mvc/Model.zep", 2610 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -4282,7 +4315,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setOldSnapshotData) { ZEPHIR_CONCAT_SVS(&_12$$17, "Column '", &key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_11$$17, "__construct", &_6, 5, &_12$$17); zephir_check_call_status(); - zephir_throw_exception_debug(&_11$$17, "phalcon/Mvc/Model.zep", 2603 TSRMLS_CC); + zephir_throw_exception_debug(&_11$$17, "phalcon/Mvc/Model.zep", 2621 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -4355,7 +4388,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { if (Z_TYPE_P(columnMap) == IS_ARRAY) { ZEPHIR_INIT_VAR(&snapshot); array_init(&snapshot); - zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 2677); + zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 2695); if (Z_TYPE_P(&data) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _2$$3, _3$$3, _0$$3) { @@ -4375,7 +4408,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { _4$$4 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_4$$4) { - ZEPHIR_CALL_SELF(&_5$$6, "caseinsensitivecolumnmap", &_6, 435, columnMap, &key); + ZEPHIR_CALL_SELF(&_5$$6, "caseinsensitivecolumnmap", &_6, 437, columnMap, &key); zephir_check_call_status(); ZEPHIR_CPY_WRT(&key, &_5$$6); } @@ -4388,7 +4421,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { ZEPHIR_CONCAT_SVS(&_8$$8, "Column '", &key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_7$$8, "__construct", &_9, 5, &_8$$8); zephir_check_call_status(); - zephir_throw_exception_debug(&_7$$8, "phalcon/Mvc/Model.zep", 2657 TSRMLS_CC); + zephir_throw_exception_debug(&_7$$8, "phalcon/Mvc/Model.zep", 2675 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -4404,7 +4437,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { ZEPHIR_CONCAT_SVS(&_11$$11, "Column '", &key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_10$$11, "__construct", &_9, 5, &_11$$11); zephir_check_call_status(); - zephir_throw_exception_debug(&_10$$11, "phalcon/Mvc/Model.zep", 2668 TSRMLS_CC); + zephir_throw_exception_debug(&_10$$11, "phalcon/Mvc/Model.zep", 2686 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -4434,7 +4467,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { _12$$12 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_12$$12) { - ZEPHIR_CALL_SELF(&_13$$14, "caseinsensitivecolumnmap", &_6, 435, columnMap, &key); + ZEPHIR_CALL_SELF(&_13$$14, "caseinsensitivecolumnmap", &_6, 437, columnMap, &key); zephir_check_call_status(); ZEPHIR_CPY_WRT(&key, &_13$$14); } @@ -4447,7 +4480,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { ZEPHIR_CONCAT_SVS(&_15$$16, "Column '", &key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_14$$16, "__construct", &_9, 5, &_15$$16); zephir_check_call_status(); - zephir_throw_exception_debug(&_14$$16, "phalcon/Mvc/Model.zep", 2657 TSRMLS_CC); + zephir_throw_exception_debug(&_14$$16, "phalcon/Mvc/Model.zep", 2675 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -4463,7 +4496,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { ZEPHIR_CONCAT_SVS(&_17$$19, "Column '", &key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_16$$19, "__construct", &_9, 5, &_17$$19); zephir_check_call_status(); - zephir_throw_exception_debug(&_16$$19, "phalcon/Mvc/Model.zep", 2668 TSRMLS_CC); + zephir_throw_exception_debug(&_16$$19, "phalcon/Mvc/Model.zep", 2686 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -4812,7 +4845,7 @@ PHP_METHOD(Phalcon_Mvc_Model, toArray) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_0, &metaData, "getattributes", NULL, 0, this_ptr); zephir_check_call_status(); - zephir_is_iterable(&_0, 0, "phalcon/Mvc/Model.zep", 2949); + zephir_is_iterable(&_0, 0, "phalcon/Mvc/Model.zep", 2967); if (Z_TYPE_P(&_0) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_0), _1) { @@ -4824,7 +4857,7 @@ PHP_METHOD(Phalcon_Mvc_Model, toArray) { _3$$4 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_3$$4) { - ZEPHIR_CALL_SELF(&_4$$5, "caseinsensitivecolumnmap", &_5, 435, &columnMap, &attribute); + ZEPHIR_CALL_SELF(&_4$$5, "caseinsensitivecolumnmap", &_5, 437, &columnMap, &attribute); zephir_check_call_status(); ZEPHIR_CPY_WRT(&attribute, &_4$$5); } @@ -4837,7 +4870,7 @@ PHP_METHOD(Phalcon_Mvc_Model, toArray) { ZEPHIR_CONCAT_SVS(&_7$$7, "Column '", &attribute, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_6$$7, "__construct", &_8, 5, &_7$$7); zephir_check_call_status(); - zephir_throw_exception_debug(&_6$$7, "phalcon/Mvc/Model.zep", 2927 TSRMLS_CC); + zephir_throw_exception_debug(&_6$$7, "phalcon/Mvc/Model.zep", 2945 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -4875,7 +4908,7 @@ PHP_METHOD(Phalcon_Mvc_Model, toArray) { _9$$14 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_9$$14) { - ZEPHIR_CALL_SELF(&_10$$15, "caseinsensitivecolumnmap", &_5, 435, &columnMap, &attribute); + ZEPHIR_CALL_SELF(&_10$$15, "caseinsensitivecolumnmap", &_5, 437, &columnMap, &attribute); zephir_check_call_status(); ZEPHIR_CPY_WRT(&attribute, &_10$$15); } @@ -4888,7 +4921,7 @@ PHP_METHOD(Phalcon_Mvc_Model, toArray) { ZEPHIR_CONCAT_SVS(&_12$$17, "Column '", &attribute, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_11$$17, "__construct", &_8, 5, &_12$$17); zephir_check_call_status(); - zephir_throw_exception_debug(&_11$$17, "phalcon/Mvc/Model.zep", 2927 TSRMLS_CC); + zephir_throw_exception_debug(&_11$$17, "phalcon/Mvc/Model.zep", 2945 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -4955,7 +4988,7 @@ PHP_METHOD(Phalcon_Mvc_Model, update) { if (zephir_is_true(&_0)) { ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "getreadconnection", NULL, 437); + ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "getreadconnection", NULL, 439); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_1$$3, this_ptr, "_exists", NULL, 0, &metaData, &_2$$3); zephir_check_call_status(); @@ -5090,7 +5123,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { ZEPHIR_CALL_METHOD(&belongsTo, &manager, "getbelongsto", NULL, 0, this_ptr); zephir_check_call_status(); error = 0; - zephir_is_iterable(&belongsTo, 0, "phalcon/Mvc/Model.zep", 3156); + zephir_is_iterable(&belongsTo, 0, "phalcon/Mvc/Model.zep", 3174); if (Z_TYPE_P(&belongsTo) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&belongsTo), _1) { @@ -5105,7 +5138,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { action = 1; if (zephir_array_isset_string(&foreignKey, SL("action"))) { ZEPHIR_OBS_NVAR(&_3$$5); - zephir_array_fetch_string(&_3$$5, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3051 TSRMLS_CC); + zephir_array_fetch_string(&_3$$5, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3069 TSRMLS_CC); action = zephir_get_intval(&_3$$5); } if (action != 1) { @@ -5125,7 +5158,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { ZEPHIR_CALL_METHOD(&referencedFields, &relation, "getreferencedfields", NULL, 0); zephir_check_call_status(); if (Z_TYPE_P(&fields) == IS_ARRAY) { - zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3094); + zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3112); if (Z_TYPE_P(&fields) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&fields), _8$$7, _9$$7, _6$$7) { @@ -5139,11 +5172,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { ZVAL_COPY(&field, _6$$7); ZEPHIR_OBS_NVAR(&value); zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC); - zephir_array_fetch(&_10$$8, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3086 TSRMLS_CC); + zephir_array_fetch(&_10$$8, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3104 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_11$$8); ZEPHIR_CONCAT_SVSV(&_11$$8, "[", &_10$$8, "] = ?", &position); - zephir_array_append(&conditions, &_11$$8, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3086); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3087); + zephir_array_append(&conditions, &_11$$8, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3104); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3105); if (Z_TYPE_P(&value) == IS_NULL) { numberNull++; } @@ -5163,11 +5196,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { zephir_check_call_status(); ZEPHIR_OBS_NVAR(&value); zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC); - zephir_array_fetch(&_12$$10, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3086 TSRMLS_CC); + zephir_array_fetch(&_12$$10, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3104 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_13$$10); ZEPHIR_CONCAT_SVSV(&_13$$10, "[", &_12$$10, "] = ?", &position); - zephir_array_append(&conditions, &_13$$10, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3086); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3087); + zephir_array_append(&conditions, &_13$$10, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3104); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3105); if (Z_TYPE_P(&value) == IS_NULL) { numberNull++; } @@ -5183,15 +5216,15 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { zephir_fetch_property_zval(&value, this_ptr, &fields, PH_SILENT_CC); ZEPHIR_INIT_LNVAR(_14$$12); ZEPHIR_CONCAT_SVS(&_14$$12, "[", &referencedFields, "] = ?0"); - zephir_array_append(&conditions, &_14$$12, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3098); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3099); + zephir_array_append(&conditions, &_14$$12, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3116); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3117); if (Z_TYPE_P(&value) == IS_NULL) { validateWithNulls = 1; } } ZEPHIR_OBS_NVAR(&extraConditions); if (zephir_array_isset_string_fetch(&extraConditions, &foreignKey, SL("conditions"), 0)) { - zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3110); + zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3128); } if (validateWithNulls) { ZEPHIR_OBS_NVAR(&allowNulls); @@ -5257,7 +5290,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { action = 1; if (zephir_array_isset_string(&foreignKey, SL("action"))) { ZEPHIR_OBS_NVAR(&_24$$24); - zephir_array_fetch_string(&_24$$24, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3051 TSRMLS_CC); + zephir_array_fetch_string(&_24$$24, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3069 TSRMLS_CC); action = zephir_get_intval(&_24$$24); } if (action != 1) { @@ -5277,7 +5310,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { ZEPHIR_CALL_METHOD(&referencedFields, &relation, "getreferencedfields", NULL, 0); zephir_check_call_status(); if (Z_TYPE_P(&fields) == IS_ARRAY) { - zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3094); + zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3112); if (Z_TYPE_P(&fields) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&fields), _29$$26, _30$$26, _27$$26) { @@ -5291,11 +5324,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { ZVAL_COPY(&field, _27$$26); ZEPHIR_OBS_NVAR(&value); zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC); - zephir_array_fetch(&_31$$27, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3086 TSRMLS_CC); + zephir_array_fetch(&_31$$27, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3104 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_32$$27); ZEPHIR_CONCAT_SVSV(&_32$$27, "[", &_31$$27, "] = ?", &position); - zephir_array_append(&conditions, &_32$$27, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3086); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3087); + zephir_array_append(&conditions, &_32$$27, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3104); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3105); if (Z_TYPE_P(&value) == IS_NULL) { numberNull++; } @@ -5315,11 +5348,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { zephir_check_call_status(); ZEPHIR_OBS_NVAR(&value); zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC); - zephir_array_fetch(&_33$$29, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3086 TSRMLS_CC); + zephir_array_fetch(&_33$$29, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3104 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_34$$29); ZEPHIR_CONCAT_SVSV(&_34$$29, "[", &_33$$29, "] = ?", &position); - zephir_array_append(&conditions, &_34$$29, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3086); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3087); + zephir_array_append(&conditions, &_34$$29, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3104); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3105); if (Z_TYPE_P(&value) == IS_NULL) { numberNull++; } @@ -5335,15 +5368,15 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { zephir_fetch_property_zval(&value, this_ptr, &fields, PH_SILENT_CC); ZEPHIR_INIT_LNVAR(_35$$31); ZEPHIR_CONCAT_SVS(&_35$$31, "[", &referencedFields, "] = ?0"); - zephir_array_append(&conditions, &_35$$31, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3098); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3099); + zephir_array_append(&conditions, &_35$$31, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3116); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3117); if (Z_TYPE_P(&value) == IS_NULL) { validateWithNulls = 1; } } ZEPHIR_OBS_NVAR(&extraConditions); if (zephir_array_isset_string_fetch(&extraConditions, &foreignKey, SL("conditions"), 0)) { - zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3110); + zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3128); } if (validateWithNulls) { ZEPHIR_OBS_NVAR(&allowNulls); @@ -5469,7 +5502,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { ZEPHIR_CPY_WRT(&manager, &_0); ZEPHIR_CALL_METHOD(&relations, &manager, "gethasoneandhasmany", NULL, 0, this_ptr); zephir_check_call_status(); - zephir_is_iterable(&relations, 0, "phalcon/Mvc/Model.zep", 3276); + zephir_is_iterable(&relations, 0, "phalcon/Mvc/Model.zep", 3294); if (Z_TYPE_P(&relations) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&relations), _1) { @@ -5487,7 +5520,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { } if (_3$$3) { ZEPHIR_OBS_NVAR(&_4$$5); - zephir_array_fetch_string(&_4$$5, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3208 TSRMLS_CC); + zephir_array_fetch_string(&_4$$5, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3226 TSRMLS_CC); action = zephir_get_intval(&_4$$5); } if (action != 2) { @@ -5506,7 +5539,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { ZEPHIR_INIT_NVAR(&bindParams); array_init(&bindParams); if (Z_TYPE_P(&fields) == IS_ARRAY) { - zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3241); + zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3259); if (Z_TYPE_P(&fields) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&fields), _9$$7, _10$$7, _7$$7) { @@ -5520,11 +5553,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { ZVAL_COPY(&field, _7$$7); ZEPHIR_OBS_NVAR(&value); zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC); - zephir_array_fetch(&_11$$8, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3238 TSRMLS_CC); + zephir_array_fetch(&_11$$8, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3256 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_12$$8); ZEPHIR_CONCAT_SVSV(&_12$$8, "[", &_11$$8, "] = ?", &position); - zephir_array_append(&conditions, &_12$$8, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3238); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3239); + zephir_array_append(&conditions, &_12$$8, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3256); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3257); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &fields, "rewind", NULL, 0); @@ -5541,11 +5574,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { zephir_check_call_status(); ZEPHIR_OBS_NVAR(&value); zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC); - zephir_array_fetch(&_13$$9, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3238 TSRMLS_CC); + zephir_array_fetch(&_13$$9, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3256 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_14$$9); ZEPHIR_CONCAT_SVSV(&_14$$9, "[", &_13$$9, "] = ?", &position); - zephir_array_append(&conditions, &_14$$9, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3238); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3239); + zephir_array_append(&conditions, &_14$$9, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3256); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3257); ZEPHIR_CALL_METHOD(NULL, &fields, "next", NULL, 0); zephir_check_call_status(); } @@ -5557,12 +5590,12 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { zephir_fetch_property_zval(&value, this_ptr, &fields, PH_SILENT_CC); ZEPHIR_INIT_LNVAR(_15$$10); ZEPHIR_CONCAT_SVS(&_15$$10, "[", &referencedFields, "] = ?0"); - zephir_array_append(&conditions, &_15$$10, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3244); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3245); + zephir_array_append(&conditions, &_15$$10, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3262); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3263); } ZEPHIR_OBS_NVAR(&extraConditions); if (zephir_array_isset_string_fetch(&extraConditions, &foreignKey, SL("conditions"), 0)) { - zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3252); + zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3270); } ZEPHIR_INIT_NVAR(&_16$$3); zephir_create_array(&_16$$3, 2, 0 TSRMLS_CC); @@ -5601,7 +5634,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { } if (_19$$13) { ZEPHIR_OBS_NVAR(&_20$$15); - zephir_array_fetch_string(&_20$$15, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3208 TSRMLS_CC); + zephir_array_fetch_string(&_20$$15, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3226 TSRMLS_CC); action = zephir_get_intval(&_20$$15); } if (action != 2) { @@ -5620,7 +5653,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { ZEPHIR_INIT_NVAR(&bindParams); array_init(&bindParams); if (Z_TYPE_P(&fields) == IS_ARRAY) { - zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3241); + zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3259); if (Z_TYPE_P(&fields) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&fields), _25$$17, _26$$17, _23$$17) { @@ -5634,11 +5667,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { ZVAL_COPY(&field, _23$$17); ZEPHIR_OBS_NVAR(&value); zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC); - zephir_array_fetch(&_27$$18, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3238 TSRMLS_CC); + zephir_array_fetch(&_27$$18, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3256 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_28$$18); ZEPHIR_CONCAT_SVSV(&_28$$18, "[", &_27$$18, "] = ?", &position); - zephir_array_append(&conditions, &_28$$18, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3238); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3239); + zephir_array_append(&conditions, &_28$$18, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3256); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3257); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &fields, "rewind", NULL, 0); @@ -5655,11 +5688,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { zephir_check_call_status(); ZEPHIR_OBS_NVAR(&value); zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC); - zephir_array_fetch(&_29$$19, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3238 TSRMLS_CC); + zephir_array_fetch(&_29$$19, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3256 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_30$$19); ZEPHIR_CONCAT_SVSV(&_30$$19, "[", &_29$$19, "] = ?", &position); - zephir_array_append(&conditions, &_30$$19, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3238); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3239); + zephir_array_append(&conditions, &_30$$19, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3256); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3257); ZEPHIR_CALL_METHOD(NULL, &fields, "next", NULL, 0); zephir_check_call_status(); } @@ -5671,12 +5704,12 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { zephir_fetch_property_zval(&value, this_ptr, &fields, PH_SILENT_CC); ZEPHIR_INIT_LNVAR(_31$$20); ZEPHIR_CONCAT_SVS(&_31$$20, "[", &referencedFields, "] = ?0"); - zephir_array_append(&conditions, &_31$$20, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3244); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3245); + zephir_array_append(&conditions, &_31$$20, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3262); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3263); } ZEPHIR_OBS_NVAR(&extraConditions); if (zephir_array_isset_string_fetch(&extraConditions, &foreignKey, SL("conditions"), 0)) { - zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3252); + zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3270); } ZEPHIR_INIT_NVAR(&_32$$13); zephir_create_array(&_32$$13, 2, 0 TSRMLS_CC); @@ -5766,7 +5799,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { ZEPHIR_CALL_METHOD(&relations, &manager, "gethasoneandhasmany", NULL, 0, this_ptr); zephir_check_call_status(); error = 0; - zephir_is_iterable(&relations, 0, "phalcon/Mvc/Model.zep", 3399); + zephir_is_iterable(&relations, 0, "phalcon/Mvc/Model.zep", 3417); if (Z_TYPE_P(&relations) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&relations), _1) { @@ -5784,7 +5817,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { } if (_3$$3) { ZEPHIR_OBS_NVAR(&_4$$5); - zephir_array_fetch_string(&_4$$5, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3322 TSRMLS_CC); + zephir_array_fetch_string(&_4$$5, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3340 TSRMLS_CC); action = zephir_get_intval(&_4$$5); } if (action != 1) { @@ -5803,7 +5836,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { ZEPHIR_INIT_NVAR(&bindParams); array_init(&bindParams); if (Z_TYPE_P(&fields) == IS_ARRAY) { - zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3356); + zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3374); if (Z_TYPE_P(&fields) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&fields), _8$$7, _9$$7, _6$$7) { @@ -5817,11 +5850,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { ZVAL_COPY(&field, _6$$7); ZEPHIR_OBS_NVAR(&value); zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC); - zephir_array_fetch(&_10$$8, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3353 TSRMLS_CC); + zephir_array_fetch(&_10$$8, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3371 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_11$$8); ZEPHIR_CONCAT_SVSV(&_11$$8, "[", &_10$$8, "] = ?", &position); - zephir_array_append(&conditions, &_11$$8, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3353); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3354); + zephir_array_append(&conditions, &_11$$8, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3371); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3372); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &fields, "rewind", NULL, 0); @@ -5838,11 +5871,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { zephir_check_call_status(); ZEPHIR_OBS_NVAR(&value); zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC); - zephir_array_fetch(&_12$$9, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3353 TSRMLS_CC); + zephir_array_fetch(&_12$$9, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3371 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_13$$9); ZEPHIR_CONCAT_SVSV(&_13$$9, "[", &_12$$9, "] = ?", &position); - zephir_array_append(&conditions, &_13$$9, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3353); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3354); + zephir_array_append(&conditions, &_13$$9, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3371); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3372); ZEPHIR_CALL_METHOD(NULL, &fields, "next", NULL, 0); zephir_check_call_status(); } @@ -5854,12 +5887,12 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { zephir_fetch_property_zval(&value, this_ptr, &fields, PH_SILENT_CC); ZEPHIR_INIT_LNVAR(_14$$10); ZEPHIR_CONCAT_SVS(&_14$$10, "[", &referencedFields, "] = ?0"); - zephir_array_append(&conditions, &_14$$10, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3359); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3360); + zephir_array_append(&conditions, &_14$$10, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3377); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3378); } ZEPHIR_OBS_NVAR(&extraConditions); if (zephir_array_isset_string_fetch(&extraConditions, &foreignKey, SL("conditions"), 0)) { - zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3367); + zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3385); } ZEPHIR_INIT_NVAR(&_16$$3); zephir_create_array(&_16$$3, 2, 0 TSRMLS_CC); @@ -5910,7 +5943,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { } if (_22$$14) { ZEPHIR_OBS_NVAR(&_23$$16); - zephir_array_fetch_string(&_23$$16, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3322 TSRMLS_CC); + zephir_array_fetch_string(&_23$$16, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3340 TSRMLS_CC); action = zephir_get_intval(&_23$$16); } if (action != 1) { @@ -5929,7 +5962,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { ZEPHIR_INIT_NVAR(&bindParams); array_init(&bindParams); if (Z_TYPE_P(&fields) == IS_ARRAY) { - zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3356); + zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3374); if (Z_TYPE_P(&fields) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&fields), _27$$18, _28$$18, _25$$18) { @@ -5943,11 +5976,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { ZVAL_COPY(&field, _25$$18); ZEPHIR_OBS_NVAR(&value); zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC); - zephir_array_fetch(&_29$$19, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3353 TSRMLS_CC); + zephir_array_fetch(&_29$$19, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3371 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_30$$19); ZEPHIR_CONCAT_SVSV(&_30$$19, "[", &_29$$19, "] = ?", &position); - zephir_array_append(&conditions, &_30$$19, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3353); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3354); + zephir_array_append(&conditions, &_30$$19, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3371); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3372); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &fields, "rewind", NULL, 0); @@ -5964,11 +5997,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { zephir_check_call_status(); ZEPHIR_OBS_NVAR(&value); zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC); - zephir_array_fetch(&_31$$20, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3353 TSRMLS_CC); + zephir_array_fetch(&_31$$20, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3371 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_32$$20); ZEPHIR_CONCAT_SVSV(&_32$$20, "[", &_31$$20, "] = ?", &position); - zephir_array_append(&conditions, &_32$$20, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3353); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3354); + zephir_array_append(&conditions, &_32$$20, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3371); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3372); ZEPHIR_CALL_METHOD(NULL, &fields, "next", NULL, 0); zephir_check_call_status(); } @@ -5980,12 +6013,12 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { zephir_fetch_property_zval(&value, this_ptr, &fields, PH_SILENT_CC); ZEPHIR_INIT_LNVAR(_33$$21); ZEPHIR_CONCAT_SVS(&_33$$21, "[", &referencedFields, "] = ?0"); - zephir_array_append(&conditions, &_33$$21, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3359); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3360); + zephir_array_append(&conditions, &_33$$21, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3377); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3378); } ZEPHIR_OBS_NVAR(&extraConditions); if (zephir_array_isset_string_fetch(&extraConditions, &foreignKey, SL("conditions"), 0)) { - zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3367); + zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3385); } ZEPHIR_INIT_NVAR(&_35$$14); zephir_create_array(&_35$$14, 2, 0 TSRMLS_CC); @@ -6141,7 +6174,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_INIT_NVAR(&columnMap); ZVAL_NULL(&columnMap); } - zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 3516); + zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 3534); if (Z_TYPE_P(&attributes) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&attributes), _1) { @@ -6156,7 +6189,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CONCAT_SVS(&_4$$7, "Column '", &field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_3$$7, "__construct", &_5, 5, &_4$$7); zephir_check_call_status(); - zephir_throw_exception_debug(&_3$$7, "phalcon/Mvc/Model.zep", 3458 TSRMLS_CC); + zephir_throw_exception_debug(&_3$$7, "phalcon/Mvc/Model.zep", 3476 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -6174,9 +6207,9 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { if (_6$$11) { ZEPHIR_CALL_METHOD(&value, connection, "getdefaultvalue", &_7, 0); zephir_check_call_status(); - zephir_array_fetch(&_8$$12, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3477 TSRMLS_CC); + zephir_array_fetch(&_8$$12, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3495 TSRMLS_CC); zephir_array_update_zval(&snapshot, &attributeField, &_8$$12, PH_COPY | PH_SEPARATE); - zephir_array_fetch(&_9$$12, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3478 TSRMLS_CC); + zephir_array_fetch(&_9$$12, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3496 TSRMLS_CC); zephir_array_update_zval(&unsetDefaultValues, &attributeField, &_9$$12, PH_COPY | PH_SEPARATE); } else { zephir_array_update_zval(&snapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); @@ -6189,28 +6222,28 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CONCAT_SVS(&_11$$14, "Column '", &field, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, &_10$$14, "__construct", &_5, 5, &_11$$14); zephir_check_call_status(); - zephir_throw_exception_debug(&_10$$14, "phalcon/Mvc/Model.zep", 3489 TSRMLS_CC); + zephir_throw_exception_debug(&_10$$14, "phalcon/Mvc/Model.zep", 3507 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3492); - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3493); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3494); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3510); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3511); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3512); } else { if (zephir_array_isset(&defaultValues, &field)) { ZEPHIR_CALL_METHOD(&_12$$16, connection, "getdefaultvalue", &_13, 0); zephir_check_call_status(); - zephir_array_append(&values, &_12$$16, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3497); - zephir_array_fetch(&_14$$16, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3499 TSRMLS_CC); + zephir_array_append(&values, &_12$$16, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3515); + zephir_array_fetch(&_14$$16, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3517 TSRMLS_CC); zephir_array_update_zval(&snapshot, &attributeField, &_14$$16, PH_COPY | PH_SEPARATE); - zephir_array_fetch(&_15$$16, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3500 TSRMLS_CC); + zephir_array_fetch(&_15$$16, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3518 TSRMLS_CC); zephir_array_update_zval(&unsetDefaultValues, &attributeField, &_15$$16, PH_COPY | PH_SEPARATE); } else { - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3502); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3520); zephir_array_update_zval(&snapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); } - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3506); - zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3507); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3524); + zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3525); } } } @@ -6235,7 +6268,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CONCAT_SVS(&_17$$20, "Column '", &field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_16$$20, "__construct", &_5, 5, &_17$$20); zephir_check_call_status(); - zephir_throw_exception_debug(&_16$$20, "phalcon/Mvc/Model.zep", 3458 TSRMLS_CC); + zephir_throw_exception_debug(&_16$$20, "phalcon/Mvc/Model.zep", 3476 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -6253,9 +6286,9 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { if (_18$$24) { ZEPHIR_CALL_METHOD(&value, connection, "getdefaultvalue", &_19, 0); zephir_check_call_status(); - zephir_array_fetch(&_20$$25, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3477 TSRMLS_CC); + zephir_array_fetch(&_20$$25, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3495 TSRMLS_CC); zephir_array_update_zval(&snapshot, &attributeField, &_20$$25, PH_COPY | PH_SEPARATE); - zephir_array_fetch(&_21$$25, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3478 TSRMLS_CC); + zephir_array_fetch(&_21$$25, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3496 TSRMLS_CC); zephir_array_update_zval(&unsetDefaultValues, &attributeField, &_21$$25, PH_COPY | PH_SEPARATE); } else { zephir_array_update_zval(&snapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); @@ -6268,28 +6301,28 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CONCAT_SVS(&_23$$27, "Column '", &field, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, &_22$$27, "__construct", &_5, 5, &_23$$27); zephir_check_call_status(); - zephir_throw_exception_debug(&_22$$27, "phalcon/Mvc/Model.zep", 3489 TSRMLS_CC); + zephir_throw_exception_debug(&_22$$27, "phalcon/Mvc/Model.zep", 3507 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3492); - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3493); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3494); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3510); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3511); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3512); } else { if (zephir_array_isset(&defaultValues, &field)) { ZEPHIR_CALL_METHOD(&_24$$29, connection, "getdefaultvalue", &_25, 0); zephir_check_call_status(); - zephir_array_append(&values, &_24$$29, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3497); - zephir_array_fetch(&_26$$29, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3499 TSRMLS_CC); + zephir_array_append(&values, &_24$$29, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3515); + zephir_array_fetch(&_26$$29, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3517 TSRMLS_CC); zephir_array_update_zval(&snapshot, &attributeField, &_26$$29, PH_COPY | PH_SEPARATE); - zephir_array_fetch(&_27$$29, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3500 TSRMLS_CC); + zephir_array_fetch(&_27$$29, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3518 TSRMLS_CC); zephir_array_update_zval(&unsetDefaultValues, &attributeField, &_27$$29, PH_COPY | PH_SEPARATE); } else { - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3502); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3520); zephir_array_update_zval(&snapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); } - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3506); - zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3507); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3524); + zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3525); } } } @@ -6305,7 +6338,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { zephir_check_call_status(); useExplicitIdentity = zephir_get_boolval(&_28$$31); if (useExplicitIdentity) { - zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3526); + zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3544); } if (Z_TYPE_P(&columnMap) == IS_ARRAY) { ZEPHIR_OBS_NVAR(&attributeField); @@ -6316,7 +6349,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CONCAT_SVS(&_30$$34, "Identity column '", identityField, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_29$$34, "__construct", &_5, 5, &_30$$34); zephir_check_call_status(); - zephir_throw_exception_debug(&_29$$34, "phalcon/Mvc/Model.zep", 3536 TSRMLS_CC); + zephir_throw_exception_debug(&_29$$34, "phalcon/Mvc/Model.zep", 3554 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -6331,12 +6364,12 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { } if (_31$$36) { if (useExplicitIdentity) { - zephir_array_append(&values, &defaultValue, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3548); - zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3548); + zephir_array_append(&values, &defaultValue, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3566); + zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3566); } } else { if (!(useExplicitIdentity)) { - zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3556); + zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3574); } ZEPHIR_OBS_NVAR(&bindType); if (UNEXPECTED(!(zephir_array_isset_fetch(&bindType, &bindDataTypes, identityField, 0 TSRMLS_CC)))) { @@ -6346,17 +6379,17 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CONCAT_SVS(&_33$$41, "Identity column '", identityField, "' isn\\'t part of the table columns"); ZEPHIR_CALL_METHOD(NULL, &_32$$41, "__construct", &_5, 5, &_33$$41); zephir_check_call_status(); - zephir_throw_exception_debug(&_32$$41, "phalcon/Mvc/Model.zep", 3565 TSRMLS_CC); + zephir_throw_exception_debug(&_32$$41, "phalcon/Mvc/Model.zep", 3583 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3568); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3569); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3586); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3587); } } else { if (useExplicitIdentity) { - zephir_array_append(&values, &defaultValue, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3573); - zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3574); + zephir_array_append(&values, &defaultValue, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3591); + zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3592); } } } @@ -6376,9 +6409,9 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CALL_METHOD(&sequenceName, this_ptr, "getsequencename", NULL, 0); zephir_check_call_status(); } else { - ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 441); + ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 443); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 440); + ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 442); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&sequenceName); if (ZEPHIR_IS_EMPTY(&schema)) { @@ -6401,7 +6434,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { zephir_update_property_zval(this_ptr, SL("uniqueParams"), &__$null); } if (zephir_is_true(&success)) { - zephir_is_iterable(&unsetDefaultValues, 0, "phalcon/Mvc/Model.zep", 3637); + zephir_is_iterable(&unsetDefaultValues, 0, "phalcon/Mvc/Model.zep", 3655); if (Z_TYPE_P(&unsetDefaultValues) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&unsetDefaultValues), _40$$51, _41$$51, _38$$51) { @@ -6566,7 +6599,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_INIT_NVAR(&columnMap); ZVAL_NULL(&columnMap); } - zephir_is_iterable(&nonPrimary, 0, "phalcon/Mvc/Model.zep", 3812); + zephir_is_iterable(&nonPrimary, 0, "phalcon/Mvc/Model.zep", 3830); if (Z_TYPE_P(&nonPrimary) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&nonPrimary), _2) { @@ -6581,7 +6614,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(&_5$$9, "Column '", &field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_4$$9, "__construct", &_6, 5, &_5$$9); zephir_check_call_status(); - zephir_throw_exception_debug(&_4$$9, "phalcon/Mvc/Model.zep", 3701 TSRMLS_CC); + zephir_throw_exception_debug(&_4$$9, "phalcon/Mvc/Model.zep", 3719 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -6597,16 +6630,16 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(&_8$$12, "Column '", &field, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, &_7$$12, "__construct", &_6, 5, &_8$$12); zephir_check_call_status(); - zephir_throw_exception_debug(&_7$$12, "phalcon/Mvc/Model.zep", 3714 TSRMLS_CC); + zephir_throw_exception_debug(&_7$$12, "phalcon/Mvc/Model.zep", 3732 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } ZEPHIR_OBS_NVAR(&value); if (zephir_fetch_property_zval(&value, this_ptr, &attributeField, PH_SILENT_CC)) { if (!(useDynamicUpdate)) { - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3726); - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3727); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3728); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3744); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3745); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3746); } else { ZEPHIR_OBS_NVAR(&snapshotValue); if (!(zephir_array_isset_fetch(&snapshotValue, &snapshot, &attributeField, 0 TSRMLS_CC))) { @@ -6626,7 +6659,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(&_10$$22, "Column '", &field, "' have not defined a data type"); ZEPHIR_CALL_METHOD(NULL, &_9$$22, "__construct", &_6, 5, &_10$$22); zephir_check_call_status(); - zephir_throw_exception_debug(&_9$$22, "phalcon/Mvc/Model.zep", 3753 TSRMLS_CC); + zephir_throw_exception_debug(&_9$$22, "phalcon/Mvc/Model.zep", 3771 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -6656,17 +6689,17 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { } } if (changed) { - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3792); - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3793); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3794); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3810); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3811); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3812); } } zephir_array_update_zval(&newSnapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); } else { zephir_array_update_zval(&newSnapshot, &attributeField, &__$null, PH_COPY | PH_SEPARATE); - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3802); - zephir_array_append(&values, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3803); - zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3804); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3820); + zephir_array_append(&values, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3821); + zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3822); } } } ZEND_HASH_FOREACH_END(); @@ -6690,7 +6723,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(&_17$$31, "Column '", &field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_16$$31, "__construct", &_6, 5, &_17$$31); zephir_check_call_status(); - zephir_throw_exception_debug(&_16$$31, "phalcon/Mvc/Model.zep", 3701 TSRMLS_CC); + zephir_throw_exception_debug(&_16$$31, "phalcon/Mvc/Model.zep", 3719 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -6706,16 +6739,16 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(&_19$$34, "Column '", &field, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, &_18$$34, "__construct", &_6, 5, &_19$$34); zephir_check_call_status(); - zephir_throw_exception_debug(&_18$$34, "phalcon/Mvc/Model.zep", 3714 TSRMLS_CC); + zephir_throw_exception_debug(&_18$$34, "phalcon/Mvc/Model.zep", 3732 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } ZEPHIR_OBS_NVAR(&value); if (zephir_fetch_property_zval(&value, this_ptr, &attributeField, PH_SILENT_CC)) { if (!(useDynamicUpdate)) { - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3726); - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3727); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3728); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3744); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3745); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3746); } else { ZEPHIR_OBS_NVAR(&snapshotValue); if (!(zephir_array_isset_fetch(&snapshotValue, &snapshot, &attributeField, 0 TSRMLS_CC))) { @@ -6735,7 +6768,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(&_21$$44, "Column '", &field, "' have not defined a data type"); ZEPHIR_CALL_METHOD(NULL, &_20$$44, "__construct", &_6, 5, &_21$$44); zephir_check_call_status(); - zephir_throw_exception_debug(&_20$$44, "phalcon/Mvc/Model.zep", 3753 TSRMLS_CC); + zephir_throw_exception_debug(&_20$$44, "phalcon/Mvc/Model.zep", 3771 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -6765,17 +6798,17 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { } } if (changed) { - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3792); - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3793); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3794); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3810); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3811); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3812); } } zephir_array_update_zval(&newSnapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); } else { zephir_array_update_zval(&newSnapshot, &attributeField, &__$null, PH_COPY | PH_SEPARATE); - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3802); - zephir_array_append(&values, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3803); - zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3804); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3820); + zephir_array_append(&values, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3821); + zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3822); } } ZEPHIR_CALL_METHOD(NULL, &nonPrimary, "next", NULL, 0); @@ -6799,12 +6832,12 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CALL_METHOD(&primaryKeys, metaData, "getprimarykeyattributes", NULL, 0, this_ptr); zephir_check_call_status(); if (UNEXPECTED(!(zephir_fast_count_int(&primaryKeys TSRMLS_CC)))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/Mvc/Model.zep", 3836); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/Mvc/Model.zep", 3854); return; } ZEPHIR_INIT_NVAR(&uniqueParams); array_init(&uniqueParams); - zephir_is_iterable(&primaryKeys, 0, "phalcon/Mvc/Model.zep", 3863); + zephir_is_iterable(&primaryKeys, 0, "phalcon/Mvc/Model.zep", 3881); if (Z_TYPE_P(&primaryKeys) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&primaryKeys), _26$$53) { @@ -6819,7 +6852,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(&_29$$57, "Column '", &field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_28$$57, "__construct", &_6, 5, &_29$$57); zephir_check_call_status(); - zephir_throw_exception_debug(&_28$$57, "phalcon/Mvc/Model.zep", 3849 TSRMLS_CC); + zephir_throw_exception_debug(&_28$$57, "phalcon/Mvc/Model.zep", 3867 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -6829,10 +6862,10 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_OBS_NVAR(&value); if (zephir_fetch_property_zval(&value, this_ptr, &attributeField, PH_SILENT_CC)) { zephir_array_update_zval(&newSnapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); - zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3857); + zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3875); } else { zephir_array_update_zval(&newSnapshot, &attributeField, &__$null, PH_COPY | PH_SEPARATE); - zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3860); + zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3878); } } ZEND_HASH_FOREACH_END(); } else { @@ -6855,7 +6888,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(&_31$$63, "Column '", &field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_30$$63, "__construct", &_6, 5, &_31$$63); zephir_check_call_status(); - zephir_throw_exception_debug(&_30$$63, "phalcon/Mvc/Model.zep", 3849 TSRMLS_CC); + zephir_throw_exception_debug(&_30$$63, "phalcon/Mvc/Model.zep", 3867 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -6865,10 +6898,10 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_OBS_NVAR(&value); if (zephir_fetch_property_zval(&value, this_ptr, &attributeField, PH_SILENT_CC)) { zephir_array_update_zval(&newSnapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); - zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3857); + zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3875); } else { zephir_array_update_zval(&newSnapshot, &attributeField, &__$null, PH_COPY | PH_SEPARATE); - zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3860); + zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3878); } ZEPHIR_CALL_METHOD(NULL, &primaryKeys, "next", NULL, 0); zephir_check_call_status(); @@ -6999,7 +7032,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _exists) { array_init(&uniqueParams); ZEPHIR_INIT_NVAR(&uniqueTypes); array_init(&uniqueTypes); - zephir_is_iterable(&primaryKeys, 0, "phalcon/Mvc/Model.zep", 3985); + zephir_is_iterable(&primaryKeys, 0, "phalcon/Mvc/Model.zep", 4003); if (Z_TYPE_P(&primaryKeys) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&primaryKeys), _1$$3) { @@ -7014,7 +7047,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _exists) { ZEPHIR_CONCAT_SVS(&_4$$9, "Column '", &field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_3$$9, "__construct", &_5, 5, &_4$$9); zephir_check_call_status(); - zephir_throw_exception_debug(&_3$$9, "phalcon/Mvc/Model.zep", 3944 TSRMLS_CC); + zephir_throw_exception_debug(&_3$$9, "phalcon/Mvc/Model.zep", 3962 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -7032,9 +7065,9 @@ PHP_METHOD(Phalcon_Mvc_Model, _exists) { if (_6$$11) { numberEmpty++; } - zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3965); + zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3983); } else { - zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3967); + zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3985); numberEmpty++; } ZEPHIR_OBS_NVAR(&type); @@ -7045,16 +7078,16 @@ PHP_METHOD(Phalcon_Mvc_Model, _exists) { ZEPHIR_CONCAT_SVS(&_8$$14, "Column '", &field, "' isn't part of the table columns"); ZEPHIR_CALL_METHOD(NULL, &_7$$14, "__construct", &_5, 5, &_8$$14); zephir_check_call_status(); - zephir_throw_exception_debug(&_7$$14, "phalcon/Mvc/Model.zep", 3974 TSRMLS_CC); + zephir_throw_exception_debug(&_7$$14, "phalcon/Mvc/Model.zep", 3992 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&uniqueTypes, &type, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3977); + zephir_array_append(&uniqueTypes, &type, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3995); ZEPHIR_CALL_METHOD(&_9$$7, connection, "escapeidentifier", &_10, 0, &field); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_11$$7); ZEPHIR_CONCAT_VS(&_11$$7, &_9$$7, " = ?"); - zephir_array_append(&wherePk, &_11$$7, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3978); + zephir_array_append(&wherePk, &_11$$7, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3996); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &primaryKeys, "rewind", NULL, 0); @@ -7076,7 +7109,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _exists) { ZEPHIR_CONCAT_SVS(&_13$$17, "Column '", &field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_12$$17, "__construct", &_5, 5, &_13$$17); zephir_check_call_status(); - zephir_throw_exception_debug(&_12$$17, "phalcon/Mvc/Model.zep", 3944 TSRMLS_CC); + zephir_throw_exception_debug(&_12$$17, "phalcon/Mvc/Model.zep", 3962 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -7094,9 +7127,9 @@ PHP_METHOD(Phalcon_Mvc_Model, _exists) { if (_14$$19) { numberEmpty++; } - zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3965); + zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3983); } else { - zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3967); + zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3985); numberEmpty++; } ZEPHIR_OBS_NVAR(&type); @@ -7107,16 +7140,16 @@ PHP_METHOD(Phalcon_Mvc_Model, _exists) { ZEPHIR_CONCAT_SVS(&_16$$22, "Column '", &field, "' isn't part of the table columns"); ZEPHIR_CALL_METHOD(NULL, &_15$$22, "__construct", &_5, 5, &_16$$22); zephir_check_call_status(); - zephir_throw_exception_debug(&_15$$22, "phalcon/Mvc/Model.zep", 3974 TSRMLS_CC); + zephir_throw_exception_debug(&_15$$22, "phalcon/Mvc/Model.zep", 3992 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&uniqueTypes, &type, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3977); + zephir_array_append(&uniqueTypes, &type, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3995); ZEPHIR_CALL_METHOD(&_17$$15, connection, "escapeidentifier", &_18, 0, &field); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_19$$15); ZEPHIR_CONCAT_VS(&_19$$15, &_17$$15, " = ?"); - zephir_array_append(&wherePk, &_19$$15, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3978); + zephir_array_append(&wherePk, &_19$$15, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3996); ZEPHIR_CALL_METHOD(NULL, &primaryKeys, "next", NULL, 0); zephir_check_call_status(); } @@ -7148,9 +7181,9 @@ PHP_METHOD(Phalcon_Mvc_Model, _exists) { zephir_read_property(&_22$$27, this_ptr, SL("uniqueTypes"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&uniqueTypes, &_22$$27); } - ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 440); + ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 442); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 441); + ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 443); zephir_check_call_status(); if (zephir_is_true(&schema)) { ZEPHIR_INIT_VAR(&table); @@ -7167,7 +7200,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _exists) { ZVAL_NULL(&_25); ZEPHIR_CALL_METHOD(&num, connection, "fetchone", NULL, 0, &_24, &_25, &uniqueParams, &uniqueTypes); zephir_check_call_status(); - zephir_array_fetch_string(&_26, &num, SL("rowcount"), PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4039 TSRMLS_CC); + zephir_array_fetch_string(&_26, &num, SL("rowcount"), PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4057 TSRMLS_CC); if (zephir_is_true(&_26)) { ZEPHIR_INIT_ZVAL_NREF(_27$$30); ZVAL_LONG(&_27$$30, 0); @@ -7349,7 +7382,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _groupResult) { ZEPHIR_INIT_VAR(¶ms); array_init(¶ms); if (Z_TYPE_P(parameters) != IS_NULL) { - zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4134); + zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4152); } } else { ZEPHIR_CPY_WRT(¶ms, parameters); @@ -7490,7 +7523,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _invokeFinder) { ZEPHIR_CONCAT_SVS(&_4$$7, "The static method '", &method, "' requires one argument"); ZEPHIR_CALL_METHOD(NULL, &_3$$7, "__construct", NULL, 5, &_4$$7); zephir_check_call_status(); - zephir_throw_exception_debug(&_3$$7, "phalcon/Mvc/Model.zep", 4253 TSRMLS_CC); + zephir_throw_exception_debug(&_3$$7, "phalcon/Mvc/Model.zep", 4271 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -7530,7 +7563,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _invokeFinder) { ZEPHIR_CONCAT_SVS(&_8$$13, "Cannot resolve attribute '", &extraMethod, "' in the model"); ZEPHIR_CALL_METHOD(NULL, &_7$$13, "__construct", NULL, 5, &_8$$13); zephir_check_call_status(); - zephir_throw_exception_debug(&_7$$13, "phalcon/Mvc/Model.zep", 4290 TSRMLS_CC); + zephir_throw_exception_debug(&_7$$13, "phalcon/Mvc/Model.zep", 4308 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -7670,7 +7703,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSave) { } } if (ZEPHIR_GLOBAL(orm).virtual_foreign_keys) { - ZEPHIR_CALL_METHOD(&_3$$8, this_ptr, "_checkforeignkeysrestrict", NULL, 447); + ZEPHIR_CALL_METHOD(&_3$$8, this_ptr, "_checkforeignkeysrestrict", NULL, 449); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_3$$8)) { RETURN_MM_BOOL(0); @@ -7701,7 +7734,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSave) { ZEPHIR_CALL_METHOD(&emptyStringValues, metaData, "getemptystringattributes", NULL, 0, this_ptr); zephir_check_call_status(); error = 0; - zephir_is_iterable(¬Null, 0, "phalcon/Mvc/Model.zep", 4485); + zephir_is_iterable(¬Null, 0, "phalcon/Mvc/Model.zep", 4503); if (Z_TYPE_P(¬Null) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(¬Null), _4$$11) { @@ -7716,7 +7749,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSave) { ZEPHIR_CONCAT_SVS(&_7$$18, "Column '", &field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_6$$18, "__construct", &_8, 5, &_7$$18); zephir_check_call_status(); - zephir_throw_exception_debug(&_6$$18, "phalcon/Mvc/Model.zep", 4410 TSRMLS_CC); + zephir_throw_exception_debug(&_6$$18, "phalcon/Mvc/Model.zep", 4428 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -7740,7 +7773,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSave) { if (_10$$26) { _11$$26 = !(zephir_array_isset(&defaultValues, &field)); if (!(_11$$26)) { - zephir_array_fetch(&_12$$26, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4439 TSRMLS_CC); + zephir_array_fetch(&_12$$26, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4457 TSRMLS_CC); _11$$26 = !ZEPHIR_IS_IDENTICAL(&value, &_12$$26); } _10$$26 = _11$$26; @@ -7802,7 +7835,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSave) { ZEPHIR_CONCAT_SVS(&_18$$37, "Column '", &field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_17$$37, "__construct", &_8, 5, &_18$$37); zephir_check_call_status(); - zephir_throw_exception_debug(&_17$$37, "phalcon/Mvc/Model.zep", 4410 TSRMLS_CC); + zephir_throw_exception_debug(&_17$$37, "phalcon/Mvc/Model.zep", 4428 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -7826,7 +7859,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSave) { if (_20$$45) { _21$$45 = !(zephir_array_isset(&defaultValues, &field)); if (!(_21$$45)) { - zephir_array_fetch(&_22$$45, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4439 TSRMLS_CC); + zephir_array_fetch(&_22$$45, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4457 TSRMLS_CC); _21$$45 = !ZEPHIR_IS_IDENTICAL(&value, &_22$$45); } _20$$45 = _21$$45; @@ -8024,7 +8057,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "getmodelsmanager", NULL, 0); zephir_check_call_status(); ZEPHIR_CPY_WRT(&manager, &_1); - zephir_is_iterable(related, 0, "phalcon/Mvc/Model.zep", 4662); + zephir_is_iterable(related, 0, "phalcon/Mvc/Model.zep", 4680); if (Z_TYPE_P(related) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(related), _4, _5, _2) { @@ -8051,7 +8084,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_10, 0, &_9$$6); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects can be stored as part of belongs-to relations", "phalcon/Mvc/Model.zep", 4605); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects can be stored as part of belongs-to relations", "phalcon/Mvc/Model.zep", 4623); return; } ZEPHIR_CALL_METHOD(&columns, &relation, "getfields", &_11, 0); @@ -8068,7 +8101,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_15, 0, &_14$$7); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4615); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4633); return; } zephir_read_property(&_16$$5, &record, SL("dirtyState"), PH_NOISY_CC | PH_READONLY); @@ -8081,7 +8114,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { if (_17$$5) { ZEPHIR_CALL_METHOD(&_19$$8, &record, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_19$$8, 0, "phalcon/Mvc/Model.zep", 4648); + zephir_is_iterable(&_19$$8, 0, "phalcon/Mvc/Model.zep", 4666); if (Z_TYPE_P(&_19$$8) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_19$$8), _20$$8) { @@ -8165,7 +8198,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_31, 0, &_30$$16); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects can be stored as part of belongs-to relations", "phalcon/Mvc/Model.zep", 4605); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects can be stored as part of belongs-to relations", "phalcon/Mvc/Model.zep", 4623); return; } ZEPHIR_CALL_METHOD(&columns, &relation, "getfields", &_11, 0); @@ -8182,7 +8215,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_33, 0, &_32$$17); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4615); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4633); return; } zephir_read_property(&_34$$15, &record, SL("dirtyState"), PH_NOISY_CC | PH_READONLY); @@ -8195,7 +8228,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { if (_35$$15) { ZEPHIR_CALL_METHOD(&_37$$18, &record, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_37$$18, 0, "phalcon/Mvc/Model.zep", 4648); + zephir_is_iterable(&_37$$18, 0, "phalcon/Mvc/Model.zep", 4666); if (Z_TYPE_P(&_37$$18) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_37$$18), _38$$18) { @@ -8422,7 +8455,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmodelsmanager", NULL, 0); zephir_check_call_status(); ZEPHIR_CPY_WRT(&manager, &_0); - zephir_is_iterable(related, 0, "phalcon/Mvc/Model.zep", 4892); + zephir_is_iterable(related, 0, "phalcon/Mvc/Model.zep", 4910); if (Z_TYPE_P(related) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(related), _3, _4, _1) { @@ -8455,7 +8488,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_11, 0, &_10$$6); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects/arrays can be stored as part of has-many/has-one/has-many-to-many relations", "phalcon/Mvc/Model.zep", 4722); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects/arrays can be stored as part of has-many/has-one/has-many-to-many relations", "phalcon/Mvc/Model.zep", 4740); return; } ZEPHIR_CALL_METHOD(&columns, &relation, "getfields", &_12, 0); @@ -8472,7 +8505,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_16, 0, &_15$$7); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4732); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4750); return; } if (Z_TYPE_P(&record) == IS_OBJECT) { @@ -8497,7 +8530,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CONCAT_SVS(&_20$$10, "The column '", &columns, "' needs to be present in the model"); ZEPHIR_CALL_METHOD(NULL, &_19$$10, "__construct", &_21, 5, &_20$$10); zephir_check_call_status(); - zephir_throw_exception_debug(&_19$$10, "phalcon/Mvc/Model.zep", 4749 TSRMLS_CC); + zephir_throw_exception_debug(&_19$$10, "phalcon/Mvc/Model.zep", 4767 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -8512,7 +8545,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&intermediateReferencedFields, &relation, "getintermediatereferencedfields", &_26, 0); zephir_check_call_status(); } - zephir_is_iterable(&relatedRecords, 0, "phalcon/Mvc/Model.zep", 4878); + zephir_is_iterable(&relatedRecords, 0, "phalcon/Mvc/Model.zep", 4896); if (Z_TYPE_P(&relatedRecords) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&relatedRecords), _27$$4) { @@ -8527,7 +8560,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(&_29$$12))) { ZEPHIR_CALL_METHOD(&_30$$14, &recordAfter, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_30$$14, 0, "phalcon/Mvc/Model.zep", 4808); + zephir_is_iterable(&_30$$14, 0, "phalcon/Mvc/Model.zep", 4826); if (Z_TYPE_P(&_30$$14) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_30$$14), _31$$14) { @@ -8591,7 +8624,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(&_39$$19))) { ZEPHIR_CALL_METHOD(&_40$$20, &intermediateModel, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_40$$20, 0, "phalcon/Mvc/Model.zep", 4872); + zephir_is_iterable(&_40$$20, 0, "phalcon/Mvc/Model.zep", 4890); if (Z_TYPE_P(&_40$$20) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_40$$20), _41$$20) { @@ -8663,7 +8696,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(&_47$$25))) { ZEPHIR_CALL_METHOD(&_48$$27, &recordAfter, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_48$$27, 0, "phalcon/Mvc/Model.zep", 4808); + zephir_is_iterable(&_48$$27, 0, "phalcon/Mvc/Model.zep", 4826); if (Z_TYPE_P(&_48$$27) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_48$$27), _49$$27) { @@ -8727,7 +8760,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(&_56$$32))) { ZEPHIR_CALL_METHOD(&_57$$33, &intermediateModel, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_57$$33, 0, "phalcon/Mvc/Model.zep", 4872); + zephir_is_iterable(&_57$$33, 0, "phalcon/Mvc/Model.zep", 4890); if (Z_TYPE_P(&_57$$33) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_57$$33), _58$$33) { @@ -8798,7 +8831,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CONCAT_SVSVS(&_67$$39, "There are no defined relations for the model '", &className, "' using alias '", &name, "'"); ZEPHIR_CALL_METHOD(NULL, &_66$$39, "__construct", &_21, 5, &_67$$39); zephir_check_call_status(); - zephir_throw_exception_debug(&_66$$39, "phalcon/Mvc/Model.zep", 4884 TSRMLS_CC); + zephir_throw_exception_debug(&_66$$39, "phalcon/Mvc/Model.zep", 4902 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -8838,7 +8871,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_73, 0, &_72$$43); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects/arrays can be stored as part of has-many/has-one/has-many-to-many relations", "phalcon/Mvc/Model.zep", 4722); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects/arrays can be stored as part of has-many/has-one/has-many-to-many relations", "phalcon/Mvc/Model.zep", 4740); return; } ZEPHIR_CALL_METHOD(&columns, &relation, "getfields", &_12, 0); @@ -8855,7 +8888,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_75, 0, &_74$$44); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4732); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4750); return; } if (Z_TYPE_P(&record) == IS_OBJECT) { @@ -8881,7 +8914,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CONCAT_SVS(&_80$$47, "The column '", &columns, "' needs to be present in the model"); ZEPHIR_CALL_METHOD(NULL, &_79$$47, "__construct", &_21, 5, &_80$$47); zephir_check_call_status(); - zephir_throw_exception_debug(&_79$$47, "phalcon/Mvc/Model.zep", 4749 TSRMLS_CC); + zephir_throw_exception_debug(&_79$$47, "phalcon/Mvc/Model.zep", 4767 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -8896,7 +8929,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&intermediateReferencedFields, &relation, "getintermediatereferencedfields", &_26, 0); zephir_check_call_status(); } - zephir_is_iterable(&relatedRecords, 0, "phalcon/Mvc/Model.zep", 4878); + zephir_is_iterable(&relatedRecords, 0, "phalcon/Mvc/Model.zep", 4896); if (Z_TYPE_P(&relatedRecords) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&relatedRecords), _82$$41) { @@ -8911,7 +8944,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(&_84$$49))) { ZEPHIR_CALL_METHOD(&_85$$51, &recordAfter, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_85$$51, 0, "phalcon/Mvc/Model.zep", 4808); + zephir_is_iterable(&_85$$51, 0, "phalcon/Mvc/Model.zep", 4826); if (Z_TYPE_P(&_85$$51) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_85$$51), _86$$51) { @@ -8975,7 +9008,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(&_93$$56))) { ZEPHIR_CALL_METHOD(&_94$$57, &intermediateModel, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_94$$57, 0, "phalcon/Mvc/Model.zep", 4872); + zephir_is_iterable(&_94$$57, 0, "phalcon/Mvc/Model.zep", 4890); if (Z_TYPE_P(&_94$$57) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_94$$57), _95$$57) { @@ -9047,7 +9080,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(&_101$$62))) { ZEPHIR_CALL_METHOD(&_102$$64, &recordAfter, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_102$$64, 0, "phalcon/Mvc/Model.zep", 4808); + zephir_is_iterable(&_102$$64, 0, "phalcon/Mvc/Model.zep", 4826); if (Z_TYPE_P(&_102$$64) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_102$$64), _103$$64) { @@ -9111,7 +9144,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(&_110$$69))) { ZEPHIR_CALL_METHOD(&_111$$70, &intermediateModel, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_111$$70, 0, "phalcon/Mvc/Model.zep", 4872); + zephir_is_iterable(&_111$$70, 0, "phalcon/Mvc/Model.zep", 4890); if (Z_TYPE_P(&_111$$70) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_111$$70), _112$$70) { @@ -9182,7 +9215,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CONCAT_SVSVS(&_121$$76, "There are no defined relations for the model '", &className, "' using alias '", &name, "'"); ZEPHIR_CALL_METHOD(NULL, &_120$$76, "__construct", &_21, 5, &_121$$76); zephir_check_call_status(); - zephir_throw_exception_debug(&_120$$76, "phalcon/Mvc/Model.zep", 4884 TSRMLS_CC); + zephir_throw_exception_debug(&_120$$76, "phalcon/Mvc/Model.zep", 4902 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -9245,7 +9278,7 @@ PHP_METHOD(Phalcon_Mvc_Model, allowEmptyStringValues) { ZEPHIR_INIT_VAR(&keysAttributes); array_init(&keysAttributes); - zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 4925); + zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 4943); if (Z_TYPE_P(&attributes) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&attributes), _0) { @@ -9854,7 +9887,7 @@ PHP_METHOD(Phalcon_Mvc_Model, skipAttributesOnCreate) { ZEPHIR_INIT_VAR(&keysAttributes); array_init(&keysAttributes); - zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 5226); + zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 5244); if (Z_TYPE_P(&attributes) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&attributes), _0) { @@ -9928,7 +9961,7 @@ PHP_METHOD(Phalcon_Mvc_Model, skipAttributesOnUpdate) { ZEPHIR_INIT_VAR(&keysAttributes); array_init(&keysAttributes); - zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 5261); + zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 5279); if (Z_TYPE_P(&attributes) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&attributes), _0) { @@ -10163,7 +10196,7 @@ PHP_METHOD(Phalcon_Mvc_Model, caseInsensitiveColumnMap) { ZEPHIR_INIT_VAR(&_0); zephir_array_keys(&_0, columnMap TSRMLS_CC); - zephir_is_iterable(&_0, 0, "phalcon/Mvc/Model.zep", 5397); + zephir_is_iterable(&_0, 0, "phalcon/Mvc/Model.zep", 5415); if (Z_TYPE_P(&_0) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_0), _1) { diff --git a/ext/phalcon/mvc/model.zep.h b/ext/phalcon/mvc/model.zep.h index 6a01ed43235..901a3dd7a32 100644 --- a/ext/phalcon/mvc/model.zep.h +++ b/ext/phalcon/mvc/model.zep.h @@ -27,6 +27,7 @@ PHP_METHOD(Phalcon_Mvc_Model, fireEvent); PHP_METHOD(Phalcon_Mvc_Model, fireEventCancel); PHP_METHOD(Phalcon_Mvc_Model, getChangedFields); PHP_METHOD(Phalcon_Mvc_Model, getDirtyState); +PHP_METHOD(Phalcon_Mvc_Model, getDI); PHP_METHOD(Phalcon_Mvc_Model, getEventsManager); PHP_METHOD(Phalcon_Mvc_Model, getMessages); PHP_METHOD(Phalcon_Mvc_Model, getModelsManager); @@ -57,6 +58,7 @@ PHP_METHOD(Phalcon_Mvc_Model, serialize); PHP_METHOD(Phalcon_Mvc_Model, unserialize); PHP_METHOD(Phalcon_Mvc_Model, setConnectionService); PHP_METHOD(Phalcon_Mvc_Model, setDirtyState); +PHP_METHOD(Phalcon_Mvc_Model, setDI); PHP_METHOD(Phalcon_Mvc_Model, setEventsManager); PHP_METHOD(Phalcon_Mvc_Model, setReadConnectionService); PHP_METHOD(Phalcon_Mvc_Model, setOldSnapshotData); @@ -308,6 +310,13 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_model_getdirtystate, #endif ZEND_END_ARG_INFO() +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_mvc_model_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_model_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) +#endif +ZEND_END_ARG_INFO() + #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_mvc_model_geteventsmanager, 0, 0, Phalcon\\Events\\ManagerInterface, 0) #else @@ -537,6 +546,10 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_setdirtystate, 0, 0, 1) #endif ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_setdi, 0, 0, 1) + ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_seteventsmanager, 0, 0, 1) ZEND_ARG_OBJ_INFO(0, eventsManager, Phalcon\\Events\\ManagerInterface, 0) ZEND_END_ARG_INFO() @@ -962,6 +975,7 @@ ZEPHIR_INIT_FUNCS(phalcon_mvc_model_method_entry) { PHP_ME(Phalcon_Mvc_Model, fireEventCancel, arginfo_phalcon_mvc_model_fireeventcancel, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Model, getChangedFields, arginfo_phalcon_mvc_model_getchangedfields, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Model, getDirtyState, arginfo_phalcon_mvc_model_getdirtystate, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model, getDI, arginfo_phalcon_mvc_model_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Model, getEventsManager, arginfo_phalcon_mvc_model_geteventsmanager, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Model, getMessages, arginfo_phalcon_mvc_model_getmessages, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Model, getModelsManager, arginfo_phalcon_mvc_model_getmodelsmanager, ZEND_ACC_PUBLIC) @@ -992,6 +1006,7 @@ ZEPHIR_INIT_FUNCS(phalcon_mvc_model_method_entry) { PHP_ME(Phalcon_Mvc_Model, unserialize, arginfo_phalcon_mvc_model_unserialize, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Model, setConnectionService, arginfo_phalcon_mvc_model_setconnectionservice, ZEND_ACC_FINAL|ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Model, setDirtyState, arginfo_phalcon_mvc_model_setdirtystate, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model, setDI, arginfo_phalcon_mvc_model_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Model, setEventsManager, arginfo_phalcon_mvc_model_seteventsmanager, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Model, setReadConnectionService, arginfo_phalcon_mvc_model_setreadconnectionservice, ZEND_ACC_FINAL|ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Model, setOldSnapshotData, arginfo_phalcon_mvc_model_setoldsnapshotdata, ZEND_ACC_PUBLIC) diff --git a/ext/phalcon/mvc/model/behavior/timestampable.zep.c b/ext/phalcon/mvc/model/behavior/timestampable.zep.c index 7f4d7c9d90a..00938f852f8 100644 --- a/ext/phalcon/mvc/model/behavior/timestampable.zep.c +++ b/ext/phalcon/mvc/model/behavior/timestampable.zep.c @@ -96,7 +96,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Behavior_Timestampable, notify) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The option 'field' is required", "phalcon/Mvc/Model/Behavior/Timestampable.zep", 50); return; } - ZEPHIR_CALL_METHOD(×tamp, this_ptr, "gettimestamp", NULL, 448, &options); + ZEPHIR_CALL_METHOD(×tamp, this_ptr, "gettimestamp", NULL, 450, &options); zephir_check_call_status(); if (UNEXPECTED(Z_TYPE_P(&field) == IS_ARRAY)) { zephir_is_iterable(&field, 0, "phalcon/Mvc/Model/Behavior/Timestampable.zep", 63); @@ -155,7 +155,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Behavior_Timestampable, getTimestamp) { ZEPHIR_OBS_VAR(&format); if (zephir_array_isset_string_fetch(&format, &options, SL("format"), 0)) { - ZEPHIR_RETURN_CALL_FUNCTION("date", NULL, 422, &format); + ZEPHIR_RETURN_CALL_FUNCTION("date", NULL, 420, &format); zephir_check_call_status(); RETURN_MM(); } diff --git a/ext/phalcon/mvc/model/binder.zep.c b/ext/phalcon/mvc/model/binder.zep.c index 9991583e63f..128d4ddcf3f 100644 --- a/ext/phalcon/mvc/model/binder.zep.c +++ b/ext/phalcon/mvc/model/binder.zep.c @@ -396,7 +396,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Binder, getParamsFromReflection) { ZEPHIR_INIT_VAR(&reflection); if (!ZEPHIR_IS_STRING(&methodName, "")) { object_init_ex(&reflection, zephir_get_internal_ce(SL("reflectionmethod"))); - ZEPHIR_CALL_METHOD(NULL, &reflection, "__construct", NULL, 449, handler, &methodName); + ZEPHIR_CALL_METHOD(NULL, &reflection, "__construct", NULL, 451, handler, &methodName); zephir_check_call_status(); } else { object_init_ex(&reflection, zephir_get_internal_ce(SL("reflectionfunction"))); @@ -438,7 +438,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Binder, getParamsFromReflection) { zephir_array_fetch(¶mValue, ¶ms, ¶mKey, PH_NOISY, "phalcon/Mvc/Model/Binder.zep", 171 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_6$$5); ZVAL_STRING(&_6$$5, "Phalcon\\Mvc\\Model"); - ZEPHIR_CALL_FUNCTION(&_7$$5, "is_subclass_of", &_8, 450, &className, &_6$$5); + ZEPHIR_CALL_FUNCTION(&_7$$5, "is_subclass_of", &_8, 452, &className, &_6$$5); zephir_check_call_status(); if (ZEPHIR_IS_STRING(&className, "Phalcon\\Mvc\\Model")) { if (Z_TYPE_P(&realClasses) == IS_NULL) { @@ -520,7 +520,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Binder, getParamsFromReflection) { zephir_array_fetch(¶mValue, ¶ms, ¶mKey, PH_NOISY, "phalcon/Mvc/Model/Binder.zep", 171 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_15$$19); ZVAL_STRING(&_15$$19, "Phalcon\\Mvc\\Model"); - ZEPHIR_CALL_FUNCTION(&_16$$19, "is_subclass_of", &_8, 450, &className, &_15$$19); + ZEPHIR_CALL_FUNCTION(&_16$$19, "is_subclass_of", &_8, 452, &className, &_15$$19); zephir_check_call_status(); if (ZEPHIR_IS_STRING(&className, "Phalcon\\Mvc\\Model")) { if (Z_TYPE_P(&realClasses) == IS_NULL) { diff --git a/ext/phalcon/mvc/model/criteria.zep.c b/ext/phalcon/mvc/model/criteria.zep.c index 3760284cde3..8552a791694 100644 --- a/ext/phalcon/mvc/model/criteria.zep.c +++ b/ext/phalcon/mvc/model/criteria.zep.c @@ -1776,12 +1776,12 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { ZEPHIR_INIT_VAR(&_19$$16); ZEPHIR_CONCAT_SVS(&_19$$16, " ", &operator, " "); zephir_fast_join(&_18$$16, &_19$$16, &conditions TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &criteria, "where", NULL, 451, &_18$$16); + ZEPHIR_CALL_METHOD(NULL, &criteria, "where", NULL, 453, &_18$$16); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &criteria, "bind", NULL, 452, &bind); + ZEPHIR_CALL_METHOD(NULL, &criteria, "bind", NULL, 454, &bind); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, &criteria, "setmodelname", NULL, 445, &modelName); + ZEPHIR_CALL_METHOD(NULL, &criteria, "setmodelname", NULL, 447, &modelName); zephir_check_call_status(); RETURN_CCTOR(&criteria); diff --git a/ext/phalcon/mvc/model/manager.zep.c b/ext/phalcon/mvc/model/manager.zep.c index c6ab8764fa9..aa6db53daef 100644 --- a/ext/phalcon/mvc/model/manager.zep.c +++ b/ext/phalcon/mvc/model/manager.zep.c @@ -1413,7 +1413,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasOne) { ZEPHIR_INIT_VAR(&relation); object_init_ex(&relation, phalcon_mvc_model_relation_ce); ZVAL_LONG(&_2, 1); - ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 453, &_2, &referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 455, &_2, &referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(&alias); if (zephir_array_isset_string_fetch(&alias, options, SL("alias"), 0)) { @@ -1516,7 +1516,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, addBelongsTo) { ZEPHIR_INIT_VAR(&relation); object_init_ex(&relation, phalcon_mvc_model_relation_ce); ZVAL_LONG(&_2, 0); - ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 453, &_2, &referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 455, &_2, &referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(&alias); if (zephir_array_isset_string_fetch(&alias, options, SL("alias"), 0)) { @@ -1621,7 +1621,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasMany) { ZEPHIR_INIT_VAR(&relation); object_init_ex(&relation, phalcon_mvc_model_relation_ce); ZVAL_LONG(&_1, 2); - ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 453, &_1, &referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 455, &_1, &referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(&alias); if (zephir_array_isset_string_fetch(&alias, options, SL("alias"), 0)) { @@ -1751,9 +1751,9 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasManyToMany) { ZEPHIR_INIT_VAR(&relation); object_init_ex(&relation, phalcon_mvc_model_relation_ce); ZVAL_LONG(&_1, 4); - ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 453, &_1, &referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 455, &_1, &referencedModel, fields, referencedFields, options); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &relation, "setintermediaterelation", NULL, 454, intermediateFields, &intermediateModel, intermediateReferencedFields); + ZEPHIR_CALL_METHOD(NULL, &relation, "setintermediaterelation", NULL, 456, intermediateFields, &intermediateModel, intermediateReferencedFields); zephir_check_call_status(); ZEPHIR_OBS_VAR(&alias); if (zephir_array_isset_string_fetch(&alias, options, SL("alias"), 0)) { @@ -2435,7 +2435,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { ZEPHIR_INIT_VAR(&_4$$3); ZEPHIR_CONCAT_SVSVSVSVS(&_4$$3, "[", &intermediateModel, "].[", &intermediateFields, "] = [", &referencedModel, "].[", &_3$$3, "]"); zephir_array_append(&joinConditions, &_4$$3, PH_SEPARATE, "phalcon/Mvc/Model/Manager.zep", 1299); - ZEPHIR_CALL_METHOD(&_5$$3, this_ptr, "_mergefindparameters", NULL, 455, &extraParameters, parameters); + ZEPHIR_CALL_METHOD(&_5$$3, this_ptr, "_mergefindparameters", NULL, 457, &extraParameters, parameters); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&builder, this_ptr, "createbuilder", NULL, 0, &_5$$3); zephir_check_call_status(); @@ -2548,10 +2548,10 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { ZEPHIR_CALL_METHOD(&_30, record, "getdi", NULL, 0); zephir_check_call_status(); zephir_array_update_string(&findParams, SL("di"), &_30, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&findArguments, this_ptr, "_mergefindparameters", NULL, 455, &findParams, parameters); + ZEPHIR_CALL_METHOD(&findArguments, this_ptr, "_mergefindparameters", NULL, 457, &findParams, parameters); zephir_check_call_status(); if (Z_TYPE_P(&extraParameters) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&findParams, this_ptr, "_mergefindparameters", NULL, 455, &extraParameters, &findArguments); + ZEPHIR_CALL_METHOD(&findParams, this_ptr, "_mergefindparameters", NULL, 457, &extraParameters, &findArguments); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&findParams, &findArguments); diff --git a/ext/phalcon/mvc/model/metadata/stream.zep.c b/ext/phalcon/mvc/model/metadata/stream.zep.c index 80307773a3b..3e5cbac5570 100644 --- a/ext/phalcon/mvc/model/metadata/stream.zep.c +++ b/ext/phalcon/mvc/model/metadata/stream.zep.c @@ -195,7 +195,7 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Stream, write) { ZEPHIR_CONCAT_SVS(&_5$$3, "= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_mvc_router_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_router_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) +#endif +ZEND_END_ARG_INFO() + #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_mvc_router_geteventsmanager, 0, 0, Phalcon\\Events\\ManagerInterface, 0) #else @@ -408,6 +417,10 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_router_getdefaults, #endif ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_router_setdi, 0, 0, 1) + ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_router_seteventsmanager, 0, 0, 1) ZEND_ARG_OBJ_INFO(0, eventsManager, Phalcon\\Events\\ManagerInterface, 0) ZEND_END_ARG_INFO() @@ -438,6 +451,7 @@ ZEPHIR_INIT_FUNCS(phalcon_mvc_router_method_entry) { PHP_ME(Phalcon_Mvc_Router, addTrace, arginfo_phalcon_mvc_router_addtrace, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, attach, arginfo_phalcon_mvc_router_attach, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, clear, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Router, getDI, arginfo_phalcon_mvc_router_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, getEventsManager, arginfo_phalcon_mvc_router_geteventsmanager, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, getActionName, arginfo_phalcon_mvc_router_getactionname, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, getControllerName, arginfo_phalcon_mvc_router_getcontrollername, ZEND_ACC_PUBLIC) @@ -460,6 +474,7 @@ ZEPHIR_INIT_FUNCS(phalcon_mvc_router_method_entry) { PHP_ME(Phalcon_Mvc_Router, setDefaultNamespace, arginfo_phalcon_mvc_router_setdefaultnamespace, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, setDefaults, arginfo_phalcon_mvc_router_setdefaults, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, getDefaults, arginfo_phalcon_mvc_router_getdefaults, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Router, setDI, arginfo_phalcon_mvc_router_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, setEventsManager, arginfo_phalcon_mvc_router_seteventsmanager, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, wasMatched, arginfo_phalcon_mvc_router_wasmatched, ZEND_ACC_PUBLIC) PHP_FE_END diff --git a/ext/phalcon/mvc/router/group.zep.c b/ext/phalcon/mvc/router/group.zep.c index 283821c101f..ae98c1f75c5 100644 --- a/ext/phalcon/mvc/router/group.zep.c +++ b/ext/phalcon/mvc/router/group.zep.c @@ -872,7 +872,7 @@ PHP_METHOD(Phalcon_Mvc_Router_Group, addRoute) { ZEPHIR_CALL_METHOD(NULL, &route, "__construct", NULL, 105, &_2, &mergedPaths, httpMethods); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("routes"), &route); - ZEPHIR_CALL_METHOD(NULL, &route, "setgroup", NULL, 496, this_ptr); + ZEPHIR_CALL_METHOD(NULL, &route, "setgroup", NULL, 498, this_ptr); zephir_check_call_status(); RETURN_CCTOR(&route); diff --git a/ext/phalcon/mvc/view.zep.c b/ext/phalcon/mvc/view.zep.c index c63df9f3e9b..2e4856c8702 100644 --- a/ext/phalcon/mvc/view.zep.c +++ b/ext/phalcon/mvc/view.zep.c @@ -801,11 +801,11 @@ PHP_METHOD(Phalcon_Mvc_View, getPartial) { } - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 393); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 391); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "partial", NULL, 0, &partialPath, params); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", NULL, 400); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", NULL, 398); zephir_check_call_status(); RETURN_MM(); @@ -1777,7 +1777,7 @@ PHP_METHOD(Phalcon_Mvc_View, start) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 393); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 391); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("content"), &__$null); RETURN_THIS(); @@ -1937,7 +1937,7 @@ PHP_METHOD(Phalcon_Mvc_View, engineRender) { { ZEPHIR_INIT_NVAR(&viewsDir); ZVAL_COPY(&viewsDir, _2); - ZEPHIR_CALL_METHOD(&_4$$3, this_ptr, "isabsolutepath", &_5, 497, &viewPath); + ZEPHIR_CALL_METHOD(&_4$$3, this_ptr, "isabsolutepath", &_5, 499, &viewPath); zephir_check_call_status(); if (!(zephir_is_true(&_4$$3))) { ZEPHIR_INIT_NVAR(&viewsDirPath); @@ -2055,7 +2055,7 @@ PHP_METHOD(Phalcon_Mvc_View, engineRender) { } ZEPHIR_CALL_METHOD(&viewsDir, &_1, "current", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_24$$16, this_ptr, "isabsolutepath", &_5, 497, &viewPath); + ZEPHIR_CALL_METHOD(&_24$$16, this_ptr, "isabsolutepath", &_5, 499, &viewPath); zephir_check_call_status(); if (!(zephir_is_true(&_24$$16))) { ZEPHIR_INIT_NVAR(&viewsDirPath); @@ -2288,7 +2288,7 @@ PHP_METHOD(Phalcon_Mvc_View, loadTemplateEngines) { if (ZEPHIR_IS_EMPTY(®isteredEngines)) { ZEPHIR_INIT_VAR(&_2$$4); object_init_ex(&_2$$4, phalcon_mvc_view_engine_php_ce); - ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 498, this_ptr, &di); + ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 500, this_ptr, &di); zephir_check_call_status(); zephir_array_update_string(&engines, SL(".phtml"), &_2$$4, PH_COPY | PH_SEPARATE); } else { @@ -2505,7 +2505,7 @@ PHP_METHOD(Phalcon_Mvc_View, processRender) { zephir_update_property_zval(this_ptr, SL("currentRenderLevel"), &_0); zephir_read_property(&_0, this_ptr, SL("disabled"), PH_NOISY_CC | PH_READONLY); if (!ZEPHIR_IS_FALSE_IDENTICAL(&_0)) { - ZEPHIR_CALL_FUNCTION(&_1$$3, "ob_get_contents", NULL, 499); + ZEPHIR_CALL_FUNCTION(&_1$$3, "ob_get_contents", NULL, 501); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("content"), &_1$$3); RETURN_MM_BOOL(0); @@ -2563,7 +2563,7 @@ PHP_METHOD(Phalcon_Mvc_View, processRender) { RETURN_MM_BOOL(0); } } - ZEPHIR_CALL_FUNCTION(&_8, "ob_get_contents", NULL, 499); + ZEPHIR_CALL_FUNCTION(&_8, "ob_get_contents", NULL, 501); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("content"), &_8); silence = 1; diff --git a/ext/phalcon/mvc/view/engine/php.zep.c b/ext/phalcon/mvc/view/engine/php.zep.c index 76970a13f12..ae3814f034a 100644 --- a/ext/phalcon/mvc/view/engine/php.zep.c +++ b/ext/phalcon/mvc/view/engine/php.zep.c @@ -85,7 +85,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render) { if (mustClean) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 500); + ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 502); zephir_check_call_status(); } if (Z_TYPE_P(params) == IS_ARRAY) { @@ -135,7 +135,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render) { } if (mustClean) { zephir_read_property(&_6$$7, this_ptr, SL("view"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_7$$7, "ob_get_contents", NULL, 499); + ZEPHIR_CALL_FUNCTION(&_7$$7, "ob_get_contents", NULL, 501); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_6$$7, "setcontent", NULL, 0, &_7$$7); zephir_check_call_status(); diff --git a/ext/phalcon/mvc/view/engine/volt.zep.c b/ext/phalcon/mvc/view/engine/volt.zep.c index c9f12bdfd14..746a15df842 100644 --- a/ext/phalcon/mvc/view/engine/volt.zep.c +++ b/ext/phalcon/mvc/view/engine/volt.zep.c @@ -155,7 +155,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, convertEncoding) { _0 = ZEPHIR_IS_STRING(&to, "utf8"); } if (_0) { - ZEPHIR_RETURN_CALL_FUNCTION("utf8_encode", NULL, 501, &text); + ZEPHIR_RETURN_CALL_FUNCTION("utf8_encode", NULL, 503, &text); zephir_check_call_status(); RETURN_MM(); } @@ -208,18 +208,18 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, getCompiler) { ZEPHIR_INIT_NVAR(&compiler); object_init_ex(&compiler, phalcon_mvc_view_engine_volt_compiler_ce); zephir_read_property(&_1$$3, this_ptr, SL("view"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(NULL, &compiler, "__construct", NULL, 502, &_1$$3); + ZEPHIR_CALL_METHOD(NULL, &compiler, "__construct", NULL, 504, &_1$$3); zephir_check_call_status(); zephir_read_property(&_2$$3, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&container, &_2$$3); if (Z_TYPE_P(&container) == IS_OBJECT) { - ZEPHIR_CALL_METHOD(NULL, &compiler, "setdi", NULL, 503, &container); + ZEPHIR_CALL_METHOD(NULL, &compiler, "setdi", NULL, 505, &container); zephir_check_call_status(); } zephir_read_property(&_2$$3, this_ptr, SL("options"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&options, &_2$$3); if (Z_TYPE_P(&options) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, &compiler, "setoptions", NULL, 504, &options); + ZEPHIR_CALL_METHOD(NULL, &compiler, "setoptions", NULL, 506, &options); zephir_check_call_status(); } zephir_update_property_zval(this_ptr, SL("compiler"), &compiler); @@ -365,7 +365,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, render) { if (mustClean) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 500); + ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 502); zephir_check_call_status(); } ZEPHIR_CALL_METHOD(&compiler, this_ptr, "getcompiler", NULL, 0); @@ -441,7 +441,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, render) { } if (mustClean) { zephir_read_property(&_11$$11, this_ptr, SL("view"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_12$$11, "ob_get_contents", NULL, 499); + ZEPHIR_CALL_FUNCTION(&_12$$11, "ob_get_contents", NULL, 501); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_11$$11, "setcontent", NULL, 0, &_12$$11); zephir_check_call_status(); @@ -601,7 +601,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, sort) { ZEPHIR_MAKE_REF(&value); - ZEPHIR_CALL_FUNCTION(NULL, "asort", NULL, 505, &value); + ZEPHIR_CALL_FUNCTION(NULL, "asort", NULL, 507, &value); ZEPHIR_UNREF(&value); zephir_check_call_status(); RETURN_CTOR(&value); diff --git a/ext/phalcon/mvc/view/engine/volt/compiler.zep.c b/ext/phalcon/mvc/view/engine/volt/compiler.zep.c index c19ca394af9..6329d813517 100644 --- a/ext/phalcon/mvc/view/engine/volt/compiler.zep.c +++ b/ext/phalcon/mvc/view/engine/volt/compiler.zep.c @@ -293,7 +293,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, attributeReader) { } } } else { - ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", NULL, 506, &left); + ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", NULL, 508, &left); zephir_check_call_status(); ZEPHIR_OBS_VAR(&leftType); zephir_array_fetch_string(&leftType, &left, SL("type"), PH_NOISY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 137 TSRMLS_CC); @@ -315,7 +315,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, attributeReader) { zephir_array_fetch_string(&_11$$11, &right, SL("value"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 151 TSRMLS_CC); zephir_concat_self(&exprCode, &_11$$11 TSRMLS_CC); } else { - ZEPHIR_CALL_METHOD(&_12$$12, this_ptr, "expression", NULL, 506, &right); + ZEPHIR_CALL_METHOD(&_12$$12, this_ptr, "expression", NULL, 508, &right); zephir_check_call_status(); zephir_concat_self(&exprCode, &_12$$12 TSRMLS_CC); } @@ -575,7 +575,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compile) { object_init_ex(&_17$$35, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_18$$35); ZEPHIR_CONCAT_SVS(&_18$$35, "Extends compilation file ", &compiledTemplatePath, " could not be opened"); - ZEPHIR_CALL_METHOD(NULL, &_17$$35, "__construct", NULL, 507, &_18$$35); + ZEPHIR_CALL_METHOD(NULL, &_17$$35, "__construct", NULL, 509, &_18$$35); zephir_check_call_status(); zephir_throw_exception_debug(&_17$$35, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 366 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -637,7 +637,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileAutoEscape) { } else { ZVAL_BOOL(&_1, 0); } - ZEPHIR_CALL_METHOD(&compilation, this_ptr, "statementlist", NULL, 508, &_0, &_1); + ZEPHIR_CALL_METHOD(&compilation, this_ptr, "statementlist", NULL, 510, &_0, &_1); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("autoescape"), &oldAutoescape); RETURN_CCTOR(&compilation); @@ -702,15 +702,15 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileCache) { object_init_ex(&_0$$3, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "Corrupt statement"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 507, &_1$$3, &statement); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 509, &_1$$3, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$3, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 429 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 506, &expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 508, &expr); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 506, &expr); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 508, &expr); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_3); ZEPHIR_CONCAT_SVS(&_3, "di->get('viewCache'); "); @@ -746,7 +746,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileCache) { } else { ZVAL_BOOL(&_14, 0); } - ZEPHIR_CALL_METHOD(&_12, this_ptr, "statementlist", NULL, 508, &_13, &_14); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "statementlist", NULL, 510, &_13, &_14); zephir_check_call_status(); zephir_concat_self(&compilation, &_12 TSRMLS_CC); ZEPHIR_OBS_NVAR(&lifetime); @@ -836,13 +836,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileCase) { object_init_ex(&_0$$4, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_1$$4); ZVAL_STRING(&_1$$4, "Corrupt statement"); - ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 507, &_1$$4, &statement); + ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 509, &_1$$4, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$4, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 505 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 506, &expr); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 508, &expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -875,7 +875,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileDo) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 525); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 506, &expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 508, &expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -916,13 +916,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileEcho) { object_init_ex(&_0$$3, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "Corrupt statement"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 507, &_1$$3, &statement); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 509, &_1$$3, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$3, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 545 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 506, &expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 508, &expr); zephir_check_call_status(); zephir_array_fetch_string(&_2, &expr, SL("type"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 553 TSRMLS_CC); if (ZEPHIR_IS_LONG(&_2, 350)) { @@ -974,13 +974,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileElseIf) { object_init_ex(&_0$$3, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "Corrupt statement"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 507, &_1$$3, &statement); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 509, &_1$$3, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$3, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 588 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 506, &expr); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 508, &expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -1059,7 +1059,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { object_init_ex(&_0$$4, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_1$$4); ZEPHIR_CONCAT_SVS(&_1$$4, "Template file ", &path, " does not exist"); - ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 507, &_1$$4); + ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 509, &_1$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$4, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 623 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -1072,7 +1072,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { object_init_ex(&_2$$5, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_3$$5); ZEPHIR_CONCAT_SVS(&_3$$5, "Template file ", &path, " could not be opened"); - ZEPHIR_CALL_METHOD(NULL, &_2$$5, "__construct", NULL, 507, &_3$$5); + ZEPHIR_CALL_METHOD(NULL, &_2$$5, "__construct", NULL, 509, &_3$$5); zephir_check_call_status(); zephir_throw_exception_debug(&_2$$5, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 635 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -1186,7 +1186,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { ZEPHIR_CONCAT_VV(&prefixLevel, &prefix, &level); ZEPHIR_OBS_VAR(&expr); zephir_array_fetch_string(&expr, &statement, SL("expr"), PH_NOISY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 696 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 506, &expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 508, &expr); zephir_check_call_status(); ZEPHIR_OBS_VAR(&blockStatements); zephir_array_fetch_string(&blockStatements, &statement, SL("block_statements"), PH_NOISY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 703 TSRMLS_CC); @@ -1246,7 +1246,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { } else { ZVAL_BOOL(&_4, 0); } - ZEPHIR_CALL_METHOD(&code, this_ptr, "statementlist", NULL, 508, &blockStatements, &_4); + ZEPHIR_CALL_METHOD(&code, this_ptr, "statementlist", NULL, 510, &blockStatements, &_4); zephir_check_call_status(); ZEPHIR_OBS_VAR(&loopContext); zephir_read_property(&loopContext, this_ptr, SL("loopPointers"), PH_NOISY_CC); @@ -1297,7 +1297,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { } ZEPHIR_OBS_VAR(&ifExpr); if (zephir_array_isset_string_fetch(&ifExpr, &statement, SL("if_expr"), 0)) { - ZEPHIR_CALL_METHOD(&_16$$15, this_ptr, "expression", NULL, 506, &ifExpr); + ZEPHIR_CALL_METHOD(&_16$$15, this_ptr, "expression", NULL, 508, &ifExpr); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_17$$15); ZEPHIR_CONCAT_SVS(&_17$$15, "if (", &_16$$15, ") { ?>"); @@ -1424,13 +1424,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileIf) { object_init_ex(&_0$$3, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "Corrupt statement"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 507, &_1$$3, &statement); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 509, &_1$$3, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$3, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 850 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 506, &expr); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 508, &expr); zephir_check_call_status(); zephir_array_fetch_string(&_4, &statement, SL("true_statements"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 856 TSRMLS_CC); if (extendsMode) { @@ -1438,7 +1438,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileIf) { } else { ZVAL_BOOL(&_5, 0); } - ZEPHIR_CALL_METHOD(&_3, this_ptr, "statementlist", NULL, 508, &_4, &_5); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "statementlist", NULL, 510, &_4, &_5); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_6); ZEPHIR_CONCAT_SVSV(&_6, "", &_3); @@ -1450,7 +1450,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileIf) { } else { ZVAL_BOOL(&_8$$4, 0); } - ZEPHIR_CALL_METHOD(&_7$$4, this_ptr, "statementlist", NULL, 508, &blockStatements, &_8$$4); + ZEPHIR_CALL_METHOD(&_7$$4, this_ptr, "statementlist", NULL, 510, &blockStatements, &_8$$4); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_9$$4); ZEPHIR_CONCAT_SV(&_9$$4, "", &_7$$4); @@ -1518,14 +1518,14 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileInclude) { RETURN_CCTOR(&compilation); } } - ZEPHIR_CALL_METHOD(&path, this_ptr, "expression", NULL, 506, &pathExpr); + ZEPHIR_CALL_METHOD(&path, this_ptr, "expression", NULL, 508, &pathExpr); zephir_check_call_status(); ZEPHIR_OBS_VAR(¶ms); if (!(zephir_array_isset_string_fetch(¶ms, &statement, SL("params"), 0))) { ZEPHIR_CONCAT_SVS(return_value, "partial(", &path, "); ?>"); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_3, this_ptr, "expression", NULL, 506, ¶ms); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "expression", NULL, 508, ¶ms); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "partial(", &path, ", ", &_3, "); ?>"); RETURN_MM(); @@ -1602,7 +1602,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { object_init_ex(&_1$$4, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_2$$4); ZEPHIR_CONCAT_SVS(&_2$$4, "Macro '", &name, "' is already defined"); - ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 507, &_2$$4); + ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 509, &_2$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$4, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 962 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -1653,7 +1653,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { zephir_concat_self_str(&code, " } else { ", sizeof(" } else { ")-1 TSRMLS_CC); ZEPHIR_OBS_NVAR(&defaultValue); if (EXPECTED(zephir_array_isset_string_fetch(&defaultValue, ¶meter, SL("default"), 0))) { - ZEPHIR_CALL_METHOD(&_14$$8, this_ptr, "expression", &_15, 506, &defaultValue); + ZEPHIR_CALL_METHOD(&_14$$8, this_ptr, "expression", &_15, 508, &defaultValue); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_16$$8); ZEPHIR_CONCAT_SVSVS(&_16$$8, "$", &variableName, " = ", &_14$$8, ";"); @@ -1696,7 +1696,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { zephir_concat_self_str(&code, " } else { ", sizeof(" } else { ")-1 TSRMLS_CC); ZEPHIR_OBS_NVAR(&defaultValue); if (EXPECTED(zephir_array_isset_string_fetch(&defaultValue, ¶meter, SL("default"), 0))) { - ZEPHIR_CALL_METHOD(&_22$$11, this_ptr, "expression", &_15, 506, &defaultValue); + ZEPHIR_CALL_METHOD(&_22$$11, this_ptr, "expression", &_15, 508, &defaultValue); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_23$$11); ZEPHIR_CONCAT_SVSVS(&_23$$11, "$", &variableName, " = ", &_22$$11, ";"); @@ -1722,7 +1722,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { } else { ZVAL_BOOL(&_26$$13, 0); } - ZEPHIR_CALL_METHOD(&_25$$13, this_ptr, "statementlist", NULL, 508, &blockStatements, &_26$$13); + ZEPHIR_CALL_METHOD(&_25$$13, this_ptr, "statementlist", NULL, 510, &blockStatements, &_26$$13); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_27$$13); ZEPHIR_CONCAT_VS(&_27$$13, &_25$$13, ""); RETURN_MM(); @@ -1827,10 +1827,10 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSet) { ZEPHIR_INIT_NVAR(&assignment); ZVAL_COPY(&assignment, _0); zephir_array_fetch_string(&_2$$4, &assignment, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1067 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_3, 506, &_2$$4); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_3, 508, &_2$$4); zephir_check_call_status(); zephir_array_fetch_string(&_4$$4, &assignment, SL("variable"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1074 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_3, 506, &_4$$4); + ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_3, 508, &_4$$4); zephir_check_call_status(); zephir_array_fetch_string(&_5$$4, &assignment, SL("op"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1080 TSRMLS_CC); do { @@ -1877,10 +1877,10 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSet) { ZEPHIR_CALL_METHOD(&assignment, &assignments, "current", NULL, 0); zephir_check_call_status(); zephir_array_fetch_string(&_11$$10, &assignment, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1067 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_3, 506, &_11$$10); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_3, 508, &_11$$10); zephir_check_call_status(); zephir_array_fetch_string(&_12$$10, &assignment, SL("variable"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1074 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_3, 506, &_12$$10); + ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_3, 508, &_12$$10); zephir_check_call_status(); zephir_array_fetch_string(&_13$$10, &assignment, SL("op"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1080 TSRMLS_CC); do { @@ -2021,13 +2021,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSwitch) { object_init_ex(&_0$$3, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "Corrupt statement"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 507, &_1$$3, &statement); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 509, &_1$$3, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$3, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1135 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 506, &expr); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 508, &expr); zephir_check_call_status(); ZEPHIR_INIT_VAR(&compilation); ZEPHIR_CONCAT_SVS(&compilation, ""); @@ -2038,7 +2038,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSwitch) { } else { ZVAL_BOOL(&_3$$4, 0); } - ZEPHIR_CALL_METHOD(&lines, this_ptr, "statementlist", NULL, 508, &caseClauses, &_3$$4); + ZEPHIR_CALL_METHOD(&lines, this_ptr, "statementlist", NULL, 510, &caseClauses, &_3$$4); zephir_check_call_status(); if (zephir_fast_strlen_ev(&lines) != 0) { ZEPHIR_INIT_VAR(&_4$$5); @@ -2124,7 +2124,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { zephir_array_fast_append(&_1$$4, &expr); ZEPHIR_INIT_NVAR(&_2$$4); ZVAL_STRING(&_2$$4, "resolveExpression"); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "fireextensionevent", &_3, 509, &_2$$4, &_1$$4); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "fireextensionevent", &_3, 511, &_2$$4, &_1$$4); zephir_check_call_status(); if (Z_TYPE_P(&exprCode) == IS_STRING) { break; @@ -2141,7 +2141,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { ZEPHIR_INIT_NVAR(&singleExpr); ZVAL_COPY(&singleExpr, _4$$6); zephir_array_fetch_string(&_6$$7, &singleExpr, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1219 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 506, &_6$$7); + ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 508, &_6$$7); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&name); if (zephir_array_isset_string_fetch(&name, &singleExpr, SL("name"), 0)) { @@ -2164,7 +2164,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { ZEPHIR_CALL_METHOD(&singleExpr, &expr, "current", NULL, 0); zephir_check_call_status(); zephir_array_fetch_string(&_9$$10, &singleExpr, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1219 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 506, &_9$$10); + ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 508, &_9$$10); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&name); if (zephir_array_isset_string_fetch(&name, &singleExpr, SL("name"), 0)) { @@ -2190,7 +2190,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } ZEPHIR_OBS_NVAR(&left); if (zephir_array_isset_string_fetch(&left, &expr, SL("left"), 0)) { - ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_7, 506, &left); + ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_7, 508, &left); zephir_check_call_status(); } if (ZEPHIR_IS_LONG(&type, 311)) { @@ -2201,13 +2201,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } if (ZEPHIR_IS_LONG(&type, 124)) { zephir_array_fetch_string(&_14$$16, &expr, SL("right"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1266 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "resolvefilter", &_15, 510, &_14$$16, &leftCode); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "resolvefilter", &_15, 0, &_14$$16, &leftCode); zephir_check_call_status(); break; } ZEPHIR_OBS_NVAR(&right); if (zephir_array_isset_string_fetch(&right, &expr, SL("right"), 0)) { - ZEPHIR_CALL_METHOD(&rightCode, this_ptr, "expression", &_7, 506, &right); + ZEPHIR_CALL_METHOD(&rightCode, this_ptr, "expression", &_7, 508, &right); zephir_check_call_status(); } ZEPHIR_INIT_NVAR(&exprCode); @@ -2383,7 +2383,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { if (ZEPHIR_IS_LONG(&type, 365)) { ZEPHIR_OBS_NVAR(&start); if (zephir_array_isset_string_fetch(&start, &expr, SL("start"), 0)) { - ZEPHIR_CALL_METHOD(&startCode, this_ptr, "expression", &_7, 506, &start); + ZEPHIR_CALL_METHOD(&startCode, this_ptr, "expression", &_7, 508, &start); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(&startCode); @@ -2391,7 +2391,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } ZEPHIR_OBS_NVAR(&end); if (zephir_array_isset_string_fetch(&end, &expr, SL("end"), 0)) { - ZEPHIR_CALL_METHOD(&endCode, this_ptr, "expression", &_7, 506, &end); + ZEPHIR_CALL_METHOD(&endCode, this_ptr, "expression", &_7, 508, &end); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(&endCode); @@ -2483,7 +2483,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } if (ZEPHIR_IS_LONG(&type, 366)) { zephir_array_fetch_string(&_23$$72, &expr, SL("ternary"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1500 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_22$$72, this_ptr, "expression", &_7, 506, &_23$$72); + ZEPHIR_CALL_METHOD(&_22$$72, this_ptr, "expression", &_7, 508, &_23$$72); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&exprCode); ZEPHIR_CONCAT_SVSVSVS(&exprCode, "(", &_22$$72, " ? ", &leftCode, " : ", &rightCode, ")"); @@ -2510,7 +2510,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { zephir_array_fetch_string(&_26$$76, &expr, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1518 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_27$$76); ZEPHIR_CONCAT_SVSVSV(&_27$$76, "Unknown expression ", &type, " in ", &_25$$76, " on line ", &_26$$76); - ZEPHIR_CALL_METHOD(NULL, &_24$$76, "__construct", &_28, 507, &_27$$76); + ZEPHIR_CALL_METHOD(NULL, &_24$$76, "__construct", &_28, 509, &_27$$76); zephir_check_call_status(); zephir_throw_exception_debug(&_24$$76, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1518 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -2703,7 +2703,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { ZVAL_NULL(&funcArguments); ZEPHIR_OBS_NVAR(&funcArguments); if (zephir_array_isset_string_fetch(&funcArguments, &expr, SL("arguments"), 0)) { - ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 506, &funcArguments); + ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 508, &funcArguments); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(&arguments); @@ -2726,7 +2726,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { zephir_array_fast_append(&_1$$6, &funcArguments); ZEPHIR_INIT_VAR(&_2$$6); ZVAL_STRING(&_2$$6, "compileFunction"); - ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 509, &_2$$6, &_1$$6); + ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 511, &_2$$6, &_1$$6); zephir_check_call_status(); if (Z_TYPE_P(&code) == IS_STRING) { RETURN_CCTOR(&code); @@ -2758,7 +2758,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { zephir_array_fetch_string(&_6$$9, &expr, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1645 TSRMLS_CC); ZEPHIR_INIT_VAR(&_7$$9); ZEPHIR_CONCAT_SVSVSV(&_7$$9, "Invalid definition for user function '", &name, "' in ", &_5$$9, " on line ", &_6$$9); - ZEPHIR_CALL_METHOD(NULL, &_4$$9, "__construct", NULL, 507, &_7$$9); + ZEPHIR_CALL_METHOD(NULL, &_4$$9, "__construct", NULL, 509, &_7$$9); zephir_check_call_status(); zephir_throw_exception_debug(&_4$$9, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1645 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -2787,7 +2787,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { zephir_read_property(&_11$$17, this_ptr, SL("exprLevel"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&exprLevel, &_11$$17); if (Z_TYPE_P(&block) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&code, this_ptr, "statementlistorextends", NULL, 511, &block); + ZEPHIR_CALL_METHOD(&code, this_ptr, "statementlistorextends", NULL, 0, &block); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&exprLevel, 1)) { ZEPHIR_CPY_WRT(&escapedCode, &code); @@ -2876,7 +2876,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { ZEPHIR_CONCAT_SVSVS(return_value, "$this->callMacro('", &name, "', [", &arguments, "])"); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_14, this_ptr, "expression", NULL, 506, &nameExpr); + ZEPHIR_CALL_METHOD(&_14, this_ptr, "expression", NULL, 508, &nameExpr); zephir_check_call_status(); ZEPHIR_CONCAT_VSVS(return_value, &_14, "(", &arguments, ")"); RETURN_MM(); @@ -3177,28 +3177,28 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveTest) { if (zephir_array_isset_string_fetch(&name, &testName, SL("value"), 0)) { if (ZEPHIR_IS_STRING(&name, "divisibleby")) { zephir_array_fetch_string(&_1$$12, &test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2036 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0$$12, this_ptr, "expression", NULL, 506, &_1$$12); + ZEPHIR_CALL_METHOD(&_0$$12, this_ptr, "expression", NULL, 508, &_1$$12); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "(((", &left, ") % (", &_0$$12, ")) == 0)"); RETURN_MM(); } if (ZEPHIR_IS_STRING(&name, "sameas")) { zephir_array_fetch_string(&_3$$13, &test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2043 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_2$$13, this_ptr, "expression", NULL, 506, &_3$$13); + ZEPHIR_CALL_METHOD(&_2$$13, this_ptr, "expression", NULL, 508, &_3$$13); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "(", &left, ") === (", &_2$$13, ")"); RETURN_MM(); } if (ZEPHIR_IS_STRING(&name, "type")) { zephir_array_fetch_string(&_5$$14, &test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2050 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_4$$14, this_ptr, "expression", NULL, 506, &_5$$14); + ZEPHIR_CALL_METHOD(&_4$$14, this_ptr, "expression", NULL, 508, &_5$$14); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "gettype(", &left, ") === (", &_4$$14, ")"); RETURN_MM(); } } } - ZEPHIR_CALL_METHOD(&_6, this_ptr, "expression", NULL, 506, &test); + ZEPHIR_CALL_METHOD(&_6, this_ptr, "expression", NULL, 508, &test); zephir_check_call_status(); ZEPHIR_CONCAT_VSV(return_value, &left, " == ", &_6); RETURN_MM(); @@ -3392,7 +3392,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSource) { } else { ZVAL_BOOL(&_0, 0); } - ZEPHIR_CALL_METHOD(&compilation, this_ptr, "statementlist", NULL, 508, &intermediate, &_0); + ZEPHIR_CALL_METHOD(&compilation, this_ptr, "statementlist", NULL, 510, &intermediate, &_0); zephir_check_call_status(); zephir_read_property(&_1, this_ptr, SL("extended"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&extended, &_1); @@ -3424,11 +3424,11 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSource) { ZEPHIR_OBS_NVAR(&localBlock); zephir_array_fetch(&localBlock, &blocks, &name, PH_NOISY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2165 TSRMLS_CC); zephir_update_property_zval(this_ptr, SL("currentBlock"), &name); - ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 508, &localBlock); + ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 510, &localBlock); zephir_check_call_status(); } else { if (Z_TYPE_P(&block) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 508, &block); + ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 510, &block); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&blockCompilation, &block); @@ -3465,11 +3465,11 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSource) { ZEPHIR_OBS_NVAR(&localBlock); zephir_array_fetch(&localBlock, &blocks, &name, PH_NOISY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2165 TSRMLS_CC); zephir_update_property_zval(this_ptr, SL("currentBlock"), &name); - ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 508, &localBlock); + ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 510, &localBlock); zephir_check_call_status(); } else { if (Z_TYPE_P(&block) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 508, &block); + ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 510, &block); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&blockCompilation, &block); @@ -3647,7 +3647,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fetch_string(&_2$$5, &filter, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2263 TSRMLS_CC); ZEPHIR_INIT_VAR(&_3$$5); ZEPHIR_CONCAT_SVSV(&_3$$5, "Unknown filter type in ", &_1$$5, " on line ", &_2$$5); - ZEPHIR_CALL_METHOD(NULL, &_0$$5, "__construct", NULL, 507, &_3$$5); + ZEPHIR_CALL_METHOD(NULL, &_0$$5, "__construct", NULL, 509, &_3$$5); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$5, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2263 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -3685,7 +3685,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { ZEPHIR_UNREF(&funcArguments); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 506, &funcArguments); + ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 508, &funcArguments); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&arguments, &left); @@ -3700,7 +3700,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fast_append(&_7$$9, &funcArguments); ZEPHIR_INIT_VAR(&_8$$9); ZVAL_STRING(&_8$$9, "compileFilter"); - ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 509, &_8$$9, &_7$$9); + ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 511, &_8$$9, &_7$$9); zephir_check_call_status(); if (Z_TYPE_P(&code) == IS_STRING) { RETURN_CCTOR(&code); @@ -3731,7 +3731,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fetch_string(&_12$$11, &filter, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2357 TSRMLS_CC); ZEPHIR_INIT_VAR(&_13$$11); ZEPHIR_CONCAT_SVSVSV(&_13$$11, "Invalid definition for user filter '", &name, "' in ", &_11$$11, " on line ", &_12$$11); - ZEPHIR_CALL_METHOD(NULL, &_10$$11, "__construct", NULL, 507, &_13$$11); + ZEPHIR_CALL_METHOD(NULL, &_10$$11, "__construct", NULL, 509, &_13$$11); zephir_check_call_status(); zephir_throw_exception_debug(&_10$$11, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2357 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -3859,7 +3859,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fetch_string(&_19, &filter, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2551 TSRMLS_CC); ZEPHIR_INIT_VAR(&_20); ZEPHIR_CONCAT_SVSVSV(&_20, "Unknown filter \"", &name, "\" in ", &_18, " on line ", &_19); - ZEPHIR_CALL_METHOD(NULL, &_17, "__construct", NULL, 507, &_20); + ZEPHIR_CALL_METHOD(NULL, &_17, "__construct", NULL, 509, &_20); zephir_check_call_status(); zephir_throw_exception_debug(&_17, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2551 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -4027,7 +4027,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { zephir_array_fetch_string(&_6$$7, &statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2599 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_7$$7); ZEPHIR_CONCAT_SVSV(&_7$$7, "Invalid statement in ", &_5$$7, " on line ", &_6$$7); - ZEPHIR_CALL_METHOD(NULL, &_4$$7, "__construct", &_8, 507, &_7$$7, &statement); + ZEPHIR_CALL_METHOD(NULL, &_4$$7, "__construct", &_8, 509, &_7$$7, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_4$$7, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2601 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -4039,7 +4039,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { zephir_array_fast_append(&_9$$8, &statement); ZEPHIR_INIT_NVAR(&_10$$8); ZVAL_STRING(&_10$$8, "compileStatement"); - ZEPHIR_CALL_METHOD(&tempCompilation, this_ptr, "fireextensionevent", &_11, 509, &_10$$8, &_9$$8); + ZEPHIR_CALL_METHOD(&tempCompilation, this_ptr, "fireextensionevent", &_11, 511, &_10$$8, &_9$$8); zephir_check_call_status(); if (Z_TYPE_P(&tempCompilation) == IS_STRING) { zephir_concat_self(&compilation, &tempCompilation TSRMLS_CC); @@ -4144,7 +4144,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { } else { ZVAL_BOOL(&_34$$24, 0); } - ZEPHIR_CALL_METHOD(&_33$$24, this_ptr, "statementlist", &_35, 508, &blockStatements, &_34$$24); + ZEPHIR_CALL_METHOD(&_33$$24, this_ptr, "statementlist", &_35, 510, &blockStatements, &_34$$24); zephir_check_call_status(); zephir_concat_self(&compilation, &_33$$24 TSRMLS_CC); } @@ -4265,7 +4265,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { zephir_array_fetch_string(&_61$$38, &statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2839 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_62$$38); ZEPHIR_CONCAT_SVSVSV(&_62$$38, "Unknown statement ", &type, " in ", &_60$$38, " on line ", &_61$$38); - ZEPHIR_CALL_METHOD(NULL, &_59$$38, "__construct", &_8, 507, &_62$$38); + ZEPHIR_CALL_METHOD(NULL, &_59$$38, "__construct", &_8, 509, &_62$$38); zephir_check_call_status(); zephir_throw_exception_debug(&_59$$38, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2839 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -4295,7 +4295,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { zephir_array_fetch_string(&_65$$41, &statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2599 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_66$$41); ZEPHIR_CONCAT_SVSV(&_66$$41, "Invalid statement in ", &_64$$41, " on line ", &_65$$41); - ZEPHIR_CALL_METHOD(NULL, &_63$$41, "__construct", &_8, 507, &_66$$41, &statement); + ZEPHIR_CALL_METHOD(NULL, &_63$$41, "__construct", &_8, 509, &_66$$41, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_63$$41, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2601 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -4307,7 +4307,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { zephir_array_fast_append(&_67$$42, &statement); ZEPHIR_INIT_NVAR(&_68$$42); ZVAL_STRING(&_68$$42, "compileStatement"); - ZEPHIR_CALL_METHOD(&tempCompilation, this_ptr, "fireextensionevent", &_11, 509, &_68$$42, &_67$$42); + ZEPHIR_CALL_METHOD(&tempCompilation, this_ptr, "fireextensionevent", &_11, 511, &_68$$42, &_67$$42); zephir_check_call_status(); if (Z_TYPE_P(&tempCompilation) == IS_STRING) { zephir_concat_self(&compilation, &tempCompilation TSRMLS_CC); @@ -4412,7 +4412,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { } else { ZVAL_BOOL(&_84$$58, 0); } - ZEPHIR_CALL_METHOD(&_83$$58, this_ptr, "statementlist", &_35, 508, &blockStatements, &_84$$58); + ZEPHIR_CALL_METHOD(&_83$$58, this_ptr, "statementlist", &_35, 510, &blockStatements, &_84$$58); zephir_check_call_status(); zephir_concat_self(&compilation, &_83$$58 TSRMLS_CC); } @@ -4533,7 +4533,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { zephir_array_fetch_string(&_101$$72, &statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2839 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_102$$72); ZEPHIR_CONCAT_SVSVSV(&_102$$72, "Unknown statement ", &type, " in ", &_100$$72, " on line ", &_101$$72); - ZEPHIR_CALL_METHOD(NULL, &_99$$72, "__construct", &_8, 507, &_102$$72); + ZEPHIR_CALL_METHOD(NULL, &_99$$72, "__construct", &_8, 509, &_102$$72); zephir_check_call_status(); zephir_throw_exception_debug(&_99$$72, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2839 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -4621,7 +4621,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementListOrExtends) { ZEPHIR_INIT_NVAR(&statement); } if (isStatementList) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "statementlist", NULL, 508, statements); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "statementlist", NULL, 510, statements); zephir_check_call_status(); RETURN_MM(); } diff --git a/ext/phalcon/mvc/view/simple.zep.c b/ext/phalcon/mvc/view/simple.zep.c index 20cec2bb7ce..753918ea07c 100644 --- a/ext/phalcon/mvc/view/simple.zep.c +++ b/ext/phalcon/mvc/view/simple.zep.c @@ -349,7 +349,7 @@ PHP_METHOD(Phalcon_Mvc_View_Simple, partial) { } - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 393); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 391); zephir_check_call_status(); if (Z_TYPE_P(params) == IS_ARRAY) { zephir_read_property(&_0$$3, this_ptr, SL("viewParams"), PH_NOISY_CC | PH_READONLY); @@ -451,7 +451,7 @@ PHP_METHOD(Phalcon_Mvc_View_Simple, render) { ZEPHIR_INIT_VAR(&_0); ZEPHIR_CREATE_SYMBOL_TABLE(); - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 393); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 391); zephir_check_call_status(); zephir_read_property(&_1, this_ptr, SL("viewParams"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&viewParams, &_1); @@ -712,7 +712,7 @@ PHP_METHOD(Phalcon_Mvc_View_Simple, loadTemplateEngines) { if (Z_TYPE_P(®isteredEngines) != IS_ARRAY) { ZEPHIR_INIT_VAR(&_2$$4); object_init_ex(&_2$$4, phalcon_mvc_view_engine_php_ce); - ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 498, this_ptr, &di); + ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 500, this_ptr, &di); zephir_check_call_status(); zephir_array_update_string(&engines, SL(".phtml"), &_2$$4, PH_COPY | PH_SEPARATE); } else { diff --git a/ext/phalcon/security.zep.c b/ext/phalcon/security.zep.c index 2e42112b6b0..20633e34070 100644 --- a/ext/phalcon/security.zep.c +++ b/ext/phalcon/security.zep.c @@ -49,7 +49,9 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Security) { - ZEPHIR_REGISTER_CLASS_EX(Phalcon, Security, phalcon, security, phalcon_di_abstractinjectionaware_ce, phalcon_security_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Phalcon, Security, phalcon, security, phalcon_security_method_entry, 0); + + zend_declare_property_null(phalcon_security_ce, SL("container"), ZEND_ACC_PROTECTED TSRMLS_CC); zend_declare_property_null(phalcon_security_ce, SL("defaultHash"), ZEND_ACC_PROTECTED TSRMLS_CC); @@ -69,10 +71,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Security) { zend_declare_property_long(phalcon_security_ce, SL("workFactor"), 8, ZEND_ACC_PROTECTED TSRMLS_CC); - zend_declare_property_null(phalcon_security_ce, SL("localSession"), ZEND_ACC_PRIVATE TSRMLS_CC); - - zend_declare_property_null(phalcon_security_ce, SL("localRequest"), ZEND_ACC_PRIVATE TSRMLS_CC); - zephir_declare_class_constant_long(phalcon_security_ce, SL("CRYPT_DEFAULT"), 0); zephir_declare_class_constant_long(phalcon_security_ce, SL("CRYPT_BLOWFISH"), 4); @@ -93,6 +91,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Security) { zephir_declare_class_constant_long(phalcon_security_ce, SL("CRYPT_STD_DES"), 1); + zend_class_implements(phalcon_security_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); return SUCCESS; } @@ -127,28 +126,14 @@ PHP_METHOD(Phalcon_Security, getWorkFactor) { */ PHP_METHOD(Phalcon_Security, __construct) { + zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; - zval *session = NULL, session_sub, *request = NULL, request_sub, __$null, _0; zval *this_ptr = getThis(); - ZVAL_UNDEF(&session_sub); - ZVAL_UNDEF(&request_sub); - ZVAL_NULL(&__$null); ZVAL_UNDEF(&_0); ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 0, 2, &session, &request); - - if (!session) { - session = &session_sub; - session = &__$null; - } - if (!request) { - request = &request_sub; - request = &__$null; - } - ZEPHIR_INIT_VAR(&_0); object_init_ex(&_0, phalcon_security_random_ce); @@ -157,8 +142,6 @@ PHP_METHOD(Phalcon_Security, __construct) { zephir_check_call_status(); } zephir_update_property_zval(this_ptr, SL("random"), &_0); - zephir_update_property_zval(this_ptr, SL("localRequest"), request); - zephir_update_property_zval(this_ptr, SL("localSession"), session); ZEPHIR_MM_RESTORE(); } @@ -230,20 +213,28 @@ PHP_METHOD(Phalcon_Security, checkToken) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; - zend_bool destroyIfValid, _0, _3; - zval *tokenKey = NULL, tokenKey_sub, *tokenValue = NULL, tokenValue_sub, *destroyIfValid_param = NULL, __$null, session, request, equals, userToken, knownToken, _1$$3, _2$$5; + zephir_fcall_cache_entry *_3 = NULL; + zend_bool destroyIfValid, _9; + zval *tokenKey = NULL, tokenKey_sub, *tokenValue = NULL, tokenValue_sub, *destroyIfValid_param = NULL, __$null, container, session, request, equals, userToken, knownToken, _0, _5, _6, _1$$3, _2$$3, _4$$3, _7$$4, _8$$6; zval *this_ptr = getThis(); ZVAL_UNDEF(&tokenKey_sub); ZVAL_UNDEF(&tokenValue_sub); ZVAL_NULL(&__$null); + ZVAL_UNDEF(&container); ZVAL_UNDEF(&session); ZVAL_UNDEF(&request); ZVAL_UNDEF(&equals); ZVAL_UNDEF(&userToken); ZVAL_UNDEF(&knownToken); + ZVAL_UNDEF(&_0); + ZVAL_UNDEF(&_5); + ZVAL_UNDEF(&_6); ZVAL_UNDEF(&_1$$3); - ZVAL_UNDEF(&_2$$5); + ZVAL_UNDEF(&_2$$3); + ZVAL_UNDEF(&_4$$3); + ZVAL_UNDEF(&_7$$4); + ZVAL_UNDEF(&_8$$6); ZEPHIR_MM_GROW(); zephir_fetch_params(1, 0, 3, &tokenKey, &tokenValue, &destroyIfValid_param); @@ -265,43 +256,56 @@ PHP_METHOD(Phalcon_Security, checkToken) { } - ZEPHIR_CALL_METHOD(&session, this_ptr, "getlocalsession", NULL, 0); - zephir_check_call_status(); - _0 = zephir_is_true(&session); - if (_0) { - _0 = !zephir_is_true(tokenKey); + zephir_read_property(&_0, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CPY_WRT(&container, &_0); + if (UNEXPECTED(Z_TYPE_P(&container) != IS_OBJECT)) { + ZEPHIR_INIT_VAR(&_1$$3); + object_init_ex(&_1$$3, phalcon_security_exception_ce); + ZEPHIR_INIT_VAR(&_4$$3); + ZVAL_STRING(&_4$$3, "the 'session' service"); + ZEPHIR_CALL_CE_STATIC(&_2$$3, phalcon_security_exception_ce, "containerservicenotfound", &_3, 0, &_4$$3); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 5, &_2$$3); + zephir_check_call_status(); + zephir_throw_exception_debug(&_1$$3, "phalcon/Security.zep", 111 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); + return; } - if (EXPECTED(_0)) { - zephir_read_property(&_1$$3, this_ptr, SL("tokenKeySessionId"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(tokenKey, &session, "get", NULL, 0, &_1$$3); + ZEPHIR_INIT_VAR(&_6); + ZVAL_STRING(&_6, "session"); + ZEPHIR_CALL_METHOD(&_5, &container, "getshared", NULL, 0, &_6); + zephir_check_call_status(); + ZEPHIR_CPY_WRT(&session, &_5); + if (!(zephir_is_true(tokenKey))) { + zephir_read_property(&_7$$4, this_ptr, SL("tokenKeySessionId"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CALL_METHOD(tokenKey, &session, "get", NULL, 0, &_7$$4); zephir_check_call_status(); } if (!(zephir_is_true(tokenKey))) { RETURN_MM_BOOL(0); } if (!(zephir_is_true(tokenValue))) { - ZEPHIR_CALL_METHOD(&request, this_ptr, "getlocalrequest", NULL, 0); + ZEPHIR_INIT_VAR(&_8$$6); + ZVAL_STRING(&_8$$6, "request"); + ZEPHIR_CALL_METHOD(&request, &container, "getshared", NULL, 0, &_8$$6); zephir_check_call_status(); - ZEPHIR_INIT_VAR(&_2$$5); - ZVAL_STRING(&_2$$5, "string"); - ZEPHIR_CALL_METHOD(&userToken, &request, "getpost", NULL, 0, tokenKey, &_2$$5); + ZEPHIR_INIT_NVAR(&_8$$6); + ZVAL_STRING(&_8$$6, "string"); + ZEPHIR_CALL_METHOD(&userToken, &request, "getpost", NULL, 0, tokenKey, &_8$$6); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&userToken, tokenValue); } ZEPHIR_CALL_METHOD(&knownToken, this_ptr, "getrequesttoken", NULL, 0); zephir_check_call_status(); - if (Z_TYPE_P(&knownToken) == IS_NULL) { - RETURN_MM_BOOL(0); - } ZEPHIR_INIT_VAR(&equals); ZEPHIR_INIT_NVAR(&equals); ZVAL_BOOL(&equals, zephir_hash_equals(&knownToken, &userToken)); - _3 = zephir_is_true(&equals); - if (_3) { - _3 = destroyIfValid; + _9 = zephir_is_true(&equals); + if (_9) { + _9 = destroyIfValid; } - if (_3) { + if (_9) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "destroytoken", NULL, 0); zephir_check_call_status(); } @@ -355,7 +359,7 @@ PHP_METHOD(Phalcon_Security, computeHmac) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 5, &_3$$3); zephir_check_call_status(); - zephir_throw_exception_debug(&_1$$3, "phalcon/Security.zep", 173 TSRMLS_CC); + zephir_throw_exception_debug(&_1$$3, "phalcon/Security.zep", 172 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -369,27 +373,50 @@ PHP_METHOD(Phalcon_Security, computeHmac) { PHP_METHOD(Phalcon_Security, destroyToken) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval __$null, session, _0$$3, _1$$3; + zval __$null, container, session, _0, _5, _6, _7, _1$$3, _2$$3, _4$$3; zend_long ZEPHIR_LAST_CALL_STATUS; + zephir_fcall_cache_entry *_3 = NULL; zval *this_ptr = getThis(); ZVAL_NULL(&__$null); + ZVAL_UNDEF(&container); ZVAL_UNDEF(&session); - ZVAL_UNDEF(&_0$$3); + ZVAL_UNDEF(&_0); + ZVAL_UNDEF(&_5); + ZVAL_UNDEF(&_6); + ZVAL_UNDEF(&_7); ZVAL_UNDEF(&_1$$3); + ZVAL_UNDEF(&_2$$3); + ZVAL_UNDEF(&_4$$3); ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&session, this_ptr, "getlocalsession", NULL, 0); - zephir_check_call_status(); - if (UNEXPECTED(zephir_is_true(&session))) { - zephir_read_property(&_0$$3, this_ptr, SL("tokenKeySessionId"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(NULL, &session, "remove", NULL, 0, &_0$$3); + zephir_read_property(&_0, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CPY_WRT(&container, &_0); + if (UNEXPECTED(Z_TYPE_P(&container) != IS_OBJECT)) { + ZEPHIR_INIT_VAR(&_1$$3); + object_init_ex(&_1$$3, phalcon_security_exception_ce); + ZEPHIR_INIT_VAR(&_4$$3); + ZVAL_STRING(&_4$$3, "the 'session' service"); + ZEPHIR_CALL_CE_STATIC(&_2$$3, phalcon_security_exception_ce, "containerservicenotfound", &_3, 0, &_4$$3); zephir_check_call_status(); - zephir_read_property(&_1$$3, this_ptr, SL("tokenValueSessionId"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(NULL, &session, "remove", NULL, 0, &_1$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 5, &_2$$3); zephir_check_call_status(); + zephir_throw_exception_debug(&_1$$3, "phalcon/Security.zep", 190 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); + return; } + ZEPHIR_INIT_VAR(&_6); + ZVAL_STRING(&_6, "session"); + ZEPHIR_CALL_METHOD(&_5, &container, "getshared", NULL, 0, &_6); + zephir_check_call_status(); + ZEPHIR_CPY_WRT(&session, &_5); + zephir_read_property(&_0, this_ptr, SL("tokenKeySessionId"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CALL_METHOD(NULL, &session, "remove", NULL, 0, &_0); + zephir_check_call_status(); + zephir_read_property(&_7, this_ptr, SL("tokenValueSessionId"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CALL_METHOD(NULL, &session, "remove", NULL, 0, &_7); + zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("token"), &__$null); zephir_update_property_zval(this_ptr, SL("tokenKey"), &__$null); zephir_update_property_zval(this_ptr, SL("requestToken"), &__$null); @@ -409,6 +436,18 @@ PHP_METHOD(Phalcon_Security, getDefaultHash) { } +/** + * Returns the internal dependency injector + */ +PHP_METHOD(Phalcon_Security, getDI) { + + zval *this_ptr = getThis(); + + + RETURN_MEMBER(getThis(), "container"); + +} + /** * Returns a secure random number generator instance */ @@ -463,25 +502,47 @@ PHP_METHOD(Phalcon_Security, getRequestToken) { */ PHP_METHOD(Phalcon_Security, getSessionToken) { - zval session, _0$$3; + zval container, session, _0, _5, _6, _1$$3, _2$$3, _4$$3; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; + zephir_fcall_cache_entry *_3 = NULL; zval *this_ptr = getThis(); + ZVAL_UNDEF(&container); ZVAL_UNDEF(&session); - ZVAL_UNDEF(&_0$$3); + ZVAL_UNDEF(&_0); + ZVAL_UNDEF(&_5); + ZVAL_UNDEF(&_6); + ZVAL_UNDEF(&_1$$3); + ZVAL_UNDEF(&_2$$3); + ZVAL_UNDEF(&_4$$3); ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&session, this_ptr, "getlocalsession", NULL, 0); - zephir_check_call_status(); - if (UNEXPECTED(zephir_is_true(&session))) { - zephir_read_property(&_0$$3, this_ptr, SL("tokenValueSessionId"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_RETURN_CALL_METHOD(&session, "get", NULL, 0, &_0$$3); + zephir_read_property(&_0, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CPY_WRT(&container, &_0); + if (UNEXPECTED(Z_TYPE_P(&container) != IS_OBJECT)) { + ZEPHIR_INIT_VAR(&_1$$3); + object_init_ex(&_1$$3, phalcon_security_exception_ce); + ZEPHIR_INIT_VAR(&_4$$3); + ZVAL_STRING(&_4$$3, "the 'session' service"); + ZEPHIR_CALL_CE_STATIC(&_2$$3, phalcon_security_exception_ce, "containerservicenotfound", &_3, 0, &_4$$3); zephir_check_call_status(); - RETURN_MM(); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 5, &_2$$3); + zephir_check_call_status(); + zephir_throw_exception_debug(&_1$$3, "phalcon/Security.zep", 262 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); + return; } - RETURN_MM_NULL(); + ZEPHIR_INIT_VAR(&_6); + ZVAL_STRING(&_6, "session"); + ZEPHIR_CALL_METHOD(&_5, &container, "getshared", NULL, 0, &_6); + zephir_check_call_status(); + ZEPHIR_CPY_WRT(&session, &_5); + zephir_read_property(&_0, this_ptr, SL("tokenValueSessionId"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_RETURN_CALL_METHOD(&session, "get", NULL, 0, &_0); + zephir_check_call_status(); + RETURN_MM(); } @@ -540,19 +601,26 @@ PHP_METHOD(Phalcon_Security, getSaltBytes) { */ PHP_METHOD(Phalcon_Security, getToken) { - zval session, _0, _1$$3, _2$$3, _3$$3, _4$$3, _5$$4, _6$$4; + zval container, session, _0, _1$$3, _2$$3, _3$$3, _4$$3, _5$$3, _10$$3, _11$$3, _12$$3, _6$$4, _7$$4, _9$$4; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; + zephir_fcall_cache_entry *_8 = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; zval *this_ptr = getThis(); + ZVAL_UNDEF(&container); ZVAL_UNDEF(&session); ZVAL_UNDEF(&_0); ZVAL_UNDEF(&_1$$3); ZVAL_UNDEF(&_2$$3); ZVAL_UNDEF(&_3$$3); ZVAL_UNDEF(&_4$$3); - ZVAL_UNDEF(&_5$$4); + ZVAL_UNDEF(&_5$$3); + ZVAL_UNDEF(&_10$$3); + ZVAL_UNDEF(&_11$$3); + ZVAL_UNDEF(&_12$$3); ZVAL_UNDEF(&_6$$4); + ZVAL_UNDEF(&_7$$4); + ZVAL_UNDEF(&_9$$4); ZEPHIR_MM_GROW(); @@ -566,14 +634,30 @@ PHP_METHOD(Phalcon_Security, getToken) { ZEPHIR_CALL_METHOD(&_3$$3, &_2$$3, "base64safe", NULL, 0, &_4$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("token"), &_3$$3); - ZEPHIR_CALL_METHOD(&session, this_ptr, "getlocalsession", NULL, 0); - zephir_check_call_status(); - if (UNEXPECTED(zephir_is_true(&session))) { - zephir_read_property(&_5$$4, this_ptr, SL("tokenValueSessionId"), PH_NOISY_CC | PH_READONLY); - zephir_read_property(&_6$$4, this_ptr, SL("token"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(NULL, &session, "set", NULL, 0, &_5$$4, &_6$$4); + zephir_read_property(&_5$$3, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CPY_WRT(&container, &_5$$3); + if (UNEXPECTED(Z_TYPE_P(&container) != IS_OBJECT)) { + ZEPHIR_INIT_VAR(&_6$$4); + object_init_ex(&_6$$4, phalcon_security_exception_ce); + ZEPHIR_INIT_VAR(&_9$$4); + ZVAL_STRING(&_9$$4, "the 'session' service"); + ZEPHIR_CALL_CE_STATIC(&_7$$4, phalcon_security_exception_ce, "containerservicenotfound", &_8, 0, &_9$$4); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(NULL, &_6$$4, "__construct", NULL, 5, &_7$$4); zephir_check_call_status(); + zephir_throw_exception_debug(&_6$$4, "phalcon/Security.zep", 310 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); + return; } + ZEPHIR_INIT_VAR(&_11$$3); + ZVAL_STRING(&_11$$3, "session"); + ZEPHIR_CALL_METHOD(&_10$$3, &container, "getshared", NULL, 0, &_11$$3); + zephir_check_call_status(); + ZEPHIR_CPY_WRT(&session, &_10$$3); + zephir_read_property(&_5$$3, this_ptr, SL("tokenValueSessionId"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_12$$3, this_ptr, SL("token"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CALL_METHOD(NULL, &session, "set", NULL, 0, &_5$$3, &_12$$3); + zephir_check_call_status(); } RETURN_MM_MEMBER(getThis(), "token"); @@ -585,36 +669,59 @@ PHP_METHOD(Phalcon_Security, getToken) { */ PHP_METHOD(Phalcon_Security, getTokenKey) { - zval session, _0, _1$$4, _2$$4, _3$$4, _4$$4, _5$$4; + zval container, session, _0, _1$$3, _6$$3, _7$$3, _8$$3, _9$$3, _10$$3, _11$$3, _2$$4, _3$$4, _5$$4; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; + zephir_fcall_cache_entry *_4 = NULL; zval *this_ptr = getThis(); + ZVAL_UNDEF(&container); ZVAL_UNDEF(&session); ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1$$4); + ZVAL_UNDEF(&_1$$3); + ZVAL_UNDEF(&_6$$3); + ZVAL_UNDEF(&_7$$3); + ZVAL_UNDEF(&_8$$3); + ZVAL_UNDEF(&_9$$3); + ZVAL_UNDEF(&_10$$3); + ZVAL_UNDEF(&_11$$3); ZVAL_UNDEF(&_2$$4); ZVAL_UNDEF(&_3$$4); - ZVAL_UNDEF(&_4$$4); ZVAL_UNDEF(&_5$$4); ZEPHIR_MM_GROW(); zephir_read_property(&_0, this_ptr, SL("tokenKey"), PH_NOISY_CC | PH_READONLY); if (Z_TYPE_P(&_0) == IS_NULL) { - ZEPHIR_CALL_METHOD(&session, this_ptr, "getlocalsession", NULL, 0); - zephir_check_call_status(); - if (UNEXPECTED(zephir_is_true(&session))) { - zephir_read_property(&_1$$4, this_ptr, SL("random"), PH_NOISY_CC | PH_READONLY); - zephir_read_property(&_3$$4, this_ptr, SL("numberBytes"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(&_2$$4, &_1$$4, "base64safe", NULL, 0, &_3$$4); + zephir_read_property(&_1$$3, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CPY_WRT(&container, &_1$$3); + if (UNEXPECTED(Z_TYPE_P(&container) != IS_OBJECT)) { + ZEPHIR_INIT_VAR(&_2$$4); + object_init_ex(&_2$$4, phalcon_security_exception_ce); + ZEPHIR_INIT_VAR(&_5$$4); + ZVAL_STRING(&_5$$4, "the 'session' service"); + ZEPHIR_CALL_CE_STATIC(&_3$$4, phalcon_security_exception_ce, "containerservicenotfound", &_4, 0, &_5$$4); zephir_check_call_status(); - zephir_update_property_zval(this_ptr, SL("tokenKey"), &_2$$4); - zephir_read_property(&_4$$4, this_ptr, SL("tokenKeySessionId"), PH_NOISY_CC | PH_READONLY); - zephir_read_property(&_5$$4, this_ptr, SL("tokenKey"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(NULL, &session, "set", NULL, 0, &_4$$4, &_5$$4); + ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 5, &_3$$4); zephir_check_call_status(); + zephir_throw_exception_debug(&_2$$4, "phalcon/Security.zep", 338 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); + return; } + zephir_read_property(&_1$$3, this_ptr, SL("random"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_7$$3, this_ptr, SL("numberBytes"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CALL_METHOD(&_6$$3, &_1$$3, "base64safe", NULL, 0, &_7$$3); + zephir_check_call_status(); + zephir_update_property_zval(this_ptr, SL("tokenKey"), &_6$$3); + ZEPHIR_INIT_VAR(&_9$$3); + ZVAL_STRING(&_9$$3, "session"); + ZEPHIR_CALL_METHOD(&_8$$3, &container, "getshared", NULL, 0, &_9$$3); + zephir_check_call_status(); + ZEPHIR_CPY_WRT(&session, &_8$$3); + zephir_read_property(&_10$$3, this_ptr, SL("tokenKeySessionId"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_11$$3, this_ptr, SL("tokenKey"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CALL_METHOD(NULL, &session, "set", NULL, 0, &_10$$3, &_11$$3); + zephir_check_call_status(); } RETURN_MM_MEMBER(getThis(), "tokenKey"); @@ -715,7 +822,7 @@ PHP_METHOD(Phalcon_Security, hash) { zephir_check_call_status(); } if (UNEXPECTED(Z_TYPE_P(&saltBytes) != IS_STRING)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Unable to get random bytes for the salt", "phalcon/Security.zep", 391); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Unable to get random bytes for the salt", "phalcon/Security.zep", 420); return; } ZEPHIR_RETURN_CALL_FUNCTION("crypt", NULL, 0, &password, &saltBytes); @@ -734,7 +841,7 @@ PHP_METHOD(Phalcon_Security, hash) { ZEPHIR_CALL_METHOD(&saltBytes, this_ptr, "getsaltbytes", NULL, 0, &_5$$15); zephir_check_call_status(); if (UNEXPECTED(Z_TYPE_P(&saltBytes) != IS_STRING)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Unable to get random bytes for the salt", "phalcon/Security.zep", 410); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Unable to get random bytes for the salt", "phalcon/Security.zep", 439); return; } ZEPHIR_INIT_VAR(&_6$$15); @@ -747,7 +854,7 @@ PHP_METHOD(Phalcon_Security, hash) { ZEPHIR_CALL_METHOD(&saltBytes, this_ptr, "getsaltbytes", NULL, 0, &_7$$17); zephir_check_call_status(); if (UNEXPECTED(Z_TYPE_P(&saltBytes) != IS_STRING)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Unable to get random bytes for the salt", "phalcon/Security.zep", 439); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Unable to get random bytes for the salt", "phalcon/Security.zep", 468); return; } if (workFactor < 4) { @@ -816,6 +923,24 @@ PHP_METHOD(Phalcon_Security, setDefaultHash) { } +/** + * Sets the dependency injector + */ +PHP_METHOD(Phalcon_Security, setDI) { + + zval *container, container_sub; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&container_sub); + + zephir_fetch_params_without_memory_grow(1, 0, &container); + + + + zephir_update_property_zval(this_ptr, SL("container"), container); + +} + /** * Sets a number of bytes to be generated by the openssl pseudo random * generator @@ -844,113 +969,3 @@ PHP_METHOD(Phalcon_Security, setRandomBytes) { } -PHP_METHOD(Phalcon_Security, getLocalRequest) { - - zval container, _0, _1, _6, _7, _2$$4, _3$$4, _5$$4, _8$$5, _9$$5; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zephir_fcall_cache_entry *_4 = NULL; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&container); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&_6); - ZVAL_UNDEF(&_7); - ZVAL_UNDEF(&_2$$4); - ZVAL_UNDEF(&_3$$4); - ZVAL_UNDEF(&_5$$4); - ZVAL_UNDEF(&_8$$5); - ZVAL_UNDEF(&_9$$5); - - ZEPHIR_MM_GROW(); - - zephir_read_property(&_0, this_ptr, SL("localRequest"), PH_NOISY_CC | PH_READONLY); - if (zephir_is_true(&_0)) { - RETURN_MM_MEMBER(getThis(), "localRequest"); - } - zephir_read_property(&_1, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CPY_WRT(&container, &_1); - if (UNEXPECTED(Z_TYPE_P(&container) != IS_OBJECT)) { - ZEPHIR_INIT_VAR(&_2$$4); - object_init_ex(&_2$$4, phalcon_security_exception_ce); - ZEPHIR_INIT_VAR(&_5$$4); - ZVAL_STRING(&_5$$4, "the 'request' service"); - ZEPHIR_CALL_CE_STATIC(&_3$$4, phalcon_security_exception_ce, "containerservicenotfound", &_4, 0, &_5$$4); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 5, &_3$$4); - zephir_check_call_status(); - zephir_throw_exception_debug(&_2$$4, "phalcon/Security.zep", 498 TSRMLS_CC); - ZEPHIR_MM_RESTORE(); - return; - } - ZEPHIR_INIT_VAR(&_7); - ZVAL_STRING(&_7, "request"); - ZEPHIR_CALL_METHOD(&_6, &container, "has", NULL, 0, &_7); - zephir_check_call_status(); - if (UNEXPECTED(zephir_is_true(&_6))) { - ZEPHIR_INIT_VAR(&_9$$5); - ZVAL_STRING(&_9$$5, "request"); - ZEPHIR_CALL_METHOD(&_8$$5, &container, "getshared", NULL, 0, &_9$$5); - zephir_check_call_status(); - RETURN_CCTOR(&_8$$5); - } - RETURN_MM_NULL(); - -} - -PHP_METHOD(Phalcon_Security, getLocalSession) { - - zval container, _0, _1, _6, _7, _2$$4, _3$$4, _5$$4, _8$$5, _9$$5; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zephir_fcall_cache_entry *_4 = NULL; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&container); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&_6); - ZVAL_UNDEF(&_7); - ZVAL_UNDEF(&_2$$4); - ZVAL_UNDEF(&_3$$4); - ZVAL_UNDEF(&_5$$4); - ZVAL_UNDEF(&_8$$5); - ZVAL_UNDEF(&_9$$5); - - ZEPHIR_MM_GROW(); - - zephir_read_property(&_0, this_ptr, SL("localSession"), PH_NOISY_CC | PH_READONLY); - if (zephir_is_true(&_0)) { - RETURN_MM_MEMBER(getThis(), "localSession"); - } - zephir_read_property(&_1, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CPY_WRT(&container, &_1); - if (UNEXPECTED(Z_TYPE_P(&container) != IS_OBJECT)) { - ZEPHIR_INIT_VAR(&_2$$4); - object_init_ex(&_2$$4, phalcon_security_exception_ce); - ZEPHIR_INIT_VAR(&_5$$4); - ZVAL_STRING(&_5$$4, "the 'session' service"); - ZEPHIR_CALL_CE_STATIC(&_3$$4, phalcon_security_exception_ce, "containerservicenotfound", &_4, 0, &_5$$4); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 5, &_3$$4); - zephir_check_call_status(); - zephir_throw_exception_debug(&_2$$4, "phalcon/Security.zep", 520 TSRMLS_CC); - ZEPHIR_MM_RESTORE(); - return; - } - ZEPHIR_INIT_VAR(&_7); - ZVAL_STRING(&_7, "session"); - ZEPHIR_CALL_METHOD(&_6, &container, "has", NULL, 0, &_7); - zephir_check_call_status(); - if (UNEXPECTED(zephir_is_true(&_6))) { - ZEPHIR_INIT_VAR(&_9$$5); - ZVAL_STRING(&_9$$5, "session"); - ZEPHIR_CALL_METHOD(&_8$$5, &container, "getshared", NULL, 0, &_9$$5); - zephir_check_call_status(); - RETURN_CCTOR(&_8$$5); - } - RETURN_MM_NULL(); - -} - diff --git a/ext/phalcon/security.zep.h b/ext/phalcon/security.zep.h index 252f62c768d..d8cb169ce1e 100644 --- a/ext/phalcon/security.zep.h +++ b/ext/phalcon/security.zep.h @@ -11,6 +11,7 @@ PHP_METHOD(Phalcon_Security, checkToken); PHP_METHOD(Phalcon_Security, computeHmac); PHP_METHOD(Phalcon_Security, destroyToken); PHP_METHOD(Phalcon_Security, getDefaultHash); +PHP_METHOD(Phalcon_Security, getDI); PHP_METHOD(Phalcon_Security, getRandom); PHP_METHOD(Phalcon_Security, getRandomBytes); PHP_METHOD(Phalcon_Security, getRequestToken); @@ -21,19 +22,13 @@ PHP_METHOD(Phalcon_Security, getTokenKey); PHP_METHOD(Phalcon_Security, hash); PHP_METHOD(Phalcon_Security, isLegacyHash); PHP_METHOD(Phalcon_Security, setDefaultHash); +PHP_METHOD(Phalcon_Security, setDI); PHP_METHOD(Phalcon_Security, setRandomBytes); -PHP_METHOD(Phalcon_Security, getLocalRequest); -PHP_METHOD(Phalcon_Security, getLocalSession); ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_security_setworkfactor, 0, 0, 1) ZEND_ARG_INFO(0, workFactor) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_security___construct, 0, 0, 0) - ZEND_ARG_OBJ_INFO(0, session, Phalcon\\Session\\ManagerInterface, 1) - ZEND_ARG_OBJ_INFO(0, request, Phalcon\\Http\\RequestInterface, 1) -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_checkhash, 0, 2, _IS_BOOL, 0) #else @@ -111,6 +106,13 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getdefaulthash, #endif ZEND_END_ARG_INFO() +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_security_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) +#endif +ZEND_END_ARG_INFO() + #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_security_getrandom, 0, 0, Phalcon\\Security\\Random, 0) #else @@ -126,16 +128,16 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getrandombytes, ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getrequesttoken, 0, 0, IS_STRING, 1) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getrequesttoken, 0, 0, IS_STRING, 0) #else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getrequesttoken, 0, 0, IS_STRING, NULL, 1) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getrequesttoken, 0, 0, IS_STRING, NULL, 0) #endif ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getsessiontoken, 0, 0, IS_STRING, 1) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getsessiontoken, 0, 0, IS_STRING, 0) #else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getsessiontoken, 0, 0, IS_STRING, NULL, 1) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getsessiontoken, 0, 0, IS_STRING, NULL, 0) #endif ZEND_END_ARG_INFO() @@ -206,6 +208,10 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_setdefaulthash, #endif ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_security_setdi, 0, 0, 1) + ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) +ZEND_END_ARG_INFO() + #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_security_setrandombytes, 0, 1, Phalcon\\Security, 0) #else @@ -218,29 +224,16 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_setrandombytes, #endif ZEND_END_ARG_INFO() -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_security_getlocalrequest, 0, 0, Phalcon\\Http\\RequestInterface, 1) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getlocalrequest, 0, 0, IS_OBJECT, "Phalcon\\Http\\RequestInterface", 1) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_security_getlocalsession, 0, 0, Phalcon\\Session\\ManagerInterface, 1) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getlocalsession, 0, 0, IS_OBJECT, "Phalcon\\Session\\ManagerInterface", 1) -#endif -ZEND_END_ARG_INFO() - ZEPHIR_INIT_FUNCS(phalcon_security_method_entry) { PHP_ME(Phalcon_Security, setWorkFactor, arginfo_phalcon_security_setworkfactor, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security, getWorkFactor, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Security, __construct, arginfo_phalcon_security___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Security, __construct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) PHP_ME(Phalcon_Security, checkHash, arginfo_phalcon_security_checkhash, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security, checkToken, arginfo_phalcon_security_checktoken, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security, computeHmac, arginfo_phalcon_security_computehmac, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security, destroyToken, arginfo_phalcon_security_destroytoken, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security, getDefaultHash, arginfo_phalcon_security_getdefaulthash, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Security, getDI, arginfo_phalcon_security_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security, getRandom, arginfo_phalcon_security_getrandom, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security, getRandomBytes, arginfo_phalcon_security_getrandombytes, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security, getRequestToken, arginfo_phalcon_security_getrequesttoken, ZEND_ACC_PUBLIC) @@ -251,8 +244,7 @@ ZEPHIR_INIT_FUNCS(phalcon_security_method_entry) { PHP_ME(Phalcon_Security, hash, arginfo_phalcon_security_hash, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security, isLegacyHash, arginfo_phalcon_security_islegacyhash, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security, setDefaultHash, arginfo_phalcon_security_setdefaulthash, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Security, setDI, arginfo_phalcon_security_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security, setRandomBytes, arginfo_phalcon_security_setrandombytes, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Security, getLocalRequest, arginfo_phalcon_security_getlocalrequest, ZEND_ACC_PRIVATE) - PHP_ME(Phalcon_Security, getLocalSession, arginfo_phalcon_security_getlocalsession, ZEND_ACC_PRIVATE) PHP_FE_END }; diff --git a/ext/phalcon/session/adapter/stream.zep.c b/ext/phalcon/session/adapter/stream.zep.c index bfedaf17066..8c02c522e95 100644 --- a/ext/phalcon/session/adapter/stream.zep.c +++ b/ext/phalcon/session/adapter/stream.zep.c @@ -22,6 +22,7 @@ #include "ext/spl/spl_exceptions.h" #include "kernel/file.h" #include "kernel/time.h" +#include "kernel/string.h" /** @@ -110,7 +111,7 @@ PHP_METHOD(Phalcon_Session_Adapter_Stream, __construct) { ZEPHIR_INIT_VAR(&_4$$4); object_init_ex(&_4$$4, phalcon_session_exception_ce); ZEPHIR_INIT_VAR(&_5$$4); - ZEPHIR_CONCAT_SVS(&_5$$4, "The session save path [", &path, "] is not writable"); + ZEPHIR_CONCAT_SVS(&_5$$4, "The save_path [", &path, "]is not writeable"); ZEPHIR_CALL_METHOD(NULL, &_4$$4, "__construct", NULL, 5, &_5$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_4$$4, "phalcon/Session/Adapter/Stream.zep", 60 TSRMLS_CC); @@ -259,24 +260,27 @@ PHP_METHOD(Phalcon_Session_Adapter_Stream, gc) { } -/** - * Ignore the savePath and use local defined path - * - * @return bool - */ PHP_METHOD(Phalcon_Session_Adapter_Stream, open) { - zval *savePath, savePath_sub, *sessionName, sessionName_sub; + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; + zval *savePath, savePath_sub, *sessionName, sessionName_sub, path; zval *this_ptr = getThis(); ZVAL_UNDEF(&savePath_sub); ZVAL_UNDEF(&sessionName_sub); + ZVAL_UNDEF(&path); - zephir_fetch_params_without_memory_grow(2, 0, &savePath, &sessionName); + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 2, 0, &savePath, &sessionName); - RETURN_BOOL(1); + if (1 != zephir_end_with_str(savePath, SL("/"))) { + ZEPHIR_INIT_VAR(&path); + ZEPHIR_CONCAT_VS(&path, savePath, "/"); + } + zephir_update_property_zval(this_ptr, SL("path"), &path); + RETURN_MM_BOOL(1); } diff --git a/ext/phalcon/session/manager.zep.c b/ext/phalcon/session/manager.zep.c index 09c0486a64e..b773a063135 100644 --- a/ext/phalcon/session/manager.zep.c +++ b/ext/phalcon/session/manager.zep.c @@ -38,7 +38,12 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Session_Manager) { - ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Session, Manager, phalcon, session_manager, phalcon_di_abstractinjectionaware_ce, phalcon_session_manager_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Phalcon\\Session, Manager, phalcon, session_manager, phalcon_session_manager_method_entry, 0); + + /** + * @var + */ + zend_declare_property_null(phalcon_session_manager_ce, SL("container"), ZEND_ACC_PRIVATE TSRMLS_CC); /** * @var |null @@ -63,6 +68,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Session_Manager) { phalcon_session_manager_ce->create_object = zephir_init_properties_Phalcon_Session_Manager; zend_class_implements(phalcon_session_manager_ce TSRMLS_CC, 1, phalcon_session_managerinterface_ce); + zend_class_implements(phalcon_session_manager_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); return SUCCESS; } @@ -301,6 +307,18 @@ PHP_METHOD(Phalcon_Session_Manager, get) { } +/** + * Returns the DependencyInjector container + */ +PHP_METHOD(Phalcon_Session_Manager, getDI) { + + zval *this_ptr = getThis(); + + + RETURN_MEMBER(getThis(), "container"); + +} + /** * Returns the stored session handler */ @@ -536,6 +554,24 @@ PHP_METHOD(Phalcon_Session_Manager, set) { } +/** + * Sets the DependencyInjector container + */ +PHP_METHOD(Phalcon_Session_Manager, setDI) { + + zval *container, container_sub; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&container_sub); + + zephir_fetch_params_without_memory_grow(1, 0, &container); + + + + zephir_update_property_zval(this_ptr, SL("container"), container); + +} + /** * Set the handler for the session */ @@ -584,9 +620,9 @@ PHP_METHOD(Phalcon_Session_Manager, setId) { object_init_ex(&_1$$3, spl_ce_RuntimeException); ZEPHIR_INIT_VAR(&_2$$3); ZEPHIR_CONCAT_SS(&_2$$3, "The session has already been started. ", "To change the id, use regenerateId()"); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 265, &_2$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 264, &_2$$3); zephir_check_call_status(); - zephir_throw_exception_debug(&_1$$3, "phalcon/Session/Manager.zep", 259 TSRMLS_CC); + zephir_throw_exception_debug(&_1$$3, "phalcon/Session/Manager.zep", 280 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -630,7 +666,7 @@ PHP_METHOD(Phalcon_Session_Manager, setName) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "exists", NULL, 0); zephir_check_call_status(); if (UNEXPECTED(zephir_is_true(&_0))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(spl_ce_InvalidArgumentException, "Cannot set session name after a session has started", "phalcon/Session/Manager.zep", 282); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(spl_ce_InvalidArgumentException, "Cannot set session name after a session has started", "phalcon/Session/Manager.zep", 303); return; } ZEPHIR_INIT_VAR(&_1); @@ -641,7 +677,7 @@ PHP_METHOD(Phalcon_Session_Manager, setName) { ZVAL_STRING(&_4, "/^[\\p{L}\\p{N}_-]+$/u"); zephir_preg_match(&_3, &_4, &name, &_1, 0, 0 , 0 TSRMLS_CC); if (UNEXPECTED(!zephir_is_true(&_3))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(spl_ce_InvalidArgumentException, "The name contains non alphanum characters", "phalcon/Session/Manager.zep", 288); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(spl_ce_InvalidArgumentException, "The name contains non alphanum characters", "phalcon/Session/Manager.zep", 309); return; } zephir_update_property_zval(this_ptr, SL("name"), &name); @@ -709,7 +745,7 @@ PHP_METHOD(Phalcon_Session_Manager, start) { if (ZEPHIR_IS_TRUE_IDENTICAL(&_0)) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_1, "headers_sent", NULL, 365); + ZEPHIR_CALL_FUNCTION(&_1, "headers_sent", NULL, 363); zephir_check_call_status(); if (ZEPHIR_IS_TRUE_IDENTICAL(&_1)) { RETURN_MM_BOOL(0); @@ -717,7 +753,7 @@ PHP_METHOD(Phalcon_Session_Manager, start) { ZEPHIR_OBS_VAR(&_2); zephir_read_property(&_2, this_ptr, SL("handler"), PH_NOISY_CC); if (UNEXPECTED(!(zephir_is_instance_of(&_2, SL("SessionHandlerInterface") TSRMLS_CC)))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_session_exception_ce, "The session handler is not valid", "phalcon/Session/Manager.zep", 328); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_session_exception_ce, "The session handler is not valid", "phalcon/Session/Manager.zep", 349); return; } zephir_read_property(&_3, this_ptr, SL("handler"), PH_NOISY_CC | PH_READONLY); diff --git a/ext/phalcon/session/manager.zep.h b/ext/phalcon/session/manager.zep.h index cd9c575e5b9..2cd49fdea6e 100644 --- a/ext/phalcon/session/manager.zep.h +++ b/ext/phalcon/session/manager.zep.h @@ -11,6 +11,7 @@ PHP_METHOD(Phalcon_Session_Manager, __unset); PHP_METHOD(Phalcon_Session_Manager, destroy); PHP_METHOD(Phalcon_Session_Manager, exists); PHP_METHOD(Phalcon_Session_Manager, get); +PHP_METHOD(Phalcon_Session_Manager, getDI); PHP_METHOD(Phalcon_Session_Manager, getHandler); PHP_METHOD(Phalcon_Session_Manager, getId); PHP_METHOD(Phalcon_Session_Manager, getName); @@ -20,6 +21,7 @@ PHP_METHOD(Phalcon_Session_Manager, regenerateId); PHP_METHOD(Phalcon_Session_Manager, registerHandler); PHP_METHOD(Phalcon_Session_Manager, remove); PHP_METHOD(Phalcon_Session_Manager, set); +PHP_METHOD(Phalcon_Session_Manager, setDI); PHP_METHOD(Phalcon_Session_Manager, setHandler); PHP_METHOD(Phalcon_Session_Manager, setId); PHP_METHOD(Phalcon_Session_Manager, setName); @@ -91,6 +93,13 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_manager_get, 0, 0, 1) #endif ZEND_END_ARG_INFO() +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_session_manager_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_session_manager_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) +#endif +ZEND_END_ARG_INFO() + #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_session_manager_gethandler, 0, 0, SessionHandlerInterface, 0) #else @@ -164,6 +173,10 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_manager_set, 0, 0, 2) ZEND_ARG_INFO(0, value) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_manager_setdi, 0, 0, 1) + ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) +ZEND_END_ARG_INFO() + #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_session_manager_sethandler, 0, 1, Phalcon\\Session\\ManagerInterface, 0) #else @@ -235,6 +248,7 @@ ZEPHIR_INIT_FUNCS(phalcon_session_manager_method_entry) { PHP_ME(Phalcon_Session_Manager, destroy, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, exists, arginfo_phalcon_session_manager_exists, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, get, arginfo_phalcon_session_manager_get, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Session_Manager, getDI, arginfo_phalcon_session_manager_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, getHandler, arginfo_phalcon_session_manager_gethandler, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, getId, arginfo_phalcon_session_manager_getid, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, getName, arginfo_phalcon_session_manager_getname, ZEND_ACC_PUBLIC) @@ -244,6 +258,7 @@ ZEPHIR_INIT_FUNCS(phalcon_session_manager_method_entry) { PHP_ME(Phalcon_Session_Manager, registerHandler, arginfo_phalcon_session_manager_registerhandler, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, remove, arginfo_phalcon_session_manager_remove, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, set, arginfo_phalcon_session_manager_set, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Session_Manager, setDI, arginfo_phalcon_session_manager_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, setHandler, arginfo_phalcon_session_manager_sethandler, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, setId, arginfo_phalcon_session_manager_setid, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, setName, arginfo_phalcon_session_manager_setname, ZEND_ACC_PUBLIC) diff --git a/ext/phalcon/storage/adapter/abstractadapter.zep.c b/ext/phalcon/storage/adapter/abstractadapter.zep.c index ea58da80ade..5e5cb98dbc2 100644 --- a/ext/phalcon/storage/adapter/abstractadapter.zep.c +++ b/ext/phalcon/storage/adapter/abstractadapter.zep.c @@ -412,8 +412,7 @@ PHP_METHOD(Phalcon_Storage_Adapter_AbstractAdapter, getUnserializedData) { */ PHP_METHOD(Phalcon_Storage_Adapter_AbstractAdapter, initSerializer) { - zend_bool _1, _4; - zval _0, _2, _3, _5, _6$$4, _7$$4, _8$$4; + zval _0, _1, _2, _3; zval className; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -421,42 +420,24 @@ PHP_METHOD(Phalcon_Storage_Adapter_AbstractAdapter, initSerializer) { ZVAL_UNDEF(&className); ZVAL_UNDEF(&_0); + ZVAL_UNDEF(&_1); ZVAL_UNDEF(&_2); ZVAL_UNDEF(&_3); - ZVAL_UNDEF(&_5); - ZVAL_UNDEF(&_6$$4); - ZVAL_UNDEF(&_7$$4); - ZVAL_UNDEF(&_8$$4); ZEPHIR_MM_GROW(); - zephir_read_property(&_0, this_ptr, SL("serializer"), PH_NOISY_CC | PH_READONLY); - _1 = Z_TYPE_P(&_0) == IS_NULL; - if (_1) { - zephir_read_property(&_2, this_ptr, SL("serializerFactory"), PH_NOISY_CC | PH_READONLY); - _1 = Z_TYPE_P(&_2) == IS_NULL; - } - if (UNEXPECTED(_1)) { + zephir_read_property(&_0, this_ptr, SL("serializerFactory"), PH_NOISY_CC | PH_READONLY); + if (UNEXPECTED(Z_TYPE_P(&_0) == IS_NULL)) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_storage_exception_ce, "A valid serializer is required", "phalcon/Storage/Adapter/AbstractAdapter.zep", 196); return; } - ZEPHIR_OBS_VAR(&_3); - zephir_read_property(&_3, this_ptr, SL("serializer"), PH_NOISY_CC); - _4 = Z_TYPE_P(&_3) == IS_OBJECT; - if (_4) { - ZEPHIR_OBS_VAR(&_5); - zephir_read_property(&_5, this_ptr, SL("serializer"), PH_NOISY_CC); - _4 = zephir_instance_of_ev(&_5, phalcon_storage_serializer_serializerinterface_ce TSRMLS_CC); - } - if (!(_4)) { - zephir_read_property(&_6$$4, this_ptr, SL("defaultSerializer"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_INIT_VAR(&className); - zephir_fast_strtolower(&className, &_6$$4); - zephir_read_property(&_7$$4, this_ptr, SL("serializerFactory"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(&_8$$4, &_7$$4, "newinstance", NULL, 0, &className); - zephir_check_call_status(); - zephir_update_property_zval(this_ptr, SL("serializer"), &_8$$4); - } + zephir_read_property(&_1, this_ptr, SL("defaultSerializer"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_INIT_VAR(&className); + zephir_fast_strtolower(&className, &_1); + zephir_read_property(&_2, this_ptr, SL("serializerFactory"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CALL_METHOD(&_3, &_2, "newinstance", NULL, 0, &className); + zephir_check_call_status(); + zephir_update_property_zval(this_ptr, SL("serializer"), &_3); ZEPHIR_MM_RESTORE(); } diff --git a/ext/phalcon/storage/adapter/redis.zep.c b/ext/phalcon/storage/adapter/redis.zep.c index 7e6ec0fa15d..fd2e6de8551 100644 --- a/ext/phalcon/storage/adapter/redis.zep.c +++ b/ext/phalcon/storage/adapter/redis.zep.c @@ -319,8 +319,8 @@ PHP_METHOD(Phalcon_Storage_Adapter_Redis, get) { */ PHP_METHOD(Phalcon_Storage_Adapter_Redis, getAdapter) { - zend_bool _6$$3, _8$$3; - zval auth, connection, host, index, options, port, result, persistent, persistentid, _0, _1$$3, _7$$3, _9$$3, _10$$3, _2$$4, _3$$5, _4$$6, _5$$6; + zend_bool _4$$3, _6$$3; + zval auth, connection, host, index, method, options, persistent, port, result, _0, _1$$3, _5$$3, _7$$3, _8$$3, _9$$3, _2$$4, _3$$4; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; zval *this_ptr = getThis(); @@ -329,20 +329,19 @@ PHP_METHOD(Phalcon_Storage_Adapter_Redis, getAdapter) { ZVAL_UNDEF(&connection); ZVAL_UNDEF(&host); ZVAL_UNDEF(&index); + ZVAL_UNDEF(&method); ZVAL_UNDEF(&options); + ZVAL_UNDEF(&persistent); ZVAL_UNDEF(&port); ZVAL_UNDEF(&result); - ZVAL_UNDEF(&persistent); - ZVAL_UNDEF(&persistentid); ZVAL_UNDEF(&_0); ZVAL_UNDEF(&_1$$3); + ZVAL_UNDEF(&_5$$3); ZVAL_UNDEF(&_7$$3); + ZVAL_UNDEF(&_8$$3); ZVAL_UNDEF(&_9$$3); - ZVAL_UNDEF(&_10$$3); ZVAL_UNDEF(&_2$$4); - ZVAL_UNDEF(&_3$$5); - ZVAL_UNDEF(&_4$$6); - ZVAL_UNDEF(&_5$$6); + ZVAL_UNDEF(&_3$$4); ZEPHIR_MM_GROW(); @@ -358,57 +357,56 @@ PHP_METHOD(Phalcon_Storage_Adapter_Redis, getAdapter) { zephir_array_fetch_string(&auth, &options, SL("auth"), PH_NOISY, "phalcon/Storage/Adapter/Redis.zep", 119 TSRMLS_CC); ZEPHIR_OBS_VAR(&host); zephir_array_fetch_string(&host, &options, SL("host"), PH_NOISY, "phalcon/Storage/Adapter/Redis.zep", 120 TSRMLS_CC); - ZEPHIR_OBS_VAR(&port); - zephir_array_fetch_string(&port, &options, SL("port"), PH_NOISY, "phalcon/Storage/Adapter/Redis.zep", 121 TSRMLS_CC); ZEPHIR_OBS_VAR(&index); - zephir_array_fetch_string(&index, &options, SL("index"), PH_NOISY, "phalcon/Storage/Adapter/Redis.zep", 122 TSRMLS_CC); + zephir_array_fetch_string(&index, &options, SL("index"), PH_NOISY, "phalcon/Storage/Adapter/Redis.zep", 121 TSRMLS_CC); ZEPHIR_OBS_VAR(&persistent); - zephir_array_fetch_string(&persistent, &options, SL("persistent"), PH_NOISY, "phalcon/Storage/Adapter/Redis.zep", 123 TSRMLS_CC); - if (!(zephir_is_true(&persistent))) { - zephir_read_property(&_2$$4, this_ptr, SL("lifetime"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(&result, &connection, "connect", NULL, 0, &host, &port, &_2$$4); - zephir_check_call_status(); + zephir_array_fetch_string(&persistent, &options, SL("persistent"), PH_NOISY, "phalcon/Storage/Adapter/Redis.zep", 122 TSRMLS_CC); + ZEPHIR_OBS_VAR(&port); + zephir_array_fetch_string(&port, &options, SL("port"), PH_NOISY, "phalcon/Storage/Adapter/Redis.zep", 123 TSRMLS_CC); + if (zephir_is_true(&persistent)) { + ZEPHIR_INIT_VAR(&method); + ZVAL_STRING(&method, "pconnect"); } else { - ZEPHIR_INIT_VAR(&persistentid); - ZEPHIR_CONCAT_SV(&persistentid, "persistentid_", &index); - zephir_read_property(&_3$$5, this_ptr, SL("lifetime"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(&result, &connection, "pconnect", NULL, 0, &host, &port, &_3$$5, &persistentid); - zephir_check_call_status(); + ZEPHIR_INIT_NVAR(&method); + ZVAL_STRING(&method, "connect"); } + zephir_read_property(&_1$$3, this_ptr, SL("lifetime"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CALL_METHOD_ZVAL(&result, &connection, &method, NULL, 0, &host, &port, &_1$$3); + zephir_check_call_status(); if (!(zephir_is_true(&result))) { - ZEPHIR_INIT_VAR(&_4$$6); - object_init_ex(&_4$$6, phalcon_storage_exception_ce); - ZEPHIR_INIT_VAR(&_5$$6); - ZEPHIR_CONCAT_SVSVS(&_5$$6, "Could not connect to the Redisd server [", &host, ":", &port, "]"); - ZEPHIR_CALL_METHOD(NULL, &_4$$6, "__construct", NULL, 5, &_5$$6); + ZEPHIR_INIT_VAR(&_2$$4); + object_init_ex(&_2$$4, phalcon_storage_exception_ce); + ZEPHIR_INIT_VAR(&_3$$4); + ZEPHIR_CONCAT_SVSVS(&_3$$4, "Could not connect to the Redisd server [", &host, ":", &port, "]"); + ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 5, &_3$$4); zephir_check_call_status(); - zephir_throw_exception_debug(&_4$$6, "phalcon/Storage/Adapter/Redis.zep", 135 TSRMLS_CC); + zephir_throw_exception_debug(&_2$$4, "phalcon/Storage/Adapter/Redis.zep", 131 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - _6$$3 = !(ZEPHIR_IS_EMPTY(&auth)); - if (_6$$3) { - ZEPHIR_CALL_METHOD(&_7$$3, &connection, "auth", NULL, 0, &auth); + _4$$3 = !(ZEPHIR_IS_EMPTY(&auth)); + if (_4$$3) { + ZEPHIR_CALL_METHOD(&_5$$3, &connection, "auth", NULL, 0, &auth); zephir_check_call_status(); - _6$$3 = !zephir_is_true(&_7$$3); + _4$$3 = !zephir_is_true(&_5$$3); } - if (_6$$3) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_storage_exception_ce, "Failed to authenticate with the Redis server", "phalcon/Storage/Adapter/Redis.zep", 139); + if (_4$$3) { + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_storage_exception_ce, "Failed to authenticate with the Redis server", "phalcon/Storage/Adapter/Redis.zep", 135); return; } - _8$$3 = ZEPHIR_GT_LONG(&index, 0); - if (_8$$3) { - ZEPHIR_CALL_METHOD(&_9$$3, &connection, "select", NULL, 0, &index); + _6$$3 = ZEPHIR_GT_LONG(&index, 0); + if (_6$$3) { + ZEPHIR_CALL_METHOD(&_7$$3, &connection, "select", NULL, 0, &index); zephir_check_call_status(); - _8$$3 = !zephir_is_true(&_9$$3); + _6$$3 = !zephir_is_true(&_7$$3); } - if (_8$$3) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_storage_exception_ce, "Redis server selected database failed", "phalcon/Storage/Adapter/Redis.zep", 143); + if (_6$$3) { + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_storage_exception_ce, "Redis server selected database failed", "phalcon/Storage/Adapter/Redis.zep", 139); return; } - zephir_read_property(&_1$$3, this_ptr, SL("prefix"), PH_NOISY_CC | PH_READONLY); - ZVAL_LONG(&_10$$3, 2); - ZEPHIR_CALL_METHOD(NULL, &connection, "setoption", NULL, 0, &_10$$3, &_1$$3); + zephir_read_property(&_8$$3, this_ptr, SL("prefix"), PH_NOISY_CC | PH_READONLY); + ZVAL_LONG(&_9$$3, 2); + ZEPHIR_CALL_METHOD(NULL, &connection, "setoption", NULL, 0, &_9$$3, &_8$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "setserializer", NULL, 114, &connection); zephir_check_call_status(); @@ -664,7 +662,7 @@ PHP_METHOD(Phalcon_Storage_Adapter_Redis, setSerializer) { ZEPHIR_INIT_NVAR(&_8$$5); ZVAL_STRING(&_8$$5, ""); zephir_update_property_zval(this_ptr, SL("defaultSerializer"), &_8$$5); - zephir_array_fetch(&_9$$5, &map, &serializer, PH_NOISY | PH_READONLY, "phalcon/Storage/Adapter/Redis.zep", 244 TSRMLS_CC); + zephir_array_fetch(&_9$$5, &map, &serializer, PH_NOISY | PH_READONLY, "phalcon/Storage/Adapter/Redis.zep", 240 TSRMLS_CC); ZVAL_LONG(&_10$$5, 1); ZEPHIR_CALL_METHOD(NULL, connection, "setoption", NULL, 0, &_10$$5, &_9$$5); zephir_check_call_status(); diff --git a/ext/phalcon/text.zep.c b/ext/phalcon/text.zep.c index 5f4c8fe86c9..19df03ca82d 100644 --- a/ext/phalcon/text.zep.c +++ b/ext/phalcon/text.zep.c @@ -284,7 +284,7 @@ PHP_METHOD(Phalcon_Text, endsWith) { } else { ZVAL_BOOL(&_1, 0); } - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_helper_str_ce, "endswith", &_0, 262, &text, &end, &_1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_helper_str_ce, "endswith", &_0, 261, &text, &end, &_1); zephir_check_call_status(); RETURN_MM(); @@ -465,7 +465,7 @@ PHP_METHOD(Phalcon_Text, startsWith) { } else { ZVAL_BOOL(&_1, 0); } - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_helper_str_ce, "startswith", &_0, 261, &text, &start, &_1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_helper_str_ce, "startswith", &_0, 260, &text, &start, &_1); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/url.zep.c b/ext/phalcon/url.zep.c index 55bf3851c31..18a3140aaa3 100644 --- a/ext/phalcon/url.zep.c +++ b/ext/phalcon/url.zep.c @@ -12,13 +12,13 @@ #include #include "kernel/main.h" -#include "kernel/object.h" -#include "kernel/memory.h" #include "kernel/string.h" +#include "kernel/memory.h" #include "kernel/operators.h" #include "kernel/fcall.h" #include "kernel/array.h" #include "kernel/exception.h" +#include "kernel/object.h" #include "kernel/concat.h" #include "ext/spl/spl_exceptions.h" #include "phalcon/url/utils.h" @@ -51,7 +51,7 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Url) { - ZEPHIR_REGISTER_CLASS_EX(Phalcon, Url, phalcon, url, phalcon_di_abstractinjectionaware_ce, phalcon_url_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Phalcon, Url, phalcon, url, phalcon_url_method_entry, 0); /** * @var null | string @@ -64,8 +64,10 @@ ZEPHIR_INIT_CLASS(Phalcon_Url) { zend_declare_property_null(phalcon_url_ce, SL("basePath"), ZEND_ACC_PROTECTED TSRMLS_CC); /** - * @var | null + * @var */ + zend_declare_property_null(phalcon_url_ce, SL("container"), ZEND_ACC_PROTECTED TSRMLS_CC); + zend_declare_property_null(phalcon_url_ce, SL("router"), ZEND_ACC_PROTECTED TSRMLS_CC); /** @@ -74,30 +76,11 @@ ZEPHIR_INIT_CLASS(Phalcon_Url) { zend_declare_property_null(phalcon_url_ce, SL("staticBaseUri"), ZEND_ACC_PROTECTED TSRMLS_CC); zend_class_implements(phalcon_url_ce TSRMLS_CC, 1, phalcon_url_urlinterface_ce); + zend_class_implements(phalcon_url_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); return SUCCESS; } -PHP_METHOD(Phalcon_Url, __construct) { - - zval *router = NULL, router_sub, __$null; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&router_sub); - ZVAL_NULL(&__$null); - - zephir_fetch_params_without_memory_grow(0, 1, &router); - - if (!router) { - router = &router_sub; - router = &__$null; - } - - - zephir_update_property_zval(this_ptr, SL("router"), router); - -} - /** * Generates a URL * @@ -133,12 +116,13 @@ PHP_METHOD(Phalcon_Url, __construct) { */ PHP_METHOD(Phalcon_Url, get) { - zval strUri, _23$$15; + unsigned char _24$$14, _26$$14, _31$$16; + zval strUri, _19$$14; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zephir_fcall_cache_entry *_10 = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; - zend_bool local, _0$$3, _1$$3, _27$$16; - zval *uri = NULL, uri_sub, *args = NULL, args_sub, *local_param = NULL, *baseUri = NULL, baseUri_sub, __$null, router, container, routeName, route, queryString, _2$$4, _3$$4, _4$$4, _5$$4, _6$$9, _18$$9, _21$$9, _22$$9, _7$$11, _12$$11, _13$$11, _17$$11, _8$$12, _9$$12, _11$$12, _14$$13, _15$$13, _16$$13, _19$$14, _20$$14, _24$$15, _25$$15, _26$$15, _28$$17, _29$$17, _30$$18, _31$$19; + zend_bool local, _0$$3, _1$$3, _22$$14, _23$$14, _25$$14, _29$$16, _30$$16, _32$$19; + zval *uri = NULL, uri_sub, *args = NULL, args_sub, *local_param = NULL, *baseUri = NULL, baseUri_sub, __$null, router, container, routeName, route, queryString, _2$$4, _3$$4, _4$$4, _5$$4, _6$$9, _14$$9, _17$$9, _18$$9, _7$$11, _12$$11, _13$$11, _8$$12, _9$$12, _11$$12, _15$$13, _16$$13, _20$$14, _21$$14, _27$$15, _28$$15, _33$$20, _34$$20, _35$$21, _36$$22; zval *this_ptr = getThis(); ZVAL_UNDEF(&uri_sub); @@ -155,30 +139,27 @@ PHP_METHOD(Phalcon_Url, get) { ZVAL_UNDEF(&_4$$4); ZVAL_UNDEF(&_5$$4); ZVAL_UNDEF(&_6$$9); + ZVAL_UNDEF(&_14$$9); + ZVAL_UNDEF(&_17$$9); ZVAL_UNDEF(&_18$$9); - ZVAL_UNDEF(&_21$$9); - ZVAL_UNDEF(&_22$$9); ZVAL_UNDEF(&_7$$11); ZVAL_UNDEF(&_12$$11); ZVAL_UNDEF(&_13$$11); - ZVAL_UNDEF(&_17$$11); ZVAL_UNDEF(&_8$$12); ZVAL_UNDEF(&_9$$12); ZVAL_UNDEF(&_11$$12); - ZVAL_UNDEF(&_14$$13); ZVAL_UNDEF(&_15$$13); ZVAL_UNDEF(&_16$$13); - ZVAL_UNDEF(&_19$$14); ZVAL_UNDEF(&_20$$14); - ZVAL_UNDEF(&_24$$15); - ZVAL_UNDEF(&_25$$15); - ZVAL_UNDEF(&_26$$15); - ZVAL_UNDEF(&_28$$17); - ZVAL_UNDEF(&_29$$17); - ZVAL_UNDEF(&_30$$18); - ZVAL_UNDEF(&_31$$19); + ZVAL_UNDEF(&_21$$14); + ZVAL_UNDEF(&_27$$15); + ZVAL_UNDEF(&_28$$15); + ZVAL_UNDEF(&_33$$20); + ZVAL_UNDEF(&_34$$20); + ZVAL_UNDEF(&_35$$21); + ZVAL_UNDEF(&_36$$22); ZVAL_UNDEF(&strUri); - ZVAL_UNDEF(&_23$$15); + ZVAL_UNDEF(&_19$$14); ZEPHIR_MM_GROW(); zephir_fetch_params(1, 0, 4, &uri, &args, &local_param, &baseUri); @@ -209,9 +190,9 @@ PHP_METHOD(Phalcon_Url, get) { if (local == 0) { _0$$3 = Z_TYPE_P(uri) == IS_STRING; if (_0$$3) { - _1$$3 = zephir_memnstr_str(uri, SL("//"), "phalcon/Url.zep", 103); + _1$$3 = zephir_memnstr_str(uri, SL("//"), "phalcon/Url.zep", 100); if (!(_1$$3)) { - _1$$3 = zephir_memnstr_str(uri, SL(":"), "phalcon/Url.zep", 103); + _1$$3 = zephir_memnstr_str(uri, SL(":"), "phalcon/Url.zep", 100); } _0$$3 = _1$$3; } @@ -239,12 +220,12 @@ PHP_METHOD(Phalcon_Url, get) { if (Z_TYPE_P(uri) == IS_ARRAY) { ZEPHIR_OBS_VAR(&routeName); if (UNEXPECTED(!(zephir_array_isset_string_fetch(&routeName, uri, SL("for"), 0)))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_url_exception_ce, "It's necessary to define the route name with the parameter 'for'", "phalcon/Url.zep", 122); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_url_exception_ce, "It's necessary to define the route name with the parameter 'for'", "phalcon/Url.zep", 119); return; } zephir_read_property(&_6$$9, this_ptr, SL("router"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&router, &_6$$9); - if (UNEXPECTED(!zephir_is_true(&router))) { + if (Z_TYPE_P(&router) != IS_OBJECT) { zephir_read_property(&_7$$11, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&container, &_7$$11); if (UNEXPECTED(Z_TYPE_P(&container) != IS_OBJECT)) { @@ -256,88 +237,103 @@ PHP_METHOD(Phalcon_Url, get) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_8$$12, "__construct", NULL, 5, &_9$$12); zephir_check_call_status(); - zephir_throw_exception_debug(&_8$$12, "phalcon/Url.zep", 138 TSRMLS_CC); + zephir_throw_exception_debug(&_8$$12, "phalcon/Url.zep", 135 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } ZEPHIR_INIT_VAR(&_13$$11); ZVAL_STRING(&_13$$11, "router"); - ZEPHIR_CALL_METHOD(&_12$$11, &container, "has", NULL, 0, &_13$$11); - zephir_check_call_status(); - if (UNEXPECTED(!zephir_is_true(&_12$$11))) { - ZEPHIR_INIT_VAR(&_14$$13); - object_init_ex(&_14$$13, phalcon_url_exception_ce); - ZEPHIR_INIT_VAR(&_16$$13); - ZVAL_STRING(&_16$$13, "the 'router' service"); - ZEPHIR_CALL_CE_STATIC(&_15$$13, phalcon_url_exception_ce, "containerservicenotfound", &_10, 0, &_16$$13); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_14$$13, "__construct", NULL, 5, &_15$$13); - zephir_check_call_status(); - zephir_throw_exception_debug(&_14$$13, "phalcon/Url.zep", 146 TSRMLS_CC); - ZEPHIR_MM_RESTORE(); - return; - } - ZEPHIR_INIT_NVAR(&_13$$11); - ZVAL_STRING(&_13$$11, "router"); - ZEPHIR_CALL_METHOD(&_17$$11, &container, "getshared", NULL, 0, &_13$$11); + ZEPHIR_CALL_METHOD(&_12$$11, &container, "getshared", NULL, 0, &_13$$11); zephir_check_call_status(); - ZEPHIR_CPY_WRT(&router, &_17$$11); + ZEPHIR_CPY_WRT(&router, &_12$$11); zephir_update_property_zval(this_ptr, SL("router"), &router); } - ZEPHIR_CALL_METHOD(&_18$$9, &router, "getroutebyname", NULL, 0, &routeName); + ZEPHIR_CALL_METHOD(&_14$$9, &router, "getroutebyname", NULL, 0, &routeName); zephir_check_call_status(); - ZEPHIR_CPY_WRT(&route, &_18$$9); + ZEPHIR_CPY_WRT(&route, &_14$$9); if (UNEXPECTED(Z_TYPE_P(&route) != IS_OBJECT)) { - ZEPHIR_INIT_VAR(&_19$$14); - object_init_ex(&_19$$14, phalcon_url_exception_ce); - ZEPHIR_INIT_VAR(&_20$$14); - ZEPHIR_CONCAT_SVS(&_20$$14, "Cannot obtain a route using the name '", &routeName, "'"); - ZEPHIR_CALL_METHOD(NULL, &_19$$14, "__construct", NULL, 5, &_20$$14); + ZEPHIR_INIT_VAR(&_15$$13); + object_init_ex(&_15$$13, phalcon_url_exception_ce); + ZEPHIR_INIT_VAR(&_16$$13); + ZEPHIR_CONCAT_SVS(&_16$$13, "Cannot obtain a route using the name '", &routeName, "'"); + ZEPHIR_CALL_METHOD(NULL, &_15$$13, "__construct", NULL, 5, &_16$$13); zephir_check_call_status(); - zephir_throw_exception_debug(&_19$$14, "phalcon/Url.zep", 161 TSRMLS_CC); + zephir_throw_exception_debug(&_15$$13, "phalcon/Url.zep", 150 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_INIT_VAR(&_21$$9); - ZEPHIR_CALL_METHOD(&_18$$9, &route, "getpattern", NULL, 0); + ZEPHIR_INIT_VAR(&_17$$9); + ZEPHIR_CALL_METHOD(&_14$$9, &route, "getpattern", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_22$$9, &route, "getreversedpaths", NULL, 0); + ZEPHIR_CALL_METHOD(&_18$$9, &route, "getreversedpaths", NULL, 0); zephir_check_call_status(); - phalcon_replace_paths(&_21$$9, &_18$$9, &_22$$9, uri TSRMLS_CC); - ZEPHIR_CPY_WRT(uri, &_21$$9); + phalcon_replace_paths(&_17$$9, &_14$$9, &_18$$9, uri TSRMLS_CC); + ZEPHIR_CPY_WRT(uri, &_17$$9); } if (local) { - zephir_get_strval(&_23$$15, uri); - ZEPHIR_CPY_WRT(&strUri, &_23$$15); - ZEPHIR_INIT_VAR(&_24$$15); - ZEPHIR_CONCAT_VV(&_24$$15, baseUri, &strUri); - ZEPHIR_INIT_VAR(&_25$$15); - ZVAL_STRING(&_25$$15, "#(? 2; + } + _23$$14 = _22$$14; + if (_23$$14) { + _24$$14 = ZEPHIR_STRING_OFFSET(&strUri, 0); + _23$$14 = _24$$14 == '/'; + } + _25$$14 = _23$$14; + if (_25$$14) { + _26$$14 = ZEPHIR_STRING_OFFSET(&strUri, 1); + _25$$14 = _26$$14 != '/'; + } + if (_25$$14) { + ZVAL_LONG(&_27$$15, 1); + ZEPHIR_INIT_VAR(&_28$$15); + zephir_substr(&_28$$15, &strUri, 1 , 0, ZEPHIR_SUBSTR_NO_LENGTH); + ZEPHIR_INIT_NVAR(uri); + ZEPHIR_CONCAT_VV(uri, baseUri, &_28$$15); + } else { + _29$$16 = ZEPHIR_IS_STRING(baseUri, "/"); + if (_29$$16) { + _29$$16 = zephir_fast_strlen_ev(&strUri) == 1; + } + _30$$16 = _29$$16; + if (_30$$16) { + _31$$16 = ZEPHIR_STRING_OFFSET(&strUri, 0); + _30$$16 = _31$$16 == '/'; + } + if (_30$$16) { + ZEPHIR_CPY_WRT(uri, baseUri); + } else { + ZEPHIR_INIT_NVAR(uri); + ZEPHIR_CONCAT_VV(uri, baseUri, &strUri); + } + } } if (zephir_is_true(args)) { ZEPHIR_CALL_FUNCTION(&queryString, "http_build_query", NULL, 0, args); zephir_check_call_status(); - _27$$16 = Z_TYPE_P(&queryString) == IS_STRING; - if (_27$$16) { - _27$$16 = ((zephir_fast_strlen_ev(&queryString)) ? 1 : 0); + _32$$19 = Z_TYPE_P(&queryString) == IS_STRING; + if (_32$$19) { + _32$$19 = ((zephir_fast_strlen_ev(&queryString)) ? 1 : 0); } - if (_27$$16) { - ZEPHIR_INIT_VAR(&_28$$17); - ZVAL_STRING(&_28$$17, "?"); - ZEPHIR_INIT_VAR(&_29$$17); - zephir_fast_strpos(&_29$$17, uri, &_28$$17, 0 ); - if (!ZEPHIR_IS_FALSE_IDENTICAL(&_29$$17)) { - ZEPHIR_INIT_VAR(&_30$$18); - ZEPHIR_CONCAT_SV(&_30$$18, "&", &queryString); - zephir_concat_self(uri, &_30$$18 TSRMLS_CC); + if (_32$$19) { + ZEPHIR_INIT_VAR(&_33$$20); + ZVAL_STRING(&_33$$20, "?"); + ZEPHIR_INIT_VAR(&_34$$20); + zephir_fast_strpos(&_34$$20, uri, &_33$$20, 0 ); + if (!ZEPHIR_IS_FALSE_IDENTICAL(&_34$$20)) { + ZEPHIR_INIT_VAR(&_35$$21); + ZEPHIR_CONCAT_SV(&_35$$21, "&", &queryString); + zephir_concat_self(uri, &_35$$21 TSRMLS_CC); } else { - ZEPHIR_INIT_VAR(&_31$$19); - ZEPHIR_CONCAT_SV(&_31$$19, "?", &queryString); - zephir_concat_self(uri, &_31$$19 TSRMLS_CC); + ZEPHIR_INIT_VAR(&_36$$22); + ZEPHIR_CONCAT_SV(&_36$$22, "?", &queryString); + zephir_concat_self(uri, &_36$$22 TSRMLS_CC); } } } @@ -399,6 +395,18 @@ PHP_METHOD(Phalcon_Url, getBaseUri) { } +/** + * Returns the DependencyInjector container + */ +PHP_METHOD(Phalcon_Url, getDI) { + + zval *this_ptr = getThis(); + + + RETURN_MEMBER(getThis(), "container"); + +} + /** * Generates a URL for a static resource * @@ -551,6 +559,24 @@ PHP_METHOD(Phalcon_Url, setBaseUri) { } +/** + * Sets the DependencyInjector container + */ +PHP_METHOD(Phalcon_Url, setDI) { + + zval *container, container_sub; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&container_sub); + + zephir_fetch_params_without_memory_grow(1, 0, &container); + + + + zephir_update_property_zval(this_ptr, SL("container"), container); + +} + /** * Sets a prefix for all static URLs generated * diff --git a/ext/phalcon/url.zep.h b/ext/phalcon/url.zep.h index aa26ebe777f..0fb02f78c35 100644 --- a/ext/phalcon/url.zep.h +++ b/ext/phalcon/url.zep.h @@ -3,21 +3,18 @@ extern zend_class_entry *phalcon_url_ce; ZEPHIR_INIT_CLASS(Phalcon_Url); -PHP_METHOD(Phalcon_Url, __construct); PHP_METHOD(Phalcon_Url, get); PHP_METHOD(Phalcon_Url, getBasePath); PHP_METHOD(Phalcon_Url, getBaseUri); +PHP_METHOD(Phalcon_Url, getDI); PHP_METHOD(Phalcon_Url, getStatic); PHP_METHOD(Phalcon_Url, getStaticBaseUri); PHP_METHOD(Phalcon_Url, setBasePath); PHP_METHOD(Phalcon_Url, setBaseUri); +PHP_METHOD(Phalcon_Url, setDI); PHP_METHOD(Phalcon_Url, setStaticBaseUri); PHP_METHOD(Phalcon_Url, path); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_url___construct, 0, 0, 0) - ZEND_ARG_OBJ_INFO(0, router, Phalcon\\Mvc\\RouterInterface, 1) -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_url_get, 0, 0, IS_STRING, 0) #else @@ -47,6 +44,13 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_url_getbaseuri, 0, 0, IS #endif ZEND_END_ARG_INFO() +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_url_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_url_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) +#endif +ZEND_END_ARG_INFO() + #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_url_getstatic, 0, 0, IS_STRING, 0) #else @@ -86,6 +90,10 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_url_setbaseuri, 0, 1, IS #endif ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_url_setdi, 0, 0, 1) + ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) +ZEND_END_ARG_INFO() + #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_url_setstaticbaseuri, 0, 1, Phalcon\\Url\\UrlInterface, 0) #else @@ -111,14 +119,15 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_url_path, 0, 0, IS_STRIN ZEND_END_ARG_INFO() ZEPHIR_INIT_FUNCS(phalcon_url_method_entry) { - PHP_ME(Phalcon_Url, __construct, arginfo_phalcon_url___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) PHP_ME(Phalcon_Url, get, arginfo_phalcon_url_get, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Url, getBasePath, arginfo_phalcon_url_getbasepath, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Url, getBaseUri, arginfo_phalcon_url_getbaseuri, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Url, getDI, arginfo_phalcon_url_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Url, getStatic, arginfo_phalcon_url_getstatic, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Url, getStaticBaseUri, arginfo_phalcon_url_getstaticbaseuri, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Url, setBasePath, arginfo_phalcon_url_setbasepath, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Url, setBaseUri, arginfo_phalcon_url_setbaseuri, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Url, setDI, arginfo_phalcon_url_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Url, setStaticBaseUri, arginfo_phalcon_url_setstaticbaseuri, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Url, path, arginfo_phalcon_url_path, ZEND_ACC_PUBLIC) PHP_FE_END diff --git a/ext/phalcon/validation.zep.c b/ext/phalcon/validation.zep.c index 9807dc9fc1b..db3a3ae6e0e 100644 --- a/ext/phalcon/validation.zep.c +++ b/ext/phalcon/validation.zep.c @@ -513,7 +513,7 @@ PHP_METHOD(Phalcon_Validation, getValue) { if (Z_TYPE_P(&entity) == IS_OBJECT) { ZEPHIR_INIT_NVAR(&method); ZEPHIR_CONCAT_SV(&method, "set", &camelizedField); - ZEPHIR_CALL_FUNCTION(&_10$$21, "property_exists", NULL, 434, &entity, &field); + ZEPHIR_CALL_FUNCTION(&_10$$21, "property_exists", NULL, 436, &entity, &field); zephir_check_call_status(); if ((zephir_method_exists(&entity, &method TSRMLS_CC) == SUCCESS)) { ZEPHIR_CALL_METHOD_ZVAL(NULL, &entity, &method, NULL, 0, &value); diff --git a/ext/phalcon/validation/validator/file/resolution/equal.zep.c b/ext/phalcon/validation/validator/file/resolution/equal.zep.c index 22bc44c8b50..0f474382329 100644 --- a/ext/phalcon/validation/validator/file/resolution/equal.zep.c +++ b/ext/phalcon/validation/validator/file/resolution/equal.zep.c @@ -119,7 +119,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File_Resolution_Equal, validate) { ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, field); zephir_check_call_status(); zephir_array_fetch_string(&_1, &value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/Validation/Validator/File/Resolution/Equal.zep", 74 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 367, &_1); + ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 365, &_1); zephir_check_call_status(); ZEPHIR_OBS_VAR(&width); zephir_array_fetch_long(&width, &tmp, 0, PH_NOISY, "phalcon/Validation/Validator/File/Resolution/Equal.zep", 75 TSRMLS_CC); diff --git a/ext/phalcon/validation/validator/file/resolution/max.zep.c b/ext/phalcon/validation/validator/file/resolution/max.zep.c index dc6bd2ae902..cacebcfda46 100644 --- a/ext/phalcon/validation/validator/file/resolution/max.zep.c +++ b/ext/phalcon/validation/validator/file/resolution/max.zep.c @@ -129,7 +129,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File_Resolution_Max, validate) { ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, field); zephir_check_call_status(); zephir_array_fetch_string(&_1, &value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/Validation/Validator/File/Resolution/Max.zep", 79 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 367, &_1); + ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 365, &_1); zephir_check_call_status(); ZEPHIR_OBS_VAR(&width); zephir_array_fetch_long(&width, &tmp, 0, PH_NOISY, "phalcon/Validation/Validator/File/Resolution/Max.zep", 80 TSRMLS_CC); diff --git a/ext/phalcon/validation/validator/file/resolution/min.zep.c b/ext/phalcon/validation/validator/file/resolution/min.zep.c index 58f1dd6ae5a..f16534e830f 100644 --- a/ext/phalcon/validation/validator/file/resolution/min.zep.c +++ b/ext/phalcon/validation/validator/file/resolution/min.zep.c @@ -129,7 +129,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File_Resolution_Min, validate) { ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, field); zephir_check_call_status(); zephir_array_fetch_string(&_1, &value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/Validation/Validator/File/Resolution/Min.zep", 79 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 367, &_1); + ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 365, &_1); zephir_check_call_status(); ZEPHIR_OBS_VAR(&width); zephir_array_fetch_long(&width, &tmp, 0, PH_NOISY, "phalcon/Validation/Validator/File/Resolution/Min.zep", 80 TSRMLS_CC); diff --git a/ext/phalcon/validation/validator/uniqueness.zep.c b/ext/phalcon/validation/validator/uniqueness.zep.c index a31bd9153be..46dd0d49a7e 100644 --- a/ext/phalcon/validation/validator/uniqueness.zep.c +++ b/ext/phalcon/validation/validator/uniqueness.zep.c @@ -220,7 +220,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, getColumnNameReal) { PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniqueness) { zend_class_entry *_9; - zend_bool isModel = 0, _7; + zend_bool isModel = 0, isDocument = 0, _7; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zephir_fcall_cache_entry *_4 = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -315,9 +315,13 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniqueness) { } } isModel = zephir_instance_of_ev(&record, phalcon_mvc_modelinterface_ce TSRMLS_CC); + isDocument = zephir_instance_of_ev(&record, phalcon_mvc_collectioninterface_ce TSRMLS_CC); if (isModel) { ZEPHIR_CALL_METHOD(¶ms, this_ptr, "isuniquenessmodel", NULL, 0, &record, field, &values); zephir_check_call_status(); + } else if (isDocument) { + ZEPHIR_CALL_METHOD(¶ms, this_ptr, "isuniquenesscollection", NULL, 0, &record, field, &values); + zephir_check_call_status(); } else { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_validation_exception_ce, "The uniqueness validator works only with Phalcon\\Mvc\\Model or Phalcon\\Mvc\\Collection", "phalcon/Validation/Validator/Uniqueness.zep", 183); return; @@ -331,6 +335,308 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniqueness) { } +/** + * Uniqueness method used for collection + */ +PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessCollection) { + + zend_bool _5$$4, _6$$4, _16$$17, _17$$17; + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; + zephir_fcall_cache_entry *_4 = NULL; + zend_long ZEPHIR_LAST_CALL_STATUS; + zval field, values, _9$$8, _10$$11, _13$$12, _14$$15, _20$$21, _21$$24, _24$$25, _25$$28, _27$$29, _29$$30; + zval *record, record_sub, *field_param = NULL, *values_param = NULL, exceptConditions, fieldExcept, notInValues, value, singleField, params, except, singleExcept, _0, *_1, _2, _26, _3$$3, *_7$$8, _8$$8, *_11$$12, _12$$12, _15$$16, *_18$$21, _19$$21, *_22$$25, _23$$25, _28$$29; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&record_sub); + ZVAL_UNDEF(&exceptConditions); + ZVAL_UNDEF(&fieldExcept); + ZVAL_UNDEF(¬InValues); + ZVAL_UNDEF(&value); + ZVAL_UNDEF(&singleField); + ZVAL_UNDEF(¶ms); + ZVAL_UNDEF(&except); + ZVAL_UNDEF(&singleExcept); + ZVAL_UNDEF(&_0); + ZVAL_UNDEF(&_2); + ZVAL_UNDEF(&_26); + ZVAL_UNDEF(&_3$$3); + ZVAL_UNDEF(&_8$$8); + ZVAL_UNDEF(&_12$$12); + ZVAL_UNDEF(&_15$$16); + ZVAL_UNDEF(&_19$$21); + ZVAL_UNDEF(&_23$$25); + ZVAL_UNDEF(&_28$$29); + ZVAL_UNDEF(&field); + ZVAL_UNDEF(&values); + ZVAL_UNDEF(&_9$$8); + ZVAL_UNDEF(&_10$$11); + ZVAL_UNDEF(&_13$$12); + ZVAL_UNDEF(&_14$$15); + ZVAL_UNDEF(&_20$$21); + ZVAL_UNDEF(&_21$$24); + ZVAL_UNDEF(&_24$$25); + ZVAL_UNDEF(&_25$$28); + ZVAL_UNDEF(&_27$$29); + ZVAL_UNDEF(&_29$$30); + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 3, 0, &record, &field_param, &values_param); + + zephir_get_arrval(&field, field_param); + zephir_get_arrval(&values, values_param); + + + ZEPHIR_INIT_VAR(&exceptConditions); + array_init(&exceptConditions); + ZEPHIR_INIT_VAR(¶ms); + zephir_create_array(¶ms, 1, 0 TSRMLS_CC); + ZEPHIR_INIT_VAR(&_0); + array_init(&_0); + zephir_array_update_string(¶ms, SL("conditions"), &_0, PH_COPY | PH_SEPARATE); + zephir_is_iterable(&field, 0, "phalcon/Validation/Validator/Uniqueness.zep", 250); + if (Z_TYPE_P(&field) == IS_ARRAY) { + ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&field), _1) + { + ZEPHIR_INIT_NVAR(&singleField); + ZVAL_COPY(&singleField, _1); + ZEPHIR_INIT_NVAR(&fieldExcept); + ZVAL_NULL(&fieldExcept); + ZEPHIR_INIT_NVAR(¬InValues); + array_init(¬InValues); + ZEPHIR_OBS_NVAR(&value); + zephir_array_fetch(&value, &values, &singleField, PH_NOISY, "phalcon/Validation/Validator/Uniqueness.zep", 207 TSRMLS_CC); + ZEPHIR_INIT_NVAR(&_3$$3); + ZVAL_STRING(&_3$$3, "except"); + ZEPHIR_CALL_METHOD(&except, this_ptr, "getoption", &_4, 0, &_3$$3); + zephir_check_call_status(); + zephir_array_update_multi(¶ms, &value TSRMLS_CC, SL("sz"), 3, SL("conditions"), &singleField); + if (zephir_is_true(&except)) { + _5$$4 = Z_TYPE_P(&except) == IS_ARRAY; + if (_5$$4) { + _5$$4 = zephir_fast_count_int(&field TSRMLS_CC) > 1; + } + if (_5$$4) { + if (zephir_array_isset(&except, &singleField)) { + ZEPHIR_OBS_NVAR(&fieldExcept); + zephir_array_fetch(&fieldExcept, &except, &singleField, PH_NOISY, "phalcon/Validation/Validator/Uniqueness.zep", 216 TSRMLS_CC); + } + } + _6$$4 = Z_TYPE_P(&except) == IS_ARRAY; + if (_6$$4) { + _6$$4 = zephir_fast_count_int(&field TSRMLS_CC) == 1; + } + if (Z_TYPE_P(&fieldExcept) != IS_NULL) { + if (Z_TYPE_P(&fieldExcept) == IS_ARRAY) { + zephir_is_iterable(&fieldExcept, 0, "phalcon/Validation/Validator/Uniqueness.zep", 226); + if (Z_TYPE_P(&fieldExcept) == IS_ARRAY) { + ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&fieldExcept), _7$$8) + { + ZEPHIR_INIT_NVAR(&singleExcept); + ZVAL_COPY(&singleExcept, _7$$8); + zephir_array_append(¬InValues, &singleExcept, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 223); + } ZEND_HASH_FOREACH_END(); + } else { + ZEPHIR_CALL_METHOD(NULL, &fieldExcept, "rewind", NULL, 0); + zephir_check_call_status(); + while (1) { + ZEPHIR_CALL_METHOD(&_8$$8, &fieldExcept, "valid", NULL, 0); + zephir_check_call_status(); + if (!zend_is_true(&_8$$8)) { + break; + } + ZEPHIR_CALL_METHOD(&singleExcept, &fieldExcept, "current", NULL, 0); + zephir_check_call_status(); + zephir_array_append(¬InValues, &singleExcept, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 223); + ZEPHIR_CALL_METHOD(NULL, &fieldExcept, "next", NULL, 0); + zephir_check_call_status(); + } + } + ZEPHIR_INIT_NVAR(&singleExcept); + ZEPHIR_INIT_NVAR(&_9$$8); + zephir_create_array(&_9$$8, 1, 0 TSRMLS_CC); + zephir_array_update_string(&_9$$8, SL("$nin"), ¬InValues, PH_COPY | PH_SEPARATE); + zephir_array_update_zval(&exceptConditions, &singleField, &_9$$8, PH_COPY | PH_SEPARATE); + } else { + ZEPHIR_INIT_NVAR(&_10$$11); + zephir_create_array(&_10$$11, 1, 0 TSRMLS_CC); + zephir_array_update_string(&_10$$11, SL("$ne"), &fieldExcept, PH_COPY | PH_SEPARATE); + zephir_array_update_zval(&exceptConditions, &singleField, &_10$$11, PH_COPY | PH_SEPARATE); + } + } else if (_6$$4) { + zephir_is_iterable(&except, 0, "phalcon/Validation/Validator/Uniqueness.zep", 239); + if (Z_TYPE_P(&except) == IS_ARRAY) { + ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&except), _11$$12) + { + ZEPHIR_INIT_NVAR(&singleExcept); + ZVAL_COPY(&singleExcept, _11$$12); + zephir_array_append(¬InValues, &singleExcept, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 236); + } ZEND_HASH_FOREACH_END(); + } else { + ZEPHIR_CALL_METHOD(NULL, &except, "rewind", NULL, 0); + zephir_check_call_status(); + while (1) { + ZEPHIR_CALL_METHOD(&_12$$12, &except, "valid", NULL, 0); + zephir_check_call_status(); + if (!zend_is_true(&_12$$12)) { + break; + } + ZEPHIR_CALL_METHOD(&singleExcept, &except, "current", NULL, 0); + zephir_check_call_status(); + zephir_array_append(¬InValues, &singleExcept, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 236); + ZEPHIR_CALL_METHOD(NULL, &except, "next", NULL, 0); + zephir_check_call_status(); + } + } + ZEPHIR_INIT_NVAR(&singleExcept); + ZEPHIR_INIT_NVAR(&_13$$12); + zephir_create_array(&_13$$12, 1, 0 TSRMLS_CC); + zephir_array_update_string(&_13$$12, SL("$nin"), ¬InValues, PH_COPY | PH_SEPARATE); + zephir_array_update_multi(¶ms, &_13$$12 TSRMLS_CC, SL("sz"), 3, SL("conditions"), &singleField); + } else if (zephir_fast_count_int(&field TSRMLS_CC) == 1) { + ZEPHIR_INIT_NVAR(&_14$$15); + zephir_create_array(&_14$$15, 1, 0 TSRMLS_CC); + zephir_array_update_string(&_14$$15, SL("$ne"), &except, PH_COPY | PH_SEPARATE); + zephir_array_update_multi(¶ms, &_14$$15 TSRMLS_CC, SL("sz"), 3, SL("conditions"), &singleField); + } + } + } ZEND_HASH_FOREACH_END(); + } else { + ZEPHIR_CALL_METHOD(NULL, &field, "rewind", NULL, 0); + zephir_check_call_status(); + while (1) { + ZEPHIR_CALL_METHOD(&_2, &field, "valid", NULL, 0); + zephir_check_call_status(); + if (!zend_is_true(&_2)) { + break; + } + ZEPHIR_CALL_METHOD(&singleField, &field, "current", NULL, 0); + zephir_check_call_status(); + ZEPHIR_INIT_NVAR(&fieldExcept); + ZVAL_NULL(&fieldExcept); + ZEPHIR_INIT_NVAR(¬InValues); + array_init(¬InValues); + ZEPHIR_OBS_NVAR(&value); + zephir_array_fetch(&value, &values, &singleField, PH_NOISY, "phalcon/Validation/Validator/Uniqueness.zep", 207 TSRMLS_CC); + ZEPHIR_INIT_NVAR(&_15$$16); + ZVAL_STRING(&_15$$16, "except"); + ZEPHIR_CALL_METHOD(&except, this_ptr, "getoption", &_4, 0, &_15$$16); + zephir_check_call_status(); + zephir_array_update_multi(¶ms, &value TSRMLS_CC, SL("sz"), 3, SL("conditions"), &singleField); + if (zephir_is_true(&except)) { + _16$$17 = Z_TYPE_P(&except) == IS_ARRAY; + if (_16$$17) { + _16$$17 = zephir_fast_count_int(&field TSRMLS_CC) > 1; + } + if (_16$$17) { + if (zephir_array_isset(&except, &singleField)) { + ZEPHIR_OBS_NVAR(&fieldExcept); + zephir_array_fetch(&fieldExcept, &except, &singleField, PH_NOISY, "phalcon/Validation/Validator/Uniqueness.zep", 216 TSRMLS_CC); + } + } + _17$$17 = Z_TYPE_P(&except) == IS_ARRAY; + if (_17$$17) { + _17$$17 = zephir_fast_count_int(&field TSRMLS_CC) == 1; + } + if (Z_TYPE_P(&fieldExcept) != IS_NULL) { + if (Z_TYPE_P(&fieldExcept) == IS_ARRAY) { + zephir_is_iterable(&fieldExcept, 0, "phalcon/Validation/Validator/Uniqueness.zep", 226); + if (Z_TYPE_P(&fieldExcept) == IS_ARRAY) { + ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&fieldExcept), _18$$21) + { + ZEPHIR_INIT_NVAR(&singleExcept); + ZVAL_COPY(&singleExcept, _18$$21); + zephir_array_append(¬InValues, &singleExcept, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 223); + } ZEND_HASH_FOREACH_END(); + } else { + ZEPHIR_CALL_METHOD(NULL, &fieldExcept, "rewind", NULL, 0); + zephir_check_call_status(); + while (1) { + ZEPHIR_CALL_METHOD(&_19$$21, &fieldExcept, "valid", NULL, 0); + zephir_check_call_status(); + if (!zend_is_true(&_19$$21)) { + break; + } + ZEPHIR_CALL_METHOD(&singleExcept, &fieldExcept, "current", NULL, 0); + zephir_check_call_status(); + zephir_array_append(¬InValues, &singleExcept, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 223); + ZEPHIR_CALL_METHOD(NULL, &fieldExcept, "next", NULL, 0); + zephir_check_call_status(); + } + } + ZEPHIR_INIT_NVAR(&singleExcept); + ZEPHIR_INIT_NVAR(&_20$$21); + zephir_create_array(&_20$$21, 1, 0 TSRMLS_CC); + zephir_array_update_string(&_20$$21, SL("$nin"), ¬InValues, PH_COPY | PH_SEPARATE); + zephir_array_update_zval(&exceptConditions, &singleField, &_20$$21, PH_COPY | PH_SEPARATE); + } else { + ZEPHIR_INIT_NVAR(&_21$$24); + zephir_create_array(&_21$$24, 1, 0 TSRMLS_CC); + zephir_array_update_string(&_21$$24, SL("$ne"), &fieldExcept, PH_COPY | PH_SEPARATE); + zephir_array_update_zval(&exceptConditions, &singleField, &_21$$24, PH_COPY | PH_SEPARATE); + } + } else if (_17$$17) { + zephir_is_iterable(&except, 0, "phalcon/Validation/Validator/Uniqueness.zep", 239); + if (Z_TYPE_P(&except) == IS_ARRAY) { + ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&except), _22$$25) + { + ZEPHIR_INIT_NVAR(&singleExcept); + ZVAL_COPY(&singleExcept, _22$$25); + zephir_array_append(¬InValues, &singleExcept, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 236); + } ZEND_HASH_FOREACH_END(); + } else { + ZEPHIR_CALL_METHOD(NULL, &except, "rewind", NULL, 0); + zephir_check_call_status(); + while (1) { + ZEPHIR_CALL_METHOD(&_23$$25, &except, "valid", NULL, 0); + zephir_check_call_status(); + if (!zend_is_true(&_23$$25)) { + break; + } + ZEPHIR_CALL_METHOD(&singleExcept, &except, "current", NULL, 0); + zephir_check_call_status(); + zephir_array_append(¬InValues, &singleExcept, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 236); + ZEPHIR_CALL_METHOD(NULL, &except, "next", NULL, 0); + zephir_check_call_status(); + } + } + ZEPHIR_INIT_NVAR(&singleExcept); + ZEPHIR_INIT_NVAR(&_24$$25); + zephir_create_array(&_24$$25, 1, 0 TSRMLS_CC); + zephir_array_update_string(&_24$$25, SL("$nin"), ¬InValues, PH_COPY | PH_SEPARATE); + zephir_array_update_multi(¶ms, &_24$$25 TSRMLS_CC, SL("sz"), 3, SL("conditions"), &singleField); + } else if (zephir_fast_count_int(&field TSRMLS_CC) == 1) { + ZEPHIR_INIT_NVAR(&_25$$28); + zephir_create_array(&_25$$28, 1, 0 TSRMLS_CC); + zephir_array_update_string(&_25$$28, SL("$ne"), &except, PH_COPY | PH_SEPARATE); + zephir_array_update_multi(¶ms, &_25$$28 TSRMLS_CC, SL("sz"), 3, SL("conditions"), &singleField); + } + } + ZEPHIR_CALL_METHOD(NULL, &field, "next", NULL, 0); + zephir_check_call_status(); + } + } + ZEPHIR_INIT_NVAR(&singleField); + ZEPHIR_CALL_METHOD(&_26, record, "getdirtystate", NULL, 0); + zephir_check_call_status(); + if (ZEPHIR_IS_LONG(&_26, 0)) { + ZEPHIR_INIT_VAR(&_27$$29); + zephir_create_array(&_27$$29, 1, 0 TSRMLS_CC); + ZEPHIR_CALL_METHOD(&_28$$29, record, "getid", NULL, 0); + zephir_check_call_status(); + zephir_array_update_string(&_27$$29, SL("$ne"), &_28$$29, PH_COPY | PH_SEPARATE); + zephir_array_update_multi(¶ms, &_27$$29 TSRMLS_CC, SL("ss"), 4, SL("conditions"), SL("_id")); + } + if (!(ZEPHIR_IS_EMPTY(&exceptConditions))) { + ZEPHIR_INIT_VAR(&_29$$30); + zephir_create_array(&_29$$30, 1, 0 TSRMLS_CC); + zephir_array_fast_append(&_29$$30, &exceptConditions); + zephir_array_update_multi(¶ms, &_29$$30 TSRMLS_CC, SL("ss"), 4, SL("conditions"), SL("$or")); + } + RETURN_CCTOR(¶ms); + +} + /** * Uniqueness method used for model */ diff --git a/ext/phalcon/validation/validator/uniqueness.zep.h b/ext/phalcon/validation/validator/uniqueness.zep.h index fb8d84bbd0f..65123d3b173 100644 --- a/ext/phalcon/validation/validator/uniqueness.zep.h +++ b/ext/phalcon/validation/validator/uniqueness.zep.h @@ -6,6 +6,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Validation_Validator_Uniqueness); PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, validate); PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, getColumnNameReal); PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniqueness); +PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessCollection); PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel); #if PHP_VERSION_ID >= 70200 @@ -39,6 +40,12 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_validation_validator_uni ZEND_ARG_INFO(0, field) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_uniqueness_isuniquenesscollection, 0, 0, 3) + ZEND_ARG_INFO(0, record) + ZEND_ARG_ARRAY_INFO(0, field, 0) + ZEND_ARG_ARRAY_INFO(0, values, 0) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_uniqueness_isuniquenessmodel, 0, 0, 3) ZEND_ARG_INFO(0, record) ZEND_ARG_ARRAY_INFO(0, field, 0) @@ -49,6 +56,7 @@ ZEPHIR_INIT_FUNCS(phalcon_validation_validator_uniqueness_method_entry) { PHP_ME(Phalcon_Validation_Validator_Uniqueness, validate, arginfo_phalcon_validation_validator_uniqueness_validate, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Validator_Uniqueness, getColumnNameReal, arginfo_phalcon_validation_validator_uniqueness_getcolumnnamereal, ZEND_ACC_PROTECTED) PHP_ME(Phalcon_Validation_Validator_Uniqueness, isUniqueness, arginfo_phalcon_validation_validator_uniqueness_isuniqueness, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Validation_Validator_Uniqueness, isUniquenessCollection, arginfo_phalcon_validation_validator_uniqueness_isuniquenesscollection, ZEND_ACC_PROTECTED) PHP_ME(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel, arginfo_phalcon_validation_validator_uniqueness_isuniquenessmodel, ZEND_ACC_PROTECTED) PHP_FE_END }; diff --git a/phalcon/Validation/Validator/Uniqueness.zep b/phalcon/Validation/Validator/Uniqueness.zep index 92e8b570234..378a8b235a1 100644 --- a/phalcon/Validation/Validator/Uniqueness.zep +++ b/phalcon/Validation/Validator/Uniqueness.zep @@ -132,8 +132,8 @@ class Uniqueness extends AbstractCombinedFieldsValidator protected function isUniqueness( validation, var field) -> bool { - var values, convert, record, params, className, isModel, singleField; -// var isDocument; + var values, convert, record, params, className, isModel, isDocument, + singleField; if typeof field != "array" { let singleField = field, From 35082aaf7203286c3cc587577babc0e3238a279f Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Sat, 7 Sep 2019 11:49:58 -0400 Subject: [PATCH 100/202] [#13697] - Removed unused variable --- phalcon/Validation/Validator/Uniqueness.zep | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phalcon/Validation/Validator/Uniqueness.zep b/phalcon/Validation/Validator/Uniqueness.zep index 378a8b235a1..92e8b570234 100644 --- a/phalcon/Validation/Validator/Uniqueness.zep +++ b/phalcon/Validation/Validator/Uniqueness.zep @@ -132,8 +132,8 @@ class Uniqueness extends AbstractCombinedFieldsValidator protected function isUniqueness( validation, var field) -> bool { - var values, convert, record, params, className, isModel, isDocument, - singleField; + var values, convert, record, params, className, isModel, singleField; +// var isDocument; if typeof field != "array" { let singleField = field, From 38753f9b39cee1ee5280486ee20d15358bf0ec25 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Sat, 7 Sep 2019 12:07:30 -0400 Subject: [PATCH 101/202] [#13697] - Added comments --- phalcon/Validation/Validator/Uniqueness.zep | 26 ++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/phalcon/Validation/Validator/Uniqueness.zep b/phalcon/Validation/Validator/Uniqueness.zep index 92e8b570234..c38cca7c97f 100644 --- a/phalcon/Validation/Validator/Uniqueness.zep +++ b/phalcon/Validation/Validator/Uniqueness.zep @@ -133,6 +133,10 @@ class Uniqueness extends AbstractCombinedFieldsValidator protected function isUniqueness( validation, var field) -> bool { var values, convert, record, params, className, isModel, singleField; +/** + * @todo: The functionality below will be restored once the new Mongo related classes + * are introduced. The new classes will use the latest PHP driver. + */ // var isDocument; if typeof field != "array" { @@ -171,16 +175,31 @@ class Uniqueness extends AbstractCombinedFieldsValidator } let isModel = record instanceof ModelInterface; +/** + * @todo: The functionality below will be restored once the new Mongo related classes + * are introduced. The new classes will use the latest PHP driver. + */ // let isDocument = record instanceof CollectionInterface; if isModel { let params = this->isUniquenessModel(record, field, values); +/** + * @todo: The functionality below will be restored once the new Mongo related classes + * are introduced. The new classes will use the latest PHP driver. + */ // } elseif isDocument { // let params = this->isUniquenessCollection(record, field, values); } else { throw new Exception( - "The uniqueness validator works only with Phalcon\\Mvc\\Model or Phalcon\\Mvc\\Collection" + "The uniqueness validator works only with Phalcon\\Mvc\\Model" ); +/** + * @todo: The functionality below will be restored once the new Mongo related classes + * are introduced. The new classes will use the latest PHP driver. + */ +// throw new Exception( +// "The uniqueness validator works only with Phalcon\\Mvc\\Model or Phalcon\\Mvc\\Collection" +// ); } let className = get_class(record); @@ -188,6 +207,11 @@ class Uniqueness extends AbstractCombinedFieldsValidator return {className}::count(params) == 0; } + +/** + * @todo: The functionality below will be restored once the new Mongo related classes + * are introduced. The new classes will use the latest PHP driver. + */ // /** // * Uniqueness method used for collection // */ From bd563010f680377ee257db71e89d378befcc8b79 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Sat, 7 Sep 2019 12:10:30 -0400 Subject: [PATCH 102/202] [#13697] - Corrected comments --- phalcon/Validation/Validator/Uniqueness.zep | 35 +++++++++------------ 1 file changed, 15 insertions(+), 20 deletions(-) diff --git a/phalcon/Validation/Validator/Uniqueness.zep b/phalcon/Validation/Validator/Uniqueness.zep index c38cca7c97f..bebc039d6f3 100644 --- a/phalcon/Validation/Validator/Uniqueness.zep +++ b/phalcon/Validation/Validator/Uniqueness.zep @@ -133,10 +133,9 @@ class Uniqueness extends AbstractCombinedFieldsValidator protected function isUniqueness( validation, var field) -> bool { var values, convert, record, params, className, isModel, singleField; -/** - * @todo: The functionality below will be restored once the new Mongo related classes - * are introduced. The new classes will use the latest PHP driver. - */ +// +// @todo: Restore when new Collection is reintroduced +// // var isDocument; if typeof field != "array" { @@ -175,28 +174,25 @@ class Uniqueness extends AbstractCombinedFieldsValidator } let isModel = record instanceof ModelInterface; -/** - * @todo: The functionality below will be restored once the new Mongo related classes - * are introduced. The new classes will use the latest PHP driver. - */ +// +// @todo: Restore when new Collection is reintroduced +// // let isDocument = record instanceof CollectionInterface; if isModel { let params = this->isUniquenessModel(record, field, values); -/** - * @todo: The functionality below will be restored once the new Mongo related classes - * are introduced. The new classes will use the latest PHP driver. - */ +// +// @todo: Restore when new Collection is reintroduced +// // } elseif isDocument { // let params = this->isUniquenessCollection(record, field, values); } else { throw new Exception( "The uniqueness validator works only with Phalcon\\Mvc\\Model" ); -/** - * @todo: The functionality below will be restored once the new Mongo related classes - * are introduced. The new classes will use the latest PHP driver. - */ +// +// @todo: Restore when new Collection is reintroduced +// // throw new Exception( // "The uniqueness validator works only with Phalcon\\Mvc\\Model or Phalcon\\Mvc\\Collection" // ); @@ -208,10 +204,9 @@ class Uniqueness extends AbstractCombinedFieldsValidator } -/** - * @todo: The functionality below will be restored once the new Mongo related classes - * are introduced. The new classes will use the latest PHP driver. - */ +// +// @todo: Restore when new Collection is reintroduced +// // /** // * Uniqueness method used for collection // */ From 59cf36e1bedde939cc7196456f2271b2cc71c5b8 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Sat, 7 Sep 2019 13:49:59 -0400 Subject: [PATCH 103/202] [4.0.x] - --- nikos/api/Phalcon_Acl.md | 832 ++ nikos/api/Phalcon_Annotations.md | 652 ++ nikos/api/Phalcon_Application.md | 127 + nikos/api/Phalcon_Assets.md | 1138 +++ nikos/api/Phalcon_Cache.md | 361 + nikos/api/Phalcon_Cli.md | 920 +++ nikos/api/Phalcon_Collection.md | 238 + nikos/api/Phalcon_Config.md | 474 ++ nikos/api/Phalcon_Container.md | 48 + nikos/api/Phalcon_Crypt.md | 434 ++ nikos/api/Phalcon_Db.md | 4292 +++++++++++ nikos/api/Phalcon_Debug.md | 332 + nikos/api/Phalcon_Di.md | 863 +++ nikos/api/Phalcon_Dispatcher.md | 532 ++ nikos/api/Phalcon_Domain.md | 300 + nikos/api/Phalcon_Escaper.md | 212 + nikos/api/Phalcon_Events.md | 424 + nikos/api/Phalcon_Exception.md | 22 + nikos/api/Phalcon_Factory.md | 80 + nikos/api/Phalcon_Filter.md | 603 ++ nikos/api/Phalcon_Firewall.md | 642 ++ nikos/api/Phalcon_Flash.md | 341 + nikos/api/Phalcon_Forms.md | 1106 +++ nikos/api/Phalcon_Helper.md | 77 + nikos/api/Phalcon_Html.md | 1540 ++++ nikos/api/Phalcon_Http.md | 4515 +++++++++++ nikos/api/Phalcon_Image.md | 642 ++ nikos/api/Phalcon_Kernel.md | 17 + nikos/api/Phalcon_Loader.md | 239 + nikos/api/Phalcon_Logger.md | 999 +++ nikos/api/Phalcon_Messages.md | 386 + nikos/api/Phalcon_Mvc.md | 11906 +++++++++++++++++++++++++++++ nikos/api/Phalcon_Paginator.md | 566 ++ nikos/api/Phalcon_Registry.md | 222 + nikos/api/Phalcon_Security.md | 470 ++ nikos/api/Phalcon_Session.md | 736 ++ nikos/api/Phalcon_Storage.md | 1253 +++ nikos/api/Phalcon_Tag.md | 125 + nikos/api/Phalcon_Text.md | 28 + nikos/api/Phalcon_Translate.md | 590 ++ nikos/api/Phalcon_Url.md | 241 + nikos/api/Phalcon_Validation.md | 2769 +++++++ nikos/api/Phalcon_Version.md | 26 + nikos/api/api.json | 680 ++ phalcon/Flash/AbstractFlash.zep | 11 +- phalcon/Flash/Session.zep | 39 +- 46 files changed, 43041 insertions(+), 9 deletions(-) create mode 100644 nikos/api/Phalcon_Acl.md create mode 100644 nikos/api/Phalcon_Annotations.md create mode 100644 nikos/api/Phalcon_Application.md create mode 100644 nikos/api/Phalcon_Assets.md create mode 100644 nikos/api/Phalcon_Cache.md create mode 100644 nikos/api/Phalcon_Cli.md create mode 100644 nikos/api/Phalcon_Collection.md create mode 100644 nikos/api/Phalcon_Config.md create mode 100644 nikos/api/Phalcon_Container.md create mode 100644 nikos/api/Phalcon_Crypt.md create mode 100644 nikos/api/Phalcon_Db.md create mode 100644 nikos/api/Phalcon_Debug.md create mode 100644 nikos/api/Phalcon_Di.md create mode 100644 nikos/api/Phalcon_Dispatcher.md create mode 100644 nikos/api/Phalcon_Domain.md create mode 100644 nikos/api/Phalcon_Escaper.md create mode 100644 nikos/api/Phalcon_Events.md create mode 100644 nikos/api/Phalcon_Exception.md create mode 100644 nikos/api/Phalcon_Factory.md create mode 100644 nikos/api/Phalcon_Filter.md create mode 100644 nikos/api/Phalcon_Firewall.md create mode 100644 nikos/api/Phalcon_Flash.md create mode 100644 nikos/api/Phalcon_Forms.md create mode 100644 nikos/api/Phalcon_Helper.md create mode 100644 nikos/api/Phalcon_Html.md create mode 100644 nikos/api/Phalcon_Http.md create mode 100644 nikos/api/Phalcon_Image.md create mode 100644 nikos/api/Phalcon_Kernel.md create mode 100644 nikos/api/Phalcon_Loader.md create mode 100644 nikos/api/Phalcon_Logger.md create mode 100644 nikos/api/Phalcon_Messages.md create mode 100644 nikos/api/Phalcon_Mvc.md create mode 100644 nikos/api/Phalcon_Paginator.md create mode 100644 nikos/api/Phalcon_Registry.md create mode 100644 nikos/api/Phalcon_Security.md create mode 100644 nikos/api/Phalcon_Session.md create mode 100644 nikos/api/Phalcon_Storage.md create mode 100644 nikos/api/Phalcon_Tag.md create mode 100644 nikos/api/Phalcon_Text.md create mode 100644 nikos/api/Phalcon_Translate.md create mode 100644 nikos/api/Phalcon_Url.md create mode 100644 nikos/api/Phalcon_Validation.md create mode 100644 nikos/api/Phalcon_Version.md create mode 100644 nikos/api/api.json diff --git a/nikos/api/Phalcon_Acl.md b/nikos/api/Phalcon_Acl.md new file mode 100644 index 00000000000..b6563072363 --- /dev/null +++ b/nikos/api/Phalcon_Acl.md @@ -0,0 +1,832 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Acl' +--- + +* [Phalcon\Acl\Adapter\AbstractAdapter](#acl-adapter-abstractadapter) +* [Phalcon\Acl\Adapter\AdapterInterface](#acl-adapter-adapterinterface) +* [Phalcon\Acl\Adapter\Memory](#acl-adapter-memory) +* [Phalcon\Acl\Component](#acl-component) +* [Phalcon\Acl\ComponentAware](#acl-componentaware) +* [Phalcon\Acl\ComponentInterface](#acl-componentinterface) +* [Phalcon\Acl\Enum](#acl-enum) +* [Phalcon\Acl\Exception](#acl-exception) +* [Phalcon\Acl\Role](#acl-role) +* [Phalcon\Acl\RoleAware](#acl-roleaware) +* [Phalcon\Acl\RoleInterface](#acl-roleinterface) + +

        Abstract Class Phalcon\Acl\Adapter\AbstractAdapter

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/acl/adapter/abstractadapter.zep) + +| Namespace | Phalcon\Acl\Adapter | +| Uses | Phalcon\Events\ManagerInterface, Phalcon\Events\EventsAwareInterface | +| Implements | AdapterInterface, EventsAwareInterface | + +Adapter for Phalcon\Acl adapters + + +## Properties +```php +/** + * Active access which the list is checking if some role can access it + * + * @var string + */ +protected activeAccess; + +/** + * Access Granted + * + * @var bool + */ +protected accessGranted = false; + +/** + * Role which the list is checking if it's allowed to certain + * component/access + * + * @var string + */ +protected activeRole; + +/** + * Component which the list is checking if some role can access it + * + * @var string + */ +protected activeComponent; + +/** + * Default access + * + * @var bool + */ +protected defaultAccess = false; + +/** + * Events manager + * + * @var mixed + */ +protected eventsManager; + +``` + +## Methods +```php +public function getActiveAccess(): string +``` + + +```php +public function getActiveComponent(): string +``` + + +```php +public function getActiveRole(): string +``` + + +```php +public function getDefaultAction(): int; +``` +Returns the default ACL access level + + +```php +public function getEventsManager(): ManagerInterface; +``` +Returns the internal event manager + + +```php +public function setDefaultAction( int $defaultAccess ); +``` +Sets the default access level (Phalcon\Acl::ALLOW or Phalcon\Acl::DENY) + + +```php +public function setEventsManager( ManagerInterface $eventsManager ): void; +``` +Sets the events manager + + + + +

        Interface Phalcon\Acl\Adapter\AdapterInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/acl/adapter/adapterinterface.zep) + +| Namespace | Phalcon\Acl\Adapter | + +Interface for Phalcon\Acl adapters + + +## Methods +```php +public function addComponent( mixed $componentObject, mixed $accessList ): bool; +``` +Adds a component to the ACL list + +Access names can be a particular action, by example +search, update, delete, etc or a list of them + + +```php +public function addComponentAccess( string $componentName, mixed $accessList ): bool; +``` +Adds access to components + + +```php +public function addInherit( string $roleName, mixed $roleToInherit ): bool; +``` +Do a role inherit from another existing role + + +```php +public function addRole( mixed $role, mixed $accessInherits = null ): bool; +``` +Adds a role to the ACL list. Second parameter lets to inherit access data +from other existing role + + +```php +public function allow( string $roleName, string $componentName, mixed $access, mixed $func = null ): void; +``` +Allow access to a role on a component + + +```php +public function deny( string $roleName, string $componentName, mixed $access, mixed $func = null ): void; +``` +Deny access to a role on a component + + +```php +public function dropComponentAccess( string $componentName, mixed $accessList ): void; +``` +Removes an access from a component + + +```php +public function getActiveAccess(): string; +``` +Returns the access which the list is checking if some role can access it + + +```php +public function getActiveComponent(): string; +``` +Returns the component which the list is checking if some role can access +it + + +```php +public function getActiveRole(): string; +``` +Returns the role which the list is checking if it's allowed to certain +component/access + + +```php +public function getComponents(): ComponentInterface[]; +``` +Return an array with every component registered in the list + + +```php +public function getDefaultAction(): int; +``` +Returns the default ACL access level + + +```php +public function getNoArgumentsDefaultAction(): int; +``` +Returns the default ACL access level for no arguments provided in +isAllowed action if there exists func for accessKey + + +```php +public function getRoles(): RoleInterface[]; +``` +Return an array with every role registered in the list + + +```php +public function isAllowed( mixed $roleName, mixed $componentName, string $access, array $parameters = null ): bool; +``` +Check whether a role is allowed to access an action from a component + + +```php +public function isComponent( string $componentName ): bool; +``` +Check whether component exist in the components list + + +```php +public function isRole( string $roleName ): bool; +``` +Check whether role exist in the roles list + + +```php +public function setDefaultAction( int $defaultAccess ): void; +``` +Sets the default access level (Phalcon\Ac\Enuml::ALLOW or Phalcon\Acl\Enum::DENY) + + +```php +public function setNoArgumentsDefaultAction( int $defaultAccess ): void; +``` +Sets the default access level (Phalcon\Acl\Enum::ALLOW or Phalcon\Acl\Enum::DENY) +for no arguments provided in isAllowed action if there exists func for +accessKey + + + + +

        Class Phalcon\Acl\Adapter\Memory

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/acl/adapter/memory.zep) + +| Namespace | Phalcon\Acl\Adapter | +| Uses | Phalcon\Acl\Adapter\AbstractAdapter, Phalcon\Acl\Enum, Phalcon\Acl\Role, Phalcon\Acl\RoleInterface, Phalcon\Acl\Component, Phalcon\Acl\Exception, Phalcon\Events\Manager, Phalcon\Acl\RoleAware, Phalcon\Acl\ComponentAware, Phalcon\Acl\RoleInterface, Phalcon\Acl\ComponentInterface, ReflectionFunction | +| Extends | AbstractAdapter | + +Manages ACL lists in memory + +```php +$acl = new \Phalcon\Acl\Adapter\Memory(); + +$acl->setDefaultAction( + \Phalcon\Acl\Enum::DENY +); + +// Register roles +$roles = [ + "users" => new \Phalcon\Acl\Role("Users"), + "guests" => new \Phalcon\Acl\Role("Guests"), +]; +foreach ($roles as $role) { + $acl->addRole($role); +} + +// Private area components +$privateComponents = [ + "companies" => ["index", "search", "new", "edit", "save", "create", "delete"], + "products" => ["index", "search", "new", "edit", "save", "create", "delete"], + "invoices" => ["index", "profile"], +]; + +foreach ($privateComponents as $componentName => $actions) { + $acl->addComponent( + new \Phalcon\Acl\Component($componentName), + $actions + ); +} + +// Public area components +$publicComponents = [ + "index" => ["index"], + "about" => ["index"], + "session" => ["index", "register", "start", "end"], + "contact" => ["index", "send"], +]; + +foreach ($publicComponents as $componentName => $actions) { + $acl->addComponent( + new \Phalcon\Acl\Component($componentName), + $actions + ); +} + +// Grant access to public areas to both users and guests +foreach ($roles as $role) { + foreach ($publicComponents as $component => $actions) { + $acl->allow($role->getName(), $component, "*"); + } +} + +// Grant access to private area to role Users +foreach ($privateComponents as $component => $actions) { + foreach ($actions as $action) { + $acl->allow("Users", $component, $action); + } +} +``` + + +## Properties +```php +/** + * Access + * + * @var mixed + */ +protected access; + +/** + * Access List + * + * @var mixed + */ +protected accessList; + +/** + * Returns latest function used to acquire access + * + * @var mixed + */ +protected activeFunction; + +/** + * Returns number of additional arguments(excluding role and resource) for active function + * + * @var int + */ +protected activeFunctionCustomArgumentsCount = 0; + +/** + * Returns latest key used to acquire access + * + * @var string|null + */ +protected activeKey; + +/** + * Components + * + * @var mixed + */ +protected components; + +/** + * Component Names + * + * @var mixed + */ +protected componentsNames; + +/** + * Function List + * + * @var mixed + */ +protected func; + +/** + * Default action for no arguments is allow + * + * @var mixed + */ +protected noArgumentsDefaultAction; + +/** + * Roles + * + * @var mixed + */ +protected roles; + +/** + * Role Inherits + * + * @var mixed + */ +protected roleInherits; + +/** + * Roles Names + * + * @var mixed + */ +protected rolesNames; + +``` + +## Methods +```php +public function __construct(): void; +``` +Phalcon\Acl\Adapter\Memory constructor + + +```php +public function addComponent( mixed $componentValue, mixed $accessList ): bool; +``` +Adds a component to the ACL list + +Access names can be a particular action, by example +search, update, delete, etc or a list of them + +Example: +```php +// Add a component to the the list allowing access to an action +$acl->addComponent( + new Phalcon\Acl\Component("customers"), + "search" +); + +$acl->addComponent("customers", "search"); + +// Add a component with an access list +$acl->addComponent( + new Phalcon\Acl\Component("customers"), + [ + "create", + "search", + ] +); + +$acl->addComponent( + "customers", + [ + "create", + "search", + ] +); +``` + + +```php +public function addComponentAccess( string $componentName, mixed $accessList ): bool; +``` +Adds access to components + + +```php +public function addInherit( string $roleName, mixed $roleToInherits ): bool; +``` +Do a role inherit from another existing role + +```php +$acl->addRole("administrator", "consultant"); +$acl->addRole("administrator", ["consultant", "consultant2"]); +``` + + +```php +public function addRole( mixed $role, mixed $accessInherits = null ): bool; +``` +Adds a role to the ACL list. Second parameter allows inheriting access data from other existing role + +```php +$acl->addRole( + new Phalcon\Acl\Role("administrator"), + "consultant" +); + +$acl->addRole("administrator", "consultant"); +$acl->addRole("administrator", ["consultant", "consultant2"]); +``` + + +```php +public function allow( string $roleName, string $componentName, mixed $access, mixed $func = null ): void; +``` +Allow access to a role on a component. You can use `*` as wildcard + +```php +// Allow access to guests to search on customers +$acl->allow("guests", "customers", "search"); + +// Allow access to guests to search or create on customers +$acl->allow("guests", "customers", ["search", "create"]); + +// Allow access to any role to browse on products +$acl->allow("*", "products", "browse"); + +// Allow access to any role to browse on any component +$acl->allow("*", "*", "browse"); + + +```php +public function deny( string $roleName, string $componentName, mixed $access, mixed $func = null ): void; +``` +Deny access to a role on a component. You can use `*` as wildcard + +```php +// Deny access to guests to search on customers +$acl->deny("guests", "customers", "search"); + +// Deny access to guests to search or create on customers +$acl->deny("guests", "customers", ["search", "create"]); + +// Deny access to any role to browse on products +$acl->deny("*", "products", "browse"); + +// Deny access to any role to browse on any component +$acl->deny("*", "*", "browse"); +``` + + +```php +public function dropComponentAccess( string $componentName, mixed $accessList ): void; +``` +Removes an access from a component + + +```php +public function getActiveFunction(): mixed +``` + + +```php +public function getActiveFunctionCustomArgumentsCount(): int +``` + + +```php +public function getActiveKey(): string|null +``` + + +```php +public function getComponents(): ComponentInterface[]; +``` +Return an array with every component registered in the list + + +```php +public function getNoArgumentsDefaultAction(): int; +``` +Returns the default ACL access level for no arguments provided in +`isAllowed` action if a `func` (callable) exists for `accessKey` + + +```php +public function getRoles(): RoleInterface[]; +``` +Return an array with every role registered in the list + + +```php +public function isAllowed( mixed $roleName, mixed $componentName, string $access, array $parameters = null ): bool; +``` +Check whether a role is allowed to access an action from a component + +```php +// Does andres have access to the customers component to create? +$acl->isAllowed("andres", "Products", "create"); + +// Do guests have access to any component to edit? +$acl->isAllowed("guests", "*", "edit"); +``` + + +```php +public function isComponent( string $componentName ): bool; +``` +Check whether component exist in the components list + + +```php +public function isRole( string $roleName ): bool; +``` +Check whether role exist in the roles list + + +```php +public function setNoArgumentsDefaultAction( int $defaultAccess ): void; +``` +Sets the default access level (`Phalcon\Enum::ALLOW` or `Phalcon\Enum::DENY`) +for no arguments provided in isAllowed action if there exists func for +accessKey + + + + +

        Class Phalcon\Acl\Component

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/acl/component.zep) + +| Namespace | Phalcon\Acl | +| Uses | Phalcon\Acl\Exception | +| Implements | ComponentInterface | + +This class defines component entity and its description + + +## Properties +```php +/** + * Component description + * + * @var string + */ +private description; + +/** + * Component name + * + * @var string + */ +private name; + +``` + +## Methods +```php +public function __construct( string $name, string $description = null ): void; +``` +Phalcon\Acl\Component constructor + + +```php +public function __toString(): string +``` + + +```php +public function getDescription(): string +``` + + +```php +public function getName(): string +``` + + + + +

        Interface Phalcon\Acl\ComponentAware

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/acl/componentaware.zep) + +| Namespace | Phalcon\Acl | + +Interface for classes which could be used in allow method as RESOURCE + + +## Methods +```php +public function getComponentName(): string; +``` +Returns component name + + + + +

        Interface Phalcon\Acl\ComponentInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/acl/componentinterface.zep) + +| Namespace | Phalcon\Acl | + +Interface for Phalcon\Acl\Component + + +## Methods +```php +public function __toString(): string; +``` +Magic method __toString + + +```php +public function getDescription(): string; +``` +Returns component description + + +```php +public function getName(): string; +``` +Returns the component name + + + + +

        Class Phalcon\Acl\Enum

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/acl/enum.zep) + +| Namespace | Phalcon\Acl | + +Constants for Phalcon\Acl\Adapter adapters + + +## Constants +```php +const ALLOW = 1; +const DENY = 0; +``` + + +

        Class Phalcon\Acl\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/acl/exception.zep) + +| Namespace | Phalcon\Acl | +| Extends | \Phalcon\Exception | + +Class for exceptions thrown by Phalcon\Acl + + + +

        Class Phalcon\Acl\Role

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/acl/role.zep) + +| Namespace | Phalcon\Acl | +| Uses | Phalcon\Acl\Exception | +| Implements | RoleInterface | + +This class defines role entity and its description + + +## Properties +```php +/** + * Role name + * + * @var string + */ +private name; + +/** + * Role description + * + * @var string + */ +private description; + +``` + +## Methods +```php +public function __construct( string $name, string $description = null ): void; +``` +Phalcon\Acl\Role constructor + + +```php +public function __toString(): string +``` + + +```php +public function getDescription(): string +``` + + +```php +public function getName(): string +``` + + + + +

        Interface Phalcon\Acl\RoleAware

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/acl/roleaware.zep) + +| Namespace | Phalcon\Acl | + +Interface for classes which could be used in allow method as ROLE + + +## Methods +```php +public function getRoleName(): string; +``` +Returns role name + + + + +

        Interface Phalcon\Acl\RoleInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/acl/roleinterface.zep) + +| Namespace | Phalcon\Acl | + +Interface for Phalcon\Acl\Role + + +## Methods +```php +public function __toString(): string; +``` +Magic method __toString + + +```php +public function getDescription(): string; +``` +Returns role description + + +```php +public function getName(): string; +``` +Returns the role name + + diff --git a/nikos/api/Phalcon_Annotations.md b/nikos/api/Phalcon_Annotations.md new file mode 100644 index 00000000000..ff6c98aac69 --- /dev/null +++ b/nikos/api/Phalcon_Annotations.md @@ -0,0 +1,652 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Annotations' +--- + +* [Phalcon\Annotations\Adapter\AbstractAdapter](#annotations-adapter-abstractadapter) +* [Phalcon\Annotations\Adapter\AdapterInterface](#annotations-adapter-adapterinterface) +* [Phalcon\Annotations\Adapter\Apcu](#annotations-adapter-apcu) +* [Phalcon\Annotations\Adapter\Memory](#annotations-adapter-memory) +* [Phalcon\Annotations\Adapter\Stream](#annotations-adapter-stream) +* [Phalcon\Annotations\Annotation](#annotations-annotation) +* [Phalcon\Annotations\AnnotationsFactory](#annotations-annotationsfactory) +* [Phalcon\Annotations\Collection](#annotations-collection) +* [Phalcon\Annotations\Exception](#annotations-exception) +* [Phalcon\Annotations\Reader](#annotations-reader) +* [Phalcon\Annotations\ReaderInterface](#annotations-readerinterface) +* [Phalcon\Annotations\Reflection](#annotations-reflection) + +

        Abstract Class Phalcon\Annotations\Adapter\AbstractAdapter

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/annotations/adapter/abstractadapter.zep) + +| Namespace | Phalcon\Annotations\Adapter | +| Uses | Phalcon\Annotations\Adapter\AdapterInterface, Phalcon\Annotations\Reader, Phalcon\Annotations\Exception, Phalcon\Annotations\Collection, Phalcon\Annotations\Reflection, Phalcon\Annotations\ReaderInterface | +| Implements | AdapterInterface | + +This is the base class for Phalcon\Annotations adapters + + +## Properties +```php +/** + * @var array + */ +protected annotations; + +/** + * @var Reader + */ +protected reader; + +``` + +## Methods +```php +public function get( mixed $className ): Reflection; +``` +Parses or retrieves all the annotations found in a class + + +```php +public function getMethod( string $className, string $methodName ): Collection; +``` +Returns the annotations found in a specific method + + +```php +public function getMethods( string $className ): array; +``` +Returns the annotations found in all the class' methods + + +```php +public function getProperties( string $className ): array; +``` +Returns the annotations found in all the class' methods + + +```php +public function getProperty( string $className, string $propertyName ): Collection; +``` +Returns the annotations found in a specific property + + +```php +public function getReader(): ReaderInterface; +``` +Returns the annotation reader + + +```php +public function setReader( ReaderInterface $reader ); +``` +Sets the annotations parser + + + + +

        Interface Phalcon\Annotations\Adapter\AdapterInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/annotations/adapter/adapterinterface.zep) + +| Namespace | Phalcon\Annotations\Adapter | +| Uses | Phalcon\Annotations\Reflection, Phalcon\Annotations\Collection, Phalcon\Annotations\ReaderInterface | + +This interface must be implemented by adapters in Phalcon\Annotations + + +## Methods +```php +public function get( string $className ): Reflection; +``` +Parses or retrieves all the annotations found in a class + + +```php +public function getMethod( string $className, string $methodName ): Collection; +``` +Returns the annotations found in a specific method + + +```php +public function getMethods( string $className ): array; +``` +Returns the annotations found in all the class' methods + + +```php +public function getProperties( string $className ): array; +``` +Returns the annotations found in all the class' methods + + +```php +public function getProperty( string $className, string $propertyName ): Collection; +``` +Returns the annotations found in a specific property + + +```php +public function getReader(): ReaderInterface; +``` +Returns the annotation reader + + +```php +public function setReader( ReaderInterface $reader ); +``` +Sets the annotations parser + + + + +

        Class Phalcon\Annotations\Adapter\Apcu

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/annotations/adapter/apcu.zep) + +| Namespace | Phalcon\Annotations\Adapter | +| Uses | Phalcon\Annotations\Adapter\AbstractAdapter, Phalcon\Annotations\Reflection | +| Extends | AbstractAdapter | + +Stores the parsed annotations in APCu. This adapter is suitable for production + +```php +use Phalcon\Annotations\Adapter\Apcu; + +$annotations = new Apcu(); +``` + + +## Properties +```php +/** + * @var string + */ +protected prefix = ; + +/** + * @var int + */ +protected ttl = 172800; + +``` + +## Methods +```php +public function __construct( array $options = [] ): void; +``` +Phalcon\Annotations\Adapter\Apcu constructor + + +```php +public function read( string $key ): Reflection | bool; +``` +Reads parsed annotations from APCu + + +```php +public function write( string $key, Reflection $data ): bool; +``` +Writes parsed annotations to APCu + + + + +

        Class Phalcon\Annotations\Adapter\Memory

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/annotations/adapter/memory.zep) + +| Namespace | Phalcon\Annotations\Adapter | +| Uses | Phalcon\Annotations\Adapter\AbstractAdapter, Phalcon\Annotations\Reflection | +| Extends | AbstractAdapter | + +Stores the parsed annotations in memory. This adapter is the suitable +development/testing + + +## Properties +```php +/** + * @var mixed + */ +protected data; + +``` + +## Methods +```php +public function read( string $key ): Reflection | bool; +``` +Reads parsed annotations from memory + + +```php +public function write( string $key, Reflection $data ): void; +``` +Writes parsed annotations to memory + + + + +

        Class Phalcon\Annotations\Adapter\Stream

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/annotations/adapter/stream.zep) + +| Namespace | Phalcon\Annotations\Adapter | +| Uses | Phalcon\Annotations\Adapter\AbstractAdapter, Phalcon\Annotations\Reflection, Phalcon\Annotations\Exception | +| Extends | AbstractAdapter | + +Stores the parsed annotations in files. This adapter is suitable for production + +```php +use Phalcon\Annotations\Adapter\Stream; + +$annotations = new Stream( + [ + "annotationsDir" => "app/cache/annotations/", + ] +); +``` + + +## Properties +```php +/** + * @var string + */ +protected annotationsDir = ./; + +``` + +## Methods +```php +public function __construct( array $options = [] ): void; +``` +Phalcon\Annotations\Adapter\Stream constructor + + +```php +public function read( string $key ): Reflection | bool | int; +``` +Reads parsed annotations from files + + +```php +public function write( string $key, Reflection $data ): void; +``` +Writes parsed annotations to files + + + + +

        Class Phalcon\Annotations\Annotation

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/annotations/annotation.zep) + +| Namespace | Phalcon\Annotations | +| Uses | Phalcon\Annotations\Annotation, Phalcon\Annotations\Exception | + +Represents a single annotation in an annotations collection + + +## Properties +```php +/** + * Annotation Arguments + * + * @var array + */ +protected arguments; + +/** + * Annotation ExprArguments + * + * @var string + */ +protected exprArguments; + +/** + * Annotation Name + * + * @var string + */ +protected name; + +``` + +## Methods +```php +public function __construct( array $reflectionData ): void; +``` +Phalcon\Annotations\Annotation constructor + + +```php +public function getArgument( mixed $position ); +``` +Returns an argument in a specific position + + +```php +public function getArguments(): array; +``` +Returns the expression arguments + + +```php +public function getExprArguments(): array; +``` +Returns the expression arguments without resolving + + +```php +public function getExpression( array $expr ): mixed; +``` +Resolves an annotation expression + + +```php +public function getName(): string; +``` +Returns the annotation's name + + +```php +public function getNamedArgument( string $name ); +``` +Returns a named argument + + +```php +public function getNamedParameter( string $name ): mixed; +``` +Returns a named parameter + + +```php +public function hasArgument( mixed $position ): bool; +``` +Returns an argument in a specific position + + +```php +public function numberArguments(): int; +``` +Returns the number of arguments that the annotation has + + + + +

        Class Phalcon\Annotations\AnnotationsFactory

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/annotations/annotationsfactory.zep) + +| Namespace | Phalcon\Annotations | +| Uses | Phalcon\Annotations\Adapter\AbstractAdapter, Phalcon\Factory\AbstractFactory, Phalcon\Helper\Arr | +| Extends | AbstractFactory | + +Factory to create annotations components + + +## Methods +```php +public function __construct( array $services = [] ); +``` +AdapterFactory constructor. + + +```php +public function load( mixed $config ): mixed; +``` +Factory to create an instace from a Config object + + +```php +public function newInstance( string $name, array $options = [] ): AbstractAdapter; +``` +Create a new instance of the adapter + + +```php +protected function getAdapters(): array; +``` +The available adapters + + + + +

        Class Phalcon\Annotations\Collection

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/annotations/collection.zep) + +| Namespace | Phalcon\Annotations | +| Uses | Countable, Iterator, Phalcon\Annotations\Annotation, Phalcon\Annotations\Exception | +| Implements | Iterator, Countable | + +Represents a collection of annotations. This class allows to traverse a group +of annotations easily + +```php +// Traverse annotations +foreach ($classAnnotations as $annotation) { + echo "Name=", $annotation->getName(), PHP_EOL; +} + +// Check if the annotations has a specific +var_dump($classAnnotations->has("Cacheable")); + +// Get an specific annotation in the collection +$annotation = $classAnnotations->get("Cacheable"); +``` + + +## Properties +```php +/** + * @var array + */ +protected annotations; + +/** + * @var int + */ +protected position = 0; + +``` + +## Methods +```php +public function __construct( array $reflectionData = [] ): void; +``` +Phalcon\Annotations\Collection constructor + + +```php +public function count(): int; +``` +Returns the number of annotations in the collection + + +```php +public function current(): Annotation | bool; +``` +Returns the current annotation in the iterator + + +```php +public function get( string $name ): Annotation; +``` +Returns the first annotation that match a name + + +```php +public function getAll( string $name ): Annotation[]; +``` +Returns all the annotations that match a name + + +```php +public function getAnnotations(): Annotation[]; +``` +Returns the internal annotations as an array + + +```php +public function has( string $name ): bool; +``` +Check if an annotation exists in a collection + + +```php +public function key(): int; +``` +Returns the current position/key in the iterator + + +```php +public function next(): void; +``` +Moves the internal iteration pointer to the next position + + +```php +public function rewind(): void; +``` +Rewinds the internal iterator + + +```php +public function valid(): bool; +``` +Check if the current annotation in the iterator is valid + + + + +

        Class Phalcon\Annotations\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/annotations/exception.zep) + +| Namespace | Phalcon\Annotations | +| Extends | \Phalcon\Exception | + +Class for exceptions thrown by Phalcon\Annotations + + + +

        Class Phalcon\Annotations\Reader

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/annotations/reader.zep) + +| Namespace | Phalcon\Annotations | +| Uses | Phalcon\Annotations\ReaderInterface, ReflectionClass | +| Implements | ReaderInterface | + +Parses docblocks returning an array with the found annotations + + +## Methods +```php +public function parse( string $className ): array; +``` +Reads annotations from the class docblocks, its methods and/or properties + + + + +

        Interface Phalcon\Annotations\ReaderInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/annotations/readerinterface.zep) + +| Namespace | Phalcon\Annotations | + +Parses docblocks returning an array with the found annotations + + +## Methods +```php +public function parse( string $className ): array; +``` +Reads annotations from the class docblocks, its methods and/or properties + + + + +

        Class Phalcon\Annotations\Reflection

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/annotations/reflection.zep) + +| Namespace | Phalcon\Annotations | +| Uses | Phalcon\Annotations\Collection | + +Allows to manipulate the annotations reflection in an OO manner + +```php +use Phalcon\Annotations\Reader; +use Phalcon\Annotations\Reflection; + +// Parse the annotations in a class +$reader = new Reader(); +$parsing = $reader->parse("MyComponent"); + +// Create the reflection +$reflection = new Reflection($parsing); + +// Get the annotations in the class docblock +$classAnnotations = $reflection->getClassAnnotations(); +``` + + +## Properties +```php +// +protected classAnnotations; + +// +protected methodAnnotations; + +// +protected propertyAnnotations; + +/** + * @var array + */ +protected reflectionData; + +``` + +## Methods +```php +public function __construct( array $reflectionData = [] ): void; +``` +Phalcon\Annotations\Reflection constructor + + +```php +public function getClassAnnotations(): Collection | bool; +``` +Returns the annotations found in the class docblock + + +```php +public function getMethodsAnnotations(): Collection[] | bool; +``` +Returns the annotations found in the methods' docblocks + + +```php +public function getPropertiesAnnotations(): Collection[] | bool; +``` +Returns the annotations found in the properties' docblocks + + +```php +public function getReflectionData(): array; +``` +Returns the raw parsing intermediate definitions used to construct the +reflection + + diff --git a/nikos/api/Phalcon_Application.md b/nikos/api/Phalcon_Application.md new file mode 100644 index 00000000000..0291cc50328 --- /dev/null +++ b/nikos/api/Phalcon_Application.md @@ -0,0 +1,127 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Application' +--- + +* [Phalcon\Application\AbstractApplication](#application-abstractapplication) +* [Phalcon\Application\Exception](#application-exception) + +

        Abstract Class Phalcon\Application\AbstractApplication

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/application/abstractapplication.zep) + +| Namespace | Phalcon\Application | +| Uses | Phalcon\Application\Exception, Phalcon\Di\DiInterface, Phalcon\Di\Injectable, Phalcon\Events\EventsAwareInterface, Phalcon\Events\ManagerInterface | +| Extends | Injectable | +| Implements | EventsAwareInterface | + +Base class for Phalcon\Cli\Console and Phalcon\Mvc\Application. + + +## Properties +```php +/** + * @var DiInterface + */ +protected container; + +/** + * @var string + */ +protected defaultModule; + +/** + * @var null | ManagerInterface + */ +protected eventsManager; + +/** + * @var array + */ +protected modules; + +``` + +## Methods +```php +public function __construct( DiInterface $container = null ): void; +``` +Phalcon\AbstractApplication constructor + + +```php +public function getDefaultModule(): string; +``` +Returns the default module name + + +```php +public function getEventsManager(): ManagerInterface; +``` +Returns the internal event manager + + +```php +public function getModule( string $name ): array | object; +``` +Gets the module definition registered in the application via module name + + +```php +public function getModules(): array; +``` +Return the modules registered in the application + + +```php +abstract public function handle(); +``` +Handles a request + + +```php +public function registerModules( array $modules, bool $merge = bool ): AbstractApplication; +``` +Register an array of modules present in the application + +```php +$this->registerModules( + [ + "frontend" => [ + "className" => \Multiple\Frontend\Module::class, + "path" => "../apps/frontend/Module.php", + ], + "backend" => [ + "className" => \Multiple\Backend\Module::class, + "path" => "../apps/backend/Module.php", + ], + ] +); +``` + + +```php +public function setDefaultModule( string $defaultModule ): AbstractApplication; +``` +Sets the module name to be used if the router doesn't return a valid module + + +```php +public function setEventsManager( ManagerInterface $eventsManager ): AbstractApplication; +``` +Sets the events manager + + + + +

        Class Phalcon\Application\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/application/exception.zep) + +| Namespace | Phalcon\Application | +| Extends | \Phalcon\Exception | + +Exceptions thrown in Phalcon\Application class will use this class + diff --git a/nikos/api/Phalcon_Assets.md b/nikos/api/Phalcon_Assets.md new file mode 100644 index 00000000000..4c862ecd341 --- /dev/null +++ b/nikos/api/Phalcon_Assets.md @@ -0,0 +1,1138 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Assets' +--- + +* [Phalcon\Assets\Asset](#assets-asset) +* [Phalcon\Assets\Asset\Css](#assets-asset-css) +* [Phalcon\Assets\Asset\Js](#assets-asset-js) +* [Phalcon\Assets\AssetInterface](#assets-assetinterface) +* [Phalcon\Assets\Collection](#assets-collection) +* [Phalcon\Assets\Exception](#assets-exception) +* [Phalcon\Assets\FilterInterface](#assets-filterinterface) +* [Phalcon\Assets\Filters\CssMin](#assets-filters-cssmin) +* [Phalcon\Assets\Filters\JsMin](#assets-filters-jsmin) +* [Phalcon\Assets\Filters\None](#assets-filters-none) +* [Phalcon\Assets\Inline](#assets-inline) +* [Phalcon\Assets\Inline\Css](#assets-inline-css) +* [Phalcon\Assets\Inline\Js](#assets-inline-js) +* [Phalcon\Assets\Manager](#assets-manager) + +

        Class Phalcon\Assets\Asset

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/assets/asset.zep) + +| Namespace | Phalcon\Assets | +| Implements | AssetInterface | + +Represents an asset asset + +```php +$asset = new \Phalcon\Assets\Asset("js", "javascripts/jquery.js"); +``` + + +## Properties +```php +/** + * @var array | null + */ +protected attributes; + +/** + * @var bool + */ +protected autoVersion = false; + +/** + * @var bool + */ +protected filter; + +/** + * @var bool + */ +protected local; + +/** + * @var string + */ +protected path; + +/** + * @var string + */ +protected sourcePath; + +/** + * @var string + */ +protected targetPath; + +/** + * @var string + */ +protected targetUri; + +/** + * @var string + */ +protected type; + +/** + * Version of resource + * @var string + */ +protected version; + +``` + +## Methods +```php +public function __construct( string $type, string $path, bool $local = bool, bool $filter = bool, array $attributes = [], string $version = null, bool $autoVersion = bool ): void; +``` +Phalcon\Assets\Asset constructor + + +```php +public function getAssetKey(): string; +``` +Gets the asset's key. + + +```php +public function getAttributes(): array | null +``` + + +```php +public function getContent( string $basePath = null ): string; +``` +Returns the content of the asset as an string +Optionally a base path where the asset is located can be set + + +```php +public function getFilter(): bool +``` + + +```php +public function getLocal(): bool +``` + + +```php +public function getPath(): string +``` + + +```php +public function getRealSourcePath( string $basePath = null ): string; +``` +Returns the complete location where the asset is located + + +```php +public function getRealTargetPath( string $basePath = null ): string; +``` +Returns the complete location where the asset must be written + + +```php +public function getRealTargetUri(): string; +``` +Returns the real target uri for the generated HTML + + +```php +public function getSourcePath(): string +``` + + +```php +public function getTargetPath(): string +``` + + +```php +public function getTargetUri(): string +``` + + +```php +public function getType(): string +``` + + +```php +public function getVersion(): string +``` + + +```php +public function isAutoVersion(): bool; +``` +Checks if resource is using auto version + + +```php +public function setAttributes( array $attributes ): AssetInterface; +``` +Sets extra HTML attributes + + +```php +public function setAutoVersion( bool $autoVersion ) +``` + + +```php +public function setFilter( bool $filter ): AssetInterface; +``` +Sets if the asset must be filtered or not + + +```php +public function setLocal( bool $local ): AssetInterface; +``` +Sets if the asset is local or external + + +```php +public function setPath( string $path ): AssetInterface; +``` +Sets the asset's path + + +```php +public function setSourcePath( string $sourcePath ): AssetInterface; +``` +Sets the asset's source path + + +```php +public function setTargetPath( string $targetPath ): AssetInterface; +``` +Sets the asset's target path + + +```php +public function setTargetUri( string $targetUri ): AssetInterface; +``` +Sets a target uri for the generated HTML + + +```php +public function setType( string $type ): AssetInterface; +``` +Sets the asset's type + + +```php +public function setVersion( string $version ) +``` + + + + +

        Class Phalcon\Assets\Asset\Css

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/assets/asset/css.zep) + +| Namespace | Phalcon\Assets\Asset | +| Uses | Phalcon\Assets\Asset | +| Extends | AssetBase | + +Represents CSS assets + + +## Methods +```php +public function __construct( string $path, bool $local = bool, bool $filter = bool, array $attributes = [], string $version = null, bool $autoVersion = bool ): void; +``` +Phalcon\Assets\Asset\Css constructor + + + + +

        Class Phalcon\Assets\Asset\Js

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/assets/asset/js.zep) + +| Namespace | Phalcon\Assets\Asset | +| Uses | Phalcon\Assets\Asset | +| Extends | AssetBase | + +Represents Javascript assets + + +## Methods +```php +public function __construct( string $path, bool $local = bool, bool $filter = bool, array $attributes = [], string $version = null, bool $autoVersion = bool ): void; +``` +Phalcon\Assets\Asset\Js constructor + + + + +

        Interface Phalcon\Assets\AssetInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/assets/assetinterface.zep) + +| Namespace | Phalcon\Assets | + +Interface for custom Phalcon\Assets reources + + +## Methods +```php +public function getAssetKey(): string; +``` +Gets the asset's key. + + +```php +public function getAttributes(): array | null; +``` +Gets extra HTML attributes. + + +```php +public function getFilter(): bool; +``` +Gets if the asset must be filtered or not. + + +```php +public function getType(): string; +``` +Gets the asset's type. + + +```php +public function setAttributes( array $attributes ): AssetInterface; +``` +Sets extra HTML attributes. + + +```php +public function setFilter( bool $filter ): AssetInterface; +``` +Sets if the asset must be filtered or not. + + +```php +public function setType( string $type ): AssetInterface; +``` +Sets the asset's type. + + + + +

        Class Phalcon\Assets\Collection

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/assets/collection.zep) + +| Namespace | Phalcon\Assets | +| Uses | Countable, Iterator, Phalcon\Assets\Asset, Phalcon\Assets\FilterInterface, Phalcon\Assets\Inline, Phalcon\Assets\Asset\Css, Phalcon\Assets\Asset\Js, Phalcon\Assets\Inline\Js, Phalcon\Assets\Inline\Css | +| Implements | Countable, Iterator | + +Represents a collection of assets + + +## Properties +```php +/** + * @var array + */ +protected assets; + +/** + * @var array + */ +protected attributes; + +/** + * Should version be determined from file modification time + * @var bool + */ +protected autoVersion = false; + +/** + * @var array + */ +protected codes; + +/** + * @var array + */ +protected filters; + +/** + * @var array + */ +protected includedAssets; + +/** + * @var bool + */ +protected join = true; + +/** + * @var bool + */ +protected local = true; + +/** + * @var string + */ +protected prefix; + +/** + * @var int + */ +protected position; + +/** + * @var string + */ +protected sourcePath; + +/** + * @var bool + */ +protected targetLocal = true; + +/** + * @var string + */ +protected targetPath; + +/** + * @var string + */ +protected targetUri; + +/** + * Version of resource + * @var string + */ +protected version; + +``` + +## Methods +```php +public function __construct(): void; +``` +Phalcon\Assets\Collection constructor + + +```php +public function add( AssetInterface $asset ): Collection; +``` +Adds a asset to the collection + + +```php +public function addCss( string $path, mixed $local = null, bool $filter = bool, mixed $attributes = null, string $version = null, bool $autoVersion = bool ): Collection; +``` +Adds a CSS asset to the collection + + +```php +public function addFilter( FilterInterface $filter ): Collection; +``` +Adds a filter to the collection + + +```php +public function addInline( Inline $code ): Collection; +``` +Adds an inline code to the collection + + +```php +public function addInlineCss( string $content, bool $filter = bool, mixed $attributes = null ): Collection; +``` +Adds an inline CSS to the collection + + +```php +public function addInlineJs( string $content, bool $filter = bool, mixed $attributes = null ): Collection; +``` +Adds an inline javascript to the collection + + +```php +public function addJs( string $path, mixed $local = null, bool $filter = bool, mixed $attributes = null, string $version = null, bool $autoVersion = bool ): Collection; +``` +Adds a javascript asset to the collection + +@param array attributes + + +```php +public function count(): int; +``` +Returns the number of elements in the form + + +```php +public function current(): Asset; +``` +Returns the current asset in the iterator + + +```php +public function getAssets(): array +``` + + +```php +public function getAttributes(): array +``` + + +```php +public function getCodes(): array +``` + + +```php +public function getFilters(): array +``` + + +```php +public function getJoin(): bool +``` + + +```php +public function getLocal(): bool +``` + + +```php +public function getPosition(): int +``` + + +```php +public function getPrefix(): string +``` + + +```php +public function getRealTargetPath( string $basePath ): string; +``` +Returns the complete location where the joined/filtered collection must +be written + + +```php +public function getSourcePath(): string +``` + + +```php +public function getTargetLocal(): bool +``` + + +```php +public function getTargetPath(): string +``` + + +```php +public function getTargetUri(): string +``` + + +```php +public function getVersion(): string +``` + + +```php +public function has( AssetInterface $asset ): bool; +``` +Checks this the asset is added to the collection. + +```php +use Phalcon\Assets\Asset; +use Phalcon\Assets\Collection; + +$collection = new Collection(); + +$asset = new Asset("js", "js/jquery.js"); + +$collection->add($asset); +$collection->has($asset); // true +``` + + +```php +public function isAutoVersion(): bool; +``` +Checks if collection is using auto version + + +```php +public function join( bool $join ): Collection; +``` +Sets if all filtered assets in the collection must be joined in a single +result file + + +```php +public function key(): int; +``` +Returns the current position/key in the iterator + + +```php +public function next(): void; +``` +Moves the internal iteration pointer to the next position + + +```php +public function rewind(): void; +``` +Rewinds the internal iterator + + +```php +public function setAttributes( array $attributes ): Collection; +``` +Sets extra HTML attributes + + +```php +public function setAutoVersion( bool $autoVersion ) +``` + + +```php +public function setFilters( array $filters ): Collection; +``` +Sets an array of filters in the collection + + +```php +public function setLocal( bool $local ): Collection; +``` +Sets if the collection uses local assets by default + + +```php +public function setPrefix( string $prefix ): Collection; +``` +Sets a common prefix for all the assets + + +```php +public function setSourcePath( string $sourcePath ): Collection; +``` +Sets a base source path for all the assets in this collection + + +```php +public function setTargetLocal( bool $targetLocal ): Collection; +``` +Sets the target local + + +```php +public function setTargetPath( string $targetPath ): Collection; +``` +Sets the target path of the file for the filtered/join output + + +```php +public function setTargetUri( string $targetUri ): Collection; +``` +Sets a target uri for the generated HTML + + +```php +public function setVersion( string $version ) +``` + + +```php +public function valid(): bool; +``` +Check if the current element in the iterator is valid + + +```php +final protected function addAsset( AssetInterface $asset ): bool; +``` +Adds a asset or inline-code to the collection + + + + +

        Class Phalcon\Assets\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/assets/exception.zep) + +| Namespace | Phalcon\Assets | +| Extends | \Phalcon\Exception | + +Exceptions thrown in Phalcon\Assets will use this class + + + +

        Interface Phalcon\Assets\FilterInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/assets/filterinterface.zep) + +| Namespace | Phalcon\Assets | + +Interface for custom Phalcon\Assets filters + + +## Methods +```php +public function filter( string $content ): string; +``` +Filters the content returning a string with the filtered content + + + + +

        Class Phalcon\Assets\Filters\Cssmin

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/assets/filters/cssmin.zep) + +| Namespace | Phalcon\Assets\Filters | +| Uses | Phalcon\Assets\FilterInterface | +| Implements | FilterInterface | + +Minify the css - removes comments removes newlines and line feeds keeping +removes last semicolon from last property + + +## Methods +```php +public function filter( string $content ): string; +``` +Filters the content using CSSMIN +NOTE: This functionality is not currently available + + + + +

        Class Phalcon\Assets\Filters\Jsmin

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/assets/filters/jsmin.zep) + +| Namespace | Phalcon\Assets\Filters | +| Uses | Phalcon\Assets\FilterInterface | +| Implements | FilterInterface | + +Deletes the characters which are insignificant to JavaScript. Comments will +be removed. Tabs will be replaced with spaces. Carriage returns will be +replaced with linefeeds. Most spaces and linefeeds will be removed. + + +## Methods +```php +public function filter( string $content ): string; +``` +Filters the content using JSMIN +NOTE: This functionality is not currently available + + + + +

        Class Phalcon\Assets\Filters\None

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/assets/filters/none.zep) + +| Namespace | Phalcon\Assets\Filters | +| Uses | Phalcon\Assets\FilterInterface | +| Implements | FilterInterface | + +Returns the content without make any modification to the original source + + +## Methods +```php +public function filter( string $content ): string; +``` +Returns the content as is + + + + +

        Class Phalcon\Assets\Inline

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/assets/inline.zep) + +| Namespace | Phalcon\Assets | +| Implements | AssetInterface | + +Represents an inline asset + +```php +$inline = new \Phalcon\Assets\Inline("js", "alert('hello world');"); +``` + + +## Properties +```php +/** + * @var array | null + */ +protected attributes; + +/** + * @var string + */ +protected content; + +/** + * @var bool + */ +protected filter; + +/** + * @var string + */ +protected type; + +``` + +## Methods +```php +public function __construct( string $type, string $content, bool $filter = bool, array $attributes = [] ): void; +``` +Phalcon\Assets\Inline constructor + + +```php +public function getAssetKey(): string; +``` +Gets the asset's key. + + +```php +public function getAttributes(): array | null +``` + + +```php +public function getContent(): string +``` + + +```php +public function getFilter(): bool +``` + + +```php +public function getType(): string +``` + + +```php +public function setAttributes( array $attributes ): AssetInterface; +``` +Sets extra HTML attributes + + +```php +public function setFilter( bool $filter ): AssetInterface; +``` +Sets if the asset must be filtered or not + + +```php +public function setType( string $type ): AssetInterface; +``` +Sets the inline's type + + + + +

        Class Phalcon\Assets\Inline\Css

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/assets/inline/css.zep) + +| Namespace | Phalcon\Assets\Inline | +| Uses | Phalcon\Assets\Inline | +| Extends | InlineBase | + +Represents an inlined CSS + + +## Methods +```php +public function __construct( string $content, bool $filter = bool, mixed $attributes = null ): void; +``` +Phalcon\Assets\Inline\Css constructor + + + + +

        Class Phalcon\Assets\Inline\Js

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/assets/inline/js.zep) + +| Namespace | Phalcon\Assets\Inline | +| Uses | Phalcon\Assets\Inline | +| Extends | InlineBase | + +Represents an inline JavaScript + + +## Methods +```php +public function __construct( string $content, bool $filter = bool, mixed $attributes = null ): void; +``` +Phalcon\Assets\Inline\Js constructor + + + + +

        Class Phalcon\Assets\Manager

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/assets/manager.zep) + +| Namespace | Phalcon\Assets | +| Uses | Phalcon\Tag, Phalcon\Assets\Asset, Phalcon\Assets\Collection, Phalcon\Assets\Exception, Phalcon\Assets\Asset\Js, Phalcon\Assets\Asset\Css, Phalcon\Assets\Inline\Css, Phalcon\Assets\Inline\Js, Phalcon\Di\DiInterface, Phalcon\Di\AbstractInjectionAware | +| Extends | AbstractInjectionAware | + +Phalcon\Assets\Manager + +Manages collections of CSS/Javascript assets + + +## Properties +```php +// +protected collections; + +/** + * Options configure + * @var array + */ +protected options; + +/** + * @var bool + */ +protected implicitOutput = true; + +``` + +## Methods +```php +public function __construct( array $options = [] ): void; +``` +Phalcon\Assets\Manager constructor + + +```php +public function addAsset( Asset $asset ): Manager; +``` +Adds a raw asset to the manager + +```php +$assets->addAsset( + new Phalcon\Assets\Asset("css", "css/style.css") +); +``` + + +```php +public function addAssetByType( string $type, Asset $asset ): Manager; +``` +Adds a asset by its type + +```php +$assets->addAssetByType( + "css", + new \Phalcon\Assets\Asset\Css("css/style.css") +); +``` + + +```php +public function addCss( string $path, mixed $local = bool, bool $filter = bool, mixed $attributes = null, string $version = null, bool $autoVersion = bool ): Manager; +``` + Adds a Css asset to the 'css' collection + + ```php + $assets->addCss("css/bootstrap.css"); + $assets->addCss("http://bootstrap.my-cdn.com/style.css", false); + ``` + + +```php +public function addInlineCode( Inline $code ): Manager; +``` +Adds a raw inline code to the manager + + +```php +public function addInlineCodeByType( string $type, Inline $code ): Manager; +``` +Adds an inline code by its type + + +```php +public function addInlineCss( string $content, mixed $filter = bool, mixed $attributes = null ): Manager; +``` +Adds an inline Css to the 'css' collection + + +```php +public function addInlineJs( string $content, mixed $filter = bool, mixed $attributes = null ): Manager; +``` +Adds an inline javascript to the 'js' collection + + +```php +public function addJs( string $path, mixed $local = bool, bool $filter = bool, mixed $attributes = null, string $version = null, bool $autoVersion = bool ): Manager; +``` +Adds a javascript asset to the 'js' collection + +```php +$assets->addJs("scripts/jquery.js"); +$assets->addJs("http://jquery.my-cdn.com/jquery.js", false); +``` + + +```php +public function collection( string $name ): Collection; +``` +Creates/Returns a collection of assets + + +```php +public function collectionAssetsByType( array $assets, string $type ): array; +``` +Creates/Returns a collection of assets by type + + +```php +public function exists( string $id ): bool; +``` +Returns true or false if collection exists. + +```php +if ($assets->exists("jsHeader")) { + // \Phalcon\Assets\Collection + $collection = $assets->get("jsHeader"); +} +``` + + +```php +public function get( string $id ): Collection; +``` +Returns a collection by its id. + +```php +$scripts = $assets->get("js"); +``` + + +```php +public function getCollections(): Collection[]; +``` +Returns existing collections in the manager + + +```php +public function getCss(): Collection; +``` +Returns the CSS collection of assets + + +```php +public function getJs(): Collection; +``` +Returns the CSS collection of assets + + +```php +public function getOptions(): array; +``` +Returns the manager options + + +```php +public function output( Collection $collection, mixed $callback, mixed $type ): string | null; +``` +Traverses a collection calling the callback to generate its HTML + +@param callback callback +@param string type + + +```php +public function outputCss( string $collectionName = null ): string; +``` +Prints the HTML for CSS assets + + +```php +public function outputInline( Collection $collection, mixed $type ): string; +``` +Traverses a collection and generate its HTML + +@param string type + + +```php +public function outputInlineCss( string $collectionName = null ): string; +``` +Prints the HTML for inline CSS + + +```php +public function outputInlineJs( string $collectionName = null ): string; +``` +Prints the HTML for inline JS + + +```php +public function outputJs( string $collectionName = null ): string; +``` +Prints the HTML for JS assets + + +```php +public function set( string $id, Collection $collection ): Manager; +``` +Sets a collection in the Assets Manager + +```php +$assets->set("js", $collection); +``` + + +```php +public function setOptions( array $options ): Manager; +``` +Sets the manager options + + +```php +public function useImplicitOutput( bool $implicitOutput ): Manager; +``` +Sets if the HTML generated must be directly printed or returned + + diff --git a/nikos/api/Phalcon_Cache.md b/nikos/api/Phalcon_Cache.md new file mode 100644 index 00000000000..5e381065bd5 --- /dev/null +++ b/nikos/api/Phalcon_Cache.md @@ -0,0 +1,361 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Cache' +--- + +* [Phalcon\Cache](#cache) +* [Phalcon\Cache\Adapter\AdapterInterface](#cache-adapter-adapterinterface) +* [Phalcon\Cache\Adapter\Apcu](#cache-adapter-apcu) +* [Phalcon\Cache\Adapter\Libmemcached](#cache-adapter-libmemcached) +* [Phalcon\Cache\Adapter\Memory](#cache-adapter-memory) +* [Phalcon\Cache\Adapter\Redis](#cache-adapter-redis) +* [Phalcon\Cache\Adapter\Stream](#cache-adapter-stream) +* [Phalcon\Cache\AdapterFactory](#cache-adapterfactory) +* [Phalcon\Cache\CacheFactory](#cache-cachefactory) +* [Phalcon\Cache\Exception\Exception](#cache-exception-exception) +* [Phalcon\Cache\Exception\InvalidArgumentException](#cache-exception-invalidargumentexception) + +

        Class Phalcon\Cache

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cache.zep) + +| Namespace | Phalcon | +| Uses | Phalcon\Cache\Adapter\AdapterInterface, Phalcon\Cache\Exception\Exception, Phalcon\Cache\Exception\InvalidArgumentException, Psr\SimpleCache\CacheInterface, Traversable | +| Implements | CacheInterface | + +This component offers caching capabilities for your application. +Phalcon\Cache implements PSR-16. + + +## Properties +```php +/** + * The adapter + * + * @var AdapterInterface + */ +protected adapter; + +``` + +## Methods +```php +public function __construct( AdapterInterface $adapter ): void; +``` +Constructor. + +@param AdapterInterface adapter The cache adapter + + +```php +public function clear(): bool; +``` +Wipes clean the entire cache's keys. + +@return bool True on success and false on failure. + + +```php +public function delete( mixed $key ): bool; +``` +Delete an item from the cache by its unique key. + +@param string $key The unique cache key of the item to delete. + +@return bool True if the item was successfully removed. False if there was an error. + +@throws Phalcon\Cache\Exception\InvalidArgumentException + MUST be thrown if the $key string is not a legal value. + + +```php +public function deleteMultiple( mixed $keys ): bool; +``` +Deletes multiple cache items in a single operation. + +@param iterable $keys A list of string-based keys to be deleted. + +@return bool True if the items were successfully removed. False if there was an error. + +@throws Phalcon\Cache\Exception\InvalidArgumentException + MUST be thrown if $keys is neither an array nor a Traversable, + or if any of the $keys are not a legal value. + + +```php +public function get( mixed $key, mixed $defaultValue = null ): mixed; +``` +Fetches a value from the cache. + +@param string $key The unique key of this item in the cache. +@param mixed $default Default value to return if the key does not exist. + +@return mixed The value of the item from the cache, or $default in case of cache miss. + +@throws Phalcon\Cache\Exception\InvalidArgumentException + MUST be thrown if the $key string is not a legal value. + + +```php +public function getAdapter(): AdapterInterface +``` + + +```php +public function getMultiple( mixed $keys, mixed $defaultValue = null ): mixed; +``` +Obtains multiple cache items by their unique keys. + +@param iterable $keys A list of keys that can obtained in a single operation. +@param mixed $default Default value to return for keys that do not exist. + +@return iterable A list of key => value pairs. Cache keys that do not exist or are stale will have $default as value. + +@throws Phalcon\Cache\Exception\InvalidArgumentException + MUST be thrown if $keys is neither an array nor a Traversable, + or if any of the $keys are not a legal value. + + +```php +public function has( mixed $key ): bool; +``` +Determines whether an item is present in the cache. + +@param string $key The cache item key. + +@return bool + +@throws Phalcon\Cache\Exception\InvalidArgumentException + MUST be thrown if the $key string is not a legal value. + + +```php +public function set( mixed $key, mixed $value, mixed $ttl = null ): bool; +``` +Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time. + +@param string $key The key of the item to store. +@param mixed $value The value of the item to store. Must be serializable. +@param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and + the driver supports TTL then the library may set a default value + for it or let the driver take care of that. + +@return bool True on success and false on failure. + +@throws Phalcon\Cache\Exception\InvalidArgumentException + MUST be thrown if the $key string is not a legal value. + + +```php +public function setMultiple( mixed $values, mixed $ttl = null ): bool; +``` +Persists a set of key => value pairs in the cache, with an optional TTL. + +@param iterable $values A list of key => value pairs for a multiple-set operation. +@param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and + the driver supports TTL then the library may set a default value + for it or let the driver take care of that. + +@return bool True on success and false on failure. + +@throws Phalcon\Cache\Exception\InvalidArgumentException + MUST be thrown if $values is neither an array nor a Traversable, + or if any of the $values are not a legal value. + + +```php +protected function checkKey( mixed $key ): void; +``` +Checks the key. If it contains invalid characters an exception is thrown + + +```php +protected function checkKeys( mixed $keys ): void; +``` +Checks the key. If it contains invalid characters an exception is thrown + + + + +

        Interface Phalcon\Cache\Adapter\AdapterInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cache/adapter/adapterinterface.zep) + +| Namespace | Phalcon\Cache\Adapter | +| Uses | Phalcon\Storage\Adapter\AdapterInterface | +| Extends | StorageAdapterInterface | + +Interface for Phalcon\Cache adapters + + + +

        Class Phalcon\Cache\Adapter\Apcu

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cache/adapter/apcu.zep) + +| Namespace | Phalcon\Cache\Adapter | +| Uses | Phalcon\Cache\Adapter\AdapterInterface, Phalcon\Storage\Adapter\Apcu | +| Extends | StorageApcu | +| Implements | CacheAdapterInterface | + +Apcu adapter + + + +

        Class Phalcon\Cache\Adapter\Libmemcached

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cache/adapter/libmemcached.zep) + +| Namespace | Phalcon\Cache\Adapter | +| Uses | Phalcon\Cache\Adapter\AdapterInterface, Phalcon\Storage\Adapter\Libmemcached | +| Extends | StorageLibmemcached | +| Implements | CacheAdapterInterface | + +Libmemcached adapter + + + +

        Class Phalcon\Cache\Adapter\Memory

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cache/adapter/memory.zep) + +| Namespace | Phalcon\Cache\Adapter | +| Uses | Phalcon\Cache\Adapter\AdapterInterface, Phalcon\Storage\Adapter\Memory | +| Extends | StorageMemory | +| Implements | CacheAdapterInterface | + +Memory adapter + + + +

        Class Phalcon\Cache\Adapter\Redis

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cache/adapter/redis.zep) + +| Namespace | Phalcon\Cache\Adapter | +| Uses | Phalcon\Cache\Adapter\AdapterInterface, Phalcon\Storage\Adapter\Redis | +| Extends | StorageRedis | +| Implements | CacheAdapterInterface | + +Redis adapter + + + +

        Class Phalcon\Cache\Adapter\Stream

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cache/adapter/stream.zep) + +| Namespace | Phalcon\Cache\Adapter | +| Uses | Phalcon\Cache\Adapter\AdapterInterface, Phalcon\Storage\Adapter\Stream | +| Extends | StorageStream | +| Implements | CacheAdapterInterface | + +Stream adapter + + + +

        Class Phalcon\Cache\AdapterFactory

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cache/adapterfactory.zep) + +| Namespace | Phalcon\Cache | +| Uses | Phalcon\Cache\Adapter\AbstractAdapter, Phalcon\Cache\Exception\Exception, Phalcon\Factory\AbstractFactory, Phalcon\Storage\SerializerFactory | +| Extends | AbstractFactory | + +Factory to create Cache adapters + + +## Properties +```php +/** + * @var SerializerFactory + */ +private serializerFactory; + +``` + +## Methods +```php +public function __construct( SerializerFactory $factory = null, array $services = [] ); +``` +AdapterFactory constructor. + + +```php +public function newInstance( string $name, array $options = [] ): AbstractAdapter; +``` +Create a new instance of the adapter + + +```php +protected function getAdapters(): array; +``` +Returns the available adapters + + + + +

        Class Phalcon\Cache\CacheFactory

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cache/cachefactory.zep) + +| Namespace | Phalcon\Cache | +| Uses | Phalcon\Cache\Adapter\AdapterInterface, Phalcon\Cache\AdapterFactory, Phalcon\Cache, Phalcon\Cache\CacheInterface, Phalcon\Cache\Exception\Exception, Phalcon\Config, Phalcon\Factory\AbstractFactory, Phalcon\Helper\Arr | + +Creates a new Cache class + + +## Properties +```php +/** + * @var AdapterFactory + */ +protected adapterFactory; + +``` + +## Methods +```php +public function __construct( AdapterFactory $factory ); +``` +Constructor + + +```php +public function load( mixed $config ): mixed; +``` +Factory to create an instace from a Config object + + +```php +public function newInstance( string $name, array $options = [] ): CacheInterface; +``` +Constructs a new Cache instance. + + + + +

        Class Phalcon\Cache\Exception\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cache/exception/exception.zep) + +| Namespace | Phalcon\Cache\Exception | +| Extends | \Phalcon\Exception | +| Implements | \Psr\SimpleCache\CacheException | + +Exceptions thrown in Phalcon\Cache will use this class + + + +

        Class Phalcon\Cache\Exception\InvalidArgumentException

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cache/exception/invalidargumentexception.zep) + +| Namespace | Phalcon\Cache\Exception | +| Extends | \Phalcon\Exception | +| Implements | \Psr\SimpleCache\InvalidArgumentException | + +Exceptions thrown in Phalcon\Cache will use this class + diff --git a/nikos/api/Phalcon_Cli.md b/nikos/api/Phalcon_Cli.md new file mode 100644 index 00000000000..7313b5dadee --- /dev/null +++ b/nikos/api/Phalcon_Cli.md @@ -0,0 +1,920 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Cli' +--- + +* [Phalcon\Cli\Console](#cli-console) +* [Phalcon\Cli\Console\Exception](#cli-console-exception) +* [Phalcon\Cli\Dispatcher](#cli-dispatcher) +* [Phalcon\Cli\Dispatcher\Exception](#cli-dispatcher-exception) +* [Phalcon\Cli\DispatcherInterface](#cli-dispatcherinterface) +* [Phalcon\Cli\Router](#cli-router) +* [Phalcon\Cli\Router\Exception](#cli-router-exception) +* [Phalcon\Cli\Router\Route](#cli-router-route) +* [Phalcon\Cli\Router\RouteInterface](#cli-router-routeinterface) +* [Phalcon\Cli\RouterInterface](#cli-routerinterface) +* [Phalcon\Cli\Task](#cli-task) +* [Phalcon\Cli\TaskInterface](#cli-taskinterface) + +

        Class Phalcon\Cli\Console

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cli/console.zep) + +| Namespace | Phalcon\Cli | +| Uses | Phalcon\Application\AbstractApplication, Phalcon\Cli\Router\Route, Phalcon\Cli\Console\Exception, Phalcon\Di\DiInterface, Phalcon\Events\ManagerInterface | +| Extends | AbstractApplication | + +This component allows to create CLI applications using Phalcon + + +## Properties +```php +/** + * @var array + */ +protected arguments; + +/** + * @var array + */ +protected options; + +``` + +## Methods +```php +public function handle( array $arguments = null ); +``` +Handle the whole command-line tasks + + +```php +public function setArgument( array $arguments = null, bool $str = bool, bool $shift = bool ): Console; +``` +Set an specific argument + + + + +

        Class Phalcon\Cli\Console\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cli/console/exception.zep) + +| Namespace | Phalcon\Cli\Console | +| Extends | \Phalcon\Application\Exception | + +Exceptions thrown in Phalcon\Cli\Console will use this class + + + +

        Class Phalcon\Cli\Dispatcher

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cli/dispatcher.zep) + +| Namespace | Phalcon\Cli | +| Uses | Phalcon\Cli\Dispatcher\Exception, Phalcon\Dispatcher\AbstractDispatcher, Phalcon\Events\ManagerInterface, Phalcon\Filter\FilterInterface | +| Extends | CliDispatcher | +| Implements | DispatcherInterface | + +Dispatching is the process of taking the command-line arguments, extracting +the module name, task name, action name, and optional parameters contained in +it, and then instantiating a task and calling an action on it. + +```php +use Phalcon\Di; +use Phalcon\Cli\Dispatcher; + +$di = new Di(); + +$dispatcher = new Dispatcher(); + +$dispatcher->setDi($di); + +$dispatcher->setTaskName("posts"); +$dispatcher->setActionName("index"); +$dispatcher->setParams([]); + +$handle = $dispatcher->dispatch(); +``` + + +## Properties +```php +/** + * @var string + */ +protected defaultHandler = main; + +/** + * @var string + */ +protected defaultAction = main; + +/** + * @var string + */ +protected handlerSuffix = Task; + +/** + * @var array + */ +protected options; + +``` + +## Methods +```php +public function callActionMethod( mixed $handler, string $actionMethod, array $params = [] ): mixed; +``` +Calls the action method. + + +```php +public function getActiveTask(): TaskInterface; +``` +Returns the active task in the dispatcher + + +```php +public function getLastTask(): TaskInterface; +``` +Returns the latest dispatched controller + + +```php +public function getOption( mixed $option, mixed $filters = null, mixed $defaultValue = null ): mixed; +``` +Gets an option by its name or numeric index + +@param mixed $option +@param string|array $filters +@param mixed $defaultValue + + +```php +public function getOptions(): array; +``` +Get dispatched options + + +```php +public function getTaskName(): string; +``` +Gets last dispatched task name + + +```php +public function getTaskSuffix(): string; +``` +Gets the default task suffix + + +```php +public function hasOption( mixed $option ): bool; +``` +Check if an option exists + + +```php +public function setDefaultTask( string $taskName ): void; +``` +Sets the default task name + + +```php +public function setOptions( array $options ): void; +``` +Set the options to be dispatched + + +```php +public function setTaskName( string $taskName ): void; +``` +Sets the task name to be dispatched + + +```php +public function setTaskSuffix( string $taskSuffix ): void; +``` +Sets the default task suffix + + +```php +protected function handleException( \Exception $exception ); +``` +Handles a user exception + + +```php +protected function throwDispatchException( string $message, int $exceptionCode = int ); +``` +Throws an internal exception + + + + +

        Class Phalcon\Cli\Dispatcher\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cli/dispatcher/exception.zep) + +| Namespace | Phalcon\Cli\Dispatcher | +| Extends | \Phalcon\Dispatcher\Exception | + +Exceptions thrown in Phalcon\Cli\Dispatcher will use this class + + + +

        Interface Phalcon\Cli\DispatcherInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cli/dispatcherinterface.zep) + +| Namespace | Phalcon\Cli | +| Uses | Phalcon\Dispatcher\DispatcherInterface | +| Extends | DispatcherInterfaceBase | + +Interface for Phalcon\Cli\Dispatcher + + +## Methods +```php +public function getActiveTask(): TaskInterface; +``` +Returns the active task in the dispatcher + + +```php +public function getLastTask(): TaskInterface; +``` +Returns the latest dispatched controller + + +```php +public function getOptions(): array; +``` +Get dispatched options + + +```php +public function getTaskName(): string; +``` +Gets last dispatched task name + + +```php +public function getTaskSuffix(): string; +``` +Gets default task suffix + + +```php +public function setDefaultTask( string $taskName ): void; +``` +Sets the default task name + + +```php +public function setOptions( array $options ): void; +``` +Set the options to be dispatched + + +```php +public function setTaskName( string $taskName ): void; +``` +Sets the task name to be dispatched + + +```php +public function setTaskSuffix( string $taskSuffix ): void; +``` +Sets the default task suffix + + + + +

        Class Phalcon\Cli\Router

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cli/router.zep) + +| Namespace | Phalcon\Cli | +| Uses | Phalcon\Di\DiInterface, Phalcon\Di\AbstractInjectionAware, Phalcon\Cli\Router\Route, Phalcon\Cli\Router\Exception | +| Extends | AbstractInjectionAware | + +Phalcon\Cli\Router is the standard framework router. Routing is the process +of taking a command-line arguments and decomposing it into parameters to +determine which module, task, and action of that task should receive the +request. + +```php +$router = new \Phalcon\Cli\Router(); + +$router->handle( + [ + "module" => "main", + "task" => "videos", + "action" => "process", + ] +); + +echo $router->getTaskName(); +``` + + +## Properties +```php +// +protected action; + +// +protected defaultAction; + +// +protected defaultModule; + +/** + * @var array + */ +protected defaultParams; + +// +protected defaultTask; + +// +protected matchedRoute; + +// +protected matches; + +// +protected module; + +/** + * @var array + */ +protected params; + +// +protected routes; + +// +protected task; + +// +protected wasMatched = false; + +``` + +## Methods +```php +public function __construct( bool $defaultRoutes = bool ): void; +``` +Phalcon\Cli\Router constructor + + +```php +public function add( string $pattern, mixed $paths = null ): RouteInterface; +``` +Adds a route to the router + +```php +$router->add("/about", "About::main"); +``` + +@param string|array paths + + +```php +public function getActionName(): string; +``` +Returns processed action name + + +```php +public function getMatchedRoute(): RouteInterface; +``` +Returns the route that matches the handled URI + + +```php +public function getMatches(): array; +``` +Returns the sub expressions in the regular expression matched + + +```php +public function getModuleName(): string; +``` +Returns processed module name + + +```php +public function getParams(): array; +``` +Returns processed extra params + + +```php +public function getRouteById( mixed $id ): RouteInterface | bool; +``` +Returns a route object by its id + +@param int id + + +```php +public function getRouteByName( string $name ): RouteInterface | bool; +``` +Returns a route object by its name + + +```php +public function getRoutes(): Route[]; +``` +Returns all the routes defined in the router + + +```php +public function getTaskName(): string; +``` +Returns processed task name + + +```php +public function handle( mixed $arguments = null ); +``` +Handles routing information received from command-line arguments + +@param array arguments + + +```php +public function setDefaultAction( string $actionName ); +``` +Sets the default action name + + +```php +public function setDefaultModule( string $moduleName ); +``` +Sets the name of the default module + + +```php +public function setDefaultTask( string $taskName ): void; +``` +Sets the default controller name + + +```php +public function setDefaults( array $defaults ): Router; +``` +Sets an array of default paths. If a route is missing a path the router +will use the defined here. This method must not be used to set a 404 +route + +```php +$router->setDefaults( + [ + "module" => "common", + "action" => "index", + ] +); +``` + + +```php +public function wasMatched(): bool; +``` +Checks if the router matches any of the defined routes + + + + +

        Class Phalcon\Cli\Router\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cli/router/exception.zep) + +| Namespace | Phalcon\Cli\Router | +| Extends | \Phalcon\Exception | + +Exceptions thrown in Phalcon\Cli\Router will use this class + + + +

        Class Phalcon\Cli\Router\Route

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cli/router/route.zep) + +| Namespace | Phalcon\Cli\Router | + +This class represents every route added to the router + + +## Constants +```php +const DEFAULT_DELIMITER = ; +``` + +## Properties +```php +// +protected beforeMatch; + +// +protected compiledPattern; + +// +protected converters; + +// +protected delimiter; + +// +protected static delimiterPath; + +// +protected description; + +// +protected id; + +// +protected name; + +// +protected paths; + +// +protected pattern; + +// +protected static uniqueId = 0; + +``` + +## Methods +```php +public function __construct( string $pattern, mixed $paths = null ): void; +``` +@param array|string paths + + +```php +public function beforeMatch( mixed $callback ): RouteInterface; +``` +Sets a callback that is called if the route is matched. +The developer can implement any arbitrary conditions here +If the callback returns false the route is treated as not matched + +@param callback callback + + +```php +public function compilePattern( string $pattern ): string; +``` +Replaces placeholders from pattern returning a valid PCRE regular +expression + + +```php +public function convert( string $name, mixed $converter ): RouteInterface; +``` +Adds a converter to perform an additional transformation for certain +parameter + +@param callable converter + + +```php +public function extractNamedParams( string $pattern ): array | bool; +``` +Extracts parameters from a string + + +```php +public function getBeforeMatch(): mixed; +``` +Returns the 'before match' callback if any + + +```php +public function getCompiledPattern(): string; +``` +Returns the route's compiled pattern + + +```php +public function getConverters(): array; +``` +Returns the router converter + + +```php +public function getDescription(): string; +``` +Returns the route's description + + +```php +public function getName(): string; +``` +Returns the route's name + + +```php +public function getPaths(): array; +``` +Returns the paths + + +```php +public function getPattern(): string; +``` +Returns the route's pattern + + +```php +public function getReversedPaths(): array; +``` +Returns the paths using positions as keys and names as values + + +```php +public function getRouteId(): string; +``` +Returns the route's id + + +```php +public function reConfigure( string $pattern, mixed $paths = null ): void; +``` +Reconfigure the route adding a new pattern and a set of paths + +@param array|string paths + + +```php +public function setDescription( string $description ): RouteInterface; +``` +Sets the route's description + + +```php +public function setName( string $name ): RouteInterface; +``` +Sets the route's name + +```php +$router->add( + "/about", + [ + "controller" => "about", + ] +)->setName("about"); +``` + + + + +

        Interface Phalcon\Cli\Router\RouteInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cli/router/routeinterface.zep) + +| Namespace | Phalcon\Cli\Router | + +Interface for Phalcon\Cli\Router\Route + + +## Methods +```php +public function compilePattern( string $pattern ): string; +``` +Replaces placeholders from pattern returning a valid PCRE regular +expression + + +```php +public function getCompiledPattern(): string; +``` +Returns the route's pattern + + +```php +public function getDescription(): string; +``` +Returns the route's description + + +```php +public function getName(): string; +``` +Returns the route's name + + +```php +public function getPaths(): array; +``` +Returns the paths + + +```php +public function getPattern(): string; +``` +Returns the route's pattern + + +```php +public function getReversedPaths(): array; +``` +Returns the paths using positions as keys and names as values + + +```php +public function getRouteId(): string; +``` +Returns the route's id + + +```php +public function reConfigure( string $pattern, mixed $paths = null ): void; +``` +Reconfigure the route adding a new pattern and a set of paths + + +```php +public function setDescription( string $description ): RouteInterface; +``` +Sets the route's description + + +```php +public function setName( string $name ): RouteInterface; +``` +Sets the route's name + + + + +

        Interface Phalcon\Cli\RouterInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cli/routerinterface.zep) + +| Namespace | Phalcon\Cli | +| Uses | Phalcon\Cli\Router\RouteInterface | + +Interface for Phalcon\Cli\Router + + +## Methods +```php +public function add( string $pattern, mixed $paths = null ): RouteInterface; +``` +Adds a route to the router on any HTTP method + + +```php +public function getActionName(): string; +``` +Returns processed action name + + +```php +public function getMatchedRoute(): RouteInterface; +``` +Returns the route that matches the handled URI + + +```php +public function getMatches(): array; +``` +Return the sub expressions in the regular expression matched + + +```php +public function getModuleName(): string; +``` +Returns processed module name + + +```php +public function getParams(): array; +``` +Returns processed extra params + + +```php +public function getRouteById( mixed $id ): RouteInterface; +``` +Returns a route object by its id + + +```php +public function getRouteByName( string $name ): RouteInterface; +``` +Returns a route object by its name + + +```php +public function getRoutes(): RouteInterface[]; +``` +Return all the routes defined in the router + + +```php +public function getTaskName(): string; +``` +Returns processed task name + + +```php +public function handle( mixed $arguments = null ); +``` +Handles routing information received from the rewrite engine + +@param array arguments + + +```php +public function setDefaultAction( string $actionName ): void; +``` +Sets the default action name + + +```php +public function setDefaultModule( string $moduleName ): void; +``` +Sets the name of the default module + + +```php +public function setDefaultTask( string $taskName ): void; +``` +Sets the default task name + + +```php +public function setDefaults( array $defaults ): void; +``` +Sets an array of default paths + + +```php +public function wasMatched(): bool; +``` +Check if the router matches any of the defined routes + + + + +

        Class Phalcon\Cli\Task

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cli/task.zep) + +| Namespace | Phalcon\Cli | +| Uses | Phalcon\Di\Injectable | +| Extends | Injectable | +| Implements | TaskInterface | + +Every command-line task should extend this class that encapsulates all the +task functionality + +A task can be used to run "tasks" such as migrations, cronjobs, unit-tests, +or anything that you want. The Task class should at least have a "mainAction" +method. + +```php +class HelloTask extends \Phalcon\Cli\Task +{ + // This action will be executed by default + public function mainAction() + { + + } + + public function findAction() + { + + } +} +``` + + +## Methods +```php +final public function __construct(): void; +``` +Phalcon\Cli\Task constructor + + + + +

        Interface Phalcon\Cli\TaskInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cli/taskinterface.zep) + +| Namespace | Phalcon\Cli | + +Interface for task handlers + diff --git a/nikos/api/Phalcon_Collection.md b/nikos/api/Phalcon_Collection.md new file mode 100644 index 00000000000..9075b104f50 --- /dev/null +++ b/nikos/api/Phalcon_Collection.md @@ -0,0 +1,238 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Collection' +--- + +* [Phalcon\Collection](#collection) +* [Phalcon\Collection\Exception](#collection-exception) +* [Phalcon\Collection\ReadOnly](#collection-readonly) + +

        Class Phalcon\Collection

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/collection.zep) + +| Namespace | Phalcon | +| Uses | ArrayAccess, ArrayIterator, Countable, IteratorAggregate, JsonSerializable, Serializable, Traversable | +| Implements | ArrayAccess, Countable, IteratorAggregate, JsonSerializable, Serializable | + +`Phalcon\Collection` is a supercharged object oriented array. It implements [ArrayAccess](https://www.php.net/manual/en/class.arrayaccess.php), [Countable](https://www.php.net/manual/en/class.countable.php), [IteratorAggregate](https://www.php.net/manual/en/class.iteratoraggregate.php), [JsonSerializable](https://www.php.net/manual/en/class.jsonserializable.php), [Serializable](https://www.php.net/manual/en/class.serializable.php) + +It can be used in any part of the application that needs collection of data +Such implementations are for instance accessing globals `$_GET`, `$_POST` +etc. + + +## Properties +```php +/** + * @var array + */ +protected data; + +/** + * @var bool + */ +protected insensitive = true; + +/** + * @var array + */ +protected lowerKeys; + +``` + +## Methods +```php +public function __construct( array $data = [], bool $insensitive = bool ); +``` +Collection constructor. + + +```php +public function __get( string $element ): mixed; +``` +Magic getter to get an element from the collection + + +```php +public function __isset( string $element ): bool; +``` +Magic isset to check whether an element exists or not + + +```php +public function __set( string $element, mixed $value ): void; +``` +Magic setter to assign values to an element + + +```php +public function __unset( string $element ): void; +``` +Magic unset to remove an element from the collection + + +```php +public function clear(): void; +``` +Clears the internal collection + + +```php +public function count(): int; +``` +Count elements of an object. +See [count](https://php.net/manual/en/countable.count.php) + + +```php +public function get( string $element, mixed $defaultValue = null ): mixed; +``` +Get the element from the collection + + +```php +public function getIterator(): Traversable; +``` +Returns the iterator of the class + + +```php +public function has( string $element ): bool; +``` +Get the element from the collection + + +```php +public function init( array $data = [] ): void; +``` +Initialize internal array + + +```php +public function jsonSerialize(): array; +``` +Specify data which should be serialized to JSON +See [jsonSerialize](https://php.net/manual/en/jsonserializable.jsonserialize.php) + + +```php +public function offsetExists( mixed $element ): bool; +``` +Whether a offset exists +See [offsetExists](https://php.net/manual/en/arrayaccess.offsetexists.php) + + +```php +public function offsetGet( mixed $element ); +``` +Offset to retrieve +See [offsetGet](https://php.net/manual/en/arrayaccess.offsetget.php) + + +```php +public function offsetSet( mixed $element, mixed $value ): void; +``` +Offset to set +See [offsetSet](https://php.net/manual/en/arrayaccess.offsetset.php) + + +```php +public function offsetUnset( mixed $element ): void; +``` +Offset to unset +See [offsetUnset](https://php.net/manual/en/arrayaccess.offsetunset.php) + + +```php +public function remove( string $element ): void; +``` +Delete the element from the collection + + +```php +public function serialize(): string; +``` +String representation of object +See [serialize](https://php.net/manual/en/serializable.serialize.php) + + +```php +public function set( string $element, mixed $value ): void; +``` +Set an element in the collection + + +```php +public function toArray(): array; +``` +Returns the object in an array format + + +```php +public function toJson( int $options = int ): string; +``` +Returns the object in a JSON format + +The default string uses the following options for json_encode + +`JSON_HEX_TAG`, `JSON_HEX_APOS`, `JSON_HEX_AMP`, `JSON_HEX_QUOT`, +`JSON_UNESCAPED_SLASHES` + +See [rfc4627](https://www.ietf.org/rfc/rfc4627.txt) + + +```php +public function unserialize( mixed $serialized ): void; +``` +Constructs the object +See [unserialize](https://php.net/manual/en/serializable.unserialize.php) + + +```php +protected function setData( string $element, mixed $value ): void; +``` +Internal method to set data + + + + +

        Class Phalcon\Collection\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/collection/exception.zep) + +| Namespace | Phalcon\Collection | +| Uses | Throwable | +| Extends | \Phalcon\Exception | +| Implements | Throwable | + +Exceptions for the Collection object + + + +

        Class Phalcon\Collection\ReadOnly

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/collection/readonly.zep) + +| Namespace | Phalcon\Collection | +| Uses | Phalcon\Collection, Phalcon\Collection\Exception | +| Extends | Collection | + +Phalcon\Collection\ReadOnly is a read only Collection object + + +## Methods +```php +public function remove( string $element ): void; +``` +Delete the element from the collection + + +```php +public function set( string $element, mixed $value ): void; +``` +Set an element in the collection + + diff --git a/nikos/api/Phalcon_Config.md b/nikos/api/Phalcon_Config.md new file mode 100644 index 00000000000..ce767e94cb9 --- /dev/null +++ b/nikos/api/Phalcon_Config.md @@ -0,0 +1,474 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Config' +--- + +* [Phalcon\Config](#config) +* [Phalcon\Config\Adapter\Grouped](#config-adapter-grouped) +* [Phalcon\Config\Adapter\Ini](#config-adapter-ini) +* [Phalcon\Config\Adapter\Json](#config-adapter-json) +* [Phalcon\Config\Adapter\Php](#config-adapter-php) +* [Phalcon\Config\Adapter\Yaml](#config-adapter-yaml) +* [Phalcon\Config\ConfigFactory](#config-configfactory) +* [Phalcon\Config\Exception](#config-exception) + +

        Class Phalcon\Config

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/config.zep) + +| Namespace | Phalcon | +| Uses | Phalcon\Collection, Phalcon\Config\Exception | +| Extends | Collection | + +`Phalcon\Config` is designed to simplify the access to, and the use of, +configuration data within applications. It provides a nested object property +based user interface for accessing this configuration data within application +code. + +```php +$config = new \Phalcon\Config( + [ + "database" => [ + "adapter" => "Mysql", + "host" => "localhost", + "username" => "scott", + "password" => "cheetah", + "dbname" => "test_db", + ], + "phalcon" => [ + "controllersDir" => "../app/controllers/", + "modelsDir" => "../app/models/", + "viewsDir" => "../app/views/", + ], + ] +); +``` + + +## Constants +```php +const DEFAULT_PATH_DELIMITER = .; +``` + +## Properties +```php +/** + * @var string + */ +protected pathDelimiter; + +``` + +## Methods +```php +public function getPathDelimiter(): string; +``` +Gets the default path delimiter + +@return string + + +```php +public function merge( mixed $toMerge ): Config; +``` +Merges a configuration into the current one + +```php +$appConfig = new \Phalcon\Config( + [ + "database" => [ + "host" => "localhost", + ], + ] +); + +$globalConfig->merge($appConfig); +``` + + +```php +public function path( string $path, mixed $defaultValue = null, mixed $delimiter = null ); +``` +Returns a value from current config using a dot separated path. + +```php +echo $config->path("unknown.path", "default", "."); +``` + + +```php +public function setPathDelimiter( string $delimiter = null ): Config; +``` +Sets the default path delimiter + + +```php +public function toArray(): array; +``` +Converts recursively the object to an array + +```php +print_r( + $config->toArray() +); +``` + + +```php +final protected function internalMerge( array $source, array $target ): array; +``` +Performs a merge recursively + + +```php +protected function setData( mixed $element, mixed $value ): void; +``` +Sets the collection data + + + + +

        Class Phalcon\Config\Adapter\Grouped

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/config/adapter/grouped.zep) + +| Namespace | Phalcon\Config\Adapter | +| Uses | Phalcon\Config, Phalcon\Config\Exception, Phalcon\Factory\Exception, Phalcon\Config\ConfigFactory | +| Extends | Config | + +Reads multiple files (or arrays) and merges them all together. + +See `Phalcon\Config\Factory::load` To load Config Adapter class using 'adapter' option. + +```php +use Phalcon\Config\Adapter\Grouped; + +$config = new Grouped( + [ + "path/to/config.php", + "path/to/config.dist.php", + ] +); +``` + +```php +use Phalcon\Config\Adapter\Grouped; + +$config = new Grouped( + [ + "path/to/config.json", + "path/to/config.dist.json", + ], + "json" +); +``` + +```php +use Phalcon\Config\Adapter\Grouped; + +$config = new Grouped( + [ + [ + "filePath" => "path/to/config.php", + "adapter" => "php", + ], + [ + "filePath" => "path/to/config.json", + "adapter" => "json", + ], + [ + "adapter" => "array", + "config" => [ + "property" => "value", + ], + ], + ], +); +``` + + +## Methods +```php +public function __construct( array $arrayConfig, string $defaultAdapter = string ); +``` +Phalcon\Config\Adapter\Grouped constructor + + + + +

        Class Phalcon\Config\Adapter\Ini

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/config/adapter/ini.zep) + +| Namespace | Phalcon\Config\Adapter | +| Uses | Phalcon\Config, Phalcon\Config\Exception | +| Extends | Config | + +Reads ini files and converts them to Phalcon\Config objects. + +Given the next configuration file: + +```ini +[database] +adapter = Mysql +host = localhost +username = scott +password = cheetah +dbname = test_db + +[phalcon] +controllersDir = "../app/controllers/" +modelsDir = "../app/models/" +viewsDir = "../app/views/" +``` + +You can read it as follows: + +```php +use Phalcon\Config\Adapter\Ini; + +$config = new Ini("path/config.ini"); + +echo $config->phalcon->controllersDir; +echo $config->database->username; +``` + +PHP constants may also be parsed in the ini file, so if you define a constant +as an ini value before calling the constructor, the constant's value will be +integrated into the results. To use it this way you must specify the optional +second parameter as `INI_SCANNER_NORMAL` when calling the constructor: + +```php +$config = new \Phalcon\Config\Adapter\Ini( + "path/config-with-constants.ini", + INI_SCANNER_NORMAL +); +``` + + +## Methods +```php +public function __construct( string $filePath, mixed $mode = null ): void; +``` +Ini constructor. + + +```php +protected function cast( mixed $ini ): bool | null | double | int | string; +``` +We have to cast values manually because parse_ini_file() has a poor +implementation. + + +```php +protected function parseIniString( string $path, mixed $value ): array; +``` +Build multidimensional array from string + + + + +

        Class Phalcon\Config\Adapter\Json

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/config/adapter/json.zep) + +| Namespace | Phalcon\Config\Adapter | +| Uses | Phalcon\Config | +| Extends | Config | + +Reads JSON files and converts them to Phalcon\Config objects. + +Given the following configuration file: + +```json +{"phalcon":{"baseuri":"\/phalcon\/"},"models":{"metadata":"memory"}} +``` + +You can read it as follows: + +```php +use Phalcon\Config\Adapter\Json; + +$config = new Json("path/config.json"); + +echo $config->phalcon->baseuri; +echo $config->models->metadata; +``` + + +## Methods +```php +public function __construct( string $filePath ): void; +``` +Phalcon\Config\Adapter\Json constructor + + + + +

        Class Phalcon\Config\Adapter\Php

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/config/adapter/php.zep) + +| Namespace | Phalcon\Config\Adapter | +| Uses | Phalcon\Config | +| Extends | Config | + +Reads php files and converts them to Phalcon\Config objects. + +Given the next configuration file: + +```php + [ + "adapter" => "Mysql", + "host" => "localhost", + "username" => "scott", + "password" => "cheetah", + "dbname" => "test_db", + ], + "phalcon" => [ + "controllersDir" => "../app/controllers/", + "modelsDir" => "../app/models/", + "viewsDir" => "../app/views/", + ], +]; +``` + +You can read it as follows: + +```php +use Phalcon\Config\Adapter\Php; + +$config = new Php("path/config.php"); + +echo $config->phalcon->controllersDir; +echo $config->database->username; +``` + + +## Methods +```php +public function __construct( string $filePath ): void; +``` +Phalcon\Config\Adapter\Php constructor + + + + +

        Class Phalcon\Config\Adapter\Yaml

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/config/adapter/yaml.zep) + +| Namespace | Phalcon\Config\Adapter | +| Uses | Phalcon\Config, Phalcon\Config\Exception | +| Extends | Config | + +Reads YAML files and converts them to Phalcon\Config objects. + +Given the following configuration file: + +```yaml +phalcon: + baseuri: /phalcon/ + controllersDir: !approot /app/controllers/ +models: + metadata: memory +``` + +You can read it as follows: + +```php +define( + "APPROOT", + dirname(__DIR__) +); + +use Phalcon\Config\Adapter\Yaml; + +$config = new Yaml( + "path/config.yaml", + [ + "!approot" => function($value) { + return APPROOT . $value; + }, + ] +); + +echo $config->phalcon->controllersDir; +echo $config->phalcon->baseuri; +echo $config->models->metadata; +``` + + +## Methods +```php +public function __construct( string $filePath, array $callbacks = null ): void; +``` +Phalcon\Config\Adapter\Yaml constructor + + + + +

        Class Phalcon\Config\ConfigFactory

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/config/configfactory.zep) + +| Namespace | Phalcon\Config | +| Uses | Phalcon\Config, Phalcon\Config\Adapter\Grouped, Phalcon\Config\Adapter\Ini, Phalcon\Config\Adapter\Json, Phalcon\Config\Adapter\Php, Phalcon\Config\Adapter\Yaml, Phalcon\Config\Exception, Phalcon\Factory\AbstractFactory, Phalcon\Factory\Exception, Phalcon\Helper\Arr | +| Extends | AbstractFactory | + +Loads Config Adapter class using 'adapter' option, if no extension is +provided it will be added to filePath + +```php +use Phalcon\Config\ConfigFactory; + +$options = [ + "filePath" => "path/config", + "adapter" => "php", +]; + +$config = (new ConfigFactory())->load($options); +``` + + +## Methods +```php +public function __construct( array $services = [] ); +``` +ConfigFactory constructor. + + +```php +public function load( mixed $config ): object; +``` +Load a config to create a new instance + + +```php +public function newInstance( string $name, string $fileName, mixed $params = null ): object; +``` +Returns a new Config instance + + +```php +protected function getAdapters(): array; +``` +Returns the adapters for the factory + + + + +

        Class Phalcon\Config\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/config/exception.zep) + +| Namespace | Phalcon\Config | +| Extends | \Phalcon\Exception | + +Exceptions thrown in Phalcon\Config will use this class + diff --git a/nikos/api/Phalcon_Container.md b/nikos/api/Phalcon_Container.md new file mode 100644 index 00000000000..9dd6851475a --- /dev/null +++ b/nikos/api/Phalcon_Container.md @@ -0,0 +1,48 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Container' +--- + +* [Phalcon\Container](#container) + +

        Class Phalcon\Container

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/container.zep) + +| Namespace | Phalcon | +| Uses | Psr\Container\ContainerInterface, Phalcon\Di\DiInterface | +| Implements | ContainerInterface | + +PSR-11 Wrapper for `Phalcon\Di` + + +## Properties +```php +/** + * @var + */ +protected container; + +``` + +## Methods +```php +public function __construct( DiInterface $container ): void; +``` +Phalcon\Container constructor + + +```php +public function get( mixed $name ): mixed; +``` +Return the service + + +```php +public function has( mixed $name ): bool; +``` +Whether a service exists or not in the container + + diff --git a/nikos/api/Phalcon_Crypt.md b/nikos/api/Phalcon_Crypt.md new file mode 100644 index 00000000000..f9093d68881 --- /dev/null +++ b/nikos/api/Phalcon_Crypt.md @@ -0,0 +1,434 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Crypt' +--- + +* [Phalcon\Crypt](#crypt) +* [Phalcon\Crypt\CryptInterface](#crypt-cryptinterface) +* [Phalcon\Crypt\Exception](#crypt-exception) +* [Phalcon\Crypt\Mismatch](#crypt-mismatch) + +

        Class Phalcon\Crypt

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/crypt.zep) + +| Namespace | Phalcon | +| Uses | Phalcon\Crypt\CryptInterface, Phalcon\Crypt\Exception, Phalcon\Crypt\Mismatch | +| Implements | CryptInterface | + +Provides encryption capabilities to Phalcon applications. + +```php +use Phalcon\Crypt; + +$crypt = new Crypt(); + +$crypt->setCipher('aes-256-ctr'); + +$key = "T4\xb1\x8d\xa9\x98\x05\\\x8c\xbe\x1d\x07&[\x99\x18\xa4~Lc1\xbeW\xb3"; +$text = "The message to be encrypted"; + +$encrypted = $crypt->encrypt($text, $key); + +echo $crypt->decrypt($encrypted, $key); +``` + + +## Constants +```php +const PADDING_ANSI_X_923 = 1; +const PADDING_DEFAULT = 0; +const PADDING_ISO_10126 = 3; +const PADDING_ISO_IEC_7816_4 = 4; +const PADDING_PKCS7 = 2; +const PADDING_SPACE = 6; +const PADDING_ZERO = 5; +``` + +## Properties +```php +/** + * @var string + */ +protected authTag; + +/** + * @var string + */ +protected authData = ; + +/** + * @var int + */ +protected authTagLength = 16; + +/** + * @var string + */ +protected key; + +/** + * @var int + */ +protected padding = 0; + +/** + * @var string + */ +protected cipher = aes-256-cfb; + +/** + * Available cipher methods. + * @var array + */ +protected availableCiphers; + +/** + * The cipher iv length. + * @var int + */ +protected ivLength = 16; + +/** + * The name of hashing algorithm. + * @var string + */ +protected hashAlgo = sha256; + +/** + * Whether calculating message digest enabled or not. + * + * @var bool + */ +protected useSigning = true; + +``` + +## Methods +```php +public function __construct( string $cipher = string, bool $useSigning = bool ): void; +``` +Phalcon\Crypt constructor. + + +```php +public function decrypt( string $text, string $key = null ): string; +``` +Decrypts an encrypted text. + +```php +$encrypted = $crypt->decrypt( + $encrypted, + "T4\xb1\x8d\xa9\x98\x05\\\x8c\xbe\x1d\x07&[\x99\x18\xa4~Lc1\xbeW\xb3" +); +``` + + +```php +public function decryptBase64( string $text, mixed $key = null, bool $safe = bool ): string; +``` +Decrypt a text that is coded as a base64 string. + +@throws \Phalcon\Crypt\Mismatch + + +```php +public function encrypt( string $text, string $key = null ): string; +``` +Encrypts a text. + +```php +$encrypted = $crypt->encrypt( + "Top secret", + "T4\xb1\x8d\xa9\x98\x05\\\x8c\xbe\x1d\x07&[\x99\x18\xa4~Lc1\xbeW\xb3" +); +``` + + +```php +public function encryptBase64( string $text, mixed $key = null, bool $safe = bool ): string; +``` +Encrypts a text returning the result as a base64 string. + + +```php +public function getAuthData(): string +``` + + +```php +public function getAuthTag(): string +``` + + +```php +public function getAuthTagLength(): int +``` + + +```php +public function getAvailableCiphers(): array; +``` +Returns a list of available ciphers. + + +```php +public function getAvailableHashAlgos(): array; +``` +Return a list of registered hashing algorithms suitable for hash_hmac. + + +```php +public function getCipher(): string; +``` +Returns the current cipher + + +```php +public function getHashAlgo(): string; +``` +Get the name of hashing algorithm. + + +```php +public function getKey(): string; +``` +Returns the encryption key + + +```php +public function setAuthData( string $data ): CryptInterface; +``` +// + +```php +public function setAuthTag( string $tag ): CryptInterface; +``` +// + +```php +public function setAuthTagLength( int $length ): CryptInterface; +``` +// + +```php +public function setCipher( string $cipher ): CryptInterface; +``` +Sets the cipher algorithm for data encryption and decryption. + +The `aes-256-gcm' is the preferable cipher, but it is not usable +until the openssl library is upgraded, which is available in PHP 7.1. + +The `aes-256-ctr' is arguably the best choice for cipher +algorithm for current openssl library version. + + +```php +public function setHashAlgo( string $hashAlgo ): CryptInterface; +``` +Set the name of hashing algorithm. + +@throws \Phalcon\Crypt\Exception + + +```php +public function setKey( string $key ): CryptInterface; +``` +Sets the encryption key. + +The `$key' should have been previously generated in a cryptographically +safe way. + +Bad key: +"le password" + +Better (but still unsafe): +"#1dj8$=dp?.ak//j1V$~%*0X" + +Good key: +"T4\xb1\x8d\xa9\x98\x05\\\x8c\xbe\x1d\x07&[\x99\x18\xa4~Lc1\xbeW\xb3" + + +```php +public function setPadding( int $scheme ): CryptInterface; +``` +Changes the padding scheme used. + + +```php +public function useSigning( bool $useSigning ): CryptInterface; +``` +Sets if the calculating message digest must used. + + +```php +protected function assertCipherIsAvailable( string $cipher ): void; +``` +Assert the cipher is available. + + +```php +protected function assertHashAlgorithmAvailable( string $hashAlgo ): void; +``` +Assert the hash algorithm is available. + + +```php +protected function cryptPadText( string $text, string $mode, int $blockSize, int $paddingType ): string; +``` +Pads texts before encryption. See [cryptopad](http://www.di-mgt.com.au/cryptopad.html) + + +```php +protected function cryptUnpadText( string $text, string $mode, int $blockSize, int $paddingType ); +``` +Removes a padding from a text. + +If the function detects that the text was not padded, it will return it +unmodified. + + +```php +protected function getIvLength( string $cipher ): int; +``` +Initialize available cipher algorithms. + + +```php +protected function initializeAvailableCiphers(): void; +``` +Initialize available cipher algorithms. + + + + +

        Interface Phalcon\Crypt\CryptInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/crypt/cryptinterface.zep) + +| Namespace | Phalcon\Crypt | + +Interface for Phalcon\Crypt + + +## Methods +```php +public function decrypt( string $text, string $key = null ): string; +``` +Decrypts a text + + +```php +public function decryptBase64( string $text, mixed $key = null ): string; +``` +Decrypt a text that is coded as a base64 string + + +```php +public function encrypt( string $text, string $key = null ): string; +``` +Encrypts a text + + +```php +public function encryptBase64( string $text, mixed $key = null ): string; +``` +Encrypts a text returning the result as a base64 string + + +```php +public function getAuthData(): string; +``` +Returns authentication data + + +```php +public function getAuthTag(): string; +``` +Returns the authentication tag + + +```php +public function getAuthTagLength(): int; +``` +Returns the authentication tag length + + +```php +public function getAvailableCiphers(): array; +``` +Returns a list of available cyphers + + +```php +public function getCipher(): string; +``` +Returns the current cipher + + +```php +public function getKey(): string; +``` +Returns the encryption key + + +```php +public function setAuthData( string $data ): CryptInterface; +``` +Sets authentication data + + +```php +public function setAuthTag( string $tag ): CryptInterface; +``` +Sets the authentication tag + + +```php +public function setAuthTagLength( int $length ): CryptInterface; +``` +Sets the authentication tag length + + +```php +public function setCipher( string $cipher ): CryptInterface; +``` +Sets the cipher algorithm + + +```php +public function setKey( string $key ): CryptInterface; +``` +Sets the encryption key + + +```php +public function setPadding( int $scheme ): CryptInterface; +``` +Changes the padding scheme used. + + + + +

        Class Phalcon\Crypt\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/crypt/exception.zep) + +| Namespace | Phalcon\Crypt | +| Extends | \Phalcon\Exception | + +Exceptions thrown in Phalcon\Crypt use this class + + + +

        Class Phalcon\Crypt\Mismatch

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/crypt/mismatch.zep) + +| Namespace | Phalcon\Crypt | +| Extends | Exception | + +Exceptions thrown in Phalcon\Crypt will use this class. + diff --git a/nikos/api/Phalcon_Db.md b/nikos/api/Phalcon_Db.md new file mode 100644 index 00000000000..4e2730f6193 --- /dev/null +++ b/nikos/api/Phalcon_Db.md @@ -0,0 +1,4292 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Db' +--- + +* [Phalcon\Db\AbstractDb](#db-abstractdb) +* [Phalcon\Db\Adapter\AbstractAdapter](#db-adapter-abstractadapter) +* [Phalcon\Db\Adapter\AdapterInterface](#db-adapter-adapterinterface) +* [Phalcon\Db\Adapter\Pdo\AbstractPdo](#db-adapter-pdo-abstractpdo) +* [Phalcon\Db\Adapter\Pdo\Mysql](#db-adapter-pdo-mysql) +* [Phalcon\Db\Adapter\Pdo\Postgresql](#db-adapter-pdo-postgresql) +* [Phalcon\Db\Adapter\Pdo\Sqlite](#db-adapter-pdo-sqlite) +* [Phalcon\Db\Adapter\PdoFactory](#db-adapter-pdofactory) +* [Phalcon\Db\Column](#db-column) +* [Phalcon\Db\ColumnInterface](#db-columninterface) +* [Phalcon\Db\Dialect](#db-dialect) +* [Phalcon\Db\Dialect\Mysql](#db-dialect-mysql) +* [Phalcon\Db\Dialect\Postgresql](#db-dialect-postgresql) +* [Phalcon\Db\Dialect\Sqlite](#db-dialect-sqlite) +* [Phalcon\Db\DialectInterface](#db-dialectinterface) +* [Phalcon\Db\Enum](#db-enum) +* [Phalcon\Db\Exception](#db-exception) +* [Phalcon\Db\Index](#db-index) +* [Phalcon\Db\IndexInterface](#db-indexinterface) +* [Phalcon\Db\Profiler](#db-profiler) +* [Phalcon\Db\Profiler\Item](#db-profiler-item) +* [Phalcon\Db\RawValue](#db-rawvalue) +* [Phalcon\Db\Reference](#db-reference) +* [Phalcon\Db\ReferenceInterface](#db-referenceinterface) +* [Phalcon\Db\Result\Pdo](#db-result-pdo) +* [Phalcon\Db\ResultInterface](#db-resultinterface) + +

        Abstract Class Phalcon\Db\AbstractDb

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/abstractdb.zep) + +| Namespace | Phalcon\Db | +| Uses | \PDO | + +Phalcon\Db and its related classes provide a simple SQL database interface +for Phalcon Framework. The Phalcon\Db is the basic class you use to connect +your PHP application to an RDBMS. There is a different adapter class for each +brand of RDBMS. + +This component is intended to lower level database operations. If you want to +interact with databases using higher level of abstraction use +Phalcon\Mvc\Model. + +Phalcon\Db\AbstractDb is an abstract class. You only can use it with a +database adapter like Phalcon\Db\Adapter\Pdo + +```php +use Phalcon\Db; +use Phalcon\Db\Exception; +use Phalcon\Db\Adapter\Pdo\Mysql as MysqlConnection; + +try { + $connection = new MysqlConnection( + [ + "host" => "192.168.0.11", + "username" => "sigma", + "password" => "secret", + "dbname" => "blog", + "port" => "3306", + ] + ); + + $result = $connection->query( + "SELECTFROM robots LIMIT 5" + ); + + $result->setFetchMode(Enum::FETCH_NUM); + + while ($robot = $result->fetch()) { + print_r($robot); + } +} catch (Exception $e) { + echo $e->getMessage(), PHP_EOL; +} +``` + + + +

        Abstract Class Phalcon\Db\Adapter\AbstractAdapter

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/adapter/abstractadapter.zep) + +| Namespace | Phalcon\Db\Adapter | +| Uses | Phalcon\Db\DialectInterface, Phalcon\Db\Adapter\AdapterInterface, Phalcon\Db\ColumnInterface, Phalcon\Db\Enum, Phalcon\Db\Exception, Phalcon\Db\Index, Phalcon\Db\IndexInterface, Phalcon\Db\Reference, Phalcon\Db\ReferenceInterface, Phalcon\Db\RawValue, Phalcon\Events\EventsAwareInterface, Phalcon\Events\ManagerInterface | +| Implements | AdapterInterface, EventsAwareInterface | + +Base class for Phalcon\Db adapters + + +## Properties +```php +/** + * Connection ID + */ +protected static connectionConsecutive = 0; + +/** + * Active connection ID + * + * @var long + */ +protected connectionId; + +/** + * Descriptor used to connect to a database + */ +protected descriptor; + +/** + * Dialect instance + */ +protected dialect; + +/** + * Name of the dialect used + * + * @var string + */ +protected dialectType; + +/** + * Event Manager + * + * @var Phalcon\Events\Manager + */ +protected eventsManager; + +/** + * Active SQL Bind Types + * + * @var array + */ +protected sqlBindTypes; + +/** + * Active SQL Statement + * + * @var string + */ +protected sqlStatement; + +/** + * Active SQL bound parameter variables + * + * @var array + */ +protected sqlVariables; + +/** + * Current transaction level + */ +protected transactionLevel = 0; + +/** + * Whether the database supports transactions with save points + */ +protected transactionsWithSavepoints = false; + +/** + * Type of database system the adapter is used for + * + * @var string + */ +protected type; + +``` + +## Methods +```php +public function __construct( array $descriptor ); +``` +Phalcon\Db\Adapter constructor + + +```php +public function addColumn( string $tableName, string $schemaName, ColumnInterface $column ): bool; +``` +Adds a column to a table + + +```php +public function addForeignKey( string $tableName, string $schemaName, ReferenceInterface $reference ): bool; +``` +Adds a foreign key to a table + + +```php +public function addIndex( string $tableName, string $schemaName, IndexInterface $index ): bool; +``` +Adds an index to a table + + +```php +public function addPrimaryKey( string $tableName, string $schemaName, IndexInterface $index ): bool; +``` +Adds a primary key to a table + + +```php +public function createSavepoint( string $name ): bool; +``` +Creates a new savepoint + + +```php +public function createTable( string $tableName, string $schemaName, array $definition ): bool; +``` +Creates a table + + +```php +public function createView( string $viewName, array $definition, string $schemaName = null ): bool; +``` +Creates a view + + +```php +public function delete( mixed $table, mixed $whereCondition = null, mixed $placeholders = null, mixed $dataTypes = null ): bool; +``` +Deletes data from a table using custom RBDM SQL syntax + +```php +// Deleting existing robot +$success = $connection->delete( + "robots", + "id = 101" +); + +// Next SQL sentence is generated +DELETE FROM `robots` WHERE `id` = 101 +``` + + +```php +public function describeIndexes( string $table, string $schema = null ): IndexInterface[]; +``` +Lists table indexes + +```php +print_r( + $connection->describeIndexes("robots_parts") +); +``` + + +```php +public function describeReferences( string $table, string $schema = null ): ReferenceInterface[]; +``` +Lists table references + +```php +print_r( + $connection->describeReferences("robots_parts") +); +``` + + +```php +public function dropColumn( string $tableName, string $schemaName, string $columnName ): bool; +``` +Drops a column from a table + + +```php +public function dropForeignKey( string $tableName, string $schemaName, string $referenceName ): bool; +``` +Drops a foreign key from a table + + +```php +public function dropIndex( string $tableName, string $schemaName, mixed $indexName ): bool; +``` +Drop an index from a table + + +```php +public function dropPrimaryKey( string $tableName, string $schemaName ): bool; +``` +Drops a table's primary key + + +```php +public function dropTable( string $tableName, string $schemaName = null, bool $ifExists = bool ): bool; +``` +Drops a table from a schema/database + + +```php +public function dropView( string $viewName, string $schemaName = null, bool $ifExists = bool ): bool; +``` +Drops a view + + +```php +public function escapeIdentifier( mixed $identifier ): string; +``` +Escapes a column/table/schema name + +```php +$escapedTable = $connection->escapeIdentifier( + "robots" +); + +$escapedTable = $connection->escapeIdentifier( + [ + "store", + "robots", + ] +); +``` + + +```php +public function fetchAll( string $sqlQuery, int $fetchMode = static-constant-access, mixed $bindParams = null, mixed $bindTypes = null ): array; +``` +Dumps the complete result of a query into an array + +```php +// Getting all robots with associative indexes only +$robots = $connection->fetchAll( + "SELECTFROM robots", + \Phalcon\Db\Enum::FETCH_ASSOC +); + +foreach ($robots as $robot) { + print_r($robot); +} + + // Getting all robots that contains word "robot" withing the name +$robots = $connection->fetchAll( + "SELECTFROM robots WHERE name LIKE :name", + \Phalcon\Db\Enum::FETCH_ASSOC, + [ + "name" => "%robot%", + ] +); +foreach($robots as $robot) { + print_r($robot); +} +``` + + +```php +public function fetchColumn( string $sqlQuery, array $placeholders = [], mixed $column = int ): string | bool; +``` +Returns the n'th field of first row in a SQL query result + +```php +// Getting count of robots +$robotsCount = $connection->fetchColumn("SELECT count(*) FROM robots"); +print_r($robotsCount); + +// Getting name of last edited robot +$robot = $connection->fetchColumn( + "SELECT id, name FROM robots order by modified desc", + 1 +); +print_r($robot); +``` + + +```php +public function fetchOne( string $sqlQuery, mixed $fetchMode = static-constant-access, mixed $bindParams = null, mixed $bindTypes = null ): array; +``` +Returns the first row in a SQL query result + +```php +// Getting first robot +$robot = $connection->fetchOne("SELECTFROM robots"); +print_r($robot); + +// Getting first robot with associative indexes only +$robot = $connection->fetchOne( + "SELECTFROM robots", + \Phalcon\Db\Enum::FETCH_ASSOC +); +print_r($robot); +``` + + +```php +public function forUpdate( string $sqlQuery ): string; +``` +Returns a SQL modified with a FOR UPDATE clause + + +```php +public function getColumnDefinition( ColumnInterface $column ): string; +``` +Returns the SQL column definition from a column + + +```php +public function getColumnList( mixed $columnList ): string; +``` +Gets a list of columns + + +```php +public function getConnectionId(): string; +``` +Gets the active connection unique identifier + + +```php +public function getDefaultIdValue(): RawValue; +``` +Returns the default identity value to be inserted in an identity column + +```php +// Inserting a new robot with a valid default value for the column 'id' +$success = $connection->insert( + "robots", + [ + $connection->getDefaultIdValue(), + "Astro Boy", + 1952, + ], + [ + "id", + "name", + "year", + ] +); +``` + + +```php +public function getDefaultValue(): RawValue; +``` +Returns the default value to make the RBDM use the default value declared +in the table definition + +```php +// Inserting a new robot with a valid default value for the column 'year' +$success = $connection->insert( + "robots", + [ + "Astro Boy", + $connection->getDefaultValue() + ], + [ + "name", + "year", + ] +); +``` + + +```php +public function getDescriptor(): array; +``` +Return descriptor used to connect to the active database + + +```php +public function getDialect(): DialectInterface; +``` +Returns internal dialect instance + + +```php +public function getDialectType(): string +``` + + +```php +public function getEventsManager(): ManagerInterface; +``` +Returns the internal event manager + + +```php +public function getNestedTransactionSavepointName(): string; +``` +Returns the savepoint name to use for nested transactions + + +```php +public function getRealSQLStatement(): string; +``` +Active SQL statement in the object without replace bound parameters + + +```php +public function getSQLBindTypes(): array; +``` +Active SQL statement in the object + + +```php +public function getSQLStatement(): string; +``` +Active SQL statement in the object + + +```php +public function getSqlVariables(): array +``` + + +```php +public function getType(): string +``` + + +```php +public function insert( string $table, array $values, mixed $fields = null, mixed $dataTypes = null ): bool; +``` +Inserts data into a table using custom RDBMS SQL syntax + +```php +// Inserting a new robot +$success = $connection->insert( + "robots", + ["Astro Boy", 1952], + ["name", "year"] +); + +// Next SQL sentence is sent to the database system +INSERT INTO `robots` (`name`, `year`) VALUES ("Astro boy", 1952); +``` + + +```php +public function insertAsDict( string $table, mixed $data, mixed $dataTypes = null ): bool; +``` +Inserts data into a table using custom RBDM SQL syntax + +```php +// Inserting a new robot +$success = $connection->insertAsDict( + "robots", + [ + "name" => "Astro Boy", + "year" => 1952, + ] +); + +// Next SQL sentence is sent to the database system +INSERT INTO `robots` (`name`, `year`) VALUES ("Astro boy", 1952); +``` + + +```php +public function isNestedTransactionsWithSavepoints(): bool; +``` +Returns if nested transactions should use savepoints + + +```php +public function limit( string $sqlQuery, int $number ): string; +``` +Appends a LIMIT clause to $sqlQuery argument + +```php +echo $connection->limit("SELECTFROM robots", 5); +``` + + +```php +public function listTables( string $schemaName = null ): array; +``` +List all tables on a database + +```php +print_r( + $connection->listTables("blog") +); +``` + + +```php +public function listViews( string $schemaName = null ): array; +``` +List all views on a database + +```php +print_r( + $connection->listViews("blog") +); +``` + + +```php +public function modifyColumn( string $tableName, string $schemaName, ColumnInterface $column, ColumnInterface $currentColumn = null ): bool; +``` +Modifies a table column based on a definition + + +```php +public function releaseSavepoint( string $name ): bool; +``` +Releases given savepoint + + +```php +public function rollbackSavepoint( string $name ): bool; +``` +Rollbacks given savepoint + + +```php +public function setDialect( DialectInterface $dialect ); +``` +Sets the dialect used to produce the SQL + + +```php +public function setEventsManager( ManagerInterface $eventsManager ): void; +``` +Sets the event manager + + +```php +public function setNestedTransactionsWithSavepoints( bool $nestedTransactionsWithSavepoints ): AdapterInterface; +``` +Set if nested transactions should use savepoints + + +```php +public function sharedLock( string $sqlQuery ): string; +``` +Returns a SQL modified with a LOCK IN SHARE MODE clause + + +```php +public function supportSequences(): bool; +``` +Check whether the database system requires a sequence to produce +auto-numeric values + + +```php +public function tableExists( string $tableName, string $schemaName = null ): bool; +``` +Generates SQL checking for the existence of a schema.table + +```php +var_dump( + $connection->tableExists("blog", "posts") +); +``` + + +```php +public function tableOptions( string $tableName, string $schemaName = null ): array; +``` +Gets creation options from a table + +```php +print_r( + $connection->tableOptions("robots") +); +``` + + +```php +public function update( string $table, mixed $fields, mixed $values, mixed $whereCondition = null, mixed $dataTypes = null ): bool; +``` +Updates data on a table using custom RBDM SQL syntax + +```php +// Updating existing robot +$success = $connection->update( + "robots", + ["name"], + ["New Astro Boy"], + "id = 101" +); + +// Next SQL sentence is sent to the database system +UPDATE `robots` SET `name` = "Astro boy" WHERE id = 101 + +// Updating existing robot with array condition and $dataTypes +$success = $connection->update( + "robots", + ["name"], + ["New Astro Boy"], + [ + "conditions" => "id = ?", + "bind" => [$some_unsafe_id], + "bindTypes" => [PDO::PARAM_INT], // use only if you use $dataTypes param + ], + [ + PDO::PARAM_STR + ] +); + +``` + +Warning! If $whereCondition is string it not escaped. + + +```php +public function updateAsDict( string $table, mixed $data, mixed $whereCondition = null, mixed $dataTypes = null ): bool; +``` +Updates data on a table using custom RBDM SQL syntax +Another, more convenient syntax + +```php +// Updating existing robot +$success = $connection->updateAsDict( + "robots", + [ + "name" => "New Astro Boy", + ], + "id = 101" +); + +// Next SQL sentence is sent to the database system +UPDATE `robots` SET `name` = "Astro boy" WHERE id = 101 +``` + + +```php +public function useExplicitIdValue(): bool; +``` +Check whether the database system requires an explicit value for identity +columns + + +```php +public function viewExists( string $viewName, string $schemaName = null ): bool; +``` +Generates SQL checking for the existence of a schema.view + +```php +var_dump( + $connection->viewExists("active_users", "posts") +); +``` + + + + +

        Interface Phalcon\Db\Adapter\AdapterInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/adapter/adapterinterface.zep) + +| Namespace | Phalcon\Db\Adapter | +| Uses | Phalcon\Db\DialectInterface, Phalcon\Db\ResultInterface, Phalcon\Db\ColumnInterface, Phalcon\Db\IndexInterface, Phalcon\Db\RawValue, Phalcon\Db\ReferenceInterface | + +Interface for Phalcon\Db adapters + + +## Methods +```php +public function addColumn( string $tableName, string $schemaName, ColumnInterface $column ): bool; +``` +Adds a column to a table + + +```php +public function addForeignKey( string $tableName, string $schemaName, ReferenceInterface $reference ): bool; +``` +Adds a foreign key to a table + + +```php +public function addIndex( string $tableName, string $schemaName, IndexInterface $index ): bool; +``` +Adds an index to a table + + +```php +public function addPrimaryKey( string $tableName, string $schemaName, IndexInterface $index ): bool; +``` +Adds a primary key to a table + + +```php +public function affectedRows(): int; +``` +Returns the number of affected rows by the last INSERT/UPDATE/DELETE +reported by the database system + + +```php +public function begin( bool $nesting = bool ): bool; +``` +Starts a transaction in the connection + + +```php +public function close(): bool; +``` +Closes active connection returning success. Phalcon automatically closes +and destroys active connections within Phalcon\Db\Pool + + +```php +public function commit( bool $nesting = bool ): bool; +``` +Commits the active transaction in the connection + + +```php +public function connect( array $descriptor = null ): bool; +``` +This method is automatically called in \Phalcon\Db\Adapter\Pdo +constructor. Call it when you need to restore a database connection + + +```php +public function createSavepoint( string $name ): bool; +``` +Creates a new savepoint + + +```php +public function createTable( string $tableName, string $schemaName, array $definition ): bool; +``` +Creates a table + + +```php +public function createView( string $viewName, array $definition, string $schemaName = null ): bool; +``` +Creates a view + + +```php +public function delete( mixed $table, mixed $whereCondition = null, mixed $placeholders = null, mixed $dataTypes = null ): bool; +``` +Deletes data from a table using custom RDBMS SQL syntax + + +```php +public function describeColumns( string $table, string $schema = null ): ColumnInterface[]; +``` +Returns an array of Phalcon\Db\Column objects describing a table + + +```php +public function describeIndexes( string $table, string $schema = null ): IndexInterface[]; +``` +Lists table indexes + + +```php +public function describeReferences( string $table, string $schema = null ): ReferenceInterface[]; +``` +Lists table references + + +```php +public function dropColumn( string $tableName, string $schemaName, string $columnName ): bool; +``` +Drops a column from a table + + +```php +public function dropForeignKey( string $tableName, string $schemaName, string $referenceName ): bool; +``` +Drops a foreign key from a table + + +```php +public function dropIndex( string $tableName, string $schemaName, string $indexName ): bool; +``` +Drop an index from a table + + +```php +public function dropPrimaryKey( string $tableName, string $schemaName ): bool; +``` +Drops primary key from a table + + +```php +public function dropTable( string $tableName, string $schemaName = null, bool $ifExists = bool ): bool; +``` +Drops a table from a schema/database + + +```php +public function dropView( string $viewName, string $schemaName = null, bool $ifExists = bool ): bool; +``` +Drops a view + + +```php +public function escapeIdentifier( mixed $identifier ): string; +``` +Escapes a column/table/schema name + + +```php +public function escapeString( string $str ): string; +``` +Escapes a value to avoid SQL injections + + +```php +public function execute( string $sqlStatement, mixed $placeholders = null, mixed $dataTypes = null ): bool; +``` +Sends SQL statements to the database server returning the success state. +Use this method only when the SQL statement sent to the server doesn't +return any rows + + +```php +public function fetchAll( string $sqlQuery, int $fetchMode = int, mixed $placeholders = null ): array; +``` +Dumps the complete result of a query into an array + + +```php +public function fetchColumn( string $sqlQuery, array $placeholders = [], mixed $column = int ): string | bool; +``` +Returns the n'th field of first row in a SQL query result + +```php +// Getting count of robots +$robotsCount = $connection->fetchColumn("SELECT count(*) FROM robots"); +print_r($robotsCount); + +// Getting name of last edited robot +$robot = $connection->fetchColumn( + "SELECT id, name FROM robots order by modified desc", + 1 +); +print_r($robot); +``` + + +```php +public function fetchOne( string $sqlQuery, int $fetchMode = int, mixed $placeholders = null ): array; +``` +Returns the first row in a SQL query result + + +```php +public function forUpdate( string $sqlQuery ): string; +``` +Returns a SQL modified with a FOR UPDATE clause + + +```php +public function getColumnDefinition( ColumnInterface $column ): string; +``` +Returns the SQL column definition from a column + + +```php +public function getColumnList( mixed $columnList ): string; +``` +Gets a list of columns + + +```php +public function getConnectionId(): string; +``` +Gets the active connection unique identifier + + +```php +public function getDefaultIdValue(): RawValue; +``` +Return the default identity value to insert in an identity column + + +```php +public function getDescriptor(): array; +``` +Return descriptor used to connect to the active database + + +```php +public function getDialect(): DialectInterface; +``` +Returns internal dialect instance + + +```php +public function getDialectType(): string; +``` +Returns the name of the dialect used + + +```php +public function getInternalHandler(): \Pdo; +``` +Return internal PDO handler + + +```php +public function getNestedTransactionSavepointName(): string; +``` +Returns the savepoint name to use for nested transactions + + +```php +public function getRealSQLStatement(): string; +``` +Active SQL statement in the object without replace bound parameters + + +```php +public function getSQLBindTypes(): array; +``` +Active SQL statement in the object + + +```php +public function getSQLStatement(): string; +``` +Active SQL statement in the object + + +```php +public function getSQLVariables(): array; +``` +Active SQL statement in the object + + +```php +public function getType(): string; +``` +Returns type of database system the adapter is used for + + +```php +public function insert( string $table, array $values, mixed $fields = null, mixed $dataTypes = null ): bool; +``` +Inserts data into a table using custom RDBMS SQL syntax + + +```php +public function insertAsDict( string $table, mixed $data, mixed $dataTypes = null ): bool; +``` +Inserts data into a table using custom RBDM SQL syntax + +```php +// Inserting a new robot +$success = $connection->insertAsDict( + "robots", + [ + "name" => "Astro Boy", + "year" => 1952, + ] +); + +// Next SQL sentence is sent to the database system +INSERT INTO `robots` (`name`, `year`) VALUES ("Astro boy", 1952); +``` + + +```php +public function isNestedTransactionsWithSavepoints(): bool; +``` +Returns if nested transactions should use savepoints + + +```php +public function isUnderTransaction(): bool; +``` +Checks whether connection is under database transaction + + +```php +public function lastInsertId( mixed $sequenceName = null ); +``` +Returns insert id for the auto_increment column inserted in the last SQL +statement + + +```php +public function limit( string $sqlQuery, int $number ): string; +``` +Appends a LIMIT clause to sqlQuery argument + + +```php +public function listTables( string $schemaName = null ): array; +``` +List all tables on a database + + +```php +public function listViews( string $schemaName = null ): array; +``` +List all views on a database + + +```php +public function modifyColumn( string $tableName, string $schemaName, ColumnInterface $column, ColumnInterface $currentColumn = null ): bool; +``` +Modifies a table column based on a definition + + +```php +public function query( string $sqlStatement, mixed $placeholders = null, mixed $dataTypes = null ): ResultInterface | bool; +``` +Sends SQL statements to the database server returning the success state. +Use this method only when the SQL statement sent to the server returns +rows + + +```php +public function releaseSavepoint( string $name ): bool; +``` +Releases given savepoint + + +```php +public function rollback( bool $nesting = bool ): bool; +``` +Rollbacks the active transaction in the connection + + +```php +public function rollbackSavepoint( string $name ): bool; +``` +Rollbacks given savepoint + + +```php +public function setNestedTransactionsWithSavepoints( bool $nestedTransactionsWithSavepoints ): AdapterInterface; +``` +Set if nested transactions should use savepoints + + +```php +public function sharedLock( string $sqlQuery ): string; +``` +Returns a SQL modified with a LOCK IN SHARE MODE clause + + +```php +public function supportSequences(): bool; +``` +Check whether the database system requires a sequence to produce +auto-numeric values + + +```php +public function tableExists( string $tableName, string $schemaName = null ): bool; +``` +Generates SQL checking for the existence of a schema.table + + +```php +public function tableOptions( string $tableName, string $schemaName = null ): array; +``` +Gets creation options from a table + + +```php +public function update( string $table, mixed $fields, mixed $values, mixed $whereCondition = null, mixed $dataTypes = null ): bool; +``` +Updates data on a table using custom RDBMS SQL syntax + + +```php +public function updateAsDict( string $table, mixed $data, mixed $whereCondition = null, mixed $dataTypes = null ): bool; +``` +Updates data on a table using custom RBDM SQL syntax +Another, more convenient syntax + +```php +// Updating existing robot +$success = $connection->updateAsDict( + "robots", + [ + "name" => "New Astro Boy", + ], + "id = 101" +); + +// Next SQL sentence is sent to the database system +UPDATE `robots` SET `name` = "Astro boy" WHERE id = 101 +``` + + +```php +public function useExplicitIdValue(): bool; +``` +Check whether the database system requires an explicit value for identity +columns + + +```php +public function viewExists( string $viewName, string $schemaName = null ): bool; +``` +Generates SQL checking for the existence of a schema.view + + + + +

        Abstract Class Phalcon\Db\Adapter\Pdo\AbstractPdo

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/adapter/pdo/abstractpdo.zep) + +| Namespace | Phalcon\Db\Adapter\Pdo | +| Uses | Phalcon\Db\Adapter\AbstractAdapter, Phalcon\Db\Column, Phalcon\Db\Exception, Phalcon\Db\Result\Pdo, Phalcon\Db\ResultInterface, Phalcon\Events\ManagerInterface | +| Extends | AbstractAdapter | + +Phalcon\Db\Adapter\Pdo is the Phalcon\Db that internally uses PDO to connect +to a database + +```php +use Phalcon\Db\Adapter\Pdo\Mysql; + +$config = [ + "host" => "localhost", + "dbname" => "blog", + "port" => 3306, + "username" => "sigma", + "password" => "secret", +]; + +$connection = new Mysql($config); +``` + + +## Properties +```php +/** + * Last affected rows + */ +protected affectedRows; + +/** + * PDO Handler + * + * @var \Pdo + */ +protected pdo; + +``` + +## Methods +```php +public function __construct( array $descriptor ): void; +``` +Constructor for Phalcon\Db\Adapter\Pdo + + +```php +public function affectedRows(): int; +``` +Returns the number of affected rows by the latest INSERT/UPDATE/DELETE +executed in the database system + +```php +$connection->execute( + "DELETE FROM robots" +); + +echo $connection->affectedRows(), " were deleted"; +``` + + +```php +public function begin( bool $nesting = bool ): bool; +``` +Starts a transaction in the connection + + +```php +public function close(): bool; +``` +Closes the active connection returning success. Phalcon automatically +closes and destroys active connections when the request ends + + +```php +public function commit( bool $nesting = bool ): bool; +``` +Commits the active transaction in the connection + + +```php +public function connect( array $descriptor = null ): bool; +``` +This method is automatically called in \Phalcon\Db\Adapter\Pdo +constructor. + +Call it when you need to restore a database connection. + +```php +use Phalcon\Db\Adapter\Pdo\Mysql; + +// Make a connection +$connection = new Mysql( + [ + "host" => "localhost", + "username" => "sigma", + "password" => "secret", + "dbname" => "blog", + "port" => 3306, + ] +); + +// Reconnect +$connection->connect(); +``` + + +```php +public function convertBoundParams( string $sql, array $params = [] ): array; +``` +Converts bound parameters such as :name: or ?1 into PDO bind params ? + +```php +print_r( + $connection->convertBoundParams( + "SELECTFROM robots WHERE name = :name:", + [ + "Bender", + ] + ) +); +``` + + +```php +public function escapeString( string $str ): string; +``` +Escapes a value to avoid SQL injections according to the active charset +in the connection + +```php +$escapedStr = $connection->escapeString("some dangerous value"); +``` + + +```php +public function execute( string $sqlStatement, mixed $bindParams = null, mixed $bindTypes = null ): bool; +``` +Sends SQL statements to the database server returning the success state. +Use this method only when the SQL statement sent to the server doesn't +return any rows + +```php +// Inserting data +$success = $connection->execute( + "INSERT INTO robots VALUES (1, 'Astro Boy')" +); + +$success = $connection->execute( + "INSERT INTO robots VALUES (?, ?)", + [ + 1, + "Astro Boy", + ] +); +``` + + +```php +public function executePrepared( \PDOStatement $statement, array $placeholders, mixed $dataTypes ): \PDOStatement; +``` +Executes a prepared statement binding. This function uses integer indexes +starting from zero + +```php +use Phalcon\Db\Column; + +$statement = $db->prepare( + "SELECTFROM robots WHERE name = :name" +); + +$result = $connection->executePrepared( + $statement, + [ + "name" => "Voltron", + ], + [ + "name" => Column::BIND_PARAM_INT, + ] +); +``` + + +```php +public function getErrorInfo(); +``` +Return the error info, if any + + +```php +public function getInternalHandler(): \Pdo; +``` +Return internal PDO handler + + +```php +public function getTransactionLevel(): int; +``` +Returns the current transaction nesting level + + +```php +public function isUnderTransaction(): bool; +``` +Checks whether the connection is under a transaction + +```php +$connection->begin(); + +// true +var_dump( + $connection->isUnderTransaction() +); +``` + + +```php +public function lastInsertId( mixed $sequenceName = null ): int | bool; +``` +Returns the insert id for the auto_increment/serial column inserted in +the latest executed SQL statement + +```php +// Inserting a new robot +$success = $connection->insert( + "robots", + [ + "Astro Boy", + 1952, + ], + [ + "name", + "year", + ] +); + +// Getting the generated id +$id = $connection->lastInsertId(); +``` + + +```php +public function prepare( string $sqlStatement ): \PDOStatement; +``` +Returns a PDO prepared statement to be executed with 'executePrepared' + +```php +use Phalcon\Db\Column; + +$statement = $db->prepare( + "SELECTFROM robots WHERE name = :name" +); + +$result = $connection->executePrepared( + $statement, + [ + "name" => "Voltron", + ], + [ + "name" => Column::BIND_PARAM_INT, + ] +); +``` + + +```php +public function query( string $sqlStatement, mixed $bindParams = null, mixed $bindTypes = null ): ResultInterface | bool; +``` +Sends SQL statements to the database server returning the success state. +Use this method only when the SQL statement sent to the server is +returning rows + +```php +// Querying data +$resultset = $connection->query( + "SELECTFROM robots WHERE type = 'mechanical'" +); + +$resultset = $connection->query( + "SELECTFROM robots WHERE type = ?", + [ + "mechanical", + ] +); +``` + + +```php +public function rollback( bool $nesting = bool ): bool; +``` +Rollbacks the active transaction in the connection + + +```php +abstract protected function getDsnDefaults(): array; +``` +Returns PDO adapter DSN defaults as a key-value map. + + + + +

        Class Phalcon\Db\Adapter\Pdo\Mysql

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/adapter/pdo/mysql.zep) + +| Namespace | Phalcon\Db\Adapter\Pdo | +| Uses | Phalcon\Db\Adapter\Pdo\AbstractPdo, Phalcon\Db\Column, Phalcon\Db\ColumnInterface, Phalcon\Db\Enum, Phalcon\Db\Exception, Phalcon\Db\Index, Phalcon\Db\IndexInterface, Phalcon\Db\Reference, Phalcon\Db\ReferenceInterface | +| Extends | PdoAdapter | + +Specific functions for the Mysql database system + +```php +use Phalcon\Db\Adapter\Pdo\Mysql; + +$config = [ + "host" => "localhost", + "dbname" => "blog", + "port" => 3306, + "username" => "sigma", + "password" => "secret", +]; + +$connection = new Mysql($config); +``` + + +## Properties +```php +/** + * @var string + */ +protected dialectType = mysql; + +/** + * @var string + */ +protected type = mysql; + +``` + +## Methods +```php +public function addForeignKey( string $tableName, string $schemaName, ReferenceInterface $reference ): bool; +``` +Adds a foreign key to a table + + +```php +public function describeColumns( string $table, string $schema = null ): ColumnInterface[]; +``` +Returns an array of Phalcon\Db\Column objects describing a table + +```php +print_r( + $connection->describeColumns("posts") +); +``` + + +```php +public function describeIndexes( string $table, string $schema = null ): IndexInterface[]; +``` +Lists table indexes + +```php +print_r( + $connection->describeIndexes("robots_parts") +); +``` + + +```php +public function describeReferences( string $table, string $schema = null ): ReferenceInterface[]; +``` +Lists table references + +```php +print_r( + $connection->describeReferences("robots_parts") +); +``` + + +```php +protected function getDsnDefaults(): array; +``` +Returns PDO adapter DSN defaults as a key-value map. + + + + +

        Class Phalcon\Db\Adapter\Pdo\Postgresql

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/adapter/pdo/postgresql.zep) + +| Namespace | Phalcon\Db\Adapter\Pdo | +| Uses | Phalcon\Db\Adapter\Pdo\AbstractPdo, Phalcon\Db\Column, Phalcon\Db\ColumnInterface, Phalcon\Db\Enum, Phalcon\Db\Exception, Phalcon\Db\RawValue, Phalcon\Db\Reference, Phalcon\Db\ReferenceInterface, Throwable | +| Extends | PdoAdapter | + +Specific functions for the Postgresql database system + +```php +use Phalcon\Db\Adapter\Pdo\Postgresql; + +$config = [ + "host" => "localhost", + "dbname" => "blog", + "port" => 5432, + "username" => "postgres", + "password" => "secret", +]; + +$connection = new Postgresql($config); +``` + + +## Properties +```php +/** + * @var string + */ +protected dialectType = postgresql; + +/** + * @var string + */ +protected type = pgsql; + +``` + +## Methods +```php +public function __construct( array $descriptor ): void; +``` +Constructor for Phalcon\Db\Adapter\Pdo\Postgresql + + +```php +public function connect( array $descriptor = null ): bool; +``` +This method is automatically called in Phalcon\Db\Adapter\Pdo +constructor. Call it when you need to restore a database connection. + + +```php +public function createTable( string $tableName, string $schemaName, array $definition ): bool; +``` +Creates a table + + +```php +public function describeColumns( string $table, string $schema = null ): ColumnInterface[]; +``` +Returns an array of Phalcon\Db\Column objects describing a table + +```php +print_r( + $connection->describeColumns("posts") +); +``` + + +```php +public function describeReferences( string $table, string $schema = null ): ReferenceInterface[]; +``` +Lists table references + +```php +print_r( + $connection->describeReferences("robots_parts") +); +``` + + +```php +public function getDefaultIdValue(): RawValue; +``` +Returns the default identity value to be inserted in an identity column + +```php +// Inserting a new robot with a valid default value for the column 'id' +$success = $connection->insert( + "robots", + [ + $connection->getDefaultIdValue(), + "Astro Boy", + 1952, + ], + [ + "id", + "name", + "year", + ] +); +``` + + +```php +public function modifyColumn( string $tableName, string $schemaName, ColumnInterface $column, ColumnInterface $currentColumn = null ): bool; +``` +Modifies a table column based on a definition + + +```php +public function supportSequences(): bool; +``` +Check whether the database system requires a sequence to produce +auto-numeric values + + +```php +public function useExplicitIdValue(): bool; +``` +Check whether the database system requires an explicit value for identity +columns + + +```php +protected function getDsnDefaults(): array; +``` +Returns PDO adapter DSN defaults as a key-value map. + + + + +

        Class Phalcon\Db\Adapter\Pdo\Sqlite

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/adapter/pdo/sqlite.zep) + +| Namespace | Phalcon\Db\Adapter\Pdo | +| Uses | Phalcon\Db\Adapter\Pdo\AbstractPdo, Phalcon\Db\Column, Phalcon\Db\ColumnInterface, Phalcon\Db\Enum, Phalcon\Db\Exception, Phalcon\Db\Index, Phalcon\Db\IndexInterface, Phalcon\Db\RawValue, Phalcon\Db\Reference, Phalcon\Db\ReferenceInterface | +| Extends | PdoAdapter | + +Specific functions for the Sqlite database system + +```php +use Phalcon\Db\Adapter\Pdo\Sqlite; + +$connection = new Sqlite( + [ + "dbname" => "/tmp/test.sqlite", + ] +); +``` + + +## Properties +```php +/** + * @var string + */ +protected dialectType = sqlite; + +/** + * @var string + */ +protected type = sqlite; + +``` + +## Methods +```php +public function __construct( array $descriptor ): void; +``` +Constructor for Phalcon\Db\Adapter\Pdo\Sqlite + + +```php +public function connect( array $descriptor = null ): bool; +``` +This method is automatically called in Phalcon\Db\Adapter\Pdo +constructor. Call it when you need to restore a database connection. + + +```php +public function describeColumns( string $table, string $schema = null ): ColumnInterface[]; +``` +Returns an array of Phalcon\Db\Column objects describing a table + +```php +print_r( + $connection->describeColumns("posts") +); +``` + + +```php +public function describeIndexes( string $table, string $schema = null ): IndexInterface[]; +``` +Lists table indexes + +```php +print_r( + $connection->describeIndexes("robots_parts") +); +``` + + +```php +public function describeReferences( string $table, string $schema = null ): ReferenceInterface[]; +``` +Lists table references + + +```php +public function getDefaultValue(): RawValue; +``` +Returns the default value to make the RBDM use the default value declared +in the table definition + +```php +// Inserting a new robot with a valid default value for the column 'year' +$success = $connection->insert( + "robots", + [ + "Astro Boy", + $connection->getDefaultValue(), + ], + [ + "name", + "year", + ] +); +``` + + +```php +public function useExplicitIdValue(): bool; +``` +Check whether the database system requires an explicit value for identity +columns + + +```php +protected function getDsnDefaults(): array; +``` +Returns PDO adapter DSN defaults as a key-value map. + + + + +

        Class Phalcon\Db\Adapter\PdoFactory

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/adapter/pdofactory.zep) + +| Namespace | Phalcon\Db\Adapter | +| Uses | Phalcon\Annotations\Adapter\AbstractAdapter, Phalcon\Factory\AbstractFactory, Phalcon\Helper\Arr | +| Extends | AbstractFactory | + +This file is part of the Phalcon Framework. + +(c) Phalcon Team + +For the full copyright and license information, please view the LICENSE.txt +file that was distributed with this source code. + + +## Methods +```php +public function __construct( array $services = [] ); +``` +Constructor + + +```php +public function load( mixed $config ): mixed; +``` +Factory to create an instace from a Config object + + +```php +public function newInstance( string $name, array $options = [] ): AbstractAdapter; +``` +Create a new instance of the adapter + + +```php +protected function getAdapters(): array; +``` +Returns the available adapters + + + + +

        Class Phalcon\Db\Column

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/column.zep) + +| Namespace | Phalcon\Db | +| Uses | Phalcon\Db\Exception, Phalcon\Db\ColumnInterface | +| Implements | ColumnInterface | + +Allows to define columns to be used on create or alter table operations + +```php +use Phalcon\Db\Column as Column; + +// Column definition +$column = new Column( + "id", + [ + "type" => Column::TYPE_INTEGER, + "size" => 10, + "unsigned" => true, + "notNull" => true, + "autoIncrement" => true, + "first" => true, + ] +); + +// Add column to existing table +$connection->addColumn("robots", null, $column); +``` + + +## Constants +```php +const BIND_PARAM_BLOB = 3; +const BIND_PARAM_BOOL = 5; +const BIND_PARAM_DECIMAL = 32; +const BIND_PARAM_INT = 1; +const BIND_PARAM_NULL = 0; +const BIND_PARAM_STR = 2; +const BIND_SKIP = 1024; +const TYPE_BIGINTEGER = 14; +const TYPE_BIT = 19; +const TYPE_BLOB = 11; +const TYPE_BOOLEAN = 8; +const TYPE_CHAR = 5; +const TYPE_DATE = 1; +const TYPE_DATETIME = 4; +const TYPE_DECIMAL = 3; +const TYPE_DOUBLE = 9; +const TYPE_ENUM = 18; +const TYPE_FLOAT = 7; +const TYPE_INTEGER = 0; +const TYPE_JSON = 15; +const TYPE_JSONB = 16; +const TYPE_LONGBLOB = 13; +const TYPE_LONGTEXT = 24; +const TYPE_MEDIUMBLOB = 12; +const TYPE_MEDIUMINTEGER = 21; +const TYPE_MEDIUMTEXT = 23; +const TYPE_SMALLINTEGER = 22; +const TYPE_TEXT = 6; +const TYPE_TIME = 20; +const TYPE_TIMESTAMP = 17; +const TYPE_TINYBLOB = 10; +const TYPE_TINYINTEGER = 26; +const TYPE_TINYTEXT = 25; +const TYPE_VARCHAR = 2; +``` + +## Properties +```php +/** + * Column Position + * + * @var string + */ +protected after; + +/** + * Column is autoIncrement? + * + * @var bool + */ +protected autoIncrement = false; + +/** + * Bind Type + */ +protected bindType = 2; + +/** + * Default column value + */ +protected _default; + +/** + * Position is first + * + * @var bool + */ +protected first = false; + +/** + * The column have some numeric type? + */ +protected isNumeric = false; + +/** + * Column's name + * + * @var string + */ +protected name; + +/** + * Column not nullable? + * + * @var bool + */ +protected notNull = false; + +/** + * Column is part of the primary key? + */ +protected primary = false; + +/** + * Integer column number scale + * + * @var int + */ +protected scale = 0; + +/** + * Integer column size + * + * @var int + */ +protected size = 0; + +/** + * Column data type + * + * @var int + */ +protected type; + +/** + * Column data type reference + * + * @var int + */ +protected typeReference = -1; + +/** + * Column data type values + * + * @var array|string + */ +protected typeValues; + +/** + * Integer column unsigned? + * + * @var bool + */ +protected unsigned = false; + +``` + +## Methods +```php +public function __construct( string $name, array $definition ): void; +``` +Phalcon\Db\Column constructor + + +```php +public function getAfterPosition(): string; +``` +Check whether field absolute to position in table + + +```php +public function getBindType(): int; +``` +Returns the type of bind handling + + +```php +public function getName(): string +``` + + +```php +public function getScale(): int +``` + + +```php +public function getSize(): int +``` + + +```php +public function getType(): int +``` + + +```php +public function getTypeReference(): int +``` + + +```php +public function getTypeValues(): array|string +``` + + +```php +public function get_default() +``` + + +```php +public function hasDefault(): bool; +``` +Check whether column has default value + + +```php +public function isAutoIncrement(): bool; +``` +Auto-Increment + + +```php +public function isFirst(): bool; +``` +Check whether column have first position in table + + +```php +public function isNotNull(): bool; +``` +Not null + + +```php +public function isNumeric(): bool; +``` +Check whether column have an numeric type + + +```php +public function isPrimary(): bool; +``` +Column is part of the primary key? + + +```php +public function isUnsigned(): bool; +``` +Returns true if number column is unsigned + + + + +

        Interface Phalcon\Db\ColumnInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/columninterface.zep) + +| Namespace | Phalcon\Db | + +Interface for Phalcon\Db\Column + + +## Methods +```php +public function getAfterPosition(): string; +``` +Check whether field absolute to position in table + + +```php +public function getBindType(): int; +``` +Returns the type of bind handling + + +```php +public function getDefault(): mixed; +``` +Returns default value of column + + +```php +public function getName(): string; +``` +Returns column name + + +```php +public function getScale(): int; +``` +Returns column scale + + +```php +public function getSize(): int; +``` +Returns column size + + +```php +public function getType(): int; +``` +Returns column type + + +```php +public function getTypeReference(): int; +``` +Returns column type reference + + +```php +public function getTypeValues(): array | string; +``` +Returns column type values + + +```php +public function hasDefault(): bool; +``` +Check whether column has default value + + +```php +public function isAutoIncrement(): bool; +``` +Auto-Increment + + +```php +public function isFirst(): bool; +``` +Check whether column have first position in table + + +```php +public function isNotNull(): bool; +``` +Not null + + +```php +public function isNumeric(): bool; +``` +Check whether column have an numeric type + + +```php +public function isPrimary(): bool; +``` +Column is part of the primary key? + + +```php +public function isUnsigned(): bool; +``` +Returns true if number column is unsigned + + + + +

        Abstract Class Phalcon\Db\Dialect

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/dialect.zep) + +| Namespace | Phalcon\Db | +| Implements | DialectInterface | + +This is the base class to each database dialect. This implements +common methods to transform intermediate code into its RDBMS related syntax + + +## Properties +```php +// +protected escapeChar; + +// +protected customFunctions; + +``` + +## Methods +```php +public function createSavepoint( string $name ): string; +``` +Generate SQL to create a new savepoint + + +```php +final public function escape( string $str, string $escapeChar = null ): string; +``` +Escape identifiers + + +```php +final public function escapeSchema( string $str, string $escapeChar = null ): string; +``` +Escape Schema + + +```php +public function forUpdate( string $sqlQuery ): string; +``` +Returns a SQL modified with a FOR UPDATE clause + +```php +$sql = $dialect->forUpdate("SELECTFROM robots"); + +echo $sql; // SELECTFROM robots FOR UPDATE +``` + + +```php +final public function getColumnList( array $columnList, string $escapeChar = null, mixed $bindCounts = null ): string; +``` +Gets a list of columns with escaped identifiers + +```php +echo $dialect->getColumnList( + [ + "column1", + "column", + ] +); +``` + + +```php +public function getCustomFunctions(): array; +``` +Returns registered functions + + +```php +final public function getSqlColumn( mixed $column, string $escapeChar = null, mixed $bindCounts = null ): string; +``` +Resolve Column expressions + + +```php +public function getSqlExpression( array $expression, string $escapeChar = null, mixed $bindCounts = null ): string; +``` +Transforms an intermediate representation for an expression into a database system valid expression + + +```php +final public function getSqlTable( mixed $table, string $escapeChar = null ): string; +``` +Transform an intermediate representation of a schema/table into a +database system valid expression + + +```php +public function limit( string $sqlQuery, mixed $number ): string; +``` +Generates the SQL for LIMIT clause + +```php +// SELECTFROM robots LIMIT 10 +echo $dialect->limit( + "SELECTFROM robots", + 10 +); + +// SELECTFROM robots LIMIT 10 OFFSET 50 +echo $dialect->limit( + "SELECTFROM robots", + [10, 50] +); +``` + + +```php +public function registerCustomFunction( string $name, callable $customFunction ): Dialect; +``` +Registers custom SQL functions + + +```php +public function releaseSavepoint( string $name ): string; +``` +Generate SQL to release a savepoint + + +```php +public function rollbackSavepoint( string $name ): string; +``` +Generate SQL to rollback a savepoint + + +```php +public function select( array $definition ): string; +``` +Builds a SELECT statement + + +```php +public function supportsReleaseSavepoints(): bool; +``` +Checks whether the platform supports releasing savepoints. + + +```php +public function supportsSavepoints(): bool; +``` +Checks whether the platform supports savepoints + + +```php +protected function checkColumnType( ColumnInterface $column ): string; +``` +Checks the column type and if not string it returns the type reference + + +```php +protected function checkColumnTypeSql( ColumnInterface $column ): string; +``` +Checks the column type and returns the updated SQL statement + + +```php +protected function getColumnSize( ColumnInterface $column ): string; +``` +Returns the size of the column enclosed in parentheses + + +```php +protected function getColumnSizeAndScale( ColumnInterface $column ): string; +``` +Returns the column size and scale enclosed in parentheses + + +```php +final protected function getSqlExpressionAll( array $expression, string $escapeChar = null ): string; +``` +Resolve + + +```php +final protected function getSqlExpressionBinaryOperations( array $expression, string $escapeChar = null, mixed $bindCounts = null ): string; +``` +Resolve binary operations expressions + + +```php +final protected function getSqlExpressionCase( array $expression, string $escapeChar = null, mixed $bindCounts = null ): string; +``` +Resolve CASE expressions + + +```php +final protected function getSqlExpressionCastValue( array $expression, string $escapeChar = null, mixed $bindCounts = null ): string; +``` +Resolve CAST of values + + +```php +final protected function getSqlExpressionConvertValue( array $expression, string $escapeChar = null, mixed $bindCounts = null ): string; +``` +Resolve CONVERT of values encodings + + +```php +final protected function getSqlExpressionFrom( mixed $expression, string $escapeChar = null ): string; +``` +Resolve a FROM clause + + +```php +final protected function getSqlExpressionFunctionCall( array $expression, string $escapeChar = null, mixed $bindCounts ): string; +``` +Resolve function calls + + +```php +final protected function getSqlExpressionGroupBy( mixed $expression, string $escapeChar = null, mixed $bindCounts = null ): string; +``` +Resolve a GROUP BY clause + + +```php +final protected function getSqlExpressionHaving( array $expression, string $escapeChar = null, mixed $bindCounts = null ): string; +``` +Resolve a HAVING clause + + +```php +final protected function getSqlExpressionJoins( mixed $expression, string $escapeChar = null, mixed $bindCounts = null ): string; +``` +Resolve a JOINs clause + + +```php +final protected function getSqlExpressionLimit( mixed $expression, string $escapeChar = null, mixed $bindCounts = null ): string; +``` +Resolve a LIMIT clause + + +```php +final protected function getSqlExpressionList( array $expression, string $escapeChar = null, mixed $bindCounts = null ): string; +``` +Resolve Lists + + +```php +final protected function getSqlExpressionObject( array $expression, string $escapeChar = null, mixed $bindCounts = null ): string; +``` +Resolve object expressions + + +```php +final protected function getSqlExpressionOrderBy( mixed $expression, string $escapeChar = null, mixed $bindCounts = null ): string; +``` +Resolve an ORDER BY clause + + +```php +final protected function getSqlExpressionQualified( array $expression, string $escapeChar = null ): string; +``` +Resolve qualified expressions + + +```php +final protected function getSqlExpressionScalar( array $expression, string $escapeChar = null, mixed $bindCounts = null ): string; +``` +Resolve Column expressions + + +```php +final protected function getSqlExpressionUnaryOperations( array $expression, string $escapeChar = null, mixed $bindCounts = null ): string; +``` +Resolve unary operations expressions + + +```php +final protected function getSqlExpressionWhere( mixed $expression, string $escapeChar = null, mixed $bindCounts = null ): string; +``` +Resolve a WHERE clause + + +```php +protected function prepareColumnAlias( string $qualified, string $alias = null, string $escapeChar = null ): string; +``` +Prepares column for this RDBMS + + +```php +protected function prepareQualified( string $column, string $domain = null, string $escapeChar = null ): string; +``` +Prepares qualified for this RDBMS + + +```php +protected function prepareTable( string $table, string $schema = null, string $alias = null, string $escapeChar = null ): string; +``` +Prepares table for this RDBMS + + + + +

        Class Phalcon\Db\Dialect\Mysql

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/dialect/mysql.zep) + +| Namespace | Phalcon\Db\Dialect | +| Uses | Phalcon\Db\Dialect, Phalcon\Db\Column, Phalcon\Db\Exception, Phalcon\Db\IndexInterface, Phalcon\Db\ColumnInterface, Phalcon\Db\ReferenceInterface, Phalcon\Db\DialectInterface | +| Extends | Dialect | + +Generates database specific SQL for the MySQL RDBMS + + +## Properties +```php +/** + * @var string + */ +protected escapeChar = `; + +``` + +## Methods +```php +public function addColumn( string $tableName, string $schemaName, ColumnInterface $column ): string; +``` +Generates SQL to add a column to a table + + +```php +public function addForeignKey( string $tableName, string $schemaName, ReferenceInterface $reference ): string; +``` +Generates SQL to add an index to a table + + +```php +public function addIndex( string $tableName, string $schemaName, IndexInterface $index ): string; +``` +Generates SQL to add an index to a table + + +```php +public function addPrimaryKey( string $tableName, string $schemaName, IndexInterface $index ): string; +``` +Generates SQL to add the primary key to a table + + +```php +public function createTable( string $tableName, string $schemaName, array $definition ): string; +``` +Generates SQL to create a table + + +```php +public function createView( string $viewName, array $definition, string $schemaName = null ): string; +``` +Generates SQL to create a view + + +```php +public function describeColumns( string $table, string $schema = null ): string; +``` +Generates SQL describing a table + +```php +print_r( + $dialect->describeColumns("posts") +); +``` + + +```php +public function describeIndexes( string $table, string $schema = null ): string; +``` +Generates SQL to query indexes on a table + + +```php +public function describeReferences( string $table, string $schema = null ): string; +``` +Generates SQL to query foreign keys on a table + + +```php +public function dropColumn( string $tableName, string $schemaName, string $columnName ): string; +``` +Generates SQL to delete a column from a table + + +```php +public function dropForeignKey( string $tableName, string $schemaName, string $referenceName ): string; +``` +Generates SQL to delete a foreign key from a table + + +```php +public function dropIndex( string $tableName, string $schemaName, string $indexName ): string; +``` +Generates SQL to delete an index from a table + + +```php +public function dropPrimaryKey( string $tableName, string $schemaName ): string; +``` +Generates SQL to delete primary key from a table + + +```php +public function dropTable( string $tableName, string $schemaName = null, bool $ifExists = bool ): string; +``` +Generates SQL to drop a table + + +```php +public function dropView( string $viewName, string $schemaName = null, bool $ifExists = bool ): string; +``` +Generates SQL to drop a view + + +```php +public function getColumnDefinition( ColumnInterface $column ): string; +``` +Gets the column name in MySQL + + +```php +public function getForeignKeyChecks(): string; +``` +Generates SQL to check DB parameter FOREIGN_KEY_CHECKS. + + +```php +public function listTables( string $schemaName = null ): string; +``` +List all tables in database + +```php +print_r( + $dialect->listTables("blog") +); +``` + + +```php +public function listViews( string $schemaName = null ): string; +``` +Generates the SQL to list all views of a schema or user + + +```php +public function modifyColumn( string $tableName, string $schemaName, ColumnInterface $column, ColumnInterface $currentColumn = null ): string; +``` +Generates SQL to modify a column in a table + + +```php +public function sharedLock( string $sqlQuery ): string; +``` +Returns a SQL modified with a LOCK IN SHARE MODE clause + +```php +$sql = $dialect->sharedLock("SELECTFROM robots"); + +echo $sql; // SELECTFROM robots LOCK IN SHARE MODE +``` + + +```php +public function tableExists( string $tableName, string $schemaName = null ): string; +``` +Generates SQL checking for the existence of a schema.table + +```php +echo $dialect->tableExists("posts", "blog"); + +echo $dialect->tableExists("posts"); +``` + + +```php +public function tableOptions( string $table, string $schema = null ): string; +``` +Generates the SQL to describe the table creation options + + +```php +public function truncateTable( string $tableName, string $schemaName ): string; +``` +Generates SQL to truncate a table + + +```php +public function viewExists( string $viewName, string $schemaName = null ): string; +``` +Generates SQL checking for the existence of a schema.view + + +```php +protected function getTableOptions( array $definition ): string; +``` +Generates SQL to add the table creation options + + + + +

        Class Phalcon\Db\Dialect\Postgresql

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/dialect/postgresql.zep) + +| Namespace | Phalcon\Db\Dialect | +| Uses | Phalcon\Db\Dialect, Phalcon\Db\Column, Phalcon\Db\Exception, Phalcon\Db\IndexInterface, Phalcon\Db\ColumnInterface, Phalcon\Db\ReferenceInterface, Phalcon\Db\DialectInterface | +| Extends | Dialect | + +Generates database specific SQL for the PostgreSQL RDBMS + + +## Properties +```php +/** + * @var string + */ +protected escapeChar = \"; + +``` + +## Methods +```php +public function addColumn( string $tableName, string $schemaName, ColumnInterface $column ): string; +``` +Generates SQL to add a column to a table + + +```php +public function addForeignKey( string $tableName, string $schemaName, ReferenceInterface $reference ): string; +``` +Generates SQL to add an index to a table + + +```php +public function addIndex( string $tableName, string $schemaName, IndexInterface $index ): string; +``` +Generates SQL to add an index to a table + + +```php +public function addPrimaryKey( string $tableName, string $schemaName, IndexInterface $index ): string; +``` +Generates SQL to add the primary key to a table + + +```php +public function createTable( string $tableName, string $schemaName, array $definition ): string; +``` +Generates SQL to create a table + + +```php +public function createView( string $viewName, array $definition, string $schemaName = null ): string; +``` +Generates SQL to create a view + + +```php +public function describeColumns( string $table, string $schema = null ): string; +``` +Generates SQL describing a table + +```php +print_r( + $dialect->describeColumns("posts") +); +``` + + +```php +public function describeIndexes( string $table, string $schema = null ): string; +``` +Generates SQL to query indexes on a table + + +```php +public function describeReferences( string $table, string $schema = null ): string; +``` +Generates SQL to query foreign keys on a table + + +```php +public function dropColumn( string $tableName, string $schemaName, string $columnName ): string; +``` +Generates SQL to delete a column from a table + + +```php +public function dropForeignKey( string $tableName, string $schemaName, string $referenceName ): string; +``` +Generates SQL to delete a foreign key from a table + + +```php +public function dropIndex( string $tableName, string $schemaName, string $indexName ): string; +``` +Generates SQL to delete an index from a table + + +```php +public function dropPrimaryKey( string $tableName, string $schemaName ): string; +``` +Generates SQL to delete primary key from a table + + +```php +public function dropTable( string $tableName, string $schemaName = null, bool $ifExists = bool ): string; +``` +Generates SQL to drop a table + + +```php +public function dropView( string $viewName, string $schemaName = null, bool $ifExists = bool ): string; +``` +Generates SQL to drop a view + + +```php +public function getColumnDefinition( ColumnInterface $column ): string; +``` +Gets the column name in PostgreSQL + + +```php +public function listTables( string $schemaName = null ): string; +``` +List all tables in database + +```php +print_r( + $dialect->listTables("blog") +); +``` + + +```php +public function listViews( string $schemaName = null ): string; +``` +Generates the SQL to list all views of a schema or user + + +```php +public function modifyColumn( string $tableName, string $schemaName, ColumnInterface $column, ColumnInterface $currentColumn = null ): string; +``` +Generates SQL to modify a column in a table + + +```php +public function sharedLock( string $sqlQuery ): string; +``` +Returns a SQL modified a shared lock statement. For now this method +returns the original query + + +```php +public function tableExists( string $tableName, string $schemaName = null ): string; +``` +Generates SQL checking for the existence of a schema.table + +```php +echo $dialect->tableExists("posts", "blog"); + +echo $dialect->tableExists("posts"); +``` + + +```php +public function tableOptions( string $table, string $schema = null ): string; +``` +Generates the SQL to describe the table creation options + + +```php +public function truncateTable( string $tableName, string $schemaName ): string; +``` +Generates SQL to truncate a table + + +```php +public function viewExists( string $viewName, string $schemaName = null ): string; +``` +Generates SQL checking for the existence of a schema.view + + +```php +protected function castDefault( ColumnInterface $column ): string; +``` +// + +```php +protected function getTableOptions( array $definition ): string; +``` +// + + + +

        Class Phalcon\Db\Dialect\Sqlite

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/dialect/sqlite.zep) + +| Namespace | Phalcon\Db\Dialect | +| Uses | Phalcon\Db\Column, Phalcon\Db\Exception, Phalcon\Db\IndexInterface, Phalcon\Db\Dialect, Phalcon\Db\DialectInterface, Phalcon\Db\ColumnInterface, Phalcon\Db\ReferenceInterface | +| Extends | Dialect | + +Generates database specific SQL for the SQLite RDBMS + + +## Properties +```php +/** + * @var string + */ +protected escapeChar = \"; + +``` + +## Methods +```php +public function addColumn( string $tableName, string $schemaName, ColumnInterface $column ): string; +``` +Generates SQL to add a column to a table + + +```php +public function addForeignKey( string $tableName, string $schemaName, ReferenceInterface $reference ): string; +``` +Generates SQL to add an index to a table + + +```php +public function addIndex( string $tableName, string $schemaName, IndexInterface $index ): string; +``` +Generates SQL to add an index to a table + + +```php +public function addPrimaryKey( string $tableName, string $schemaName, IndexInterface $index ): string; +``` +Generates SQL to add the primary key to a table + + +```php +public function createTable( string $tableName, string $schemaName, array $definition ): string; +``` +Generates SQL to create a table + + +```php +public function createView( string $viewName, array $definition, string $schemaName = null ): string; +``` +Generates SQL to create a view + + +```php +public function describeColumns( string $table, string $schema = null ): string; +``` +Generates SQL describing a table + +```php +print_r( + $dialect->describeColumns("posts") +); +``` + + +```php +public function describeIndex( string $index ): string; +``` +Generates SQL to query indexes detail on a table + + +```php +public function describeIndexes( string $table, string $schema = null ): string; +``` +Generates SQL to query indexes on a table + + +```php +public function describeReferences( string $table, string $schema = null ): string; +``` +Generates SQL to query foreign keys on a table + + +```php +public function dropColumn( string $tableName, string $schemaName, string $columnName ): string; +``` +Generates SQL to delete a column from a table + + +```php +public function dropForeignKey( string $tableName, string $schemaName, string $referenceName ): string; +``` +Generates SQL to delete a foreign key from a table + + +```php +public function dropIndex( string $tableName, string $schemaName, string $indexName ): string; +``` +Generates SQL to delete an index from a table + + +```php +public function dropPrimaryKey( string $tableName, string $schemaName ): string; +``` +Generates SQL to delete primary key from a table + + +```php +public function dropTable( string $tableName, string $schemaName = null, bool $ifExists = bool ): string; +``` +Generates SQL to drop a table + + +```php +public function dropView( string $viewName, string $schemaName = null, bool $ifExists = bool ): string; +``` +Generates SQL to drop a view + + +```php +public function forUpdate( string $sqlQuery ): string; +``` +Returns a SQL modified with a FOR UPDATE clause. For SQLite it returns +the original query + + +```php +public function getColumnDefinition( ColumnInterface $column ): string; +``` +Gets the column name in SQLite + + +```php +public function listIndexesSql( string $table, string $schema = null, string $keyName = null ): string; +``` +Generates the SQL to get query list of indexes + +```php +print_r( + $dialect->listIndexesSql("blog") +); +``` + + +```php +public function listTables( string $schemaName = null ): string; +``` +List all tables in database + +```php +print_r( + $dialect->listTables("blog") +); +``` + + +```php +public function listViews( string $schemaName = null ): string; +``` +Generates the SQL to list all views of a schema or user + + +```php +public function modifyColumn( string $tableName, string $schemaName, ColumnInterface $column, ColumnInterface $currentColumn = null ): string; +``` +Generates SQL to modify a column in a table + + +```php +public function sharedLock( string $sqlQuery ): string; +``` +Returns a SQL modified a shared lock statement. For now this method +returns the original query + + +```php +public function tableExists( string $tableName, string $schemaName = null ): string; +``` +Generates SQL checking for the existence of a schema.table + +```php +echo $dialect->tableExists("posts", "blog"); + +echo $dialect->tableExists("posts"); +``` + + +```php +public function tableOptions( string $table, string $schema = null ): string; +``` +Generates the SQL to describe the table creation options + + +```php +public function truncateTable( string $tableName, string $schemaName ): string; +``` +Generates SQL to truncate a table + + +```php +public function viewExists( string $viewName, string $schemaName = null ): string; +``` +Generates SQL checking for the existence of a schema.view + + + + +

        Interface Phalcon\Db\DialectInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/dialectinterface.zep) + +| Namespace | Phalcon\Db | +| Uses | Phalcon\Db\ColumnInterface, Phalcon\Db\ReferenceInterface, Phalcon\Db\IndexInterface | + +Interface for Phalcon\Db dialects + + +## Methods +```php +public function addColumn( string $tableName, string $schemaName, ColumnInterface $column ): string; +``` +Generates SQL to add a column to a table + + +```php +public function addForeignKey( string $tableName, string $schemaName, ReferenceInterface $reference ): string; +``` +Generates SQL to add an index to a table + + +```php +public function addIndex( string $tableName, string $schemaName, IndexInterface $index ): string; +``` +Generates SQL to add an index to a table + + +```php +public function addPrimaryKey( string $tableName, string $schemaName, IndexInterface $index ): string; +``` +Generates SQL to add the primary key to a table + + +```php +public function createSavepoint( string $name ): string; +``` +Generate SQL to create a new savepoint + + +```php +public function createTable( string $tableName, string $schemaName, array $definition ): string; +``` +Generates SQL to create a table + + +```php +public function createView( string $viewName, array $definition, string $schemaName = null ): string; +``` +Generates SQL to create a view + + +```php +public function describeColumns( string $table, string $schema = null ): string; +``` +Generates SQL to describe a table + + +```php +public function describeIndexes( string $table, string $schema = null ): string; +``` +Generates SQL to query indexes on a table + + +```php +public function describeReferences( string $table, string $schema = null ): string; +``` +Generates SQL to query foreign keys on a table + + +```php +public function dropColumn( string $tableName, string $schemaName, string $columnName ): string; +``` +Generates SQL to delete a column from a table + + +```php +public function dropForeignKey( string $tableName, string $schemaName, string $referenceName ): string; +``` +Generates SQL to delete a foreign key from a table + + +```php +public function dropIndex( string $tableName, string $schemaName, string $indexName ): string; +``` + Generates SQL to delete an index from a table + + +```php +public function dropPrimaryKey( string $tableName, string $schemaName ): string; +``` +Generates SQL to delete primary key from a table + + +```php +public function dropTable( string $tableName, string $schemaName ): string; +``` +Generates SQL to drop a table + + +```php +public function dropView( string $viewName, string $schemaName = null, bool $ifExists = bool ): string; +``` +Generates SQL to drop a view + + +```php +public function forUpdate( string $sqlQuery ): string; +``` +Returns a SQL modified with a FOR UPDATE clause + + +```php +public function getColumnDefinition( ColumnInterface $column ): string; +``` +Gets the column name in RDBMS + + +```php +public function getColumnList( array $columnList ): string; +``` +Gets a list of columns + + +```php +public function getCustomFunctions(): array; +``` +Returns registered functions + + +```php +public function getSqlExpression( array $expression, string $escapeChar = null, mixed $bindCounts = null ): string; +``` +Transforms an intermediate representation for an expression into a +database system valid expression + + +```php +public function limit( string $sqlQuery, mixed $number ): string; +``` +Generates the SQL for LIMIT clause + + +```php +public function listTables( string $schemaName = null ): string; +``` +List all tables in database + + +```php +public function modifyColumn( string $tableName, string $schemaName, ColumnInterface $column, ColumnInterface $currentColumn = null ): string; +``` +Generates SQL to modify a column in a table + + +```php +public function registerCustomFunction( string $name, callable $customFunction ): Dialect; +``` +Registers custom SQL functions + + +```php +public function releaseSavepoint( string $name ): string; +``` +Generate SQL to release a savepoint + + +```php +public function rollbackSavepoint( string $name ): string; +``` +Generate SQL to rollback a savepoint + + +```php +public function select( array $definition ): string; +``` +Builds a SELECT statement + + +```php +public function sharedLock( string $sqlQuery ): string; +``` +Returns a SQL modified with a LOCK IN SHARE MODE clause + + +```php +public function supportsReleaseSavepoints(): bool; +``` +Checks whether the platform supports releasing savepoints. + + +```php +public function supportsSavepoints(): bool; +``` +Checks whether the platform supports savepoints + + +```php +public function tableExists( string $tableName, string $schemaName = null ): string; +``` +Generates SQL checking for the existence of a schema.table + + +```php +public function tableOptions( string $table, string $schema = null ): string; +``` +Generates the SQL to describe the table creation options + + +```php +public function viewExists( string $viewName, string $schemaName = null ): string; +``` +Generates SQL checking for the existence of a schema.view + + + + +

        Class Phalcon\Db\Enum

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/enum.zep) + +| Namespace | Phalcon\Db | + +Constants for Phalcon\Db + + +## Constants +```php +const FETCH_ASSOC; +const FETCH_BOTH; +const FETCH_BOUND; +const FETCH_CLASS; +const FETCH_CLASSTYPE; +const FETCH_COLUMN; +const FETCH_FUNC; +const FETCH_GROUP; +const FETCH_INTO; +const FETCH_KEY_PAIR; +const FETCH_LAZY; +const FETCH_NAMED; +const FETCH_NUM; +const FETCH_OBJ; +const FETCH_PROPS_LATE; +const FETCH_SERIALIZE; +const FETCH_UNIQUE; +``` + + +

        Class Phalcon\Db\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/exception.zep) + +| Namespace | Phalcon\Db | +| Extends | \Phalcon\Exception | + +Exceptions thrown in Phalcon\Db will use this class + + + +

        Class Phalcon\Db\Index

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/index.zep) + +| Namespace | Phalcon\Db | +| Implements | IndexInterface | + +Allows to define indexes to be used on tables. Indexes are a common way +to enhance database performance. An index allows the database server to find +and retrieve specific rows much faster than it could do without an index + +```php +// Define new unique index +$index_unique = new \Phalcon\Db\Index( + 'column_UNIQUE', + [ + 'column', + 'column', + ], + 'UNIQUE' +); + +// Define new primary index +$index_primary = new \Phalcon\Db\Index( + 'PRIMARY', + [ + 'column', + ] +); + +// Add index to existing table +$connection->addIndex("robots", null, $index_unique); +$connection->addIndex("robots", null, $index_primary); +``` + + +## Properties +```php +/** + * Index columns + * + * @var array + */ +protected columns; + +/** + * Index name + * + * @var string + */ +protected name; + +/** + * Index type + * + * @var string + */ +protected type; + +``` + +## Methods +```php +public function __construct( string $name, array $columns, string $type = string ): void; +``` +Phalcon\Db\Index constructor + + +```php +public function getColumns(): array +``` + + +```php +public function getName(): string +``` + + +```php +public function getType(): string +``` + + + + +

        Interface Phalcon\Db\IndexInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/indexinterface.zep) + +| Namespace | Phalcon\Db | + +Interface for Phalcon\Db\Index + + +## Methods +```php +public function getColumns(): array; +``` +Gets the columns that corresponds the index + + +```php +public function getName(): string; +``` +Gets the index name + + +```php +public function getType(): string; +``` +Gets the index type + + + + +

        Class Phalcon\Db\Profiler

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/profiler.zep) + +| Namespace | Phalcon\Db | +| Uses | Phalcon\Db\Profiler\Item | + +Instances of Phalcon\Db can generate execution profiles +on SQL statements sent to the relational database. Profiled +information includes execution time in milliseconds. +This helps you to identify bottlenecks in your applications. + +```php +use Phalcon\Db\Profiler; +use Phalcon\Events\Event; +use Phalcon\Events\Manager; + +$profiler = new Profiler(); +$eventsManager = new Manager(); + +$eventsManager->attach( + "db", + function (Event $event, $connection) use ($profiler) { + if ($event->getType() === "beforeQuery") { + $sql = $connection->getSQLStatement(); + + // Start a profile with the active connection + $profiler->startProfile($sql); + } + + if ($event->getType() === "afterQuery") { + // Stop the active profile + $profiler->stopProfile(); + } + } +); + +// Set the event manager on the connection +$connection->setEventsManager($eventsManager); + + +$sql = "SELECT buyer_name, quantity, product_name +FROM buyers LEFT JOIN products ON +buyers.pid=products.id"; + +// Execute a SQL statement +$connection->query($sql); + +// Get the last profile in the profiler +$profile = $profiler->getLastProfile(); + +echo "SQL Statement: ", $profile->getSQLStatement(), "\n"; +echo "Start Time: ", $profile->getInitialTime(), "\n"; +echo "Final Time: ", $profile->getFinalTime(), "\n"; +echo "Total Elapsed Time: ", $profile->getTotalElapsedSeconds(), "\n"; +``` + + +## Properties +```php +/** + * Active Phalcon\Db\Profiler\Item + * + * @var Phalcon\Db\Profiler\Item + */ +protected activeProfile; + +/** + * All the Phalcon\Db\Profiler\Item in the active profile + * + * @var \Phalcon\Db\Profiler\Item[] + */ +protected allProfiles; + +/** + * Total time spent by all profiles to complete + * + * @var float + */ +protected totalSeconds = 0; + +``` + +## Methods +```php +public function getLastProfile(): Item; +``` +Returns the last profile executed in the profiler + + +```php +public function getNumberTotalStatements(): int; +``` +Returns the total number of SQL statements processed + + +```php +public function getProfiles(): Item[]; +``` +Returns all the processed profiles + + +```php +public function getTotalElapsedSeconds(): double; +``` +Returns the total time in seconds spent by the profiles + + +```php +public function reset(): Profiler; +``` +Resets the profiler, cleaning up all the profiles + + +```php +public function startProfile( string $sqlStatement, mixed $sqlVariables = null, mixed $sqlBindTypes = null ): Profiler; +``` +Starts the profile of a SQL sentence + + +```php +public function stopProfile(): Profiler; +``` +Stops the active profile + + + + +

        Class Phalcon\Db\Profiler\Item

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/profiler/item.zep) + +| Namespace | Phalcon\Db\Profiler | + +This class identifies each profile in a Phalcon\Db\Profiler + + +## Properties +```php +/** + * Timestamp when the profile ended + * + * @var double + */ +protected finalTime; + +/** + * Timestamp when the profile started + * + * @var double + */ +protected initialTime; + +/** + * SQL bind types related to the profile + * + * @var array + */ +protected sqlBindTypes; + +/** + * SQL statement related to the profile + * + * @var string + */ +protected sqlStatement; + +/** + * SQL variables related to the profile + * + * @var array + */ +protected sqlVariables; + +``` + +## Methods +```php +public function getFinalTime(): double +``` + + +```php +public function getInitialTime(): double +``` + + +```php +public function getSqlBindTypes(): array +``` + + +```php +public function getSqlStatement(): string +``` + + +```php +public function getSqlVariables(): array +``` + + +```php +public function getTotalElapsedSeconds(): double; +``` +Returns the total time in seconds spent by the profile + + +```php +public function setFinalTime( double $finalTime ) +``` + + +```php +public function setInitialTime( double $initialTime ) +``` + + +```php +public function setSqlBindTypes( array $sqlBindTypes ) +``` + + +```php +public function setSqlStatement( string $sqlStatement ) +``` + + +```php +public function setSqlVariables( array $sqlVariables ) +``` + + + + +

        Class Phalcon\Db\RawValue

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/rawvalue.zep) + +| Namespace | Phalcon\Db | + +This class allows to insert/update raw data without quoting or formatting. + +The next example shows how to use the MySQL now() function as a field value. + +```php +$subscriber = new Subscribers(); + +$subscriber->email = "andres@phalcon.io"; +$subscriber->createdAt = new \Phalcon\Db\RawValue("now()"); + +$subscriber->save(); +``` + + +## Properties +```php +/** + * Raw value without quoting or formatting + * + * @var string + */ +protected value; + +``` + +## Methods +```php +public function __construct( mixed $value ): void; +``` +Phalcon\Db\RawValue constructor + + +```php +public function __toString(): string +``` + + +```php +public function getValue(): string +``` + + + + +

        Class Phalcon\Db\Reference

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/reference.zep) + +| Namespace | Phalcon\Db | +| Implements | ReferenceInterface | + +Allows to define reference constraints on tables + +```php +$reference = new \Phalcon\Db\Reference( + "field_fk", + [ + "referencedSchema" => "invoicing", + "referencedTable" => "products", + "columns" => [ + "producttype", + "product_code", + ], + "referencedColumns" => [ + "type", + "code", + ], + ] +); +``` + + +## Properties +```php +/** + * Local reference columns + * + * @var array + */ +protected columns; + +/** + * Constraint name + * + * @var string + */ +protected name; + +/** + * Referenced Columns + * + * @var array + */ +protected referencedColumns; + +/** + * Referenced Schema + * + * @var string + */ +protected referencedSchema; + +/** + * Referenced Table + * + * @var string + */ +protected referencedTable; + +/** + * Schema name + * + * @var string + */ +protected schemaName; + +/** + * ON DELETE + * + * @var string + */ +protected onDelete; + +/** + * ON UPDATE + * + * @var string + */ +protected onUpdate; + +``` + +## Methods +```php +public function __construct( string $name, array $definition ): void; +``` +Phalcon\Db\Reference constructor + + +```php +public function getColumns(): array +``` + + +```php +public function getName(): string +``` + + +```php +public function getOnDelete(): string +``` + + +```php +public function getOnUpdate(): string +``` + + +```php +public function getReferencedColumns(): array +``` + + +```php +public function getReferencedSchema(): string +``` + + +```php +public function getReferencedTable(): string +``` + + +```php +public function getSchemaName(): string +``` + + + + +

        Interface Phalcon\Db\ReferenceInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/referenceinterface.zep) + +| Namespace | Phalcon\Db | + +Interface for Phalcon\Db\Reference + + +## Methods +```php +public function getColumns(): array; +``` +Gets local columns which reference is based + + +```php +public function getName(): string; +``` +Gets the index name + + +```php +public function getOnDelete(): string; +``` +Gets the referenced on delete + + +```php +public function getOnUpdate(): string; +``` +Gets the referenced on update + + +```php +public function getReferencedColumns(): array; +``` +Gets referenced columns + + +```php +public function getReferencedSchema(): string; +``` +Gets the schema where referenced table is + + +```php +public function getReferencedTable(): string; +``` +Gets the referenced table + + +```php +public function getSchemaName(): string; +``` +Gets the schema where referenced table is + + + + +

        Class Phalcon\Db\Result\Pdo

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/result/pdo.zep) + +| Namespace | Phalcon\Db\Result | +| Uses | Phalcon\Db\Enum, Phalcon\Db\ResultInterface, Phalcon\Db\Adapter\AdapterInterface | +| Implements | ResultInterface | + +Encapsulates the resultset internals + +```php +$result = $connection->query("SELECTFROM robots ORDER BY name"); + +$result->setFetchMode( + \Phalcon\Db\Enum::FETCH_NUM +); + +while ($robot = $result->fetchArray()) { + print_r($robot); +} +``` + + +## Properties +```php +// +protected bindParams; + +// +protected bindTypes; + +// +protected connection; + +/** + * Active fetch mode + */ +protected fetchMode; + +/** + * Internal resultset + * + * @var \PDOStatement + */ +protected pdoStatement; + +// +protected result; + +// +protected rowCount = false; + +// +protected sqlStatement; + +``` + +## Methods +```php +public function __construct( AdapterInterface $connection, \PDOStatement $result, mixed $sqlStatement = null, mixed $bindParams = null, mixed $bindTypes = null ): void; +``` +Phalcon\Db\Result\Pdo constructor + + +```php +public function dataSeek( long $number ): void; +``` +Moves internal resultset cursor to another position letting us to fetch a +certain row + +```php +$result = $connection->query( + "SELECTFROM robots ORDER BY name" +); + +// Move to third row on result +$result->dataSeek(2); + +// Fetch third row +$row = $result->fetch(); +``` + + +```php +public function execute(): bool; +``` +Allows to execute the statement again. Some database systems don't +support scrollable cursors. So, as cursors are forward only, we need to +execute the cursor again to fetch rows from the begining + + +```php +public function fetch( mixed $fetchStyle = null, mixed $cursorOrientation = null, mixed $cursorOffset = null ); +``` +Fetches an array/object of strings that corresponds to the fetched row, +or FALSE if there are no more rows. This method is affected by the active +fetch flag set using `Phalcon\Db\Result\Pdo::setFetchMode()` + +```php +$result = $connection->query("SELECTFROM robots ORDER BY name"); + +$result->setFetchMode( + \Phalcon\Enum::FETCH_OBJ +); + +while ($robot = $result->fetch()) { + echo $robot->name; +} +``` + + +```php +public function fetchAll( mixed $fetchStyle = null, mixed $fetchArgument = null, mixed $ctorArgs = null ): array; +``` +Returns an array of arrays containing all the records in the result +This method is affected by the active fetch flag set using +`Phalcon\Db\Result\Pdo::setFetchMode()` + +```php +$result = $connection->query( + "SELECTFROM robots ORDER BY name" +); + +$robots = $result->fetchAll(); +``` + + +```php +public function fetchArray(); +``` +Returns an array of strings that corresponds to the fetched row, or FALSE +if there are no more rows. This method is affected by the active fetch +flag set using `Phalcon\Db\Result\Pdo::setFetchMode()` + +```php +$result = $connection->query("SELECTFROM robots ORDER BY name"); + +$result->setFetchMode( + \Phalcon\Enum::FETCH_NUM +); + +while ($robot = result->fetchArray()) { + print_r($robot); +} +``` + + +```php +public function getInternalResult(): \PDOStatement; +``` +Gets the internal PDO result object + + +```php +public function numRows(): int; +``` +Gets number of rows returned by a resultset + +```php +$result = $connection->query( + "SELECTFROM robots ORDER BY name" +); + +echo "There are ", $result->numRows(), " rows in the resultset"; +``` + + +```php +public function setFetchMode( int $fetchMode, mixed $colNoOrClassNameOrObject = null, mixed $ctorargs = null ): bool; +``` +Changes the fetching mode affecting Phalcon\Db\Result\Pdo::fetch() + +```php +// Return array with integer indexes +$result->setFetchMode( + \Phalcon\Enum::FETCH_NUM +); + +// Return associative array without integer indexes +$result->setFetchMode( + \Phalcon\Enum::FETCH_ASSOC +); + +// Return associative array together with integer indexes +$result->setFetchMode( + \Phalcon\Enum::FETCH_BOTH +); + +// Return an object +$result->setFetchMode( + \Phalcon\Enum::FETCH_OBJ +); +``` + + + + +

        Interface Phalcon\Db\ResultInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/resultinterface.zep) + +| Namespace | Phalcon\Db | + +Interface for Phalcon\Db\Result objects + + +## Methods +```php +public function dataSeek( long $number ); +``` +Moves internal resultset cursor to another position letting us to fetch a +certain row + + +```php +public function execute(): bool; +``` +Allows to executes the statement again. Some database systems don't +support scrollable cursors. So, as cursors are forward only, we need to +execute the cursor again to fetch rows from the begining + + +```php +public function fetch(): mixed; +``` +Fetches an array/object of strings that corresponds to the fetched row, +or FALSE if there are no more rows. This method is affected by the active +fetch flag set using `Phalcon\Db\Result\Pdo::setFetchMode()` + + +```php +public function fetchAll(): array; +``` +Returns an array of arrays containing all the records in the result. This +method is affected by the active fetch flag set using +`Phalcon\Db\Result\Pdo::setFetchMode()` + + +```php +public function fetchArray(): mixed; +``` +Returns an array of strings that corresponds to the fetched row, or FALSE +if there are no more rows. This method is affected by the active fetch +flag set using `Phalcon\Db\Result\Pdo::setFetchMode()` + + +```php +public function getInternalResult(): \PDOStatement; +``` +Gets the internal PDO result object + + +```php +public function numRows(): int; +``` +Gets number of rows returned by a resultset + + +```php +public function setFetchMode( int $fetchMode ): bool; +``` +Changes the fetching mode affecting Phalcon\Db\Result\Pdo::fetch() + + diff --git a/nikos/api/Phalcon_Debug.md b/nikos/api/Phalcon_Debug.md new file mode 100644 index 00000000000..ec9ea486d3c --- /dev/null +++ b/nikos/api/Phalcon_Debug.md @@ -0,0 +1,332 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Debug' +--- + +* [Phalcon\Debug](#debug) +* [Phalcon\Debug\Dump](#debug-dump) +* [Phalcon\Debug\Exception](#debug-exception) + +

        Class Phalcon\Debug

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/debug.zep) + +| Namespace | Phalcon | +| Uses | ErrorException, Phalcon\Helper\Arr, Phalcon\Version, Phalcon\Tag, ReflectionClass, ReflectionFunction | + +Provides debug capabilities to Phalcon applications + + +## Properties +```php +/** + * @var array + */ +protected blacklist; + +// +protected data; + +/** + * @var bool + */ +protected hideDocumentRoot = false; + +/** + * @var bool + */ +protected static isActive; + +/** + * @var bool + */ +protected showBackTrace = true; + +/** + * @var bool + */ +protected showFileFragment = false; + +/** + * @var bool + */ +protected showFiles = true; + +/** + * @var string + */ +protected uri = https://assets.phalcon.io/debug/4.0.x/; + +``` + +## Methods +```php +public function clearVars(): Debug; +``` +Clears are variables added previously + + +```php +public function debugVar( mixed $varz, string $key = null ): Debug; +``` +Adds a variable to the debug output + + +```php +public function getCssSources(): string; +``` +Returns the css sources + + +```php +public function getJsSources(): string; +``` +Returns the javascript sources + + +```php +public function getVersion(): string; +``` +Generates a link to the current version documentation + + +```php +public function halt(): void; +``` +Halts the request showing a backtrace + + +```php +public function listen( bool $exceptions = bool, bool $lowSeverity = bool ): Debug; +``` +Listen for uncaught exceptions and unsilent notices or warnings + + +```php +public function listenExceptions(): Debug; +``` +Listen for uncaught exceptions + + +```php +public function listenLowSeverity(): Debug; +``` +Listen for unsilent notices or warnings + + +```php +public function onUncaughtException( \Exception $exception ): bool; +``` +Handles uncaught exceptions + + +```php +public function onUncaughtLowSeverity( mixed $severity, mixed $message, mixed $file, mixed $line, mixed $context ): void; +``` +Throws an exception when a notice or warning is raised + + +```php +public function setBlacklist( array $blacklist ): Debug; +``` +Sets if files the exception's backtrace must be showed + + +```php +public function setShowBackTrace( bool $showBackTrace ): Debug; +``` +Sets if files the exception's backtrace must be showed + + +```php +public function setShowFileFragment( bool $showFileFragment ): Debug; +``` +Sets if files must be completely opened and showed in the output +or just the fragment related to the exception + + +```php +public function setShowFiles( bool $showFiles ): Debug; +``` +Set if files part of the backtrace must be shown in the output + + +```php +public function setUri( string $uri ): Debug; +``` +Change the base URI for static resources + + +```php +protected function escapeString( mixed $value ): string; +``` +Escapes a string with htmlentities + + +```php +protected function getArrayDump( array $argument, mixed $n = int ): string | null; +``` +Produces a recursive representation of an array + + +```php +protected function getVarDump( mixed $variable ): string; +``` +Produces an string representation of a variable + + +```php +final protected function showTraceItem( int $n, array $trace ): string; +``` +Shows a backtrace item + + + + +

        Class Phalcon\Debug\Dump

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/debug/dump.zep) + +| Namespace | Phalcon\Debug | +| Uses | Phalcon\Di, Reflection, ReflectionClass, ReflectionProperty, stdClass | + +Dumps information about a variable(s) + +```php +$foo = 123; + +echo (new \Phalcon\Debug\Dump())->variable($foo, "foo"); +``` + +```php +$foo = "string"; +$bar = ["key" => "value"]; +$baz = new stdClass(); + +echo (new \Phalcon\Debug\Dump())->variables($foo, $bar, $baz); +``` + + +## Properties +```php +/** + * @var bool + */ +protected detailed = false; + +/** + * @var array + */ +protected methods; + +/** + * @var array + */ +protected styles; + +``` + +## Methods +```php +public function __construct( array $styles = [], bool $detailed = bool ): void; +``` +Phalcon\Debug\Dump constructor + + +```php +public function all(): string; +``` +Alias of variables() method + + +```php +public function getDetailed(): bool +``` + + +```php +public function one( mixed $variable, string $name = null ): string; +``` +Alias of variable() method + + +```php +public function setDetailed( bool $detailed ) +``` + + +```php +public function setStyles( array $styles = [] ): array; +``` +Set styles for vars type + + +```php +public function toJson( mixed $variable ): string; +``` +Returns an JSON string of information about a single variable. + +```php +$foo = [ + "key" => "value", +]; + +echo (new \Phalcon\Debug\Dump())->toJson($foo); + +$foo = new stdClass(); +$foo->bar = "buz"; + +echo (new \Phalcon\Debug\Dump())->toJson($foo); +``` + + +```php +public function variable( mixed $variable, string $name = null ): string; +``` +Returns an HTML string of information about a single variable. + +```php +echo (new \Phalcon\Debug\Dump())->variable($foo, "foo"); +``` + + +```php +public function variables(): string; +``` +Returns an HTML string of debugging information about any number of +variables, each wrapped in a "pre" tag. + +```php +$foo = "string"; +$bar = ["key" => "value"]; +$baz = new stdClass(); + +echo (new \Phalcon\Debug\Dump())->variables($foo, $bar, $baz); +``` + + +```php +protected function getStyle( string $type ): string; +``` +Get style for type + + +```php +protected function output( mixed $variable, string $name = null, int $tab = int ): string; +``` +Prepare an HTML string of information about a single variable. + + + + +

        Class Phalcon\Debug\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/debug/exception.zep) + +| Namespace | Phalcon\Debug | +| Extends | \Phalcon\Exception | + +Exceptions thrown in Phalcon\Debug will use this class + diff --git a/nikos/api/Phalcon_Di.md b/nikos/api/Phalcon_Di.md new file mode 100644 index 00000000000..00b71a15236 --- /dev/null +++ b/nikos/api/Phalcon_Di.md @@ -0,0 +1,863 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Di' +--- + +* [Phalcon\Di](#di) +* [Phalcon\Di\AbstractInjectionAware](#di-abstractinjectionaware) +* [Phalcon\Di\DiInterface](#di-diinterface) +* [Phalcon\Di\Exception](#di-exception) +* [Phalcon\Di\Exception\ServiceResolutionException](#di-exception-serviceresolutionexception) +* [Phalcon\Di\FactoryDefault](#di-factorydefault) +* [Phalcon\Di\FactoryDefault\Cli](#di-factorydefault-cli) +* [Phalcon\Di\Injectable](#di-injectable) +* [Phalcon\Di\InjectionAwareInterface](#di-injectionawareinterface) +* [Phalcon\Di\Service](#di-service) +* [Phalcon\Di\Service\Builder](#di-service-builder) +* [Phalcon\Di\ServiceInterface](#di-serviceinterface) +* [Phalcon\Di\ServiceProviderInterface](#di-serviceproviderinterface) + +

        Class Phalcon\Di

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/di.zep) + +| Namespace | Phalcon | +| Uses | Phalcon\Config, Phalcon\Di\Service, Phalcon\Di\DiInterface, Phalcon\Di\Exception, Phalcon\Di\Exception\ServiceResolutionException, Phalcon\Config\Adapter\Php, Phalcon\Config\Adapter\Yaml, Phalcon\Di\ServiceInterface, Phalcon\Events\ManagerInterface, Phalcon\Di\InjectionAwareInterface, Phalcon\Di\ServiceProviderInterface | +| Implements | DiInterface | + +Phalcon\Di is a component that implements Dependency Injection/Service +Location of services and it's itself a container for them. + +Since Phalcon is highly decoupled, Phalcon\Di is essential to integrate the +different components of the framework. The developer can also use this +component to inject dependencies and manage global instances of the different +classes used in the application. + +Basically, this component implements the `Inversion of Control` pattern. +Applying this, the objects do not receive their dependencies using setters or +constructors, but requesting a service dependency injector. This reduces the +overall complexity, since there is only one way to get the required +dependencies within a component. + +Additionally, this pattern increases testability in the code, thus making it +less prone to errors. + +```php +use Phalcon\Di; +use Phalcon\Http\Request; + +$di = new Di(); + +// Using a string definition +$di->set("request", Request::class, true); + +// Using an anonymous function +$di->setShared( + "request", + function () { + return new Request(); + } +); + +$request = $di->getRequest(); +``` + + +## Properties +```php +/** + * List of registered services + */ +protected services; + +/** + * List of shared instances + */ +protected sharedInstances; + +/** + * Events Manager + * + * @var ManagerInterface + */ +protected eventsManager; + +/** + * Latest DI build + */ +protected static _default; + +``` + +## Methods +```php +public function __call( string $method, array $arguments = [] ): mixed | null; +``` +Magic method to get or set services using setters/getters + + +```php +public function __construct(): void; +``` +Phalcon\Di constructor + + +```php +public function attempt( string $name, mixed $definition, bool $shared = bool ): ServiceInterface | bool; +``` +Attempts to register a service in the services container +Only is successful if a service hasn't been registered previously +with the same name + + +```php +public function get( string $name, mixed $parameters = null ): mixed; +``` +Resolves the service based on its configuration + + +```php +public function getInternalEventsManager(): ManagerInterface; +``` +Returns the internal event manager + + +```php +public function getRaw( string $name ): mixed; +``` +Returns a service definition without resolving + + +```php +public function getService( string $name ): ServiceInterface; +``` +Returns a Phalcon\Di\Service instance + + +```php +public function getServices(): ServiceInterface[]; +``` +Return the services registered in the DI + + +```php +public function getShared( string $name, mixed $parameters = null ): mixed; +``` +Resolves a service, the resolved service is stored in the DI, subsequent +requests for this service will return the same instance + + +```php +public function has( string $name ): bool; +``` +Check whether the DI contains a service by a name + + +```php +public function loadFromPhp( string $filePath ): void; +``` +Loads services from a php config file. + +```php +$di->loadFromPhp("path/services.php"); +``` + +And the services can be specified in the file as: + +```php +return [ + 'myComponent' => [ + 'className' => '\Acme\Components\MyComponent', + 'shared' => true, + ], + 'group' => [ + 'className' => '\Acme\Group', + 'arguments' => [ + [ + 'type' => 'service', + 'service' => 'myComponent', + ], + ], + ], + 'user' => [ + 'className' => '\Acme\User', + ], +]; +``` + +@link https://docs.phalcon.io/en/latest/reference/di.html + + +```php +public function loadFromYaml( string $filePath, array $callbacks = null ): void; +``` +Loads services from a yaml file. + +```php +$di->loadFromYaml( + "path/services.yaml", + [ + "!approot" => function ($value) { + return dirname(__DIR__) . $value; + } + ] +); +``` + +And the services can be specified in the file as: + +```php +myComponent: + className: \Acme\Components\MyComponent + shared: true + +group: + className: \Acme\Group + arguments: + - type: service + name: myComponent + +user: + className: \Acme\User +``` + +@link https://docs.phalcon.io/en/latest/reference/di.html + + +```php +public function offsetExists( mixed $name ): bool; +``` +Check if a service is registered using the array syntax + + +```php +public function offsetGet( mixed $name ): mixed; +``` +Allows to obtain a shared service using the array syntax + +```php +var_dump($di["request"]); +``` + + +```php +public function offsetSet( mixed $name, mixed $definition ): void; +``` +Allows to register a shared service using the array syntax + +```php +$di["request"] = new \Phalcon\Http\Request(); +``` + + +```php +public function offsetUnset( mixed $name ): void; +``` +Removes a service from the services container using the array syntax + + +```php +public function register( ServiceProviderInterface $provider ): void; +``` +Registers a service provider. + +```php +use Phalcon\Di\DiInterface; +use Phalcon\Di\ServiceProviderInterface; + +class SomeServiceProvider implements ServiceProviderInterface +{ + public function register(DiInterface $di) + { + $di->setShared( + 'service', + function () { + // ... + } + ); + } +} +``` + + +```php +public function remove( string $name ): void; +``` +Removes a service in the services container +It also removes any shared instance created for the service + + +```php +public function set( string $name, mixed $definition, bool $shared = bool ): ServiceInterface; +``` +Registers a service in the services container + + +```php +public function setInternalEventsManager( ManagerInterface $eventsManager ); +``` +Sets the internal event manager + + +```php +public function setRaw( string $name, ServiceInterface $rawDefinition ): ServiceInterface; +``` +Sets a service using a raw Phalcon\Di\Service definition + + +```php +public function setShared( string $name, mixed $definition ): ServiceInterface; +``` +Registers an "always shared" service in the services container + + +```php +protected function loadFromConfig( Config $config ): void; +``` +Loads services from a Config object. + + + + +

        Abstract Class Phalcon\Di\AbstractInjectionAware

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/di/abstractinjectionaware.zep) + +| Namespace | Phalcon\Di | +| Uses | Phalcon\Di, Phalcon\Di\DiInterface, Phalcon\Di\InjectionAwareInterface | +| Implements | InjectionAwareInterface | + +This abstract class offers common access to the DI in a class + + +## Properties +```php +/** + * Dependency Injector + * + * @var DiInterface + */ +protected container; + +``` + +## Methods +```php +public function getDI(): DiInterface; +``` +Returns the internal dependency injector + + +```php +public function setDI( DiInterface $container ): void; +``` +Sets the dependency injector + + + + +

        Interface Phalcon\Di\DiInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/di/diinterface.zep) + +| Namespace | Phalcon\Di | +| Uses | ArrayAccess, Phalcon\Di\ServiceInterface | +| Extends | ArrayAccess | + +Interface for Phalcon\Di + + +## Methods +```php +public function attempt( string $name, mixed $definition, bool $shared = bool ): ServiceInterface | bool; +``` +Attempts to register a service in the services container +Only is successful if a service hasn't been registered previously +with the same name + +@param mixed definition + + +```php +public function get( string $name, mixed $parameters = null ): mixed; +``` +Resolves the service based on its configuration + + +```php +public function getRaw( string $name ): mixed; +``` +Returns a service definition without resolving + + +```php +public function getService( string $name ): ServiceInterface; +``` +Returns the corresponding Phalcon\Di\Service instance for a service + + +```php +public function getServices(): ServiceInterface[]; +``` +Return the services registered in the DI + + +```php +public function getShared( string $name, mixed $parameters = null ): mixed; +``` +Returns a shared service based on their configuration + + +```php +public function has( string $name ): bool; +``` +Check whether the DI contains a service by a name + + +```php +public function remove( string $name ): void; +``` +Removes a service in the services container + + +```php +public function set( string $name, mixed $definition, bool $shared = bool ): ServiceInterface; +``` +Registers a service in the services container + + +```php +public function setRaw( string $name, ServiceInterface $rawDefinition ): ServiceInterface; +``` +Sets a service using a raw Phalcon\Di\Service definition + + +```php +public function setShared( string $name, mixed $definition ): ServiceInterface; +``` +Registers an "always shared" service in the services container + + + + +

        Class Phalcon\Di\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/di/exception.zep) + +| Namespace | Phalcon\Di | +| Extends | \Phalcon\Exception | + +Exceptions thrown in Phalcon\Di will use this class + + + +

        Class Phalcon\Di\Exception\ServiceResolutionException

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/di/exception/serviceresolutionexception.zep) + +| Namespace | Phalcon\Di\Exception | +| Uses | Phalcon\Di\Exception\ServiceResolutionException | +| Extends | \Phalcon\Di\Exception | + + Phalcon\Di\Exception\ServiceResolutionException + + + +

        Class Phalcon\Di\FactoryDefault

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/di/factorydefault.zep) + +| Namespace | Phalcon\Di | +| Uses | Phalcon\Filter\FilterFactory | +| Extends | \Phalcon\Di | + +This is a variant of the standard Phalcon\Di. By default it automatically +registers all the services provided by the framework. Thanks to this, the +developer does not need to register each service individually providing a +full stack framework + + +## Methods +```php +public function __construct(): void; +``` +Phalcon\Di\FactoryDefault constructor + + + + +

        Class Phalcon\Di\FactoryDefault\Cli

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/di/factorydefault/cli.zep) + +| Namespace | Phalcon\Di\FactoryDefault | +| Uses | Phalcon\Di\FactoryDefault, Phalcon\Di\Service, Phalcon\Filter\FilterFactory | +| Extends | FactoryDefault | + +Phalcon\Di\FactoryDefault\Cli + +This is a variant of the standard Phalcon\Di. By default it automatically +registers all the services provided by the framework. +Thanks to this, the developer does not need to register each service individually. +This class is specially suitable for CLI applications + + +## Methods +```php +public function __construct(): void; +``` +Phalcon\Di\FactoryDefault\Cli constructor + + + + +

        Abstract Class Phalcon\Di\Injectable

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/di/injectable.zep) + +| Namespace | Phalcon\Di | +| Uses | Phalcon\Di, Phalcon\Di\DiInterface, Phalcon\Events\ManagerInterface, Phalcon\Di\InjectionAwareInterface, Phalcon\Events\EventsAwareInterface, Phalcon\Di\Exception, Phalcon\Session\BagInterface | +| Implements | InjectionAwareInterface, EventsAwareInterface | + +This class allows to access services in the services container by just only +accessing a public property with the same name of a registered service + +@property \Phalcon\Mvc\Dispatcher|\Phalcon\Mvc\DispatcherInterface $dispatcher +@property \Phalcon\Mvc\Router|\Phalcon\Mvc\RouterInterface $router +@property \Phalcon\Url|\Phalcon\Url\UrlInterface $url +@property \Phalcon\Http\Request|\Phalcon\Http\RequestInterface $request +@property \Phalcon\Http\Response|\Phalcon\Http\ResponseInterface $response +@property \Phalcon\Http\Response\Cookies|\Phalcon\Http\Response\CookiesInterface $cookies +@property \Phalcon\Filter\FilterLocator $filter +@property \Phalcon\Flash\Direct $flash +@property \Phalcon\Flash\Session $flashSession +@property \Phalcon\Session\ManagerInterface $session +@property \Phalcon\Events\Manager|\Phalcon\Events\ManagerInterface $eventsManager +@property \Phalcon\Db\Adapter\AdapterInterface $db +@property \Phalcon\Security $security +@property \Phalcon\Crypt|\Phalcon\CryptInterface $crypt +@property \Phalcon\Tag $tag +@property \Phalcon\Escaper|\Phalcon\Escaper\EscaperInterface $escaper +@property \Phalcon\Annotations\Adapter\Memory|\Phalcon\Annotations\Adapter $annotations +@property \Phalcon\Mvc\Model\Manager|\Phalcon\Mvc\Model\ManagerInterface $modelsManager +@property \Phalcon\Mvc\Model\MetaData\Memory|\Phalcon\Mvc\Model\MetadataInterface $modelsMetadata +@property \Phalcon\Mvc\Model\Transaction\Manager|\Phalcon\Mvc\Model\Transaction\ManagerInterface $transactionManager +@property \Phalcon\Assets\Manager $assets +@property \Phalcon\Di|\Phalcon\Di\DiInterface $di +@property \Phalcon\Session\Bag|\Phalcon\Session\BagInterface $persistent +@property \Phalcon\Mvc\View|\Phalcon\Mvc\ViewInterface $view + + +## Properties +```php +/** + * Dependency Injector + * + * @var DiInterface + */ +protected container; + +/** + * Events Manager + * + * @var \Phalcon\Events\ManagerInterface + */ +protected eventsManager; + +``` + +## Methods +```php +public function __get( string $propertyName ): mixed | null; +``` +Magic method __get + + +```php +public function getDI(): DiInterface; +``` +Returns the internal dependency injector + + +```php +public function getEventsManager(): ManagerInterface; +``` +Returns the internal event manager + + +```php +public function setDI( DiInterface $container ): void; +``` +Sets the dependency injector + + +```php +public function setEventsManager( ManagerInterface $eventsManager ): void; +``` +Sets the event manager + + + + +

        Interface Phalcon\Di\InjectionAwareInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/di/injectionawareinterface.zep) + +| Namespace | Phalcon\Di | +| Uses | Phalcon\Di\DiInterface | + +This interface must be implemented in those classes that uses internally the +Phalcon\Di that creates them + + +## Methods +```php +public function getDI(): DiInterface; +``` +Returns the internal dependency injector + + +```php +public function setDI( DiInterface $container ): void; +``` +Sets the dependency injector + + + + +

        Class Phalcon\Di\Service

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/di/service.zep) + +| Namespace | Phalcon\Di | +| Uses | Closure, Phalcon\Di\DiInterface, Phalcon\Di\Exception, Phalcon\Di\Exception\ServiceResolutionException, Phalcon\Di\ServiceInterface, Phalcon\Di\Service\Builder | +| Implements | ServiceInterface | + +Represents individually a service in the services container + +```php +$service = new \Phalcon\Di\Service( + "request", + \Phalcon\Http\Request::class +); + +$request = service->resolve(); +``` + + +## Properties +```php +// +protected definition; + +/** + * @var bool + */ +protected resolved = false; + +/** + * @var bool + */ +protected shared = false; + +// +protected sharedInstance; + +``` + +## Methods +```php +final public function __construct( mixed $definition, bool $shared = bool ): void; +``` +Phalcon\Di\Service + + +```php +public function getDefinition(): mixed; +``` +Returns the service definition + + +```php +public function getParameter( int $position ); +``` +Returns a parameter in a specific position + +@return array + + +```php +public function isResolved(): bool; +``` +Returns true if the service was resolved + + +```php +public function isShared(): bool; +``` +Check whether the service is shared or not + + +```php +public function resolve( mixed $parameters = null, DiInterface $container = null ): mixed; +``` +Resolves the service + +@param array parameters + + +```php +public function setDefinition( mixed $definition ): void; +``` +Set the service definition + + +```php +public function setParameter( int $position, array $parameter ): ServiceInterface; +``` +Changes a parameter in the definition without resolve the service + + +```php +public function setShared( bool $shared ): void; +``` +Sets if the service is shared or not + + +```php +public function setSharedInstance( mixed $sharedInstance ): void; +``` +Sets/Resets the shared instance related to the service + + + + +

        Class Phalcon\Di\Service\Builder

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/di/service/builder.zep) + +| Namespace | Phalcon\Di\Service | +| Uses | Phalcon\Di\DiInterface, Phalcon\Di\Exception | + +Phalcon\Di\Service\Builder + +This class builds instances based on complex definitions + + +## Methods +```php +public function build( DiInterface $container, array $definition, mixed $parameters = null ); +``` +Builds a service using a complex service definition + +@param array parameters +@return mixed + + + + +

        Interface Phalcon\Di\ServiceInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/di/serviceinterface.zep) + +| Namespace | Phalcon\Di | +| Uses | Phalcon\Di\DiInterface | + +Represents a service in the services container + + +## Methods +```php +public function getDefinition(): mixed; +``` +Returns the service definition + + +```php +public function getParameter( int $position ); +``` +Returns a parameter in a specific position + +@return array + + +```php +public function isResolved(): bool; +``` +Returns true if the service was resolved + + +```php +public function isShared(): bool; +``` +Check whether the service is shared or not + + +```php +public function resolve( mixed $parameters = null, DiInterface $container = null ): mixed; +``` +Resolves the service + +@param array parameters + + +```php +public function setDefinition( mixed $definition ); +``` +Set the service definition + + +```php +public function setParameter( int $position, array $parameter ): ServiceInterface; +``` +Changes a parameter in the definition without resolve the service + + +```php +public function setShared( bool $shared ); +``` +Sets if the service is shared or not + + + + +

        Interface Phalcon\Di\ServiceProviderInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/di/serviceproviderinterface.zep) + +| Namespace | Phalcon\Di | +| Uses | Phalcon\Di\DiInterface | + +Should be implemented by service providers, or such components, which +register a service in the service container. + +```php +namespace Acme; + +use Phalcon\Di\DiInterface; +use Phalcon\Di\ServiceProviderInterface; + +class SomeServiceProvider implements ServiceProviderInterface +{ + public function register(DiInterface $di) + { + $di->setShared( + 'service', + function () { + // ... + } + ); + } +} +``` + + +## Methods +```php +public function register( DiInterface $di ): void; +``` +Registers a service provider. + + diff --git a/nikos/api/Phalcon_Dispatcher.md b/nikos/api/Phalcon_Dispatcher.md new file mode 100644 index 00000000000..06824a48551 --- /dev/null +++ b/nikos/api/Phalcon_Dispatcher.md @@ -0,0 +1,532 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Dispatcher' +--- + +* [Phalcon\Dispatcher\AbstractDispatcher](#dispatcher-abstractdispatcher) +* [Phalcon\Dispatcher\DispatcherInterface](#dispatcher-dispatcherinterface) +* [Phalcon\Dispatcher\Exception](#dispatcher-exception) + +

        Abstract Class Phalcon\Dispatcher\AbstractDispatcher

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/dispatcher/abstractdispatcher.zep) + +| Namespace | Phalcon\Dispatcher | +| Uses | Exception, Phalcon\Di\DiInterface, Phalcon\Di\AbstractInjectionAware, Phalcon\Dispatcher\DispatcherInterface, Phalcon\Dispatcher\Exception, Phalcon\Events\EventsAwareInterface, Phalcon\Events\ManagerInterface, Phalcon\Filter\FilterInterface, Phalcon\Mvc\Model\Binder, Phalcon\Mvc\Model\BinderInterface | +| Extends | AbstractInjectionAware | +| Implements | DispatcherInterface, EventsAwareInterface | + +This is the base class for Phalcon\Mvc\Dispatcher and Phalcon\Cli\Dispatcher. +This class can't be instantiated directly, you can use it to create your own +dispatchers. + + +## Properties +```php +// +protected activeHandler; + +/** + * @var array + */ +protected activeMethodMap; + +// +protected actionName; + +/** + * @var string + */ +protected actionSuffix = Action; + +/** + * @var array + */ +protected camelCaseMap; + +/** + * @var string + */ +protected defaultAction = ; + +// +protected defaultNamespace; + +// +protected defaultHandler; + +/** + * @var array + */ +protected handlerHashes; + +// +protected handlerName; + +/** + * @var string + */ +protected handlerSuffix = ; + +// +protected eventsManager; + +/** + * @var bool + */ +protected finished = false; + +/** + * @var bool + */ +protected forwarded = false; + +/** + * @var bool + */ +protected isControllerInitialize = false; + +// +protected lastHandler; + +// +protected modelBinder; + +/** + * @var bool + */ +protected modelBinding = false; + +// +protected moduleName; + +// +protected namespaceName; + +/** + * @var array + */ +protected params; + +// +protected previousActionName; + +// +protected previousHandlerName; + +// +protected previousNamespaceName; + +// +protected returnedValue; + +``` + +## Methods +```php +public function callActionMethod( mixed $handler, string $actionMethod, array $params = [] ); +``` +// + +```php +public function dispatch(): object | bool; +``` +Process the results of the router by calling into the appropriate +controller action(s) including any routing data or injected parameters. + +@return object|false Returns the dispatched handler class (the Controller for Mvc dispatching or a Task + for CLI dispatching) or false if an exception occurred and the operation was + stopped by returning false in the exception handler. + +@throws \Exception if any uncaught or unhandled exception occurs during the dispatcher process. + + +```php +public function forward( array $forward ): void; +``` +Forwards the execution flow to another controller/action. + +```php +$this->dispatcher->forward( + [ + "controller" => "posts", + "action" => "index", + ] +); +``` + +@throws \Phalcon\Exception + + +```php +public function getActionName(): string; +``` +Gets the latest dispatched action name + + +```php +public function getActionSuffix(): string; +``` +Gets the default action suffix + + +```php +public function getActiveMethod(): string; +``` +Returns the current method to be/executed in the dispatcher + + +```php +public function getBoundModels(): array; +``` +Returns bound models from binder instance + +```php +class UserController extends Controller +{ + public function showAction(User $user) + { + // return array with $user + $boundModels = $this->dispatcher->getBoundModels(); + } +} +``` + + +```php +public function getDefaultNamespace(): string; +``` +Returns the default namespace + + +```php +public function getEventsManager(): ManagerInterface; +``` +Returns the internal event manager + + +```php +public function getHandlerClass(): string; +``` +Possible class name that will be located to dispatch the request + + +```php +public function getHandlerSuffix(): string; +``` +Gets the default handler suffix + + +```php +public function getModelBinder(): BinderInterface | null; +``` +Gets model binder + + +```php +public function getModuleName(): string; +``` +Gets the module where the controller class is + + +```php +public function getNamespaceName(): string; +``` +Gets a namespace to be prepended to the current handler name + + +```php +public function getParam( mixed $param, mixed $filters = null, mixed $defaultValue = null ): mixed; +``` +Gets a param by its name or numeric index + +@param mixed param +@param string|array filters +@param mixed defaultValue +@return mixed + + +```php +public function getParams(): array; +``` +Gets action params + + +```php +public function getReturnedValue(): mixed; +``` +Returns value returned by the latest dispatched action + + +```php +public function hasParam( mixed $param ): bool; +``` +Check if a param exists + + +```php +public function isFinished(): bool; +``` +Checks if the dispatch loop is finished or has more pendent +controllers/tasks to dispatch + + +```php +public function setActionName( string $actionName ): void; +``` +Sets the action name to be dispatched + + +```php +public function setActionSuffix( string $actionSuffix ): void; +``` +Sets the default action suffix + + +```php +public function setDefaultAction( string $actionName ): void; +``` +Sets the default action name + + +```php +public function setDefaultNamespace( string $namespaceName ): void; +``` +Sets the default namespace + + +```php +public function setEventsManager( ManagerInterface $eventsManager ): void; +``` +Sets the events manager + + +```php +public function setHandlerSuffix( string $handlerSuffix ): void; +``` +Sets the default suffix for the handler + + +```php +public function setModelBinder( BinderInterface $modelBinder, mixed $cache = null ): Dispatcher; +``` +Enable model binding during dispatch + +```php +$di->set( + 'dispatcher', + function() { + $dispatcher = new Dispatcher(); + + $dispatcher->setModelBinder( + new Binder(), + 'cache' + ); + + return $dispatcher; + } +); +``` + + +```php +public function setModuleName( string $moduleName ): void; +``` +Sets the module where the controller is (only informative) + + +```php +public function setNamespaceName( string $namespaceName ): void; +``` +Sets the namespace where the controller class is + + +```php +public function setParam( mixed $param, mixed $value ): void; +``` +Set a param by its name or numeric index + + +```php +public function setParams( array $params ): void; +``` +Sets action params to be dispatched + + +```php +public function setReturnedValue( mixed $value ): void; +``` +Sets the latest returned value by an action manually + + +```php +public function wasForwarded(): bool; +``` +Check if the current executed action was forwarded by another one + + +```php +protected function resolveEmptyProperties(): void; +``` +Set empty properties to their defaults (where defaults are available) + + +```php +protected function toCamelCase( string $input ): string; +``` +// + + + +

        Interface Phalcon\Dispatcher\DispatcherInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/dispatcher/dispatcherinterface.zep) + +| Namespace | Phalcon\Dispatcher | + +Interface for Phalcon\Dispatcher\AbstractDispatcher + + +## Methods +```php +public function dispatch(): object | bool; +``` +Dispatches a handle action taking into account the routing parameters + + +```php +public function forward( array $forward ): void; +``` +Forwards the execution flow to another controller/action + + +```php +public function getActionName(): string; +``` +Gets last dispatched action name + + +```php +public function getActionSuffix(): string; +``` +Gets the default action suffix + + +```php +public function getHandlerSuffix(): string; +``` +Gets the default handler suffix + + +```php +public function getParam( mixed $param, mixed $filters = null ): mixed; +``` +Gets a param by its name or numeric index + +@param string|array filters + + +```php +public function getParams(): array; +``` +Gets action params + + +```php +public function getReturnedValue(): mixed; +``` +Returns value returned by the latest dispatched action + + +```php +public function hasParam( mixed $param ): bool; +``` +Check if a param exists + + +```php +public function isFinished(): bool; +``` +Checks if the dispatch loop is finished or has more pendent +controllers/tasks to dispatch + + +```php +public function setActionName( string $actionName ): void; +``` +Sets the action name to be dispatched + + +```php +public function setActionSuffix( string $actionSuffix ): void; +``` +Sets the default action suffix + + +```php +public function setDefaultAction( string $actionName ): void; +``` +Sets the default action name + + +```php +public function setDefaultNamespace( string $defaultNamespace ): void; +``` +Sets the default namespace + + +```php +public function setHandlerSuffix( string $handlerSuffix ): void; +``` +Sets the default suffix for the handler + + +```php +public function setModuleName( string $moduleName ): void; +``` +Sets the module name which the application belongs to + + +```php +public function setNamespaceName( string $namespaceName ): void; +``` +Sets the namespace which the controller belongs to + + +```php +public function setParam( mixed $param, mixed $value ): void; +``` +Set a param by its name or numeric index + +@param mixed value + + +```php +public function setParams( array $params ): void; +``` +Sets action params to be dispatched + + + + +

        Class Phalcon\Dispatcher\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/dispatcher/exception.zep) + +| Namespace | Phalcon\Dispatcher | +| Extends | \Phalcon\Exception | + +Exceptions thrown in Phalcon\Dispatcher/* will use this class + + +## Constants +```php +const EXCEPTION_ACTION_NOT_FOUND = 5; +const EXCEPTION_CYCLIC_ROUTING = 1; +const EXCEPTION_HANDLER_NOT_FOUND = 2; +const EXCEPTION_INVALID_HANDLER = 3; +const EXCEPTION_INVALID_PARAMS = 4; +const EXCEPTION_NO_DI = 0; +``` diff --git a/nikos/api/Phalcon_Domain.md b/nikos/api/Phalcon_Domain.md new file mode 100644 index 00000000000..522f804b5cd --- /dev/null +++ b/nikos/api/Phalcon_Domain.md @@ -0,0 +1,300 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Domain' +--- + +* [Phalcon\Domain\Payload\Payload](#domain-payload-payload) +* [Phalcon\Domain\Payload\PayloadFactory](#domain-payload-payloadfactory) +* [Phalcon\Domain\Payload\PayloadInterface](#domain-payload-payloadinterface) +* [Phalcon\Domain\Payload\ReadableInterface](#domain-payload-readableinterface) +* [Phalcon\Domain\Payload\Status](#domain-payload-status) +* [Phalcon\Domain\Payload\WriteableInterface](#domain-payload-writeableinterface) + +

        Class Phalcon\Domain\Payload\Payload

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/domain/payload/payload.zep) + +| Namespace | Phalcon\Domain\Payload | +| Uses | Phalcon\Domain\Payload\PayloadInterface | +| Implements | PayloadInterface | + +Holds the payload + + +## Properties +```php +/** + * Extra information + * + * @var mixed + */ +protected extras; + +/** + * Input + * + * @var mixed + */ +protected input; + +/** + * Messages + * + * @var mixed + */ +protected messages; + +/** + * Status + * + * @var mixed + */ +protected status; + +/** + * Output + * + * @var mixed + */ +protected output; + +``` + +## Methods +```php +public function getExtras(): mixed +``` + + +```php +public function getInput(): mixed +``` + + +```php +public function getMessages(): mixed +``` + + +```php +public function getOutput(): mixed +``` + + +```php +public function getStatus(): mixed +``` + + +```php +public function setExtras( mixed $extras ): PayloadInterface; +``` +Sets arbitrary extra domain information. + + +```php +public function setInput( mixed $input ): PayloadInterface; +``` +Sets the domain input. + + +```php +public function setMessages( mixed $messages ): PayloadInterface; +``` +Sets the domain messages. + + +```php +public function setOutput( mixed $output ): PayloadInterface; +``` +Sets the domain output. + + +```php +public function setStatus( mixed $status ): PayloadInterface; +``` +Sets the payload status. + + + + +

        Class Phalcon\Domain\Payload\PayloadFactory

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/domain/payload/payloadfactory.zep) + +| Namespace | Phalcon\Domain\Payload | +| Uses | Phalcon\Domain\Payload\Payload, Phalcon\Domain\Payload\PayloadInterface | + +Factory to create payload objects + + +## Methods +```php +public function newInstance(): PayloadInterface; +``` +Instantiate a new object + + + + +

        Interface Phalcon\Domain\Payload\PayloadInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/domain/payload/payloadinterface.zep) + +| Namespace | Phalcon\Domain\Payload | +| Uses | Phalcon\Domain\Payload\ReadableInterface, Phalcon\Domain\Payload\WriteableInterface | +| Extends | ReadableInterface | + +This interface is used for consumers + + + +

        Interface Phalcon\Domain\Payload\ReadableInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/domain/payload/readableinterface.zep) + +| Namespace | Phalcon\Domain\Payload | + +This interface is used for consumers (read only) + + +## Methods +```php +public function getExtras(): mixed; +``` +Gets arbitrary extra values produced by the domain layer. + +@param mixed + + +```php +public function getInput(): mixed; +``` +Gets the input received by the domain layer. + +@return mixed + + +```php +public function getMessages(): mixed; +``` +Gets the messages produced by the domain layer. + +@return mixed + + +```php +public function getOutput(): mixed; +``` +Gets the output produced from the domain layer. + +@return mixed + + +```php +public function getStatus(): mixed; +``` +Gets the status of this payload. + +@return mixed + + + + +

        Class Phalcon\Domain\Payload\Status

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/domain/payload/status.zep) + +| Namespace | Phalcon\Domain\Payload | + +Holds the status codes for the payload + + +## Constants +```php +const ACCEPTED = ACCEPTED; +const AUTHENTICATED = AUTHENTICATED; +const AUTHORIZED = AUTHORIZED; +const CREATED = CREATED; +const DELETED = DELETED; +const ERROR = ERROR; +const FAILURE = FAILURE; +const FOUND = FOUND; +const NOT_ACCEPTED = NOT_ACCEPTED; +const NOT_AUTHENTICATED = NOT_AUTHENTICATED; +const NOT_AUTHORIZED = NOT_AUTHORIZED; +const NOT_CREATED = NOT_CREATED; +const NOT_DELETED = NOT_DELETED; +const NOT_FOUND = NOT_FOUND; +const NOT_UPDATED = NOT_UPDATED; +const NOT_VALID = NOT_VALID; +const PROCESSING = PROCESSING; +const SUCCESS = SUCCESS; +const UPDATED = UPDATED; +const VALID = VALID; +``` + +## Methods +```php +final private function __construct(); +``` +Instantiation not allowed. + + + + +

        Interface Phalcon\Domain\Payload\WriteableInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/domain/payload/writeableinterface.zep) + +| Namespace | Phalcon\Domain\Payload | +| Uses | Phalcon\Domain\Payload\PayloadInterface | + +This interface is used for consumers (write) + + +## Methods +```php +public function setExtras( mixed $extras ): PayloadInterface; +``` +Sets arbitrary extra values produced by the domain layer. + +@param mixed $extras Arbitrary extra values produced by the domain layer. + + +```php +public function setInput( mixed $input ): PayloadInterface; +``` + +Sets the input received by the domain layer. + +@param mixed $input The input received by the domain layer. + + + +```php +public function setMessages( mixed $messages ): PayloadInterface; +``` +Sets the messages produced by the domain layer. + +@param mixed $messages The messages produced by the domain layer. + + +```php +public function setOutput( mixed $output ): PayloadInterface; +``` +Sets the output produced from the domain layer. + +@param mixed $output The output produced from the domain layer. + + +```php +public function setStatus( mixed $status ): PayloadInterface; +``` +Sets the status of this payload. + +@param mixed $status The status for this payload. + + diff --git a/nikos/api/Phalcon_Escaper.md b/nikos/api/Phalcon_Escaper.md new file mode 100644 index 00000000000..bb7dfe7db14 --- /dev/null +++ b/nikos/api/Phalcon_Escaper.md @@ -0,0 +1,212 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Escaper' +--- + +* [Phalcon\Escaper](#escaper) +* [Phalcon\Escaper\EscaperInterface](#escaper-escaperinterface) +* [Phalcon\Escaper\Exception](#escaper-exception) + +

        Class Phalcon\Escaper

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/escaper.zep) + +| Namespace | Phalcon | +| Uses | Phalcon\Di\DiInterface, Phalcon\Escaper\EscaperInterface, Phalcon\Escaper\Exception | +| Implements | EscaperInterface | + +Phalcon\Escaper + +Escapes different kinds of text securing them. By using this component you +may prevent XSS attacks. + +This component only works with UTF-8. The PREG extension needs to be compiled +with UTF-8 support. + +```php +$escaper = new \Phalcon\Escaper(); + +$escaped = $escaper->escapeCss("font-family: "); + +echo $escaped; // font\2D family\3A \20 \3C Verdana\3E +``` + + +## Properties +```php +/** + * @var bool + */ +protected doubleEncode = true; + +/** + * @var string + */ +protected encoding = utf-8; + +// +protected htmlEscapeMap; + +// +protected htmlQuoteType = 3; + +``` + +## Methods +```php +final public function detectEncoding( string $str ): string | null; +``` +Detect the character encoding of a string to be handled by an encoder. +Special-handling for chr(172) and chr(128) to chr(159) which fail to be +detected by mb_detect_encoding() + + +```php +public function escapeCss( string $css ): string; +``` +Escape CSS strings by replacing non-alphanumeric chars by their +hexadecimal escaped representation + + +```php +public function escapeHtml( string $text ): string; +``` +Escapes a HTML string. Internally uses htmlspecialchars + + +```php +public function escapeHtmlAttr( string $attribute ): string; +``` +Escapes a HTML attribute string + + +```php +public function escapeJs( string $js ): string; +``` +Escape javascript strings by replacing non-alphanumeric chars by their +hexadecimal escaped representation + + +```php +public function escapeUrl( string $url ): string; +``` +Escapes a URL. Internally uses rawurlencode + + +```php +public function getEncoding(): string; +``` +Returns the internal encoding used by the escaper + + +```php +final public function normalizeEncoding( string $str ): string; +``` +Utility to normalize a string's encoding to UTF-32. + + +```php +public function setDoubleEncode( bool $doubleEncode ): void; +``` +Sets the double_encode to be used by the escaper + +```php +$escaper->setDoubleEncode(false); +``` + + +```php +public function setEncoding( string $encoding ): void; +``` +Sets the encoding to be used by the escaper + +```php +$escaper->setEncoding("utf-8"); +``` + + +```php +public function setHtmlQuoteType( int $quoteType ): void; +``` +Sets the HTML quoting type for htmlspecialchars + +```php +$escaper->setHtmlQuoteType(ENT_XHTML); +``` + + + + +

        Interface Phalcon\Escaper\EscaperInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/escaper/escaperinterface.zep) + +| Namespace | Phalcon\Escaper | + +Interface for Phalcon\Escaper + + +## Methods +```php +public function escapeCss( string $css ): string; +``` +Escape CSS strings by replacing non-alphanumeric chars by their +hexadecimal representation + + +```php +public function escapeHtml( string $text ): string; +``` +Escapes a HTML string + + +```php +public function escapeHtmlAttr( string $text ): string; +``` +Escapes a HTML attribute string + + +```php +public function escapeJs( string $js ): string; +``` +Escape Javascript strings by replacing non-alphanumeric chars by their +hexadecimal representation + + +```php +public function escapeUrl( string $url ): string; +``` +Escapes a URL. Internally uses rawurlencode + + +```php +public function getEncoding(): string; +``` +Returns the internal encoding used by the escaper + + +```php +public function setEncoding( string $encoding ): void; +``` +Sets the encoding to be used by the escaper + + +```php +public function setHtmlQuoteType( int $quoteType ): void; +``` +Sets the HTML quoting type for htmlspecialchars + + + + +

        Class Phalcon\Escaper\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/escaper/exception.zep) + +| Namespace | Phalcon\Escaper | +| Extends | \Phalcon\Exception | + +Exceptions thrown in Phalcon\Escaper will use this class + diff --git a/nikos/api/Phalcon_Events.md b/nikos/api/Phalcon_Events.md new file mode 100644 index 00000000000..b4d61ea1ab3 --- /dev/null +++ b/nikos/api/Phalcon_Events.md @@ -0,0 +1,424 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Events' +--- + +* [Phalcon\Events\Event](#events-event) +* [Phalcon\Events\EventInterface](#events-eventinterface) +* [Phalcon\Events\EventsAwareInterface](#events-eventsawareinterface) +* [Phalcon\Events\Exception](#events-exception) +* [Phalcon\Events\Manager](#events-manager) +* [Phalcon\Events\ManagerInterface](#events-managerinterface) + +

        Class Phalcon\Events\Event

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/events/event.zep) + +| Namespace | Phalcon\Events | +| Implements | EventInterface | + +Phalcon\Events\Event + +This class offers contextual information of a fired event in the +EventsManager + + +## Properties +```php +/** + * Is event cancelable? + * + * @var bool + */ +protected cancelable; + +/** + * Event data + * + * @var mixed + */ +protected data; + +/** + * Event source + * + * @var object + */ +protected source; + +/** + * Is event propagation stopped? + * + * @var bool + */ +protected stopped = false; + +/** + * Event type + * + * @var string + */ +protected type; + +``` + +## Methods +```php +public function __construct( string $type, mixed $source, mixed $data = null, bool $cancelable = bool ): void; +``` +Phalcon\Events\Event constructor + +@param object source + + +```php +public function getData(): mixed +``` + + +```php +public function getSource(): object +``` + + +```php +public function getType(): string +``` + + +```php +public function isCancelable(): bool; +``` +Check whether the event is cancelable. + +```php +if ($event->isCancelable()) { + $event->stop(); +} +``` + + +```php +public function isStopped(): bool; +``` +Check whether the event is currently stopped. + + +```php +public function setData( mixed $data = null ): EventInterface; +``` +Sets event data. + + +```php +public function setType( string $type ): EventInterface; +``` +Sets event type. + + +```php +public function stop(): EventInterface; +``` +Stops the event preventing propagation. + +```php +if ($event->isCancelable()) { + $event->stop(); +} +``` + + + + +

        Interface Phalcon\Events\EventInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/events/eventinterface.zep) + +| Namespace | Phalcon\Events | + +Phalcon\Events\EventInterface + +Interface for Phalcon\Events\Event class + + +## Methods +```php +public function getData(): mixed; +``` +Gets event data + + +```php +public function getType(): mixed; +``` +Gets event type + + +```php +public function isCancelable(): bool; +``` +Check whether the event is cancelable + + +```php +public function isStopped(): bool; +``` +Check whether the event is currently stopped + + +```php +public function setData( mixed $data = null ): EventInterface; +``` +Sets event data + + +```php +public function setType( string $type ): EventInterface; +``` +Sets event type + + +```php +public function stop(): EventInterface; +``` +Stops the event preventing propagation + + + + +

        Interface Phalcon\Events\EventsAwareInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/events/eventsawareinterface.zep) + +| Namespace | Phalcon\Events | + +Phalcon\Events\EventsAwareInterface + +This interface must for those classes that accept an EventsManager and +dispatch events + + +## Methods +```php +public function getEventsManager(): ManagerInterface; +``` +Returns the internal event manager + + +```php +public function setEventsManager( ManagerInterface $eventsManager ): void; +``` +Sets the events manager + + + + +

        Class Phalcon\Events\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/events/exception.zep) + +| Namespace | Phalcon\Events | +| Extends | \Phalcon\Exception | + +Phalcon\Events\Exception + +Exceptions thrown in Phalcon\Events will use this class + + + +

        Class Phalcon\Events\Manager

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/events/manager.zep) + +| Namespace | Phalcon\Events | +| Uses | Closure, Phalcon\Events\Event, SplPriorityQueue | +| Implements | ManagerInterface | + +Phalcon\Events\Manager + +Phalcon Events Manager, offers an easy way to intercept and manipulate, if +needed, the normal flow of operation. With the EventsManager the developer +can create hooks or plugins that will offer monitoring of data, manipulation, +conditional execution and much more. + + +## Constants +```php +const DEFAULT_PRIORITY = 100; +``` + +## Properties +```php +/** + * @var bool + */ +protected collect = false; + +/** + * @var bool + */ +protected enablePriorities = false; + +// +protected events; + +// +protected responses; + +``` + +## Methods +```php +public function arePrioritiesEnabled(): bool; +``` +Returns if priorities are enabled + + +```php +public function attach( string $eventType, mixed $handler, int $priority = static-constant-access ): void; +``` +Attach a listener to the events manager + +@param object|callable handler + + +```php +public function collectResponses( bool $collect ): void; +``` +Tells the event manager if it needs to collect all the responses returned +by every registered listener in a single fire + + +```php +public function detach( string $eventType, mixed $handler ): void; +``` +Detach the listener from the events manager + +@param object handler + + +```php +public function detachAll( string $type = null ): void; +``` +Removes all events from the EventsManager + + +```php +public function enablePriorities( bool $enablePriorities ): void; +``` +Set if priorities are enabled in the EventsManager + + +```php +public function fire( string $eventType, mixed $source, mixed $data = null, bool $cancelable = bool ); +``` +Fires an event in the events manager causing the active listeners to be +notified about it + +```php +$eventsManager->fire("db", $connection); +``` + +@param object source +@param mixed data +@return mixed + + +```php +final public function fireQueue( SplPriorityQueue $queue, EventInterface $event ); +``` +Internal handler to call a queue of events + +@return mixed + + +```php +public function getListeners( string $type ): array; +``` +Returns all the attached listeners of a certain type + + +```php +public function getResponses(): array; +``` +Returns all the responses returned by every handler executed by the last +'fire' executed + + +```php +public function hasListeners( string $type ): bool; +``` +Check whether certain type of event has listeners + + +```php +public function isCollecting(): bool; +``` +Check if the events manager is collecting all all the responses returned +by every registered listener in a single fire + + + + +

        Interface Phalcon\Events\ManagerInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/events/managerinterface.zep) + +| Namespace | Phalcon\Events | + +Phalcon\Events\Manager + +Phalcon Events Manager, offers an easy way to intercept and manipulate, if +needed, the normal flow of operation. With the EventsManager the developer +can create hooks or plugins that will offer monitoring of data, manipulation, +conditional execution and much more. + + +## Methods +```php +public function attach( string $eventType, mixed $handler ): void; +``` +Attach a listener to the events manager + +@param object|callable handler + + +```php +public function detach( string $eventType, mixed $handler ): void; +``` +Detach the listener from the events manager + +@param object handler + + +```php +public function detachAll( string $type = null ): void; +``` +Removes all events from the EventsManager + + +```php +public function fire( string $eventType, mixed $source, mixed $data = null ); +``` +Fires an event in the events manager causing the active listeners to be +notified about it + +@param object source +@param mixed data +@return mixed + + +```php +public function getListeners( string $type ): array; +``` +Returns all the attached listeners of a certain type + + +```php +public function hasListeners( string $type ): bool; +``` +Check whether certain type of event has listeners + + diff --git a/nikos/api/Phalcon_Exception.md b/nikos/api/Phalcon_Exception.md new file mode 100644 index 00000000000..dbcc2e76639 --- /dev/null +++ b/nikos/api/Phalcon_Exception.md @@ -0,0 +1,22 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Exception' +--- + +* [Phalcon\Exception](#exception) + +

        Class Phalcon\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/exception.zep) + +| Namespace | Phalcon | +| Uses | Throwable | +| Extends | \Exception | +| Implements | Throwable | + +Phalcon\Exception + +All framework exceptions should use or extend this exception + diff --git a/nikos/api/Phalcon_Factory.md b/nikos/api/Phalcon_Factory.md new file mode 100644 index 00000000000..4aa5a90faf3 --- /dev/null +++ b/nikos/api/Phalcon_Factory.md @@ -0,0 +1,80 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Factory' +--- + +* [Phalcon\Factory\AbstractFactory](#factory-abstractfactory) +* [Phalcon\Factory\Exception](#factory-exception) + +

        Class Phalcon\Factory\AbstractFactory

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/factory/abstractfactory.zep) + +| Namespace | Phalcon\Factory | +| Uses | Phalcon\Config, Phalcon\Factory\Exception | + +This file is part of the Phalcon Framework. + +(c) Phalcon Team + +For the full copyright and license information, please view the LICENSE.txt +file that was distributed with this source code. + + +## Properties +```php +/** + * @var array + */ +protected mapper; + +/** + * @var array + */ +protected services; + +``` + +## Methods +```php +protected function checkConfig( mixed $config ): array; +``` +Checks the config if it is a valid object + + +```php +protected function checkService( string $name ): void; +``` +Checks if a service exists and throws an exception + + +```php +abstract protected function getAdapters(): array; +``` +Returns the adapters for the factory + + +```php +protected function init( array $services = [] ): void; +``` +AdapterFactory constructor. + + + + +

        Class Phalcon\Factory\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/factory/exception.zep) + +| Namespace | Phalcon\Factory | +| Extends | \Phalcon\Exception | + +This file is part of the Phalcon Framework. + +(c) Phalcon Team + +For the full copyright and license information, please view the LICENSE.txt +file that was distributed with this source code. + diff --git a/nikos/api/Phalcon_Filter.md b/nikos/api/Phalcon_Filter.md new file mode 100644 index 00000000000..f0f97aec5d3 --- /dev/null +++ b/nikos/api/Phalcon_Filter.md @@ -0,0 +1,603 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Filter' +--- + +* [Phalcon\Filter\Exception](#filter-exception) +* [Phalcon\Filter\Filter](#filter-filter) +* [Phalcon\Filter\FilterFactory](#filter-filterfactory) +* [Phalcon\Filter\FilterInterface](#filter-filterinterface) +* [Phalcon\Filter\Sanitize\AbsInt](#filter-sanitize-absint) +* [Phalcon\Filter\Sanitize\Alnum](#filter-sanitize-alnum) +* [Phalcon\Filter\Sanitize\Alpha](#filter-sanitize-alpha) +* [Phalcon\Filter\Sanitize\BoolVal](#filter-sanitize-boolval) +* [Phalcon\Filter\Sanitize\Email](#filter-sanitize-email) +* [Phalcon\Filter\Sanitize\FloatVal](#filter-sanitize-floatval) +* [Phalcon\Filter\Sanitize\IntVal](#filter-sanitize-intval) +* [Phalcon\Filter\Sanitize\Lower](#filter-sanitize-lower) +* [Phalcon\Filter\Sanitize\LowerFirst](#filter-sanitize-lowerfirst) +* [Phalcon\Filter\Sanitize\Regex](#filter-sanitize-regex) +* [Phalcon\Filter\Sanitize\Remove](#filter-sanitize-remove) +* [Phalcon\Filter\Sanitize\Replace](#filter-sanitize-replace) +* [Phalcon\Filter\Sanitize\Special](#filter-sanitize-special) +* [Phalcon\Filter\Sanitize\SpecialFull](#filter-sanitize-specialfull) +* [Phalcon\Filter\Sanitize\StringVal](#filter-sanitize-stringval) +* [Phalcon\Filter\Sanitize\Striptags](#filter-sanitize-striptags) +* [Phalcon\Filter\Sanitize\Trim](#filter-sanitize-trim) +* [Phalcon\Filter\Sanitize\Upper](#filter-sanitize-upper) +* [Phalcon\Filter\Sanitize\UpperFirst](#filter-sanitize-upperfirst) +* [Phalcon\Filter\Sanitize\UpperWords](#filter-sanitize-upperwords) +* [Phalcon\Filter\Sanitize\Url](#filter-sanitize-url) + +

        Class Phalcon\Filter\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/exception.zep) + +| Namespace | Phalcon\Filter | +| Extends | \Phalcon\Exception | + +Phalcon\Filter\Exception + +Exceptions thrown in Phalcon\Filter will use this class + + + +

        Class Phalcon\Filter\Filter

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/filter.zep) + +| Namespace | Phalcon\Filter | +| Uses | Closure, Phalcon\Filter\Exception, Phalcon\Filter\FilterInterface | +| Implements | FilterInterface | + +Lazy loads, stores and exposes sanitizer objects + + +## Constants +```php +const FILTER_ABSINT = absint; +const FILTER_ALNUM = alnum; +const FILTER_ALPHA = alpha; +const FILTER_BOOL = bool; +const FILTER_EMAIL = email; +const FILTER_FLOAT = float; +const FILTER_INT = int; +const FILTER_LOWER = lower; +const FILTER_LOWERFIRST = lowerFirst; +const FILTER_REGEX = regex; +const FILTER_REMOVE = remove; +const FILTER_REPLACE = replace; +const FILTER_SPECIAL = special; +const FILTER_SPECIALFULL = specialFull; +const FILTER_STRING = string; +const FILTER_STRIPTAGS = striptags; +const FILTER_TRIM = trim; +const FILTER_UPPER = upper; +const FILTER_UPPERFIRST = upperFirst; +const FILTER_UPPERWORDS = upperWords; +const FILTER_URL = url; +``` + +## Properties +```php +/** + * @var array + */ +protected mapper; + +/** + * @var array + */ +protected services; + +``` + +## Methods +```php +public function __construct( array $mapper = [] ): void; +``` +Key value pairs with name as the key and a callable as the value for +the service object + + +```php +public function get( string $name ): object; +``` +Get a service. If it is not in the mapper array, create a new object, +set it and then return it. + + +```php +public function has( string $name ): bool; +``` +Checks if a service exists in the map array + + +```php +public function sanitize( mixed $value, mixed $sanitizers, bool $noRecursive = bool ): mixed; +``` +Sanitizes a value with a specified single or set of sanitizers + + +```php +public function set( string $name, callable $service ): void; +``` +Set a new service to the mapper array + + +```php +protected function init( array $mapper ): void; +``` +Loads the objects in the internal mapper array + + + + +

        Class Phalcon\Filter\FilterFactory

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/filterfactory.zep) + +| Namespace | Phalcon\Filter | +| Uses | Phalcon\Filter\Filter | + +This file is part of the Phalcon Framework. + +(c) Phalcon Team + +For the full copyright and license information, please view the LICENSE.txt +file that was distributed with this source code. + + +## Methods +```php +public function newInstance(): LocatorInterface; +``` +Returns a Locator object with all the helpers defined in anonynous +functions + + +```php +protected function getAdapters(): array; +``` +// + + + +

        Interface Phalcon\Filter\FilterInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/filterinterface.zep) + +| Namespace | Phalcon\Filter | + +Lazy loads, stores and exposes sanitizer objects + + +## Methods +```php +public function sanitize( mixed $value, mixed $sanitizers, bool $noRecursive = bool ): mixed; +``` +Sanitizes a value with a specified single or set of sanitizers + + + + +

        Class Phalcon\Filter\Sanitize\AbsInt

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/absint.zep) + +| Namespace | Phalcon\Filter\Sanitize | + +Phalcon\Filter\Sanitize\AbsInt + +Sanitizes a value to absolute integer + + +## Methods +```php +public function __invoke( mixed $input ); +``` +@var mixed input The text to sanitize + + + + +

        Class Phalcon\Filter\Sanitize\Alnum

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/alnum.zep) + +| Namespace | Phalcon\Filter\Sanitize | + +Phalcon\Filter\Sanitize\Alnum + +Sanitizes a value to an alphanumeric value + + +## Methods +```php +public function __invoke( mixed $input ); +``` +@var mixed input The text to sanitize + + + + +

        Class Phalcon\Filter\Sanitize\Alpha

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/alpha.zep) + +| Namespace | Phalcon\Filter\Sanitize | + +Phalcon\Filter\Sanitize\Alpha + +Sanitizes a value to an alpha value + + +## Methods +```php +public function __invoke( mixed $input ); +``` +@var mixed input The text to sanitize + + + + +

        Class Phalcon\Filter\Sanitize\BoolVal

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/boolval.zep) + +| Namespace | Phalcon\Filter\Sanitize | + +Phalcon\Filter\Sanitize\BoolVal + +Sanitizes a value to boolean + + +## Methods +```php +public function __invoke( mixed $input ); +``` +@var mixed input The text to sanitize + + + + +

        Class Phalcon\Filter\Sanitize\Email

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/email.zep) + +| Namespace | Phalcon\Filter\Sanitize | + +Phalcon\Filter\Sanitize\Email + +Sanitizes an email string + + +## Methods +```php +public function __invoke( mixed $input ); +``` +@var mixed input The text to sanitize + + + + +

        Class Phalcon\Filter\Sanitize\FloatVal

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/floatval.zep) + +| Namespace | Phalcon\Filter\Sanitize | + +Phalcon\Filter\Sanitize\FloatVal + +Sanitizes a value to float + + +## Methods +```php +public function __invoke( mixed $input ); +``` +@var mixed input The text to sanitize + + + + +

        Class Phalcon\Filter\Sanitize\IntVal

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/intval.zep) + +| Namespace | Phalcon\Filter\Sanitize | + +Phalcon\Filter\Sanitize\IntVal + +Sanitizes a value to integer + + +## Methods +```php +public function __invoke( mixed $input ); +``` +@var mixed input The text to sanitize + + + + +

        Class Phalcon\Filter\Sanitize\Lower

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/lower.zep) + +| Namespace | Phalcon\Filter\Sanitize | + +Phalcon\Filter\Sanitize\Lower + +Sanitizes a value to lowercase + + +## Methods +```php +public function __invoke( string $input ); +``` +@var mixed input The text to sanitize + + + + +

        Class Phalcon\Filter\Sanitize\LowerFirst

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/lowerfirst.zep) + +| Namespace | Phalcon\Filter\Sanitize | + +Phalcon\Filter\Sanitize\LowerFirst + +Sanitizes a value to lcfirst + + +## Methods +```php +public function __invoke( string $input ); +``` +@var mixed input The text to sanitize + + + + +

        Class Phalcon\Filter\Sanitize\Regex

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/regex.zep) + +| Namespace | Phalcon\Filter\Sanitize | + +Phalcon\Filter\Sanitize\Regex + +Sanitizes a value performing preg_replace + + +## Methods +```php +public function __invoke( mixed $input, mixed $pattern, mixed $replace ); +``` +@var mixed input The text to sanitize + + + + +

        Class Phalcon\Filter\Sanitize\Remove

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/remove.zep) + +| Namespace | Phalcon\Filter\Sanitize | + +Phalcon\Filter\Sanitize\Remove + +Sanitizes a value removing parts of a string + + +## Methods +```php +public function __invoke( mixed $input, mixed $replace ); +``` +@var mixed input The text to sanitize + + + + +

        Class Phalcon\Filter\Sanitize\Replace

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/replace.zep) + +| Namespace | Phalcon\Filter\Sanitize | + +Phalcon\Filter\Sanitize\Replace + +Sanitizes a value replacing parts of a string + + +## Methods +```php +public function __invoke( mixed $input, mixed $from, mixed $to ); +``` +@var mixed input The text to sanitize + + + + +

        Class Phalcon\Filter\Sanitize\Special

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/special.zep) + +| Namespace | Phalcon\Filter\Sanitize | + +Phalcon\Filter\Sanitize\Special + +Sanitizes a value special characters + + +## Methods +```php +public function __invoke( mixed $input ); +``` +@var mixed input The text to sanitize + + + + +

        Class Phalcon\Filter\Sanitize\SpecialFull

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/specialfull.zep) + +| Namespace | Phalcon\Filter\Sanitize | + +Phalcon\Filter\Sanitize\SpecialFull + +Sanitizes a value special characters (htmlspecialchars() and ENT_QUOTES) + + +## Methods +```php +public function __invoke( mixed $input ); +``` +@var mixed input The text to sanitize + + + + +

        Class Phalcon\Filter\Sanitize\StringVal

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/stringval.zep) + +| Namespace | Phalcon\Filter\Sanitize | + +Phalcon\Filter\Sanitize\String + +Sanitizes a value to string + + +## Methods +```php +public function __invoke( mixed $input ); +``` +@var mixed input The text to sanitize + + + + +

        Class Phalcon\Filter\Sanitize\Striptags

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/striptags.zep) + +| Namespace | Phalcon\Filter\Sanitize | + +Phalcon\Filter\Sanitize\Striptags + +Sanitizes a value striptags + + +## Methods +```php +public function __invoke( string $input ); +``` +@var mixed input The text to sanitize + + + + +

        Class Phalcon\Filter\Sanitize\Trim

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/trim.zep) + +| Namespace | Phalcon\Filter\Sanitize | + +Phalcon\Filter\Sanitize\Trim + +Sanitizes a value removing leading and trailing spaces + + +## Methods +```php +public function __invoke( string $input ); +``` +@var mixed input The text to sanitize + + + + +

        Class Phalcon\Filter\Sanitize\Upper

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/upper.zep) + +| Namespace | Phalcon\Filter\Sanitize | + +Phalcon\Filter\Sanitize\Upper + +Sanitizes a value to uppercase + + +## Methods +```php +public function __invoke( string $input ); +``` +@var mixed input The text to sanitize + + + + +

        Class Phalcon\Filter\Sanitize\UpperFirst

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/upperfirst.zep) + +| Namespace | Phalcon\Filter\Sanitize | + +Phalcon\Filter\Sanitize\UpperFirst + +Sanitizes a value to ucfirst + + +## Methods +```php +public function __invoke( string $input ); +``` +@var mixed input The text to sanitize + + + + +

        Class Phalcon\Filter\Sanitize\UpperWords

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/upperwords.zep) + +| Namespace | Phalcon\Filter\Sanitize | + +Phalcon\Filter\Sanitize\UpperWords + +Sanitizes a value to uppercase teh first character of each word + + +## Methods +```php +public function __invoke( string $input ); +``` +@var mixed input The text to sanitize + + + + +

        Class Phalcon\Filter\Sanitize\Url

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/url.zep) + +| Namespace | Phalcon\Filter\Sanitize | + +Phalcon\Filter\Sanitize\Url + +Sanitizes a value url + + +## Methods +```php +public function __invoke( mixed $input ); +``` +@var mixed input The text to sanitize + + diff --git a/nikos/api/Phalcon_Firewall.md b/nikos/api/Phalcon_Firewall.md new file mode 100644 index 00000000000..0ef0a00d251 --- /dev/null +++ b/nikos/api/Phalcon_Firewall.md @@ -0,0 +1,642 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Firewall' +--- + +* [Phalcon\Firewall\Adapter\AbstractAdapter](#firewall-adapter-abstractadapter) +* [Phalcon\Firewall\Adapter\Acl](#firewall-adapter-acl) +* [Phalcon\Firewall\Adapter\AdapterInterface](#firewall-adapter-adapterinterface) +* [Phalcon\Firewall\Adapter\Annotations](#firewall-adapter-annotations) +* [Phalcon\Firewall\Adapter\Micro\Acl](#firewall-adapter-micro-acl) +* [Phalcon\Firewall\Exception](#firewall-exception) + +

        Abstract Class Phalcon\Firewall\Adapter\AbstractAdapter

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/firewall/adapter/abstractadapter.zep) + +| Namespace | Phalcon\Firewall\Adapter | +| Uses | Closure, Phalcon\Acl\Enum, Phalcon\Acl\RoleAware, Phalcon\Cache\Adapter\AdapterInterface, Phalcon\Di\DiInterface, Phalcon\Events\EventsAwareInterface, Phalcon\Events\ManagerInterface, Phalcon\Firewall\Exception, Phalcon\Mvc\Dispatcher | +| Implements | AdapterInterface, EventsAwareInterface | + +Adapter for Phalcon\Firewall adapters + + +## Properties +```php +/** + * Storing active identity object implementing Phalcon/Acl/RoleAware + */ +protected activeIdentity; + +/** + * Storing active user role + */ +protected activeRole; + +/** + * Should role always be resolved using role callback or just once? + * @var bool + */ +protected alwaysResolvingRole = false; + +/** + * Cache for caching access + * @var + */ +protected cache; + +/** + * Default access + * @var int + */ +protected defaultAccess; + +/** + * Events manager + * @var mixed + */ +protected eventsManager; + +/** + * Internal cache for caching access during request time + * @var mixed + */ +protected internalCache; + +/** + * Anonymous function for getting user identity - this function must + * return string, array or object implementing Phalcon\Acl\RoleAware + * @var mixed + */ +protected roleCallback; + +``` + +## Methods +```php +public function getActiveIdentity() +``` + + +```php +public function getActiveRole() +``` + + +```php +public function getDefaultAccess(): int +``` + + +```php +public function getEventsManager(): ManagerInterface; +``` +Returns the internal event manager + + +```php +public function getRoleCallback(): Closure; +``` +Gets role callback to fetch role name + + +```php +public function isAlwaysResolvingRole(): bool; +``` +Gets always resolving role option + + +```php +public function setAlwaysResolvingRole( bool $alwaysResolvingRole ) +``` + + +```php +public function setCache( CacheAdapterInterface $cache ): AdapterInterface; +``` +Sets the cache adapter + + +```php +public function setDefaultAccess( int $defaultAccess ): AdapterInterface; +``` +Sets the default access level (Phalcon\Acl\Enum::ALLOW or Phalcon\Acl\Enum::DENY) + + +```php +public function setEventsManager( ManagerInterface $eventsManager ): AdapterInterface; +``` +Sets the events manager + + +```php +public function setRoleCallback( mixed $callback ): AdapterInterface; +``` +Sets role callback to fetch role name + + +```php +protected function callRoleCallback( DiInterface $container ): void; +``` +// + +```php +protected function fireEventOrThrowException( mixed $role, string $actionName, string $controllerName, bool $access ); +``` +Fires event or throwing exception + + +```php +protected function getAccessFromCache( string $key, array $originalValues = null, string $roleCacheKey = null ): bool | null; +``` +Gets access from cache + + +```php +protected function handleException( \Exception $exception ); +``` +Handles a user exception + + +```php +protected function saveAccessInCache( string $key, bool $access ): void; +``` + Saves access in cache and internal cache + + +```php +protected function throwFirewallException( string $message, int $exceptionCode = int ): bool; +``` +Throws an internal exception + + + + +

        Class Phalcon\Firewall\Adapter\Acl

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/firewall/adapter/acl.zep) + +| Namespace | Phalcon\Firewall\Adapter | +| Uses | Phalcon\Acl\Adapter\AdapterInterface, Phalcon\Di, Phalcon\Cache\Adapter\AdapterInterface, Phalcon\Events\Event, Phalcon\Events\ManagerInterface, Phalcon\Firewall\Adapter\AbstractAdapter, Phalcon\Firewall\Exception, Phalcon\Mvc\DispatcherInterface | +| Extends | AbstractAdapter | + +FirewallZ for Phalcon\Application which depends on acl and dispatcher + + +## Properties +```php +/** + * Acl service name + * @var string + */ +protected aclServiceName; + +/** + * Bound models + * @var array + */ +protected boundModels; + +/** + * Property used for setting different key names in associated acl function than got from Binder + */ +protected boundModelsKeyMap; + +/** + * Dispatcher + * @var mixed + */ +protected dispatcher; + +/** + * Parameter for using with multi module application + * @var bool + */ +protected multiModuleConfiguration = false; + +/** + * Separator between module name and controller prefix + * @var string + */ +protected moduleSeparator = :; + +/** + * Function returning string for role cache key + * @var mixed + */ +protected roleCacheCallback; + +``` + +## Methods +```php +public function __construct( string $aclServiceName, array $boundModelsKeyMap = null ); +``` +Phalcon\Firewall\Adapter\Acl constructor + + +```php +public function afterBinding( Event $event, DispatcherInterface $dispatcher, mixed $data ); +``` +// + +```php +public function beforeExecuteRoute( Event $event, DispatcherInterface $dispatcher, mixed $data ); +``` +// + +```php +public function getAclServiceName(): string +``` + + +```php +public function getBoundModelsKeyMap() +``` + + +```php +public function getDispatcher(): Dispatcher; +``` +Gets dispatcher + + +```php +public function getModuleSeparator(): string +``` + + +```php +public function getRoleCacheCallback(): mixed +``` + + +```php +public function isMultiModuleConfiguration(): bool; +``` +Returns multiModuleConfiguration +@return bool + + +```php +public function setAclServiceName( string $aclServiceName ) +``` + + +```php +public function setBoundModelsKeyMap( $boundModelsKeyMap ) +``` + + +```php +public function setModuleSeparator( string $moduleSeparator ) +``` + + +```php +public function setRoleCacheCallback( mixed $roleCacheCallback ) +``` + + +```php +public function useMultiModuleConfiguration( bool $multiModuleConfiguration ); +``` +Sets multiModuleConfiguration + + +```php +protected function getAccessFromCache( string $key, array $originalValues = null, string $roleCacheKey = null ): bool | null; +``` +// + +```php +protected function handleDispatcher( DispatcherInterface $dispatcher ); +``` +// + +```php +protected function saveAccessInCache( string $key, bool $access ): void; +``` +// + + + +

        Interface Phalcon\Firewall\Adapter\AdapterInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/firewall/adapter/adapterinterface.zep) + +| Namespace | Phalcon\Firewall\Adapter | +| Uses | Phalcon\Mvc\DispatcherInterface, Phalcon\Cache\Adapter\AdapterInterface | + +Interface for Phalcon\Mvc\Dispatcher\Firewall adapters + + +## Methods +```php +public function getDefaultAccess(): int; +``` +Returns the default ACL access level + + +```php +public function getRoleCallback(); +``` +Gets role callback to fetch role name + + +```php +public function isAlwaysResolvingRole(): bool; +``` +Gets always resolving role option + + +```php +public function setAlwaysResolvingRole( bool $alwaysResolvingRole ): void; +``` +Sets always resolving role option + + +```php +public function setCache( CacheAdapterInterface $cache ): AdapterInterface; +``` +Sets cache backend + + +```php +public function setDefaultAccess( int $defaultAccess ): AdapterInterface; +``` +Sets the default access level (Phalcon\Acl::ALLOW or Phalcon\Acl::DENY) + + +```php +public function setRoleCallback( mixed $callback ): AdapterInterface; +``` +Sets role callback to fetch role name + + + + +

        Class Phalcon\Firewall\Adapter\Annotations

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/firewall/adapter/annotations.zep) + +| Namespace | Phalcon\Firewall\Adapter | +| Uses | Phalcon\Annotations\Adapter\AdapterInterface, Phalcon\Events\Event, Phalcon\Events\ManagerInterface, Phalcon\Firewall\Adapter\AbstractAdapter, Phalcon\Firewall\Exception, Phalcon\Mvc\DispatcherInterface, ReflectionClass | +| Extends | AbstractAdapter | + +Firewall which depends on annotations and dispatcher + + +## Properties +```php +/** + * Number of active active arguments in active annotation + * @var int + */ +protected activeArgumentsNumber = 0; + +/** + * Adapter for annotations + * @var mixed + */ +protected annotationsAdapter; + +/** + * Dispatcher + * @var mixed + */ +protected dispatcher; + +/** + * Role for which access was granted + */ +protected resolvedRole; + +``` + +## Methods +```php +public function __construct( AdapterInterface $annotationsAdapter ); +``` +Phalcon\Firewall\Adapter\Annotations constructor + + +```php +public function beforeExecuteRoute( Event $event, DispatcherInterface $dispatcher, mixed $data ); +``` +// + +```php +public function getAnnotationsAdapter(): mixed +``` + + +```php +public function getDispatcher(): Dispatcher; +``` +Gets dispatcher + + +```php +public function setAnnotationsAdapter( mixed $annotationsAdapter ) +``` + + +```php +protected function checkActionAnnotationAccess( string $controllerClass, string $controllerName, string $actionName, mixed $role ); +``` +// + +```php +protected function checkAnnotations( mixed $annotations, mixed $role ); +``` +// + +```php +protected function checkControllerAnnotationAccess( string $controllerClass, string $controllerName, mixed $role ); +``` +// + +```php +protected function getAccessFromCache( string $key, array $originalValues = null, string $roleCacheKey = null ): bool | null; +``` +// + +```php +protected function handleAnnotation( mixed $annotation, bool $access, mixed $role ); +``` +// + + + +

        Class Phalcon\Firewall\Adapter\Micro\Acl

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/firewall/adapter/micro/acl.zep) + +| Namespace | Phalcon\Firewall\Adapter\Micro | +| Uses | Phalcon\Acl\Adapter\AdapterInterface, Phalcon\Di, Phalcon\Cache\Adapter\AdapterInterface, Phalcon\Di\DiInterface, Phalcon\Events\Event, Phalcon\Events\ManagerInterface, Phalcon\Firewall\Adapter\AbstractAdapter, Phalcon\Firewall\Exception, Phalcon\Mvc\Micro, Phalcon\Mvc\Model\BinderInterface, Phalcon\Mvc\Router | +| Extends | AbstractAdapter | + +Firewall for Phalcon\Mvc\Micro which depends on ACL + + +## Properties +```php +/** + * Acl service name + * @var string + */ +protected aclServiceName; + +/** + * Bound models + * @var array + */ +protected boundModels; + +/** + * Property used for setting different key names in associated ACL function + * than got from Binder + */ +protected boundModelsKeyMap; + +/** + * Component name used to acquire access, be default it's Micro + * @var string + */ +protected componentName = Micro; + +/** + * Micro object + * @var mixed + */ +protected micro; + +/** + * Function returning string for role cache key + * @var mixed + */ +protected roleCacheCallback; + +/** + * Router object + * @var mixed + */ +protected router; + +/** + * By default using route names which are required, you can change it to + * false to use route patterns + * @var bool + */ +protected routeNameConfiguration = true; + +``` + +## Methods +```php +public function __construct( string $aclServiceName, array $boundModelsKeyMap = null ); +``` +// + +```php +public function afterBinding( Event $event, Micro $micro, mixed $data ); +``` +// + +```php +public function beforeExecuteRoute( Event $event, Micro $micro, mixed $data ); +``` +// + +```php +public function getAclServiceName(): string +``` + + +```php +public function getBoundModelsKeyMap() +``` + + +```php +public function getComponentName(): string +``` + + +```php +public function getMicro(): Micro; +``` +Gets micro + + +```php +public function getRoleCacheCallback(): mixed +``` + + +```php +public function isRouteNameConfiguration(): bool; +``` +Gets route name configuration + + +```php +public function setAclServiceName( string $aclServiceName ) +``` + + +```php +public function setBoundModelsKeyMap( $boundModelsKeyMap ) +``` + + +```php +public function setComponentName( string $componentName ) +``` + + +```php +public function setRoleCacheCallback( mixed $roleCacheCallback ) +``` + + +```php +public function setRouteNameConfiguration( bool $routeNameConfiguration ) +``` + + +```php +protected function fireEventOrThrowException( mixed $role, string $actionName, string $controllerName, bool $access ); +``` +Fires event or throwing exception + + +```php +protected function getAccessFromCache( string $key, array $originalValues = null, string $roleCacheKey = null ): bool | null; +``` +// + +```php +protected function handleRouter( Micro $micro ); +``` +// + +```php +protected function saveAccessInCache( string $key, bool $access ): void; +``` +// + + + +

        Class Phalcon\Firewall\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/firewall/exception.zep) + +| Namespace | Phalcon\Firewall | +| Extends | \Phalcon\Exception | + +Exceptions thrown in Phalcon\Firewall will use this class + diff --git a/nikos/api/Phalcon_Flash.md b/nikos/api/Phalcon_Flash.md new file mode 100644 index 00000000000..12d2f3d66c4 --- /dev/null +++ b/nikos/api/Phalcon_Flash.md @@ -0,0 +1,341 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Flash' +--- + +* [Phalcon\Flash\AbstractFlash](#flash-abstractflash) +* [Phalcon\Flash\Direct](#flash-direct) +* [Phalcon\Flash\Exception](#flash-exception) +* [Phalcon\Flash\FlashInterface](#flash-flashinterface) +* [Phalcon\Flash\Session](#flash-session) + +

        Abstract Class Phalcon\Flash\AbstractFlash

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/flash/abstractflash.zep) + +| Namespace | Phalcon\Flash | +| Uses | Phalcon\Di, Phalcon\Di\DiInterface, Phalcon\Di\AbstractInjectionAware, Phalcon\Escaper\EscaperInterface, Phalcon\Flash\Exception, Phalcon\Session\ManagerInterface | +| Extends | AbstractInjectionAware | +| Implements | FlashInterface | + +Shows HTML notifications related to different circumstances. Classes can be +stylized using CSS + +```php +$flash->success("The record was successfully deleted"); +$flash->error("Cannot open the file"); +``` + + +## Properties +```php +/** + * @var bool + */ +protected autoescape = true; + +/** + * @var bool + */ +protected automaticHtml = true; + +/** + * @var array + */ +protected cssClasses; + +/** + * @var string + */ +protected customTemplate = ; + +/** + * @var EscaperInterface | null + */ +protected escaperService; + +/** + * @var bool + */ +protected implicitFlush = true; + +/** + * @var array + */ +protected messages; + +/** + * @var SessionInterface | null + */ +protected sessionService; + +``` + +## Methods +```php +public function __construct( EscaperInterface $escaper = null, SessionInterface $session = null ): void; +``` +Phalcon\Flash constructor + + +```php +public function clear(): void; +``` +Clears accumulated messages when implicit flush is disabled + + +```php +public function error( string $message ): string; +``` +Shows a HTML error message + +```php +$flash->error("This is an error"); +``` + + +```php +public function getAutoescape(): bool; +``` +Returns the autoescape mode in generated html + + +```php +public function getCustomTemplate(): string; +``` +Returns the custom template set + + +```php +public function getEscaperService(): EscaperInterface; +``` +Returns the Escaper Service + + +```php +public function notice( string $message ): string; +``` +Shows a HTML notice/information message + +```php +$flash->notice("This is an information"); +``` + + +```php +public function outputMessage( string $type, mixed $message ); +``` +Outputs a message formatting it with HTML + +```php +$flash->outputMessage("error", $message); +``` + +@param string|array message +@return string|void + + +```php +public function setAutoescape( bool $autoescape ): FlashInterface; +``` +Set the autoescape mode in generated html + + +```php +public function setAutomaticHtml( bool $automaticHtml ): FlashInterface; +``` +Set if the output must be implicitly formatted with HTML + + +```php +public function setCssClasses( array $cssClasses ): FlashInterface; +``` +Set an array with CSS classes to format the messages + + +```php +public function setCustomTemplate( string $customTemplate ): FlashInterface; +``` +Set an custom template for showing the messages + + +```php +public function setEscaperService( EscaperInterface $escaperService ): FlashInterface; +``` +Sets the Escaper Service + + +```php +public function setImplicitFlush( bool $implicitFlush ): FlashInterface; +``` +Set whether the output must be implicitly flushed to the output or +returned as string + + +```php +public function success( string $message ): string; +``` +Shows a HTML success message + +```php +$flash->success("The process was finished successfully"); +``` + + +```php +public function warning( string $message ): string; +``` +Shows a HTML warning message + +```php +$flash->warning("Hey, this is important"); +``` + + + + +

        Class Phalcon\Flash\Direct

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/flash/direct.zep) + +| Namespace | Phalcon\Flash | +| Uses | Phalcon\Flash\AbstractFlash | +| Extends | AbstractFlash | + +This is a variant of the Phalcon\Flash that immediately outputs any message +passed to it + + +## Methods +```php +public function message( string $type, mixed $message ): string | null; +``` +Outputs a message + + +```php +public function output( bool $remove = bool ): void; +``` +Prints the messages accumulated in the flasher + + + + +

        Class Phalcon\Flash\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/flash/exception.zep) + +| Namespace | Phalcon\Flash | +| Extends | \Phalcon\Exception | + +Exceptions thrown in Phalcon\Flash will use this class + + + +

        Interface Phalcon\Flash\FlashInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/flash/flashinterface.zep) + +| Namespace | Phalcon\Flash | + +Phalcon\FlashInterface + +Interface for Phalcon\Flash + + +## Methods +```php +public function error( string $message ): string; +``` +Shows a HTML error message + + +```php +public function message( string $type, string $message ): string | null; +``` +Outputs a message + + +```php +public function notice( string $message ): string; +``` +Shows a HTML notice/information message + + +```php +public function success( string $message ): string; +``` +Shows a HTML success message + + +```php +public function warning( string $message ): string; +``` +Shows a HTML warning message + + + + +

        Class Phalcon\Flash\Session

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/flash/session.zep) + +| Namespace | Phalcon\Flash | +| Uses | Phalcon\Di\DiInterface, Phalcon\Flash\AbstractFlash, Phalcon\Flash\Exception, Phalcon\Session\ManagerInterface | +| Extends | AbstractFlash | + +Temporarily stores the messages in session, then messages can be printed in +the next request + + +## Methods +```php +public function clear(): void; +``` +Clear messages in the session messenger + + +```php +public function getMessages( mixed $type = null, bool $remove = bool ): array; +``` +Returns the messages in the session flasher + + +```php +public function getSessionService(): SessionInterface; +``` +Returns the Session Service + + +```php +public function has( mixed $type = null ): bool; +``` +Checks whether there are messages + + +```php +public function message( string $type, string $message ): string | null; +``` +Adds a message to the session flasher + + +```php +public function output( bool $remove = bool ): void; +``` +Prints the messages in the session flasher + + +```php +protected function getSessionMessages( bool $remove, mixed $type = null ): array; +``` +Returns the messages stored in session + + +```php +protected function setSessionMessages( array $messages ): array; +``` +Stores the messages in session + + diff --git a/nikos/api/Phalcon_Forms.md b/nikos/api/Phalcon_Forms.md new file mode 100644 index 00000000000..8f00305dc7a --- /dev/null +++ b/nikos/api/Phalcon_Forms.md @@ -0,0 +1,1106 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Forms' +--- + +* [Phalcon\Forms\Element\AbstractElement](#forms-element-abstractelement) +* [Phalcon\Forms\Element\Check](#forms-element-check) +* [Phalcon\Forms\Element\Date](#forms-element-date) +* [Phalcon\Forms\Element\ElementInterface](#forms-element-elementinterface) +* [Phalcon\Forms\Element\Email](#forms-element-email) +* [Phalcon\Forms\Element\File](#forms-element-file) +* [Phalcon\Forms\Element\Hidden](#forms-element-hidden) +* [Phalcon\Forms\Element\Numeric](#forms-element-numeric) +* [Phalcon\Forms\Element\Password](#forms-element-password) +* [Phalcon\Forms\Element\Radio](#forms-element-radio) +* [Phalcon\Forms\Element\Select](#forms-element-select) +* [Phalcon\Forms\Element\Submit](#forms-element-submit) +* [Phalcon\Forms\Element\Text](#forms-element-text) +* [Phalcon\Forms\Element\TextArea](#forms-element-textarea) +* [Phalcon\Forms\Exception](#forms-exception) +* [Phalcon\Forms\Form](#forms-form) +* [Phalcon\Forms\Manager](#forms-manager) + +

        Abstract Class Phalcon\Forms\Element\AbstractElement

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/forms/element/abstractelement.zep) + +| Namespace | Phalcon\Forms\Element | +| Uses | InvalidArgumentException, Phalcon\Forms\Form, Phalcon\Forms\Exception, Phalcon\Messages\MessageInterface, Phalcon\Messages\Messages, Phalcon\Tag, Phalcon\Validation\ValidatorInterface | +| Implements | ElementInterface | + +This is a base class for form elements + + +## Properties +```php +// +protected attributes; + +// +protected filters; + +// +protected form; + +// +protected label; + +// +protected messages; + +// +protected name; + +// +protected options; + +/** + * @var array + */ +protected validators; + +// +protected value; + +``` + +## Methods +```php +public function __construct( string $name, array $attributes = [] ): void; +``` +Phalcon\Forms\Element constructor + +@param string name Attribute name (value of 'name' attribute of HTML element) +@param array attributes Additional HTML element attributes + + +```php +public function __toString(): string; +``` +Magic method __toString renders the widget without attributes + + +```php +public function addFilter( string $filter ): ElementInterface; +``` +Adds a filter to current list of filters + + +```php +public function addValidator( ValidatorInterface $validator ): ElementInterface; +``` +Adds a validator to the element + + +```php +public function addValidators( array $validators, bool $merge = bool ): ElementInterface; +``` +Adds a group of validators + +@param \Phalcon\Validation\ValidatorInterface[] validators + + +```php +public function appendMessage( MessageInterface $message ): ElementInterface; +``` +Appends a message to the internal message list + + +```php +public function clear(): ElementInterface; +``` +Clears element to its default value + + +```php +public function getAttribute( string $attribute, mixed $defaultValue = null ): mixed; +``` +Returns the value of an attribute if present + + +```php +public function getAttributes(): array; +``` +Returns the default attributes for the element + + +```php +public function getDefault(): mixed; +``` +Returns the default value assigned to the element + + +```php +public function getFilters(); +``` +Returns the element filters + +@return mixed + + +```php +public function getForm(): Form; +``` +Returns the parent form to the element + + +```php +public function getLabel(): string; +``` +Returns the element label + + +```php +public function getMessages(): Messages; +``` +Returns the messages that belongs to the element +The element needs to be attached to a form + + +```php +public function getName(): string; +``` +Returns the element name + + +```php +public function getUserOption( string $option, mixed $defaultValue = null ): mixed; +``` +Returns the value of an option if present + + +```php +public function getUserOptions(): array; +``` +Returns the options for the element + + +```php +public function getValidators(): ValidatorInterface[]; +``` +Returns the validators registered for the element + + +```php +public function getValue(): mixed; +``` +Returns the element's value + + +```php +public function hasMessages(): bool; +``` +Checks whether there are messages attached to the element + + +```php +public function label( array $attributes = [] ): string; +``` +Generate the HTML to label the element + + +```php +public function prepareAttributes( array $attributes = [], bool $useChecked = bool ): array; +``` +Returns an array of prepared attributes for Phalcon\Tag helpers +according to the element parameters + + +```php +public function setAttribute( string $attribute, mixed $value ): ElementInterface; +``` +Sets a default attribute for the element + + +```php +public function setAttributes( array $attributes ): ElementInterface; +``` +Sets default attributes for the element + + +```php +public function setDefault( mixed $value ): ElementInterface; +``` +Sets a default value in case the form does not use an entity +or there is no value available for the element in _POST + + +```php +public function setFilters( mixed $filters ): ElementInterface; +``` +Sets the element filters + +@param array|string filters + + +```php +public function setForm( Form $form ): ElementInterface; +``` +Sets the parent form to the element + + +```php +public function setLabel( string $label ): ElementInterface; +``` +Sets the element label + + +```php +public function setMessages( Messages $messages ): ElementInterface; +``` +Sets the validation messages related to the element + + +```php +public function setName( string $name ): ElementInterface; +``` +Sets the element name + + +```php +public function setUserOption( string $option, mixed $value ): ElementInterface; +``` +Sets an option for the element + + +```php +public function setUserOptions( array $options ): ElementInterface; +``` +Sets options for the element + + + + +

        Class Phalcon\Forms\Element\Check

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/forms/element/check.zep) + +| Namespace | Phalcon\Forms\Element | +| Uses | Phalcon\Tag, Phalcon\Forms\Element\AbstractElement | +| Extends | AbstractElement | + +Phalcon\Forms\Element\Check + +Component INPUT[type=check] for forms + + +## Methods +```php +public function render( array $attributes = [] ): string; +``` +Renders the element widget returning html + + + + +

        Class Phalcon\Forms\Element\Date

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/forms/element/date.zep) + +| Namespace | Phalcon\Forms\Element | +| Uses | Phalcon\Tag, Phalcon\Forms\Element\AbstractElement | +| Extends | AbstractElement | + +Component INPUT[type=date] for forms + + +## Methods +```php +public function render( array $attributes = [] ): string; +``` +Renders the element widget returning html + + + + +

        Interface Phalcon\Forms\Element\ElementInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/forms/element/elementinterface.zep) + +| Namespace | Phalcon\Forms\Element | +| Uses | Phalcon\Forms\Form, Phalcon\Messages\MessageInterface, Phalcon\Messages\Messages, Phalcon\Validation\ValidatorInterface | + +Interface for Phalcon\Forms\Element classes + + +## Methods +```php +public function addFilter( string $filter ): ElementInterface; +``` +Adds a filter to current list of filters + + +```php +public function addValidator( ValidatorInterface $validator ): ElementInterface; +``` +Adds a validator to the element + + +```php +public function addValidators( array $validators, bool $merge = bool ): ElementInterface; +``` +Adds a group of validators + +@param \Phalcon\Validation\ValidatorInterface[] + + +```php +public function appendMessage( MessageInterface $message ): ElementInterface; +``` +Appends a message to the internal message list + + +```php +public function clear(): ElementInterface; +``` +Clears every element in the form to its default value + + +```php +public function getAttribute( string $attribute, mixed $defaultValue = null ): mixed; +``` +Returns the value of an attribute if present + + +```php +public function getAttributes(): array; +``` +Returns the default attributes for the element + + +```php +public function getDefault(): mixed; +``` +Returns the default value assigned to the element + + +```php +public function getFilters(); +``` +Returns the element's filters + +@return mixed + + +```php +public function getForm(): Form; +``` +Returns the parent form to the element + + +```php +public function getLabel(): string; +``` +Returns the element's label + + +```php +public function getMessages(): Messages; +``` +Returns the messages that belongs to the element +The element needs to be attached to a form + + +```php +public function getName(): string; +``` +Returns the element's name + + +```php +public function getUserOption( string $option, mixed $defaultValue = null ): mixed; +``` +Returns the value of an option if present + + +```php +public function getUserOptions(): array; +``` +Returns the options for the element + + +```php +public function getValidators(): ValidatorInterface[]; +``` +Returns the validators registered for the element + + +```php +public function getValue(): mixed; +``` +Returns the element's value + + +```php +public function hasMessages(): bool; +``` +Checks whether there are messages attached to the element + + +```php +public function label(): string; +``` +Generate the HTML to label the element + + +```php +public function prepareAttributes( array $attributes = [], bool $useChecked = bool ): array; +``` +Returns an array of prepared attributes for Phalcon\Tag helpers +according to the element's parameters + + +```php +public function render( array $attributes = [] ): string; +``` +Renders the element widget + + +```php +public function setAttribute( string $attribute, mixed $value ): ElementInterface; +``` +Sets a default attribute for the element + + +```php +public function setAttributes( array $attributes ): ElementInterface; +``` +Sets default attributes for the element + + +```php +public function setDefault( mixed $value ): ElementInterface; +``` +Sets a default value in case the form does not use an entity +or there is no value available for the element in _POST + + +```php +public function setFilters( mixed $filters ): ElementInterface; +``` +Sets the element's filters + +@param array|string filters + + +```php +public function setForm( Form $form ): ElementInterface; +``` +Sets the parent form to the element + + +```php +public function setLabel( string $label ): ElementInterface; +``` +Sets the element label + + +```php +public function setMessages( Messages $messages ): ElementInterface; +``` +Sets the validation messages related to the element + + +```php +public function setName( string $name ): ElementInterface; +``` +Sets the element's name + + +```php +public function setUserOption( string $option, mixed $value ): ElementInterface; +``` +Sets an option for the element + + +```php +public function setUserOptions( array $options ): ElementInterface; +``` +Sets options for the element + + + + +

        Class Phalcon\Forms\Element\Email

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/forms/element/email.zep) + +| Namespace | Phalcon\Forms\Element | +| Uses | Phalcon\Tag, Phalcon\Forms\Element\AbstractElement | +| Extends | AbstractElement | + +Phalcon\Forms\Element\Email + +Component INPUT[type=email] for forms + + +## Methods +```php +public function render( array $attributes = [] ): string; +``` +Renders the element widget returning html + + + + +

        Class Phalcon\Forms\Element\File

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/forms/element/file.zep) + +| Namespace | Phalcon\Forms\Element | +| Uses | Phalcon\Tag, Phalcon\Forms\Element\AbstractElement | +| Extends | AbstractElement | + +Component INPUT[type=file] for forms + + +## Methods +```php +public function render( array $attributes = [] ): string; +``` +Renders the element widget returning html + + + + +

        Class Phalcon\Forms\Element\Hidden

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/forms/element/hidden.zep) + +| Namespace | Phalcon\Forms\Element | +| Uses | Phalcon\Tag, Phalcon\Forms\Element\AbstractElement | +| Extends | AbstractElement | + +Phalcon\Forms\Element\Hidden + +Component INPUT[type=hidden] for forms + + +## Methods +```php +public function render( array $attributes = [] ): string; +``` +Renders the element widget returning html + + + + +

        Class Phalcon\Forms\Element\Numeric

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/forms/element/numeric.zep) + +| Namespace | Phalcon\Forms\Element | +| Uses | Phalcon\Tag, Phalcon\Forms\Element\AbstractElement | +| Extends | AbstractElement | + +Phalcon\Forms\Element\Numeric + +Component INPUT[type=number] for forms + + +## Methods +```php +public function render( array $attributes = [] ): string; +``` +Renders the element widget returning html + + + + +

        Class Phalcon\Forms\Element\Password

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/forms/element/password.zep) + +| Namespace | Phalcon\Forms\Element | +| Uses | Phalcon\Tag, Phalcon\Forms\Element\AbstractElement | +| Extends | AbstractElement | + +Phalcon\Forms\Element\Password + +Component INPUT[type=password] for forms + + +## Methods +```php +public function render( array $attributes = [] ): string; +``` +Renders the element widget returning html + + + + +

        Class Phalcon\Forms\Element\Radio

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/forms/element/radio.zep) + +| Namespace | Phalcon\Forms\Element | +| Uses | Phalcon\Tag, Phalcon\Forms\Element\AbstractElement | +| Extends | AbstractElement | + +Phalcon\Forms\Element\Radio + +Component INPUT[type=radio] for forms + + +## Methods +```php +public function render( array $attributes = [] ): string; +``` +Renders the element widget returning html + + + + +

        Class Phalcon\Forms\Element\Select

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/forms/element/select.zep) + +| Namespace | Phalcon\Forms\Element | +| Uses | Phalcon\Forms\Element\AbstractElement, Phalcon\Tag\Select | +| Extends | AbstractElement | + +Phalcon\Forms\Element\Select + +Component SELECT (choice) for forms + + +## Properties +```php +// +protected optionsValues; + +``` + +## Methods +```php +public function __construct( string $name, mixed $options = null, mixed $attributes = null ): void; +``` +Phalcon\Forms\Element constructor + +@param object|array options +@param array attributes + + +```php +public function addOption( mixed $option ): Element; +``` +Adds an option to the current options + +@param array|string option + + +```php +public function getOptions(); +``` +Returns the choices' options + +@return array|object + + +```php +public function render( array $attributes = [] ): string; +``` +Renders the element widget returning html + + +```php +public function setOptions( mixed $options ): Element; +``` +Set the choice's options + +@param array|object options + + + + +

        Class Phalcon\Forms\Element\Submit

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/forms/element/submit.zep) + +| Namespace | Phalcon\Forms\Element | +| Uses | Phalcon\Tag, Phalcon\Forms\Element\AbstractElement | +| Extends | AbstractElement | + +Component INPUT[type=submit] for forms + + +## Methods +```php +public function render( array $attributes = [] ): string; +``` +Renders the element widget + + + + +

        Class Phalcon\Forms\Element\Text

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/forms/element/text.zep) + +| Namespace | Phalcon\Forms\Element | +| Uses | Phalcon\Tag, Phalcon\Forms\Element\AbstractElement | +| Extends | AbstractElement | + +Phalcon\Forms\Element\Text + +Component INPUT[type=text] for forms + + +## Methods +```php +public function render( array $attributes = [] ): string; +``` +Renders the element widget + + + + +

        Class Phalcon\Forms\Element\TextArea

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/forms/element/textarea.zep) + +| Namespace | Phalcon\Forms\Element | +| Uses | Phalcon\Tag, Phalcon\Forms\Element\AbstractElement | +| Extends | AbstractElement | + +Component TEXTAREA for forms + + +## Methods +```php +public function render( array $attributes = [] ): string; +``` +Renders the element widget + + + + +

        Class Phalcon\Forms\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/forms/exception.zep) + +| Namespace | Phalcon\Forms | +| Extends | \Phalcon\Exception | + +Exceptions thrown in Phalcon\Forms will use this class + + + +

        Class Phalcon\Forms\Form

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/forms/form.zep) + +| Namespace | Phalcon\Forms | +| Uses | Countable, Iterator, Phalcon\Di\Injectable, Phalcon\Di\DiInterface, Phalcon\FilterInterface, Phalcon\Filter\FilterInterface, Phalcon\Forms\Exception, Phalcon\Forms\Element\ElementInterface, Phalcon\Html\Attributes, Phalcon\Html\Attributes\AttributesInterface, Phalcon\Messages\Messages, Phalcon\Tag, Phalcon\Validation, Phalcon\Validation\ValidationInterface | +| Extends | Injectable | +| Implements | Countable, Iterator, AttributesInterface | + +This component allows to build forms using an object-oriented interface + + +## Properties +```php +// +protected attributes; + +// +protected data; + +// +protected elements; + +// +protected elementsIndexed; + +// +protected entity; + +// +protected messages; + +// +protected position; + +// +protected options; + +// +protected validation; + +``` + +## Methods +```php +public function __construct( mixed $entity = null, array $userOptions = [] ): void; +``` +Phalcon\Forms\Form constructor + + +```php +public function add( ElementInterface $element, string $position = null, bool $type = null ): Form; +``` +Adds an element to the form + + +```php +public function bind( array $data, mixed $entity, mixed $whitelist = null ): Form; +``` +Binds data to the entity + +@param object entity +@param array whitelist + + +```php +public function clear( mixed $fields = null ): Form; +``` +Clears every element in the form to its default value + +@param array|string|null fields + + +```php +public function count(): int; +``` +Returns the number of elements in the form + + +```php +public function current(): ElementInterface | bool; +``` +Returns the current element in the iterator + + +```php +public function get( string $name ): ElementInterface; +``` +Returns an element added to the form by its name + + +```php +public function getAction(): string; +``` +Returns the form's action + + +```php +public function getAttributes(): Attributes; +``` + Get Form attributes collection + + +```php +public function getElements(): ElementInterface[]; +``` +Returns the form elements added to the form + + +```php +public function getEntity(); +``` +Returns the entity related to the model + +@return object + + +```php +public function getLabel( string $name ): string; +``` +Returns a label for an element + + +```php +public function getMessages(): Messages | array; +``` +Returns the messages generated in the validation. + +```php +if ($form->isValid($_POST) == false) { + $messages = $form->getMessages(); + + foreach ($messages as $message) { + echo $message, "
        "; + } +} +``` + + +```php +public function getMessagesFor( string $name ): Messages; +``` +Returns the messages generated for a specific element + + +```php +public function getUserOption( string $option, mixed $defaultValue = null ): mixed; +``` +Returns the value of an option if present + + +```php +public function getUserOptions(): array; +``` +Returns the options for the element + + +```php +public function getValidation() +``` + + +```php +public function getValue( string $name ): mixed | null; +``` +Gets a value from the internal related entity or from the default value + + +```php +public function has( string $name ): bool; +``` +Check if the form contains an element + + +```php +public function hasMessagesFor( string $name ): bool; +``` +Check if messages were generated for a specific element + + +```php +public function isValid( mixed $data = null, mixed $entity = null ): bool; +``` +Validates the form + +@param array data +@param object entity + + +```php +public function key(): int; +``` +Returns the current position/key in the iterator + + +```php +public function label( string $name, array $attributes = null ): string; +``` +Generate the label of an element added to the form including HTML + + +```php +public function next(): void; +``` +Moves the internal iteration pointer to the next position + + +```php +public function remove( string $name ): bool; +``` +Removes an element from the form + + +```php +public function render( string $name, array $attributes = [] ): string; +``` +Renders a specific item in the form + + +```php +public function rewind(): void; +``` +Rewinds the internal iterator + + +```php +public function setAction( string $action ): Form; +``` +Sets the form's action + +@return Form + + +```php +public function setAttributes( Attributes $attributes ): AttributesInterface; +``` + Set form attributes collection + + +```php +public function setEntity( mixed $entity ): Form; +``` +Sets the entity related to the model + +@param object entity + + +```php +public function setUserOption( string $option, mixed $value ): Form; +``` +Sets an option for the form + + +```php +public function setUserOptions( array $options ): Form; +``` +Sets options for the element + + +```php +public function setValidation( $validation ) +``` + + +```php +public function valid(): bool; +``` +Check if the current element in the iterator is valid + + + + +

        Class Phalcon\Forms\Manager

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/forms/manager.zep) + +| Namespace | Phalcon\Forms | + +Forms Manager + + +## Properties +```php +// +protected forms; + +``` + +## Methods +```php +public function create( string $name, mixed $entity = null ): Form; +``` +Creates a form registering it in the forms manager + +@param object entity + + +```php +public function get( string $name ): Form; +``` +Returns a form by its name + + +```php +public function has( string $name ): bool; +``` +Checks if a form is registered in the forms manager + + +```php +public function set( string $name, Form $form ): FormManager; +``` +Registers a form in the Forms Manager + + diff --git a/nikos/api/Phalcon_Helper.md b/nikos/api/Phalcon_Helper.md new file mode 100644 index 00000000000..7b25a80cd04 --- /dev/null +++ b/nikos/api/Phalcon_Helper.md @@ -0,0 +1,77 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Helper' +--- + +* [Phalcon\Helper\Arr](#helper-arr) +* [Phalcon\Helper\Exception](#helper-exception) +* [Phalcon\Helper\Fs](#helper-fs) +* [Phalcon\Helper\Number](#helper-number) +* [Phalcon\Helper\Str](#helper-str) + +

        Class Phalcon\Helper\Arr

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/helper/arr.zep) + +| Namespace | Phalcon\Helper | +| Uses | Phalcon\Helper\Exception, stdClass | + +This class offers quick array functions throughout the framework + + + +

        Class Phalcon\Helper\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/helper/exception.zep) + +| Namespace | Phalcon\Helper | +| Extends | \Phalcon\Exception | + +Exceptions thrown in Phalcon\Helper will use this class + + + +

        Class Phalcon\Helper\Fs

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/helper/fs.zep) + +| Namespace | Phalcon\Helper | + +This class offers file operation helper + + + +

        Class Phalcon\Helper\Number

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/helper/number.zep) + +| Namespace | Phalcon\Helper | +| Uses | Phalcon\Helper\Exception | + +Phalcon\Helper\number + +This class offers numeric functions for the framework + + + +

        Class Phalcon\Helper\Str

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/helper/str.zep) + +| Namespace | Phalcon\Helper | +| Uses | Phalcon\Helper\Arr, Phalcon\Helper\Exception, RuntimeException | + +This class offers quick string functions throughout the framework + + +## Constants +```php +const RANDOM_ALNUM = 0; +const RANDOM_ALPHA = 1; +const RANDOM_DISTINCT = 5; +const RANDOM_HEXDEC = 2; +const RANDOM_NOZERO = 4; +const RANDOM_NUMERIC = 3; +``` diff --git a/nikos/api/Phalcon_Html.md b/nikos/api/Phalcon_Html.md new file mode 100644 index 00000000000..6f5d3cf759b --- /dev/null +++ b/nikos/api/Phalcon_Html.md @@ -0,0 +1,1540 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Html' +--- + +* [Phalcon\Html\Attributes](#html-attributes) +* [Phalcon\Html\Attributes\AttributesInterface](#html-attributes-attributesinterface) +* [Phalcon\Html\Attributes\RenderInterface](#html-attributes-renderinterface) +* [Phalcon\Html\Breadcrumbs](#html-breadcrumbs) +* [Phalcon\Html\Exception](#html-exception) +* [Phalcon\Html\Helper\AbstractHelper](#html-helper-abstracthelper) +* [Phalcon\Html\Helper\Anchor](#html-helper-anchor) +* [Phalcon\Html\Helper\AnchorRaw](#html-helper-anchorraw) +* [Phalcon\Html\Helper\Body](#html-helper-body) +* [Phalcon\Html\Helper\Button](#html-helper-button) +* [Phalcon\Html\Helper\Close](#html-helper-close) +* [Phalcon\Html\Helper\Element](#html-helper-element) +* [Phalcon\Html\Helper\ElementRaw](#html-helper-elementraw) +* [Phalcon\Html\Helper\Form](#html-helper-form) +* [Phalcon\Html\Helper\Img](#html-helper-img) +* [Phalcon\Html\Helper\Label](#html-helper-label) +* [Phalcon\Html\Helper\TextArea](#html-helper-textarea) +* [Phalcon\Html\Tag](#html-tag) +* [Phalcon\Html\TagFactory](#html-tagfactory) + +

        Class Phalcon\Html\Attributes

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/attributes.zep) + +| Namespace | Phalcon\Html | +| Uses | Phalcon\Collection, Phalcon\Html\Attributes\RenderInterface, Phalcon\Tag | +| Extends | Collection | +| Implements | RenderInterface | + +This class helps to work with HTML Attributes + + +## Methods +```php +public function __toString(): string; +``` +Alias of the render method + + +```php +public function render(): string; +``` +Render attributes as HTML attributes + + + + +

        Interface Phalcon\Html\Attributes\AttributesInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/attributes/attributesinterface.zep) + +| Namespace | Phalcon\Html\Attributes | +| Uses | Phalcon\Html\Attributes | + +* Phalcon\Html\Attributes\AttributesInterface +* +* Interface Phalcon\Html\Attributes\AttributesInterface +*/ + +## Methods +```php +public function getAttributes(): Attributes; +``` +Get Attributes + + +```php +public function setAttributes( Attributes $attributes ): AttributesInterface; +``` +Set Attributes + + + + +

        Interface Phalcon\Html\Attributes\RenderInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/attributes/renderinterface.zep) + +| Namespace | Phalcon\Html\Attributes | + +* Phalcon\Html\Attributes\RenderInterface +* +* Interface Phalcon\Html\Attributes\RenderInterface +*/ + +## Methods +```php +public function render(): string; +``` +Generate a string represetation + + + + +

        Class Phalcon\Html\Breadcrumbs

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/breadcrumbs.zep) + +| Namespace | Phalcon\Html | +| Uses | Phalcon\Di\DiInterface | + +Phalcon\Html\Breadcrumbs + +This component offers an easy way to create breadcrumbs for your application. +The resulting HTML when calling `render()` will have each breadcrumb enclosed +in `
        ` tags, while the whole string is enclosed in `
        ` tags. + + +## Properties +```php +/** + * Keeps all the breadcrumbs + * + * @var array + */ +private elements; + +/** + * Crumb separator + * + * @var string + */ +private separator = / ; + +/** + * The HTML template to use to render the breadcrumbs. + * + * @var string + */ +private template =
        %label%
        ; + +``` + +## Methods +```php +public function add( string $label, string $link = string ): Breadcrumbs; +``` +Adds a new crumb. + +```php +// Adding a crumb with a link +$breadcrumbs->add("Home", "/"); + +// Adding a crumb without a link (normally the last one) +$breadcrumbs->add("Users"); +``` + + +```php +public function clear(): void; +``` +Clears the crumbs + +```php +$breadcrumbs->clear() +``` + + +```php +public function getSeparator(): string +``` + + +```php +public function remove( string $link ): void; +``` +Removes crumb by url. + +```php +$breadcrumbs->remove("/admin/user/create"); + +// remove a crumb without an url (last link) +$breadcrumbs->remove(); +``` + + +```php +public function render(): string; +``` +Renders and outputs breadcrumbs based on previously set template. + +```php +echo $breadcrumbs->render(); +``` + + +```php +public function setSeparator( string $separator ) +``` + + +```php +public function toArray(): array; +``` +Returns the internal breadcrumbs array + + + + +

        Class Phalcon\Html\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/exception.zep) + +| Namespace | Phalcon\Html | +| Extends | \Phalcon\Exception | + +Phalcon\Html\Tag\Exception + +Exceptions thrown in Phalcon\Html\Tag will use this class + + + +

        Abstract Class Phalcon\Html\Helper\AbstractHelper

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/helper/abstracthelper.zep) + +| Namespace | Phalcon\Html\Helper | +| Uses | Phalcon\Html\Exception, Phalcon\Escaper\EscaperInterface | + +Phalcon\Html\Helper\AbstractHelper + +Abstract class for all html helpers + + +## Properties +```php +/** + * @var + */ +protected escaper; + +``` + +## Methods +```php +public function __construct( EscaperInterface $escaper ); +``` +Constructor + + +```php +protected function orderAttributes( array $overrides, array $attributes ): array; +``` +Keeps all the attributes sorted - same order all the tome + +@param array overrides +@param array attributes + +@return array + + +```php +protected function renderAttributes( array $attributes ): string; +``` +Renders all the attributes + + +```php +protected function renderElement( string $tag, array $attributes = [] ): string; +``` +Renders an element + + +```php +protected function renderFullElement( string $tag, string $text, array $attributes = [], bool $raw = bool ): string; +``` +Renders an element + + +```php +protected function selfClose( string $tag, array $attributes = [] ): string; +``` +Produces a self close tag i.e. + + + + +

        Class Phalcon\Html\Helper\Anchor

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/helper/anchor.zep) + +| Namespace | Phalcon\Html\Helper | +| Uses | Phalcon\Html\Helper\AbstractHelper | +| Extends | AbstractHelper | + +Phalcon\Html\Helper\Anchor + +Creates an anchor + + +## Methods +```php +public function __invoke( string $href, string $text, array $attributes = [] ): string; +``` +@var string href The href tag +@var string text The text for the anchor +@var array attributes Any additional attributes + + + + +

        Class Phalcon\Html\Helper\AnchorRaw

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/helper/anchorraw.zep) + +| Namespace | Phalcon\Html\Helper | +| Uses | Phalcon\Html\Helper\AbstractHelper | +| Extends | AbstractHelper | + +Phalcon\Html\Helper\AnchorRaw + +Creates a raw anchor + + +## Methods +```php +public function __invoke( string $href, string $text, array $attributes = [] ): string; +``` +@var string href The href tag +@var string text The text for the anchor +@var array attributes Any additional attributes + + + + +

        Class Phalcon\Html\Helper\Body

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/helper/body.zep) + +| Namespace | Phalcon\Html\Helper | +| Uses | Phalcon\Html\Helper\AbstractHelper | +| Extends | AbstractHelper | + +Phalcon\Html\Helper\Body + +Creates a body tag + + +## Methods +```php +public function __invoke( array $attributes = [] ): string; +``` +@var array attributes Any additional attributes + + + + +

        Class Phalcon\Html\Helper\Button

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/helper/button.zep) + +| Namespace | Phalcon\Html\Helper | +| Uses | Phalcon\Html\Helper\AbstractHelper | +| Extends | AbstractHelper | + +Phalcon\Html\Helper\Button + +Creates a button tag + + +## Methods +```php +public function __invoke( string $text, array $attributes = [] ): string; +``` +@var string text The text for the anchor +@var array attributes Any additional attributes + + + + +

        Class Phalcon\Html\Helper\Close

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/helper/close.zep) + +| Namespace | Phalcon\Html\Helper | +| Extends | AbstractHelper | + +Phalcon\Html\Helper\Close + +Creates a closing tag + + +## Methods +```php +public function __invoke( string $tag ): string; +``` +@param string $tag The tag + +@return string + + + + +

        Class Phalcon\Html\Helper\Element

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/helper/element.zep) + +| Namespace | Phalcon\Html\Helper | +| Uses | Phalcon\Html\Helper\AbstractHelper | +| Extends | AbstractHelper | + +Phalcon\Html\Helper\Address + +Creates an element + + +## Methods +```php +public function __invoke( string $tag, string $text, array $attributes = [] ): string; +``` +@var string tag The tag name +@var string text The text for the anchor +@var array attributes Any additional attributes + + + + +

        Class Phalcon\Html\Helper\ElementRaw

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/helper/elementraw.zep) + +| Namespace | Phalcon\Html\Helper | +| Uses | Phalcon\Html\Exception | +| Extends | AbstractHelper | + +Phalcon\Html\Helper\ElementRaw + +Creates an element raw + + +## Methods +```php +public function __invoke( string $tag, string $text, array $attributes = [] ): string; +``` +@param string $tag The tag for the anchor +@param string $text The text for the anchor +@param array $attributes Any additional attributes + +@return string +@throws Exception + + + + +

        Class Phalcon\Html\Helper\Form

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/helper/form.zep) + +| Namespace | Phalcon\Html\Helper | +| Uses | Phalcon\Html\Helper\AbstractHelper | +| Extends | AbstractHelper | + +Phalcon\Html\Helper\Form + +Creates a form opening tag + + +## Methods +```php +public function __invoke( array $attributes = [] ): string; +``` +@var array attributes Any additional attributes + + + + +

        Class Phalcon\Html\Helper\Img

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/helper/img.zep) + +| Namespace | Phalcon\Html\Helper | +| Uses | Phalcon\Html\Exception | +| Extends | AbstractHelper | + +Phalcon\Html\Helper\Img + +Creates am img tag + + +## Methods +```php +public function __invoke( string $src, array $attributes = [] ): string; +``` +@param string $src +@param array $attributes Any additional attributes + +@return string +@throws Exception + + + + +

        Class Phalcon\Html\Helper\Label

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/helper/label.zep) + +| Namespace | Phalcon\Html\Helper | +| Uses | Phalcon\Html\Exception | +| Extends | AbstractHelper | + +Phalcon\Html\Helper\Label + +Creates a label + + +## Methods +```php +public function __invoke( array $attributes = [] ): string; +``` +@param array $attributes Any additional attributes + +@return string +@throws Exception + + + + +

        Class Phalcon\Html\Helper\TextArea

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/helper/textarea.zep) + +| Namespace | Phalcon\Html\Helper | +| Uses | Phalcon\Html\Helper\AbstractHelper | +| Extends | AbstractHelper | + +Phalcon\Html\Helper\TextArea + +Creates a textarea tag + + +## Methods +```php +public function __invoke( string $text, array $attributes = [] ): string; +``` +@var string text The text for the anchor +@var array attributes Any additional attributes + + + + +

        Class Phalcon\Html\Tag

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/tag.zep) + +| Namespace | Phalcon\Html | +| Uses | Phalcon\Di\DiInterface, Phalcon\Di\AbstractInjectionAware, Phalcon\Escaper, Phalcon\Escaper\EscaperInterface, Phalcon\Helper\Arr, Phalcon\Html\Exception, Phalcon\Url\UrlInterface, Phalcon\Mvc\Model\ResultsetInterface | +| Extends | AbstractInjectionAware | + +Phalcon\Html\Tag + +Phalcon\Html\Tag is designed to simplify building of HTML tags. It provides a +set of helpers to dynamically generate HTML. + + +## Constants +```php +const HTML32 = 1; +const HTML401_FRAMESET = 4; +const HTML401_STRICT = 2; +const HTML401_TRANSITIONAL = 3; +const HTML5 = 5; +const XHTML10_FRAMESET = 8; +const XHTML10_STRICT = 6; +const XHTML10_TRANSITIONAL = 7; +const XHTML11 = 9; +const XHTML20 = 10; +const XHTML5 = 11; +``` + +## Properties +```php +/** + * @var array + */ +private append; + +/** + * @var int + */ +private docType = 5; + +/** + * @var + */ +private escaper; + +/** + * @var array + */ +private prepend; + +/** + * @var string + */ +private separator = ; + +/** + * @var string + */ +private title = ; + +/** + * @var array + */ +private values; + +/** + * @var + */ +private url; + +``` + +## Methods +```php +public function __construct( EscaperInterface $escaper = null, UrlInterface $url = null ); +``` +Constructor + + +```php +public function appendTitle( mixed $title ): Tag; +``` +Appends a text to current document title + + +```php +public function button( string $name, array $parameters = [] ): string; +``` +Builds a HTML input[type="button"] tag + +```php +use Phalcon\Html\Tag; + +$tag = new Tag(); + +echo $tag->button('Click Me'); +``` + +Volt syntax: +```php +{% raw %}{{ button('Click Me') }}{% endraw %} +``` + + +```php +public function clear(): void; +``` +Resets the request and internal values to avoid those fields will have +any default value. + + +```php +public function element( string $tag, array $parameters = [] ): string; +``` +Builds a HTML tag + +Parameters +`onlyStart` Only process the start of th element +`selfClose` It is a self close element +`useEol` Append PHP_EOL at the end + + +```php +public function elementClose( string $tag, array $parameters = [] ): string; +``` +Builds the closing tag of an html element + +Parameters +`useEol` Append PHP_EOL at the end + +```php +use Phalcon\Html\Tag; + +$tab = new Tag(); + +echo $tag->elementClose( + [ + 'name' => 'aside', + ] +); // + +echo $tag->elementClose( + [ + 'name' => 'aside', + 'useEol' => true, + ] +); // '' . PHP_EOL +``` + + +```php +public function endForm( bool $eol = bool ): string; +``` +Returns the closing tag of a form element + + +```php +public function form( string $action, array $parameters = [] ): string; +``` +Builds a HTML FORM tag + +```php +use Phalcon\Html\Tag; + +$tab = new Tag(); + +echo $tag->form('posts/save'); + +echo $tag->form( + 'posts/save', + [ + "method" => "post", + ] +); +``` + +Volt syntax: +```php +{% raw %}{{ form('posts/save') }}{% endraw %} +{% raw %}{{ form('posts/save', ['method': 'post') }}{% endraw %} +``` + + +```php +public function friendlyTitle( string $text, array $parameters = [] ): string; +``` +Converts text to URL-friendly strings + +Parameters +`text` The text to be processed +`separator` Separator to use (default '-') +`lowercase` Convert to lowercase +`replace` + +```php +use Phalcon\Html\Tag; + +$tab = new Tag(); + +echo $tag->friendlyTitle( + [ + 'text' => 'These are big important news', + 'separator' => '-', + ] +); +``` + +Volt Syntax: +```php +{% raw %}{{ friendly_title(['text': 'These are big important news', 'separator': '-']) }}{% endraw %} +``` + + +```php +public function getDocType(): string; +``` +Get the document type declaration of content. If the docType has not +been set properly, XHTML5 is returned + + +```php +public function getTitle( bool $prepend = bool, bool $append = bool ): string; +``` +Gets the current document title. The title will be automatically escaped. + +```php +use Phalcon\Html\Tag; + +$tag = new Tag(); + +$tag + ->setTitleSeparator(' ') + ->prependTitle(['Hello']) + ->setTitle('World') + ->appendTitle(['from Phalcon']); + +echo $tag->getTitle(); // Hello World from Phalcon +echo $tag->getTitle(false); // World from Phalcon +echo $tag->getTitle(true, false); // Hello World +echo $tag->getTitle(false, false); // World +``` + +Volt syntax: +```php +{% raw %}{{ get_title() }}{% endraw %} +``` + + +```php +public function getTitleSeparator(): string; +``` +Gets the current document title separator + +```php +use Phalcon\Html\Tag; + +$tag = new Tag(); + +echo $tag->getTitleSeparator(); +``` + +Volt syntax: +```php +{% raw %}{{ get_title_separator() }}{% endraw %} +``` + + +```php +public function getValue( string $name, array $parameters = [] ): mixed | null; +``` +Every helper calls this function to check whether a component has a +predefined value using `setAttribute` or value from $_POST + + +```php +public function hasValue( string $name ): bool; +``` +Check if a helper has a default value set using `setAttribute()` or +value from $_POST + + +```php +public function image( string $url = string, array $parameters = [] ): string; +``` +Builds HTML IMG tags + +Parameters +`local` Local resource or not (default `true`) + +```php +use Phalcon\Html\Tag; + +$tag = new Tag(); + +echo $tag->image('img/bg.png'); + +echo $tag->image( + 'img/photo.jpg', + [ + 'alt' => 'Some Photo', + ] +); + +echo $tag->image( + 'http://static.mywebsite.com/img/bg.png', + [ + 'local' => false, + ] +); +``` + +Volt Syntax: +```php +{% raw %}{{ image('img/bg.png') }}{% endraw %} +{% raw %}{{ image('img/photo.jpg', ['alt': 'Some Photo') }}{% endraw %} +{% raw %}{{ image('http://static.mywebsite.com/img/bg.png', ['local': false]) }}{% endraw %} +``` + + +```php +public function inputCheckbox( string $name, array $parameters = [] ): string; +``` +Builds a HTML input[type="check"] tag + +```php +echo $tag->inputCheckbox( + [ + 'name' => 'terms, + 'value' => 'Y', + ] +); +``` + +Volt syntax: +```php +{% raw %}{{ input_checkbox(['name': 'terms, 'value': 'Y']) }}{% endraw %} +``` + + +```php +public function inputColor( string $name, array $parameters = [] ): string; +``` +Builds a HTML input[type='color'] tag + + +```php +public function inputDate( string $name, array $parameters = [] ): string; +``` +Builds a HTML input[type='date'] tag + +```php +use Phalcon\Html\Tag; + +$tag = new Tag(); + +echo $tag->inputDate( + [ + 'name' => 'born', + 'value' => '14-12-1980', + ] +); +``` + +Volt syntax: +```php +{% raw %}{{ input_date(['name':'born', 'value':'14-12-1980']) }}{% endraw %} +``` + + +```php +public function inputDateTime( string $name, array $parameters = [] ): string; +``` + Builds a HTML input[type='datetime'] tag + +```php +use Phalcon\Html\Tag; + +$tag = new Tag(); + +echo $tag->inputDateTime( + [ + 'name' => 'born', + 'value' => '14-12-1980', + ] +); +``` + +Volt syntax: +```php +{% raw %}{{ input_date_time(['name':'born', 'value':'14-12-1980']) }}{% endraw %} +``` + + +```php +public function inputDateTimeLocal( string $name, array $parameters = [] ): string; +``` + Builds a HTML input[type='datetime-local'] tag + +```php +use Phalcon\Html\Tag; + +$tag = new Tag(); + +echo $tag->inputDateTimeLocal( + [ + 'name' => 'born', + 'value' => '14-12-1980', + ] +); +``` + +Volt syntax: +```php +{% raw %}{{ input_date_time_local(['name':'born', 'value':'14-12-1980']) }}{% endraw %} +``` + + +```php +public function inputEmail( string $name, array $parameters = [] ): string; +``` +Builds a HTML input[type='email'] tag + +```php +use Phalcon\Html\Tag; + +$tag = new Tag(); + +echo $tag->inputEmail( + [ + 'name' => 'email', + ] +); +``` + +Volt syntax: +```php +{% raw %}{{ input_email(['name': 'email']);{% endraw %} +``` + + +```php +public function inputFile( string $name, array $parameters = [] ): string; +``` +Builds a HTML input[type='file'] tag + +```php +use Phalcon\Html\Tag; + +$tag = new Tag(); + +echo $tag->inputFile( + [ + 'name' => 'file', + ] +); +``` + +Volt syntax: +```php +{% raw %}{{ input_file(['name': 'file']){% endraw %} +``` + + +```php +public function inputHidden( string $name, array $parameters = [] ): string; +``` +Builds a HTML input[type='hidden'] tag + +```php +use Phalcon\Html\Tag; + +$tag = new Tag(); + +echo $tag->inputHidden( + [ + 'name' => 'my-field', + 'value' => 'mike', + ] +); +``` + + +```php +public function inputImage( string $name, array $parameters = [] ): string; +``` +Builds a HTML input[type="image"] tag + +```php +use Phalcon\Html\Tag; + +$tag = new Tag(); +echo $tag->inputImage( + [ + 'src' => '/img/button.png', + ] +); +``` + +Volt syntax: +```php +{% raw %}{{ input_image(['src': '/img/button.png']) }}{% endraw %} +``` + + +```php +public function inputMonth( string $name, array $parameters = [] ): string; +``` +Builds a HTML input[type='month'] tag + + +```php +public function inputNumeric( string $name, array $parameters = [] ): string; +``` +Builds a HTML input[type='number'] tag + +```php +use Phalcon\Html\Tag; + +$tag = new Tag(); + +echo $tag->numericField( + [ + 'name' => 'price', + 'min' => '1', + 'max' => '5', + ] +); +``` + + +```php +public function inputPassword( string $name, array $parameters = [] ): string; +``` +Builds a HTML input[type='password'] tag + +```php +use Phalcon\Html\Tag; + +$tag = new Tag(); + +echo $tag->passwordField( + [ + 'name' => 'my-field', + 'size' => 30, + ] +); +``` + + +```php +public function inputRadio( string $name, array $parameters = [] ): string; +``` +Builds a HTML input[type="radio"] tag + +```php +use Phalcon\Html\Tag; + +$tag = new Tag(); + +echo $tag->inputRadio( + [ + 'name' => 'weather', + 'value" => 'hot', + ] +); +``` + +Volt syntax: +```php +{% raw %}{{ input_radio(['name': 'weather', 'value": 'hot']) }}{% endraw %} +``` + + +```php +public function inputRange( string $name, array $parameters = [] ): string; +``` + Builds a HTML input[type='range'] tag + + +```php +public function inputSearch( string $name, array $parameters = [] ): string; +``` +Builds a HTML input[type='search'] tag + + +```php +public function inputTel( string $name, array $parameters = [] ): string; +``` + Builds a HTML input[type='tel'] tag + + +```php +public function inputText( string $name, array $parameters = [] ): string; +``` +Builds a HTML input[type='text'] tag + +```php +use Phalcon\Html\Tag; + +$tag = new Tag(); + +echo $tag->inputText( + [ + 'name' => 'my-field', + 'size' => 30, + ] +); +``` + + +```php +public function inputTime( string $name, array $parameters = [] ): string; +``` +Builds a HTML input[type='time'] tag + + +```php +public function inputUrl( string $name, array $parameters = [] ): string; +``` +Builds a HTML input[type='url'] tag + + +```php +public function inputWeek( string $name, array $parameters = [] ): string; +``` +Builds a HTML input[type='week'] tag + + +```php +public function javascript( string $url, array $parameters = [] ): string; +``` +Builds a script[type="javascript"] tag + +Parameters +`local` Local resource or not (default `true`) + +```php +use Phalcon\Html\Tag; + +$tag = new Tag(); + +echo $tag->javascript( + 'http://ajax.googleapis.com/ajax/libs/jquery/2.2.3/jquery.min.js', + [ + 'local' => false, + ] +); + +echo $tag->javascript('javascript/jquery.js'); +``` + +Volt syntax: +```php +{% raw %}{{ javascript('http://ajax.googleapis.com/ajax/libs/jquery/2.2.3/jquery.min.js', ['local': false]) }}{% endraw %} +{% raw %}{{ javascript('javascript/jquery.js') }}{% endraw %} +``` + + +```php +public function link( string $url, string $text = string, array $parameters = [] ): string; +``` +Builds a HTML A tag using framework conventions + +Parameters +`local` Local resource or not (default `true`) + +```php +use Phalcon\Html\Tag; + +$tag = new Tag(); + +echo $tag->link('signup/register', 'Register Here!'); + +echo $tag->link( + 'signup/register', + 'Register Here!', + [ + 'class' => 'btn-primary', + ] +); + +echo $tag->link( + 'https://phalcon.io/', + 'Phalcon!', + [ + 'local' => false, + ] +); + +echo $tag->link( + 'https://phalcon.io/', + 'Phalcon!', + [ + 'local' => false, + 'target' => '_new', + ] +); +``` + + +```php +public function prependTitle( mixed $title ): Tag; +``` +Prepends a text to current document title + + +```php +public function renderTitle( bool $prepend = bool, bool $append = bool ): string; +``` +Renders the title with title tags. The title is automaticall escaped + +```php +use Phalcon\Html\Tag; + +$tag = new Tag(); + +$tag + ->setTitleSeparator(' ') + ->prependTitle(['Hello']) + ->setTitle('World') + ->appendTitle(['from Phalcon']); + +echo $tag->renderTitle(); // Hello World from Phalcon +echo $tag->renderTitle(false); // World from Phalcon +echo $tag->renderTitle(true, false); // Hello World +echo $tag->renderTitle(false, false); // World +``` + +```php +{% raw %}{{ render_title() }}{% endraw %} +``` + + +```php +public function reset( string $name, array $parameters = [] ): string; +``` +Builds a HTML input[type="reset"] tag + +```php +use Phalcon\Html\Tag; + +$tag = new Tag(); + +echo $tag->reset('Reset') +``` + +Volt syntax: +```php +{% raw %}{{ reset('Save') }}{% endraw %} +``` + + +```php +public function select( string $name, array $parameters = [], mixed $data = null ): string; +``` +Builds a select element. It accepts an array or a resultset from +a Phalcon\Mvc\Model + +```php +use Phalcon\Html\Tag; + +$tag = new Tag(); + +echo $tag->select( + 'status', + [ + 'id' => 'status-id', + 'useEmpty' => true, + 'emptyValue => '', + 'emptyText' => 'Choose Status...', + ], + [ + 'A' => 'Active', + 'I' => 'Inactive', + ] +); + +echo $tag->select( + 'status', + [ + 'id' => 'status-id', + 'useEmpty' => true, + 'emptyValue => '', + 'emptyText' => 'Choose Type...', + 'using' => [ + 'id, + 'name', + ], + ], + Robots::find( + [ + 'conditions' => 'type = :type:', + 'bind' => [ + 'type' => 'mechanical', + ] + ] + ) +); +``` + + +```php +public function setAttribute( string $name, mixed $value ): Tag; +``` +Assigns default values to generated tags by helpers + +```php +use Phalcon\Html\Tag; + +$tag = new Tag(); + +// Assigning 'peter' to 'name' component +$tag->setAttribute('name', 'peter'); + +// Later in the view +echo $tag->inputText('name'); // Will have the value 'peter' by default +``` + + +```php +public function setAttributes( array $values, bool $merge = bool ): Tag; +``` +Assigns default values to generated tags by helpers + +```php +use Phalcon\Html\Tag; + +$tag = new Tag(); + +// Assigning 'peter' to 'name' component +$tag->setAttribute( + [ + 'name' => 'peter', + ] +); + +// Later in the view +echo $tag->inputText('name'); // Will have the value 'peter' by default +``` + + +```php +public function setDocType( int $doctype ): Tag; +``` +Set the document type of content + + +```php +public function setTitle( string $title ): Tag; +``` +Set the title separator of view content + +```php +use Phalcon\Html\Tag; + +$tag = new Tag(); + +$tag->setTitle('Phalcon Framework'); +``` + + +```php +public function setTitleSeparator( string $separator ): Tag; +``` +Set the title separator of view content + +```php +use Phalcon\Html\Tag; + +$tag = new Tag(); + +echo $tag->setTitleSeparator('-'); +``` + + +```php +public function stylesheet( string $url, array $parameters = [] ): string; +``` +Builds a LINK[rel="stylesheet"] tag + +Parameters +`local` Local resource or not (default `true`) + +```php +use Phalcon\Html\Tag; + +$tag = new Tag(); + +echo $tag->stylesheet( + 'http://fonts.googleapis.com/css?family=Rosario', + [ + 'local' => false, + ] +); + +echo $tag->stylesheet('css/style.css'); +``` + +Volt syntax: +```php +{% raw %}{{ stylesheet('http://fonts.googleapis.com/css?family=Rosario', ['local': false]) }}{% endraw %} +{% raw %}{{ stylesheet('css/style.css') }}{% endraw %} +``` + + +```php +public function submit( string $name, array $parameters = [] ): string; +``` +Builds a HTML input[type="submit"] tag + +```php +use Phalcon\Html\Tag; + +$tag = new Tag(); + +echo $tag->submit('Save'); +``` + +Volt syntax: +```php +{% raw %}{{ submit('Save') }}{% endraw %} +``` + + +```php +public function textArea( string $name, array $parameters = [] ): string; +``` +Builds a HTML TEXTAREA tag + +```php +use Phalcon\Html\Tag; + +$tag = new Tag(); + +echo $tag->textArea( + 'comments', + [ + 'cols' => 10, + 'rows' => 4, + ] +); +``` + +Volt syntax: +```php +{% raw %}{{ text_area('comments', ['cols': 10, 'rows': 4]) }}{% endraw %} +``` + + + + +

        Class Phalcon\Html\TagFactory

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/tagfactory.zep) + +| Namespace | Phalcon\Html | +| Uses | Phalcon\Escaper, Phalcon\Escaper\EscaperInterface, Phalcon\Factory\AbstractFactory | +| Extends | AbstractFactory | + +ServiceLocator implementation for Tag helpers + + +## Properties +```php +/** + * @var + */ +private escaper; + +``` + +## Methods +```php +public function __construct( EscaperInterface $escaper, array $services = [] ); +``` +TagFactory constructor. + + +```php +public function newInstance( string $name ): mixed; +``` +@param string name + +@return mixed +@throws Exception + + +```php +protected function getAdapters(): array; +``` +// + diff --git a/nikos/api/Phalcon_Http.md b/nikos/api/Phalcon_Http.md new file mode 100644 index 00000000000..cbda4e9f312 --- /dev/null +++ b/nikos/api/Phalcon_Http.md @@ -0,0 +1,4515 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Http' +--- + +* [Phalcon\Http\Cookie](#http-cookie) +* [Phalcon\Http\Cookie\Exception](#http-cookie-exception) +* [Phalcon\Http\CookieInterface](#http-cookieinterface) +* [Phalcon\Http\Message\AbstractCommon](#http-message-abstractcommon) +* [Phalcon\Http\Message\AbstractMessage](#http-message-abstractmessage) +* [Phalcon\Http\Message\AbstractRequest](#http-message-abstractrequest) +* [Phalcon\Http\Message\Exception\InvalidArgumentException](#http-message-exception-invalidargumentexception) +* [Phalcon\Http\Message\Request](#http-message-request) +* [Phalcon\Http\Message\RequestFactory](#http-message-requestfactory) +* [Phalcon\Http\Message\Response](#http-message-response) +* [Phalcon\Http\Message\ResponseFactory](#http-message-responsefactory) +* [Phalcon\Http\Message\ServerRequest](#http-message-serverrequest) +* [Phalcon\Http\Message\ServerRequestFactory](#http-message-serverrequestfactory) +* [Phalcon\Http\Message\Stream](#http-message-stream) +* [Phalcon\Http\Message\Stream\Input](#http-message-stream-input) +* [Phalcon\Http\Message\Stream\Memory](#http-message-stream-memory) +* [Phalcon\Http\Message\Stream\Temp](#http-message-stream-temp) +* [Phalcon\Http\Message\StreamFactory](#http-message-streamfactory) +* [Phalcon\Http\Message\UploadedFile](#http-message-uploadedfile) +* [Phalcon\Http\Message\UploadedFileFactory](#http-message-uploadedfilefactory) +* [Phalcon\Http\Message\Uri](#http-message-uri) +* [Phalcon\Http\Message\UriFactory](#http-message-urifactory) +* [Phalcon\Http\Request](#http-request) +* [Phalcon\Http\Request\Exception](#http-request-exception) +* [Phalcon\Http\Request\File](#http-request-file) +* [Phalcon\Http\Request\FileInterface](#http-request-fileinterface) +* [Phalcon\Http\RequestInterface](#http-requestinterface) +* [Phalcon\Http\Response](#http-response) +* [Phalcon\Http\Response\Cookies](#http-response-cookies) +* [Phalcon\Http\Response\CookiesInterface](#http-response-cookiesinterface) +* [Phalcon\Http\Response\Exception](#http-response-exception) +* [Phalcon\Http\Response\Headers](#http-response-headers) +* [Phalcon\Http\Response\HeadersInterface](#http-response-headersinterface) +* [Phalcon\Http\ResponseInterface](#http-responseinterface) +* [Phalcon\Http\Server\AbstractMiddleware](#http-server-abstractmiddleware) +* [Phalcon\Http\Server\AbstractRequestHandler](#http-server-abstractrequesthandler) + +

        Class Phalcon\Http\Cookie

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/cookie.zep) + +| Namespace | Phalcon\Http | +| Uses | Phalcon\Di\DiInterface, Phalcon\Di\AbstractInjectionAware, Phalcon\Crypt\CryptInterface, Phalcon\Crypt\Mismatch, Phalcon\Filter\FilterInterface, Phalcon\Http\Response\Exception, Phalcon\Http\Cookie\Exception, Phalcon\Session\ManagerInterface | +| Extends | AbstractInjectionAware | +| Implements | CookieInterface | + +Provide OO wrappers to manage a HTTP cookie. + + +## Properties +```php +// +protected domain; + +// +protected expire; + +// +protected filter; + +// +protected httpOnly; + +// +protected name; + +// +protected path; + +// +protected read = false; + +// +protected restored = false; + +// +protected secure; + +/** + * The cookie's sign key. + * @var string|null + */ +protected signKey; + +// +protected useEncryption = false; + +// +protected value; + +``` + +## Methods +```php +public function __construct( string $name, mixed $value = null, int $expire = int, string $path = string, bool $secure = null, string $domain = null, bool $httpOnly = bool ); +``` +Phalcon\Http\Cookie constructor. + + +```php +public function __toString(): string; +``` +Magic __toString method converts the cookie's value to string + + +```php +public function delete(); +``` +Deletes the cookie by setting an expire time in the past + + +```php +public function getDomain(): string; +``` +Returns the domain that the cookie is available to + + +```php +public function getExpiration(): string; +``` +Returns the current expiration time + + +```php +public function getHttpOnly(): bool; +``` +Returns if the cookie is accessible only through the HTTP protocol + + +```php +public function getName(): string; +``` +Returns the current cookie's name + + +```php +public function getPath(): string; +``` +Returns the current cookie's path + + +```php +public function getSecure(): bool; +``` +Returns whether the cookie must only be sent when the connection is +secure (HTTPS) + + +```php +public function getValue( mixed $filters = null, mixed $defaultValue = null ): mixed; +``` +Returns the cookie's value. + + +```php +public function isUsingEncryption(): bool; +``` +Check if the cookie is using implicit encryption + + +```php +public function restore(): CookieInterface; +``` +Reads the cookie-related info from the SESSION to restore the cookie as +it was set. + +This method is automatically called internally so normally you don't +need to call it. + + +```php +public function send(): CookieInterface; +``` +Sends the cookie to the HTTP client. + +Stores the cookie definition in session. + + +```php +public function setDomain( string $domain ): CookieInterface; +``` +Sets the domain that the cookie is available to + + +```php +public function setExpiration( int $expire ): CookieInterface; +``` +Sets the cookie's expiration time + + +```php +public function setHttpOnly( bool $httpOnly ): CookieInterface; +``` +Sets if the cookie is accessible only through the HTTP protocol + + +```php +public function setPath( string $path ): CookieInterface; +``` +Sets the cookie's expiration time + + +```php +public function setSecure( bool $secure ): CookieInterface; +``` +Sets if the cookie must only be sent when the connection is secure (HTTPS) + + +```php +public function setSignKey( string $signKey = null ): CookieInterface; +``` +Sets the cookie's sign key. + +The `$signKey' MUST be at least 32 characters long +and generated using a cryptographically secure pseudo random generator. + +Use NULL to disable cookie signing. + +@see \Phalcon\Security\Random +@throws \Phalcon\Http\Cookie\Exception + + +```php +public function setValue( mixed $value ): CookieInterface; +``` +Sets the cookie's value + +@param string value + + +```php +public function useEncryption( bool $useEncryption ): CookieInterface; +``` +Sets if the cookie must be encrypted/decrypted automatically + + +```php +protected function assertSignKeyIsLongEnough( string $signKey ): void; +``` +Assert the cookie's key is enough long. + +@throws \Phalcon\Http\Cookie\Exception + + + + +

        Class Phalcon\Http\Cookie\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/cookie/exception.zep) + +| Namespace | Phalcon\Http\Cookie | +| Extends | \Phalcon\Exception | + +Phalcon\Http\Cookie\Exception + +Exceptions thrown in Phalcon\Http\Cookie will use this class. + + + +

        Interface Phalcon\Http\CookieInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/cookieinterface.zep) + +| Namespace | Phalcon\Http | + +Interface for Phalcon\Http\Cookie + + +## Methods +```php +public function delete(); +``` +Deletes the cookie + + +```php +public function getDomain(): string; +``` +Returns the domain that the cookie is available to + + +```php +public function getExpiration(): string; +``` +Returns the current expiration time + + +```php +public function getHttpOnly(): bool; +``` +Returns if the cookie is accessible only through the HTTP protocol + + +```php +public function getName(): string; +``` +Returns the current cookie's name + + +```php +public function getPath(): string; +``` +Returns the current cookie's path + + +```php +public function getSecure(): bool; +``` +Returns whether the cookie must only be sent when the connection is +secure (HTTPS) + + +```php +public function getValue( mixed $filters = null, mixed $defaultValue = null ): mixed; +``` +Returns the cookie's value. + + +```php +public function isUsingEncryption(): bool; +``` +Check if the cookie is using implicit encryption + + +```php +public function send(): CookieInterface; +``` +Sends the cookie to the HTTP client + + +```php +public function setDomain( string $domain ): CookieInterface; +``` +Sets the domain that the cookie is available to + + +```php +public function setExpiration( int $expire ): CookieInterface; +``` +Sets the cookie's expiration time + + +```php +public function setHttpOnly( bool $httpOnly ): CookieInterface; +``` +Sets if the cookie is accessible only through the HTTP protocol + + +```php +public function setPath( string $path ): CookieInterface; +``` +Sets the cookie's expiration time + + +```php +public function setSecure( bool $secure ): CookieInterface; +``` +Sets if the cookie must only be sent when the connection is secure +(HTTPS) + + +```php +public function setValue( mixed $value ): CookieInterface; +``` +Sets the cookie's value + +@param string value + + +```php +public function useEncryption( bool $useEncryption ): CookieInterface; +``` +Sets if the cookie must be encrypted/decrypted automatically + + + + +

        Abstract Class Phalcon\Http\Message\AbstractCommon

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/abstractcommon.zep) + +| Namespace | Phalcon\Http\Message | +| Uses | Phalcon\Http\Message\Exception\InvalidArgumentException | + +Common methods + + +## Methods +```php +final protected function checkStringParameter( mixed $element ): void; +``` +Checks the element passed if it is a string + +@param mixed $element + + +```php +final protected function cloneInstance( mixed $element, string $property ): object; +``` +Returns a new instance having set the parameter + +@param mixed $element +@param string $property + +@return mixed + + +```php +final protected function processWith( mixed $element, string $property ): object; +``` +Checks the element passed; assigns it to the property and returns a +clone of the object back + +@param mixed $element +@param string $property + +@return mixed + + + + +

        Abstract Class Phalcon\Http\Message\AbstractMessage

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/abstractmessage.zep) + +| Namespace | Phalcon\Http\Message | +| Uses | Phalcon\Collection, Phalcon\Http\Message\AbstractCommon, Phalcon\Http\Message\Exception\InvalidArgumentException, Phalcon\Http\Message\Stream, Psr\Http\Message\StreamInterface, Psr\Http\Message\UriInterface | +| Extends | AbstractCommon | + +Message methods + + +## Properties +```php +/** + * Gets the body of the message. + * + * @var + */ +protected body; + +/** + * @var + */ +protected headers; + +/** + * Retrieves the HTTP protocol version as a string. + * + * The string MUST contain only the HTTP version number (e.g., '1.1', + * '1.0'). + * + * @return string HTTP protocol version. + * + * @var string + */ +protected protocolVersion = 1.1; + +/** + * Retrieves the URI instance. + * + * This method MUST return a UriInterface instance. + * + * @see http://tools.ietf.org/html/rfc3986#section-4.3 + * + * @var UriInterface + */ +protected uri; + +``` + +## Methods +```php +public function getBody(): +``` + + +```php +public function getHeader( mixed $name ): array; +``` +Retrieves a message header value by the given case-insensitive name. + +This method returns an array of all the header values of the given +case-insensitive header name. + +If the header does not appear in the message, this method MUST return an +empty array. + +@param string $name + +@return array + + +```php +public function getHeaderLine( mixed $name ): string; +``` +Retrieves a comma-separated string of the values for a single header. + +This method returns all of the header values of the given +case-insensitive header name as a string concatenated together using +a comma. + +NOTE: Not all header values may be appropriately represented using +comma concatenation. For such headers, use getHeader() instead +and supply your own delimiter when concatenating. + +If the header does not appear in the message, this method MUST return +an empty string. + +@param string $name + +@return string + + +```php +public function getHeaders(): array; +``` +Retrieves all message header values. + +The keys represent the header name as it will be sent over the wire, and +each value is an array of strings associated with the header. + + // Represent the headers as a string + foreach ($message->getHeaders() as $name => $values) { + echo $name . ': ' . implode(', ', $values); + } + + // Emit headers iteratively: + foreach ($message->getHeaders() as $name => $values) { + foreach ($values as $value) { + header(sprintf('%s: %s', $name, $value), false); + } + } + +While header names are not case-sensitive, getHeaders() will preserve the +exact case in which headers were originally specified. + +@return array + + +```php +public function getProtocolVersion(): string +``` + + +```php +public function getUri(): UriInterface +``` + + +```php +public function hasHeader( mixed $name ): bool; +``` +Checks if a header exists by the given case-insensitive name. + +@param string $name + +@return bool + + +```php +public function withAddedHeader( mixed $name, mixed $value ): object; +``` +Return an instance with the specified header appended with the given +value. + +Existing values for the specified header will be maintained. The new +value(s) will be appended to the existing list. If the header did not +exist previously, it will be added. + +This method MUST be implemented in such a way as to retain the +immutability of the message, and MUST return an instance that has the +new header and/or value. + +@param string $name +@param string|string[] $value + +@return self + + +```php +public function withBody( StreamInterface $body ): object; +``` +Return an instance with the specified message body. + +The body MUST be a StreamInterface object. + +This method MUST be implemented in such a way as to retain the +immutability of the message, and MUST return a new instance that has the +new body stream. + +@param StreamInterface $body + +@return self +@throws InvalidArgumentException When the body is not valid. + + + +```php +public function withHeader( mixed $name, mixed $value ): object; +``` +Return an instance with the provided value replacing the specified +header. + +While header names are case-insensitive, the casing of the header will +be preserved by this function, and returned from getHeaders(). + +This method MUST be implemented in such a way as to retain the +immutability of the message, and MUST return an instance that has the +new and/or updated header and value. + +@param string $name +@param string|string[] $value + +@return self +@throws InvalidArgumentException for invalid header names or values. + + + +```php +public function withProtocolVersion( mixed $version ): object; +``` +Return an instance with the specified HTTP protocol version. + +The version string MUST contain only the HTTP version number (e.g., +'1.1', '1.0'). + +This method MUST be implemented in such a way as to retain the +immutability of the message, and MUST return an instance that has the +new protocol version. + +@param string $version + +@return self + + +```php +public function withoutHeader( mixed $name ): object; +``` +Return an instance without the specified header. + +Header resolution MUST be done without case-sensitivity. + +This method MUST be implemented in such a way as to retain the +immutability of the message, and MUST return an instance that removes +the named header. + +@param string $name + +@return self + + +```php +final protected function checkHeaderHost( Collection $collection ): Collection; +``` +Ensure Host is the first header. + +@see: http://tools.ietf.org/html/rfc7230#section-5.4 + +@param Collection $collection + +@return Collection + + +```php +final protected function checkHeaderName( mixed $name ): void; +``` +Check the name of the header. Throw exception if not valid + +@see http://tools.ietf.org/html/rfc7230#section-3.2 + +@param $name + + +```php +final protected function checkHeaderValue( mixed $value ): void; +``` +Validates a header value + +Most HTTP header field values are defined using common syntax +components (token, quoted-string, and comment) separated by +whitespace or specific delimiting characters. Delimiters are chosen +from the set of US-ASCII visual characters not allowed in a token +(DQUOTE and '(),/:;<=>?@[\]{}'). + + token = 1*tchar + + tchar = '!' / '#' / '$' / '%' / '&' / ''' / '*' + / '+' / '-' / '.' / '^' / '_' / '`' / '|' / '~' + / DIGIT / ALPHA + ; any VCHAR, except delimiters + +A string of text is parsed as a single value if it is quoted using +double-quote marks. + + quoted-string = DQUOTE( qdtext / quoted-pair ) DQUOTE + qdtext = HTAB / SP /%x21 / %x23-5B / %x5D-7E / obs-text + obs-text = %x80-FF + +Comments can be included in some HTTP header fields by surrounding +the comment text with parentheses. Comments are only allowed in +fields containing 'comment' as part of their field value definition. + + comment = '('( ctext / quoted-pair / comment ) ')' + ctext = HTAB / SP / %x21-27 / %x2A-5B / %x5D-7E / obs-text + +The backslash octet ('\') can be used as a single-octet quoting +mechanism within quoted-string and comment constructs. Recipients +that process the value of a quoted-string MUST handle a quoted-pair +as if it were replaced by the octet following the backslash. + + quoted-pair = '\' ( HTAB / SP / VCHAR / obs-text ) + +A sender SHOULD NOT generate a quoted-pair in a quoted-string except +where necessary to quote DQUOTE and backslash octets occurring within +that string. A sender SHOULD NOT generate a quoted-pair in a comment +except where necessary to quote parentheses ['(' and ')'] and +backslash octets occurring within that comment. + +@see https://tools.ietf.org/html/rfc7230#section-3.2.6 + +@param $value + + +```php +final protected function getHeaderValue( mixed $values ): array; +``` +Returns the header values checked for validity + +@param $values + +@return array + + +```php +final protected function getUriHost( UriInterface $uri ): string; +``` +Return the host and if applicable the port + +@param UriInterface $uri + +@return string + + +```php +final protected function populateHeaderCollection( array $headers ): Collection; +``` +Populates the header collection + +@param array $headers + +@return Collection + + +```php +final protected function processBody( mixed $body = string, string $mode = string ): StreamInterface; +``` +Set a valid stream + +@param StreamInterface|resource|string $body +@param string $mode + +@return StreamInterface + + +```php +final protected function processHeaders( mixed $headers ): Collection; +``` +Sets the headers + +@param $headers + +@return Collection + + +```php +final protected function processProtocol( mixed $protocol = string ): string; +``` +Checks the protocol + +@param string $protocol + +@return string + + + + +

        Abstract Class Phalcon\Http\Message\AbstractRequest

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/abstractrequest.zep) + +| Namespace | Phalcon\Http\Message | +| Uses | Phalcon\Collection, Phalcon\Http\Message\AbstractMessage, Phalcon\Http\Message\Exception\InvalidArgumentException, Phalcon\Http\Message\Uri, Psr\Http\Message\UriInterface | +| Extends | AbstractMessage | + +Request methods + + +## Properties +```php +/** + * Retrieves the HTTP method of the request. + * + * @var string + */ +protected method = GET; + +/** + * The request-target, if it has been provided or calculated. + * + * @var null|string + */ +protected requestTarget; + +/** + * Retrieves the URI instance. + * + * This method MUST return a UriInterface instance. + * + * @see http://tools.ietf.org/html/rfc3986#section-4.3 + * + * @var UriInterface + */ +protected uri; + +``` + +## Methods +```php +public function getMethod(): string +``` + + +```php +public function getRequestTarget(): string; +``` +Retrieves the message's request target. + +Retrieves the message's request-target either as it will appear (for +clients), as it appeared at request (for servers), or as it was +specified for the instance (see withRequestTarget()). + +In most cases, this will be the origin-form of the composed URI, unless a +value was provided to the concrete implementation (see +withRequestTarget() below). + +@return string + + +```php +public function getUri(): UriInterface +``` + + +```php +public function withMethod( mixed $method ): object; +``` +Return an instance with the provided HTTP method. + +While HTTP method names are typically all uppercase characters, HTTP +method names are case-sensitive and thus implementations SHOULD NOT +modify the given string. + +This method MUST be implemented in such a way as to retain the +immutability of the message, and MUST return an instance that has the +changed request method. + +@param string $method + +@return object +@throws InvalidArgumentException for invalid HTTP methods. + + + +```php +public function withRequestTarget( mixed $requestTarget ): object; +``` +Return an instance with the specific request-target. + +If the request needs a non-origin-form request-target — e.g., for +specifying an absolute-form, authority-form, or asterisk-form — +this method may be used to create an instance with the specified +request-target, verbatim. + +This method MUST be implemented in such a way as to retain the +immutability of the message, and MUST return an instance that has the +changed request target. + +@see http://tools.ietf.org/html/rfc7230#section-5.3 (for the various + request-target forms allowed in request messages) + +@param mixed $requestTarget + +@return object + + +```php +public function withUri( UriInterface $uri, mixed $preserveHost = bool ): object; +``` +Returns an instance with the provided URI. + +This method MUST update the Host header of the returned request by +default if the URI contains a host component. If the URI does not +contain a host component, any pre-existing Host header MUST be carried +over to the returned request. + +You can opt-in to preserving the original state of the Host header by +setting `$preserveHost` to `true`. When `$preserveHost` is set to +`true`, this method interacts with the Host header in the following +ways: + +- If the Host header is missing or empty, and the new URI contains + a host component, this method MUST update the Host header in the + returned request. +- If the Host header is missing or empty, and the new URI does not +contain a host component, this method MUST NOT update the Host header in +the returned request. +- If a Host header is present and non-empty, this method MUST NOT update + the Host header in the returned request. + +This method MUST be implemented in such a way as to retain the +immutability of the message, and MUST return an instance that has the +new UriInterface instance. + +@see http://tools.ietf.org/html/rfc3986#section-4.3 + +@param UriInterface $uri +@param bool $preserveHost + +@return object + + +```php +final protected function processMethod( mixed $method = string ): string; +``` +Check the method + +@param string $method + +@return string + + +```php +final protected function processUri( mixed $uri ): UriInterface; +``` +Sets a valid Uri + +@param UriInterface|string|null $uri + +@return UriInterface + + + + +

        Class Phalcon\Http\Message\Exception\InvalidArgumentException

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/exception/invalidargumentexception.zep) + +| Namespace | Phalcon\Http\Message\Exception | +| Uses | Throwable | +| Extends | \InvalidArgumentException | +| Implements | Throwable | + +This file is part of the Phalcon Framework. + +(c) Phalcon Team + +For the full copyright and license information, please view the LICENSE.txt +file that was distributed with this source code. + + + +

        Final Class Phalcon\Http\Message\Request

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/request.zep) + +| Namespace | Phalcon\Http\Message | +| Uses | Phalcon\Http\Message\Stream\Input, Phalcon\Http\Message\AbstractRequest, Psr\Http\Message\RequestInterface, Psr\Http\Message\StreamInterface, Psr\Http\Message\UriInterface | +| Extends | AbstractRequest | +| Implements | RequestInterface | + +PSR-7 Request + + +## Methods +```php +public function __construct( string $method = string, mixed $uri = null, mixed $body = string, mixed $headers = [] ); +``` +Request constructor. + +@param string $method +@param UriInterface|string|null $uri +@param StreamInterface|resource|string $body +@param array $headers + + + + +

        Final Class Phalcon\Http\Message\RequestFactory

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/requestfactory.zep) + +| Namespace | Phalcon\Http\Message | +| Uses | Phalcon\Http\Message\Request, Psr\Http\Message\RequestInterface, Psr\Http\Message\RequestFactoryInterface, Psr\Http\Message\UriInterface | +| Implements | RequestFactoryInterface | + +PSR-17 RequestFactory + + +## Methods +```php +public function createRequest( string $method, mixed $uri ): RequestInterface; +``` +Create a new request. + +@param string $method +@param UriInterface|string|null $uri + +@return RequestInterface + + + + +

        Final Class Phalcon\Http\Message\Response

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/response.zep) + +| Namespace | Phalcon\Http\Message | +| Uses | Phalcon\Helper\Number, Phalcon\Http\Message\AbstractMessage, Phalcon\Http\Message\Exception\InvalidArgumentException, Psr\Http\Message\ResponseInterface | +| Extends | AbstractMessage | +| Implements | ResponseInterface | + +PSR-7 Response + + +## Properties +```php +/** + * Gets the response reason phrase associated with the status code. + * + * Because a reason phrase is not a required element in a response + * status line, the reason phrase value MAY be empty. Implementations MAY + * choose to return the default RFC 7231 recommended reason phrase (or + * those + * listed in the IANA HTTP Status Code Registry) for the response's + * status code. + * + * @see http://tools.ietf.org/html/rfc7231#section-6 + * @see http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml + * + * @var string + */ +private reasonPhrase = ; + +/** + * Gets the response status code. + * + * The status code is a 3-digit integer result code of the server's attempt + * to understand and satisfy the request. + * + * @var int + */ +private statusCode = 200; + +``` + +## Methods +```php +public function __construct( mixed $body = string, int $code = int, array $headers = [] ); +``` +Response constructor. + +@param string $body +@param int $code +@param array $headers + + +```php +public function getReasonPhrase(): string +``` + + +```php +public function getStatusCode(): int +``` + + +```php +public function withStatus( mixed $code, mixed $reasonPhrase = string ): Response; +``` +Return an instance with the specified status code and, optionally, +reason phrase. + +If no reason phrase is specified, implementations MAY choose to default +to the RFC 7231 or IANA recommended reason phrase for the response's +status code. + +This method MUST be implemented in such a way as to retain the +immutability of the message, and MUST return an instance that has the +updated status and reason phrase. + +@see http://tools.ietf.org/html/rfc7231#section-6 +@see http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml + +@param int $code +@param string $reasonPhrase + +@return Response + + + + +

        Final Class Phalcon\Http\Message\ResponseFactory

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/responsefactory.zep) + +| Namespace | Phalcon\Http\Message | +| Uses | Phalcon\Http\Message\Response, Psr\Http\Message\ResponseInterface, Psr\Http\Message\ResponseFactoryInterface | +| Implements | ResponseFactoryInterface | + +PSR-17 ResponseFactory + + +## Methods +```php +public function createResponse( int $code = int, string $reasonPhrase = string ): ResponseInterface; +``` +Create a new response. + +@param int $code The HTTP status code. Defaults to 200. +@param string $reasonPhrase The reason phrase to associate with the status + code in the generated response. If none is + provided, implementations MAY use the defaults + as suggested in the HTTP specification. + +@return ResponseInterface + + + + +

        Final Class Phalcon\Http\Message\ServerRequest

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/serverrequest.zep) + +| Namespace | Phalcon\Http\Message | +| Uses | Phalcon\Collection, Phalcon\Http\Message\AbstractRequest, Phalcon\Http\Message\Exception\InvalidArgumentException, Phalcon\Http\Message\Stream\Input, Psr\Http\Message\ServerRequestInterface, Psr\Http\Message\StreamInterface, Psr\Http\Message\UploadedFileInterface, Psr\Http\Message\UriInterface | +| Extends | AbstractRequest | +| Implements | ServerRequestInterface | + +PSR-7 ServerRequest + + +## Properties +```php +/** + * @var Collection + */ +private attributes; + +/** + * Retrieve cookies. + * + * Retrieves cookies sent by the client to the server. + * + * The data MUST be compatible with the structure of the $_COOKIE + * superglobal. + * + * @var array + */ +private cookieParams; + +/** + * Retrieve any parameters provided in the request body. + * + * If the request Content-Type is either application/x-www-form-urlencoded + * or multipart/form-data, and the request method is POST, this method MUST + * return the contents of $_POST. + * + * Otherwise, this method may return any results of deserializing + * the request body content; as parsing returns structured content, the + * potential types MUST be arrays or objects only. A null value indicates + * the absence of body content. + * + * @var mixed + */ +private parsedBody; + +/** + * Retrieve query string arguments. + * + * Retrieves the deserialized query string arguments, if any. + * + * Note: the query params might not be in sync with the URI or server + * params. If you need to ensure you are only getting the original + * values, you may need to parse the query string from + * `getUri()->getQuery()` or from the `QUERY_STRING` server param. + * + * @var array + */ +private queryParams; + +/** + * Retrieve server parameters. + * + * Retrieves data related to the incoming request environment, + * typically derived from PHP's $_SERVER superglobal. The data IS NOT + * REQUIRED to originate from $_SERVER. + * + * @var array + */ +private serverParams; + +/** + * Retrieve normalized file upload data. + * + * This method returns upload metadata in a normalized tree, with each leaf + * an instance of Psr\Http\Message\UploadedFileInterface. + * + * These values MAY be prepared from $_FILES or the message body during + * instantiation, or MAY be injected via withUploadedFiles(). + * + * @var array + */ +private uploadedFiles; + +``` + +## Methods +```php +public function __construct( string $method = string, mixed $uri = null, array $serverParams = [], mixed $body = string, mixed $headers = [], array $cookies = [], array $queryParams = [], array $uploadFiles = [], mixed $parsedBody = null, string $protocol = string ); +``` +ServerRequest constructor. + +@param string $method +@param UriInterface|string|null $uri +@param array $serverParams +@param StreamInterface|string $body +@param array $headers +@param array $cookies +@param array $queryParams +@param array $uploadFiles +@param null|array|object $parsedBody +@param string $protocol + + +```php +public function getAttribute( mixed $name, mixed $defaultValue = null ): mixed; +``` +Retrieve a single derived request attribute. + +Retrieves a single derived request attribute as described in +getAttributes(). If the attribute has not been previously set, returns +the default value as provided. + +This method obviates the need for a hasAttribute() method, as it allows +specifying a default value to return if the attribute is not found. + +@param string $name +@param mixed|null $defaultValue + +@return mixed + + +```php +public function getAttributes(): array; +``` +Retrieve attributes derived from the request. + +The request 'attributes' may be used to allow injection of any +parameters derived from the request: e.g., the results of path +match operations; the results of decrypting cookies; the results of +deserializing non-form-encoded message bodies; etc. Attributes +will be application and request specific, and CAN be mutable. + +@return array + + +```php +public function getCookieParams(): array +``` + + +```php +public function getParsedBody(): mixed +``` + + +```php +public function getQueryParams(): array +``` + + +```php +public function getServerParams(): array +``` + + +```php +public function getUploadedFiles(): array +``` + + +```php +public function withAttribute( mixed $name, mixed $value ): ServerRequest; +``` +Return an instance with the specified derived request attribute. + +This method allows setting a single derived request attribute as +described in getAttributes(). + +This method MUST be implemented in such a way as to retain the +immutability of the message, and MUST return an instance that has the +updated attribute. + +@param string $name +@param mixed $value + +@return ServerRequest + + +```php +public function withCookieParams( array $cookies ): ServerRequest; +``` +Return an instance with the specified cookies. + +The data IS NOT REQUIRED to come from the $_COOKIE superglobal, but MUST +be compatible with the structure of $_COOKIE. Typically, this data will +be injected at instantiation. + +This method MUST NOT update the related Cookie header of the request +instance, nor related values in the server params. + +This method MUST be implemented in such a way as to retain the +immutability of the message, and MUST return an instance that has the +updated cookie values. + +@param array $cookies + +@return ServerRequest + + +```php +public function withParsedBody( mixed $data ): ServerRequest; +``` +Return an instance with the specified body parameters. + +These MAY be injected during instantiation. + +If the request Content-Type is either application/x-www-form-urlencoded +or multipart/form-data, and the request method is POST, use this method +ONLY to inject the contents of $_POST. + +The data IS NOT REQUIRED to come from $_POST, but MUST be the results of +deserializing the request body content. Deserialization/parsing returns +structured data, and, as such, this method ONLY accepts arrays or +objects, or a null value if nothing was available to parse. + +As an example, if content negotiation determines that the request data +is a JSON payload, this method could be used to create a request +instance with the deserialized parameters. + +This method MUST be implemented in such a way as to retain the +immutability of the message, and MUST return an instance that has the +updated body parameters. + +@param array|object|null $data + +@return ServerRequest +@throws InvalidArgumentException if an unsupported argument type is + provided. + + + +```php +public function withQueryParams( array $query ): ServerRequest; +``` +Return an instance with the specified query string arguments. + +These values SHOULD remain immutable over the course of the incoming +request. They MAY be injected during instantiation, such as from PHP's +$_GET superglobal, or MAY be derived from some other value such as the +URI. In cases where the arguments are parsed from the URI, the data +MUST be compatible with what PHP's parse_str() would return for +purposes of how duplicate query parameters are handled, and how nested +sets are handled. + +Setting query string arguments MUST NOT change the URI stored by the +request, nor the values in the server params. + +This method MUST be implemented in such a way as to retain the +immutability of the message, and MUST return an instance that has the +updated query string arguments. + +@param array $query + +@return ServerRequest + + +```php +public function withUploadedFiles( array $uploadedFiles ): ServerRequest; +``` +Create a new instance with the specified uploaded files. + +This method MUST be implemented in such a way as to retain the +immutability of the message, and MUST return an instance that has the +updated body parameters. + +@param array $uploadedFiles + +@return ServerRequest +@throws InvalidArgumentException if an invalid structure is provided. + + + +```php +public function withoutAttribute( mixed $name ): ServerRequest; +``` +Return an instance that removes the specified derived request attribute. + +This method allows removing a single derived request attribute as +described in getAttributes(). + +This method MUST be implemented in such a way as to retain the +immutability of the message, and MUST return an instance that removes +the attribute. + +@param string $name + +@return ServerRequest + + + + +

        Class Phalcon\Http\Message\ServerRequestFactory

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/serverrequestfactory.zep) + +| Namespace | Phalcon\Http\Message | +| Uses | Phalcon\Collection, Phalcon\Helper\Arr, Phalcon\Http\Message\Exception\InvalidArgumentException, Phalcon\Http\Message\ServerRequest, Phalcon\Http\Message\UploadedFile, Phalcon\Http\Message\Uri, Psr\Http\Message\ServerRequestFactoryInterface, Psr\Http\Message\ServerRequestInterface, Psr\Http\Message\UriInterface, Psr\Http\Message\UploadedFileInterface | +| Implements | ServerRequestFactoryInterface | + +PSR-17 ServerRequestFactory + + +## Methods +```php +public function createServerRequest( string $method, mixed $uri, array $serverParams = [] ): ServerRequestInterface; +``` +Create a new server request. + +Note that server-params are taken precisely as given - no +parsing/processing of the given values is performed, and, in particular, +no attempt is made to determine the HTTP method or URI, which must be +provided explicitly. + +@param string $method The HTTP method associated with + the request. +@param UriInterface|string $uri The URI associated with the + request. If the value is a + string, the factory MUST create + a UriInterface instance based + on it. +@param array $serverParams Array of SAPI parameters with + which to seed the generated + request instance. + +@return ServerRequestInterface + + +```php +public function load( array $server = null, array $get = null, array $post = null, array $cookies = null, array $files = null ): ServerRequest; +``` +Create a request from the supplied superglobal values. + +If any argument is not supplied, the corresponding superglobal value will +be used. + +The ServerRequest created is then passed to the fromServer() method in +order to marshal the request URI and headers. + +@param array $server $_SERVER superglobal +@param array $get $_GET superglobal +@param array $post $_POST superglobal +@param array $cookies $_COOKIE superglobal +@param array $files $_FILES superglobal + +@return ServerRequest +@see fromServer() + + +```php +protected function getHeaders(); +``` +Returns the apache_request_headers if it exists + +@return array|false + + + + +

        Class Phalcon\Http\Message\Stream

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/stream.zep) + +| Namespace | Phalcon\Http\Message | +| Uses | Phalcon\Helper\Arr, Exception, Psr\Http\Message\StreamInterface, RuntimeException | +| Implements | StreamInterface | + +PSR-7 Stream + + +## Properties +```php +/** + * @var resource | null + */ +protected handle; + +/** + * @var resource | string + */ +protected stream; + +/** + * @var bool + */ +protected warning = false; + +``` + +## Methods +```php +public function __construct( mixed $stream, string $mode = string ); +``` +Stream constructor. + +@param mixed $stream +@param string $mode + + +```php +public function __destruct(); +``` +Closes the stream when the destructed. + + +```php +public function __toString(): string; +``` +Reads all data from the stream into a string, from the beginning to end. + +This method MUST attempt to seek to the beginning of the stream before +reading data and read the stream until the end is reached. + +Warning: This could attempt to load a large amount of data into memory. + +This method MUST NOT raise an exception in order to conform with PHP's +string casting operations. + +@see http://php.net/manual/en/language.oop5.magic.php#object.tostring + + +```php +public function close(): void; +``` +Closes the stream and any underlying resources. + + +```php +public function detach(): resource | null; +``` +Separates any underlying resources from the stream. + +After the stream has been detached, the stream is in an unusable state. + +@return resource | null + + +```php +public function eof(): bool; +``` +Returns true if the stream is at the end of the stream. + + +```php +public function getContents(): string; +``` +Returns the remaining contents in a string + + +```php +public function getMetadata( mixed $key = null ); +``` +Get stream metadata as an associative array or retrieve a specific key. + +The keys returned are identical to the keys returned from PHP's +stream_get_meta_data() function. + +@param mixed|null $key + +@return array|mixed|null + + +```php +public function getSize(): null | int; +``` +Get the size of the stream if known. + + +```php +public function isReadable(): bool; +``` +Returns whether or not the stream is readable. + + +```php +public function isSeekable(): bool; +``` +Returns whether or not the stream is seekable. + + +```php +public function isWritable(): bool; +``` +Returns whether or not the stream is writable. + + +```php +public function read( mixed $length ): string; +``` +Read data from the stream. + +@param int $length + +@return string + + +```php +public function rewind(): void; +``` +Seek to the beginning of the stream. + +If the stream is not seekable, this method will raise an exception; +otherwise, it will perform a seek(0). + + +```php +public function seek( mixed $offset, mixed $whence = int ): void; +``` +Seek to a position in the stream. + +@param int $offset +@param int $whence + + +```php +public function setStream( mixed $stream, string $mode = string ): void; +``` +Sets the stream - existing instance + +@param mixed $stream +@param string $mode + + +```php +public function tell(): int; +``` +Returns the current position of the file read/write pointer + +@return int + + +```php +public function write( mixed $data ): int; +``` +Write data to the stream. + +@param string $data + +@return int + + + + +

        Class Phalcon\Http\Message\Stream\Input

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/stream/input.zep) + +| Namespace | Phalcon\Http\Message\Stream | +| Uses | Phalcon\Http\Message\Stream | +| Extends | Stream | + +Describes a data stream from "php://input" + +Typically, an instance will wrap a PHP stream; this interface provides +a wrapper around the most common operations, including serialization of +the entire stream to a string. + + +## Properties +```php +/** + * @var string + */ +private data = ; + +/** + * @var bool + */ +private eof = false; + +``` + +## Methods +```php +public function __construct(); +``` +Input constructor. + + +```php +public function __toString(): string; +``` +Reads all data from the stream into a string, from the beginning to end. + +This method MUST attempt to seek to the beginning of the stream before +reading data and read the stream until the end is reached. + +Warning: This could attempt to load a large amount of data into memory. + +This method MUST NOT raise an exception in order to conform with PHP's +string casting operations. + +@see http://php.net/manual/en/language.oop5.magic.php#object.tostring + + +```php +public function getContents( int $length = int ): string; +``` +Returns the remaining contents in a string + +@throws RuntimeException if unable to read. +@throws RuntimeException if error occurs while reading. + +@param int $length + +@return string + + +```php +public function isWritable(): bool; +``` +Returns whether or not the stream is writeable. + + +```php +public function read( mixed $length ): string; +``` +Read data from the stream. + +@param int $length + +@return string + + + + +

        Class Phalcon\Http\Message\Stream\Memory

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/stream/memory.zep) + +| Namespace | Phalcon\Http\Message\Stream | +| Uses | Phalcon\Http\Message\Stream | +| Extends | Stream | + +Describes a data stream from "php://memory" + +Typically, an instance will wrap a PHP stream; this interface provides +a wrapper around the most common operations, including serialization of +the entire stream to a string. + + +## Methods +```php +public function __construct( mixed $mode = string ): void; +``` +Constructor + + + + +

        Class Phalcon\Http\Message\Stream\Temp

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/stream/temp.zep) + +| Namespace | Phalcon\Http\Message\Stream | +| Uses | Phalcon\Http\Message\Stream | +| Extends | Stream | + +Describes a data stream from "php://temp" + +Typically, an instance will wrap a PHP stream; this interface provides +a wrapper around the most common operations, including serialization of +the entire stream to a string. + + +## Methods +```php +public function __construct( mixed $mode = string ): void; +``` +Constructor + + + + +

        Final Class Phalcon\Http\Message\StreamFactory

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/streamfactory.zep) + +| Namespace | Phalcon\Http\Message | +| Uses | Phalcon\Http\Message\Stream, Phalcon\Http\Message\Exception\InvalidArgumentException, Psr\Http\Message\StreamFactoryInterface, Psr\Http\Message\StreamInterface | +| Implements | StreamFactoryInterface | + +PSR-17 StreamFactory + + +## Methods +```php +public function createStream( string $content = string ): StreamInterface; +``` +Create a new stream from a string. + +The stream SHOULD be created with a temporary resource. + +@param string $content String content with which to populate the stream. + +@return StreamInterface + + +```php +public function createStreamFromFile( string $filename, string $mode = string ): StreamInterface; +``` +Create a stream from an existing file. + +The file MUST be opened using the given mode, which may be any mode +supported by the `fopen` function. + +The `$filename` MAY be any string supported by `fopen()`. + +@param string $filename The filename or stream URI to use as basis of + stream. +@param string $mode The mode with which to open the underlying + filename/stream. + +@return StreamInterface + + +```php +public function createStreamFromResource( mixed $phpResource ): StreamInterface; +``` +Create a new stream from an existing resource. + +The stream MUST be readable and may be writable. + + + + +

        Final Class Phalcon\Http\Message\UploadedFile

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/uploadedfile.zep) + +| Namespace | Phalcon\Http\Message | +| Uses | Phalcon\Helper\Number, Phalcon\Helper\Arr, Phalcon\Helper\Str, Phalcon\Http\Message\Exception\InvalidArgumentException, Phalcon\Http\Message\Stream, Psr\Http\Message\StreamInterface, Psr\Http\Message\UploadedFileInterface, RuntimeException | +| Implements | UploadedFileInterface | + +PSR-7 UploadedFile + + +## Properties +```php +/** + * If the file has already been moved, we hold that status here + * + * @var bool + */ +private alreadyMoved = false; + +/** + * Retrieve the filename sent by the client. + * + * Do not trust the value returned by this method. A client could send + * a malicious filename with the intention to corrupt or hack your + * application. + * + * Implementations SHOULD return the value stored in the 'name' key of + * the file in the $_FILES array. + * + * @var string | null + */ +private clientFilename; + +/** + * Retrieve the media type sent by the client. + * + * Do not trust the value returned by this method. A client could send + * a malicious media type with the intention to corrupt or hack your + * application. + * + * Implementations SHOULD return the value stored in the 'type' key of + * the file in the $_FILES array. + * + * @var string | null + */ +private clientMediaType; + +/** + * Retrieve the error associated with the uploaded file. + * + * The return value MUST be one of PHP's UPLOAD_ERR_XXX constants. + * + * If the file was uploaded successfully, this method MUST return + * UPLOAD_ERR_OK. + * + * Implementations SHOULD return the value stored in the 'error' key of + * the file in the $_FILES array. + * + * @see http://php.net/manual/en/features.file-upload.errors.php + * + * @var int + */ +private error = 0; + +/** + * If the stream is a string (file name) we store it here + * + * @var string + */ +private fileName = ; + +/** + * Retrieve the file size. + * + * Implementations SHOULD return the value stored in the 'size' key of + * the file in the $_FILES array if available, as PHP calculates this based + * on the actual size transmitted. + * + * @var int | null + */ +private size; + +/** + * Holds the stream/string for the uploaded file + * + * @var StreamInterface|string|null + */ +private stream; + +``` + +## Methods +```php +public function __construct( mixed $stream, int $size = null, int $error = int, string $clientFilename = null, string $clientMediaType = null ); +``` +UploadedFile constructor. + +@param StreamInterface|string|null $stream +@param int|null $size +@param int $error +@param string|null $clientFilename +@param string|null $clientMediaType + + +```php +public function getClientFilename(): string | null +``` + + +```php +public function getClientMediaType(): string | null +``` + + +```php +public function getError(): int +``` + + +```php +public function getSize(): int | null +``` + + +```php +public function getStream(): mixed; +``` +Retrieve a stream representing the uploaded file. + +This method MUST return a StreamInterface instance, representing the +uploaded file. The purpose of this method is to allow utilizing native +PHP stream functionality to manipulate the file upload, such as +stream_copy_to_stream() (though the result will need to be decorated in +a native PHP stream wrapper to work with such functions). + +If the moveTo() method has been called previously, this method MUST +raise an exception. + +@return StreamInterface Stream representation of the uploaded file. +@throws RuntimeException in cases when no stream is available or can be + created. + + +```php +public function moveTo( mixed $targetPath ): void; +``` +Move the uploaded file to a new location. + +Use this method as an alternative to move_uploaded_file(). This method is +guaranteed to work in both SAPI and non-SAPI environments. +Implementations must determine which environment they are in, and use the +appropriate method (move_uploaded_file(), rename(), or a stream +operation) to perform the operation. + +$targetPath may be an absolute path, or a relative path. If it is a +relative path, resolution should be the same as used by PHP's rename() +function. + +The original file or stream MUST be removed on completion. + +If this method is called more than once, any subsequent calls MUST raise +an exception. + +When used in an SAPI environment where $_FILES is populated, when writing +files via moveTo(), is_uploaded_file() and move_uploaded_file() SHOULD be +used to ensure permissions and upload status are verified correctly. + +If you wish to move to a stream, use getStream(), as SAPI operations +cannot guarantee writing to stream destinations. + +@see http://php.net/is_uploaded_file +@see http://php.net/move_uploaded_file + +@param string $targetPath Path to which to move the uploaded file. + +@throws InvalidArgumentException if the $targetPath specified is invalid. +@throws RuntimeException on any error during the move operation, or on + the second or subsequent call to the method. + + + + +

        Final Class Phalcon\Http\Message\UploadedFileFactory

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/uploadedfilefactory.zep) + +| Namespace | Phalcon\Http\Message | +| Uses | Phalcon\Http\Message\UploadedFile, Psr\Http\Message\StreamInterface, Psr\Http\Message\UploadedFileInterface, Psr\Http\Message\UploadedFileFactoryInterface | +| Implements | UploadedFileFactoryInterface | + +PSR-17 UploadedFileFactory + + +## Methods +```php +public function createUploadedFile( StreamInterface $stream, int $size = null, int $error = int, string $clientFilename = null, string $clientMediaType = null ): UploadedFileInterface; +``` +Create a new uploaded file. + +If a size is not provided it will be determined by checking the size of +the stream. + +@link http://php.net/manual/features.file-upload.post-method.php +@link http://php.net/manual/features.file-upload.errors.php + +@param StreamInterface $stream The underlying stream representing the + uploaded file content. +@param int $size The size of the file in bytes. +@param int $error The PHP file upload error. +@param string $clientFilename The filename as provided by the client, if any. +@param string $clientMediaType The media type as provided by the client, if any. + +@throws \InvalidArgumentException If the file resource is not readable. + + + + +

        Final Class Phalcon\Http\Message\Uri

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/uri.zep) + +| Namespace | Phalcon\Http\Message | +| Uses | Phalcon\Helper\Arr, Phalcon\Helper\Str, Phalcon\Http\Message\Exception\InvalidArgumentException, Phalcon\Http\Message\AbstractCommon, Psr\Http\Message\UriInterface | +| Extends | AbstractCommon | +| Implements | UriInterface | + +PSR-7 Uri + + +## Properties +```php +/** + * Returns the fragment of the URL + * + * @return string + */ +private fragment = ; + +/** + * Retrieve the host component of the URI. + * + * If no host is present, this method MUST return an empty string. + * + * The value returned MUST be normalized to lowercase, per RFC 3986 + * Section 3.2.2. + * + * @see http://tools.ietf.org/html/rfc3986#section-3.2.2 + * + * @return string + */ +private host = ; + +/** + * @var string + */ +private pass = ; + +/** + * Returns the path of the URL + * + * @return string + */ +private path = ; + +/** + * Retrieve the port component of the URI. + * + * If a port is present, and it is non-standard for the current scheme, + * this method MUST return it as an integer. If the port is the standard + * port used with the current scheme, this method SHOULD return null. + * + * If no port is present, and no scheme is present, this method MUST return + * a null value. + * + * If no port is present, but a scheme is present, this method MAY return + * the standard port for that scheme, but SHOULD return null. + * + * @return int|null + */ +private port; + +/** + * Returns the query of the URL + * + * @return string + */ +private query = ; + +/** + * Retrieve the scheme component of the URI. + * + * If no scheme is present, this method MUST return an empty string. + * + * The value returned MUST be normalized to lowercase, per RFC 3986 + * Section 3.1. + * + * The trailing ":" character is not part of the scheme and MUST NOT be + * added. + * + * @see https://tools.ietf.org/html/rfc3986#section-3.1 + * + * @return string + */ +private scheme = https; + +/** + * @var string + */ +private user = ; + +``` + +## Methods +```php +public function __construct( string $uri = string ); +``` +Uri constructor. + +@param string $uri + + +```php +public function __toString(): string; +``` +Return the string representation as a URI reference. + +Depending on which components of the URI are present, the resulting +string is either a full URI or relative reference according to RFC 3986, +Section 4.1. The method concatenates the various components of the URI, +using the appropriate delimiters + +@return string + + +```php +public function getAuthority(): string; +``` +Retrieve the authority component of the URI. + +@return string + + +```php +public function getFragment() +``` + + +```php +public function getHost() +``` + + +```php +public function getPath() +``` + + +```php +public function getPort() +``` + + +```php +public function getQuery() +``` + + +```php +public function getScheme() +``` + + +```php +public function getUserInfo(): string; +``` +Retrieve the user information component of the URI. + +If no user information is present, this method MUST return an empty +string. + +If a user is present in the URI, this will return that value; +additionally, if the password is also present, it will be appended to the +user value, with a colon (":") separating the values. + +The trailing "@" character is not part of the user information and MUST +NOT be added. + +@return string The URI user information, in "username[:password]" format. + + +```php +public function withFragment( mixed $fragment ): Uri; +``` +Return an instance with the specified URI fragment. + +This method MUST retain the state of the current instance, and return +an instance that contains the specified URI fragment. + +Users can provide both encoded and decoded fragment characters. +Implementations ensure the correct encoding as outlined in getFragment(). + +An empty fragment value is equivalent to removing the fragment. + +@param string $fragment + +@return Uri + + +```php +public function withHost( mixed $host ): Uri; +``` +Return an instance with the specified host. + +This method MUST retain the state of the current instance, and return +an instance that contains the specified host. + +An empty host value is equivalent to removing the host. + +@param string $host + +@return Uri +@throws InvalidArgumentException for invalid hostnames. + + + +```php +public function withPath( mixed $path ): Uri; +``` +Return an instance with the specified path. + +This method MUST retain the state of the current instance, and return +an instance that contains the specified path. + +The path can either be empty or absolute (starting with a slash) or +rootless (not starting with a slash). Implementations MUST support all +three syntaxes. + +If an HTTP path is intended to be host-relative rather than path-relative +then it must begin with a slash ("/"). HTTP paths not starting with a +slash are assumed to be relative to some base path known to the +application or consumer. + +Users can provide both encoded and decoded path characters. +Implementations ensure the correct encoding as outlined in getPath(). + +@param string $path + +@return Uri +@throws InvalidArgumentException for invalid paths. + + +```php +public function withPort( mixed $port ): Uri; +``` +Return an instance with the specified port. + +This method MUST retain the state of the current instance, and return +an instance that contains the specified port. + +Implementations MUST raise an exception for ports outside the +established TCP and UDP port ranges. + +A null value provided for the port is equivalent to removing the port +information. + +@param int|null $port + +@return Uri +@throws InvalidArgumentException for invalid ports. + + +```php +public function withQuery( mixed $query ): Uri; +``` +Return an instance with the specified query string. + +This method MUST retain the state of the current instance, and return +an instance that contains the specified query string. + +Users can provide both encoded and decoded query characters. +Implementations ensure the correct encoding as outlined in getQuery(). + +An empty query string value is equivalent to removing the query string. + +@param string $query + +@return Uri +@throws InvalidArgumentException for invalid query strings. + + +```php +public function withScheme( mixed $scheme ): Uri; +``` +Return an instance with the specified scheme. + +This method MUST retain the state of the current instance, and return +an instance that contains the specified scheme. + +Implementations MUST support the schemes "http" and "https" case +insensitively, and MAY accommodate other schemes if required. + +An empty scheme is equivalent to removing the scheme. + +@param string $scheme + +@return Uri +@throws InvalidArgumentException for invalid schemes. +@throws InvalidArgumentException for unsupported schemes. + + +```php +public function withUserInfo( mixed $user, mixed $password = null ): Uri; +``` +Return an instance with the specified user information. + +@param string $user +@param string|null $password + +@return Uri + + + + +

        Final Class Phalcon\Http\Message\UriFactory

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/urifactory.zep) + +| Namespace | Phalcon\Http\Message | +| Uses | Psr\Http\Message\UriFactoryInterface, Psr\Http\Message\UriInterface, Phalcon\Http\Message\Uri | +| Implements | UriFactoryInterface | + +PSR-17 UriFactory + + +## Methods +```php +public function createUri( string $uri = string ): UriInterface; +``` +Returns a Locator object with all the helpers defined in anonynous +functions + + + + +

        Class Phalcon\Http\Request

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/request.zep) + +| Namespace | Phalcon\Http | +| Uses | Phalcon\Di\DiInterface, Phalcon\Di\AbstractInjectionAware, Phalcon\Events\ManagerInterface, Phalcon\Filter\FilterInterface, Phalcon\Http\Request\File, Phalcon\Http\Request\FileInterface, Phalcon\Http\Request\Exception, UnexpectedValueException, stdClass | +| Extends | AbstractInjectionAware | +| Implements | RequestInterface | + +Encapsulates request information for easy and secure access from application +controllers. + +The request object is a simple value object that is passed between the +dispatcher and controller classes. It packages the HTTP request environment. + +```php +use Phalcon\Http\Request; + +$request = new Request(); + +if ($request->isPost() && $request->isAjax()) { + echo "Request was made using POST and AJAX"; +} + +// Retrieve SERVER variables +$request->getServer("HTTP_HOST"); + +// GET, POST, PUT, DELETE, HEAD, OPTIONS, PATCH, PURGE, TRACE, CONNECT +$request->getMethod(); + +// An array of languages the client accepts +$request->getLanguages(); +``` + + +## Properties +```php +// +private filterService; + +/** + * @var bool + */ +private httpMethodParameterOverride = false; + +/** + * @var array + */ +private queryFilters; + +// +private putCache; + +// +private rawBody; + +/** + * @var bool + */ +private strictHostCheck = false; + +``` + +## Methods +```php +public function get( string $name = null, mixed $filters = null, mixed $defaultValue = null, bool $notAllowEmpty = bool, bool $noRecursive = bool ): mixed; +``` +Gets a variable from the $_REQUEST superglobal applying filters if +needed. If no parameters are given the $_REQUEST superglobal is returned + +```php +// Returns value from $_REQUEST["user_email"] without sanitizing +$userEmail = $request->get("user_email"); + +// Returns value from $_REQUEST["user_email"] with sanitizing +$userEmail = $request->get("user_email", "email"); +``` + + +```php +public function getAcceptableContent(): array; +``` +Gets an array with mime/types and their quality accepted by the +browser/client from _SERVER["HTTP_ACCEPT"] + + +```php +public function getBasicAuth(): array | null; +``` +Gets auth info accepted by the browser/client from +$_SERVER["PHP_AUTH_USER"] + + +```php +public function getBestAccept(): string; +``` +Gets best mime/type accepted by the browser/client from +_SERVER["HTTP_ACCEPT"] + + +```php +public function getBestCharset(): string; +``` +Gets best charset accepted by the browser/client from +_SERVER["HTTP_ACCEPT_CHARSET"] + + +```php +public function getBestLanguage(): string; +``` +Gets best language accepted by the browser/client from +_SERVER["HTTP_ACCEPT_LANGUAGE"] + + +```php +public function getClientAddress( bool $trustForwardedHeader = bool ): string | bool; +``` +Gets most possible client IPv4 Address. This method searches in +`$_SERVER["REMOTE_ADDR"]` and optionally in +`$_SERVER["HTTP_X_FORWARDED_FOR"]` + + +```php +public function getClientCharsets(): array; +``` +Gets a charsets array and their quality accepted by the browser/client +from _SERVER["HTTP_ACCEPT_CHARSET"] + + +```php +public function getContentType(): string | null; +``` +Gets content type which request has been made + + +```php +public function getDigestAuth(): array; +``` +Gets auth info accepted by the browser/client from +$_SERVER["PHP_AUTH_DIGEST"] + + +```php +public function getFilteredPost( string $name = null, mixed $defaultValue = null, bool $notAllowEmpty = bool, bool $noRecursive = bool ): mixed; +``` +Retrieves a post value always sanitized with the preset filters + + +```php +public function getFilteredPut( string $name = null, mixed $defaultValue = null, bool $notAllowEmpty = bool, bool $noRecursive = bool ): mixed; +``` +Retrieves a put value always sanitized with the preset filters + + +```php +public function getFilteredQuery( string $name = null, mixed $defaultValue = null, bool $notAllowEmpty = bool, bool $noRecursive = bool ): mixed; +``` +Retrieves a query/get value always sanitized with the preset filters + + +```php +public function getHTTPReferer(): string; +``` +Gets web page that refers active request. ie: http://www.google.com + + +```php +final public function getHeader( string $header ): string; +``` +Gets HTTP header from request data + + +```php +public function getHeaders(): array; +``` +Returns the available headers in the request + + +$_SERVER = [ + "PHP_AUTH_USER" => "phalcon", + "PHP_AUTH_PW" => "secret", +]; + +$headers = $request->getHeaders(); + +echo $headers["Authorization"]; // Basic cGhhbGNvbjpzZWNyZXQ= + + + +```php +public function getHttpHost(): string; +``` +Gets host name used by the request. + +`Request::getHttpHost` trying to find host name in following order: + +- `$_SERVER["HTTP_HOST"]` +- `$_SERVER["SERVER_NAME"]` +- `$_SERVER["SERVER_ADDR"]` + +Optionally `Request::getHttpHost` validates and clean host name. +The `Request::$strictHostCheck` can be used to validate host name. + +Note: validation and cleaning have a negative performance impact because +they use regular expressions. + +```php +use Phalcon\Http\Request; + +$request = new Request; + +$_SERVER["HTTP_HOST"] = "example.com"; +$request->getHttpHost(); // example.com + +$_SERVER["HTTP_HOST"] = "example.com:8080"; +$request->getHttpHost(); // example.com:8080 + +$request->setStrictHostCheck(true); +$_SERVER["HTTP_HOST"] = "ex=am~ple.com"; +$request->getHttpHost(); // UnexpectedValueException + +$_SERVER["HTTP_HOST"] = "ExAmPlE.com"; +$request->getHttpHost(); // example.com +``` + + +```php +public function getHttpMethodParameterOverride(): bool +``` + + +```php +public function getJsonRawBody( bool $associative = bool ): \stdClass | array | bool; +``` +Gets decoded JSON HTTP raw request body + + +```php +public function getLanguages(): array; +``` +Gets languages array and their quality accepted by the browser/client +from _SERVER["HTTP_ACCEPT_LANGUAGE"] + + +```php +final public function getMethod(): string; +``` +Gets HTTP method which request has been made + +If the X-HTTP-Method-Override header is set, and if the method is a POST, +then it is used to determine the "real" intended HTTP method. + +The _method request parameter can also be used to determine the HTTP +method, but only if setHttpMethodParameterOverride(true) has been called. + +The method is always an uppercased string. + + +```php +public function getPort(): int; +``` +Gets information about the port on which the request is made. + + +```php +public function getPost( string $name = null, mixed $filters = null, mixed $defaultValue = null, bool $notAllowEmpty = bool, bool $noRecursive = bool ): mixed; +``` +Gets a variable from the $_POST superglobal applying filters if needed +If no parameters are given the $_POST superglobal is returned + +```php +// Returns value from $_POST["user_email"] without sanitizing +$userEmail = $request->getPost("user_email"); + +// Returns value from $_POST["user_email"] with sanitizing +$userEmail = $request->getPost("user_email", "email"); +``` + + +```php +public function getPut( string $name = null, mixed $filters = null, mixed $defaultValue = null, bool $notAllowEmpty = bool, bool $noRecursive = bool ): mixed; +``` +Gets a variable from put request + +```php +// Returns value from $_PUT["user_email"] without sanitizing +$userEmail = $request->getPut("user_email"); + +// Returns value from $_PUT["user_email"] with sanitizing +$userEmail = $request->getPut("user_email", "email"); +``` + + +```php +public function getQuery( string $name = null, mixed $filters = null, mixed $defaultValue = null, bool $notAllowEmpty = bool, bool $noRecursive = bool ): mixed; +``` +Gets variable from $_GET superglobal applying filters if needed +If no parameters are given the $_GET superglobal is returned + +```php +// Returns value from $_GET["id"] without sanitizing +$id = $request->getQuery("id"); + +// Returns value from $_GET["id"] with sanitizing +$id = $request->getQuery("id", "int"); + +// Returns value from $_GET["id"] with a default value +$id = $request->getQuery("id", null, 150); +``` + + +```php +public function getRawBody(): string; +``` +Gets HTTP raw request body + + +```php +public function getScheme(): string; +``` +Gets HTTP schema (http/https) + + +```php +public function getServer( string $name ): string | null; +``` +Gets variable from $_SERVER superglobal + + +```php +public function getServerAddress(): string; +``` +Gets active server address IP + + +```php +public function getServerName(): string; +``` +Gets active server name + + +```php +final public function getURI(): string; +``` +Gets HTTP URI which request has been made + + +```php +public function getUploadedFiles( bool $onlySuccessful = bool, bool $namedKeys = bool ): FileInterface[]; +``` +Gets attached files as Phalcon\Http\Request\File instances + + +```php +public function getUserAgent(): string; +``` +Gets HTTP user agent used to made the request + + +```php +public function has( string $name ): bool; +``` +Checks whether $_REQUEST superglobal has certain index + + +```php +public function hasFiles( bool $onlySuccessful = bool ): long; +``` +Returns the number of files available + +TODO: Check this + + +```php +final public function hasHeader( string $header ): bool; +``` +Checks whether headers has certain index + + +```php +public function hasPost( string $name ): bool; +``` +Checks whether $_POST superglobal has certain index + + +```php +public function hasPut( string $name ): bool; +``` +Checks whether the PUT data has certain index + + +```php +public function hasQuery( string $name ): bool; +``` +Checks whether $_GET superglobal has certain index + + +```php +final public function hasServer( string $name ): bool; +``` +Checks whether $_SERVER superglobal has certain index + + +```php +public function isAjax(): bool; +``` +Checks whether request has been made using ajax + + +```php +public function isConnect(): bool; +``` +Checks whether HTTP method is CONNECT. +if _SERVER["REQUEST_METHOD"]==="CONNECT" + + +```php +public function isDelete(): bool; +``` +Checks whether HTTP method is DELETE. +if _SERVER["REQUEST_METHOD"]==="DELETE" + + +```php +public function isGet(): bool; +``` +Checks whether HTTP method is GET. +if _SERVER["REQUEST_METHOD"]==="GET" + + +```php +public function isHead(): bool; +``` +Checks whether HTTP method is HEAD. +if _SERVER["REQUEST_METHOD"]==="HEAD" + + +```php +public function isMethod( mixed $methods, bool $strict = bool ): bool; +``` +Check if HTTP method match any of the passed methods +When strict is true it checks if validated methods are real HTTP methods + + +```php +public function isOptions(): bool; +``` +Checks whether HTTP method is OPTIONS. +if _SERVER["REQUEST_METHOD"]==="OPTIONS" + + +```php +public function isPatch(): bool; +``` +Checks whether HTTP method is PATCH. +if _SERVER["REQUEST_METHOD"]==="PATCH" + + +```php +public function isPost(): bool; +``` +Checks whether HTTP method is POST. +if _SERVER["REQUEST_METHOD"]==="POST" + + +```php +public function isPurge(): bool; +``` +Checks whether HTTP method is PURGE (Squid and Varnish support). +if _SERVER["REQUEST_METHOD"]==="PURGE" + + +```php +public function isPut(): bool; +``` +Checks whether HTTP method is PUT. +if _SERVER["REQUEST_METHOD"]==="PUT" + + +```php +public function isSecure(): bool; +``` +Checks whether request has been made using any secure layer + + +```php +public function isSoap(): bool; +``` +Checks whether request has been made using SOAP + + +```php +public function isStrictHostCheck(): bool; +``` +Checks if the `Request::getHttpHost` method will be use strict validation +of host name or not + + +```php +public function isTrace(): bool; +``` +Checks whether HTTP method is TRACE. +if _SERVER["REQUEST_METHOD"]==="TRACE" + + +```php +public function isValidHttpMethod( string $method ): bool; +``` +Checks if a method is a valid HTTP method + + +```php +public function setHttpMethodParameterOverride( bool $httpMethodParameterOverride ) +``` + + +```php +public function setParameterFilters( string $name, array $filters = [], array $scope = [] ): RequestInterface; +``` +Sets automatic sanitizers/filters for a particular field and for +particular methods + + +```php +public function setStrictHostCheck( bool $flag = bool ): RequestInterface; +``` +Sets if the `Request::getHttpHost` method must be use strict validation +of host name or not + + +```php +final protected function getBestQuality( array $qualityParts, string $name ): string; +``` +Process a request header and return the one with best quality + + +```php +final protected function getHelper( array $source, string $name = null, mixed $filters = null, mixed $defaultValue = null, bool $notAllowEmpty = bool, bool $noRecursive = bool ): mixed; +``` +Helper to get data from superglobals, applying filters if needed. +If no parameters are given the superglobal is returned. + + +```php +final protected function getQualityHeader( string $serverIndex, string $name ): array; +``` +Process a request header and return an array of values with their qualities + + +```php +final protected function hasFileHelper( mixed $data, bool $onlySuccessful ): long; +``` +Recursively counts file in an array of files + + +```php +protected function resolveAuthorizationHeaders(): array; +``` +Resolve authorization headers. + + +```php +final protected function smoothFiles( array $names, array $types, array $tmp_names, array $sizes, array $errors, string $prefix ): array; +``` +Smooth out $_FILES to have plain array with all files uploaded + + + + +

        Class Phalcon\Http\Request\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/request/exception.zep) + +| Namespace | Phalcon\Http\Request | +| Extends | \Phalcon\Exception | + +Phalcon\Http\Request\Exception + +Exceptions thrown in Phalcon\Http\Request will use this class + + + +

        Class Phalcon\Http\Request\File

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/request/file.zep) + +| Namespace | Phalcon\Http\Request | +| Uses | Phalcon\Http\Request\FileInterface | +| Implements | FileInterface | + +Phalcon\Http\Request\File + +Provides OO wrappers to the $_FILES superglobal + +```php +use Phalcon\Mvc\Controller; + +class PostsController extends Controller +{ + public function uploadAction() + { + // Check if the user has uploaded files + if ($this->request->hasFiles() == true) { + // Print the real file names and their sizes + foreach ($this->request->getUploadedFiles() as $file) { + echo $file->getName(), " ", $file->getSize(), "\n"; + } + } + } +} +``` + + +## Properties +```php +/** + * @var string|null + */ +protected error; + +/** + * @var string + */ +protected extension; + +/** + * @var string|null + */ +protected key; + +// +protected name; + +// +protected realType; + +// +protected size; + +// +protected tmp; + +// +protected type; + +``` + +## Methods +```php +public function __construct( array $file, mixed $key = null ); +``` +Phalcon\Http\Request\File constructor + + +```php +public function getError(): string|null +``` + + +```php +public function getExtension(): string +``` + + +```php +public function getKey(): string|null +``` + + +```php +public function getName(): string; +``` +Returns the real name of the uploaded file + + +```php +public function getRealType(): string; +``` +Gets the real mime type of the upload file using finfo + + +```php +public function getSize(): int; +``` +Returns the file size of the uploaded file + + +```php +public function getTempName(): string; +``` +Returns the temporary name of the uploaded file + + +```php +public function getType(): string; +``` +Returns the mime type reported by the browser +This mime type is not completely secure, use getRealType() instead + + +```php +public function isUploadedFile(): bool; +``` +Checks whether the file has been uploaded via Post. + + +```php +public function moveTo( string $destination ): bool; +``` +Moves the temporary file to a destination within the application + + + + +

        Interface Phalcon\Http\Request\FileInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/request/fileinterface.zep) + +| Namespace | Phalcon\Http\Request | + +Phalcon\Http\Request\FileInterface + +Interface for Phalcon\Http\Request\File + + + +## Methods +```php +public function getName(): string; +``` +Returns the real name of the uploaded file + + +```php +public function getRealType(): string; +``` +Gets the real mime type of the upload file using finfo + + +```php +public function getSize(): int; +``` +Returns the file size of the uploaded file + + +```php +public function getTempName(): string; +``` +Returns the temporal name of the uploaded file + + +```php +public function getType(): string; +``` +Returns the mime type reported by the browser +This mime type is not completely secure, use getRealType() instead + + +```php +public function moveTo( string $destination ): bool; +``` +Move the temporary file to a destination + + + + +

        Interface Phalcon\Http\RequestInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/requestinterface.zep) + +| Namespace | Phalcon\Http | +| Uses | Phalcon\Http\Request\FileInterface, stdClass | + +Interface for Phalcon\Http\Request + + +## Methods +```php +public function get( string $name = null, mixed $filters = null, mixed $defaultValue = null, bool $notAllowEmpty = bool, bool $noRecursive = bool ): mixed; +``` +Gets a variable from the $_REQUEST superglobal applying filters if +needed. If no parameters are given the $_REQUEST superglobal is returned + +```php +// Returns value from $_REQUEST["user_email"] without sanitizing +$userEmail = $request->get("user_email"); + +// Returns value from $_REQUEST["user_email"] with sanitizing +$userEmail = $request->get("user_email", "email"); +``` + + +```php +public function getAcceptableContent(): array; +``` +Gets an array with mime/types and their quality accepted by the +browser/client from _SERVER["HTTP_ACCEPT"] + + +```php +public function getBasicAuth(): array | null; +``` +Gets auth info accepted by the browser/client from +$_SERVER["PHP_AUTH_USER"] + + +```php +public function getBestAccept(): string; +``` +Gets best mime/type accepted by the browser/client from +_SERVER["HTTP_ACCEPT"] + + +```php +public function getBestCharset(): string; +``` +Gets best charset accepted by the browser/client from +_SERVER["HTTP_ACCEPT_CHARSET"] + + +```php +public function getBestLanguage(): string; +``` +Gets best language accepted by the browser/client from +_SERVER["HTTP_ACCEPT_LANGUAGE"] + + +```php +public function getClientAddress( bool $trustForwardedHeader = bool ): string | bool; +``` +Gets most possible client IPv4 Address. This method searches in +$_SERVER["REMOTE_ADDR"] and optionally in +$_SERVER["HTTP_X_FORWARDED_FOR"] + + +```php +public function getClientCharsets(): array; +``` +Gets a charsets array and their quality accepted by the browser/client +from _SERVER["HTTP_ACCEPT_CHARSET"] + + +```php +public function getContentType(): string | null; +``` +Gets content type which request has been made + + +```php +public function getDigestAuth(): array; +``` +Gets auth info accepted by the browser/client from +$_SERVER["PHP_AUTH_DIGEST"] + + +```php +public function getHTTPReferer(): string; +``` +Gets web page that refers active request. ie: http://www.google.com + + +```php +public function getHeader( string $header ): string; +``` +Gets HTTP header from request data + + +```php +public function getHeaders(): array; +``` +Returns the available headers in the request + +```php +$_SERVER = [ + "PHP_AUTH_USER" => "phalcon", + "PHP_AUTH_PW" => "secret", +]; + +$headers = $request->getHeaders(); + +echo $headers["Authorization"]; // Basic cGhhbGNvbjpzZWNyZXQ= +``` + + +```php +public function getHttpHost(): string; +``` +Gets host name used by the request. + +`Request::getHttpHost` trying to find host name in following order: + +- `$_SERVER["HTTP_HOST"]` +- `$_SERVER["SERVER_NAME"]` +- `$_SERVER["SERVER_ADDR"]` + +Optionally `Request::getHttpHost` validates and clean host name. +The `Request::$_strictHostCheck` can be used to validate host name. + +Note: validation and cleaning have a negative performance impact because +they use regular expressions. + +```php +use Phalcon\Http\Request; + +$request = new Request; + +$_SERVER["HTTP_HOST"] = "example.com"; +$request->getHttpHost(); // example.com + +$_SERVER["HTTP_HOST"] = "example.com:8080"; +$request->getHttpHost(); // example.com:8080 + +$request->setStrictHostCheck(true); +$_SERVER["HTTP_HOST"] = "ex=am~ple.com"; +$request->getHttpHost(); // UnexpectedValueException + +$_SERVER["HTTP_HOST"] = "ExAmPlE.com"; +$request->getHttpHost(); // example.com +``` + + +```php +public function getJsonRawBody( bool $associative = bool ): stdClass | array | bool; +``` +Gets decoded JSON HTTP raw request body + + +```php +public function getLanguages(): array; +``` +Gets languages array and their quality accepted by the browser/client +from _SERVER["HTTP_ACCEPT_LANGUAGE"] + + +```php +public function getMethod(): string; +``` +Gets HTTP method which request has been made + +If the X-HTTP-Method-Override header is set, and if the method is a POST, +then it is used to determine the "real" intended HTTP method. + +The _method request parameter can also be used to determine the HTTP +method, but only if setHttpMethodParameterOverride(true) has been called. + +The method is always an uppercased string. + + +```php +public function getPort(): int; +``` +Gets information about the port on which the request is made + + +```php +public function getPost( string $name = null, mixed $filters = null, mixed $defaultValue = null, bool $notAllowEmpty = bool, bool $noRecursive = bool ): mixed; +``` +Gets a variable from the $_POST superglobal applying filters if needed +If no parameters are given the $_POST superglobal is returned + +```php +// Returns value from $_POST["user_email"] without sanitizing +$userEmail = $request->getPost("user_email"); + +// Returns value from $_POST["user_email"] with sanitizing +$userEmail = $request->getPost("user_email", "email"); +``` + + +```php +public function getPut( string $name = null, mixed $filters = null, mixed $defaultValue = null, bool $notAllowEmpty = bool, bool $noRecursive = bool ): mixed; +``` +Gets a variable from put request + +```php +// Returns value from $_PUT["user_email"] without sanitizing +$userEmail = $request->getPut("user_email"); + +// Returns value from $_PUT["user_email"] with sanitizing +$userEmail = $request->getPut("user_email", "email"); +``` + + +```php +public function getQuery( string $name = null, mixed $filters = null, mixed $defaultValue = null, bool $notAllowEmpty = bool, bool $noRecursive = bool ): mixed; +``` +Gets variable from $_GET superglobal applying filters if needed +If no parameters are given the $_GET superglobal is returned + +```php +// Returns value from $_GET["id"] without sanitizing +$id = $request->getQuery("id"); + +// Returns value from $_GET["id"] with sanitizing +$id = $request->getQuery("id", "int"); + +// Returns value from $_GET["id"] with a default value +$id = $request->getQuery("id", null, 150); +``` + + +```php +public function getRawBody(): string; +``` +Gets HTTP raw request body + + +```php +public function getScheme(): string; +``` +Gets HTTP schema (http/https) + + +```php +public function getServer( string $name ): string | null; +``` +Gets variable from $_SERVER superglobal + + +```php +public function getServerAddress(): string; +``` +Gets active server address IP + + +```php +public function getServerName(): string; +``` +Gets active server name + + +```php +final public function getURI(): string; +``` +Gets HTTP URI which request has been made + + +```php +public function getUploadedFiles( bool $onlySuccessful = bool, bool $namedKeys = bool ): FileInterface[]; +``` +Gets attached files as Phalcon\Http\Request\FileInterface compatible +instances + + +```php +public function getUserAgent(): string; +``` +Gets HTTP user agent used to made the request + + +```php +public function has( string $name ): bool; +``` +Checks whether $_REQUEST superglobal has certain index + + +```php +public function hasFiles( bool $onlySuccessful = bool ): long; +``` +Checks whether request include attached files +TODO: We need to check the name. Not very intuitive + + +```php +public function hasHeader( string $header ): bool; +``` +Checks whether headers has certain index + + +```php +public function hasPost( string $name ): bool; +``` +Checks whether $_POST superglobal has certain index + + +```php +public function hasPut( string $name ): bool; +``` +Checks whether the PUT data has certain index + + +```php +public function hasQuery( string $name ): bool; +``` +Checks whether $_GET superglobal has certain index + + +```php +public function hasServer( string $name ): bool; +``` +Checks whether $_SERVER superglobal has certain index + + +```php +public function isAjax(): bool; +``` +Checks whether request has been made using ajax. Checks if $_SERVER["HTTP_X_REQUESTED_WITH"] === "XMLHttpRequest" + + +```php +public function isConnect(): bool; +``` +Checks whether HTTP method is CONNECT. if $_SERVER["REQUEST_METHOD"] === "CONNECT" + + +```php +public function isDelete(): bool; +``` +Checks whether HTTP method is DELETE. if $_SERVER["REQUEST_METHOD"] === "DELETE" + + +```php +public function isGet(): bool; +``` +Checks whether HTTP method is GET. if $_SERVER["REQUEST_METHOD"] === "GET" + + +```php +public function isHead(): bool; +``` +Checks whether HTTP method is HEAD. if $_SERVER["REQUEST_METHOD"] === "HEAD" + + +```php +public function isMethod( mixed $methods, bool $strict = bool ): bool; +``` +Check if HTTP method match any of the passed methods + +@param string|array methods + + +```php +public function isOptions(): bool; +``` +Checks whether HTTP method is OPTIONS. if $_SERVER["REQUEST_METHOD"] === "OPTIONS" + + +```php +public function isPost(): bool; +``` +Checks whether HTTP method is POST. if $_SERVER["REQUEST_METHOD"] === "POST" + + +```php +public function isPurge(): bool; +``` +Checks whether HTTP method is PURGE (Squid and Varnish support). if $_SERVER["REQUEST_METHOD"] === "PURGE" + + +```php +public function isPut(): bool; +``` +Checks whether HTTP method is PUT. if $_SERVER["REQUEST_METHOD"] === "PUT" + + +```php +public function isSecure(): bool; +``` +Checks whether request has been made using any secure layer + + +```php +public function isSoap(): bool; +``` +Checks whether request has been made using SOAP + + +```php +public function isTrace(): bool; +``` +Checks whether HTTP method is TRACE. +if $_SERVER["REQUEST_METHOD"] === "TRACE" + + + + +

        Class Phalcon\Http\Response

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/response.zep) + +| Namespace | Phalcon\Http | +| Uses | DateTime, DateTimeZone, Phalcon\Di, Phalcon\Di\DiInterface, Phalcon\Helper\Fs, Phalcon\Http\Response\Exception, Phalcon\Http\Response\HeadersInterface, Phalcon\Http\Response\CookiesInterface, Phalcon\Url\UrlInterface, Phalcon\Mvc\ViewInterface, Phalcon\Http\Response\Headers, Phalcon\Di\InjectionAwareInterface, Phalcon\Events\EventsAwareInterface, Phalcon\Events\ManagerInterface | +| Implements | ResponseInterface, InjectionAwareInterface, EventsAwareInterface | + +Part of the HTTP cycle is return responses to the clients. +Phalcon\HTTP\Response is the Phalcon component responsible to achieve this task. +HTTP responses are usually composed by headers and body. + +```php +$response = new \Phalcon\Http\Response(); + +$response->setStatusCode(200, "OK"); +$response->setContent("Hello"); + +$response->send(); +``` + + +## Properties +```php +// +protected container; + +// +protected content; + +// +protected cookies; + +// +protected eventsManager; + +// +protected file; + +// +protected headers; + +/** + * @var bool + */ +protected sent = false; + +// +protected statusCodes; + +``` + +## Methods +```php +public function __construct( mixed $content = null, mixed $code = null, mixed $status = null ); +``` +Phalcon\Http\Response constructor + + +```php +public function appendContent( mixed $content ): ResponseInterface; +``` +Appends a string to the HTTP response body + + +```php +public function getContent(): string; +``` +Gets the HTTP response body + + +```php +public function getCookies(): CookiesInterface; +``` +Returns cookies set by the user + + +```php +public function getDI(): DiInterface; +``` +Returns the internal dependency injector + + +```php +public function getEventsManager(): ManagerInterface; +``` +Returns the internal event manager + + +```php +public function getHeaders(): HeadersInterface; +``` +Returns headers set by the user + + +```php +public function getReasonPhrase(): string | null; +``` +Returns the reason phrase + +```php +echo $response->getReasonPhrase(); +``` + + +```php +public function getStatusCode(): int | null; +``` +Returns the status code + +```php +echo $response->getStatusCode(); +``` + + +```php +public function hasHeader( string $name ): bool; +``` +Checks if a header exists + +```php +$response->hasHeader("Content-Type"); +``` + + +```php +public function isSent(): bool; +``` +Check if the response is already sent + + +```php +public function redirect( mixed $location = null, bool $externalRedirect = bool, int $statusCode = int ): ResponseInterface; +``` +Redirect by HTTP to another action or URL + +```php +// Using a string redirect (internal/external) +$response->redirect("posts/index"); +$response->redirect("http://en.wikipedia.org", true); +$response->redirect("http://www.example.com/new-location", true, 301); + +// Making a redirection based on a named route +$response->redirect( + [ + "for" => "index-lang", + "lang" => "jp", + "controller" => "index", + ] +); +``` + + +```php +public function removeHeader( string $name ): ResponseInterface; +``` +Remove a header in the response + +```php +$response->removeHeader("Expires"); +``` + + +```php +public function resetHeaders(): ResponseInterface; +``` +Resets all the established headers + + +```php +public function send(): ResponseInterface; +``` +Prints out HTTP response to the client + + +```php +public function sendCookies(): ResponseInterface; +``` +Sends cookies to the client + + +```php +public function sendHeaders(): ResponseInterface | bool; +``` +Sends headers to the client + + +```php +public function setCache( int $minutes ): ResponseInterface; +``` +Sets Cache headers to use HTTP cache + +```php +$this->response->setCache(60); +``` + + +```php +public function setContent( string $content ): ResponseInterface; +``` +Sets HTTP response body + +```php +$response->setContent("

        Hello!

        "); +``` + + +```php +public function setContentLength( int $contentLength ): ResponseInterface; +``` +Sets the response content-length + +```php +$response->setContentLength(2048); +``` + + +```php +public function setContentType( string $contentType, mixed $charset = null ): ResponseInterface; +``` +Sets the response content-type mime, optionally the charset + +```php +$response->setContentType("application/pdf"); +$response->setContentType("text/plain", "UTF-8"); +``` + + +```php +public function setCookies( CookiesInterface $cookies ): ResponseInterface; +``` +Sets a cookies bag for the response externally + + +```php +public function setDI( DiInterface $container ): void; +``` +Sets the dependency injector + + +```php +public function setEtag( string $etag ): ResponseInterface; +``` +Set a custom ETag + +```php +$response->setEtag( + md5( + time() + ) +); +``` + + +```php +public function setEventsManager( ManagerInterface $eventsManager ): void; +``` +Sets the events manager + + +```php +public function setExpires( DateTime $datetime ): ResponseInterface; +``` +Sets an Expires header in the response that allows to use the HTTP cache + +```php +$this->response->setExpires( + new DateTime() +); +``` + + +```php +public function setFileToSend( string $filePath, mixed $attachmentName = null, mixed $attachment = bool ): ResponseInterface; +``` +Sets an attached file to be sent at the end of the request + + +```php +public function setHeader( string $name, mixed $value ): ResponseInterface; +``` +Overwrites a header in the response + +```php +$response->setHeader("Content-Type", "text/plain"); +``` + + +```php +public function setHeaders( HeadersInterface $headers ): ResponseInterface; +``` +Sets a headers bag for the response externally + + +```php +public function setJsonContent( mixed $content, int $jsonOptions = int, int $depth = int ): ResponseInterface; +``` +Sets HTTP response body. The parameter is automatically converted to JSON +and also sets default header: Content-Type: "application/json; charset=UTF-8" + +```php +$response->setJsonContent( + [ + "status" => "OK", + ] +); +``` + + +```php +public function setLastModified( DateTime $datetime ): ResponseInterface; +``` +Sets Last-Modified header + +```php +$this->response->setLastModified( + new DateTime() +); +``` + + +```php +public function setNotModified(): ResponseInterface; +``` +Sends a Not-Modified response + + +```php +public function setRawHeader( string $header ): ResponseInterface; +``` +Send a raw header to the response + +```php +$response->setRawHeader("HTTP/1.1 404 Not Found"); +``` + + +```php +public function setStatusCode( int $code, string $message = null ): ResponseInterface; +``` +Sets the HTTP response code + +```php +$response->setStatusCode(404, "Not Found"); +``` + + + + +

        Class Phalcon\Http\Response\Cookies

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/response/cookies.zep) + +| Namespace | Phalcon\Http\Response | +| Uses | Phalcon\Di\DiInterface, Phalcon\Di\AbstractInjectionAware, Phalcon\Http\CookieInterface, Phalcon\Http\Response\CookiesInterface, Phalcon\Http\Cookie\Exception | +| Extends | AbstractInjectionAware | +| Implements | CookiesInterface | + +Phalcon\Http\Response\Cookies + +This class is a bag to manage the cookies. + +A cookies bag is automatically registered as part of the 'response' service +in the DI. By default, cookies are automatically encrypted before being sent +to the client and are decrypted when retrieved from the user. To set sign key +used to generate a message authentication code use +`Phalcon\Http\Response\Cookies::setSignKey()`. + +```php +use Phalcon\Di; +use Phalcon\Crypt; +use Phalcon\Http\Response\Cookies; + +$di = new Di(); + +$di->set( + 'crypt', + function () { + $crypt = new Crypt(); + + // The `$key' should have been previously generated in a cryptographically safe way. + $key = "T4\xb1\x8d\xa9\x98\x05\\\x8c\xbe\x1d\x07&[\x99\x18\xa4~Lc1\xbeW\xb3"; + + $crypt->setKey($key); + + return $crypt; + } +); + +$di->set( + 'cookies', + function () { + $cookies = new Cookies(); + + // The `$key' MUST be at least 32 characters long and generated using a + // cryptographically secure pseudo random generator. + $key = "#1dj8$=dp?.ak//j1V$~%*0XaK\xb1\x8d\xa9\x98\x054t7w!z%C*F-Jk\x98\x05\\\x5c"; + + $cookies->setSignKey($key); + + return $cookies; + } +); +``` + + +## Properties +```php +// +protected cookies; + +// +protected registered = false; + +/** + * The cookie's sign key. + * @var string|null + */ +protected signKey; + +// +protected useEncryption = true; + +``` + +## Methods +```php +public function __construct( bool $useEncryption = bool, string $signKey = null ); +``` +Phalcon\Http\Response\Cookies constructor + + +```php +public function delete( string $name ): bool; +``` +Deletes a cookie by its name +This method does not removes cookies from the _COOKIE superglobal + + +```php +public function get( string $name ): CookieInterface; +``` +Gets a cookie from the bag + + +```php +public function getCookies(): array; +``` +Gets all cookies from the bag + + +```php +public function has( string $name ): bool; +``` +Check if a cookie is defined in the bag or exists in the _COOKIE +superglobal + + +```php +public function isUsingEncryption(): bool; +``` +Returns if the bag is automatically encrypting/decrypting cookies + + +```php +public function reset(): CookiesInterface; +``` +Reset set cookies + + +```php +public function send(): bool; +``` +Sends the cookies to the client +Cookies aren't sent if headers are sent in the current request + + +```php +public function set( string $name, mixed $value = null, int $expire = int, string $path = string, bool $secure = null, string $domain = null, bool $httpOnly = null ): CookiesInterface; +``` +Sets a cookie to be sent at the end of the request. + +This method overrides any cookie set before with the same name. + +```php +use Phalcon\Http\Response\Cookies; + +$now = new DateTimeImmutable(); +$tomorrow = $now->modify('tomorrow'); + +$cookies = new Cookies(); +$cookies->set( + 'remember-me', + json_encode(['user_id' => 1]), + (int) $tomorrow->format('U'), +); +``` + + +```php +public function setSignKey( string $signKey = null ): CookieInterface; +``` +Sets the cookie's sign key. + +The `$signKey' MUST be at least 32 characters long +and generated using a cryptographically secure pseudo random generator. + +Use NULL to disable cookie signing. + +@see \Phalcon\Security\Random + + +```php +public function useEncryption( bool $useEncryption ): CookiesInterface; +``` +Set if cookies in the bag must be automatically encrypted/decrypted + + + + +

        Interface Phalcon\Http\Response\CookiesInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/response/cookiesinterface.zep) + +| Namespace | Phalcon\Http\Response | +| Uses | Phalcon\Http\CookieInterface | + +Phalcon\Http\Response\CookiesInterface + +Interface for Phalcon\Http\Response\Cookies + + +## Methods +```php +public function delete( string $name ): bool; +``` +Deletes a cookie by its name +This method does not removes cookies from the _COOKIE superglobal + + +```php +public function get( string $name ): CookieInterface; +``` +Gets a cookie from the bag + + +```php +public function has( string $name ): bool; +``` +Check if a cookie is defined in the bag or exists in the _COOKIE superglobal + + +```php +public function isUsingEncryption(): bool; +``` +Returns if the bag is automatically encrypting/decrypting cookies + + +```php +public function reset(): CookiesInterface; +``` +Reset set cookies + + +```php +public function send(): bool; +``` +Sends the cookies to the client + + +```php +public function set( string $name, mixed $value = null, int $expire = int, string $path = string, bool $secure = null, string $domain = null, bool $httpOnly = null ): CookiesInterface; +``` +Sets a cookie to be sent at the end of the request + + +```php +public function useEncryption( bool $useEncryption ): CookiesInterface; +``` +Set if cookies in the bag must be automatically encrypted/decrypted + + + + +

        Class Phalcon\Http\Response\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/response/exception.zep) + +| Namespace | Phalcon\Http\Response | +| Extends | \Phalcon\Exception | + +Phalcon\Http\Response\Exception + +Exceptions thrown in Phalcon\Http\Response will use this class. + + + +

        Class Phalcon\Http\Response\Headers

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/response/headers.zep) + +| Namespace | Phalcon\Http\Response | +| Uses | Phalcon\Http\Response\HeadersInterface | +| Implements | HeadersInterface | + +Phalcon\Http\Response\Headers + +This class is a bag to manage the response headers + + +## Properties +```php +// +protected headers; + +``` + +## Methods +```php +public function get( string $name ): string | bool; +``` +Gets a header value from the internal bag + + +```php +public function has( string $name ): bool; +``` +Sets a header to be sent at the end of the request + + +```php +public function remove( string $header ): HeadersInterface; +``` +Removes a header to be sent at the end of the request + + +```php +public function reset(); +``` +Reset set headers + + +```php +public function send(): bool; +``` +Sends the headers to the client + + +```php +public function set( string $name, string $value ): HeadersInterface; +``` +Sets a header to be sent at the end of the request + + +```php +public function setRaw( string $header ): HeadersInterface; +``` +Sets a raw header to be sent at the end of the request + + +```php +public function toArray(): array; +``` +Returns the current headers as an array + + + + +

        Interface Phalcon\Http\Response\HeadersInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/response/headersinterface.zep) + +| Namespace | Phalcon\Http\Response | + +Phalcon\Http\Response\HeadersInterface + +Interface for Phalcon\Http\Response\Headers compatible bags + + +## Methods +```php +public function get( string $name ): string | bool; +``` +Gets a header value from the internal bag + + +```php +public function has( string $name ): bool; +``` +Returns true if the header is set, false otherwise + + +```php +public function reset(); +``` +Reset set headers + + +```php +public function send(): bool; +``` +Sends the headers to the client + + +```php +public function set( string $name, string $value ); +``` +Sets a header to be sent at the end of the request + + +```php +public function setRaw( string $header ); +``` +Sets a raw header to be sent at the end of the request + + + + +

        Interface Phalcon\Http\ResponseInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/responseinterface.zep) + +| Namespace | Phalcon\Http | +| Uses | DateTime, Phalcon\Http\Response\HeadersInterface | + +Phalcon\Http\Response + +Interface for Phalcon\Http\Response + + +## Methods +```php +public function appendContent( mixed $content ): ResponseInterface; +``` +Appends a string to the HTTP response body + + +```php +public function getContent(): string; +``` +Gets the HTTP response body + + +```php +public function getHeaders(): HeadersInterface; +``` +Returns headers set by the user + + +```php +public function getStatusCode(): int | null; +``` +Returns the status code + + +```php +public function hasHeader( string $name ): bool; +``` +Checks if a header exists + + +```php +public function isSent(): bool; +``` +Checks if the response was already sent + + +```php +public function redirect( mixed $location = null, bool $externalRedirect = bool, int $statusCode = int ): ResponseInterface; +``` +Redirect by HTTP to another action or URL + + +```php +public function resetHeaders(): ResponseInterface; +``` +Resets all the established headers + + +```php +public function send(): ResponseInterface; +``` +Prints out HTTP response to the client + + +```php +public function sendCookies(): ResponseInterface; +``` +Sends cookies to the client + + +```php +public function sendHeaders(): ResponseInterface | bool; +``` +Sends headers to the client + + +```php +public function setContent( string $content ): ResponseInterface; +``` +Sets HTTP response body + + +```php +public function setContentLength( int $contentLength ): ResponseInterface; +``` +Sets the response content-length + + +```php +public function setContentType( string $contentType, mixed $charset = null ): ResponseInterface; +``` +Sets the response content-type mime, optionally the charset + +@param string charset + + +```php +public function setExpires( DateTime $datetime ): ResponseInterface; +``` +Sets output expire time header + + +```php +public function setFileToSend( string $filePath, mixed $attachmentName = null ): ResponseInterface; +``` +Sets an attached file to be sent at the end of the request + + +```php +public function setHeader( string $name, mixed $value ): ResponseInterface; +``` +Overwrites a header in the response + + +```php +public function setJsonContent( mixed $content ): ResponseInterface; +``` +Sets HTTP response body. The parameter is automatically converted to JSON + +```php +$response->setJsonContent( + [ + "status" => "OK", + ] +); +``` + + +```php +public function setNotModified(): ResponseInterface; +``` +Sends a Not-Modified response + + +```php +public function setRawHeader( string $header ): ResponseInterface; +``` +Send a raw header to the response + + +```php +public function setStatusCode( int $code, string $message = null ): ResponseInterface; +``` +Sets the HTTP response code + + + + +

        Abstract Class Phalcon\Http\Server\AbstractMiddleware

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/server/abstractmiddleware.zep) + +| Namespace | Phalcon\Http\Server | +| Uses | Psr\Http\Message\ResponseInterface, Psr\Http\Message\ServerRequestInterface, Psr\Http\Server\MiddlewareInterface, Psr\Http\Server\RequestHandlerInterface | +| Implements | MiddlewareInterface | + +Participant in processing a server request and response. + +An HTTP middleware component participates in processing an HTTP message: +by acting on the request, generating the response, or forwarding the +request to a subsequent middleware and possibly acting on its response. + + +## Methods +```php +abstract public function process( ServerRequestInterface $request, RequestHandlerInterface $handler ): ResponseInterface; +``` +Process an incoming server request. + +Processes an incoming server request in order to produce a response. +If unable to produce the response itself, it may delegate to the provided +request handler to do so. + + + + +

        Abstract Class Phalcon\Http\Server\AbstractRequestHandler

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/server/abstractrequesthandler.zep) + +| Namespace | Phalcon\Http\Server | +| Uses | Psr\Http\Message\ResponseInterface, Psr\Http\Message\ServerRequestInterface, Psr\Http\Server\RequestHandlerInterface | +| Implements | RequestHandlerInterface | + +Handles a server request and produces a response. + +An HTTP request handler process an HTTP request in order to produce an +HTTP response. + + +## Methods +```php +abstract public function handle( ServerRequestInterface $request ): ResponseInterface; +``` +Handles a request and produces a response. + +May call other collaborating code to generate the response. + + diff --git a/nikos/api/Phalcon_Image.md b/nikos/api/Phalcon_Image.md new file mode 100644 index 00000000000..5029719084a --- /dev/null +++ b/nikos/api/Phalcon_Image.md @@ -0,0 +1,642 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Image' +--- + +* [Phalcon\Image\Adapter\AbstractAdapter](#image-adapter-abstractadapter) +* [Phalcon\Image\Adapter\AdapterInterface](#image-adapter-adapterinterface) +* [Phalcon\Image\Adapter\Gd](#image-adapter-gd) +* [Phalcon\Image\Adapter\Imagick](#image-adapter-imagick) +* [Phalcon\Image\Enum](#image-enum) +* [Phalcon\Image\Exception](#image-exception) +* [Phalcon\Image\ImageFactory](#image-imagefactory) + +

        Abstract Class Phalcon\Image\Adapter\AbstractAdapter

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/image/adapter/abstractadapter.zep) + +| Namespace | Phalcon\Image\Adapter | +| Uses | Phalcon\Image\Enum, Phalcon\Image\Exception | +| Implements | AdapterInterface | + +Phalcon\Image\Adapter + +All image adapters must use this class + + +## Properties +```php +// +protected static checked = false; + +// +protected file; + +/** + * Image height + * + * @var int + */ +protected height; + +// +protected image; + +/** + * Image mime type + * + * @var string + */ +protected mime; + +// +protected realpath; + +/** + * Image type + * + * Driver dependent + * + * @var int + */ +protected type; + +/** + * Image width + * + * @var int + */ +protected width; + +``` + +## Methods +```php +public function background( string $color, int $opacity = int ): Adapter; +``` + Set the background color of an image + + +```php +public function blur( int $radius ): Adapter; +``` + Blur image + + +```php +public function crop( int $width, int $height, int $offsetX = null, int $offsetY = null ): Adapter; +``` + Crop an image to the given size + + +```php +public function flip( int $direction ): Adapter; +``` + Flip the image along the horizontal or vertical axis + + +```php +public function getHeight(): int +``` + + +```php +public function getImage() +``` + + +```php +public function getMime(): string +``` + + +```php +public function getRealpath() +``` + + +```php +public function getType(): int +``` + + +```php +public function getWidth(): int +``` + + +```php +public function liquidRescale( int $width, int $height, int $deltaX = int, int $rigidity = int ): Adapter; +``` +This method scales the images using liquid rescaling method. Only support +Imagick + +@param int $width new width +@param int $height new height +@param int $deltaX How much the seam can traverse on x-axis. Passing 0 causes the seams to be straight. +@param int $rigidity Introduces a bias for non-straight seams. This parameter is typically 0. + + +```php +public function mask( AdapterInterface $watermark ): Adapter; +``` + Composite one image onto another + + +```php +public function pixelate( int $amount ): Adapter; +``` + Pixelate image + + +```php +public function reflection( int $height, int $opacity = int, bool $fadeIn = bool ): Adapter; +``` + Add a reflection to an image + + +```php +public function render( string $ext = null, int $quality = int ): string; +``` + Render the image and return the binary string + + +```php +public function resize( int $width = null, int $height = null, int $master = static-constant-access ): Adapter; +``` + Resize the image to the given size + + +```php +public function rotate( int $degrees ): Adapter; +``` + Rotate the image by a given amount + + +```php +public function save( string $file = null, int $quality = int ): Adapter; +``` + Save the image + + +```php +public function sharpen( int $amount ): Adapter; +``` + Sharpen the image by a given amount + + +```php +public function text( string $text, mixed $offsetX = bool, mixed $offsetY = bool, int $opacity = int, string $color = string, int $size = int, string $fontfile = null ): Adapter; +``` + Add a text to an image with a specified opacity + + +```php +public function watermark( AdapterInterface $watermark, int $offsetX = int, int $offsetY = int, int $opacity = int ): Adapter; +``` + Add a watermark to an image with the specified opacity + + + + +

        Interface Phalcon\Image\Adapter\AdapterInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/image/adapter/adapterinterface.zep) + +| Namespace | Phalcon\Image\Adapter | + +This file is part of the Phalcon Framework. + +(c) Phalcon Team + +For the full copyright and license information, please view the LICENSE.txt +file that was distributed with this source code. + + +## Methods +```php +public function background( string $color, int $opacity = int ); +``` +// + +```php +public function blur( int $radius ); +``` +// + +```php +public function crop( int $width, int $height, int $offsetX = null, int $offsetY = null ); +``` +// + +```php +public function flip( int $direction ); +``` +// + +```php +public function mask( AdapterInterface $watermark ); +``` +// + +```php +public function pixelate( int $amount ); +``` +// + +```php +public function reflection( int $height, int $opacity = int, bool $fadeIn = bool ); +``` +// + +```php +public function render( string $ext = null, int $quality = int ); +``` +// + +```php +public function resize( int $width = null, int $height = null, int $master = static-constant-access ); +``` +// + +```php +public function rotate( int $degrees ); +``` +// + +```php +public function save( string $file = null, int $quality = int ); +``` +// + +```php +public function sharpen( int $amount ); +``` +// + +```php +public function text( string $text, int $offsetX = int, int $offsetY = int, int $opacity = int, string $color = string, int $size = int, string $fontfile = null ); +``` +// + +```php +public function watermark( AdapterInterface $watermark, int $offsetX = int, int $offsetY = int, int $opacity = int ); +``` +// + + + +

        Class Phalcon\Image\Adapter\Gd

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/image/adapter/gd.zep) + +| Namespace | Phalcon\Image\Adapter | +| Uses | Phalcon\Image\Enum, Phalcon\Image\Adapter\AbstractAdapter, Phalcon\Image\Exception | +| Extends | AbstractAdapter | + +This file is part of the Phalcon Framework. + +(c) Phalcon Team + +For the full copyright and license information, please view the LICENSE.txt +file that was distributed with this source code. + + +## Properties +```php +// +protected static checked = false; + +``` + +## Methods +```php +public function __construct( string $file, int $width = null, int $height = null ); +``` +// + +```php +public function __destruct(); +``` +// + +```php +protected function processBackground( int $r, int $g, int $b, int $opacity ); +``` +// + +```php +protected function processBlur( int $radius ); +``` +// + +```php +protected function processCreate( int $width, int $height ); +``` +// + +```php +protected function processCrop( int $width, int $height, int $offsetX, int $offsetY ); +``` +// + +```php +protected function processFlip( int $direction ); +``` +// + +```php +protected function processMask( AdapterInterface $mask ); +``` +// + +```php +protected function processPixelate( int $amount ); +``` +// + +```php +protected function processReflection( int $height, int $opacity, bool $fadeIn ); +``` +// + +```php +protected function processRender( string $ext, int $quality ); +``` +// + +```php +protected function processResize( int $width, int $height ); +``` +// + +```php +protected function processRotate( int $degrees ); +``` +// + +```php +protected function processSave( string $file, int $quality ); +``` +// + +```php +protected function processSharpen( int $amount ); +``` +// + +```php +protected function processText( string $text, int $offsetX, int $offsetY, int $opacity, int $r, int $g, int $b, int $size, string $fontfile ); +``` +// + +```php +protected function processWatermark( AdapterInterface $watermark, int $offsetX, int $offsetY, int $opacity ); +``` +// + + + +

        Class Phalcon\Image\Adapter\Imagick

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/image/adapter/imagick.zep) + +| Namespace | Phalcon\Image\Adapter | +| Uses | Imagick, ImagickDraw, ImagickPixel, Phalcon\Image\Enum, Phalcon\Image\Adapter\AbstractAdapter, Phalcon\Image\Exception | +| Extends | AbstractAdapter | + +Phalcon\Image\Adapter\Imagick + +Image manipulation support. Allows images to be resized, cropped, etc. + +```php +$image = new \Phalcon\Image\Adapter\Imagick("upload/test.jpg"); + +$image->resize(200, 200)->rotate(90)->crop(100, 100); + +if ($image->save()) { + echo "success"; +} +``` + + +## Properties +```php +// +protected static checked = false; + +// +protected static version = 0; + +``` + +## Methods +```php +public function __construct( string $file, int $width = null, int $height = null ); +``` +\Phalcon\Image\Adapter\Imagick constructor + + +```php +public function __destruct(); +``` +Destroys the loaded image to free up resources. + + +```php +public function getInternalImInstance(): \Imagick; +``` +Get instance + + +```php +public function setResourceLimit( int $type, int $limit ); +``` +Sets the limit for a particular resource in megabytes + +@link http://php.net/manual/ru/imagick.constants.php#imagick.constants.resourcetypes + + +```php +protected function processBackground( int $r, int $g, int $b, int $opacity ); +``` +Execute a background. + + +```php +protected function processBlur( int $radius ); +``` +Blur image + +@param int $radius Blur radius + + +```php +protected function processCrop( int $width, int $height, int $offsetX, int $offsetY ); +``` +Execute a crop. + + +```php +protected function processFlip( int $direction ); +``` +Execute a flip. + + +```php +protected function processLiquidRescale( int $width, int $height, int $deltaX, int $rigidity ); +``` +This method scales the images using liquid rescaling method. Only support +Imagick + +@param int $width new width +@param int $height new height +@param int $deltaX How much the seam can traverse on x-axis. Passing 0 causes the seams to be straight. +@param int $rigidity Introduces a bias for non-straight seams. This parameter is typically 0. + + +```php +protected function processMask( AdapterInterface $image ); +``` +Composite one image onto another + + +```php +protected function processPixelate( int $amount ); +``` +Pixelate image + +@param int $amount amount to pixelate + + +```php +protected function processReflection( int $height, int $opacity, bool $fadeIn ); +``` +Execute a reflection. + + +```php +protected function processRender( string $extension, int $quality ): string; +``` +Execute a render. + + +```php +protected function processResize( int $width, int $height ); +``` +Execute a resize. + + +```php +protected function processRotate( int $degrees ); +``` +Execute a rotation. + + +```php +protected function processSave( string $file, int $quality ); +``` +Execute a save. + + +```php +protected function processSharpen( int $amount ); +``` +Execute a sharpen. + + +```php +protected function processText( string $text, mixed $offsetX, mixed $offsetY, int $opacity, int $r, int $g, int $b, int $size, string $fontfile ); +``` +Execute a text + + +```php +protected function processWatermark( AdapterInterface $image, int $offsetX, int $offsetY, int $opacity ); +``` +Execute a watermarking. + + + + +

        Class Phalcon\Image\Enum

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/image/enum.zep) + +| Namespace | Phalcon\Image | + +This file is part of the Phalcon Framework. + +(c) Phalcon Team + +For the full copyright and license information, please view the LICENSE.txt +file that was distributed with this source code. + + +## Constants +```php +const AUTO = 4; +const HEIGHT = 3; +const HORIZONTAL = 11; +const INVERSE = 5; +const NONE = 1; +const PRECISE = 6; +const TENSILE = 7; +const VERTICAL = 12; +const WIDTH = 2; +``` + + +

        Class Phalcon\Image\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/image/exception.zep) + +| Namespace | Phalcon\Image | +| Extends | \Phalcon\Exception | + +This file is part of the Phalcon Framework. + +(c) Phalcon Team + +For the full copyright and license information, please view the LICENSE.txt +file that was distributed with this source code. + + + +

        Class Phalcon\Image\ImageFactory

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/image/imagefactory.zep) + +| Namespace | Phalcon\Image | +| Uses | Phalcon\Config, Phalcon\Factory\AbstractFactory, Phalcon\Helper\Arr, Phalcon\Image\Adapter\AdapterInterface | +| Extends | AbstractFactory | + +Phalcon\Image/ImageFactory + + +## Methods +```php +public function __construct( array $services = [] ); +``` +TagFactory constructor. + + +```php +public function load( mixed $config ): AdapterInterface; +``` +Factory to create an instace from a Config object + + +```php +public function newInstance( string $name, string $file, int $width = null, int $height = null ): AdapterInterface; +``` +Creates a new instance + + +```php +protected function getAdapters(): array; +``` +// + diff --git a/nikos/api/Phalcon_Kernel.md b/nikos/api/Phalcon_Kernel.md new file mode 100644 index 00000000000..f4733ca0f68 --- /dev/null +++ b/nikos/api/Phalcon_Kernel.md @@ -0,0 +1,17 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Kernel' +--- + +* [Phalcon\Kernel](#kernel) + +

        Class Phalcon\Kernel

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/kernel.zep) + +| Namespace | Phalcon | + +This class allows to change the internal behavior of the framework in runtime + diff --git a/nikos/api/Phalcon_Loader.md b/nikos/api/Phalcon_Loader.md new file mode 100644 index 00000000000..3bc33969c55 --- /dev/null +++ b/nikos/api/Phalcon_Loader.md @@ -0,0 +1,239 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Loader' +--- + +* [Phalcon\Loader](#loader) +* [Phalcon\Loader\Exception](#loader-exception) + +

        Class Phalcon\Loader

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/loader.zep) + +| Namespace | Phalcon | +| Uses | Phalcon\Loader\Exception, Phalcon\Events\ManagerInterface, Phalcon\Events\EventsAwareInterface | +| Implements | EventsAwareInterface | + +This component helps to load your project classes automatically based on some +conventions + +```php +use Phalcon\Loader; + +// Creates the autoloader +$loader = new Loader(); + +// Register some namespaces +$loader->registerNamespaces( + [ + "Example\\Base" => "vendor/example/base/", + "Example\\Adapter" => "vendor/example/adapter/", + "Example" => "vendor/example/", + ] +); + +// Register autoloader +$loader->register(); + +// Requiring this class will automatically include file vendor/example/adapter/Some.php +$adapter = new \Example\Adapter\Some(); +``` + + +## Properties +```php +// +protected checkedPath; + +/** + * @var array + */ +protected classes; + +/** + * @var array + */ +protected directories; + +// +protected eventsManager; + +/** + * @var array + */ +protected extensions; + +// +protected fileCheckingCallback = is_file; + +/** + * @var array + */ +protected files; + +/** + * @var bool + */ +protected foundPath; + +/** + * @var array + */ +protected namespaces; + +/** + * @var bool + */ +protected registered = false; + +``` + +## Methods +```php +public function autoLoad( string $className ): bool; +``` +Autoloads the registered classes + + +```php +public function getCheckedPath(): string; +``` +Get the path the loader is checking for a path + + +```php +public function getClasses(): array; +``` +Returns the class-map currently registered in the autoloader + + +```php +public function getDirs(): array; +``` +Returns the directories currently registered in the autoloader + + +```php +public function getEventsManager(): ManagerInterface; +``` +Returns the internal event manager + + +```php +public function getExtensions(): array; +``` +Returns the file extensions registered in the loader + + +```php +public function getFiles(): array; +``` +Returns the files currently registered in the autoloader + + +```php +public function getFoundPath(): string; +``` +Get the path when a class was found + + +```php +public function getNamespaces(): array; +``` +Returns the namespaces currently registered in the autoloader + + +```php +public function loadFiles(): void; +``` +Checks if a file exists and then adds the file by doing virtual require + + +```php +public function register( bool $prepend = bool ): Loader; +``` +Register the autoload method + + +```php +public function registerClasses( array $classes, bool $merge = bool ): Loader; +``` +Register classes and their locations + + +```php +public function registerDirs( array $directories, bool $merge = bool ): Loader; +``` +Register directories in which "not found" classes could be found + + +```php +public function registerFiles( array $files, bool $merge = bool ): Loader; +``` +Registers files that are "non-classes" hence need a "require". This is +very useful for including files that only have functions + + +```php +public function registerNamespaces( array $namespaces, bool $merge = bool ): Loader; +``` +Register namespaces and their related directories + + +```php +public function setEventsManager( ManagerInterface $eventsManager ): void; +``` +Sets the events manager + + +```php +public function setExtensions( array $extensions ): Loader; +``` +Sets an array of file extensions that the loader must try in each attempt +to locate the file + + +```php +public function setFileCheckingCallback( mixed $callback = null ): Loader; +``` +Sets the file check callback. + +```php +// Default behavior. +$loader->setFileCheckingCallback("is_file"); + +// Faster than `is_file()`, but implies some issues if +// the file is removed from the filesystem. +$loader->setFileCheckingCallback("stream_resolve_include_path"); + +// Do not check file existence. +$loader->setFileCheckingCallback(null); +``` + + +```php +public function unregister(): Loader; +``` +Unregister the autoload method + + +```php +protected function prepareNamespace( array $namespaceName ): array; +``` +// + + + +

        Class Phalcon\Loader\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/loader/exception.zep) + +| Namespace | Phalcon\Loader | +| Extends | \Phalcon\Exception | + +Phalcon\Loader\Exception + +Exceptions thrown in Phalcon\Loader will use this class + diff --git a/nikos/api/Phalcon_Logger.md b/nikos/api/Phalcon_Logger.md new file mode 100644 index 00000000000..bd8fa20fa10 --- /dev/null +++ b/nikos/api/Phalcon_Logger.md @@ -0,0 +1,999 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Logger' +--- + +* [Phalcon\Logger](#logger) +* [Phalcon\Logger\Adapter\AbstractAdapter](#logger-adapter-abstractadapter) +* [Phalcon\Logger\Adapter\AdapterInterface](#logger-adapter-adapterinterface) +* [Phalcon\Logger\Adapter\Noop](#logger-adapter-noop) +* [Phalcon\Logger\Adapter\Stream](#logger-adapter-stream) +* [Phalcon\Logger\Adapter\Syslog](#logger-adapter-syslog) +* [Phalcon\Logger\AdapterFactory](#logger-adapterfactory) +* [Phalcon\Logger\Exception](#logger-exception) +* [Phalcon\Logger\Formatter\AbstractFormatter](#logger-formatter-abstractformatter) +* [Phalcon\Logger\Formatter\FormatterInterface](#logger-formatter-formatterinterface) +* [Phalcon\Logger\Formatter\Json](#logger-formatter-json) +* [Phalcon\Logger\Formatter\Line](#logger-formatter-line) +* [Phalcon\Logger\Formatter\Syslog](#logger-formatter-syslog) +* [Phalcon\Logger\Item](#logger-item) +* [Phalcon\Logger\LoggerFactory](#logger-loggerfactory) + +

        Class Phalcon\Logger

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/logger.zep) + +| Namespace | Phalcon | +| Uses | Psr\Log\LoggerInterface, Psr\Log\InvalidArgumentException, Phalcon\Logger\Adapter\AdapterInterface, Phalcon\Logger\Item, Phalcon\Logger\Exception | +| Implements | LoggerInterface | + +Phalcon\Logger + +This component offers logging capabilities for your application. The +component accepts multiple adapters, working also as a multiple logger. +Phalcon\Logger implements PSR-3. + +```php +use Phalcon\Logger; +use Phalcon\Logger\Adapter\Stream; + +$adapter1 = new Stream('/logs/first-log.log'); +$adapter2 = new Stream('/remote/second-log.log'); +$adapter3 = new Stream('/manager/third-log.log'); + +$logger = new Logger( + 'messages', + [ + 'local' => $adapter1, + 'remote' => $adapter2, + 'manager' => $adapter3, + ] + ); + +// Log to all adapters +$logger->error('Something went wrong'); + +// Log to specific adapters +$logger + ->excludeAdapters(['manager']) + ->info('This does not go to the "manager" logger); +``` + + +## Constants +```php +const ALERT = 2; +const CRITICAL = 1; +const CUSTOM = 8; +const DEBUG = 7; +const EMERGENCY = 0; +const ERROR = 3; +const INFO = 6; +const NOTICE = 5; +const WARNING = 4; +``` + +## Properties +```php +/** + * The adapter stack + * + * @var AdapterInterface[] + */ +protected adapters; + +/** + * @var string + */ +protected name = ; + +/** + * The excluded adapters for this log process + * + * @var AdapterInterface[] + */ +protected excluded; + +``` + +## Methods +```php +public function __construct( string $name, array $adapters = [] ): void; +``` +Constructor. + +@param string name The name of the logger +@param array adapters The collection of adapters to be used for logging (default []) + + +```php +public function addAdapter( string $name, AdapterInterface $adapter ): Logger; +``` +Add an adapter to the stack. For processing we use FIFO + +@param string name The name of the adapter +@param adapter The adapter to add to the stack + + +```php +public function alert( mixed $message, array $context = [] ): void; +``` +Action must be taken immediately. + +Example: Entire website down, database unavailable, etc. This should +trigger the SMS alerts and wake you up. + +@param string message + + +```php +public function critical( mixed $message, array $context = [] ): void; +``` +Critical conditions. + +Example: Application component unavailable, unexpected exception. + +@param string message + + +```php +public function debug( mixed $message, array $context = [] ): void; +``` +Detailed debug information. + +@param string message + + +```php +public function emergency( mixed $message, array $context = [] ): void; +``` +System is unusable. + +@param string message + + +```php +public function error( mixed $message, array $context = [] ): void; +``` +Runtime errors that do not require immediate action but should typically +be logged and monitored. + +@param string message + + +```php +public function excludeAdapters( array $adapters = [] ): Logger; +``` +Exclude certain adapters. + + +```php +public function getAdapter( string $name ): AdapterInterface; +``` +Returns an adapter from the stack + +@param string name The name of the adapter + +@throws + + +```php +public function getAdapters(): array; +``` +Returns the adapter stack array + +@return AdapterInterface[] + + +```php +public function getName(): string; +``` +Returns the name of the logger + + +```php +public function info( mixed $message, array $context = [] ): void; +``` +Interesting events. + +Example: User logs in, SQL logs. + +@param string message + + +```php +public function log( mixed $level, mixed $message, array $context = [] ): void; +``` +Logs with an arbitrary level. + +@param mixed level +@param string message + + +```php +public function notice( mixed $message, array $context = [] ): void; +``` +Normal but significant events. + +@param string message + + +```php +public function removeAdapter( string $name ): Logger; +``` +Removes an adapter from the stack + +@param string name The name of the adapter + +@throws + + +```php +public function setAdapters( array $adapters ): Logger; +``` +Sets the adapters stack overriding what is already there + +@param array adapters An array of adapters + + +```php +public function warning( mixed $message, array $context = [] ): void; +``` +Exceptional occurrences that are not errors. + +Example: Use of deprecated APIs, poor use of an API, undesirable things +that are not necessarily wrong. + +@param string message + + +```php +protected function addMessage( int $level, string $message, array $context = [] ): bool; +``` +Adds a message to each handler for processing + +@param int level +@param string message + +@throws + + +```php +protected function getLevels(): array; +``` +Returns an array of log levels with integer to string conversion + + + + +

        Abstract Class Phalcon\Logger\Adapter\AbstractAdapter

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/logger/adapter/abstractadapter.zep) + +| Namespace | Phalcon\Logger\Adapter | +| Uses | Phalcon\Logger, Phalcon\Logger\Adapter\AdapterInterface, Phalcon\Logger\Exception, Phalcon\Logger\Formatter\FormatterInterface, Phalcon\Logger\Item | +| Implements | AdapterInterface | + +This file is part of the Phalcon Framework. + +(c) Phalcon Team + +For the full copyright and license information, please view the LICENSE.txt +file that was distributed with this source code. + + +## Properties +```php +/** + * Name of the default formatter class + * + * @var string + */ +protected defaultFormatter = Line; + +/** + * Formatter + * + * @var + */ +protected formatter; + +/** + * Tells if there is an active transaction or not + * + * @var bool + */ +protected inTransaction = false; + +/** + * Array with messages queued in the transaction + * + * @var array + */ +protected queue; + +``` + +## Methods +```php +public function __destruct(); +``` +Destructor cleanup + + +```php +public function add( Item $item ): AdapterInterface; +``` +Adds a message to the queue + + +```php +public function begin(): AdapterInterface; +``` +Starts a transaction + + +```php +public function commit(): AdapterInterface; +``` +Commits the internal transaction + + +```php +public function getFormatter(): FormatterInterface; +``` +// + +```php +public function inTransaction(): bool; +``` +Returns the whether the logger is currently in an active transaction or not + + +```php +abstract public function process( Item $item ): void; +``` + Processes the message in the adapter + + +```php +public function rollback(): AdapterInterface; +``` +Rollbacks the internal transaction + + +```php +public function setFormatter( FormatterInterface $formatter ): AdapterInterface; +``` +Sets the message formatter + + + + +

        Interface Phalcon\Logger\Adapter\AdapterInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/logger/adapter/adapterinterface.zep) + +| Namespace | Phalcon\Logger\Adapter | +| Uses | Phalcon\Logger\Formatter\FormatterInterface, Phalcon\Logger\Item | + +Phalcon\Logger\AdapterInterface + +Interface for Phalcon\Logger adapters + + +## Methods +```php +public function add( Item $item ): void; +``` +Adds a message in the queue + + +```php +public function begin(): AdapterInterface; +``` +Starts a transaction + + +```php +public function close(): bool; +``` +Closes the logger + + +```php +public function commit(): AdapterInterface; +``` +Commits the internal transaction + + +```php +public function getFormatter(): FormatterInterface; +``` +Returns the internal formatter + + +```php +public function process( Item $item ): void; +``` +Processes the message in the adapter + + +```php +public function rollback(): AdapterInterface; +``` +Rollbacks the internal transaction + + +```php +public function setFormatter( FormatterInterface $formatter ): AdapterInterface; +``` +Sets the message formatter + + + + +

        Class Phalcon\Logger\Adapter\Noop

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/logger/adapter/noop.zep) + +| Namespace | Phalcon\Logger\Adapter | +| Uses | Phalcon\Logger\Item | +| Extends | AbstractAdapter | + +Phalcon\Logger\Adapter\Noop + +Adapter to store logs in plain text files + +```php +$logger = new \Phalcon\Logger\Adapter\Noop(); + +$logger->log(\Phalcon\Logger::ERROR, "This is an error"); +$logger->error("This is another error"); + +$logger->close(); +``` + + +## Methods +```php +public function close(): bool; +``` +Closes the stream + + +```php +public function process( Item $item ): void; +``` +Processes the message i.e. writes it to the file + + + + +

        Class Phalcon\Logger\Adapter\Stream

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/logger/adapter/stream.zep) + +| Namespace | Phalcon\Logger\Adapter | +| Uses | Phalcon\Logger\Adapter, Phalcon\Logger\Exception, Phalcon\Logger\Formatter\FormatterInterface, Phalcon\Logger\Item, UnexpectedValueException | +| Extends | AbstractAdapter | + +Phalcon\Logger\Adapter\Stream + +Adapter to store logs in plain text files + +```php +$logger = new \Phalcon\Logger\Adapter\Stream("app/logs/test.log"); + +$logger->log("This is a message"); +$logger->log(\Phalcon\Logger::ERROR, "This is an error"); +$logger->error("This is another error"); + +$logger->close(); +``` + + +## Properties +```php +/** + * Stream handler resource + * + * @var resource|null + */ +protected handler; + +/** + * The file open mode. Defaults to "ab" + * + * @var string + */ +protected mode = ab; + +/** + * Stream name + * + * @var string + */ +protected name; + +/** + * Path options + * + * @var array + */ +protected options; + +``` + +## Methods +```php +public function __construct( string $name, array $options = [] ); +``` +Constructor. Accepts the name and some options + + +```php +public function close(): bool; +``` +Closes the stream + + +```php +public function getName(): string +``` + + +```php +public function process( Item $item ): void; +``` +Processes the message i.e. writes it to the file + + + + +

        Class Phalcon\Logger\Adapter\Syslog

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/logger/adapter/syslog.zep) + +| Namespace | Phalcon\Logger\Adapter | +| Uses | LogicException, Phalcon\Logger, Phalcon\Logger\Adapter, Phalcon\Logger\Exception, Phalcon\Logger\Formatter\FormatterInterface, Phalcon\Logger\Item | +| Extends | AbstractAdapter | + +Phalcon\Logger\Adapter\Syslog + +Sends logs to the system logger + +```php +use Phalcon\Logger; +use Phalcon\Logger\Adapter\Syslog; + +// LOG_USER is the only valid log type under Windows operating systems +$logger = new Syslog( + "ident", + [ + "option" => LOG_CONS | LOG_NDELAY | LOG_PID, + "facility" => LOG_USER, + ] +); + +$logger->log("This is a message"); +$logger->log(Logger::ERROR, "This is an error"); +$logger->error("This is another error"); +``` + + +## Properties +```php +/** + * Name of the default formatter class + * + * @var string + */ +protected defaultFormatter = Syslog; + +/** + * @var int + */ +protected facility = 0; + +/** + * @var string + */ +protected name = ; + +/** + * @var bool + */ +protected opened = false; + +/** + * @var int + */ +protected option = 0; + +``` + +## Methods +```php +public function __construct( string $name, array $options = [] ); +``` +Phalcon\Logger\Adapter\Syslog constructor + + +```php +public function close(): bool; +``` + Closes the logger + + +```php +public function process( Item $item ): void; +``` +Processes the message i.e. writes it to the syslog + + + + +

        Class Phalcon\Logger\AdapterFactory

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/logger/adapterfactory.zep) + +| Namespace | Phalcon\Logger | +| Uses | Phalcon\Factory\AbstractFactory | +| Extends | AbstractFactory | + +This file is part of the Phalcon Framework. + +(c) Phalcon Team + +For the full copyright and license information, please view the LICENSE.txt +file that was distributed with this source code. + + +## Methods +```php +public function __construct( array $services = [] ); +``` +AdapterFactory constructor. + + +```php +public function newInstance( string $name, string $fileName, array $options = [] ): AdapterInterface; +``` +Create a new instance of the adapter + + +```php +protected function getAdapters(): array; +``` +// + + + +

        Class Phalcon\Logger\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/logger/exception.zep) + +| Namespace | Phalcon\Logger | +| Extends | \Phalcon\Exception | + +Phalcon\Logger\Exception + +Exceptions thrown in Phalcon\Logger will use this class + + + +

        Abstract Class Phalcon\Logger\Formatter\AbstractFormatter

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/logger/formatter/abstractformatter.zep) + +| Namespace | Phalcon\Logger\Formatter | +| Uses | Phalcon\Logger | +| Implements | FormatterInterface | + +This file is part of the Phalcon Framework. + +(c) Phalcon Team + +For the full copyright and license information, please view the LICENSE.txt +file that was distributed with this source code. + + +## Methods +```php +public function interpolate( string $message, mixed $context = null ); +``` +Interpolates context values into the message placeholders + +@see http://www.php-fig.org/psr/psr-3/ Section 1.2 Message +@param string $message +@param array $context + + + + +

        Interface Phalcon\Logger\Formatter\FormatterInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/logger/formatter/formatterinterface.zep) + +| Namespace | Phalcon\Logger\Formatter | +| Uses | Phalcon\Logger\Item | + +Phalcon\Logger\FormatterInterface + +This interface must be implemented by formatters in Phalcon\Logger + + +## Methods +```php +public function format( Item $item ): string | array; +``` +Applies a format to an item + + + + +

        Class Phalcon\Logger\Formatter\Json

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/logger/formatter/json.zep) + +| Namespace | Phalcon\Logger\Formatter | +| Uses | Phalcon\Logger\Formatter\AbstractFormatter, Phalcon\Logger\Item | +| Extends | AbstractFormatter | + +Phalcon\Logger\Formatter\Json + +Formats messages using JSON encoding + + +## Properties +```php +/** + * Default date format + * + * @var string + */ +protected dateFormat; + +``` + +## Methods +```php +public function __construct( string $dateFormat = string ): void; +``` +Phalcon\Logger\Formatter\Json construct + + +```php +public function format( Item $item ): string; +``` +Applies a format to a message before sent it to the internal log + + +```php +public function getDateFormat(): string +``` + + +```php +public function setDateFormat( string $dateFormat ) +``` + + + + +

        Class Phalcon\Logger\Formatter\Line

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/logger/formatter/line.zep) + +| Namespace | Phalcon\Logger\Formatter | +| Uses | Phalcon\Logger\Formatter\Formatter, Phalcon\Logger\Item | +| Extends | AbstractFormatter | + +Phalcon\Logger\Formatter\Line + +Formats messages using an one-line string + + +## Properties +```php +/** + * Default date format + * + * @var string + */ +protected dateFormat; + +/** + * Format applied to each message + * + * @var string + */ +protected format; + +``` + +## Methods +```php +public function __construct( string $format = string, string $dateFormat = string ): void; +``` +Phalcon\Logger\Formatter\Line construct + + +```php +public function format( Item $item ): string; +``` +Applies a format to a message before sent it to the internal log + + +```php +public function getDateFormat(): string +``` + + +```php +public function getFormat(): string +``` + + +```php +public function setDateFormat( string $dateFormat ) +``` + + +```php +public function setFormat( string $format ) +``` + + + + +

        Class Phalcon\Logger\Formatter\Syslog

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/logger/formatter/syslog.zep) + +| Namespace | Phalcon\Logger\Formatter | +| Uses | Phalcon\Logger\Formatter\AbstractFormatter, Phalcon\Logger\Item | +| Extends | AbstractFormatter | + +Phalcon\Logger\Formatter\Syslog + +Prepares a message to be used in a Syslog backend + + +## Methods +```php +public function format( Item $item ): array; +``` +Applies a format to a message before sent it to the internal log + + + + +

        Class Phalcon\Logger\Item

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/logger/item.zep) + +| Namespace | Phalcon\Logger | + +Phalcon\Logger\Item + +Represents each item in a logging transaction + + + +## Properties +```php +// +protected context; + +/** + * Log message + * + * @var string + */ +protected message; + +/** + * Log message + * + * @var string + */ +protected name; + +/** + * Log timestamp + * + * @var integer + */ +protected time; + +/** + * Log type + * + * @var integer + */ +protected type; + +``` + +## Methods +```php +public function __construct( string $message, string $name, int $type, int $time = int, mixed $context = [] ); +``` +Phalcon\Logger\Item constructor + + +```php +public function getContext() +``` + + +```php +public function getMessage(): string +``` + + +```php +public function getName(): string +``` + + +```php +public function getTime(): integer +``` + + +```php +public function getType(): integer +``` + + + + +

        Class Phalcon\Logger\LoggerFactory

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/logger/loggerfactory.zep) + +| Namespace | Phalcon\Logger | +| Uses | Phalcon\Config, Phalcon\Helper\Arr, Phalcon\Logger, Phalcon\Logger\AdapterFactory | + +PhalconNG\Logger\LoggerFactory + +Logger factory + + +## Properties +```php +/** + * @var AdapterFactory + */ +private adapterFactory; + +``` + +## Methods +```php +public function __construct( AdapterFactory $factory ); +``` +// + +```php +public function load( mixed $config ): mixed; +``` +Factory to create an instace from a Config object + + +```php +public function newInstance( string $name, array $adapters = [] ): Logger; +``` +Returns a Logger object + +@param string $name +@param array $adapters + +@return Logger + + diff --git a/nikos/api/Phalcon_Messages.md b/nikos/api/Phalcon_Messages.md new file mode 100644 index 00000000000..19afffd99df --- /dev/null +++ b/nikos/api/Phalcon_Messages.md @@ -0,0 +1,386 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Messages' +--- + +* [Phalcon\Messages\Exception](#messages-exception) +* [Phalcon\Messages\Message](#messages-message) +* [Phalcon\Messages\MessageInterface](#messages-messageinterface) +* [Phalcon\Messages\Messages](#messages-messages) + +

        Class Phalcon\Messages\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/messages/exception.zep) + +| Namespace | Phalcon\Messages | +| Extends | \Phalcon\Exception | + +Phalcon\Validation\Exception + +Exceptions thrown in Phalcon\Messages\* classes will use this class + + + +

        Class Phalcon\Messages\Message

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/messages/message.zep) + +| Namespace | Phalcon\Messages | +| Uses | JsonSerializable, Phalcon\Messages\MessageInterface | +| Implements | MessageInterface, JsonSerializable | + +Phalcon\Messages\Message + +Stores a message from various components + + +## Properties +```php +/** + * @var int + */ +protected code; + +/** + * @var string + */ +protected field; + +/** + * @var string + */ +protected message; + +/** + * @var string + */ +protected type; + +/** + * @var array + */ +protected metaData; + +``` + +## Methods +```php +public function __construct( string $message, mixed $field = string, string $type = string, int $code = int, array $metaData = [] ): void; +``` +Phalcon\Messages\Message constructor + + +```php +public function __toString(): string; +``` +Magic __toString method returns verbose message + + +```php +public function getCode(): int +``` + + +```php +public function getField(): string +``` + + +```php +public function getMessage(): string +``` + + +```php +public function getMetaData(): array +``` + + +```php +public function getType(): string +``` + + +```php +public function jsonSerialize(): array; +``` +Serializes the object for json_encode + + +```php +public function setCode( int $code ): MessageInterface; +``` +Sets code for the message + + +```php +public function setField( mixed $field ): MessageInterface; +``` +Sets field name related to message + + +```php +public function setMessage( string $message ): MessageInterface; +``` +Sets verbose message + + +```php +public function setMetaData( array $metaData ): MessageInterface; +``` +Sets message metadata + + +```php +public function setType( string $type ): MessageInterface; +``` +Sets message type + + + + +

        Interface Phalcon\Messages\MessageInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/messages/messageinterface.zep) + +| Namespace | Phalcon\Messages | +| Uses | Phalcon\Messages\Message | + +Phalcon\Messages\MessageInterface + +Interface for Phalcon\Messages\MessageInterface + + +## Methods +```php +public function __toString(): string; +``` +Magic __toString method returns verbose message + + +```php +public function getCode(); +``` +Returns the message code related to this message + +@return int + + +```php +public function getField(); +``` +Returns field name related to message + +@return string + + +```php +public function getMessage(): string; +``` +Returns verbose message + + +```php +public function getMetaData(): array; +``` +Returns message metadata + + +```php +public function getType(): string; +``` +Returns message type + + +```php +public function setCode( int $code ): MessageInterface; +``` +Sets code for the message + + +```php +public function setField( string $field ): MessageInterface; +``` +Sets field name related to message + + +```php +public function setMessage( string $message ): MessageInterface; +``` +Sets verbose message + + +```php +public function setMetaData( array $metaData ): MessageInterface; +``` +Sets message metadata + + +```php +public function setType( string $type ): MessageInterface; +``` +Sets message type + + + + +

        Class Phalcon\Messages\Messages

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/messages/messages.zep) + +| Namespace | Phalcon\Messages | +| Uses | ArrayAccess, Countable, Iterator, JsonSerializable, Phalcon\Messages\Message, Phalcon\Messages\Exception, Phalcon\Messages\MessageInterface | +| Implements | ArrayAccess, Countable, Iterator, JsonSerializable | + +Represents a collection of messages + + +## Properties +```php +/** + * @var int + */ +protected position = 0; + +/** + * @var array + */ +protected messages; + +``` + +## Methods +```php +public function __construct( array $messages = [] ): void; +``` +Phalcon\Messages\Messages constructor + + +```php +public function appendMessage( MessageInterface $message ); +``` +Appends a message to the collection + +```php +$messages->appendMessage( + new \Phalcon\Messages\Message("This is a message") +); +``` + + +```php +public function appendMessages( mixed $messages ); +``` +Appends an array of messages to the collection + +```php +$messages->appendMessages($messagesArray); +``` + +@param \Phalcon\Messages\MessageInterface[] messages + + +```php +public function count(): int; +``` +Returns the number of messages in the list + + +```php +public function current(): MessageInterface; +``` +Returns the current message in the iterator + + +```php +public function filter( string $fieldName ): array; +``` +Filters the message collection by field name + + +```php +public function jsonSerialize(): array; +``` +Returns serialised message objects as array for json_encode. Calls +jsonSerialize on each object if present + +```php +$data = $messages->jsonSerialize(); +echo json_encode($data); +``` + + +```php +public function key(): int; +``` +Returns the current position/key in the iterator + + +```php +public function next(): void; +``` +Moves the internal iteration pointer to the next position + + +```php +public function offsetExists( mixed $index ): bool; +``` +Checks if an index exists + +```php +var_dump( + isset($message["database"]) +); +``` + +@param int index + + +```php +public function offsetGet( mixed $index ): mixed; +``` +Gets an attribute a message using the array syntax + +```php +print_r( + $messages[0] +); +``` + + +```php +public function offsetSet( mixed $index, mixed $message ): void; +``` +Sets an attribute using the array-syntax + +```php +$messages[0] = new \Phalcon\Messages\Message("This is a message"); +``` + +@param \Phalcon\Messages\Message message + + +```php +public function offsetUnset( mixed $index ): void; +``` +Removes a message from the list + +```php +unset($message["database"]); +``` + + +```php +public function rewind(): void; +``` +Rewinds the internal iterator + + +```php +public function valid(): bool; +``` +Check if the current message in the iterator is valid + + diff --git a/nikos/api/Phalcon_Mvc.md b/nikos/api/Phalcon_Mvc.md new file mode 100644 index 00000000000..896ff0f4561 --- /dev/null +++ b/nikos/api/Phalcon_Mvc.md @@ -0,0 +1,11906 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Mvc' +--- + +* [Phalcon\Mvc\Application](#mvc-application) +* [Phalcon\Mvc\Application\Exception](#mvc-application-exception) +* [Phalcon\Mvc\Controller](#mvc-controller) +* [Phalcon\Mvc\Controller\BindModelInterface](#mvc-controller-bindmodelinterface) +* [Phalcon\Mvc\ControllerInterface](#mvc-controllerinterface) +* [Phalcon\Mvc\Dispatcher](#mvc-dispatcher) +* [Phalcon\Mvc\Dispatcher\Exception](#mvc-dispatcher-exception) +* [Phalcon\Mvc\DispatcherInterface](#mvc-dispatcherinterface) +* [Phalcon\Mvc\EntityInterface](#mvc-entityinterface) +* [Phalcon\Mvc\Micro](#mvc-micro) +* [Phalcon\Mvc\Micro\Collection](#mvc-micro-collection) +* [Phalcon\Mvc\Micro\CollectionInterface](#mvc-micro-collectioninterface) +* [Phalcon\Mvc\Micro\Exception](#mvc-micro-exception) +* [Phalcon\Mvc\Micro\LazyLoader](#mvc-micro-lazyloader) +* [Phalcon\Mvc\Micro\MiddlewareInterface](#mvc-micro-middlewareinterface) +* [Phalcon\Mvc\Model](#mvc-model) +* [Phalcon\Mvc\Model\Behavior](#mvc-model-behavior) +* [Phalcon\Mvc\Model\Behavior\SoftDelete](#mvc-model-behavior-softdelete) +* [Phalcon\Mvc\Model\Behavior\Timestampable](#mvc-model-behavior-timestampable) +* [Phalcon\Mvc\Model\BehaviorInterface](#mvc-model-behaviorinterface) +* [Phalcon\Mvc\Model\Binder](#mvc-model-binder) +* [Phalcon\Mvc\Model\Binder\BindableInterface](#mvc-model-binder-bindableinterface) +* [Phalcon\Mvc\Model\BinderInterface](#mvc-model-binderinterface) +* [Phalcon\Mvc\Model\Criteria](#mvc-model-criteria) +* [Phalcon\Mvc\Model\CriteriaInterface](#mvc-model-criteriainterface) +* [Phalcon\Mvc\Model\Exception](#mvc-model-exception) +* [Phalcon\Mvc\Model\Manager](#mvc-model-manager) +* [Phalcon\Mvc\Model\ManagerInterface](#mvc-model-managerinterface) +* [Phalcon\Mvc\Model\MetaData](#mvc-model-metadata) +* [Phalcon\Mvc\Model\MetaData\Apcu](#mvc-model-metadata-apcu) +* [Phalcon\Mvc\Model\MetaData\Libmemcached](#mvc-model-metadata-libmemcached) +* [Phalcon\Mvc\Model\MetaData\Memory](#mvc-model-metadata-memory) +* [Phalcon\Mvc\Model\MetaData\Redis](#mvc-model-metadata-redis) +* [Phalcon\Mvc\Model\MetaData\Strategy\Annotations](#mvc-model-metadata-strategy-annotations) +* [Phalcon\Mvc\Model\MetaData\Strategy\Introspection](#mvc-model-metadata-strategy-introspection) +* [Phalcon\Mvc\Model\MetaData\StrategyInterface](#mvc-model-metadata-strategyinterface) +* [Phalcon\Mvc\Model\MetaData\Stream](#mvc-model-metadata-stream) +* [Phalcon\Mvc\Model\MetaDataInterface](#mvc-model-metadatainterface) +* [Phalcon\Mvc\Model\Query](#mvc-model-query) +* [Phalcon\Mvc\Model\Query\Builder](#mvc-model-query-builder) +* [Phalcon\Mvc\Model\Query\BuilderInterface](#mvc-model-query-builderinterface) +* [Phalcon\Mvc\Model\Query\Lang](#mvc-model-query-lang) +* [Phalcon\Mvc\Model\Query\Status](#mvc-model-query-status) +* [Phalcon\Mvc\Model\Query\StatusInterface](#mvc-model-query-statusinterface) +* [Phalcon\Mvc\Model\QueryInterface](#mvc-model-queryinterface) +* [Phalcon\Mvc\Model\Relation](#mvc-model-relation) +* [Phalcon\Mvc\Model\RelationInterface](#mvc-model-relationinterface) +* [Phalcon\Mvc\Model\ResultInterface](#mvc-model-resultinterface) +* [Phalcon\Mvc\Model\Resultset](#mvc-model-resultset) +* [Phalcon\Mvc\Model\Resultset\Complex](#mvc-model-resultset-complex) +* [Phalcon\Mvc\Model\Resultset\Simple](#mvc-model-resultset-simple) +* [Phalcon\Mvc\Model\ResultsetInterface](#mvc-model-resultsetinterface) +* [Phalcon\Mvc\Model\Row](#mvc-model-row) +* [Phalcon\Mvc\Model\Transaction](#mvc-model-transaction) +* [Phalcon\Mvc\Model\Transaction\Exception](#mvc-model-transaction-exception) +* [Phalcon\Mvc\Model\Transaction\Failed](#mvc-model-transaction-failed) +* [Phalcon\Mvc\Model\Transaction\Manager](#mvc-model-transaction-manager) +* [Phalcon\Mvc\Model\Transaction\ManagerInterface](#mvc-model-transaction-managerinterface) +* [Phalcon\Mvc\Model\TransactionInterface](#mvc-model-transactioninterface) +* [Phalcon\Mvc\Model\ValidationFailed](#mvc-model-validationfailed) +* [Phalcon\Mvc\ModelInterface](#mvc-modelinterface) +* [Phalcon\Mvc\ModuleDefinitionInterface](#mvc-moduledefinitioninterface) +* [Phalcon\Mvc\Router](#mvc-router) +* [Phalcon\Mvc\Router\Annotations](#mvc-router-annotations) +* [Phalcon\Mvc\Router\Exception](#mvc-router-exception) +* [Phalcon\Mvc\Router\Group](#mvc-router-group) +* [Phalcon\Mvc\Router\GroupInterface](#mvc-router-groupinterface) +* [Phalcon\Mvc\Router\Route](#mvc-router-route) +* [Phalcon\Mvc\Router\RouteInterface](#mvc-router-routeinterface) +* [Phalcon\Mvc\RouterInterface](#mvc-routerinterface) +* [Phalcon\Mvc\View](#mvc-view) +* [Phalcon\Mvc\View\Engine\AbstractEngine](#mvc-view-engine-abstractengine) +* [Phalcon\Mvc\View\Engine\EngineInterface](#mvc-view-engine-engineinterface) +* [Phalcon\Mvc\View\Engine\Php](#mvc-view-engine-php) +* [Phalcon\Mvc\View\Engine\Volt](#mvc-view-engine-volt) +* [Phalcon\Mvc\View\Engine\Volt\Compiler](#mvc-view-engine-volt-compiler) +* [Phalcon\Mvc\View\Engine\Volt\Exception](#mvc-view-engine-volt-exception) +* [Phalcon\Mvc\View\Exception](#mvc-view-exception) +* [Phalcon\Mvc\View\Simple](#mvc-view-simple) +* [Phalcon\Mvc\ViewBaseInterface](#mvc-viewbaseinterface) +* [Phalcon\Mvc\ViewInterface](#mvc-viewinterface) + +

        Class Phalcon\Mvc\Application

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/application.zep) + +| Namespace | Phalcon\Mvc | +| Uses | Closure, Phalcon\Application\AbstractApplication, Phalcon\Di\DiInterface, Phalcon\Mvc\ViewInterface, Phalcon\Mvc\RouterInterface, Phalcon\Http\ResponseInterface, Phalcon\Events\ManagerInterface, Phalcon\Mvc\DispatcherInterface, Phalcon\Mvc\Application\Exception, Phalcon\Mvc\Router\RouteInterface, Phalcon\Mvc\ModuleDefinitionInterface | +| Extends | AbstractApplication | + +Phalcon\Mvc\Application + +This component encapsulates all the complex operations behind instantiating +every component needed and integrating it with the rest to allow the MVC +pattern to operate as desired. + +```php +use Phalcon\Mvc\Application; + +class MyApp extends Application +{ +Register the services here to make them general or register +in the ModuleDefinition to make them module-specific +\/ + protected function registerServices() + { + + } + +This method registers all the modules in the application +\/ + public function main() + { + $this->registerModules( + [ + "frontend" => [ + "className" => "Multiple\\Frontend\\Module", + "path" => "../apps/frontend/Module.php", + ], + "backend" => [ + "className" => "Multiple\\Backend\\Module", + "path" => "../apps/backend/Module.php", + ], + ] + ); + } +} + +$application = new MyApp(); + +$application->main(); +``` + + +## Properties +```php +// +protected implicitView = true; + +// +protected sendCookies = true; + +// +protected sendHeaders = true; + +``` + +## Methods +```php +public function handle( string $uri ): ResponseInterface | bool; +``` +Handles a MVC request + + +```php +public function sendCookiesOnHandleRequest( bool $sendCookies ): Application; +``` +Enables or disables sending cookies by each request handling + + +```php +public function sendHeadersOnHandleRequest( bool $sendHeaders ): Application; +``` +Enables or disables sending headers by each request handling + + +```php +public function useImplicitView( bool $implicitView ): Application; +``` +By default. The view is implicitly buffering all the output +You can full disable the view component using this method + + + + +

        Class Phalcon\Mvc\Application\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/application/exception.zep) + +| Namespace | Phalcon\Mvc\Application | +| Extends | \Phalcon\Application\Exception | + +Phalcon\Mvc\Application\Exception + +Exceptions thrown in Phalcon\Mvc\Application class will use this class + + + +

        Abstract Class Phalcon\Mvc\Controller

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/controller.zep) + +| Namespace | Phalcon\Mvc | +| Uses | Phalcon\Di\Injectable | +| Extends | Injectable | +| Implements | ControllerInterface | + +Phalcon\Mvc\Controller + +Every application controller should extend this class that encapsulates all +the controller functionality + +The controllers provide the “flow” between models and views. Controllers are +responsible for processing the incoming requests from the web browser, +interrogating the models for data, and passing that data on to the views for +presentation. + +```php +dispatcher->forward( + [ + "controller" => "people", + "action" => "index", + ] + ); + } +} +``` + + +## Methods +```php +final public function __construct(); +``` +Phalcon\Mvc\Controller constructor + + + + +

        Interface Phalcon\Mvc\Controller\BindModelInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/controller/bindmodelinterface.zep) + +| Namespace | Phalcon\Mvc\Controller | + +Phalcon\Mvc\Controller\BindModelInterface + +Interface for Phalcon\Mvc\Controller + + + +

        Interface Phalcon\Mvc\ControllerInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/controllerinterface.zep) + +| Namespace | Phalcon\Mvc | + +Phalcon\Mvc\ControllerInterface + +Interface for controller handlers + + + +

        Class Phalcon\Mvc\Dispatcher

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/dispatcher.zep) + +| Namespace | Phalcon\Mvc | +| Uses | Phalcon\Mvc\DispatcherInterface, Phalcon\Mvc\Dispatcher\Exception, Phalcon\Events\ManagerInterface, Phalcon\Http\ResponseInterface, Phalcon\Mvc\ControllerInterface, Phalcon\Dispatcher\AbstractDispatcher | +| Extends | BaseDispatcher | +| Implements | DispatcherInterface | + +Dispatching is the process of taking the request object, extracting the +module name, controller name, action name, and optional parameters contained +in it, and then instantiating a controller and calling an action of that +controller. + +```php +$di = new \Phalcon\Di(); + +$dispatcher = new \Phalcon\Mvc\Dispatcher(); + +$dispatcher->setDI($di); + +$dispatcher->setControllerName("posts"); +$dispatcher->setActionName("index"); +$dispatcher->setParams([]); + +$controller = $dispatcher->dispatch(); +``` + + +## Properties +```php +// +protected defaultAction = index; + +// +protected defaultHandler = index; + +// +protected handlerSuffix = Controller; + +``` + +## Methods +```php +public function forward( mixed $forward ); +``` +Forwards the execution flow to another controller/action. + +```php +use Phalcon\Events\Event; +use Phalcon\Mvc\Dispatcher; +use App\Backend\Bootstrap as Backend; +use App\Frontend\Bootstrap as Frontend; + +// Registering modules +$modules = [ + "frontend" => [ + "className" => Frontend::class, + "path" => __DIR__ . "/app/Modules/Frontend/Bootstrap.php", + "metadata" => [ + "controllersNamespace" => "App\Frontend\Controllers", + ], + ], + "backend" => [ + "className" => Backend::class, + "path" => __DIR__ . "/app/Modules/Backend/Bootstrap.php", + "metadata" => [ + "controllersNamespace" => "App\Backend\Controllers", + ], + ], +]; + +$application->registerModules($modules); + +// Setting beforeForward listener +$eventsManager = $di->getShared("eventsManager"); + +$eventsManager->attach( + "dispatch:beforeForward", + function(Event $event, Dispatcher $dispatcher, array $forward) use ($modules) { + $metadata = $modules[$forward["module"]]["metadata"]; + + $dispatcher->setModuleName( + $forward["module"] + ); + + $dispatcher->setNamespaceName( + $metadata["controllersNamespace"] + ); + } +); + +// Forward +$this->dispatcher->forward( + [ + "module" => "backend", + "controller" => "posts", + "action" => "index", + ] +); +``` + +@param array forward + + +```php +public function getActiveController(): ControllerInterface; +``` +Returns the active controller in the dispatcher + + +```php +public function getControllerClass(): string; +``` +Possible controller class name that will be located to dispatch the +request + + +```php +public function getControllerName(): string; +``` +Gets last dispatched controller name + + +```php +public function getLastController(): ControllerInterface; +``` +Returns the latest dispatched controller + + +```php +public function getPreviousActionName(): string; +``` +Gets previous dispatched action name + + +```php +public function getPreviousControllerName(): string; +``` +Gets previous dispatched controller name + + +```php +public function getPreviousNamespaceName(): string; +``` +Gets previous dispatched namespace name + + +```php +public function setControllerName( string $controllerName ); +``` +Sets the controller name to be dispatched + + +```php +public function setControllerSuffix( string $controllerSuffix ); +``` +Sets the default controller suffix + + +```php +public function setDefaultController( string $controllerName ); +``` +Sets the default controller name + + +```php +protected function handleException( \Exception $exception ); +``` +Handles a user exception + + +```php +protected function throwDispatchException( string $message, int $exceptionCode = int ); +``` +Throws an internal exception + + + + +

        Class Phalcon\Mvc\Dispatcher\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/dispatcher/exception.zep) + +| Namespace | Phalcon\Mvc\Dispatcher | +| Extends | \Phalcon\Dispatcher\Exception | + +Phalcon\Mvc\Dispatcher\Exception + +Exceptions thrown in Phalcon\Mvc\Dispatcher will use this class + + + +

        Interface Phalcon\Mvc\DispatcherInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/dispatcherinterface.zep) + +| Namespace | Phalcon\Mvc | +| Uses | Phalcon\Mvc\ControllerInterface, Phalcon\Dispatcher\DispatcherInterface | +| Extends | DispatcherInterfaceBase | + +Phalcon\Mvc\DispatcherInterface + +Interface for Phalcon\Mvc\Dispatcher + + +## Methods +```php +public function getActiveController(): ControllerInterface; +``` +Returns the active controller in the dispatcher + + +```php +public function getControllerName(): string; +``` +Gets last dispatched controller name + + +```php +public function getLastController(): ControllerInterface; +``` +Returns the latest dispatched controller + + +```php +public function setControllerName( string $controllerName ); +``` +Sets the controller name to be dispatched + + +```php +public function setControllerSuffix( string $controllerSuffix ); +``` +Sets the default controller suffix + + +```php +public function setDefaultController( string $controllerName ); +``` +Sets the default controller name + + + + +

        Interface Phalcon\Mvc\EntityInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/entityinterface.zep) + +| Namespace | Phalcon\Mvc | + +Phalcon\Mvc\EntityInterface + +Interface for Phalcon\Mvc\Collection and Phalcon\Mvc\Model + + +## Methods +```php +public function readAttribute( string $attribute ): mixed | null; +``` +Reads an attribute value by its name + + +```php +public function writeAttribute( string $attribute, mixed $value ); +``` +Writes an attribute value by its name + + + + +

        Class Phalcon\Mvc\Micro

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/micro.zep) + +| Namespace | Phalcon\Mvc | +| Uses | ArrayAccess, Closure, Phalcon\Di\DiInterface, Phalcon\Di\Injectable, Phalcon\Mvc\Controller, Phalcon\Di\FactoryDefault, Phalcon\Mvc\Micro\Exception, Phalcon\Di\ServiceInterface, Phalcon\Mvc\Micro\Collection, Phalcon\Mvc\Micro\LazyLoader, Phalcon\Http\ResponseInterface, Phalcon\Mvc\Model\BinderInterface, Phalcon\Mvc\Router\RouteInterface, Phalcon\Mvc\Micro\MiddlewareInterface, Phalcon\Mvc\Micro\CollectionInterface, Throwable | +| Extends | Injectable | +| Implements | ArrayAccess | + +Phalcon\Mvc\Micro + +With Phalcon you can create "Micro-Framework like" applications. By doing +this, you only need to write a minimal amount of code to create a PHP +application. Micro applications are suitable to small applications, APIs and +prototypes in a practical way. + +```php +$app = new \Phalcon\Mvc\Micro(); + +$app->get( + "/say/welcome/{name}", + function ($name) { + echo "

        Welcome $name!

        "; + } +); + +$app->handle("/say/welcome/Phalcon"); +``` + + +## Properties +```php +// +protected activeHandler; + +// +protected afterBindingHandlers; + +// +protected afterHandlers; + +// +protected beforeHandlers; + +// +protected container; + +// +protected errorHandler; + +// +protected finishHandlers; + +// +protected handlers; + +// +protected modelBinder; + +// +protected notFoundHandler; + +// +protected responseHandler; + +// +protected returnedValue; + +// +protected router; + +// +protected stopped; + +``` + +## Methods +```php +public function __construct( DiInterface $container = null ); +``` +Phalcon\Mvc\Micro constructor + + +```php +public function after( mixed $handler ): Micro; +``` +Appends an 'after' middleware to be called after execute the route + +@param callable handler + + +```php +public function afterBinding( mixed $handler ): Micro; +``` +Appends a afterBinding middleware to be called after model binding + +@param callable handler + + +```php +public function before( mixed $handler ): Micro; +``` +Appends a before middleware to be called before execute the route + +@param callable handler + + +```php +public function delete( string $routePattern, mixed $handler ): RouteInterface; +``` +Maps a route to a handler that only matches if the HTTP method is DELETE + +@param callable handler + + +```php +public function error( mixed $handler ): Micro; +``` +Sets a handler that will be called when an exception is thrown handling +the route + +@param callable handler + + +```php +public function finish( mixed $handler ): Micro; +``` +Appends a 'finish' middleware to be called when the request is finished + +@param callable handler + + +```php +public function get( string $routePattern, mixed $handler ): RouteInterface; +``` +Maps a route to a handler that only matches if the HTTP method is GET + +@param callable handler + + +```php +public function getActiveHandler(); +``` +Return the handler that will be called for the matched route + +@return callable + + +```php +public function getBoundModels(): array; +``` +Returns bound models from binder instance + + +```php +public function getHandlers(): array; +``` +Returns the internal handlers attached to the application + + +```php +public function getModelBinder(): BinderInterface | null; +``` +Gets model binder + + +```php +public function getReturnedValue(); +``` +Returns the value returned by the executed handler + +@return mixed + + +```php +public function getRouter(): RouterInterface; +``` +Returns the internal router used by the application + + +```php +public function getService( string $serviceName ); +``` +Obtains a service from the DI + +@return object + + +```php +public function getSharedService( string $serviceName ); +``` +Obtains a shared service from the DI + +@return mixed + + +```php +public function handle( string $uri ); +``` +Handle the whole request + +@param string uri +@return mixed + + +```php +public function hasService( string $serviceName ): bool; +``` +Checks if a service is registered in the DI + + +```php +public function head( string $routePattern, mixed $handler ): RouteInterface; +``` +Maps a route to a handler that only matches if the HTTP method is HEAD + +@param callable handler + + +```php +public function map( string $routePattern, mixed $handler ): RouteInterface; +``` +Maps a route to a handler without any HTTP method constraint + +@param callable handler + + +```php +public function mount( CollectionInterface $collection ): Micro; +``` +Mounts a collection of handlers + + +```php +public function notFound( mixed $handler ): Micro; +``` +Sets a handler that will be called when the router doesn't match any of +the defined routes + +@param callable handler + + +```php +public function offsetExists( mixed $alias ): bool; +``` +Check if a service is registered in the internal services container using +the array syntax + + +```php +public function offsetGet( mixed $alias ): mixed; +``` +Allows to obtain a shared service in the internal services container +using the array syntax + +```php +var_dump( + $app["request"] +); +``` + + +```php +public function offsetSet( mixed $alias, mixed $definition ): void; +``` +Allows to register a shared service in the internal services container +using the array syntax + +```php + $app["request"] = new \Phalcon\Http\Request(); +``` + + +```php +public function offsetUnset( mixed $alias ): void; +``` +Removes a service from the internal services container using the array +syntax + + +```php +public function options( string $routePattern, mixed $handler ): RouteInterface; +``` +Maps a route to a handler that only matches if the HTTP method is OPTIONS + +@param callable handler + + +```php +public function patch( string $routePattern, mixed $handler ): RouteInterface; +``` +Maps a route to a handler that only matches if the HTTP method is PATCH + +@param callable $handler + + +```php +public function post( string $routePattern, mixed $handler ): RouteInterface; +``` +Maps a route to a handler that only matches if the HTTP method is POST + +@param callable handler + + +```php +public function put( string $routePattern, mixed $handler ): RouteInterface; +``` +Maps a route to a handler that only matches if the HTTP method is PUT + +@param callable $handler + + +```php +public function setActiveHandler( mixed $activeHandler ); +``` +Sets externally the handler that must be called by the matched route + +@param callable activeHandler + + +```php +public function setDI( DiInterface $container ): void; +``` +Sets the DependencyInjector container + + +```php +public function setModelBinder( BinderInterface $modelBinder, mixed $cache = null ): Micro; +``` +Sets model binder + +```php +$micro = new Micro($di); + +$micro->setModelBinder( + new Binder(), + 'cache' +); +``` + + +```php +public function setResponseHandler( mixed $handler ): Micro; +``` +Appends a custom 'reponse' handler to be called insted of the default +response handler + +@param callable handler + + +```php +public function setService( string $serviceName, mixed $definition, bool $shared = bool ): ServiceInterface; +``` +Sets a service from the DI + + +```php +public function stop(); +``` +Stops the middleware execution avoiding than other middlewares be +executed + + + + +

        Class Phalcon\Mvc\Micro\Collection

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/micro/collection.zep) + +| Namespace | Phalcon\Mvc\Micro | +| Implements | CollectionInterface | + +Phalcon\Mvc\Micro\Collection + +Groups Micro-Mvc handlers as controllers + +```php +$app = new \Phalcon\Mvc\Micro(); + +$collection = new Collection(); + +$collection->setHandler( + new PostsController() +); + +$collection->get("/posts/edit/{id}", "edit"); + +$app->mount($collection); +``` + + +## Properties +```php +// +protected handler; + +// +protected handlers; + +// +protected lazy; + +// +protected prefix; + +``` + +## Methods +```php +public function delete( string $routePattern, mixed $handler, string $name = null ): CollectionInterface; +``` +Maps a route to a handler that only matches if the HTTP method is DELETE. + +@param callable|string handler + + +```php +public function get( string $routePattern, mixed $handler, string $name = null ): CollectionInterface; +``` +Maps a route to a handler that only matches if the HTTP method is GET. + +@param callable|string handler + + +```php +public function getHandler(): mixed; +``` +Returns the main handler + + +```php +public function getHandlers(): array; +``` +Returns the registered handlers + + +```php +public function getPrefix(): string; +``` +Returns the collection prefix if any + + +```php +public function head( string $routePattern, mixed $handler, string $name = null ): CollectionInterface; +``` +Maps a route to a handler that only matches if the HTTP method is HEAD. + +@param callable|string handler + + +```php +public function isLazy(): bool; +``` +Returns if the main handler must be lazy loaded + + +```php +public function map( string $routePattern, mixed $handler, string $name = null ): CollectionInterface; +``` +Maps a route to a handler. + +@param callable|string handler + + +```php +public function mapVia( string $routePattern, mixed $handler, mixed $method, string $name = null ): CollectionInterface; +``` +Maps a route to a handler via methods. + +```php +$collection->mapVia( + "/test", + "indexAction", + ["POST", "GET"], + "test" +); +``` + +@param callable handler +@param string|array method + + +```php +public function options( string $routePattern, mixed $handler, string $name = null ): CollectionInterface; +``` +Maps a route to a handler that only matches if the HTTP method is +OPTIONS. + +@param callable|string handler + + +```php +public function patch( string $routePattern, mixed $handler, string $name = null ): CollectionInterface; +``` +Maps a route to a handler that only matches if the HTTP method is PATCH. + +@param callable|string handler + + +```php +public function post( string $routePattern, mixed $handler, string $name = null ): CollectionInterface; +``` +Maps a route to a handler that only matches if the HTTP method is POST. + +@param callable|string handler + + +```php +public function put( string $routePattern, mixed $handler, string $name = null ): CollectionInterface; +``` +Maps a route to a handler that only matches if the HTTP method is PUT. + +@param callable|string handler + + +```php +public function setHandler( mixed $handler, bool $lazy = bool ): CollectionInterface; +``` +Sets the main handler. + +@param callable|string handler + + +```php +public function setLazy( bool $lazy ): CollectionInterface; +``` +Sets if the main handler must be lazy loaded + + +```php +public function setPrefix( string $prefix ): CollectionInterface; +``` +Sets a prefix for all routes added to the collection + + +```php +protected function addMap( mixed $method, string $routePattern, mixed $handler, string $name ); +``` +Internal function to add a handler to the group. + +@param string|array method +@param callable|string handler + + + + +

        Interface Phalcon\Mvc\Micro\CollectionInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/micro/collectioninterface.zep) + +| Namespace | Phalcon\Mvc\Micro | + +Phalcon\Mvc\Micro\CollectionInterface + +Interface for Phalcon\Mvc\Micro\Collection + + +## Methods +```php +public function delete( string $routePattern, callable $handler, string $name = null ): CollectionInterface; +``` +Maps a route to a handler that only matches if the HTTP method is DELETE + + +```php +public function get( string $routePattern, callable $handler, string $name = null ): CollectionInterface; +``` +Maps a route to a handler that only matches if the HTTP method is GET + + +```php +public function getHandler(): mixed; +``` +Returns the main handler + + +```php +public function getHandlers(): array; +``` +Returns the registered handlers + + +```php +public function getPrefix(): string; +``` +Returns the collection prefix if any + + +```php +public function head( string $routePattern, callable $handler, string $name = null ): CollectionInterface; +``` +Maps a route to a handler that only matches if the HTTP method is HEAD + + +```php +public function isLazy(): bool; +``` +Returns if the main handler must be lazy loaded + + +```php +public function map( string $routePattern, callable $handler, string $name = null ): CollectionInterface; +``` +Maps a route to a handler + + +```php +public function options( string $routePattern, callable $handler, string $name = null ): CollectionInterface; +``` +Maps a route to a handler that only matches if the HTTP method is OPTIONS + + +```php +public function patch( string $routePattern, callable $handler, string $name = null ): CollectionInterface; +``` +Maps a route to a handler that only matches if the HTTP method is PATCH + + +```php +public function post( string $routePattern, callable $handler, string $name = null ): CollectionInterface; +``` +Maps a route to a handler that only matches if the HTTP method is POST + + +```php +public function put( string $routePattern, callable $handler, string $name = null ): CollectionInterface; +``` +Maps a route to a handler that only matches if the HTTP method is PUT + + +```php +public function setHandler( mixed $handler, bool $lazy = bool ): CollectionInterface; +``` +Sets the main handler + + +```php +public function setLazy( bool $lazy ): CollectionInterface; +``` +Sets if the main handler must be lazy loaded + + +```php +public function setPrefix( string $prefix ): CollectionInterface; +``` +Sets a prefix for all routes added to the collection + + + + +

        Class Phalcon\Mvc\Micro\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/micro/exception.zep) + +| Namespace | Phalcon\Mvc\Micro | +| Extends | \Phalcon\Exception | + +Exceptions thrown in Phalcon\Mvc\Micro will use this class + + + +

        Class Phalcon\Mvc\Micro\LazyLoader

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/micro/lazyloader.zep) + +| Namespace | Phalcon\Mvc\Micro | +| Uses | Phalcon\Mvc\Model\BinderInterface | + +Phalcon\Mvc\Micro\LazyLoader + +Lazy-Load of handlers for Mvc\Micro using auto-loading + + +## Properties +```php +// +protected handler; + +// +protected definition; + +``` + +## Methods +```php +public function __construct( string $definition ); +``` +Phalcon\Mvc\Micro\LazyLoader constructor + + +```php +public function callMethod( string $method, mixed $arguments, BinderInterface $modelBinder = null ); +``` +Calling __call method + +@param array arguments +@return mixed + + +```php +public function getDefinition() +``` + + + + +

        Interface Phalcon\Mvc\Micro\MiddlewareInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/micro/middlewareinterface.zep) + +| Namespace | Phalcon\Mvc\Micro | +| Uses | Phalcon\Mvc\Micro | + +Allows to implement Phalcon\Mvc\Micro middleware in classes + + +## Methods +```php +public function call( Micro $application ); +``` +Calls the middleware + + + + +

        Abstract Class Phalcon\Mvc\Model

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model.zep) + +| Namespace | Phalcon\Mvc | +| Uses | JsonSerializable, Phalcon\Db\Adapter\AdapterInterface, Phalcon\Db\Column, Phalcon\Db\DialectInterface, Phalcon\Db\Enum, Phalcon\Db\RawValue, Phalcon\Di\AbstractInjectionAware, Phalcon\Di, Phalcon\Di\DiInterface, Phalcon\Events\ManagerInterface, Phalcon\Helper\Arr, Phalcon\Messages\Message, Phalcon\Messages\MessageInterface, Phalcon\Mvc\Model\BehaviorInterface, Phalcon\Mvc\Model\Criteria, Phalcon\Mvc\Model\CriteriaInterface, Phalcon\Mvc\Model\Exception, Phalcon\Mvc\Model\ManagerInterface, Phalcon\Mvc\Model\MetaDataInterface, Phalcon\Mvc\Model\Query, Phalcon\Mvc\Model\Query\Builder, Phalcon\Mvc\Model\Query\BuilderInterface, Phalcon\Mvc\Model\QueryInterface, Phalcon\Mvc\Model\ResultInterface, Phalcon\Mvc\Model\Resultset, Phalcon\Mvc\Model\ResultsetInterface, Phalcon\Mvc\Model\Relation, Phalcon\Mvc\Model\RelationInterface, Phalcon\Mvc\Model\TransactionInterface, Phalcon\Mvc\Model\ValidationFailed, Phalcon\Mvc\ModelInterface, Phalcon\Validation\ValidationInterface, Phalcon\Events\ManagerInterface, Serializable | +| Extends | AbstractInjectionAware | +| Implements | EntityInterface, ModelInterface, ResultInterface, Serializable, JsonSerializable | + +Phalcon\Mvc\Model + +Phalcon\Mvc\Model connects business objects and database tables to create a +persistable domain model where logic and data are presented in one wrapping. +It‘s an implementation of the object-relational mapping (ORM). + +A model represents the information (data) of the application and the rules to +manipulate that data. Models are primarily used for managing the rules of +interaction with a corresponding database table. In most cases, each table in +your database will correspond to one model in your application. The bulk of +your application's business logic will be concentrated in the models. + +Phalcon\Mvc\Model is the first ORM written in Zephir/C languages for PHP, +giving to developers high performance when interacting with databases while +is also easy to use. + +```php +$robot = new Robots(); + +$robot->type = "mechanical"; +$robot->name = "Astro Boy"; +$robot->year = 1952; + +if ($robot->save() === false) { + echo "Umh, We can store robots: "; + + $messages = $robot->getMessages(); + + foreach ($messages as $message) { + echo $message; + } +} else { + echo "Great, a new robot was saved successfully!"; +} +``` + + +## Constants +```php +const DIRTY_STATE_DETACHED = 2; +const DIRTY_STATE_PERSISTENT = 0; +const DIRTY_STATE_TRANSIENT = 1; +const OP_CREATE = 1; +const OP_DELETE = 3; +const OP_NONE = 0; +const OP_UPDATE = 2; +const TRANSACTION_INDEX = transaction; +``` + +## Properties +```php +// +protected dirtyState = 1; + +// +protected dirtyRelated; + +// +protected errorMessages; + +// +protected modelsManager; + +// +protected modelsMetaData; + +// +protected related; + +// +protected operationMade = 0; + +// +protected oldSnapshot; + +// +protected skipped; + +// +protected snapshot; + +// +protected transaction; + +// +protected uniqueKey; + +// +protected uniqueParams; + +// +protected uniqueTypes; + +``` + +## Methods +```php +public function __call( string $method, array $arguments ); +``` +Handles method calls when a method is not implemented + +@return mixed + + +```php +public static function __callStatic( string $method, array $arguments ); +``` +Handles method calls when a static method is not implemented + +@return mixed + + +```php +final public function __construct( mixed $data = null, DiInterface $container = null, ManagerInterface $modelsManager = null ): void; +``` +Phalcon\Mvc\Model constructor + + +```php +public function __get( string $property ); +``` +Magic method to get related records using the relation alias as a +property + +@return mixed + + +```php +public function __isset( string $property ): bool; +``` +Magic method to check if a property is a valid relation + + +```php +public function __set( string $property, mixed $value ); +``` +Magic method to assign values to the the model + +@param mixed value + + +```php +public function addBehavior( BehaviorInterface $behavior ): void; +``` +Setups a behavior in a model + +```php +use Phalcon\Mvc\Model; +use Phalcon\Mvc\Model\Behavior\Timestampable; + +class Robots extends Model +{ + public function initialize() + { + $this->addBehavior( + new Timestampable( + [ + "onCreate" => [ + "field" => "created_at", + "format" => "Y-m-d", + ], + ] + ) + ); + } +} +``` + + +```php +public function appendMessage( MessageInterface $message ): ModelInterface; +``` +Appends a customized message on the validation process + +```php +use Phalcon\Mvc\Model; +use Phalcon\Messages\Message as Message; + +class Robots extends Model +{ + public function beforeSave() + { + if ($this->name === "Peter") { + $message = new Message( + "Sorry, but a robot cannot be named Peter" + ); + + $this->appendMessage($message); + } + } +} +``` + + +```php +public function assign( array $data, mixed $dataColumnMap = null, mixed $whiteList = null ): ModelInterface; +``` +Assigns values to a model from an array + +```php +$robot->assign( + [ + "type" => "mechanical", + "name" => "Astro Boy", + "year" => 1952, + ] +); + +// Assign by db row, column map needed +$robot->assign( + $dbRow, + [ + "db_type" => "type", + "db_name" => "name", + "db_year" => "year", + ] +); + +// Allow assign only name and year +$robot->assign( + $_POST, + null, + [ + "name", + "year", + ] +); + +// By default assign method will use setters if exist, you can disable it by using ini_set to directly use properties + +ini_set("phalcon.orm.disable_assign_setters", true); + +$robot->assign( + $_POST, + null, + [ + "name", + "year", + ] +); +``` + +@param array dataColumnMap array to transform keys of data to another +@param array whiteList + + +```php +public function create(): bool; +``` +Inserts a model instance. If the instance already exists in the +persistence it will throw an exception +Returning true on success or false otherwise. + +```php +// Creating a new robot +$robot = new Robots(); + +$robot->type = "mechanical"; +$robot->name = "Astro Boy"; +$robot->year = 1952; + +$robot->create(); + +// Passing an array to create +$robot = new Robots(); + +$robot->assign( + [ + "type" => "mechanical", + "name" => "Astro Boy", + "year" => 1952, + ] +); + +$robot->create(); +``` + + +```php +public function delete(): bool; +``` +Deletes a model instance. Returning true on success or false otherwise. + +```php +$robot = Robots::findFirst("id=100"); + +$robot->delete(); + +$robots = Robots::find("type = 'mechanical'"); + +foreach ($robots as $robot) { + $robot->delete(); +} +``` + + +```php +public function dump(): array; +``` +Returns a simple representation of the object that can be used with +`var_dump()` + +```php +var_dump( + $robot->dump() +); +``` + + +```php +public function fireEvent( string $eventName ): bool; +``` +Fires an event, implicitly calls behaviors and listeners in the events +manager are notified + + +```php +public function fireEventCancel( string $eventName ): bool; +``` +Fires an event, implicitly calls behaviors and listeners in the events +manager are notified +This method stops if one of the callbacks/listeners returns bool false + + +```php +public function getChangedFields(): array; +``` +Returns a list of changed values. + +```php +$robots = Robots::findFirst(); +print_r($robots->getChangedFields()); // [] + +$robots->deleted = 'Y'; + +$robots->getChangedFields(); +print_r($robots->getChangedFields()); // ["deleted"] +``` + + +```php +public function getDirtyState(): int; +``` +Returns one of the DIRTY_STATE_* constants telling if the record exists +in the database or not + + +```php +public function getEventsManager(): EventsManagerInterface; +``` +Returns the custom events manager + + +```php +public function getMessages( mixed $filter = null ): MessageInterface[]; +``` +Returns array of validation messages + +```php +$robot = new Robots(); + +$robot->type = "mechanical"; +$robot->name = "Astro Boy"; +$robot->year = 1952; + +if ($robot->save() === false) { + echo "Umh, We can't store robots right now "; + + $messages = $robot->getMessages(); + + foreach ($messages as $message) { + echo $message; + } +} else { + echo "Great, a new robot was saved successfully!"; +} +``` + + +```php +public function getModelsManager(): ManagerInterface; +``` +Returns the models manager related to the entity instance + + +```php +public function getModelsMetaData(): MetaDataInterface; +``` +{@inheritdoc} + + +```php +public function getOldSnapshotData(): array; +``` +Returns the internal old snapshot data + + +```php +public function getOperationMade(): int; +``` +Returns the type of the latest operation performed by the ORM +Returns one of the OP_* class constants + + +```php +final public function getReadConnection(): AdapterInterface; +``` +Gets the connection used to read data for the model + + +```php +final public function getReadConnectionService(): string; +``` +Returns the DependencyInjection connection service name used to read data +related the model + + +```php +public function getRelated( string $alias, mixed $arguments = null ); +``` +Returns related records based on defined relations + +@param array arguments +@return \Phalcon\Mvc\Model\Resultset\Simple|Phalcon\Mvc\Model\Resultset\Simple|false + + +```php +final public function getSchema(): string; +``` +Returns schema name where the mapped table is located + + +```php +public function getSnapshotData(): array; +``` +Returns the internal snapshot data + + +```php +final public function getSource(): string; +``` +Returns the table name mapped in the model + + +```php +public function getTransaction() +``` + + +```php +public function getUpdatedFields(): array; +``` +Returns a list of updated values. + +```php +$robots = Robots::findFirst(); +print_r($robots->getChangedFields()); // [] + +$robots->deleted = 'Y'; + +$robots->getChangedFields(); +print_r($robots->getChangedFields()); // ["deleted"] +$robots->save(); +print_r($robots->getChangedFields()); // [] +print_r($robots->getUpdatedFields()); // ["deleted"] +``` + + +```php +final public function getWriteConnection(): AdapterInterface; +``` +Gets the connection used to write data to the model + + +```php +final public function getWriteConnectionService(): string; +``` +Returns the DependencyInjection connection service name used to write +data related to the model + + +```php +public function hasChanged( mixed $fieldName = null, bool $allFields = bool ): bool; +``` +Check if a specific attribute has changed +This only works if the model is keeping data snapshots + +```php +$robot = new Robots(); + +$robot->type = "mechanical"; +$robot->name = "Astro Boy"; +$robot->year = 1952; + +$robot->create(); + +$robot->type = "hydraulic"; + +$hasChanged = $robot->hasChanged("type"); // returns true +$hasChanged = $robot->hasChanged(["type", "name"]); // returns true +$hasChanged = $robot->hasChanged(["type", "name"], true); // returns false +``` + +@param string|array fieldName +@param boolean allFields + + +```php +public function hasSnapshotData(): bool; +``` +Checks if the object has internal snapshot data + + +```php +public function hasUpdated( mixed $fieldName = null, bool $allFields = bool ): bool; +``` +Check if a specific attribute was updated +This only works if the model is keeping data snapshots + +@param string|array fieldName + + +```php +public function isRelationshipLoaded( string $relationshipAlias ): bool; +``` +Checks if saved related records have already been loaded. + +Only returns true if the records were previously fetched +through the model without any additional parameters. + +```php +$robot = Robots::findFirst(); +var_dump($robot->isRelationshipLoaded('robotsParts')); // false + +$robotsParts = $robot->getRobotsParts(['id > 0']); +var_dump($robot->isRelationshipLoaded('robotsParts')); // false + +$robotsParts = $robot->getRobotsParts(); // or $robot->robotsParts +var_dump($robot->isRelationshipLoaded('robotsParts')); // true + +$robot->robotsParts = [new RobotsParts()]; +var_dump($robot->isRelationshipLoaded('robotsParts')); // false +``` + + +```php +public function jsonSerialize(): array; +``` + Serializes the object for json_encode + + ```php + echo json_encode($robot); + ``` + + +```php +public function readAttribute( string $attribute ): mixed | null; +``` +Reads an attribute value by its name + +```php +echo $robot->readAttribute("name"); +``` + + +```php +public function refresh(): ModelInterface; +``` +Refreshes the model attributes re-querying the record from the database + + +```php +public function save(): bool; +``` +Inserts or updates a model instance. Returning true on success or false +otherwise. + +```php +// Creating a new robot +$robot = new Robots(); + +$robot->type = "mechanical"; +$robot->name = "Astro Boy"; +$robot->year = 1952; + +$robot->save(); + +// Updating a robot name +$robot = Robots::findFirst("id = 100"); + +$robot->name = "Biomass"; + +$robot->save(); +``` + + +```php +public function serialize(): string; +``` +Serializes the object ignoring connections, services, related objects or +static properties + + +```php +final public function setConnectionService( string $connectionService ): ModelInterface; +``` +Sets the DependencyInjection connection service name + + +```php +public function setDirtyState( int $dirtyState ): ModelInterface | bool; +``` +Sets the dirty state of the object using one of the DIRTY_STATE_* constants + + +```php +public function setEventsManager( EventsManagerInterface $eventsManager ); +``` +Sets a custom events manager + + +```php +public function setOldSnapshotData( array $data, mixed $columnMap = null ); +``` +Sets the record's old snapshot data. +This method is used internally to set old snapshot data when the model +was set up to keep snapshot data + +@param array data +@param array columnMap + + +```php +final public function setReadConnectionService( string $connectionService ): ModelInterface; +``` +Sets the DependencyInjection connection service name used to read data + + +```php +public function setSnapshotData( array $data, mixed $columnMap = null ): void; +``` +Sets the record's snapshot data. +This method is used internally to set snapshot data when the model was +set up to keep snapshot data + +@param array columnMap + + +```php +public function setTransaction( TransactionInterface $transaction ): ModelInterface; +``` +Sets a transaction related to the Model instance + +```php +use Phalcon\Mvc\Model\Transaction\Manager as TxManager; +use Phalcon\Mvc\Model\Transaction\Failed as TxFailed; + +try { + $txManager = new TxManager(); + + $transaction = $txManager->get(); + + $robot = new Robots(); + + $robot->setTransaction($transaction); + + $robot->name = "WALL·E"; + $robot->created_at = date("Y-m-d"); + + if ($robot->save() === false) { + $transaction->rollback("Can't save robot"); + } + + $robotPart = new RobotParts(); + + $robotPart->setTransaction($transaction); + + $robotPart->type = "head"; + + if ($robotPart->save() === false) { + $transaction->rollback("Robot part cannot be saved"); + } + + $transaction->commit(); +} catch (TxFailed $e) { + echo "Failed, reason: ", $e->getMessage(); +} +``` + + +```php +final public function setWriteConnectionService( string $connectionService ): ModelInterface; +``` +Sets the DependencyInjection connection service name used to write data + + +```php +public function skipOperation( bool $skip ): void; +``` +Skips the current operation forcing a success state + + +```php +public function toArray( mixed $columns = null ): array; +``` +Returns the instance as an array representation + +```php +print_r( + $robot->toArray() +); +``` + +@param array $columns + + +```php +public function unserialize( mixed $data ); +``` +Unserializes the object from a serialized string + + +```php +public function update(): bool; +``` +Updates a model instance. If the instance doesn't exist in the +persistence it will throw an exception. Returning true on success or +false otherwise. + +```php +// Updating a robot name +$robot = Robots::findFirst("id = 100"); + +$robot->name = "Biomass"; + +$robot->update(); +``` + + +```php +public function validationHasFailed(): bool; +``` +Check whether validation process has generated any messages + +```php +use Phalcon\Mvc\Model; +use Phalcon\Validation; +use Phalcon\Validation\Validator\ExclusionIn; + +class Subscriptors extends Model +{ + public function validation() + { + $validator = new Validation(); + + $validator->validate( + "status", + new ExclusionIn( + [ + "domain" => [ + "A", + "I", + ], + ] + ) + ); + + return $this->validate($validator); + } +} +``` + + +```php +public function writeAttribute( string $attribute, mixed $value ): void; +``` +Writes an attribute value by its name + +```php +$robot->writeAttribute("name", "Rosey"); +``` + + +```php +protected function _cancelOperation(); +``` +Cancel the current operation + + +```php +final protected function _checkForeignKeysRestrict(): bool; +``` +Reads "belongs to" relations and check the virtual foreign keys when +inserting or updating records to verify that inserted/updated values are +present in the related entity + + +```php +final protected function _checkForeignKeysReverseCascade(): bool; +``` +Reads both "hasMany" and "hasOne" relations and checks the virtual +foreign keys (cascade) when deleting records + + +```php +final protected function _checkForeignKeysReverseRestrict(): bool; +``` +Reads both "hasMany" and "hasOne" relations and checks the virtual +foreign keys (restrict) when deleting records + + +```php +protected function _doLowInsert( MetaDataInterface $metaData, AdapterInterface $connection, mixed $table, mixed $identityField ): bool; +``` +Sends a pre-build INSERT SQL statement to the relational database system + +@param string|array table +@param bool|string identityField + + +```php +protected function _doLowUpdate( MetaDataInterface $metaData, AdapterInterface $connection, mixed $table ): bool; +``` +Sends a pre-build UPDATE SQL statement to the relational database system + +@param string|array table + + +```php +protected function _exists( MetaDataInterface $metaData, AdapterInterface $connection ): bool; +``` +Checks whether the current record already exists + + +```php +protected function _getRelatedRecords( string $modelName, string $method, mixed $arguments ); +``` +Returns related records defined relations depending on the method name + +@param array arguments +@return mixed + + +```php +final protected function _possibleSetter( string $property, mixed $value ): bool; +``` +Check for, and attempt to use, possible setter. + + +```php +protected function _postSave( bool $success, bool $exists ): bool; +``` +Executes internal events after save a record + + +```php +protected function _postSaveRelatedRecords( AdapterInterface $connection, mixed $related ): bool; +``` +Save the related records assigned in the has-one/has-many relations + +@param Phalcon\Mvc\ModelInterface[] related + + +```php +protected function _preSave( MetaDataInterface $metaData, bool $exists, mixed $identityField ): bool; +``` +Executes internal hooks before save a record + + +```php +protected function _preSaveRelatedRecords( AdapterInterface $connection, mixed $related ): bool; +``` +Saves related records that must be stored prior to save the master record + +@param \Phalcon\Mvc\ModelInterface[] related + + +```php +protected function allowEmptyStringValues( array $attributes ): void; +``` +Sets a list of attributes that must be skipped from the +generated UPDATE statement + +```php +class Robots extends \Phalcon\Mvc\Model +{ + public function initialize() + { + $this->allowEmptyStringValues( + [ + "name", + ] + ); + } +} +``` + + +```php +protected function belongsTo( mixed $fields, string $referenceModel, mixed $referencedFields, mixed $options = null ): Relation; +``` +Setup a reverse 1-1 or n-1 relation between two models + +```php +class RobotsParts extends \Phalcon\Mvc\Model +{ + public function initialize() + { + $this->belongsTo( + "robots_id", + Robots::class, + "id" + ); + } +} +``` + + +```php +protected function hasMany( mixed $fields, string $referenceModel, mixed $referencedFields, mixed $options = null ): Relation; +``` +Setup a 1-n relation between two models + +```php +class Robots extends \Phalcon\Mvc\Model +{ + public function initialize() + { + $this->hasMany( + "id", + RobotsParts::class, + "robots_id" + ); + } +} +``` + + +```php +protected function hasManyToMany( mixed $fields, string $intermediateModel, mixed $intermediateFields, mixed $intermediateReferencedFields, string $referenceModel, mixed $referencedFields, mixed $options = null ): Relation; +``` +Setup an n-n relation between two models, through an intermediate +relation + +```php +class Robots extends \Phalcon\Mvc\Model +{ + public function initialize() + { + // Setup a many-to-many relation to Parts through RobotsParts + $this->hasManyToMany( + "id", + RobotsParts::class, + "robots_id", + "parts_id", + Parts::class, + "id", + ); + } +} +``` + +@param string|array fields +@param string|array intermediateFields +@param string|array intermediateReferencedFields +@param string|array referencedFields +@param array options + + +```php +protected function hasOne( mixed $fields, string $referenceModel, mixed $referencedFields, mixed $options = null ): Relation; +``` +Setup a 1-1 relation between two models + +```php +class Robots extends \Phalcon\Mvc\Model +{ + public function initialize() + { + $this->hasOne( + "id", + RobotsDescription::class, + "robots_id" + ); + } +} +``` + + +```php +protected function keepSnapshots( bool $keepSnapshot ): void; +``` +Sets if the model must keep the original record snapshot in memory + +```php +use Phalcon\Mvc\Model; + +class Robots extends Model +{ + public function initialize() + { + $this->keepSnapshots(true); + } +} +``` + + +```php +final protected function setSchema( string $schema ): ModelInterface; +``` +Sets schema name where the mapped table is located + + +```php +final protected function setSource( string $source ): ModelInterface; +``` +Sets the table name to which model should be mapped + + +```php +protected function skipAttributes( array $attributes ); +``` +Sets a list of attributes that must be skipped from the +generated INSERT/UPDATE statement + +```php +class Robots extends \Phalcon\Mvc\Model +{ + public function initialize() + { + $this->skipAttributes( + [ + "price", + ] + ); + } +} +``` + + +```php +protected function skipAttributesOnCreate( array $attributes ): void; +``` +Sets a list of attributes that must be skipped from the +generated INSERT statement + +```php +class Robots extends \Phalcon\Mvc\Model +{ + public function initialize() + { + $this->skipAttributesOnCreate( + [ + "created_at", + ] + ); + } +} +``` + + +```php +protected function skipAttributesOnUpdate( array $attributes ): void; +``` +Sets a list of attributes that must be skipped from the +generated UPDATE statement + +```php +class Robots extends \Phalcon\Mvc\Model +{ + public function initialize() + { + $this->skipAttributesOnUpdate( + [ + "modified_in", + ] + ); + } +} +``` + + +```php +protected function useDynamicUpdate( bool $dynamicUpdate ): void; +``` +Sets if a model must use dynamic update instead of the all-field update + +```php +use Phalcon\Mvc\Model; + +class Robots extends Model +{ + public function initialize() + { + $this->useDynamicUpdate(true); + } +} +``` + + +```php +protected function validate( ValidationInterface $validator ): bool; +``` +Executes validators on every validation call + +```php +use Phalcon\Mvc\Model; +use Phalcon\Validation; +use Phalcon\Validation\Validator\ExclusionIn; + +class Subscriptors extends Model +{ + public function validation() + { + $validator = new Validation(); + + $validator->add( + "status", + new ExclusionIn( + [ + "domain" => [ + "A", + "I", + ], + ] + ) + ); + + return $this->validate($validator); + } +} +``` + + + + +

        Abstract Class Phalcon\Mvc\Model\Behavior

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/behavior.zep) + +| Namespace | Phalcon\Mvc\Model | +| Uses | Phalcon\Mvc\ModelInterface, Phalcon\Mvc\Model\BehaviorInterface | +| Implements | BehaviorInterface | + +Phalcon\Mvc\Model\Behavior + +This is an optional base class for ORM behaviors + + +## Properties +```php +/** + * @var array + */ +protected options; + +``` + +## Methods +```php +public function __construct( array $options = [] ): void; +``` +Phalcon\Mvc\Model\Behavior + + +```php +public function missingMethod( ModelInterface $model, string $method, array $arguments = [] ); +``` +Acts as fallbacks when a missing method is called on the model + + +```php +public function notify( string $type, ModelInterface $model ); +``` +This method receives the notifications from the EventsManager + + +```php +protected function getOptions( string $eventName = null ); +``` +Returns the behavior options related to an event + +@return array + + +```php +protected function mustTakeAction( string $eventName ): bool; +``` +Checks whether the behavior must take action on certain event + + + + +

        Class Phalcon\Mvc\Model\Behavior\SoftDelete

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/behavior/softdelete.zep) + +| Namespace | Phalcon\Mvc\Model\Behavior | +| Uses | Phalcon\Mvc\ModelInterface, Phalcon\Mvc\Model\Behavior, Phalcon\Mvc\Model\Exception | +| Extends | Behavior | + +Phalcon\Mvc\Model\Behavior\SoftDelete + +Instead of permanently delete a record it marks the record as deleted +changing the value of a flag column + + +## Methods +```php +public function notify( string $type, ModelInterface $model ); +``` +Listens for notifications from the models manager + + + + +

        Class Phalcon\Mvc\Model\Behavior\Timestampable

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/behavior/timestampable.zep) + +| Namespace | Phalcon\Mvc\Model\Behavior | +| Uses | Closure, Phalcon\Mvc\ModelInterface, Phalcon\Mvc\Model\Behavior, Phalcon\Mvc\Model\Exception | +| Extends | Behavior | + +Phalcon\Mvc\Model\Behavior\Timestampable + +Allows to automatically update a model’s attribute saving the datetime when a +record is created or updated + + +## Methods +```php +public function notify( string $type, ModelInterface $model ); +``` +Listens for notifications from the models manager + + + + +

        Interface Phalcon\Mvc\Model\BehaviorInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/behaviorinterface.zep) + +| Namespace | Phalcon\Mvc\Model | +| Uses | Phalcon\Mvc\ModelInterface | + +Phalcon\Mvc\Model\BehaviorInterface + +Interface for Phalcon\Mvc\Model\Behavior + + +## Methods +```php +public function missingMethod( ModelInterface $model, string $method, array $arguments = [] ); +``` +Calls a method when it's missing in the model + + +```php +public function notify( string $type, ModelInterface $model ); +``` +This method receives the notifications from the EventsManager + + + + +

        Class Phalcon\Mvc\Model\Binder

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/binder.zep) + +| Namespace | Phalcon\Mvc\Model | +| Uses | Closure, Phalcon\Mvc\Controller\BindModelInterface, Phalcon\Mvc\Model\Binder\BindableInterface, Phalcon\Cache\Adapter\AdapterInterface, ReflectionFunction, ReflectionMethod | +| Implements | BinderInterface | + +Phalcon\Mvc\Model\Binding + +This is an class for binding models into params for handler + + +## Properties +```php +/** + * Array for storing active bound models + * + * @var array + */ +protected boundModels; + +/** + * Cache object used for caching parameters for model binding + */ +protected cache; + +/** + * Internal cache for caching parameters for model binding during request + */ +protected internalCache; + +/** + * Array for original values + */ +protected originalValues; + +``` + +## Methods +```php +public function __construct( AdapterInterface $cache = null ): void; +``` +Phalcon\Mvc\Model\Binder constructor + + +```php +public function bindToHandler( object $handler, array $params, string $cacheKey, string $methodName = null ): array; +``` +Bind models into params in proper handler + + +```php +public function getBoundModels(): array +``` + + +```php +public function getCache(): AdapterInterface; +``` +Sets cache instance + + +```php +public function getOriginalValues() +``` + + +```php +public function setCache( AdapterInterface $cache ): BinderInterface; +``` +Gets cache instance + + +```php +protected function findBoundModel( mixed $paramValue, string $className ): object | bool; +``` +Find the model by param value. + + +```php +protected function getParamsFromCache( string $cacheKey ): array | null; +``` +Get params classes from cache by key + + +```php +protected function getParamsFromReflection( object $handler, array $params, string $cacheKey, string $methodName ): array; +``` +Get modified params for handler using reflection + + + + +

        Interface Phalcon\Mvc\Model\Binder\BindableInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/binder/bindableinterface.zep) + +| Namespace | Phalcon\Mvc\Model\Binder | + +Phalcon\Mvc\Model\Binder\BindableInterface + +Interface for bindable classes + + +## Methods +```php +public function getModelName(): string | array; +``` +Return the model name or models names and parameters keys associated with +this class + + + + +

        Interface Phalcon\Mvc\Model\BinderInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/binderinterface.zep) + +| Namespace | Phalcon\Mvc\Model | +| Uses | Phalcon\Cache\Adapter\AdapterInterface | + +Phalcon\Mvc\Model\BinderInterface + +Interface for Phalcon\Mvc\Model\Binder + + +## Methods +```php +public function bindToHandler( object $handler, array $params, string $cacheKey, string $methodName = null ): array; +``` +Bind models into params in proper handler + + +```php +public function getBoundModels(): array; +``` +Gets active bound models + + +```php +public function getCache(): AdapterInterface; +``` +Gets cache instance + + +```php +public function setCache( AdapterInterface $cache ): BinderInterface; +``` +Sets cache instance + + + + +

        Class Phalcon\Mvc\Model\Criteria

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/criteria.zep) + +| Namespace | Phalcon\Mvc\Model | +| Uses | Phalcon\Di, Phalcon\Db\Column, Phalcon\Di\DiInterface, Phalcon\Mvc\Model\Exception, Phalcon\Di\InjectionAwareInterface, Phalcon\Mvc\Model\CriteriaInterface, Phalcon\Mvc\Model\ResultsetInterface, Phalcon\Mvc\Model\Query\BuilderInterface | +| Implements | CriteriaInterface, InjectionAwareInterface | + +Phalcon\Mvc\Model\Criteria + +This class is used to build the array parameter required by +Phalcon\Mvc\Model::find() and Phalcon\Mvc\Model::findFirst() using an +object-oriented interface. + +```php +$robots = Robots::query() + ->where("type = :type:") + ->andWhere("year < 2000") + ->bind(["type" => "mechanical"]) + ->limit(5, 10) + ->orderBy("name") + ->execute(); +``` + + +## Properties +```php +// +protected bindParams; + +// +protected bindTypes; + +// +protected hiddenParamNumber = 0; + +// +protected model; + +// +protected params; + +``` + +## Methods +```php +public function andWhere( string $conditions, mixed $bindParams = null, mixed $bindTypes = null ): CriteriaInterface; +``` +Appends a condition to the current conditions using an AND operator + + +```php +public function betweenWhere( string $expr, mixed $minimum, mixed $maximum ): CriteriaInterface; +``` +Appends a BETWEEN condition to the current conditions + +```php +$criteria->betweenWhere("price", 100.25, 200.50); +``` + + +```php +public function bind( array $bindParams, bool $merge = bool ): CriteriaInterface; +``` +Sets the bound parameters in the criteria +This method replaces all previously set bound parameters + + +```php +public function bindTypes( array $bindTypes ): CriteriaInterface; +``` +Sets the bind types in the criteria +This method replaces all previously set bound parameters + + +```php +public function cache( array $cache ): CriteriaInterface; +``` +Sets the cache options in the criteria +This method replaces all previously set cache options + + +```php +public function columns( mixed $columns ): CriteriaInterface; +``` +Sets the columns to be queried + +```php +$criteria->columns( + [ + "id", + "name", + ] +); +``` + +@param string|array columns + + +```php +public function conditions( string $conditions ): CriteriaInterface; +``` +Adds the conditions parameter to the criteria + + +```php +public function createBuilder(): BuilderInterface; +``` +Creates a query builder from criteria. + +```php +$builder = Robots::query() + ->where("type = :type:") + ->bind(["type" => "mechanical"]) + ->createBuilder(); +``` + + +```php +public function distinct( mixed $distinct ): CriteriaInterface; +``` +Sets SELECT DISTINCT / SELECT ALL flag + + +```php +public function execute(): ResultsetInterface; +``` +Executes a find using the parameters built with the criteria + + +```php +public function forUpdate( bool $forUpdate = bool ): CriteriaInterface; +``` +Adds the "for_update" parameter to the criteria + + +```php +public function getColumns(): string | null; +``` +Returns the columns to be queried + +@return string|array|null + + +```php +public function getConditions(): string | null; +``` +Returns the conditions parameter in the criteria + + +```php +public function getDI(): DiInterface; +``` +Returns the DependencyInjector container + + +```php +public function getGroupBy(); +``` +Returns the group clause in the criteria + + +```php +public function getHaving(); +``` +Returns the having clause in the criteria + + +```php +public function getLimit(): string | null; +``` +Returns the limit parameter in the criteria, which will be an integer if +limit was set without an offset, an array with 'number' and 'offset' keys +if an offset was set with the limit, or null if limit has not been set. + +@return int|array|null + + +```php +public function getModelName(): string; +``` +Returns an internal model name on which the criteria will be applied + + +```php +public function getOrderBy(): string | null; +``` +Returns the order clause in the criteria + + +```php +public function getParams(): array; +``` +Returns all the parameters defined in the criteria + + +```php +public function getWhere(): string | null; +``` +Returns the conditions parameter in the criteria + + +```php +public function groupBy( mixed $group ): CriteriaInterface; +``` +Adds the group-by clause to the criteria + + +```php +public function having( mixed $having ): CriteriaInterface; +``` +Adds the having clause to the criteria + + +```php +public function inWhere( string $expr, array $values ): CriteriaInterface; +``` +Appends an IN condition to the current conditions + +```php +$criteria->inWhere("id", [1, 2, 3]); +``` + + +```php +public function innerJoin( string $model, mixed $conditions = null, mixed $alias = null ): CriteriaInterface; +``` +Adds an INNER join to the query + +```php +$criteria->innerJoin( + Robots::class +); + +$criteria->innerJoin( + Robots::class, + "r.id = RobotsParts.robots_id" +); + +$criteria->innerJoin( + Robots::class, + "r.id = RobotsParts.robots_id", + "r" +); +``` + + +```php +public function join( string $model, mixed $conditions = null, mixed $alias = null, mixed $type = null ): CriteriaInterface; +``` +Adds an INNER join to the query + +```php +$criteria->join( + Robots::class +); + +$criteria->join( + Robots::class, + "r.id = RobotsParts.robots_id" +); + +$criteria->join( + Robots::class, + "r.id = RobotsParts.robots_id", + "r" +); + +$criteria->join( + Robots::class, + "r.id = RobotsParts.robots_id", + "r", + "LEFT" +); +``` + + +```php +public function leftJoin( string $model, mixed $conditions = null, mixed $alias = null ): CriteriaInterface; +``` +Adds a LEFT join to the query + +```php +$criteria->leftJoin( + Robots::class, + "r.id = RobotsParts.robots_id", + "r" +); +``` + + +```php +public function limit( int $limit, int $offset = int ): CriteriaInterface; +``` +Adds the limit parameter to the criteria. + +```php +$criteria->limit(100); +$criteria->limit(100, 200); +$criteria->limit("100", "200"); +``` + + +```php +public function notBetweenWhere( string $expr, mixed $minimum, mixed $maximum ): CriteriaInterface; +``` +Appends a NOT BETWEEN condition to the current conditions + +```php +$criteria->notBetweenWhere("price", 100.25, 200.50); +``` + + +```php +public function notInWhere( string $expr, array $values ): CriteriaInterface; +``` +Appends a NOT IN condition to the current conditions + +```php +$criteria->notInWhere("id", [1, 2, 3]); +``` + + +```php +public function orWhere( string $conditions, mixed $bindParams = null, mixed $bindTypes = null ): CriteriaInterface; +``` +Appends a condition to the current conditions using an OR operator + + +```php +public function orderBy( string $orderColumns ): CriteriaInterface; +``` +Adds the order-by clause to the criteria + + +```php +public function rightJoin( string $model, mixed $conditions = null, mixed $alias = null ): CriteriaInterface; +``` +Adds a RIGHT join to the query + +```php +$criteria->rightJoin( + Robots::class, + "r.id = RobotsParts.robots_id", + "r" +); +``` + + +```php +public function setDI( DiInterface $container ): void; +``` +Sets the DependencyInjector container + + +```php +public function setModelName( string $modelName ): CriteriaInterface; +``` +Set a model on which the query will be executed + + +```php +public function sharedLock( bool $sharedLock = bool ): CriteriaInterface; +``` +Adds the "shared_lock" parameter to the criteria + + +```php +public function where( string $conditions, mixed $bindParams = null, mixed $bindTypes = null ): CriteriaInterface; +``` +Sets the conditions parameter in the criteria + + + + +

        Interface Phalcon\Mvc\Model\CriteriaInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/criteriainterface.zep) + +| Namespace | Phalcon\Mvc\Model | +| Uses | Phalcon\Di\DiInterface | + +Phalcon\Mvc\Model\CriteriaInterface + +Interface for Phalcon\Mvc\Model\Criteria + + +## Methods +```php +public function andWhere( string $conditions, mixed $bindParams = null, mixed $bindTypes = null ): CriteriaInterface; +``` +Appends a condition to the current conditions using an AND operator + +@param array bindParams +@param array bindTypes + + +```php +public function betweenWhere( string $expr, mixed $minimum, mixed $maximum ): CriteriaInterface; +``` +Appends a BETWEEN condition to the current conditions + +```php +$criteria->betweenWhere("price", 100.25, 200.50); +``` + +@param mixed minimum +@param mixed maximum + + +```php +public function bind( array $bindParams ): CriteriaInterface; +``` +Sets the bound parameters in the criteria +This method replaces all previously set bound parameters + + +```php +public function bindTypes( array $bindTypes ): CriteriaInterface; +``` +Sets the bind types in the criteria +This method replaces all previously set bound parameters + + +```php +public function cache( array $cache ): CriteriaInterface; +``` +Sets the cache options in the criteria +This method replaces all previously set cache options + + +```php +public function conditions( string $conditions ): CriteriaInterface; +``` +Adds the conditions parameter to the criteria + + +```php +public function distinct( mixed $distinct ): CriteriaInterface; +``` +Sets SELECT DISTINCT / SELECT ALL flag + + +```php +public function execute(): ResultsetInterface; +``` +Executes a find using the parameters built with the criteria + + +```php +public function forUpdate( bool $forUpdate = bool ): CriteriaInterface; +``` +Sets the "for_update" parameter to the criteria + + +```php +public function getColumns(): string | null; +``` +Returns the columns to be queried + +@return string|array|null + + +```php +public function getConditions(): string | null; +``` +Returns the conditions parameter in the criteria + + +```php +public function getGroupBy(); +``` +Returns the group clause in the criteria + + +```php +public function getHaving(); +``` +Returns the having clause in the criteria + + +```php +public function getLimit(): string | null; +``` +Returns the limit parameter in the criteria, which will be an integer if +limit was set without an offset, an array with 'number' and 'offset' keys +if an offset was set with the limit, or null if limit has not been set. + + +```php +public function getModelName(): string; +``` +Returns an internal model name on which the criteria will be applied + + +```php +public function getOrderBy(): string | null; +``` +Returns the order parameter in the criteria + + +```php +public function getParams(): array; +``` +Returns all the parameters defined in the criteria + + +```php +public function getWhere(): string | null; +``` +Returns the conditions parameter in the criteria + + +```php +public function groupBy( mixed $group ): CriteriaInterface; +``` +Adds the group-by clause to the criteria + + +```php +public function having( mixed $having ): CriteriaInterface; +``` +Adds the having clause to the criteria + + +```php +public function inWhere( string $expr, array $values ): CriteriaInterface; +``` +Appends an IN condition to the current conditions + +```php +$criteria->inWhere("id", [1, 2, 3]); +``` + + +```php +public function innerJoin( string $model, mixed $conditions = null, mixed $alias = null ): CriteriaInterface; +``` +Adds an INNER join to the query + +```php +$criteria->innerJoin( + Robots::class +); + +$criteria->innerJoin( + Robots::class, + "r.id = RobotsParts.robots_id" +); + +$criteria->innerJoin( + Robots::class, + "r.id = RobotsParts.robots_id", + "r" +); +``` + + +```php +public function leftJoin( string $model, mixed $conditions = null, mixed $alias = null ): CriteriaInterface; +``` +Adds a LEFT join to the query + +```php +$criteria->leftJoin( + Robots::class, + "r.id = RobotsParts.robots_id", + "r" +); +``` + + +```php +public function limit( int $limit, int $offset = int ): CriteriaInterface; +``` +Sets the limit parameter to the criteria + + +```php +public function notBetweenWhere( string $expr, mixed $minimum, mixed $maximum ): CriteriaInterface; +``` +Appends a NOT BETWEEN condition to the current conditions + +```php +$criteria->notBetweenWhere("price", 100.25, 200.50); +``` + +@param mixed minimum +@param mixed maximum + + +```php +public function notInWhere( string $expr, array $values ): CriteriaInterface; +``` +Appends a NOT IN condition to the current conditions + +```php +$criteria->notInWhere("id", [1, 2, 3]); +``` + + +```php +public function orWhere( string $conditions, mixed $bindParams = null, mixed $bindTypes = null ): CriteriaInterface; +``` +Appends a condition to the current conditions using an OR operator + +@param array bindParams +@param array bindTypes + + +```php +public function orderBy( string $orderColumns ): CriteriaInterface; +``` +Adds the order-by parameter to the criteria + + +```php +public function rightJoin( string $model, mixed $conditions = null, mixed $alias = null ): CriteriaInterface; +``` +Adds a RIGHT join to the query + +```php +$criteria->rightJoin( + Robots::class, + "r.id = RobotsParts.robots_id", + "r" +); +``` + + +```php +public function setModelName( string $modelName ): CriteriaInterface; +``` +Set a model on which the query will be executed + + +```php +public function sharedLock( bool $sharedLock = bool ): CriteriaInterface; +``` +Sets the "shared_lock" parameter to the criteria + + +```php +public function where( string $conditions ): CriteriaInterface; +``` +Sets the conditions parameter in the criteria + + + + +

        Class Phalcon\Mvc\Model\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/exception.zep) + +| Namespace | Phalcon\Mvc\Model | +| Extends | \Phalcon\Exception | + +Phalcon\Mvc\Model\Exception + +Exceptions thrown in Phalcon\Mvc\Model\* classes will use this class + + + +

        Class Phalcon\Mvc\Model\Manager

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/manager.zep) + +| Namespace | Phalcon\Mvc\Model | +| Uses | Phalcon\Di\DiInterface, Phalcon\Mvc\Model\Relation, Phalcon\Mvc\Model\RelationInterface, Phalcon\Mvc\Model\Exception, Phalcon\Mvc\ModelInterface, Phalcon\Db\Adapter\AdapterInterface, Phalcon\Mvc\Model\ResultsetInterface, Phalcon\Mvc\Model\ManagerInterface, Phalcon\Di\InjectionAwareInterface, Phalcon\Events\EventsAwareInterface, Phalcon\Mvc\Model\Query, Phalcon\Mvc\Model\QueryInterface, Phalcon\Mvc\Model\Query\Builder, Phalcon\Mvc\Model\Query\BuilderInterface, Phalcon\Mvc\Model\BehaviorInterface, Phalcon\Events\ManagerInterface | +| Implements | ManagerInterface, InjectionAwareInterface, EventsAwareInterface | + +Phalcon\Mvc\Model\Manager + +This components controls the initialization of models, keeping record of +relations between the different models of the application. + +A ModelsManager is injected to a model via a Dependency Injector/Services +Container such as Phalcon\Di. + +```php +use Phalcon\Di; +use Phalcon\Mvc\Model\Manager as ModelsManager; + +$di = new Di(); + +$di->set( + "modelsManager", + function() { + return new ModelsManager(); + } +); + +$robot = new Robots($di); +``` + + +## Properties +```php +// +protected aliases; + +/** + * Models' behaviors + */ +protected behaviors; + +/** + * Belongs to relations + */ +protected belongsTo; + +/** + * All the relationships by model + */ +protected belongsToSingle; + +// +protected container; + +// +protected customEventsManager; + +/** + * Does the model use dynamic update, instead of updating all rows? + */ +protected dynamicUpdate; + +// +protected eventsManager; + +/** + * Has many relations + */ +protected hasMany; + +/** + * Has many relations by model + */ +protected hasManySingle; + +/** + * Has many-Through relations + */ +protected hasManyToMany; + +/** + * Has many-Through relations by model + */ +protected hasManyToManySingle; + +/** + * Has one relations + */ +protected hasOne; + +/** + * Has one relations by model + */ +protected hasOneSingle; + +/** + * Mark initialized models + */ +protected initialized; + +// +protected keepSnapshots; + +/** + * Last model initialized + */ +protected lastInitialized; + +/** + * Last query created/executed + */ +protected lastQuery; + +// +protected modelVisibility; + +// +protected prefix = ; + +// +protected readConnectionServices; + +// +protected sources; + +// +protected schemas; + +// +protected writeConnectionServices; + +/** + * Stores a list of reusable instances + */ +protected reusable; + +``` + +## Methods +```php +public function __destruct(); +``` +Destroys the current PHQL cache + + +```php +public function _getConnectionService( ModelInterface $model, mixed $connectionServices ): string; +``` +Returns the connection service name used to read or write data related to +a model depending on the connection services + + +```php +public function addBehavior( ModelInterface $model, BehaviorInterface $behavior ): void; +``` +Binds a behavior to a model + + +```php +public function addBelongsTo( ModelInterface $model, mixed $fields, string $referencedModel, mixed $referencedFields, mixed $options = null ): RelationInterface; +``` +Setup a relation reverse many to one between two models + +@param array options + + +```php +public function addHasMany( ModelInterface $model, mixed $fields, string $referencedModel, mixed $referencedFields, mixed $options = null ): RelationInterface; +``` +Setup a relation 1-n between two models + +@param mixed referencedFields +@param array options + + +```php +public function addHasManyToMany( ModelInterface $model, mixed $fields, string $intermediateModel, mixed $intermediateFields, mixed $intermediateReferencedFields, string $referencedModel, mixed $referencedFields, mixed $options = null ): RelationInterface; +``` +Setups a relation n-m between two models + +@param string fields +@param string intermediateFields +@param string intermediateReferencedFields +@param string referencedFields +@param array options + + +```php +public function addHasOne( ModelInterface $model, mixed $fields, string $referencedModel, mixed $referencedFields, mixed $options = null ): RelationInterface; +``` +Setup a 1-1 relation between two models + +@param array options + + +```php +public function clearReusableObjects(): void; +``` +Clears the internal reusable list + + +```php +public function createBuilder( mixed $params = null ): BuilderInterface; +``` +Creates a Phalcon\Mvc\Model\Query\Builder + + +```php +public function createQuery( string $phql ): QueryInterface; +``` +Creates a Phalcon\Mvc\Model\Query without execute it + + +```php +public function executeQuery( string $phql, mixed $placeholders = null, mixed $types = null ): QueryInterface; +``` +Creates a Phalcon\Mvc\Model\Query and execute it + + +```php +public function existsBelongsTo( string $modelName, string $modelRelation ): bool; +``` +Checks whether a model has a belongsTo relation with another model + + +```php +public function existsHasMany( string $modelName, string $modelRelation ): bool; +``` +Checks whether a model has a hasMany relation with another model + + +```php +public function existsHasManyToMany( string $modelName, string $modelRelation ): bool; +``` +Checks whether a model has a hasManyToMany relation with another model + + +```php +public function existsHasOne( string $modelName, string $modelRelation ): bool; +``` +Checks whether a model has a hasOne relation with another model + + +```php +public function getBelongsTo( ModelInterface $model ): RelationInterface[] | array; +``` +Gets all the belongsTo relations defined in a model + +```php +$relations = $modelsManager->getBelongsTo( + new Robots() +); +``` + + +```php +public function getBelongsToRecords( string $modelName, string $modelRelation, ModelInterface $record, mixed $parameters = null, string $method = null ): ResultsetInterface | bool; +``` +Gets belongsTo related records from a model + + +```php +public function getCustomEventsManager( ModelInterface $model ): EventsManagerInterface | bool; +``` +Returns a custom events manager related to a model + + +```php +public function getDI(): DiInterface; +``` +Returns the DependencyInjector container + + +```php +public function getEventsManager(): EventsManagerInterface; +``` +Returns the internal event manager + + +```php +public function getHasMany( ModelInterface $model ): RelationInterface[] | array; +``` +Gets hasMany relations defined on a model + + +```php +public function getHasManyRecords( string $modelName, string $modelRelation, ModelInterface $record, mixed $parameters = null, string $method = null ): ResultsetInterface | bool; +``` +Gets hasMany related records from a model + + +```php +public function getHasManyToMany( ModelInterface $model ): RelationInterface[] | array; +``` +Gets hasManyToMany relations defined on a model + + +```php +public function getHasOne( ModelInterface $model ): array; +``` +Gets hasOne relations defined on a model + + +```php +public function getHasOneAndHasMany( ModelInterface $model ): RelationInterface[]; +``` +Gets hasOne relations defined on a model + + +```php +public function getHasOneRecords( string $modelName, string $modelRelation, ModelInterface $record, mixed $parameters = null, string $method = null ): ModelInterface | bool; +``` +Gets belongsTo related records from a model + + +```php +public function getLastInitialized(): ModelInterface; +``` +Get last initialized model + + +```php +public function getLastQuery(): QueryInterface; +``` +Returns the last query created or executed in the models manager + + +```php +public function getModelPrefix(): string; +``` +Returns the prefix for all model sources. + + +```php +public function getModelSchema( ModelInterface $model ): string; +``` +Returns the mapped schema for a model + + +```php +public function getModelSource( ModelInterface $model ): string; +``` +Returns the mapped source for a model + + +```php +public function getReadConnection( ModelInterface $model ): AdapterInterface; +``` +Returns the connection to read data related to a model + + +```php +public function getReadConnectionService( ModelInterface $model ): string; +``` +Returns the connection service name used to read data related to a model + + +```php +public function getRelationByAlias( string $modelName, string $alias ): RelationInterface | bool; +``` +Returns a relation by its alias + + +```php +public function getRelationRecords( RelationInterface $relation, ModelInterface $record, mixed $parameters = null, string $method = null ); +``` +Helper method to query records based on a relation definition + +@return \Phalcon\Mvc\Model\Resultset\Simple|Phalcon\Mvc\Model\Resultset\Simple|int|false + + +```php +public function getRelations( string $modelName ): RelationInterface[]; +``` +Query all the relationships defined on a model + + +```php +public function getRelationsBetween( string $first, string $second ): RelationInterface[] | bool; +``` +Query the first relationship defined between two models + + +```php +public function getReusableRecords( string $modelName, string $key ); +``` +Returns a reusable object from the internal list + + +```php +public function getWriteConnection( ModelInterface $model ): AdapterInterface; +``` +Returns the connection to write data related to a model + + +```php +public function getWriteConnectionService( ModelInterface $model ): string; +``` +Returns the connection service name used to write data related to a model + + +```php +public function initialize( ModelInterface $model ): bool; +``` +Initializes a model in the model manager + + +```php +public function isInitialized( string $className ): bool; +``` +Check whether a model is already initialized + + +```php +public function isKeepingSnapshots( ModelInterface $model ): bool; +``` +Checks if a model is keeping snapshots for the queried records + + +```php +public function isUsingDynamicUpdate( ModelInterface $model ): bool; +``` +Checks if a model is using dynamic update instead of all-field update + + +```php +final public function isVisibleModelProperty( ModelInterface $model, string $property ): bool; +``` +Check whether a model property is declared as public. + +```php +$isPublic = $manager->isVisibleModelProperty( + new Robots(), + "name" +); +``` + + +```php +public function keepSnapshots( ModelInterface $model, bool $keepSnapshots ): void; +``` +Sets if a model must keep snapshots + + +```php +public function load( string $modelName ): ModelInterface; +``` +Loads a model throwing an exception if it doesn't exist + + +```php +public function missingMethod( ModelInterface $model, string $eventName, mixed $data ); +``` +Dispatch an event to the listeners and behaviors +This method expects that the endpoint listeners/behaviors returns true +meaning that a least one was implemented + + +```php +public function notifyEvent( string $eventName, ModelInterface $model ); +``` +Receives events generated in the models and dispatches them to an +events-manager if available. Notify the behaviors that are listening in +the model + + +```php +public function setConnectionService( ModelInterface $model, string $connectionService ): void; +``` +Sets both write and read connection service for a model + + +```php +public function setCustomEventsManager( ModelInterface $model, EventsManagerInterface $eventsManager ): void; +``` +Sets a custom events manager for a specific model + + +```php +public function setDI( DiInterface $container ): void; +``` +Sets the DependencyInjector container + + +```php +public function setEventsManager( EventsManagerInterface $eventsManager ): ManagerInterface; +``` +Sets a global events manager + + +```php +public function setModelPrefix( string $prefix ): void; +``` +Sets the prefix for all model sources. + +```php +use Phalcon\Mvc\Model\Manager; + +$di->set( + "modelsManager", + function () { + $modelsManager = new Manager(); + + $modelsManager->setModelPrefix("wp_"); + + return $modelsManager; + } +); + +$robots = new Robots(); + +echo $robots->getSource(); // wp_robots +``` + + +```php +public function setModelSchema( ModelInterface $model, string $schema ): void; +``` +Sets the mapped schema for a model + + +```php +public function setModelSource( ModelInterface $model, string $source ): void; +``` +Sets the mapped source for a model + + +```php +public function setReadConnectionService( ModelInterface $model, string $connectionService ): void; +``` +Sets read connection service for a model + + +```php +public function setReusableRecords( string $modelName, string $key, mixed $records ): void; +``` +Stores a reusable record in the internal list + + +```php +public function setWriteConnectionService( ModelInterface $model, string $connectionService ): void; +``` +Sets write connection service for a model + + +```php +public function useDynamicUpdate( ModelInterface $model, bool $dynamicUpdate ): void; +``` +Sets if a model must use dynamic update instead of the all-field update + + +```php +protected function _getConnection( ModelInterface $model, mixed $connectionServices ): AdapterInterface; +``` +Returns the connection to read or write data related to a model depending on the connection services. + + +```php +final protected function _mergeFindParameters( mixed $findParamsOne, mixed $findParamsTwo ): array; +``` +Merge two arrays of find parameters + + + + +

        Interface Phalcon\Mvc\Model\ManagerInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/managerinterface.zep) + +| Namespace | Phalcon\Mvc\Model | +| Uses | Phalcon\Db\Adapter\AdapterInterface, Phalcon\Mvc\ModelInterface, Phalcon\Mvc\Model\BehaviorInterface, Phalcon\Mvc\Model\RelationInterface, Phalcon\Mvc\Model\Query\BuilderInterface, Phalcon\Mvc\Model\QueryInterface | + +Phalcon\Mvc\Model\ManagerInterface + +Interface for Phalcon\Mvc\Model\Manager + + +## Methods +```php +public function addBehavior( ModelInterface $model, BehaviorInterface $behavior ): void; +``` +Binds a behavior to a model + + +```php +public function addBelongsTo( ModelInterface $model, mixed $fields, string $referencedModel, mixed $referencedFields, mixed $options = null ): RelationInterface; +``` +Setup a relation reverse 1-1 between two models + +@param mixed fields +@param mixed referencedFields +@param array options + + +```php +public function addHasMany( ModelInterface $model, mixed $fields, string $referencedModel, mixed $referencedFields, mixed $options = null ): RelationInterface; +``` +Setup a relation 1-n between two models + +@param mixed fields +@param mixed referencedFields +@param array options + + +```php +public function addHasManyToMany( ModelInterface $model, mixed $fields, string $intermediateModel, mixed $intermediateFields, mixed $intermediateReferencedFields, string $referencedModel, mixed $referencedFields, mixed $options = null ): RelationInterface; +``` +Setups a relation n-m between two models + +@param string fields +@param string intermediateFields +@param string intermediateReferencedFields +@param string referencedFields +@param array options + + +```php +public function addHasOne( ModelInterface $model, mixed $fields, string $referencedModel, mixed $referencedFields, mixed $options = null ): RelationInterface; +``` +Setup a 1-1 relation between two models + +@param mixed fields +@param mixed referencedFields +@param array options + + +```php +public function createBuilder( mixed $params = null ): BuilderInterface; +``` +Creates a Phalcon\Mvc\Model\Query\Builder + +@param string $params + + +```php +public function createQuery( string $phql ): QueryInterface; +``` +Creates a Phalcon\Mvc\Model\Query without execute it + + +```php +public function executeQuery( string $phql, mixed $placeholders = null ): QueryInterface; +``` +Creates a Phalcon\Mvc\Model\Query and execute it + +@param array $placeholders + + +```php +public function existsBelongsTo( string $modelName, string $modelRelation ): bool; +``` +Checks whether a model has a belongsTo relation with another model + + +```php +public function existsHasMany( string $modelName, string $modelRelation ): bool; +``` +Checks whether a model has a hasMany relation with another model + + +```php +public function existsHasManyToMany( string $modelName, string $modelRelation ): bool; +``` +Checks whether a model has a hasManyToMany relation with another model + + +```php +public function existsHasOne( string $modelName, string $modelRelation ): bool; +``` +Checks whether a model has a hasOne relation with another model + + +```php +public function getBelongsTo( ModelInterface $model ): RelationInterface[] | array; +``` +Gets belongsTo relations defined on a model + + +```php +public function getBelongsToRecords( string $modelName, string $modelRelation, ModelInterface $record, mixed $parameters = null, string $method = null ): ResultsetInterface | bool; +``` +Gets belongsTo related records from a model + +@param string $modelName +@param string $modelRelation +@param array|string|null $parameters +@param ModelInterface $record +@param string|null $method + + +```php +public function getHasMany( ModelInterface $model ): RelationInterface[] | array; +``` +Gets hasMany relations defined on a model + + +```php +public function getHasManyRecords( string $modelName, string $modelRelation, ModelInterface $record, mixed $parameters = null, string $method = null ): ResultsetInterface | bool; +``` +Gets hasMany related records from a model + +@param string $modelName +@param string $modelRelation +@param array|string|null $parameters +@param ModelInterface $record +@param string|null $method + + +```php +public function getHasManyToMany( ModelInterface $model ): RelationInterface[] | array; +``` +Gets hasManyToMany relations defined on a model + + +```php +public function getHasOne( ModelInterface $model ): RelationInterface[] | array; +``` +Gets hasOne relations defined on a model + + +```php +public function getHasOneAndHasMany( ModelInterface $model ): RelationInterface[]; +``` +Gets hasOne relations defined on a model + + +```php +public function getHasOneRecords( string $modelName, string $modelRelation, ModelInterface $record, mixed $parameters = null, string $method = null ): ModelInterface | bool; +``` +Gets belongsTo related records from a model + +@param string $modelName +@param string $modelRelation +@param array|string|null $parameters +@param ModelInterface $record +@param string|null $method + + +```php +public function getLastInitialized(): ModelInterface; +``` +Get last initialized model + + +```php +public function getLastQuery(): QueryInterface; +``` +Returns the last query created or executed in the models manager + + +```php +public function getModelSchema( ModelInterface $model ): string; +``` +Returns the mapped schema for a model + + +```php +public function getModelSource( ModelInterface $model ): string; +``` +Returns the mapped source for a model + + +```php +public function getReadConnection( ModelInterface $model ): AdapterInterface; +``` +Returns the connection to read data related to a model + + +```php +public function getReadConnectionService( ModelInterface $model ): string; +``` +Returns the connection service name used to read data related to a model + + +```php +public function getRelationByAlias( string $modelName, string $alias ): Relation | bool; +``` +Returns a relation by its alias + + +```php +public function getRelationRecords( RelationInterface $relation, ModelInterface $record, mixed $parameters = null, string $method = null ); +``` +Helper method to query records based on a relation definition + +@return \Phalcon\Mvc\Model\Resultset\Simple|Phalcon\Mvc\Model\Resultset\Simple|int|false + + +```php +public function getRelations( string $modelName ): RelationInterface[]; +``` +Query all the relationships defined on a model + + +```php +public function getRelationsBetween( string $first, string $second ): RelationInterface[] | bool; +``` +Query the relations between two models + + +```php +public function getWriteConnection( ModelInterface $model ): AdapterInterface; +``` +Returns the connection to write data related to a model + + +```php +public function getWriteConnectionService( ModelInterface $model ): string; +``` +Returns the connection service name used to write data related to a model + + +```php +public function initialize( ModelInterface $model ); +``` +Initializes a model in the model manager + + +```php +public function isInitialized( string $className ): bool; +``` +Check of a model is already initialized + + +```php +public function isKeepingSnapshots( ModelInterface $model ): bool; +``` +Checks if a model is keeping snapshots for the queried records + + +```php +public function isUsingDynamicUpdate( ModelInterface $model ): bool; +``` +Checks if a model is using dynamic update instead of all-field update + + +```php +final public function isVisibleModelProperty( ModelInterface $model, string $property ): bool; +``` +Check whether a model property is declared as public. + +```php +$isPublic = $manager->isVisibleModelProperty( + new Robots(), + "name" +); +``` + + +```php +public function keepSnapshots( ModelInterface $model, bool $keepSnapshots ): void; +``` +Sets if a model must keep snapshots + + +```php +public function load( string $modelName ): ModelInterface; +``` +Loads a model throwing an exception if it doesn't exist + + +```php +public function missingMethod( ModelInterface $model, string $eventName, mixed $data ); +``` +Dispatch an event to the listeners and behaviors +This method expects that the endpoint listeners/behaviors returns true +meaning that a least one is implemented + +@param array data +@return bool + + +```php +public function notifyEvent( string $eventName, ModelInterface $model ); +``` +Receives events generated in the models and dispatches them to an events-manager if available +Notify the behaviors that are listening in the model + + +```php +public function setConnectionService( ModelInterface $model, string $connectionService ): void; +``` +Sets both write and read connection service for a model + + +```php +public function setModelSchema( ModelInterface $model, string $schema ): void; +``` +Sets the mapped schema for a model + + +```php +public function setModelSource( ModelInterface $model, string $source ): void; +``` +Sets the mapped source for a model + + +```php +public function setReadConnectionService( ModelInterface $model, string $connectionService ): void; +``` +Sets read connection service for a model + + +```php +public function setWriteConnectionService( ModelInterface $model, string $connectionService ); +``` +Sets write connection service for a model + + +```php +public function useDynamicUpdate( ModelInterface $model, bool $dynamicUpdate ): void; +``` +Sets if a model must use dynamic update instead of the all-field update + + + + +

        Abstract Class Phalcon\Mvc\Model\MetaData

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/metadata.zep) + +| Namespace | Phalcon\Mvc\Model | +| Uses | Phalcon\Di\DiInterface, Phalcon\Mvc\ModelInterface, Phalcon\Mvc\Model\Exception, Phalcon\Di\InjectionAwareInterface, Phalcon\Mvc\Model\MetaData\Strategy\Introspection, Phalcon\Mvc\Model\MetaData\StrategyInterface, Phalcon\Cache\Adapter\AdapterInterface | +| Implements | InjectionAwareInterface, MetaDataInterface | + +Phalcon\Mvc\Model\MetaData + +Because Phalcon\Mvc\Model requires meta-data like field names, data types, +primary keys, etc. This component collect them and store for further +querying by Phalcon\Mvc\Model. Phalcon\Mvc\Model\MetaData can also use +adapters to store temporarily or permanently the meta-data. + +A standard Phalcon\Mvc\Model\MetaData can be used to query model attributes: + +```php +$metaData = new \Phalcon\Mvc\Model\MetaData\Memory(); + +$attributes = $metaData->getAttributes( + new Robots() +); + +print_r($attributes); +``` + + +## Constants +```php +const MODELS_ATTRIBUTES = 0; +const MODELS_AUTOMATIC_DEFAULT_INSERT = 10; +const MODELS_AUTOMATIC_DEFAULT_UPDATE = 11; +const MODELS_COLUMN_MAP = 0; +const MODELS_DATA_TYPES = 4; +const MODELS_DATA_TYPES_BIND = 9; +const MODELS_DATA_TYPES_NUMERIC = 5; +const MODELS_DATE_AT = 6; +const MODELS_DATE_IN = 7; +const MODELS_DEFAULT_VALUES = 12; +const MODELS_EMPTY_STRING_VALUES = 13; +const MODELS_IDENTITY_COLUMN = 8; +const MODELS_NON_PRIMARY_KEY = 2; +const MODELS_NOT_NULL = 3; +const MODELS_PRIMARY_KEY = 1; +const MODELS_REVERSE_COLUMN_MAP = 1; +``` + +## Properties +```php +/** + * @var CacheAdapterInterface + */ +protected adapter; + +// +protected columnMap; + +// +protected container; + +// +protected metaData; + +// +protected strategy; + +``` + +## Methods +```php +public function getAttributes( ModelInterface $model ): array; +``` +Returns table attributes names (fields) + +```php +print_r( + $metaData->getAttributes( + new Robots() + ) +); +``` + + +```php +public function getAutomaticCreateAttributes( ModelInterface $model ): array; +``` +Returns attributes that must be ignored from the INSERT SQL generation + +```php +print_r( + $metaData->getAutomaticCreateAttributes( + new Robots() + ) +); +``` + + +```php +public function getAutomaticUpdateAttributes( ModelInterface $model ): array; +``` +Returns attributes that must be ignored from the UPDATE SQL generation + +```php +print_r( + $metaData->getAutomaticUpdateAttributes( + new Robots() + ) +); +``` + + +```php +public function getBindTypes( ModelInterface $model ): array; +``` +Returns attributes and their bind data types + +```php +print_r( + $metaData->getBindTypes( + new Robots() + ) +); +``` + + +```php +public function getColumnMap( ModelInterface $model ): array; +``` +Returns the column map if any + +```php +print_r( + $metaData->getColumnMap( + new Robots() + ) +); +``` + + +```php +public function getDI(): DiInterface; +``` +Returns the DependencyInjector container + + +```php +public function getDataTypes( ModelInterface $model ): array; +``` +Returns attributes and their data types + +```php +print_r( + $metaData->getDataTypes( + new Robots() + ) +); +``` + + +```php +public function getDataTypesNumeric( ModelInterface $model ): array; +``` +Returns attributes which types are numerical + +```php +print_r( + $metaData->getDataTypesNumeric( + new Robots() + ) +); +``` + + +```php +public function getDefaultValues( ModelInterface $model ): array; +``` +Returns attributes (which have default values) and their default values + +```php +print_r( + $metaData->getDefaultValues( + new Robots() + ) +); +``` + + +```php +public function getEmptyStringAttributes( ModelInterface $model ): array; +``` +Returns attributes allow empty strings + +```php +print_r( + $metaData->getEmptyStringAttributes( + new Robots() + ) +); +``` + + +```php +public function getIdentityField( ModelInterface $model ): string; +``` +Returns the name of identity field (if one is present) + +```php +print_r( + $metaData->getIdentityField( + new Robots() + ) +); +``` + +@param Phalcon\Mvc\ModelInterface model +@return string + + +```php +public function getNonPrimaryKeyAttributes( ModelInterface $model ): array; +``` +Returns an array of fields which are not part of the primary key + +```php +print_r( + $metaData->getNonPrimaryKeyAttributes( + new Robots() + ) +); +``` + + +```php +public function getNotNullAttributes( ModelInterface $model ): array; +``` +Returns an array of not null attributes + +```php +print_r( + $metaData->getNotNullAttributes( + new Robots() + ) +); +``` + + +```php +public function getPrimaryKeyAttributes( ModelInterface $model ): array; +``` +Returns an array of fields which are part of the primary key + +```php +print_r( + $metaData->getPrimaryKeyAttributes( + new Robots() + ) +); +``` + + +```php +public function getReverseColumnMap( ModelInterface $model ): array; +``` +Returns the reverse column map if any + +```php +print_r( + $metaData->getReverseColumnMap( + new Robots() + ) +); +``` + + +```php +public function getStrategy(): StrategyInterface; +``` +Return the strategy to obtain the meta-data + + +```php +public function hasAttribute( ModelInterface $model, string $attribute ): bool; +``` +Check if a model has certain attribute + +```php +var_dump( + $metaData->hasAttribute( + new Robots(), + "name" + ) +); +``` + + +```php +public function isEmpty(): bool; +``` +Checks if the internal meta-data container is empty + +```php +var_dump( + $metaData->isEmpty() +); +``` + + +```php +public function read( string $key ): array | null; +``` +Reads metadata from the adapter + + +```php +final public function readColumnMap( ModelInterface $model ): array | null; +``` +Reads the ordered/reversed column map for certain model + +```php +print_r( + $metaData->readColumnMap( + new Robots() + ) +); +``` + + +```php +final public function readColumnMapIndex( ModelInterface $model, int $index ); +``` +Reads column-map information for certain model using a MODEL_* constant + +```php +print_r( + $metaData->readColumnMapIndex( + new Robots(), + MetaData::MODELS_REVERSE_COLUMN_MAP + ) +); +``` + + +```php +final public function readMetaData( ModelInterface $model ): array; +``` +Reads the complete meta-data for certain model + +```php +print_r( + $metaData->readMetaData( + new Robots() + ) +); +``` + + +```php +final public function readMetaDataIndex( ModelInterface $model, int $index ); +``` +Reads meta-data for certain model + +```php +print_r( + $metaData->readMetaDataIndex( + new Robots(), + 0 + ) +); +``` + + +```php +public function reset(): void; +``` +Resets internal meta-data in order to regenerate it + +```php +$metaData->reset(); +``` + + +```php +public function setAutomaticCreateAttributes( ModelInterface $model, array $attributes ): void; +``` +Set the attributes that must be ignored from the INSERT SQL generation + +```php +$metaData->setAutomaticCreateAttributes( + new Robots(), + [ + "created_at" => true, + ] +); +``` + + +```php +public function setAutomaticUpdateAttributes( ModelInterface $model, array $attributes ): void; +``` +Set the attributes that must be ignored from the UPDATE SQL generation + +```php +$metaData->setAutomaticUpdateAttributes( + new Robots(), + [ + "modified_at" => true, + ] +); +``` + + +```php +public function setDI( DiInterface $container ): void; +``` +Sets the DependencyInjector container + + +```php +public function setEmptyStringAttributes( ModelInterface $model, array $attributes ): void; +``` +Set the attributes that allow empty string values + +```php +$metaData->setEmptyStringAttributes( + new Robots(), + [ + "name" => true, + ] +); +``` + + +```php +public function setStrategy( StrategyInterface $strategy ): void; +``` +Set the meta-data extraction strategy + + +```php +public function write( string $key, array $data ): void; +``` +Writes the metadata to adapter + + +```php +final public function writeMetaDataIndex( ModelInterface $model, int $index, mixed $data ): void; +``` +Writes meta-data for certain model using a MODEL_* constant + +```php +print_r( + $metaData->writeColumnMapIndex( + new Robots(), + MetaData::MODELS_REVERSE_COLUMN_MAP, + [ + "leName" => "name", + ] + ) +); +``` + + +```php +final protected function initialize( ModelInterface $model, mixed $key, mixed $table, mixed $schema ); +``` +Initialize the metadata for certain table + + + + +

        Class Phalcon\Mvc\Model\MetaData\Apcu

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/metadata/apcu.zep) + +| Namespace | Phalcon\Mvc\Model\MetaData | +| Uses | Phalcon\Mvc\Model\MetaData, Phalcon\Mvc\Model\Exception, Phalcon\Cache\AdapterFactory | +| Extends | MetaData | + +Phalcon\Mvc\Model\MetaData\Apcu + +Stores model meta-data in the APCu cache. Data will erased if the web server is restarted + +By default meta-data is stored for 48 hours (172800 seconds) + +You can query the meta-data by printing apcu_fetch('$PMM$') or apcu_fetch('$PMM$my-app-id') + +```php +$metaData = new \Phalcon\Mvc\Model\MetaData\Apcu( + [ + "prefix" => "my-app-id", + "lifetime" => 86400, + ] +); +``` + + +## Methods +```php +public function __construct( AdapterFactory $factory, array $options = null ): void; +``` +Phalcon\Mvc\Model\MetaData\Apcu constructor + +@param array options + + + + +

        Class Phalcon\Mvc\Model\MetaData\Libmemcached

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/metadata/libmemcached.zep) + +| Namespace | Phalcon\Mvc\Model\MetaData | +| Uses | Phalcon\Helper\Arr, Phalcon\Mvc\Model\Exception, Phalcon\Mvc\Model\MetaData, Phalcon\Cache\AdapterFactory | +| Extends | MetaData | + +Phalcon\Mvc\Model\MetaData\Libmemcached + +Stores model meta-data in the Memcache. + +By default meta-data is stored for 48 hours (172800 seconds) + + +## Methods +```php +public function __construct( AdapterFactory $factory, array $options = [] ): void; +``` +Phalcon\Mvc\Model\MetaData\Libmemcached constructor + +@param array options + + +```php +public function reset(): void; +``` +Flush Memcache data and resets internal meta-data in order to regenerate it + + + + +

        Class Phalcon\Mvc\Model\MetaData\Memory

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/metadata/memory.zep) + +| Namespace | Phalcon\Mvc\Model\MetaData | +| Uses | Phalcon\Mvc\Model\MetaData, Phalcon\Mvc\Model\Exception | +| Extends | MetaData | + +Phalcon\Mvc\Model\MetaData\Memory + +Stores model meta-data in memory. Data will be erased when the request finishes + + + +## Methods +```php +public function __construct( mixed $options = null ): void; +``` +Phalcon\Mvc\Model\MetaData\Memory constructor + +@param array options + + +```php +public function read( string $key ): array | null; +``` +Reads the meta-data from temporal memory + + +```php +public function write( string $key, array $data ): void; +``` +Writes the meta-data to temporal memory + + + + +

        Class Phalcon\Mvc\Model\MetaData\Redis

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/metadata/redis.zep) + +| Namespace | Phalcon\Mvc\Model\MetaData | +| Uses | Phalcon\Mvc\Model\MetaData, Phalcon\Cache\AdapterFactory | +| Extends | MetaData | + +Phalcon\Mvc\Model\MetaData\Redis + +Stores model meta-data in the Redis. + +By default meta-data is stored for 48 hours (172800 seconds) + +```php +use Phalcon\Mvc\Model\MetaData\Redis; + +$metaData = new Redis( + [ + "host" => "127.0.0.1", + "port" => 6379, + "persistent" => 0, + "lifetime" => 172800, + "index" => 2, + ] +); +``` + + +## Methods +```php +public function __construct( AdapterFactory $factory, array $options = [] ): void; +``` +Phalcon\Mvc\Model\MetaData\Redis constructor + +@param array options + + +```php +public function reset(): void; +``` +Flush Redis data and resets internal meta-data in order to regenerate it + + + + +

        Class Phalcon\Mvc\Model\MetaData\Strategy\Annotations

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/metadata/strategy/annotations.zep) + +| Namespace | Phalcon\Mvc\Model\MetaData\Strategy | +| Uses | Phalcon\Di\DiInterface, Phalcon\Db\Column, Phalcon\Mvc\ModelInterface, Phalcon\Mvc\Model\MetaData, Phalcon\Mvc\Model\MetaData\StrategyInterface, Phalcon\Mvc\Model\Exception | +| Implements | StrategyInterface | + +This file is part of the Phalcon Framework. + +(c) Phalcon Team + +For the full copyright and license information, please view the LICENSE.txt +file that was distributed with this source code. + + +## Methods +```php +final public function getColumnMaps( ModelInterface $model, DiInterface $container ): array; +``` +Read the model's column map, this can't be inferred + + +```php +final public function getMetaData( ModelInterface $model, DiInterface $container ): array; +``` +The meta-data is obtained by reading the column descriptions from the database information schema + + + + +

        Class Phalcon\Mvc\Model\MetaData\Strategy\Introspection

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/metadata/strategy/introspection.zep) + +| Namespace | Phalcon\Mvc\Model\MetaData\Strategy | +| Uses | Phalcon\Di\DiInterface, Phalcon\Db\Adapter\AdapterInterface, Phalcon\Db\Column, Phalcon\Mvc\ModelInterface, Phalcon\Mvc\Model\Exception, Phalcon\Mvc\Model\MetaData, Phalcon\Mvc\Model\MetaData\StrategyInterface | +| Implements | StrategyInterface | + +Phalcon\Mvc\Model\MetaData\Strategy\Introspection + +Queries the table meta-data in order to introspect the model's metadata + + +## Methods +```php +final public function getColumnMaps( ModelInterface $model, DiInterface $container ): array; +``` +Read the model's column map, this can't be inferred + + +```php +final public function getMetaData( ModelInterface $model, DiInterface $container ): array; +``` +The meta-data is obtained by reading the column descriptions from the database information schema + + + + +

        Interface Phalcon\Mvc\Model\MetaData\StrategyInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/metadata/strategyinterface.zep) + +| Namespace | Phalcon\Mvc\Model\MetaData | +| Uses | Phalcon\Mvc\ModelInterface, Phalcon\Di\DiInterface | + +This file is part of the Phalcon Framework. + +(c) Phalcon Team + +For the full copyright and license information, please view the LICENSE.txt +file that was distributed with this source code. + + +## Methods +```php +public function getColumnMaps( ModelInterface $model, DiInterface $container ): array; +``` +Read the model's column map, this can't be inferred + +@todo Not implemented + + +```php +public function getMetaData( ModelInterface $model, DiInterface $container ): array; +``` +The meta-data is obtained by reading the column descriptions from the database information schema + + + + +

        Class Phalcon\Mvc\Model\MetaData\Stream

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/metadata/stream.zep) + +| Namespace | Phalcon\Mvc\Model\MetaData | +| Uses | Phalcon\Mvc\Model\MetaData, Phalcon\Mvc\Model\Exception | +| Extends | MetaData | + +Phalcon\Mvc\Model\MetaData\Stream + +Stores model meta-data in PHP files. + +```php +$metaData = new \Phalcon\Mvc\Model\MetaData\Files( + [ + "metaDataDir" => "app/cache/metadata/", + ] +); +``` + + +## Properties +```php +// +protected metaDataDir = ./; + +``` + +## Methods +```php +public function __construct( mixed $options = null ): void; +``` +Phalcon\Mvc\Model\MetaData\Files constructor + +@param array options + + +```php +public function read( string $key ): array | null; +``` +Reads meta-data from files + + +```php +public function write( string $key, array $data ): void; +``` +Writes the meta-data to files + + + + +

        Interface Phalcon\Mvc\Model\MetaDataInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/metadatainterface.zep) + +| Namespace | Phalcon\Mvc\Model | +| Uses | Phalcon\Mvc\ModelInterface, Phalcon\Mvc\Model\MetaData\StrategyInterface | + +Phalcon\Mvc\Model\MetaDataInterface + +Interface for Phalcon\Mvc\Model\MetaData + + +## Methods +```php +public function getAttributes( ModelInterface $model ): array; +``` +Returns table attributes names (fields) + + +```php +public function getAutomaticCreateAttributes( ModelInterface $model ): array; +``` +Returns attributes that must be ignored from the INSERT SQL generation + + +```php +public function getAutomaticUpdateAttributes( ModelInterface $model ): array; +``` +Returns attributes that must be ignored from the UPDATE SQL generation + + +```php +public function getBindTypes( ModelInterface $model ): array; +``` +Returns attributes and their bind data types + + +```php +public function getColumnMap( ModelInterface $model ): array; +``` +Returns the column map if any + + +```php +public function getDataTypes( ModelInterface $model ): array; +``` +Returns attributes and their data types + + +```php +public function getDataTypesNumeric( ModelInterface $model ): array; +``` +Returns attributes which types are numerical + + +```php +public function getDefaultValues( ModelInterface $model ): array; +``` +Returns attributes (which have default values) and their default values + + +```php +public function getEmptyStringAttributes( ModelInterface $model ): array; +``` +Returns attributes allow empty strings + + +```php +public function getIdentityField( ModelInterface $model ): string; +``` +Returns the name of identity field (if one is present) + + +```php +public function getNonPrimaryKeyAttributes( ModelInterface $model ): array; +``` +Returns an array of fields which are not part of the primary key + + +```php +public function getNotNullAttributes( ModelInterface $model ): array; +``` +Returns an array of not null attributes + + +```php +public function getPrimaryKeyAttributes( ModelInterface $model ): array; +``` +Returns an array of fields which are part of the primary key + + +```php +public function getReverseColumnMap( ModelInterface $model ): array; +``` +Returns the reverse column map if any + + +```php +public function getStrategy(): StrategyInterface; +``` +Return the strategy to obtain the meta-data + + +```php +public function hasAttribute( ModelInterface $model, string $attribute ): bool; +``` +Check if a model has certain attribute + + +```php +public function isEmpty(): bool; +``` +Checks if the internal meta-data container is empty + + +```php +public function read( string $key ): array | null; +``` +Reads meta-data from the adapter + + +```php +public function readColumnMap( ModelInterface $model ): array | null; +``` +Reads the ordered/reversed column map for certain model + + +```php +public function readColumnMapIndex( ModelInterface $model, int $index ); +``` +Reads column-map information for certain model using a MODEL_* constant + + +```php +public function readMetaData( ModelInterface $model ): array; +``` +Reads meta-data for certain model + + +```php +public function readMetaDataIndex( ModelInterface $model, int $index ): mixed; +``` +Reads meta-data for certain model using a MODEL_* constant + + +```php +public function reset(); +``` +Resets internal meta-data in order to regenerate it + + +```php +public function setAutomaticCreateAttributes( ModelInterface $model, array $attributes ); +``` +Set the attributes that must be ignored from the INSERT SQL generation + + +```php +public function setAutomaticUpdateAttributes( ModelInterface $model, array $attributes ); +``` +Set the attributes that must be ignored from the UPDATE SQL generation + + +```php +public function setEmptyStringAttributes( ModelInterface $model, array $attributes ): void; +``` +Set the attributes that allow empty string values + + +```php +public function setStrategy( StrategyInterface $strategy ); +``` +Set the meta-data extraction strategy + + +```php +public function write( string $key, array $data ): void; +``` +Writes meta-data to the adapter + + +```php +public function writeMetaDataIndex( ModelInterface $model, int $index, mixed $data ); +``` +Writes meta-data for certain model using a MODEL_* constant + + + + +

        Class Phalcon\Mvc\Model\Query

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/query.zep) + +| Namespace | Phalcon\Mvc\Model | +| Uses | Phalcon\Db\Column, Phalcon\Db\RawValue, Phalcon\Db\ResultInterface, Phalcon\Db\Adapter\AdapterInterface, Phalcon\Di\DiInterface, Phalcon\Helper\Arr, Phalcon\Mvc\Model\Row, Phalcon\Mvc\ModelInterface, Phalcon\Mvc\Model\Exception, Phalcon\Mvc\Model\ManagerInterface, Phalcon\Mvc\Model\QueryInterface, Phalcon\Mvc\Model\Query\Status, Phalcon\Mvc\Model\Resultset\Complex, Phalcon\Mvc\Model\Query\StatusInterface, Phalcon\Mvc\Model\ResultsetInterface, Phalcon\Mvc\Model\Resultset\Simple, Phalcon\Di\InjectionAwareInterface, Phalcon\Mvc\Model\RelationInterface, Phalcon\Mvc\Model\TransactionInterface, Phalcon\Db\DialectInterface, Phalcon\Cache\Adapter\AdapterInterface | +| Implements | QueryInterface, InjectionAwareInterface | + +Phalcon\Mvc\Model\Query + +This class takes a PHQL intermediate representation and executes it. + +```php +$phql = "SELECT c.price*0.16 AS taxes, c.* FROM Cars AS c JOIN Brands AS b + WHERE b.name = :name: ORDER BY c.name"; + +$result = $manager->executeQuery( + $phql, + [ + "name" => "Lamborghini", + ] +); + +foreach ($result as $row) { + echo "Name: ", $row->cars->name, "\n"; + echo "Price: ", $row->cars->price, "\n"; + echo "Taxes: ", $row->taxes, "\n"; +} + +// with transaction +use Phalcon\Mvc\Model\Query; +use Phalcon\Mvc\Model\Transaction; + +// $di needs to have the service "db" registered for this to work +$di = Phalcon\Di\FactoryDefault::getDefault(); + +$phql = 'SELECTFROM robot'; + +$myTransaction = new Transaction($di); +$myTransaction->begin(); + +$newRobot = new Robot(); +$newRobot->setTransaction($myTransaction); +$newRobot->type = "mechanical"; +$newRobot->name = "Astro Boy"; +$newRobot->year = 1952; +$newRobot->save(); + +$queryWithTransaction = new Query($phql, $di); +$queryWithTransaction->setTransaction($myTransaction); + +$resultWithEntries = $queryWithTransaction->execute(); + +$queryWithOutTransaction = new Query($phql, $di); +$resultWithOutEntries = $queryWithTransaction->execute(); +``` + + +## Constants +```php +const TYPE_DELETE = 303; +const TYPE_INSERT = 306; +const TYPE_SELECT = 309; +const TYPE_UPDATE = 300; +``` + +## Properties +```php +// +protected ast; + +// +protected bindParams; + +// +protected bindTypes; + +// +protected cache; + +// +protected cacheOptions; + +// +protected container; + +// +protected enableImplicitJoins; + +// +protected intermediate; + +// +protected manager; + +// +protected metaData; + +// +protected models; + +// +protected modelsInstances; + +// +protected nestingLevel = -1; + +// +protected phql; + +// +protected sharedLock; + +// +protected sqlAliases; + +// +protected sqlAliasesModels; + +// +protected sqlAliasesModelsInstances; + +// +protected sqlColumnAliases; + +// +protected sqlModelsAliases; + +// +protected type; + +// +protected uniqueRow; + +// +static protected _irPhqlCache; + +/** + * TransactionInterface so that the query can wrap a transaction + * around batch updates and intermediate selects within the transaction. + * however if a model got a transaction set inside it will use the local + * transaction instead of this one + */ +protected _transaction; + +``` + +## Methods +```php +public function __construct( string $phql = null, DiInterface $container = null, array $options = [] ): void; +``` +Phalcon\Mvc\Model\Query constructor + + +```php +public function cache( array $cacheOptions ): QueryInterface; +``` +Sets the cache parameters of the query + + +```php +public function execute( array $bindParams = [], array $bindTypes = [] ); +``` +Executes a parsed PHQL statement + +@return mixed + + +```php +public function getBindParams(): array; +``` +Returns default bind params + + +```php +public function getBindTypes(): array; +``` +Returns default bind types + + +```php +public function getCache(): AdapterInterface; +``` +Returns the current cache backend instance + + +```php +public function getCacheOptions(): array; +``` +Returns the current cache options + + +```php +public function getDI(): DiInterface; +``` +Returns the dependency injection container + + +```php +public function getIntermediate(): array; +``` +Returns the intermediate representation of the PHQL statement + + +```php +public function getSingleResult( array $bindParams = [], array $bindTypes = [] ): ModelInterface; +``` +Executes the query returning the first result + + +```php +public function getSql(): array; +``` +Returns the SQL to be generated by the internal PHQL (only works in +SELECT statements) + + +```php +public function getType(): int; +``` +Gets the type of PHQL statement executed + + +```php +public function getUniqueRow(): bool; +``` +Check if the query is programmed to get only the first row in the +resultset + + +```php +public function get_transaction() +``` + + +```php +public function parse(): array; +``` +Parses the intermediate code produced by Phalcon\Mvc\Model\Query\Lang +generating another intermediate representation that could be executed by +Phalcon\Mvc\Model\Query + + +```php +public function setBindParams( array $bindParams, bool $merge = bool ): QueryInterface; +``` +Set default bind parameters + + +```php +public function setBindTypes( array $bindTypes, bool $merge = bool ): QueryInterface; +``` +Set default bind parameters + + +```php +public function setDI( DiInterface $container ): void; +``` +Sets the dependency injection container + + +```php +public function setIntermediate( array $intermediate ): QueryInterface; +``` +Allows to set the IR to be executed + + +```php +public function setSharedLock( bool $sharedLock = bool ): QueryInterface; +``` +Set SHARED LOCK clause + + +```php +public function setTransaction( TransactionInterface $transaction ): QueryInterface; +``` +allows to wrap a transaction around all queries + + +```php +public function setType( int $type ): QueryInterface; +``` +Sets the type of PHQL statement to be executed + + +```php +public function setUniqueRow( bool $uniqueRow ): QueryInterface; +``` +Tells to the query if only the first row in the resultset must be +returned + + +```php +final protected function _executeDelete( array $intermediate, array $bindParams, array $bindTypes ): StatusInterface; +``` +Executes the DELETE intermediate representation producing a +Phalcon\Mvc\Model\Query\Status + + +```php +final protected function _executeInsert( array $intermediate, array $bindParams, array $bindTypes ): StatusInterface; +``` +Executes the INSERT intermediate representation producing a +Phalcon\Mvc\Model\Query\Status + + +```php +final protected function _executeSelect( array $intermediate, array $bindParams, array $bindTypes, bool $simulate = bool ): ResultsetInterface | array; +``` +Executes the SELECT intermediate representation producing a +Phalcon\Mvc\Model\Resultset + + +```php +final protected function _executeUpdate( array $intermediate, array $bindParams, array $bindTypes ): StatusInterface; +``` +Executes the UPDATE intermediate representation producing a +Phalcon\Mvc\Model\Query\Status + + +```php +final protected function _getCallArgument( array $argument ): array; +``` +Resolves an expression in a single call argument + + +```php +final protected function _getCaseExpression( array $expr ): array; +``` +Resolves an expression in a single call argument + + +```php +final protected function _getExpression( array $expr, bool $quoting = bool ): string; +``` +Resolves an expression from its intermediate code into a string + + +```php +final protected function _getFunctionCall( array $expr ): array; +``` +Resolves an expression in a single call argument + + +```php +final protected function _getGroupClause( array $group ): array; +``` +Returns a processed group clause for a SELECT statement + + +```php +final protected function _getJoin( ManagerInterface $manager, array $join ): array; +``` +Resolves a JOIN clause checking if the associated models exist + + +```php +final protected function _getJoinType( array $join ): string; +``` +Resolves a JOIN type + + +```php +final protected function _getJoins( array $select ): array; +``` +Processes the JOINs in the query returning an internal representation for +the database dialect + + +```php +final protected function _getLimitClause( array $limitClause ): array; +``` +Returns a processed limit clause for a SELECT statement + + +```php +final protected function _getMultiJoin( string $joinType, mixed $joinSource, string $modelAlias, string $joinAlias, RelationInterface $relation ): array; +``` +Resolves joins involving many-to-many relations + +@param string joinSource + + +```php +final protected function _getOrderClause( mixed $order ): array; +``` +Returns a processed order clause for a SELECT statement + +@param array|string order + + +```php +final protected function _getQualified( array $expr ): array; +``` +Replaces the model's name to its source name in a qualified-name +expression + + +```php +final protected function _getRelatedRecords( ModelInterface $model, array $intermediate, array $bindParams, array $bindTypes ): ResultsetInterface; +``` +Query the records on which the UPDATE/DELETE operation will be done + + +```php +final protected function _getSelectColumn( array $column ): array; +``` +Resolves a column from its intermediate representation into an array +used to determine if the resultset produced is simple or complex + + +```php +final protected function _getSingleJoin( string $joinType, mixed $joinSource, string $modelAlias, string $joinAlias, RelationInterface $relation ): array; +``` +Resolves joins involving has-one/belongs-to/has-many relations + +@param string joinSource + + +```php +final protected function _getTable( ManagerInterface $manager, array $qualifiedName ); +``` +Resolves a table in a SELECT statement checking if the model exists + +@return string + + +```php +final protected function _prepareDelete(): array; +``` +Analyzes a DELETE intermediate code and produces an array to be executed +later + + +```php +final protected function _prepareInsert(): array; +``` +Analyzes an INSERT intermediate code and produces an array to be executed +later + + +```php +final protected function _prepareSelect( mixed $ast = null, bool $merge = bool ): array; +``` +Analyzes a SELECT intermediate code and produces an array to be executed later + + +```php +final protected function _prepareUpdate(): array; +``` +Analyzes an UPDATE intermediate code and produces an array to be executed +later + + +```php +protected function getReadConnection( ModelInterface $model, array $intermediate = null, array $bindParams = [], array $bindTypes = [] ): AdapterInterface; +``` +Gets the read connection from the model if there is no transaction set +inside the query object + + +```php +protected function getWriteConnection( ModelInterface $model, array $intermediate = null, array $bindParams = [], array $bindTypes = [] ): AdapterInterface; +``` +Gets the write connection from the model if there is no transaction +inside the query object + + + + +

        Class Phalcon\Mvc\Model\Query\Builder

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/query/builder.zep) + +| Namespace | Phalcon\Mvc\Model\Query | +| Uses | Phalcon\Di, Phalcon\Db\Column, Phalcon\Di\DiInterface, Phalcon\Helper\Arr, Phalcon\Mvc\Model\Exception, Phalcon\Di\InjectionAwareInterface, Phalcon\Mvc\Model\QueryInterface, Phalcon\Mvc\Model\Query\BuilderInterface | +| Implements | BuilderInterface, InjectionAwareInterface | + +Phalcon\Mvc\Model\Query\Builder + +Helps to create PHQL queries using an OO interface + +```php +$params = [ + "models" => [ + Users::class, + ], + "columns" => ["id", "name", "status"], + "conditions" => [ + [ + "created > :min: AND created < :max:", + [ + "min" => "2013-01-01", + "max" => "2014-01-01", + ], + [ + "min" => PDO::PARAM_STR, + "max" => PDO::PARAM_STR, + ], + ], + ], + // or "conditions" => "created > '2013-01-01' AND created < '2014-01-01'", + "group" => ["id", "name"], + "having" => "name = 'Kamil'", + "order" => ["name", "id"], + "limit" => 20, + "offset" => 20, + // or "limit" => [20, 20], +]; + +$queryBuilder = new \Phalcon\Mvc\Model\Query\Builder($params); +``` + + +## Properties +```php +// +protected bindParams; + +// +protected bindTypes; + +// +protected columns; + +// +protected conditions; + +// +protected container; + +// +protected distinct; + +// +protected forUpdate; + +/** + * @var array + */ +protected group; + +// +protected having; + +// +protected hiddenParamNumber = 0; + +// +protected joins; + +// +protected limit; + +// +protected models; + +// +protected offset; + +// +protected order; + +// +protected sharedLock; + +``` + +## Methods +```php +public function __construct( mixed $params = null, DiInterface $container = null ): void; +``` +Phalcon\Mvc\Model\Query\Builder constructor + + +```php +public function addFrom( string $model, string $alias = null ): BuilderInterface; +``` +Add a model to take part of the query + +```php +// Load data from models Robots +$builder->addFrom( + Robots::class +); + +// Load data from model 'Robots' using 'r' as alias in PHQL +$builder->addFrom( + Robots::class, + "r" +); +``` + + +```php +public function andHaving( string $conditions, array $bindParams = [], array $bindTypes = [] ): BuilderInterface; +``` +Appends a condition to the current HAVING conditions clause using a AND operator + +```php +$builder->andHaving("SUM(Robots.price) > 0"); + +$builder->andHaving( + "SUM(Robots.price) > :sum:", + [ + "sum" => 100, + ] +); +``` + + +```php +public function andWhere( string $conditions, array $bindParams = [], array $bindTypes = [] ): BuilderInterface; +``` +Appends a condition to the current WHERE conditions using a AND operator + +```php +$builder->andWhere("name = 'Peter'"); + +$builder->andWhere( + "name = :name: AND id > :id:", + [ + "name" => "Peter", + "id" => 100, + ] +); +``` + + +```php +final public function autoescape( string $identifier ): string; +``` +Automatically escapes identifiers but only if they need to be escaped. + + +```php +public function betweenHaving( string $expr, mixed $minimum, mixed $maximum, string $operator = static-constant-access ): BuilderInterface; +``` +Appends a BETWEEN condition to the current HAVING conditions clause + +```php +$builder->betweenHaving("SUM(Robots.price)", 100.25, 200.50); +``` + + +```php +public function betweenWhere( string $expr, mixed $minimum, mixed $maximum, string $operator = static-constant-access ): BuilderInterface; +``` +Appends a BETWEEN condition to the current WHERE conditions + +```php +$builder->betweenWhere("price", 100.25, 200.50); +``` + + +```php +public function columns( mixed $columns ): BuilderInterface; +``` +Sets the columns to be queried + +```php +$builder->columns("id, name"); + +$builder->columns( + [ + "id", + "name", + ] +); + +$builder->columns( + [ + "name", + "number" => "COUNT(*)", + ] +); +``` + + +```php +public function distinct( mixed $distinct ): BuilderInterface; +``` +Sets SELECT DISTINCT / SELECT ALL flag + +```php +$builder->distinct("status"); +$builder->distinct(null); +``` + + +```php +public function forUpdate( bool $forUpdate ): BuilderInterface; +``` +Sets a FOR UPDATE clause + +```php +$builder->forUpdate(true); +``` + + +```php +public function from( mixed $models ): BuilderInterface; +``` +Sets the models who makes part of the query + +```php +$builder->from( + Robots::class +); + +$builder->from( + [ + Robots::class, + RobotsParts::class, + ] +); + +$builder->from( + [ + "r" => Robots::class, + "rp" => RobotsParts::class, + ] +); +``` + + +```php +public function getBindParams(): array; +``` +Returns default bind params + + +```php +public function getBindTypes(): array; +``` +Returns default bind types + + +```php +public function getColumns(); +``` +Return the columns to be queried + +@return string|array + + +```php +public function getDI(): DiInterface; +``` +Returns the DependencyInjector container + + +```php +public function getDistinct(): bool; +``` +Returns SELECT DISTINCT / SELECT ALL flag + + +```php +public function getFrom(); +``` +Return the models who makes part of the query + +@return string|array + + +```php +public function getGroupBy(): array; +``` +Returns the GROUP BY clause + + +```php +public function getHaving(): string; +``` +Return the current having clause + + +```php +public function getJoins(): array; +``` +Return join parts of the query + + +```php +public function getLimit(); +``` +Returns the current LIMIT clause + +@return string|array + + +```php +public function getModels(): string | array | null; +``` +Returns the models involved in the query + + +```php +public function getOffset(): int; +``` +Returns the current OFFSET clause + + +```php +public function getOrderBy(); +``` +Returns the set ORDER BY clause + +@return string|array + + +```php +final public function getPhql(): string; +``` +Returns a PHQL statement built based on the builder parameters + + +```php +public function getQuery(): QueryInterface; +``` +Returns the query built + + +```php +public function getWhere(); +``` +Return the conditions for the query + +@return string|array + + +```php +public function groupBy( mixed $group ): BuilderInterface; +``` +Sets a GROUP BY clause + +```php +$builder->groupBy( + [ + "Robots.name", + ] +); +``` + +@param string|array group + + +```php +public function having( mixed $conditions, array $bindParams = [], array $bindTypes = [] ): BuilderInterface; +``` +Sets the HAVING condition clause + +```php +$builder->having("SUM(Robots.price) > 0"); + +$builder->having( + "SUM(Robots.price) > :sum:", + [ + "sum" => 100, + ] +); +``` + + +```php +public function inHaving( string $expr, array $values, string $operator = static-constant-access ): BuilderInterface; +``` +Appends an IN condition to the current HAVING conditions clause + +```php +$builder->inHaving("SUM(Robots.price)", [100, 200]); +``` + + +```php +public function inWhere( string $expr, array $values, string $operator = static-constant-access ): BuilderInterface; +``` +Appends an IN condition to the current WHERE conditions + +```php +$builder->inWhere( + "id", + [1, 2, 3] +); +``` + + +```php +public function innerJoin( string $model, string $conditions = null, string $alias = null ): BuilderInterface; +``` +Adds an INNER join to the query + +```php +// Inner Join model 'Robots' with automatic conditions and alias +$builder->innerJoin( + Robots::class +); + +// Inner Join model 'Robots' specifying conditions +$builder->innerJoin( + Robots::class, + "Robots.id = RobotsParts.robots_id" +); + +// Inner Join model 'Robots' specifying conditions and alias +$builder->innerJoin( + Robots::class, + "r.id = RobotsParts.robots_id", + "r" +); +``` + + +```php +public function join( string $model, string $conditions = null, string $alias = null, string $type = null ): BuilderInterface; +``` +Adds an :type: join (by default type - INNER) to the query + +```php +// Inner Join model 'Robots' with automatic conditions and alias +$builder->join( + Robots::class +); + +// Inner Join model 'Robots' specifying conditions +$builder->join( + Robots::class, + "Robots.id = RobotsParts.robots_id" +); + +// Inner Join model 'Robots' specifying conditions and alias +$builder->join( + Robots::class, + "r.id = RobotsParts.robots_id", + "r" +); + +// Left Join model 'Robots' specifying conditions, alias and type of join +$builder->join( + Robots::class, + "r.id = RobotsParts.robots_id", + "r", + "LEFT" +); +``` + + +```php +public function leftJoin( string $model, string $conditions = null, string $alias = null ): BuilderInterface; +``` +Adds a LEFT join to the query + +```php +$builder->leftJoin( + Robots::class, + "r.id = RobotsParts.robots_id", + "r" +); +``` + + +```php +public function limit( int $limit, mixed $offset = null ): BuilderInterface; +``` +Sets a LIMIT clause, optionally an offset clause + +```php +$builder->limit(100); +$builder->limit(100, 20); +$builder->limit("100", "20"); +``` + + +```php +public function notBetweenHaving( string $expr, mixed $minimum, mixed $maximum, string $operator = static-constant-access ): BuilderInterface; +``` +Appends a NOT BETWEEN condition to the current HAVING conditions clause + +```php +$builder->notBetweenHaving("SUM(Robots.price)", 100.25, 200.50); +``` + + +```php +public function notBetweenWhere( string $expr, mixed $minimum, mixed $maximum, string $operator = static-constant-access ): BuilderInterface; +``` +Appends a NOT BETWEEN condition to the current WHERE conditions + +```php +$builder->notBetweenWhere("price", 100.25, 200.50); +``` + + +```php +public function notInHaving( string $expr, array $values, string $operator = static-constant-access ): BuilderInterface; +``` +Appends a NOT IN condition to the current HAVING conditions clause + +```php +$builder->notInHaving("SUM(Robots.price)", [100, 200]); +``` + + +```php +public function notInWhere( string $expr, array $values, string $operator = static-constant-access ): BuilderInterface; +``` +Appends a NOT IN condition to the current WHERE conditions + +```php +$builder->notInWhere("id", [1, 2, 3]); +``` + + +```php +public function offset( int $offset ): BuilderInterface; +``` +Sets an OFFSET clause + +```php +$builder->offset(30); +``` + + +```php +public function orHaving( string $conditions, array $bindParams = [], array $bindTypes = [] ): BuilderInterface; +``` +Appends a condition to the current HAVING conditions clause using an OR operator + +```php +$builder->orHaving("SUM(Robots.price) > 0"); + +$builder->orHaving( + "SUM(Robots.price) > :sum:", + [ + "sum" => 100, + ] +); +``` + + +```php +public function orWhere( string $conditions, array $bindParams = [], array $bindTypes = [] ): BuilderInterface; +``` +Appends a condition to the current conditions using an OR operator + +```php +$builder->orWhere("name = 'Peter'"); + +$builder->orWhere( + "name = :name: AND id > :id:", + [ + "name" => "Peter", + "id" => 100, + ] +); +``` + + +```php +public function orderBy( mixed $orderBy ): BuilderInterface; +``` +Sets an ORDER BY condition clause + +```php +$builder->orderBy("Robots.name"); +$builder->orderBy(["1", "Robots.name"]); +$builder->orderBy(["Robots.name DESC"]); +``` + +@param string|array orderBy + + +```php +public function rightJoin( string $model, string $conditions = null, string $alias = null ): BuilderInterface; +``` +Adds a RIGHT join to the query + +```php +$builder->rightJoin( + Robots::class, + "r.id = RobotsParts.robots_id", + "r" +); +``` + + +```php +public function setBindParams( array $bindParams, bool $merge = bool ): BuilderInterface; +``` +Set default bind parameters + + +```php +public function setBindTypes( array $bindTypes, bool $merge = bool ): BuilderInterface; +``` +Set default bind types + + +```php +public function setDI( DiInterface $container ): BuilderInterface; +``` +Sets the DependencyInjector container + + +```php +public function where( string $conditions, array $bindParams = [], array $bindTypes = [] ): BuilderInterface; +``` +Sets the query WHERE conditions + +```php +$builder->where(100); + +$builder->where("name = 'Peter'"); + +$builder->where( + "name = :name: AND id > :id:", + [ + "name" => "Peter", + "id" => 100, + ] +); +``` + + +```php +protected function conditionBetween( string $clause, string $operator, string $expr, mixed $minimum, mixed $maximum ): BuilderInterface; +``` +Appends a BETWEEN condition + + +```php +protected function conditionIn( string $clause, string $operator, string $expr, array $values ): BuilderInterface; +``` +Appends an IN condition + + +```php +protected function conditionNotBetween( string $clause, string $operator, string $expr, mixed $minimum, mixed $maximum ): BuilderInterface; +``` +Appends a NOT BETWEEN condition + + +```php +protected function conditionNotIn( string $clause, string $operator, string $expr, array $values ): BuilderInterface; +``` +Appends a NOT IN condition + + + + +

        Interface Phalcon\Mvc\Model\Query\BuilderInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/query/builderinterface.zep) + +| Namespace | Phalcon\Mvc\Model\Query | +| Uses | Phalcon\Mvc\Model\QueryInterface | + +Phalcon\Mvc\Model\Query\BuilderInterface + +Interface for Phalcon\Mvc\Model\Query\Builder + + +## Constants +```php +const OPERATOR_AND = and; +const OPERATOR_OR = or; +``` + +## Methods +```php +public function addFrom( string $model, string $alias = null ): BuilderInterface; +``` +Add a model to take part of the query + + +```php +public function andWhere( string $conditions, array $bindParams = [], array $bindTypes = [] ): BuilderInterface; +``` +Appends a condition to the current conditions using a AND operator + + +```php +public function betweenWhere( string $expr, mixed $minimum, mixed $maximum, string $operator = static-constant-access ): BuilderInterface; +``` +Appends a BETWEEN condition to the current conditions + +@param mixed minimum +@param mixed maximum + + +```php +public function columns( mixed $columns ): BuilderInterface; +``` +Sets the columns to be queried + +@param string|array columns + + +```php +public function distinct( mixed $distinct ): BuilderInterface; +``` +Sets SELECT DISTINCT / SELECT ALL flag + +```php +$builder->distinct("status"); +$builder->distinct(null); +``` + + +```php +public function forUpdate( bool $forUpdate ): BuilderInterface; +``` +Sets a FOR UPDATE clause + +```php +$builder->forUpdate(true); +``` + + +```php +public function from( mixed $models ): BuilderInterface; +``` +Sets the models who makes part of the query + +@param string|array models + + +```php +public function getBindParams(): array; +``` +Returns default bind params + + +```php +public function getBindTypes(): array; +``` +Returns default bind types + + +```php +public function getColumns(); +``` +Return the columns to be queried + +@return string|array + + +```php +public function getDistinct(): bool; +``` +Returns SELECT DISTINCT / SELECT ALL flag + + +```php +public function getFrom(); +``` +Return the models who makes part of the query + +@return string|array + + +```php +public function getGroupBy(): array; +``` +Returns the GROUP BY clause + + +```php +public function getHaving(): string; +``` +Returns the HAVING condition clause + + +```php +public function getJoins(): array; +``` +Return join parts of the query + + +```php +public function getLimit(); +``` +Returns the current LIMIT clause + +@return string|array + + +```php +public function getModels(): string | array | null; +``` +Returns the models involved in the query + + +```php +public function getOffset(): int; +``` +Returns the current OFFSET clause + + +```php +public function getOrderBy(); +``` +Return the set ORDER BY clause + +@return string|array + + +```php +public function getPhql(): string; +``` +Returns a PHQL statement built based on the builder parameters + + +```php +public function getQuery(): QueryInterface; +``` +Returns the query built + + +```php +public function getWhere(); +``` +Return the conditions for the query + +@return string|array + + +```php +public function groupBy( mixed $group ): BuilderInterface; +``` +Sets a GROUP BY clause + +@param string|array group + + +```php +public function having( string $having ): BuilderInterface; +``` +Sets a HAVING condition clause + + +```php +public function inWhere( string $expr, array $values, string $operator = static-constant-access ): BuilderInterface; +``` +Appends an IN condition to the current conditions + + +```php +public function innerJoin( string $model, string $conditions = null, string $alias = null ): BuilderInterface; +``` +Adds an INNER join to the query + + +```php +public function join( string $model, string $conditions = null, string $alias = null ): BuilderInterface; +``` +Adds an :type: join (by default type - INNER) to the query + +@param string model +@param string conditions +@param string alias +@param string type +@return BuilderInterface + + +```php +public function leftJoin( string $model, string $conditions = null, string $alias = null ): BuilderInterface; +``` +Adds a LEFT join to the query + + +```php +public function limit( int $limit, mixed $offset = null ): BuilderInterface; +``` +Sets a LIMIT clause + +@param int offset + + +```php +public function notBetweenWhere( string $expr, mixed $minimum, mixed $maximum, string $operator = static-constant-access ): BuilderInterface; +``` +Appends a NOT BETWEEN condition to the current conditions + +@param mixed minimum +@param mixed maximum + + +```php +public function notInWhere( string $expr, array $values, string $operator = static-constant-access ): BuilderInterface; +``` +Appends a NOT IN condition to the current conditions + + +```php +public function offset( int $offset ): BuilderInterface; +``` +Sets an OFFSET clause + + +```php +public function orWhere( string $conditions, array $bindParams = [], array $bindTypes = [] ): BuilderInterface; +``` +Appends a condition to the current conditions using an OR operator + + +```php +public function orderBy( string $orderBy ): BuilderInterface; +``` +Sets an ORDER BY condition clause + + +```php +public function rightJoin( string $model, string $conditions = null, string $alias = null ): BuilderInterface; +``` +Adds a RIGHT join to the query + + +```php +public function setBindParams( array $bindParams, bool $merge = bool ): BuilderInterface; +``` +Set default bind parameters + + +```php +public function setBindTypes( array $bindTypes, bool $merge = bool ): BuilderInterface; +``` +Set default bind types + + +```php +public function where( string $conditions, array $bindParams = [], array $bindTypes = [] ): BuilderInterface; +``` +Sets conditions for the query + + + + +

        Abstract Class Phalcon\Mvc\Model\Query\Lang

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/query/lang.zep) + +| Namespace | Phalcon\Mvc\Model\Query | + +Phalcon\Mvc\Model\Query\Lang + +PHQL is implemented as a parser (written in C) that translates syntax in +that of the target RDBMS. It allows Phalcon to offer a unified SQL language to +the developer, while internally doing all the work of translating PHQL +instructions to the most optimal SQL instructions depending on the +RDBMS type associated with a model. + +To achieve the highest performance possible, we wrote a parser that uses +the same technology as SQLite. This technology provides a small in-memory +parser with a very low memory footprint that is also thread-safe. + +```php +$intermediate = Phalcon\Mvc\Model\Query\Lang::parsePHQL( + "SELECT r.* FROM Robots r LIMIT 10" +); +``` + + + +

        Class Phalcon\Mvc\Model\Query\Status

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/query/status.zep) + +| Namespace | Phalcon\Mvc\Model\Query | +| Uses | Phalcon\Messages\MessageInterface, Phalcon\Mvc\ModelInterface, Phalcon\Mvc\Model\Query\StatusInterface | +| Implements | StatusInterface | + +Phalcon\Mvc\Model\Query\Status + +This class represents the status returned by a PHQL +statement like INSERT, UPDATE or DELETE. It offers context +information and the related messages produced by the +model which finally executes the operations when it fails + +```php +$phql = "UPDATE Robots SET name = :name:, type = :type:, year = :year: WHERE id = :id:"; + +$status = $app->modelsManager->executeQuery( + $phql, + [ + "id" => 100, + "name" => "Astroy Boy", + "type" => "mechanical", + "year" => 1959, + ] +); + +// Check if the update was successful +if ($status->success()) { + echo "OK"; +} +``` + + +## Properties +```php +// +protected model; + +// +protected success; + +``` + +## Methods +```php +public function __construct( bool $success, ModelInterface $model = null ): void; +``` +Phalcon\Mvc\Model\Query\Status + + +```php +public function getMessages(): MessageInterface[]; +``` +Returns the messages produced because of a failed operation + + +```php +public function getModel(): ModelInterface; +``` +Returns the model that executed the action + + +```php +public function success(): bool; +``` +Allows to check if the executed operation was successful + + + + +

        Interface Phalcon\Mvc\Model\Query\StatusInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/query/statusinterface.zep) + +| Namespace | Phalcon\Mvc\Model\Query | +| Uses | Phalcon\Messages\MessageInterface, Phalcon\Mvc\ModelInterface | + +Phalcon\Mvc\Model\Query\StatusInterface + +Interface for Phalcon\Mvc\Model\Query\Status + + +## Methods +```php +public function getMessages(): MessageInterface[]; +``` +Returns the messages produced by an operation failed + + +```php +public function getModel(): ModelInterface; +``` +Returns the model which executed the action + + +```php +public function success(): bool; +``` +Allows to check if the executed operation was successful + + + + +

        Interface Phalcon\Mvc\Model\QueryInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/queryinterface.zep) + +| Namespace | Phalcon\Mvc\Model | +| Uses | Phalcon\Mvc\ModelInterface | + +Phalcon\Mvc\Model\QueryInterface + +Interface for Phalcon\Mvc\Model\Query + + +## Methods +```php +public function cache( array $cacheOptions ): QueryInterface; +``` +Sets the cache parameters of the query + + +```php +public function execute( array $bindParams = [], array $bindTypes = [] ); +``` +Executes a parsed PHQL statement + +@return mixed + + +```php +public function getBindParams(): array; +``` +Returns default bind params + + +```php +public function getBindTypes(): array; +``` +Returns default bind types + + +```php +public function getCacheOptions(): array; +``` +Returns the current cache options + + +```php +public function getSingleResult( array $bindParams = [], array $bindTypes = [] ): ModelInterface; +``` +Executes the query returning the first result + + +```php +public function getSql(): array; +``` +Returns the SQL to be generated by the internal PHQL (only works in SELECT statements) + + +```php +public function getUniqueRow(): bool; +``` +Check if the query is programmed to get only the first row in the resultset + + +```php +public function parse(): array; +``` +Parses the intermediate code produced by Phalcon\Mvc\Model\Query\Lang generating another +intermediate representation that could be executed by Phalcon\Mvc\Model\Query + + +```php +public function setBindParams( array $bindParams, bool $merge = bool ): QueryInterface; +``` +Set default bind parameters + + +```php +public function setBindTypes( array $bindTypes, bool $merge = bool ): QueryInterface; +``` +Set default bind parameters + + +```php +public function setSharedLock( bool $sharedLock = bool ): QueryInterface; +``` +Set SHARED LOCK clause + + +```php +public function setUniqueRow( bool $uniqueRow ): QueryInterface; +``` +Tells to the query if only the first row in the resultset must be returned + + + + +

        Class Phalcon\Mvc\Model\Relation

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/relation.zep) + +| Namespace | Phalcon\Mvc\Model | +| Uses | Phalcon\Mvc\Model\RelationInterface | +| Implements | RelationInterface | + +Phalcon\Mvc\Model\Relation + +This class represents a relationship between two models + + +## Constants +```php +const ACTION_CASCADE = 2; +const ACTION_RESTRICT = 1; +const BELONGS_TO = 0; +const HAS_MANY = 2; +const HAS_MANY_THROUGH = 4; +const HAS_ONE = 1; +const HAS_ONE_THROUGH = 3; +const NO_ACTION = 0; +``` + +## Properties +```php +// +protected fields; + +// +protected intermediateFields; + +// +protected intermediateModel; + +// +protected intermediateReferencedFields; + +// +protected options; + +// +protected referencedFields; + +// +protected referencedModel; + +// +protected type; + +``` + +## Methods +```php +public function __construct( int $type, string $referencedModel, mixed $fields, mixed $referencedFields, array $options = [] ): void; +``` +Phalcon\Mvc\Model\Relation constructor + +@param string|array fields +@param string|array referencedFields + + +```php +public function getFields(); +``` +Returns the fields + +@return string|array + + +```php +public function getForeignKey(); +``` +Returns the foreign key configuration + +@return string|array + + +```php +public function getIntermediateFields(); +``` +Gets the intermediate fields for has-*-through relations + +@return string|array + + +```php +public function getIntermediateModel(): string; +``` +Gets the intermediate model for has-*-through relations + + +```php +public function getIntermediateReferencedFields(); +``` +Gets the intermediate referenced fields for has-*-through relations + +@return string|array + + +```php +public function getOption( string $name ); +``` +Returns an option by the specified name +If the option doesn't exist null is returned + + +```php +public function getOptions(): array; +``` +Returns the options + + +```php +public function getParams(); +``` +Returns parameters that must be always used when the related records are obtained + +@return array + + +```php +public function getReferencedFields(); +``` +Returns the referenced fields + +@return string|array + + +```php +public function getReferencedModel(): string; +``` +Returns the referenced model + + +```php +public function getType(): int; +``` +Returns the relation type + + +```php +public function isForeignKey(): bool; +``` +Check whether the relation act as a foreign key + + +```php +public function isReusable(): bool; +``` +Check if records returned by getting belongs-to/has-many are implicitly cached during the current request + + +```php +public function isThrough(): bool; +``` +Check whether the relation is a 'many-to-many' relation or not + + +```php +public function setIntermediateRelation( mixed $intermediateFields, string $intermediateModel, mixed $intermediateReferencedFields ); +``` +Sets the intermediate model data for has-*-through relations + +@param string|array intermediateFields +@param string intermediateReferencedFields + + + + +

        Interface Phalcon\Mvc\Model\RelationInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/relationinterface.zep) + +| Namespace | Phalcon\Mvc\Model | + +Phalcon\Mvc\Model\RelationInterface + +Interface for Phalcon\Mvc\Model\Relation + + +## Methods +```php +public function getFields(); +``` +Returns the fields + +@return string|array + + +```php +public function getForeignKey(); +``` +Returns the foreign key configuration + +@return string|array + + +```php +public function getIntermediateFields(); +``` +Gets the intermediate fields for has-*-through relations + +@return string|array + + +```php +public function getIntermediateModel(): string; +``` +Gets the intermediate model for has-*-through relations + + +```php +public function getIntermediateReferencedFields(); +``` +Gets the intermediate referenced fields for has-*-through relations + +@return string|array + + +```php +public function getOption( string $name ); +``` +Returns an option by the specified name +If the option doesn't exist null is returned + + +```php +public function getOptions(): array; +``` +Returns the options + + +```php +public function getParams(); +``` +Returns parameters that must be always used when the related records are obtained + +@return array + + +```php +public function getReferencedFields(); +``` +Returns the referenced fields + +@return string|array + + +```php +public function getReferencedModel(): string; +``` +Returns the referenced model + + +```php +public function getType(): int; +``` +Returns the relations type + + +```php +public function isForeignKey(): bool; +``` +Check whether the relation act as a foreign key + + +```php +public function isReusable(): bool; +``` +Check if records returned by getting belongs-to/has-many are implicitly cached during the current request + + +```php +public function isThrough(): bool; +``` +Check whether the relation is a 'many-to-many' relation or not + + +```php +public function setIntermediateRelation( mixed $intermediateFields, string $intermediateModel, mixed $intermediateReferencedFields ); +``` +Sets the intermediate model dat for has-*-through relations + +@param string|array intermediateFields +@param string|array intermediateReferencedFields + + + + +

        Interface Phalcon\Mvc\Model\ResultInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/resultinterface.zep) + +| Namespace | Phalcon\Mvc\Model | +| Uses | Phalcon\Mvc\ModelInterface | + +Phalcon\Mvc\Model\ResultInterface + +All single objects passed as base objects to Resultsets must implement this interface + + +## Methods +```php +public function setDirtyState( int $dirtyState ): ModelInterface | bool; +``` +Sets the object's state + + + + +

        Abstract Class Phalcon\Mvc\Model\Resultset

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/resultset.zep) + +| Namespace | Phalcon\Mvc\Model | +| Uses | ArrayAccess, Closure, Countable, Iterator, JsonSerializable, Phalcon\Db\Enum, Phalcon\Messages\MessageInterface, Phalcon\Mvc\Model, Phalcon\Mvc\ModelInterface, Phalcon\Mvc\Model\Exception, Phalcon\Mvc\Model\ResultsetInterface, Phalcon\Cache\Adapter\AdapterInterface, Phalcon\Storage\Serializer\SerializerInterface, SeekableIterator, Serializable | +| Implements | ResultsetInterface, Iterator, SeekableIterator, Countable, ArrayAccess, Serializable, JsonSerializable | + +Phalcon\Mvc\Model\Resultset + +This component allows to Phalcon\Mvc\Model returns large resultsets with the minimum memory consumption +Resultsets can be traversed using a standard foreach or a while statement. If a resultset is serialized +it will dump all the rows into a big array. Then unserialize will retrieve the rows as they were before +serializing. + +```php + +// Using a standard foreach +$robots = Robots::find( + [ + "type = 'virtual'", + "order" => "name", + ] +); + +foreach ($robots as robot) { + echo robot->name, "\n"; +} + +// Using a while +$robots = Robots::find( + [ + "type = 'virtual'", + "order" => "name", + ] +); + +$robots->rewind(); + +while ($robots->valid()) { + $robot = $robots->current(); + + echo $robot->name, "\n"; + + $robots->next(); +} +``` + + +## Constants +```php +const HYDRATE_ARRAYS = 1; +const HYDRATE_OBJECTS = 2; +const HYDRATE_RECORDS = 0; +const TYPE_RESULT_FULL = 0; +const TYPE_RESULT_PARTIAL = 1; +``` + +## Properties +```php +// +protected activeRow; + +// +protected cache; + +// +protected count; + +// +protected errorMessages; + +// +protected hydrateMode = 0; + +// +protected isFresh = true; + +// +protected pointer = 0; + +// +protected row; + +// +protected rows; + +/** + * Phalcon\Db\ResultInterface or false for empty resultset + */ +protected result; + +``` + +## Methods +```php +public function __construct( mixed $result, AdapterInterface $cache = null ): void; +``` +Phalcon\Mvc\Model\Resultset constructor + +@param \Phalcon\Db\ResultInterface|false result + + +```php +final public function count(): int; +``` +Counts how many rows are in the resultset + + +```php +public function delete( Closure $conditionCallback = null ): bool; +``` +Deletes every record in the resultset + + +```php +public function filter( callable $filter ): ModelInterface[]; +``` +Filters a resultset returning only those the developer requires + +```php +$filtered = $robots->filter( + function ($robot) { + if ($robot->id < 3) { + return $robot; + } + } +); +``` + + +```php +public function getCache(): AdapterInterface; +``` +Returns the associated cache for the resultset + + +```php +public function getFirst(): ModelInterface | null; +``` +Get first row in the resultset + + +```php +public function getHydrateMode(): int; +``` +Returns the current hydration mode + + +```php +public function getLast(): ModelInterface | null; +``` +Get last row in the resultset + + +```php +public function getMessages(): MessageInterface[]; +``` +Returns the error messages produced by a batch operation + + +```php +public function getType(): int; +``` +Returns the internal type of data retrieval that the resultset is using + + +```php +public function isFresh(): bool; +``` +Tell if the resultset if fresh or an old one cached + + +```php +public function jsonSerialize(): array; +``` +Returns serialised model objects as array for json_encode. +Calls jsonSerialize on each object if present + +```php +$robots = Robots::find(); + +echo json_encode($robots); +``` + + +```php +public function key(): int | null; +``` +Gets pointer number of active row in the resultset + + +```php +public function next(): void; +``` +Moves cursor to next row in the resultset + + +```php +public function offsetExists( mixed $index ): bool; +``` +Checks whether offset exists in the resultset + + +```php +public function offsetGet( mixed $index ): ModelInterface | bool; +``` +Gets row in a specific position of the resultset + + +```php +public function offsetSet( mixed $index, mixed $value ): void; +``` +Resultsets cannot be changed. It has only been implemented to meet the definition of the ArrayAccess interface + +@param int index +@param \Phalcon\Mvc\ModelInterface value + + +```php +public function offsetUnset( mixed $offset ): void; +``` +Resultsets cannot be changed. It has only been implemented to meet the definition of the ArrayAccess interface + + +```php +final public function rewind(): void; +``` +Rewinds resultset to its beginning + + +```php +final public function seek( mixed $position ): void; +``` +Changes the internal pointer to a specific position in the resultset. +Set the new position if required, and then set this->row + + +```php +public function setHydrateMode( int $hydrateMode ): ResultsetInterface; +``` +Sets the hydration mode in the resultset + + +```php +public function setIsFresh( bool $isFresh ): ResultsetInterface; +``` +Set if the resultset is fresh or an old one cached + + +```php +public function update( mixed $data, Closure $conditionCallback = null ): bool; +``` +Updates every record in the resultset + +@param array data + + +```php +public function valid(): bool; +``` +Check whether internal resource has rows to fetch + + + + +

        Class Phalcon\Mvc\Model\Resultset\Complex

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/resultset/complex.zep) + +| Namespace | Phalcon\Mvc\Model\Resultset | +| Uses | Phalcon\Mvc\Model, Phalcon\Mvc\Model\Row, Phalcon\Db\ResultInterface, Phalcon\Mvc\Model\Resultset, Phalcon\Mvc\Model\Exception, Phalcon\Mvc\Model\ResultsetInterface, Phalcon\Di\DiInterface, Phalcon\Di, Phalcon\Cache\Adapter\AdapterInterface, Phalcon\Storage\Serializer\SerializerInterface, stdClass | +| Extends | Resultset | +| Implements | ResultsetInterface | + +Phalcon\Mvc\Model\Resultset\Complex + +Complex resultsets may include complete objects and scalar values. +This class builds every complex row as it is required + + +## Properties +```php +// +protected columnTypes; + +/** + * Unserialised result-set hydrated all rows already. unserialise() sets + * disableHydration to true + */ +protected disableHydration = false; + +``` + +## Methods +```php +public function __construct( mixed $columnTypes, ResultInterface $result = null, AdapterInterface $cache = null ): void; +``` +Phalcon\Mvc\Model\Resultset\Complex constructor + +@param array columnTypes + + +```php +final public function current(): ModelInterface | bool; +``` +Returns current row in the resultset + + +```php +public function serialize(): string; +``` +Serializing a resultset will dump all related rows into a big array + + +```php +public function toArray(): array; +``` +Returns a complete resultset as an array, if the resultset has a big +number of rows it could consume more memory than currently it does. + + +```php +public function unserialize( mixed $data ): void; +``` +Unserializing a resultset will allow to only works on the rows present in the saved state + + + + +

        Class Phalcon\Mvc\Model\Resultset\Simple

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/resultset/simple.zep) + +| Namespace | Phalcon\Mvc\Model\Resultset | +| Uses | Phalcon\Di, Phalcon\Di\DiInterface, Phalcon\Mvc\Model, Phalcon\Mvc\Model\Exception, Phalcon\Mvc\Model\Resultset, Phalcon\Cache\Adapter\AdapterInterface, Phalcon\Storage\Serializer\SerializerInterface | +| Extends | Resultset | + +Phalcon\Mvc\Model\Resultset\Simple + +Simple resultsets only contains a complete objects +This class builds every complete object as it is required + + +## Properties +```php +// +protected columnMap; + +// +protected model; + +/** + * @var bool + */ +protected keepSnapshots = false; + +``` + +## Methods +```php +public function __construct( mixed $columnMap, mixed $model, mixed $result, AdapterInterface $cache = null, bool $keepSnapshots = null ): void; +``` +Phalcon\Mvc\Model\Resultset\Simple constructor + +@param array columnMap +@param \Phalcon\Mvc\ModelInterface|Phalcon\Mvc\Model\Row model + + +```php +final public function current(): ModelInterface | null; +``` +Returns current row in the resultset + + +```php +public function serialize(): string; +``` +Serializing a resultset will dump all related rows into a big array + + +```php +public function toArray( bool $renameColumns = bool ): array; +``` +Returns a complete resultset as an array, if the resultset has a big +number of rows it could consume more memory than currently it does. +Export the resultset to an array couldn't be faster with a large number +of records + + +```php +public function unserialize( mixed $data ): void; +``` +Unserializing a resultset will allow to only works on the rows present in +the saved state + + + + +

        Interface Phalcon\Mvc\Model\ResultsetInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/resultsetinterface.zep) + +| Namespace | Phalcon\Mvc\Model | +| Uses | Closure, Phalcon\Messages\MessageInterface, Phalcon\Mvc\ModelInterface, Phalcon\Cache\Adapter\AdapterInterface | + +Phalcon\Mvc\Model\ResultsetInterface + +Interface for Phalcon\Mvc\Model\Resultset + + +## Methods +```php +public function delete( Closure $conditionCallback = null ): bool; +``` +Deletes every record in the resultset + + +```php +public function filter( callable $filter ): ModelInterface[]; +``` +Filters a resultset returning only those the developer requires + +```php +$filtered = $robots->filter( + function ($robot) { + if ($robot->id < 3) { + return $robot; + } + } +); +``` + + +```php +public function getCache(): AdapterInterface; +``` +Returns the associated cache for the resultset + + +```php +public function getFirst(): ModelInterface | null; +``` +Get first row in the resultset + + +```php +public function getHydrateMode(): int; +``` +Returns the current hydration mode + + +```php +public function getLast(): ModelInterface | null; +``` +Get last row in the resultset + + +```php +public function getMessages(): MessageInterface[]; +``` +Returns the error messages produced by a batch operation + + +```php +public function getType(): int; +``` +Returns the internal type of data retrieval that the resultset is using + + +```php +public function isFresh(): bool; +``` +Tell if the resultset if fresh or an old one cached + + +```php +public function setHydrateMode( int $hydrateMode ): ResultsetInterface; +``` +Sets the hydration mode in the resultset + + +```php +public function setIsFresh( bool $isFresh ): ResultsetInterface; +``` +Set if the resultset is fresh or an old one cached + + +```php +public function toArray(): array; +``` +Returns a complete resultset as an array, if the resultset has a big number of rows +it could consume more memory than currently it does. + + +```php +public function update( mixed $data, Closure $conditionCallback = null ): bool; +``` +Updates every record in the resultset + +@param array data + + + + +

        Class Phalcon\Mvc\Model\Row

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/row.zep) + +| Namespace | Phalcon\Mvc\Model | +| Uses | ArrayAccess, JsonSerializable, Phalcon\Mvc\ModelInterface, Phalcon\Mvc\EntityInterface, Phalcon\Mvc\Model\Exception, Phalcon\Mvc\Model\ResultInterface | +| Implements | EntityInterface, ResultInterface, ArrayAccess, JsonSerializable | + +Phalcon\Mvc\Model\Row + +This component allows Phalcon\Mvc\Model to return rows without an associated entity. +This objects implements the ArrayAccess interface to allow access the object as object->x or array[x]. + + +## Methods +```php +public function jsonSerialize(): array; +``` + Serializes the object for json_encode + + +```php +public function offsetExists( mixed $index ): bool; +``` +Checks whether offset exists in the row + +@param string|int $index + + +```php +public function offsetGet( mixed $index ): mixed; +``` +Gets a record in a specific position of the row + +@param string|int index + +@return string|Phalcon\Mvc\ModelInterface + + +```php +public function offsetSet( mixed $index, mixed $value ): void; +``` +Rows cannot be changed. It has only been implemented to meet the definition of the ArrayAccess interface + +@param string|int index +@param \Phalcon\Mvc\ModelInterface value + + +```php +public function offsetUnset( mixed $offset ): void; +``` +Rows cannot be changed. It has only been implemented to meet the definition of the ArrayAccess interface + +@param string|int offset + + +```php +public function readAttribute( string $attribute ); +``` +Reads an attribute value by its name + +```php +echo $robot->readAttribute("name"); +``` + +@return mixed + + +```php +public function setDirtyState( int $dirtyState ): ModelInterface | bool; +``` +Set the current object's state + + +```php +public function toArray(): array; +``` +Returns the instance as an array representation + + +```php +public function writeAttribute( string $attribute, mixed $value ): void; +``` +Writes an attribute value by its name + +```php +$robot->writeAttribute("name", "Rosey"); +``` + +@param mixed value + + + + +

        Class Phalcon\Mvc\Model\Transaction

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/transaction.zep) + +| Namespace | Phalcon\Mvc\Model | +| Uses | Phalcon\Di\DiInterface, Phalcon\Mvc\ModelInterface, Phalcon\Mvc\Model\Transaction\Failed, Phalcon\Mvc\Model\Transaction\ManagerInterface, Phalcon\Mvc\Model\TransactionInterface | +| Implements | TransactionInterface | + +Phalcon\Mvc\Model\Transaction + +Transactions are protective blocks where SQL statements are only permanent if +they can all succeed as one atomic action. Phalcon\Transaction is intended to +be used with Phalcon_Model_Base. Phalcon Transactions should be created using +Phalcon\Transaction\Manager. + +```php +use Phalcon\Mvc\Model\Transaction\Failed; +use Phalcon\Mvc\Model\Transaction\Manager; + +try { + $manager = new Manager(); + + $transaction = $manager->get(); + + $robot = new Robots(); + + $robot->setTransaction($transaction); + + $robot->name = "WALL·E"; + $robot->created_at = date("Y-m-d"); + + if ($robot->save() === false) { + $transaction->rollback("Can't save robot"); + } + + $robotPart = new RobotParts(); + + $robotPart->setTransaction($transaction); + + $robotPart->type = "head"; + + if ($robotPart->save() === false) { + $transaction->rollback("Can't save robot part"); + } + + $transaction->commit(); +} catch(Failed $e) { + echo "Failed, reason: ", $e->getMessage(); +} +``` + + +## Properties +```php +// +protected activeTransaction = false; + +// +protected connection; + +// +protected isNewTransaction = true; + +// +protected manager; + +// +protected messages; + +// +protected rollbackRecord; + +// +protected rollbackOnAbort = false; + +// +protected rollbackThrowException = false; + +``` + +## Methods +```php +public function __construct( DiInterface $container, bool $autoBegin = bool, string $service = string ): void; +``` +Phalcon\Mvc\Model\Transaction constructor + + +```php +public function begin(): bool; +``` +Starts the transaction + + +```php +public function commit(): bool; +``` +Commits the transaction + + +```php +public function getConnection(): \Phalcon\Db\Adapter\AdapterInterface; +``` +Returns the connection related to transaction + + +```php +public function getMessages(): array; +``` +Returns validations messages from last save try + + +```php +public function isManaged(): bool; +``` +Checks whether transaction is managed by a transaction manager + + +```php +public function isValid(): bool; +``` +Checks whether internal connection is under an active transaction + + +```php +public function rollback( string $rollbackMessage = null, ModelInterface $rollbackRecord = null ): bool; +``` +Rollbacks the transaction + + +```php +public function setIsNewTransaction( bool $isNew ): void; +``` +Sets if is a reused transaction or new once + + +```php +public function setRollbackOnAbort( bool $rollbackOnAbort ): void; +``` +Sets flag to rollback on abort the HTTP connection + + +```php +public function setRollbackedRecord( ModelInterface $record ): void; +``` +Sets object which generates rollback action + + +```php +public function setTransactionManager( ManagerInterface $manager ): void; +``` +Sets transaction manager related to the transaction + + +```php +public function throwRollbackException( bool $status ): TransactionInterface; +``` +Enables throwing exception + + + + +

        Class Phalcon\Mvc\Model\Transaction\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/transaction/exception.zep) + +| Namespace | Phalcon\Mvc\Model\Transaction | +| Extends | \Phalcon\Mvc\Model\Exception | + +Phalcon\Mvc\Model\Transaction\Exception + +Exceptions thrown in Phalcon\Mvc\Model\Transaction will use this class + + + +

        Class Phalcon\Mvc\Model\Transaction\Failed

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/transaction/failed.zep) + +| Namespace | Phalcon\Mvc\Model\Transaction | +| Uses | Phalcon\Messages\MessageInterface, Phalcon\Mvc\ModelInterface, Phalcon\Mvc\Model\Transaction\Exception | +| Extends | Exception | + +Phalcon\Mvc\Model\Transaction\Failed + +This class will be thrown to exit a try/catch block for isolated transactions + + +## Properties +```php +// +protected record; + +``` + +## Methods +```php +public function __construct( string $message, ModelInterface $record = null ): void; +``` +Phalcon\Mvc\Model\Transaction\Failed constructor + + +```php +public function getRecord(): ModelInterface; +``` +Returns validation record messages which stop the transaction + + +```php +public function getRecordMessages(): MessageInterface[]; +``` +Returns validation record messages which stop the transaction + + + + +

        Class Phalcon\Mvc\Model\Transaction\Manager

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/transaction/manager.zep) + +| Namespace | Phalcon\Mvc\Model\Transaction | +| Uses | Phalcon\Di, Phalcon\Di\DiInterface, Phalcon\Di\InjectionAwareInterface, Phalcon\Mvc\Model\Transaction\ManagerInterface, Phalcon\Mvc\Model\Transaction\Exception, Phalcon\Mvc\Model\Transaction, Phalcon\Mvc\Model\TransactionInterface | +| Implements | ManagerInterface, InjectionAwareInterface | + +Phalcon\Mvc\Model\Transaction\Manager + +A transaction acts on a single database connection. If you have multiple +class-specific databases, the transaction will not protect interaction among +them. + +This class manages the objects that compose a transaction. +A transaction produces a unique connection that is passed to every object +part of the transaction. + +```php +use Phalcon\Mvc\Model\Transaction\Failed; +use Phalcon\Mvc\Model\Transaction\Manager; + +try { + $transactionManager = new Manager(); + + $transaction = $transactionManager->get(); + + $robot = new Robots(); + + $robot->setTransaction($transaction); + + $robot->name = "WALL·E"; + $robot->created_at = date("Y-m-d"); + + if ($robot->save() === false) { + $transaction->rollback("Can't save robot"); + } + + $robotPart = new RobotParts(); + + $robotPart->setTransaction($transaction); + + $robotPart->type = "head"; + + if ($robotPart->save() === false) { + $transaction->rollback("Can't save robot part"); + } + + $transaction->commit(); +} catch (Failed $e) { + echo "Failed, reason: ", $e->getMessage(); +} +``` + + +## Properties +```php +// +protected container; + +// +protected initialized = false; + +// +protected number = 0; + +// +protected rollbackPendent = true; + +// +protected service = db; + +/** + * @var array + */ +protected transactions; + +``` + +## Methods +```php +public function __construct( DiInterface $container = null ): void; +``` +Phalcon\Mvc\Model\Transaction\Manager constructor + + +```php +public function collectTransactions(): void; +``` +Remove all the transactions from the manager + + +```php +public function commit(); +``` +Commits active transactions within the manager + + +```php +public function get( bool $autoBegin = bool ): TransactionInterface; +``` +Returns a new \Phalcon\Mvc\Model\Transaction or an already created once +This method registers a shutdown function to rollback active connections + + +```php +public function getDI(): DiInterface; +``` +Returns the dependency injection container + + +```php +public function getDbService(): string; +``` +Returns the database service used to isolate the transaction + + +```php +public function getOrCreateTransaction( bool $autoBegin = bool ): TransactionInterface; +``` +Create/Returns a new transaction or an existing one + + +```php +public function getRollbackPendent(): bool; +``` +Check if the transaction manager is registering a shutdown function to +clean up pendent transactions + + +```php +public function has(): bool; +``` +Checks whether the manager has an active transaction + + +```php +public function notifyCommit( TransactionInterface $transaction ): void; +``` +Notifies the manager about a committed transaction + + +```php +public function notifyRollback( TransactionInterface $transaction ): void; +``` +Notifies the manager about a rollbacked transaction + + +```php +public function rollback( bool $collect = bool ): void; +``` +Rollbacks active transactions within the manager +Collect will remove the transaction from the manager + + +```php +public function rollbackPendent(): void; +``` +Rollbacks active transactions within the manager + + +```php +public function setDI( DiInterface $container ): void; +``` +Sets the dependency injection container + + +```php +public function setDbService( string $service ): ManagerInterface; +``` +Sets the database service used to run the isolated transactions + + +```php +public function setRollbackPendent( bool $rollbackPendent ): ManagerInterface; +``` +Set if the transaction manager must register a shutdown function to clean +up pendent transactions + + +```php +protected function collectTransaction( TransactionInterface $transaction ): void; +``` +Removes transactions from the TransactionManager + + + + +

        Interface Phalcon\Mvc\Model\Transaction\ManagerInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/transaction/managerinterface.zep) + +| Namespace | Phalcon\Mvc\Model\Transaction | +| Uses | Phalcon\Mvc\Model\TransactionInterface | + +Phalcon\Mvc\Model\Transaction\ManagerInterface + +Interface for Phalcon\Mvc\Model\Transaction\Manager + + +## Methods +```php +public function collectTransactions(): void; +``` +Remove all the transactions from the manager + + +```php +public function commit(); +``` +Commits active transactions within the manager + + +```php +public function get( bool $autoBegin = bool ): TransactionInterface; +``` +Returns a new \Phalcon\Mvc\Model\Transaction or an already created once + + +```php +public function getDbService(): string; +``` +Returns the database service used to isolate the transaction + + +```php +public function getRollbackPendent(): bool; +``` +Check if the transaction manager is registering a shutdown function to clean up pendent transactions + + +```php +public function has(): bool; +``` +Checks whether manager has an active transaction + + +```php +public function notifyCommit( TransactionInterface $transaction ): void; +``` +Notifies the manager about a committed transaction + + +```php +public function notifyRollback( TransactionInterface $transaction ): void; +``` +Notifies the manager about a rollbacked transaction + + +```php +public function rollback( bool $collect = bool ): void; +``` +Rollbacks active transactions within the manager +Collect will remove transaction from the manager + + +```php +public function rollbackPendent(): void; +``` +Rollbacks active transactions within the manager + + +```php +public function setDbService( string $service ): ManagerInterface; +``` +Sets the database service used to run the isolated transactions + + +```php +public function setRollbackPendent( bool $rollbackPendent ): ManagerInterface; +``` +Set if the transaction manager must register a shutdown function to clean up pendent transactions + + + + +

        Interface Phalcon\Mvc\Model\TransactionInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/transactioninterface.zep) + +| Namespace | Phalcon\Mvc\Model | +| Uses | Phalcon\Mvc\ModelInterface, Phalcon\Mvc\Model\Transaction\ManagerInterface | + +Phalcon\Mvc\Model\TransactionInterface + +Interface for Phalcon\Mvc\Model\Transaction + + +## Methods +```php +public function begin(): bool; +``` +Starts the transaction + + +```php +public function commit(): bool; +``` +Commits the transaction + + +```php +public function getConnection(): \Phalcon\Db\Adapter\AdapterInterface; +``` +Returns connection related to transaction + + +```php +public function getMessages(): array; +``` +Returns validations messages from last save try + + +```php +public function isManaged(): bool; +``` +Checks whether transaction is managed by a transaction manager + + +```php +public function isValid(): bool; +``` +Checks whether internal connection is under an active transaction + + +```php +public function rollback( string $rollbackMessage = null, ModelInterface $rollbackRecord = null ): bool; +``` +Rollbacks the transaction + + +```php +public function setIsNewTransaction( bool $isNew ): void; +``` +Sets if is a reused transaction or new once + + +```php +public function setRollbackOnAbort( bool $rollbackOnAbort ): void; +``` +Sets flag to rollback on abort the HTTP connection + + +```php +public function setRollbackedRecord( ModelInterface $record ): void; +``` +Sets object which generates rollback action + + +```php +public function setTransactionManager( ManagerInterface $manager ): void; +``` +Sets transaction manager related to the transaction + + +```php +public function throwRollbackException( bool $status ): TransactionInterface; +``` +Enables throwing exception + + + + +

        Class Phalcon\Mvc\Model\ValidationFailed

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/validationfailed.zep) + +| Namespace | Phalcon\Mvc\Model | +| Uses | Phalcon\Mvc\ModelInterface | +| Extends | Exception | + +Phalcon\Mvc\Model\ValidationFailed + +This exception is generated when a model fails to save a record +Phalcon\Mvc\Model must be set up to have this behavior + + +## Properties +```php +// +protected messages; + +// +protected model; + +``` + +## Methods +```php +public function __construct( ModelInterface $model, array $validationMessages ): void; +``` +Phalcon\Mvc\Model\ValidationFailed constructor + +@param Message[] validationMessages + + +```php +public function getMessages(): Message[]; +``` +Returns the complete group of messages produced in the validation + + +```php +public function getModel(): ModelInterface; +``` +Returns the model that generated the messages + + + + +

        Interface Phalcon\Mvc\ModelInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/modelinterface.zep) + +| Namespace | Phalcon\Mvc | +| Uses | Phalcon\Db\Adapter\AdapterInterface, Phalcon\Di\DiInterface, Phalcon\Messages\MessageInterface, Phalcon\Mvc\Model\CriteriaInterface, Phalcon\Mvc\Model\ModelInterface, Phalcon\Mvc\Model\MetaDataInterface, Phalcon\Mvc\Model\ResultsetInterface, Phalcon\Mvc\Model\TransactionInterface, Phalcon\Mvc\ModelInterface | + +Phalcon\Mvc\ModelInterface + +Interface for Phalcon\Mvc\Model + + +## Methods +```php +public function appendMessage( MessageInterface $message ): ModelInterface; +``` +Appends a customized message on the validation process + + +```php +public function assign( array $data, mixed $dataColumnMap = null, mixed $whiteList = null ): ModelInterface; +``` +Assigns values to a model from an array + +@param array columnMap + + +```php +public function create(): bool; +``` +Inserts a model instance. If the instance already exists in the +persistence it will throw an exception. Returning true on success or +false otherwise. + + +```php +public function delete(): bool; +``` +Deletes a model instance. Returning true on success or false otherwise. + + +```php +public function fireEvent( string $eventName ): bool; +``` +Fires an event, implicitly calls behaviors and listeners in the events +manager are notified + + +```php +public function fireEventCancel( string $eventName ): bool; +``` +Fires an event, implicitly calls behaviors and listeners in the events +manager are notified. This method stops if one of the callbacks/listeners +returns bool false + + +```php +public function getDirtyState(): int; +``` +Returns one of the DIRTY_STATE_* constants telling if the record exists +in the database or not + + +```php +public function getMessages(): MessageInterface[]; +``` +Returns array of validation messages + + +```php +public function getModelsMetaData(): MetaDataInterface; +``` +Returns the models meta-data service related to the entity instance. + + +```php +public function getOperationMade(): int; +``` +Returns the type of the latest operation performed by the ORM +Returns one of the OP_* class constants + + +```php +public function getReadConnection(): AdapterInterface; +``` +Gets internal database connection + + +```php +public function getReadConnectionService(): string; +``` +Returns DependencyInjection connection service used to read data + + +```php +public function getRelated( string $alias, mixed $arguments = null ); +``` +Returns related records based on defined relations + +@param array arguments +@return \Phalcon\Mvc\Model\Resultset\Simple|Phalcon\Mvc\Model\Resultset\Simple|false + + +```php +public function getSchema(): string; +``` +Returns schema name where table mapped is located + + +```php +public function getSource(): string; +``` +Returns table name mapped in the model + + +```php +public function getWriteConnection(): AdapterInterface; +``` +Gets internal database connection + + +```php +public function getWriteConnectionService(): string; +``` +Returns DependencyInjection connection service used to write data + + +```php +public function refresh(): ModelInterface; +``` +Refreshes the model attributes re-querying the record from the database + + +```php +public function save(): bool; +``` +Inserts or updates a model instance. Returning true on success or false +otherwise. + + +```php +public function setConnectionService( string $connectionService ): void; +``` +Sets both read/write connection services + + +```php +public function setDirtyState( int $dirtyState ): ModelInterface | bool; +``` +Sets the dirty state of the object using one of the DIRTY_STATE_* +constants + + +```php +public function setReadConnectionService( string $connectionService ): void; +``` +Sets the DependencyInjection connection service used to read data + + +```php +public function setSnapshotData( array $data, mixed $columnMap = null ): void; +``` +Sets the record's snapshot data. This method is used internally to set +snapshot data when the model was set up to keep snapshot data + +@param array columnMap + + +```php +public function setTransaction( TransactionInterface $transaction ): ModelInterface; +``` +Sets a transaction related to the Model instance + + +```php +public function setWriteConnectionService( string $connectionService ): void; +``` +Sets the DependencyInjection connection service used to write data + + +```php +public function skipOperation( bool $skip ): void; +``` +Skips the current operation forcing a success state + + +```php +public function update(): bool; +``` +Updates a model instance. If the instance doesn't exist in the +persistence it will throw an exception. Returning true on success or +false otherwise. + + +```php +public function validationHasFailed(): bool; +``` +Check whether validation process has generated any messages + + + + +

        Interface Phalcon\Mvc\ModuleDefinitionInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/moduledefinitioninterface.zep) + +| Namespace | Phalcon\Mvc | +| Uses | Phalcon\Di\DiInterface | + +Phalcon\Mvc\ModuleDefinitionInterface + +This interface must be implemented by class module definitions + + +## Methods +```php +public function registerAutoloaders( DiInterface $container = null ); +``` +Registers an autoloader related to the module + + +```php +public function registerServices( DiInterface $container ); +``` +Registers services related to the module + + + + +

        Class Phalcon\Mvc\Router

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/router.zep) + +| Namespace | Phalcon\Mvc | +| Uses | Phalcon\Di\DiInterface, Phalcon\Di\AbstractInjectionAware, Phalcon\Events\EventsAwareInterface, Phalcon\Events\ManagerInterface, Phalcon\Http\RequestInterface, Phalcon\Mvc\Router\Exception, Phalcon\Mvc\Router\GroupInterface, Phalcon\Mvc\Router\Route, Phalcon\Mvc\Router\RouteInterface | +| Extends | AbstractInjectionAware | +| Implements | RouterInterface, EventsAwareInterface | + +Phalcon\Mvc\Router + +Phalcon\Mvc\Router is the standard framework router. Routing is the +process of taking a URI endpoint (that part of the URI which comes after the +base URL) and decomposing it into parameters to determine which module, +controller, and action of that controller should receive the request + +```php +use Phalcon\Mvc\Router; + +$router = new Router(); + +$router->add( + "/documentation/{chapter}/{name}\.{type:[a-z]+}", + [ + "controller" => "documentation", + "action" => "show", + ] +); + +$router->handle( + "/documentation/1/examples.html" +); + +echo $router->getControllerName(); +``` + + +## Constants +```php +const POSITION_FIRST = 0; +const POSITION_LAST = 1; +``` + +## Properties +```php +// +protected action; + +// +protected controller; + +// +protected defaultAction; + +// +protected defaultController; + +// +protected defaultModule; + +// +protected defaultNamespace; + +// +protected defaultParams; + +// +protected eventsManager; + +// +protected keyRouteNames; + +// +protected keyRouteIds; + +// +protected matchedRoute; + +// +protected matches; + +// +protected module; + +// +protected namespaceName; + +// +protected notFoundPaths; + +// +protected params; + +// +protected removeExtraSlashes; + +// +protected routes; + +// +protected uriSource; + +// +protected wasMatched = false; + +``` + +## Methods +```php +public function __construct( bool $defaultRoutes = bool ); +``` +Phalcon\Mvc\Router constructor + + +```php +public function add( string $pattern, mixed $paths = null, mixed $httpMethods = null, mixed $position = static-constant-access ): RouteInterface; +``` +Adds a route to the router without any HTTP constraint + +```php +use Phalcon\Mvc\Router; + +$router->add("/about", "About::index"); + +$router->add( + "/about", + "About::index", + ["GET", "POST"] +); + +$router->add( + "/about", + "About::index", + ["GET", "POST"], + Router::POSITION_FIRST +); +``` + + +```php +public function addConnect( string $pattern, mixed $paths = null, mixed $position = static-constant-access ): RouteInterface; +``` +Adds a route to the router that only match if the HTTP method is CONNECT + + +```php +public function addDelete( string $pattern, mixed $paths = null, mixed $position = static-constant-access ): RouteInterface; +``` +Adds a route to the router that only match if the HTTP method is DELETE + + +```php +public function addGet( string $pattern, mixed $paths = null, mixed $position = static-constant-access ): RouteInterface; +``` +Adds a route to the router that only match if the HTTP method is GET + + +```php +public function addHead( string $pattern, mixed $paths = null, mixed $position = static-constant-access ): RouteInterface; +``` +Adds a route to the router that only match if the HTTP method is HEAD + + +```php +public function addOptions( string $pattern, mixed $paths = null, mixed $position = static-constant-access ): RouteInterface; +``` +Add a route to the router that only match if the HTTP method is OPTIONS + + +```php +public function addPatch( string $pattern, mixed $paths = null, mixed $position = static-constant-access ): RouteInterface; +``` +Adds a route to the router that only match if the HTTP method is PATCH + + +```php +public function addPost( string $pattern, mixed $paths = null, mixed $position = static-constant-access ): RouteInterface; +``` +Adds a route to the router that only match if the HTTP method is POST + + +```php +public function addPurge( string $pattern, mixed $paths = null, mixed $position = static-constant-access ): RouteInterface; +``` +Adds a route to the router that only match if the HTTP method is PURGE +(Squid and Varnish support) + + +```php +public function addPut( string $pattern, mixed $paths = null, mixed $position = static-constant-access ): RouteInterface; +``` +Adds a route to the router that only match if the HTTP method is PUT + + +```php +public function addTrace( string $pattern, mixed $paths = null, mixed $position = static-constant-access ): RouteInterface; +``` +Adds a route to the router that only match if the HTTP method is TRACE + + +```php +public function attach( RouteInterface $route, mixed $position = static-constant-access ): RouterInterface; +``` +Attach Route object to the routes stack. + +```php +use Phalcon\Mvc\Router; +use Phalcon\Mvc\Router\Route; + +class CustomRoute extends Route { + // ... +} + +$router = new Router(); + +$router->attach( + new CustomRoute("/about", "About::index", ["GET", "HEAD"]), + Router::POSITION_FIRST +); +``` + + +```php +public function clear(): void; +``` +Removes all the pre-defined routes + + +```php +public function getActionName(): string; +``` +Returns the processed action name + + +```php +public function getControllerName(): string; +``` +Returns the processed controller name + + +```php +public function getDefaults(): array; +``` +Returns an array of default parameters + + +```php +public function getEventsManager(): ManagerInterface; +``` +Returns the internal event manager + + +```php +public function getKeyRouteIds() +``` + + +```php +public function getKeyRouteNames() +``` + + +```php +public function getMatchedRoute(): RouteInterface; +``` +Returns the route that matches the handled URI + + +```php +public function getMatches(): array; +``` +Returns the sub expressions in the regular expression matched + + +```php +public function getModuleName(): string; +``` +Returns the processed module name + + +```php +public function getNamespaceName(): string; +``` +Returns the processed namespace name + + +```php +public function getParams(): array; +``` +Returns the processed parameters + + +```php +public function getRouteById( mixed $id ): RouteInterface | bool; +``` +Returns a route object by its id + + +```php +public function getRouteByName( string $name ): RouteInterface | bool; +``` +Returns a route object by its name + + +```php +public function getRoutes(): RouteInterface[]; +``` +Returns all the routes defined in the router + + +```php +public function handle( string $uri ); +``` +Handles routing information received from the rewrite engine + +```php +// Passing a URL +$router->handle("/posts/edit/1"); +``` + + +```php +public function isExactControllerName(): bool; +``` +Returns whether controller name should not be mangled + + +```php +public function mount( GroupInterface $group ): RouterInterface; +``` +Mounts a group of routes in the router + + +```php +public function notFound( mixed $paths ): RouterInterface; +``` +Set a group of paths to be returned when none of the defined routes are +matched + + +```php +public function removeExtraSlashes( bool $remove ): RouterInterface; +``` +Set whether router must remove the extra slashes in the handled routes + + +```php +public function setDefaultAction( string $actionName ): RouterInterface; +``` +Sets the default action name + + +```php +public function setDefaultController( string $controllerName ): RouterInterface; +``` +Sets the default controller name + + +```php +public function setDefaultModule( string $moduleName ): RouterInterface; +``` +Sets the name of the default module + + +```php +public function setDefaultNamespace( string $namespaceName ): RouterInterface; +``` +Sets the name of the default namespace + + +```php +public function setDefaults( array $defaults ): RouterInterface; +``` +Sets an array of default paths. If a route is missing a path the router +will use the defined here. This method must not be used to set a 404 +route + +```php +$router->setDefaults( + [ + "module" => "common", + "action" => "index", + ] +); +``` + + +```php +public function setEventsManager( ManagerInterface $eventsManager ): void; +``` +Sets the events manager + + +```php +public function setKeyRouteIds( $keyRouteIds ) +``` + + +```php +public function setKeyRouteNames( $keyRouteNames ) +``` + + +```php +public function wasMatched(): bool; +``` +Checks if the router matches any of the defined routes + + + + +

        Class Phalcon\Mvc\Router\Annotations

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/router/annotations.zep) + +| Namespace | Phalcon\Mvc\Router | +| Uses | Phalcon\Di\DiInterface, Phalcon\Mvc\Router, Phalcon\Annotations\Annotation, Phalcon\Mvc\Router\Exception | +| Extends | Router | + +Phalcon\Mvc\Router\Annotations + +A router that reads routes annotations from classes/resources + +```php +use Phalcon\Mvc\Router\Annotations; + +$di->setShared( + "router", + function() { + // Use the annotations router + $router = new Annotations(false); + + // This will do the same as above but only if the handled uri starts with /robots + $router->addResource("Robots", "/robots"); + + return $router; + } +); +``` + + +## Properties +```php +// +protected actionSuffix = Action; + +// +protected controllerSuffix = Controller; + +// +protected handlers; + +// +protected routePrefix; + +``` + +## Methods +```php +public function addModuleResource( string $module, string $handler, string $prefix = null ): Annotations; +``` +Adds a resource to the annotations handler +A resource is a class that contains routing annotations +The class is located in a module + + +```php +public function addResource( string $handler, string $prefix = null ): Annotations; +``` +Adds a resource to the annotations handler +A resource is a class that contains routing annotations + + +```php +public function getResources(): array; +``` +Return the registered resources + + +```php +public function handle( string $uri ); +``` +Produce the routing parameters from the rewrite information + + +```php +public function processActionAnnotation( string $module, string $namespaceName, string $controller, string $action, Annotation $annotation ); +``` +Checks for annotations in the public methods of the controller + + +```php +public function processControllerAnnotation( string $handler, Annotation $annotation ); +``` +Checks for annotations in the controller docblock + + +```php +public function setActionSuffix( string $actionSuffix ); +``` +Changes the action method suffix + + +```php +public function setControllerSuffix( string $controllerSuffix ); +``` +Changes the controller class suffix + + + + +

        Class Phalcon\Mvc\Router\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/router/exception.zep) + +| Namespace | Phalcon\Mvc\Router | +| Extends | \Phalcon\Exception | + +Phalcon\Mvc\Router\Exception + +Exceptions thrown in Phalcon\Mvc\Router will use this class + + + +

        Class Phalcon\Mvc\Router\Group

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/router/group.zep) + +| Namespace | Phalcon\Mvc\Router | +| Implements | GroupInterface | + +Phalcon\Mvc\Router\Group + +Helper class to create a group of routes with common attributes + +```php +$router = new \Phalcon\Mvc\Router(); + +//Create a group with a common module and controller +$blog = new Group( + [ + "module" => "blog", + "controller" => "index", + ] +); + +//All the routes start with /blog +$blog->setPrefix("/blog"); + +//Add a route to the group +$blog->add( + "/save", + [ + "action" => "save", + ] +); + +//Add another route to the group +$blog->add( + "/edit/{id}", + [ + "action" => "edit", + ] +); + +//This route maps to a controller different than the default +$blog->add( + "/blog", + [ + "controller" => "about", + "action" => "index", + ] +); + +//Add the group to the router +$router->mount($blog); +``` + + +## Properties +```php +// +protected beforeMatch; + +// +protected hostname; + +// +protected paths; + +// +protected prefix; + +// +protected routes; + +``` + +## Methods +```php +public function __construct( mixed $paths = null ); +``` +Phalcon\Mvc\Router\Group constructor + + +```php +public function add( string $pattern, mixed $paths = null, mixed $httpMethods = null ): RouteInterface; +``` +Adds a route to the router on any HTTP method + +```php +$router->add("/about", "About::index"); +``` + + +```php +public function addConnect( string $pattern, mixed $paths = null ): RouteInterface; +``` +Adds a route to the router that only match if the HTTP method is CONNECT + +@param string|array paths + + +```php +public function addDelete( string $pattern, mixed $paths = null ): RouteInterface; +``` +Adds a route to the router that only match if the HTTP method is DELETE + +@param string|array paths + + +```php +public function addGet( string $pattern, mixed $paths = null ): RouteInterface; +``` +Adds a route to the router that only match if the HTTP method is GET + +@param string|array paths + + +```php +public function addHead( string $pattern, mixed $paths = null ): RouteInterface; +``` +Adds a route to the router that only match if the HTTP method is HEAD + +@param string|array paths + + +```php +public function addOptions( string $pattern, mixed $paths = null ): RouteInterface; +``` +Add a route to the router that only match if the HTTP method is OPTIONS + +@param string|array paths + + +```php +public function addPatch( string $pattern, mixed $paths = null ): RouteInterface; +``` +Adds a route to the router that only match if the HTTP method is PATCH + +@param string|array paths + + +```php +public function addPost( string $pattern, mixed $paths = null ): RouteInterface; +``` +Adds a route to the router that only match if the HTTP method is POST + +@param string|array paths + + +```php +public function addPurge( string $pattern, mixed $paths = null ): RouteInterface; +``` +Adds a route to the router that only match if the HTTP method is PURGE + +@param string|array paths + + +```php +public function addPut( string $pattern, mixed $paths = null ): RouteInterface; +``` +Adds a route to the router that only match if the HTTP method is PUT + +@param string|array paths + + +```php +public function addTrace( string $pattern, mixed $paths = null ): RouteInterface; +``` +Adds a route to the router that only match if the HTTP method is TRACE + +@param string|array paths + + +```php +public function beforeMatch( callable $beforeMatch ): GroupInterface; +``` +Sets a callback that is called if the route is matched. +The developer can implement any arbitrary conditions here +If the callback returns false the route is treated as not matched + + +```php +public function clear(): void; +``` +Removes all the pre-defined routes + + +```php +public function getBeforeMatch(): callable; +``` +Returns the 'before match' callback if any + + +```php +public function getHostname(): string; +``` +Returns the hostname restriction + + +```php +public function getPaths(): array | string; +``` +Returns the common paths defined for this group + + +```php +public function getPrefix(): string; +``` +Returns the common prefix for all the routes + + +```php +public function getRoutes(): RouteInterface[]; +``` +Returns the routes added to the group + + +```php +public function setHostname( string $hostname ): GroupInterface; +``` +Set a hostname restriction for all the routes in the group + + +```php +public function setPaths( mixed $paths ): GroupInterface; +``` +Set common paths for all the routes in the group + + +```php +public function setPrefix( string $prefix ): GroupInterface; +``` +Set a common uri prefix for all the routes in this group + + +```php +protected function addRoute( string $pattern, mixed $paths = null, mixed $httpMethods = null ): RouteInterface; +``` +Adds a route applying the common attributes + + + + +

        Interface Phalcon\Mvc\Router\GroupInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/router/groupinterface.zep) + +| Namespace | Phalcon\Mvc\Router | +| Uses | Phalcon\Mvc\Router\RouteInterface | + +Phalcon\Mvc\Router\GroupInterface + +```php +$router = new \Phalcon\Mvc\Router(); + +// Create a group with a common module and controller +$blog = new Group( + [ + "module" => "blog", + "controller" => "index", + ] +); + +// All the routes start with /blog +$blog->setPrefix("/blog"); + +// Add a route to the group +$blog->add( + "/save", + [ + "action" => "save", + ] +); + +// Add another route to the group +$blog->add( + "/edit/{id}", + [ + "action" => "edit", + ] +); + +// This route maps to a controller different than the default +$blog->add( + "/blog", + [ + "controller" => "about", + "action" => "index", + ] +); + +// Add the group to the router +$router->mount($blog); +``` + + +## Methods +```php +public function add( string $pattern, mixed $paths = null, mixed $httpMethods = null ): RouteInterface; +``` +Adds a route to the router on any HTTP method + +```php +router->add("/about", "About::index"); +``` + + +```php +public function addConnect( string $pattern, mixed $paths = null ): RouteInterface; +``` +Adds a route to the router that only match if the HTTP method is CONNECT + + +```php +public function addDelete( string $pattern, mixed $paths = null ): RouteInterface; +``` +Adds a route to the router that only match if the HTTP method is DELETE + + +```php +public function addGet( string $pattern, mixed $paths = null ): RouteInterface; +``` +Adds a route to the router that only match if the HTTP method is GET + + +```php +public function addHead( string $pattern, mixed $paths = null ): RouteInterface; +``` +Adds a route to the router that only match if the HTTP method is HEAD + + +```php +public function addOptions( string $pattern, mixed $paths = null ): RouteInterface; +``` +Add a route to the router that only match if the HTTP method is OPTIONS + + +```php +public function addPatch( string $pattern, mixed $paths = null ): RouteInterface; +``` +Adds a route to the router that only match if the HTTP method is PATCH + + +```php +public function addPost( string $pattern, mixed $paths = null ): RouteInterface; +``` +Adds a route to the router that only match if the HTTP method is POST + + +```php +public function addPurge( string $pattern, mixed $paths = null ): RouteInterface; +``` +Adds a route to the router that only match if the HTTP method is PURGE + + +```php +public function addPut( string $pattern, mixed $paths = null ): RouteInterface; +``` +Adds a route to the router that only match if the HTTP method is PUT + + +```php +public function addTrace( string $pattern, mixed $paths = null ): RouteInterface; +``` +Adds a route to the router that only match if the HTTP method is TRACE + + +```php +public function beforeMatch( callable $beforeMatch ): GroupInterface; +``` +Sets a callback that is called if the route is matched. +The developer can implement any arbitrary conditions here +If the callback returns false the route is treated as not matched + + +```php +public function clear(): void; +``` +Removes all the pre-defined routes + + +```php +public function getBeforeMatch(): callable; +``` +Returns the 'before match' callback if any + + +```php +public function getHostname(): string; +``` +Returns the hostname restriction + + +```php +public function getPaths(): array | string; +``` +Returns the common paths defined for this group + + +```php +public function getPrefix(): string; +``` +Returns the common prefix for all the routes + + +```php +public function getRoutes(): RouteInterface[]; +``` +Returns the routes added to the group + + +```php +public function setHostname( string $hostname ): GroupInterface; +``` +Set a hostname restriction for all the routes in the group + + +```php +public function setPaths( mixed $paths ): GroupInterface; +``` +Set common paths for all the routes in the group + +@param array paths + + +```php +public function setPrefix( string $prefix ): GroupInterface; +``` +Set a common uri prefix for all the routes in this group + + + + +

        Class Phalcon\Mvc\Router\Route

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/router/route.zep) + +| Namespace | Phalcon\Mvc\Router | +| Uses | Phalcon\Mvc\Router\Exception | +| Implements | RouteInterface | + +Phalcon\Mvc\Router\Route + +This class represents every route added to the router + + +## Properties +```php +// +protected beforeMatch; + +// +protected compiledPattern; + +// +protected converters; + +// +protected group; + +// +protected hostname; + +// +protected id; + +// +protected methods; + +// +protected match; + +// +protected name; + +// +protected paths; + +// +protected pattern; + +// +protected static uniqueId = 0; + +``` + +## Methods +```php +public function __construct( string $pattern, mixed $paths = null, mixed $httpMethods = null ); +``` +Phalcon\Mvc\Router\Route constructor + + +```php +public function beforeMatch( mixed $callback ): RouteInterface; +``` +Sets a callback that is called if the route is matched. +The developer can implement any arbitrary conditions here +If the callback returns false the route is treated as not matched + +```php +$router->add( + "/login", + [ + "module" => "admin", + "controller" => "session", + ] +)->beforeMatch( + function ($uri, $route) { + // Check if the request was made with Ajax + if ($_SERVER["HTTP_X_REQUESTED_WITH"] === "xmlhttprequest") { + return false; + } + + return true; + } +); +``` + + +```php +public function compilePattern( string $pattern ): string; +``` +Replaces placeholders from pattern returning a valid PCRE regular expression + + +```php +public function convert( string $name, mixed $converter ): RouteInterface; +``` +{@inheritdoc} + + +```php +public function extractNamedParams( string $pattern ): array | bool; +``` +Extracts parameters from a string + + +```php +public function getBeforeMatch(): callable; +``` +Returns the 'before match' callback if any + + +```php +public function getCompiledPattern(): string; +``` +Returns the route's compiled pattern + + +```php +public function getConverters(): array; +``` +Returns the router converter + + +```php +public function getGroup(): GroupInterface | null; +``` +Returns the group associated with the route + + +```php +public function getHostname(): string; +``` +Returns the hostname restriction if any + + +```php +public function getHttpMethods(): array | string; +``` +Returns the HTTP methods that constraint matching the route + + +```php +public function getId() +``` + + +```php +public function getMatch(): callable; +``` +Returns the 'match' callback if any + + +```php +public function getName(): string; +``` +Returns the route's name + + +```php +public function getPaths(): array; +``` +Returns the paths + + +```php +public function getPattern(): string; +``` +Returns the route's pattern + + +```php +public function getReversedPaths(): array; +``` +Returns the paths using positions as keys and names as values + + +```php +public function getRouteId(): string; +``` +Returns the route's id + + +```php +public function match( mixed $callback ): RouteInterface; +``` +Allows to set a callback to handle the request directly in the route + +```php +$router->add( + "/help", + [] +)->match( + function () { + return $this->getResponse()->redirect("https://support.google.com/", true); + } +); +``` + + +```php +public function reConfigure( string $pattern, mixed $paths = null ): void; +``` +Reconfigure the route adding a new pattern and a set of paths + + +```php +public function setGroup( GroupInterface $group ): RouteInterface; +``` +Sets the group associated with the route + + +```php +public function setHostname( string $hostname ): RouteInterface; +``` +Sets a hostname restriction to the route + +```php +$route->setHostname("localhost"); +``` + + +```php +public function setHttpMethods( mixed $httpMethods ): RouteInterface; +``` +Sets a set of HTTP methods that constraint the matching of the route (alias of via) + +```php +$route->setHttpMethods("GET"); + +$route->setHttpMethods( + [ + "GET", + "POST", + ] +); +``` + + +```php +public function setName( string $name ): RouteInterface; +``` +Sets the route's name + +```php +$router->add( + "/about", + [ + "controller" => "about", + ] +)->setName("about"); +``` + + +```php +public function via( mixed $httpMethods ): RouteInterface; +``` +Set one or more HTTP methods that constraint the matching of the route + +```php +$route->via("GET"); + +$route->via( + [ + "GET", + "POST", + ] +); +``` + + + + +

        Interface Phalcon\Mvc\Router\RouteInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/router/routeinterface.zep) + +| Namespace | Phalcon\Mvc\Router | + +Phalcon\Mvc\Router\RouteInterface + +Interface for Phalcon\Mvc\Router\Route + + +## Methods +```php +public function compilePattern( string $pattern ): string; +``` +Replaces placeholders from pattern returning a valid PCRE regular expression + + +```php +public function convert( string $name, mixed $converter ): RouteInterface; +``` +Adds a converter to perform an additional transformation for certain parameter. + + +```php +public function getCompiledPattern(): string; +``` +Returns the route's pattern + + +```php +public function getHostname(): string; +``` +Returns the hostname restriction if any + + +```php +public function getHttpMethods(): string | array; +``` +Returns the HTTP methods that constraint matching the route + + +```php +public function getName(): string; +``` +Returns the route's name + + +```php +public function getPaths(): array; +``` +Returns the paths + + +```php +public function getPattern(): string; +``` +Returns the route's pattern + + +```php +public function getReversedPaths(): array; +``` +Returns the paths using positions as keys and names as values + + +```php +public function getRouteId(): string; +``` +Returns the route's id + + +```php +public function reConfigure( string $pattern, mixed $paths = null ): void; +``` +Reconfigure the route adding a new pattern and a set of paths + + +```php +public function setHostname( string $hostname ): RouteInterface; +``` +Sets a hostname restriction to the route + + +```php +public function setHttpMethods( mixed $httpMethods ): RouteInterface; +``` +Sets a set of HTTP methods that constraint the matching of the route + + +```php +public function setName( string $name ): void; +``` +Sets the route's name + + +```php +public function via( mixed $httpMethods ): void; +``` +Set one or more HTTP methods that constraint the matching of the route + + + + +

        Interface Phalcon\Mvc\RouterInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/routerinterface.zep) + +| Namespace | Phalcon\Mvc | +| Uses | Phalcon\Mvc\Router, Phalcon\Mvc\Router\RouteInterface, Phalcon\Mvc\Router\GroupInterface | + +Interface for Phalcon\Mvc\Router + + +## Methods +```php +public function add( string $pattern, mixed $paths = null, mixed $httpMethods = null ): RouteInterface; +``` +Adds a route to the router on any HTTP method + + +```php +public function addConnect( string $pattern, mixed $paths = null ): RouteInterface; +``` +Adds a route to the router that only match if the HTTP method is CONNECT + + +```php +public function addDelete( string $pattern, mixed $paths = null ): RouteInterface; +``` +Adds a route to the router that only match if the HTTP method is DELETE + + +```php +public function addGet( string $pattern, mixed $paths = null ): RouteInterface; +``` +Adds a route to the router that only match if the HTTP method is GET + + +```php +public function addHead( string $pattern, mixed $paths = null ): RouteInterface; +``` +Adds a route to the router that only match if the HTTP method is HEAD + + +```php +public function addOptions( string $pattern, mixed $paths = null ): RouteInterface; +``` +Add a route to the router that only match if the HTTP method is OPTIONS + + +```php +public function addPatch( string $pattern, mixed $paths = null ): RouteInterface; +``` +Adds a route to the router that only match if the HTTP method is PATCH + + +```php +public function addPost( string $pattern, mixed $paths = null ): RouteInterface; +``` +Adds a route to the router that only match if the HTTP method is POST + + +```php +public function addPurge( string $pattern, mixed $paths = null ): RouteInterface; +``` +Adds a route to the router that only match if the HTTP method is PURGE +(Squid and Varnish support) + + +```php +public function addPut( string $pattern, mixed $paths = null ): RouteInterface; +``` +Adds a route to the router that only match if the HTTP method is PUT + + +```php +public function addTrace( string $pattern, mixed $paths = null ): RouteInterface; +``` +Adds a route to the router that only match if the HTTP method is TRACE + + +```php +public function attach( RouteInterface $route, mixed $position = static-constant-access ): RouterInterface; +``` +Attach Route object to the routes stack. + + +```php +public function clear(): void; +``` +Removes all the defined routes + + +```php +public function getActionName(): string; +``` +Returns processed action name + + +```php +public function getControllerName(): string; +``` +Returns processed controller name + + +```php +public function getMatchedRoute(): RouteInterface; +``` +Returns the route that matches the handled URI + + +```php +public function getMatches(): array; +``` +Return the sub expressions in the regular expression matched + + +```php +public function getModuleName(): string; +``` +Returns processed module name + + +```php +public function getNamespaceName(): string; +``` +Returns processed namespace name + + +```php +public function getParams(): array; +``` +Returns processed extra params + + +```php +public function getRouteById( mixed $id ): RouteInterface | bool; +``` +Returns a route object by its id + + +```php +public function getRouteByName( string $name ): RouteInterface | bool; +``` +Returns a route object by its name + + +```php +public function getRoutes(): RouteInterface[]; +``` +Return all the routes defined in the router + + +```php +public function handle( string $uri ): void; +``` +Handles routing information received from the rewrite engine + + +```php +public function mount( GroupInterface $group ): RouterInterface; +``` +Mounts a group of routes in the router + + +```php +public function setDefaultAction( string $actionName ): void; +``` +Sets the default action name + + +```php +public function setDefaultController( string $controllerName ): void; +``` +Sets the default controller name + + +```php +public function setDefaultModule( string $moduleName ): void; +``` +Sets the name of the default module + + +```php +public function setDefaults( array $defaults ): void; +``` +Sets an array of default paths + + +```php +public function wasMatched(): bool; +``` +Check if the router matches any of the defined routes + + + + +

        Class Phalcon\Mvc\View

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/view.zep) + +| Namespace | Phalcon\Mvc | +| Uses | Closure, Phalcon\Di\DiInterface, Phalcon\Di\Injectable, Phalcon\Events\ManagerInterface, Phalcon\Helper\Arr, Phalcon\Helper\Str, Phalcon\Mvc\View\Exception, Phalcon\Mvc\ViewInterface, Phalcon\Mvc\View\Engine\Php | +| Extends | Injectable | +| Implements | ViewInterface | + +Phalcon\Mvc\View + +Phalcon\Mvc\View is a class for working with the "view" portion of the +model-view-controller pattern. That is, it exists to help keep the view +script separate from the model and controller scripts. It provides a system +of helpers, output filters, and variable escaping. + +```php +use Phalcon\Mvc\View; + +$view = new View(); + +// Setting views directory +$view->setViewsDir("app/views/"); + +$view->start(); + +// Shows recent posts view (app/views/posts/recent.phtml) +$view->render("posts", "recent"); +$view->finish(); + +// Printing views output +echo $view->getContent(); +``` + + +## Constants +```php +const LEVEL_ACTION_VIEW = 1; +const LEVEL_AFTER_TEMPLATE = 4; +const LEVEL_BEFORE_TEMPLATE = 2; +const LEVEL_LAYOUT = 3; +const LEVEL_MAIN_LAYOUT = 5; +const LEVEL_NO_RENDER = 0; +``` + +## Properties +```php +// +protected actionName; + +// +protected activeRenderPaths; + +// +protected basePath = ; + +// +protected content = ; + +// +protected controllerName; + +// +protected currentRenderLevel = 0; + +// +protected disabled = false; + +// +protected disabledLevels; + +// +protected engines = false; + +// +protected layout; + +// +protected layoutsDir = ; + +// +protected mainView = index; + +// +protected options; + +// +protected params; + +// +protected pickView; + +// +protected partialsDir = ; + +// +protected registeredEngines; + +// +protected renderLevel = 5; + +// +protected templatesAfter; + +// +protected templatesBefore; + +// +protected viewsDirs; + +// +protected viewParams; + +``` + +## Methods +```php +public function __construct( array $options = [] ); +``` +Phalcon\Mvc\View constructor + + +```php +public function __get( string $key ): mixed | null; +``` +Magic method to retrieve a variable passed to the view + +```php +echo $this->view->products; +``` + + +```php +public function __isset( string $key ): bool; +``` +Magic method to retrieve if a variable is set in the view + +```php +echo isset($this->view->products); +``` + + +```php +public function __set( string $key, mixed $value ); +``` +Magic method to pass variables to the views + +```php +$this->view->products = $products; +``` + + +```php +public function cleanTemplateAfter(): View; +``` +Resets any template before layouts + + +```php +public function cleanTemplateBefore(): View; +``` +Resets any "template before" layouts + + +```php +public function disable(): View; +``` +Disables the auto-rendering process + + +```php +public function disableLevel( mixed $level ): ViewInterface; +``` +Disables a specific level of rendering + +```php +// Render all levels except ACTION level +$this->view->disableLevel( + View::LEVEL_ACTION_VIEW +); +``` + + +```php +public function enable(): View; +``` +Enables the auto-rendering process + + +```php +public function exists( string $view ): bool; +``` +Checks whether view exists + + +```php +public function finish(): View; +``` +Finishes the render process by stopping the output buffering + + +```php +public function getActionName(): string; +``` +Gets the name of the action rendered + + +```php +public function getActiveRenderPath(): string | array; +``` +Returns the path (or paths) of the views that are currently rendered + + +```php +public function getBasePath(): string; +``` +Gets base path + + +```php +public function getContent(): string; +``` +Returns output from another view stage + + +```php +public function getControllerName(): string; +``` +Gets the name of the controller rendered + + +```php +public function getCurrentRenderLevel() +``` + + +```php +public function getLayout(): string; +``` +Returns the name of the main view + + +```php +public function getLayoutsDir(): string; +``` +Gets the current layouts sub-directory + + +```php +public function getMainView(): string; +``` +Returns the name of the main view + + +```php +public function getParamsToView(): array; +``` +Returns parameters to views + + +```php +public function getPartial( string $partialPath, mixed $params = null ): string; +``` +Renders a partial view + +```php +// Retrieve the contents of a partial +echo $this->getPartial("shared/footer"); +``` + +```php +// Retrieve the contents of a partial with arguments +echo $this->getPartial( + "shared/footer", + [ + "content" => $html, + ] +); +``` + + +```php +public function getPartialsDir(): string; +``` +Gets the current partials sub-directory + + +```php +public function getRegisteredEngines() +``` + + +```php +public function getRender( string $controllerName, string $actionName, array $params = [], mixed $configCallback = null ): string; +``` +Perform the automatic rendering returning the output as a string + +```php +$template = $this->view->getRender( + "products", + "show", + [ + "products" => $products, + ] +); +``` + +@param mixed configCallback + + +```php +public function getRenderLevel() +``` + + +```php +public function getVar( string $key ); +``` +Returns a parameter previously set in the view + + +```php +public function getViewsDir(): string | array; +``` +Gets views directory + + +```php +public function isDisabled(): bool; +``` +Whether automatic rendering is enabled + + +```php +public function partial( string $partialPath, mixed $params = null ); +``` +Renders a partial view + +```php +// Show a partial inside another view +$this->partial("shared/footer"); +``` + +```php +// Show a partial inside another view with parameters +$this->partial( + "shared/footer", + [ + "content" => $html, + ] +); +``` + + +```php +public function pick( mixed $renderView ): View; +``` +Choose a different view to render instead of last-controller/last-action + +```php +use Phalcon\Mvc\Controller; + +class ProductsController extends Controller +{ + public function saveAction() + { + // Do some save stuff... + + // Then show the list view + $this->view->pick("products/list"); + } +} +``` + + +```php +public function processRender( string $controllerName, string $actionName, array $params = [], bool $fireEvents = bool ): bool; +``` +Processes the view and templates; Fires events if needed + + +```php +public function registerEngines( array $engines ): View; +``` +Register templating engines + +```php +$this->view->registerEngines( + [ + ".phtml" => \Phalcon\Mvc\View\Engine\Php::class, + ".volt" => \Phalcon\Mvc\View\Engine\Volt::class, + ".mhtml" => \MyCustomEngine::class, + ] +); +``` + + +```php +public function render( string $controllerName, string $actionName, array $params = [] ): View | bool; +``` +Executes render process from dispatching data + +```php +// Shows recent posts view (app/views/posts/recent.phtml) +$view->start()->render("posts", "recent")->finish(); +``` + + +```php +public function reset(): View; +``` +Resets the view component to its factory default values + + +```php +public function setBasePath( string $basePath ): View; +``` +Sets base path. Depending of your platform, always add a trailing slash +or backslash + +```php +$view->setBasePath(__DIR__ . "/"); +``` + + +```php +public function setContent( string $content ): View; +``` +Externally sets the view content + +```php +$this->view->setContent("

        hello

        "); +``` + + +```php +public function setLayout( string $layout ): View; +``` +Change the layout to be used instead of using the name of the latest +controller name + +```php +$this->view->setLayout("main"); +``` + + +```php +public function setLayoutsDir( string $layoutsDir ): View; +``` +Sets the layouts sub-directory. Must be a directory under the views +directory. Depending of your platform, always add a trailing slash or +backslash + +```php +$view->setLayoutsDir("../common/layouts/"); +``` + + +```php +public function setMainView( string $viewPath ): View; +``` +Sets default view name. Must be a file without extension in the views +directory + +```php +// Renders as main view views-dir/base.phtml +$this->view->setMainView("base"); +``` + + +```php +public function setParamToView( string $key, mixed $value ): View; +``` +Adds parameters to views (alias of setVar) + +```php +$this->view->setParamToView("products", $products); +``` + + +```php +public function setPartialsDir( string $partialsDir ): View; +``` +Sets a partials sub-directory. Must be a directory under the views +directory. Depending of your platform, always add a trailing slash or +backslash + +```php +$view->setPartialsDir("../common/partials/"); +``` + + +```php +public function setRenderLevel( int $level ): ViewInterface; +``` +Sets the render level for the view + +```php +// Render the view related to the controller only +$this->view->setRenderLevel( + View::LEVEL_LAYOUT +); +``` + + +```php +public function setTemplateAfter( mixed $templateAfter ): View; +``` +Sets a "template after" controller layout + + +```php +public function setTemplateBefore( mixed $templateBefore ): View; +``` +Sets a template before the controller layout + + +```php +public function setVar( string $key, mixed $value ): View; +``` +Set a single view parameter + +```php +$this->view->setVar("products", $products); +``` + + +```php +public function setVars( array $params, bool $merge = bool ): View; +``` +Set all the render params + +```php +$this->view->setVars( + [ + "products" => $products, + ] +); +``` + + +```php +public function setViewsDir( mixed $viewsDir ): View; +``` +Sets the views directory. Depending of your platform, +always add a trailing slash or backslash + + +```php +public function start(): View; +``` +Starts rendering process enabling the output buffering + + +```php +public function toString( string $controllerName, string $actionName, array $params = [] ): string; +``` +Renders the view and returns it as a string + + +```php +protected function engineRender( array $engines, string $viewPath, bool $silence, bool $mustClean = bool ); +``` +Checks whether view exists on registered extensions and render it + + +```php +protected function getViewsDirs(): array; +``` +Gets views directories + + +```php +final protected function isAbsolutePath( string $path ); +``` +Checks if a path is absolute or not + + +```php +protected function loadTemplateEngines(): array; +``` +Loads registered template engines, if none is registered it will use +Phalcon\Mvc\View\Engine\Php + + + + +

        Abstract Class Phalcon\Mvc\View\Engine\AbstractEngine

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/view/engine/abstractengine.zep) + +| Namespace | Phalcon\Mvc\View\Engine | +| Uses | Phalcon\Di\DiInterface, Phalcon\Di\Injectable, Phalcon\Mvc\ViewBaseInterface | +| Extends | Injectable | +| Implements | EngineInterface | + +All the template engine adapters must inherit this class. This provides +basic interfacing between the engine and the Phalcon\Mvc\View component. + + +## Properties +```php +// +protected view; + +``` + +## Methods +```php +public function __construct( ViewBaseInterface $view, DiInterface $container = null ); +``` +Phalcon\Mvc\View\Engine constructor + + +```php +public function getContent(): string; +``` +Returns cached output on another view stage + + +```php +public function getView(): ViewBaseInterface; +``` +Returns the view component related to the adapter + + +```php +public function partial( string $partialPath, mixed $params = null ): string; +``` +Renders a partial inside another view + +@param array params + + + + +

        Interface Phalcon\Mvc\View\Engine\EngineInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/view/engine/engineinterface.zep) + +| Namespace | Phalcon\Mvc\View\Engine | + +Interface for Phalcon\Mvc\View engine adapters + + +## Methods +```php +public function getContent(): string; +``` +Returns cached output on another view stage + + +```php +public function partial( string $partialPath, mixed $params = null ): string; +``` +Renders a partial inside another view + + +```php +public function render( string $path, mixed $params, bool $mustClean = bool ); +``` +Renders a view using the template engine + + + + +

        Class Phalcon\Mvc\View\Engine\Php

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/view/engine/php.zep) + +| Namespace | Phalcon\Mvc\View\Engine | +| Uses | Phalcon\Mvc\View\Engine\AbstractEngine | +| Extends | AbstractEngine | + +Adapter to use PHP itself as templating engine + + +## Methods +```php +public function render( string $path, mixed $params, bool $mustClean = bool ); +``` +Renders a view using the template engine + + + + +

        Class Phalcon\Mvc\View\Engine\Volt

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/view/engine/volt.zep) + +| Namespace | Phalcon\Mvc\View\Engine | +| Uses | Phalcon\Di\DiInterface, Phalcon\Mvc\View\Engine\AbstractEngine, Phalcon\Mvc\View\Engine\Volt\Compiler, Phalcon\Mvc\View\Exception | +| Extends | AbstractEngine | + +Designer friendly and fast template engine for PHP written in Zephir/C + + +## Properties +```php +// +protected compiler; + +// +protected macros; + +// +protected options; + +``` + +## Methods +```php +public function callMacro( string $name, array $arguments = [] ): mixed; +``` +Checks if a macro is defined and calls it + + +```php +public function convertEncoding( string $text, string $from, string $to ): string; +``` +Performs a string conversion + + +```php +public function getCompiler(): Compiler; +``` +Returns the Volt's compiler + + +```php +public function getOptions(): array; +``` +Return Volt's options + + +```php +public function isIncluded( mixed $needle, mixed $haystack ): bool; +``` +Checks if the needle is included in the haystack + + +```php +public function length( mixed $item ): int; +``` +Length filter. If an array/object is passed a count is performed otherwise a strlen/mb_strlen + + +```php +public function render( string $templatePath, mixed $params, bool $mustClean = bool ); +``` +Renders a view using the template engine + + +```php +public function setOptions( array $options ); +``` +Set Volt's options + + +```php +public function slice( mixed $value, int $start = int, mixed $end = null ); +``` +Extracts a slice from a string/array/traversable object value + + +```php +public function sort( array $value ): array; +``` +Sorts an array + + + + +

        Class Phalcon\Mvc\View\Engine\Volt\Compiler

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/view/engine/volt/compiler.zep) + +| Namespace | Phalcon\Mvc\View\Engine\Volt | +| Uses | Closure, Phalcon\Di\DiInterface, Phalcon\Mvc\ViewBaseInterface, Phalcon\Di\InjectionAwareInterface, Phalcon\Mvc\View\Engine\Volt\Exception | +| Implements | InjectionAwareInterface | + +This class reads and compiles Volt templates into PHP plain code + +```php +$compiler = new \Phalcon\Mvc\View\Engine\Volt\Compiler(); + +$compiler->compile("views/partials/header.volt"); + +require $compiler->getCompiledTemplatePath(); +``` + + +## Properties +```php +// +protected autoescape = false; + +// +protected blockLevel = 0; + +// +protected blocks; + +// +protected container; + +// +protected compiledTemplatePath; + +// +protected currentBlock; + +// +protected currentPath; + +// +protected exprLevel = 0; + +// +protected extended = false; + +// +protected extensions; + +// +protected extendedBlocks; + +// +protected filters; + +// +protected foreachLevel = 0; + +// +protected forElsePointers; + +// +protected functions; + +// +protected level = 0; + +// +protected loopPointers; + +// +protected macros; + +// +protected options; + +// +protected prefix; + +// +protected view; + +``` + +## Methods +```php +public function __construct( ViewBaseInterface $view = null ); +``` +Phalcon\Mvc\View\Engine\Volt\Compiler + + +```php +public function addExtension( mixed $extension ): Compiler; +``` +Registers a Volt's extension + + +```php +public function addFilter( string $name, mixed $definition ): Compiler; +``` +Register a new filter in the compiler + + +```php +public function addFunction( string $name, mixed $definition ): Compiler; +``` +Register a new function in the compiler + + +```php +public function attributeReader( array $expr ): string; +``` +Resolves attribute reading + + +```php +public function compile( string $templatePath, bool $extendsMode = bool ); +``` +Compiles a template into a file applying the compiler options +This method does not return the compiled path if the template was not compiled + +```php +$compiler->compile("views/layouts/main.volt"); + +require $compiler->getCompiledTemplatePath(); +``` + + +```php +public function compileAutoEscape( array $statement, bool $extendsMode ): string; +``` +Compiles a "autoescape" statement returning PHP code + + +```php +public function compileCache( array $statement, bool $extendsMode = bool ): string; +``` +Compiles a "cache" statement returning PHP code + + +```php +public function compileCall( array $statement, bool $extendsMode ); +``` +Compiles calls to macros + + +```php +public function compileCase( array $statement, bool $caseClause = bool ): string; +``` +Compiles a "case"/"default" clause returning PHP code + + +```php +public function compileDo( array $statement ): string; +``` +Compiles a "do" statement returning PHP code + + +```php +public function compileEcho( array $statement ): string; +``` +Compiles a {% raw %}`{{` `}}`{% endraw %} statement returning PHP code + + +```php +public function compileElseIf( array $statement ): string; +``` +Compiles a "elseif" statement returning PHP code + + +```php +public function compileFile( string $path, string $compiledPath, bool $extendsMode = bool ); +``` +Compiles a template into a file forcing the destination path + +```php +$compiler->compileFile( + "views/layouts/main.volt", + "views/layouts/main.volt.php" +); +``` + +@return string|array + + +```php +public function compileForElse(): string; +``` +Generates a 'forelse' PHP code + + +```php +public function compileForeach( array $statement, bool $extendsMode = bool ): string; +``` +Compiles a "foreach" intermediate code representation into plain PHP code + + +```php +public function compileIf( array $statement, bool $extendsMode = bool ): string; +``` +Compiles a 'if' statement returning PHP code + + +```php +public function compileInclude( array $statement ): string; +``` +Compiles a 'include' statement returning PHP code + + +```php +public function compileMacro( array $statement, bool $extendsMode ): string; +``` +Compiles macros + + +```php +public function compileReturn( array $statement ): string; +``` +Compiles a "return" statement returning PHP code + + +```php +public function compileSet( array $statement ): string; +``` +Compiles a "set" statement returning PHP code + + +```php +public function compileString( string $viewCode, bool $extendsMode = bool ): string; +``` +Compiles a template into a string + +```php +echo $compiler->compileString({% raw %}'{{ "hello world" }}'{% endraw %}); +``` + + +```php +public function compileSwitch( array $statement, bool $extendsMode = bool ): string; +``` +Compiles a 'switch' statement returning PHP code + + +```php +final public function expression( array $expr ): string; +``` +Resolves an expression node in an AST volt tree + + +```php +final public function fireExtensionEvent( string $name, mixed $arguments = null ); +``` +Fires an event to registered extensions + +@param array arguments +@return mixed + + +```php +public function functionCall( array $expr ): string; +``` +Resolves function intermediate code into PHP function calls + + +```php +public function getCompiledTemplatePath(): string; +``` +Returns the path to the last compiled template + + +```php +public function getDI(): DiInterface; +``` +Returns the internal dependency injector + + +```php +public function getExtensions(): array; +``` +Returns the list of extensions registered in Volt + + +```php +public function getFilters(): array; +``` +Register the user registered filters + + +```php +public function getFunctions(): array; +``` +Register the user registered functions + + +```php +public function getOption( string $option ); +``` +Returns a compiler's option + +@return string + + +```php +public function getOptions(): array; +``` +Returns the compiler options + + +```php +public function getTemplatePath(): string; +``` +Returns the path that is currently being compiled + + +```php +public function getUniquePrefix(): string; +``` +Return a unique prefix to be used as prefix for compiled variables and +contexts + + +```php +public function parse( string $viewCode ); +``` +Parses a Volt template returning its intermediate representation + +```php +print_r( + $compiler->parse("{% raw %}{{ 3 + 2 }}{% endraw %}") +); +``` + +@return array + + +```php +public function resolveTest( array $test, string $left ): string; +``` +Resolves filter intermediate code into a valid PHP expression + + +```php +public function setDI( DiInterface $container ): void; +``` +Sets the dependency injector + + +```php +public function setOption( string $option, mixed $value ); +``` +Sets a single compiler option + +@param mixed value + + +```php +public function setOptions( array $options ); +``` +Sets the compiler options + + +```php +public function setUniquePrefix( string $prefix ): Compiler; +``` +Set a unique prefix to be used as prefix for compiled variables + + +```php +protected function compileSource( string $viewCode, bool $extendsMode = bool ): string; +``` +Compiles a Volt source code returning a PHP plain version + + +```php +protected function getFinalPath( string $path ); +``` +Gets the final path with VIEW + + +```php +final protected function resolveFilter( array $filter, string $left ): string; +``` +Resolves filter intermediate code into PHP function calls + + +```php +final protected function statementList( array $statements, bool $extendsMode = bool ): string; +``` +Traverses a statement list compiling each of its nodes + + +```php +final protected function statementListOrExtends( mixed $statements ); +``` +Compiles a block of statements + +@param array statements +@return string|array + + + + +

        Class Phalcon\Mvc\View\Engine\Volt\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/view/engine/volt/exception.zep) + +| Namespace | Phalcon\Mvc\View\Engine\Volt | +| Uses | Phalcon\Mvc\View\Exception | +| Extends | BaseException | + +Class for exceptions thrown by Phalcon\Mvc\View + + +## Properties +```php +// +protected statement; + +``` + +## Methods +```php +public function __construct( string $message = string, array $statement = [], int $code = int, \Exception $previous = null ); +``` +// + +```php +public function getStatement(): array; +``` +Gets currently parsed statement (if any). + + + + +

        Class Phalcon\Mvc\View\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/view/exception.zep) + +| Namespace | Phalcon\Mvc\View | +| Extends | \Phalcon\Exception | + +Phalcon\Mvc\View\Exception + +Class for exceptions thrown by Phalcon\Mvc\View + + + +

        Class Phalcon\Mvc\View\Simple

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/view/simple.zep) + +| Namespace | Phalcon\Mvc\View | +| Uses | Closure, Phalcon\Di\DiInterface, Phalcon\Di\Injectable, Phalcon\Helper\Arr, Phalcon\Helper\Str, Phalcon\Mvc\View\Exception, Phalcon\Mvc\ViewBaseInterface, Phalcon\Mvc\View\Engine\EngineInterface, Phalcon\Mvc\View\Engine\Php | +| Extends | Injectable | +| Implements | ViewBaseInterface | + +Phalcon\Mvc\View\Simple + +This component allows to render views without hierarchical levels + +```php +use Phalcon\Mvc\View\Simple as View; + +$view = new View(); + +// Render a view +echo $view->render( + "templates/my-view", + [ + "some" => $param, + ] +); + +// Or with filename with extension +echo $view->render( + "templates/my-view.volt", + [ + "parameter" => $here, + ] +); +``` + + +## Properties +```php +// +protected activeRenderPath; + +// +protected content; + +/** + * @var \Phalcon\Mvc\View\EngineInterface[]|false + */ +protected engines = false; + +// +protected options; + +// +protected partialsDir; + +/** + * @var array|null + */ +protected registeredEngines; + +// +protected viewsDir; + +// +protected viewParams; + +``` + +## Methods +```php +public function __construct( array $options = [] ); +``` +Phalcon\Mvc\View\Simple constructor + + +```php +public function __get( string $key ): mixed | null; +``` +Magic method to retrieve a variable passed to the view + +```php +echo $this->view->products; +``` + + +```php +public function __set( string $key, mixed $value ); +``` +Magic method to pass variables to the views + +```php +$this->view->products = $products; +``` + + +```php +public function getActiveRenderPath(): string; +``` +Returns the path of the view that is currently rendered + + +```php +public function getContent(): string; +``` +Returns output from another view stage + + +```php +public function getParamsToView(): array; +``` +Returns parameters to views + + +```php +public function getRegisteredEngines(): array|null +``` + + +```php +public function getVar( string $key ): mixed | null; +``` +Returns a parameter previously set in the view + + +```php +public function getViewsDir(): string; +``` +Gets views directory + + +```php +public function partial( string $partialPath, mixed $params = null ); +``` +Renders a partial view + +```php +// Show a partial inside another view +$this->partial("shared/footer"); +``` + +```php +// Show a partial inside another view with parameters +$this->partial( + "shared/footer", + [ + "content" => $html, + ] +); +``` + + +```php +public function registerEngines( array $engines ); +``` +Register templating engines + +```php +$this->view->registerEngines( + [ + ".phtml" => \Phalcon\Mvc\View\Engine\Php::class, + ".volt" => \Phalcon\Mvc\View\Engine\Volt::class, + ".mhtml" => \MyCustomEngine::class, + ] +); +``` + + +```php +public function render( string $path, array $params = [] ): string; +``` +Renders a view + + +```php +public function setContent( string $content ): Simple; +``` +Externally sets the view content + +```php +$this->view->setContent("

        hello

        "); +``` + + +```php +public function setParamToView( string $key, mixed $value ): Simple; +``` +Adds parameters to views (alias of setVar) + +```php +$this->view->setParamToView("products", $products); +``` + + +```php +public function setVar( string $key, mixed $value ): Simple; +``` +Set a single view parameter + +```php +$this->view->setVar("products", $products); +``` + + +```php +public function setVars( array $params, bool $merge = bool ): Simple; +``` +Set all the render params + +```php +$this->view->setVars( + [ + "products" => $products, + ] +); +``` + + +```php +public function setViewsDir( string $viewsDir ); +``` +Sets views directory + + +```php +final protected function internalRender( string $path, mixed $params ); +``` +Tries to render the view with every engine registered in the component + +@param array params + + +```php +protected function loadTemplateEngines(): array; +``` +Loads registered template engines, if none are registered it will use +Phalcon\Mvc\View\Engine\Php + + + + +

        Interface Phalcon\Mvc\ViewBaseInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/viewbaseinterface.zep) + +| Namespace | Phalcon\Mvc | +| Uses | Phalcon\Cache\Adapter\AdapterInterface | + +Phalcon\Mvc\ViewInterface + +Interface for Phalcon\Mvc\View and Phalcon\Mvc\View\Simple + + +## Methods +```php +public function getContent(): string; +``` +Returns cached output from another view stage + + +```php +public function getParamsToView(): array; +``` +Returns parameters to views + + +```php +public function getViewsDir(): string | array; +``` +Gets views directory + + +```php +public function partial( string $partialPath, mixed $params = null ); +``` +Renders a partial view + + +```php +public function setContent( string $content ); +``` +Externally sets the view content + + +```php +public function setParamToView( string $key, mixed $value ); +``` +Adds parameters to views (alias of setVar) + + +```php +public function setVar( string $key, mixed $value ); +``` +Adds parameters to views + + +```php +public function setViewsDir( string $viewsDir ); +``` +Sets views directory. Depending of your platform, always add a trailing +slash or backslash + + + + +

        Interface Phalcon\Mvc\ViewInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/viewinterface.zep) + +| Namespace | Phalcon\Mvc | +| Extends | ViewBaseInterface | + +Phalcon\Mvc\ViewInterface + +Interface for Phalcon\Mvc\View + + +## Methods +```php +public function cleanTemplateAfter(); +``` +Resets any template before layouts + + +```php +public function cleanTemplateBefore(); +``` +Resets any template before layouts + + +```php +public function disable(); +``` +Disables the auto-rendering process + + +```php +public function enable(); +``` +Enables the auto-rendering process + + +```php +public function finish(); +``` +Finishes the render process by stopping the output buffering + + +```php +public function getActionName(): string; +``` +Gets the name of the action rendered + + +```php +public function getActiveRenderPath(): string | array; +``` +Returns the path of the view that is currently rendered + + +```php +public function getBasePath(): string; +``` +Gets base path + + +```php +public function getControllerName(): string; +``` +Gets the name of the controller rendered + + +```php +public function getLayout(): string; +``` +Returns the name of the main view + + +```php +public function getLayoutsDir(): string; +``` +Gets the current layouts sub-directory + + +```php +public function getMainView(): string; +``` +Returns the name of the main view + + +```php +public function getPartialsDir(): string; +``` +Gets the current partials sub-directory + + +```php +public function isDisabled(): bool; +``` +Whether the automatic rendering is disabled + + +```php +public function pick( string $renderView ); +``` +Choose a view different to render than last-controller/last-action + + +```php +public function registerEngines( array $engines ); +``` +Register templating engines + + +```php +public function render( string $controllerName, string $actionName, array $params = [] ): ViewInterface | bool; +``` +Executes render process from dispatching data + + +```php +public function reset(); +``` +Resets the view component to its factory default values + + +```php +public function setBasePath( string $basePath ); +``` +Sets base path. Depending of your platform, always add a trailing slash +or backslash + + +```php +public function setLayout( string $layout ); +``` +Change the layout to be used instead of using the name of the latest +controller name + + +```php +public function setLayoutsDir( string $layoutsDir ); +``` +Sets the layouts sub-directory. Must be a directory under the views +directory. Depending of your platform, always add a trailing slash or +backslash + + +```php +public function setMainView( string $viewPath ); +``` +Sets default view name. Must be a file without extension in the views +directory + + +```php +public function setPartialsDir( string $partialsDir ); +``` +Sets a partials sub-directory. Must be a directory under the views +directory. Depending of your platform, always add a trailing slash or +backslash + + +```php +public function setRenderLevel( int $level ): ViewInterface; +``` +Sets the render level for the view + + +```php +public function setTemplateAfter( mixed $templateAfter ); +``` +Appends template after controller layout + +@param string|array templateAfter + + +```php +public function setTemplateBefore( mixed $templateBefore ); +``` +Appends template before controller layout + +@param string|array templateBefore + + +```php +public function start(); +``` +Starts rendering process enabling the output buffering + + diff --git a/nikos/api/Phalcon_Paginator.md b/nikos/api/Phalcon_Paginator.md new file mode 100644 index 00000000000..bf8e184ef13 --- /dev/null +++ b/nikos/api/Phalcon_Paginator.md @@ -0,0 +1,566 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Paginator' +--- + +* [Phalcon\Paginator\Adapter\AbstractAdapter](#paginator-adapter-abstractadapter) +* [Phalcon\Paginator\Adapter\AdapterInterface](#paginator-adapter-adapterinterface) +* [Phalcon\Paginator\Adapter\Model](#paginator-adapter-model) +* [Phalcon\Paginator\Adapter\NativeArray](#paginator-adapter-nativearray) +* [Phalcon\Paginator\Adapter\QueryBuilder](#paginator-adapter-querybuilder) +* [Phalcon\Paginator\Exception](#paginator-exception) +* [Phalcon\Paginator\PaginatorFactory](#paginator-paginatorfactory) +* [Phalcon\Paginator\Repository](#paginator-repository) +* [Phalcon\Paginator\RepositoryInterface](#paginator-repositoryinterface) + +

        Abstract Class Phalcon\Paginator\Adapter\AbstractAdapter

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/paginator/adapter/abstractadapter.zep) + +| Namespace | Phalcon\Paginator\Adapter | +| Uses | Phalcon\Paginator\Repository, Phalcon\Paginator\RepositoryInterface | +| Implements | AdapterInterface | + +Phalcon\Paginator\Adapter\AbstractAdapter + + +## Properties +```php +/** + * Configuration of paginator + */ +protected config; + +/** + * Number of rows to show in the paginator. By default is null + */ +protected limitRows; + +/** + * Current page in paginate + */ +protected page; + +/** + * Repository for pagination + * + * @var RepositoryInterface + */ +protected repository; + +``` + +## Methods +```php +public function __construct( array $config ): void; +``` +Phalcon\Paginator\Adapter\AbstractAdapter constructor + + +```php +public function getLimit(): int; +``` +Get current rows limit + + +```php +public function setCurrentPage( int $page ): Adapter; +``` +Set the current page number + + +```php +public function setLimit( int $limitRows ): Adapter; +``` +Set current rows limit + + +```php +public function setRepository( RepositoryInterface $repository ): Adapter; +``` +Sets current repository for pagination + + +```php +protected function getRepository( array $properties = null ): RepositoryInterface; +``` +Gets current repository for pagination + + + + +

        Interface Phalcon\Paginator\Adapter\AdapterInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/paginator/adapter/adapterinterface.zep) + +| Namespace | Phalcon\Paginator\Adapter | +| Uses | Phalcon\Paginator\RepositoryInterface | + +Phalcon\Paginator\AdapterInterface + +Interface for Phalcon\Paginator adapters + + +## Methods +```php +public function getLimit(): int; +``` +Get current rows limit + + +```php +public function paginate(): RepositoryInterface; +``` +Returns a slice of the resultset to show in the pagination + + +```php +public function setCurrentPage( int $page ); +``` +Set the current page number + + +```php +public function setLimit( int $limit ); +``` +Set current rows limit + + + + +

        Class Phalcon\Paginator\Adapter\Model

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/paginator/adapter/model.zep) + +| Namespace | Phalcon\Paginator\Adapter | +| Uses | Phalcon\Paginator\Exception, Phalcon\Paginator\Adapter\AbstractAdapter, Phalcon\Paginator\RepositoryInterface | +| Extends | AbstractAdapter | + +Phalcon\Paginator\Adapter\Model + +This adapter allows to paginate data using a Phalcon\Mvc\Model resultset as a +base. + +```php +use Phalcon\Paginator\Adapter\Model; + +$paginator = new Model( + [ + "data" => Robots::find(), + "limit" => 25, + "page" => $currentPage, + ] +); + +$paginate = $paginator->paginate(); +``` + + +## Methods +```php +public function paginate(): RepositoryInterface; +``` +Returns a slice of the resultset to show in the pagination + + + + +

        Class Phalcon\Paginator\Adapter\NativeArray

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/paginator/adapter/nativearray.zep) + +| Namespace | Phalcon\Paginator\Adapter | +| Uses | Phalcon\Paginator\Exception, Phalcon\Paginator\Adapter\AbstractAdapter, Phalcon\Paginator\RepositoryInterface | +| Extends | AbstractAdapter | + +Phalcon\Paginator\Adapter\NativeArray + +Pagination using a PHP array as source of data + +```php +use Phalcon\Paginator\Adapter\NativeArray; + +$paginator = new NativeArray( + [ + "data" => [ + ["id" => 1, "name" => "Artichoke"], + ["id" => 2, "name" => "Carrots"], + ["id" => 3, "name" => "Beet"], + ["id" => 4, "name" => "Lettuce"], + ["id" => 5, "name" => ""], + ], + "limit" => 2, + "page" => $currentPage, + ] +); +``` + + +## Methods +```php +public function paginate(): RepositoryInterface; +``` +Returns a slice of the resultset to show in the pagination + + + + +

        Class Phalcon\Paginator\Adapter\QueryBuilder

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/paginator/adapter/querybuilder.zep) + +| Namespace | Phalcon\Paginator\Adapter | +| Uses | Phalcon\Db\Enum, Phalcon\Mvc\Model\Query\Builder, Phalcon\Paginator\Adapter\AbstractAdapter, Phalcon\Paginator\RepositoryInterface, Phalcon\Paginator\Exception | +| Extends | AbstractAdapter | + +Phalcon\Paginator\Adapter\QueryBuilder + +Pagination using a PHQL query builder as source of data + +```php +use Phalcon\Paginator\Adapter\QueryBuilder; + +$builder = $this->modelsManager->createBuilder() + ->columns("id, name") + ->from(Robots::class) + ->orderBy("name"); + +$paginator = new QueryBuilder( + [ + "builder" => $builder, + "limit" => 20, + "page" => 1, + ] +); +``` + + +## Properties +```php +/** + * Paginator's data + */ +protected builder; + +/** + * Columns for count query if builder has having + */ +protected columns; + +``` + +## Methods +```php +public function __construct( array $config ): void; +``` +Phalcon\Paginator\Adapter\QueryBuilder + + +```php +public function getCurrentPage(): int; +``` +Get the current page number + + +```php +public function getQueryBuilder(): Builder; +``` +Get query builder object + + +```php +public function paginate(): RepositoryInterface; +``` +Returns a slice of the resultset to show in the pagination + + +```php +public function setQueryBuilder( Builder $builder ): QueryBuilder; +``` +Set query builder object + + + + +

        Class Phalcon\Paginator\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/paginator/exception.zep) + +| Namespace | Phalcon\Paginator | +| Extends | \Phalcon\Exception | + +Phalcon\Paginator\Exception + +Exceptions thrown in Phalcon\Paginator will use this class + + + +

        Class Phalcon\Paginator\PaginatorFactory

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/paginator/paginatorfactory.zep) + +| Namespace | Phalcon\Paginator | +| Uses | Phalcon\Paginator\Adapter\AbstractAdapter, Phalcon\Factory\AbstractFactory, Phalcon\Helper\Arr | +| Extends | AbstractFactory | + +This file is part of the Phalcon Framework. + +(c) Phalcon Team + +For the full copyright and license information, please view the LICENSE.txt +file that was distributed with this source code. + + +## Methods +```php +public function __construct( array $services = [] ); +``` +AdapterFactory constructor. + + +```php +public function load( mixed $config ): mixed; +``` +Factory to create an instace from a Config object + +```php +use Phalcon\Paginator\PaginatorFactory; + +$builder = $this + ->modelsManager + ->createBuilder() + ->columns("id, name") + ->from(Robots::class) + ->orderBy("name"); + +$options = [ + "builder" => $builder, + "limit" => 20, + "page" => 1, + "adapter" => "queryBuilder", +]; + +$paginator = (new PaginatorFactory())->load($options); +``` + + +```php +public function newInstance( string $name, array $options = [] ): AbstractAdapter; +``` +Create a new instance of the adapter + + +```php +protected function getAdapters(): array; +``` +// + + + +

        Class Phalcon\Paginator\Repository

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/paginator/repository.zep) + +| Namespace | Phalcon\Paginator | +| Uses | Phalcon\Helper\Arr | +| Implements | RepositoryInterface | + +Phalcon\Paginator\Repository + +Repository of current state Phalcon\Paginator\AdapterInterface::paginate() + + +## Properties +```php +/** + * @var array + */ +protected aliases; + +/** + * @var array + */ +protected properties; + +``` + +## Methods +```php +public function __get( string $property ): mixed | null; +``` +{@inheritdoc} + + +```php +public function getAliases(): array; +``` +{@inheritdoc} + + +```php +public function getCurrent(): int; +``` +{@inheritdoc} + + +```php +public function getFirst(): int; +``` +{@inheritdoc} + + +```php +public function getItems(): mixed; +``` +{@inheritdoc} + + +```php +public function getLast(): int; +``` +{@inheritdoc} + + +```php +public function getLimit(): int; +``` +{@inheritdoc} + + +```php +public function getNext(): int; +``` +{@inheritdoc} + + +```php +public function getPrevious(): int; +``` +{@inheritdoc} + + +```php +public function getTotalItems(): int; +``` +{@inheritdoc} + + +```php +public function setAliases( array $aliases ): RepositoryInterface; +``` +{@inheritdoc} + + +```php +public function setProperties( array $properties ): RepositoryInterface; +``` +{@inheritdoc} + + +```php +protected function getProperty( string $property, mixed $defaultValue = null ): mixed; +``` +Gets value of property by name + + +```php +protected function getRealNameProperty( string $property ): string; +``` +Resolve alias property name + + + + +

        Interface Phalcon\Paginator\RepositoryInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/paginator/repositoryinterface.zep) + +| Namespace | Phalcon\Paginator | + +Phalcon\Paginator\RepositoryInterface + +Interface for the repository of current state +Phalcon\Paginator\AdapterInterface::paginate() + + +## Constants +```php +const PROPERTY_CURRENT_PAGE = current; +const PROPERTY_FIRST_PAGE = first; +const PROPERTY_ITEMS = items; +const PROPERTY_LAST_PAGE = last; +const PROPERTY_LIMIT = limit; +const PROPERTY_NEXT_PAGE = next; +const PROPERTY_PREVIOUS_PAGE = previous; +const PROPERTY_TOTAL_ITEMS = total_items; +``` + +## Methods +```php +public function getAliases(): array; +``` +Gets the aliases for properties repository + + +```php +public function getCurrent(): int; +``` +Gets number of the current page + + +```php +public function getFirst(): int; +``` +Gets number of the first page + + +```php +public function getItems(): mixed; +``` +Gets the items on the current page + + +```php +public function getLast(): int; +``` +Gets number of the last page + + +```php +public function getLimit(): int; +``` +Gets current rows limit + + +```php +public function getNext(): int; +``` +Gets number of the next page + + +```php +public function getPrevious(): int; +``` +Gets number of the previous page + + +```php +public function getTotalItems(): int; +``` +Gets the total number of items + + +```php +public function setAliases( array $aliases ): RepositoryInterface; +``` +Sets the aliases for properties repository + + +```php +public function setProperties( array $properties ): RepositoryInterface; +``` +Sets values for properties of the repository + + diff --git a/nikos/api/Phalcon_Registry.md b/nikos/api/Phalcon_Registry.md new file mode 100644 index 00000000000..87bb67d736a --- /dev/null +++ b/nikos/api/Phalcon_Registry.md @@ -0,0 +1,222 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Registry' +--- + +* [Phalcon\Registry](#registry) + +

        Final Class Phalcon\Registry

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/registry.zep) + +| Namespace | Phalcon | +| Uses | Phalcon\Collection, Traversable | +| Extends | Collection | + +Phalcon\Registry + +A registry is a container for storing objects and values in the application +space. By storing the value in a registry, the same object is always +available throughout your application. + +```php +$registry = new \Phalcon\Registry(); + +// Set value +$registry->something = "something"; +// or +$registry["something"] = "something"; + +// Get value +$value = $registry->something; +// or +$value = $registry["something"]; + +// Check if the key exists +$exists = isset($registry->something); +// or +$exists = isset($registry["something"]); + +// Unset +unset($registry->something); +// or +unset($registry["something"]); +``` + +In addition to ArrayAccess, Phalcon\Registry also implements Countable +(count($registry) will return the number of elements in the registry), +Serializable and Iterator (you can iterate over the registry using a foreach +loop) interfaces. For PHP 5.4 and higher, JsonSerializable interface is +implemented. + +Phalcon\Registry is very fast (it is typically faster than any userspace +implementation of the registry); however, this comes at a price: +Phalcon\Registry is a final class and cannot be inherited from. + +Though Phalcon\Registry exposes methods like __get(), offsetGet(), count() etc, +it is not recommended to invoke them manually (these methods exist mainly to +match the interfaces the registry implements): $registry->__get("property") +is several times slower than $registry->property. + +Internally all the magic methods (and interfaces except JsonSerializable) +are implemented using object handlers or similar techniques: this allows to +bypass relatively slow method calls. + + +## Methods +```php +final public function __construct( array $data = null ): void; +``` +Constructor + + +```php +final public function __get( string $element ): mixed; +``` +Magic getter to get an element from the collection + + +```php +final public function __isset( string $element ): bool; +``` +Magic isset to check whether an element exists or not + + +```php +final public function __set( string $element, mixed $value ): void; +``` +Magic setter to assign values to an element + + +```php +final public function __unset( string $element ): void; +``` +Magic unset to remove an element from the collection + + +```php +final public function clear(): void; +``` +Clears the internal collection + + +```php +final public function count(): int; +``` +Count elements of an object + +@link https://php.net/manual/en/countable.count.php + + +```php +final public function get( string $element, mixed $defaultValue = null ): mixed; +``` +Get the element from the collection + + +```php +final public function getIterator(): Traversable; +``` +Returns the iterator of the class + + +```php +final public function has( string $element ): bool; +``` +Get the element from the collection + + +```php +final public function init( array $data = [] ): void; +``` +Initialize internal array + + +```php +final public function jsonSerialize(): array; +``` +Specify data which should be serialized to JSON + +@link https://php.net/manual/en/jsonserializable.jsonserialize.php + + +```php +final public function offsetExists( mixed $element ): bool; +``` +Whether a offset exists + +@link https://php.net/manual/en/arrayaccess.offsetexists.php + + +```php +final public function offsetGet( mixed $element ): mixed; +``` +Offset to retrieve + +@link https://php.net/manual/en/arrayaccess.offsetget.php + + +```php +final public function offsetSet( mixed $element, mixed $value ): void; +``` +Offset to set + +@link https://php.net/manual/en/arrayaccess.offsetset.php + + +```php +final public function offsetUnset( mixed $element ): void; +``` +Offset to unset + +@link https://php.net/manual/en/arrayaccess.offsetunset.php + + +```php +final public function remove( string $element ): void; +``` +Delete the element from the collection + + +```php +final public function serialize(): string; +``` +String representation of object + +@link https://php.net/manual/en/serializable.serialize.php + + +```php +final public function set( string $element, mixed $value ): void; +``` +Set an element in the collection + + +```php +final public function toArray(): array; +``` +Returns the object in an array format + + +```php +final public function toJson( int $options = int ): string; +``` +Returns the object in a JSON format + +The default string uses the following options for json_encode + +JSON_HEX_TAG, JSON_HEX_APOS, JSON_HEX_AMP, JSON_HEX_QUOT, JSON_UNESCAPED_SLASHES + +@see https://www.ietf.org/rfc/rfc4627.txt + + +```php +final public function unserialize( mixed $serialized ): void; +``` +Constructs the object + +@link https://php.net/manual/en/serializable.unserialize.php + + diff --git a/nikos/api/Phalcon_Security.md b/nikos/api/Phalcon_Security.md new file mode 100644 index 00000000000..e281c913587 --- /dev/null +++ b/nikos/api/Phalcon_Security.md @@ -0,0 +1,470 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Security' +--- + +* [Phalcon\Security](#security) +* [Phalcon\Security\Exception](#security-exception) +* [Phalcon\Security\Random](#security-random) + +

        Class Phalcon\Security

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/security.zep) + +| Namespace | Phalcon | +| Uses | Phalcon\Di\DiInterface, Phalcon\Di\AbstractInjectionAware, Phalcon\Http\RequestInterface, Phalcon\Security\Random, Phalcon\Security\Exception, Phalcon\Session\ManagerInterface | +| Extends | AbstractInjectionAware | + +This component provides a set of functions to improve the security in Phalcon +applications + +```php +$login = $this->request->getPost("login"); +$password = $this->request->getPost("password"); + +$user = Users::findFirstByLogin($login); + +if ($user) { + if ($this->security->checkHash($password, $user->password)) { + // The password is valid + } +} +``` + + +## Constants +```php +const CRYPT_BLOWFISH = 4; +const CRYPT_BLOWFISH_A = 5; +const CRYPT_BLOWFISH_X = 6; +const CRYPT_BLOWFISH_Y = 7; +const CRYPT_DEFAULT = 0; +const CRYPT_EXT_DES = 2; +const CRYPT_MD5 = 3; +const CRYPT_SHA256 = 8; +const CRYPT_SHA512 = 9; +const CRYPT_STD_DES = 1; +``` + +## Properties +```php +// +protected defaultHash; + +// +protected numberBytes = 16; + +// +protected random; + +// +protected requestToken; + +// +protected token; + +// +protected tokenKey; + +// +protected tokenKeySessionId = $PHALCON/CSRF/KEY$; + +// +protected tokenValueSessionId = $PHALCON/CSRF$; + +// +protected workFactor = 8; + +// +private localSession; + +// +private localRequest; + +``` + +## Methods +```php +public function __construct( SessionInterface $session = null, RequestInterface $request = null ): void; +``` +Phalcon\Security constructor + + +```php +public function checkHash( string $password, string $passwordHash, int $maxPassLength = int ): bool; +``` +Checks a plain text password and its hash version to check if the +password matches + + +```php +public function checkToken( mixed $tokenKey = null, mixed $tokenValue = null, bool $destroyIfValid = bool ): bool; +``` +Check if the CSRF token sent in the request is the same that the current +in session + + +```php +public function computeHmac( string $data, string $key, string $algo, bool $raw = bool ): string; +``` +Computes a HMAC + + +```php +public function destroyToken(): Security; +``` +Removes the value of the CSRF token and key from session + + +```php +public function getDefaultHash(): int | null; +``` + Returns the default hash + + +```php +public function getRandom(): Random; +``` +Returns a secure random number generator instance + + +```php +public function getRandomBytes(): string; +``` +Returns a number of bytes to be generated by the openssl pseudo random +generator + + +```php +public function getRequestToken(): string | null; +``` +Returns the value of the CSRF token for the current request. + + +```php +public function getSaltBytes( int $numberBytes = int ): string; +``` +Generate a >22-length pseudo random string to be used as salt for +passwords + + +```php +public function getSessionToken(): string | null; +``` +Returns the value of the CSRF token in session + + +```php +public function getToken(): string; +``` +Generates a pseudo random token value to be used as input's value in a +CSRF check + + +```php +public function getTokenKey(): string; +``` +Generates a pseudo random token key to be used as input's name in a CSRF +check + + +```php +public function getWorkFactor() +``` + + +```php +public function hash( string $password, int $workFactor = int ): string; +``` +Creates a password hash using bcrypt with a pseudo random salt + + +```php +public function isLegacyHash( string $passwordHash ): bool; +``` +Checks if a password hash is a valid bcrypt's hash + + +```php +public function setDefaultHash( int $defaultHash ): Security; +``` + Sets the default hash + + +```php +public function setRandomBytes( long $randomBytes ): Security; +``` +Sets a number of bytes to be generated by the openssl pseudo random +generator + + +```php +public function setWorkFactor( $workFactor ) +``` + + + + +

        Class Phalcon\Security\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/security/exception.zep) + +| Namespace | Phalcon\Security | +| Extends | \Phalcon\Exception | + +Phalcon\Security\Exception + +Exceptions thrown in Phalcon\Security will use this class + + + +

        Class Phalcon\Security\Random

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/security/random.zep) + +| Namespace | Phalcon\Security | + +Phalcon\Security\Random + +Secure random number generator class. + +Provides secure random number generator which is suitable for generating +session key in HTTP cookies, etc. + +`Phalcon\Security\Random` could be mainly useful for: + +- Key generation (e.g. generation of complicated keys) +- Generating random passwords for new user accounts +- Encryption systems + +```php +$random = new \Phalcon\Security\Random(); + +// Random binary string +$bytes = $random->bytes(); + +// Random hex string +echo $random->hex(10); // a29f470508d5ccb8e289 +echo $random->hex(10); // 533c2f08d5eee750e64a +echo $random->hex(11); // f362ef96cb9ffef150c9cd +echo $random->hex(12); // 95469d667475125208be45c4 +echo $random->hex(13); // 05475e8af4a34f8f743ab48761 + +// Random base62 string +echo $random->base62(); // z0RkwHfh8ErDM1xw + +// Random base64 string +echo $random->base64(12); // XfIN81jGGuKkcE1E +echo $random->base64(12); // 3rcq39QzGK9fUqh8 +echo $random->base64(); // DRcfbngL/iOo9hGGvy1TcQ== +echo $random->base64(16); // SvdhPcIHDZFad838Bb0Swg== + +// Random URL-safe base64 string +echo $random->base64Safe(); // PcV6jGbJ6vfVw7hfKIFDGA +echo $random->base64Safe(); // GD8JojhzSTrqX7Q8J6uug +echo $random->base64Safe(8); // mGyy0evy3ok +echo $random->base64Safe(null, true); // DRrAgOFkS4rvRiVHFefcQ== + +// Random UUID +echo $random->uuid(); // db082997-2572-4e2c-a046-5eefe97b1235 +echo $random->uuid(); // da2aa0e2-b4d0-4e3c-99f5-f5ef62c57fe2 +echo $random->uuid(); // 75e6b628-c562-4117-bb76-61c4153455a9 +echo $random->uuid(); // dc446df1-0848-4d05-b501-4af3c220c13d + +// Random number between 0 and $len +echo $random->number(256); // 84 +echo $random->number(256); // 79 +echo $random->number(100); // 29 +echo $random->number(300); // 40 + +// Random base58 string +echo $random->base58(); // 4kUgL2pdQMSCQtjE +echo $random->base58(); // Umjxqf7ZPwh765yR +echo $random->base58(24); // qoXcgmw4A9dys26HaNEdCRj9 +echo $random->base58(7); // 774SJD3vgP +``` + +This class partially borrows SecureRandom library from Ruby + +@link http://ruby-doc.org/stdlib-2.2.2/libdoc/securerandom/rdoc/SecureRandom.html + + +## Methods +```php +public function base58( int $len = null ): string; +``` +Generates a random base58 string + +If $len is not specified, 16 is assumed. It may be larger in future. +The result may contain alphanumeric characters except 0, O, I and l. + +It is similar to `Phalcon\Security\Random::base64()` but has been +modified to avoid both non-alphanumeric characters and letters which +might look ambiguous when printed. + +```php +$random = new \Phalcon\Security\Random(); + +echo $random->base58(); // 4kUgL2pdQMSCQtjE +``` + +@see \Phalcon\Security\Random:base64 +@link https://en.wikipedia.org/wiki/Base58 +@throws Exception If secure random number generator is not available or unexpected partial read + + +```php +public function base62( int $len = null ): string; +``` +Generates a random base62 string + +If $len is not specified, 16 is assumed. It may be larger in future. + +It is similar to `Phalcon\Security\Random::base58()` but has been +modified to provide the largest value that can safely be used in URLs +without needing to take extra characters into consideration because it is +[A-Za-z0-9]. + +```php +$random = new \Phalcon\Security\Random(); + +echo $random->base62(); // z0RkwHfh8ErDM1xw +``` + +@see \Phalcon\Security\Random:base58 +@throws Exception If secure random number generator is not available or unexpected partial read + + +```php +public function base64( int $len = null ): string; +``` +Generates a random base64 string + +If $len is not specified, 16 is assumed. It may be larger in future. +The length of the result string is usually greater of $len. +Size formula: 4($len / 3) rounded up to a multiple of 4. + +```php +$random = new \Phalcon\Security\Random(); + +echo $random->base64(12); // 3rcq39QzGK9fUqh8 +``` + +@throws Exception If secure random number generator is not available or unexpected partial read + + +```php +public function base64Safe( int $len = null, bool $padding = bool ): string; +``` +Generates a random URL-safe base64 string + +If $len is not specified, 16 is assumed. It may be larger in future. +The length of the result string is usually greater of $len. + +By default, padding is not generated because "=" may be used as a URL +delimiter. The result may contain A-Z, a-z, 0-9, "-" and "_". "=" is also +used if $padding is true. See RFC 3548 for the definition of URL-safe +base64. + +```php +$random = new \Phalcon\Security\Random(); + +echo $random->base64Safe(); // GD8JojhzSTrqX7Q8J6uug +``` + +@link https://www.ietf.org/rfc/rfc3548.txt +@throws Exception If secure random number generator is not available or unexpected partial read + + +```php +public function bytes( int $len = int ): string; +``` +Generates a random binary string + +The `Random::bytes` method returns a string and accepts as input an int +representing the length in bytes to be returned. + +If $len is not specified, 16 is assumed. It may be larger in future. +The result may contain any byte: "x00" - "xFF". + +```php +$random = new \Phalcon\Security\Random(); + +$bytes = $random->bytes(); +var_dump(bin2hex($bytes)); +// Possible output: string(32) "00f6c04b144b41fad6a59111c126e1ee" +``` + +@throws Exception If secure random number generator is not available or unexpected partial read + + +```php +public function hex( int $len = null ): string; +``` +Generates a random hex string + +If $len is not specified, 16 is assumed. It may be larger in future. +The length of the result string is usually greater of $len. + +```php +$random = new \Phalcon\Security\Random(); + +echo $random->hex(10); // a29f470508d5ccb8e289 +``` + +@throws Exception If secure random number generator is not available or unexpected partial read + + +```php +public function number( int $len ): int; +``` +Generates a random number between 0 and $len + +Returns an integer: 0 <= result <= $len. + +```php +$random = new \Phalcon\Security\Random(); + +echo $random->number(16); // 8 +``` +@throws Exception If secure random number generator is not available, unexpected partial read or $len <= 0 + + +```php +public function uuid(): string; +``` +Generates a v4 random UUID (Universally Unique IDentifier) + +The version 4 UUID is purely random (except the version). It doesn't +contain meaningful information such as MAC address, time, etc. See RFC +4122 for details of UUID. + +This algorithm sets the version number (4 bits) as well as two reserved +bits. All other bits (the remaining 122 bits) are set using a random or +pseudorandom data source. Version 4 UUIDs have the form +xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx where x is any hexadecimal digit and +y is one of 8, 9, A, or B (e.g., f47ac10b-58cc-4372-a567-0e02b2c3d479). + +```php +$random = new \Phalcon\Security\Random(); + +echo $random->uuid(); // 1378c906-64bb-4f81-a8d6-4ae1bfcdec22 +``` + +@link https://www.ietf.org/rfc/rfc4122.txt +@throws Exception If secure random number generator is not available or unexpected partial read + + +```php +protected function base( string $alphabet, int $base, mixed $n = null ): string; +``` +Generates a random string based on the number ($base) of characters +($alphabet). + +If $n is not specified, 16 is assumed. It may be larger in future. + +@throws Exception If secure random number generator is not available or unexpected partial read + + diff --git a/nikos/api/Phalcon_Session.md b/nikos/api/Phalcon_Session.md new file mode 100644 index 00000000000..1eaf9d351cb --- /dev/null +++ b/nikos/api/Phalcon_Session.md @@ -0,0 +1,736 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Session' +--- + +* [Phalcon\Session\Adapter\AbstractAdapter](#session-adapter-abstractadapter) +* [Phalcon\Session\Adapter\Libmemcached](#session-adapter-libmemcached) +* [Phalcon\Session\Adapter\Noop](#session-adapter-noop) +* [Phalcon\Session\Adapter\Redis](#session-adapter-redis) +* [Phalcon\Session\Adapter\Stream](#session-adapter-stream) +* [Phalcon\Session\Bag](#session-bag) +* [Phalcon\Session\Exception](#session-exception) +* [Phalcon\Session\Manager](#session-manager) +* [Phalcon\Session\ManagerInterface](#session-managerinterface) + +

        Abstract Class Phalcon\Session\Adapter\AbstractAdapter

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/session/adapter/abstractadapter.zep) + +| Namespace | Phalcon\Session\Adapter | +| Uses | Phalcon\Storage\Adapter\AdapterInterface, SessionHandlerInterface | +| Implements | SessionHandlerInterface | + +This file is part of the Phalcon. + +(c) Phalcon Team + +For the full copyright and license information, please view the LICENSE +file that was distributed with this source code. + + +## Properties +```php +/** + * @var + */ +protected adapter; + +``` + +## Methods +```php +public function close(): bool; +``` +Close + + +```php +public function destroy( mixed $id ): bool; +``` +Destroy + + +```php +public function gc( mixed $maxlifetime ): bool; +``` +Garbage Collector + + +```php +public function open( mixed $savePath, mixed $sessionName ): bool; +``` +Open + + +```php +public function read( mixed $id ): string; +``` +Read + + +```php +public function write( mixed $id, mixed $data ): bool; +``` +Write + + + + +

        Class Phalcon\Session\Adapter\Libmemcached

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/session/adapter/libmemcached.zep) + +| Namespace | Phalcon\Session\Adapter | +| Uses | Phalcon\Storage\AdapterFactory, Phalcon\Session\Adapter\AbstractAdapter | +| Extends | AbstractAdapter | + +Phalcon\Session\Adapter\Libmemcached + + +## Methods +```php +public function __construct( AdapterFactory $factory, array $options = [] ): void; +``` +Constructor + + + + +

        Class Phalcon\Session\Adapter\Noop

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/session/adapter/noop.zep) + +| Namespace | Phalcon\Session\Adapter | +| Uses | SessionHandlerInterface | +| Implements | SessionHandlerInterface | + +Phalcon\Session\Adapter\Noop + +This is an "empty" or null adapter. It can be used for testing or any +other purpose that no session needs to be invoked + +```php +setHandler(new Noop()); +``` + + +## Properties +```php +/** + * The connection of some adapters + */ +protected connection; + +/** + * Session options + * + * @var array + */ +protected options; + +/** + * Session prefix + * + * @var string + */ +protected prefix = ; + +/** + * Time To Live + * + * @var int + */ +protected ttl = 8600; + +``` + +## Methods +```php +public function __construct( array $options = [] ): void; +``` +Constructor + + +```php +public function close(): bool; +``` +Close + + +```php +public function destroy( mixed $id ): bool; +``` +Destroy + + +```php +public function gc( mixed $maxlifetime ): bool; +``` +Garbage Collector + + +```php +public function open( mixed $savePath, mixed $sessionName ): bool; +``` +Open + + +```php +public function read( mixed $id ): string; +``` +Read + + +```php +public function write( mixed $id, mixed $data ): bool; +``` +Write + + +```php +protected function getPrefixedName( mixed $name ): string; +``` +Helper method to get the name prefixed + + + + +

        Class Phalcon\Session\Adapter\Redis

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/session/adapter/redis.zep) + +| Namespace | Phalcon\Session\Adapter | +| Uses | Phalcon\Storage\AdapterFactory, Phalcon\Session\Adapter\AbstractAdapter | +| Extends | AbstractAdapter | + +Phalcon\Session\Adapter\Redis + + +## Methods +```php +public function __construct( AdapterFactory $factory, array $options = [] ): void; +``` +Constructor + + + + +

        Class Phalcon\Session\Adapter\Stream

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/session/adapter/stream.zep) + +| Namespace | Phalcon\Session\Adapter | +| Uses | Phalcon\Helper\Str, Phalcon\Session\Exception | +| Extends | Noop | + +Phalcon\Session\Adapter\Stream + +This is the file based adapter. It stores sessions in a file based system + +```php + '/tmp', + ] +); +$session->setHandler($files); +``` + + +## Properties +```php +/** + * @var string + */ +private path = ; + +``` + +## Methods +```php +public function __construct( array $options = [] ): void; +``` +// + +```php +public function destroy( mixed $id ): bool; +``` +// + +```php +public function gc( mixed $maxlifetime ): bool; +``` +// + +```php +public function open( mixed $savePath, mixed $sessionName ): bool; +``` + Ignore the savePath and use local defined path + + @return bool + + +```php +public function read( mixed $id ): string; +``` +// + +```php +public function write( mixed $id, mixed $data ): bool; +``` +// + + + +

        Class Phalcon\Session\Bag

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/session/bag.zep) + +| Namespace | Phalcon\Session | +| Uses | Phalcon\Collection, Phalcon\Di, Phalcon\Di\DiInterface, Phalcon\Di\InjectionAwareInterface | +| Extends | Collection | +| Implements | InjectionAwareInterface | + +Phalcon\Session\Bag + +This component helps to separate session data into "namespaces". Working by +this way you can easily create groups of session variables into the +application + +```php +$user = new \Phalcon\Session\Bag("user"); + +$user->name = "Kimbra Johnson"; +$user->age = 22; +``` + + +## Properties +```php +// +private container; + +// +private name; + +// +private session; + +``` + +## Methods +```php +public function __construct( string $name ): void; +``` +Phalcon\Session\Bag constructor + + +```php +public function clear(): void; +``` +Destroys the session bag + + +```php +public function getDI(): DiInterface; +``` +Returns the DependencyInjector container + + +```php +public function init( array $data = [] ): void; +``` +Removes a property from the internal bag + + +```php +public function remove( string $element ): void; +``` +Removes a property from the internal bag + + +```php +public function set( string $element, mixed $value ); +``` +Sets a value in the session bag + + +```php +public function setDI( DiInterface $container ): void; +``` +Sets the DependencyInjector container + + + + +

        Class Phalcon\Session\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/session/exception.zep) + +| Namespace | Phalcon\Session | +| Extends | \Phalcon\Exception | + +Phalcon\Session\Exception + +Exceptions thrown in Phalcon\Session will use this class + + + +

        Class Phalcon\Session\Manager

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/session/manager.zep) + +| Namespace | Phalcon\Session | +| Uses | InvalidArgumentException, RuntimeException, SessionHandlerInterface, Phalcon\DI\AbstractInjectionAware, Phalcon\Di\DiInterface, Phalcon\Helper\Arr, Phalcon\Session\ManagerInterface | +| Extends | AbstractInjectionAware | +| Implements | ManagerInterface | + +Phalcon\Session\Manager + +Session manager class + + +## Properties +```php +/** + * @var |null + */ +private handler; + +/** + * @var string + */ +private name = ; + +/** + * @var array + */ +private options; + +/** + * @var string + */ +private uniqueId = ; + +``` + +## Methods +```php +public function __construct( array $options = [] ): void; +``` +Manager constructor. + + +```php +public function __get( string $key ): mixed; +``` +Alias: Gets a session variable from an application context + + +```php +public function __isset( string $key ): bool; +``` +Alias: Check whether a session variable is set in an application context + + +```php +public function __set( string $key, mixed $value ): void; +``` +Alias: Sets a session variable in an application context + + +```php +public function __unset( string $key ): void; +``` +Alias: Removes a session variable from an application context + + +```php +public function destroy(): void; +``` +Destroy/end a session + + +```php +public function exists(): bool; +``` +Check whether the session has been started + + +```php +public function get( string $key, mixed $defaultValue = null, bool $remove = bool ): mixed; +``` +Gets a session variable from an application context + + +```php +public function getHandler(): SessionHandlerInterface; +``` +Returns the stored session handler + + +```php +public function getId(): string; +``` +Returns the session id + + +```php +public function getName(): string; +``` +Returns the name of the session + + +```php +public function getOptions(): array; +``` +Get internal options + + +```php +public function has( string $key ): bool; +``` +Check whether a session variable is set in an application context + + +```php +public function regenerateId( mixed $deleteOldSession = bool ): ManagerInterface; +``` +Regenerates the session id using the handler. + + +```php +public function registerHandler( SessionHandlerInterface $handler ): bool; +``` +Registers a handler with the session + + +```php +public function remove( string $key ); +``` +Removes a session variable from an application context + + +```php +public function set( string $key, mixed $value ): void; +``` +Sets a session variable in an application context + + +```php +public function setHandler( SessionHandlerInterface $handler ): ManagerInterface; +``` +Set the handler for the session + + +```php +public function setId( string $id ): ManagerInterface; +``` +Set session Id + + +```php +public function setName( string $name ): ManagerInterface; +``` +Set the session name. Throw exception if the session has started +and do not allow poop names + +@param string name + +@throws InvalidArgumentException + +@return Manager + + +```php +public function setOptions( array $options ): void; +``` +Sets session's options + + +```php +public function start(): bool; +``` +Starts the session (if headers are already sent the session will not be +started) + + +```php +public function status(): int; +``` +Returns the status of the current session. + + + + +

        Interface Phalcon\Session\ManagerInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/session/managerinterface.zep) + +| Namespace | Phalcon\Session | +| Uses | InvalidArgumentException, RuntimeException, SessionHandlerInterface | + +Phalcon\Session + +Interface for the Phalcon\Session\Manager + + +## Constants +```php +const SESSION_ACTIVE = 2; +const SESSION_DISABLED = 0; +const SESSION_NONE = 1; +``` + +## Methods +```php +public function __get( string $key ): void; +``` +Alias: Gets a session variable from an application context + + +```php +public function __isset( string $key ): bool; +``` +Alias: Check whether a session variable is set in an application context + + +```php +public function __set( string $key, mixed $value ): void; +``` +Alias: Sets a session variable in an application context + + +```php +public function __unset( string $key ): void; +``` +Alias: Removes a session variable from an application context + + +```php +public function destroy(): void; +``` +Destroy/end a session + + +```php +public function exists(): bool; +``` +Check whether the session has been started + + +```php +public function get( string $key, mixed $defaultValue = null, bool $remove = bool ): mixed; +``` +Gets a session variable from an application context + + +```php +public function getHandler(): SessionHandlerInterface; +``` +Returns the stored session handler + + +```php +public function getId(): string; +``` +Returns the session id + + +```php +public function getName(): string; +``` +Returns the name of the session + + +```php +public function getOptions(): array; +``` +Get internal options + + +```php +public function has( string $key ): bool; +``` +Check whether a session variable is set in an application context + + +```php +public function regenerateId( mixed $deleteOldSession = bool ): ManagerInterface; +``` +Regenerates the session id using the handler. + + +```php +public function registerHandler( SessionHandlerInterface $handler ): bool; +``` +Registers a handler with the session + + +```php +public function remove( string $key ): void; +``` +Removes a session variable from an application context + + +```php +public function set( string $key, mixed $value ): void; +``` +Sets a session variable in an application context + + +```php +public function setHandler( SessionHandlerInterface $handler ): ManagerInterface; +``` +Set the handler for the session + + +```php +public function setId( string $id ): ManagerInterface; +``` +Set session Id + + +```php +public function setName( string $name ): ManagerInterface; +``` +Set the session name. Throw exception if the session has started +and do not allow poop names + +@throws InvalidArgumentException + + +```php +public function setOptions( array $options ): void; +``` +Sets session's options + + +```php +public function start(): bool; +``` +Starts the session (if headers are already sent the session will not be +started) + + +```php +public function status(): int; +``` +Returns the status of the current session. + + diff --git a/nikos/api/Phalcon_Storage.md b/nikos/api/Phalcon_Storage.md new file mode 100644 index 00000000000..449905cd38f --- /dev/null +++ b/nikos/api/Phalcon_Storage.md @@ -0,0 +1,1253 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Storage' +--- + +* [Phalcon\Storage\Adapter\AbstractAdapter](#storage-adapter-abstractadapter) +* [Phalcon\Storage\Adapter\AdapterInterface](#storage-adapter-adapterinterface) +* [Phalcon\Storage\Adapter\Apcu](#storage-adapter-apcu) +* [Phalcon\Storage\Adapter\Libmemcached](#storage-adapter-libmemcached) +* [Phalcon\Storage\Adapter\Memory](#storage-adapter-memory) +* [Phalcon\Storage\Adapter\Redis](#storage-adapter-redis) +* [Phalcon\Storage\Adapter\Stream](#storage-adapter-stream) +* [Phalcon\Storage\AdapterFactory](#storage-adapterfactory) +* [Phalcon\Storage\Exception](#storage-exception) +* [Phalcon\Storage\Serializer\AbstractSerializer](#storage-serializer-abstractserializer) +* [Phalcon\Storage\Serializer\Base64](#storage-serializer-base64) +* [Phalcon\Storage\Serializer\Igbinary](#storage-serializer-igbinary) +* [Phalcon\Storage\Serializer\Json](#storage-serializer-json) +* [Phalcon\Storage\Serializer\Msgpack](#storage-serializer-msgpack) +* [Phalcon\Storage\Serializer\None](#storage-serializer-none) +* [Phalcon\Storage\Serializer\Php](#storage-serializer-php) +* [Phalcon\Storage\Serializer\SerializerInterface](#storage-serializer-serializerinterface) +* [Phalcon\Storage\SerializerFactory](#storage-serializerfactory) + +

        Abstract Class Phalcon\Storage\Adapter\AbstractAdapter

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/storage/adapter/abstractadapter.zep) + +| Namespace | Phalcon\Storage\Adapter | +| Uses | DateInterval, DateTime, Phalcon\Helper\Arr, Phalcon\Storage\Adapter\AdapterInterface, Phalcon\Storage\Exception, Phalcon\Storage\SerializerFactory, Phalcon\Storage\Serializer\SerializerInterface | +| Implements | AdapterInterface | + +This file is part of the Phalcon Framework. + +(c) Phalcon Team + +For the full copyright and license information, please view the LICENSE.txt +file that was distributed with this source code. + + +## Properties +```php +/** + * @var mixed + */ +protected adapter; + +/** + * Name of the default serializer class + * + * @var string + */ +protected defaultSerializer = Php; + +/** + * Name of the default TTL (time to live) + * + * @var int + */ +protected lifetime = 3600; + +/** + * @var string + */ +protected prefix = ; + +/** + * Serializer + * + * @var + */ +protected serializer; + +/** + * Serializer Factory + * + * @var + */ +protected serializerFactory; + +``` + +## Methods +```php +protected function __construct( SerializerFactory $factory = null, array $options ): void; +``` +Sets parameters based on options + + +```php +abstract public function clear(): bool; +``` +Flushes/clears the cache + + +```php +abstract public function decrement( string $key, int $value = int ): int | bool; +``` +Decrements a stored number + + +```php +abstract public function delete( string $key ): bool; +``` +Deletes data from the adapter + + +```php +abstract public function get( string $key ): mixed; +``` +Reads data from the adapter + + +```php +abstract public function getAdapter(): mixed; +``` +Returns the adapter - connects to the storage if not connected + + +```php +public function getDefaultSerializer(): string +``` + + +```php +abstract public function getKeys(): array; +``` +Returns all the keys stored + + +```php +public function getPrefix(): string +``` + + +```php +abstract public function has( string $key ): bool; +``` +Checks if an element exists in the cache + + +```php +abstract public function increment( string $key, int $value = int ): int | bool; +``` +Increments a stored number + + +```php +abstract public function set( string $key, mixed $value, mixed $ttl = null ): bool; +``` +Stores data in the adapter + + +```php +public function setDefaultSerializer( string $defaultSerializer ) +``` + + +```php +protected function getPrefixedKey( mixed $key ): string; +``` +Returns the key requested, prefixed + + +```php +protected function getSerializedData( mixed $content ): mixed; +``` +Returns serialized data + + +```php +protected function getTtl( mixed $ttl ): int; +``` +Calculates the TTL for a cache item + +@param DateInterval|int|null $ttl + +@return int +@throws Exception + + +```php +protected function getUnserializedData( mixed $content, mixed $defaultValue = null ): mixed; +``` +Returns unserialized data + + +```php +protected function initSerializer(): void; +``` +Initializes the serializer + + + + +

        Interface Phalcon\Storage\Adapter\AdapterInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/storage/adapter/adapterinterface.zep) + +| Namespace | Phalcon\Storage\Adapter | +| Uses | Phalcon\Storage\Serializer\SerializerInterface | + +Interface for Phalcon\Logger adapters + + +## Methods +```php +public function clear(): bool; +``` +Flushes/clears the cache + + +```php +public function decrement( string $key, int $value = int ): int | bool; +``` +Decrements a stored number + + +```php +public function delete( string $key ): bool; +``` +Deletes data from the adapter + + +```php +public function get( string $key ): mixed; +``` +Reads data from the adapter + + +```php +public function getAdapter(): mixed; +``` +Returns the already connected adapter or connects to the backend +server(s) + + +```php +public function getKeys(): array; +``` +Returns all the keys stored + + +```php +public function getPrefix(): string; +``` +Returns the prefix for the keys + + +```php +public function has( string $key ): bool; +``` +Checks if an element exists in the cache + + +```php +public function increment( string $key, int $value = int ): int | bool; +``` +Increments a stored number + + +```php +public function set( string $key, mixed $value, mixed $ttl = null ): bool; +``` +Stores data in the adapter + + + + +

        Class Phalcon\Storage\Adapter\Apcu

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/storage/adapter/apcu.zep) + +| Namespace | Phalcon\Storage\Adapter | +| Uses | APCUIterator, Phalcon\Helper\Arr, Phalcon\Storage\Adapter\AbstractAdapter, Phalcon\Storage\Exception, Phalcon\Storage\SerializerFactory, Phalcon\Storage\Serializer\SerializerInterface | +| Extends | AbstractAdapter | + +Apcu adapter + + +## Properties +```php +/** + * @var array + */ +protected options; + +``` + +## Methods +```php +public function __construct( SerializerFactory $factory = null, array $options = [] ); +``` +Constructor + + +```php +public function clear(): bool; +``` +Flushes/clears the cache + + +```php +public function decrement( string $key, int $value = int ): int | bool; +``` +Decrements a stored number + +@param string $key +@param int $value + +@return bool|int + + +```php +public function delete( string $key ): bool; +``` +Reads data from the adapter + +@param string $key + +@return bool + + +```php +public function get( string $key, mixed $defaultValue = null ): mixed; +``` +Reads data from the adapter + +@param string $key +@param null $defaultValue + +@return mixed + + +```php +public function getAdapter(): mixed; +``` +Returns the already connected adapter or connects to the Memcached +server(s) + +@return mixed + + +```php +public function getKeys(): array; +``` +Stores data in the adapter + +@return array + + +```php +public function has( string $key ): bool; +``` +Checks if an element exists in the cache + +@param string $key + +@return bool + + +```php +public function increment( string $key, int $value = int ): int | bool; +``` +Increments a stored number + +@param string $key +@param int $value + +@return bool|int + + +```php +public function set( string $key, mixed $value, mixed $ttl = null ): bool; +``` +Stores data in the adapter + +@param string $key +@param mixed $value +@param null $ttl + +@return bool +@throws \Exception + + + + +

        Class Phalcon\Storage\Adapter\Libmemcached

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/storage/adapter/libmemcached.zep) + +| Namespace | Phalcon\Storage\Adapter | +| Uses | Phalcon\Helper\Arr, Phalcon\Storage\Adapter\AbstractAdapter, Phalcon\Storage\Exception, Phalcon\Storage\SerializerFactory, Phalcon\Storage\Serializer\SerializerInterface | +| Extends | AbstractAdapter | + +Libmemcached adapter + + +## Properties +```php +/** + * @var array + */ +protected options; + +``` + +## Methods +```php +public function __construct( SerializerFactory $factory = null, array $options = [] ); +``` +Libmemcached constructor. + +@param array $options + + +```php +public function clear(): bool; +``` +Flushes/clears the cache + +@return bool +@throws Exception + + +```php +public function decrement( string $key, int $value = int ): int | bool; +``` +Decrements a stored number + + +```php +public function delete( string $key ): bool; +``` +Reads data from the adapter + +@param string $key + +@return bool +@throws Exception + + +```php +public function get( string $key, mixed $defaultValue = null ): mixed; +``` +Reads data from the adapter + +@param string $key +@param null $defaultValue + +@return mixed +@throws Exception + + +```php +public function getAdapter(): mixed; +``` +Returns the already connected adapter or connects to the Memcached +server(s) + +@return Memcached +@throws Exception + + +```php +public function getKeys(): array; +``` +Stores data in the adapter + +@return array +@throws Exception + + +```php +public function has( string $key ): bool; +``` +Checks if an element exists in the cache + +@param string $key + +@return bool +@throws Exception + + +```php +public function increment( string $key, int $value = int ): int | bool; +``` +Increments a stored number + +@param string $key +@param int $value + +@return bool|int +@throws Exception + + +```php +public function set( string $key, mixed $value, mixed $ttl = null ): bool; +``` +Stores data in the adapter + +@param string $key +@param mixed $value +@param null $ttl + +@return bool +@throws Exception + + + + +

        Class Phalcon\Storage\Adapter\Memory

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/storage/adapter/memory.zep) + +| Namespace | Phalcon\Storage\Adapter | +| Uses | Phalcon\Collection, Phalcon\Helper\Arr, Phalcon\Storage\Adapter\AbstractAdapter, Phalcon\Storage\Exception, Phalcon\Storage\SerializerFactory, Phalcon\Storage\Serializer\SerializerInterface | +| Extends | AbstractAdapter | + +Memory adapter + + +## Properties +```php +/** + * @var Collection + */ +protected data; + +/** + * @var array + */ +protected options; + +``` + +## Methods +```php +public function __construct( SerializerFactory $factory = null, array $options = [] ); +``` +Constructor + + +```php +public function clear(): bool; +``` +Flushes/clears the cache + + +```php +public function decrement( string $key, int $value = int ): int | bool; +``` +Decrements a stored number + +@param string $key +@param int $value + +@return bool|int + + +```php +public function delete( string $key ): bool; +``` +Reads data from the adapter + +@param string $key + +@return bool + + +```php +public function get( string $key, mixed $defaultValue = null ): mixed; +``` +Reads data from the adapter + +@param string $key +@param mixed|null $defaultValue + +@return mixed + + +```php +public function getAdapter(): mixed; +``` +Returns the already connected adapter or connects to the Memcached +server(s) + +@return mixed + + +```php +public function getKeys(): array; +``` +Stores data in the adapter + +@return array + + +```php +public function has( string $key ): bool; +``` +Checks if an element exists in the cache + +@param string $key + +@return bool + + +```php +public function increment( string $key, int $value = int ): int | bool; +``` +Increments a stored number + +@param string $key +@param int $value + +@return bool|int + + +```php +public function set( string $key, mixed $value, mixed $ttl = null ): bool; +``` +Stores data in the adapter + +@param string $key +@param mixed $value +@param null $ttl + +@return bool + + + + +

        Class Phalcon\Storage\Adapter\Redis

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/storage/adapter/redis.zep) + +| Namespace | Phalcon\Storage\Adapter | +| Uses | Phalcon\Helper\Arr, Phalcon\Storage\Adapter\AbstractAdapter, Phalcon\Storage\Exception, Phalcon\Storage\SerializerFactory, Phalcon\Storage\Serializer\SerializerInterface | +| Extends | AbstractAdapter | + +Redis adapter + + +## Properties +```php +/** + * @var array + */ +protected options; + +``` + +## Methods +```php +public function __construct( SerializerFactory $factory = null, array $options = [] ); +``` +Constructor + + +```php +public function clear(): bool; +``` +Flushes/clears the cache + +@return bool +@throws Exception + + +```php +public function decrement( string $key, int $value = int ): int | bool; +``` +Decrements a stored number + +@param string $key +@param int $value + +@return bool|int +@throws Exception + + +```php +public function delete( string $key ): bool; +``` +Reads data from the adapter + +@param string $key + +@return bool +@throws Exception + + +```php +public function get( string $key, mixed $defaultValue = null ): mixed; +``` +Reads data from the adapter + +@param string $key +@param null $defaultValue + +@return mixed +@throws Exception + + +```php +public function getAdapter(): mixed; +``` +Returns the already connected adapter or connects to the Memcached +server(s) + +@return mixed|\Redis +@throws Exception + + +```php +public function getKeys(): array; +``` +Stores data in the adapter + +@return array +@throws Exception + + +```php +public function has( string $key ): bool; +``` +Checks if an element exists in the cache + +@param string $key + +@return bool +@throws Exception + + +```php +public function increment( string $key, int $value = int ): int | bool; +``` +Increments a stored number + +@param string $key +@param int $value + +@return bool|int +@throws Exception + + +```php +public function set( string $key, mixed $value, mixed $ttl = null ): bool; +``` +Stores data in the adapter + +@param string $key +@param mixed $value +@param null $ttl + +@return bool +@throws Exception + + + + +

        Class Phalcon\Storage\Adapter\Stream

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/storage/adapter/stream.zep) + +| Namespace | Phalcon\Storage\Adapter | +| Uses | FilesystemIterator, Iterator, Phalcon\Helper\Arr, Phalcon\Helper\Str, Phalcon\Storage\Adapter\AbstractAdapter, Phalcon\Storage\Exception, Phalcon\Storage\SerializerFactory, Phalcon\Storage\Serializer\SerializerInterface, RecursiveDirectoryIterator, RecursiveIteratorIterator | +| Extends | AbstractAdapter | + +Stream adapter + + +## Properties +```php +/** + * @var string + */ +protected cacheDir = ; + +/** + * @var array + */ +protected options; + +``` + +## Methods +```php +public function __construct( SerializerFactory $factory = null, array $options = [] ); +``` +Stream constructor. + +@param array $options + +@throws Exception + + +```php +public function clear(): bool; +``` +Flushes/clears the cache + + +```php +public function decrement( string $key, int $value = int ): int | bool; +``` +Decrements a stored number + +@param string $key +@param int $value + +@return bool|int +@throws \Exception + + +```php +public function delete( string $key ): bool; +``` +Reads data from the adapter + +@param string $key + +@return bool + + +```php +public function get( string $key, mixed $defaultValue = null ): mixed; +``` +Reads data from the adapter + +@param string $key +@param null $defaultValue + +@return mixed|null + + +```php +public function getAdapter(): mixed; +``` +Returns the already connected adapter or connects to the Memcached +server(s) + + +```php +public function getKeys(): array; +``` +Stores data in the adapter + + +```php +public function has( string $key ): bool; +``` +Checks if an element exists in the cache and is not expired + +@param string $key + +@return bool + + +```php +public function increment( string $key, int $value = int ): int | bool; +``` +Increments a stored number + +@param string $key +@param int $value + +@return bool|int +@throws \Exception + + +```php +public function set( string $key, mixed $value, mixed $ttl = null ): bool; +``` +Stores data in the adapter + +@param string $key +@param mixed $value +@param null $ttl + +@return bool +@throws \Exception + + + + +

        Class Phalcon\Storage\AdapterFactory

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/storage/adapterfactory.zep) + +| Namespace | Phalcon\Storage | +| Uses | Phalcon\Factory\AbstractFactory, Phalcon\Storage\Adapter\AbstractAdapter, Phalcon\Storage\SerializerFactory | +| Extends | AbstractFactory | + +This file is part of the Phalcon Framework. + +(c) Phalcon Team + +For the full copyright and license information, please view the LICENSE.txt +file that was distributed with this source code. + + +## Properties +```php +/** + * @var + */ +private serializerFactory; + +``` + +## Methods +```php +public function __construct( SerializerFactory $factory = null, array $services = [] ); +``` +AdapterFactory constructor. + + +```php +public function newInstance( string $name, array $options = [] ): AbstractAdapter; +``` +Create a new instance of the adapter + + +```php +protected function getAdapters(): array; +``` +// + + + +

        Class Phalcon\Storage\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/storage/exception.zep) + +| Namespace | Phalcon\Storage | +| Extends | \Phalcon\Exception | + +Phalcon\Storage\Exception + +Exceptions thrown in Phalcon\Storage will use this class + + + + +

        Abstract Class Phalcon\Storage\Serializer\AbstractSerializer

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/storage/serializer/abstractserializer.zep) + +| Namespace | Phalcon\Storage\Serializer | +| Uses | Phalcon\Storage\Exception, Phalcon\Storage\Serializer\SerializerInterface | +| Implements | SerializerInterface | + +This file is part of the Phalcon Framework. + +(c) Phalcon Team + +For the full copyright and license information, please view the LICENSE.txt +file that was distributed with this source code. + + +## Properties +```php +/** + * @var mixed + */ +protected data; + +``` + +## Methods +```php +public function __construct( mixed $data = null ): void; +``` + Constructor + + +```php +public function getData(): mixed +``` + + +```php +public function setData( mixed $data ) +``` + + +```php +protected function isSerializable( mixed $data ): bool; +``` +If this returns true, then the data returns back as is + + + + +

        Class Phalcon\Storage\Serializer\Base64

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/storage/serializer/base64.zep) + +| Namespace | Phalcon\Storage\Serializer | +| Uses | InvalidArgumentException, Phalcon\Storage\Serializer\AbstractSerializer | +| Extends | AbstractSerializer | + +This file is part of the Phalcon Framework. + +(c) Phalcon Team + +For the full copyright and license information, please view the LICENSE.txt +file that was distributed with this source code. + + +## Methods +```php +public function serialize(): string; +``` + Serializes data + + +```php +public function unserialize( mixed $data ): void; +``` + Unserializes data + + + + +

        Class Phalcon\Storage\Serializer\Igbinary

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/storage/serializer/igbinary.zep) + +| Namespace | Phalcon\Storage\Serializer | +| Uses | Phalcon\Storage\Serializer\AbstractSerializer | +| Extends | AbstractSerializer | + +This file is part of the Phalcon Framework. + +(c) Phalcon Team + +For the full copyright and license information, please view the LICENSE.txt +file that was distributed with this source code. + + +## Methods +```php +public function serialize(): string; +``` + Serializes data + + +```php +public function unserialize( mixed $data ): void; +``` + Unserializes data + + + + +

        Class Phalcon\Storage\Serializer\Json

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/storage/serializer/json.zep) + +| Namespace | Phalcon\Storage\Serializer | +| Uses | Phalcon\Storage\Serializer\AbstractSerializer | +| Extends | AbstractSerializer | + +This file is part of the Phalcon Framework. + +(c) Phalcon Team + +For the full copyright and license information, please view the LICENSE.txt +file that was distributed with this source code. + + +## Methods +```php +public function serialize(): string; +``` + Serializes data + + +```php +public function unserialize( mixed $data ): void; +``` + Unserializes data + + + + +

        Class Phalcon\Storage\Serializer\Msgpack

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/storage/serializer/msgpack.zep) + +| Namespace | Phalcon\Storage\Serializer | +| Uses | Phalcon\Storage\Serializer\AbstractSerializer | +| Extends | AbstractSerializer | + +This file is part of the Phalcon Framework. + +(c) Phalcon Team + +For the full copyright and license information, please view the LICENSE.txt +file that was distributed with this source code. + + +## Methods +```php +public function serialize(): string | null; +``` + Serializes data + + +```php +public function unserialize( mixed $data ): void; +``` + Unserializes data + + + + +

        Class Phalcon\Storage\Serializer\None

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/storage/serializer/none.zep) + +| Namespace | Phalcon\Storage\Serializer | +| Uses | Phalcon\Storage\Serializer\AbstractSerializer | +| Extends | AbstractSerializer | + +This file is part of the Phalcon Framework. + +(c) Phalcon Team + +For the full copyright and license information, please view the LICENSE.txt +file that was distributed with this source code. + + +## Methods +```php +public function serialize(): string; +``` + Serializes data + + +```php +public function unserialize( mixed $data ): void; +``` + Unserializes data + + + + +

        Class Phalcon\Storage\Serializer\Php

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/storage/serializer/php.zep) + +| Namespace | Phalcon\Storage\Serializer | +| Uses | Phalcon\Storage\Exception, Phalcon\Storage\Serializer\AbstractSerializer | +| Extends | AbstractSerializer | + +This file is part of the Phalcon Framework. + +(c) Phalcon Team + +For the full copyright and license information, please view the LICENSE.txt +file that was distributed with this source code. + + +## Methods +```php +public function serialize(): string; +``` + Serializes data + + +```php +public function unserialize( mixed $data ): void; +``` + Unserializes data + + + + +

        Interface Phalcon\Storage\Serializer\SerializerInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/storage/serializer/serializerinterface.zep) + +| Namespace | Phalcon\Storage\Serializer | +| Uses | Serializable | +| Extends | Serializable | + +This file is part of the Phalcon Framework. + +(c) Phalcon Team + +For the full copyright and license information, please view the LICENSE.txt +file that was distributed with this source code. + + +## Methods +```php +public function getData(): mixed; +``` +@var mixed + + +```php +public function setData( mixed $data ): void; +``` +@param $data + + + + +

        Class Phalcon\Storage\SerializerFactory

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/storage/serializerfactory.zep) + +| Namespace | Phalcon\Storage | +| Uses | Phalcon\Factory\AbstractFactory, Phalcon\Storage\Serializer\SerializerInterface | +| Extends | AbstractFactory | + +This file is part of the Phalcon Framework. + +(c) Phalcon Team + +For the full copyright and license information, please view the LICENSE.txt +file that was distributed with this source code. + + +## Methods +```php +public function __construct( array $services = [] ); +``` +SerializerFactory constructor. + +@param array services + + +```php +public function newInstance( string $name ): SerializerInterface; +``` +@param string name + +@return mixed +@throws Exception + + +```php +protected function getAdapters(): array; +``` +// + diff --git a/nikos/api/Phalcon_Tag.md b/nikos/api/Phalcon_Tag.md new file mode 100644 index 00000000000..766f5eb737e --- /dev/null +++ b/nikos/api/Phalcon_Tag.md @@ -0,0 +1,125 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Tag' +--- + +* [Phalcon\Tag](#tag) +* [Phalcon\Tag\Exception](#tag-exception) +* [Phalcon\Tag\Select](#tag-select) + +

        Class Phalcon\Tag

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/tag.zep) + +| Namespace | Phalcon | +| Uses | Phalcon\Di\DiInterface, Phalcon\Escaper\EscaperInterface, Phalcon\Tag\Select, Phalcon\Tag\Exception, Phalcon\Url\UrlInterface | + +Phalcon\Tag is designed to simplify building of HTML tags. +It provides a set of helpers to generate HTML in a dynamic way. +This component is a class that you can extend to add more helpers. + + +## Constants +```php +const HTML32 = 1; +const HTML401_FRAMESET = 4; +const HTML401_STRICT = 2; +const HTML401_TRANSITIONAL = 3; +const HTML5 = 5; +const XHTML10_FRAMESET = 8; +const XHTML10_STRICT = 6; +const XHTML10_TRANSITIONAL = 7; +const XHTML11 = 9; +const XHTML20 = 10; +const XHTML5 = 11; +``` + +## Properties +```php +// +protected static autoEscape = true; + +/** + * Framework Dispatcher + */ +protected static container; + +/** + * Pre-assigned values for components + */ +protected static displayValues; + +// +protected static dispatcherService; + +// +protected static documentAppendTitle; + +// +protected static documentPrependTitle; + +/** + * HTML document title + */ +protected static documentTitle; + +// +protected static documentTitleSeparator; + +// +protected static documentType = 11; + +// +protected static escaperService; + +// +protected static urlService; + +``` + +## Methods +```php +static final protected function inputField( string $type, mixed $parameters, bool $asValue = bool ): string; +``` +Builds generic INPUT tags + +@param array parameters + + +```php +static final protected function inputFieldChecked( string $type, mixed $parameters ): string; +``` +Builds INPUT tags that implements the checked attribute + +@param array parameters + + + + +

        Class Phalcon\Tag\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/tag/exception.zep) + +| Namespace | Phalcon\Tag | +| Extends | \Phalcon\Exception | + +Phalcon\Tag\Exception + +Exceptions thrown in Phalcon\Tag will use this class + + + +

        Abstract Class Phalcon\Tag\Select

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/tag/select.zep) + +| Namespace | Phalcon\Tag | +| Uses | Phalcon\Tag\Exception, Phalcon\Tag, Phalcon\Escaper\EscaperInterface, Phalcon\Mvc\Model\ResultsetInterface | + +Phalcon\Tag\Select + +Generates a SELECT html tag using a static array of values or a +Phalcon\Mvc\Model resultset + diff --git a/nikos/api/Phalcon_Text.md b/nikos/api/Phalcon_Text.md new file mode 100644 index 00000000000..b9aba07c173 --- /dev/null +++ b/nikos/api/Phalcon_Text.md @@ -0,0 +1,28 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Text' +--- + +* [Phalcon\Text](#text) + +

        Class Phalcon\Text

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/text.zep) + +| Namespace | Phalcon | +| Uses | Phalcon\Helper\Str | + +Provides utilities to work with texts + + +## Constants +```php +const RANDOM_ALNUM = 0; +const RANDOM_ALPHA = 1; +const RANDOM_DISTINCT = 5; +const RANDOM_HEXDEC = 2; +const RANDOM_NOZERO = 4; +const RANDOM_NUMERIC = 3; +``` diff --git a/nikos/api/Phalcon_Translate.md b/nikos/api/Phalcon_Translate.md new file mode 100644 index 00000000000..2a89ceae9ff --- /dev/null +++ b/nikos/api/Phalcon_Translate.md @@ -0,0 +1,590 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Translate' +--- + +* [Phalcon\Translate\Adapter\AbstractAdapter](#translate-adapter-abstractadapter) +* [Phalcon\Translate\Adapter\AdapterInterface](#translate-adapter-adapterinterface) +* [Phalcon\Translate\Adapter\Csv](#translate-adapter-csv) +* [Phalcon\Translate\Adapter\Gettext](#translate-adapter-gettext) +* [Phalcon\Translate\Adapter\NativeArray](#translate-adapter-nativearray) +* [Phalcon\Translate\Exception](#translate-exception) +* [Phalcon\Translate\Interpolator\AssociativeArray](#translate-interpolator-associativearray) +* [Phalcon\Translate\Interpolator\IndexedArray](#translate-interpolator-indexedarray) +* [Phalcon\Translate\Interpolator\InterpolatorInterface](#translate-interpolator-interpolatorinterface) +* [Phalcon\Translate\InterpolatorFactory](#translate-interpolatorfactory) +* [Phalcon\Translate\TranslateFactory](#translate-translatefactory) + +

        Abstract Class Phalcon\Translate\Adapter\AbstractAdapter

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/translate/adapter/abstractadapter.zep) + +| Namespace | Phalcon\Translate\Adapter | +| Uses | Phalcon\Helper\Arr, Phalcon\Translate\Exception, Phalcon\Translate\Adapter\AdapterInterface, Phalcon\Translate\InterpolatorFactory | +| Implements | AdapterInterface | + +Phalcon\Translate\Adapter + +Base class for Phalcon\Translate adapters + + +## Properties +```php +/** + * @var string + */ +protected defaultInterpolator = ; + +/** + * @var InterpolatorFactory + */ +protected interpolatorFactory; + +``` + +## Methods +```php +public function __construct( InterpolatorFactory $interpolator, array $options ); +``` +// + +```php +public function _( string $translateKey, mixed $placeholders = null ): string; +``` +Returns the translation string of the given key (alias of method 't') + +@param array placeholders + + +```php +public function offsetExists( mixed $translateKey ): bool; +``` +Check whether a translation key exists + + +```php +public function offsetGet( mixed $translateKey ): mixed; +``` +Returns the translation related to the given key + + +```php +public function offsetSet( mixed $offset, mixed $value ): void; +``` +Sets a translation value + +@param string value + + +```php +public function offsetUnset( mixed $offset ): void; +``` +Unsets a translation from the dictionary + + +```php +public function t( string $translateKey, mixed $placeholders = null ): string; +``` +Returns the translation string of the given key + +@param array placeholders + + +```php +protected function replacePlaceholders( string $translation, mixed $placeholders = null ): string; +``` +Replaces placeholders by the values passed + + + + +

        Interface Phalcon\Translate\Adapter\AdapterInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/translate/adapter/adapterinterface.zep) + +| Namespace | Phalcon\Translate\Adapter | + +Phalcon\Translate\AdapterInterface + +Interface for Phalcon\Translate adapters + + +## Methods +```php +public function exists( string $index ): bool; +``` +Check whether is defined a translation key in the internal array + + +```php +public function query( string $translateKey, mixed $placeholders = null ): string; +``` +Returns the translation related to the given key + +@param array placeholders + + +```php +public function t( string $translateKey, mixed $placeholders = null ): string; +``` +Returns the translation string of the given key + +@param array placeholders + + + + +

        Class Phalcon\Translate\Adapter\Csv

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/translate/adapter/csv.zep) + +| Namespace | Phalcon\Translate\Adapter | +| Uses | ArrayAccess, Phalcon\Translate\Exception, Phalcon\Translate\Adapter\AbstractAdapter, Phalcon\Translate\InterpolatorFactory | +| Extends | AbstractAdapter | +| Implements | ArrayAccess | + +Phalcon\Translate\Adapter\Csv + +Allows to define translation lists using CSV file + + +## Properties +```php +/** + * @var array + */ +protected translate; + +``` + +## Methods +```php +public function __construct( InterpolatorFactory $interpolator, array $options ): void; +``` +Phalcon\Translate\Adapter\Csv constructor + + +```php +public function exists( string $index ): bool; +``` +Check whether is defined a translation key in the internal array + + +```php +public function query( string $index, mixed $placeholders = null ): string; +``` +Returns the translation related to the given key + + + + +

        Class Phalcon\Translate\Adapter\Gettext

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/translate/adapter/gettext.zep) + +| Namespace | Phalcon\Translate\Adapter | +| Uses | ArrayAccess, Phalcon\Translate\Exception, Phalcon\Translate\Adapter\AbstractAdapter, Phalcon\Translate\InterpolatorFactory | +| Extends | AbstractAdapter | +| Implements | ArrayAccess | + +Phalcon\Translate\Adapter\Gettext + +```php +use Phalcon\Translate\Adapter\Gettext; + +$adapter = new Gettext( + [ + "locale" => "de_DE.UTF-8", + "defaultDomain" => "translations", + "directory" => "/path/to/application/locales", + "category" => LC_MESSAGES, + ] +); +``` + +Allows translate using gettext + + +## Properties +```php +/** + * @var int + */ +protected category; + +/** + * @var string + */ +protected defaultDomain; + +/** + * @var string|array + */ +protected directory; + +/** + * @var string + */ +protected locale; + +``` + +## Methods +```php +public function __construct( InterpolatorFactory $interpolator, array $options ): void; +``` +Phalcon\Translate\Adapter\Gettext constructor + + +```php +public function exists( string $index ): bool; +``` +Check whether is defined a translation key in the internal array + + +```php +public function getCategory(): int +``` + + +```php +public function getDefaultDomain(): string +``` + + +```php +public function getDirectory(): string|array +``` + + +```php +public function getLocale(): string +``` + + +```php +public function nquery( string $msgid1, string $msgid2, int $count, mixed $placeholders = null, string $domain = null ): string; +``` +The plural version of gettext(). +Some languages have more than one form for plural messages dependent on +the count. + + +```php +public function query( string $index, mixed $placeholders = null ): string; +``` +Returns the translation related to the given key. + +```php +$translator->query("你好 %name%!", ["name" => "Phalcon"]); +``` + +@param array placeholders + + +```php +public function resetDomain(): string; +``` +Sets the default domain + + +```php +public function setDefaultDomain( string $domain ): void; +``` +Sets the domain default to search within when calls are made to gettext() + + +```php +public function setDirectory( mixed $directory ): void; +``` +Sets the path for a domain + +```php +// Set the directory path +$gettext->setDirectory("/path/to/the/messages"); + +// Set the domains and directories path +$gettext->setDirectory( + [ + "messages" => "/path/to/the/messages", + "another" => "/path/to/the/another", + ] +); +``` + +@param string|array directory The directory path or an array of directories and domains + + +```php +public function setDomain( mixed $domain ): string; +``` +Changes the current domain (i.e. the translation file) + + +```php +public function setLocale( int $category, string $locale ): string | bool; +``` +Sets locale information + +```php +// Set locale to Dutch +$gettext->setLocale(LC_ALL, "nl_NL"); + +// Try different possible locale names for german +$gettext->setLocale(LC_ALL, "de_DE@euro", "de_DE", "de", "ge"); +``` + + +```php +protected function getOptionsDefault(): array; +``` +Gets default options + + +```php +protected function prepareOptions( array $options ): void; +``` +Validator for constructor + + + + +

        Class Phalcon\Translate\Adapter\NativeArray

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/translate/adapter/nativearray.zep) + +| Namespace | Phalcon\Translate\Adapter | +| Uses | ArrayAccess, Phalcon\Translate\Exception, Phalcon\Translate\Adapter\AbstractAdapter, Phalcon\Translate\InterpolatorFactory | +| Extends | AbstractAdapter | +| Implements | ArrayAccess | + +Phalcon\Translate\Adapter\NativeArray + +Allows to define translation lists using PHP arrays + + +## Properties +```php +/** + * @var array + */ +private translate; + +/** + * @var bool + */ +private triggerError = false; + +``` + +## Methods +```php +public function __construct( InterpolatorFactory $interpolator, array $options ): void; +``` +Phalcon\Translate\Adapter\NativeArray constructor + + +```php +public function exists( string $index ): bool; +``` +Check whether is defined a translation key in the internal array + + +```php +public function notFound( string $index ): string; +``` +Whenever a key is not found this medhod will be called + + +```php +public function query( string $index, mixed $placeholders = null ): string; +``` +Returns the translation related to the given key + + + + +

        Class Phalcon\Translate\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/translate/exception.zep) + +| Namespace | Phalcon\Translate | +| Extends | \Phalcon\Exception | + +Phalcon\Translate\Exception + +Class for exceptions thrown by Phalcon\Translate + + + +

        Class Phalcon\Translate\Interpolator\AssociativeArray

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/translate/interpolator/associativearray.zep) + +| Namespace | Phalcon\Translate\Interpolator | +| Uses | Phalcon\Translate\Interpolator\InterpolatorInterface | +| Implements | InterpolatorInterface | + +This file is part of the Phalcon Framework. + +(c) Phalcon Team + +For the full copyright and license information, please view the LICENSE.txt +file that was distributed with this source code. + + +## Methods +```php +public function replacePlaceholders( string $translation, array $placeholders = [] ): string; +``` +Replaces placeholders by the values passed + + + + +

        Class Phalcon\Translate\Interpolator\IndexedArray

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/translate/interpolator/indexedarray.zep) + +| Namespace | Phalcon\Translate\Interpolator | +| Uses | Phalcon\Translate\Interpolator\InterpolatorInterface | +| Implements | InterpolatorInterface | + +This file is part of the Phalcon Framework. + +(c) Phalcon Team + +For the full copyright and license information, please view the LICENSE.txt +file that was distributed with this source code. + + +## Methods +```php +public function replacePlaceholders( string $translation, array $placeholders = [] ): string; +``` +Replaces placeholders by the values passed + + + + +

        Interface Phalcon\Translate\Interpolator\InterpolatorInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/translate/interpolator/interpolatorinterface.zep) + +| Namespace | Phalcon\Translate\Interpolator | + +Phalcon\Translate\InterpolatorInterface + +Interface for Phalcon\Translate interpolators + + +## Methods +```php +public function replacePlaceholders( string $translation, array $placeholders = [] ): string; +``` +Replaces placeholders by the values passed + + + + +

        Class Phalcon\Translate\InterpolatorFactory

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/translate/interpolatorfactory.zep) + +| Namespace | Phalcon\Translate | +| Uses | Phalcon\Factory\AbstractFactory, Phalcon\Translate\Adapter\AdapterInterface | +| Extends | AbstractFactory | + +This file is part of the Phalcon Framework. + +(c) Phalcon Team + +For the full copyright and license information, please view the LICENSE.txt +file that was distributed with this source code. + + +## Properties +```php +/** + * @var array + */ +private mapper; + +/** + * @var array + */ +private services; + +``` + +## Methods +```php +public function __construct( array $services = [] ); +``` +AdapterFactory constructor. + + +```php +public function newInstance( string $name ): AdapterInterface; +``` +Create a new instance of the adapter + + +```php +protected function getAdapters(): array; +``` +// + + + +

        Class Phalcon\Translate\TranslateFactory

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/translate/translatefactory.zep) + +| Namespace | Phalcon\Translate | +| Uses | Phalcon\Config, Phalcon\Factory\AbstractFactory, Phalcon\Helper\Arr, Phalcon\Translate\InterpolatorFactory | +| Extends | AbstractFactory | + +This file is part of the Phalcon Framework. + +(c) Phalcon Team + +For the full copyright and license information, please view the LICENSE.txt +file that was distributed with this source code. + + +## Properties +```php +/** + * @var InterpolatorFactory + */ +private interpolator; + +``` + +## Methods +```php +public function __construct( InterpolatorFactory $interpolator, array $services = [] ); +``` +AdapterFactory constructor. + + +```php +public function load( mixed $config ): mixed; +``` +Factory to create an instace from a Config object + + +```php +public function newInstance( string $name, array $options = [] ): AbstractAdapter; +``` +Create a new instance of the adapter + + +```php +protected function getAdapters(): array; +``` +// + diff --git a/nikos/api/Phalcon_Url.md b/nikos/api/Phalcon_Url.md new file mode 100644 index 00000000000..aca9efec320 --- /dev/null +++ b/nikos/api/Phalcon_Url.md @@ -0,0 +1,241 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Url' +--- + +* [Phalcon\Url](#url) +* [Phalcon\Url\Exception](#url-exception) +* [Phalcon\Url\UrlInterface](#url-urlinterface) + +

        Class Phalcon\Url

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/url.zep) + +| Namespace | Phalcon | +| Uses | Phalcon\Di\DiInterface, Phalcon\Di\AbstractInjectionAware, Phalcon\Mvc\RouterInterface, Phalcon\Mvc\Router\RouteInterface, Phalcon\Url\Exception, Phalcon\Url\UrlInterface | +| Extends | AbstractInjectionAware | +| Implements | UrlInterface | + +This components helps in the generation of: URIs, URLs and Paths + +```php +// Generate a URL appending the URI to the base URI +echo $url->get("products/edit/1"); + +// Generate a URL for a predefined route +echo $url->get( + [ + "for" => "blog-post", + "title" => "some-cool-stuff", + "year" => "2012", + ] +); +``` + + +## Properties +```php +/** + * @var null | string + */ +protected baseUri; + +/** + * @var null | string + */ +protected basePath; + +/** + * @var | null + */ +protected router; + +/** + * @var null | string + */ +protected staticBaseUri; + +``` + +## Methods +```php +public function __construct( RouterInterface $router = null ); +``` +// + +```php +public function get( mixed $uri = null, mixed $args = null, bool $local = null, mixed $baseUri = null ): string; +``` +Generates a URL + +```php +// Generate a URL appending the URI to the base URI +echo $url->get("products/edit/1"); + +// Generate a URL for a predefined route +echo $url->get( + [ + "for" => "blog-post", + "title" => "some-cool-stuff", + "year" => "2015", + ] +); + +// Generate a URL with GET arguments (/show/products?id=1&name=Carrots) +echo $url->get( + "show/products", + [ + "id" => 1, + "name" => "Carrots", + ] +); + +// Generate an absolute URL by setting the third parameter as false. +echo $url->get( + "https://phalcon.io/", + null, + false +); +``` + + +```php +public function getBasePath(): string; +``` +Returns the base path + + +```php +public function getBaseUri(): string; +``` +Returns the prefix for all the generated urls. By default / + + +```php +public function getStatic( mixed $uri = null ): string; +``` +Generates a URL for a static resource + +```php +// Generate a URL for a static resource +echo $url->getStatic("img/logo.png"); + +// Generate a URL for a static predefined route +echo $url->getStatic( + [ + "for" => "logo-cdn", + ] +); +``` + + +```php +public function getStaticBaseUri(): string; +``` +Returns the prefix for all the generated static urls. By default / + + +```php +public function path( string $path = null ): string; +``` +Generates a local path + + +```php +public function setBasePath( string $basePath ): UrlInterface; +``` +Sets a base path for all the generated paths + +```php +$url->setBasePath("/var/www/htdocs/"); +``` + + +```php +public function setBaseUri( string $baseUri ): UrlInterface; +``` +Sets a prefix for all the URIs to be generated + +```php +$url->setBaseUri("/invo/"); + +$url->setBaseUri("/invo/index.php/"); +``` + + +```php +public function setStaticBaseUri( string $staticBaseUri ): UrlInterface; +``` +Sets a prefix for all static URLs generated + +```php +$url->setStaticBaseUri("/invo/"); +``` + + + + +

        Class Phalcon\Url\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/url/exception.zep) + +| Namespace | Phalcon\Url | +| Extends | \Phalcon\Exception | + +Phalcon\Url\Exception + +Exceptions thrown in Phalcon\Url will use this class + + + +

        Interface Phalcon\Url\UrlInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/url/urlinterface.zep) + +| Namespace | Phalcon\Url | + +Interface for Phalcon\Url\UrlInterface + + +## Methods +```php +public function get( mixed $uri = null, mixed $args = null, bool $local = null ): string; +``` +Generates a URL + +@param string|array uri +@param array|object args Optional arguments to be appended to the query string + + +```php +public function getBasePath(): string; +``` +Returns a base path + + +```php +public function getBaseUri(): string; +``` +Returns the prefix for all the generated urls. By default / + + +```php +public function path( string $path = null ): string; +``` +Generates a local path + + +```php +public function setBasePath( string $basePath ): UrlInterface; +``` +Sets a base paths for all the generated paths + + +```php +public function setBaseUri( string $baseUri ): UrlInterface; +``` +Sets a prefix to all the urls generated + + diff --git a/nikos/api/Phalcon_Validation.md b/nikos/api/Phalcon_Validation.md new file mode 100644 index 00000000000..3d5d3e3752f --- /dev/null +++ b/nikos/api/Phalcon_Validation.md @@ -0,0 +1,2769 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Validation' +--- + +* [Phalcon\Validation](#validation) +* [Phalcon\Validation\AbstractCombinedFieldsValidator](#validation-abstractcombinedfieldsvalidator) +* [Phalcon\Validation\AbstractValidator](#validation-abstractvalidator) +* [Phalcon\Validation\AbstractValidatorComposite](#validation-abstractvalidatorcomposite) +* [Phalcon\Validation\Exception](#validation-exception) +* [Phalcon\Validation\ValidationInterface](#validation-validationinterface) +* [Phalcon\Validation\Validator\Alnum](#validation-validator-alnum) +* [Phalcon\Validation\Validator\Alpha](#validation-validator-alpha) +* [Phalcon\Validation\Validator\Between](#validation-validator-between) +* [Phalcon\Validation\Validator\Callback](#validation-validator-callback) +* [Phalcon\Validation\Validator\Confirmation](#validation-validator-confirmation) +* [Phalcon\Validation\Validator\CreditCard](#validation-validator-creditcard) +* [Phalcon\Validation\Validator\Date](#validation-validator-date) +* [Phalcon\Validation\Validator\Digit](#validation-validator-digit) +* [Phalcon\Validation\Validator\Email](#validation-validator-email) +* [Phalcon\Validation\Validator\Exception](#validation-validator-exception) +* [Phalcon\Validation\Validator\ExclusionIn](#validation-validator-exclusionin) +* [Phalcon\Validation\Validator\File](#validation-validator-file) +* [Phalcon\Validation\Validator\File\AbstractFile](#validation-validator-file-abstractfile) +* [Phalcon\Validation\Validator\File\MimeType](#validation-validator-file-mimetype) +* [Phalcon\Validation\Validator\File\Resolution\Equal](#validation-validator-file-resolution-equal) +* [Phalcon\Validation\Validator\File\Resolution\Max](#validation-validator-file-resolution-max) +* [Phalcon\Validation\Validator\File\Resolution\Min](#validation-validator-file-resolution-min) +* [Phalcon\Validation\Validator\File\Size\Equal](#validation-validator-file-size-equal) +* [Phalcon\Validation\Validator\File\Size\Max](#validation-validator-file-size-max) +* [Phalcon\Validation\Validator\File\Size\Min](#validation-validator-file-size-min) +* [Phalcon\Validation\Validator\Identical](#validation-validator-identical) +* [Phalcon\Validation\Validator\InclusionIn](#validation-validator-inclusionin) +* [Phalcon\Validation\Validator\Ip](#validation-validator-ip) +* [Phalcon\Validation\Validator\Numericality](#validation-validator-numericality) +* [Phalcon\Validation\Validator\PresenceOf](#validation-validator-presenceof) +* [Phalcon\Validation\Validator\Regex](#validation-validator-regex) +* [Phalcon\Validation\Validator\StringLength](#validation-validator-stringlength) +* [Phalcon\Validation\Validator\StringLength\Max](#validation-validator-stringlength-max) +* [Phalcon\Validation\Validator\StringLength\Min](#validation-validator-stringlength-min) +* [Phalcon\Validation\Validator\Uniqueness](#validation-validator-uniqueness) +* [Phalcon\Validation\Validator\Url](#validation-validator-url) +* [Phalcon\Validation\ValidatorCompositeInterface](#validation-validatorcompositeinterface) +* [Phalcon\Validation\ValidatorFactory](#validation-validatorfactory) +* [Phalcon\Validation\ValidatorInterface](#validation-validatorinterface) + +

        Class Phalcon\Validation

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation.zep) + +| Namespace | Phalcon | +| Uses | Phalcon\Di, Phalcon\Di\DiInterface, Phalcon\Di\Injectable, Phalcon\Filter\FilterInterface, Phalcon\Messages\MessageInterface, Phalcon\Messages\Messages, Phalcon\Validation\ValidationInterface, Phalcon\Validation\Exception, Phalcon\Validation\ValidatorInterface, Phalcon\Validation\AbstractCombinedFieldsValidator | +| Extends | Injectable | +| Implements | ValidationInterface | + +Allows to validate data using custom or built-in validators + + +## Properties +```php +// +protected combinedFieldsValidators; + +// +protected data; + +// +protected entity; + +// +protected filters; + +// +protected labels; + +// +protected messages; + +// +protected validators; + +// +protected values; + +``` + +## Methods +```php +public function __construct( array $validators = [] ): void; +``` +Phalcon\Validation constructor + + +```php +public function add( mixed $field, ValidatorInterface $validator ): ValidationInterface; +``` +Adds a validator to a field + + +```php +public function appendMessage( MessageInterface $message ): ValidationInterface; +``` +Appends a message to the messages list + + +```php +public function bind( mixed $entity, mixed $data ): ValidationInterface; +``` +Assigns the data to an entity +The entity is used to obtain the validation values + +@param object entity +@param array|object data + + +```php +public function getData() +``` + + +```php +public function getEntity(): object; +``` +Returns the bound entity + + +```php +public function getFilters( string $field = null ): mixed | null; +``` +Returns all the filters or a specific one + + +```php +public function getLabel( mixed $field ): string; +``` +Get label for field + +@param string field + + +```php +public function getMessages(): Messages; +``` +Returns the registered validators + + +```php +public function getValidators(): array; +``` +Returns the validators added to the validation + + +```php +public function getValue( string $field ): mixed | null; +``` +Gets the a value to validate in the array/object data source + + +```php +public function rule( mixed $field, ValidatorInterface $validator ): ValidationInterface; +``` +Alias of `add` method + + +```php +public function rules( mixed $field, array $validators ): ValidationInterface; +``` +Adds the validators to a field + + +```php +public function setEntity( mixed $entity ): void; +``` +Sets the bound entity + +@param object entity + + +```php +public function setFilters( mixed $field, mixed $filters ): ValidationInterface; +``` +Adds filters to the field + +@param string field +@param array|string filters + + +```php +public function setLabels( array $labels ): void; +``` +Adds labels for fields + + +```php +public function setValidators( $validators ) +``` + + +```php +public function validate( mixed $data = null, mixed $entity = null ): Messages; +``` +Validate a set of data according to a set of rules + +@param array|object data +@param object entity + + +```php +protected function preChecking( mixed $field, ValidatorInterface $validator ): bool; +``` +Internal validations, if it returns true, then skip the current validator + + + + +

        Abstract Class Phalcon\Validation\AbstractCombinedFieldsValidator

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/abstractcombinedfieldsvalidator.zep) + +| Namespace | Phalcon\Validation | +| Extends | AbstractValidator | + +This is a base class for combined fields validators + + + +

        Abstract Class Phalcon\Validation\AbstractValidator

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/abstractvalidator.zep) + +| Namespace | Phalcon\Validation | +| Uses | Phalcon\Collection, Phalcon\Helper\Arr, Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\Exception, Phalcon\Validation\ValidatorInterface | +| Implements | ValidatorInterface | + +This is a base class for validators + + +## Properties +```php +/** + * Message template + * + * @var string|null + */ +protected template; + +/** + * Message templates + * + * @var array + */ +protected templates; + +// +protected options; + +``` + +## Methods +```php +public function __construct( array $options = [] ): void; +``` +Phalcon\Validation\Validator constructor + + +```php +public function getOption( string $key, mixed $defaultValue = null ): mixed; +``` +Returns an option in the validator's options +Returns null if the option hasn't set + + +```php +public function getTemplate( string $field = null ): string; +``` + Get the template message + + @return string + @throw InvalidArgumentException When the field does not exists + + +```php +public function getTemplates(): array; +``` + Get templates collection object + + @return array + + +```php +public function hasOption( string $key ): bool; +``` +Checks if an option is defined + + +```php +public function messageFactory( Validation $validation, mixed $field, array $replacements = [] ): Message; +``` + Create a default message by factory + + @return Message + + @throw Exception + + +```php +public function setOption( string $key, mixed $value ): void; +``` +Sets an option in the validator + + +```php +public function setTemplate( string $template ): ValidatorInterface; +``` + Set a new template message + + @return Validator + + +```php +public function setTemplates( array $templates ): ValidatorInterface; +``` + Clear current templates and set new from an array, + + @return Validator + + +```php +abstract public function validate( Validation $validation, mixed $field ): bool; +``` +Executes the validation + + +```php +protected function prepareCode( string $field ): int | null; +``` +Prepares a validation code. + + +```php +protected function prepareLabel( Validation $validation, string $field ): mixed; +``` +Prepares a label for the field. + + + + +

        Abstract Class Phalcon\Validation\AbstractValidatorComposite

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/abstractvalidatorcomposite.zep) + +| Namespace | Phalcon\Validation | +| Uses | Phalcon\Validation | +| Extends | AbstractValidator | +| Implements | ValidatorCompositeInterface | + +This is a base class for combined fields validators + + +## Properties +```php +/** + * @var array + */ +protected validators; + +``` + +## Methods +```php +public function getValidators(): array +``` + + +```php +public function validate( Validation $validation, mixed $field ): bool; +``` +Executes the validation + + + + +

        Class Phalcon\Validation\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/exception.zep) + +| Namespace | Phalcon\Validation | +| Extends | \Phalcon\Exception | + +Exceptions thrown in Phalcon\Validation\* classes will use this class + + + +

        Interface Phalcon\Validation\ValidationInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validationinterface.zep) + +| Namespace | Phalcon\Validation | +| Uses | Phalcon\Di\Injectable, Phalcon\Messages\MessageInterface, Phalcon\Messages\Messages, Phalcon\Validation\Exception, Phalcon\Validation\ValidatorInterface | + +Interface for the Phalcon\Validation component + + +## Methods +```php +public function add( string $field, ValidatorInterface $validator ): ValidationInterface; +``` +Adds a validator to a field + + +```php +public function appendMessage( MessageInterface $message ): ValidationInterface; +``` +Appends a message to the messages list + + +```php +public function bind( mixed $entity, mixed $data ): ValidationInterface; +``` +Assigns the data to an entity +The entity is used to obtain the validation values + +@param object entity +@param array|object data + + +```php +public function getEntity(): object; +``` +Returns the bound entity + + +```php +public function getFilters( string $field = null ): mixed | null; +``` +Returns all the filters or a specific one + + +```php +public function getLabel( string $field ): string; +``` +Get label for field + + +```php +public function getMessages(): Messages; +``` +Returns the registered validators + + +```php +public function getValidators(): array; +``` +Returns the validators added to the validation + + +```php +public function getValue( string $field ): mixed | null; +``` +Gets the a value to validate in the array/object data source + + +```php +public function rule( string $field, ValidatorInterface $validator ): ValidationInterface; +``` +Alias of `add` method + + +```php +public function rules( string $field, array $validators ): ValidationInterface; +``` +Adds the validators to a field + + +```php +public function setFilters( string $field, mixed $filters ): ValidationInterface; +``` +Adds filters to the field + +@param array|string filters + + +```php +public function setLabels( array $labels ): void; +``` +Adds labels for fields + + +```php +public function validate( mixed $data = null, mixed $entity = null ): Messages; +``` +Validate a set of data according to a set of rules + +@param array|object data +@param object entity + + + + +

        Class Phalcon\Validation\Validator\Alnum

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/alnum.zep) + +| Namespace | Phalcon\Validation\Validator | +| Uses | Phalcon\Validation, Phalcon\Validation\AbstractValidator | +| Extends | AbstractValidator | + +Check for alphanumeric character(s) + +```php +use Phalcon\Validation; +use Phalcon\Validation\Validator\Alnum as AlnumValidator; + +$validator = new Validation(); + +$validator->add( + "username", + new AlnumValidator( + [ + "message" => ":field must contain only alphanumeric characters", + ] + ) +); + +$validator->add( + [ + "username", + "name", + ], + new AlnumValidator( + [ + "message" => [ + "username" => "username must contain only alphanumeric characters", + "name" => "name must contain only alphanumeric characters", + ], + ] + ) +); +``` + + +## Properties +```php +// +protected template = Field :field must contain only letters and numbers; + +``` + +## Methods +```php +public function validate( Validation $validation, mixed $field ): bool; +``` +Executes the validation + + + + +

        Class Phalcon\Validation\Validator\Alpha

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/alpha.zep) + +| Namespace | Phalcon\Validation\Validator | +| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\AbstractValidator | +| Extends | AbstractValidator | + +Check for alphabetic character(s) + +```php +use Phalcon\Validation; +use Phalcon\Validation\Validator\Alpha as AlphaValidator; + +$validator = new Validation(); + +$validator->add( + "username", + new AlphaValidator( + [ + "message" => ":field must contain only letters", + ] + ) +); + +$validator->add( + [ + "username", + "name", + ], + new AlphaValidator( + [ + "message" => [ + "username" => "username must contain only letters", + "name" => "name must contain only letters", + ], + ] + ) +); +``` + + +## Properties +```php +// +protected template = Field :field must contain only letters; + +``` + +## Methods +```php +public function validate( Validation $validation, mixed $field ): bool; +``` +Executes the validation + + + + +

        Class Phalcon\Validation\Validator\Between

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/between.zep) + +| Namespace | Phalcon\Validation\Validator | +| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\AbstractValidator | +| Extends | AbstractValidator | + +Validates that a value is between an inclusive range of two values. +For a value x, the test is passed if minimum<=x<=maximum. + +```php +use Phalcon\Validation; +use Phalcon\Validation\Validator\Between; + +$validator = new Validation(); + +$validator->add( + "price", + new Between( + [ + "minimum" => 0, + "maximum" => 100, + "message" => "The price must be between 0 and 100", + ] + ) +); + +$validator->add( + [ + "price", + "amount", + ], + new Between( + [ + "minimum" => [ + "price" => 0, + "amount" => 0, + ], + "maximum" => [ + "price" => 100, + "amount" => 50, + ], + "message" => [ + "price" => "The price must be between 0 and 100", + "amount" => "The amount must be between 0 and 50", + ], + ] + ) +); +``` + + +## Properties +```php +// +protected template = Field :field must be within the range of :min to :max; + +``` + +## Methods +```php +public function validate( Validation $validation, mixed $field ): bool; +``` +Executes the validation + + + + +

        Class Phalcon\Validation\Validator\Callback

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/callback.zep) + +| Namespace | Phalcon\Validation\Validator | +| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\ValidatorInterface, Phalcon\Validation\AbstractValidator | +| Extends | AbstractValidator | + +Calls user function for validation + +```php +use Phalcon\Validation; +use Phalcon\Validation\Validator\Callback as CallbackValidator; +use Phalcon\Validation\Validator\Numericality as NumericalityValidator; + +$validator = new Validation(); + +$validator->add( + ["user", "admin"], + new CallbackValidator( + [ + "message" => "There must be only an user or admin set", + "callback" => function($data) { + if (!empty($data->getUser()) && !empty($data->getAdmin())) { + return false; + } + + return true; + } + ] + ) +); + +$validator->add( + "amount", + new CallbackValidator( + [ + "callback" => function($data) { + if (!empty($data->getProduct())) { + return new NumericalityValidator( + [ + "message" => "Amount must be a number." + ] + ); + } + } + ] + ) +); +``` + + +## Properties +```php +// +protected template = Field :field must match the callback function; + +``` + +## Methods +```php +public function validate( Validation $validation, mixed $field ): bool; +``` +Executes the validation + + + + +

        Class Phalcon\Validation\Validator\Confirmation

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/confirmation.zep) + +| Namespace | Phalcon\Validation\Validator | +| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\Exception, Phalcon\Validation\AbstractValidator | +| Extends | AbstractValidator | + +Checks that two values have the same value + +```php +use Phalcon\Validation; +use Phalcon\Validation\Validator\Confirmation; + +$validator = new Validation(); + +$validator->add( + "password", + new Confirmation( + [ + "message" => "Password doesn't match confirmation", + "with" => "confirmPassword", + ] + ) +); + +$validator->add( + [ + "password", + "email", + ], + new Confirmation( + [ + "message" => [ + "password" => "Password doesn't match confirmation", + "email" => "Email doesn't match confirmation", + ], + "with" => [ + "password" => "confirmPassword", + "email" => "confirmEmail", + ], + ] + ) +); +``` + + +## Properties +```php +// +protected template = Field :field must be the same as :with; + +``` + +## Methods +```php +public function validate( Validation $validation, mixed $field ): bool; +``` +Executes the validation + + +```php +final protected function compare( string $a, string $b ): bool; +``` +Compare strings + + + + +

        Class Phalcon\Validation\Validator\CreditCard

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/creditcard.zep) + +| Namespace | Phalcon\Validation\Validator | +| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\AbstractValidator | +| Extends | AbstractValidator | + +Checks if a value has a valid credit card number + +```php +use Phalcon\Validation; +use Phalcon\Validation\Validator\CreditCard as CreditCardValidator; + +$validator = new Validation(); + +$validator->add( + "creditCard", + new CreditCardValidator( + [ + "message" => "The credit card number is not valid", + ] + ) +); + +$validator->add( + [ + "creditCard", + "secondCreditCard", + ], + new CreditCardValidator( + [ + "message" => [ + "creditCard" => "The credit card number is not valid", + "secondCreditCard" => "The second credit card number is not valid", + ], + ] + ) +); +``` + + +## Properties +```php +// +protected template = Field :field is not valid for a credit card number; + +``` + +## Methods +```php +public function validate( Validation $validation, mixed $field ): bool; +``` +Executes the validation + + + + +

        Class Phalcon\Validation\Validator\Date

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/date.zep) + +| Namespace | Phalcon\Validation\Validator | +| Uses | DateTime, Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\AbstractValidator | +| Extends | AbstractValidator | + +Checks if a value is a valid date + +```php +use Phalcon\Validation; +use Phalcon\Validation\Validator\Date as DateValidator; + +$validator = new Validation(); + +$validator->add( + "date", + new DateValidator( + [ + "format" => "d-m-Y", + "message" => "The date is invalid", + ] + ) +); + +$validator->add( + [ + "date", + "anotherDate", + ], + new DateValidator( + [ + "format" => [ + "date" => "d-m-Y", + "anotherDate" => "Y-m-d", + ], + "message" => [ + "date" => "The date is invalid", + "anotherDate" => "The another date is invalid", + ], + ] + ) +); +``` + + +## Properties +```php +// +protected template = Field :field is not a valid date; + +``` + +## Methods +```php +public function validate( Validation $validation, mixed $field ): bool; +``` +Executes the validation + + + + +

        Class Phalcon\Validation\Validator\Digit

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/digit.zep) + +| Namespace | Phalcon\Validation\Validator | +| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\AbstractValidator | +| Extends | AbstractValidator | + +Check for numeric character(s) + +```php +use Phalcon\Validation; +use Phalcon\Validation\Validator\Digit as DigitValidator; + +$validator = new Validation(); + +$validator->add( + "height", + new DigitValidator( + [ + "message" => ":field must be numeric", + ] + ) +); + +$validator->add( + [ + "height", + "width", + ], + new DigitValidator( + [ + "message" => [ + "height" => "height must be numeric", + "width" => "width must be numeric", + ], + ] + ) +); +``` + + +## Properties +```php +// +protected template = Field :field must be numeric; + +``` + +## Methods +```php +public function validate( Validation $validation, mixed $field ): bool; +``` +Executes the validation + + + + +

        Class Phalcon\Validation\Validator\Email

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/email.zep) + +| Namespace | Phalcon\Validation\Validator | +| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\AbstractValidator | +| Extends | AbstractValidator | + +Checks if a value has a correct e-mail format + +```php +use Phalcon\Validation; +use Phalcon\Validation\Validator\Email as EmailValidator; + +$validator = new Validation(); + +$validator->add( + "email", + new EmailValidator( + [ + "message" => "The e-mail is not valid", + ] + ) +); + +$validator->add( + [ + "email", + "anotherEmail", + ], + new EmailValidator( + [ + "message" => [ + "email" => "The e-mail is not valid", + "anotherEmail" => "The another e-mail is not valid", + ], + ] + ) +); +``` + + +## Properties +```php +// +protected template = Field :field must be an email address; + +``` + +## Methods +```php +public function validate( Validation $validation, mixed $field ): bool; +``` +Executes the validation + + + + +

        Class Phalcon\Validation\Validator\Exception

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/exception.zep) + +| Namespace | Phalcon\Validation\Validator | +| Extends | \Phalcon\Exception | + +Exceptions thrown in Phalcon\Validation\Validator\* classes will use this +class + + + +

        Class Phalcon\Validation\Validator\ExclusionIn

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/exclusionin.zep) + +| Namespace | Phalcon\Validation\Validator | +| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\AbstractValidator, Phalcon\Validation\Exception | +| Extends | AbstractValidator | + +Check if a value is not included into a list of values + +```php +use Phalcon\Validation; +use Phalcon\Validation\Validator\ExclusionIn; + +$validator = new Validation(); + +$validator->add( + "status", + new ExclusionIn( + [ + "message" => "The status must not be A or B", + "domain" => [ + "A", + "B", + ], + ] + ) +); + +$validator->add( + [ + "status", + "type", + ], + new ExclusionIn( + [ + "message" => [ + "status" => "The status must not be A or B", + "type" => "The type must not be 1 or " + ], + "domain" => [ + "status" => [ + "A", + "B", + ], + "type" => [1, 2], + ], + ] + ) +); +``` + + +## Properties +```php +// +protected template = Field :field must not be a part of list: :domain; + +``` + +## Methods +```php +public function validate( Validation $validation, mixed $field ): bool; +``` +Executes the validation + + + + +

        Class Phalcon\Validation\Validator\File

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/file.zep) + +| Namespace | Phalcon\Validation\Validator | +| Uses | Phalcon\Helper\Arr, Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\AbstractValidatorComposite, Phalcon\Validation\Validator\File\MimeType, Phalcon\Validation\Validator\File\Resolution\Equal, Phalcon\Validation\Validator\File\Resolution\Max, Phalcon\Validation\Validator\File\Resolution\Min, Phalcon\Validation\Validator\File\Size\Equal, Phalcon\Validation\Validator\File\Size\Max, Phalcon\Validation\Validator\File\Size\Min | +| Extends | AbstractValidatorComposite | + +Checks if a value has a correct file + +```php +use Phalcon\Validation; +use Phalcon\Validation\Validator\File as FileValidator; + +$validator = new Validation(); + +$validator->add( + "file", + new FileValidator( + [ + "maxSize" => "2M", + "messageSize" => ":field exceeds the max filesize (:size)", + "allowedTypes" => [ + "image/jpeg", + "image/png", + ], + "messageType" => "Allowed file types are :types", + "maxResolution" => "800x600", + "messageMaxResolution" => "Max resolution of :field is :resolution", + ] + ) +); + +$validator->add( + [ + "file", + "anotherFile", + ], + new FileValidator( + [ + "maxSize" => [ + "file" => "2M", + "anotherFile" => "4M", + ], + "messageSize" => [ + "file" => "file exceeds the max filesize 2M", + "anotherFile" => "anotherFile exceeds the max filesize 4M", + "allowedTypes" => [ + "file" => [ + "image/jpeg", + "image/png", + ], + "anotherFile" => [ + "image/gif", + "image/bmp", + ], + ], + "messageType" => [ + "file" => "Allowed file types are image/jpeg and image/png", + "anotherFile" => "Allowed file types are image/gif and image/bmp", + ], + "maxResolution" => [ + "file" => "800x600", + "anotherFile" => "1024x768", + ], + "messageMaxResolution" => [ + "file" => "Max resolution of file is 800x600", + "anotherFile" => "Max resolution of file is 1024x768", + ], + ] + ) +); +``` + + +## Methods +```php +public function __construct( array $options = [] ); +``` +Constructor + + + + +

        Abstract Class Phalcon\Validation\Validator\File\AbstractFile

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/file/abstractfile.zep) + +| Namespace | Phalcon\Validation\Validator\File | +| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\AbstractValidator | +| Extends | AbstractValidator | + +Checks if a value has a correct file + +```php +use Phalcon\Validation; +use Phalcon\Validation\Validator\File\Size; + +$validator = new Validation(); + +$validator->add( + "file", + new Size( + [ + "maxSize" => "2M", + "messageSize" => ":field exceeds the max filesize (:size)", + ] + ) +); + +$validator->add( + [ + "file", + "anotherFile", + ], + new FileValidator( + [ + "maxSize" => [ + "file" => "2M", + "anotherFile" => "4M", + ], + "messageSize" => [ + "file" => "file exceeds the max filesize 2M", + "anotherFile" => "anotherFile exceeds the max filesize 4M", + ], + ] + ) +); +``` + + +## Properties +```php +/** + * Empty is empty + */ +protected messageFileEmpty = Field :field must not be empty; + +/** + * File exceeed the file size setted in PHP configuration + */ +protected messageIniSize = File :field exceeds the maximum file size; + +/** + * File is not valid + */ +protected messageValid = Field :field is not valid; + +``` + +## Methods +```php +public function checkUpload( Validation $validation, mixed $field ): bool; +``` + Check upload + + @param Valiation $validation + @param mixed $field + @return bool + + +```php +public function checkUploadIsEmpty( Validation $validation, mixed $field ): bool; +``` + Check if upload is empty + + @param Valiation $validation + @param mixed $field + @return boolean + + +```php +public function checkUploadIsValid( Validation $validation, mixed $field ): bool; +``` + Check if upload is valid + + @param Valiation $validation + @param mixed $field + @return boolean + + +```php +public function checkUploadMaxSize( Validation $validation, mixed $field ): bool; +``` + Check if uploaded file is larger than PHP allowed size + + @param Valiation $validation + @param mixed $field + @return boolean + + +```php +public function getFileSizeInBytes( string $size ): double; +``` + Convert a string like "2.5MB" in bytes + + @param string $size + @return float + + +```php +public function getMessageFileEmpty() +``` + + +```php +public function getMessageIniSize() +``` + + +```php +public function getMessageValid() +``` + + +```php +public function isAllowEmpty( Validation $validation, string $field ): bool; +``` +Check on empty + +@param Valiation $validation +@param mixed $field +@return bool + + +```php +public function setMessageFileEmpty( $messageFileEmpty ) +``` + + +```php +public function setMessageIniSize( $messageIniSize ) +``` + + +```php +public function setMessageValid( $messageValid ) +``` + + + + +

        Class Phalcon\Validation\Validator\File\MimeType

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/file/mimetype.zep) + +| Namespace | Phalcon\Validation\Validator\File | +| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\Exception, Phalcon\Validation\Validator\File\AbstractFile | +| Extends | AbstractFile | + +Checks if a value has a correct file mime type + +```php +use Phalcon\Validation; +use Phalcon\Validation\Validator\File\MimeType; + +$validator = new Validation(); + +$validator->add( + "file", + new MimeType( + [ + "types" => [ + "image/jpeg", + "image/png", + ], + "message" => "Allowed file types are :types" + ] + ) +); + +$validator->add( + [ + "file", + "anotherFile", + ], + new MimeType( + [ + "types" => [ + "file" => [ + "image/jpeg", + "image/png", + ], + "anotherFile" => [ + "image/gif", + "image/bmp", + ], + ], + "message" => [ + "file" => "Allowed file types are image/jpeg and image/png", + "anotherFile" => "Allowed file types are image/gif and image/bmp", + ] + ] + ) +); +``` + + +## Properties +```php +// +protected template = File :field must be of type: :types; + +``` + +## Methods +```php +public function validate( Validation $validation, mixed $field ): bool; +``` +Executes the validation + +@param Valiation $validation +@param mixed $field +@return bool + + + + +

        Class Phalcon\Validation\Validator\File\Resolution\Equal

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/file/resolution/equal.zep) + +| Namespace | Phalcon\Validation\Validator\File\Resolution | +| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\Validator\File\AbstractFile | +| Extends | AbstractFile | + +Checks if a file has the rigth resolution + +```php +use Phalcon\Validation; +use Phalcon\Validation\Validator\File\Resolution\Equal; + +$validator = new Validation(); + +$validator->add( + "file", + new Equal( + [ + "resolution" => "800x600", + "message" => "The resolution of the field :field has to be equal :resolution", + ] + ) +); + +$validator->add( + [ + "file", + "anotherFile", + ], + new Equal( + [ + "resolution" => [ + "file" => "800x600", + "anotherFile" => "1024x768", + ], + "message" => [ + "file" => "Equal resolution of file has to be 800x600", + "anotherFile" => "Equal resolution of file has to be 1024x768", + ], + ] + ) +); +``` + + +## Properties +```php +// +protected template = The resolution of the field :field has to be equal :resolution; + +``` + +## Methods +```php +public function validate( Validation $validation, mixed $field ): bool; +``` +Executes the validation + + + + +

        Class Phalcon\Validation\Validator\File\Resolution\Max

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/file/resolution/max.zep) + +| Namespace | Phalcon\Validation\Validator\File\Resolution | +| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\Validator\File\AbstractFile | +| Extends | AbstractFile | + +Checks if a file has the rigth resolution + +```php +use Phalcon\Validation; +use Phalcon\Validation\Validator\File\Resolution\Max; + +$validator = new Validation(); + +$validator->add( + "file", + new Max( + [ + "resolution" => "800x600", + "message" => "Max resolution of :field is :resolution", + "included" => true, + ] + ) +); + +$validator->add( + [ + "file", + "anotherFile", + ], + new Max( + [ + "resolution" => [ + "file" => "800x600", + "anotherFile" => "1024x768", + ], + "included" => [ + "file" => false, + "anotherFile" => true, + ], + "message" => [ + "file" => "Max resolution of file is 800x600", + "anotherFile" => "Max resolution of file is 1024x768", + ], + ] + ) +); +``` + + +## Properties +```php +// +protected template = File :field exceeds the maximum resolution of :resolution; + +``` + +## Methods +```php +public function validate( Validation $validation, mixed $field ): bool; +``` +Executes the validation + + + + +

        Class Phalcon\Validation\Validator\File\Resolution\Min

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/file/resolution/min.zep) + +| Namespace | Phalcon\Validation\Validator\File\Resolution | +| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\Validator\File\AbstractFile | +| Extends | AbstractFile | + +Checks if a file has the rigth resolution + +```php +use Phalcon\Validation; +use Phalcon\Validation\Validator\File\Resolution\Min; + +$validator = new Validation(); + +$validator->add( + "file", + new Min( + [ + "resolution" => "800x600", + "message" => "Min resolution of :field is :resolution", + "included" => true, + ] + ) +); + +$validator->add( + [ + "file", + "anotherFile", + ], + new Min( + [ + "resolution" => [ + "file" => "800x600", + "anotherFile" => "1024x768", + ], + "included" => [ + "file" => false, + "anotherFile" => true, + ], + "message" => [ + "file" => "Min resolution of file is 800x600", + "anotherFile" => "Min resolution of file is 1024x768", + ], + ] + ) +); +``` + + +## Properties +```php +// +protected template = File :field can not have the minimum resolution of :resolution; + +``` + +## Methods +```php +public function validate( Validation $validation, mixed $field ): bool; +``` +Executes the validation + + + + +

        Class Phalcon\Validation\Validator\File\Size\Equal

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/file/size/equal.zep) + +| Namespace | Phalcon\Validation\Validator\File\Size | +| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\Validator\File\Size\Equal, Phalcon\Validation\Validator\File\AbstractFile | +| Extends | AbstractFile | + +Checks if a value has a correct file + +```php +use Phalcon\Validation; +use Phalcon\Validation\Validator\File\Size; + +$validator = new Validation(); + +$validator->add( + "file", + new Equal( + [ + "size" => "2M", + "included" => true, + "message" => ":field exceeds the equal filesize (:size)", + ] + ) +); + +$validator->add( + [ + "file", + "anotherFile", + ], + new Equal( + [ + "size" => [ + "file" => "2M", + "anotherFile" => "4M", + ], + "included" => [ + "file" => false, + "anotherFile" => true, + ], + "message" => [ + "file" => "file does not have the rigth filesize", + "anotherFile" => "anotherFile wrong filesize (4MB)", + ], + ] + ) +); +``` + + +## Properties +```php +// +protected template = File :field does not have the exact :size filesize; + +``` + +## Methods +```php +public function validate( Validation $validation, mixed $field ): bool; +``` +Executes the validation + + + + +

        Class Phalcon\Validation\Validator\File\Size\Max

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/file/size/max.zep) + +| Namespace | Phalcon\Validation\Validator\File\Size | +| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\Validator\File\Size\Max, Phalcon\Validation\Validator\File\AbstractFile | +| Extends | AbstractFile | + +Checks if a value has a correct file + +```php +use Phalcon\Validation; +use Phalcon\Validation\Validator\File\Size; + +$validator = new Validation(); + +$validator->add( + "file", + new Max( + [ + "size" => "2M", + "included" => true, + "message" => ":field exceeds the max filesize (:size)", + ] + ) +); + +$validator->add( + [ + "file", + "anotherFile", + ], + new Max( + [ + "size" => [ + "file" => "2M", + "anotherFile" => "4M", + ], + "included" => [ + "file" => false, + "anotherFile" => true, + ], + "message" => [ + "file" => "file exceeds the max filesize 2M", + "anotherFile" => "anotherFile exceeds the max filesize 4M", + ], + ] + ) +); +``` + + +## Properties +```php +// +protected template = File :field exceeds the size of :size; + +``` + +## Methods +```php +public function validate( Validation $validation, mixed $field ): bool; +``` +Executes the validation + + + + +

        Class Phalcon\Validation\Validator\File\Size\Min

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/file/size/min.zep) + +| Namespace | Phalcon\Validation\Validator\File\Size | +| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\Validator\File\Size\Min, Phalcon\Validation\Validator\File\AbstractFile | +| Extends | AbstractFile | + +Checks if a value has a correct file + +```php +use Phalcon\Validation; +use Phalcon\Validation\Validator\File\Size; + +$validator = new Validation(); + +$validator->add( + "file", + new Min( + [ + "size" => "2M", + "included" => true, + "message" => ":field exceeds the min filesize (:size)", + ] + ) +); + +$validator->add( + [ + "file", + "anotherFile", + ], + new Min( + [ + "size" => [ + "file" => "2M", + "anotherFile" => "4M", + ], + "included" => [ + "file" => false, + "anotherFile" => true, + ], + "message" => [ + "file" => "file exceeds the min filesize 2M", + "anotherFile" => "anotherFile exceeds the min filesize 4M", + ], + ] + ) +); +``` + + +## Properties +```php +// +protected template = File :field can not have the minimum size of :size; + +``` + +## Methods +```php +public function validate( Validation $validation, mixed $field ): bool; +``` +Executes the validation + + + + +

        Class Phalcon\Validation\Validator\Identical

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/identical.zep) + +| Namespace | Phalcon\Validation\Validator | +| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\AbstractValidator | +| Extends | AbstractValidator | + +Checks if a value is identical to other + +```php +use Phalcon\Validation; +use Phalcon\Validation\Validator\Identical; + +$validator = new Validation(); + +$validator->add( + "terms", + new Identical( + [ + "accepted" => "yes", + "message" => "Terms and conditions must be accepted", + ] + ) +); + +$validator->add( + [ + "terms", + "anotherTerms", + ], + new Identical( + [ + "accepted" => [ + "terms" => "yes", + "anotherTerms" => "yes", + ], + "message" => [ + "terms" => "Terms and conditions must be accepted", + "anotherTerms" => "Another terms must be accepted", + ], + ] + ) +); +``` + + +## Properties +```php +// +protected template = Field :field does not have the expected value; + +``` + +## Methods +```php +public function validate( Validation $validation, mixed $field ): bool; +``` +Executes the validation + + + + +

        Class Phalcon\Validation\Validator\InclusionIn

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/inclusionin.zep) + +| Namespace | Phalcon\Validation\Validator | +| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\AbstractValidator, Phalcon\Validation\Exception | +| Extends | AbstractValidator | + +Check if a value is included into a list of values + +```php +use Phalcon\Validation; +use Phalcon\Validation\Validator\InclusionIn; + +$validator = new Validation(); + +$validator->add( + "status", + new InclusionIn( + [ + "message" => "The status must be A or B", + "domain" => ["A", "B"], + ] + ) +); + +$validator->add( + [ + "status", + "type", + ], + new InclusionIn( + [ + "message" => [ + "status" => "The status must be A or B", + "type" => "The status must be 1 or 2", + ], + "domain" => [ + "status" => ["A", "B"], + "type" => [1, 2], + ] + ] + ) +); +``` + + +## Properties +```php +// +protected template = Field :field must be a part of list: :domain; + +``` + +## Methods +```php +public function validate( Validation $validation, mixed $field ): bool; +``` +Executes the validation + + + + +

        Class Phalcon\Validation\Validator\Ip

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/ip.zep) + +| Namespace | Phalcon\Validation\Validator | +| Uses | Phalcon\Validation, Phalcon\Validation\AbstractValidator, Phalcon\Messages\Message | +| Extends | AbstractValidator | + +Check for IP addresses + +```php +use Phalcon\Validation\Validator\Ip as IpValidator; + +$validator->add( + "ip_address", + new IpValidator( + [ + "message" => ":field must contain only ip addresses", + "version" => IP::VERSION_4 | IP::VERSION_6, // v6 and v4. The same if not specified + "allowReserved" => false, // False if not specified. Ignored for v6 + "allowPrivate" => false, // False if not specified + "allowEmpty" => false, + ] + ) +); + +$validator->add( + [ + "source_address", + "destination_address", + ], + new IpValidator( + [ + "message" => [ + "source_address" => "source_address must be a valid IP address", + "destination_address" => "destination_address must be a valid IP address", + ], + "version" => [ + "source_address" => Ip::VERSION_4 | IP::VERSION_6, + "destination_address" => Ip::VERSION_4, + ], + "allowReserved" => [ + "source_address" => false, + "destination_address" => true, + ], + "allowPrivate" => [ + "source_address" => false, + "destination_address" => true, + ], + "allowEmpty" => [ + "source_address" => false, + "destination_address" => true, + ], + ] + ) +); +``` + + +## Constants +```php +const VERSION_4 = FILTER_FLAG_IPV4; +const VERSION_6 = FILTER_FLAG_IPV6; +``` + +## Properties +```php +// +protected template = Field :field must be a valid IP address; + +``` + +## Methods +```php +public function validate( Validation $validation, mixed $field ): bool; +``` +Executes the validation + + + + +

        Class Phalcon\Validation\Validator\Numericality

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/numericality.zep) + +| Namespace | Phalcon\Validation\Validator | +| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\AbstractValidator | +| Extends | AbstractValidator | + +Check for a valid numeric value + +```php +use Phalcon\Validation; +use Phalcon\Validation\Validator\Numericality; + +$validator = new Validation(); + +$validator->add( + "price", + new Numericality( + [ + "message" => ":field is not numeric", + ] + ) +); + +$validator->add( + [ + "price", + "amount", + ], + new Numericality( + [ + "message" => [ + "price" => "price is not numeric", + "amount" => "amount is not numeric", + ] + ] + ) +); +``` + + +## Properties +```php +// +protected template = Field :field does not have a valid numeric format; + +``` + +## Methods +```php +public function validate( Validation $validation, mixed $field ): bool; +``` +Executes the validation + + + + +

        Class Phalcon\Validation\Validator\PresenceOf

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/presenceof.zep) + +| Namespace | Phalcon\Validation\Validator | +| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\AbstractValidator | +| Extends | AbstractValidator | + +Validates that a value is not null or empty string + +```php +use Phalcon\Validation; +use Phalcon\Validation\Validator\PresenceOf; + +$validator = new Validation(); + +$validator->add( + "name", + new PresenceOf( + [ + "message" => "The name is required", + ] + ) +); + +$validator->add( + [ + "name", + "email", + ], + new PresenceOf( + [ + "message" => [ + "name" => "The name is required", + "email" => "The email is required", + ], + ] + ) +); +``` + + +## Properties +```php +// +protected template = Field :field is required; + +``` + +## Methods +```php +public function validate( Validation $validation, mixed $field ): bool; +``` +Executes the validation + + + + +

        Class Phalcon\Validation\Validator\Regex

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/regex.zep) + +| Namespace | Phalcon\Validation\Validator | +| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\AbstractValidator | +| Extends | AbstractValidator | + +Allows validate if the value of a field matches a regular expression + +```php +use Phalcon\Validation; +use Phalcon\Validation\Validator\Regex as RegexValidator; + +$validator = new Validation(); + +$validator->add( + "created_at", + new RegexValidator( + [ + "pattern" => "/^[0-9]{4}[-\/](0[1-9]|1[12])[-\/](0[1-9]|[12][0-9]|3[01])$/", + "message" => "The creation date is invalid", + ] + ) +); + +$validator->add( + [ + "created_at", + "name", + ], + new RegexValidator( + [ + "pattern" => [ + "created_at" => "/^[0-9]{4}[-\/](0[1-9]|1[12])[-\/](0[1-9]|[12][0-9]|3[01])$/", + "name" => "/^[a-z]$/", + ], + "message" => [ + "created_at" => "The creation date is invalid", + "name" => "The name is invalid", + ] + ] + ) +); +``` + + +## Properties +```php +// +protected template = Field :field does not match the required format; + +``` + +## Methods +```php +public function validate( Validation $validation, mixed $field ): bool; +``` +Executes the validation + + + + +

        Class Phalcon\Validation\Validator\StringLength

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/stringlength.zep) + +| Namespace | Phalcon\Validation\Validator | +| Uses | Phalcon\Messages\Message, Phalcon\Validation\AbstractValidator, Phalcon\Validation\AbstractValidatorComposite, Phalcon\Validation\Validator\StringLength\Max, Phalcon\Validation\Validator\StringLength\Min, Phalcon\Validation\Exception | +| Extends | AbstractValidatorComposite | + +Validates that a string has the specified maximum and minimum constraints +The test is passed if for a string's length L, min<=L<=max, i.e. L must +be at least min, and at most max. +Since Phalcon v4.0 this valitor works like a container + +```php +use Phalcon\Validation; +use Phalcon\Validation\Validator\StringLength as StringLength; + +$validator = new Validation(); + +$validation->add( + "name_last", + new StringLength( + [ + "max" => 50, + "min" => 2, + "messageMaximum" => "We don't like really long names", + "messageMinimum" => "We want more than just their initials", + "includedMaximum" => true, + "includedMinimum" => false, + ] + ) +); + +$validation->add( + [ + "name_last", + "name_first", + ], + new StringLength( + [ + "max" => [ + "name_last" => 50, + "name_first" => 40, + ], + "min" => [ + "name_last" => 2, + "name_first" => 4, + ], + "messageMaximum" => [ + "name_last" => "We don't like really long last names", + "name_first" => "We don't like really long first names", + ], + "messageMinimum" => [ + "name_last" => "We don't like too short last names", + "name_first" => "We don't like too short first names", + ], + "includedMaximum" => [ + "name_last" => false, + "name_first" => true, + ], + "includedMinimum" => [ + "name_last" => false, + "name_first" => true, + ] + ] + ) +); +``` + + +## Methods +```php +public function __construct( array $options = [] ): void; +``` +Constructor + + + + +

        Class Phalcon\Validation\Validator\StringLength\Max

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/stringlength/max.zep) + +| Namespace | Phalcon\Validation\Validator\StringLength | +| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\AbstractValidator, Phalcon\Validation\Exception | +| Extends | AbstractValidator | + +Validates that a string has the specified maximum constraints +The test is passed if for a string's length L, L<=max, i.e. L must +be at most max. + +```php +use Phalcon\Validation; +use Phalcon\Validation\Validator\StringLength\Max; + +$validator = new Validation(); + +$validation->add( + "name_last", + new Max( + [ + "max" => 50, + "message" => "We don't like really long names", + "included" => true + ] + ) +); + +$validation->add( + [ + "name_last", + "name_first", + ], + new Max( + [ + "max" => [ + "name_last" => 50, + "name_first" => 40, + ], + "message" => [ + "name_last" => "We don't like really long last names", + "name_first" => "We don't like really long first names", + ], + "included" => [ + "name_last" => false, + "name_first" => true, + ] + ] + ) +); +``` + + +## Properties +```php +// +protected template = Field :field must not exceed :max characters long; + +``` + +## Methods +```php +public function validate( Validation $validation, mixed $field ): bool; +``` +Executes the validation + + + + +

        Class Phalcon\Validation\Validator\StringLength\Min

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/stringlength/min.zep) + +| Namespace | Phalcon\Validation\Validator\StringLength | +| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\AbstractValidator, Phalcon\Validation\Exception | +| Extends | AbstractValidator | + +Validates that a string has the specified minimum constraints +The test is passed if for a string's length L, min<=L, i.e. L must +be at least min. + +```php +use Phalcon\Validation; +use Phalcon\Validation\Validator\StringLength\Min; + +$validator = new Validation(); + +$validation->add( + "name_last", + new Min( + [ + "min" => 2, + "message" => "We want more than just their initials", + "included" => true + ] + ) +); + +$validation->add( + [ + "name_last", + "name_first", + ], + new Min( + [ + "min" => [ + "name_last" => 2, + "name_first" => 4, + ], + "message" => [ + "name_last" => "We don't like too short last names", + "name_first" => "We don't like too short first names", + ], + "included" => [ + "name_last" => false, + "name_first" => true, + ] + ] + ) +); +``` + + +## Properties +```php +// +protected template = Field :field must be at least :min characters long; + +``` + +## Methods +```php +public function validate( Validation $validation, mixed $field ): bool; +``` +Executes the validation + + + + +

        Class Phalcon\Validation\Validator\Uniqueness

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/uniqueness.zep) + +| Namespace | Phalcon\Validation\Validator | +| Uses | Phalcon\Messages\Message, Phalcon\Mvc\Model, Phalcon\Mvc\ModelInterface, Phalcon\Validation, Phalcon\Validation\AbstractCombinedFieldsValidator, Phalcon\Validation\Exception | +| Extends | AbstractCombinedFieldsValidator | + +Check that a field is unique in the related table + +```php +use Phalcon\Validation; +use Phalcon\Validation\Validator\Uniqueness as UniquenessValidator; + +$validator = new Validation(); + +$validator->add( + "username", + new UniquenessValidator( + [ + "model" => new Users(), + "message" => ":field must be unique", + ] + ) +); +``` + +Different attribute from the field: +```php +$validator->add( + "username", + new UniquenessValidator( + [ + "model" => new Users(), + "attribute" => "nick", + ] + ) +); +``` + +In model: +```php +$validator->add( + "username", + new UniquenessValidator() +); +``` + +Combination of fields in model: +```php +$validator->add( + [ + "firstName", + "lastName", + ], + new UniquenessValidator() +); +``` + +It is possible to convert values before validation. This is useful in +situations where values need to be converted to do the database lookup: + +```php +$validator->add( + "username", + new UniquenessValidator( + [ + "convert" => function (array $values) { + $values["username"] = strtolower($values["username"]); + + return $values; + } + ] + ) +); +``` + + +## Properties +```php +// +protected template = Field :field must be unique; + +// +private columnMap; + +``` + +## Methods +```php +public function validate( Validation $validation, mixed $field ): bool; +``` +Executes the validation + + +```php +protected function getColumnNameReal( mixed $record, string $field ): string; +``` +The column map is used in the case to get real column name + + +```php +protected function isUniqueness( Validation $validation, mixed $field ): bool; +``` +// + +```php +protected function isUniquenessModel( mixed $record, array $field, array $values ); +``` +Uniqueness method used for model + + + + +

        Class Phalcon\Validation\Validator\Url

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/url.zep) + +| Namespace | Phalcon\Validation\Validator | +| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\AbstractValidator | +| Extends | AbstractValidator | + +Checks if a value has a url format + +```php +use Phalcon\Validation; +use Phalcon\Validation\Validator\Url as UrlValidator; + +$validator = new Validation(); + +$validator->add( + "url", + new UrlValidator( + [ + "message" => ":field must be a url", + ] + ) +); + +$validator->add( + [ + "url", + "homepage", + ], + new UrlValidator( + [ + "message" => [ + "url" => "url must be a url", + "homepage" => "homepage must be a url", + ] + ] + ) +); +``` + + +## Properties +```php +// +protected template = Field :field must be a url; + +``` + +## Methods +```php +public function validate( Validation $validation, mixed $field ): bool; +``` +Executes the validation + + + + +

        Interface Phalcon\Validation\ValidatorCompositeInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validatorcompositeinterface.zep) + +| Namespace | Phalcon\Validation | +| Uses | Phalcon\Validation | + +This is a base class for combined fields validators + + +## Methods +```php +public function getValidators(): array; +``` +Executes the validation + + +```php +public function validate( Validation $validation, mixed $field ): bool; +``` +Executes the validation + + + + +

        Class Phalcon\Validation\ValidatorFactory

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validatorfactory.zep) + +| Namespace | Phalcon\Validation | +| Uses | Phalcon\Factory\AbstractFactory, Phalcon\Helper\Arr | +| Extends | AbstractFactory | + +This file is part of the Phalcon Framework. + +(c) Phalcon Team + +For the full copyright and license information, please view the LICENSE.txt +file that was distributed with this source code. + + +## Methods +```php +public function __construct( array $services = [] ); +``` +TagFactory constructor. + + +```php +public function newInstance( string $name ): mixed; +``` +Creates a new instance + + +```php +protected function getAdapters(): array; +``` +// + + + +

        Interface Phalcon\Validation\ValidatorInterface

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validatorinterface.zep) + +| Namespace | Phalcon\Validation | +| Uses | Phalcon\Collection, Phalcon\Validation | + +Interface for Phalcon\Validation\AbstractValidator + + +## Methods +```php +public function getOption( string $key, mixed $defaultValue = null ): mixed; +``` +Returns an option in the validator's options +Returns null if the option hasn't set + +@return mixed + + +```php +public function getTemplate( string $field ): string; +``` + Get the template message + + @return string + @throw InvalidArgumentException When the field does not exists + + +```php +public function getTemplates(): array; +``` + Get message templates + + @return array + + +```php +public function hasOption( string $key ): bool; +``` +Checks if an option is defined + +@return boolean + + +```php +public function setTemplate( string $template ): ValidatorInterface; +``` + Set a new temlate message + + @return ValidatorInterface + + +```php +public function setTemplates( array $templates ): ValidatorInterface; +``` + Clear current template and set new from an array, + + @return ValidatorInterface + + +```php +public function validate( Validation $validation, mixed $field ): bool; +``` +Executes the validation + +@return boolean + + diff --git a/nikos/api/Phalcon_Version.md b/nikos/api/Phalcon_Version.md new file mode 100644 index 00000000000..bf590dc9f6a --- /dev/null +++ b/nikos/api/Phalcon_Version.md @@ -0,0 +1,26 @@ +--- +layout: default +language: 'en' +version: '4.0' +title: 'Phalcon\Version' +--- + +* [Phalcon\Version](#version) + +

        Class Phalcon\Version

        + +[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/version.zep) + +| Namespace | Phalcon | + +This class allows to get the installed version of the framework + + +## Constants +```php +const VERSION_MAJOR = 0; +const VERSION_MEDIUM = 1; +const VERSION_MINOR = 2; +const VERSION_SPECIAL = 3; +const VERSION_SPECIAL_NUMBER = 4; +``` diff --git a/nikos/api/api.json b/nikos/api/api.json new file mode 100644 index 00000000000..75c23d72e68 --- /dev/null +++ b/nikos/api/api.json @@ -0,0 +1,680 @@ +[ + { + "title": "Phalcon\\Acl", + "docs": [ + "Acl\/Adapter\/AbstractAdapter", + "Acl\/Adapter\/AdapterInterface", + "Acl\/Adapter\/Memory", + "Acl\/Component", + "Acl\/ComponentAware", + "Acl\/ComponentInterface", + "Acl\/Enum", + "Acl\/Exception", + "Acl\/Role", + "Acl\/RoleAware", + "Acl\/RoleInterface" + ] + }, + { + "title": "Phalcon\\Annotations", + "docs": [ + "Annotations\/Adapter\/AbstractAdapter", + "Annotations\/Adapter\/AdapterInterface", + "Annotations\/Adapter\/Apcu", + "Annotations\/Adapter\/Memory", + "Annotations\/Adapter\/Stream", + "Annotations\/Annotation", + "Annotations\/AnnotationsFactory", + "Annotations\/Collection", + "Annotations\/Exception", + "Annotations\/Reader", + "Annotations\/ReaderInterface", + "Annotations\/Reflection" + ] + }, + { + "title": "Phalcon\\Application", + "docs": [ + "Application\/AbstractApplication", + "Application\/Exception" + ] + }, + { + "title": "Phalcon\\Assets", + "docs": [ + "Assets\/Asset", + "Assets\/Asset\/Css", + "Assets\/Asset\/Js", + "Assets\/AssetInterface", + "Assets\/Collection", + "Assets\/Exception", + "Assets\/FilterInterface", + "Assets\/Filters\/CssMin", + "Assets\/Filters\/JsMin", + "Assets\/Filters\/None", + "Assets\/Inline", + "Assets\/Inline\/Css", + "Assets\/Inline\/Js", + "Assets\/Manager" + ] + }, + { + "title": "Phalcon\\Cache", + "docs": [ + "Cache", + "Cache\/Adapter\/AdapterInterface", + "Cache\/Adapter\/Apcu", + "Cache\/Adapter\/Libmemcached", + "Cache\/Adapter\/Memory", + "Cache\/Adapter\/Redis", + "Cache\/Adapter\/Stream", + "Cache\/AdapterFactory", + "Cache\/CacheFactory", + "Cache\/Exception\/Exception", + "Cache\/Exception\/InvalidArgumentException" + ] + }, + { + "title": "Phalcon\\Cli", + "docs": [ + "Cli\/Console", + "Cli\/Console\/Exception", + "Cli\/Dispatcher", + "Cli\/Dispatcher\/Exception", + "Cli\/DispatcherInterface", + "Cli\/Router", + "Cli\/Router\/Exception", + "Cli\/Router\/Route", + "Cli\/Router\/RouteInterface", + "Cli\/RouterInterface", + "Cli\/Task", + "Cli\/TaskInterface" + ] + }, + { + "title": "Phalcon\\Collection", + "docs": [ + "Collection", + "Collection\/Exception", + "Collection\/ReadOnly" + ] + }, + { + "title": "Phalcon\\Config", + "docs": [ + "Config", + "Config\/Adapter\/Grouped", + "Config\/Adapter\/Ini", + "Config\/Adapter\/Json", + "Config\/Adapter\/Php", + "Config\/Adapter\/Yaml", + "Config\/ConfigFactory", + "Config\/Exception" + ] + }, + { + "title": "Phalcon\\Container", + "docs": [ + "Container" + ] + }, + { + "title": "Phalcon\\Crypt", + "docs": [ + "Crypt", + "Crypt\/CryptInterface", + "Crypt\/Exception", + "Crypt\/Mismatch" + ] + }, + { + "title": "Phalcon\\Db", + "docs": [ + "Db\/AbstractDb", + "Db\/Adapter\/AbstractAdapter", + "Db\/Adapter\/AdapterInterface", + "Db\/Adapter\/Pdo\/AbstractPdo", + "Db\/Adapter\/Pdo\/Mysql", + "Db\/Adapter\/Pdo\/Postgresql", + "Db\/Adapter\/Pdo\/Sqlite", + "Db\/Adapter\/PdoFactory", + "Db\/Column", + "Db\/ColumnInterface", + "Db\/Dialect", + "Db\/Dialect\/Mysql", + "Db\/Dialect\/Postgresql", + "Db\/Dialect\/Sqlite", + "Db\/DialectInterface", + "Db\/Enum", + "Db\/Exception", + "Db\/Index", + "Db\/IndexInterface", + "Db\/Profiler", + "Db\/Profiler\/Item", + "Db\/RawValue", + "Db\/Reference", + "Db\/ReferenceInterface", + "Db\/Result\/Pdo", + "Db\/ResultInterface" + ] + }, + { + "title": "Phalcon\\Debug", + "docs": [ + "Debug", + "Debug\/Dump", + "Debug\/Exception" + ] + }, + { + "title": "Phalcon\\Di", + "docs": [ + "Di", + "Di\/AbstractInjectionAware", + "Di\/DiInterface", + "Di\/Exception", + "Di\/Exception\/ServiceResolutionException", + "Di\/FactoryDefault", + "Di\/FactoryDefault\/Cli", + "Di\/Injectable", + "Di\/InjectionAwareInterface", + "Di\/Service", + "Di\/Service\/Builder", + "Di\/ServiceInterface", + "Di\/ServiceProviderInterface" + ] + }, + { + "title": "Phalcon\\Dispatcher", + "docs": [ + "Dispatcher\/AbstractDispatcher", + "Dispatcher\/DispatcherInterface", + "Dispatcher\/Exception" + ] + }, + { + "title": "Phalcon\\Domain", + "docs": [ + "Domain\/Payload\/Payload", + "Domain\/Payload\/PayloadFactory", + "Domain\/Payload\/PayloadInterface", + "Domain\/Payload\/ReadableInterface", + "Domain\/Payload\/Status", + "Domain\/Payload\/WriteableInterface" + ] + }, + { + "title": "Phalcon\\Escaper", + "docs": [ + "Escaper", + "Escaper\/EscaperInterface", + "Escaper\/Exception" + ] + }, + { + "title": "Phalcon\\Events", + "docs": [ + "Events\/Event", + "Events\/EventInterface", + "Events\/EventsAwareInterface", + "Events\/Exception", + "Events\/Manager", + "Events\/ManagerInterface" + ] + }, + { + "title": "Phalcon\\Exception", + "docs": [ + "Exception" + ] + }, + { + "title": "Phalcon\\Factory", + "docs": [ + "Factory\/AbstractFactory", + "Factory\/Exception" + ] + }, + { + "title": "Phalcon\\Filter", + "docs": [ + "Filter\/Exception", + "Filter\/Filter", + "Filter\/FilterFactory", + "Filter\/FilterInterface", + "Filter\/Sanitize\/AbsInt", + "Filter\/Sanitize\/Alnum", + "Filter\/Sanitize\/Alpha", + "Filter\/Sanitize\/BoolVal", + "Filter\/Sanitize\/Email", + "Filter\/Sanitize\/FloatVal", + "Filter\/Sanitize\/IntVal", + "Filter\/Sanitize\/Lower", + "Filter\/Sanitize\/LowerFirst", + "Filter\/Sanitize\/Regex", + "Filter\/Sanitize\/Remove", + "Filter\/Sanitize\/Replace", + "Filter\/Sanitize\/Special", + "Filter\/Sanitize\/SpecialFull", + "Filter\/Sanitize\/StringVal", + "Filter\/Sanitize\/Striptags", + "Filter\/Sanitize\/Trim", + "Filter\/Sanitize\/Upper", + "Filter\/Sanitize\/UpperFirst", + "Filter\/Sanitize\/UpperWords", + "Filter\/Sanitize\/Url" + ] + }, + { + "title": "Phalcon\\Firewall", + "docs": [ + "Firewall\/Adapter\/AbstractAdapter", + "Firewall\/Adapter\/Acl", + "Firewall\/Adapter\/AdapterInterface", + "Firewall\/Adapter\/Annotations", + "Firewall\/Adapter\/Micro\/Acl", + "Firewall\/Exception" + ] + }, + { + "title": "Phalcon\\Flash", + "docs": [ + "Flash\/AbstractFlash", + "Flash\/Direct", + "Flash\/Exception", + "Flash\/FlashInterface", + "Flash\/Session" + ] + }, + { + "title": "Phalcon\\Forms", + "docs": [ + "Forms\/Element\/AbstractElement", + "Forms\/Element\/Check", + "Forms\/Element\/Date", + "Forms\/Element\/ElementInterface", + "Forms\/Element\/Email", + "Forms\/Element\/File", + "Forms\/Element\/Hidden", + "Forms\/Element\/Numeric", + "Forms\/Element\/Password", + "Forms\/Element\/Radio", + "Forms\/Element\/Select", + "Forms\/Element\/Submit", + "Forms\/Element\/Text", + "Forms\/Element\/TextArea", + "Forms\/Exception", + "Forms\/Form", + "Forms\/Manager" + ] + }, + { + "title": "Phalcon\\Helper", + "docs": [ + "Helper\/Arr", + "Helper\/Exception", + "Helper\/Fs", + "Helper\/Number", + "Helper\/Str" + ] + }, + { + "title": "Phalcon\\Html", + "docs": [ + "Html\/Attributes", + "Html\/Attributes\/AttributesInterface", + "Html\/Attributes\/RenderInterface", + "Html\/Breadcrumbs", + "Html\/Exception", + "Html\/Helper\/AbstractHelper", + "Html\/Helper\/Anchor", + "Html\/Helper\/AnchorRaw", + "Html\/Helper\/Body", + "Html\/Helper\/Button", + "Html\/Helper\/Close", + "Html\/Helper\/Element", + "Html\/Helper\/ElementRaw", + "Html\/Helper\/Form", + "Html\/Helper\/Img", + "Html\/Helper\/Label", + "Html\/Helper\/TextArea", + "Html\/Tag", + "Html\/TagFactory" + ] + }, + { + "title": "Phalcon\\Http", + "docs": [ + "Http\/Cookie", + "Http\/Cookie\/Exception", + "Http\/CookieInterface", + "Http\/Message\/AbstractCommon", + "Http\/Message\/AbstractMessage", + "Http\/Message\/AbstractRequest", + "Http\/Message\/Exception\/InvalidArgumentException", + "Http\/Message\/Request", + "Http\/Message\/RequestFactory", + "Http\/Message\/Response", + "Http\/Message\/ResponseFactory", + "Http\/Message\/ServerRequest", + "Http\/Message\/ServerRequestFactory", + "Http\/Message\/Stream", + "Http\/Message\/Stream\/Input", + "Http\/Message\/Stream\/Memory", + "Http\/Message\/Stream\/Temp", + "Http\/Message\/StreamFactory", + "Http\/Message\/UploadedFile", + "Http\/Message\/UploadedFileFactory", + "Http\/Message\/Uri", + "Http\/Message\/UriFactory", + "Http\/Request", + "Http\/Request\/Exception", + "Http\/Request\/File", + "Http\/Request\/FileInterface", + "Http\/RequestInterface", + "Http\/Response", + "Http\/Response\/Cookies", + "Http\/Response\/CookiesInterface", + "Http\/Response\/Exception", + "Http\/Response\/Headers", + "Http\/Response\/HeadersInterface", + "Http\/ResponseInterface", + "Http\/Server\/AbstractMiddleware", + "Http\/Server\/AbstractRequestHandler" + ] + }, + { + "title": "Phalcon\\Image", + "docs": [ + "Image\/Adapter\/AbstractAdapter", + "Image\/Adapter\/AdapterInterface", + "Image\/Adapter\/Gd", + "Image\/Adapter\/Imagick", + "Image\/Enum", + "Image\/Exception", + "Image\/ImageFactory" + ] + }, + { + "title": "Phalcon\\Kernel", + "docs": [ + "Kernel" + ] + }, + { + "title": "Phalcon\\Loader", + "docs": [ + "Loader", + "Loader\/Exception" + ] + }, + { + "title": "Phalcon\\Logger", + "docs": [ + "Logger", + "Logger\/Adapter\/AbstractAdapter", + "Logger\/Adapter\/AdapterInterface", + "Logger\/Adapter\/Noop", + "Logger\/Adapter\/Stream", + "Logger\/Adapter\/Syslog", + "Logger\/AdapterFactory", + "Logger\/Exception", + "Logger\/Formatter\/AbstractFormatter", + "Logger\/Formatter\/FormatterInterface", + "Logger\/Formatter\/Json", + "Logger\/Formatter\/Line", + "Logger\/Formatter\/Syslog", + "Logger\/Item", + "Logger\/LoggerFactory" + ] + }, + { + "title": "Phalcon\\Messages", + "docs": [ + "Messages\/Exception", + "Messages\/Message", + "Messages\/MessageInterface", + "Messages\/Messages" + ] + }, + { + "title": "Phalcon\\Mvc", + "docs": [ + "Mvc\/Application", + "Mvc\/Application\/Exception", + "Mvc\/Controller", + "Mvc\/Controller\/BindModelInterface", + "Mvc\/ControllerInterface", + "Mvc\/Dispatcher", + "Mvc\/Dispatcher\/Exception", + "Mvc\/DispatcherInterface", + "Mvc\/EntityInterface", + "Mvc\/Micro", + "Mvc\/Micro\/Collection", + "Mvc\/Micro\/CollectionInterface", + "Mvc\/Micro\/Exception", + "Mvc\/Micro\/LazyLoader", + "Mvc\/Micro\/MiddlewareInterface", + "Mvc\/Model", + "Mvc\/Model\/Behavior", + "Mvc\/Model\/Behavior\/SoftDelete", + "Mvc\/Model\/Behavior\/Timestampable", + "Mvc\/Model\/BehaviorInterface", + "Mvc\/Model\/Binder", + "Mvc\/Model\/Binder\/BindableInterface", + "Mvc\/Model\/BinderInterface", + "Mvc\/Model\/Criteria", + "Mvc\/Model\/CriteriaInterface", + "Mvc\/Model\/Exception", + "Mvc\/Model\/Manager", + "Mvc\/Model\/ManagerInterface", + "Mvc\/Model\/MetaData", + "Mvc\/Model\/MetaData\/Apcu", + "Mvc\/Model\/MetaData\/Libmemcached", + "Mvc\/Model\/MetaData\/Memory", + "Mvc\/Model\/MetaData\/Redis", + "Mvc\/Model\/MetaData\/Strategy\/Annotations", + "Mvc\/Model\/MetaData\/Strategy\/Introspection", + "Mvc\/Model\/MetaData\/StrategyInterface", + "Mvc\/Model\/MetaData\/Stream", + "Mvc\/Model\/MetaDataInterface", + "Mvc\/Model\/Query", + "Mvc\/Model\/Query\/Builder", + "Mvc\/Model\/Query\/BuilderInterface", + "Mvc\/Model\/Query\/Lang", + "Mvc\/Model\/Query\/Status", + "Mvc\/Model\/Query\/StatusInterface", + "Mvc\/Model\/QueryInterface", + "Mvc\/Model\/Relation", + "Mvc\/Model\/RelationInterface", + "Mvc\/Model\/ResultInterface", + "Mvc\/Model\/Resultset", + "Mvc\/Model\/Resultset\/Complex", + "Mvc\/Model\/Resultset\/Simple", + "Mvc\/Model\/ResultsetInterface", + "Mvc\/Model\/Row", + "Mvc\/Model\/Transaction", + "Mvc\/Model\/Transaction\/Exception", + "Mvc\/Model\/Transaction\/Failed", + "Mvc\/Model\/Transaction\/Manager", + "Mvc\/Model\/Transaction\/ManagerInterface", + "Mvc\/Model\/TransactionInterface", + "Mvc\/Model\/ValidationFailed", + "Mvc\/ModelInterface", + "Mvc\/ModuleDefinitionInterface", + "Mvc\/Router", + "Mvc\/Router\/Annotations", + "Mvc\/Router\/Exception", + "Mvc\/Router\/Group", + "Mvc\/Router\/GroupInterface", + "Mvc\/Router\/Route", + "Mvc\/Router\/RouteInterface", + "Mvc\/RouterInterface", + "Mvc\/View", + "Mvc\/View\/Engine\/AbstractEngine", + "Mvc\/View\/Engine\/EngineInterface", + "Mvc\/View\/Engine\/Php", + "Mvc\/View\/Engine\/Volt", + "Mvc\/View\/Engine\/Volt\/Compiler", + "Mvc\/View\/Engine\/Volt\/Exception", + "Mvc\/View\/Exception", + "Mvc\/View\/Simple", + "Mvc\/ViewBaseInterface", + "Mvc\/ViewInterface" + ] + }, + { + "title": "Phalcon\\Paginator", + "docs": [ + "Paginator\/Adapter\/AbstractAdapter", + "Paginator\/Adapter\/AdapterInterface", + "Paginator\/Adapter\/Model", + "Paginator\/Adapter\/NativeArray", + "Paginator\/Adapter\/QueryBuilder", + "Paginator\/Exception", + "Paginator\/PaginatorFactory", + "Paginator\/Repository", + "Paginator\/RepositoryInterface" + ] + }, + { + "title": "Phalcon\\Registry", + "docs": [ + "Registry" + ] + }, + { + "title": "Phalcon\\Security", + "docs": [ + "Security", + "Security\/Exception", + "Security\/Random" + ] + }, + { + "title": "Phalcon\\Session", + "docs": [ + "Session\/Adapter\/AbstractAdapter", + "Session\/Adapter\/Libmemcached", + "Session\/Adapter\/Noop", + "Session\/Adapter\/Redis", + "Session\/Adapter\/Stream", + "Session\/Bag", + "Session\/Exception", + "Session\/Manager", + "Session\/ManagerInterface" + ] + }, + { + "title": "Phalcon\\Storage", + "docs": [ + "Storage\/Adapter\/AbstractAdapter", + "Storage\/Adapter\/AdapterInterface", + "Storage\/Adapter\/Apcu", + "Storage\/Adapter\/Libmemcached", + "Storage\/Adapter\/Memory", + "Storage\/Adapter\/Redis", + "Storage\/Adapter\/Stream", + "Storage\/AdapterFactory", + "Storage\/Exception", + "Storage\/Serializer\/AbstractSerializer", + "Storage\/Serializer\/Base64", + "Storage\/Serializer\/Igbinary", + "Storage\/Serializer\/Json", + "Storage\/Serializer\/Msgpack", + "Storage\/Serializer\/None", + "Storage\/Serializer\/Php", + "Storage\/Serializer\/SerializerInterface", + "Storage\/SerializerFactory" + ] + }, + { + "title": "Phalcon\\Tag", + "docs": [ + "Tag", + "Tag\/Exception", + "Tag\/Select" + ] + }, + { + "title": "Phalcon\\Text", + "docs": [ + "Text" + ] + }, + { + "title": "Phalcon\\Translate", + "docs": [ + "Translate\/Adapter\/AbstractAdapter", + "Translate\/Adapter\/AdapterInterface", + "Translate\/Adapter\/Csv", + "Translate\/Adapter\/Gettext", + "Translate\/Adapter\/NativeArray", + "Translate\/Exception", + "Translate\/Interpolator\/AssociativeArray", + "Translate\/Interpolator\/IndexedArray", + "Translate\/Interpolator\/InterpolatorInterface", + "Translate\/InterpolatorFactory", + "Translate\/TranslateFactory" + ] + }, + { + "title": "Phalcon\\Url", + "docs": [ + "Url", + "Url\/Exception", + "Url\/UrlInterface" + ] + }, + { + "title": "Phalcon\\Validation", + "docs": [ + "Validation", + "Validation\/AbstractCombinedFieldsValidator", + "Validation\/AbstractValidator", + "Validation\/AbstractValidatorComposite", + "Validation\/Exception", + "Validation\/ValidationInterface", + "Validation\/Validator\/Alnum", + "Validation\/Validator\/Alpha", + "Validation\/Validator\/Between", + "Validation\/Validator\/Callback", + "Validation\/Validator\/Confirmation", + "Validation\/Validator\/CreditCard", + "Validation\/Validator\/Date", + "Validation\/Validator\/Digit", + "Validation\/Validator\/Email", + "Validation\/Validator\/Exception", + "Validation\/Validator\/ExclusionIn", + "Validation\/Validator\/File", + "Validation\/Validator\/File\/AbstractFile", + "Validation\/Validator\/File\/MimeType", + "Validation\/Validator\/File\/Resolution\/Equal", + "Validation\/Validator\/File\/Resolution\/Max", + "Validation\/Validator\/File\/Resolution\/Min", + "Validation\/Validator\/File\/Size\/Equal", + "Validation\/Validator\/File\/Size\/Max", + "Validation\/Validator\/File\/Size\/Min", + "Validation\/Validator\/Identical", + "Validation\/Validator\/InclusionIn", + "Validation\/Validator\/Ip", + "Validation\/Validator\/Numericality", + "Validation\/Validator\/PresenceOf", + "Validation\/Validator\/Regex", + "Validation\/Validator\/StringLength", + "Validation\/Validator\/StringLength\/Max", + "Validation\/Validator\/StringLength\/Min", + "Validation\/Validator\/Uniqueness", + "Validation\/Validator\/Url", + "Validation\/ValidatorCompositeInterface", + "Validation\/ValidatorFactory", + "Validation\/ValidatorInterface" + ] + }, + { + "title": "Phalcon\\Version", + "docs": [ + "Version" + ] + } +] \ No newline at end of file diff --git a/phalcon/Flash/AbstractFlash.zep b/phalcon/Flash/AbstractFlash.zep index 35000e00575..c2adc967541 100644 --- a/phalcon/Flash/AbstractFlash.zep +++ b/phalcon/Flash/AbstractFlash.zep @@ -15,6 +15,7 @@ use Phalcon\Di\DiInterface; use Phalcon\Di\AbstractInjectionAware; use Phalcon\Escaper\EscaperInterface; use Phalcon\Flash\Exception; +use Phalcon\Session\ManagerInterface as SessionInterface; /** * Shows HTML notifications related to different circumstances. Classes can be @@ -62,12 +63,18 @@ abstract class AbstractFlash extends AbstractInjectionAware implements FlashInte */ protected messages = []; + /** + * @var SessionInterface | null + */ + protected sessionService = null; + /** * Phalcon\Flash constructor */ - public function __construct( escaper = null) -> void + public function __construct( escaper = null, session = null) -> void { - let this->escaperService = escaper; + let this->escaperService = escaper, + this->sessionService = session; let this->cssClasses = [ "error" : "errorMessage", diff --git a/phalcon/Flash/Session.zep b/phalcon/Flash/Session.zep index 4522ca4d07e..97dcc8db83a 100644 --- a/phalcon/Flash/Session.zep +++ b/phalcon/Flash/Session.zep @@ -95,11 +95,9 @@ class Session extends AbstractFlash */ protected function getSessionMessages(bool remove, type = null) -> array { - var container, session, messages, returnMessages; + var session, messages, returnMessages; - let container = this->getDI(); - - let session = container->getShared("session"), + let session = this->getSessionService(), messages = session->get("_flashMessages"); /** @@ -134,13 +132,40 @@ class Session extends AbstractFlash */ protected function setSessionMessages(array! messages) -> array { - var container, session; + var session; - let container = this->getDI(), - session = container->getShared("session"); + let session = this->getSessionService(); session->set("_flashMessages", messages); return messages; } + + /** + * Returns the Session Service + */ + public function getSessionService() -> + { + var container; + + if this->sessionService { + return this->sessionService; + } + + let container = this->container; + if unlikely typeof container != "object" { + throw new Exception( + Exception::containerServiceNotFound("the 'session' service") + ); + } + + if likely container->has("session") { + return container->getShared("session"); + } else { + throw new Exception( + Exception::containerServiceNotFound("the 'session' service") + ); + } + } + } From a575c31c37ee6e77d78766ca5d69990cff68ca66 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Sat, 7 Sep 2019 13:50:24 -0400 Subject: [PATCH 104/202] [4.0.x] - Added session to flash messenger constructor; Removed folder not needed --- nikos/api/Phalcon_Acl.md | 832 -- nikos/api/Phalcon_Annotations.md | 652 -- nikos/api/Phalcon_Application.md | 127 - nikos/api/Phalcon_Assets.md | 1138 --- nikos/api/Phalcon_Cache.md | 361 - nikos/api/Phalcon_Cli.md | 920 --- nikos/api/Phalcon_Collection.md | 238 - nikos/api/Phalcon_Config.md | 474 -- nikos/api/Phalcon_Container.md | 48 - nikos/api/Phalcon_Crypt.md | 434 -- nikos/api/Phalcon_Db.md | 4292 ----------- nikos/api/Phalcon_Debug.md | 332 - nikos/api/Phalcon_Di.md | 863 --- nikos/api/Phalcon_Dispatcher.md | 532 -- nikos/api/Phalcon_Domain.md | 300 - nikos/api/Phalcon_Escaper.md | 212 - nikos/api/Phalcon_Events.md | 424 - nikos/api/Phalcon_Exception.md | 22 - nikos/api/Phalcon_Factory.md | 80 - nikos/api/Phalcon_Filter.md | 603 -- nikos/api/Phalcon_Firewall.md | 642 -- nikos/api/Phalcon_Flash.md | 341 - nikos/api/Phalcon_Forms.md | 1106 --- nikos/api/Phalcon_Helper.md | 77 - nikos/api/Phalcon_Html.md | 1540 ---- nikos/api/Phalcon_Http.md | 4515 ----------- nikos/api/Phalcon_Image.md | 642 -- nikos/api/Phalcon_Kernel.md | 17 - nikos/api/Phalcon_Loader.md | 239 - nikos/api/Phalcon_Logger.md | 999 --- nikos/api/Phalcon_Messages.md | 386 - nikos/api/Phalcon_Mvc.md | 11906 ----------------------------- nikos/api/Phalcon_Paginator.md | 566 -- nikos/api/Phalcon_Registry.md | 222 - nikos/api/Phalcon_Security.md | 470 -- nikos/api/Phalcon_Session.md | 736 -- nikos/api/Phalcon_Storage.md | 1253 --- nikos/api/Phalcon_Tag.md | 125 - nikos/api/Phalcon_Text.md | 28 - nikos/api/Phalcon_Translate.md | 590 -- nikos/api/Phalcon_Url.md | 241 - nikos/api/Phalcon_Validation.md | 2769 ------- nikos/api/Phalcon_Version.md | 26 - nikos/api/api.json | 680 -- 44 files changed, 43000 deletions(-) delete mode 100644 nikos/api/Phalcon_Acl.md delete mode 100644 nikos/api/Phalcon_Annotations.md delete mode 100644 nikos/api/Phalcon_Application.md delete mode 100644 nikos/api/Phalcon_Assets.md delete mode 100644 nikos/api/Phalcon_Cache.md delete mode 100644 nikos/api/Phalcon_Cli.md delete mode 100644 nikos/api/Phalcon_Collection.md delete mode 100644 nikos/api/Phalcon_Config.md delete mode 100644 nikos/api/Phalcon_Container.md delete mode 100644 nikos/api/Phalcon_Crypt.md delete mode 100644 nikos/api/Phalcon_Db.md delete mode 100644 nikos/api/Phalcon_Debug.md delete mode 100644 nikos/api/Phalcon_Di.md delete mode 100644 nikos/api/Phalcon_Dispatcher.md delete mode 100644 nikos/api/Phalcon_Domain.md delete mode 100644 nikos/api/Phalcon_Escaper.md delete mode 100644 nikos/api/Phalcon_Events.md delete mode 100644 nikos/api/Phalcon_Exception.md delete mode 100644 nikos/api/Phalcon_Factory.md delete mode 100644 nikos/api/Phalcon_Filter.md delete mode 100644 nikos/api/Phalcon_Firewall.md delete mode 100644 nikos/api/Phalcon_Flash.md delete mode 100644 nikos/api/Phalcon_Forms.md delete mode 100644 nikos/api/Phalcon_Helper.md delete mode 100644 nikos/api/Phalcon_Html.md delete mode 100644 nikos/api/Phalcon_Http.md delete mode 100644 nikos/api/Phalcon_Image.md delete mode 100644 nikos/api/Phalcon_Kernel.md delete mode 100644 nikos/api/Phalcon_Loader.md delete mode 100644 nikos/api/Phalcon_Logger.md delete mode 100644 nikos/api/Phalcon_Messages.md delete mode 100644 nikos/api/Phalcon_Mvc.md delete mode 100644 nikos/api/Phalcon_Paginator.md delete mode 100644 nikos/api/Phalcon_Registry.md delete mode 100644 nikos/api/Phalcon_Security.md delete mode 100644 nikos/api/Phalcon_Session.md delete mode 100644 nikos/api/Phalcon_Storage.md delete mode 100644 nikos/api/Phalcon_Tag.md delete mode 100644 nikos/api/Phalcon_Text.md delete mode 100644 nikos/api/Phalcon_Translate.md delete mode 100644 nikos/api/Phalcon_Url.md delete mode 100644 nikos/api/Phalcon_Validation.md delete mode 100644 nikos/api/Phalcon_Version.md delete mode 100644 nikos/api/api.json diff --git a/nikos/api/Phalcon_Acl.md b/nikos/api/Phalcon_Acl.md deleted file mode 100644 index b6563072363..00000000000 --- a/nikos/api/Phalcon_Acl.md +++ /dev/null @@ -1,832 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Acl' ---- - -* [Phalcon\Acl\Adapter\AbstractAdapter](#acl-adapter-abstractadapter) -* [Phalcon\Acl\Adapter\AdapterInterface](#acl-adapter-adapterinterface) -* [Phalcon\Acl\Adapter\Memory](#acl-adapter-memory) -* [Phalcon\Acl\Component](#acl-component) -* [Phalcon\Acl\ComponentAware](#acl-componentaware) -* [Phalcon\Acl\ComponentInterface](#acl-componentinterface) -* [Phalcon\Acl\Enum](#acl-enum) -* [Phalcon\Acl\Exception](#acl-exception) -* [Phalcon\Acl\Role](#acl-role) -* [Phalcon\Acl\RoleAware](#acl-roleaware) -* [Phalcon\Acl\RoleInterface](#acl-roleinterface) - -

        Abstract Class Phalcon\Acl\Adapter\AbstractAdapter

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/acl/adapter/abstractadapter.zep) - -| Namespace | Phalcon\Acl\Adapter | -| Uses | Phalcon\Events\ManagerInterface, Phalcon\Events\EventsAwareInterface | -| Implements | AdapterInterface, EventsAwareInterface | - -Adapter for Phalcon\Acl adapters - - -## Properties -```php -/** - * Active access which the list is checking if some role can access it - * - * @var string - */ -protected activeAccess; - -/** - * Access Granted - * - * @var bool - */ -protected accessGranted = false; - -/** - * Role which the list is checking if it's allowed to certain - * component/access - * - * @var string - */ -protected activeRole; - -/** - * Component which the list is checking if some role can access it - * - * @var string - */ -protected activeComponent; - -/** - * Default access - * - * @var bool - */ -protected defaultAccess = false; - -/** - * Events manager - * - * @var mixed - */ -protected eventsManager; - -``` - -## Methods -```php -public function getActiveAccess(): string -``` - - -```php -public function getActiveComponent(): string -``` - - -```php -public function getActiveRole(): string -``` - - -```php -public function getDefaultAction(): int; -``` -Returns the default ACL access level - - -```php -public function getEventsManager(): ManagerInterface; -``` -Returns the internal event manager - - -```php -public function setDefaultAction( int $defaultAccess ); -``` -Sets the default access level (Phalcon\Acl::ALLOW or Phalcon\Acl::DENY) - - -```php -public function setEventsManager( ManagerInterface $eventsManager ): void; -``` -Sets the events manager - - - - -

        Interface Phalcon\Acl\Adapter\AdapterInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/acl/adapter/adapterinterface.zep) - -| Namespace | Phalcon\Acl\Adapter | - -Interface for Phalcon\Acl adapters - - -## Methods -```php -public function addComponent( mixed $componentObject, mixed $accessList ): bool; -``` -Adds a component to the ACL list - -Access names can be a particular action, by example -search, update, delete, etc or a list of them - - -```php -public function addComponentAccess( string $componentName, mixed $accessList ): bool; -``` -Adds access to components - - -```php -public function addInherit( string $roleName, mixed $roleToInherit ): bool; -``` -Do a role inherit from another existing role - - -```php -public function addRole( mixed $role, mixed $accessInherits = null ): bool; -``` -Adds a role to the ACL list. Second parameter lets to inherit access data -from other existing role - - -```php -public function allow( string $roleName, string $componentName, mixed $access, mixed $func = null ): void; -``` -Allow access to a role on a component - - -```php -public function deny( string $roleName, string $componentName, mixed $access, mixed $func = null ): void; -``` -Deny access to a role on a component - - -```php -public function dropComponentAccess( string $componentName, mixed $accessList ): void; -``` -Removes an access from a component - - -```php -public function getActiveAccess(): string; -``` -Returns the access which the list is checking if some role can access it - - -```php -public function getActiveComponent(): string; -``` -Returns the component which the list is checking if some role can access -it - - -```php -public function getActiveRole(): string; -``` -Returns the role which the list is checking if it's allowed to certain -component/access - - -```php -public function getComponents(): ComponentInterface[]; -``` -Return an array with every component registered in the list - - -```php -public function getDefaultAction(): int; -``` -Returns the default ACL access level - - -```php -public function getNoArgumentsDefaultAction(): int; -``` -Returns the default ACL access level for no arguments provided in -isAllowed action if there exists func for accessKey - - -```php -public function getRoles(): RoleInterface[]; -``` -Return an array with every role registered in the list - - -```php -public function isAllowed( mixed $roleName, mixed $componentName, string $access, array $parameters = null ): bool; -``` -Check whether a role is allowed to access an action from a component - - -```php -public function isComponent( string $componentName ): bool; -``` -Check whether component exist in the components list - - -```php -public function isRole( string $roleName ): bool; -``` -Check whether role exist in the roles list - - -```php -public function setDefaultAction( int $defaultAccess ): void; -``` -Sets the default access level (Phalcon\Ac\Enuml::ALLOW or Phalcon\Acl\Enum::DENY) - - -```php -public function setNoArgumentsDefaultAction( int $defaultAccess ): void; -``` -Sets the default access level (Phalcon\Acl\Enum::ALLOW or Phalcon\Acl\Enum::DENY) -for no arguments provided in isAllowed action if there exists func for -accessKey - - - - -

        Class Phalcon\Acl\Adapter\Memory

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/acl/adapter/memory.zep) - -| Namespace | Phalcon\Acl\Adapter | -| Uses | Phalcon\Acl\Adapter\AbstractAdapter, Phalcon\Acl\Enum, Phalcon\Acl\Role, Phalcon\Acl\RoleInterface, Phalcon\Acl\Component, Phalcon\Acl\Exception, Phalcon\Events\Manager, Phalcon\Acl\RoleAware, Phalcon\Acl\ComponentAware, Phalcon\Acl\RoleInterface, Phalcon\Acl\ComponentInterface, ReflectionFunction | -| Extends | AbstractAdapter | - -Manages ACL lists in memory - -```php -$acl = new \Phalcon\Acl\Adapter\Memory(); - -$acl->setDefaultAction( - \Phalcon\Acl\Enum::DENY -); - -// Register roles -$roles = [ - "users" => new \Phalcon\Acl\Role("Users"), - "guests" => new \Phalcon\Acl\Role("Guests"), -]; -foreach ($roles as $role) { - $acl->addRole($role); -} - -// Private area components -$privateComponents = [ - "companies" => ["index", "search", "new", "edit", "save", "create", "delete"], - "products" => ["index", "search", "new", "edit", "save", "create", "delete"], - "invoices" => ["index", "profile"], -]; - -foreach ($privateComponents as $componentName => $actions) { - $acl->addComponent( - new \Phalcon\Acl\Component($componentName), - $actions - ); -} - -// Public area components -$publicComponents = [ - "index" => ["index"], - "about" => ["index"], - "session" => ["index", "register", "start", "end"], - "contact" => ["index", "send"], -]; - -foreach ($publicComponents as $componentName => $actions) { - $acl->addComponent( - new \Phalcon\Acl\Component($componentName), - $actions - ); -} - -// Grant access to public areas to both users and guests -foreach ($roles as $role) { - foreach ($publicComponents as $component => $actions) { - $acl->allow($role->getName(), $component, "*"); - } -} - -// Grant access to private area to role Users -foreach ($privateComponents as $component => $actions) { - foreach ($actions as $action) { - $acl->allow("Users", $component, $action); - } -} -``` - - -## Properties -```php -/** - * Access - * - * @var mixed - */ -protected access; - -/** - * Access List - * - * @var mixed - */ -protected accessList; - -/** - * Returns latest function used to acquire access - * - * @var mixed - */ -protected activeFunction; - -/** - * Returns number of additional arguments(excluding role and resource) for active function - * - * @var int - */ -protected activeFunctionCustomArgumentsCount = 0; - -/** - * Returns latest key used to acquire access - * - * @var string|null - */ -protected activeKey; - -/** - * Components - * - * @var mixed - */ -protected components; - -/** - * Component Names - * - * @var mixed - */ -protected componentsNames; - -/** - * Function List - * - * @var mixed - */ -protected func; - -/** - * Default action for no arguments is allow - * - * @var mixed - */ -protected noArgumentsDefaultAction; - -/** - * Roles - * - * @var mixed - */ -protected roles; - -/** - * Role Inherits - * - * @var mixed - */ -protected roleInherits; - -/** - * Roles Names - * - * @var mixed - */ -protected rolesNames; - -``` - -## Methods -```php -public function __construct(): void; -``` -Phalcon\Acl\Adapter\Memory constructor - - -```php -public function addComponent( mixed $componentValue, mixed $accessList ): bool; -``` -Adds a component to the ACL list - -Access names can be a particular action, by example -search, update, delete, etc or a list of them - -Example: -```php -// Add a component to the the list allowing access to an action -$acl->addComponent( - new Phalcon\Acl\Component("customers"), - "search" -); - -$acl->addComponent("customers", "search"); - -// Add a component with an access list -$acl->addComponent( - new Phalcon\Acl\Component("customers"), - [ - "create", - "search", - ] -); - -$acl->addComponent( - "customers", - [ - "create", - "search", - ] -); -``` - - -```php -public function addComponentAccess( string $componentName, mixed $accessList ): bool; -``` -Adds access to components - - -```php -public function addInherit( string $roleName, mixed $roleToInherits ): bool; -``` -Do a role inherit from another existing role - -```php -$acl->addRole("administrator", "consultant"); -$acl->addRole("administrator", ["consultant", "consultant2"]); -``` - - -```php -public function addRole( mixed $role, mixed $accessInherits = null ): bool; -``` -Adds a role to the ACL list. Second parameter allows inheriting access data from other existing role - -```php -$acl->addRole( - new Phalcon\Acl\Role("administrator"), - "consultant" -); - -$acl->addRole("administrator", "consultant"); -$acl->addRole("administrator", ["consultant", "consultant2"]); -``` - - -```php -public function allow( string $roleName, string $componentName, mixed $access, mixed $func = null ): void; -``` -Allow access to a role on a component. You can use `*` as wildcard - -```php -// Allow access to guests to search on customers -$acl->allow("guests", "customers", "search"); - -// Allow access to guests to search or create on customers -$acl->allow("guests", "customers", ["search", "create"]); - -// Allow access to any role to browse on products -$acl->allow("*", "products", "browse"); - -// Allow access to any role to browse on any component -$acl->allow("*", "*", "browse"); - - -```php -public function deny( string $roleName, string $componentName, mixed $access, mixed $func = null ): void; -``` -Deny access to a role on a component. You can use `*` as wildcard - -```php -// Deny access to guests to search on customers -$acl->deny("guests", "customers", "search"); - -// Deny access to guests to search or create on customers -$acl->deny("guests", "customers", ["search", "create"]); - -// Deny access to any role to browse on products -$acl->deny("*", "products", "browse"); - -// Deny access to any role to browse on any component -$acl->deny("*", "*", "browse"); -``` - - -```php -public function dropComponentAccess( string $componentName, mixed $accessList ): void; -``` -Removes an access from a component - - -```php -public function getActiveFunction(): mixed -``` - - -```php -public function getActiveFunctionCustomArgumentsCount(): int -``` - - -```php -public function getActiveKey(): string|null -``` - - -```php -public function getComponents(): ComponentInterface[]; -``` -Return an array with every component registered in the list - - -```php -public function getNoArgumentsDefaultAction(): int; -``` -Returns the default ACL access level for no arguments provided in -`isAllowed` action if a `func` (callable) exists for `accessKey` - - -```php -public function getRoles(): RoleInterface[]; -``` -Return an array with every role registered in the list - - -```php -public function isAllowed( mixed $roleName, mixed $componentName, string $access, array $parameters = null ): bool; -``` -Check whether a role is allowed to access an action from a component - -```php -// Does andres have access to the customers component to create? -$acl->isAllowed("andres", "Products", "create"); - -// Do guests have access to any component to edit? -$acl->isAllowed("guests", "*", "edit"); -``` - - -```php -public function isComponent( string $componentName ): bool; -``` -Check whether component exist in the components list - - -```php -public function isRole( string $roleName ): bool; -``` -Check whether role exist in the roles list - - -```php -public function setNoArgumentsDefaultAction( int $defaultAccess ): void; -``` -Sets the default access level (`Phalcon\Enum::ALLOW` or `Phalcon\Enum::DENY`) -for no arguments provided in isAllowed action if there exists func for -accessKey - - - - -

        Class Phalcon\Acl\Component

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/acl/component.zep) - -| Namespace | Phalcon\Acl | -| Uses | Phalcon\Acl\Exception | -| Implements | ComponentInterface | - -This class defines component entity and its description - - -## Properties -```php -/** - * Component description - * - * @var string - */ -private description; - -/** - * Component name - * - * @var string - */ -private name; - -``` - -## Methods -```php -public function __construct( string $name, string $description = null ): void; -``` -Phalcon\Acl\Component constructor - - -```php -public function __toString(): string -``` - - -```php -public function getDescription(): string -``` - - -```php -public function getName(): string -``` - - - - -

        Interface Phalcon\Acl\ComponentAware

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/acl/componentaware.zep) - -| Namespace | Phalcon\Acl | - -Interface for classes which could be used in allow method as RESOURCE - - -## Methods -```php -public function getComponentName(): string; -``` -Returns component name - - - - -

        Interface Phalcon\Acl\ComponentInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/acl/componentinterface.zep) - -| Namespace | Phalcon\Acl | - -Interface for Phalcon\Acl\Component - - -## Methods -```php -public function __toString(): string; -``` -Magic method __toString - - -```php -public function getDescription(): string; -``` -Returns component description - - -```php -public function getName(): string; -``` -Returns the component name - - - - -

        Class Phalcon\Acl\Enum

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/acl/enum.zep) - -| Namespace | Phalcon\Acl | - -Constants for Phalcon\Acl\Adapter adapters - - -## Constants -```php -const ALLOW = 1; -const DENY = 0; -``` - - -

        Class Phalcon\Acl\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/acl/exception.zep) - -| Namespace | Phalcon\Acl | -| Extends | \Phalcon\Exception | - -Class for exceptions thrown by Phalcon\Acl - - - -

        Class Phalcon\Acl\Role

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/acl/role.zep) - -| Namespace | Phalcon\Acl | -| Uses | Phalcon\Acl\Exception | -| Implements | RoleInterface | - -This class defines role entity and its description - - -## Properties -```php -/** - * Role name - * - * @var string - */ -private name; - -/** - * Role description - * - * @var string - */ -private description; - -``` - -## Methods -```php -public function __construct( string $name, string $description = null ): void; -``` -Phalcon\Acl\Role constructor - - -```php -public function __toString(): string -``` - - -```php -public function getDescription(): string -``` - - -```php -public function getName(): string -``` - - - - -

        Interface Phalcon\Acl\RoleAware

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/acl/roleaware.zep) - -| Namespace | Phalcon\Acl | - -Interface for classes which could be used in allow method as ROLE - - -## Methods -```php -public function getRoleName(): string; -``` -Returns role name - - - - -

        Interface Phalcon\Acl\RoleInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/acl/roleinterface.zep) - -| Namespace | Phalcon\Acl | - -Interface for Phalcon\Acl\Role - - -## Methods -```php -public function __toString(): string; -``` -Magic method __toString - - -```php -public function getDescription(): string; -``` -Returns role description - - -```php -public function getName(): string; -``` -Returns the role name - - diff --git a/nikos/api/Phalcon_Annotations.md b/nikos/api/Phalcon_Annotations.md deleted file mode 100644 index ff6c98aac69..00000000000 --- a/nikos/api/Phalcon_Annotations.md +++ /dev/null @@ -1,652 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Annotations' ---- - -* [Phalcon\Annotations\Adapter\AbstractAdapter](#annotations-adapter-abstractadapter) -* [Phalcon\Annotations\Adapter\AdapterInterface](#annotations-adapter-adapterinterface) -* [Phalcon\Annotations\Adapter\Apcu](#annotations-adapter-apcu) -* [Phalcon\Annotations\Adapter\Memory](#annotations-adapter-memory) -* [Phalcon\Annotations\Adapter\Stream](#annotations-adapter-stream) -* [Phalcon\Annotations\Annotation](#annotations-annotation) -* [Phalcon\Annotations\AnnotationsFactory](#annotations-annotationsfactory) -* [Phalcon\Annotations\Collection](#annotations-collection) -* [Phalcon\Annotations\Exception](#annotations-exception) -* [Phalcon\Annotations\Reader](#annotations-reader) -* [Phalcon\Annotations\ReaderInterface](#annotations-readerinterface) -* [Phalcon\Annotations\Reflection](#annotations-reflection) - -

        Abstract Class Phalcon\Annotations\Adapter\AbstractAdapter

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/annotations/adapter/abstractadapter.zep) - -| Namespace | Phalcon\Annotations\Adapter | -| Uses | Phalcon\Annotations\Adapter\AdapterInterface, Phalcon\Annotations\Reader, Phalcon\Annotations\Exception, Phalcon\Annotations\Collection, Phalcon\Annotations\Reflection, Phalcon\Annotations\ReaderInterface | -| Implements | AdapterInterface | - -This is the base class for Phalcon\Annotations adapters - - -## Properties -```php -/** - * @var array - */ -protected annotations; - -/** - * @var Reader - */ -protected reader; - -``` - -## Methods -```php -public function get( mixed $className ): Reflection; -``` -Parses or retrieves all the annotations found in a class - - -```php -public function getMethod( string $className, string $methodName ): Collection; -``` -Returns the annotations found in a specific method - - -```php -public function getMethods( string $className ): array; -``` -Returns the annotations found in all the class' methods - - -```php -public function getProperties( string $className ): array; -``` -Returns the annotations found in all the class' methods - - -```php -public function getProperty( string $className, string $propertyName ): Collection; -``` -Returns the annotations found in a specific property - - -```php -public function getReader(): ReaderInterface; -``` -Returns the annotation reader - - -```php -public function setReader( ReaderInterface $reader ); -``` -Sets the annotations parser - - - - -

        Interface Phalcon\Annotations\Adapter\AdapterInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/annotations/adapter/adapterinterface.zep) - -| Namespace | Phalcon\Annotations\Adapter | -| Uses | Phalcon\Annotations\Reflection, Phalcon\Annotations\Collection, Phalcon\Annotations\ReaderInterface | - -This interface must be implemented by adapters in Phalcon\Annotations - - -## Methods -```php -public function get( string $className ): Reflection; -``` -Parses or retrieves all the annotations found in a class - - -```php -public function getMethod( string $className, string $methodName ): Collection; -``` -Returns the annotations found in a specific method - - -```php -public function getMethods( string $className ): array; -``` -Returns the annotations found in all the class' methods - - -```php -public function getProperties( string $className ): array; -``` -Returns the annotations found in all the class' methods - - -```php -public function getProperty( string $className, string $propertyName ): Collection; -``` -Returns the annotations found in a specific property - - -```php -public function getReader(): ReaderInterface; -``` -Returns the annotation reader - - -```php -public function setReader( ReaderInterface $reader ); -``` -Sets the annotations parser - - - - -

        Class Phalcon\Annotations\Adapter\Apcu

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/annotations/adapter/apcu.zep) - -| Namespace | Phalcon\Annotations\Adapter | -| Uses | Phalcon\Annotations\Adapter\AbstractAdapter, Phalcon\Annotations\Reflection | -| Extends | AbstractAdapter | - -Stores the parsed annotations in APCu. This adapter is suitable for production - -```php -use Phalcon\Annotations\Adapter\Apcu; - -$annotations = new Apcu(); -``` - - -## Properties -```php -/** - * @var string - */ -protected prefix = ; - -/** - * @var int - */ -protected ttl = 172800; - -``` - -## Methods -```php -public function __construct( array $options = [] ): void; -``` -Phalcon\Annotations\Adapter\Apcu constructor - - -```php -public function read( string $key ): Reflection | bool; -``` -Reads parsed annotations from APCu - - -```php -public function write( string $key, Reflection $data ): bool; -``` -Writes parsed annotations to APCu - - - - -

        Class Phalcon\Annotations\Adapter\Memory

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/annotations/adapter/memory.zep) - -| Namespace | Phalcon\Annotations\Adapter | -| Uses | Phalcon\Annotations\Adapter\AbstractAdapter, Phalcon\Annotations\Reflection | -| Extends | AbstractAdapter | - -Stores the parsed annotations in memory. This adapter is the suitable -development/testing - - -## Properties -```php -/** - * @var mixed - */ -protected data; - -``` - -## Methods -```php -public function read( string $key ): Reflection | bool; -``` -Reads parsed annotations from memory - - -```php -public function write( string $key, Reflection $data ): void; -``` -Writes parsed annotations to memory - - - - -

        Class Phalcon\Annotations\Adapter\Stream

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/annotations/adapter/stream.zep) - -| Namespace | Phalcon\Annotations\Adapter | -| Uses | Phalcon\Annotations\Adapter\AbstractAdapter, Phalcon\Annotations\Reflection, Phalcon\Annotations\Exception | -| Extends | AbstractAdapter | - -Stores the parsed annotations in files. This adapter is suitable for production - -```php -use Phalcon\Annotations\Adapter\Stream; - -$annotations = new Stream( - [ - "annotationsDir" => "app/cache/annotations/", - ] -); -``` - - -## Properties -```php -/** - * @var string - */ -protected annotationsDir = ./; - -``` - -## Methods -```php -public function __construct( array $options = [] ): void; -``` -Phalcon\Annotations\Adapter\Stream constructor - - -```php -public function read( string $key ): Reflection | bool | int; -``` -Reads parsed annotations from files - - -```php -public function write( string $key, Reflection $data ): void; -``` -Writes parsed annotations to files - - - - -

        Class Phalcon\Annotations\Annotation

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/annotations/annotation.zep) - -| Namespace | Phalcon\Annotations | -| Uses | Phalcon\Annotations\Annotation, Phalcon\Annotations\Exception | - -Represents a single annotation in an annotations collection - - -## Properties -```php -/** - * Annotation Arguments - * - * @var array - */ -protected arguments; - -/** - * Annotation ExprArguments - * - * @var string - */ -protected exprArguments; - -/** - * Annotation Name - * - * @var string - */ -protected name; - -``` - -## Methods -```php -public function __construct( array $reflectionData ): void; -``` -Phalcon\Annotations\Annotation constructor - - -```php -public function getArgument( mixed $position ); -``` -Returns an argument in a specific position - - -```php -public function getArguments(): array; -``` -Returns the expression arguments - - -```php -public function getExprArguments(): array; -``` -Returns the expression arguments without resolving - - -```php -public function getExpression( array $expr ): mixed; -``` -Resolves an annotation expression - - -```php -public function getName(): string; -``` -Returns the annotation's name - - -```php -public function getNamedArgument( string $name ); -``` -Returns a named argument - - -```php -public function getNamedParameter( string $name ): mixed; -``` -Returns a named parameter - - -```php -public function hasArgument( mixed $position ): bool; -``` -Returns an argument in a specific position - - -```php -public function numberArguments(): int; -``` -Returns the number of arguments that the annotation has - - - - -

        Class Phalcon\Annotations\AnnotationsFactory

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/annotations/annotationsfactory.zep) - -| Namespace | Phalcon\Annotations | -| Uses | Phalcon\Annotations\Adapter\AbstractAdapter, Phalcon\Factory\AbstractFactory, Phalcon\Helper\Arr | -| Extends | AbstractFactory | - -Factory to create annotations components - - -## Methods -```php -public function __construct( array $services = [] ); -``` -AdapterFactory constructor. - - -```php -public function load( mixed $config ): mixed; -``` -Factory to create an instace from a Config object - - -```php -public function newInstance( string $name, array $options = [] ): AbstractAdapter; -``` -Create a new instance of the adapter - - -```php -protected function getAdapters(): array; -``` -The available adapters - - - - -

        Class Phalcon\Annotations\Collection

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/annotations/collection.zep) - -| Namespace | Phalcon\Annotations | -| Uses | Countable, Iterator, Phalcon\Annotations\Annotation, Phalcon\Annotations\Exception | -| Implements | Iterator, Countable | - -Represents a collection of annotations. This class allows to traverse a group -of annotations easily - -```php -// Traverse annotations -foreach ($classAnnotations as $annotation) { - echo "Name=", $annotation->getName(), PHP_EOL; -} - -// Check if the annotations has a specific -var_dump($classAnnotations->has("Cacheable")); - -// Get an specific annotation in the collection -$annotation = $classAnnotations->get("Cacheable"); -``` - - -## Properties -```php -/** - * @var array - */ -protected annotations; - -/** - * @var int - */ -protected position = 0; - -``` - -## Methods -```php -public function __construct( array $reflectionData = [] ): void; -``` -Phalcon\Annotations\Collection constructor - - -```php -public function count(): int; -``` -Returns the number of annotations in the collection - - -```php -public function current(): Annotation | bool; -``` -Returns the current annotation in the iterator - - -```php -public function get( string $name ): Annotation; -``` -Returns the first annotation that match a name - - -```php -public function getAll( string $name ): Annotation[]; -``` -Returns all the annotations that match a name - - -```php -public function getAnnotations(): Annotation[]; -``` -Returns the internal annotations as an array - - -```php -public function has( string $name ): bool; -``` -Check if an annotation exists in a collection - - -```php -public function key(): int; -``` -Returns the current position/key in the iterator - - -```php -public function next(): void; -``` -Moves the internal iteration pointer to the next position - - -```php -public function rewind(): void; -``` -Rewinds the internal iterator - - -```php -public function valid(): bool; -``` -Check if the current annotation in the iterator is valid - - - - -

        Class Phalcon\Annotations\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/annotations/exception.zep) - -| Namespace | Phalcon\Annotations | -| Extends | \Phalcon\Exception | - -Class for exceptions thrown by Phalcon\Annotations - - - -

        Class Phalcon\Annotations\Reader

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/annotations/reader.zep) - -| Namespace | Phalcon\Annotations | -| Uses | Phalcon\Annotations\ReaderInterface, ReflectionClass | -| Implements | ReaderInterface | - -Parses docblocks returning an array with the found annotations - - -## Methods -```php -public function parse( string $className ): array; -``` -Reads annotations from the class docblocks, its methods and/or properties - - - - -

        Interface Phalcon\Annotations\ReaderInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/annotations/readerinterface.zep) - -| Namespace | Phalcon\Annotations | - -Parses docblocks returning an array with the found annotations - - -## Methods -```php -public function parse( string $className ): array; -``` -Reads annotations from the class docblocks, its methods and/or properties - - - - -

        Class Phalcon\Annotations\Reflection

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/annotations/reflection.zep) - -| Namespace | Phalcon\Annotations | -| Uses | Phalcon\Annotations\Collection | - -Allows to manipulate the annotations reflection in an OO manner - -```php -use Phalcon\Annotations\Reader; -use Phalcon\Annotations\Reflection; - -// Parse the annotations in a class -$reader = new Reader(); -$parsing = $reader->parse("MyComponent"); - -// Create the reflection -$reflection = new Reflection($parsing); - -// Get the annotations in the class docblock -$classAnnotations = $reflection->getClassAnnotations(); -``` - - -## Properties -```php -// -protected classAnnotations; - -// -protected methodAnnotations; - -// -protected propertyAnnotations; - -/** - * @var array - */ -protected reflectionData; - -``` - -## Methods -```php -public function __construct( array $reflectionData = [] ): void; -``` -Phalcon\Annotations\Reflection constructor - - -```php -public function getClassAnnotations(): Collection | bool; -``` -Returns the annotations found in the class docblock - - -```php -public function getMethodsAnnotations(): Collection[] | bool; -``` -Returns the annotations found in the methods' docblocks - - -```php -public function getPropertiesAnnotations(): Collection[] | bool; -``` -Returns the annotations found in the properties' docblocks - - -```php -public function getReflectionData(): array; -``` -Returns the raw parsing intermediate definitions used to construct the -reflection - - diff --git a/nikos/api/Phalcon_Application.md b/nikos/api/Phalcon_Application.md deleted file mode 100644 index 0291cc50328..00000000000 --- a/nikos/api/Phalcon_Application.md +++ /dev/null @@ -1,127 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Application' ---- - -* [Phalcon\Application\AbstractApplication](#application-abstractapplication) -* [Phalcon\Application\Exception](#application-exception) - -

        Abstract Class Phalcon\Application\AbstractApplication

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/application/abstractapplication.zep) - -| Namespace | Phalcon\Application | -| Uses | Phalcon\Application\Exception, Phalcon\Di\DiInterface, Phalcon\Di\Injectable, Phalcon\Events\EventsAwareInterface, Phalcon\Events\ManagerInterface | -| Extends | Injectable | -| Implements | EventsAwareInterface | - -Base class for Phalcon\Cli\Console and Phalcon\Mvc\Application. - - -## Properties -```php -/** - * @var DiInterface - */ -protected container; - -/** - * @var string - */ -protected defaultModule; - -/** - * @var null | ManagerInterface - */ -protected eventsManager; - -/** - * @var array - */ -protected modules; - -``` - -## Methods -```php -public function __construct( DiInterface $container = null ): void; -``` -Phalcon\AbstractApplication constructor - - -```php -public function getDefaultModule(): string; -``` -Returns the default module name - - -```php -public function getEventsManager(): ManagerInterface; -``` -Returns the internal event manager - - -```php -public function getModule( string $name ): array | object; -``` -Gets the module definition registered in the application via module name - - -```php -public function getModules(): array; -``` -Return the modules registered in the application - - -```php -abstract public function handle(); -``` -Handles a request - - -```php -public function registerModules( array $modules, bool $merge = bool ): AbstractApplication; -``` -Register an array of modules present in the application - -```php -$this->registerModules( - [ - "frontend" => [ - "className" => \Multiple\Frontend\Module::class, - "path" => "../apps/frontend/Module.php", - ], - "backend" => [ - "className" => \Multiple\Backend\Module::class, - "path" => "../apps/backend/Module.php", - ], - ] -); -``` - - -```php -public function setDefaultModule( string $defaultModule ): AbstractApplication; -``` -Sets the module name to be used if the router doesn't return a valid module - - -```php -public function setEventsManager( ManagerInterface $eventsManager ): AbstractApplication; -``` -Sets the events manager - - - - -

        Class Phalcon\Application\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/application/exception.zep) - -| Namespace | Phalcon\Application | -| Extends | \Phalcon\Exception | - -Exceptions thrown in Phalcon\Application class will use this class - diff --git a/nikos/api/Phalcon_Assets.md b/nikos/api/Phalcon_Assets.md deleted file mode 100644 index 4c862ecd341..00000000000 --- a/nikos/api/Phalcon_Assets.md +++ /dev/null @@ -1,1138 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Assets' ---- - -* [Phalcon\Assets\Asset](#assets-asset) -* [Phalcon\Assets\Asset\Css](#assets-asset-css) -* [Phalcon\Assets\Asset\Js](#assets-asset-js) -* [Phalcon\Assets\AssetInterface](#assets-assetinterface) -* [Phalcon\Assets\Collection](#assets-collection) -* [Phalcon\Assets\Exception](#assets-exception) -* [Phalcon\Assets\FilterInterface](#assets-filterinterface) -* [Phalcon\Assets\Filters\CssMin](#assets-filters-cssmin) -* [Phalcon\Assets\Filters\JsMin](#assets-filters-jsmin) -* [Phalcon\Assets\Filters\None](#assets-filters-none) -* [Phalcon\Assets\Inline](#assets-inline) -* [Phalcon\Assets\Inline\Css](#assets-inline-css) -* [Phalcon\Assets\Inline\Js](#assets-inline-js) -* [Phalcon\Assets\Manager](#assets-manager) - -

        Class Phalcon\Assets\Asset

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/assets/asset.zep) - -| Namespace | Phalcon\Assets | -| Implements | AssetInterface | - -Represents an asset asset - -```php -$asset = new \Phalcon\Assets\Asset("js", "javascripts/jquery.js"); -``` - - -## Properties -```php -/** - * @var array | null - */ -protected attributes; - -/** - * @var bool - */ -protected autoVersion = false; - -/** - * @var bool - */ -protected filter; - -/** - * @var bool - */ -protected local; - -/** - * @var string - */ -protected path; - -/** - * @var string - */ -protected sourcePath; - -/** - * @var string - */ -protected targetPath; - -/** - * @var string - */ -protected targetUri; - -/** - * @var string - */ -protected type; - -/** - * Version of resource - * @var string - */ -protected version; - -``` - -## Methods -```php -public function __construct( string $type, string $path, bool $local = bool, bool $filter = bool, array $attributes = [], string $version = null, bool $autoVersion = bool ): void; -``` -Phalcon\Assets\Asset constructor - - -```php -public function getAssetKey(): string; -``` -Gets the asset's key. - - -```php -public function getAttributes(): array | null -``` - - -```php -public function getContent( string $basePath = null ): string; -``` -Returns the content of the asset as an string -Optionally a base path where the asset is located can be set - - -```php -public function getFilter(): bool -``` - - -```php -public function getLocal(): bool -``` - - -```php -public function getPath(): string -``` - - -```php -public function getRealSourcePath( string $basePath = null ): string; -``` -Returns the complete location where the asset is located - - -```php -public function getRealTargetPath( string $basePath = null ): string; -``` -Returns the complete location where the asset must be written - - -```php -public function getRealTargetUri(): string; -``` -Returns the real target uri for the generated HTML - - -```php -public function getSourcePath(): string -``` - - -```php -public function getTargetPath(): string -``` - - -```php -public function getTargetUri(): string -``` - - -```php -public function getType(): string -``` - - -```php -public function getVersion(): string -``` - - -```php -public function isAutoVersion(): bool; -``` -Checks if resource is using auto version - - -```php -public function setAttributes( array $attributes ): AssetInterface; -``` -Sets extra HTML attributes - - -```php -public function setAutoVersion( bool $autoVersion ) -``` - - -```php -public function setFilter( bool $filter ): AssetInterface; -``` -Sets if the asset must be filtered or not - - -```php -public function setLocal( bool $local ): AssetInterface; -``` -Sets if the asset is local or external - - -```php -public function setPath( string $path ): AssetInterface; -``` -Sets the asset's path - - -```php -public function setSourcePath( string $sourcePath ): AssetInterface; -``` -Sets the asset's source path - - -```php -public function setTargetPath( string $targetPath ): AssetInterface; -``` -Sets the asset's target path - - -```php -public function setTargetUri( string $targetUri ): AssetInterface; -``` -Sets a target uri for the generated HTML - - -```php -public function setType( string $type ): AssetInterface; -``` -Sets the asset's type - - -```php -public function setVersion( string $version ) -``` - - - - -

        Class Phalcon\Assets\Asset\Css

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/assets/asset/css.zep) - -| Namespace | Phalcon\Assets\Asset | -| Uses | Phalcon\Assets\Asset | -| Extends | AssetBase | - -Represents CSS assets - - -## Methods -```php -public function __construct( string $path, bool $local = bool, bool $filter = bool, array $attributes = [], string $version = null, bool $autoVersion = bool ): void; -``` -Phalcon\Assets\Asset\Css constructor - - - - -

        Class Phalcon\Assets\Asset\Js

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/assets/asset/js.zep) - -| Namespace | Phalcon\Assets\Asset | -| Uses | Phalcon\Assets\Asset | -| Extends | AssetBase | - -Represents Javascript assets - - -## Methods -```php -public function __construct( string $path, bool $local = bool, bool $filter = bool, array $attributes = [], string $version = null, bool $autoVersion = bool ): void; -``` -Phalcon\Assets\Asset\Js constructor - - - - -

        Interface Phalcon\Assets\AssetInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/assets/assetinterface.zep) - -| Namespace | Phalcon\Assets | - -Interface for custom Phalcon\Assets reources - - -## Methods -```php -public function getAssetKey(): string; -``` -Gets the asset's key. - - -```php -public function getAttributes(): array | null; -``` -Gets extra HTML attributes. - - -```php -public function getFilter(): bool; -``` -Gets if the asset must be filtered or not. - - -```php -public function getType(): string; -``` -Gets the asset's type. - - -```php -public function setAttributes( array $attributes ): AssetInterface; -``` -Sets extra HTML attributes. - - -```php -public function setFilter( bool $filter ): AssetInterface; -``` -Sets if the asset must be filtered or not. - - -```php -public function setType( string $type ): AssetInterface; -``` -Sets the asset's type. - - - - -

        Class Phalcon\Assets\Collection

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/assets/collection.zep) - -| Namespace | Phalcon\Assets | -| Uses | Countable, Iterator, Phalcon\Assets\Asset, Phalcon\Assets\FilterInterface, Phalcon\Assets\Inline, Phalcon\Assets\Asset\Css, Phalcon\Assets\Asset\Js, Phalcon\Assets\Inline\Js, Phalcon\Assets\Inline\Css | -| Implements | Countable, Iterator | - -Represents a collection of assets - - -## Properties -```php -/** - * @var array - */ -protected assets; - -/** - * @var array - */ -protected attributes; - -/** - * Should version be determined from file modification time - * @var bool - */ -protected autoVersion = false; - -/** - * @var array - */ -protected codes; - -/** - * @var array - */ -protected filters; - -/** - * @var array - */ -protected includedAssets; - -/** - * @var bool - */ -protected join = true; - -/** - * @var bool - */ -protected local = true; - -/** - * @var string - */ -protected prefix; - -/** - * @var int - */ -protected position; - -/** - * @var string - */ -protected sourcePath; - -/** - * @var bool - */ -protected targetLocal = true; - -/** - * @var string - */ -protected targetPath; - -/** - * @var string - */ -protected targetUri; - -/** - * Version of resource - * @var string - */ -protected version; - -``` - -## Methods -```php -public function __construct(): void; -``` -Phalcon\Assets\Collection constructor - - -```php -public function add( AssetInterface $asset ): Collection; -``` -Adds a asset to the collection - - -```php -public function addCss( string $path, mixed $local = null, bool $filter = bool, mixed $attributes = null, string $version = null, bool $autoVersion = bool ): Collection; -``` -Adds a CSS asset to the collection - - -```php -public function addFilter( FilterInterface $filter ): Collection; -``` -Adds a filter to the collection - - -```php -public function addInline( Inline $code ): Collection; -``` -Adds an inline code to the collection - - -```php -public function addInlineCss( string $content, bool $filter = bool, mixed $attributes = null ): Collection; -``` -Adds an inline CSS to the collection - - -```php -public function addInlineJs( string $content, bool $filter = bool, mixed $attributes = null ): Collection; -``` -Adds an inline javascript to the collection - - -```php -public function addJs( string $path, mixed $local = null, bool $filter = bool, mixed $attributes = null, string $version = null, bool $autoVersion = bool ): Collection; -``` -Adds a javascript asset to the collection - -@param array attributes - - -```php -public function count(): int; -``` -Returns the number of elements in the form - - -```php -public function current(): Asset; -``` -Returns the current asset in the iterator - - -```php -public function getAssets(): array -``` - - -```php -public function getAttributes(): array -``` - - -```php -public function getCodes(): array -``` - - -```php -public function getFilters(): array -``` - - -```php -public function getJoin(): bool -``` - - -```php -public function getLocal(): bool -``` - - -```php -public function getPosition(): int -``` - - -```php -public function getPrefix(): string -``` - - -```php -public function getRealTargetPath( string $basePath ): string; -``` -Returns the complete location where the joined/filtered collection must -be written - - -```php -public function getSourcePath(): string -``` - - -```php -public function getTargetLocal(): bool -``` - - -```php -public function getTargetPath(): string -``` - - -```php -public function getTargetUri(): string -``` - - -```php -public function getVersion(): string -``` - - -```php -public function has( AssetInterface $asset ): bool; -``` -Checks this the asset is added to the collection. - -```php -use Phalcon\Assets\Asset; -use Phalcon\Assets\Collection; - -$collection = new Collection(); - -$asset = new Asset("js", "js/jquery.js"); - -$collection->add($asset); -$collection->has($asset); // true -``` - - -```php -public function isAutoVersion(): bool; -``` -Checks if collection is using auto version - - -```php -public function join( bool $join ): Collection; -``` -Sets if all filtered assets in the collection must be joined in a single -result file - - -```php -public function key(): int; -``` -Returns the current position/key in the iterator - - -```php -public function next(): void; -``` -Moves the internal iteration pointer to the next position - - -```php -public function rewind(): void; -``` -Rewinds the internal iterator - - -```php -public function setAttributes( array $attributes ): Collection; -``` -Sets extra HTML attributes - - -```php -public function setAutoVersion( bool $autoVersion ) -``` - - -```php -public function setFilters( array $filters ): Collection; -``` -Sets an array of filters in the collection - - -```php -public function setLocal( bool $local ): Collection; -``` -Sets if the collection uses local assets by default - - -```php -public function setPrefix( string $prefix ): Collection; -``` -Sets a common prefix for all the assets - - -```php -public function setSourcePath( string $sourcePath ): Collection; -``` -Sets a base source path for all the assets in this collection - - -```php -public function setTargetLocal( bool $targetLocal ): Collection; -``` -Sets the target local - - -```php -public function setTargetPath( string $targetPath ): Collection; -``` -Sets the target path of the file for the filtered/join output - - -```php -public function setTargetUri( string $targetUri ): Collection; -``` -Sets a target uri for the generated HTML - - -```php -public function setVersion( string $version ) -``` - - -```php -public function valid(): bool; -``` -Check if the current element in the iterator is valid - - -```php -final protected function addAsset( AssetInterface $asset ): bool; -``` -Adds a asset or inline-code to the collection - - - - -

        Class Phalcon\Assets\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/assets/exception.zep) - -| Namespace | Phalcon\Assets | -| Extends | \Phalcon\Exception | - -Exceptions thrown in Phalcon\Assets will use this class - - - -

        Interface Phalcon\Assets\FilterInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/assets/filterinterface.zep) - -| Namespace | Phalcon\Assets | - -Interface for custom Phalcon\Assets filters - - -## Methods -```php -public function filter( string $content ): string; -``` -Filters the content returning a string with the filtered content - - - - -

        Class Phalcon\Assets\Filters\Cssmin

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/assets/filters/cssmin.zep) - -| Namespace | Phalcon\Assets\Filters | -| Uses | Phalcon\Assets\FilterInterface | -| Implements | FilterInterface | - -Minify the css - removes comments removes newlines and line feeds keeping -removes last semicolon from last property - - -## Methods -```php -public function filter( string $content ): string; -``` -Filters the content using CSSMIN -NOTE: This functionality is not currently available - - - - -

        Class Phalcon\Assets\Filters\Jsmin

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/assets/filters/jsmin.zep) - -| Namespace | Phalcon\Assets\Filters | -| Uses | Phalcon\Assets\FilterInterface | -| Implements | FilterInterface | - -Deletes the characters which are insignificant to JavaScript. Comments will -be removed. Tabs will be replaced with spaces. Carriage returns will be -replaced with linefeeds. Most spaces and linefeeds will be removed. - - -## Methods -```php -public function filter( string $content ): string; -``` -Filters the content using JSMIN -NOTE: This functionality is not currently available - - - - -

        Class Phalcon\Assets\Filters\None

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/assets/filters/none.zep) - -| Namespace | Phalcon\Assets\Filters | -| Uses | Phalcon\Assets\FilterInterface | -| Implements | FilterInterface | - -Returns the content without make any modification to the original source - - -## Methods -```php -public function filter( string $content ): string; -``` -Returns the content as is - - - - -

        Class Phalcon\Assets\Inline

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/assets/inline.zep) - -| Namespace | Phalcon\Assets | -| Implements | AssetInterface | - -Represents an inline asset - -```php -$inline = new \Phalcon\Assets\Inline("js", "alert('hello world');"); -``` - - -## Properties -```php -/** - * @var array | null - */ -protected attributes; - -/** - * @var string - */ -protected content; - -/** - * @var bool - */ -protected filter; - -/** - * @var string - */ -protected type; - -``` - -## Methods -```php -public function __construct( string $type, string $content, bool $filter = bool, array $attributes = [] ): void; -``` -Phalcon\Assets\Inline constructor - - -```php -public function getAssetKey(): string; -``` -Gets the asset's key. - - -```php -public function getAttributes(): array | null -``` - - -```php -public function getContent(): string -``` - - -```php -public function getFilter(): bool -``` - - -```php -public function getType(): string -``` - - -```php -public function setAttributes( array $attributes ): AssetInterface; -``` -Sets extra HTML attributes - - -```php -public function setFilter( bool $filter ): AssetInterface; -``` -Sets if the asset must be filtered or not - - -```php -public function setType( string $type ): AssetInterface; -``` -Sets the inline's type - - - - -

        Class Phalcon\Assets\Inline\Css

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/assets/inline/css.zep) - -| Namespace | Phalcon\Assets\Inline | -| Uses | Phalcon\Assets\Inline | -| Extends | InlineBase | - -Represents an inlined CSS - - -## Methods -```php -public function __construct( string $content, bool $filter = bool, mixed $attributes = null ): void; -``` -Phalcon\Assets\Inline\Css constructor - - - - -

        Class Phalcon\Assets\Inline\Js

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/assets/inline/js.zep) - -| Namespace | Phalcon\Assets\Inline | -| Uses | Phalcon\Assets\Inline | -| Extends | InlineBase | - -Represents an inline JavaScript - - -## Methods -```php -public function __construct( string $content, bool $filter = bool, mixed $attributes = null ): void; -``` -Phalcon\Assets\Inline\Js constructor - - - - -

        Class Phalcon\Assets\Manager

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/assets/manager.zep) - -| Namespace | Phalcon\Assets | -| Uses | Phalcon\Tag, Phalcon\Assets\Asset, Phalcon\Assets\Collection, Phalcon\Assets\Exception, Phalcon\Assets\Asset\Js, Phalcon\Assets\Asset\Css, Phalcon\Assets\Inline\Css, Phalcon\Assets\Inline\Js, Phalcon\Di\DiInterface, Phalcon\Di\AbstractInjectionAware | -| Extends | AbstractInjectionAware | - -Phalcon\Assets\Manager - -Manages collections of CSS/Javascript assets - - -## Properties -```php -// -protected collections; - -/** - * Options configure - * @var array - */ -protected options; - -/** - * @var bool - */ -protected implicitOutput = true; - -``` - -## Methods -```php -public function __construct( array $options = [] ): void; -``` -Phalcon\Assets\Manager constructor - - -```php -public function addAsset( Asset $asset ): Manager; -``` -Adds a raw asset to the manager - -```php -$assets->addAsset( - new Phalcon\Assets\Asset("css", "css/style.css") -); -``` - - -```php -public function addAssetByType( string $type, Asset $asset ): Manager; -``` -Adds a asset by its type - -```php -$assets->addAssetByType( - "css", - new \Phalcon\Assets\Asset\Css("css/style.css") -); -``` - - -```php -public function addCss( string $path, mixed $local = bool, bool $filter = bool, mixed $attributes = null, string $version = null, bool $autoVersion = bool ): Manager; -``` - Adds a Css asset to the 'css' collection - - ```php - $assets->addCss("css/bootstrap.css"); - $assets->addCss("http://bootstrap.my-cdn.com/style.css", false); - ``` - - -```php -public function addInlineCode( Inline $code ): Manager; -``` -Adds a raw inline code to the manager - - -```php -public function addInlineCodeByType( string $type, Inline $code ): Manager; -``` -Adds an inline code by its type - - -```php -public function addInlineCss( string $content, mixed $filter = bool, mixed $attributes = null ): Manager; -``` -Adds an inline Css to the 'css' collection - - -```php -public function addInlineJs( string $content, mixed $filter = bool, mixed $attributes = null ): Manager; -``` -Adds an inline javascript to the 'js' collection - - -```php -public function addJs( string $path, mixed $local = bool, bool $filter = bool, mixed $attributes = null, string $version = null, bool $autoVersion = bool ): Manager; -``` -Adds a javascript asset to the 'js' collection - -```php -$assets->addJs("scripts/jquery.js"); -$assets->addJs("http://jquery.my-cdn.com/jquery.js", false); -``` - - -```php -public function collection( string $name ): Collection; -``` -Creates/Returns a collection of assets - - -```php -public function collectionAssetsByType( array $assets, string $type ): array; -``` -Creates/Returns a collection of assets by type - - -```php -public function exists( string $id ): bool; -``` -Returns true or false if collection exists. - -```php -if ($assets->exists("jsHeader")) { - // \Phalcon\Assets\Collection - $collection = $assets->get("jsHeader"); -} -``` - - -```php -public function get( string $id ): Collection; -``` -Returns a collection by its id. - -```php -$scripts = $assets->get("js"); -``` - - -```php -public function getCollections(): Collection[]; -``` -Returns existing collections in the manager - - -```php -public function getCss(): Collection; -``` -Returns the CSS collection of assets - - -```php -public function getJs(): Collection; -``` -Returns the CSS collection of assets - - -```php -public function getOptions(): array; -``` -Returns the manager options - - -```php -public function output( Collection $collection, mixed $callback, mixed $type ): string | null; -``` -Traverses a collection calling the callback to generate its HTML - -@param callback callback -@param string type - - -```php -public function outputCss( string $collectionName = null ): string; -``` -Prints the HTML for CSS assets - - -```php -public function outputInline( Collection $collection, mixed $type ): string; -``` -Traverses a collection and generate its HTML - -@param string type - - -```php -public function outputInlineCss( string $collectionName = null ): string; -``` -Prints the HTML for inline CSS - - -```php -public function outputInlineJs( string $collectionName = null ): string; -``` -Prints the HTML for inline JS - - -```php -public function outputJs( string $collectionName = null ): string; -``` -Prints the HTML for JS assets - - -```php -public function set( string $id, Collection $collection ): Manager; -``` -Sets a collection in the Assets Manager - -```php -$assets->set("js", $collection); -``` - - -```php -public function setOptions( array $options ): Manager; -``` -Sets the manager options - - -```php -public function useImplicitOutput( bool $implicitOutput ): Manager; -``` -Sets if the HTML generated must be directly printed or returned - - diff --git a/nikos/api/Phalcon_Cache.md b/nikos/api/Phalcon_Cache.md deleted file mode 100644 index 5e381065bd5..00000000000 --- a/nikos/api/Phalcon_Cache.md +++ /dev/null @@ -1,361 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Cache' ---- - -* [Phalcon\Cache](#cache) -* [Phalcon\Cache\Adapter\AdapterInterface](#cache-adapter-adapterinterface) -* [Phalcon\Cache\Adapter\Apcu](#cache-adapter-apcu) -* [Phalcon\Cache\Adapter\Libmemcached](#cache-adapter-libmemcached) -* [Phalcon\Cache\Adapter\Memory](#cache-adapter-memory) -* [Phalcon\Cache\Adapter\Redis](#cache-adapter-redis) -* [Phalcon\Cache\Adapter\Stream](#cache-adapter-stream) -* [Phalcon\Cache\AdapterFactory](#cache-adapterfactory) -* [Phalcon\Cache\CacheFactory](#cache-cachefactory) -* [Phalcon\Cache\Exception\Exception](#cache-exception-exception) -* [Phalcon\Cache\Exception\InvalidArgumentException](#cache-exception-invalidargumentexception) - -

        Class Phalcon\Cache

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cache.zep) - -| Namespace | Phalcon | -| Uses | Phalcon\Cache\Adapter\AdapterInterface, Phalcon\Cache\Exception\Exception, Phalcon\Cache\Exception\InvalidArgumentException, Psr\SimpleCache\CacheInterface, Traversable | -| Implements | CacheInterface | - -This component offers caching capabilities for your application. -Phalcon\Cache implements PSR-16. - - -## Properties -```php -/** - * The adapter - * - * @var AdapterInterface - */ -protected adapter; - -``` - -## Methods -```php -public function __construct( AdapterInterface $adapter ): void; -``` -Constructor. - -@param AdapterInterface adapter The cache adapter - - -```php -public function clear(): bool; -``` -Wipes clean the entire cache's keys. - -@return bool True on success and false on failure. - - -```php -public function delete( mixed $key ): bool; -``` -Delete an item from the cache by its unique key. - -@param string $key The unique cache key of the item to delete. - -@return bool True if the item was successfully removed. False if there was an error. - -@throws Phalcon\Cache\Exception\InvalidArgumentException - MUST be thrown if the $key string is not a legal value. - - -```php -public function deleteMultiple( mixed $keys ): bool; -``` -Deletes multiple cache items in a single operation. - -@param iterable $keys A list of string-based keys to be deleted. - -@return bool True if the items were successfully removed. False if there was an error. - -@throws Phalcon\Cache\Exception\InvalidArgumentException - MUST be thrown if $keys is neither an array nor a Traversable, - or if any of the $keys are not a legal value. - - -```php -public function get( mixed $key, mixed $defaultValue = null ): mixed; -``` -Fetches a value from the cache. - -@param string $key The unique key of this item in the cache. -@param mixed $default Default value to return if the key does not exist. - -@return mixed The value of the item from the cache, or $default in case of cache miss. - -@throws Phalcon\Cache\Exception\InvalidArgumentException - MUST be thrown if the $key string is not a legal value. - - -```php -public function getAdapter(): AdapterInterface -``` - - -```php -public function getMultiple( mixed $keys, mixed $defaultValue = null ): mixed; -``` -Obtains multiple cache items by their unique keys. - -@param iterable $keys A list of keys that can obtained in a single operation. -@param mixed $default Default value to return for keys that do not exist. - -@return iterable A list of key => value pairs. Cache keys that do not exist or are stale will have $default as value. - -@throws Phalcon\Cache\Exception\InvalidArgumentException - MUST be thrown if $keys is neither an array nor a Traversable, - or if any of the $keys are not a legal value. - - -```php -public function has( mixed $key ): bool; -``` -Determines whether an item is present in the cache. - -@param string $key The cache item key. - -@return bool - -@throws Phalcon\Cache\Exception\InvalidArgumentException - MUST be thrown if the $key string is not a legal value. - - -```php -public function set( mixed $key, mixed $value, mixed $ttl = null ): bool; -``` -Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time. - -@param string $key The key of the item to store. -@param mixed $value The value of the item to store. Must be serializable. -@param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and - the driver supports TTL then the library may set a default value - for it or let the driver take care of that. - -@return bool True on success and false on failure. - -@throws Phalcon\Cache\Exception\InvalidArgumentException - MUST be thrown if the $key string is not a legal value. - - -```php -public function setMultiple( mixed $values, mixed $ttl = null ): bool; -``` -Persists a set of key => value pairs in the cache, with an optional TTL. - -@param iterable $values A list of key => value pairs for a multiple-set operation. -@param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and - the driver supports TTL then the library may set a default value - for it or let the driver take care of that. - -@return bool True on success and false on failure. - -@throws Phalcon\Cache\Exception\InvalidArgumentException - MUST be thrown if $values is neither an array nor a Traversable, - or if any of the $values are not a legal value. - - -```php -protected function checkKey( mixed $key ): void; -``` -Checks the key. If it contains invalid characters an exception is thrown - - -```php -protected function checkKeys( mixed $keys ): void; -``` -Checks the key. If it contains invalid characters an exception is thrown - - - - -

        Interface Phalcon\Cache\Adapter\AdapterInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cache/adapter/adapterinterface.zep) - -| Namespace | Phalcon\Cache\Adapter | -| Uses | Phalcon\Storage\Adapter\AdapterInterface | -| Extends | StorageAdapterInterface | - -Interface for Phalcon\Cache adapters - - - -

        Class Phalcon\Cache\Adapter\Apcu

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cache/adapter/apcu.zep) - -| Namespace | Phalcon\Cache\Adapter | -| Uses | Phalcon\Cache\Adapter\AdapterInterface, Phalcon\Storage\Adapter\Apcu | -| Extends | StorageApcu | -| Implements | CacheAdapterInterface | - -Apcu adapter - - - -

        Class Phalcon\Cache\Adapter\Libmemcached

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cache/adapter/libmemcached.zep) - -| Namespace | Phalcon\Cache\Adapter | -| Uses | Phalcon\Cache\Adapter\AdapterInterface, Phalcon\Storage\Adapter\Libmemcached | -| Extends | StorageLibmemcached | -| Implements | CacheAdapterInterface | - -Libmemcached adapter - - - -

        Class Phalcon\Cache\Adapter\Memory

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cache/adapter/memory.zep) - -| Namespace | Phalcon\Cache\Adapter | -| Uses | Phalcon\Cache\Adapter\AdapterInterface, Phalcon\Storage\Adapter\Memory | -| Extends | StorageMemory | -| Implements | CacheAdapterInterface | - -Memory adapter - - - -

        Class Phalcon\Cache\Adapter\Redis

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cache/adapter/redis.zep) - -| Namespace | Phalcon\Cache\Adapter | -| Uses | Phalcon\Cache\Adapter\AdapterInterface, Phalcon\Storage\Adapter\Redis | -| Extends | StorageRedis | -| Implements | CacheAdapterInterface | - -Redis adapter - - - -

        Class Phalcon\Cache\Adapter\Stream

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cache/adapter/stream.zep) - -| Namespace | Phalcon\Cache\Adapter | -| Uses | Phalcon\Cache\Adapter\AdapterInterface, Phalcon\Storage\Adapter\Stream | -| Extends | StorageStream | -| Implements | CacheAdapterInterface | - -Stream adapter - - - -

        Class Phalcon\Cache\AdapterFactory

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cache/adapterfactory.zep) - -| Namespace | Phalcon\Cache | -| Uses | Phalcon\Cache\Adapter\AbstractAdapter, Phalcon\Cache\Exception\Exception, Phalcon\Factory\AbstractFactory, Phalcon\Storage\SerializerFactory | -| Extends | AbstractFactory | - -Factory to create Cache adapters - - -## Properties -```php -/** - * @var SerializerFactory - */ -private serializerFactory; - -``` - -## Methods -```php -public function __construct( SerializerFactory $factory = null, array $services = [] ); -``` -AdapterFactory constructor. - - -```php -public function newInstance( string $name, array $options = [] ): AbstractAdapter; -``` -Create a new instance of the adapter - - -```php -protected function getAdapters(): array; -``` -Returns the available adapters - - - - -

        Class Phalcon\Cache\CacheFactory

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cache/cachefactory.zep) - -| Namespace | Phalcon\Cache | -| Uses | Phalcon\Cache\Adapter\AdapterInterface, Phalcon\Cache\AdapterFactory, Phalcon\Cache, Phalcon\Cache\CacheInterface, Phalcon\Cache\Exception\Exception, Phalcon\Config, Phalcon\Factory\AbstractFactory, Phalcon\Helper\Arr | - -Creates a new Cache class - - -## Properties -```php -/** - * @var AdapterFactory - */ -protected adapterFactory; - -``` - -## Methods -```php -public function __construct( AdapterFactory $factory ); -``` -Constructor - - -```php -public function load( mixed $config ): mixed; -``` -Factory to create an instace from a Config object - - -```php -public function newInstance( string $name, array $options = [] ): CacheInterface; -``` -Constructs a new Cache instance. - - - - -

        Class Phalcon\Cache\Exception\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cache/exception/exception.zep) - -| Namespace | Phalcon\Cache\Exception | -| Extends | \Phalcon\Exception | -| Implements | \Psr\SimpleCache\CacheException | - -Exceptions thrown in Phalcon\Cache will use this class - - - -

        Class Phalcon\Cache\Exception\InvalidArgumentException

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cache/exception/invalidargumentexception.zep) - -| Namespace | Phalcon\Cache\Exception | -| Extends | \Phalcon\Exception | -| Implements | \Psr\SimpleCache\InvalidArgumentException | - -Exceptions thrown in Phalcon\Cache will use this class - diff --git a/nikos/api/Phalcon_Cli.md b/nikos/api/Phalcon_Cli.md deleted file mode 100644 index 7313b5dadee..00000000000 --- a/nikos/api/Phalcon_Cli.md +++ /dev/null @@ -1,920 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Cli' ---- - -* [Phalcon\Cli\Console](#cli-console) -* [Phalcon\Cli\Console\Exception](#cli-console-exception) -* [Phalcon\Cli\Dispatcher](#cli-dispatcher) -* [Phalcon\Cli\Dispatcher\Exception](#cli-dispatcher-exception) -* [Phalcon\Cli\DispatcherInterface](#cli-dispatcherinterface) -* [Phalcon\Cli\Router](#cli-router) -* [Phalcon\Cli\Router\Exception](#cli-router-exception) -* [Phalcon\Cli\Router\Route](#cli-router-route) -* [Phalcon\Cli\Router\RouteInterface](#cli-router-routeinterface) -* [Phalcon\Cli\RouterInterface](#cli-routerinterface) -* [Phalcon\Cli\Task](#cli-task) -* [Phalcon\Cli\TaskInterface](#cli-taskinterface) - -

        Class Phalcon\Cli\Console

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cli/console.zep) - -| Namespace | Phalcon\Cli | -| Uses | Phalcon\Application\AbstractApplication, Phalcon\Cli\Router\Route, Phalcon\Cli\Console\Exception, Phalcon\Di\DiInterface, Phalcon\Events\ManagerInterface | -| Extends | AbstractApplication | - -This component allows to create CLI applications using Phalcon - - -## Properties -```php -/** - * @var array - */ -protected arguments; - -/** - * @var array - */ -protected options; - -``` - -## Methods -```php -public function handle( array $arguments = null ); -``` -Handle the whole command-line tasks - - -```php -public function setArgument( array $arguments = null, bool $str = bool, bool $shift = bool ): Console; -``` -Set an specific argument - - - - -

        Class Phalcon\Cli\Console\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cli/console/exception.zep) - -| Namespace | Phalcon\Cli\Console | -| Extends | \Phalcon\Application\Exception | - -Exceptions thrown in Phalcon\Cli\Console will use this class - - - -

        Class Phalcon\Cli\Dispatcher

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cli/dispatcher.zep) - -| Namespace | Phalcon\Cli | -| Uses | Phalcon\Cli\Dispatcher\Exception, Phalcon\Dispatcher\AbstractDispatcher, Phalcon\Events\ManagerInterface, Phalcon\Filter\FilterInterface | -| Extends | CliDispatcher | -| Implements | DispatcherInterface | - -Dispatching is the process of taking the command-line arguments, extracting -the module name, task name, action name, and optional parameters contained in -it, and then instantiating a task and calling an action on it. - -```php -use Phalcon\Di; -use Phalcon\Cli\Dispatcher; - -$di = new Di(); - -$dispatcher = new Dispatcher(); - -$dispatcher->setDi($di); - -$dispatcher->setTaskName("posts"); -$dispatcher->setActionName("index"); -$dispatcher->setParams([]); - -$handle = $dispatcher->dispatch(); -``` - - -## Properties -```php -/** - * @var string - */ -protected defaultHandler = main; - -/** - * @var string - */ -protected defaultAction = main; - -/** - * @var string - */ -protected handlerSuffix = Task; - -/** - * @var array - */ -protected options; - -``` - -## Methods -```php -public function callActionMethod( mixed $handler, string $actionMethod, array $params = [] ): mixed; -``` -Calls the action method. - - -```php -public function getActiveTask(): TaskInterface; -``` -Returns the active task in the dispatcher - - -```php -public function getLastTask(): TaskInterface; -``` -Returns the latest dispatched controller - - -```php -public function getOption( mixed $option, mixed $filters = null, mixed $defaultValue = null ): mixed; -``` -Gets an option by its name or numeric index - -@param mixed $option -@param string|array $filters -@param mixed $defaultValue - - -```php -public function getOptions(): array; -``` -Get dispatched options - - -```php -public function getTaskName(): string; -``` -Gets last dispatched task name - - -```php -public function getTaskSuffix(): string; -``` -Gets the default task suffix - - -```php -public function hasOption( mixed $option ): bool; -``` -Check if an option exists - - -```php -public function setDefaultTask( string $taskName ): void; -``` -Sets the default task name - - -```php -public function setOptions( array $options ): void; -``` -Set the options to be dispatched - - -```php -public function setTaskName( string $taskName ): void; -``` -Sets the task name to be dispatched - - -```php -public function setTaskSuffix( string $taskSuffix ): void; -``` -Sets the default task suffix - - -```php -protected function handleException( \Exception $exception ); -``` -Handles a user exception - - -```php -protected function throwDispatchException( string $message, int $exceptionCode = int ); -``` -Throws an internal exception - - - - -

        Class Phalcon\Cli\Dispatcher\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cli/dispatcher/exception.zep) - -| Namespace | Phalcon\Cli\Dispatcher | -| Extends | \Phalcon\Dispatcher\Exception | - -Exceptions thrown in Phalcon\Cli\Dispatcher will use this class - - - -

        Interface Phalcon\Cli\DispatcherInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cli/dispatcherinterface.zep) - -| Namespace | Phalcon\Cli | -| Uses | Phalcon\Dispatcher\DispatcherInterface | -| Extends | DispatcherInterfaceBase | - -Interface for Phalcon\Cli\Dispatcher - - -## Methods -```php -public function getActiveTask(): TaskInterface; -``` -Returns the active task in the dispatcher - - -```php -public function getLastTask(): TaskInterface; -``` -Returns the latest dispatched controller - - -```php -public function getOptions(): array; -``` -Get dispatched options - - -```php -public function getTaskName(): string; -``` -Gets last dispatched task name - - -```php -public function getTaskSuffix(): string; -``` -Gets default task suffix - - -```php -public function setDefaultTask( string $taskName ): void; -``` -Sets the default task name - - -```php -public function setOptions( array $options ): void; -``` -Set the options to be dispatched - - -```php -public function setTaskName( string $taskName ): void; -``` -Sets the task name to be dispatched - - -```php -public function setTaskSuffix( string $taskSuffix ): void; -``` -Sets the default task suffix - - - - -

        Class Phalcon\Cli\Router

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cli/router.zep) - -| Namespace | Phalcon\Cli | -| Uses | Phalcon\Di\DiInterface, Phalcon\Di\AbstractInjectionAware, Phalcon\Cli\Router\Route, Phalcon\Cli\Router\Exception | -| Extends | AbstractInjectionAware | - -Phalcon\Cli\Router is the standard framework router. Routing is the process -of taking a command-line arguments and decomposing it into parameters to -determine which module, task, and action of that task should receive the -request. - -```php -$router = new \Phalcon\Cli\Router(); - -$router->handle( - [ - "module" => "main", - "task" => "videos", - "action" => "process", - ] -); - -echo $router->getTaskName(); -``` - - -## Properties -```php -// -protected action; - -// -protected defaultAction; - -// -protected defaultModule; - -/** - * @var array - */ -protected defaultParams; - -// -protected defaultTask; - -// -protected matchedRoute; - -// -protected matches; - -// -protected module; - -/** - * @var array - */ -protected params; - -// -protected routes; - -// -protected task; - -// -protected wasMatched = false; - -``` - -## Methods -```php -public function __construct( bool $defaultRoutes = bool ): void; -``` -Phalcon\Cli\Router constructor - - -```php -public function add( string $pattern, mixed $paths = null ): RouteInterface; -``` -Adds a route to the router - -```php -$router->add("/about", "About::main"); -``` - -@param string|array paths - - -```php -public function getActionName(): string; -``` -Returns processed action name - - -```php -public function getMatchedRoute(): RouteInterface; -``` -Returns the route that matches the handled URI - - -```php -public function getMatches(): array; -``` -Returns the sub expressions in the regular expression matched - - -```php -public function getModuleName(): string; -``` -Returns processed module name - - -```php -public function getParams(): array; -``` -Returns processed extra params - - -```php -public function getRouteById( mixed $id ): RouteInterface | bool; -``` -Returns a route object by its id - -@param int id - - -```php -public function getRouteByName( string $name ): RouteInterface | bool; -``` -Returns a route object by its name - - -```php -public function getRoutes(): Route[]; -``` -Returns all the routes defined in the router - - -```php -public function getTaskName(): string; -``` -Returns processed task name - - -```php -public function handle( mixed $arguments = null ); -``` -Handles routing information received from command-line arguments - -@param array arguments - - -```php -public function setDefaultAction( string $actionName ); -``` -Sets the default action name - - -```php -public function setDefaultModule( string $moduleName ); -``` -Sets the name of the default module - - -```php -public function setDefaultTask( string $taskName ): void; -``` -Sets the default controller name - - -```php -public function setDefaults( array $defaults ): Router; -``` -Sets an array of default paths. If a route is missing a path the router -will use the defined here. This method must not be used to set a 404 -route - -```php -$router->setDefaults( - [ - "module" => "common", - "action" => "index", - ] -); -``` - - -```php -public function wasMatched(): bool; -``` -Checks if the router matches any of the defined routes - - - - -

        Class Phalcon\Cli\Router\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cli/router/exception.zep) - -| Namespace | Phalcon\Cli\Router | -| Extends | \Phalcon\Exception | - -Exceptions thrown in Phalcon\Cli\Router will use this class - - - -

        Class Phalcon\Cli\Router\Route

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cli/router/route.zep) - -| Namespace | Phalcon\Cli\Router | - -This class represents every route added to the router - - -## Constants -```php -const DEFAULT_DELIMITER = ; -``` - -## Properties -```php -// -protected beforeMatch; - -// -protected compiledPattern; - -// -protected converters; - -// -protected delimiter; - -// -protected static delimiterPath; - -// -protected description; - -// -protected id; - -// -protected name; - -// -protected paths; - -// -protected pattern; - -// -protected static uniqueId = 0; - -``` - -## Methods -```php -public function __construct( string $pattern, mixed $paths = null ): void; -``` -@param array|string paths - - -```php -public function beforeMatch( mixed $callback ): RouteInterface; -``` -Sets a callback that is called if the route is matched. -The developer can implement any arbitrary conditions here -If the callback returns false the route is treated as not matched - -@param callback callback - - -```php -public function compilePattern( string $pattern ): string; -``` -Replaces placeholders from pattern returning a valid PCRE regular -expression - - -```php -public function convert( string $name, mixed $converter ): RouteInterface; -``` -Adds a converter to perform an additional transformation for certain -parameter - -@param callable converter - - -```php -public function extractNamedParams( string $pattern ): array | bool; -``` -Extracts parameters from a string - - -```php -public function getBeforeMatch(): mixed; -``` -Returns the 'before match' callback if any - - -```php -public function getCompiledPattern(): string; -``` -Returns the route's compiled pattern - - -```php -public function getConverters(): array; -``` -Returns the router converter - - -```php -public function getDescription(): string; -``` -Returns the route's description - - -```php -public function getName(): string; -``` -Returns the route's name - - -```php -public function getPaths(): array; -``` -Returns the paths - - -```php -public function getPattern(): string; -``` -Returns the route's pattern - - -```php -public function getReversedPaths(): array; -``` -Returns the paths using positions as keys and names as values - - -```php -public function getRouteId(): string; -``` -Returns the route's id - - -```php -public function reConfigure( string $pattern, mixed $paths = null ): void; -``` -Reconfigure the route adding a new pattern and a set of paths - -@param array|string paths - - -```php -public function setDescription( string $description ): RouteInterface; -``` -Sets the route's description - - -```php -public function setName( string $name ): RouteInterface; -``` -Sets the route's name - -```php -$router->add( - "/about", - [ - "controller" => "about", - ] -)->setName("about"); -``` - - - - -

        Interface Phalcon\Cli\Router\RouteInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cli/router/routeinterface.zep) - -| Namespace | Phalcon\Cli\Router | - -Interface for Phalcon\Cli\Router\Route - - -## Methods -```php -public function compilePattern( string $pattern ): string; -``` -Replaces placeholders from pattern returning a valid PCRE regular -expression - - -```php -public function getCompiledPattern(): string; -``` -Returns the route's pattern - - -```php -public function getDescription(): string; -``` -Returns the route's description - - -```php -public function getName(): string; -``` -Returns the route's name - - -```php -public function getPaths(): array; -``` -Returns the paths - - -```php -public function getPattern(): string; -``` -Returns the route's pattern - - -```php -public function getReversedPaths(): array; -``` -Returns the paths using positions as keys and names as values - - -```php -public function getRouteId(): string; -``` -Returns the route's id - - -```php -public function reConfigure( string $pattern, mixed $paths = null ): void; -``` -Reconfigure the route adding a new pattern and a set of paths - - -```php -public function setDescription( string $description ): RouteInterface; -``` -Sets the route's description - - -```php -public function setName( string $name ): RouteInterface; -``` -Sets the route's name - - - - -

        Interface Phalcon\Cli\RouterInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cli/routerinterface.zep) - -| Namespace | Phalcon\Cli | -| Uses | Phalcon\Cli\Router\RouteInterface | - -Interface for Phalcon\Cli\Router - - -## Methods -```php -public function add( string $pattern, mixed $paths = null ): RouteInterface; -``` -Adds a route to the router on any HTTP method - - -```php -public function getActionName(): string; -``` -Returns processed action name - - -```php -public function getMatchedRoute(): RouteInterface; -``` -Returns the route that matches the handled URI - - -```php -public function getMatches(): array; -``` -Return the sub expressions in the regular expression matched - - -```php -public function getModuleName(): string; -``` -Returns processed module name - - -```php -public function getParams(): array; -``` -Returns processed extra params - - -```php -public function getRouteById( mixed $id ): RouteInterface; -``` -Returns a route object by its id - - -```php -public function getRouteByName( string $name ): RouteInterface; -``` -Returns a route object by its name - - -```php -public function getRoutes(): RouteInterface[]; -``` -Return all the routes defined in the router - - -```php -public function getTaskName(): string; -``` -Returns processed task name - - -```php -public function handle( mixed $arguments = null ); -``` -Handles routing information received from the rewrite engine - -@param array arguments - - -```php -public function setDefaultAction( string $actionName ): void; -``` -Sets the default action name - - -```php -public function setDefaultModule( string $moduleName ): void; -``` -Sets the name of the default module - - -```php -public function setDefaultTask( string $taskName ): void; -``` -Sets the default task name - - -```php -public function setDefaults( array $defaults ): void; -``` -Sets an array of default paths - - -```php -public function wasMatched(): bool; -``` -Check if the router matches any of the defined routes - - - - -

        Class Phalcon\Cli\Task

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cli/task.zep) - -| Namespace | Phalcon\Cli | -| Uses | Phalcon\Di\Injectable | -| Extends | Injectable | -| Implements | TaskInterface | - -Every command-line task should extend this class that encapsulates all the -task functionality - -A task can be used to run "tasks" such as migrations, cronjobs, unit-tests, -or anything that you want. The Task class should at least have a "mainAction" -method. - -```php -class HelloTask extends \Phalcon\Cli\Task -{ - // This action will be executed by default - public function mainAction() - { - - } - - public function findAction() - { - - } -} -``` - - -## Methods -```php -final public function __construct(): void; -``` -Phalcon\Cli\Task constructor - - - - -

        Interface Phalcon\Cli\TaskInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/cli/taskinterface.zep) - -| Namespace | Phalcon\Cli | - -Interface for task handlers - diff --git a/nikos/api/Phalcon_Collection.md b/nikos/api/Phalcon_Collection.md deleted file mode 100644 index 9075b104f50..00000000000 --- a/nikos/api/Phalcon_Collection.md +++ /dev/null @@ -1,238 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Collection' ---- - -* [Phalcon\Collection](#collection) -* [Phalcon\Collection\Exception](#collection-exception) -* [Phalcon\Collection\ReadOnly](#collection-readonly) - -

        Class Phalcon\Collection

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/collection.zep) - -| Namespace | Phalcon | -| Uses | ArrayAccess, ArrayIterator, Countable, IteratorAggregate, JsonSerializable, Serializable, Traversable | -| Implements | ArrayAccess, Countable, IteratorAggregate, JsonSerializable, Serializable | - -`Phalcon\Collection` is a supercharged object oriented array. It implements [ArrayAccess](https://www.php.net/manual/en/class.arrayaccess.php), [Countable](https://www.php.net/manual/en/class.countable.php), [IteratorAggregate](https://www.php.net/manual/en/class.iteratoraggregate.php), [JsonSerializable](https://www.php.net/manual/en/class.jsonserializable.php), [Serializable](https://www.php.net/manual/en/class.serializable.php) - -It can be used in any part of the application that needs collection of data -Such implementations are for instance accessing globals `$_GET`, `$_POST` -etc. - - -## Properties -```php -/** - * @var array - */ -protected data; - -/** - * @var bool - */ -protected insensitive = true; - -/** - * @var array - */ -protected lowerKeys; - -``` - -## Methods -```php -public function __construct( array $data = [], bool $insensitive = bool ); -``` -Collection constructor. - - -```php -public function __get( string $element ): mixed; -``` -Magic getter to get an element from the collection - - -```php -public function __isset( string $element ): bool; -``` -Magic isset to check whether an element exists or not - - -```php -public function __set( string $element, mixed $value ): void; -``` -Magic setter to assign values to an element - - -```php -public function __unset( string $element ): void; -``` -Magic unset to remove an element from the collection - - -```php -public function clear(): void; -``` -Clears the internal collection - - -```php -public function count(): int; -``` -Count elements of an object. -See [count](https://php.net/manual/en/countable.count.php) - - -```php -public function get( string $element, mixed $defaultValue = null ): mixed; -``` -Get the element from the collection - - -```php -public function getIterator(): Traversable; -``` -Returns the iterator of the class - - -```php -public function has( string $element ): bool; -``` -Get the element from the collection - - -```php -public function init( array $data = [] ): void; -``` -Initialize internal array - - -```php -public function jsonSerialize(): array; -``` -Specify data which should be serialized to JSON -See [jsonSerialize](https://php.net/manual/en/jsonserializable.jsonserialize.php) - - -```php -public function offsetExists( mixed $element ): bool; -``` -Whether a offset exists -See [offsetExists](https://php.net/manual/en/arrayaccess.offsetexists.php) - - -```php -public function offsetGet( mixed $element ); -``` -Offset to retrieve -See [offsetGet](https://php.net/manual/en/arrayaccess.offsetget.php) - - -```php -public function offsetSet( mixed $element, mixed $value ): void; -``` -Offset to set -See [offsetSet](https://php.net/manual/en/arrayaccess.offsetset.php) - - -```php -public function offsetUnset( mixed $element ): void; -``` -Offset to unset -See [offsetUnset](https://php.net/manual/en/arrayaccess.offsetunset.php) - - -```php -public function remove( string $element ): void; -``` -Delete the element from the collection - - -```php -public function serialize(): string; -``` -String representation of object -See [serialize](https://php.net/manual/en/serializable.serialize.php) - - -```php -public function set( string $element, mixed $value ): void; -``` -Set an element in the collection - - -```php -public function toArray(): array; -``` -Returns the object in an array format - - -```php -public function toJson( int $options = int ): string; -``` -Returns the object in a JSON format - -The default string uses the following options for json_encode - -`JSON_HEX_TAG`, `JSON_HEX_APOS`, `JSON_HEX_AMP`, `JSON_HEX_QUOT`, -`JSON_UNESCAPED_SLASHES` - -See [rfc4627](https://www.ietf.org/rfc/rfc4627.txt) - - -```php -public function unserialize( mixed $serialized ): void; -``` -Constructs the object -See [unserialize](https://php.net/manual/en/serializable.unserialize.php) - - -```php -protected function setData( string $element, mixed $value ): void; -``` -Internal method to set data - - - - -

        Class Phalcon\Collection\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/collection/exception.zep) - -| Namespace | Phalcon\Collection | -| Uses | Throwable | -| Extends | \Phalcon\Exception | -| Implements | Throwable | - -Exceptions for the Collection object - - - -

        Class Phalcon\Collection\ReadOnly

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/collection/readonly.zep) - -| Namespace | Phalcon\Collection | -| Uses | Phalcon\Collection, Phalcon\Collection\Exception | -| Extends | Collection | - -Phalcon\Collection\ReadOnly is a read only Collection object - - -## Methods -```php -public function remove( string $element ): void; -``` -Delete the element from the collection - - -```php -public function set( string $element, mixed $value ): void; -``` -Set an element in the collection - - diff --git a/nikos/api/Phalcon_Config.md b/nikos/api/Phalcon_Config.md deleted file mode 100644 index ce767e94cb9..00000000000 --- a/nikos/api/Phalcon_Config.md +++ /dev/null @@ -1,474 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Config' ---- - -* [Phalcon\Config](#config) -* [Phalcon\Config\Adapter\Grouped](#config-adapter-grouped) -* [Phalcon\Config\Adapter\Ini](#config-adapter-ini) -* [Phalcon\Config\Adapter\Json](#config-adapter-json) -* [Phalcon\Config\Adapter\Php](#config-adapter-php) -* [Phalcon\Config\Adapter\Yaml](#config-adapter-yaml) -* [Phalcon\Config\ConfigFactory](#config-configfactory) -* [Phalcon\Config\Exception](#config-exception) - -

        Class Phalcon\Config

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/config.zep) - -| Namespace | Phalcon | -| Uses | Phalcon\Collection, Phalcon\Config\Exception | -| Extends | Collection | - -`Phalcon\Config` is designed to simplify the access to, and the use of, -configuration data within applications. It provides a nested object property -based user interface for accessing this configuration data within application -code. - -```php -$config = new \Phalcon\Config( - [ - "database" => [ - "adapter" => "Mysql", - "host" => "localhost", - "username" => "scott", - "password" => "cheetah", - "dbname" => "test_db", - ], - "phalcon" => [ - "controllersDir" => "../app/controllers/", - "modelsDir" => "../app/models/", - "viewsDir" => "../app/views/", - ], - ] -); -``` - - -## Constants -```php -const DEFAULT_PATH_DELIMITER = .; -``` - -## Properties -```php -/** - * @var string - */ -protected pathDelimiter; - -``` - -## Methods -```php -public function getPathDelimiter(): string; -``` -Gets the default path delimiter - -@return string - - -```php -public function merge( mixed $toMerge ): Config; -``` -Merges a configuration into the current one - -```php -$appConfig = new \Phalcon\Config( - [ - "database" => [ - "host" => "localhost", - ], - ] -); - -$globalConfig->merge($appConfig); -``` - - -```php -public function path( string $path, mixed $defaultValue = null, mixed $delimiter = null ); -``` -Returns a value from current config using a dot separated path. - -```php -echo $config->path("unknown.path", "default", "."); -``` - - -```php -public function setPathDelimiter( string $delimiter = null ): Config; -``` -Sets the default path delimiter - - -```php -public function toArray(): array; -``` -Converts recursively the object to an array - -```php -print_r( - $config->toArray() -); -``` - - -```php -final protected function internalMerge( array $source, array $target ): array; -``` -Performs a merge recursively - - -```php -protected function setData( mixed $element, mixed $value ): void; -``` -Sets the collection data - - - - -

        Class Phalcon\Config\Adapter\Grouped

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/config/adapter/grouped.zep) - -| Namespace | Phalcon\Config\Adapter | -| Uses | Phalcon\Config, Phalcon\Config\Exception, Phalcon\Factory\Exception, Phalcon\Config\ConfigFactory | -| Extends | Config | - -Reads multiple files (or arrays) and merges them all together. - -See `Phalcon\Config\Factory::load` To load Config Adapter class using 'adapter' option. - -```php -use Phalcon\Config\Adapter\Grouped; - -$config = new Grouped( - [ - "path/to/config.php", - "path/to/config.dist.php", - ] -); -``` - -```php -use Phalcon\Config\Adapter\Grouped; - -$config = new Grouped( - [ - "path/to/config.json", - "path/to/config.dist.json", - ], - "json" -); -``` - -```php -use Phalcon\Config\Adapter\Grouped; - -$config = new Grouped( - [ - [ - "filePath" => "path/to/config.php", - "adapter" => "php", - ], - [ - "filePath" => "path/to/config.json", - "adapter" => "json", - ], - [ - "adapter" => "array", - "config" => [ - "property" => "value", - ], - ], - ], -); -``` - - -## Methods -```php -public function __construct( array $arrayConfig, string $defaultAdapter = string ); -``` -Phalcon\Config\Adapter\Grouped constructor - - - - -

        Class Phalcon\Config\Adapter\Ini

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/config/adapter/ini.zep) - -| Namespace | Phalcon\Config\Adapter | -| Uses | Phalcon\Config, Phalcon\Config\Exception | -| Extends | Config | - -Reads ini files and converts them to Phalcon\Config objects. - -Given the next configuration file: - -```ini -[database] -adapter = Mysql -host = localhost -username = scott -password = cheetah -dbname = test_db - -[phalcon] -controllersDir = "../app/controllers/" -modelsDir = "../app/models/" -viewsDir = "../app/views/" -``` - -You can read it as follows: - -```php -use Phalcon\Config\Adapter\Ini; - -$config = new Ini("path/config.ini"); - -echo $config->phalcon->controllersDir; -echo $config->database->username; -``` - -PHP constants may also be parsed in the ini file, so if you define a constant -as an ini value before calling the constructor, the constant's value will be -integrated into the results. To use it this way you must specify the optional -second parameter as `INI_SCANNER_NORMAL` when calling the constructor: - -```php -$config = new \Phalcon\Config\Adapter\Ini( - "path/config-with-constants.ini", - INI_SCANNER_NORMAL -); -``` - - -## Methods -```php -public function __construct( string $filePath, mixed $mode = null ): void; -``` -Ini constructor. - - -```php -protected function cast( mixed $ini ): bool | null | double | int | string; -``` -We have to cast values manually because parse_ini_file() has a poor -implementation. - - -```php -protected function parseIniString( string $path, mixed $value ): array; -``` -Build multidimensional array from string - - - - -

        Class Phalcon\Config\Adapter\Json

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/config/adapter/json.zep) - -| Namespace | Phalcon\Config\Adapter | -| Uses | Phalcon\Config | -| Extends | Config | - -Reads JSON files and converts them to Phalcon\Config objects. - -Given the following configuration file: - -```json -{"phalcon":{"baseuri":"\/phalcon\/"},"models":{"metadata":"memory"}} -``` - -You can read it as follows: - -```php -use Phalcon\Config\Adapter\Json; - -$config = new Json("path/config.json"); - -echo $config->phalcon->baseuri; -echo $config->models->metadata; -``` - - -## Methods -```php -public function __construct( string $filePath ): void; -``` -Phalcon\Config\Adapter\Json constructor - - - - -

        Class Phalcon\Config\Adapter\Php

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/config/adapter/php.zep) - -| Namespace | Phalcon\Config\Adapter | -| Uses | Phalcon\Config | -| Extends | Config | - -Reads php files and converts them to Phalcon\Config objects. - -Given the next configuration file: - -```php - [ - "adapter" => "Mysql", - "host" => "localhost", - "username" => "scott", - "password" => "cheetah", - "dbname" => "test_db", - ], - "phalcon" => [ - "controllersDir" => "../app/controllers/", - "modelsDir" => "../app/models/", - "viewsDir" => "../app/views/", - ], -]; -``` - -You can read it as follows: - -```php -use Phalcon\Config\Adapter\Php; - -$config = new Php("path/config.php"); - -echo $config->phalcon->controllersDir; -echo $config->database->username; -``` - - -## Methods -```php -public function __construct( string $filePath ): void; -``` -Phalcon\Config\Adapter\Php constructor - - - - -

        Class Phalcon\Config\Adapter\Yaml

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/config/adapter/yaml.zep) - -| Namespace | Phalcon\Config\Adapter | -| Uses | Phalcon\Config, Phalcon\Config\Exception | -| Extends | Config | - -Reads YAML files and converts them to Phalcon\Config objects. - -Given the following configuration file: - -```yaml -phalcon: - baseuri: /phalcon/ - controllersDir: !approot /app/controllers/ -models: - metadata: memory -``` - -You can read it as follows: - -```php -define( - "APPROOT", - dirname(__DIR__) -); - -use Phalcon\Config\Adapter\Yaml; - -$config = new Yaml( - "path/config.yaml", - [ - "!approot" => function($value) { - return APPROOT . $value; - }, - ] -); - -echo $config->phalcon->controllersDir; -echo $config->phalcon->baseuri; -echo $config->models->metadata; -``` - - -## Methods -```php -public function __construct( string $filePath, array $callbacks = null ): void; -``` -Phalcon\Config\Adapter\Yaml constructor - - - - -

        Class Phalcon\Config\ConfigFactory

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/config/configfactory.zep) - -| Namespace | Phalcon\Config | -| Uses | Phalcon\Config, Phalcon\Config\Adapter\Grouped, Phalcon\Config\Adapter\Ini, Phalcon\Config\Adapter\Json, Phalcon\Config\Adapter\Php, Phalcon\Config\Adapter\Yaml, Phalcon\Config\Exception, Phalcon\Factory\AbstractFactory, Phalcon\Factory\Exception, Phalcon\Helper\Arr | -| Extends | AbstractFactory | - -Loads Config Adapter class using 'adapter' option, if no extension is -provided it will be added to filePath - -```php -use Phalcon\Config\ConfigFactory; - -$options = [ - "filePath" => "path/config", - "adapter" => "php", -]; - -$config = (new ConfigFactory())->load($options); -``` - - -## Methods -```php -public function __construct( array $services = [] ); -``` -ConfigFactory constructor. - - -```php -public function load( mixed $config ): object; -``` -Load a config to create a new instance - - -```php -public function newInstance( string $name, string $fileName, mixed $params = null ): object; -``` -Returns a new Config instance - - -```php -protected function getAdapters(): array; -``` -Returns the adapters for the factory - - - - -

        Class Phalcon\Config\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/config/exception.zep) - -| Namespace | Phalcon\Config | -| Extends | \Phalcon\Exception | - -Exceptions thrown in Phalcon\Config will use this class - diff --git a/nikos/api/Phalcon_Container.md b/nikos/api/Phalcon_Container.md deleted file mode 100644 index 9dd6851475a..00000000000 --- a/nikos/api/Phalcon_Container.md +++ /dev/null @@ -1,48 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Container' ---- - -* [Phalcon\Container](#container) - -

        Class Phalcon\Container

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/container.zep) - -| Namespace | Phalcon | -| Uses | Psr\Container\ContainerInterface, Phalcon\Di\DiInterface | -| Implements | ContainerInterface | - -PSR-11 Wrapper for `Phalcon\Di` - - -## Properties -```php -/** - * @var - */ -protected container; - -``` - -## Methods -```php -public function __construct( DiInterface $container ): void; -``` -Phalcon\Container constructor - - -```php -public function get( mixed $name ): mixed; -``` -Return the service - - -```php -public function has( mixed $name ): bool; -``` -Whether a service exists or not in the container - - diff --git a/nikos/api/Phalcon_Crypt.md b/nikos/api/Phalcon_Crypt.md deleted file mode 100644 index f9093d68881..00000000000 --- a/nikos/api/Phalcon_Crypt.md +++ /dev/null @@ -1,434 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Crypt' ---- - -* [Phalcon\Crypt](#crypt) -* [Phalcon\Crypt\CryptInterface](#crypt-cryptinterface) -* [Phalcon\Crypt\Exception](#crypt-exception) -* [Phalcon\Crypt\Mismatch](#crypt-mismatch) - -

        Class Phalcon\Crypt

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/crypt.zep) - -| Namespace | Phalcon | -| Uses | Phalcon\Crypt\CryptInterface, Phalcon\Crypt\Exception, Phalcon\Crypt\Mismatch | -| Implements | CryptInterface | - -Provides encryption capabilities to Phalcon applications. - -```php -use Phalcon\Crypt; - -$crypt = new Crypt(); - -$crypt->setCipher('aes-256-ctr'); - -$key = "T4\xb1\x8d\xa9\x98\x05\\\x8c\xbe\x1d\x07&[\x99\x18\xa4~Lc1\xbeW\xb3"; -$text = "The message to be encrypted"; - -$encrypted = $crypt->encrypt($text, $key); - -echo $crypt->decrypt($encrypted, $key); -``` - - -## Constants -```php -const PADDING_ANSI_X_923 = 1; -const PADDING_DEFAULT = 0; -const PADDING_ISO_10126 = 3; -const PADDING_ISO_IEC_7816_4 = 4; -const PADDING_PKCS7 = 2; -const PADDING_SPACE = 6; -const PADDING_ZERO = 5; -``` - -## Properties -```php -/** - * @var string - */ -protected authTag; - -/** - * @var string - */ -protected authData = ; - -/** - * @var int - */ -protected authTagLength = 16; - -/** - * @var string - */ -protected key; - -/** - * @var int - */ -protected padding = 0; - -/** - * @var string - */ -protected cipher = aes-256-cfb; - -/** - * Available cipher methods. - * @var array - */ -protected availableCiphers; - -/** - * The cipher iv length. - * @var int - */ -protected ivLength = 16; - -/** - * The name of hashing algorithm. - * @var string - */ -protected hashAlgo = sha256; - -/** - * Whether calculating message digest enabled or not. - * - * @var bool - */ -protected useSigning = true; - -``` - -## Methods -```php -public function __construct( string $cipher = string, bool $useSigning = bool ): void; -``` -Phalcon\Crypt constructor. - - -```php -public function decrypt( string $text, string $key = null ): string; -``` -Decrypts an encrypted text. - -```php -$encrypted = $crypt->decrypt( - $encrypted, - "T4\xb1\x8d\xa9\x98\x05\\\x8c\xbe\x1d\x07&[\x99\x18\xa4~Lc1\xbeW\xb3" -); -``` - - -```php -public function decryptBase64( string $text, mixed $key = null, bool $safe = bool ): string; -``` -Decrypt a text that is coded as a base64 string. - -@throws \Phalcon\Crypt\Mismatch - - -```php -public function encrypt( string $text, string $key = null ): string; -``` -Encrypts a text. - -```php -$encrypted = $crypt->encrypt( - "Top secret", - "T4\xb1\x8d\xa9\x98\x05\\\x8c\xbe\x1d\x07&[\x99\x18\xa4~Lc1\xbeW\xb3" -); -``` - - -```php -public function encryptBase64( string $text, mixed $key = null, bool $safe = bool ): string; -``` -Encrypts a text returning the result as a base64 string. - - -```php -public function getAuthData(): string -``` - - -```php -public function getAuthTag(): string -``` - - -```php -public function getAuthTagLength(): int -``` - - -```php -public function getAvailableCiphers(): array; -``` -Returns a list of available ciphers. - - -```php -public function getAvailableHashAlgos(): array; -``` -Return a list of registered hashing algorithms suitable for hash_hmac. - - -```php -public function getCipher(): string; -``` -Returns the current cipher - - -```php -public function getHashAlgo(): string; -``` -Get the name of hashing algorithm. - - -```php -public function getKey(): string; -``` -Returns the encryption key - - -```php -public function setAuthData( string $data ): CryptInterface; -``` -// - -```php -public function setAuthTag( string $tag ): CryptInterface; -``` -// - -```php -public function setAuthTagLength( int $length ): CryptInterface; -``` -// - -```php -public function setCipher( string $cipher ): CryptInterface; -``` -Sets the cipher algorithm for data encryption and decryption. - -The `aes-256-gcm' is the preferable cipher, but it is not usable -until the openssl library is upgraded, which is available in PHP 7.1. - -The `aes-256-ctr' is arguably the best choice for cipher -algorithm for current openssl library version. - - -```php -public function setHashAlgo( string $hashAlgo ): CryptInterface; -``` -Set the name of hashing algorithm. - -@throws \Phalcon\Crypt\Exception - - -```php -public function setKey( string $key ): CryptInterface; -``` -Sets the encryption key. - -The `$key' should have been previously generated in a cryptographically -safe way. - -Bad key: -"le password" - -Better (but still unsafe): -"#1dj8$=dp?.ak//j1V$~%*0X" - -Good key: -"T4\xb1\x8d\xa9\x98\x05\\\x8c\xbe\x1d\x07&[\x99\x18\xa4~Lc1\xbeW\xb3" - - -```php -public function setPadding( int $scheme ): CryptInterface; -``` -Changes the padding scheme used. - - -```php -public function useSigning( bool $useSigning ): CryptInterface; -``` -Sets if the calculating message digest must used. - - -```php -protected function assertCipherIsAvailable( string $cipher ): void; -``` -Assert the cipher is available. - - -```php -protected function assertHashAlgorithmAvailable( string $hashAlgo ): void; -``` -Assert the hash algorithm is available. - - -```php -protected function cryptPadText( string $text, string $mode, int $blockSize, int $paddingType ): string; -``` -Pads texts before encryption. See [cryptopad](http://www.di-mgt.com.au/cryptopad.html) - - -```php -protected function cryptUnpadText( string $text, string $mode, int $blockSize, int $paddingType ); -``` -Removes a padding from a text. - -If the function detects that the text was not padded, it will return it -unmodified. - - -```php -protected function getIvLength( string $cipher ): int; -``` -Initialize available cipher algorithms. - - -```php -protected function initializeAvailableCiphers(): void; -``` -Initialize available cipher algorithms. - - - - -

        Interface Phalcon\Crypt\CryptInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/crypt/cryptinterface.zep) - -| Namespace | Phalcon\Crypt | - -Interface for Phalcon\Crypt - - -## Methods -```php -public function decrypt( string $text, string $key = null ): string; -``` -Decrypts a text - - -```php -public function decryptBase64( string $text, mixed $key = null ): string; -``` -Decrypt a text that is coded as a base64 string - - -```php -public function encrypt( string $text, string $key = null ): string; -``` -Encrypts a text - - -```php -public function encryptBase64( string $text, mixed $key = null ): string; -``` -Encrypts a text returning the result as a base64 string - - -```php -public function getAuthData(): string; -``` -Returns authentication data - - -```php -public function getAuthTag(): string; -``` -Returns the authentication tag - - -```php -public function getAuthTagLength(): int; -``` -Returns the authentication tag length - - -```php -public function getAvailableCiphers(): array; -``` -Returns a list of available cyphers - - -```php -public function getCipher(): string; -``` -Returns the current cipher - - -```php -public function getKey(): string; -``` -Returns the encryption key - - -```php -public function setAuthData( string $data ): CryptInterface; -``` -Sets authentication data - - -```php -public function setAuthTag( string $tag ): CryptInterface; -``` -Sets the authentication tag - - -```php -public function setAuthTagLength( int $length ): CryptInterface; -``` -Sets the authentication tag length - - -```php -public function setCipher( string $cipher ): CryptInterface; -``` -Sets the cipher algorithm - - -```php -public function setKey( string $key ): CryptInterface; -``` -Sets the encryption key - - -```php -public function setPadding( int $scheme ): CryptInterface; -``` -Changes the padding scheme used. - - - - -

        Class Phalcon\Crypt\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/crypt/exception.zep) - -| Namespace | Phalcon\Crypt | -| Extends | \Phalcon\Exception | - -Exceptions thrown in Phalcon\Crypt use this class - - - -

        Class Phalcon\Crypt\Mismatch

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/crypt/mismatch.zep) - -| Namespace | Phalcon\Crypt | -| Extends | Exception | - -Exceptions thrown in Phalcon\Crypt will use this class. - diff --git a/nikos/api/Phalcon_Db.md b/nikos/api/Phalcon_Db.md deleted file mode 100644 index 4e2730f6193..00000000000 --- a/nikos/api/Phalcon_Db.md +++ /dev/null @@ -1,4292 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Db' ---- - -* [Phalcon\Db\AbstractDb](#db-abstractdb) -* [Phalcon\Db\Adapter\AbstractAdapter](#db-adapter-abstractadapter) -* [Phalcon\Db\Adapter\AdapterInterface](#db-adapter-adapterinterface) -* [Phalcon\Db\Adapter\Pdo\AbstractPdo](#db-adapter-pdo-abstractpdo) -* [Phalcon\Db\Adapter\Pdo\Mysql](#db-adapter-pdo-mysql) -* [Phalcon\Db\Adapter\Pdo\Postgresql](#db-adapter-pdo-postgresql) -* [Phalcon\Db\Adapter\Pdo\Sqlite](#db-adapter-pdo-sqlite) -* [Phalcon\Db\Adapter\PdoFactory](#db-adapter-pdofactory) -* [Phalcon\Db\Column](#db-column) -* [Phalcon\Db\ColumnInterface](#db-columninterface) -* [Phalcon\Db\Dialect](#db-dialect) -* [Phalcon\Db\Dialect\Mysql](#db-dialect-mysql) -* [Phalcon\Db\Dialect\Postgresql](#db-dialect-postgresql) -* [Phalcon\Db\Dialect\Sqlite](#db-dialect-sqlite) -* [Phalcon\Db\DialectInterface](#db-dialectinterface) -* [Phalcon\Db\Enum](#db-enum) -* [Phalcon\Db\Exception](#db-exception) -* [Phalcon\Db\Index](#db-index) -* [Phalcon\Db\IndexInterface](#db-indexinterface) -* [Phalcon\Db\Profiler](#db-profiler) -* [Phalcon\Db\Profiler\Item](#db-profiler-item) -* [Phalcon\Db\RawValue](#db-rawvalue) -* [Phalcon\Db\Reference](#db-reference) -* [Phalcon\Db\ReferenceInterface](#db-referenceinterface) -* [Phalcon\Db\Result\Pdo](#db-result-pdo) -* [Phalcon\Db\ResultInterface](#db-resultinterface) - -

        Abstract Class Phalcon\Db\AbstractDb

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/abstractdb.zep) - -| Namespace | Phalcon\Db | -| Uses | \PDO | - -Phalcon\Db and its related classes provide a simple SQL database interface -for Phalcon Framework. The Phalcon\Db is the basic class you use to connect -your PHP application to an RDBMS. There is a different adapter class for each -brand of RDBMS. - -This component is intended to lower level database operations. If you want to -interact with databases using higher level of abstraction use -Phalcon\Mvc\Model. - -Phalcon\Db\AbstractDb is an abstract class. You only can use it with a -database adapter like Phalcon\Db\Adapter\Pdo - -```php -use Phalcon\Db; -use Phalcon\Db\Exception; -use Phalcon\Db\Adapter\Pdo\Mysql as MysqlConnection; - -try { - $connection = new MysqlConnection( - [ - "host" => "192.168.0.11", - "username" => "sigma", - "password" => "secret", - "dbname" => "blog", - "port" => "3306", - ] - ); - - $result = $connection->query( - "SELECTFROM robots LIMIT 5" - ); - - $result->setFetchMode(Enum::FETCH_NUM); - - while ($robot = $result->fetch()) { - print_r($robot); - } -} catch (Exception $e) { - echo $e->getMessage(), PHP_EOL; -} -``` - - - -

        Abstract Class Phalcon\Db\Adapter\AbstractAdapter

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/adapter/abstractadapter.zep) - -| Namespace | Phalcon\Db\Adapter | -| Uses | Phalcon\Db\DialectInterface, Phalcon\Db\Adapter\AdapterInterface, Phalcon\Db\ColumnInterface, Phalcon\Db\Enum, Phalcon\Db\Exception, Phalcon\Db\Index, Phalcon\Db\IndexInterface, Phalcon\Db\Reference, Phalcon\Db\ReferenceInterface, Phalcon\Db\RawValue, Phalcon\Events\EventsAwareInterface, Phalcon\Events\ManagerInterface | -| Implements | AdapterInterface, EventsAwareInterface | - -Base class for Phalcon\Db adapters - - -## Properties -```php -/** - * Connection ID - */ -protected static connectionConsecutive = 0; - -/** - * Active connection ID - * - * @var long - */ -protected connectionId; - -/** - * Descriptor used to connect to a database - */ -protected descriptor; - -/** - * Dialect instance - */ -protected dialect; - -/** - * Name of the dialect used - * - * @var string - */ -protected dialectType; - -/** - * Event Manager - * - * @var Phalcon\Events\Manager - */ -protected eventsManager; - -/** - * Active SQL Bind Types - * - * @var array - */ -protected sqlBindTypes; - -/** - * Active SQL Statement - * - * @var string - */ -protected sqlStatement; - -/** - * Active SQL bound parameter variables - * - * @var array - */ -protected sqlVariables; - -/** - * Current transaction level - */ -protected transactionLevel = 0; - -/** - * Whether the database supports transactions with save points - */ -protected transactionsWithSavepoints = false; - -/** - * Type of database system the adapter is used for - * - * @var string - */ -protected type; - -``` - -## Methods -```php -public function __construct( array $descriptor ); -``` -Phalcon\Db\Adapter constructor - - -```php -public function addColumn( string $tableName, string $schemaName, ColumnInterface $column ): bool; -``` -Adds a column to a table - - -```php -public function addForeignKey( string $tableName, string $schemaName, ReferenceInterface $reference ): bool; -``` -Adds a foreign key to a table - - -```php -public function addIndex( string $tableName, string $schemaName, IndexInterface $index ): bool; -``` -Adds an index to a table - - -```php -public function addPrimaryKey( string $tableName, string $schemaName, IndexInterface $index ): bool; -``` -Adds a primary key to a table - - -```php -public function createSavepoint( string $name ): bool; -``` -Creates a new savepoint - - -```php -public function createTable( string $tableName, string $schemaName, array $definition ): bool; -``` -Creates a table - - -```php -public function createView( string $viewName, array $definition, string $schemaName = null ): bool; -``` -Creates a view - - -```php -public function delete( mixed $table, mixed $whereCondition = null, mixed $placeholders = null, mixed $dataTypes = null ): bool; -``` -Deletes data from a table using custom RBDM SQL syntax - -```php -// Deleting existing robot -$success = $connection->delete( - "robots", - "id = 101" -); - -// Next SQL sentence is generated -DELETE FROM `robots` WHERE `id` = 101 -``` - - -```php -public function describeIndexes( string $table, string $schema = null ): IndexInterface[]; -``` -Lists table indexes - -```php -print_r( - $connection->describeIndexes("robots_parts") -); -``` - - -```php -public function describeReferences( string $table, string $schema = null ): ReferenceInterface[]; -``` -Lists table references - -```php -print_r( - $connection->describeReferences("robots_parts") -); -``` - - -```php -public function dropColumn( string $tableName, string $schemaName, string $columnName ): bool; -``` -Drops a column from a table - - -```php -public function dropForeignKey( string $tableName, string $schemaName, string $referenceName ): bool; -``` -Drops a foreign key from a table - - -```php -public function dropIndex( string $tableName, string $schemaName, mixed $indexName ): bool; -``` -Drop an index from a table - - -```php -public function dropPrimaryKey( string $tableName, string $schemaName ): bool; -``` -Drops a table's primary key - - -```php -public function dropTable( string $tableName, string $schemaName = null, bool $ifExists = bool ): bool; -``` -Drops a table from a schema/database - - -```php -public function dropView( string $viewName, string $schemaName = null, bool $ifExists = bool ): bool; -``` -Drops a view - - -```php -public function escapeIdentifier( mixed $identifier ): string; -``` -Escapes a column/table/schema name - -```php -$escapedTable = $connection->escapeIdentifier( - "robots" -); - -$escapedTable = $connection->escapeIdentifier( - [ - "store", - "robots", - ] -); -``` - - -```php -public function fetchAll( string $sqlQuery, int $fetchMode = static-constant-access, mixed $bindParams = null, mixed $bindTypes = null ): array; -``` -Dumps the complete result of a query into an array - -```php -// Getting all robots with associative indexes only -$robots = $connection->fetchAll( - "SELECTFROM robots", - \Phalcon\Db\Enum::FETCH_ASSOC -); - -foreach ($robots as $robot) { - print_r($robot); -} - - // Getting all robots that contains word "robot" withing the name -$robots = $connection->fetchAll( - "SELECTFROM robots WHERE name LIKE :name", - \Phalcon\Db\Enum::FETCH_ASSOC, - [ - "name" => "%robot%", - ] -); -foreach($robots as $robot) { - print_r($robot); -} -``` - - -```php -public function fetchColumn( string $sqlQuery, array $placeholders = [], mixed $column = int ): string | bool; -``` -Returns the n'th field of first row in a SQL query result - -```php -// Getting count of robots -$robotsCount = $connection->fetchColumn("SELECT count(*) FROM robots"); -print_r($robotsCount); - -// Getting name of last edited robot -$robot = $connection->fetchColumn( - "SELECT id, name FROM robots order by modified desc", - 1 -); -print_r($robot); -``` - - -```php -public function fetchOne( string $sqlQuery, mixed $fetchMode = static-constant-access, mixed $bindParams = null, mixed $bindTypes = null ): array; -``` -Returns the first row in a SQL query result - -```php -// Getting first robot -$robot = $connection->fetchOne("SELECTFROM robots"); -print_r($robot); - -// Getting first robot with associative indexes only -$robot = $connection->fetchOne( - "SELECTFROM robots", - \Phalcon\Db\Enum::FETCH_ASSOC -); -print_r($robot); -``` - - -```php -public function forUpdate( string $sqlQuery ): string; -``` -Returns a SQL modified with a FOR UPDATE clause - - -```php -public function getColumnDefinition( ColumnInterface $column ): string; -``` -Returns the SQL column definition from a column - - -```php -public function getColumnList( mixed $columnList ): string; -``` -Gets a list of columns - - -```php -public function getConnectionId(): string; -``` -Gets the active connection unique identifier - - -```php -public function getDefaultIdValue(): RawValue; -``` -Returns the default identity value to be inserted in an identity column - -```php -// Inserting a new robot with a valid default value for the column 'id' -$success = $connection->insert( - "robots", - [ - $connection->getDefaultIdValue(), - "Astro Boy", - 1952, - ], - [ - "id", - "name", - "year", - ] -); -``` - - -```php -public function getDefaultValue(): RawValue; -``` -Returns the default value to make the RBDM use the default value declared -in the table definition - -```php -// Inserting a new robot with a valid default value for the column 'year' -$success = $connection->insert( - "robots", - [ - "Astro Boy", - $connection->getDefaultValue() - ], - [ - "name", - "year", - ] -); -``` - - -```php -public function getDescriptor(): array; -``` -Return descriptor used to connect to the active database - - -```php -public function getDialect(): DialectInterface; -``` -Returns internal dialect instance - - -```php -public function getDialectType(): string -``` - - -```php -public function getEventsManager(): ManagerInterface; -``` -Returns the internal event manager - - -```php -public function getNestedTransactionSavepointName(): string; -``` -Returns the savepoint name to use for nested transactions - - -```php -public function getRealSQLStatement(): string; -``` -Active SQL statement in the object without replace bound parameters - - -```php -public function getSQLBindTypes(): array; -``` -Active SQL statement in the object - - -```php -public function getSQLStatement(): string; -``` -Active SQL statement in the object - - -```php -public function getSqlVariables(): array -``` - - -```php -public function getType(): string -``` - - -```php -public function insert( string $table, array $values, mixed $fields = null, mixed $dataTypes = null ): bool; -``` -Inserts data into a table using custom RDBMS SQL syntax - -```php -// Inserting a new robot -$success = $connection->insert( - "robots", - ["Astro Boy", 1952], - ["name", "year"] -); - -// Next SQL sentence is sent to the database system -INSERT INTO `robots` (`name`, `year`) VALUES ("Astro boy", 1952); -``` - - -```php -public function insertAsDict( string $table, mixed $data, mixed $dataTypes = null ): bool; -``` -Inserts data into a table using custom RBDM SQL syntax - -```php -// Inserting a new robot -$success = $connection->insertAsDict( - "robots", - [ - "name" => "Astro Boy", - "year" => 1952, - ] -); - -// Next SQL sentence is sent to the database system -INSERT INTO `robots` (`name`, `year`) VALUES ("Astro boy", 1952); -``` - - -```php -public function isNestedTransactionsWithSavepoints(): bool; -``` -Returns if nested transactions should use savepoints - - -```php -public function limit( string $sqlQuery, int $number ): string; -``` -Appends a LIMIT clause to $sqlQuery argument - -```php -echo $connection->limit("SELECTFROM robots", 5); -``` - - -```php -public function listTables( string $schemaName = null ): array; -``` -List all tables on a database - -```php -print_r( - $connection->listTables("blog") -); -``` - - -```php -public function listViews( string $schemaName = null ): array; -``` -List all views on a database - -```php -print_r( - $connection->listViews("blog") -); -``` - - -```php -public function modifyColumn( string $tableName, string $schemaName, ColumnInterface $column, ColumnInterface $currentColumn = null ): bool; -``` -Modifies a table column based on a definition - - -```php -public function releaseSavepoint( string $name ): bool; -``` -Releases given savepoint - - -```php -public function rollbackSavepoint( string $name ): bool; -``` -Rollbacks given savepoint - - -```php -public function setDialect( DialectInterface $dialect ); -``` -Sets the dialect used to produce the SQL - - -```php -public function setEventsManager( ManagerInterface $eventsManager ): void; -``` -Sets the event manager - - -```php -public function setNestedTransactionsWithSavepoints( bool $nestedTransactionsWithSavepoints ): AdapterInterface; -``` -Set if nested transactions should use savepoints - - -```php -public function sharedLock( string $sqlQuery ): string; -``` -Returns a SQL modified with a LOCK IN SHARE MODE clause - - -```php -public function supportSequences(): bool; -``` -Check whether the database system requires a sequence to produce -auto-numeric values - - -```php -public function tableExists( string $tableName, string $schemaName = null ): bool; -``` -Generates SQL checking for the existence of a schema.table - -```php -var_dump( - $connection->tableExists("blog", "posts") -); -``` - - -```php -public function tableOptions( string $tableName, string $schemaName = null ): array; -``` -Gets creation options from a table - -```php -print_r( - $connection->tableOptions("robots") -); -``` - - -```php -public function update( string $table, mixed $fields, mixed $values, mixed $whereCondition = null, mixed $dataTypes = null ): bool; -``` -Updates data on a table using custom RBDM SQL syntax - -```php -// Updating existing robot -$success = $connection->update( - "robots", - ["name"], - ["New Astro Boy"], - "id = 101" -); - -// Next SQL sentence is sent to the database system -UPDATE `robots` SET `name` = "Astro boy" WHERE id = 101 - -// Updating existing robot with array condition and $dataTypes -$success = $connection->update( - "robots", - ["name"], - ["New Astro Boy"], - [ - "conditions" => "id = ?", - "bind" => [$some_unsafe_id], - "bindTypes" => [PDO::PARAM_INT], // use only if you use $dataTypes param - ], - [ - PDO::PARAM_STR - ] -); - -``` - -Warning! If $whereCondition is string it not escaped. - - -```php -public function updateAsDict( string $table, mixed $data, mixed $whereCondition = null, mixed $dataTypes = null ): bool; -``` -Updates data on a table using custom RBDM SQL syntax -Another, more convenient syntax - -```php -// Updating existing robot -$success = $connection->updateAsDict( - "robots", - [ - "name" => "New Astro Boy", - ], - "id = 101" -); - -// Next SQL sentence is sent to the database system -UPDATE `robots` SET `name` = "Astro boy" WHERE id = 101 -``` - - -```php -public function useExplicitIdValue(): bool; -``` -Check whether the database system requires an explicit value for identity -columns - - -```php -public function viewExists( string $viewName, string $schemaName = null ): bool; -``` -Generates SQL checking for the existence of a schema.view - -```php -var_dump( - $connection->viewExists("active_users", "posts") -); -``` - - - - -

        Interface Phalcon\Db\Adapter\AdapterInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/adapter/adapterinterface.zep) - -| Namespace | Phalcon\Db\Adapter | -| Uses | Phalcon\Db\DialectInterface, Phalcon\Db\ResultInterface, Phalcon\Db\ColumnInterface, Phalcon\Db\IndexInterface, Phalcon\Db\RawValue, Phalcon\Db\ReferenceInterface | - -Interface for Phalcon\Db adapters - - -## Methods -```php -public function addColumn( string $tableName, string $schemaName, ColumnInterface $column ): bool; -``` -Adds a column to a table - - -```php -public function addForeignKey( string $tableName, string $schemaName, ReferenceInterface $reference ): bool; -``` -Adds a foreign key to a table - - -```php -public function addIndex( string $tableName, string $schemaName, IndexInterface $index ): bool; -``` -Adds an index to a table - - -```php -public function addPrimaryKey( string $tableName, string $schemaName, IndexInterface $index ): bool; -``` -Adds a primary key to a table - - -```php -public function affectedRows(): int; -``` -Returns the number of affected rows by the last INSERT/UPDATE/DELETE -reported by the database system - - -```php -public function begin( bool $nesting = bool ): bool; -``` -Starts a transaction in the connection - - -```php -public function close(): bool; -``` -Closes active connection returning success. Phalcon automatically closes -and destroys active connections within Phalcon\Db\Pool - - -```php -public function commit( bool $nesting = bool ): bool; -``` -Commits the active transaction in the connection - - -```php -public function connect( array $descriptor = null ): bool; -``` -This method is automatically called in \Phalcon\Db\Adapter\Pdo -constructor. Call it when you need to restore a database connection - - -```php -public function createSavepoint( string $name ): bool; -``` -Creates a new savepoint - - -```php -public function createTable( string $tableName, string $schemaName, array $definition ): bool; -``` -Creates a table - - -```php -public function createView( string $viewName, array $definition, string $schemaName = null ): bool; -``` -Creates a view - - -```php -public function delete( mixed $table, mixed $whereCondition = null, mixed $placeholders = null, mixed $dataTypes = null ): bool; -``` -Deletes data from a table using custom RDBMS SQL syntax - - -```php -public function describeColumns( string $table, string $schema = null ): ColumnInterface[]; -``` -Returns an array of Phalcon\Db\Column objects describing a table - - -```php -public function describeIndexes( string $table, string $schema = null ): IndexInterface[]; -``` -Lists table indexes - - -```php -public function describeReferences( string $table, string $schema = null ): ReferenceInterface[]; -``` -Lists table references - - -```php -public function dropColumn( string $tableName, string $schemaName, string $columnName ): bool; -``` -Drops a column from a table - - -```php -public function dropForeignKey( string $tableName, string $schemaName, string $referenceName ): bool; -``` -Drops a foreign key from a table - - -```php -public function dropIndex( string $tableName, string $schemaName, string $indexName ): bool; -``` -Drop an index from a table - - -```php -public function dropPrimaryKey( string $tableName, string $schemaName ): bool; -``` -Drops primary key from a table - - -```php -public function dropTable( string $tableName, string $schemaName = null, bool $ifExists = bool ): bool; -``` -Drops a table from a schema/database - - -```php -public function dropView( string $viewName, string $schemaName = null, bool $ifExists = bool ): bool; -``` -Drops a view - - -```php -public function escapeIdentifier( mixed $identifier ): string; -``` -Escapes a column/table/schema name - - -```php -public function escapeString( string $str ): string; -``` -Escapes a value to avoid SQL injections - - -```php -public function execute( string $sqlStatement, mixed $placeholders = null, mixed $dataTypes = null ): bool; -``` -Sends SQL statements to the database server returning the success state. -Use this method only when the SQL statement sent to the server doesn't -return any rows - - -```php -public function fetchAll( string $sqlQuery, int $fetchMode = int, mixed $placeholders = null ): array; -``` -Dumps the complete result of a query into an array - - -```php -public function fetchColumn( string $sqlQuery, array $placeholders = [], mixed $column = int ): string | bool; -``` -Returns the n'th field of first row in a SQL query result - -```php -// Getting count of robots -$robotsCount = $connection->fetchColumn("SELECT count(*) FROM robots"); -print_r($robotsCount); - -// Getting name of last edited robot -$robot = $connection->fetchColumn( - "SELECT id, name FROM robots order by modified desc", - 1 -); -print_r($robot); -``` - - -```php -public function fetchOne( string $sqlQuery, int $fetchMode = int, mixed $placeholders = null ): array; -``` -Returns the first row in a SQL query result - - -```php -public function forUpdate( string $sqlQuery ): string; -``` -Returns a SQL modified with a FOR UPDATE clause - - -```php -public function getColumnDefinition( ColumnInterface $column ): string; -``` -Returns the SQL column definition from a column - - -```php -public function getColumnList( mixed $columnList ): string; -``` -Gets a list of columns - - -```php -public function getConnectionId(): string; -``` -Gets the active connection unique identifier - - -```php -public function getDefaultIdValue(): RawValue; -``` -Return the default identity value to insert in an identity column - - -```php -public function getDescriptor(): array; -``` -Return descriptor used to connect to the active database - - -```php -public function getDialect(): DialectInterface; -``` -Returns internal dialect instance - - -```php -public function getDialectType(): string; -``` -Returns the name of the dialect used - - -```php -public function getInternalHandler(): \Pdo; -``` -Return internal PDO handler - - -```php -public function getNestedTransactionSavepointName(): string; -``` -Returns the savepoint name to use for nested transactions - - -```php -public function getRealSQLStatement(): string; -``` -Active SQL statement in the object without replace bound parameters - - -```php -public function getSQLBindTypes(): array; -``` -Active SQL statement in the object - - -```php -public function getSQLStatement(): string; -``` -Active SQL statement in the object - - -```php -public function getSQLVariables(): array; -``` -Active SQL statement in the object - - -```php -public function getType(): string; -``` -Returns type of database system the adapter is used for - - -```php -public function insert( string $table, array $values, mixed $fields = null, mixed $dataTypes = null ): bool; -``` -Inserts data into a table using custom RDBMS SQL syntax - - -```php -public function insertAsDict( string $table, mixed $data, mixed $dataTypes = null ): bool; -``` -Inserts data into a table using custom RBDM SQL syntax - -```php -// Inserting a new robot -$success = $connection->insertAsDict( - "robots", - [ - "name" => "Astro Boy", - "year" => 1952, - ] -); - -// Next SQL sentence is sent to the database system -INSERT INTO `robots` (`name`, `year`) VALUES ("Astro boy", 1952); -``` - - -```php -public function isNestedTransactionsWithSavepoints(): bool; -``` -Returns if nested transactions should use savepoints - - -```php -public function isUnderTransaction(): bool; -``` -Checks whether connection is under database transaction - - -```php -public function lastInsertId( mixed $sequenceName = null ); -``` -Returns insert id for the auto_increment column inserted in the last SQL -statement - - -```php -public function limit( string $sqlQuery, int $number ): string; -``` -Appends a LIMIT clause to sqlQuery argument - - -```php -public function listTables( string $schemaName = null ): array; -``` -List all tables on a database - - -```php -public function listViews( string $schemaName = null ): array; -``` -List all views on a database - - -```php -public function modifyColumn( string $tableName, string $schemaName, ColumnInterface $column, ColumnInterface $currentColumn = null ): bool; -``` -Modifies a table column based on a definition - - -```php -public function query( string $sqlStatement, mixed $placeholders = null, mixed $dataTypes = null ): ResultInterface | bool; -``` -Sends SQL statements to the database server returning the success state. -Use this method only when the SQL statement sent to the server returns -rows - - -```php -public function releaseSavepoint( string $name ): bool; -``` -Releases given savepoint - - -```php -public function rollback( bool $nesting = bool ): bool; -``` -Rollbacks the active transaction in the connection - - -```php -public function rollbackSavepoint( string $name ): bool; -``` -Rollbacks given savepoint - - -```php -public function setNestedTransactionsWithSavepoints( bool $nestedTransactionsWithSavepoints ): AdapterInterface; -``` -Set if nested transactions should use savepoints - - -```php -public function sharedLock( string $sqlQuery ): string; -``` -Returns a SQL modified with a LOCK IN SHARE MODE clause - - -```php -public function supportSequences(): bool; -``` -Check whether the database system requires a sequence to produce -auto-numeric values - - -```php -public function tableExists( string $tableName, string $schemaName = null ): bool; -``` -Generates SQL checking for the existence of a schema.table - - -```php -public function tableOptions( string $tableName, string $schemaName = null ): array; -``` -Gets creation options from a table - - -```php -public function update( string $table, mixed $fields, mixed $values, mixed $whereCondition = null, mixed $dataTypes = null ): bool; -``` -Updates data on a table using custom RDBMS SQL syntax - - -```php -public function updateAsDict( string $table, mixed $data, mixed $whereCondition = null, mixed $dataTypes = null ): bool; -``` -Updates data on a table using custom RBDM SQL syntax -Another, more convenient syntax - -```php -// Updating existing robot -$success = $connection->updateAsDict( - "robots", - [ - "name" => "New Astro Boy", - ], - "id = 101" -); - -// Next SQL sentence is sent to the database system -UPDATE `robots` SET `name` = "Astro boy" WHERE id = 101 -``` - - -```php -public function useExplicitIdValue(): bool; -``` -Check whether the database system requires an explicit value for identity -columns - - -```php -public function viewExists( string $viewName, string $schemaName = null ): bool; -``` -Generates SQL checking for the existence of a schema.view - - - - -

        Abstract Class Phalcon\Db\Adapter\Pdo\AbstractPdo

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/adapter/pdo/abstractpdo.zep) - -| Namespace | Phalcon\Db\Adapter\Pdo | -| Uses | Phalcon\Db\Adapter\AbstractAdapter, Phalcon\Db\Column, Phalcon\Db\Exception, Phalcon\Db\Result\Pdo, Phalcon\Db\ResultInterface, Phalcon\Events\ManagerInterface | -| Extends | AbstractAdapter | - -Phalcon\Db\Adapter\Pdo is the Phalcon\Db that internally uses PDO to connect -to a database - -```php -use Phalcon\Db\Adapter\Pdo\Mysql; - -$config = [ - "host" => "localhost", - "dbname" => "blog", - "port" => 3306, - "username" => "sigma", - "password" => "secret", -]; - -$connection = new Mysql($config); -``` - - -## Properties -```php -/** - * Last affected rows - */ -protected affectedRows; - -/** - * PDO Handler - * - * @var \Pdo - */ -protected pdo; - -``` - -## Methods -```php -public function __construct( array $descriptor ): void; -``` -Constructor for Phalcon\Db\Adapter\Pdo - - -```php -public function affectedRows(): int; -``` -Returns the number of affected rows by the latest INSERT/UPDATE/DELETE -executed in the database system - -```php -$connection->execute( - "DELETE FROM robots" -); - -echo $connection->affectedRows(), " were deleted"; -``` - - -```php -public function begin( bool $nesting = bool ): bool; -``` -Starts a transaction in the connection - - -```php -public function close(): bool; -``` -Closes the active connection returning success. Phalcon automatically -closes and destroys active connections when the request ends - - -```php -public function commit( bool $nesting = bool ): bool; -``` -Commits the active transaction in the connection - - -```php -public function connect( array $descriptor = null ): bool; -``` -This method is automatically called in \Phalcon\Db\Adapter\Pdo -constructor. - -Call it when you need to restore a database connection. - -```php -use Phalcon\Db\Adapter\Pdo\Mysql; - -// Make a connection -$connection = new Mysql( - [ - "host" => "localhost", - "username" => "sigma", - "password" => "secret", - "dbname" => "blog", - "port" => 3306, - ] -); - -// Reconnect -$connection->connect(); -``` - - -```php -public function convertBoundParams( string $sql, array $params = [] ): array; -``` -Converts bound parameters such as :name: or ?1 into PDO bind params ? - -```php -print_r( - $connection->convertBoundParams( - "SELECTFROM robots WHERE name = :name:", - [ - "Bender", - ] - ) -); -``` - - -```php -public function escapeString( string $str ): string; -``` -Escapes a value to avoid SQL injections according to the active charset -in the connection - -```php -$escapedStr = $connection->escapeString("some dangerous value"); -``` - - -```php -public function execute( string $sqlStatement, mixed $bindParams = null, mixed $bindTypes = null ): bool; -``` -Sends SQL statements to the database server returning the success state. -Use this method only when the SQL statement sent to the server doesn't -return any rows - -```php -// Inserting data -$success = $connection->execute( - "INSERT INTO robots VALUES (1, 'Astro Boy')" -); - -$success = $connection->execute( - "INSERT INTO robots VALUES (?, ?)", - [ - 1, - "Astro Boy", - ] -); -``` - - -```php -public function executePrepared( \PDOStatement $statement, array $placeholders, mixed $dataTypes ): \PDOStatement; -``` -Executes a prepared statement binding. This function uses integer indexes -starting from zero - -```php -use Phalcon\Db\Column; - -$statement = $db->prepare( - "SELECTFROM robots WHERE name = :name" -); - -$result = $connection->executePrepared( - $statement, - [ - "name" => "Voltron", - ], - [ - "name" => Column::BIND_PARAM_INT, - ] -); -``` - - -```php -public function getErrorInfo(); -``` -Return the error info, if any - - -```php -public function getInternalHandler(): \Pdo; -``` -Return internal PDO handler - - -```php -public function getTransactionLevel(): int; -``` -Returns the current transaction nesting level - - -```php -public function isUnderTransaction(): bool; -``` -Checks whether the connection is under a transaction - -```php -$connection->begin(); - -// true -var_dump( - $connection->isUnderTransaction() -); -``` - - -```php -public function lastInsertId( mixed $sequenceName = null ): int | bool; -``` -Returns the insert id for the auto_increment/serial column inserted in -the latest executed SQL statement - -```php -// Inserting a new robot -$success = $connection->insert( - "robots", - [ - "Astro Boy", - 1952, - ], - [ - "name", - "year", - ] -); - -// Getting the generated id -$id = $connection->lastInsertId(); -``` - - -```php -public function prepare( string $sqlStatement ): \PDOStatement; -``` -Returns a PDO prepared statement to be executed with 'executePrepared' - -```php -use Phalcon\Db\Column; - -$statement = $db->prepare( - "SELECTFROM robots WHERE name = :name" -); - -$result = $connection->executePrepared( - $statement, - [ - "name" => "Voltron", - ], - [ - "name" => Column::BIND_PARAM_INT, - ] -); -``` - - -```php -public function query( string $sqlStatement, mixed $bindParams = null, mixed $bindTypes = null ): ResultInterface | bool; -``` -Sends SQL statements to the database server returning the success state. -Use this method only when the SQL statement sent to the server is -returning rows - -```php -// Querying data -$resultset = $connection->query( - "SELECTFROM robots WHERE type = 'mechanical'" -); - -$resultset = $connection->query( - "SELECTFROM robots WHERE type = ?", - [ - "mechanical", - ] -); -``` - - -```php -public function rollback( bool $nesting = bool ): bool; -``` -Rollbacks the active transaction in the connection - - -```php -abstract protected function getDsnDefaults(): array; -``` -Returns PDO adapter DSN defaults as a key-value map. - - - - -

        Class Phalcon\Db\Adapter\Pdo\Mysql

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/adapter/pdo/mysql.zep) - -| Namespace | Phalcon\Db\Adapter\Pdo | -| Uses | Phalcon\Db\Adapter\Pdo\AbstractPdo, Phalcon\Db\Column, Phalcon\Db\ColumnInterface, Phalcon\Db\Enum, Phalcon\Db\Exception, Phalcon\Db\Index, Phalcon\Db\IndexInterface, Phalcon\Db\Reference, Phalcon\Db\ReferenceInterface | -| Extends | PdoAdapter | - -Specific functions for the Mysql database system - -```php -use Phalcon\Db\Adapter\Pdo\Mysql; - -$config = [ - "host" => "localhost", - "dbname" => "blog", - "port" => 3306, - "username" => "sigma", - "password" => "secret", -]; - -$connection = new Mysql($config); -``` - - -## Properties -```php -/** - * @var string - */ -protected dialectType = mysql; - -/** - * @var string - */ -protected type = mysql; - -``` - -## Methods -```php -public function addForeignKey( string $tableName, string $schemaName, ReferenceInterface $reference ): bool; -``` -Adds a foreign key to a table - - -```php -public function describeColumns( string $table, string $schema = null ): ColumnInterface[]; -``` -Returns an array of Phalcon\Db\Column objects describing a table - -```php -print_r( - $connection->describeColumns("posts") -); -``` - - -```php -public function describeIndexes( string $table, string $schema = null ): IndexInterface[]; -``` -Lists table indexes - -```php -print_r( - $connection->describeIndexes("robots_parts") -); -``` - - -```php -public function describeReferences( string $table, string $schema = null ): ReferenceInterface[]; -``` -Lists table references - -```php -print_r( - $connection->describeReferences("robots_parts") -); -``` - - -```php -protected function getDsnDefaults(): array; -``` -Returns PDO adapter DSN defaults as a key-value map. - - - - -

        Class Phalcon\Db\Adapter\Pdo\Postgresql

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/adapter/pdo/postgresql.zep) - -| Namespace | Phalcon\Db\Adapter\Pdo | -| Uses | Phalcon\Db\Adapter\Pdo\AbstractPdo, Phalcon\Db\Column, Phalcon\Db\ColumnInterface, Phalcon\Db\Enum, Phalcon\Db\Exception, Phalcon\Db\RawValue, Phalcon\Db\Reference, Phalcon\Db\ReferenceInterface, Throwable | -| Extends | PdoAdapter | - -Specific functions for the Postgresql database system - -```php -use Phalcon\Db\Adapter\Pdo\Postgresql; - -$config = [ - "host" => "localhost", - "dbname" => "blog", - "port" => 5432, - "username" => "postgres", - "password" => "secret", -]; - -$connection = new Postgresql($config); -``` - - -## Properties -```php -/** - * @var string - */ -protected dialectType = postgresql; - -/** - * @var string - */ -protected type = pgsql; - -``` - -## Methods -```php -public function __construct( array $descriptor ): void; -``` -Constructor for Phalcon\Db\Adapter\Pdo\Postgresql - - -```php -public function connect( array $descriptor = null ): bool; -``` -This method is automatically called in Phalcon\Db\Adapter\Pdo -constructor. Call it when you need to restore a database connection. - - -```php -public function createTable( string $tableName, string $schemaName, array $definition ): bool; -``` -Creates a table - - -```php -public function describeColumns( string $table, string $schema = null ): ColumnInterface[]; -``` -Returns an array of Phalcon\Db\Column objects describing a table - -```php -print_r( - $connection->describeColumns("posts") -); -``` - - -```php -public function describeReferences( string $table, string $schema = null ): ReferenceInterface[]; -``` -Lists table references - -```php -print_r( - $connection->describeReferences("robots_parts") -); -``` - - -```php -public function getDefaultIdValue(): RawValue; -``` -Returns the default identity value to be inserted in an identity column - -```php -// Inserting a new robot with a valid default value for the column 'id' -$success = $connection->insert( - "robots", - [ - $connection->getDefaultIdValue(), - "Astro Boy", - 1952, - ], - [ - "id", - "name", - "year", - ] -); -``` - - -```php -public function modifyColumn( string $tableName, string $schemaName, ColumnInterface $column, ColumnInterface $currentColumn = null ): bool; -``` -Modifies a table column based on a definition - - -```php -public function supportSequences(): bool; -``` -Check whether the database system requires a sequence to produce -auto-numeric values - - -```php -public function useExplicitIdValue(): bool; -``` -Check whether the database system requires an explicit value for identity -columns - - -```php -protected function getDsnDefaults(): array; -``` -Returns PDO adapter DSN defaults as a key-value map. - - - - -

        Class Phalcon\Db\Adapter\Pdo\Sqlite

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/adapter/pdo/sqlite.zep) - -| Namespace | Phalcon\Db\Adapter\Pdo | -| Uses | Phalcon\Db\Adapter\Pdo\AbstractPdo, Phalcon\Db\Column, Phalcon\Db\ColumnInterface, Phalcon\Db\Enum, Phalcon\Db\Exception, Phalcon\Db\Index, Phalcon\Db\IndexInterface, Phalcon\Db\RawValue, Phalcon\Db\Reference, Phalcon\Db\ReferenceInterface | -| Extends | PdoAdapter | - -Specific functions for the Sqlite database system - -```php -use Phalcon\Db\Adapter\Pdo\Sqlite; - -$connection = new Sqlite( - [ - "dbname" => "/tmp/test.sqlite", - ] -); -``` - - -## Properties -```php -/** - * @var string - */ -protected dialectType = sqlite; - -/** - * @var string - */ -protected type = sqlite; - -``` - -## Methods -```php -public function __construct( array $descriptor ): void; -``` -Constructor for Phalcon\Db\Adapter\Pdo\Sqlite - - -```php -public function connect( array $descriptor = null ): bool; -``` -This method is automatically called in Phalcon\Db\Adapter\Pdo -constructor. Call it when you need to restore a database connection. - - -```php -public function describeColumns( string $table, string $schema = null ): ColumnInterface[]; -``` -Returns an array of Phalcon\Db\Column objects describing a table - -```php -print_r( - $connection->describeColumns("posts") -); -``` - - -```php -public function describeIndexes( string $table, string $schema = null ): IndexInterface[]; -``` -Lists table indexes - -```php -print_r( - $connection->describeIndexes("robots_parts") -); -``` - - -```php -public function describeReferences( string $table, string $schema = null ): ReferenceInterface[]; -``` -Lists table references - - -```php -public function getDefaultValue(): RawValue; -``` -Returns the default value to make the RBDM use the default value declared -in the table definition - -```php -// Inserting a new robot with a valid default value for the column 'year' -$success = $connection->insert( - "robots", - [ - "Astro Boy", - $connection->getDefaultValue(), - ], - [ - "name", - "year", - ] -); -``` - - -```php -public function useExplicitIdValue(): bool; -``` -Check whether the database system requires an explicit value for identity -columns - - -```php -protected function getDsnDefaults(): array; -``` -Returns PDO adapter DSN defaults as a key-value map. - - - - -

        Class Phalcon\Db\Adapter\PdoFactory

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/adapter/pdofactory.zep) - -| Namespace | Phalcon\Db\Adapter | -| Uses | Phalcon\Annotations\Adapter\AbstractAdapter, Phalcon\Factory\AbstractFactory, Phalcon\Helper\Arr | -| Extends | AbstractFactory | - -This file is part of the Phalcon Framework. - -(c) Phalcon Team - -For the full copyright and license information, please view the LICENSE.txt -file that was distributed with this source code. - - -## Methods -```php -public function __construct( array $services = [] ); -``` -Constructor - - -```php -public function load( mixed $config ): mixed; -``` -Factory to create an instace from a Config object - - -```php -public function newInstance( string $name, array $options = [] ): AbstractAdapter; -``` -Create a new instance of the adapter - - -```php -protected function getAdapters(): array; -``` -Returns the available adapters - - - - -

        Class Phalcon\Db\Column

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/column.zep) - -| Namespace | Phalcon\Db | -| Uses | Phalcon\Db\Exception, Phalcon\Db\ColumnInterface | -| Implements | ColumnInterface | - -Allows to define columns to be used on create or alter table operations - -```php -use Phalcon\Db\Column as Column; - -// Column definition -$column = new Column( - "id", - [ - "type" => Column::TYPE_INTEGER, - "size" => 10, - "unsigned" => true, - "notNull" => true, - "autoIncrement" => true, - "first" => true, - ] -); - -// Add column to existing table -$connection->addColumn("robots", null, $column); -``` - - -## Constants -```php -const BIND_PARAM_BLOB = 3; -const BIND_PARAM_BOOL = 5; -const BIND_PARAM_DECIMAL = 32; -const BIND_PARAM_INT = 1; -const BIND_PARAM_NULL = 0; -const BIND_PARAM_STR = 2; -const BIND_SKIP = 1024; -const TYPE_BIGINTEGER = 14; -const TYPE_BIT = 19; -const TYPE_BLOB = 11; -const TYPE_BOOLEAN = 8; -const TYPE_CHAR = 5; -const TYPE_DATE = 1; -const TYPE_DATETIME = 4; -const TYPE_DECIMAL = 3; -const TYPE_DOUBLE = 9; -const TYPE_ENUM = 18; -const TYPE_FLOAT = 7; -const TYPE_INTEGER = 0; -const TYPE_JSON = 15; -const TYPE_JSONB = 16; -const TYPE_LONGBLOB = 13; -const TYPE_LONGTEXT = 24; -const TYPE_MEDIUMBLOB = 12; -const TYPE_MEDIUMINTEGER = 21; -const TYPE_MEDIUMTEXT = 23; -const TYPE_SMALLINTEGER = 22; -const TYPE_TEXT = 6; -const TYPE_TIME = 20; -const TYPE_TIMESTAMP = 17; -const TYPE_TINYBLOB = 10; -const TYPE_TINYINTEGER = 26; -const TYPE_TINYTEXT = 25; -const TYPE_VARCHAR = 2; -``` - -## Properties -```php -/** - * Column Position - * - * @var string - */ -protected after; - -/** - * Column is autoIncrement? - * - * @var bool - */ -protected autoIncrement = false; - -/** - * Bind Type - */ -protected bindType = 2; - -/** - * Default column value - */ -protected _default; - -/** - * Position is first - * - * @var bool - */ -protected first = false; - -/** - * The column have some numeric type? - */ -protected isNumeric = false; - -/** - * Column's name - * - * @var string - */ -protected name; - -/** - * Column not nullable? - * - * @var bool - */ -protected notNull = false; - -/** - * Column is part of the primary key? - */ -protected primary = false; - -/** - * Integer column number scale - * - * @var int - */ -protected scale = 0; - -/** - * Integer column size - * - * @var int - */ -protected size = 0; - -/** - * Column data type - * - * @var int - */ -protected type; - -/** - * Column data type reference - * - * @var int - */ -protected typeReference = -1; - -/** - * Column data type values - * - * @var array|string - */ -protected typeValues; - -/** - * Integer column unsigned? - * - * @var bool - */ -protected unsigned = false; - -``` - -## Methods -```php -public function __construct( string $name, array $definition ): void; -``` -Phalcon\Db\Column constructor - - -```php -public function getAfterPosition(): string; -``` -Check whether field absolute to position in table - - -```php -public function getBindType(): int; -``` -Returns the type of bind handling - - -```php -public function getName(): string -``` - - -```php -public function getScale(): int -``` - - -```php -public function getSize(): int -``` - - -```php -public function getType(): int -``` - - -```php -public function getTypeReference(): int -``` - - -```php -public function getTypeValues(): array|string -``` - - -```php -public function get_default() -``` - - -```php -public function hasDefault(): bool; -``` -Check whether column has default value - - -```php -public function isAutoIncrement(): bool; -``` -Auto-Increment - - -```php -public function isFirst(): bool; -``` -Check whether column have first position in table - - -```php -public function isNotNull(): bool; -``` -Not null - - -```php -public function isNumeric(): bool; -``` -Check whether column have an numeric type - - -```php -public function isPrimary(): bool; -``` -Column is part of the primary key? - - -```php -public function isUnsigned(): bool; -``` -Returns true if number column is unsigned - - - - -

        Interface Phalcon\Db\ColumnInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/columninterface.zep) - -| Namespace | Phalcon\Db | - -Interface for Phalcon\Db\Column - - -## Methods -```php -public function getAfterPosition(): string; -``` -Check whether field absolute to position in table - - -```php -public function getBindType(): int; -``` -Returns the type of bind handling - - -```php -public function getDefault(): mixed; -``` -Returns default value of column - - -```php -public function getName(): string; -``` -Returns column name - - -```php -public function getScale(): int; -``` -Returns column scale - - -```php -public function getSize(): int; -``` -Returns column size - - -```php -public function getType(): int; -``` -Returns column type - - -```php -public function getTypeReference(): int; -``` -Returns column type reference - - -```php -public function getTypeValues(): array | string; -``` -Returns column type values - - -```php -public function hasDefault(): bool; -``` -Check whether column has default value - - -```php -public function isAutoIncrement(): bool; -``` -Auto-Increment - - -```php -public function isFirst(): bool; -``` -Check whether column have first position in table - - -```php -public function isNotNull(): bool; -``` -Not null - - -```php -public function isNumeric(): bool; -``` -Check whether column have an numeric type - - -```php -public function isPrimary(): bool; -``` -Column is part of the primary key? - - -```php -public function isUnsigned(): bool; -``` -Returns true if number column is unsigned - - - - -

        Abstract Class Phalcon\Db\Dialect

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/dialect.zep) - -| Namespace | Phalcon\Db | -| Implements | DialectInterface | - -This is the base class to each database dialect. This implements -common methods to transform intermediate code into its RDBMS related syntax - - -## Properties -```php -// -protected escapeChar; - -// -protected customFunctions; - -``` - -## Methods -```php -public function createSavepoint( string $name ): string; -``` -Generate SQL to create a new savepoint - - -```php -final public function escape( string $str, string $escapeChar = null ): string; -``` -Escape identifiers - - -```php -final public function escapeSchema( string $str, string $escapeChar = null ): string; -``` -Escape Schema - - -```php -public function forUpdate( string $sqlQuery ): string; -``` -Returns a SQL modified with a FOR UPDATE clause - -```php -$sql = $dialect->forUpdate("SELECTFROM robots"); - -echo $sql; // SELECTFROM robots FOR UPDATE -``` - - -```php -final public function getColumnList( array $columnList, string $escapeChar = null, mixed $bindCounts = null ): string; -``` -Gets a list of columns with escaped identifiers - -```php -echo $dialect->getColumnList( - [ - "column1", - "column", - ] -); -``` - - -```php -public function getCustomFunctions(): array; -``` -Returns registered functions - - -```php -final public function getSqlColumn( mixed $column, string $escapeChar = null, mixed $bindCounts = null ): string; -``` -Resolve Column expressions - - -```php -public function getSqlExpression( array $expression, string $escapeChar = null, mixed $bindCounts = null ): string; -``` -Transforms an intermediate representation for an expression into a database system valid expression - - -```php -final public function getSqlTable( mixed $table, string $escapeChar = null ): string; -``` -Transform an intermediate representation of a schema/table into a -database system valid expression - - -```php -public function limit( string $sqlQuery, mixed $number ): string; -``` -Generates the SQL for LIMIT clause - -```php -// SELECTFROM robots LIMIT 10 -echo $dialect->limit( - "SELECTFROM robots", - 10 -); - -// SELECTFROM robots LIMIT 10 OFFSET 50 -echo $dialect->limit( - "SELECTFROM robots", - [10, 50] -); -``` - - -```php -public function registerCustomFunction( string $name, callable $customFunction ): Dialect; -``` -Registers custom SQL functions - - -```php -public function releaseSavepoint( string $name ): string; -``` -Generate SQL to release a savepoint - - -```php -public function rollbackSavepoint( string $name ): string; -``` -Generate SQL to rollback a savepoint - - -```php -public function select( array $definition ): string; -``` -Builds a SELECT statement - - -```php -public function supportsReleaseSavepoints(): bool; -``` -Checks whether the platform supports releasing savepoints. - - -```php -public function supportsSavepoints(): bool; -``` -Checks whether the platform supports savepoints - - -```php -protected function checkColumnType( ColumnInterface $column ): string; -``` -Checks the column type and if not string it returns the type reference - - -```php -protected function checkColumnTypeSql( ColumnInterface $column ): string; -``` -Checks the column type and returns the updated SQL statement - - -```php -protected function getColumnSize( ColumnInterface $column ): string; -``` -Returns the size of the column enclosed in parentheses - - -```php -protected function getColumnSizeAndScale( ColumnInterface $column ): string; -``` -Returns the column size and scale enclosed in parentheses - - -```php -final protected function getSqlExpressionAll( array $expression, string $escapeChar = null ): string; -``` -Resolve - - -```php -final protected function getSqlExpressionBinaryOperations( array $expression, string $escapeChar = null, mixed $bindCounts = null ): string; -``` -Resolve binary operations expressions - - -```php -final protected function getSqlExpressionCase( array $expression, string $escapeChar = null, mixed $bindCounts = null ): string; -``` -Resolve CASE expressions - - -```php -final protected function getSqlExpressionCastValue( array $expression, string $escapeChar = null, mixed $bindCounts = null ): string; -``` -Resolve CAST of values - - -```php -final protected function getSqlExpressionConvertValue( array $expression, string $escapeChar = null, mixed $bindCounts = null ): string; -``` -Resolve CONVERT of values encodings - - -```php -final protected function getSqlExpressionFrom( mixed $expression, string $escapeChar = null ): string; -``` -Resolve a FROM clause - - -```php -final protected function getSqlExpressionFunctionCall( array $expression, string $escapeChar = null, mixed $bindCounts ): string; -``` -Resolve function calls - - -```php -final protected function getSqlExpressionGroupBy( mixed $expression, string $escapeChar = null, mixed $bindCounts = null ): string; -``` -Resolve a GROUP BY clause - - -```php -final protected function getSqlExpressionHaving( array $expression, string $escapeChar = null, mixed $bindCounts = null ): string; -``` -Resolve a HAVING clause - - -```php -final protected function getSqlExpressionJoins( mixed $expression, string $escapeChar = null, mixed $bindCounts = null ): string; -``` -Resolve a JOINs clause - - -```php -final protected function getSqlExpressionLimit( mixed $expression, string $escapeChar = null, mixed $bindCounts = null ): string; -``` -Resolve a LIMIT clause - - -```php -final protected function getSqlExpressionList( array $expression, string $escapeChar = null, mixed $bindCounts = null ): string; -``` -Resolve Lists - - -```php -final protected function getSqlExpressionObject( array $expression, string $escapeChar = null, mixed $bindCounts = null ): string; -``` -Resolve object expressions - - -```php -final protected function getSqlExpressionOrderBy( mixed $expression, string $escapeChar = null, mixed $bindCounts = null ): string; -``` -Resolve an ORDER BY clause - - -```php -final protected function getSqlExpressionQualified( array $expression, string $escapeChar = null ): string; -``` -Resolve qualified expressions - - -```php -final protected function getSqlExpressionScalar( array $expression, string $escapeChar = null, mixed $bindCounts = null ): string; -``` -Resolve Column expressions - - -```php -final protected function getSqlExpressionUnaryOperations( array $expression, string $escapeChar = null, mixed $bindCounts = null ): string; -``` -Resolve unary operations expressions - - -```php -final protected function getSqlExpressionWhere( mixed $expression, string $escapeChar = null, mixed $bindCounts = null ): string; -``` -Resolve a WHERE clause - - -```php -protected function prepareColumnAlias( string $qualified, string $alias = null, string $escapeChar = null ): string; -``` -Prepares column for this RDBMS - - -```php -protected function prepareQualified( string $column, string $domain = null, string $escapeChar = null ): string; -``` -Prepares qualified for this RDBMS - - -```php -protected function prepareTable( string $table, string $schema = null, string $alias = null, string $escapeChar = null ): string; -``` -Prepares table for this RDBMS - - - - -

        Class Phalcon\Db\Dialect\Mysql

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/dialect/mysql.zep) - -| Namespace | Phalcon\Db\Dialect | -| Uses | Phalcon\Db\Dialect, Phalcon\Db\Column, Phalcon\Db\Exception, Phalcon\Db\IndexInterface, Phalcon\Db\ColumnInterface, Phalcon\Db\ReferenceInterface, Phalcon\Db\DialectInterface | -| Extends | Dialect | - -Generates database specific SQL for the MySQL RDBMS - - -## Properties -```php -/** - * @var string - */ -protected escapeChar = `; - -``` - -## Methods -```php -public function addColumn( string $tableName, string $schemaName, ColumnInterface $column ): string; -``` -Generates SQL to add a column to a table - - -```php -public function addForeignKey( string $tableName, string $schemaName, ReferenceInterface $reference ): string; -``` -Generates SQL to add an index to a table - - -```php -public function addIndex( string $tableName, string $schemaName, IndexInterface $index ): string; -``` -Generates SQL to add an index to a table - - -```php -public function addPrimaryKey( string $tableName, string $schemaName, IndexInterface $index ): string; -``` -Generates SQL to add the primary key to a table - - -```php -public function createTable( string $tableName, string $schemaName, array $definition ): string; -``` -Generates SQL to create a table - - -```php -public function createView( string $viewName, array $definition, string $schemaName = null ): string; -``` -Generates SQL to create a view - - -```php -public function describeColumns( string $table, string $schema = null ): string; -``` -Generates SQL describing a table - -```php -print_r( - $dialect->describeColumns("posts") -); -``` - - -```php -public function describeIndexes( string $table, string $schema = null ): string; -``` -Generates SQL to query indexes on a table - - -```php -public function describeReferences( string $table, string $schema = null ): string; -``` -Generates SQL to query foreign keys on a table - - -```php -public function dropColumn( string $tableName, string $schemaName, string $columnName ): string; -``` -Generates SQL to delete a column from a table - - -```php -public function dropForeignKey( string $tableName, string $schemaName, string $referenceName ): string; -``` -Generates SQL to delete a foreign key from a table - - -```php -public function dropIndex( string $tableName, string $schemaName, string $indexName ): string; -``` -Generates SQL to delete an index from a table - - -```php -public function dropPrimaryKey( string $tableName, string $schemaName ): string; -``` -Generates SQL to delete primary key from a table - - -```php -public function dropTable( string $tableName, string $schemaName = null, bool $ifExists = bool ): string; -``` -Generates SQL to drop a table - - -```php -public function dropView( string $viewName, string $schemaName = null, bool $ifExists = bool ): string; -``` -Generates SQL to drop a view - - -```php -public function getColumnDefinition( ColumnInterface $column ): string; -``` -Gets the column name in MySQL - - -```php -public function getForeignKeyChecks(): string; -``` -Generates SQL to check DB parameter FOREIGN_KEY_CHECKS. - - -```php -public function listTables( string $schemaName = null ): string; -``` -List all tables in database - -```php -print_r( - $dialect->listTables("blog") -); -``` - - -```php -public function listViews( string $schemaName = null ): string; -``` -Generates the SQL to list all views of a schema or user - - -```php -public function modifyColumn( string $tableName, string $schemaName, ColumnInterface $column, ColumnInterface $currentColumn = null ): string; -``` -Generates SQL to modify a column in a table - - -```php -public function sharedLock( string $sqlQuery ): string; -``` -Returns a SQL modified with a LOCK IN SHARE MODE clause - -```php -$sql = $dialect->sharedLock("SELECTFROM robots"); - -echo $sql; // SELECTFROM robots LOCK IN SHARE MODE -``` - - -```php -public function tableExists( string $tableName, string $schemaName = null ): string; -``` -Generates SQL checking for the existence of a schema.table - -```php -echo $dialect->tableExists("posts", "blog"); - -echo $dialect->tableExists("posts"); -``` - - -```php -public function tableOptions( string $table, string $schema = null ): string; -``` -Generates the SQL to describe the table creation options - - -```php -public function truncateTable( string $tableName, string $schemaName ): string; -``` -Generates SQL to truncate a table - - -```php -public function viewExists( string $viewName, string $schemaName = null ): string; -``` -Generates SQL checking for the existence of a schema.view - - -```php -protected function getTableOptions( array $definition ): string; -``` -Generates SQL to add the table creation options - - - - -

        Class Phalcon\Db\Dialect\Postgresql

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/dialect/postgresql.zep) - -| Namespace | Phalcon\Db\Dialect | -| Uses | Phalcon\Db\Dialect, Phalcon\Db\Column, Phalcon\Db\Exception, Phalcon\Db\IndexInterface, Phalcon\Db\ColumnInterface, Phalcon\Db\ReferenceInterface, Phalcon\Db\DialectInterface | -| Extends | Dialect | - -Generates database specific SQL for the PostgreSQL RDBMS - - -## Properties -```php -/** - * @var string - */ -protected escapeChar = \"; - -``` - -## Methods -```php -public function addColumn( string $tableName, string $schemaName, ColumnInterface $column ): string; -``` -Generates SQL to add a column to a table - - -```php -public function addForeignKey( string $tableName, string $schemaName, ReferenceInterface $reference ): string; -``` -Generates SQL to add an index to a table - - -```php -public function addIndex( string $tableName, string $schemaName, IndexInterface $index ): string; -``` -Generates SQL to add an index to a table - - -```php -public function addPrimaryKey( string $tableName, string $schemaName, IndexInterface $index ): string; -``` -Generates SQL to add the primary key to a table - - -```php -public function createTable( string $tableName, string $schemaName, array $definition ): string; -``` -Generates SQL to create a table - - -```php -public function createView( string $viewName, array $definition, string $schemaName = null ): string; -``` -Generates SQL to create a view - - -```php -public function describeColumns( string $table, string $schema = null ): string; -``` -Generates SQL describing a table - -```php -print_r( - $dialect->describeColumns("posts") -); -``` - - -```php -public function describeIndexes( string $table, string $schema = null ): string; -``` -Generates SQL to query indexes on a table - - -```php -public function describeReferences( string $table, string $schema = null ): string; -``` -Generates SQL to query foreign keys on a table - - -```php -public function dropColumn( string $tableName, string $schemaName, string $columnName ): string; -``` -Generates SQL to delete a column from a table - - -```php -public function dropForeignKey( string $tableName, string $schemaName, string $referenceName ): string; -``` -Generates SQL to delete a foreign key from a table - - -```php -public function dropIndex( string $tableName, string $schemaName, string $indexName ): string; -``` -Generates SQL to delete an index from a table - - -```php -public function dropPrimaryKey( string $tableName, string $schemaName ): string; -``` -Generates SQL to delete primary key from a table - - -```php -public function dropTable( string $tableName, string $schemaName = null, bool $ifExists = bool ): string; -``` -Generates SQL to drop a table - - -```php -public function dropView( string $viewName, string $schemaName = null, bool $ifExists = bool ): string; -``` -Generates SQL to drop a view - - -```php -public function getColumnDefinition( ColumnInterface $column ): string; -``` -Gets the column name in PostgreSQL - - -```php -public function listTables( string $schemaName = null ): string; -``` -List all tables in database - -```php -print_r( - $dialect->listTables("blog") -); -``` - - -```php -public function listViews( string $schemaName = null ): string; -``` -Generates the SQL to list all views of a schema or user - - -```php -public function modifyColumn( string $tableName, string $schemaName, ColumnInterface $column, ColumnInterface $currentColumn = null ): string; -``` -Generates SQL to modify a column in a table - - -```php -public function sharedLock( string $sqlQuery ): string; -``` -Returns a SQL modified a shared lock statement. For now this method -returns the original query - - -```php -public function tableExists( string $tableName, string $schemaName = null ): string; -``` -Generates SQL checking for the existence of a schema.table - -```php -echo $dialect->tableExists("posts", "blog"); - -echo $dialect->tableExists("posts"); -``` - - -```php -public function tableOptions( string $table, string $schema = null ): string; -``` -Generates the SQL to describe the table creation options - - -```php -public function truncateTable( string $tableName, string $schemaName ): string; -``` -Generates SQL to truncate a table - - -```php -public function viewExists( string $viewName, string $schemaName = null ): string; -``` -Generates SQL checking for the existence of a schema.view - - -```php -protected function castDefault( ColumnInterface $column ): string; -``` -// - -```php -protected function getTableOptions( array $definition ): string; -``` -// - - - -

        Class Phalcon\Db\Dialect\Sqlite

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/dialect/sqlite.zep) - -| Namespace | Phalcon\Db\Dialect | -| Uses | Phalcon\Db\Column, Phalcon\Db\Exception, Phalcon\Db\IndexInterface, Phalcon\Db\Dialect, Phalcon\Db\DialectInterface, Phalcon\Db\ColumnInterface, Phalcon\Db\ReferenceInterface | -| Extends | Dialect | - -Generates database specific SQL for the SQLite RDBMS - - -## Properties -```php -/** - * @var string - */ -protected escapeChar = \"; - -``` - -## Methods -```php -public function addColumn( string $tableName, string $schemaName, ColumnInterface $column ): string; -``` -Generates SQL to add a column to a table - - -```php -public function addForeignKey( string $tableName, string $schemaName, ReferenceInterface $reference ): string; -``` -Generates SQL to add an index to a table - - -```php -public function addIndex( string $tableName, string $schemaName, IndexInterface $index ): string; -``` -Generates SQL to add an index to a table - - -```php -public function addPrimaryKey( string $tableName, string $schemaName, IndexInterface $index ): string; -``` -Generates SQL to add the primary key to a table - - -```php -public function createTable( string $tableName, string $schemaName, array $definition ): string; -``` -Generates SQL to create a table - - -```php -public function createView( string $viewName, array $definition, string $schemaName = null ): string; -``` -Generates SQL to create a view - - -```php -public function describeColumns( string $table, string $schema = null ): string; -``` -Generates SQL describing a table - -```php -print_r( - $dialect->describeColumns("posts") -); -``` - - -```php -public function describeIndex( string $index ): string; -``` -Generates SQL to query indexes detail on a table - - -```php -public function describeIndexes( string $table, string $schema = null ): string; -``` -Generates SQL to query indexes on a table - - -```php -public function describeReferences( string $table, string $schema = null ): string; -``` -Generates SQL to query foreign keys on a table - - -```php -public function dropColumn( string $tableName, string $schemaName, string $columnName ): string; -``` -Generates SQL to delete a column from a table - - -```php -public function dropForeignKey( string $tableName, string $schemaName, string $referenceName ): string; -``` -Generates SQL to delete a foreign key from a table - - -```php -public function dropIndex( string $tableName, string $schemaName, string $indexName ): string; -``` -Generates SQL to delete an index from a table - - -```php -public function dropPrimaryKey( string $tableName, string $schemaName ): string; -``` -Generates SQL to delete primary key from a table - - -```php -public function dropTable( string $tableName, string $schemaName = null, bool $ifExists = bool ): string; -``` -Generates SQL to drop a table - - -```php -public function dropView( string $viewName, string $schemaName = null, bool $ifExists = bool ): string; -``` -Generates SQL to drop a view - - -```php -public function forUpdate( string $sqlQuery ): string; -``` -Returns a SQL modified with a FOR UPDATE clause. For SQLite it returns -the original query - - -```php -public function getColumnDefinition( ColumnInterface $column ): string; -``` -Gets the column name in SQLite - - -```php -public function listIndexesSql( string $table, string $schema = null, string $keyName = null ): string; -``` -Generates the SQL to get query list of indexes - -```php -print_r( - $dialect->listIndexesSql("blog") -); -``` - - -```php -public function listTables( string $schemaName = null ): string; -``` -List all tables in database - -```php -print_r( - $dialect->listTables("blog") -); -``` - - -```php -public function listViews( string $schemaName = null ): string; -``` -Generates the SQL to list all views of a schema or user - - -```php -public function modifyColumn( string $tableName, string $schemaName, ColumnInterface $column, ColumnInterface $currentColumn = null ): string; -``` -Generates SQL to modify a column in a table - - -```php -public function sharedLock( string $sqlQuery ): string; -``` -Returns a SQL modified a shared lock statement. For now this method -returns the original query - - -```php -public function tableExists( string $tableName, string $schemaName = null ): string; -``` -Generates SQL checking for the existence of a schema.table - -```php -echo $dialect->tableExists("posts", "blog"); - -echo $dialect->tableExists("posts"); -``` - - -```php -public function tableOptions( string $table, string $schema = null ): string; -``` -Generates the SQL to describe the table creation options - - -```php -public function truncateTable( string $tableName, string $schemaName ): string; -``` -Generates SQL to truncate a table - - -```php -public function viewExists( string $viewName, string $schemaName = null ): string; -``` -Generates SQL checking for the existence of a schema.view - - - - -

        Interface Phalcon\Db\DialectInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/dialectinterface.zep) - -| Namespace | Phalcon\Db | -| Uses | Phalcon\Db\ColumnInterface, Phalcon\Db\ReferenceInterface, Phalcon\Db\IndexInterface | - -Interface for Phalcon\Db dialects - - -## Methods -```php -public function addColumn( string $tableName, string $schemaName, ColumnInterface $column ): string; -``` -Generates SQL to add a column to a table - - -```php -public function addForeignKey( string $tableName, string $schemaName, ReferenceInterface $reference ): string; -``` -Generates SQL to add an index to a table - - -```php -public function addIndex( string $tableName, string $schemaName, IndexInterface $index ): string; -``` -Generates SQL to add an index to a table - - -```php -public function addPrimaryKey( string $tableName, string $schemaName, IndexInterface $index ): string; -``` -Generates SQL to add the primary key to a table - - -```php -public function createSavepoint( string $name ): string; -``` -Generate SQL to create a new savepoint - - -```php -public function createTable( string $tableName, string $schemaName, array $definition ): string; -``` -Generates SQL to create a table - - -```php -public function createView( string $viewName, array $definition, string $schemaName = null ): string; -``` -Generates SQL to create a view - - -```php -public function describeColumns( string $table, string $schema = null ): string; -``` -Generates SQL to describe a table - - -```php -public function describeIndexes( string $table, string $schema = null ): string; -``` -Generates SQL to query indexes on a table - - -```php -public function describeReferences( string $table, string $schema = null ): string; -``` -Generates SQL to query foreign keys on a table - - -```php -public function dropColumn( string $tableName, string $schemaName, string $columnName ): string; -``` -Generates SQL to delete a column from a table - - -```php -public function dropForeignKey( string $tableName, string $schemaName, string $referenceName ): string; -``` -Generates SQL to delete a foreign key from a table - - -```php -public function dropIndex( string $tableName, string $schemaName, string $indexName ): string; -``` - Generates SQL to delete an index from a table - - -```php -public function dropPrimaryKey( string $tableName, string $schemaName ): string; -``` -Generates SQL to delete primary key from a table - - -```php -public function dropTable( string $tableName, string $schemaName ): string; -``` -Generates SQL to drop a table - - -```php -public function dropView( string $viewName, string $schemaName = null, bool $ifExists = bool ): string; -``` -Generates SQL to drop a view - - -```php -public function forUpdate( string $sqlQuery ): string; -``` -Returns a SQL modified with a FOR UPDATE clause - - -```php -public function getColumnDefinition( ColumnInterface $column ): string; -``` -Gets the column name in RDBMS - - -```php -public function getColumnList( array $columnList ): string; -``` -Gets a list of columns - - -```php -public function getCustomFunctions(): array; -``` -Returns registered functions - - -```php -public function getSqlExpression( array $expression, string $escapeChar = null, mixed $bindCounts = null ): string; -``` -Transforms an intermediate representation for an expression into a -database system valid expression - - -```php -public function limit( string $sqlQuery, mixed $number ): string; -``` -Generates the SQL for LIMIT clause - - -```php -public function listTables( string $schemaName = null ): string; -``` -List all tables in database - - -```php -public function modifyColumn( string $tableName, string $schemaName, ColumnInterface $column, ColumnInterface $currentColumn = null ): string; -``` -Generates SQL to modify a column in a table - - -```php -public function registerCustomFunction( string $name, callable $customFunction ): Dialect; -``` -Registers custom SQL functions - - -```php -public function releaseSavepoint( string $name ): string; -``` -Generate SQL to release a savepoint - - -```php -public function rollbackSavepoint( string $name ): string; -``` -Generate SQL to rollback a savepoint - - -```php -public function select( array $definition ): string; -``` -Builds a SELECT statement - - -```php -public function sharedLock( string $sqlQuery ): string; -``` -Returns a SQL modified with a LOCK IN SHARE MODE clause - - -```php -public function supportsReleaseSavepoints(): bool; -``` -Checks whether the platform supports releasing savepoints. - - -```php -public function supportsSavepoints(): bool; -``` -Checks whether the platform supports savepoints - - -```php -public function tableExists( string $tableName, string $schemaName = null ): string; -``` -Generates SQL checking for the existence of a schema.table - - -```php -public function tableOptions( string $table, string $schema = null ): string; -``` -Generates the SQL to describe the table creation options - - -```php -public function viewExists( string $viewName, string $schemaName = null ): string; -``` -Generates SQL checking for the existence of a schema.view - - - - -

        Class Phalcon\Db\Enum

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/enum.zep) - -| Namespace | Phalcon\Db | - -Constants for Phalcon\Db - - -## Constants -```php -const FETCH_ASSOC; -const FETCH_BOTH; -const FETCH_BOUND; -const FETCH_CLASS; -const FETCH_CLASSTYPE; -const FETCH_COLUMN; -const FETCH_FUNC; -const FETCH_GROUP; -const FETCH_INTO; -const FETCH_KEY_PAIR; -const FETCH_LAZY; -const FETCH_NAMED; -const FETCH_NUM; -const FETCH_OBJ; -const FETCH_PROPS_LATE; -const FETCH_SERIALIZE; -const FETCH_UNIQUE; -``` - - -

        Class Phalcon\Db\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/exception.zep) - -| Namespace | Phalcon\Db | -| Extends | \Phalcon\Exception | - -Exceptions thrown in Phalcon\Db will use this class - - - -

        Class Phalcon\Db\Index

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/index.zep) - -| Namespace | Phalcon\Db | -| Implements | IndexInterface | - -Allows to define indexes to be used on tables. Indexes are a common way -to enhance database performance. An index allows the database server to find -and retrieve specific rows much faster than it could do without an index - -```php -// Define new unique index -$index_unique = new \Phalcon\Db\Index( - 'column_UNIQUE', - [ - 'column', - 'column', - ], - 'UNIQUE' -); - -// Define new primary index -$index_primary = new \Phalcon\Db\Index( - 'PRIMARY', - [ - 'column', - ] -); - -// Add index to existing table -$connection->addIndex("robots", null, $index_unique); -$connection->addIndex("robots", null, $index_primary); -``` - - -## Properties -```php -/** - * Index columns - * - * @var array - */ -protected columns; - -/** - * Index name - * - * @var string - */ -protected name; - -/** - * Index type - * - * @var string - */ -protected type; - -``` - -## Methods -```php -public function __construct( string $name, array $columns, string $type = string ): void; -``` -Phalcon\Db\Index constructor - - -```php -public function getColumns(): array -``` - - -```php -public function getName(): string -``` - - -```php -public function getType(): string -``` - - - - -

        Interface Phalcon\Db\IndexInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/indexinterface.zep) - -| Namespace | Phalcon\Db | - -Interface for Phalcon\Db\Index - - -## Methods -```php -public function getColumns(): array; -``` -Gets the columns that corresponds the index - - -```php -public function getName(): string; -``` -Gets the index name - - -```php -public function getType(): string; -``` -Gets the index type - - - - -

        Class Phalcon\Db\Profiler

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/profiler.zep) - -| Namespace | Phalcon\Db | -| Uses | Phalcon\Db\Profiler\Item | - -Instances of Phalcon\Db can generate execution profiles -on SQL statements sent to the relational database. Profiled -information includes execution time in milliseconds. -This helps you to identify bottlenecks in your applications. - -```php -use Phalcon\Db\Profiler; -use Phalcon\Events\Event; -use Phalcon\Events\Manager; - -$profiler = new Profiler(); -$eventsManager = new Manager(); - -$eventsManager->attach( - "db", - function (Event $event, $connection) use ($profiler) { - if ($event->getType() === "beforeQuery") { - $sql = $connection->getSQLStatement(); - - // Start a profile with the active connection - $profiler->startProfile($sql); - } - - if ($event->getType() === "afterQuery") { - // Stop the active profile - $profiler->stopProfile(); - } - } -); - -// Set the event manager on the connection -$connection->setEventsManager($eventsManager); - - -$sql = "SELECT buyer_name, quantity, product_name -FROM buyers LEFT JOIN products ON -buyers.pid=products.id"; - -// Execute a SQL statement -$connection->query($sql); - -// Get the last profile in the profiler -$profile = $profiler->getLastProfile(); - -echo "SQL Statement: ", $profile->getSQLStatement(), "\n"; -echo "Start Time: ", $profile->getInitialTime(), "\n"; -echo "Final Time: ", $profile->getFinalTime(), "\n"; -echo "Total Elapsed Time: ", $profile->getTotalElapsedSeconds(), "\n"; -``` - - -## Properties -```php -/** - * Active Phalcon\Db\Profiler\Item - * - * @var Phalcon\Db\Profiler\Item - */ -protected activeProfile; - -/** - * All the Phalcon\Db\Profiler\Item in the active profile - * - * @var \Phalcon\Db\Profiler\Item[] - */ -protected allProfiles; - -/** - * Total time spent by all profiles to complete - * - * @var float - */ -protected totalSeconds = 0; - -``` - -## Methods -```php -public function getLastProfile(): Item; -``` -Returns the last profile executed in the profiler - - -```php -public function getNumberTotalStatements(): int; -``` -Returns the total number of SQL statements processed - - -```php -public function getProfiles(): Item[]; -``` -Returns all the processed profiles - - -```php -public function getTotalElapsedSeconds(): double; -``` -Returns the total time in seconds spent by the profiles - - -```php -public function reset(): Profiler; -``` -Resets the profiler, cleaning up all the profiles - - -```php -public function startProfile( string $sqlStatement, mixed $sqlVariables = null, mixed $sqlBindTypes = null ): Profiler; -``` -Starts the profile of a SQL sentence - - -```php -public function stopProfile(): Profiler; -``` -Stops the active profile - - - - -

        Class Phalcon\Db\Profiler\Item

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/profiler/item.zep) - -| Namespace | Phalcon\Db\Profiler | - -This class identifies each profile in a Phalcon\Db\Profiler - - -## Properties -```php -/** - * Timestamp when the profile ended - * - * @var double - */ -protected finalTime; - -/** - * Timestamp when the profile started - * - * @var double - */ -protected initialTime; - -/** - * SQL bind types related to the profile - * - * @var array - */ -protected sqlBindTypes; - -/** - * SQL statement related to the profile - * - * @var string - */ -protected sqlStatement; - -/** - * SQL variables related to the profile - * - * @var array - */ -protected sqlVariables; - -``` - -## Methods -```php -public function getFinalTime(): double -``` - - -```php -public function getInitialTime(): double -``` - - -```php -public function getSqlBindTypes(): array -``` - - -```php -public function getSqlStatement(): string -``` - - -```php -public function getSqlVariables(): array -``` - - -```php -public function getTotalElapsedSeconds(): double; -``` -Returns the total time in seconds spent by the profile - - -```php -public function setFinalTime( double $finalTime ) -``` - - -```php -public function setInitialTime( double $initialTime ) -``` - - -```php -public function setSqlBindTypes( array $sqlBindTypes ) -``` - - -```php -public function setSqlStatement( string $sqlStatement ) -``` - - -```php -public function setSqlVariables( array $sqlVariables ) -``` - - - - -

        Class Phalcon\Db\RawValue

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/rawvalue.zep) - -| Namespace | Phalcon\Db | - -This class allows to insert/update raw data without quoting or formatting. - -The next example shows how to use the MySQL now() function as a field value. - -```php -$subscriber = new Subscribers(); - -$subscriber->email = "andres@phalcon.io"; -$subscriber->createdAt = new \Phalcon\Db\RawValue("now()"); - -$subscriber->save(); -``` - - -## Properties -```php -/** - * Raw value without quoting or formatting - * - * @var string - */ -protected value; - -``` - -## Methods -```php -public function __construct( mixed $value ): void; -``` -Phalcon\Db\RawValue constructor - - -```php -public function __toString(): string -``` - - -```php -public function getValue(): string -``` - - - - -

        Class Phalcon\Db\Reference

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/reference.zep) - -| Namespace | Phalcon\Db | -| Implements | ReferenceInterface | - -Allows to define reference constraints on tables - -```php -$reference = new \Phalcon\Db\Reference( - "field_fk", - [ - "referencedSchema" => "invoicing", - "referencedTable" => "products", - "columns" => [ - "producttype", - "product_code", - ], - "referencedColumns" => [ - "type", - "code", - ], - ] -); -``` - - -## Properties -```php -/** - * Local reference columns - * - * @var array - */ -protected columns; - -/** - * Constraint name - * - * @var string - */ -protected name; - -/** - * Referenced Columns - * - * @var array - */ -protected referencedColumns; - -/** - * Referenced Schema - * - * @var string - */ -protected referencedSchema; - -/** - * Referenced Table - * - * @var string - */ -protected referencedTable; - -/** - * Schema name - * - * @var string - */ -protected schemaName; - -/** - * ON DELETE - * - * @var string - */ -protected onDelete; - -/** - * ON UPDATE - * - * @var string - */ -protected onUpdate; - -``` - -## Methods -```php -public function __construct( string $name, array $definition ): void; -``` -Phalcon\Db\Reference constructor - - -```php -public function getColumns(): array -``` - - -```php -public function getName(): string -``` - - -```php -public function getOnDelete(): string -``` - - -```php -public function getOnUpdate(): string -``` - - -```php -public function getReferencedColumns(): array -``` - - -```php -public function getReferencedSchema(): string -``` - - -```php -public function getReferencedTable(): string -``` - - -```php -public function getSchemaName(): string -``` - - - - -

        Interface Phalcon\Db\ReferenceInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/referenceinterface.zep) - -| Namespace | Phalcon\Db | - -Interface for Phalcon\Db\Reference - - -## Methods -```php -public function getColumns(): array; -``` -Gets local columns which reference is based - - -```php -public function getName(): string; -``` -Gets the index name - - -```php -public function getOnDelete(): string; -``` -Gets the referenced on delete - - -```php -public function getOnUpdate(): string; -``` -Gets the referenced on update - - -```php -public function getReferencedColumns(): array; -``` -Gets referenced columns - - -```php -public function getReferencedSchema(): string; -``` -Gets the schema where referenced table is - - -```php -public function getReferencedTable(): string; -``` -Gets the referenced table - - -```php -public function getSchemaName(): string; -``` -Gets the schema where referenced table is - - - - -

        Class Phalcon\Db\Result\Pdo

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/result/pdo.zep) - -| Namespace | Phalcon\Db\Result | -| Uses | Phalcon\Db\Enum, Phalcon\Db\ResultInterface, Phalcon\Db\Adapter\AdapterInterface | -| Implements | ResultInterface | - -Encapsulates the resultset internals - -```php -$result = $connection->query("SELECTFROM robots ORDER BY name"); - -$result->setFetchMode( - \Phalcon\Db\Enum::FETCH_NUM -); - -while ($robot = $result->fetchArray()) { - print_r($robot); -} -``` - - -## Properties -```php -// -protected bindParams; - -// -protected bindTypes; - -// -protected connection; - -/** - * Active fetch mode - */ -protected fetchMode; - -/** - * Internal resultset - * - * @var \PDOStatement - */ -protected pdoStatement; - -// -protected result; - -// -protected rowCount = false; - -// -protected sqlStatement; - -``` - -## Methods -```php -public function __construct( AdapterInterface $connection, \PDOStatement $result, mixed $sqlStatement = null, mixed $bindParams = null, mixed $bindTypes = null ): void; -``` -Phalcon\Db\Result\Pdo constructor - - -```php -public function dataSeek( long $number ): void; -``` -Moves internal resultset cursor to another position letting us to fetch a -certain row - -```php -$result = $connection->query( - "SELECTFROM robots ORDER BY name" -); - -// Move to third row on result -$result->dataSeek(2); - -// Fetch third row -$row = $result->fetch(); -``` - - -```php -public function execute(): bool; -``` -Allows to execute the statement again. Some database systems don't -support scrollable cursors. So, as cursors are forward only, we need to -execute the cursor again to fetch rows from the begining - - -```php -public function fetch( mixed $fetchStyle = null, mixed $cursorOrientation = null, mixed $cursorOffset = null ); -``` -Fetches an array/object of strings that corresponds to the fetched row, -or FALSE if there are no more rows. This method is affected by the active -fetch flag set using `Phalcon\Db\Result\Pdo::setFetchMode()` - -```php -$result = $connection->query("SELECTFROM robots ORDER BY name"); - -$result->setFetchMode( - \Phalcon\Enum::FETCH_OBJ -); - -while ($robot = $result->fetch()) { - echo $robot->name; -} -``` - - -```php -public function fetchAll( mixed $fetchStyle = null, mixed $fetchArgument = null, mixed $ctorArgs = null ): array; -``` -Returns an array of arrays containing all the records in the result -This method is affected by the active fetch flag set using -`Phalcon\Db\Result\Pdo::setFetchMode()` - -```php -$result = $connection->query( - "SELECTFROM robots ORDER BY name" -); - -$robots = $result->fetchAll(); -``` - - -```php -public function fetchArray(); -``` -Returns an array of strings that corresponds to the fetched row, or FALSE -if there are no more rows. This method is affected by the active fetch -flag set using `Phalcon\Db\Result\Pdo::setFetchMode()` - -```php -$result = $connection->query("SELECTFROM robots ORDER BY name"); - -$result->setFetchMode( - \Phalcon\Enum::FETCH_NUM -); - -while ($robot = result->fetchArray()) { - print_r($robot); -} -``` - - -```php -public function getInternalResult(): \PDOStatement; -``` -Gets the internal PDO result object - - -```php -public function numRows(): int; -``` -Gets number of rows returned by a resultset - -```php -$result = $connection->query( - "SELECTFROM robots ORDER BY name" -); - -echo "There are ", $result->numRows(), " rows in the resultset"; -``` - - -```php -public function setFetchMode( int $fetchMode, mixed $colNoOrClassNameOrObject = null, mixed $ctorargs = null ): bool; -``` -Changes the fetching mode affecting Phalcon\Db\Result\Pdo::fetch() - -```php -// Return array with integer indexes -$result->setFetchMode( - \Phalcon\Enum::FETCH_NUM -); - -// Return associative array without integer indexes -$result->setFetchMode( - \Phalcon\Enum::FETCH_ASSOC -); - -// Return associative array together with integer indexes -$result->setFetchMode( - \Phalcon\Enum::FETCH_BOTH -); - -// Return an object -$result->setFetchMode( - \Phalcon\Enum::FETCH_OBJ -); -``` - - - - -

        Interface Phalcon\Db\ResultInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/db/resultinterface.zep) - -| Namespace | Phalcon\Db | - -Interface for Phalcon\Db\Result objects - - -## Methods -```php -public function dataSeek( long $number ); -``` -Moves internal resultset cursor to another position letting us to fetch a -certain row - - -```php -public function execute(): bool; -``` -Allows to executes the statement again. Some database systems don't -support scrollable cursors. So, as cursors are forward only, we need to -execute the cursor again to fetch rows from the begining - - -```php -public function fetch(): mixed; -``` -Fetches an array/object of strings that corresponds to the fetched row, -or FALSE if there are no more rows. This method is affected by the active -fetch flag set using `Phalcon\Db\Result\Pdo::setFetchMode()` - - -```php -public function fetchAll(): array; -``` -Returns an array of arrays containing all the records in the result. This -method is affected by the active fetch flag set using -`Phalcon\Db\Result\Pdo::setFetchMode()` - - -```php -public function fetchArray(): mixed; -``` -Returns an array of strings that corresponds to the fetched row, or FALSE -if there are no more rows. This method is affected by the active fetch -flag set using `Phalcon\Db\Result\Pdo::setFetchMode()` - - -```php -public function getInternalResult(): \PDOStatement; -``` -Gets the internal PDO result object - - -```php -public function numRows(): int; -``` -Gets number of rows returned by a resultset - - -```php -public function setFetchMode( int $fetchMode ): bool; -``` -Changes the fetching mode affecting Phalcon\Db\Result\Pdo::fetch() - - diff --git a/nikos/api/Phalcon_Debug.md b/nikos/api/Phalcon_Debug.md deleted file mode 100644 index ec9ea486d3c..00000000000 --- a/nikos/api/Phalcon_Debug.md +++ /dev/null @@ -1,332 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Debug' ---- - -* [Phalcon\Debug](#debug) -* [Phalcon\Debug\Dump](#debug-dump) -* [Phalcon\Debug\Exception](#debug-exception) - -

        Class Phalcon\Debug

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/debug.zep) - -| Namespace | Phalcon | -| Uses | ErrorException, Phalcon\Helper\Arr, Phalcon\Version, Phalcon\Tag, ReflectionClass, ReflectionFunction | - -Provides debug capabilities to Phalcon applications - - -## Properties -```php -/** - * @var array - */ -protected blacklist; - -// -protected data; - -/** - * @var bool - */ -protected hideDocumentRoot = false; - -/** - * @var bool - */ -protected static isActive; - -/** - * @var bool - */ -protected showBackTrace = true; - -/** - * @var bool - */ -protected showFileFragment = false; - -/** - * @var bool - */ -protected showFiles = true; - -/** - * @var string - */ -protected uri = https://assets.phalcon.io/debug/4.0.x/; - -``` - -## Methods -```php -public function clearVars(): Debug; -``` -Clears are variables added previously - - -```php -public function debugVar( mixed $varz, string $key = null ): Debug; -``` -Adds a variable to the debug output - - -```php -public function getCssSources(): string; -``` -Returns the css sources - - -```php -public function getJsSources(): string; -``` -Returns the javascript sources - - -```php -public function getVersion(): string; -``` -Generates a link to the current version documentation - - -```php -public function halt(): void; -``` -Halts the request showing a backtrace - - -```php -public function listen( bool $exceptions = bool, bool $lowSeverity = bool ): Debug; -``` -Listen for uncaught exceptions and unsilent notices or warnings - - -```php -public function listenExceptions(): Debug; -``` -Listen for uncaught exceptions - - -```php -public function listenLowSeverity(): Debug; -``` -Listen for unsilent notices or warnings - - -```php -public function onUncaughtException( \Exception $exception ): bool; -``` -Handles uncaught exceptions - - -```php -public function onUncaughtLowSeverity( mixed $severity, mixed $message, mixed $file, mixed $line, mixed $context ): void; -``` -Throws an exception when a notice or warning is raised - - -```php -public function setBlacklist( array $blacklist ): Debug; -``` -Sets if files the exception's backtrace must be showed - - -```php -public function setShowBackTrace( bool $showBackTrace ): Debug; -``` -Sets if files the exception's backtrace must be showed - - -```php -public function setShowFileFragment( bool $showFileFragment ): Debug; -``` -Sets if files must be completely opened and showed in the output -or just the fragment related to the exception - - -```php -public function setShowFiles( bool $showFiles ): Debug; -``` -Set if files part of the backtrace must be shown in the output - - -```php -public function setUri( string $uri ): Debug; -``` -Change the base URI for static resources - - -```php -protected function escapeString( mixed $value ): string; -``` -Escapes a string with htmlentities - - -```php -protected function getArrayDump( array $argument, mixed $n = int ): string | null; -``` -Produces a recursive representation of an array - - -```php -protected function getVarDump( mixed $variable ): string; -``` -Produces an string representation of a variable - - -```php -final protected function showTraceItem( int $n, array $trace ): string; -``` -Shows a backtrace item - - - - -

        Class Phalcon\Debug\Dump

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/debug/dump.zep) - -| Namespace | Phalcon\Debug | -| Uses | Phalcon\Di, Reflection, ReflectionClass, ReflectionProperty, stdClass | - -Dumps information about a variable(s) - -```php -$foo = 123; - -echo (new \Phalcon\Debug\Dump())->variable($foo, "foo"); -``` - -```php -$foo = "string"; -$bar = ["key" => "value"]; -$baz = new stdClass(); - -echo (new \Phalcon\Debug\Dump())->variables($foo, $bar, $baz); -``` - - -## Properties -```php -/** - * @var bool - */ -protected detailed = false; - -/** - * @var array - */ -protected methods; - -/** - * @var array - */ -protected styles; - -``` - -## Methods -```php -public function __construct( array $styles = [], bool $detailed = bool ): void; -``` -Phalcon\Debug\Dump constructor - - -```php -public function all(): string; -``` -Alias of variables() method - - -```php -public function getDetailed(): bool -``` - - -```php -public function one( mixed $variable, string $name = null ): string; -``` -Alias of variable() method - - -```php -public function setDetailed( bool $detailed ) -``` - - -```php -public function setStyles( array $styles = [] ): array; -``` -Set styles for vars type - - -```php -public function toJson( mixed $variable ): string; -``` -Returns an JSON string of information about a single variable. - -```php -$foo = [ - "key" => "value", -]; - -echo (new \Phalcon\Debug\Dump())->toJson($foo); - -$foo = new stdClass(); -$foo->bar = "buz"; - -echo (new \Phalcon\Debug\Dump())->toJson($foo); -``` - - -```php -public function variable( mixed $variable, string $name = null ): string; -``` -Returns an HTML string of information about a single variable. - -```php -echo (new \Phalcon\Debug\Dump())->variable($foo, "foo"); -``` - - -```php -public function variables(): string; -``` -Returns an HTML string of debugging information about any number of -variables, each wrapped in a "pre" tag. - -```php -$foo = "string"; -$bar = ["key" => "value"]; -$baz = new stdClass(); - -echo (new \Phalcon\Debug\Dump())->variables($foo, $bar, $baz); -``` - - -```php -protected function getStyle( string $type ): string; -``` -Get style for type - - -```php -protected function output( mixed $variable, string $name = null, int $tab = int ): string; -``` -Prepare an HTML string of information about a single variable. - - - - -

        Class Phalcon\Debug\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/debug/exception.zep) - -| Namespace | Phalcon\Debug | -| Extends | \Phalcon\Exception | - -Exceptions thrown in Phalcon\Debug will use this class - diff --git a/nikos/api/Phalcon_Di.md b/nikos/api/Phalcon_Di.md deleted file mode 100644 index 00b71a15236..00000000000 --- a/nikos/api/Phalcon_Di.md +++ /dev/null @@ -1,863 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Di' ---- - -* [Phalcon\Di](#di) -* [Phalcon\Di\AbstractInjectionAware](#di-abstractinjectionaware) -* [Phalcon\Di\DiInterface](#di-diinterface) -* [Phalcon\Di\Exception](#di-exception) -* [Phalcon\Di\Exception\ServiceResolutionException](#di-exception-serviceresolutionexception) -* [Phalcon\Di\FactoryDefault](#di-factorydefault) -* [Phalcon\Di\FactoryDefault\Cli](#di-factorydefault-cli) -* [Phalcon\Di\Injectable](#di-injectable) -* [Phalcon\Di\InjectionAwareInterface](#di-injectionawareinterface) -* [Phalcon\Di\Service](#di-service) -* [Phalcon\Di\Service\Builder](#di-service-builder) -* [Phalcon\Di\ServiceInterface](#di-serviceinterface) -* [Phalcon\Di\ServiceProviderInterface](#di-serviceproviderinterface) - -

        Class Phalcon\Di

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/di.zep) - -| Namespace | Phalcon | -| Uses | Phalcon\Config, Phalcon\Di\Service, Phalcon\Di\DiInterface, Phalcon\Di\Exception, Phalcon\Di\Exception\ServiceResolutionException, Phalcon\Config\Adapter\Php, Phalcon\Config\Adapter\Yaml, Phalcon\Di\ServiceInterface, Phalcon\Events\ManagerInterface, Phalcon\Di\InjectionAwareInterface, Phalcon\Di\ServiceProviderInterface | -| Implements | DiInterface | - -Phalcon\Di is a component that implements Dependency Injection/Service -Location of services and it's itself a container for them. - -Since Phalcon is highly decoupled, Phalcon\Di is essential to integrate the -different components of the framework. The developer can also use this -component to inject dependencies and manage global instances of the different -classes used in the application. - -Basically, this component implements the `Inversion of Control` pattern. -Applying this, the objects do not receive their dependencies using setters or -constructors, but requesting a service dependency injector. This reduces the -overall complexity, since there is only one way to get the required -dependencies within a component. - -Additionally, this pattern increases testability in the code, thus making it -less prone to errors. - -```php -use Phalcon\Di; -use Phalcon\Http\Request; - -$di = new Di(); - -// Using a string definition -$di->set("request", Request::class, true); - -// Using an anonymous function -$di->setShared( - "request", - function () { - return new Request(); - } -); - -$request = $di->getRequest(); -``` - - -## Properties -```php -/** - * List of registered services - */ -protected services; - -/** - * List of shared instances - */ -protected sharedInstances; - -/** - * Events Manager - * - * @var ManagerInterface - */ -protected eventsManager; - -/** - * Latest DI build - */ -protected static _default; - -``` - -## Methods -```php -public function __call( string $method, array $arguments = [] ): mixed | null; -``` -Magic method to get or set services using setters/getters - - -```php -public function __construct(): void; -``` -Phalcon\Di constructor - - -```php -public function attempt( string $name, mixed $definition, bool $shared = bool ): ServiceInterface | bool; -``` -Attempts to register a service in the services container -Only is successful if a service hasn't been registered previously -with the same name - - -```php -public function get( string $name, mixed $parameters = null ): mixed; -``` -Resolves the service based on its configuration - - -```php -public function getInternalEventsManager(): ManagerInterface; -``` -Returns the internal event manager - - -```php -public function getRaw( string $name ): mixed; -``` -Returns a service definition without resolving - - -```php -public function getService( string $name ): ServiceInterface; -``` -Returns a Phalcon\Di\Service instance - - -```php -public function getServices(): ServiceInterface[]; -``` -Return the services registered in the DI - - -```php -public function getShared( string $name, mixed $parameters = null ): mixed; -``` -Resolves a service, the resolved service is stored in the DI, subsequent -requests for this service will return the same instance - - -```php -public function has( string $name ): bool; -``` -Check whether the DI contains a service by a name - - -```php -public function loadFromPhp( string $filePath ): void; -``` -Loads services from a php config file. - -```php -$di->loadFromPhp("path/services.php"); -``` - -And the services can be specified in the file as: - -```php -return [ - 'myComponent' => [ - 'className' => '\Acme\Components\MyComponent', - 'shared' => true, - ], - 'group' => [ - 'className' => '\Acme\Group', - 'arguments' => [ - [ - 'type' => 'service', - 'service' => 'myComponent', - ], - ], - ], - 'user' => [ - 'className' => '\Acme\User', - ], -]; -``` - -@link https://docs.phalcon.io/en/latest/reference/di.html - - -```php -public function loadFromYaml( string $filePath, array $callbacks = null ): void; -``` -Loads services from a yaml file. - -```php -$di->loadFromYaml( - "path/services.yaml", - [ - "!approot" => function ($value) { - return dirname(__DIR__) . $value; - } - ] -); -``` - -And the services can be specified in the file as: - -```php -myComponent: - className: \Acme\Components\MyComponent - shared: true - -group: - className: \Acme\Group - arguments: - - type: service - name: myComponent - -user: - className: \Acme\User -``` - -@link https://docs.phalcon.io/en/latest/reference/di.html - - -```php -public function offsetExists( mixed $name ): bool; -``` -Check if a service is registered using the array syntax - - -```php -public function offsetGet( mixed $name ): mixed; -``` -Allows to obtain a shared service using the array syntax - -```php -var_dump($di["request"]); -``` - - -```php -public function offsetSet( mixed $name, mixed $definition ): void; -``` -Allows to register a shared service using the array syntax - -```php -$di["request"] = new \Phalcon\Http\Request(); -``` - - -```php -public function offsetUnset( mixed $name ): void; -``` -Removes a service from the services container using the array syntax - - -```php -public function register( ServiceProviderInterface $provider ): void; -``` -Registers a service provider. - -```php -use Phalcon\Di\DiInterface; -use Phalcon\Di\ServiceProviderInterface; - -class SomeServiceProvider implements ServiceProviderInterface -{ - public function register(DiInterface $di) - { - $di->setShared( - 'service', - function () { - // ... - } - ); - } -} -``` - - -```php -public function remove( string $name ): void; -``` -Removes a service in the services container -It also removes any shared instance created for the service - - -```php -public function set( string $name, mixed $definition, bool $shared = bool ): ServiceInterface; -``` -Registers a service in the services container - - -```php -public function setInternalEventsManager( ManagerInterface $eventsManager ); -``` -Sets the internal event manager - - -```php -public function setRaw( string $name, ServiceInterface $rawDefinition ): ServiceInterface; -``` -Sets a service using a raw Phalcon\Di\Service definition - - -```php -public function setShared( string $name, mixed $definition ): ServiceInterface; -``` -Registers an "always shared" service in the services container - - -```php -protected function loadFromConfig( Config $config ): void; -``` -Loads services from a Config object. - - - - -

        Abstract Class Phalcon\Di\AbstractInjectionAware

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/di/abstractinjectionaware.zep) - -| Namespace | Phalcon\Di | -| Uses | Phalcon\Di, Phalcon\Di\DiInterface, Phalcon\Di\InjectionAwareInterface | -| Implements | InjectionAwareInterface | - -This abstract class offers common access to the DI in a class - - -## Properties -```php -/** - * Dependency Injector - * - * @var DiInterface - */ -protected container; - -``` - -## Methods -```php -public function getDI(): DiInterface; -``` -Returns the internal dependency injector - - -```php -public function setDI( DiInterface $container ): void; -``` -Sets the dependency injector - - - - -

        Interface Phalcon\Di\DiInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/di/diinterface.zep) - -| Namespace | Phalcon\Di | -| Uses | ArrayAccess, Phalcon\Di\ServiceInterface | -| Extends | ArrayAccess | - -Interface for Phalcon\Di - - -## Methods -```php -public function attempt( string $name, mixed $definition, bool $shared = bool ): ServiceInterface | bool; -``` -Attempts to register a service in the services container -Only is successful if a service hasn't been registered previously -with the same name - -@param mixed definition - - -```php -public function get( string $name, mixed $parameters = null ): mixed; -``` -Resolves the service based on its configuration - - -```php -public function getRaw( string $name ): mixed; -``` -Returns a service definition without resolving - - -```php -public function getService( string $name ): ServiceInterface; -``` -Returns the corresponding Phalcon\Di\Service instance for a service - - -```php -public function getServices(): ServiceInterface[]; -``` -Return the services registered in the DI - - -```php -public function getShared( string $name, mixed $parameters = null ): mixed; -``` -Returns a shared service based on their configuration - - -```php -public function has( string $name ): bool; -``` -Check whether the DI contains a service by a name - - -```php -public function remove( string $name ): void; -``` -Removes a service in the services container - - -```php -public function set( string $name, mixed $definition, bool $shared = bool ): ServiceInterface; -``` -Registers a service in the services container - - -```php -public function setRaw( string $name, ServiceInterface $rawDefinition ): ServiceInterface; -``` -Sets a service using a raw Phalcon\Di\Service definition - - -```php -public function setShared( string $name, mixed $definition ): ServiceInterface; -``` -Registers an "always shared" service in the services container - - - - -

        Class Phalcon\Di\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/di/exception.zep) - -| Namespace | Phalcon\Di | -| Extends | \Phalcon\Exception | - -Exceptions thrown in Phalcon\Di will use this class - - - -

        Class Phalcon\Di\Exception\ServiceResolutionException

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/di/exception/serviceresolutionexception.zep) - -| Namespace | Phalcon\Di\Exception | -| Uses | Phalcon\Di\Exception\ServiceResolutionException | -| Extends | \Phalcon\Di\Exception | - - Phalcon\Di\Exception\ServiceResolutionException - - - -

        Class Phalcon\Di\FactoryDefault

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/di/factorydefault.zep) - -| Namespace | Phalcon\Di | -| Uses | Phalcon\Filter\FilterFactory | -| Extends | \Phalcon\Di | - -This is a variant of the standard Phalcon\Di. By default it automatically -registers all the services provided by the framework. Thanks to this, the -developer does not need to register each service individually providing a -full stack framework - - -## Methods -```php -public function __construct(): void; -``` -Phalcon\Di\FactoryDefault constructor - - - - -

        Class Phalcon\Di\FactoryDefault\Cli

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/di/factorydefault/cli.zep) - -| Namespace | Phalcon\Di\FactoryDefault | -| Uses | Phalcon\Di\FactoryDefault, Phalcon\Di\Service, Phalcon\Filter\FilterFactory | -| Extends | FactoryDefault | - -Phalcon\Di\FactoryDefault\Cli - -This is a variant of the standard Phalcon\Di. By default it automatically -registers all the services provided by the framework. -Thanks to this, the developer does not need to register each service individually. -This class is specially suitable for CLI applications - - -## Methods -```php -public function __construct(): void; -``` -Phalcon\Di\FactoryDefault\Cli constructor - - - - -

        Abstract Class Phalcon\Di\Injectable

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/di/injectable.zep) - -| Namespace | Phalcon\Di | -| Uses | Phalcon\Di, Phalcon\Di\DiInterface, Phalcon\Events\ManagerInterface, Phalcon\Di\InjectionAwareInterface, Phalcon\Events\EventsAwareInterface, Phalcon\Di\Exception, Phalcon\Session\BagInterface | -| Implements | InjectionAwareInterface, EventsAwareInterface | - -This class allows to access services in the services container by just only -accessing a public property with the same name of a registered service - -@property \Phalcon\Mvc\Dispatcher|\Phalcon\Mvc\DispatcherInterface $dispatcher -@property \Phalcon\Mvc\Router|\Phalcon\Mvc\RouterInterface $router -@property \Phalcon\Url|\Phalcon\Url\UrlInterface $url -@property \Phalcon\Http\Request|\Phalcon\Http\RequestInterface $request -@property \Phalcon\Http\Response|\Phalcon\Http\ResponseInterface $response -@property \Phalcon\Http\Response\Cookies|\Phalcon\Http\Response\CookiesInterface $cookies -@property \Phalcon\Filter\FilterLocator $filter -@property \Phalcon\Flash\Direct $flash -@property \Phalcon\Flash\Session $flashSession -@property \Phalcon\Session\ManagerInterface $session -@property \Phalcon\Events\Manager|\Phalcon\Events\ManagerInterface $eventsManager -@property \Phalcon\Db\Adapter\AdapterInterface $db -@property \Phalcon\Security $security -@property \Phalcon\Crypt|\Phalcon\CryptInterface $crypt -@property \Phalcon\Tag $tag -@property \Phalcon\Escaper|\Phalcon\Escaper\EscaperInterface $escaper -@property \Phalcon\Annotations\Adapter\Memory|\Phalcon\Annotations\Adapter $annotations -@property \Phalcon\Mvc\Model\Manager|\Phalcon\Mvc\Model\ManagerInterface $modelsManager -@property \Phalcon\Mvc\Model\MetaData\Memory|\Phalcon\Mvc\Model\MetadataInterface $modelsMetadata -@property \Phalcon\Mvc\Model\Transaction\Manager|\Phalcon\Mvc\Model\Transaction\ManagerInterface $transactionManager -@property \Phalcon\Assets\Manager $assets -@property \Phalcon\Di|\Phalcon\Di\DiInterface $di -@property \Phalcon\Session\Bag|\Phalcon\Session\BagInterface $persistent -@property \Phalcon\Mvc\View|\Phalcon\Mvc\ViewInterface $view - - -## Properties -```php -/** - * Dependency Injector - * - * @var DiInterface - */ -protected container; - -/** - * Events Manager - * - * @var \Phalcon\Events\ManagerInterface - */ -protected eventsManager; - -``` - -## Methods -```php -public function __get( string $propertyName ): mixed | null; -``` -Magic method __get - - -```php -public function getDI(): DiInterface; -``` -Returns the internal dependency injector - - -```php -public function getEventsManager(): ManagerInterface; -``` -Returns the internal event manager - - -```php -public function setDI( DiInterface $container ): void; -``` -Sets the dependency injector - - -```php -public function setEventsManager( ManagerInterface $eventsManager ): void; -``` -Sets the event manager - - - - -

        Interface Phalcon\Di\InjectionAwareInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/di/injectionawareinterface.zep) - -| Namespace | Phalcon\Di | -| Uses | Phalcon\Di\DiInterface | - -This interface must be implemented in those classes that uses internally the -Phalcon\Di that creates them - - -## Methods -```php -public function getDI(): DiInterface; -``` -Returns the internal dependency injector - - -```php -public function setDI( DiInterface $container ): void; -``` -Sets the dependency injector - - - - -

        Class Phalcon\Di\Service

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/di/service.zep) - -| Namespace | Phalcon\Di | -| Uses | Closure, Phalcon\Di\DiInterface, Phalcon\Di\Exception, Phalcon\Di\Exception\ServiceResolutionException, Phalcon\Di\ServiceInterface, Phalcon\Di\Service\Builder | -| Implements | ServiceInterface | - -Represents individually a service in the services container - -```php -$service = new \Phalcon\Di\Service( - "request", - \Phalcon\Http\Request::class -); - -$request = service->resolve(); -``` - - -## Properties -```php -// -protected definition; - -/** - * @var bool - */ -protected resolved = false; - -/** - * @var bool - */ -protected shared = false; - -// -protected sharedInstance; - -``` - -## Methods -```php -final public function __construct( mixed $definition, bool $shared = bool ): void; -``` -Phalcon\Di\Service - - -```php -public function getDefinition(): mixed; -``` -Returns the service definition - - -```php -public function getParameter( int $position ); -``` -Returns a parameter in a specific position - -@return array - - -```php -public function isResolved(): bool; -``` -Returns true if the service was resolved - - -```php -public function isShared(): bool; -``` -Check whether the service is shared or not - - -```php -public function resolve( mixed $parameters = null, DiInterface $container = null ): mixed; -``` -Resolves the service - -@param array parameters - - -```php -public function setDefinition( mixed $definition ): void; -``` -Set the service definition - - -```php -public function setParameter( int $position, array $parameter ): ServiceInterface; -``` -Changes a parameter in the definition without resolve the service - - -```php -public function setShared( bool $shared ): void; -``` -Sets if the service is shared or not - - -```php -public function setSharedInstance( mixed $sharedInstance ): void; -``` -Sets/Resets the shared instance related to the service - - - - -

        Class Phalcon\Di\Service\Builder

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/di/service/builder.zep) - -| Namespace | Phalcon\Di\Service | -| Uses | Phalcon\Di\DiInterface, Phalcon\Di\Exception | - -Phalcon\Di\Service\Builder - -This class builds instances based on complex definitions - - -## Methods -```php -public function build( DiInterface $container, array $definition, mixed $parameters = null ); -``` -Builds a service using a complex service definition - -@param array parameters -@return mixed - - - - -

        Interface Phalcon\Di\ServiceInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/di/serviceinterface.zep) - -| Namespace | Phalcon\Di | -| Uses | Phalcon\Di\DiInterface | - -Represents a service in the services container - - -## Methods -```php -public function getDefinition(): mixed; -``` -Returns the service definition - - -```php -public function getParameter( int $position ); -``` -Returns a parameter in a specific position - -@return array - - -```php -public function isResolved(): bool; -``` -Returns true if the service was resolved - - -```php -public function isShared(): bool; -``` -Check whether the service is shared or not - - -```php -public function resolve( mixed $parameters = null, DiInterface $container = null ): mixed; -``` -Resolves the service - -@param array parameters - - -```php -public function setDefinition( mixed $definition ); -``` -Set the service definition - - -```php -public function setParameter( int $position, array $parameter ): ServiceInterface; -``` -Changes a parameter in the definition without resolve the service - - -```php -public function setShared( bool $shared ); -``` -Sets if the service is shared or not - - - - -

        Interface Phalcon\Di\ServiceProviderInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/di/serviceproviderinterface.zep) - -| Namespace | Phalcon\Di | -| Uses | Phalcon\Di\DiInterface | - -Should be implemented by service providers, or such components, which -register a service in the service container. - -```php -namespace Acme; - -use Phalcon\Di\DiInterface; -use Phalcon\Di\ServiceProviderInterface; - -class SomeServiceProvider implements ServiceProviderInterface -{ - public function register(DiInterface $di) - { - $di->setShared( - 'service', - function () { - // ... - } - ); - } -} -``` - - -## Methods -```php -public function register( DiInterface $di ): void; -``` -Registers a service provider. - - diff --git a/nikos/api/Phalcon_Dispatcher.md b/nikos/api/Phalcon_Dispatcher.md deleted file mode 100644 index 06824a48551..00000000000 --- a/nikos/api/Phalcon_Dispatcher.md +++ /dev/null @@ -1,532 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Dispatcher' ---- - -* [Phalcon\Dispatcher\AbstractDispatcher](#dispatcher-abstractdispatcher) -* [Phalcon\Dispatcher\DispatcherInterface](#dispatcher-dispatcherinterface) -* [Phalcon\Dispatcher\Exception](#dispatcher-exception) - -

        Abstract Class Phalcon\Dispatcher\AbstractDispatcher

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/dispatcher/abstractdispatcher.zep) - -| Namespace | Phalcon\Dispatcher | -| Uses | Exception, Phalcon\Di\DiInterface, Phalcon\Di\AbstractInjectionAware, Phalcon\Dispatcher\DispatcherInterface, Phalcon\Dispatcher\Exception, Phalcon\Events\EventsAwareInterface, Phalcon\Events\ManagerInterface, Phalcon\Filter\FilterInterface, Phalcon\Mvc\Model\Binder, Phalcon\Mvc\Model\BinderInterface | -| Extends | AbstractInjectionAware | -| Implements | DispatcherInterface, EventsAwareInterface | - -This is the base class for Phalcon\Mvc\Dispatcher and Phalcon\Cli\Dispatcher. -This class can't be instantiated directly, you can use it to create your own -dispatchers. - - -## Properties -```php -// -protected activeHandler; - -/** - * @var array - */ -protected activeMethodMap; - -// -protected actionName; - -/** - * @var string - */ -protected actionSuffix = Action; - -/** - * @var array - */ -protected camelCaseMap; - -/** - * @var string - */ -protected defaultAction = ; - -// -protected defaultNamespace; - -// -protected defaultHandler; - -/** - * @var array - */ -protected handlerHashes; - -// -protected handlerName; - -/** - * @var string - */ -protected handlerSuffix = ; - -// -protected eventsManager; - -/** - * @var bool - */ -protected finished = false; - -/** - * @var bool - */ -protected forwarded = false; - -/** - * @var bool - */ -protected isControllerInitialize = false; - -// -protected lastHandler; - -// -protected modelBinder; - -/** - * @var bool - */ -protected modelBinding = false; - -// -protected moduleName; - -// -protected namespaceName; - -/** - * @var array - */ -protected params; - -// -protected previousActionName; - -// -protected previousHandlerName; - -// -protected previousNamespaceName; - -// -protected returnedValue; - -``` - -## Methods -```php -public function callActionMethod( mixed $handler, string $actionMethod, array $params = [] ); -``` -// - -```php -public function dispatch(): object | bool; -``` -Process the results of the router by calling into the appropriate -controller action(s) including any routing data or injected parameters. - -@return object|false Returns the dispatched handler class (the Controller for Mvc dispatching or a Task - for CLI dispatching) or false if an exception occurred and the operation was - stopped by returning false in the exception handler. - -@throws \Exception if any uncaught or unhandled exception occurs during the dispatcher process. - - -```php -public function forward( array $forward ): void; -``` -Forwards the execution flow to another controller/action. - -```php -$this->dispatcher->forward( - [ - "controller" => "posts", - "action" => "index", - ] -); -``` - -@throws \Phalcon\Exception - - -```php -public function getActionName(): string; -``` -Gets the latest dispatched action name - - -```php -public function getActionSuffix(): string; -``` -Gets the default action suffix - - -```php -public function getActiveMethod(): string; -``` -Returns the current method to be/executed in the dispatcher - - -```php -public function getBoundModels(): array; -``` -Returns bound models from binder instance - -```php -class UserController extends Controller -{ - public function showAction(User $user) - { - // return array with $user - $boundModels = $this->dispatcher->getBoundModels(); - } -} -``` - - -```php -public function getDefaultNamespace(): string; -``` -Returns the default namespace - - -```php -public function getEventsManager(): ManagerInterface; -``` -Returns the internal event manager - - -```php -public function getHandlerClass(): string; -``` -Possible class name that will be located to dispatch the request - - -```php -public function getHandlerSuffix(): string; -``` -Gets the default handler suffix - - -```php -public function getModelBinder(): BinderInterface | null; -``` -Gets model binder - - -```php -public function getModuleName(): string; -``` -Gets the module where the controller class is - - -```php -public function getNamespaceName(): string; -``` -Gets a namespace to be prepended to the current handler name - - -```php -public function getParam( mixed $param, mixed $filters = null, mixed $defaultValue = null ): mixed; -``` -Gets a param by its name or numeric index - -@param mixed param -@param string|array filters -@param mixed defaultValue -@return mixed - - -```php -public function getParams(): array; -``` -Gets action params - - -```php -public function getReturnedValue(): mixed; -``` -Returns value returned by the latest dispatched action - - -```php -public function hasParam( mixed $param ): bool; -``` -Check if a param exists - - -```php -public function isFinished(): bool; -``` -Checks if the dispatch loop is finished or has more pendent -controllers/tasks to dispatch - - -```php -public function setActionName( string $actionName ): void; -``` -Sets the action name to be dispatched - - -```php -public function setActionSuffix( string $actionSuffix ): void; -``` -Sets the default action suffix - - -```php -public function setDefaultAction( string $actionName ): void; -``` -Sets the default action name - - -```php -public function setDefaultNamespace( string $namespaceName ): void; -``` -Sets the default namespace - - -```php -public function setEventsManager( ManagerInterface $eventsManager ): void; -``` -Sets the events manager - - -```php -public function setHandlerSuffix( string $handlerSuffix ): void; -``` -Sets the default suffix for the handler - - -```php -public function setModelBinder( BinderInterface $modelBinder, mixed $cache = null ): Dispatcher; -``` -Enable model binding during dispatch - -```php -$di->set( - 'dispatcher', - function() { - $dispatcher = new Dispatcher(); - - $dispatcher->setModelBinder( - new Binder(), - 'cache' - ); - - return $dispatcher; - } -); -``` - - -```php -public function setModuleName( string $moduleName ): void; -``` -Sets the module where the controller is (only informative) - - -```php -public function setNamespaceName( string $namespaceName ): void; -``` -Sets the namespace where the controller class is - - -```php -public function setParam( mixed $param, mixed $value ): void; -``` -Set a param by its name or numeric index - - -```php -public function setParams( array $params ): void; -``` -Sets action params to be dispatched - - -```php -public function setReturnedValue( mixed $value ): void; -``` -Sets the latest returned value by an action manually - - -```php -public function wasForwarded(): bool; -``` -Check if the current executed action was forwarded by another one - - -```php -protected function resolveEmptyProperties(): void; -``` -Set empty properties to their defaults (where defaults are available) - - -```php -protected function toCamelCase( string $input ): string; -``` -// - - - -

        Interface Phalcon\Dispatcher\DispatcherInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/dispatcher/dispatcherinterface.zep) - -| Namespace | Phalcon\Dispatcher | - -Interface for Phalcon\Dispatcher\AbstractDispatcher - - -## Methods -```php -public function dispatch(): object | bool; -``` -Dispatches a handle action taking into account the routing parameters - - -```php -public function forward( array $forward ): void; -``` -Forwards the execution flow to another controller/action - - -```php -public function getActionName(): string; -``` -Gets last dispatched action name - - -```php -public function getActionSuffix(): string; -``` -Gets the default action suffix - - -```php -public function getHandlerSuffix(): string; -``` -Gets the default handler suffix - - -```php -public function getParam( mixed $param, mixed $filters = null ): mixed; -``` -Gets a param by its name or numeric index - -@param string|array filters - - -```php -public function getParams(): array; -``` -Gets action params - - -```php -public function getReturnedValue(): mixed; -``` -Returns value returned by the latest dispatched action - - -```php -public function hasParam( mixed $param ): bool; -``` -Check if a param exists - - -```php -public function isFinished(): bool; -``` -Checks if the dispatch loop is finished or has more pendent -controllers/tasks to dispatch - - -```php -public function setActionName( string $actionName ): void; -``` -Sets the action name to be dispatched - - -```php -public function setActionSuffix( string $actionSuffix ): void; -``` -Sets the default action suffix - - -```php -public function setDefaultAction( string $actionName ): void; -``` -Sets the default action name - - -```php -public function setDefaultNamespace( string $defaultNamespace ): void; -``` -Sets the default namespace - - -```php -public function setHandlerSuffix( string $handlerSuffix ): void; -``` -Sets the default suffix for the handler - - -```php -public function setModuleName( string $moduleName ): void; -``` -Sets the module name which the application belongs to - - -```php -public function setNamespaceName( string $namespaceName ): void; -``` -Sets the namespace which the controller belongs to - - -```php -public function setParam( mixed $param, mixed $value ): void; -``` -Set a param by its name or numeric index - -@param mixed value - - -```php -public function setParams( array $params ): void; -``` -Sets action params to be dispatched - - - - -

        Class Phalcon\Dispatcher\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/dispatcher/exception.zep) - -| Namespace | Phalcon\Dispatcher | -| Extends | \Phalcon\Exception | - -Exceptions thrown in Phalcon\Dispatcher/* will use this class - - -## Constants -```php -const EXCEPTION_ACTION_NOT_FOUND = 5; -const EXCEPTION_CYCLIC_ROUTING = 1; -const EXCEPTION_HANDLER_NOT_FOUND = 2; -const EXCEPTION_INVALID_HANDLER = 3; -const EXCEPTION_INVALID_PARAMS = 4; -const EXCEPTION_NO_DI = 0; -``` diff --git a/nikos/api/Phalcon_Domain.md b/nikos/api/Phalcon_Domain.md deleted file mode 100644 index 522f804b5cd..00000000000 --- a/nikos/api/Phalcon_Domain.md +++ /dev/null @@ -1,300 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Domain' ---- - -* [Phalcon\Domain\Payload\Payload](#domain-payload-payload) -* [Phalcon\Domain\Payload\PayloadFactory](#domain-payload-payloadfactory) -* [Phalcon\Domain\Payload\PayloadInterface](#domain-payload-payloadinterface) -* [Phalcon\Domain\Payload\ReadableInterface](#domain-payload-readableinterface) -* [Phalcon\Domain\Payload\Status](#domain-payload-status) -* [Phalcon\Domain\Payload\WriteableInterface](#domain-payload-writeableinterface) - -

        Class Phalcon\Domain\Payload\Payload

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/domain/payload/payload.zep) - -| Namespace | Phalcon\Domain\Payload | -| Uses | Phalcon\Domain\Payload\PayloadInterface | -| Implements | PayloadInterface | - -Holds the payload - - -## Properties -```php -/** - * Extra information - * - * @var mixed - */ -protected extras; - -/** - * Input - * - * @var mixed - */ -protected input; - -/** - * Messages - * - * @var mixed - */ -protected messages; - -/** - * Status - * - * @var mixed - */ -protected status; - -/** - * Output - * - * @var mixed - */ -protected output; - -``` - -## Methods -```php -public function getExtras(): mixed -``` - - -```php -public function getInput(): mixed -``` - - -```php -public function getMessages(): mixed -``` - - -```php -public function getOutput(): mixed -``` - - -```php -public function getStatus(): mixed -``` - - -```php -public function setExtras( mixed $extras ): PayloadInterface; -``` -Sets arbitrary extra domain information. - - -```php -public function setInput( mixed $input ): PayloadInterface; -``` -Sets the domain input. - - -```php -public function setMessages( mixed $messages ): PayloadInterface; -``` -Sets the domain messages. - - -```php -public function setOutput( mixed $output ): PayloadInterface; -``` -Sets the domain output. - - -```php -public function setStatus( mixed $status ): PayloadInterface; -``` -Sets the payload status. - - - - -

        Class Phalcon\Domain\Payload\PayloadFactory

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/domain/payload/payloadfactory.zep) - -| Namespace | Phalcon\Domain\Payload | -| Uses | Phalcon\Domain\Payload\Payload, Phalcon\Domain\Payload\PayloadInterface | - -Factory to create payload objects - - -## Methods -```php -public function newInstance(): PayloadInterface; -``` -Instantiate a new object - - - - -

        Interface Phalcon\Domain\Payload\PayloadInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/domain/payload/payloadinterface.zep) - -| Namespace | Phalcon\Domain\Payload | -| Uses | Phalcon\Domain\Payload\ReadableInterface, Phalcon\Domain\Payload\WriteableInterface | -| Extends | ReadableInterface | - -This interface is used for consumers - - - -

        Interface Phalcon\Domain\Payload\ReadableInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/domain/payload/readableinterface.zep) - -| Namespace | Phalcon\Domain\Payload | - -This interface is used for consumers (read only) - - -## Methods -```php -public function getExtras(): mixed; -``` -Gets arbitrary extra values produced by the domain layer. - -@param mixed - - -```php -public function getInput(): mixed; -``` -Gets the input received by the domain layer. - -@return mixed - - -```php -public function getMessages(): mixed; -``` -Gets the messages produced by the domain layer. - -@return mixed - - -```php -public function getOutput(): mixed; -``` -Gets the output produced from the domain layer. - -@return mixed - - -```php -public function getStatus(): mixed; -``` -Gets the status of this payload. - -@return mixed - - - - -

        Class Phalcon\Domain\Payload\Status

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/domain/payload/status.zep) - -| Namespace | Phalcon\Domain\Payload | - -Holds the status codes for the payload - - -## Constants -```php -const ACCEPTED = ACCEPTED; -const AUTHENTICATED = AUTHENTICATED; -const AUTHORIZED = AUTHORIZED; -const CREATED = CREATED; -const DELETED = DELETED; -const ERROR = ERROR; -const FAILURE = FAILURE; -const FOUND = FOUND; -const NOT_ACCEPTED = NOT_ACCEPTED; -const NOT_AUTHENTICATED = NOT_AUTHENTICATED; -const NOT_AUTHORIZED = NOT_AUTHORIZED; -const NOT_CREATED = NOT_CREATED; -const NOT_DELETED = NOT_DELETED; -const NOT_FOUND = NOT_FOUND; -const NOT_UPDATED = NOT_UPDATED; -const NOT_VALID = NOT_VALID; -const PROCESSING = PROCESSING; -const SUCCESS = SUCCESS; -const UPDATED = UPDATED; -const VALID = VALID; -``` - -## Methods -```php -final private function __construct(); -``` -Instantiation not allowed. - - - - -

        Interface Phalcon\Domain\Payload\WriteableInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/domain/payload/writeableinterface.zep) - -| Namespace | Phalcon\Domain\Payload | -| Uses | Phalcon\Domain\Payload\PayloadInterface | - -This interface is used for consumers (write) - - -## Methods -```php -public function setExtras( mixed $extras ): PayloadInterface; -``` -Sets arbitrary extra values produced by the domain layer. - -@param mixed $extras Arbitrary extra values produced by the domain layer. - - -```php -public function setInput( mixed $input ): PayloadInterface; -``` - -Sets the input received by the domain layer. - -@param mixed $input The input received by the domain layer. - - - -```php -public function setMessages( mixed $messages ): PayloadInterface; -``` -Sets the messages produced by the domain layer. - -@param mixed $messages The messages produced by the domain layer. - - -```php -public function setOutput( mixed $output ): PayloadInterface; -``` -Sets the output produced from the domain layer. - -@param mixed $output The output produced from the domain layer. - - -```php -public function setStatus( mixed $status ): PayloadInterface; -``` -Sets the status of this payload. - -@param mixed $status The status for this payload. - - diff --git a/nikos/api/Phalcon_Escaper.md b/nikos/api/Phalcon_Escaper.md deleted file mode 100644 index bb7dfe7db14..00000000000 --- a/nikos/api/Phalcon_Escaper.md +++ /dev/null @@ -1,212 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Escaper' ---- - -* [Phalcon\Escaper](#escaper) -* [Phalcon\Escaper\EscaperInterface](#escaper-escaperinterface) -* [Phalcon\Escaper\Exception](#escaper-exception) - -

        Class Phalcon\Escaper

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/escaper.zep) - -| Namespace | Phalcon | -| Uses | Phalcon\Di\DiInterface, Phalcon\Escaper\EscaperInterface, Phalcon\Escaper\Exception | -| Implements | EscaperInterface | - -Phalcon\Escaper - -Escapes different kinds of text securing them. By using this component you -may prevent XSS attacks. - -This component only works with UTF-8. The PREG extension needs to be compiled -with UTF-8 support. - -```php -$escaper = new \Phalcon\Escaper(); - -$escaped = $escaper->escapeCss("font-family: "); - -echo $escaped; // font\2D family\3A \20 \3C Verdana\3E -``` - - -## Properties -```php -/** - * @var bool - */ -protected doubleEncode = true; - -/** - * @var string - */ -protected encoding = utf-8; - -// -protected htmlEscapeMap; - -// -protected htmlQuoteType = 3; - -``` - -## Methods -```php -final public function detectEncoding( string $str ): string | null; -``` -Detect the character encoding of a string to be handled by an encoder. -Special-handling for chr(172) and chr(128) to chr(159) which fail to be -detected by mb_detect_encoding() - - -```php -public function escapeCss( string $css ): string; -``` -Escape CSS strings by replacing non-alphanumeric chars by their -hexadecimal escaped representation - - -```php -public function escapeHtml( string $text ): string; -``` -Escapes a HTML string. Internally uses htmlspecialchars - - -```php -public function escapeHtmlAttr( string $attribute ): string; -``` -Escapes a HTML attribute string - - -```php -public function escapeJs( string $js ): string; -``` -Escape javascript strings by replacing non-alphanumeric chars by their -hexadecimal escaped representation - - -```php -public function escapeUrl( string $url ): string; -``` -Escapes a URL. Internally uses rawurlencode - - -```php -public function getEncoding(): string; -``` -Returns the internal encoding used by the escaper - - -```php -final public function normalizeEncoding( string $str ): string; -``` -Utility to normalize a string's encoding to UTF-32. - - -```php -public function setDoubleEncode( bool $doubleEncode ): void; -``` -Sets the double_encode to be used by the escaper - -```php -$escaper->setDoubleEncode(false); -``` - - -```php -public function setEncoding( string $encoding ): void; -``` -Sets the encoding to be used by the escaper - -```php -$escaper->setEncoding("utf-8"); -``` - - -```php -public function setHtmlQuoteType( int $quoteType ): void; -``` -Sets the HTML quoting type for htmlspecialchars - -```php -$escaper->setHtmlQuoteType(ENT_XHTML); -``` - - - - -

        Interface Phalcon\Escaper\EscaperInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/escaper/escaperinterface.zep) - -| Namespace | Phalcon\Escaper | - -Interface for Phalcon\Escaper - - -## Methods -```php -public function escapeCss( string $css ): string; -``` -Escape CSS strings by replacing non-alphanumeric chars by their -hexadecimal representation - - -```php -public function escapeHtml( string $text ): string; -``` -Escapes a HTML string - - -```php -public function escapeHtmlAttr( string $text ): string; -``` -Escapes a HTML attribute string - - -```php -public function escapeJs( string $js ): string; -``` -Escape Javascript strings by replacing non-alphanumeric chars by their -hexadecimal representation - - -```php -public function escapeUrl( string $url ): string; -``` -Escapes a URL. Internally uses rawurlencode - - -```php -public function getEncoding(): string; -``` -Returns the internal encoding used by the escaper - - -```php -public function setEncoding( string $encoding ): void; -``` -Sets the encoding to be used by the escaper - - -```php -public function setHtmlQuoteType( int $quoteType ): void; -``` -Sets the HTML quoting type for htmlspecialchars - - - - -

        Class Phalcon\Escaper\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/escaper/exception.zep) - -| Namespace | Phalcon\Escaper | -| Extends | \Phalcon\Exception | - -Exceptions thrown in Phalcon\Escaper will use this class - diff --git a/nikos/api/Phalcon_Events.md b/nikos/api/Phalcon_Events.md deleted file mode 100644 index b4d61ea1ab3..00000000000 --- a/nikos/api/Phalcon_Events.md +++ /dev/null @@ -1,424 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Events' ---- - -* [Phalcon\Events\Event](#events-event) -* [Phalcon\Events\EventInterface](#events-eventinterface) -* [Phalcon\Events\EventsAwareInterface](#events-eventsawareinterface) -* [Phalcon\Events\Exception](#events-exception) -* [Phalcon\Events\Manager](#events-manager) -* [Phalcon\Events\ManagerInterface](#events-managerinterface) - -

        Class Phalcon\Events\Event

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/events/event.zep) - -| Namespace | Phalcon\Events | -| Implements | EventInterface | - -Phalcon\Events\Event - -This class offers contextual information of a fired event in the -EventsManager - - -## Properties -```php -/** - * Is event cancelable? - * - * @var bool - */ -protected cancelable; - -/** - * Event data - * - * @var mixed - */ -protected data; - -/** - * Event source - * - * @var object - */ -protected source; - -/** - * Is event propagation stopped? - * - * @var bool - */ -protected stopped = false; - -/** - * Event type - * - * @var string - */ -protected type; - -``` - -## Methods -```php -public function __construct( string $type, mixed $source, mixed $data = null, bool $cancelable = bool ): void; -``` -Phalcon\Events\Event constructor - -@param object source - - -```php -public function getData(): mixed -``` - - -```php -public function getSource(): object -``` - - -```php -public function getType(): string -``` - - -```php -public function isCancelable(): bool; -``` -Check whether the event is cancelable. - -```php -if ($event->isCancelable()) { - $event->stop(); -} -``` - - -```php -public function isStopped(): bool; -``` -Check whether the event is currently stopped. - - -```php -public function setData( mixed $data = null ): EventInterface; -``` -Sets event data. - - -```php -public function setType( string $type ): EventInterface; -``` -Sets event type. - - -```php -public function stop(): EventInterface; -``` -Stops the event preventing propagation. - -```php -if ($event->isCancelable()) { - $event->stop(); -} -``` - - - - -

        Interface Phalcon\Events\EventInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/events/eventinterface.zep) - -| Namespace | Phalcon\Events | - -Phalcon\Events\EventInterface - -Interface for Phalcon\Events\Event class - - -## Methods -```php -public function getData(): mixed; -``` -Gets event data - - -```php -public function getType(): mixed; -``` -Gets event type - - -```php -public function isCancelable(): bool; -``` -Check whether the event is cancelable - - -```php -public function isStopped(): bool; -``` -Check whether the event is currently stopped - - -```php -public function setData( mixed $data = null ): EventInterface; -``` -Sets event data - - -```php -public function setType( string $type ): EventInterface; -``` -Sets event type - - -```php -public function stop(): EventInterface; -``` -Stops the event preventing propagation - - - - -

        Interface Phalcon\Events\EventsAwareInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/events/eventsawareinterface.zep) - -| Namespace | Phalcon\Events | - -Phalcon\Events\EventsAwareInterface - -This interface must for those classes that accept an EventsManager and -dispatch events - - -## Methods -```php -public function getEventsManager(): ManagerInterface; -``` -Returns the internal event manager - - -```php -public function setEventsManager( ManagerInterface $eventsManager ): void; -``` -Sets the events manager - - - - -

        Class Phalcon\Events\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/events/exception.zep) - -| Namespace | Phalcon\Events | -| Extends | \Phalcon\Exception | - -Phalcon\Events\Exception - -Exceptions thrown in Phalcon\Events will use this class - - - -

        Class Phalcon\Events\Manager

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/events/manager.zep) - -| Namespace | Phalcon\Events | -| Uses | Closure, Phalcon\Events\Event, SplPriorityQueue | -| Implements | ManagerInterface | - -Phalcon\Events\Manager - -Phalcon Events Manager, offers an easy way to intercept and manipulate, if -needed, the normal flow of operation. With the EventsManager the developer -can create hooks or plugins that will offer monitoring of data, manipulation, -conditional execution and much more. - - -## Constants -```php -const DEFAULT_PRIORITY = 100; -``` - -## Properties -```php -/** - * @var bool - */ -protected collect = false; - -/** - * @var bool - */ -protected enablePriorities = false; - -// -protected events; - -// -protected responses; - -``` - -## Methods -```php -public function arePrioritiesEnabled(): bool; -``` -Returns if priorities are enabled - - -```php -public function attach( string $eventType, mixed $handler, int $priority = static-constant-access ): void; -``` -Attach a listener to the events manager - -@param object|callable handler - - -```php -public function collectResponses( bool $collect ): void; -``` -Tells the event manager if it needs to collect all the responses returned -by every registered listener in a single fire - - -```php -public function detach( string $eventType, mixed $handler ): void; -``` -Detach the listener from the events manager - -@param object handler - - -```php -public function detachAll( string $type = null ): void; -``` -Removes all events from the EventsManager - - -```php -public function enablePriorities( bool $enablePriorities ): void; -``` -Set if priorities are enabled in the EventsManager - - -```php -public function fire( string $eventType, mixed $source, mixed $data = null, bool $cancelable = bool ); -``` -Fires an event in the events manager causing the active listeners to be -notified about it - -```php -$eventsManager->fire("db", $connection); -``` - -@param object source -@param mixed data -@return mixed - - -```php -final public function fireQueue( SplPriorityQueue $queue, EventInterface $event ); -``` -Internal handler to call a queue of events - -@return mixed - - -```php -public function getListeners( string $type ): array; -``` -Returns all the attached listeners of a certain type - - -```php -public function getResponses(): array; -``` -Returns all the responses returned by every handler executed by the last -'fire' executed - - -```php -public function hasListeners( string $type ): bool; -``` -Check whether certain type of event has listeners - - -```php -public function isCollecting(): bool; -``` -Check if the events manager is collecting all all the responses returned -by every registered listener in a single fire - - - - -

        Interface Phalcon\Events\ManagerInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/events/managerinterface.zep) - -| Namespace | Phalcon\Events | - -Phalcon\Events\Manager - -Phalcon Events Manager, offers an easy way to intercept and manipulate, if -needed, the normal flow of operation. With the EventsManager the developer -can create hooks or plugins that will offer monitoring of data, manipulation, -conditional execution and much more. - - -## Methods -```php -public function attach( string $eventType, mixed $handler ): void; -``` -Attach a listener to the events manager - -@param object|callable handler - - -```php -public function detach( string $eventType, mixed $handler ): void; -``` -Detach the listener from the events manager - -@param object handler - - -```php -public function detachAll( string $type = null ): void; -``` -Removes all events from the EventsManager - - -```php -public function fire( string $eventType, mixed $source, mixed $data = null ); -``` -Fires an event in the events manager causing the active listeners to be -notified about it - -@param object source -@param mixed data -@return mixed - - -```php -public function getListeners( string $type ): array; -``` -Returns all the attached listeners of a certain type - - -```php -public function hasListeners( string $type ): bool; -``` -Check whether certain type of event has listeners - - diff --git a/nikos/api/Phalcon_Exception.md b/nikos/api/Phalcon_Exception.md deleted file mode 100644 index dbcc2e76639..00000000000 --- a/nikos/api/Phalcon_Exception.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Exception' ---- - -* [Phalcon\Exception](#exception) - -

        Class Phalcon\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/exception.zep) - -| Namespace | Phalcon | -| Uses | Throwable | -| Extends | \Exception | -| Implements | Throwable | - -Phalcon\Exception - -All framework exceptions should use or extend this exception - diff --git a/nikos/api/Phalcon_Factory.md b/nikos/api/Phalcon_Factory.md deleted file mode 100644 index 4aa5a90faf3..00000000000 --- a/nikos/api/Phalcon_Factory.md +++ /dev/null @@ -1,80 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Factory' ---- - -* [Phalcon\Factory\AbstractFactory](#factory-abstractfactory) -* [Phalcon\Factory\Exception](#factory-exception) - -

        Class Phalcon\Factory\AbstractFactory

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/factory/abstractfactory.zep) - -| Namespace | Phalcon\Factory | -| Uses | Phalcon\Config, Phalcon\Factory\Exception | - -This file is part of the Phalcon Framework. - -(c) Phalcon Team - -For the full copyright and license information, please view the LICENSE.txt -file that was distributed with this source code. - - -## Properties -```php -/** - * @var array - */ -protected mapper; - -/** - * @var array - */ -protected services; - -``` - -## Methods -```php -protected function checkConfig( mixed $config ): array; -``` -Checks the config if it is a valid object - - -```php -protected function checkService( string $name ): void; -``` -Checks if a service exists and throws an exception - - -```php -abstract protected function getAdapters(): array; -``` -Returns the adapters for the factory - - -```php -protected function init( array $services = [] ): void; -``` -AdapterFactory constructor. - - - - -

        Class Phalcon\Factory\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/factory/exception.zep) - -| Namespace | Phalcon\Factory | -| Extends | \Phalcon\Exception | - -This file is part of the Phalcon Framework. - -(c) Phalcon Team - -For the full copyright and license information, please view the LICENSE.txt -file that was distributed with this source code. - diff --git a/nikos/api/Phalcon_Filter.md b/nikos/api/Phalcon_Filter.md deleted file mode 100644 index f0f97aec5d3..00000000000 --- a/nikos/api/Phalcon_Filter.md +++ /dev/null @@ -1,603 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Filter' ---- - -* [Phalcon\Filter\Exception](#filter-exception) -* [Phalcon\Filter\Filter](#filter-filter) -* [Phalcon\Filter\FilterFactory](#filter-filterfactory) -* [Phalcon\Filter\FilterInterface](#filter-filterinterface) -* [Phalcon\Filter\Sanitize\AbsInt](#filter-sanitize-absint) -* [Phalcon\Filter\Sanitize\Alnum](#filter-sanitize-alnum) -* [Phalcon\Filter\Sanitize\Alpha](#filter-sanitize-alpha) -* [Phalcon\Filter\Sanitize\BoolVal](#filter-sanitize-boolval) -* [Phalcon\Filter\Sanitize\Email](#filter-sanitize-email) -* [Phalcon\Filter\Sanitize\FloatVal](#filter-sanitize-floatval) -* [Phalcon\Filter\Sanitize\IntVal](#filter-sanitize-intval) -* [Phalcon\Filter\Sanitize\Lower](#filter-sanitize-lower) -* [Phalcon\Filter\Sanitize\LowerFirst](#filter-sanitize-lowerfirst) -* [Phalcon\Filter\Sanitize\Regex](#filter-sanitize-regex) -* [Phalcon\Filter\Sanitize\Remove](#filter-sanitize-remove) -* [Phalcon\Filter\Sanitize\Replace](#filter-sanitize-replace) -* [Phalcon\Filter\Sanitize\Special](#filter-sanitize-special) -* [Phalcon\Filter\Sanitize\SpecialFull](#filter-sanitize-specialfull) -* [Phalcon\Filter\Sanitize\StringVal](#filter-sanitize-stringval) -* [Phalcon\Filter\Sanitize\Striptags](#filter-sanitize-striptags) -* [Phalcon\Filter\Sanitize\Trim](#filter-sanitize-trim) -* [Phalcon\Filter\Sanitize\Upper](#filter-sanitize-upper) -* [Phalcon\Filter\Sanitize\UpperFirst](#filter-sanitize-upperfirst) -* [Phalcon\Filter\Sanitize\UpperWords](#filter-sanitize-upperwords) -* [Phalcon\Filter\Sanitize\Url](#filter-sanitize-url) - -

        Class Phalcon\Filter\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/exception.zep) - -| Namespace | Phalcon\Filter | -| Extends | \Phalcon\Exception | - -Phalcon\Filter\Exception - -Exceptions thrown in Phalcon\Filter will use this class - - - -

        Class Phalcon\Filter\Filter

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/filter.zep) - -| Namespace | Phalcon\Filter | -| Uses | Closure, Phalcon\Filter\Exception, Phalcon\Filter\FilterInterface | -| Implements | FilterInterface | - -Lazy loads, stores and exposes sanitizer objects - - -## Constants -```php -const FILTER_ABSINT = absint; -const FILTER_ALNUM = alnum; -const FILTER_ALPHA = alpha; -const FILTER_BOOL = bool; -const FILTER_EMAIL = email; -const FILTER_FLOAT = float; -const FILTER_INT = int; -const FILTER_LOWER = lower; -const FILTER_LOWERFIRST = lowerFirst; -const FILTER_REGEX = regex; -const FILTER_REMOVE = remove; -const FILTER_REPLACE = replace; -const FILTER_SPECIAL = special; -const FILTER_SPECIALFULL = specialFull; -const FILTER_STRING = string; -const FILTER_STRIPTAGS = striptags; -const FILTER_TRIM = trim; -const FILTER_UPPER = upper; -const FILTER_UPPERFIRST = upperFirst; -const FILTER_UPPERWORDS = upperWords; -const FILTER_URL = url; -``` - -## Properties -```php -/** - * @var array - */ -protected mapper; - -/** - * @var array - */ -protected services; - -``` - -## Methods -```php -public function __construct( array $mapper = [] ): void; -``` -Key value pairs with name as the key and a callable as the value for -the service object - - -```php -public function get( string $name ): object; -``` -Get a service. If it is not in the mapper array, create a new object, -set it and then return it. - - -```php -public function has( string $name ): bool; -``` -Checks if a service exists in the map array - - -```php -public function sanitize( mixed $value, mixed $sanitizers, bool $noRecursive = bool ): mixed; -``` -Sanitizes a value with a specified single or set of sanitizers - - -```php -public function set( string $name, callable $service ): void; -``` -Set a new service to the mapper array - - -```php -protected function init( array $mapper ): void; -``` -Loads the objects in the internal mapper array - - - - -

        Class Phalcon\Filter\FilterFactory

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/filterfactory.zep) - -| Namespace | Phalcon\Filter | -| Uses | Phalcon\Filter\Filter | - -This file is part of the Phalcon Framework. - -(c) Phalcon Team - -For the full copyright and license information, please view the LICENSE.txt -file that was distributed with this source code. - - -## Methods -```php -public function newInstance(): LocatorInterface; -``` -Returns a Locator object with all the helpers defined in anonynous -functions - - -```php -protected function getAdapters(): array; -``` -// - - - -

        Interface Phalcon\Filter\FilterInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/filterinterface.zep) - -| Namespace | Phalcon\Filter | - -Lazy loads, stores and exposes sanitizer objects - - -## Methods -```php -public function sanitize( mixed $value, mixed $sanitizers, bool $noRecursive = bool ): mixed; -``` -Sanitizes a value with a specified single or set of sanitizers - - - - -

        Class Phalcon\Filter\Sanitize\AbsInt

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/absint.zep) - -| Namespace | Phalcon\Filter\Sanitize | - -Phalcon\Filter\Sanitize\AbsInt - -Sanitizes a value to absolute integer - - -## Methods -```php -public function __invoke( mixed $input ); -``` -@var mixed input The text to sanitize - - - - -

        Class Phalcon\Filter\Sanitize\Alnum

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/alnum.zep) - -| Namespace | Phalcon\Filter\Sanitize | - -Phalcon\Filter\Sanitize\Alnum - -Sanitizes a value to an alphanumeric value - - -## Methods -```php -public function __invoke( mixed $input ); -``` -@var mixed input The text to sanitize - - - - -

        Class Phalcon\Filter\Sanitize\Alpha

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/alpha.zep) - -| Namespace | Phalcon\Filter\Sanitize | - -Phalcon\Filter\Sanitize\Alpha - -Sanitizes a value to an alpha value - - -## Methods -```php -public function __invoke( mixed $input ); -``` -@var mixed input The text to sanitize - - - - -

        Class Phalcon\Filter\Sanitize\BoolVal

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/boolval.zep) - -| Namespace | Phalcon\Filter\Sanitize | - -Phalcon\Filter\Sanitize\BoolVal - -Sanitizes a value to boolean - - -## Methods -```php -public function __invoke( mixed $input ); -``` -@var mixed input The text to sanitize - - - - -

        Class Phalcon\Filter\Sanitize\Email

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/email.zep) - -| Namespace | Phalcon\Filter\Sanitize | - -Phalcon\Filter\Sanitize\Email - -Sanitizes an email string - - -## Methods -```php -public function __invoke( mixed $input ); -``` -@var mixed input The text to sanitize - - - - -

        Class Phalcon\Filter\Sanitize\FloatVal

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/floatval.zep) - -| Namespace | Phalcon\Filter\Sanitize | - -Phalcon\Filter\Sanitize\FloatVal - -Sanitizes a value to float - - -## Methods -```php -public function __invoke( mixed $input ); -``` -@var mixed input The text to sanitize - - - - -

        Class Phalcon\Filter\Sanitize\IntVal

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/intval.zep) - -| Namespace | Phalcon\Filter\Sanitize | - -Phalcon\Filter\Sanitize\IntVal - -Sanitizes a value to integer - - -## Methods -```php -public function __invoke( mixed $input ); -``` -@var mixed input The text to sanitize - - - - -

        Class Phalcon\Filter\Sanitize\Lower

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/lower.zep) - -| Namespace | Phalcon\Filter\Sanitize | - -Phalcon\Filter\Sanitize\Lower - -Sanitizes a value to lowercase - - -## Methods -```php -public function __invoke( string $input ); -``` -@var mixed input The text to sanitize - - - - -

        Class Phalcon\Filter\Sanitize\LowerFirst

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/lowerfirst.zep) - -| Namespace | Phalcon\Filter\Sanitize | - -Phalcon\Filter\Sanitize\LowerFirst - -Sanitizes a value to lcfirst - - -## Methods -```php -public function __invoke( string $input ); -``` -@var mixed input The text to sanitize - - - - -

        Class Phalcon\Filter\Sanitize\Regex

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/regex.zep) - -| Namespace | Phalcon\Filter\Sanitize | - -Phalcon\Filter\Sanitize\Regex - -Sanitizes a value performing preg_replace - - -## Methods -```php -public function __invoke( mixed $input, mixed $pattern, mixed $replace ); -``` -@var mixed input The text to sanitize - - - - -

        Class Phalcon\Filter\Sanitize\Remove

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/remove.zep) - -| Namespace | Phalcon\Filter\Sanitize | - -Phalcon\Filter\Sanitize\Remove - -Sanitizes a value removing parts of a string - - -## Methods -```php -public function __invoke( mixed $input, mixed $replace ); -``` -@var mixed input The text to sanitize - - - - -

        Class Phalcon\Filter\Sanitize\Replace

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/replace.zep) - -| Namespace | Phalcon\Filter\Sanitize | - -Phalcon\Filter\Sanitize\Replace - -Sanitizes a value replacing parts of a string - - -## Methods -```php -public function __invoke( mixed $input, mixed $from, mixed $to ); -``` -@var mixed input The text to sanitize - - - - -

        Class Phalcon\Filter\Sanitize\Special

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/special.zep) - -| Namespace | Phalcon\Filter\Sanitize | - -Phalcon\Filter\Sanitize\Special - -Sanitizes a value special characters - - -## Methods -```php -public function __invoke( mixed $input ); -``` -@var mixed input The text to sanitize - - - - -

        Class Phalcon\Filter\Sanitize\SpecialFull

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/specialfull.zep) - -| Namespace | Phalcon\Filter\Sanitize | - -Phalcon\Filter\Sanitize\SpecialFull - -Sanitizes a value special characters (htmlspecialchars() and ENT_QUOTES) - - -## Methods -```php -public function __invoke( mixed $input ); -``` -@var mixed input The text to sanitize - - - - -

        Class Phalcon\Filter\Sanitize\StringVal

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/stringval.zep) - -| Namespace | Phalcon\Filter\Sanitize | - -Phalcon\Filter\Sanitize\String - -Sanitizes a value to string - - -## Methods -```php -public function __invoke( mixed $input ); -``` -@var mixed input The text to sanitize - - - - -

        Class Phalcon\Filter\Sanitize\Striptags

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/striptags.zep) - -| Namespace | Phalcon\Filter\Sanitize | - -Phalcon\Filter\Sanitize\Striptags - -Sanitizes a value striptags - - -## Methods -```php -public function __invoke( string $input ); -``` -@var mixed input The text to sanitize - - - - -

        Class Phalcon\Filter\Sanitize\Trim

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/trim.zep) - -| Namespace | Phalcon\Filter\Sanitize | - -Phalcon\Filter\Sanitize\Trim - -Sanitizes a value removing leading and trailing spaces - - -## Methods -```php -public function __invoke( string $input ); -``` -@var mixed input The text to sanitize - - - - -

        Class Phalcon\Filter\Sanitize\Upper

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/upper.zep) - -| Namespace | Phalcon\Filter\Sanitize | - -Phalcon\Filter\Sanitize\Upper - -Sanitizes a value to uppercase - - -## Methods -```php -public function __invoke( string $input ); -``` -@var mixed input The text to sanitize - - - - -

        Class Phalcon\Filter\Sanitize\UpperFirst

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/upperfirst.zep) - -| Namespace | Phalcon\Filter\Sanitize | - -Phalcon\Filter\Sanitize\UpperFirst - -Sanitizes a value to ucfirst - - -## Methods -```php -public function __invoke( string $input ); -``` -@var mixed input The text to sanitize - - - - -

        Class Phalcon\Filter\Sanitize\UpperWords

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/upperwords.zep) - -| Namespace | Phalcon\Filter\Sanitize | - -Phalcon\Filter\Sanitize\UpperWords - -Sanitizes a value to uppercase teh first character of each word - - -## Methods -```php -public function __invoke( string $input ); -``` -@var mixed input The text to sanitize - - - - -

        Class Phalcon\Filter\Sanitize\Url

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/filter/sanitize/url.zep) - -| Namespace | Phalcon\Filter\Sanitize | - -Phalcon\Filter\Sanitize\Url - -Sanitizes a value url - - -## Methods -```php -public function __invoke( mixed $input ); -``` -@var mixed input The text to sanitize - - diff --git a/nikos/api/Phalcon_Firewall.md b/nikos/api/Phalcon_Firewall.md deleted file mode 100644 index 0ef0a00d251..00000000000 --- a/nikos/api/Phalcon_Firewall.md +++ /dev/null @@ -1,642 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Firewall' ---- - -* [Phalcon\Firewall\Adapter\AbstractAdapter](#firewall-adapter-abstractadapter) -* [Phalcon\Firewall\Adapter\Acl](#firewall-adapter-acl) -* [Phalcon\Firewall\Adapter\AdapterInterface](#firewall-adapter-adapterinterface) -* [Phalcon\Firewall\Adapter\Annotations](#firewall-adapter-annotations) -* [Phalcon\Firewall\Adapter\Micro\Acl](#firewall-adapter-micro-acl) -* [Phalcon\Firewall\Exception](#firewall-exception) - -

        Abstract Class Phalcon\Firewall\Adapter\AbstractAdapter

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/firewall/adapter/abstractadapter.zep) - -| Namespace | Phalcon\Firewall\Adapter | -| Uses | Closure, Phalcon\Acl\Enum, Phalcon\Acl\RoleAware, Phalcon\Cache\Adapter\AdapterInterface, Phalcon\Di\DiInterface, Phalcon\Events\EventsAwareInterface, Phalcon\Events\ManagerInterface, Phalcon\Firewall\Exception, Phalcon\Mvc\Dispatcher | -| Implements | AdapterInterface, EventsAwareInterface | - -Adapter for Phalcon\Firewall adapters - - -## Properties -```php -/** - * Storing active identity object implementing Phalcon/Acl/RoleAware - */ -protected activeIdentity; - -/** - * Storing active user role - */ -protected activeRole; - -/** - * Should role always be resolved using role callback or just once? - * @var bool - */ -protected alwaysResolvingRole = false; - -/** - * Cache for caching access - * @var - */ -protected cache; - -/** - * Default access - * @var int - */ -protected defaultAccess; - -/** - * Events manager - * @var mixed - */ -protected eventsManager; - -/** - * Internal cache for caching access during request time - * @var mixed - */ -protected internalCache; - -/** - * Anonymous function for getting user identity - this function must - * return string, array or object implementing Phalcon\Acl\RoleAware - * @var mixed - */ -protected roleCallback; - -``` - -## Methods -```php -public function getActiveIdentity() -``` - - -```php -public function getActiveRole() -``` - - -```php -public function getDefaultAccess(): int -``` - - -```php -public function getEventsManager(): ManagerInterface; -``` -Returns the internal event manager - - -```php -public function getRoleCallback(): Closure; -``` -Gets role callback to fetch role name - - -```php -public function isAlwaysResolvingRole(): bool; -``` -Gets always resolving role option - - -```php -public function setAlwaysResolvingRole( bool $alwaysResolvingRole ) -``` - - -```php -public function setCache( CacheAdapterInterface $cache ): AdapterInterface; -``` -Sets the cache adapter - - -```php -public function setDefaultAccess( int $defaultAccess ): AdapterInterface; -``` -Sets the default access level (Phalcon\Acl\Enum::ALLOW or Phalcon\Acl\Enum::DENY) - - -```php -public function setEventsManager( ManagerInterface $eventsManager ): AdapterInterface; -``` -Sets the events manager - - -```php -public function setRoleCallback( mixed $callback ): AdapterInterface; -``` -Sets role callback to fetch role name - - -```php -protected function callRoleCallback( DiInterface $container ): void; -``` -// - -```php -protected function fireEventOrThrowException( mixed $role, string $actionName, string $controllerName, bool $access ); -``` -Fires event or throwing exception - - -```php -protected function getAccessFromCache( string $key, array $originalValues = null, string $roleCacheKey = null ): bool | null; -``` -Gets access from cache - - -```php -protected function handleException( \Exception $exception ); -``` -Handles a user exception - - -```php -protected function saveAccessInCache( string $key, bool $access ): void; -``` - Saves access in cache and internal cache - - -```php -protected function throwFirewallException( string $message, int $exceptionCode = int ): bool; -``` -Throws an internal exception - - - - -

        Class Phalcon\Firewall\Adapter\Acl

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/firewall/adapter/acl.zep) - -| Namespace | Phalcon\Firewall\Adapter | -| Uses | Phalcon\Acl\Adapter\AdapterInterface, Phalcon\Di, Phalcon\Cache\Adapter\AdapterInterface, Phalcon\Events\Event, Phalcon\Events\ManagerInterface, Phalcon\Firewall\Adapter\AbstractAdapter, Phalcon\Firewall\Exception, Phalcon\Mvc\DispatcherInterface | -| Extends | AbstractAdapter | - -FirewallZ for Phalcon\Application which depends on acl and dispatcher - - -## Properties -```php -/** - * Acl service name - * @var string - */ -protected aclServiceName; - -/** - * Bound models - * @var array - */ -protected boundModels; - -/** - * Property used for setting different key names in associated acl function than got from Binder - */ -protected boundModelsKeyMap; - -/** - * Dispatcher - * @var mixed - */ -protected dispatcher; - -/** - * Parameter for using with multi module application - * @var bool - */ -protected multiModuleConfiguration = false; - -/** - * Separator between module name and controller prefix - * @var string - */ -protected moduleSeparator = :; - -/** - * Function returning string for role cache key - * @var mixed - */ -protected roleCacheCallback; - -``` - -## Methods -```php -public function __construct( string $aclServiceName, array $boundModelsKeyMap = null ); -``` -Phalcon\Firewall\Adapter\Acl constructor - - -```php -public function afterBinding( Event $event, DispatcherInterface $dispatcher, mixed $data ); -``` -// - -```php -public function beforeExecuteRoute( Event $event, DispatcherInterface $dispatcher, mixed $data ); -``` -// - -```php -public function getAclServiceName(): string -``` - - -```php -public function getBoundModelsKeyMap() -``` - - -```php -public function getDispatcher(): Dispatcher; -``` -Gets dispatcher - - -```php -public function getModuleSeparator(): string -``` - - -```php -public function getRoleCacheCallback(): mixed -``` - - -```php -public function isMultiModuleConfiguration(): bool; -``` -Returns multiModuleConfiguration -@return bool - - -```php -public function setAclServiceName( string $aclServiceName ) -``` - - -```php -public function setBoundModelsKeyMap( $boundModelsKeyMap ) -``` - - -```php -public function setModuleSeparator( string $moduleSeparator ) -``` - - -```php -public function setRoleCacheCallback( mixed $roleCacheCallback ) -``` - - -```php -public function useMultiModuleConfiguration( bool $multiModuleConfiguration ); -``` -Sets multiModuleConfiguration - - -```php -protected function getAccessFromCache( string $key, array $originalValues = null, string $roleCacheKey = null ): bool | null; -``` -// - -```php -protected function handleDispatcher( DispatcherInterface $dispatcher ); -``` -// - -```php -protected function saveAccessInCache( string $key, bool $access ): void; -``` -// - - - -

        Interface Phalcon\Firewall\Adapter\AdapterInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/firewall/adapter/adapterinterface.zep) - -| Namespace | Phalcon\Firewall\Adapter | -| Uses | Phalcon\Mvc\DispatcherInterface, Phalcon\Cache\Adapter\AdapterInterface | - -Interface for Phalcon\Mvc\Dispatcher\Firewall adapters - - -## Methods -```php -public function getDefaultAccess(): int; -``` -Returns the default ACL access level - - -```php -public function getRoleCallback(); -``` -Gets role callback to fetch role name - - -```php -public function isAlwaysResolvingRole(): bool; -``` -Gets always resolving role option - - -```php -public function setAlwaysResolvingRole( bool $alwaysResolvingRole ): void; -``` -Sets always resolving role option - - -```php -public function setCache( CacheAdapterInterface $cache ): AdapterInterface; -``` -Sets cache backend - - -```php -public function setDefaultAccess( int $defaultAccess ): AdapterInterface; -``` -Sets the default access level (Phalcon\Acl::ALLOW or Phalcon\Acl::DENY) - - -```php -public function setRoleCallback( mixed $callback ): AdapterInterface; -``` -Sets role callback to fetch role name - - - - -

        Class Phalcon\Firewall\Adapter\Annotations

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/firewall/adapter/annotations.zep) - -| Namespace | Phalcon\Firewall\Adapter | -| Uses | Phalcon\Annotations\Adapter\AdapterInterface, Phalcon\Events\Event, Phalcon\Events\ManagerInterface, Phalcon\Firewall\Adapter\AbstractAdapter, Phalcon\Firewall\Exception, Phalcon\Mvc\DispatcherInterface, ReflectionClass | -| Extends | AbstractAdapter | - -Firewall which depends on annotations and dispatcher - - -## Properties -```php -/** - * Number of active active arguments in active annotation - * @var int - */ -protected activeArgumentsNumber = 0; - -/** - * Adapter for annotations - * @var mixed - */ -protected annotationsAdapter; - -/** - * Dispatcher - * @var mixed - */ -protected dispatcher; - -/** - * Role for which access was granted - */ -protected resolvedRole; - -``` - -## Methods -```php -public function __construct( AdapterInterface $annotationsAdapter ); -``` -Phalcon\Firewall\Adapter\Annotations constructor - - -```php -public function beforeExecuteRoute( Event $event, DispatcherInterface $dispatcher, mixed $data ); -``` -// - -```php -public function getAnnotationsAdapter(): mixed -``` - - -```php -public function getDispatcher(): Dispatcher; -``` -Gets dispatcher - - -```php -public function setAnnotationsAdapter( mixed $annotationsAdapter ) -``` - - -```php -protected function checkActionAnnotationAccess( string $controllerClass, string $controllerName, string $actionName, mixed $role ); -``` -// - -```php -protected function checkAnnotations( mixed $annotations, mixed $role ); -``` -// - -```php -protected function checkControllerAnnotationAccess( string $controllerClass, string $controllerName, mixed $role ); -``` -// - -```php -protected function getAccessFromCache( string $key, array $originalValues = null, string $roleCacheKey = null ): bool | null; -``` -// - -```php -protected function handleAnnotation( mixed $annotation, bool $access, mixed $role ); -``` -// - - - -

        Class Phalcon\Firewall\Adapter\Micro\Acl

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/firewall/adapter/micro/acl.zep) - -| Namespace | Phalcon\Firewall\Adapter\Micro | -| Uses | Phalcon\Acl\Adapter\AdapterInterface, Phalcon\Di, Phalcon\Cache\Adapter\AdapterInterface, Phalcon\Di\DiInterface, Phalcon\Events\Event, Phalcon\Events\ManagerInterface, Phalcon\Firewall\Adapter\AbstractAdapter, Phalcon\Firewall\Exception, Phalcon\Mvc\Micro, Phalcon\Mvc\Model\BinderInterface, Phalcon\Mvc\Router | -| Extends | AbstractAdapter | - -Firewall for Phalcon\Mvc\Micro which depends on ACL - - -## Properties -```php -/** - * Acl service name - * @var string - */ -protected aclServiceName; - -/** - * Bound models - * @var array - */ -protected boundModels; - -/** - * Property used for setting different key names in associated ACL function - * than got from Binder - */ -protected boundModelsKeyMap; - -/** - * Component name used to acquire access, be default it's Micro - * @var string - */ -protected componentName = Micro; - -/** - * Micro object - * @var mixed - */ -protected micro; - -/** - * Function returning string for role cache key - * @var mixed - */ -protected roleCacheCallback; - -/** - * Router object - * @var mixed - */ -protected router; - -/** - * By default using route names which are required, you can change it to - * false to use route patterns - * @var bool - */ -protected routeNameConfiguration = true; - -``` - -## Methods -```php -public function __construct( string $aclServiceName, array $boundModelsKeyMap = null ); -``` -// - -```php -public function afterBinding( Event $event, Micro $micro, mixed $data ); -``` -// - -```php -public function beforeExecuteRoute( Event $event, Micro $micro, mixed $data ); -``` -// - -```php -public function getAclServiceName(): string -``` - - -```php -public function getBoundModelsKeyMap() -``` - - -```php -public function getComponentName(): string -``` - - -```php -public function getMicro(): Micro; -``` -Gets micro - - -```php -public function getRoleCacheCallback(): mixed -``` - - -```php -public function isRouteNameConfiguration(): bool; -``` -Gets route name configuration - - -```php -public function setAclServiceName( string $aclServiceName ) -``` - - -```php -public function setBoundModelsKeyMap( $boundModelsKeyMap ) -``` - - -```php -public function setComponentName( string $componentName ) -``` - - -```php -public function setRoleCacheCallback( mixed $roleCacheCallback ) -``` - - -```php -public function setRouteNameConfiguration( bool $routeNameConfiguration ) -``` - - -```php -protected function fireEventOrThrowException( mixed $role, string $actionName, string $controllerName, bool $access ); -``` -Fires event or throwing exception - - -```php -protected function getAccessFromCache( string $key, array $originalValues = null, string $roleCacheKey = null ): bool | null; -``` -// - -```php -protected function handleRouter( Micro $micro ); -``` -// - -```php -protected function saveAccessInCache( string $key, bool $access ): void; -``` -// - - - -

        Class Phalcon\Firewall\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/firewall/exception.zep) - -| Namespace | Phalcon\Firewall | -| Extends | \Phalcon\Exception | - -Exceptions thrown in Phalcon\Firewall will use this class - diff --git a/nikos/api/Phalcon_Flash.md b/nikos/api/Phalcon_Flash.md deleted file mode 100644 index 12d2f3d66c4..00000000000 --- a/nikos/api/Phalcon_Flash.md +++ /dev/null @@ -1,341 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Flash' ---- - -* [Phalcon\Flash\AbstractFlash](#flash-abstractflash) -* [Phalcon\Flash\Direct](#flash-direct) -* [Phalcon\Flash\Exception](#flash-exception) -* [Phalcon\Flash\FlashInterface](#flash-flashinterface) -* [Phalcon\Flash\Session](#flash-session) - -

        Abstract Class Phalcon\Flash\AbstractFlash

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/flash/abstractflash.zep) - -| Namespace | Phalcon\Flash | -| Uses | Phalcon\Di, Phalcon\Di\DiInterface, Phalcon\Di\AbstractInjectionAware, Phalcon\Escaper\EscaperInterface, Phalcon\Flash\Exception, Phalcon\Session\ManagerInterface | -| Extends | AbstractInjectionAware | -| Implements | FlashInterface | - -Shows HTML notifications related to different circumstances. Classes can be -stylized using CSS - -```php -$flash->success("The record was successfully deleted"); -$flash->error("Cannot open the file"); -``` - - -## Properties -```php -/** - * @var bool - */ -protected autoescape = true; - -/** - * @var bool - */ -protected automaticHtml = true; - -/** - * @var array - */ -protected cssClasses; - -/** - * @var string - */ -protected customTemplate = ; - -/** - * @var EscaperInterface | null - */ -protected escaperService; - -/** - * @var bool - */ -protected implicitFlush = true; - -/** - * @var array - */ -protected messages; - -/** - * @var SessionInterface | null - */ -protected sessionService; - -``` - -## Methods -```php -public function __construct( EscaperInterface $escaper = null, SessionInterface $session = null ): void; -``` -Phalcon\Flash constructor - - -```php -public function clear(): void; -``` -Clears accumulated messages when implicit flush is disabled - - -```php -public function error( string $message ): string; -``` -Shows a HTML error message - -```php -$flash->error("This is an error"); -``` - - -```php -public function getAutoescape(): bool; -``` -Returns the autoescape mode in generated html - - -```php -public function getCustomTemplate(): string; -``` -Returns the custom template set - - -```php -public function getEscaperService(): EscaperInterface; -``` -Returns the Escaper Service - - -```php -public function notice( string $message ): string; -``` -Shows a HTML notice/information message - -```php -$flash->notice("This is an information"); -``` - - -```php -public function outputMessage( string $type, mixed $message ); -``` -Outputs a message formatting it with HTML - -```php -$flash->outputMessage("error", $message); -``` - -@param string|array message -@return string|void - - -```php -public function setAutoescape( bool $autoescape ): FlashInterface; -``` -Set the autoescape mode in generated html - - -```php -public function setAutomaticHtml( bool $automaticHtml ): FlashInterface; -``` -Set if the output must be implicitly formatted with HTML - - -```php -public function setCssClasses( array $cssClasses ): FlashInterface; -``` -Set an array with CSS classes to format the messages - - -```php -public function setCustomTemplate( string $customTemplate ): FlashInterface; -``` -Set an custom template for showing the messages - - -```php -public function setEscaperService( EscaperInterface $escaperService ): FlashInterface; -``` -Sets the Escaper Service - - -```php -public function setImplicitFlush( bool $implicitFlush ): FlashInterface; -``` -Set whether the output must be implicitly flushed to the output or -returned as string - - -```php -public function success( string $message ): string; -``` -Shows a HTML success message - -```php -$flash->success("The process was finished successfully"); -``` - - -```php -public function warning( string $message ): string; -``` -Shows a HTML warning message - -```php -$flash->warning("Hey, this is important"); -``` - - - - -

        Class Phalcon\Flash\Direct

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/flash/direct.zep) - -| Namespace | Phalcon\Flash | -| Uses | Phalcon\Flash\AbstractFlash | -| Extends | AbstractFlash | - -This is a variant of the Phalcon\Flash that immediately outputs any message -passed to it - - -## Methods -```php -public function message( string $type, mixed $message ): string | null; -``` -Outputs a message - - -```php -public function output( bool $remove = bool ): void; -``` -Prints the messages accumulated in the flasher - - - - -

        Class Phalcon\Flash\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/flash/exception.zep) - -| Namespace | Phalcon\Flash | -| Extends | \Phalcon\Exception | - -Exceptions thrown in Phalcon\Flash will use this class - - - -

        Interface Phalcon\Flash\FlashInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/flash/flashinterface.zep) - -| Namespace | Phalcon\Flash | - -Phalcon\FlashInterface - -Interface for Phalcon\Flash - - -## Methods -```php -public function error( string $message ): string; -``` -Shows a HTML error message - - -```php -public function message( string $type, string $message ): string | null; -``` -Outputs a message - - -```php -public function notice( string $message ): string; -``` -Shows a HTML notice/information message - - -```php -public function success( string $message ): string; -``` -Shows a HTML success message - - -```php -public function warning( string $message ): string; -``` -Shows a HTML warning message - - - - -

        Class Phalcon\Flash\Session

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/flash/session.zep) - -| Namespace | Phalcon\Flash | -| Uses | Phalcon\Di\DiInterface, Phalcon\Flash\AbstractFlash, Phalcon\Flash\Exception, Phalcon\Session\ManagerInterface | -| Extends | AbstractFlash | - -Temporarily stores the messages in session, then messages can be printed in -the next request - - -## Methods -```php -public function clear(): void; -``` -Clear messages in the session messenger - - -```php -public function getMessages( mixed $type = null, bool $remove = bool ): array; -``` -Returns the messages in the session flasher - - -```php -public function getSessionService(): SessionInterface; -``` -Returns the Session Service - - -```php -public function has( mixed $type = null ): bool; -``` -Checks whether there are messages - - -```php -public function message( string $type, string $message ): string | null; -``` -Adds a message to the session flasher - - -```php -public function output( bool $remove = bool ): void; -``` -Prints the messages in the session flasher - - -```php -protected function getSessionMessages( bool $remove, mixed $type = null ): array; -``` -Returns the messages stored in session - - -```php -protected function setSessionMessages( array $messages ): array; -``` -Stores the messages in session - - diff --git a/nikos/api/Phalcon_Forms.md b/nikos/api/Phalcon_Forms.md deleted file mode 100644 index 8f00305dc7a..00000000000 --- a/nikos/api/Phalcon_Forms.md +++ /dev/null @@ -1,1106 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Forms' ---- - -* [Phalcon\Forms\Element\AbstractElement](#forms-element-abstractelement) -* [Phalcon\Forms\Element\Check](#forms-element-check) -* [Phalcon\Forms\Element\Date](#forms-element-date) -* [Phalcon\Forms\Element\ElementInterface](#forms-element-elementinterface) -* [Phalcon\Forms\Element\Email](#forms-element-email) -* [Phalcon\Forms\Element\File](#forms-element-file) -* [Phalcon\Forms\Element\Hidden](#forms-element-hidden) -* [Phalcon\Forms\Element\Numeric](#forms-element-numeric) -* [Phalcon\Forms\Element\Password](#forms-element-password) -* [Phalcon\Forms\Element\Radio](#forms-element-radio) -* [Phalcon\Forms\Element\Select](#forms-element-select) -* [Phalcon\Forms\Element\Submit](#forms-element-submit) -* [Phalcon\Forms\Element\Text](#forms-element-text) -* [Phalcon\Forms\Element\TextArea](#forms-element-textarea) -* [Phalcon\Forms\Exception](#forms-exception) -* [Phalcon\Forms\Form](#forms-form) -* [Phalcon\Forms\Manager](#forms-manager) - -

        Abstract Class Phalcon\Forms\Element\AbstractElement

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/forms/element/abstractelement.zep) - -| Namespace | Phalcon\Forms\Element | -| Uses | InvalidArgumentException, Phalcon\Forms\Form, Phalcon\Forms\Exception, Phalcon\Messages\MessageInterface, Phalcon\Messages\Messages, Phalcon\Tag, Phalcon\Validation\ValidatorInterface | -| Implements | ElementInterface | - -This is a base class for form elements - - -## Properties -```php -// -protected attributes; - -// -protected filters; - -// -protected form; - -// -protected label; - -// -protected messages; - -// -protected name; - -// -protected options; - -/** - * @var array - */ -protected validators; - -// -protected value; - -``` - -## Methods -```php -public function __construct( string $name, array $attributes = [] ): void; -``` -Phalcon\Forms\Element constructor - -@param string name Attribute name (value of 'name' attribute of HTML element) -@param array attributes Additional HTML element attributes - - -```php -public function __toString(): string; -``` -Magic method __toString renders the widget without attributes - - -```php -public function addFilter( string $filter ): ElementInterface; -``` -Adds a filter to current list of filters - - -```php -public function addValidator( ValidatorInterface $validator ): ElementInterface; -``` -Adds a validator to the element - - -```php -public function addValidators( array $validators, bool $merge = bool ): ElementInterface; -``` -Adds a group of validators - -@param \Phalcon\Validation\ValidatorInterface[] validators - - -```php -public function appendMessage( MessageInterface $message ): ElementInterface; -``` -Appends a message to the internal message list - - -```php -public function clear(): ElementInterface; -``` -Clears element to its default value - - -```php -public function getAttribute( string $attribute, mixed $defaultValue = null ): mixed; -``` -Returns the value of an attribute if present - - -```php -public function getAttributes(): array; -``` -Returns the default attributes for the element - - -```php -public function getDefault(): mixed; -``` -Returns the default value assigned to the element - - -```php -public function getFilters(); -``` -Returns the element filters - -@return mixed - - -```php -public function getForm(): Form; -``` -Returns the parent form to the element - - -```php -public function getLabel(): string; -``` -Returns the element label - - -```php -public function getMessages(): Messages; -``` -Returns the messages that belongs to the element -The element needs to be attached to a form - - -```php -public function getName(): string; -``` -Returns the element name - - -```php -public function getUserOption( string $option, mixed $defaultValue = null ): mixed; -``` -Returns the value of an option if present - - -```php -public function getUserOptions(): array; -``` -Returns the options for the element - - -```php -public function getValidators(): ValidatorInterface[]; -``` -Returns the validators registered for the element - - -```php -public function getValue(): mixed; -``` -Returns the element's value - - -```php -public function hasMessages(): bool; -``` -Checks whether there are messages attached to the element - - -```php -public function label( array $attributes = [] ): string; -``` -Generate the HTML to label the element - - -```php -public function prepareAttributes( array $attributes = [], bool $useChecked = bool ): array; -``` -Returns an array of prepared attributes for Phalcon\Tag helpers -according to the element parameters - - -```php -public function setAttribute( string $attribute, mixed $value ): ElementInterface; -``` -Sets a default attribute for the element - - -```php -public function setAttributes( array $attributes ): ElementInterface; -``` -Sets default attributes for the element - - -```php -public function setDefault( mixed $value ): ElementInterface; -``` -Sets a default value in case the form does not use an entity -or there is no value available for the element in _POST - - -```php -public function setFilters( mixed $filters ): ElementInterface; -``` -Sets the element filters - -@param array|string filters - - -```php -public function setForm( Form $form ): ElementInterface; -``` -Sets the parent form to the element - - -```php -public function setLabel( string $label ): ElementInterface; -``` -Sets the element label - - -```php -public function setMessages( Messages $messages ): ElementInterface; -``` -Sets the validation messages related to the element - - -```php -public function setName( string $name ): ElementInterface; -``` -Sets the element name - - -```php -public function setUserOption( string $option, mixed $value ): ElementInterface; -``` -Sets an option for the element - - -```php -public function setUserOptions( array $options ): ElementInterface; -``` -Sets options for the element - - - - -

        Class Phalcon\Forms\Element\Check

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/forms/element/check.zep) - -| Namespace | Phalcon\Forms\Element | -| Uses | Phalcon\Tag, Phalcon\Forms\Element\AbstractElement | -| Extends | AbstractElement | - -Phalcon\Forms\Element\Check - -Component INPUT[type=check] for forms - - -## Methods -```php -public function render( array $attributes = [] ): string; -``` -Renders the element widget returning html - - - - -

        Class Phalcon\Forms\Element\Date

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/forms/element/date.zep) - -| Namespace | Phalcon\Forms\Element | -| Uses | Phalcon\Tag, Phalcon\Forms\Element\AbstractElement | -| Extends | AbstractElement | - -Component INPUT[type=date] for forms - - -## Methods -```php -public function render( array $attributes = [] ): string; -``` -Renders the element widget returning html - - - - -

        Interface Phalcon\Forms\Element\ElementInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/forms/element/elementinterface.zep) - -| Namespace | Phalcon\Forms\Element | -| Uses | Phalcon\Forms\Form, Phalcon\Messages\MessageInterface, Phalcon\Messages\Messages, Phalcon\Validation\ValidatorInterface | - -Interface for Phalcon\Forms\Element classes - - -## Methods -```php -public function addFilter( string $filter ): ElementInterface; -``` -Adds a filter to current list of filters - - -```php -public function addValidator( ValidatorInterface $validator ): ElementInterface; -``` -Adds a validator to the element - - -```php -public function addValidators( array $validators, bool $merge = bool ): ElementInterface; -``` -Adds a group of validators - -@param \Phalcon\Validation\ValidatorInterface[] - - -```php -public function appendMessage( MessageInterface $message ): ElementInterface; -``` -Appends a message to the internal message list - - -```php -public function clear(): ElementInterface; -``` -Clears every element in the form to its default value - - -```php -public function getAttribute( string $attribute, mixed $defaultValue = null ): mixed; -``` -Returns the value of an attribute if present - - -```php -public function getAttributes(): array; -``` -Returns the default attributes for the element - - -```php -public function getDefault(): mixed; -``` -Returns the default value assigned to the element - - -```php -public function getFilters(); -``` -Returns the element's filters - -@return mixed - - -```php -public function getForm(): Form; -``` -Returns the parent form to the element - - -```php -public function getLabel(): string; -``` -Returns the element's label - - -```php -public function getMessages(): Messages; -``` -Returns the messages that belongs to the element -The element needs to be attached to a form - - -```php -public function getName(): string; -``` -Returns the element's name - - -```php -public function getUserOption( string $option, mixed $defaultValue = null ): mixed; -``` -Returns the value of an option if present - - -```php -public function getUserOptions(): array; -``` -Returns the options for the element - - -```php -public function getValidators(): ValidatorInterface[]; -``` -Returns the validators registered for the element - - -```php -public function getValue(): mixed; -``` -Returns the element's value - - -```php -public function hasMessages(): bool; -``` -Checks whether there are messages attached to the element - - -```php -public function label(): string; -``` -Generate the HTML to label the element - - -```php -public function prepareAttributes( array $attributes = [], bool $useChecked = bool ): array; -``` -Returns an array of prepared attributes for Phalcon\Tag helpers -according to the element's parameters - - -```php -public function render( array $attributes = [] ): string; -``` -Renders the element widget - - -```php -public function setAttribute( string $attribute, mixed $value ): ElementInterface; -``` -Sets a default attribute for the element - - -```php -public function setAttributes( array $attributes ): ElementInterface; -``` -Sets default attributes for the element - - -```php -public function setDefault( mixed $value ): ElementInterface; -``` -Sets a default value in case the form does not use an entity -or there is no value available for the element in _POST - - -```php -public function setFilters( mixed $filters ): ElementInterface; -``` -Sets the element's filters - -@param array|string filters - - -```php -public function setForm( Form $form ): ElementInterface; -``` -Sets the parent form to the element - - -```php -public function setLabel( string $label ): ElementInterface; -``` -Sets the element label - - -```php -public function setMessages( Messages $messages ): ElementInterface; -``` -Sets the validation messages related to the element - - -```php -public function setName( string $name ): ElementInterface; -``` -Sets the element's name - - -```php -public function setUserOption( string $option, mixed $value ): ElementInterface; -``` -Sets an option for the element - - -```php -public function setUserOptions( array $options ): ElementInterface; -``` -Sets options for the element - - - - -

        Class Phalcon\Forms\Element\Email

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/forms/element/email.zep) - -| Namespace | Phalcon\Forms\Element | -| Uses | Phalcon\Tag, Phalcon\Forms\Element\AbstractElement | -| Extends | AbstractElement | - -Phalcon\Forms\Element\Email - -Component INPUT[type=email] for forms - - -## Methods -```php -public function render( array $attributes = [] ): string; -``` -Renders the element widget returning html - - - - -

        Class Phalcon\Forms\Element\File

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/forms/element/file.zep) - -| Namespace | Phalcon\Forms\Element | -| Uses | Phalcon\Tag, Phalcon\Forms\Element\AbstractElement | -| Extends | AbstractElement | - -Component INPUT[type=file] for forms - - -## Methods -```php -public function render( array $attributes = [] ): string; -``` -Renders the element widget returning html - - - - -

        Class Phalcon\Forms\Element\Hidden

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/forms/element/hidden.zep) - -| Namespace | Phalcon\Forms\Element | -| Uses | Phalcon\Tag, Phalcon\Forms\Element\AbstractElement | -| Extends | AbstractElement | - -Phalcon\Forms\Element\Hidden - -Component INPUT[type=hidden] for forms - - -## Methods -```php -public function render( array $attributes = [] ): string; -``` -Renders the element widget returning html - - - - -

        Class Phalcon\Forms\Element\Numeric

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/forms/element/numeric.zep) - -| Namespace | Phalcon\Forms\Element | -| Uses | Phalcon\Tag, Phalcon\Forms\Element\AbstractElement | -| Extends | AbstractElement | - -Phalcon\Forms\Element\Numeric - -Component INPUT[type=number] for forms - - -## Methods -```php -public function render( array $attributes = [] ): string; -``` -Renders the element widget returning html - - - - -

        Class Phalcon\Forms\Element\Password

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/forms/element/password.zep) - -| Namespace | Phalcon\Forms\Element | -| Uses | Phalcon\Tag, Phalcon\Forms\Element\AbstractElement | -| Extends | AbstractElement | - -Phalcon\Forms\Element\Password - -Component INPUT[type=password] for forms - - -## Methods -```php -public function render( array $attributes = [] ): string; -``` -Renders the element widget returning html - - - - -

        Class Phalcon\Forms\Element\Radio

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/forms/element/radio.zep) - -| Namespace | Phalcon\Forms\Element | -| Uses | Phalcon\Tag, Phalcon\Forms\Element\AbstractElement | -| Extends | AbstractElement | - -Phalcon\Forms\Element\Radio - -Component INPUT[type=radio] for forms - - -## Methods -```php -public function render( array $attributes = [] ): string; -``` -Renders the element widget returning html - - - - -

        Class Phalcon\Forms\Element\Select

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/forms/element/select.zep) - -| Namespace | Phalcon\Forms\Element | -| Uses | Phalcon\Forms\Element\AbstractElement, Phalcon\Tag\Select | -| Extends | AbstractElement | - -Phalcon\Forms\Element\Select - -Component SELECT (choice) for forms - - -## Properties -```php -// -protected optionsValues; - -``` - -## Methods -```php -public function __construct( string $name, mixed $options = null, mixed $attributes = null ): void; -``` -Phalcon\Forms\Element constructor - -@param object|array options -@param array attributes - - -```php -public function addOption( mixed $option ): Element; -``` -Adds an option to the current options - -@param array|string option - - -```php -public function getOptions(); -``` -Returns the choices' options - -@return array|object - - -```php -public function render( array $attributes = [] ): string; -``` -Renders the element widget returning html - - -```php -public function setOptions( mixed $options ): Element; -``` -Set the choice's options - -@param array|object options - - - - -

        Class Phalcon\Forms\Element\Submit

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/forms/element/submit.zep) - -| Namespace | Phalcon\Forms\Element | -| Uses | Phalcon\Tag, Phalcon\Forms\Element\AbstractElement | -| Extends | AbstractElement | - -Component INPUT[type=submit] for forms - - -## Methods -```php -public function render( array $attributes = [] ): string; -``` -Renders the element widget - - - - -

        Class Phalcon\Forms\Element\Text

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/forms/element/text.zep) - -| Namespace | Phalcon\Forms\Element | -| Uses | Phalcon\Tag, Phalcon\Forms\Element\AbstractElement | -| Extends | AbstractElement | - -Phalcon\Forms\Element\Text - -Component INPUT[type=text] for forms - - -## Methods -```php -public function render( array $attributes = [] ): string; -``` -Renders the element widget - - - - -

        Class Phalcon\Forms\Element\TextArea

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/forms/element/textarea.zep) - -| Namespace | Phalcon\Forms\Element | -| Uses | Phalcon\Tag, Phalcon\Forms\Element\AbstractElement | -| Extends | AbstractElement | - -Component TEXTAREA for forms - - -## Methods -```php -public function render( array $attributes = [] ): string; -``` -Renders the element widget - - - - -

        Class Phalcon\Forms\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/forms/exception.zep) - -| Namespace | Phalcon\Forms | -| Extends | \Phalcon\Exception | - -Exceptions thrown in Phalcon\Forms will use this class - - - -

        Class Phalcon\Forms\Form

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/forms/form.zep) - -| Namespace | Phalcon\Forms | -| Uses | Countable, Iterator, Phalcon\Di\Injectable, Phalcon\Di\DiInterface, Phalcon\FilterInterface, Phalcon\Filter\FilterInterface, Phalcon\Forms\Exception, Phalcon\Forms\Element\ElementInterface, Phalcon\Html\Attributes, Phalcon\Html\Attributes\AttributesInterface, Phalcon\Messages\Messages, Phalcon\Tag, Phalcon\Validation, Phalcon\Validation\ValidationInterface | -| Extends | Injectable | -| Implements | Countable, Iterator, AttributesInterface | - -This component allows to build forms using an object-oriented interface - - -## Properties -```php -// -protected attributes; - -// -protected data; - -// -protected elements; - -// -protected elementsIndexed; - -// -protected entity; - -// -protected messages; - -// -protected position; - -// -protected options; - -// -protected validation; - -``` - -## Methods -```php -public function __construct( mixed $entity = null, array $userOptions = [] ): void; -``` -Phalcon\Forms\Form constructor - - -```php -public function add( ElementInterface $element, string $position = null, bool $type = null ): Form; -``` -Adds an element to the form - - -```php -public function bind( array $data, mixed $entity, mixed $whitelist = null ): Form; -``` -Binds data to the entity - -@param object entity -@param array whitelist - - -```php -public function clear( mixed $fields = null ): Form; -``` -Clears every element in the form to its default value - -@param array|string|null fields - - -```php -public function count(): int; -``` -Returns the number of elements in the form - - -```php -public function current(): ElementInterface | bool; -``` -Returns the current element in the iterator - - -```php -public function get( string $name ): ElementInterface; -``` -Returns an element added to the form by its name - - -```php -public function getAction(): string; -``` -Returns the form's action - - -```php -public function getAttributes(): Attributes; -``` - Get Form attributes collection - - -```php -public function getElements(): ElementInterface[]; -``` -Returns the form elements added to the form - - -```php -public function getEntity(); -``` -Returns the entity related to the model - -@return object - - -```php -public function getLabel( string $name ): string; -``` -Returns a label for an element - - -```php -public function getMessages(): Messages | array; -``` -Returns the messages generated in the validation. - -```php -if ($form->isValid($_POST) == false) { - $messages = $form->getMessages(); - - foreach ($messages as $message) { - echo $message, "
        "; - } -} -``` - - -```php -public function getMessagesFor( string $name ): Messages; -``` -Returns the messages generated for a specific element - - -```php -public function getUserOption( string $option, mixed $defaultValue = null ): mixed; -``` -Returns the value of an option if present - - -```php -public function getUserOptions(): array; -``` -Returns the options for the element - - -```php -public function getValidation() -``` - - -```php -public function getValue( string $name ): mixed | null; -``` -Gets a value from the internal related entity or from the default value - - -```php -public function has( string $name ): bool; -``` -Check if the form contains an element - - -```php -public function hasMessagesFor( string $name ): bool; -``` -Check if messages were generated for a specific element - - -```php -public function isValid( mixed $data = null, mixed $entity = null ): bool; -``` -Validates the form - -@param array data -@param object entity - - -```php -public function key(): int; -``` -Returns the current position/key in the iterator - - -```php -public function label( string $name, array $attributes = null ): string; -``` -Generate the label of an element added to the form including HTML - - -```php -public function next(): void; -``` -Moves the internal iteration pointer to the next position - - -```php -public function remove( string $name ): bool; -``` -Removes an element from the form - - -```php -public function render( string $name, array $attributes = [] ): string; -``` -Renders a specific item in the form - - -```php -public function rewind(): void; -``` -Rewinds the internal iterator - - -```php -public function setAction( string $action ): Form; -``` -Sets the form's action - -@return Form - - -```php -public function setAttributes( Attributes $attributes ): AttributesInterface; -``` - Set form attributes collection - - -```php -public function setEntity( mixed $entity ): Form; -``` -Sets the entity related to the model - -@param object entity - - -```php -public function setUserOption( string $option, mixed $value ): Form; -``` -Sets an option for the form - - -```php -public function setUserOptions( array $options ): Form; -``` -Sets options for the element - - -```php -public function setValidation( $validation ) -``` - - -```php -public function valid(): bool; -``` -Check if the current element in the iterator is valid - - - - -

        Class Phalcon\Forms\Manager

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/forms/manager.zep) - -| Namespace | Phalcon\Forms | - -Forms Manager - - -## Properties -```php -// -protected forms; - -``` - -## Methods -```php -public function create( string $name, mixed $entity = null ): Form; -``` -Creates a form registering it in the forms manager - -@param object entity - - -```php -public function get( string $name ): Form; -``` -Returns a form by its name - - -```php -public function has( string $name ): bool; -``` -Checks if a form is registered in the forms manager - - -```php -public function set( string $name, Form $form ): FormManager; -``` -Registers a form in the Forms Manager - - diff --git a/nikos/api/Phalcon_Helper.md b/nikos/api/Phalcon_Helper.md deleted file mode 100644 index 7b25a80cd04..00000000000 --- a/nikos/api/Phalcon_Helper.md +++ /dev/null @@ -1,77 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Helper' ---- - -* [Phalcon\Helper\Arr](#helper-arr) -* [Phalcon\Helper\Exception](#helper-exception) -* [Phalcon\Helper\Fs](#helper-fs) -* [Phalcon\Helper\Number](#helper-number) -* [Phalcon\Helper\Str](#helper-str) - -

        Class Phalcon\Helper\Arr

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/helper/arr.zep) - -| Namespace | Phalcon\Helper | -| Uses | Phalcon\Helper\Exception, stdClass | - -This class offers quick array functions throughout the framework - - - -

        Class Phalcon\Helper\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/helper/exception.zep) - -| Namespace | Phalcon\Helper | -| Extends | \Phalcon\Exception | - -Exceptions thrown in Phalcon\Helper will use this class - - - -

        Class Phalcon\Helper\Fs

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/helper/fs.zep) - -| Namespace | Phalcon\Helper | - -This class offers file operation helper - - - -

        Class Phalcon\Helper\Number

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/helper/number.zep) - -| Namespace | Phalcon\Helper | -| Uses | Phalcon\Helper\Exception | - -Phalcon\Helper\number - -This class offers numeric functions for the framework - - - -

        Class Phalcon\Helper\Str

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/helper/str.zep) - -| Namespace | Phalcon\Helper | -| Uses | Phalcon\Helper\Arr, Phalcon\Helper\Exception, RuntimeException | - -This class offers quick string functions throughout the framework - - -## Constants -```php -const RANDOM_ALNUM = 0; -const RANDOM_ALPHA = 1; -const RANDOM_DISTINCT = 5; -const RANDOM_HEXDEC = 2; -const RANDOM_NOZERO = 4; -const RANDOM_NUMERIC = 3; -``` diff --git a/nikos/api/Phalcon_Html.md b/nikos/api/Phalcon_Html.md deleted file mode 100644 index 6f5d3cf759b..00000000000 --- a/nikos/api/Phalcon_Html.md +++ /dev/null @@ -1,1540 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Html' ---- - -* [Phalcon\Html\Attributes](#html-attributes) -* [Phalcon\Html\Attributes\AttributesInterface](#html-attributes-attributesinterface) -* [Phalcon\Html\Attributes\RenderInterface](#html-attributes-renderinterface) -* [Phalcon\Html\Breadcrumbs](#html-breadcrumbs) -* [Phalcon\Html\Exception](#html-exception) -* [Phalcon\Html\Helper\AbstractHelper](#html-helper-abstracthelper) -* [Phalcon\Html\Helper\Anchor](#html-helper-anchor) -* [Phalcon\Html\Helper\AnchorRaw](#html-helper-anchorraw) -* [Phalcon\Html\Helper\Body](#html-helper-body) -* [Phalcon\Html\Helper\Button](#html-helper-button) -* [Phalcon\Html\Helper\Close](#html-helper-close) -* [Phalcon\Html\Helper\Element](#html-helper-element) -* [Phalcon\Html\Helper\ElementRaw](#html-helper-elementraw) -* [Phalcon\Html\Helper\Form](#html-helper-form) -* [Phalcon\Html\Helper\Img](#html-helper-img) -* [Phalcon\Html\Helper\Label](#html-helper-label) -* [Phalcon\Html\Helper\TextArea](#html-helper-textarea) -* [Phalcon\Html\Tag](#html-tag) -* [Phalcon\Html\TagFactory](#html-tagfactory) - -

        Class Phalcon\Html\Attributes

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/attributes.zep) - -| Namespace | Phalcon\Html | -| Uses | Phalcon\Collection, Phalcon\Html\Attributes\RenderInterface, Phalcon\Tag | -| Extends | Collection | -| Implements | RenderInterface | - -This class helps to work with HTML Attributes - - -## Methods -```php -public function __toString(): string; -``` -Alias of the render method - - -```php -public function render(): string; -``` -Render attributes as HTML attributes - - - - -

        Interface Phalcon\Html\Attributes\AttributesInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/attributes/attributesinterface.zep) - -| Namespace | Phalcon\Html\Attributes | -| Uses | Phalcon\Html\Attributes | - -* Phalcon\Html\Attributes\AttributesInterface -* -* Interface Phalcon\Html\Attributes\AttributesInterface -*/ - -## Methods -```php -public function getAttributes(): Attributes; -``` -Get Attributes - - -```php -public function setAttributes( Attributes $attributes ): AttributesInterface; -``` -Set Attributes - - - - -

        Interface Phalcon\Html\Attributes\RenderInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/attributes/renderinterface.zep) - -| Namespace | Phalcon\Html\Attributes | - -* Phalcon\Html\Attributes\RenderInterface -* -* Interface Phalcon\Html\Attributes\RenderInterface -*/ - -## Methods -```php -public function render(): string; -``` -Generate a string represetation - - - - -

        Class Phalcon\Html\Breadcrumbs

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/breadcrumbs.zep) - -| Namespace | Phalcon\Html | -| Uses | Phalcon\Di\DiInterface | - -Phalcon\Html\Breadcrumbs - -This component offers an easy way to create breadcrumbs for your application. -The resulting HTML when calling `render()` will have each breadcrumb enclosed -in `
        ` tags, while the whole string is enclosed in `
        ` tags. - - -## Properties -```php -/** - * Keeps all the breadcrumbs - * - * @var array - */ -private elements; - -/** - * Crumb separator - * - * @var string - */ -private separator = / ; - -/** - * The HTML template to use to render the breadcrumbs. - * - * @var string - */ -private template =
        %label%
        ; - -``` - -## Methods -```php -public function add( string $label, string $link = string ): Breadcrumbs; -``` -Adds a new crumb. - -```php -// Adding a crumb with a link -$breadcrumbs->add("Home", "/"); - -// Adding a crumb without a link (normally the last one) -$breadcrumbs->add("Users"); -``` - - -```php -public function clear(): void; -``` -Clears the crumbs - -```php -$breadcrumbs->clear() -``` - - -```php -public function getSeparator(): string -``` - - -```php -public function remove( string $link ): void; -``` -Removes crumb by url. - -```php -$breadcrumbs->remove("/admin/user/create"); - -// remove a crumb without an url (last link) -$breadcrumbs->remove(); -``` - - -```php -public function render(): string; -``` -Renders and outputs breadcrumbs based on previously set template. - -```php -echo $breadcrumbs->render(); -``` - - -```php -public function setSeparator( string $separator ) -``` - - -```php -public function toArray(): array; -``` -Returns the internal breadcrumbs array - - - - -

        Class Phalcon\Html\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/exception.zep) - -| Namespace | Phalcon\Html | -| Extends | \Phalcon\Exception | - -Phalcon\Html\Tag\Exception - -Exceptions thrown in Phalcon\Html\Tag will use this class - - - -

        Abstract Class Phalcon\Html\Helper\AbstractHelper

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/helper/abstracthelper.zep) - -| Namespace | Phalcon\Html\Helper | -| Uses | Phalcon\Html\Exception, Phalcon\Escaper\EscaperInterface | - -Phalcon\Html\Helper\AbstractHelper - -Abstract class for all html helpers - - -## Properties -```php -/** - * @var - */ -protected escaper; - -``` - -## Methods -```php -public function __construct( EscaperInterface $escaper ); -``` -Constructor - - -```php -protected function orderAttributes( array $overrides, array $attributes ): array; -``` -Keeps all the attributes sorted - same order all the tome - -@param array overrides -@param array attributes - -@return array - - -```php -protected function renderAttributes( array $attributes ): string; -``` -Renders all the attributes - - -```php -protected function renderElement( string $tag, array $attributes = [] ): string; -``` -Renders an element - - -```php -protected function renderFullElement( string $tag, string $text, array $attributes = [], bool $raw = bool ): string; -``` -Renders an element - - -```php -protected function selfClose( string $tag, array $attributes = [] ): string; -``` -Produces a self close tag i.e. - - - - -

        Class Phalcon\Html\Helper\Anchor

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/helper/anchor.zep) - -| Namespace | Phalcon\Html\Helper | -| Uses | Phalcon\Html\Helper\AbstractHelper | -| Extends | AbstractHelper | - -Phalcon\Html\Helper\Anchor - -Creates an anchor - - -## Methods -```php -public function __invoke( string $href, string $text, array $attributes = [] ): string; -``` -@var string href The href tag -@var string text The text for the anchor -@var array attributes Any additional attributes - - - - -

        Class Phalcon\Html\Helper\AnchorRaw

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/helper/anchorraw.zep) - -| Namespace | Phalcon\Html\Helper | -| Uses | Phalcon\Html\Helper\AbstractHelper | -| Extends | AbstractHelper | - -Phalcon\Html\Helper\AnchorRaw - -Creates a raw anchor - - -## Methods -```php -public function __invoke( string $href, string $text, array $attributes = [] ): string; -``` -@var string href The href tag -@var string text The text for the anchor -@var array attributes Any additional attributes - - - - -

        Class Phalcon\Html\Helper\Body

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/helper/body.zep) - -| Namespace | Phalcon\Html\Helper | -| Uses | Phalcon\Html\Helper\AbstractHelper | -| Extends | AbstractHelper | - -Phalcon\Html\Helper\Body - -Creates a body tag - - -## Methods -```php -public function __invoke( array $attributes = [] ): string; -``` -@var array attributes Any additional attributes - - - - -

        Class Phalcon\Html\Helper\Button

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/helper/button.zep) - -| Namespace | Phalcon\Html\Helper | -| Uses | Phalcon\Html\Helper\AbstractHelper | -| Extends | AbstractHelper | - -Phalcon\Html\Helper\Button - -Creates a button tag - - -## Methods -```php -public function __invoke( string $text, array $attributes = [] ): string; -``` -@var string text The text for the anchor -@var array attributes Any additional attributes - - - - -

        Class Phalcon\Html\Helper\Close

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/helper/close.zep) - -| Namespace | Phalcon\Html\Helper | -| Extends | AbstractHelper | - -Phalcon\Html\Helper\Close - -Creates a closing tag - - -## Methods -```php -public function __invoke( string $tag ): string; -``` -@param string $tag The tag - -@return string - - - - -

        Class Phalcon\Html\Helper\Element

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/helper/element.zep) - -| Namespace | Phalcon\Html\Helper | -| Uses | Phalcon\Html\Helper\AbstractHelper | -| Extends | AbstractHelper | - -Phalcon\Html\Helper\Address - -Creates an element - - -## Methods -```php -public function __invoke( string $tag, string $text, array $attributes = [] ): string; -``` -@var string tag The tag name -@var string text The text for the anchor -@var array attributes Any additional attributes - - - - -

        Class Phalcon\Html\Helper\ElementRaw

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/helper/elementraw.zep) - -| Namespace | Phalcon\Html\Helper | -| Uses | Phalcon\Html\Exception | -| Extends | AbstractHelper | - -Phalcon\Html\Helper\ElementRaw - -Creates an element raw - - -## Methods -```php -public function __invoke( string $tag, string $text, array $attributes = [] ): string; -``` -@param string $tag The tag for the anchor -@param string $text The text for the anchor -@param array $attributes Any additional attributes - -@return string -@throws Exception - - - - -

        Class Phalcon\Html\Helper\Form

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/helper/form.zep) - -| Namespace | Phalcon\Html\Helper | -| Uses | Phalcon\Html\Helper\AbstractHelper | -| Extends | AbstractHelper | - -Phalcon\Html\Helper\Form - -Creates a form opening tag - - -## Methods -```php -public function __invoke( array $attributes = [] ): string; -``` -@var array attributes Any additional attributes - - - - -

        Class Phalcon\Html\Helper\Img

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/helper/img.zep) - -| Namespace | Phalcon\Html\Helper | -| Uses | Phalcon\Html\Exception | -| Extends | AbstractHelper | - -Phalcon\Html\Helper\Img - -Creates am img tag - - -## Methods -```php -public function __invoke( string $src, array $attributes = [] ): string; -``` -@param string $src -@param array $attributes Any additional attributes - -@return string -@throws Exception - - - - -

        Class Phalcon\Html\Helper\Label

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/helper/label.zep) - -| Namespace | Phalcon\Html\Helper | -| Uses | Phalcon\Html\Exception | -| Extends | AbstractHelper | - -Phalcon\Html\Helper\Label - -Creates a label - - -## Methods -```php -public function __invoke( array $attributes = [] ): string; -``` -@param array $attributes Any additional attributes - -@return string -@throws Exception - - - - -

        Class Phalcon\Html\Helper\TextArea

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/helper/textarea.zep) - -| Namespace | Phalcon\Html\Helper | -| Uses | Phalcon\Html\Helper\AbstractHelper | -| Extends | AbstractHelper | - -Phalcon\Html\Helper\TextArea - -Creates a textarea tag - - -## Methods -```php -public function __invoke( string $text, array $attributes = [] ): string; -``` -@var string text The text for the anchor -@var array attributes Any additional attributes - - - - -

        Class Phalcon\Html\Tag

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/tag.zep) - -| Namespace | Phalcon\Html | -| Uses | Phalcon\Di\DiInterface, Phalcon\Di\AbstractInjectionAware, Phalcon\Escaper, Phalcon\Escaper\EscaperInterface, Phalcon\Helper\Arr, Phalcon\Html\Exception, Phalcon\Url\UrlInterface, Phalcon\Mvc\Model\ResultsetInterface | -| Extends | AbstractInjectionAware | - -Phalcon\Html\Tag - -Phalcon\Html\Tag is designed to simplify building of HTML tags. It provides a -set of helpers to dynamically generate HTML. - - -## Constants -```php -const HTML32 = 1; -const HTML401_FRAMESET = 4; -const HTML401_STRICT = 2; -const HTML401_TRANSITIONAL = 3; -const HTML5 = 5; -const XHTML10_FRAMESET = 8; -const XHTML10_STRICT = 6; -const XHTML10_TRANSITIONAL = 7; -const XHTML11 = 9; -const XHTML20 = 10; -const XHTML5 = 11; -``` - -## Properties -```php -/** - * @var array - */ -private append; - -/** - * @var int - */ -private docType = 5; - -/** - * @var - */ -private escaper; - -/** - * @var array - */ -private prepend; - -/** - * @var string - */ -private separator = ; - -/** - * @var string - */ -private title = ; - -/** - * @var array - */ -private values; - -/** - * @var - */ -private url; - -``` - -## Methods -```php -public function __construct( EscaperInterface $escaper = null, UrlInterface $url = null ); -``` -Constructor - - -```php -public function appendTitle( mixed $title ): Tag; -``` -Appends a text to current document title - - -```php -public function button( string $name, array $parameters = [] ): string; -``` -Builds a HTML input[type="button"] tag - -```php -use Phalcon\Html\Tag; - -$tag = new Tag(); - -echo $tag->button('Click Me'); -``` - -Volt syntax: -```php -{% raw %}{{ button('Click Me') }}{% endraw %} -``` - - -```php -public function clear(): void; -``` -Resets the request and internal values to avoid those fields will have -any default value. - - -```php -public function element( string $tag, array $parameters = [] ): string; -``` -Builds a HTML tag - -Parameters -`onlyStart` Only process the start of th element -`selfClose` It is a self close element -`useEol` Append PHP_EOL at the end - - -```php -public function elementClose( string $tag, array $parameters = [] ): string; -``` -Builds the closing tag of an html element - -Parameters -`useEol` Append PHP_EOL at the end - -```php -use Phalcon\Html\Tag; - -$tab = new Tag(); - -echo $tag->elementClose( - [ - 'name' => 'aside', - ] -); // - -echo $tag->elementClose( - [ - 'name' => 'aside', - 'useEol' => true, - ] -); // '' . PHP_EOL -``` - - -```php -public function endForm( bool $eol = bool ): string; -``` -Returns the closing tag of a form element - - -```php -public function form( string $action, array $parameters = [] ): string; -``` -Builds a HTML FORM tag - -```php -use Phalcon\Html\Tag; - -$tab = new Tag(); - -echo $tag->form('posts/save'); - -echo $tag->form( - 'posts/save', - [ - "method" => "post", - ] -); -``` - -Volt syntax: -```php -{% raw %}{{ form('posts/save') }}{% endraw %} -{% raw %}{{ form('posts/save', ['method': 'post') }}{% endraw %} -``` - - -```php -public function friendlyTitle( string $text, array $parameters = [] ): string; -``` -Converts text to URL-friendly strings - -Parameters -`text` The text to be processed -`separator` Separator to use (default '-') -`lowercase` Convert to lowercase -`replace` - -```php -use Phalcon\Html\Tag; - -$tab = new Tag(); - -echo $tag->friendlyTitle( - [ - 'text' => 'These are big important news', - 'separator' => '-', - ] -); -``` - -Volt Syntax: -```php -{% raw %}{{ friendly_title(['text': 'These are big important news', 'separator': '-']) }}{% endraw %} -``` - - -```php -public function getDocType(): string; -``` -Get the document type declaration of content. If the docType has not -been set properly, XHTML5 is returned - - -```php -public function getTitle( bool $prepend = bool, bool $append = bool ): string; -``` -Gets the current document title. The title will be automatically escaped. - -```php -use Phalcon\Html\Tag; - -$tag = new Tag(); - -$tag - ->setTitleSeparator(' ') - ->prependTitle(['Hello']) - ->setTitle('World') - ->appendTitle(['from Phalcon']); - -echo $tag->getTitle(); // Hello World from Phalcon -echo $tag->getTitle(false); // World from Phalcon -echo $tag->getTitle(true, false); // Hello World -echo $tag->getTitle(false, false); // World -``` - -Volt syntax: -```php -{% raw %}{{ get_title() }}{% endraw %} -``` - - -```php -public function getTitleSeparator(): string; -``` -Gets the current document title separator - -```php -use Phalcon\Html\Tag; - -$tag = new Tag(); - -echo $tag->getTitleSeparator(); -``` - -Volt syntax: -```php -{% raw %}{{ get_title_separator() }}{% endraw %} -``` - - -```php -public function getValue( string $name, array $parameters = [] ): mixed | null; -``` -Every helper calls this function to check whether a component has a -predefined value using `setAttribute` or value from $_POST - - -```php -public function hasValue( string $name ): bool; -``` -Check if a helper has a default value set using `setAttribute()` or -value from $_POST - - -```php -public function image( string $url = string, array $parameters = [] ): string; -``` -Builds HTML IMG tags - -Parameters -`local` Local resource or not (default `true`) - -```php -use Phalcon\Html\Tag; - -$tag = new Tag(); - -echo $tag->image('img/bg.png'); - -echo $tag->image( - 'img/photo.jpg', - [ - 'alt' => 'Some Photo', - ] -); - -echo $tag->image( - 'http://static.mywebsite.com/img/bg.png', - [ - 'local' => false, - ] -); -``` - -Volt Syntax: -```php -{% raw %}{{ image('img/bg.png') }}{% endraw %} -{% raw %}{{ image('img/photo.jpg', ['alt': 'Some Photo') }}{% endraw %} -{% raw %}{{ image('http://static.mywebsite.com/img/bg.png', ['local': false]) }}{% endraw %} -``` - - -```php -public function inputCheckbox( string $name, array $parameters = [] ): string; -``` -Builds a HTML input[type="check"] tag - -```php -echo $tag->inputCheckbox( - [ - 'name' => 'terms, - 'value' => 'Y', - ] -); -``` - -Volt syntax: -```php -{% raw %}{{ input_checkbox(['name': 'terms, 'value': 'Y']) }}{% endraw %} -``` - - -```php -public function inputColor( string $name, array $parameters = [] ): string; -``` -Builds a HTML input[type='color'] tag - - -```php -public function inputDate( string $name, array $parameters = [] ): string; -``` -Builds a HTML input[type='date'] tag - -```php -use Phalcon\Html\Tag; - -$tag = new Tag(); - -echo $tag->inputDate( - [ - 'name' => 'born', - 'value' => '14-12-1980', - ] -); -``` - -Volt syntax: -```php -{% raw %}{{ input_date(['name':'born', 'value':'14-12-1980']) }}{% endraw %} -``` - - -```php -public function inputDateTime( string $name, array $parameters = [] ): string; -``` - Builds a HTML input[type='datetime'] tag - -```php -use Phalcon\Html\Tag; - -$tag = new Tag(); - -echo $tag->inputDateTime( - [ - 'name' => 'born', - 'value' => '14-12-1980', - ] -); -``` - -Volt syntax: -```php -{% raw %}{{ input_date_time(['name':'born', 'value':'14-12-1980']) }}{% endraw %} -``` - - -```php -public function inputDateTimeLocal( string $name, array $parameters = [] ): string; -``` - Builds a HTML input[type='datetime-local'] tag - -```php -use Phalcon\Html\Tag; - -$tag = new Tag(); - -echo $tag->inputDateTimeLocal( - [ - 'name' => 'born', - 'value' => '14-12-1980', - ] -); -``` - -Volt syntax: -```php -{% raw %}{{ input_date_time_local(['name':'born', 'value':'14-12-1980']) }}{% endraw %} -``` - - -```php -public function inputEmail( string $name, array $parameters = [] ): string; -``` -Builds a HTML input[type='email'] tag - -```php -use Phalcon\Html\Tag; - -$tag = new Tag(); - -echo $tag->inputEmail( - [ - 'name' => 'email', - ] -); -``` - -Volt syntax: -```php -{% raw %}{{ input_email(['name': 'email']);{% endraw %} -``` - - -```php -public function inputFile( string $name, array $parameters = [] ): string; -``` -Builds a HTML input[type='file'] tag - -```php -use Phalcon\Html\Tag; - -$tag = new Tag(); - -echo $tag->inputFile( - [ - 'name' => 'file', - ] -); -``` - -Volt syntax: -```php -{% raw %}{{ input_file(['name': 'file']){% endraw %} -``` - - -```php -public function inputHidden( string $name, array $parameters = [] ): string; -``` -Builds a HTML input[type='hidden'] tag - -```php -use Phalcon\Html\Tag; - -$tag = new Tag(); - -echo $tag->inputHidden( - [ - 'name' => 'my-field', - 'value' => 'mike', - ] -); -``` - - -```php -public function inputImage( string $name, array $parameters = [] ): string; -``` -Builds a HTML input[type="image"] tag - -```php -use Phalcon\Html\Tag; - -$tag = new Tag(); -echo $tag->inputImage( - [ - 'src' => '/img/button.png', - ] -); -``` - -Volt syntax: -```php -{% raw %}{{ input_image(['src': '/img/button.png']) }}{% endraw %} -``` - - -```php -public function inputMonth( string $name, array $parameters = [] ): string; -``` -Builds a HTML input[type='month'] tag - - -```php -public function inputNumeric( string $name, array $parameters = [] ): string; -``` -Builds a HTML input[type='number'] tag - -```php -use Phalcon\Html\Tag; - -$tag = new Tag(); - -echo $tag->numericField( - [ - 'name' => 'price', - 'min' => '1', - 'max' => '5', - ] -); -``` - - -```php -public function inputPassword( string $name, array $parameters = [] ): string; -``` -Builds a HTML input[type='password'] tag - -```php -use Phalcon\Html\Tag; - -$tag = new Tag(); - -echo $tag->passwordField( - [ - 'name' => 'my-field', - 'size' => 30, - ] -); -``` - - -```php -public function inputRadio( string $name, array $parameters = [] ): string; -``` -Builds a HTML input[type="radio"] tag - -```php -use Phalcon\Html\Tag; - -$tag = new Tag(); - -echo $tag->inputRadio( - [ - 'name' => 'weather', - 'value" => 'hot', - ] -); -``` - -Volt syntax: -```php -{% raw %}{{ input_radio(['name': 'weather', 'value": 'hot']) }}{% endraw %} -``` - - -```php -public function inputRange( string $name, array $parameters = [] ): string; -``` - Builds a HTML input[type='range'] tag - - -```php -public function inputSearch( string $name, array $parameters = [] ): string; -``` -Builds a HTML input[type='search'] tag - - -```php -public function inputTel( string $name, array $parameters = [] ): string; -``` - Builds a HTML input[type='tel'] tag - - -```php -public function inputText( string $name, array $parameters = [] ): string; -``` -Builds a HTML input[type='text'] tag - -```php -use Phalcon\Html\Tag; - -$tag = new Tag(); - -echo $tag->inputText( - [ - 'name' => 'my-field', - 'size' => 30, - ] -); -``` - - -```php -public function inputTime( string $name, array $parameters = [] ): string; -``` -Builds a HTML input[type='time'] tag - - -```php -public function inputUrl( string $name, array $parameters = [] ): string; -``` -Builds a HTML input[type='url'] tag - - -```php -public function inputWeek( string $name, array $parameters = [] ): string; -``` -Builds a HTML input[type='week'] tag - - -```php -public function javascript( string $url, array $parameters = [] ): string; -``` -Builds a script[type="javascript"] tag - -Parameters -`local` Local resource or not (default `true`) - -```php -use Phalcon\Html\Tag; - -$tag = new Tag(); - -echo $tag->javascript( - 'http://ajax.googleapis.com/ajax/libs/jquery/2.2.3/jquery.min.js', - [ - 'local' => false, - ] -); - -echo $tag->javascript('javascript/jquery.js'); -``` - -Volt syntax: -```php -{% raw %}{{ javascript('http://ajax.googleapis.com/ajax/libs/jquery/2.2.3/jquery.min.js', ['local': false]) }}{% endraw %} -{% raw %}{{ javascript('javascript/jquery.js') }}{% endraw %} -``` - - -```php -public function link( string $url, string $text = string, array $parameters = [] ): string; -``` -Builds a HTML A tag using framework conventions - -Parameters -`local` Local resource or not (default `true`) - -```php -use Phalcon\Html\Tag; - -$tag = new Tag(); - -echo $tag->link('signup/register', 'Register Here!'); - -echo $tag->link( - 'signup/register', - 'Register Here!', - [ - 'class' => 'btn-primary', - ] -); - -echo $tag->link( - 'https://phalcon.io/', - 'Phalcon!', - [ - 'local' => false, - ] -); - -echo $tag->link( - 'https://phalcon.io/', - 'Phalcon!', - [ - 'local' => false, - 'target' => '_new', - ] -); -``` - - -```php -public function prependTitle( mixed $title ): Tag; -``` -Prepends a text to current document title - - -```php -public function renderTitle( bool $prepend = bool, bool $append = bool ): string; -``` -Renders the title with title tags. The title is automaticall escaped - -```php -use Phalcon\Html\Tag; - -$tag = new Tag(); - -$tag - ->setTitleSeparator(' ') - ->prependTitle(['Hello']) - ->setTitle('World') - ->appendTitle(['from Phalcon']); - -echo $tag->renderTitle(); // Hello World from Phalcon -echo $tag->renderTitle(false); // World from Phalcon -echo $tag->renderTitle(true, false); // Hello World -echo $tag->renderTitle(false, false); // World -``` - -```php -{% raw %}{{ render_title() }}{% endraw %} -``` - - -```php -public function reset( string $name, array $parameters = [] ): string; -``` -Builds a HTML input[type="reset"] tag - -```php -use Phalcon\Html\Tag; - -$tag = new Tag(); - -echo $tag->reset('Reset') -``` - -Volt syntax: -```php -{% raw %}{{ reset('Save') }}{% endraw %} -``` - - -```php -public function select( string $name, array $parameters = [], mixed $data = null ): string; -``` -Builds a select element. It accepts an array or a resultset from -a Phalcon\Mvc\Model - -```php -use Phalcon\Html\Tag; - -$tag = new Tag(); - -echo $tag->select( - 'status', - [ - 'id' => 'status-id', - 'useEmpty' => true, - 'emptyValue => '', - 'emptyText' => 'Choose Status...', - ], - [ - 'A' => 'Active', - 'I' => 'Inactive', - ] -); - -echo $tag->select( - 'status', - [ - 'id' => 'status-id', - 'useEmpty' => true, - 'emptyValue => '', - 'emptyText' => 'Choose Type...', - 'using' => [ - 'id, - 'name', - ], - ], - Robots::find( - [ - 'conditions' => 'type = :type:', - 'bind' => [ - 'type' => 'mechanical', - ] - ] - ) -); -``` - - -```php -public function setAttribute( string $name, mixed $value ): Tag; -``` -Assigns default values to generated tags by helpers - -```php -use Phalcon\Html\Tag; - -$tag = new Tag(); - -// Assigning 'peter' to 'name' component -$tag->setAttribute('name', 'peter'); - -// Later in the view -echo $tag->inputText('name'); // Will have the value 'peter' by default -``` - - -```php -public function setAttributes( array $values, bool $merge = bool ): Tag; -``` -Assigns default values to generated tags by helpers - -```php -use Phalcon\Html\Tag; - -$tag = new Tag(); - -// Assigning 'peter' to 'name' component -$tag->setAttribute( - [ - 'name' => 'peter', - ] -); - -// Later in the view -echo $tag->inputText('name'); // Will have the value 'peter' by default -``` - - -```php -public function setDocType( int $doctype ): Tag; -``` -Set the document type of content - - -```php -public function setTitle( string $title ): Tag; -``` -Set the title separator of view content - -```php -use Phalcon\Html\Tag; - -$tag = new Tag(); - -$tag->setTitle('Phalcon Framework'); -``` - - -```php -public function setTitleSeparator( string $separator ): Tag; -``` -Set the title separator of view content - -```php -use Phalcon\Html\Tag; - -$tag = new Tag(); - -echo $tag->setTitleSeparator('-'); -``` - - -```php -public function stylesheet( string $url, array $parameters = [] ): string; -``` -Builds a LINK[rel="stylesheet"] tag - -Parameters -`local` Local resource or not (default `true`) - -```php -use Phalcon\Html\Tag; - -$tag = new Tag(); - -echo $tag->stylesheet( - 'http://fonts.googleapis.com/css?family=Rosario', - [ - 'local' => false, - ] -); - -echo $tag->stylesheet('css/style.css'); -``` - -Volt syntax: -```php -{% raw %}{{ stylesheet('http://fonts.googleapis.com/css?family=Rosario', ['local': false]) }}{% endraw %} -{% raw %}{{ stylesheet('css/style.css') }}{% endraw %} -``` - - -```php -public function submit( string $name, array $parameters = [] ): string; -``` -Builds a HTML input[type="submit"] tag - -```php -use Phalcon\Html\Tag; - -$tag = new Tag(); - -echo $tag->submit('Save'); -``` - -Volt syntax: -```php -{% raw %}{{ submit('Save') }}{% endraw %} -``` - - -```php -public function textArea( string $name, array $parameters = [] ): string; -``` -Builds a HTML TEXTAREA tag - -```php -use Phalcon\Html\Tag; - -$tag = new Tag(); - -echo $tag->textArea( - 'comments', - [ - 'cols' => 10, - 'rows' => 4, - ] -); -``` - -Volt syntax: -```php -{% raw %}{{ text_area('comments', ['cols': 10, 'rows': 4]) }}{% endraw %} -``` - - - - -

        Class Phalcon\Html\TagFactory

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/html/tagfactory.zep) - -| Namespace | Phalcon\Html | -| Uses | Phalcon\Escaper, Phalcon\Escaper\EscaperInterface, Phalcon\Factory\AbstractFactory | -| Extends | AbstractFactory | - -ServiceLocator implementation for Tag helpers - - -## Properties -```php -/** - * @var - */ -private escaper; - -``` - -## Methods -```php -public function __construct( EscaperInterface $escaper, array $services = [] ); -``` -TagFactory constructor. - - -```php -public function newInstance( string $name ): mixed; -``` -@param string name - -@return mixed -@throws Exception - - -```php -protected function getAdapters(): array; -``` -// - diff --git a/nikos/api/Phalcon_Http.md b/nikos/api/Phalcon_Http.md deleted file mode 100644 index cbda4e9f312..00000000000 --- a/nikos/api/Phalcon_Http.md +++ /dev/null @@ -1,4515 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Http' ---- - -* [Phalcon\Http\Cookie](#http-cookie) -* [Phalcon\Http\Cookie\Exception](#http-cookie-exception) -* [Phalcon\Http\CookieInterface](#http-cookieinterface) -* [Phalcon\Http\Message\AbstractCommon](#http-message-abstractcommon) -* [Phalcon\Http\Message\AbstractMessage](#http-message-abstractmessage) -* [Phalcon\Http\Message\AbstractRequest](#http-message-abstractrequest) -* [Phalcon\Http\Message\Exception\InvalidArgumentException](#http-message-exception-invalidargumentexception) -* [Phalcon\Http\Message\Request](#http-message-request) -* [Phalcon\Http\Message\RequestFactory](#http-message-requestfactory) -* [Phalcon\Http\Message\Response](#http-message-response) -* [Phalcon\Http\Message\ResponseFactory](#http-message-responsefactory) -* [Phalcon\Http\Message\ServerRequest](#http-message-serverrequest) -* [Phalcon\Http\Message\ServerRequestFactory](#http-message-serverrequestfactory) -* [Phalcon\Http\Message\Stream](#http-message-stream) -* [Phalcon\Http\Message\Stream\Input](#http-message-stream-input) -* [Phalcon\Http\Message\Stream\Memory](#http-message-stream-memory) -* [Phalcon\Http\Message\Stream\Temp](#http-message-stream-temp) -* [Phalcon\Http\Message\StreamFactory](#http-message-streamfactory) -* [Phalcon\Http\Message\UploadedFile](#http-message-uploadedfile) -* [Phalcon\Http\Message\UploadedFileFactory](#http-message-uploadedfilefactory) -* [Phalcon\Http\Message\Uri](#http-message-uri) -* [Phalcon\Http\Message\UriFactory](#http-message-urifactory) -* [Phalcon\Http\Request](#http-request) -* [Phalcon\Http\Request\Exception](#http-request-exception) -* [Phalcon\Http\Request\File](#http-request-file) -* [Phalcon\Http\Request\FileInterface](#http-request-fileinterface) -* [Phalcon\Http\RequestInterface](#http-requestinterface) -* [Phalcon\Http\Response](#http-response) -* [Phalcon\Http\Response\Cookies](#http-response-cookies) -* [Phalcon\Http\Response\CookiesInterface](#http-response-cookiesinterface) -* [Phalcon\Http\Response\Exception](#http-response-exception) -* [Phalcon\Http\Response\Headers](#http-response-headers) -* [Phalcon\Http\Response\HeadersInterface](#http-response-headersinterface) -* [Phalcon\Http\ResponseInterface](#http-responseinterface) -* [Phalcon\Http\Server\AbstractMiddleware](#http-server-abstractmiddleware) -* [Phalcon\Http\Server\AbstractRequestHandler](#http-server-abstractrequesthandler) - -

        Class Phalcon\Http\Cookie

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/cookie.zep) - -| Namespace | Phalcon\Http | -| Uses | Phalcon\Di\DiInterface, Phalcon\Di\AbstractInjectionAware, Phalcon\Crypt\CryptInterface, Phalcon\Crypt\Mismatch, Phalcon\Filter\FilterInterface, Phalcon\Http\Response\Exception, Phalcon\Http\Cookie\Exception, Phalcon\Session\ManagerInterface | -| Extends | AbstractInjectionAware | -| Implements | CookieInterface | - -Provide OO wrappers to manage a HTTP cookie. - - -## Properties -```php -// -protected domain; - -// -protected expire; - -// -protected filter; - -// -protected httpOnly; - -// -protected name; - -// -protected path; - -// -protected read = false; - -// -protected restored = false; - -// -protected secure; - -/** - * The cookie's sign key. - * @var string|null - */ -protected signKey; - -// -protected useEncryption = false; - -// -protected value; - -``` - -## Methods -```php -public function __construct( string $name, mixed $value = null, int $expire = int, string $path = string, bool $secure = null, string $domain = null, bool $httpOnly = bool ); -``` -Phalcon\Http\Cookie constructor. - - -```php -public function __toString(): string; -``` -Magic __toString method converts the cookie's value to string - - -```php -public function delete(); -``` -Deletes the cookie by setting an expire time in the past - - -```php -public function getDomain(): string; -``` -Returns the domain that the cookie is available to - - -```php -public function getExpiration(): string; -``` -Returns the current expiration time - - -```php -public function getHttpOnly(): bool; -``` -Returns if the cookie is accessible only through the HTTP protocol - - -```php -public function getName(): string; -``` -Returns the current cookie's name - - -```php -public function getPath(): string; -``` -Returns the current cookie's path - - -```php -public function getSecure(): bool; -``` -Returns whether the cookie must only be sent when the connection is -secure (HTTPS) - - -```php -public function getValue( mixed $filters = null, mixed $defaultValue = null ): mixed; -``` -Returns the cookie's value. - - -```php -public function isUsingEncryption(): bool; -``` -Check if the cookie is using implicit encryption - - -```php -public function restore(): CookieInterface; -``` -Reads the cookie-related info from the SESSION to restore the cookie as -it was set. - -This method is automatically called internally so normally you don't -need to call it. - - -```php -public function send(): CookieInterface; -``` -Sends the cookie to the HTTP client. - -Stores the cookie definition in session. - - -```php -public function setDomain( string $domain ): CookieInterface; -``` -Sets the domain that the cookie is available to - - -```php -public function setExpiration( int $expire ): CookieInterface; -``` -Sets the cookie's expiration time - - -```php -public function setHttpOnly( bool $httpOnly ): CookieInterface; -``` -Sets if the cookie is accessible only through the HTTP protocol - - -```php -public function setPath( string $path ): CookieInterface; -``` -Sets the cookie's expiration time - - -```php -public function setSecure( bool $secure ): CookieInterface; -``` -Sets if the cookie must only be sent when the connection is secure (HTTPS) - - -```php -public function setSignKey( string $signKey = null ): CookieInterface; -``` -Sets the cookie's sign key. - -The `$signKey' MUST be at least 32 characters long -and generated using a cryptographically secure pseudo random generator. - -Use NULL to disable cookie signing. - -@see \Phalcon\Security\Random -@throws \Phalcon\Http\Cookie\Exception - - -```php -public function setValue( mixed $value ): CookieInterface; -``` -Sets the cookie's value - -@param string value - - -```php -public function useEncryption( bool $useEncryption ): CookieInterface; -``` -Sets if the cookie must be encrypted/decrypted automatically - - -```php -protected function assertSignKeyIsLongEnough( string $signKey ): void; -``` -Assert the cookie's key is enough long. - -@throws \Phalcon\Http\Cookie\Exception - - - - -

        Class Phalcon\Http\Cookie\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/cookie/exception.zep) - -| Namespace | Phalcon\Http\Cookie | -| Extends | \Phalcon\Exception | - -Phalcon\Http\Cookie\Exception - -Exceptions thrown in Phalcon\Http\Cookie will use this class. - - - -

        Interface Phalcon\Http\CookieInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/cookieinterface.zep) - -| Namespace | Phalcon\Http | - -Interface for Phalcon\Http\Cookie - - -## Methods -```php -public function delete(); -``` -Deletes the cookie - - -```php -public function getDomain(): string; -``` -Returns the domain that the cookie is available to - - -```php -public function getExpiration(): string; -``` -Returns the current expiration time - - -```php -public function getHttpOnly(): bool; -``` -Returns if the cookie is accessible only through the HTTP protocol - - -```php -public function getName(): string; -``` -Returns the current cookie's name - - -```php -public function getPath(): string; -``` -Returns the current cookie's path - - -```php -public function getSecure(): bool; -``` -Returns whether the cookie must only be sent when the connection is -secure (HTTPS) - - -```php -public function getValue( mixed $filters = null, mixed $defaultValue = null ): mixed; -``` -Returns the cookie's value. - - -```php -public function isUsingEncryption(): bool; -``` -Check if the cookie is using implicit encryption - - -```php -public function send(): CookieInterface; -``` -Sends the cookie to the HTTP client - - -```php -public function setDomain( string $domain ): CookieInterface; -``` -Sets the domain that the cookie is available to - - -```php -public function setExpiration( int $expire ): CookieInterface; -``` -Sets the cookie's expiration time - - -```php -public function setHttpOnly( bool $httpOnly ): CookieInterface; -``` -Sets if the cookie is accessible only through the HTTP protocol - - -```php -public function setPath( string $path ): CookieInterface; -``` -Sets the cookie's expiration time - - -```php -public function setSecure( bool $secure ): CookieInterface; -``` -Sets if the cookie must only be sent when the connection is secure -(HTTPS) - - -```php -public function setValue( mixed $value ): CookieInterface; -``` -Sets the cookie's value - -@param string value - - -```php -public function useEncryption( bool $useEncryption ): CookieInterface; -``` -Sets if the cookie must be encrypted/decrypted automatically - - - - -

        Abstract Class Phalcon\Http\Message\AbstractCommon

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/abstractcommon.zep) - -| Namespace | Phalcon\Http\Message | -| Uses | Phalcon\Http\Message\Exception\InvalidArgumentException | - -Common methods - - -## Methods -```php -final protected function checkStringParameter( mixed $element ): void; -``` -Checks the element passed if it is a string - -@param mixed $element - - -```php -final protected function cloneInstance( mixed $element, string $property ): object; -``` -Returns a new instance having set the parameter - -@param mixed $element -@param string $property - -@return mixed - - -```php -final protected function processWith( mixed $element, string $property ): object; -``` -Checks the element passed; assigns it to the property and returns a -clone of the object back - -@param mixed $element -@param string $property - -@return mixed - - - - -

        Abstract Class Phalcon\Http\Message\AbstractMessage

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/abstractmessage.zep) - -| Namespace | Phalcon\Http\Message | -| Uses | Phalcon\Collection, Phalcon\Http\Message\AbstractCommon, Phalcon\Http\Message\Exception\InvalidArgumentException, Phalcon\Http\Message\Stream, Psr\Http\Message\StreamInterface, Psr\Http\Message\UriInterface | -| Extends | AbstractCommon | - -Message methods - - -## Properties -```php -/** - * Gets the body of the message. - * - * @var - */ -protected body; - -/** - * @var - */ -protected headers; - -/** - * Retrieves the HTTP protocol version as a string. - * - * The string MUST contain only the HTTP version number (e.g., '1.1', - * '1.0'). - * - * @return string HTTP protocol version. - * - * @var string - */ -protected protocolVersion = 1.1; - -/** - * Retrieves the URI instance. - * - * This method MUST return a UriInterface instance. - * - * @see http://tools.ietf.org/html/rfc3986#section-4.3 - * - * @var UriInterface - */ -protected uri; - -``` - -## Methods -```php -public function getBody(): -``` - - -```php -public function getHeader( mixed $name ): array; -``` -Retrieves a message header value by the given case-insensitive name. - -This method returns an array of all the header values of the given -case-insensitive header name. - -If the header does not appear in the message, this method MUST return an -empty array. - -@param string $name - -@return array - - -```php -public function getHeaderLine( mixed $name ): string; -``` -Retrieves a comma-separated string of the values for a single header. - -This method returns all of the header values of the given -case-insensitive header name as a string concatenated together using -a comma. - -NOTE: Not all header values may be appropriately represented using -comma concatenation. For such headers, use getHeader() instead -and supply your own delimiter when concatenating. - -If the header does not appear in the message, this method MUST return -an empty string. - -@param string $name - -@return string - - -```php -public function getHeaders(): array; -``` -Retrieves all message header values. - -The keys represent the header name as it will be sent over the wire, and -each value is an array of strings associated with the header. - - // Represent the headers as a string - foreach ($message->getHeaders() as $name => $values) { - echo $name . ': ' . implode(', ', $values); - } - - // Emit headers iteratively: - foreach ($message->getHeaders() as $name => $values) { - foreach ($values as $value) { - header(sprintf('%s: %s', $name, $value), false); - } - } - -While header names are not case-sensitive, getHeaders() will preserve the -exact case in which headers were originally specified. - -@return array - - -```php -public function getProtocolVersion(): string -``` - - -```php -public function getUri(): UriInterface -``` - - -```php -public function hasHeader( mixed $name ): bool; -``` -Checks if a header exists by the given case-insensitive name. - -@param string $name - -@return bool - - -```php -public function withAddedHeader( mixed $name, mixed $value ): object; -``` -Return an instance with the specified header appended with the given -value. - -Existing values for the specified header will be maintained. The new -value(s) will be appended to the existing list. If the header did not -exist previously, it will be added. - -This method MUST be implemented in such a way as to retain the -immutability of the message, and MUST return an instance that has the -new header and/or value. - -@param string $name -@param string|string[] $value - -@return self - - -```php -public function withBody( StreamInterface $body ): object; -``` -Return an instance with the specified message body. - -The body MUST be a StreamInterface object. - -This method MUST be implemented in such a way as to retain the -immutability of the message, and MUST return a new instance that has the -new body stream. - -@param StreamInterface $body - -@return self -@throws InvalidArgumentException When the body is not valid. - - - -```php -public function withHeader( mixed $name, mixed $value ): object; -``` -Return an instance with the provided value replacing the specified -header. - -While header names are case-insensitive, the casing of the header will -be preserved by this function, and returned from getHeaders(). - -This method MUST be implemented in such a way as to retain the -immutability of the message, and MUST return an instance that has the -new and/or updated header and value. - -@param string $name -@param string|string[] $value - -@return self -@throws InvalidArgumentException for invalid header names or values. - - - -```php -public function withProtocolVersion( mixed $version ): object; -``` -Return an instance with the specified HTTP protocol version. - -The version string MUST contain only the HTTP version number (e.g., -'1.1', '1.0'). - -This method MUST be implemented in such a way as to retain the -immutability of the message, and MUST return an instance that has the -new protocol version. - -@param string $version - -@return self - - -```php -public function withoutHeader( mixed $name ): object; -``` -Return an instance without the specified header. - -Header resolution MUST be done without case-sensitivity. - -This method MUST be implemented in such a way as to retain the -immutability of the message, and MUST return an instance that removes -the named header. - -@param string $name - -@return self - - -```php -final protected function checkHeaderHost( Collection $collection ): Collection; -``` -Ensure Host is the first header. - -@see: http://tools.ietf.org/html/rfc7230#section-5.4 - -@param Collection $collection - -@return Collection - - -```php -final protected function checkHeaderName( mixed $name ): void; -``` -Check the name of the header. Throw exception if not valid - -@see http://tools.ietf.org/html/rfc7230#section-3.2 - -@param $name - - -```php -final protected function checkHeaderValue( mixed $value ): void; -``` -Validates a header value - -Most HTTP header field values are defined using common syntax -components (token, quoted-string, and comment) separated by -whitespace or specific delimiting characters. Delimiters are chosen -from the set of US-ASCII visual characters not allowed in a token -(DQUOTE and '(),/:;<=>?@[\]{}'). - - token = 1*tchar - - tchar = '!' / '#' / '$' / '%' / '&' / ''' / '*' - / '+' / '-' / '.' / '^' / '_' / '`' / '|' / '~' - / DIGIT / ALPHA - ; any VCHAR, except delimiters - -A string of text is parsed as a single value if it is quoted using -double-quote marks. - - quoted-string = DQUOTE( qdtext / quoted-pair ) DQUOTE - qdtext = HTAB / SP /%x21 / %x23-5B / %x5D-7E / obs-text - obs-text = %x80-FF - -Comments can be included in some HTTP header fields by surrounding -the comment text with parentheses. Comments are only allowed in -fields containing 'comment' as part of their field value definition. - - comment = '('( ctext / quoted-pair / comment ) ')' - ctext = HTAB / SP / %x21-27 / %x2A-5B / %x5D-7E / obs-text - -The backslash octet ('\') can be used as a single-octet quoting -mechanism within quoted-string and comment constructs. Recipients -that process the value of a quoted-string MUST handle a quoted-pair -as if it were replaced by the octet following the backslash. - - quoted-pair = '\' ( HTAB / SP / VCHAR / obs-text ) - -A sender SHOULD NOT generate a quoted-pair in a quoted-string except -where necessary to quote DQUOTE and backslash octets occurring within -that string. A sender SHOULD NOT generate a quoted-pair in a comment -except where necessary to quote parentheses ['(' and ')'] and -backslash octets occurring within that comment. - -@see https://tools.ietf.org/html/rfc7230#section-3.2.6 - -@param $value - - -```php -final protected function getHeaderValue( mixed $values ): array; -``` -Returns the header values checked for validity - -@param $values - -@return array - - -```php -final protected function getUriHost( UriInterface $uri ): string; -``` -Return the host and if applicable the port - -@param UriInterface $uri - -@return string - - -```php -final protected function populateHeaderCollection( array $headers ): Collection; -``` -Populates the header collection - -@param array $headers - -@return Collection - - -```php -final protected function processBody( mixed $body = string, string $mode = string ): StreamInterface; -``` -Set a valid stream - -@param StreamInterface|resource|string $body -@param string $mode - -@return StreamInterface - - -```php -final protected function processHeaders( mixed $headers ): Collection; -``` -Sets the headers - -@param $headers - -@return Collection - - -```php -final protected function processProtocol( mixed $protocol = string ): string; -``` -Checks the protocol - -@param string $protocol - -@return string - - - - -

        Abstract Class Phalcon\Http\Message\AbstractRequest

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/abstractrequest.zep) - -| Namespace | Phalcon\Http\Message | -| Uses | Phalcon\Collection, Phalcon\Http\Message\AbstractMessage, Phalcon\Http\Message\Exception\InvalidArgumentException, Phalcon\Http\Message\Uri, Psr\Http\Message\UriInterface | -| Extends | AbstractMessage | - -Request methods - - -## Properties -```php -/** - * Retrieves the HTTP method of the request. - * - * @var string - */ -protected method = GET; - -/** - * The request-target, if it has been provided or calculated. - * - * @var null|string - */ -protected requestTarget; - -/** - * Retrieves the URI instance. - * - * This method MUST return a UriInterface instance. - * - * @see http://tools.ietf.org/html/rfc3986#section-4.3 - * - * @var UriInterface - */ -protected uri; - -``` - -## Methods -```php -public function getMethod(): string -``` - - -```php -public function getRequestTarget(): string; -``` -Retrieves the message's request target. - -Retrieves the message's request-target either as it will appear (for -clients), as it appeared at request (for servers), or as it was -specified for the instance (see withRequestTarget()). - -In most cases, this will be the origin-form of the composed URI, unless a -value was provided to the concrete implementation (see -withRequestTarget() below). - -@return string - - -```php -public function getUri(): UriInterface -``` - - -```php -public function withMethod( mixed $method ): object; -``` -Return an instance with the provided HTTP method. - -While HTTP method names are typically all uppercase characters, HTTP -method names are case-sensitive and thus implementations SHOULD NOT -modify the given string. - -This method MUST be implemented in such a way as to retain the -immutability of the message, and MUST return an instance that has the -changed request method. - -@param string $method - -@return object -@throws InvalidArgumentException for invalid HTTP methods. - - - -```php -public function withRequestTarget( mixed $requestTarget ): object; -``` -Return an instance with the specific request-target. - -If the request needs a non-origin-form request-target — e.g., for -specifying an absolute-form, authority-form, or asterisk-form — -this method may be used to create an instance with the specified -request-target, verbatim. - -This method MUST be implemented in such a way as to retain the -immutability of the message, and MUST return an instance that has the -changed request target. - -@see http://tools.ietf.org/html/rfc7230#section-5.3 (for the various - request-target forms allowed in request messages) - -@param mixed $requestTarget - -@return object - - -```php -public function withUri( UriInterface $uri, mixed $preserveHost = bool ): object; -``` -Returns an instance with the provided URI. - -This method MUST update the Host header of the returned request by -default if the URI contains a host component. If the URI does not -contain a host component, any pre-existing Host header MUST be carried -over to the returned request. - -You can opt-in to preserving the original state of the Host header by -setting `$preserveHost` to `true`. When `$preserveHost` is set to -`true`, this method interacts with the Host header in the following -ways: - -- If the Host header is missing or empty, and the new URI contains - a host component, this method MUST update the Host header in the - returned request. -- If the Host header is missing or empty, and the new URI does not -contain a host component, this method MUST NOT update the Host header in -the returned request. -- If a Host header is present and non-empty, this method MUST NOT update - the Host header in the returned request. - -This method MUST be implemented in such a way as to retain the -immutability of the message, and MUST return an instance that has the -new UriInterface instance. - -@see http://tools.ietf.org/html/rfc3986#section-4.3 - -@param UriInterface $uri -@param bool $preserveHost - -@return object - - -```php -final protected function processMethod( mixed $method = string ): string; -``` -Check the method - -@param string $method - -@return string - - -```php -final protected function processUri( mixed $uri ): UriInterface; -``` -Sets a valid Uri - -@param UriInterface|string|null $uri - -@return UriInterface - - - - -

        Class Phalcon\Http\Message\Exception\InvalidArgumentException

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/exception/invalidargumentexception.zep) - -| Namespace | Phalcon\Http\Message\Exception | -| Uses | Throwable | -| Extends | \InvalidArgumentException | -| Implements | Throwable | - -This file is part of the Phalcon Framework. - -(c) Phalcon Team - -For the full copyright and license information, please view the LICENSE.txt -file that was distributed with this source code. - - - -

        Final Class Phalcon\Http\Message\Request

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/request.zep) - -| Namespace | Phalcon\Http\Message | -| Uses | Phalcon\Http\Message\Stream\Input, Phalcon\Http\Message\AbstractRequest, Psr\Http\Message\RequestInterface, Psr\Http\Message\StreamInterface, Psr\Http\Message\UriInterface | -| Extends | AbstractRequest | -| Implements | RequestInterface | - -PSR-7 Request - - -## Methods -```php -public function __construct( string $method = string, mixed $uri = null, mixed $body = string, mixed $headers = [] ); -``` -Request constructor. - -@param string $method -@param UriInterface|string|null $uri -@param StreamInterface|resource|string $body -@param array $headers - - - - -

        Final Class Phalcon\Http\Message\RequestFactory

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/requestfactory.zep) - -| Namespace | Phalcon\Http\Message | -| Uses | Phalcon\Http\Message\Request, Psr\Http\Message\RequestInterface, Psr\Http\Message\RequestFactoryInterface, Psr\Http\Message\UriInterface | -| Implements | RequestFactoryInterface | - -PSR-17 RequestFactory - - -## Methods -```php -public function createRequest( string $method, mixed $uri ): RequestInterface; -``` -Create a new request. - -@param string $method -@param UriInterface|string|null $uri - -@return RequestInterface - - - - -

        Final Class Phalcon\Http\Message\Response

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/response.zep) - -| Namespace | Phalcon\Http\Message | -| Uses | Phalcon\Helper\Number, Phalcon\Http\Message\AbstractMessage, Phalcon\Http\Message\Exception\InvalidArgumentException, Psr\Http\Message\ResponseInterface | -| Extends | AbstractMessage | -| Implements | ResponseInterface | - -PSR-7 Response - - -## Properties -```php -/** - * Gets the response reason phrase associated with the status code. - * - * Because a reason phrase is not a required element in a response - * status line, the reason phrase value MAY be empty. Implementations MAY - * choose to return the default RFC 7231 recommended reason phrase (or - * those - * listed in the IANA HTTP Status Code Registry) for the response's - * status code. - * - * @see http://tools.ietf.org/html/rfc7231#section-6 - * @see http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml - * - * @var string - */ -private reasonPhrase = ; - -/** - * Gets the response status code. - * - * The status code is a 3-digit integer result code of the server's attempt - * to understand and satisfy the request. - * - * @var int - */ -private statusCode = 200; - -``` - -## Methods -```php -public function __construct( mixed $body = string, int $code = int, array $headers = [] ); -``` -Response constructor. - -@param string $body -@param int $code -@param array $headers - - -```php -public function getReasonPhrase(): string -``` - - -```php -public function getStatusCode(): int -``` - - -```php -public function withStatus( mixed $code, mixed $reasonPhrase = string ): Response; -``` -Return an instance with the specified status code and, optionally, -reason phrase. - -If no reason phrase is specified, implementations MAY choose to default -to the RFC 7231 or IANA recommended reason phrase for the response's -status code. - -This method MUST be implemented in such a way as to retain the -immutability of the message, and MUST return an instance that has the -updated status and reason phrase. - -@see http://tools.ietf.org/html/rfc7231#section-6 -@see http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml - -@param int $code -@param string $reasonPhrase - -@return Response - - - - -

        Final Class Phalcon\Http\Message\ResponseFactory

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/responsefactory.zep) - -| Namespace | Phalcon\Http\Message | -| Uses | Phalcon\Http\Message\Response, Psr\Http\Message\ResponseInterface, Psr\Http\Message\ResponseFactoryInterface | -| Implements | ResponseFactoryInterface | - -PSR-17 ResponseFactory - - -## Methods -```php -public function createResponse( int $code = int, string $reasonPhrase = string ): ResponseInterface; -``` -Create a new response. - -@param int $code The HTTP status code. Defaults to 200. -@param string $reasonPhrase The reason phrase to associate with the status - code in the generated response. If none is - provided, implementations MAY use the defaults - as suggested in the HTTP specification. - -@return ResponseInterface - - - - -

        Final Class Phalcon\Http\Message\ServerRequest

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/serverrequest.zep) - -| Namespace | Phalcon\Http\Message | -| Uses | Phalcon\Collection, Phalcon\Http\Message\AbstractRequest, Phalcon\Http\Message\Exception\InvalidArgumentException, Phalcon\Http\Message\Stream\Input, Psr\Http\Message\ServerRequestInterface, Psr\Http\Message\StreamInterface, Psr\Http\Message\UploadedFileInterface, Psr\Http\Message\UriInterface | -| Extends | AbstractRequest | -| Implements | ServerRequestInterface | - -PSR-7 ServerRequest - - -## Properties -```php -/** - * @var Collection - */ -private attributes; - -/** - * Retrieve cookies. - * - * Retrieves cookies sent by the client to the server. - * - * The data MUST be compatible with the structure of the $_COOKIE - * superglobal. - * - * @var array - */ -private cookieParams; - -/** - * Retrieve any parameters provided in the request body. - * - * If the request Content-Type is either application/x-www-form-urlencoded - * or multipart/form-data, and the request method is POST, this method MUST - * return the contents of $_POST. - * - * Otherwise, this method may return any results of deserializing - * the request body content; as parsing returns structured content, the - * potential types MUST be arrays or objects only. A null value indicates - * the absence of body content. - * - * @var mixed - */ -private parsedBody; - -/** - * Retrieve query string arguments. - * - * Retrieves the deserialized query string arguments, if any. - * - * Note: the query params might not be in sync with the URI or server - * params. If you need to ensure you are only getting the original - * values, you may need to parse the query string from - * `getUri()->getQuery()` or from the `QUERY_STRING` server param. - * - * @var array - */ -private queryParams; - -/** - * Retrieve server parameters. - * - * Retrieves data related to the incoming request environment, - * typically derived from PHP's $_SERVER superglobal. The data IS NOT - * REQUIRED to originate from $_SERVER. - * - * @var array - */ -private serverParams; - -/** - * Retrieve normalized file upload data. - * - * This method returns upload metadata in a normalized tree, with each leaf - * an instance of Psr\Http\Message\UploadedFileInterface. - * - * These values MAY be prepared from $_FILES or the message body during - * instantiation, or MAY be injected via withUploadedFiles(). - * - * @var array - */ -private uploadedFiles; - -``` - -## Methods -```php -public function __construct( string $method = string, mixed $uri = null, array $serverParams = [], mixed $body = string, mixed $headers = [], array $cookies = [], array $queryParams = [], array $uploadFiles = [], mixed $parsedBody = null, string $protocol = string ); -``` -ServerRequest constructor. - -@param string $method -@param UriInterface|string|null $uri -@param array $serverParams -@param StreamInterface|string $body -@param array $headers -@param array $cookies -@param array $queryParams -@param array $uploadFiles -@param null|array|object $parsedBody -@param string $protocol - - -```php -public function getAttribute( mixed $name, mixed $defaultValue = null ): mixed; -``` -Retrieve a single derived request attribute. - -Retrieves a single derived request attribute as described in -getAttributes(). If the attribute has not been previously set, returns -the default value as provided. - -This method obviates the need for a hasAttribute() method, as it allows -specifying a default value to return if the attribute is not found. - -@param string $name -@param mixed|null $defaultValue - -@return mixed - - -```php -public function getAttributes(): array; -``` -Retrieve attributes derived from the request. - -The request 'attributes' may be used to allow injection of any -parameters derived from the request: e.g., the results of path -match operations; the results of decrypting cookies; the results of -deserializing non-form-encoded message bodies; etc. Attributes -will be application and request specific, and CAN be mutable. - -@return array - - -```php -public function getCookieParams(): array -``` - - -```php -public function getParsedBody(): mixed -``` - - -```php -public function getQueryParams(): array -``` - - -```php -public function getServerParams(): array -``` - - -```php -public function getUploadedFiles(): array -``` - - -```php -public function withAttribute( mixed $name, mixed $value ): ServerRequest; -``` -Return an instance with the specified derived request attribute. - -This method allows setting a single derived request attribute as -described in getAttributes(). - -This method MUST be implemented in such a way as to retain the -immutability of the message, and MUST return an instance that has the -updated attribute. - -@param string $name -@param mixed $value - -@return ServerRequest - - -```php -public function withCookieParams( array $cookies ): ServerRequest; -``` -Return an instance with the specified cookies. - -The data IS NOT REQUIRED to come from the $_COOKIE superglobal, but MUST -be compatible with the structure of $_COOKIE. Typically, this data will -be injected at instantiation. - -This method MUST NOT update the related Cookie header of the request -instance, nor related values in the server params. - -This method MUST be implemented in such a way as to retain the -immutability of the message, and MUST return an instance that has the -updated cookie values. - -@param array $cookies - -@return ServerRequest - - -```php -public function withParsedBody( mixed $data ): ServerRequest; -``` -Return an instance with the specified body parameters. - -These MAY be injected during instantiation. - -If the request Content-Type is either application/x-www-form-urlencoded -or multipart/form-data, and the request method is POST, use this method -ONLY to inject the contents of $_POST. - -The data IS NOT REQUIRED to come from $_POST, but MUST be the results of -deserializing the request body content. Deserialization/parsing returns -structured data, and, as such, this method ONLY accepts arrays or -objects, or a null value if nothing was available to parse. - -As an example, if content negotiation determines that the request data -is a JSON payload, this method could be used to create a request -instance with the deserialized parameters. - -This method MUST be implemented in such a way as to retain the -immutability of the message, and MUST return an instance that has the -updated body parameters. - -@param array|object|null $data - -@return ServerRequest -@throws InvalidArgumentException if an unsupported argument type is - provided. - - - -```php -public function withQueryParams( array $query ): ServerRequest; -``` -Return an instance with the specified query string arguments. - -These values SHOULD remain immutable over the course of the incoming -request. They MAY be injected during instantiation, such as from PHP's -$_GET superglobal, or MAY be derived from some other value such as the -URI. In cases where the arguments are parsed from the URI, the data -MUST be compatible with what PHP's parse_str() would return for -purposes of how duplicate query parameters are handled, and how nested -sets are handled. - -Setting query string arguments MUST NOT change the URI stored by the -request, nor the values in the server params. - -This method MUST be implemented in such a way as to retain the -immutability of the message, and MUST return an instance that has the -updated query string arguments. - -@param array $query - -@return ServerRequest - - -```php -public function withUploadedFiles( array $uploadedFiles ): ServerRequest; -``` -Create a new instance with the specified uploaded files. - -This method MUST be implemented in such a way as to retain the -immutability of the message, and MUST return an instance that has the -updated body parameters. - -@param array $uploadedFiles - -@return ServerRequest -@throws InvalidArgumentException if an invalid structure is provided. - - - -```php -public function withoutAttribute( mixed $name ): ServerRequest; -``` -Return an instance that removes the specified derived request attribute. - -This method allows removing a single derived request attribute as -described in getAttributes(). - -This method MUST be implemented in such a way as to retain the -immutability of the message, and MUST return an instance that removes -the attribute. - -@param string $name - -@return ServerRequest - - - - -

        Class Phalcon\Http\Message\ServerRequestFactory

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/serverrequestfactory.zep) - -| Namespace | Phalcon\Http\Message | -| Uses | Phalcon\Collection, Phalcon\Helper\Arr, Phalcon\Http\Message\Exception\InvalidArgumentException, Phalcon\Http\Message\ServerRequest, Phalcon\Http\Message\UploadedFile, Phalcon\Http\Message\Uri, Psr\Http\Message\ServerRequestFactoryInterface, Psr\Http\Message\ServerRequestInterface, Psr\Http\Message\UriInterface, Psr\Http\Message\UploadedFileInterface | -| Implements | ServerRequestFactoryInterface | - -PSR-17 ServerRequestFactory - - -## Methods -```php -public function createServerRequest( string $method, mixed $uri, array $serverParams = [] ): ServerRequestInterface; -``` -Create a new server request. - -Note that server-params are taken precisely as given - no -parsing/processing of the given values is performed, and, in particular, -no attempt is made to determine the HTTP method or URI, which must be -provided explicitly. - -@param string $method The HTTP method associated with - the request. -@param UriInterface|string $uri The URI associated with the - request. If the value is a - string, the factory MUST create - a UriInterface instance based - on it. -@param array $serverParams Array of SAPI parameters with - which to seed the generated - request instance. - -@return ServerRequestInterface - - -```php -public function load( array $server = null, array $get = null, array $post = null, array $cookies = null, array $files = null ): ServerRequest; -``` -Create a request from the supplied superglobal values. - -If any argument is not supplied, the corresponding superglobal value will -be used. - -The ServerRequest created is then passed to the fromServer() method in -order to marshal the request URI and headers. - -@param array $server $_SERVER superglobal -@param array $get $_GET superglobal -@param array $post $_POST superglobal -@param array $cookies $_COOKIE superglobal -@param array $files $_FILES superglobal - -@return ServerRequest -@see fromServer() - - -```php -protected function getHeaders(); -``` -Returns the apache_request_headers if it exists - -@return array|false - - - - -

        Class Phalcon\Http\Message\Stream

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/stream.zep) - -| Namespace | Phalcon\Http\Message | -| Uses | Phalcon\Helper\Arr, Exception, Psr\Http\Message\StreamInterface, RuntimeException | -| Implements | StreamInterface | - -PSR-7 Stream - - -## Properties -```php -/** - * @var resource | null - */ -protected handle; - -/** - * @var resource | string - */ -protected stream; - -/** - * @var bool - */ -protected warning = false; - -``` - -## Methods -```php -public function __construct( mixed $stream, string $mode = string ); -``` -Stream constructor. - -@param mixed $stream -@param string $mode - - -```php -public function __destruct(); -``` -Closes the stream when the destructed. - - -```php -public function __toString(): string; -``` -Reads all data from the stream into a string, from the beginning to end. - -This method MUST attempt to seek to the beginning of the stream before -reading data and read the stream until the end is reached. - -Warning: This could attempt to load a large amount of data into memory. - -This method MUST NOT raise an exception in order to conform with PHP's -string casting operations. - -@see http://php.net/manual/en/language.oop5.magic.php#object.tostring - - -```php -public function close(): void; -``` -Closes the stream and any underlying resources. - - -```php -public function detach(): resource | null; -``` -Separates any underlying resources from the stream. - -After the stream has been detached, the stream is in an unusable state. - -@return resource | null - - -```php -public function eof(): bool; -``` -Returns true if the stream is at the end of the stream. - - -```php -public function getContents(): string; -``` -Returns the remaining contents in a string - - -```php -public function getMetadata( mixed $key = null ); -``` -Get stream metadata as an associative array or retrieve a specific key. - -The keys returned are identical to the keys returned from PHP's -stream_get_meta_data() function. - -@param mixed|null $key - -@return array|mixed|null - - -```php -public function getSize(): null | int; -``` -Get the size of the stream if known. - - -```php -public function isReadable(): bool; -``` -Returns whether or not the stream is readable. - - -```php -public function isSeekable(): bool; -``` -Returns whether or not the stream is seekable. - - -```php -public function isWritable(): bool; -``` -Returns whether or not the stream is writable. - - -```php -public function read( mixed $length ): string; -``` -Read data from the stream. - -@param int $length - -@return string - - -```php -public function rewind(): void; -``` -Seek to the beginning of the stream. - -If the stream is not seekable, this method will raise an exception; -otherwise, it will perform a seek(0). - - -```php -public function seek( mixed $offset, mixed $whence = int ): void; -``` -Seek to a position in the stream. - -@param int $offset -@param int $whence - - -```php -public function setStream( mixed $stream, string $mode = string ): void; -``` -Sets the stream - existing instance - -@param mixed $stream -@param string $mode - - -```php -public function tell(): int; -``` -Returns the current position of the file read/write pointer - -@return int - - -```php -public function write( mixed $data ): int; -``` -Write data to the stream. - -@param string $data - -@return int - - - - -

        Class Phalcon\Http\Message\Stream\Input

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/stream/input.zep) - -| Namespace | Phalcon\Http\Message\Stream | -| Uses | Phalcon\Http\Message\Stream | -| Extends | Stream | - -Describes a data stream from "php://input" - -Typically, an instance will wrap a PHP stream; this interface provides -a wrapper around the most common operations, including serialization of -the entire stream to a string. - - -## Properties -```php -/** - * @var string - */ -private data = ; - -/** - * @var bool - */ -private eof = false; - -``` - -## Methods -```php -public function __construct(); -``` -Input constructor. - - -```php -public function __toString(): string; -``` -Reads all data from the stream into a string, from the beginning to end. - -This method MUST attempt to seek to the beginning of the stream before -reading data and read the stream until the end is reached. - -Warning: This could attempt to load a large amount of data into memory. - -This method MUST NOT raise an exception in order to conform with PHP's -string casting operations. - -@see http://php.net/manual/en/language.oop5.magic.php#object.tostring - - -```php -public function getContents( int $length = int ): string; -``` -Returns the remaining contents in a string - -@throws RuntimeException if unable to read. -@throws RuntimeException if error occurs while reading. - -@param int $length - -@return string - - -```php -public function isWritable(): bool; -``` -Returns whether or not the stream is writeable. - - -```php -public function read( mixed $length ): string; -``` -Read data from the stream. - -@param int $length - -@return string - - - - -

        Class Phalcon\Http\Message\Stream\Memory

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/stream/memory.zep) - -| Namespace | Phalcon\Http\Message\Stream | -| Uses | Phalcon\Http\Message\Stream | -| Extends | Stream | - -Describes a data stream from "php://memory" - -Typically, an instance will wrap a PHP stream; this interface provides -a wrapper around the most common operations, including serialization of -the entire stream to a string. - - -## Methods -```php -public function __construct( mixed $mode = string ): void; -``` -Constructor - - - - -

        Class Phalcon\Http\Message\Stream\Temp

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/stream/temp.zep) - -| Namespace | Phalcon\Http\Message\Stream | -| Uses | Phalcon\Http\Message\Stream | -| Extends | Stream | - -Describes a data stream from "php://temp" - -Typically, an instance will wrap a PHP stream; this interface provides -a wrapper around the most common operations, including serialization of -the entire stream to a string. - - -## Methods -```php -public function __construct( mixed $mode = string ): void; -``` -Constructor - - - - -

        Final Class Phalcon\Http\Message\StreamFactory

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/streamfactory.zep) - -| Namespace | Phalcon\Http\Message | -| Uses | Phalcon\Http\Message\Stream, Phalcon\Http\Message\Exception\InvalidArgumentException, Psr\Http\Message\StreamFactoryInterface, Psr\Http\Message\StreamInterface | -| Implements | StreamFactoryInterface | - -PSR-17 StreamFactory - - -## Methods -```php -public function createStream( string $content = string ): StreamInterface; -``` -Create a new stream from a string. - -The stream SHOULD be created with a temporary resource. - -@param string $content String content with which to populate the stream. - -@return StreamInterface - - -```php -public function createStreamFromFile( string $filename, string $mode = string ): StreamInterface; -``` -Create a stream from an existing file. - -The file MUST be opened using the given mode, which may be any mode -supported by the `fopen` function. - -The `$filename` MAY be any string supported by `fopen()`. - -@param string $filename The filename or stream URI to use as basis of - stream. -@param string $mode The mode with which to open the underlying - filename/stream. - -@return StreamInterface - - -```php -public function createStreamFromResource( mixed $phpResource ): StreamInterface; -``` -Create a new stream from an existing resource. - -The stream MUST be readable and may be writable. - - - - -

        Final Class Phalcon\Http\Message\UploadedFile

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/uploadedfile.zep) - -| Namespace | Phalcon\Http\Message | -| Uses | Phalcon\Helper\Number, Phalcon\Helper\Arr, Phalcon\Helper\Str, Phalcon\Http\Message\Exception\InvalidArgumentException, Phalcon\Http\Message\Stream, Psr\Http\Message\StreamInterface, Psr\Http\Message\UploadedFileInterface, RuntimeException | -| Implements | UploadedFileInterface | - -PSR-7 UploadedFile - - -## Properties -```php -/** - * If the file has already been moved, we hold that status here - * - * @var bool - */ -private alreadyMoved = false; - -/** - * Retrieve the filename sent by the client. - * - * Do not trust the value returned by this method. A client could send - * a malicious filename with the intention to corrupt or hack your - * application. - * - * Implementations SHOULD return the value stored in the 'name' key of - * the file in the $_FILES array. - * - * @var string | null - */ -private clientFilename; - -/** - * Retrieve the media type sent by the client. - * - * Do not trust the value returned by this method. A client could send - * a malicious media type with the intention to corrupt or hack your - * application. - * - * Implementations SHOULD return the value stored in the 'type' key of - * the file in the $_FILES array. - * - * @var string | null - */ -private clientMediaType; - -/** - * Retrieve the error associated with the uploaded file. - * - * The return value MUST be one of PHP's UPLOAD_ERR_XXX constants. - * - * If the file was uploaded successfully, this method MUST return - * UPLOAD_ERR_OK. - * - * Implementations SHOULD return the value stored in the 'error' key of - * the file in the $_FILES array. - * - * @see http://php.net/manual/en/features.file-upload.errors.php - * - * @var int - */ -private error = 0; - -/** - * If the stream is a string (file name) we store it here - * - * @var string - */ -private fileName = ; - -/** - * Retrieve the file size. - * - * Implementations SHOULD return the value stored in the 'size' key of - * the file in the $_FILES array if available, as PHP calculates this based - * on the actual size transmitted. - * - * @var int | null - */ -private size; - -/** - * Holds the stream/string for the uploaded file - * - * @var StreamInterface|string|null - */ -private stream; - -``` - -## Methods -```php -public function __construct( mixed $stream, int $size = null, int $error = int, string $clientFilename = null, string $clientMediaType = null ); -``` -UploadedFile constructor. - -@param StreamInterface|string|null $stream -@param int|null $size -@param int $error -@param string|null $clientFilename -@param string|null $clientMediaType - - -```php -public function getClientFilename(): string | null -``` - - -```php -public function getClientMediaType(): string | null -``` - - -```php -public function getError(): int -``` - - -```php -public function getSize(): int | null -``` - - -```php -public function getStream(): mixed; -``` -Retrieve a stream representing the uploaded file. - -This method MUST return a StreamInterface instance, representing the -uploaded file. The purpose of this method is to allow utilizing native -PHP stream functionality to manipulate the file upload, such as -stream_copy_to_stream() (though the result will need to be decorated in -a native PHP stream wrapper to work with such functions). - -If the moveTo() method has been called previously, this method MUST -raise an exception. - -@return StreamInterface Stream representation of the uploaded file. -@throws RuntimeException in cases when no stream is available or can be - created. - - -```php -public function moveTo( mixed $targetPath ): void; -``` -Move the uploaded file to a new location. - -Use this method as an alternative to move_uploaded_file(). This method is -guaranteed to work in both SAPI and non-SAPI environments. -Implementations must determine which environment they are in, and use the -appropriate method (move_uploaded_file(), rename(), or a stream -operation) to perform the operation. - -$targetPath may be an absolute path, or a relative path. If it is a -relative path, resolution should be the same as used by PHP's rename() -function. - -The original file or stream MUST be removed on completion. - -If this method is called more than once, any subsequent calls MUST raise -an exception. - -When used in an SAPI environment where $_FILES is populated, when writing -files via moveTo(), is_uploaded_file() and move_uploaded_file() SHOULD be -used to ensure permissions and upload status are verified correctly. - -If you wish to move to a stream, use getStream(), as SAPI operations -cannot guarantee writing to stream destinations. - -@see http://php.net/is_uploaded_file -@see http://php.net/move_uploaded_file - -@param string $targetPath Path to which to move the uploaded file. - -@throws InvalidArgumentException if the $targetPath specified is invalid. -@throws RuntimeException on any error during the move operation, or on - the second or subsequent call to the method. - - - - -

        Final Class Phalcon\Http\Message\UploadedFileFactory

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/uploadedfilefactory.zep) - -| Namespace | Phalcon\Http\Message | -| Uses | Phalcon\Http\Message\UploadedFile, Psr\Http\Message\StreamInterface, Psr\Http\Message\UploadedFileInterface, Psr\Http\Message\UploadedFileFactoryInterface | -| Implements | UploadedFileFactoryInterface | - -PSR-17 UploadedFileFactory - - -## Methods -```php -public function createUploadedFile( StreamInterface $stream, int $size = null, int $error = int, string $clientFilename = null, string $clientMediaType = null ): UploadedFileInterface; -``` -Create a new uploaded file. - -If a size is not provided it will be determined by checking the size of -the stream. - -@link http://php.net/manual/features.file-upload.post-method.php -@link http://php.net/manual/features.file-upload.errors.php - -@param StreamInterface $stream The underlying stream representing the - uploaded file content. -@param int $size The size of the file in bytes. -@param int $error The PHP file upload error. -@param string $clientFilename The filename as provided by the client, if any. -@param string $clientMediaType The media type as provided by the client, if any. - -@throws \InvalidArgumentException If the file resource is not readable. - - - - -

        Final Class Phalcon\Http\Message\Uri

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/uri.zep) - -| Namespace | Phalcon\Http\Message | -| Uses | Phalcon\Helper\Arr, Phalcon\Helper\Str, Phalcon\Http\Message\Exception\InvalidArgumentException, Phalcon\Http\Message\AbstractCommon, Psr\Http\Message\UriInterface | -| Extends | AbstractCommon | -| Implements | UriInterface | - -PSR-7 Uri - - -## Properties -```php -/** - * Returns the fragment of the URL - * - * @return string - */ -private fragment = ; - -/** - * Retrieve the host component of the URI. - * - * If no host is present, this method MUST return an empty string. - * - * The value returned MUST be normalized to lowercase, per RFC 3986 - * Section 3.2.2. - * - * @see http://tools.ietf.org/html/rfc3986#section-3.2.2 - * - * @return string - */ -private host = ; - -/** - * @var string - */ -private pass = ; - -/** - * Returns the path of the URL - * - * @return string - */ -private path = ; - -/** - * Retrieve the port component of the URI. - * - * If a port is present, and it is non-standard for the current scheme, - * this method MUST return it as an integer. If the port is the standard - * port used with the current scheme, this method SHOULD return null. - * - * If no port is present, and no scheme is present, this method MUST return - * a null value. - * - * If no port is present, but a scheme is present, this method MAY return - * the standard port for that scheme, but SHOULD return null. - * - * @return int|null - */ -private port; - -/** - * Returns the query of the URL - * - * @return string - */ -private query = ; - -/** - * Retrieve the scheme component of the URI. - * - * If no scheme is present, this method MUST return an empty string. - * - * The value returned MUST be normalized to lowercase, per RFC 3986 - * Section 3.1. - * - * The trailing ":" character is not part of the scheme and MUST NOT be - * added. - * - * @see https://tools.ietf.org/html/rfc3986#section-3.1 - * - * @return string - */ -private scheme = https; - -/** - * @var string - */ -private user = ; - -``` - -## Methods -```php -public function __construct( string $uri = string ); -``` -Uri constructor. - -@param string $uri - - -```php -public function __toString(): string; -``` -Return the string representation as a URI reference. - -Depending on which components of the URI are present, the resulting -string is either a full URI or relative reference according to RFC 3986, -Section 4.1. The method concatenates the various components of the URI, -using the appropriate delimiters - -@return string - - -```php -public function getAuthority(): string; -``` -Retrieve the authority component of the URI. - -@return string - - -```php -public function getFragment() -``` - - -```php -public function getHost() -``` - - -```php -public function getPath() -``` - - -```php -public function getPort() -``` - - -```php -public function getQuery() -``` - - -```php -public function getScheme() -``` - - -```php -public function getUserInfo(): string; -``` -Retrieve the user information component of the URI. - -If no user information is present, this method MUST return an empty -string. - -If a user is present in the URI, this will return that value; -additionally, if the password is also present, it will be appended to the -user value, with a colon (":") separating the values. - -The trailing "@" character is not part of the user information and MUST -NOT be added. - -@return string The URI user information, in "username[:password]" format. - - -```php -public function withFragment( mixed $fragment ): Uri; -``` -Return an instance with the specified URI fragment. - -This method MUST retain the state of the current instance, and return -an instance that contains the specified URI fragment. - -Users can provide both encoded and decoded fragment characters. -Implementations ensure the correct encoding as outlined in getFragment(). - -An empty fragment value is equivalent to removing the fragment. - -@param string $fragment - -@return Uri - - -```php -public function withHost( mixed $host ): Uri; -``` -Return an instance with the specified host. - -This method MUST retain the state of the current instance, and return -an instance that contains the specified host. - -An empty host value is equivalent to removing the host. - -@param string $host - -@return Uri -@throws InvalidArgumentException for invalid hostnames. - - - -```php -public function withPath( mixed $path ): Uri; -``` -Return an instance with the specified path. - -This method MUST retain the state of the current instance, and return -an instance that contains the specified path. - -The path can either be empty or absolute (starting with a slash) or -rootless (not starting with a slash). Implementations MUST support all -three syntaxes. - -If an HTTP path is intended to be host-relative rather than path-relative -then it must begin with a slash ("/"). HTTP paths not starting with a -slash are assumed to be relative to some base path known to the -application or consumer. - -Users can provide both encoded and decoded path characters. -Implementations ensure the correct encoding as outlined in getPath(). - -@param string $path - -@return Uri -@throws InvalidArgumentException for invalid paths. - - -```php -public function withPort( mixed $port ): Uri; -``` -Return an instance with the specified port. - -This method MUST retain the state of the current instance, and return -an instance that contains the specified port. - -Implementations MUST raise an exception for ports outside the -established TCP and UDP port ranges. - -A null value provided for the port is equivalent to removing the port -information. - -@param int|null $port - -@return Uri -@throws InvalidArgumentException for invalid ports. - - -```php -public function withQuery( mixed $query ): Uri; -``` -Return an instance with the specified query string. - -This method MUST retain the state of the current instance, and return -an instance that contains the specified query string. - -Users can provide both encoded and decoded query characters. -Implementations ensure the correct encoding as outlined in getQuery(). - -An empty query string value is equivalent to removing the query string. - -@param string $query - -@return Uri -@throws InvalidArgumentException for invalid query strings. - - -```php -public function withScheme( mixed $scheme ): Uri; -``` -Return an instance with the specified scheme. - -This method MUST retain the state of the current instance, and return -an instance that contains the specified scheme. - -Implementations MUST support the schemes "http" and "https" case -insensitively, and MAY accommodate other schemes if required. - -An empty scheme is equivalent to removing the scheme. - -@param string $scheme - -@return Uri -@throws InvalidArgumentException for invalid schemes. -@throws InvalidArgumentException for unsupported schemes. - - -```php -public function withUserInfo( mixed $user, mixed $password = null ): Uri; -``` -Return an instance with the specified user information. - -@param string $user -@param string|null $password - -@return Uri - - - - -

        Final Class Phalcon\Http\Message\UriFactory

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/message/urifactory.zep) - -| Namespace | Phalcon\Http\Message | -| Uses | Psr\Http\Message\UriFactoryInterface, Psr\Http\Message\UriInterface, Phalcon\Http\Message\Uri | -| Implements | UriFactoryInterface | - -PSR-17 UriFactory - - -## Methods -```php -public function createUri( string $uri = string ): UriInterface; -``` -Returns a Locator object with all the helpers defined in anonynous -functions - - - - -

        Class Phalcon\Http\Request

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/request.zep) - -| Namespace | Phalcon\Http | -| Uses | Phalcon\Di\DiInterface, Phalcon\Di\AbstractInjectionAware, Phalcon\Events\ManagerInterface, Phalcon\Filter\FilterInterface, Phalcon\Http\Request\File, Phalcon\Http\Request\FileInterface, Phalcon\Http\Request\Exception, UnexpectedValueException, stdClass | -| Extends | AbstractInjectionAware | -| Implements | RequestInterface | - -Encapsulates request information for easy and secure access from application -controllers. - -The request object is a simple value object that is passed between the -dispatcher and controller classes. It packages the HTTP request environment. - -```php -use Phalcon\Http\Request; - -$request = new Request(); - -if ($request->isPost() && $request->isAjax()) { - echo "Request was made using POST and AJAX"; -} - -// Retrieve SERVER variables -$request->getServer("HTTP_HOST"); - -// GET, POST, PUT, DELETE, HEAD, OPTIONS, PATCH, PURGE, TRACE, CONNECT -$request->getMethod(); - -// An array of languages the client accepts -$request->getLanguages(); -``` - - -## Properties -```php -// -private filterService; - -/** - * @var bool - */ -private httpMethodParameterOverride = false; - -/** - * @var array - */ -private queryFilters; - -// -private putCache; - -// -private rawBody; - -/** - * @var bool - */ -private strictHostCheck = false; - -``` - -## Methods -```php -public function get( string $name = null, mixed $filters = null, mixed $defaultValue = null, bool $notAllowEmpty = bool, bool $noRecursive = bool ): mixed; -``` -Gets a variable from the $_REQUEST superglobal applying filters if -needed. If no parameters are given the $_REQUEST superglobal is returned - -```php -// Returns value from $_REQUEST["user_email"] without sanitizing -$userEmail = $request->get("user_email"); - -// Returns value from $_REQUEST["user_email"] with sanitizing -$userEmail = $request->get("user_email", "email"); -``` - - -```php -public function getAcceptableContent(): array; -``` -Gets an array with mime/types and their quality accepted by the -browser/client from _SERVER["HTTP_ACCEPT"] - - -```php -public function getBasicAuth(): array | null; -``` -Gets auth info accepted by the browser/client from -$_SERVER["PHP_AUTH_USER"] - - -```php -public function getBestAccept(): string; -``` -Gets best mime/type accepted by the browser/client from -_SERVER["HTTP_ACCEPT"] - - -```php -public function getBestCharset(): string; -``` -Gets best charset accepted by the browser/client from -_SERVER["HTTP_ACCEPT_CHARSET"] - - -```php -public function getBestLanguage(): string; -``` -Gets best language accepted by the browser/client from -_SERVER["HTTP_ACCEPT_LANGUAGE"] - - -```php -public function getClientAddress( bool $trustForwardedHeader = bool ): string | bool; -``` -Gets most possible client IPv4 Address. This method searches in -`$_SERVER["REMOTE_ADDR"]` and optionally in -`$_SERVER["HTTP_X_FORWARDED_FOR"]` - - -```php -public function getClientCharsets(): array; -``` -Gets a charsets array and their quality accepted by the browser/client -from _SERVER["HTTP_ACCEPT_CHARSET"] - - -```php -public function getContentType(): string | null; -``` -Gets content type which request has been made - - -```php -public function getDigestAuth(): array; -``` -Gets auth info accepted by the browser/client from -$_SERVER["PHP_AUTH_DIGEST"] - - -```php -public function getFilteredPost( string $name = null, mixed $defaultValue = null, bool $notAllowEmpty = bool, bool $noRecursive = bool ): mixed; -``` -Retrieves a post value always sanitized with the preset filters - - -```php -public function getFilteredPut( string $name = null, mixed $defaultValue = null, bool $notAllowEmpty = bool, bool $noRecursive = bool ): mixed; -``` -Retrieves a put value always sanitized with the preset filters - - -```php -public function getFilteredQuery( string $name = null, mixed $defaultValue = null, bool $notAllowEmpty = bool, bool $noRecursive = bool ): mixed; -``` -Retrieves a query/get value always sanitized with the preset filters - - -```php -public function getHTTPReferer(): string; -``` -Gets web page that refers active request. ie: http://www.google.com - - -```php -final public function getHeader( string $header ): string; -``` -Gets HTTP header from request data - - -```php -public function getHeaders(): array; -``` -Returns the available headers in the request - - -$_SERVER = [ - "PHP_AUTH_USER" => "phalcon", - "PHP_AUTH_PW" => "secret", -]; - -$headers = $request->getHeaders(); - -echo $headers["Authorization"]; // Basic cGhhbGNvbjpzZWNyZXQ= - - - -```php -public function getHttpHost(): string; -``` -Gets host name used by the request. - -`Request::getHttpHost` trying to find host name in following order: - -- `$_SERVER["HTTP_HOST"]` -- `$_SERVER["SERVER_NAME"]` -- `$_SERVER["SERVER_ADDR"]` - -Optionally `Request::getHttpHost` validates and clean host name. -The `Request::$strictHostCheck` can be used to validate host name. - -Note: validation and cleaning have a negative performance impact because -they use regular expressions. - -```php -use Phalcon\Http\Request; - -$request = new Request; - -$_SERVER["HTTP_HOST"] = "example.com"; -$request->getHttpHost(); // example.com - -$_SERVER["HTTP_HOST"] = "example.com:8080"; -$request->getHttpHost(); // example.com:8080 - -$request->setStrictHostCheck(true); -$_SERVER["HTTP_HOST"] = "ex=am~ple.com"; -$request->getHttpHost(); // UnexpectedValueException - -$_SERVER["HTTP_HOST"] = "ExAmPlE.com"; -$request->getHttpHost(); // example.com -``` - - -```php -public function getHttpMethodParameterOverride(): bool -``` - - -```php -public function getJsonRawBody( bool $associative = bool ): \stdClass | array | bool; -``` -Gets decoded JSON HTTP raw request body - - -```php -public function getLanguages(): array; -``` -Gets languages array and their quality accepted by the browser/client -from _SERVER["HTTP_ACCEPT_LANGUAGE"] - - -```php -final public function getMethod(): string; -``` -Gets HTTP method which request has been made - -If the X-HTTP-Method-Override header is set, and if the method is a POST, -then it is used to determine the "real" intended HTTP method. - -The _method request parameter can also be used to determine the HTTP -method, but only if setHttpMethodParameterOverride(true) has been called. - -The method is always an uppercased string. - - -```php -public function getPort(): int; -``` -Gets information about the port on which the request is made. - - -```php -public function getPost( string $name = null, mixed $filters = null, mixed $defaultValue = null, bool $notAllowEmpty = bool, bool $noRecursive = bool ): mixed; -``` -Gets a variable from the $_POST superglobal applying filters if needed -If no parameters are given the $_POST superglobal is returned - -```php -// Returns value from $_POST["user_email"] without sanitizing -$userEmail = $request->getPost("user_email"); - -// Returns value from $_POST["user_email"] with sanitizing -$userEmail = $request->getPost("user_email", "email"); -``` - - -```php -public function getPut( string $name = null, mixed $filters = null, mixed $defaultValue = null, bool $notAllowEmpty = bool, bool $noRecursive = bool ): mixed; -``` -Gets a variable from put request - -```php -// Returns value from $_PUT["user_email"] without sanitizing -$userEmail = $request->getPut("user_email"); - -// Returns value from $_PUT["user_email"] with sanitizing -$userEmail = $request->getPut("user_email", "email"); -``` - - -```php -public function getQuery( string $name = null, mixed $filters = null, mixed $defaultValue = null, bool $notAllowEmpty = bool, bool $noRecursive = bool ): mixed; -``` -Gets variable from $_GET superglobal applying filters if needed -If no parameters are given the $_GET superglobal is returned - -```php -// Returns value from $_GET["id"] without sanitizing -$id = $request->getQuery("id"); - -// Returns value from $_GET["id"] with sanitizing -$id = $request->getQuery("id", "int"); - -// Returns value from $_GET["id"] with a default value -$id = $request->getQuery("id", null, 150); -``` - - -```php -public function getRawBody(): string; -``` -Gets HTTP raw request body - - -```php -public function getScheme(): string; -``` -Gets HTTP schema (http/https) - - -```php -public function getServer( string $name ): string | null; -``` -Gets variable from $_SERVER superglobal - - -```php -public function getServerAddress(): string; -``` -Gets active server address IP - - -```php -public function getServerName(): string; -``` -Gets active server name - - -```php -final public function getURI(): string; -``` -Gets HTTP URI which request has been made - - -```php -public function getUploadedFiles( bool $onlySuccessful = bool, bool $namedKeys = bool ): FileInterface[]; -``` -Gets attached files as Phalcon\Http\Request\File instances - - -```php -public function getUserAgent(): string; -``` -Gets HTTP user agent used to made the request - - -```php -public function has( string $name ): bool; -``` -Checks whether $_REQUEST superglobal has certain index - - -```php -public function hasFiles( bool $onlySuccessful = bool ): long; -``` -Returns the number of files available - -TODO: Check this - - -```php -final public function hasHeader( string $header ): bool; -``` -Checks whether headers has certain index - - -```php -public function hasPost( string $name ): bool; -``` -Checks whether $_POST superglobal has certain index - - -```php -public function hasPut( string $name ): bool; -``` -Checks whether the PUT data has certain index - - -```php -public function hasQuery( string $name ): bool; -``` -Checks whether $_GET superglobal has certain index - - -```php -final public function hasServer( string $name ): bool; -``` -Checks whether $_SERVER superglobal has certain index - - -```php -public function isAjax(): bool; -``` -Checks whether request has been made using ajax - - -```php -public function isConnect(): bool; -``` -Checks whether HTTP method is CONNECT. -if _SERVER["REQUEST_METHOD"]==="CONNECT" - - -```php -public function isDelete(): bool; -``` -Checks whether HTTP method is DELETE. -if _SERVER["REQUEST_METHOD"]==="DELETE" - - -```php -public function isGet(): bool; -``` -Checks whether HTTP method is GET. -if _SERVER["REQUEST_METHOD"]==="GET" - - -```php -public function isHead(): bool; -``` -Checks whether HTTP method is HEAD. -if _SERVER["REQUEST_METHOD"]==="HEAD" - - -```php -public function isMethod( mixed $methods, bool $strict = bool ): bool; -``` -Check if HTTP method match any of the passed methods -When strict is true it checks if validated methods are real HTTP methods - - -```php -public function isOptions(): bool; -``` -Checks whether HTTP method is OPTIONS. -if _SERVER["REQUEST_METHOD"]==="OPTIONS" - - -```php -public function isPatch(): bool; -``` -Checks whether HTTP method is PATCH. -if _SERVER["REQUEST_METHOD"]==="PATCH" - - -```php -public function isPost(): bool; -``` -Checks whether HTTP method is POST. -if _SERVER["REQUEST_METHOD"]==="POST" - - -```php -public function isPurge(): bool; -``` -Checks whether HTTP method is PURGE (Squid and Varnish support). -if _SERVER["REQUEST_METHOD"]==="PURGE" - - -```php -public function isPut(): bool; -``` -Checks whether HTTP method is PUT. -if _SERVER["REQUEST_METHOD"]==="PUT" - - -```php -public function isSecure(): bool; -``` -Checks whether request has been made using any secure layer - - -```php -public function isSoap(): bool; -``` -Checks whether request has been made using SOAP - - -```php -public function isStrictHostCheck(): bool; -``` -Checks if the `Request::getHttpHost` method will be use strict validation -of host name or not - - -```php -public function isTrace(): bool; -``` -Checks whether HTTP method is TRACE. -if _SERVER["REQUEST_METHOD"]==="TRACE" - - -```php -public function isValidHttpMethod( string $method ): bool; -``` -Checks if a method is a valid HTTP method - - -```php -public function setHttpMethodParameterOverride( bool $httpMethodParameterOverride ) -``` - - -```php -public function setParameterFilters( string $name, array $filters = [], array $scope = [] ): RequestInterface; -``` -Sets automatic sanitizers/filters for a particular field and for -particular methods - - -```php -public function setStrictHostCheck( bool $flag = bool ): RequestInterface; -``` -Sets if the `Request::getHttpHost` method must be use strict validation -of host name or not - - -```php -final protected function getBestQuality( array $qualityParts, string $name ): string; -``` -Process a request header and return the one with best quality - - -```php -final protected function getHelper( array $source, string $name = null, mixed $filters = null, mixed $defaultValue = null, bool $notAllowEmpty = bool, bool $noRecursive = bool ): mixed; -``` -Helper to get data from superglobals, applying filters if needed. -If no parameters are given the superglobal is returned. - - -```php -final protected function getQualityHeader( string $serverIndex, string $name ): array; -``` -Process a request header and return an array of values with their qualities - - -```php -final protected function hasFileHelper( mixed $data, bool $onlySuccessful ): long; -``` -Recursively counts file in an array of files - - -```php -protected function resolveAuthorizationHeaders(): array; -``` -Resolve authorization headers. - - -```php -final protected function smoothFiles( array $names, array $types, array $tmp_names, array $sizes, array $errors, string $prefix ): array; -``` -Smooth out $_FILES to have plain array with all files uploaded - - - - -

        Class Phalcon\Http\Request\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/request/exception.zep) - -| Namespace | Phalcon\Http\Request | -| Extends | \Phalcon\Exception | - -Phalcon\Http\Request\Exception - -Exceptions thrown in Phalcon\Http\Request will use this class - - - -

        Class Phalcon\Http\Request\File

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/request/file.zep) - -| Namespace | Phalcon\Http\Request | -| Uses | Phalcon\Http\Request\FileInterface | -| Implements | FileInterface | - -Phalcon\Http\Request\File - -Provides OO wrappers to the $_FILES superglobal - -```php -use Phalcon\Mvc\Controller; - -class PostsController extends Controller -{ - public function uploadAction() - { - // Check if the user has uploaded files - if ($this->request->hasFiles() == true) { - // Print the real file names and their sizes - foreach ($this->request->getUploadedFiles() as $file) { - echo $file->getName(), " ", $file->getSize(), "\n"; - } - } - } -} -``` - - -## Properties -```php -/** - * @var string|null - */ -protected error; - -/** - * @var string - */ -protected extension; - -/** - * @var string|null - */ -protected key; - -// -protected name; - -// -protected realType; - -// -protected size; - -// -protected tmp; - -// -protected type; - -``` - -## Methods -```php -public function __construct( array $file, mixed $key = null ); -``` -Phalcon\Http\Request\File constructor - - -```php -public function getError(): string|null -``` - - -```php -public function getExtension(): string -``` - - -```php -public function getKey(): string|null -``` - - -```php -public function getName(): string; -``` -Returns the real name of the uploaded file - - -```php -public function getRealType(): string; -``` -Gets the real mime type of the upload file using finfo - - -```php -public function getSize(): int; -``` -Returns the file size of the uploaded file - - -```php -public function getTempName(): string; -``` -Returns the temporary name of the uploaded file - - -```php -public function getType(): string; -``` -Returns the mime type reported by the browser -This mime type is not completely secure, use getRealType() instead - - -```php -public function isUploadedFile(): bool; -``` -Checks whether the file has been uploaded via Post. - - -```php -public function moveTo( string $destination ): bool; -``` -Moves the temporary file to a destination within the application - - - - -

        Interface Phalcon\Http\Request\FileInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/request/fileinterface.zep) - -| Namespace | Phalcon\Http\Request | - -Phalcon\Http\Request\FileInterface - -Interface for Phalcon\Http\Request\File - - - -## Methods -```php -public function getName(): string; -``` -Returns the real name of the uploaded file - - -```php -public function getRealType(): string; -``` -Gets the real mime type of the upload file using finfo - - -```php -public function getSize(): int; -``` -Returns the file size of the uploaded file - - -```php -public function getTempName(): string; -``` -Returns the temporal name of the uploaded file - - -```php -public function getType(): string; -``` -Returns the mime type reported by the browser -This mime type is not completely secure, use getRealType() instead - - -```php -public function moveTo( string $destination ): bool; -``` -Move the temporary file to a destination - - - - -

        Interface Phalcon\Http\RequestInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/requestinterface.zep) - -| Namespace | Phalcon\Http | -| Uses | Phalcon\Http\Request\FileInterface, stdClass | - -Interface for Phalcon\Http\Request - - -## Methods -```php -public function get( string $name = null, mixed $filters = null, mixed $defaultValue = null, bool $notAllowEmpty = bool, bool $noRecursive = bool ): mixed; -``` -Gets a variable from the $_REQUEST superglobal applying filters if -needed. If no parameters are given the $_REQUEST superglobal is returned - -```php -// Returns value from $_REQUEST["user_email"] without sanitizing -$userEmail = $request->get("user_email"); - -// Returns value from $_REQUEST["user_email"] with sanitizing -$userEmail = $request->get("user_email", "email"); -``` - - -```php -public function getAcceptableContent(): array; -``` -Gets an array with mime/types and their quality accepted by the -browser/client from _SERVER["HTTP_ACCEPT"] - - -```php -public function getBasicAuth(): array | null; -``` -Gets auth info accepted by the browser/client from -$_SERVER["PHP_AUTH_USER"] - - -```php -public function getBestAccept(): string; -``` -Gets best mime/type accepted by the browser/client from -_SERVER["HTTP_ACCEPT"] - - -```php -public function getBestCharset(): string; -``` -Gets best charset accepted by the browser/client from -_SERVER["HTTP_ACCEPT_CHARSET"] - - -```php -public function getBestLanguage(): string; -``` -Gets best language accepted by the browser/client from -_SERVER["HTTP_ACCEPT_LANGUAGE"] - - -```php -public function getClientAddress( bool $trustForwardedHeader = bool ): string | bool; -``` -Gets most possible client IPv4 Address. This method searches in -$_SERVER["REMOTE_ADDR"] and optionally in -$_SERVER["HTTP_X_FORWARDED_FOR"] - - -```php -public function getClientCharsets(): array; -``` -Gets a charsets array and their quality accepted by the browser/client -from _SERVER["HTTP_ACCEPT_CHARSET"] - - -```php -public function getContentType(): string | null; -``` -Gets content type which request has been made - - -```php -public function getDigestAuth(): array; -``` -Gets auth info accepted by the browser/client from -$_SERVER["PHP_AUTH_DIGEST"] - - -```php -public function getHTTPReferer(): string; -``` -Gets web page that refers active request. ie: http://www.google.com - - -```php -public function getHeader( string $header ): string; -``` -Gets HTTP header from request data - - -```php -public function getHeaders(): array; -``` -Returns the available headers in the request - -```php -$_SERVER = [ - "PHP_AUTH_USER" => "phalcon", - "PHP_AUTH_PW" => "secret", -]; - -$headers = $request->getHeaders(); - -echo $headers["Authorization"]; // Basic cGhhbGNvbjpzZWNyZXQ= -``` - - -```php -public function getHttpHost(): string; -``` -Gets host name used by the request. - -`Request::getHttpHost` trying to find host name in following order: - -- `$_SERVER["HTTP_HOST"]` -- `$_SERVER["SERVER_NAME"]` -- `$_SERVER["SERVER_ADDR"]` - -Optionally `Request::getHttpHost` validates and clean host name. -The `Request::$_strictHostCheck` can be used to validate host name. - -Note: validation and cleaning have a negative performance impact because -they use regular expressions. - -```php -use Phalcon\Http\Request; - -$request = new Request; - -$_SERVER["HTTP_HOST"] = "example.com"; -$request->getHttpHost(); // example.com - -$_SERVER["HTTP_HOST"] = "example.com:8080"; -$request->getHttpHost(); // example.com:8080 - -$request->setStrictHostCheck(true); -$_SERVER["HTTP_HOST"] = "ex=am~ple.com"; -$request->getHttpHost(); // UnexpectedValueException - -$_SERVER["HTTP_HOST"] = "ExAmPlE.com"; -$request->getHttpHost(); // example.com -``` - - -```php -public function getJsonRawBody( bool $associative = bool ): stdClass | array | bool; -``` -Gets decoded JSON HTTP raw request body - - -```php -public function getLanguages(): array; -``` -Gets languages array and their quality accepted by the browser/client -from _SERVER["HTTP_ACCEPT_LANGUAGE"] - - -```php -public function getMethod(): string; -``` -Gets HTTP method which request has been made - -If the X-HTTP-Method-Override header is set, and if the method is a POST, -then it is used to determine the "real" intended HTTP method. - -The _method request parameter can also be used to determine the HTTP -method, but only if setHttpMethodParameterOverride(true) has been called. - -The method is always an uppercased string. - - -```php -public function getPort(): int; -``` -Gets information about the port on which the request is made - - -```php -public function getPost( string $name = null, mixed $filters = null, mixed $defaultValue = null, bool $notAllowEmpty = bool, bool $noRecursive = bool ): mixed; -``` -Gets a variable from the $_POST superglobal applying filters if needed -If no parameters are given the $_POST superglobal is returned - -```php -// Returns value from $_POST["user_email"] without sanitizing -$userEmail = $request->getPost("user_email"); - -// Returns value from $_POST["user_email"] with sanitizing -$userEmail = $request->getPost("user_email", "email"); -``` - - -```php -public function getPut( string $name = null, mixed $filters = null, mixed $defaultValue = null, bool $notAllowEmpty = bool, bool $noRecursive = bool ): mixed; -``` -Gets a variable from put request - -```php -// Returns value from $_PUT["user_email"] without sanitizing -$userEmail = $request->getPut("user_email"); - -// Returns value from $_PUT["user_email"] with sanitizing -$userEmail = $request->getPut("user_email", "email"); -``` - - -```php -public function getQuery( string $name = null, mixed $filters = null, mixed $defaultValue = null, bool $notAllowEmpty = bool, bool $noRecursive = bool ): mixed; -``` -Gets variable from $_GET superglobal applying filters if needed -If no parameters are given the $_GET superglobal is returned - -```php -// Returns value from $_GET["id"] without sanitizing -$id = $request->getQuery("id"); - -// Returns value from $_GET["id"] with sanitizing -$id = $request->getQuery("id", "int"); - -// Returns value from $_GET["id"] with a default value -$id = $request->getQuery("id", null, 150); -``` - - -```php -public function getRawBody(): string; -``` -Gets HTTP raw request body - - -```php -public function getScheme(): string; -``` -Gets HTTP schema (http/https) - - -```php -public function getServer( string $name ): string | null; -``` -Gets variable from $_SERVER superglobal - - -```php -public function getServerAddress(): string; -``` -Gets active server address IP - - -```php -public function getServerName(): string; -``` -Gets active server name - - -```php -final public function getURI(): string; -``` -Gets HTTP URI which request has been made - - -```php -public function getUploadedFiles( bool $onlySuccessful = bool, bool $namedKeys = bool ): FileInterface[]; -``` -Gets attached files as Phalcon\Http\Request\FileInterface compatible -instances - - -```php -public function getUserAgent(): string; -``` -Gets HTTP user agent used to made the request - - -```php -public function has( string $name ): bool; -``` -Checks whether $_REQUEST superglobal has certain index - - -```php -public function hasFiles( bool $onlySuccessful = bool ): long; -``` -Checks whether request include attached files -TODO: We need to check the name. Not very intuitive - - -```php -public function hasHeader( string $header ): bool; -``` -Checks whether headers has certain index - - -```php -public function hasPost( string $name ): bool; -``` -Checks whether $_POST superglobal has certain index - - -```php -public function hasPut( string $name ): bool; -``` -Checks whether the PUT data has certain index - - -```php -public function hasQuery( string $name ): bool; -``` -Checks whether $_GET superglobal has certain index - - -```php -public function hasServer( string $name ): bool; -``` -Checks whether $_SERVER superglobal has certain index - - -```php -public function isAjax(): bool; -``` -Checks whether request has been made using ajax. Checks if $_SERVER["HTTP_X_REQUESTED_WITH"] === "XMLHttpRequest" - - -```php -public function isConnect(): bool; -``` -Checks whether HTTP method is CONNECT. if $_SERVER["REQUEST_METHOD"] === "CONNECT" - - -```php -public function isDelete(): bool; -``` -Checks whether HTTP method is DELETE. if $_SERVER["REQUEST_METHOD"] === "DELETE" - - -```php -public function isGet(): bool; -``` -Checks whether HTTP method is GET. if $_SERVER["REQUEST_METHOD"] === "GET" - - -```php -public function isHead(): bool; -``` -Checks whether HTTP method is HEAD. if $_SERVER["REQUEST_METHOD"] === "HEAD" - - -```php -public function isMethod( mixed $methods, bool $strict = bool ): bool; -``` -Check if HTTP method match any of the passed methods - -@param string|array methods - - -```php -public function isOptions(): bool; -``` -Checks whether HTTP method is OPTIONS. if $_SERVER["REQUEST_METHOD"] === "OPTIONS" - - -```php -public function isPost(): bool; -``` -Checks whether HTTP method is POST. if $_SERVER["REQUEST_METHOD"] === "POST" - - -```php -public function isPurge(): bool; -``` -Checks whether HTTP method is PURGE (Squid and Varnish support). if $_SERVER["REQUEST_METHOD"] === "PURGE" - - -```php -public function isPut(): bool; -``` -Checks whether HTTP method is PUT. if $_SERVER["REQUEST_METHOD"] === "PUT" - - -```php -public function isSecure(): bool; -``` -Checks whether request has been made using any secure layer - - -```php -public function isSoap(): bool; -``` -Checks whether request has been made using SOAP - - -```php -public function isTrace(): bool; -``` -Checks whether HTTP method is TRACE. -if $_SERVER["REQUEST_METHOD"] === "TRACE" - - - - -

        Class Phalcon\Http\Response

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/response.zep) - -| Namespace | Phalcon\Http | -| Uses | DateTime, DateTimeZone, Phalcon\Di, Phalcon\Di\DiInterface, Phalcon\Helper\Fs, Phalcon\Http\Response\Exception, Phalcon\Http\Response\HeadersInterface, Phalcon\Http\Response\CookiesInterface, Phalcon\Url\UrlInterface, Phalcon\Mvc\ViewInterface, Phalcon\Http\Response\Headers, Phalcon\Di\InjectionAwareInterface, Phalcon\Events\EventsAwareInterface, Phalcon\Events\ManagerInterface | -| Implements | ResponseInterface, InjectionAwareInterface, EventsAwareInterface | - -Part of the HTTP cycle is return responses to the clients. -Phalcon\HTTP\Response is the Phalcon component responsible to achieve this task. -HTTP responses are usually composed by headers and body. - -```php -$response = new \Phalcon\Http\Response(); - -$response->setStatusCode(200, "OK"); -$response->setContent("Hello"); - -$response->send(); -``` - - -## Properties -```php -// -protected container; - -// -protected content; - -// -protected cookies; - -// -protected eventsManager; - -// -protected file; - -// -protected headers; - -/** - * @var bool - */ -protected sent = false; - -// -protected statusCodes; - -``` - -## Methods -```php -public function __construct( mixed $content = null, mixed $code = null, mixed $status = null ); -``` -Phalcon\Http\Response constructor - - -```php -public function appendContent( mixed $content ): ResponseInterface; -``` -Appends a string to the HTTP response body - - -```php -public function getContent(): string; -``` -Gets the HTTP response body - - -```php -public function getCookies(): CookiesInterface; -``` -Returns cookies set by the user - - -```php -public function getDI(): DiInterface; -``` -Returns the internal dependency injector - - -```php -public function getEventsManager(): ManagerInterface; -``` -Returns the internal event manager - - -```php -public function getHeaders(): HeadersInterface; -``` -Returns headers set by the user - - -```php -public function getReasonPhrase(): string | null; -``` -Returns the reason phrase - -```php -echo $response->getReasonPhrase(); -``` - - -```php -public function getStatusCode(): int | null; -``` -Returns the status code - -```php -echo $response->getStatusCode(); -``` - - -```php -public function hasHeader( string $name ): bool; -``` -Checks if a header exists - -```php -$response->hasHeader("Content-Type"); -``` - - -```php -public function isSent(): bool; -``` -Check if the response is already sent - - -```php -public function redirect( mixed $location = null, bool $externalRedirect = bool, int $statusCode = int ): ResponseInterface; -``` -Redirect by HTTP to another action or URL - -```php -// Using a string redirect (internal/external) -$response->redirect("posts/index"); -$response->redirect("http://en.wikipedia.org", true); -$response->redirect("http://www.example.com/new-location", true, 301); - -// Making a redirection based on a named route -$response->redirect( - [ - "for" => "index-lang", - "lang" => "jp", - "controller" => "index", - ] -); -``` - - -```php -public function removeHeader( string $name ): ResponseInterface; -``` -Remove a header in the response - -```php -$response->removeHeader("Expires"); -``` - - -```php -public function resetHeaders(): ResponseInterface; -``` -Resets all the established headers - - -```php -public function send(): ResponseInterface; -``` -Prints out HTTP response to the client - - -```php -public function sendCookies(): ResponseInterface; -``` -Sends cookies to the client - - -```php -public function sendHeaders(): ResponseInterface | bool; -``` -Sends headers to the client - - -```php -public function setCache( int $minutes ): ResponseInterface; -``` -Sets Cache headers to use HTTP cache - -```php -$this->response->setCache(60); -``` - - -```php -public function setContent( string $content ): ResponseInterface; -``` -Sets HTTP response body - -```php -$response->setContent("

        Hello!

        "); -``` - - -```php -public function setContentLength( int $contentLength ): ResponseInterface; -``` -Sets the response content-length - -```php -$response->setContentLength(2048); -``` - - -```php -public function setContentType( string $contentType, mixed $charset = null ): ResponseInterface; -``` -Sets the response content-type mime, optionally the charset - -```php -$response->setContentType("application/pdf"); -$response->setContentType("text/plain", "UTF-8"); -``` - - -```php -public function setCookies( CookiesInterface $cookies ): ResponseInterface; -``` -Sets a cookies bag for the response externally - - -```php -public function setDI( DiInterface $container ): void; -``` -Sets the dependency injector - - -```php -public function setEtag( string $etag ): ResponseInterface; -``` -Set a custom ETag - -```php -$response->setEtag( - md5( - time() - ) -); -``` - - -```php -public function setEventsManager( ManagerInterface $eventsManager ): void; -``` -Sets the events manager - - -```php -public function setExpires( DateTime $datetime ): ResponseInterface; -``` -Sets an Expires header in the response that allows to use the HTTP cache - -```php -$this->response->setExpires( - new DateTime() -); -``` - - -```php -public function setFileToSend( string $filePath, mixed $attachmentName = null, mixed $attachment = bool ): ResponseInterface; -``` -Sets an attached file to be sent at the end of the request - - -```php -public function setHeader( string $name, mixed $value ): ResponseInterface; -``` -Overwrites a header in the response - -```php -$response->setHeader("Content-Type", "text/plain"); -``` - - -```php -public function setHeaders( HeadersInterface $headers ): ResponseInterface; -``` -Sets a headers bag for the response externally - - -```php -public function setJsonContent( mixed $content, int $jsonOptions = int, int $depth = int ): ResponseInterface; -``` -Sets HTTP response body. The parameter is automatically converted to JSON -and also sets default header: Content-Type: "application/json; charset=UTF-8" - -```php -$response->setJsonContent( - [ - "status" => "OK", - ] -); -``` - - -```php -public function setLastModified( DateTime $datetime ): ResponseInterface; -``` -Sets Last-Modified header - -```php -$this->response->setLastModified( - new DateTime() -); -``` - - -```php -public function setNotModified(): ResponseInterface; -``` -Sends a Not-Modified response - - -```php -public function setRawHeader( string $header ): ResponseInterface; -``` -Send a raw header to the response - -```php -$response->setRawHeader("HTTP/1.1 404 Not Found"); -``` - - -```php -public function setStatusCode( int $code, string $message = null ): ResponseInterface; -``` -Sets the HTTP response code - -```php -$response->setStatusCode(404, "Not Found"); -``` - - - - -

        Class Phalcon\Http\Response\Cookies

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/response/cookies.zep) - -| Namespace | Phalcon\Http\Response | -| Uses | Phalcon\Di\DiInterface, Phalcon\Di\AbstractInjectionAware, Phalcon\Http\CookieInterface, Phalcon\Http\Response\CookiesInterface, Phalcon\Http\Cookie\Exception | -| Extends | AbstractInjectionAware | -| Implements | CookiesInterface | - -Phalcon\Http\Response\Cookies - -This class is a bag to manage the cookies. - -A cookies bag is automatically registered as part of the 'response' service -in the DI. By default, cookies are automatically encrypted before being sent -to the client and are decrypted when retrieved from the user. To set sign key -used to generate a message authentication code use -`Phalcon\Http\Response\Cookies::setSignKey()`. - -```php -use Phalcon\Di; -use Phalcon\Crypt; -use Phalcon\Http\Response\Cookies; - -$di = new Di(); - -$di->set( - 'crypt', - function () { - $crypt = new Crypt(); - - // The `$key' should have been previously generated in a cryptographically safe way. - $key = "T4\xb1\x8d\xa9\x98\x05\\\x8c\xbe\x1d\x07&[\x99\x18\xa4~Lc1\xbeW\xb3"; - - $crypt->setKey($key); - - return $crypt; - } -); - -$di->set( - 'cookies', - function () { - $cookies = new Cookies(); - - // The `$key' MUST be at least 32 characters long and generated using a - // cryptographically secure pseudo random generator. - $key = "#1dj8$=dp?.ak//j1V$~%*0XaK\xb1\x8d\xa9\x98\x054t7w!z%C*F-Jk\x98\x05\\\x5c"; - - $cookies->setSignKey($key); - - return $cookies; - } -); -``` - - -## Properties -```php -// -protected cookies; - -// -protected registered = false; - -/** - * The cookie's sign key. - * @var string|null - */ -protected signKey; - -// -protected useEncryption = true; - -``` - -## Methods -```php -public function __construct( bool $useEncryption = bool, string $signKey = null ); -``` -Phalcon\Http\Response\Cookies constructor - - -```php -public function delete( string $name ): bool; -``` -Deletes a cookie by its name -This method does not removes cookies from the _COOKIE superglobal - - -```php -public function get( string $name ): CookieInterface; -``` -Gets a cookie from the bag - - -```php -public function getCookies(): array; -``` -Gets all cookies from the bag - - -```php -public function has( string $name ): bool; -``` -Check if a cookie is defined in the bag or exists in the _COOKIE -superglobal - - -```php -public function isUsingEncryption(): bool; -``` -Returns if the bag is automatically encrypting/decrypting cookies - - -```php -public function reset(): CookiesInterface; -``` -Reset set cookies - - -```php -public function send(): bool; -``` -Sends the cookies to the client -Cookies aren't sent if headers are sent in the current request - - -```php -public function set( string $name, mixed $value = null, int $expire = int, string $path = string, bool $secure = null, string $domain = null, bool $httpOnly = null ): CookiesInterface; -``` -Sets a cookie to be sent at the end of the request. - -This method overrides any cookie set before with the same name. - -```php -use Phalcon\Http\Response\Cookies; - -$now = new DateTimeImmutable(); -$tomorrow = $now->modify('tomorrow'); - -$cookies = new Cookies(); -$cookies->set( - 'remember-me', - json_encode(['user_id' => 1]), - (int) $tomorrow->format('U'), -); -``` - - -```php -public function setSignKey( string $signKey = null ): CookieInterface; -``` -Sets the cookie's sign key. - -The `$signKey' MUST be at least 32 characters long -and generated using a cryptographically secure pseudo random generator. - -Use NULL to disable cookie signing. - -@see \Phalcon\Security\Random - - -```php -public function useEncryption( bool $useEncryption ): CookiesInterface; -``` -Set if cookies in the bag must be automatically encrypted/decrypted - - - - -

        Interface Phalcon\Http\Response\CookiesInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/response/cookiesinterface.zep) - -| Namespace | Phalcon\Http\Response | -| Uses | Phalcon\Http\CookieInterface | - -Phalcon\Http\Response\CookiesInterface - -Interface for Phalcon\Http\Response\Cookies - - -## Methods -```php -public function delete( string $name ): bool; -``` -Deletes a cookie by its name -This method does not removes cookies from the _COOKIE superglobal - - -```php -public function get( string $name ): CookieInterface; -``` -Gets a cookie from the bag - - -```php -public function has( string $name ): bool; -``` -Check if a cookie is defined in the bag or exists in the _COOKIE superglobal - - -```php -public function isUsingEncryption(): bool; -``` -Returns if the bag is automatically encrypting/decrypting cookies - - -```php -public function reset(): CookiesInterface; -``` -Reset set cookies - - -```php -public function send(): bool; -``` -Sends the cookies to the client - - -```php -public function set( string $name, mixed $value = null, int $expire = int, string $path = string, bool $secure = null, string $domain = null, bool $httpOnly = null ): CookiesInterface; -``` -Sets a cookie to be sent at the end of the request - - -```php -public function useEncryption( bool $useEncryption ): CookiesInterface; -``` -Set if cookies in the bag must be automatically encrypted/decrypted - - - - -

        Class Phalcon\Http\Response\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/response/exception.zep) - -| Namespace | Phalcon\Http\Response | -| Extends | \Phalcon\Exception | - -Phalcon\Http\Response\Exception - -Exceptions thrown in Phalcon\Http\Response will use this class. - - - -

        Class Phalcon\Http\Response\Headers

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/response/headers.zep) - -| Namespace | Phalcon\Http\Response | -| Uses | Phalcon\Http\Response\HeadersInterface | -| Implements | HeadersInterface | - -Phalcon\Http\Response\Headers - -This class is a bag to manage the response headers - - -## Properties -```php -// -protected headers; - -``` - -## Methods -```php -public function get( string $name ): string | bool; -``` -Gets a header value from the internal bag - - -```php -public function has( string $name ): bool; -``` -Sets a header to be sent at the end of the request - - -```php -public function remove( string $header ): HeadersInterface; -``` -Removes a header to be sent at the end of the request - - -```php -public function reset(); -``` -Reset set headers - - -```php -public function send(): bool; -``` -Sends the headers to the client - - -```php -public function set( string $name, string $value ): HeadersInterface; -``` -Sets a header to be sent at the end of the request - - -```php -public function setRaw( string $header ): HeadersInterface; -``` -Sets a raw header to be sent at the end of the request - - -```php -public function toArray(): array; -``` -Returns the current headers as an array - - - - -

        Interface Phalcon\Http\Response\HeadersInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/response/headersinterface.zep) - -| Namespace | Phalcon\Http\Response | - -Phalcon\Http\Response\HeadersInterface - -Interface for Phalcon\Http\Response\Headers compatible bags - - -## Methods -```php -public function get( string $name ): string | bool; -``` -Gets a header value from the internal bag - - -```php -public function has( string $name ): bool; -``` -Returns true if the header is set, false otherwise - - -```php -public function reset(); -``` -Reset set headers - - -```php -public function send(): bool; -``` -Sends the headers to the client - - -```php -public function set( string $name, string $value ); -``` -Sets a header to be sent at the end of the request - - -```php -public function setRaw( string $header ); -``` -Sets a raw header to be sent at the end of the request - - - - -

        Interface Phalcon\Http\ResponseInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/responseinterface.zep) - -| Namespace | Phalcon\Http | -| Uses | DateTime, Phalcon\Http\Response\HeadersInterface | - -Phalcon\Http\Response - -Interface for Phalcon\Http\Response - - -## Methods -```php -public function appendContent( mixed $content ): ResponseInterface; -``` -Appends a string to the HTTP response body - - -```php -public function getContent(): string; -``` -Gets the HTTP response body - - -```php -public function getHeaders(): HeadersInterface; -``` -Returns headers set by the user - - -```php -public function getStatusCode(): int | null; -``` -Returns the status code - - -```php -public function hasHeader( string $name ): bool; -``` -Checks if a header exists - - -```php -public function isSent(): bool; -``` -Checks if the response was already sent - - -```php -public function redirect( mixed $location = null, bool $externalRedirect = bool, int $statusCode = int ): ResponseInterface; -``` -Redirect by HTTP to another action or URL - - -```php -public function resetHeaders(): ResponseInterface; -``` -Resets all the established headers - - -```php -public function send(): ResponseInterface; -``` -Prints out HTTP response to the client - - -```php -public function sendCookies(): ResponseInterface; -``` -Sends cookies to the client - - -```php -public function sendHeaders(): ResponseInterface | bool; -``` -Sends headers to the client - - -```php -public function setContent( string $content ): ResponseInterface; -``` -Sets HTTP response body - - -```php -public function setContentLength( int $contentLength ): ResponseInterface; -``` -Sets the response content-length - - -```php -public function setContentType( string $contentType, mixed $charset = null ): ResponseInterface; -``` -Sets the response content-type mime, optionally the charset - -@param string charset - - -```php -public function setExpires( DateTime $datetime ): ResponseInterface; -``` -Sets output expire time header - - -```php -public function setFileToSend( string $filePath, mixed $attachmentName = null ): ResponseInterface; -``` -Sets an attached file to be sent at the end of the request - - -```php -public function setHeader( string $name, mixed $value ): ResponseInterface; -``` -Overwrites a header in the response - - -```php -public function setJsonContent( mixed $content ): ResponseInterface; -``` -Sets HTTP response body. The parameter is automatically converted to JSON - -```php -$response->setJsonContent( - [ - "status" => "OK", - ] -); -``` - - -```php -public function setNotModified(): ResponseInterface; -``` -Sends a Not-Modified response - - -```php -public function setRawHeader( string $header ): ResponseInterface; -``` -Send a raw header to the response - - -```php -public function setStatusCode( int $code, string $message = null ): ResponseInterface; -``` -Sets the HTTP response code - - - - -

        Abstract Class Phalcon\Http\Server\AbstractMiddleware

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/server/abstractmiddleware.zep) - -| Namespace | Phalcon\Http\Server | -| Uses | Psr\Http\Message\ResponseInterface, Psr\Http\Message\ServerRequestInterface, Psr\Http\Server\MiddlewareInterface, Psr\Http\Server\RequestHandlerInterface | -| Implements | MiddlewareInterface | - -Participant in processing a server request and response. - -An HTTP middleware component participates in processing an HTTP message: -by acting on the request, generating the response, or forwarding the -request to a subsequent middleware and possibly acting on its response. - - -## Methods -```php -abstract public function process( ServerRequestInterface $request, RequestHandlerInterface $handler ): ResponseInterface; -``` -Process an incoming server request. - -Processes an incoming server request in order to produce a response. -If unable to produce the response itself, it may delegate to the provided -request handler to do so. - - - - -

        Abstract Class Phalcon\Http\Server\AbstractRequestHandler

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/http/server/abstractrequesthandler.zep) - -| Namespace | Phalcon\Http\Server | -| Uses | Psr\Http\Message\ResponseInterface, Psr\Http\Message\ServerRequestInterface, Psr\Http\Server\RequestHandlerInterface | -| Implements | RequestHandlerInterface | - -Handles a server request and produces a response. - -An HTTP request handler process an HTTP request in order to produce an -HTTP response. - - -## Methods -```php -abstract public function handle( ServerRequestInterface $request ): ResponseInterface; -``` -Handles a request and produces a response. - -May call other collaborating code to generate the response. - - diff --git a/nikos/api/Phalcon_Image.md b/nikos/api/Phalcon_Image.md deleted file mode 100644 index 5029719084a..00000000000 --- a/nikos/api/Phalcon_Image.md +++ /dev/null @@ -1,642 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Image' ---- - -* [Phalcon\Image\Adapter\AbstractAdapter](#image-adapter-abstractadapter) -* [Phalcon\Image\Adapter\AdapterInterface](#image-adapter-adapterinterface) -* [Phalcon\Image\Adapter\Gd](#image-adapter-gd) -* [Phalcon\Image\Adapter\Imagick](#image-adapter-imagick) -* [Phalcon\Image\Enum](#image-enum) -* [Phalcon\Image\Exception](#image-exception) -* [Phalcon\Image\ImageFactory](#image-imagefactory) - -

        Abstract Class Phalcon\Image\Adapter\AbstractAdapter

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/image/adapter/abstractadapter.zep) - -| Namespace | Phalcon\Image\Adapter | -| Uses | Phalcon\Image\Enum, Phalcon\Image\Exception | -| Implements | AdapterInterface | - -Phalcon\Image\Adapter - -All image adapters must use this class - - -## Properties -```php -// -protected static checked = false; - -// -protected file; - -/** - * Image height - * - * @var int - */ -protected height; - -// -protected image; - -/** - * Image mime type - * - * @var string - */ -protected mime; - -// -protected realpath; - -/** - * Image type - * - * Driver dependent - * - * @var int - */ -protected type; - -/** - * Image width - * - * @var int - */ -protected width; - -``` - -## Methods -```php -public function background( string $color, int $opacity = int ): Adapter; -``` - Set the background color of an image - - -```php -public function blur( int $radius ): Adapter; -``` - Blur image - - -```php -public function crop( int $width, int $height, int $offsetX = null, int $offsetY = null ): Adapter; -``` - Crop an image to the given size - - -```php -public function flip( int $direction ): Adapter; -``` - Flip the image along the horizontal or vertical axis - - -```php -public function getHeight(): int -``` - - -```php -public function getImage() -``` - - -```php -public function getMime(): string -``` - - -```php -public function getRealpath() -``` - - -```php -public function getType(): int -``` - - -```php -public function getWidth(): int -``` - - -```php -public function liquidRescale( int $width, int $height, int $deltaX = int, int $rigidity = int ): Adapter; -``` -This method scales the images using liquid rescaling method. Only support -Imagick - -@param int $width new width -@param int $height new height -@param int $deltaX How much the seam can traverse on x-axis. Passing 0 causes the seams to be straight. -@param int $rigidity Introduces a bias for non-straight seams. This parameter is typically 0. - - -```php -public function mask( AdapterInterface $watermark ): Adapter; -``` - Composite one image onto another - - -```php -public function pixelate( int $amount ): Adapter; -``` - Pixelate image - - -```php -public function reflection( int $height, int $opacity = int, bool $fadeIn = bool ): Adapter; -``` - Add a reflection to an image - - -```php -public function render( string $ext = null, int $quality = int ): string; -``` - Render the image and return the binary string - - -```php -public function resize( int $width = null, int $height = null, int $master = static-constant-access ): Adapter; -``` - Resize the image to the given size - - -```php -public function rotate( int $degrees ): Adapter; -``` - Rotate the image by a given amount - - -```php -public function save( string $file = null, int $quality = int ): Adapter; -``` - Save the image - - -```php -public function sharpen( int $amount ): Adapter; -``` - Sharpen the image by a given amount - - -```php -public function text( string $text, mixed $offsetX = bool, mixed $offsetY = bool, int $opacity = int, string $color = string, int $size = int, string $fontfile = null ): Adapter; -``` - Add a text to an image with a specified opacity - - -```php -public function watermark( AdapterInterface $watermark, int $offsetX = int, int $offsetY = int, int $opacity = int ): Adapter; -``` - Add a watermark to an image with the specified opacity - - - - -

        Interface Phalcon\Image\Adapter\AdapterInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/image/adapter/adapterinterface.zep) - -| Namespace | Phalcon\Image\Adapter | - -This file is part of the Phalcon Framework. - -(c) Phalcon Team - -For the full copyright and license information, please view the LICENSE.txt -file that was distributed with this source code. - - -## Methods -```php -public function background( string $color, int $opacity = int ); -``` -// - -```php -public function blur( int $radius ); -``` -// - -```php -public function crop( int $width, int $height, int $offsetX = null, int $offsetY = null ); -``` -// - -```php -public function flip( int $direction ); -``` -// - -```php -public function mask( AdapterInterface $watermark ); -``` -// - -```php -public function pixelate( int $amount ); -``` -// - -```php -public function reflection( int $height, int $opacity = int, bool $fadeIn = bool ); -``` -// - -```php -public function render( string $ext = null, int $quality = int ); -``` -// - -```php -public function resize( int $width = null, int $height = null, int $master = static-constant-access ); -``` -// - -```php -public function rotate( int $degrees ); -``` -// - -```php -public function save( string $file = null, int $quality = int ); -``` -// - -```php -public function sharpen( int $amount ); -``` -// - -```php -public function text( string $text, int $offsetX = int, int $offsetY = int, int $opacity = int, string $color = string, int $size = int, string $fontfile = null ); -``` -// - -```php -public function watermark( AdapterInterface $watermark, int $offsetX = int, int $offsetY = int, int $opacity = int ); -``` -// - - - -

        Class Phalcon\Image\Adapter\Gd

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/image/adapter/gd.zep) - -| Namespace | Phalcon\Image\Adapter | -| Uses | Phalcon\Image\Enum, Phalcon\Image\Adapter\AbstractAdapter, Phalcon\Image\Exception | -| Extends | AbstractAdapter | - -This file is part of the Phalcon Framework. - -(c) Phalcon Team - -For the full copyright and license information, please view the LICENSE.txt -file that was distributed with this source code. - - -## Properties -```php -// -protected static checked = false; - -``` - -## Methods -```php -public function __construct( string $file, int $width = null, int $height = null ); -``` -// - -```php -public function __destruct(); -``` -// - -```php -protected function processBackground( int $r, int $g, int $b, int $opacity ); -``` -// - -```php -protected function processBlur( int $radius ); -``` -// - -```php -protected function processCreate( int $width, int $height ); -``` -// - -```php -protected function processCrop( int $width, int $height, int $offsetX, int $offsetY ); -``` -// - -```php -protected function processFlip( int $direction ); -``` -// - -```php -protected function processMask( AdapterInterface $mask ); -``` -// - -```php -protected function processPixelate( int $amount ); -``` -// - -```php -protected function processReflection( int $height, int $opacity, bool $fadeIn ); -``` -// - -```php -protected function processRender( string $ext, int $quality ); -``` -// - -```php -protected function processResize( int $width, int $height ); -``` -// - -```php -protected function processRotate( int $degrees ); -``` -// - -```php -protected function processSave( string $file, int $quality ); -``` -// - -```php -protected function processSharpen( int $amount ); -``` -// - -```php -protected function processText( string $text, int $offsetX, int $offsetY, int $opacity, int $r, int $g, int $b, int $size, string $fontfile ); -``` -// - -```php -protected function processWatermark( AdapterInterface $watermark, int $offsetX, int $offsetY, int $opacity ); -``` -// - - - -

        Class Phalcon\Image\Adapter\Imagick

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/image/adapter/imagick.zep) - -| Namespace | Phalcon\Image\Adapter | -| Uses | Imagick, ImagickDraw, ImagickPixel, Phalcon\Image\Enum, Phalcon\Image\Adapter\AbstractAdapter, Phalcon\Image\Exception | -| Extends | AbstractAdapter | - -Phalcon\Image\Adapter\Imagick - -Image manipulation support. Allows images to be resized, cropped, etc. - -```php -$image = new \Phalcon\Image\Adapter\Imagick("upload/test.jpg"); - -$image->resize(200, 200)->rotate(90)->crop(100, 100); - -if ($image->save()) { - echo "success"; -} -``` - - -## Properties -```php -// -protected static checked = false; - -// -protected static version = 0; - -``` - -## Methods -```php -public function __construct( string $file, int $width = null, int $height = null ); -``` -\Phalcon\Image\Adapter\Imagick constructor - - -```php -public function __destruct(); -``` -Destroys the loaded image to free up resources. - - -```php -public function getInternalImInstance(): \Imagick; -``` -Get instance - - -```php -public function setResourceLimit( int $type, int $limit ); -``` -Sets the limit for a particular resource in megabytes - -@link http://php.net/manual/ru/imagick.constants.php#imagick.constants.resourcetypes - - -```php -protected function processBackground( int $r, int $g, int $b, int $opacity ); -``` -Execute a background. - - -```php -protected function processBlur( int $radius ); -``` -Blur image - -@param int $radius Blur radius - - -```php -protected function processCrop( int $width, int $height, int $offsetX, int $offsetY ); -``` -Execute a crop. - - -```php -protected function processFlip( int $direction ); -``` -Execute a flip. - - -```php -protected function processLiquidRescale( int $width, int $height, int $deltaX, int $rigidity ); -``` -This method scales the images using liquid rescaling method. Only support -Imagick - -@param int $width new width -@param int $height new height -@param int $deltaX How much the seam can traverse on x-axis. Passing 0 causes the seams to be straight. -@param int $rigidity Introduces a bias for non-straight seams. This parameter is typically 0. - - -```php -protected function processMask( AdapterInterface $image ); -``` -Composite one image onto another - - -```php -protected function processPixelate( int $amount ); -``` -Pixelate image - -@param int $amount amount to pixelate - - -```php -protected function processReflection( int $height, int $opacity, bool $fadeIn ); -``` -Execute a reflection. - - -```php -protected function processRender( string $extension, int $quality ): string; -``` -Execute a render. - - -```php -protected function processResize( int $width, int $height ); -``` -Execute a resize. - - -```php -protected function processRotate( int $degrees ); -``` -Execute a rotation. - - -```php -protected function processSave( string $file, int $quality ); -``` -Execute a save. - - -```php -protected function processSharpen( int $amount ); -``` -Execute a sharpen. - - -```php -protected function processText( string $text, mixed $offsetX, mixed $offsetY, int $opacity, int $r, int $g, int $b, int $size, string $fontfile ); -``` -Execute a text - - -```php -protected function processWatermark( AdapterInterface $image, int $offsetX, int $offsetY, int $opacity ); -``` -Execute a watermarking. - - - - -

        Class Phalcon\Image\Enum

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/image/enum.zep) - -| Namespace | Phalcon\Image | - -This file is part of the Phalcon Framework. - -(c) Phalcon Team - -For the full copyright and license information, please view the LICENSE.txt -file that was distributed with this source code. - - -## Constants -```php -const AUTO = 4; -const HEIGHT = 3; -const HORIZONTAL = 11; -const INVERSE = 5; -const NONE = 1; -const PRECISE = 6; -const TENSILE = 7; -const VERTICAL = 12; -const WIDTH = 2; -``` - - -

        Class Phalcon\Image\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/image/exception.zep) - -| Namespace | Phalcon\Image | -| Extends | \Phalcon\Exception | - -This file is part of the Phalcon Framework. - -(c) Phalcon Team - -For the full copyright and license information, please view the LICENSE.txt -file that was distributed with this source code. - - - -

        Class Phalcon\Image\ImageFactory

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/image/imagefactory.zep) - -| Namespace | Phalcon\Image | -| Uses | Phalcon\Config, Phalcon\Factory\AbstractFactory, Phalcon\Helper\Arr, Phalcon\Image\Adapter\AdapterInterface | -| Extends | AbstractFactory | - -Phalcon\Image/ImageFactory - - -## Methods -```php -public function __construct( array $services = [] ); -``` -TagFactory constructor. - - -```php -public function load( mixed $config ): AdapterInterface; -``` -Factory to create an instace from a Config object - - -```php -public function newInstance( string $name, string $file, int $width = null, int $height = null ): AdapterInterface; -``` -Creates a new instance - - -```php -protected function getAdapters(): array; -``` -// - diff --git a/nikos/api/Phalcon_Kernel.md b/nikos/api/Phalcon_Kernel.md deleted file mode 100644 index f4733ca0f68..00000000000 --- a/nikos/api/Phalcon_Kernel.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Kernel' ---- - -* [Phalcon\Kernel](#kernel) - -

        Class Phalcon\Kernel

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/kernel.zep) - -| Namespace | Phalcon | - -This class allows to change the internal behavior of the framework in runtime - diff --git a/nikos/api/Phalcon_Loader.md b/nikos/api/Phalcon_Loader.md deleted file mode 100644 index 3bc33969c55..00000000000 --- a/nikos/api/Phalcon_Loader.md +++ /dev/null @@ -1,239 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Loader' ---- - -* [Phalcon\Loader](#loader) -* [Phalcon\Loader\Exception](#loader-exception) - -

        Class Phalcon\Loader

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/loader.zep) - -| Namespace | Phalcon | -| Uses | Phalcon\Loader\Exception, Phalcon\Events\ManagerInterface, Phalcon\Events\EventsAwareInterface | -| Implements | EventsAwareInterface | - -This component helps to load your project classes automatically based on some -conventions - -```php -use Phalcon\Loader; - -// Creates the autoloader -$loader = new Loader(); - -// Register some namespaces -$loader->registerNamespaces( - [ - "Example\\Base" => "vendor/example/base/", - "Example\\Adapter" => "vendor/example/adapter/", - "Example" => "vendor/example/", - ] -); - -// Register autoloader -$loader->register(); - -// Requiring this class will automatically include file vendor/example/adapter/Some.php -$adapter = new \Example\Adapter\Some(); -``` - - -## Properties -```php -// -protected checkedPath; - -/** - * @var array - */ -protected classes; - -/** - * @var array - */ -protected directories; - -// -protected eventsManager; - -/** - * @var array - */ -protected extensions; - -// -protected fileCheckingCallback = is_file; - -/** - * @var array - */ -protected files; - -/** - * @var bool - */ -protected foundPath; - -/** - * @var array - */ -protected namespaces; - -/** - * @var bool - */ -protected registered = false; - -``` - -## Methods -```php -public function autoLoad( string $className ): bool; -``` -Autoloads the registered classes - - -```php -public function getCheckedPath(): string; -``` -Get the path the loader is checking for a path - - -```php -public function getClasses(): array; -``` -Returns the class-map currently registered in the autoloader - - -```php -public function getDirs(): array; -``` -Returns the directories currently registered in the autoloader - - -```php -public function getEventsManager(): ManagerInterface; -``` -Returns the internal event manager - - -```php -public function getExtensions(): array; -``` -Returns the file extensions registered in the loader - - -```php -public function getFiles(): array; -``` -Returns the files currently registered in the autoloader - - -```php -public function getFoundPath(): string; -``` -Get the path when a class was found - - -```php -public function getNamespaces(): array; -``` -Returns the namespaces currently registered in the autoloader - - -```php -public function loadFiles(): void; -``` -Checks if a file exists and then adds the file by doing virtual require - - -```php -public function register( bool $prepend = bool ): Loader; -``` -Register the autoload method - - -```php -public function registerClasses( array $classes, bool $merge = bool ): Loader; -``` -Register classes and their locations - - -```php -public function registerDirs( array $directories, bool $merge = bool ): Loader; -``` -Register directories in which "not found" classes could be found - - -```php -public function registerFiles( array $files, bool $merge = bool ): Loader; -``` -Registers files that are "non-classes" hence need a "require". This is -very useful for including files that only have functions - - -```php -public function registerNamespaces( array $namespaces, bool $merge = bool ): Loader; -``` -Register namespaces and their related directories - - -```php -public function setEventsManager( ManagerInterface $eventsManager ): void; -``` -Sets the events manager - - -```php -public function setExtensions( array $extensions ): Loader; -``` -Sets an array of file extensions that the loader must try in each attempt -to locate the file - - -```php -public function setFileCheckingCallback( mixed $callback = null ): Loader; -``` -Sets the file check callback. - -```php -// Default behavior. -$loader->setFileCheckingCallback("is_file"); - -// Faster than `is_file()`, but implies some issues if -// the file is removed from the filesystem. -$loader->setFileCheckingCallback("stream_resolve_include_path"); - -// Do not check file existence. -$loader->setFileCheckingCallback(null); -``` - - -```php -public function unregister(): Loader; -``` -Unregister the autoload method - - -```php -protected function prepareNamespace( array $namespaceName ): array; -``` -// - - - -

        Class Phalcon\Loader\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/loader/exception.zep) - -| Namespace | Phalcon\Loader | -| Extends | \Phalcon\Exception | - -Phalcon\Loader\Exception - -Exceptions thrown in Phalcon\Loader will use this class - diff --git a/nikos/api/Phalcon_Logger.md b/nikos/api/Phalcon_Logger.md deleted file mode 100644 index bd8fa20fa10..00000000000 --- a/nikos/api/Phalcon_Logger.md +++ /dev/null @@ -1,999 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Logger' ---- - -* [Phalcon\Logger](#logger) -* [Phalcon\Logger\Adapter\AbstractAdapter](#logger-adapter-abstractadapter) -* [Phalcon\Logger\Adapter\AdapterInterface](#logger-adapter-adapterinterface) -* [Phalcon\Logger\Adapter\Noop](#logger-adapter-noop) -* [Phalcon\Logger\Adapter\Stream](#logger-adapter-stream) -* [Phalcon\Logger\Adapter\Syslog](#logger-adapter-syslog) -* [Phalcon\Logger\AdapterFactory](#logger-adapterfactory) -* [Phalcon\Logger\Exception](#logger-exception) -* [Phalcon\Logger\Formatter\AbstractFormatter](#logger-formatter-abstractformatter) -* [Phalcon\Logger\Formatter\FormatterInterface](#logger-formatter-formatterinterface) -* [Phalcon\Logger\Formatter\Json](#logger-formatter-json) -* [Phalcon\Logger\Formatter\Line](#logger-formatter-line) -* [Phalcon\Logger\Formatter\Syslog](#logger-formatter-syslog) -* [Phalcon\Logger\Item](#logger-item) -* [Phalcon\Logger\LoggerFactory](#logger-loggerfactory) - -

        Class Phalcon\Logger

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/logger.zep) - -| Namespace | Phalcon | -| Uses | Psr\Log\LoggerInterface, Psr\Log\InvalidArgumentException, Phalcon\Logger\Adapter\AdapterInterface, Phalcon\Logger\Item, Phalcon\Logger\Exception | -| Implements | LoggerInterface | - -Phalcon\Logger - -This component offers logging capabilities for your application. The -component accepts multiple adapters, working also as a multiple logger. -Phalcon\Logger implements PSR-3. - -```php -use Phalcon\Logger; -use Phalcon\Logger\Adapter\Stream; - -$adapter1 = new Stream('/logs/first-log.log'); -$adapter2 = new Stream('/remote/second-log.log'); -$adapter3 = new Stream('/manager/third-log.log'); - -$logger = new Logger( - 'messages', - [ - 'local' => $adapter1, - 'remote' => $adapter2, - 'manager' => $adapter3, - ] - ); - -// Log to all adapters -$logger->error('Something went wrong'); - -// Log to specific adapters -$logger - ->excludeAdapters(['manager']) - ->info('This does not go to the "manager" logger); -``` - - -## Constants -```php -const ALERT = 2; -const CRITICAL = 1; -const CUSTOM = 8; -const DEBUG = 7; -const EMERGENCY = 0; -const ERROR = 3; -const INFO = 6; -const NOTICE = 5; -const WARNING = 4; -``` - -## Properties -```php -/** - * The adapter stack - * - * @var AdapterInterface[] - */ -protected adapters; - -/** - * @var string - */ -protected name = ; - -/** - * The excluded adapters for this log process - * - * @var AdapterInterface[] - */ -protected excluded; - -``` - -## Methods -```php -public function __construct( string $name, array $adapters = [] ): void; -``` -Constructor. - -@param string name The name of the logger -@param array adapters The collection of adapters to be used for logging (default []) - - -```php -public function addAdapter( string $name, AdapterInterface $adapter ): Logger; -``` -Add an adapter to the stack. For processing we use FIFO - -@param string name The name of the adapter -@param adapter The adapter to add to the stack - - -```php -public function alert( mixed $message, array $context = [] ): void; -``` -Action must be taken immediately. - -Example: Entire website down, database unavailable, etc. This should -trigger the SMS alerts and wake you up. - -@param string message - - -```php -public function critical( mixed $message, array $context = [] ): void; -``` -Critical conditions. - -Example: Application component unavailable, unexpected exception. - -@param string message - - -```php -public function debug( mixed $message, array $context = [] ): void; -``` -Detailed debug information. - -@param string message - - -```php -public function emergency( mixed $message, array $context = [] ): void; -``` -System is unusable. - -@param string message - - -```php -public function error( mixed $message, array $context = [] ): void; -``` -Runtime errors that do not require immediate action but should typically -be logged and monitored. - -@param string message - - -```php -public function excludeAdapters( array $adapters = [] ): Logger; -``` -Exclude certain adapters. - - -```php -public function getAdapter( string $name ): AdapterInterface; -``` -Returns an adapter from the stack - -@param string name The name of the adapter - -@throws - - -```php -public function getAdapters(): array; -``` -Returns the adapter stack array - -@return AdapterInterface[] - - -```php -public function getName(): string; -``` -Returns the name of the logger - - -```php -public function info( mixed $message, array $context = [] ): void; -``` -Interesting events. - -Example: User logs in, SQL logs. - -@param string message - - -```php -public function log( mixed $level, mixed $message, array $context = [] ): void; -``` -Logs with an arbitrary level. - -@param mixed level -@param string message - - -```php -public function notice( mixed $message, array $context = [] ): void; -``` -Normal but significant events. - -@param string message - - -```php -public function removeAdapter( string $name ): Logger; -``` -Removes an adapter from the stack - -@param string name The name of the adapter - -@throws - - -```php -public function setAdapters( array $adapters ): Logger; -``` -Sets the adapters stack overriding what is already there - -@param array adapters An array of adapters - - -```php -public function warning( mixed $message, array $context = [] ): void; -``` -Exceptional occurrences that are not errors. - -Example: Use of deprecated APIs, poor use of an API, undesirable things -that are not necessarily wrong. - -@param string message - - -```php -protected function addMessage( int $level, string $message, array $context = [] ): bool; -``` -Adds a message to each handler for processing - -@param int level -@param string message - -@throws - - -```php -protected function getLevels(): array; -``` -Returns an array of log levels with integer to string conversion - - - - -

        Abstract Class Phalcon\Logger\Adapter\AbstractAdapter

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/logger/adapter/abstractadapter.zep) - -| Namespace | Phalcon\Logger\Adapter | -| Uses | Phalcon\Logger, Phalcon\Logger\Adapter\AdapterInterface, Phalcon\Logger\Exception, Phalcon\Logger\Formatter\FormatterInterface, Phalcon\Logger\Item | -| Implements | AdapterInterface | - -This file is part of the Phalcon Framework. - -(c) Phalcon Team - -For the full copyright and license information, please view the LICENSE.txt -file that was distributed with this source code. - - -## Properties -```php -/** - * Name of the default formatter class - * - * @var string - */ -protected defaultFormatter = Line; - -/** - * Formatter - * - * @var - */ -protected formatter; - -/** - * Tells if there is an active transaction or not - * - * @var bool - */ -protected inTransaction = false; - -/** - * Array with messages queued in the transaction - * - * @var array - */ -protected queue; - -``` - -## Methods -```php -public function __destruct(); -``` -Destructor cleanup - - -```php -public function add( Item $item ): AdapterInterface; -``` -Adds a message to the queue - - -```php -public function begin(): AdapterInterface; -``` -Starts a transaction - - -```php -public function commit(): AdapterInterface; -``` -Commits the internal transaction - - -```php -public function getFormatter(): FormatterInterface; -``` -// - -```php -public function inTransaction(): bool; -``` -Returns the whether the logger is currently in an active transaction or not - - -```php -abstract public function process( Item $item ): void; -``` - Processes the message in the adapter - - -```php -public function rollback(): AdapterInterface; -``` -Rollbacks the internal transaction - - -```php -public function setFormatter( FormatterInterface $formatter ): AdapterInterface; -``` -Sets the message formatter - - - - -

        Interface Phalcon\Logger\Adapter\AdapterInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/logger/adapter/adapterinterface.zep) - -| Namespace | Phalcon\Logger\Adapter | -| Uses | Phalcon\Logger\Formatter\FormatterInterface, Phalcon\Logger\Item | - -Phalcon\Logger\AdapterInterface - -Interface for Phalcon\Logger adapters - - -## Methods -```php -public function add( Item $item ): void; -``` -Adds a message in the queue - - -```php -public function begin(): AdapterInterface; -``` -Starts a transaction - - -```php -public function close(): bool; -``` -Closes the logger - - -```php -public function commit(): AdapterInterface; -``` -Commits the internal transaction - - -```php -public function getFormatter(): FormatterInterface; -``` -Returns the internal formatter - - -```php -public function process( Item $item ): void; -``` -Processes the message in the adapter - - -```php -public function rollback(): AdapterInterface; -``` -Rollbacks the internal transaction - - -```php -public function setFormatter( FormatterInterface $formatter ): AdapterInterface; -``` -Sets the message formatter - - - - -

        Class Phalcon\Logger\Adapter\Noop

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/logger/adapter/noop.zep) - -| Namespace | Phalcon\Logger\Adapter | -| Uses | Phalcon\Logger\Item | -| Extends | AbstractAdapter | - -Phalcon\Logger\Adapter\Noop - -Adapter to store logs in plain text files - -```php -$logger = new \Phalcon\Logger\Adapter\Noop(); - -$logger->log(\Phalcon\Logger::ERROR, "This is an error"); -$logger->error("This is another error"); - -$logger->close(); -``` - - -## Methods -```php -public function close(): bool; -``` -Closes the stream - - -```php -public function process( Item $item ): void; -``` -Processes the message i.e. writes it to the file - - - - -

        Class Phalcon\Logger\Adapter\Stream

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/logger/adapter/stream.zep) - -| Namespace | Phalcon\Logger\Adapter | -| Uses | Phalcon\Logger\Adapter, Phalcon\Logger\Exception, Phalcon\Logger\Formatter\FormatterInterface, Phalcon\Logger\Item, UnexpectedValueException | -| Extends | AbstractAdapter | - -Phalcon\Logger\Adapter\Stream - -Adapter to store logs in plain text files - -```php -$logger = new \Phalcon\Logger\Adapter\Stream("app/logs/test.log"); - -$logger->log("This is a message"); -$logger->log(\Phalcon\Logger::ERROR, "This is an error"); -$logger->error("This is another error"); - -$logger->close(); -``` - - -## Properties -```php -/** - * Stream handler resource - * - * @var resource|null - */ -protected handler; - -/** - * The file open mode. Defaults to "ab" - * - * @var string - */ -protected mode = ab; - -/** - * Stream name - * - * @var string - */ -protected name; - -/** - * Path options - * - * @var array - */ -protected options; - -``` - -## Methods -```php -public function __construct( string $name, array $options = [] ); -``` -Constructor. Accepts the name and some options - - -```php -public function close(): bool; -``` -Closes the stream - - -```php -public function getName(): string -``` - - -```php -public function process( Item $item ): void; -``` -Processes the message i.e. writes it to the file - - - - -

        Class Phalcon\Logger\Adapter\Syslog

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/logger/adapter/syslog.zep) - -| Namespace | Phalcon\Logger\Adapter | -| Uses | LogicException, Phalcon\Logger, Phalcon\Logger\Adapter, Phalcon\Logger\Exception, Phalcon\Logger\Formatter\FormatterInterface, Phalcon\Logger\Item | -| Extends | AbstractAdapter | - -Phalcon\Logger\Adapter\Syslog - -Sends logs to the system logger - -```php -use Phalcon\Logger; -use Phalcon\Logger\Adapter\Syslog; - -// LOG_USER is the only valid log type under Windows operating systems -$logger = new Syslog( - "ident", - [ - "option" => LOG_CONS | LOG_NDELAY | LOG_PID, - "facility" => LOG_USER, - ] -); - -$logger->log("This is a message"); -$logger->log(Logger::ERROR, "This is an error"); -$logger->error("This is another error"); -``` - - -## Properties -```php -/** - * Name of the default formatter class - * - * @var string - */ -protected defaultFormatter = Syslog; - -/** - * @var int - */ -protected facility = 0; - -/** - * @var string - */ -protected name = ; - -/** - * @var bool - */ -protected opened = false; - -/** - * @var int - */ -protected option = 0; - -``` - -## Methods -```php -public function __construct( string $name, array $options = [] ); -``` -Phalcon\Logger\Adapter\Syslog constructor - - -```php -public function close(): bool; -``` - Closes the logger - - -```php -public function process( Item $item ): void; -``` -Processes the message i.e. writes it to the syslog - - - - -

        Class Phalcon\Logger\AdapterFactory

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/logger/adapterfactory.zep) - -| Namespace | Phalcon\Logger | -| Uses | Phalcon\Factory\AbstractFactory | -| Extends | AbstractFactory | - -This file is part of the Phalcon Framework. - -(c) Phalcon Team - -For the full copyright and license information, please view the LICENSE.txt -file that was distributed with this source code. - - -## Methods -```php -public function __construct( array $services = [] ); -``` -AdapterFactory constructor. - - -```php -public function newInstance( string $name, string $fileName, array $options = [] ): AdapterInterface; -``` -Create a new instance of the adapter - - -```php -protected function getAdapters(): array; -``` -// - - - -

        Class Phalcon\Logger\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/logger/exception.zep) - -| Namespace | Phalcon\Logger | -| Extends | \Phalcon\Exception | - -Phalcon\Logger\Exception - -Exceptions thrown in Phalcon\Logger will use this class - - - -

        Abstract Class Phalcon\Logger\Formatter\AbstractFormatter

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/logger/formatter/abstractformatter.zep) - -| Namespace | Phalcon\Logger\Formatter | -| Uses | Phalcon\Logger | -| Implements | FormatterInterface | - -This file is part of the Phalcon Framework. - -(c) Phalcon Team - -For the full copyright and license information, please view the LICENSE.txt -file that was distributed with this source code. - - -## Methods -```php -public function interpolate( string $message, mixed $context = null ); -``` -Interpolates context values into the message placeholders - -@see http://www.php-fig.org/psr/psr-3/ Section 1.2 Message -@param string $message -@param array $context - - - - -

        Interface Phalcon\Logger\Formatter\FormatterInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/logger/formatter/formatterinterface.zep) - -| Namespace | Phalcon\Logger\Formatter | -| Uses | Phalcon\Logger\Item | - -Phalcon\Logger\FormatterInterface - -This interface must be implemented by formatters in Phalcon\Logger - - -## Methods -```php -public function format( Item $item ): string | array; -``` -Applies a format to an item - - - - -

        Class Phalcon\Logger\Formatter\Json

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/logger/formatter/json.zep) - -| Namespace | Phalcon\Logger\Formatter | -| Uses | Phalcon\Logger\Formatter\AbstractFormatter, Phalcon\Logger\Item | -| Extends | AbstractFormatter | - -Phalcon\Logger\Formatter\Json - -Formats messages using JSON encoding - - -## Properties -```php -/** - * Default date format - * - * @var string - */ -protected dateFormat; - -``` - -## Methods -```php -public function __construct( string $dateFormat = string ): void; -``` -Phalcon\Logger\Formatter\Json construct - - -```php -public function format( Item $item ): string; -``` -Applies a format to a message before sent it to the internal log - - -```php -public function getDateFormat(): string -``` - - -```php -public function setDateFormat( string $dateFormat ) -``` - - - - -

        Class Phalcon\Logger\Formatter\Line

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/logger/formatter/line.zep) - -| Namespace | Phalcon\Logger\Formatter | -| Uses | Phalcon\Logger\Formatter\Formatter, Phalcon\Logger\Item | -| Extends | AbstractFormatter | - -Phalcon\Logger\Formatter\Line - -Formats messages using an one-line string - - -## Properties -```php -/** - * Default date format - * - * @var string - */ -protected dateFormat; - -/** - * Format applied to each message - * - * @var string - */ -protected format; - -``` - -## Methods -```php -public function __construct( string $format = string, string $dateFormat = string ): void; -``` -Phalcon\Logger\Formatter\Line construct - - -```php -public function format( Item $item ): string; -``` -Applies a format to a message before sent it to the internal log - - -```php -public function getDateFormat(): string -``` - - -```php -public function getFormat(): string -``` - - -```php -public function setDateFormat( string $dateFormat ) -``` - - -```php -public function setFormat( string $format ) -``` - - - - -

        Class Phalcon\Logger\Formatter\Syslog

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/logger/formatter/syslog.zep) - -| Namespace | Phalcon\Logger\Formatter | -| Uses | Phalcon\Logger\Formatter\AbstractFormatter, Phalcon\Logger\Item | -| Extends | AbstractFormatter | - -Phalcon\Logger\Formatter\Syslog - -Prepares a message to be used in a Syslog backend - - -## Methods -```php -public function format( Item $item ): array; -``` -Applies a format to a message before sent it to the internal log - - - - -

        Class Phalcon\Logger\Item

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/logger/item.zep) - -| Namespace | Phalcon\Logger | - -Phalcon\Logger\Item - -Represents each item in a logging transaction - - - -## Properties -```php -// -protected context; - -/** - * Log message - * - * @var string - */ -protected message; - -/** - * Log message - * - * @var string - */ -protected name; - -/** - * Log timestamp - * - * @var integer - */ -protected time; - -/** - * Log type - * - * @var integer - */ -protected type; - -``` - -## Methods -```php -public function __construct( string $message, string $name, int $type, int $time = int, mixed $context = [] ); -``` -Phalcon\Logger\Item constructor - - -```php -public function getContext() -``` - - -```php -public function getMessage(): string -``` - - -```php -public function getName(): string -``` - - -```php -public function getTime(): integer -``` - - -```php -public function getType(): integer -``` - - - - -

        Class Phalcon\Logger\LoggerFactory

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/logger/loggerfactory.zep) - -| Namespace | Phalcon\Logger | -| Uses | Phalcon\Config, Phalcon\Helper\Arr, Phalcon\Logger, Phalcon\Logger\AdapterFactory | - -PhalconNG\Logger\LoggerFactory - -Logger factory - - -## Properties -```php -/** - * @var AdapterFactory - */ -private adapterFactory; - -``` - -## Methods -```php -public function __construct( AdapterFactory $factory ); -``` -// - -```php -public function load( mixed $config ): mixed; -``` -Factory to create an instace from a Config object - - -```php -public function newInstance( string $name, array $adapters = [] ): Logger; -``` -Returns a Logger object - -@param string $name -@param array $adapters - -@return Logger - - diff --git a/nikos/api/Phalcon_Messages.md b/nikos/api/Phalcon_Messages.md deleted file mode 100644 index 19afffd99df..00000000000 --- a/nikos/api/Phalcon_Messages.md +++ /dev/null @@ -1,386 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Messages' ---- - -* [Phalcon\Messages\Exception](#messages-exception) -* [Phalcon\Messages\Message](#messages-message) -* [Phalcon\Messages\MessageInterface](#messages-messageinterface) -* [Phalcon\Messages\Messages](#messages-messages) - -

        Class Phalcon\Messages\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/messages/exception.zep) - -| Namespace | Phalcon\Messages | -| Extends | \Phalcon\Exception | - -Phalcon\Validation\Exception - -Exceptions thrown in Phalcon\Messages\* classes will use this class - - - -

        Class Phalcon\Messages\Message

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/messages/message.zep) - -| Namespace | Phalcon\Messages | -| Uses | JsonSerializable, Phalcon\Messages\MessageInterface | -| Implements | MessageInterface, JsonSerializable | - -Phalcon\Messages\Message - -Stores a message from various components - - -## Properties -```php -/** - * @var int - */ -protected code; - -/** - * @var string - */ -protected field; - -/** - * @var string - */ -protected message; - -/** - * @var string - */ -protected type; - -/** - * @var array - */ -protected metaData; - -``` - -## Methods -```php -public function __construct( string $message, mixed $field = string, string $type = string, int $code = int, array $metaData = [] ): void; -``` -Phalcon\Messages\Message constructor - - -```php -public function __toString(): string; -``` -Magic __toString method returns verbose message - - -```php -public function getCode(): int -``` - - -```php -public function getField(): string -``` - - -```php -public function getMessage(): string -``` - - -```php -public function getMetaData(): array -``` - - -```php -public function getType(): string -``` - - -```php -public function jsonSerialize(): array; -``` -Serializes the object for json_encode - - -```php -public function setCode( int $code ): MessageInterface; -``` -Sets code for the message - - -```php -public function setField( mixed $field ): MessageInterface; -``` -Sets field name related to message - - -```php -public function setMessage( string $message ): MessageInterface; -``` -Sets verbose message - - -```php -public function setMetaData( array $metaData ): MessageInterface; -``` -Sets message metadata - - -```php -public function setType( string $type ): MessageInterface; -``` -Sets message type - - - - -

        Interface Phalcon\Messages\MessageInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/messages/messageinterface.zep) - -| Namespace | Phalcon\Messages | -| Uses | Phalcon\Messages\Message | - -Phalcon\Messages\MessageInterface - -Interface for Phalcon\Messages\MessageInterface - - -## Methods -```php -public function __toString(): string; -``` -Magic __toString method returns verbose message - - -```php -public function getCode(); -``` -Returns the message code related to this message - -@return int - - -```php -public function getField(); -``` -Returns field name related to message - -@return string - - -```php -public function getMessage(): string; -``` -Returns verbose message - - -```php -public function getMetaData(): array; -``` -Returns message metadata - - -```php -public function getType(): string; -``` -Returns message type - - -```php -public function setCode( int $code ): MessageInterface; -``` -Sets code for the message - - -```php -public function setField( string $field ): MessageInterface; -``` -Sets field name related to message - - -```php -public function setMessage( string $message ): MessageInterface; -``` -Sets verbose message - - -```php -public function setMetaData( array $metaData ): MessageInterface; -``` -Sets message metadata - - -```php -public function setType( string $type ): MessageInterface; -``` -Sets message type - - - - -

        Class Phalcon\Messages\Messages

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/messages/messages.zep) - -| Namespace | Phalcon\Messages | -| Uses | ArrayAccess, Countable, Iterator, JsonSerializable, Phalcon\Messages\Message, Phalcon\Messages\Exception, Phalcon\Messages\MessageInterface | -| Implements | ArrayAccess, Countable, Iterator, JsonSerializable | - -Represents a collection of messages - - -## Properties -```php -/** - * @var int - */ -protected position = 0; - -/** - * @var array - */ -protected messages; - -``` - -## Methods -```php -public function __construct( array $messages = [] ): void; -``` -Phalcon\Messages\Messages constructor - - -```php -public function appendMessage( MessageInterface $message ); -``` -Appends a message to the collection - -```php -$messages->appendMessage( - new \Phalcon\Messages\Message("This is a message") -); -``` - - -```php -public function appendMessages( mixed $messages ); -``` -Appends an array of messages to the collection - -```php -$messages->appendMessages($messagesArray); -``` - -@param \Phalcon\Messages\MessageInterface[] messages - - -```php -public function count(): int; -``` -Returns the number of messages in the list - - -```php -public function current(): MessageInterface; -``` -Returns the current message in the iterator - - -```php -public function filter( string $fieldName ): array; -``` -Filters the message collection by field name - - -```php -public function jsonSerialize(): array; -``` -Returns serialised message objects as array for json_encode. Calls -jsonSerialize on each object if present - -```php -$data = $messages->jsonSerialize(); -echo json_encode($data); -``` - - -```php -public function key(): int; -``` -Returns the current position/key in the iterator - - -```php -public function next(): void; -``` -Moves the internal iteration pointer to the next position - - -```php -public function offsetExists( mixed $index ): bool; -``` -Checks if an index exists - -```php -var_dump( - isset($message["database"]) -); -``` - -@param int index - - -```php -public function offsetGet( mixed $index ): mixed; -``` -Gets an attribute a message using the array syntax - -```php -print_r( - $messages[0] -); -``` - - -```php -public function offsetSet( mixed $index, mixed $message ): void; -``` -Sets an attribute using the array-syntax - -```php -$messages[0] = new \Phalcon\Messages\Message("This is a message"); -``` - -@param \Phalcon\Messages\Message message - - -```php -public function offsetUnset( mixed $index ): void; -``` -Removes a message from the list - -```php -unset($message["database"]); -``` - - -```php -public function rewind(): void; -``` -Rewinds the internal iterator - - -```php -public function valid(): bool; -``` -Check if the current message in the iterator is valid - - diff --git a/nikos/api/Phalcon_Mvc.md b/nikos/api/Phalcon_Mvc.md deleted file mode 100644 index 896ff0f4561..00000000000 --- a/nikos/api/Phalcon_Mvc.md +++ /dev/null @@ -1,11906 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Mvc' ---- - -* [Phalcon\Mvc\Application](#mvc-application) -* [Phalcon\Mvc\Application\Exception](#mvc-application-exception) -* [Phalcon\Mvc\Controller](#mvc-controller) -* [Phalcon\Mvc\Controller\BindModelInterface](#mvc-controller-bindmodelinterface) -* [Phalcon\Mvc\ControllerInterface](#mvc-controllerinterface) -* [Phalcon\Mvc\Dispatcher](#mvc-dispatcher) -* [Phalcon\Mvc\Dispatcher\Exception](#mvc-dispatcher-exception) -* [Phalcon\Mvc\DispatcherInterface](#mvc-dispatcherinterface) -* [Phalcon\Mvc\EntityInterface](#mvc-entityinterface) -* [Phalcon\Mvc\Micro](#mvc-micro) -* [Phalcon\Mvc\Micro\Collection](#mvc-micro-collection) -* [Phalcon\Mvc\Micro\CollectionInterface](#mvc-micro-collectioninterface) -* [Phalcon\Mvc\Micro\Exception](#mvc-micro-exception) -* [Phalcon\Mvc\Micro\LazyLoader](#mvc-micro-lazyloader) -* [Phalcon\Mvc\Micro\MiddlewareInterface](#mvc-micro-middlewareinterface) -* [Phalcon\Mvc\Model](#mvc-model) -* [Phalcon\Mvc\Model\Behavior](#mvc-model-behavior) -* [Phalcon\Mvc\Model\Behavior\SoftDelete](#mvc-model-behavior-softdelete) -* [Phalcon\Mvc\Model\Behavior\Timestampable](#mvc-model-behavior-timestampable) -* [Phalcon\Mvc\Model\BehaviorInterface](#mvc-model-behaviorinterface) -* [Phalcon\Mvc\Model\Binder](#mvc-model-binder) -* [Phalcon\Mvc\Model\Binder\BindableInterface](#mvc-model-binder-bindableinterface) -* [Phalcon\Mvc\Model\BinderInterface](#mvc-model-binderinterface) -* [Phalcon\Mvc\Model\Criteria](#mvc-model-criteria) -* [Phalcon\Mvc\Model\CriteriaInterface](#mvc-model-criteriainterface) -* [Phalcon\Mvc\Model\Exception](#mvc-model-exception) -* [Phalcon\Mvc\Model\Manager](#mvc-model-manager) -* [Phalcon\Mvc\Model\ManagerInterface](#mvc-model-managerinterface) -* [Phalcon\Mvc\Model\MetaData](#mvc-model-metadata) -* [Phalcon\Mvc\Model\MetaData\Apcu](#mvc-model-metadata-apcu) -* [Phalcon\Mvc\Model\MetaData\Libmemcached](#mvc-model-metadata-libmemcached) -* [Phalcon\Mvc\Model\MetaData\Memory](#mvc-model-metadata-memory) -* [Phalcon\Mvc\Model\MetaData\Redis](#mvc-model-metadata-redis) -* [Phalcon\Mvc\Model\MetaData\Strategy\Annotations](#mvc-model-metadata-strategy-annotations) -* [Phalcon\Mvc\Model\MetaData\Strategy\Introspection](#mvc-model-metadata-strategy-introspection) -* [Phalcon\Mvc\Model\MetaData\StrategyInterface](#mvc-model-metadata-strategyinterface) -* [Phalcon\Mvc\Model\MetaData\Stream](#mvc-model-metadata-stream) -* [Phalcon\Mvc\Model\MetaDataInterface](#mvc-model-metadatainterface) -* [Phalcon\Mvc\Model\Query](#mvc-model-query) -* [Phalcon\Mvc\Model\Query\Builder](#mvc-model-query-builder) -* [Phalcon\Mvc\Model\Query\BuilderInterface](#mvc-model-query-builderinterface) -* [Phalcon\Mvc\Model\Query\Lang](#mvc-model-query-lang) -* [Phalcon\Mvc\Model\Query\Status](#mvc-model-query-status) -* [Phalcon\Mvc\Model\Query\StatusInterface](#mvc-model-query-statusinterface) -* [Phalcon\Mvc\Model\QueryInterface](#mvc-model-queryinterface) -* [Phalcon\Mvc\Model\Relation](#mvc-model-relation) -* [Phalcon\Mvc\Model\RelationInterface](#mvc-model-relationinterface) -* [Phalcon\Mvc\Model\ResultInterface](#mvc-model-resultinterface) -* [Phalcon\Mvc\Model\Resultset](#mvc-model-resultset) -* [Phalcon\Mvc\Model\Resultset\Complex](#mvc-model-resultset-complex) -* [Phalcon\Mvc\Model\Resultset\Simple](#mvc-model-resultset-simple) -* [Phalcon\Mvc\Model\ResultsetInterface](#mvc-model-resultsetinterface) -* [Phalcon\Mvc\Model\Row](#mvc-model-row) -* [Phalcon\Mvc\Model\Transaction](#mvc-model-transaction) -* [Phalcon\Mvc\Model\Transaction\Exception](#mvc-model-transaction-exception) -* [Phalcon\Mvc\Model\Transaction\Failed](#mvc-model-transaction-failed) -* [Phalcon\Mvc\Model\Transaction\Manager](#mvc-model-transaction-manager) -* [Phalcon\Mvc\Model\Transaction\ManagerInterface](#mvc-model-transaction-managerinterface) -* [Phalcon\Mvc\Model\TransactionInterface](#mvc-model-transactioninterface) -* [Phalcon\Mvc\Model\ValidationFailed](#mvc-model-validationfailed) -* [Phalcon\Mvc\ModelInterface](#mvc-modelinterface) -* [Phalcon\Mvc\ModuleDefinitionInterface](#mvc-moduledefinitioninterface) -* [Phalcon\Mvc\Router](#mvc-router) -* [Phalcon\Mvc\Router\Annotations](#mvc-router-annotations) -* [Phalcon\Mvc\Router\Exception](#mvc-router-exception) -* [Phalcon\Mvc\Router\Group](#mvc-router-group) -* [Phalcon\Mvc\Router\GroupInterface](#mvc-router-groupinterface) -* [Phalcon\Mvc\Router\Route](#mvc-router-route) -* [Phalcon\Mvc\Router\RouteInterface](#mvc-router-routeinterface) -* [Phalcon\Mvc\RouterInterface](#mvc-routerinterface) -* [Phalcon\Mvc\View](#mvc-view) -* [Phalcon\Mvc\View\Engine\AbstractEngine](#mvc-view-engine-abstractengine) -* [Phalcon\Mvc\View\Engine\EngineInterface](#mvc-view-engine-engineinterface) -* [Phalcon\Mvc\View\Engine\Php](#mvc-view-engine-php) -* [Phalcon\Mvc\View\Engine\Volt](#mvc-view-engine-volt) -* [Phalcon\Mvc\View\Engine\Volt\Compiler](#mvc-view-engine-volt-compiler) -* [Phalcon\Mvc\View\Engine\Volt\Exception](#mvc-view-engine-volt-exception) -* [Phalcon\Mvc\View\Exception](#mvc-view-exception) -* [Phalcon\Mvc\View\Simple](#mvc-view-simple) -* [Phalcon\Mvc\ViewBaseInterface](#mvc-viewbaseinterface) -* [Phalcon\Mvc\ViewInterface](#mvc-viewinterface) - -

        Class Phalcon\Mvc\Application

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/application.zep) - -| Namespace | Phalcon\Mvc | -| Uses | Closure, Phalcon\Application\AbstractApplication, Phalcon\Di\DiInterface, Phalcon\Mvc\ViewInterface, Phalcon\Mvc\RouterInterface, Phalcon\Http\ResponseInterface, Phalcon\Events\ManagerInterface, Phalcon\Mvc\DispatcherInterface, Phalcon\Mvc\Application\Exception, Phalcon\Mvc\Router\RouteInterface, Phalcon\Mvc\ModuleDefinitionInterface | -| Extends | AbstractApplication | - -Phalcon\Mvc\Application - -This component encapsulates all the complex operations behind instantiating -every component needed and integrating it with the rest to allow the MVC -pattern to operate as desired. - -```php -use Phalcon\Mvc\Application; - -class MyApp extends Application -{ -Register the services here to make them general or register -in the ModuleDefinition to make them module-specific -\/ - protected function registerServices() - { - - } - -This method registers all the modules in the application -\/ - public function main() - { - $this->registerModules( - [ - "frontend" => [ - "className" => "Multiple\\Frontend\\Module", - "path" => "../apps/frontend/Module.php", - ], - "backend" => [ - "className" => "Multiple\\Backend\\Module", - "path" => "../apps/backend/Module.php", - ], - ] - ); - } -} - -$application = new MyApp(); - -$application->main(); -``` - - -## Properties -```php -// -protected implicitView = true; - -// -protected sendCookies = true; - -// -protected sendHeaders = true; - -``` - -## Methods -```php -public function handle( string $uri ): ResponseInterface | bool; -``` -Handles a MVC request - - -```php -public function sendCookiesOnHandleRequest( bool $sendCookies ): Application; -``` -Enables or disables sending cookies by each request handling - - -```php -public function sendHeadersOnHandleRequest( bool $sendHeaders ): Application; -``` -Enables or disables sending headers by each request handling - - -```php -public function useImplicitView( bool $implicitView ): Application; -``` -By default. The view is implicitly buffering all the output -You can full disable the view component using this method - - - - -

        Class Phalcon\Mvc\Application\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/application/exception.zep) - -| Namespace | Phalcon\Mvc\Application | -| Extends | \Phalcon\Application\Exception | - -Phalcon\Mvc\Application\Exception - -Exceptions thrown in Phalcon\Mvc\Application class will use this class - - - -

        Abstract Class Phalcon\Mvc\Controller

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/controller.zep) - -| Namespace | Phalcon\Mvc | -| Uses | Phalcon\Di\Injectable | -| Extends | Injectable | -| Implements | ControllerInterface | - -Phalcon\Mvc\Controller - -Every application controller should extend this class that encapsulates all -the controller functionality - -The controllers provide the “flow” between models and views. Controllers are -responsible for processing the incoming requests from the web browser, -interrogating the models for data, and passing that data on to the views for -presentation. - -```php -dispatcher->forward( - [ - "controller" => "people", - "action" => "index", - ] - ); - } -} -``` - - -## Methods -```php -final public function __construct(); -``` -Phalcon\Mvc\Controller constructor - - - - -

        Interface Phalcon\Mvc\Controller\BindModelInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/controller/bindmodelinterface.zep) - -| Namespace | Phalcon\Mvc\Controller | - -Phalcon\Mvc\Controller\BindModelInterface - -Interface for Phalcon\Mvc\Controller - - - -

        Interface Phalcon\Mvc\ControllerInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/controllerinterface.zep) - -| Namespace | Phalcon\Mvc | - -Phalcon\Mvc\ControllerInterface - -Interface for controller handlers - - - -

        Class Phalcon\Mvc\Dispatcher

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/dispatcher.zep) - -| Namespace | Phalcon\Mvc | -| Uses | Phalcon\Mvc\DispatcherInterface, Phalcon\Mvc\Dispatcher\Exception, Phalcon\Events\ManagerInterface, Phalcon\Http\ResponseInterface, Phalcon\Mvc\ControllerInterface, Phalcon\Dispatcher\AbstractDispatcher | -| Extends | BaseDispatcher | -| Implements | DispatcherInterface | - -Dispatching is the process of taking the request object, extracting the -module name, controller name, action name, and optional parameters contained -in it, and then instantiating a controller and calling an action of that -controller. - -```php -$di = new \Phalcon\Di(); - -$dispatcher = new \Phalcon\Mvc\Dispatcher(); - -$dispatcher->setDI($di); - -$dispatcher->setControllerName("posts"); -$dispatcher->setActionName("index"); -$dispatcher->setParams([]); - -$controller = $dispatcher->dispatch(); -``` - - -## Properties -```php -// -protected defaultAction = index; - -// -protected defaultHandler = index; - -// -protected handlerSuffix = Controller; - -``` - -## Methods -```php -public function forward( mixed $forward ); -``` -Forwards the execution flow to another controller/action. - -```php -use Phalcon\Events\Event; -use Phalcon\Mvc\Dispatcher; -use App\Backend\Bootstrap as Backend; -use App\Frontend\Bootstrap as Frontend; - -// Registering modules -$modules = [ - "frontend" => [ - "className" => Frontend::class, - "path" => __DIR__ . "/app/Modules/Frontend/Bootstrap.php", - "metadata" => [ - "controllersNamespace" => "App\Frontend\Controllers", - ], - ], - "backend" => [ - "className" => Backend::class, - "path" => __DIR__ . "/app/Modules/Backend/Bootstrap.php", - "metadata" => [ - "controllersNamespace" => "App\Backend\Controllers", - ], - ], -]; - -$application->registerModules($modules); - -// Setting beforeForward listener -$eventsManager = $di->getShared("eventsManager"); - -$eventsManager->attach( - "dispatch:beforeForward", - function(Event $event, Dispatcher $dispatcher, array $forward) use ($modules) { - $metadata = $modules[$forward["module"]]["metadata"]; - - $dispatcher->setModuleName( - $forward["module"] - ); - - $dispatcher->setNamespaceName( - $metadata["controllersNamespace"] - ); - } -); - -// Forward -$this->dispatcher->forward( - [ - "module" => "backend", - "controller" => "posts", - "action" => "index", - ] -); -``` - -@param array forward - - -```php -public function getActiveController(): ControllerInterface; -``` -Returns the active controller in the dispatcher - - -```php -public function getControllerClass(): string; -``` -Possible controller class name that will be located to dispatch the -request - - -```php -public function getControllerName(): string; -``` -Gets last dispatched controller name - - -```php -public function getLastController(): ControllerInterface; -``` -Returns the latest dispatched controller - - -```php -public function getPreviousActionName(): string; -``` -Gets previous dispatched action name - - -```php -public function getPreviousControllerName(): string; -``` -Gets previous dispatched controller name - - -```php -public function getPreviousNamespaceName(): string; -``` -Gets previous dispatched namespace name - - -```php -public function setControllerName( string $controllerName ); -``` -Sets the controller name to be dispatched - - -```php -public function setControllerSuffix( string $controllerSuffix ); -``` -Sets the default controller suffix - - -```php -public function setDefaultController( string $controllerName ); -``` -Sets the default controller name - - -```php -protected function handleException( \Exception $exception ); -``` -Handles a user exception - - -```php -protected function throwDispatchException( string $message, int $exceptionCode = int ); -``` -Throws an internal exception - - - - -

        Class Phalcon\Mvc\Dispatcher\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/dispatcher/exception.zep) - -| Namespace | Phalcon\Mvc\Dispatcher | -| Extends | \Phalcon\Dispatcher\Exception | - -Phalcon\Mvc\Dispatcher\Exception - -Exceptions thrown in Phalcon\Mvc\Dispatcher will use this class - - - -

        Interface Phalcon\Mvc\DispatcherInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/dispatcherinterface.zep) - -| Namespace | Phalcon\Mvc | -| Uses | Phalcon\Mvc\ControllerInterface, Phalcon\Dispatcher\DispatcherInterface | -| Extends | DispatcherInterfaceBase | - -Phalcon\Mvc\DispatcherInterface - -Interface for Phalcon\Mvc\Dispatcher - - -## Methods -```php -public function getActiveController(): ControllerInterface; -``` -Returns the active controller in the dispatcher - - -```php -public function getControllerName(): string; -``` -Gets last dispatched controller name - - -```php -public function getLastController(): ControllerInterface; -``` -Returns the latest dispatched controller - - -```php -public function setControllerName( string $controllerName ); -``` -Sets the controller name to be dispatched - - -```php -public function setControllerSuffix( string $controllerSuffix ); -``` -Sets the default controller suffix - - -```php -public function setDefaultController( string $controllerName ); -``` -Sets the default controller name - - - - -

        Interface Phalcon\Mvc\EntityInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/entityinterface.zep) - -| Namespace | Phalcon\Mvc | - -Phalcon\Mvc\EntityInterface - -Interface for Phalcon\Mvc\Collection and Phalcon\Mvc\Model - - -## Methods -```php -public function readAttribute( string $attribute ): mixed | null; -``` -Reads an attribute value by its name - - -```php -public function writeAttribute( string $attribute, mixed $value ); -``` -Writes an attribute value by its name - - - - -

        Class Phalcon\Mvc\Micro

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/micro.zep) - -| Namespace | Phalcon\Mvc | -| Uses | ArrayAccess, Closure, Phalcon\Di\DiInterface, Phalcon\Di\Injectable, Phalcon\Mvc\Controller, Phalcon\Di\FactoryDefault, Phalcon\Mvc\Micro\Exception, Phalcon\Di\ServiceInterface, Phalcon\Mvc\Micro\Collection, Phalcon\Mvc\Micro\LazyLoader, Phalcon\Http\ResponseInterface, Phalcon\Mvc\Model\BinderInterface, Phalcon\Mvc\Router\RouteInterface, Phalcon\Mvc\Micro\MiddlewareInterface, Phalcon\Mvc\Micro\CollectionInterface, Throwable | -| Extends | Injectable | -| Implements | ArrayAccess | - -Phalcon\Mvc\Micro - -With Phalcon you can create "Micro-Framework like" applications. By doing -this, you only need to write a minimal amount of code to create a PHP -application. Micro applications are suitable to small applications, APIs and -prototypes in a practical way. - -```php -$app = new \Phalcon\Mvc\Micro(); - -$app->get( - "/say/welcome/{name}", - function ($name) { - echo "

        Welcome $name!

        "; - } -); - -$app->handle("/say/welcome/Phalcon"); -``` - - -## Properties -```php -// -protected activeHandler; - -// -protected afterBindingHandlers; - -// -protected afterHandlers; - -// -protected beforeHandlers; - -// -protected container; - -// -protected errorHandler; - -// -protected finishHandlers; - -// -protected handlers; - -// -protected modelBinder; - -// -protected notFoundHandler; - -// -protected responseHandler; - -// -protected returnedValue; - -// -protected router; - -// -protected stopped; - -``` - -## Methods -```php -public function __construct( DiInterface $container = null ); -``` -Phalcon\Mvc\Micro constructor - - -```php -public function after( mixed $handler ): Micro; -``` -Appends an 'after' middleware to be called after execute the route - -@param callable handler - - -```php -public function afterBinding( mixed $handler ): Micro; -``` -Appends a afterBinding middleware to be called after model binding - -@param callable handler - - -```php -public function before( mixed $handler ): Micro; -``` -Appends a before middleware to be called before execute the route - -@param callable handler - - -```php -public function delete( string $routePattern, mixed $handler ): RouteInterface; -``` -Maps a route to a handler that only matches if the HTTP method is DELETE - -@param callable handler - - -```php -public function error( mixed $handler ): Micro; -``` -Sets a handler that will be called when an exception is thrown handling -the route - -@param callable handler - - -```php -public function finish( mixed $handler ): Micro; -``` -Appends a 'finish' middleware to be called when the request is finished - -@param callable handler - - -```php -public function get( string $routePattern, mixed $handler ): RouteInterface; -``` -Maps a route to a handler that only matches if the HTTP method is GET - -@param callable handler - - -```php -public function getActiveHandler(); -``` -Return the handler that will be called for the matched route - -@return callable - - -```php -public function getBoundModels(): array; -``` -Returns bound models from binder instance - - -```php -public function getHandlers(): array; -``` -Returns the internal handlers attached to the application - - -```php -public function getModelBinder(): BinderInterface | null; -``` -Gets model binder - - -```php -public function getReturnedValue(); -``` -Returns the value returned by the executed handler - -@return mixed - - -```php -public function getRouter(): RouterInterface; -``` -Returns the internal router used by the application - - -```php -public function getService( string $serviceName ); -``` -Obtains a service from the DI - -@return object - - -```php -public function getSharedService( string $serviceName ); -``` -Obtains a shared service from the DI - -@return mixed - - -```php -public function handle( string $uri ); -``` -Handle the whole request - -@param string uri -@return mixed - - -```php -public function hasService( string $serviceName ): bool; -``` -Checks if a service is registered in the DI - - -```php -public function head( string $routePattern, mixed $handler ): RouteInterface; -``` -Maps a route to a handler that only matches if the HTTP method is HEAD - -@param callable handler - - -```php -public function map( string $routePattern, mixed $handler ): RouteInterface; -``` -Maps a route to a handler without any HTTP method constraint - -@param callable handler - - -```php -public function mount( CollectionInterface $collection ): Micro; -``` -Mounts a collection of handlers - - -```php -public function notFound( mixed $handler ): Micro; -``` -Sets a handler that will be called when the router doesn't match any of -the defined routes - -@param callable handler - - -```php -public function offsetExists( mixed $alias ): bool; -``` -Check if a service is registered in the internal services container using -the array syntax - - -```php -public function offsetGet( mixed $alias ): mixed; -``` -Allows to obtain a shared service in the internal services container -using the array syntax - -```php -var_dump( - $app["request"] -); -``` - - -```php -public function offsetSet( mixed $alias, mixed $definition ): void; -``` -Allows to register a shared service in the internal services container -using the array syntax - -```php - $app["request"] = new \Phalcon\Http\Request(); -``` - - -```php -public function offsetUnset( mixed $alias ): void; -``` -Removes a service from the internal services container using the array -syntax - - -```php -public function options( string $routePattern, mixed $handler ): RouteInterface; -``` -Maps a route to a handler that only matches if the HTTP method is OPTIONS - -@param callable handler - - -```php -public function patch( string $routePattern, mixed $handler ): RouteInterface; -``` -Maps a route to a handler that only matches if the HTTP method is PATCH - -@param callable $handler - - -```php -public function post( string $routePattern, mixed $handler ): RouteInterface; -``` -Maps a route to a handler that only matches if the HTTP method is POST - -@param callable handler - - -```php -public function put( string $routePattern, mixed $handler ): RouteInterface; -``` -Maps a route to a handler that only matches if the HTTP method is PUT - -@param callable $handler - - -```php -public function setActiveHandler( mixed $activeHandler ); -``` -Sets externally the handler that must be called by the matched route - -@param callable activeHandler - - -```php -public function setDI( DiInterface $container ): void; -``` -Sets the DependencyInjector container - - -```php -public function setModelBinder( BinderInterface $modelBinder, mixed $cache = null ): Micro; -``` -Sets model binder - -```php -$micro = new Micro($di); - -$micro->setModelBinder( - new Binder(), - 'cache' -); -``` - - -```php -public function setResponseHandler( mixed $handler ): Micro; -``` -Appends a custom 'reponse' handler to be called insted of the default -response handler - -@param callable handler - - -```php -public function setService( string $serviceName, mixed $definition, bool $shared = bool ): ServiceInterface; -``` -Sets a service from the DI - - -```php -public function stop(); -``` -Stops the middleware execution avoiding than other middlewares be -executed - - - - -

        Class Phalcon\Mvc\Micro\Collection

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/micro/collection.zep) - -| Namespace | Phalcon\Mvc\Micro | -| Implements | CollectionInterface | - -Phalcon\Mvc\Micro\Collection - -Groups Micro-Mvc handlers as controllers - -```php -$app = new \Phalcon\Mvc\Micro(); - -$collection = new Collection(); - -$collection->setHandler( - new PostsController() -); - -$collection->get("/posts/edit/{id}", "edit"); - -$app->mount($collection); -``` - - -## Properties -```php -// -protected handler; - -// -protected handlers; - -// -protected lazy; - -// -protected prefix; - -``` - -## Methods -```php -public function delete( string $routePattern, mixed $handler, string $name = null ): CollectionInterface; -``` -Maps a route to a handler that only matches if the HTTP method is DELETE. - -@param callable|string handler - - -```php -public function get( string $routePattern, mixed $handler, string $name = null ): CollectionInterface; -``` -Maps a route to a handler that only matches if the HTTP method is GET. - -@param callable|string handler - - -```php -public function getHandler(): mixed; -``` -Returns the main handler - - -```php -public function getHandlers(): array; -``` -Returns the registered handlers - - -```php -public function getPrefix(): string; -``` -Returns the collection prefix if any - - -```php -public function head( string $routePattern, mixed $handler, string $name = null ): CollectionInterface; -``` -Maps a route to a handler that only matches if the HTTP method is HEAD. - -@param callable|string handler - - -```php -public function isLazy(): bool; -``` -Returns if the main handler must be lazy loaded - - -```php -public function map( string $routePattern, mixed $handler, string $name = null ): CollectionInterface; -``` -Maps a route to a handler. - -@param callable|string handler - - -```php -public function mapVia( string $routePattern, mixed $handler, mixed $method, string $name = null ): CollectionInterface; -``` -Maps a route to a handler via methods. - -```php -$collection->mapVia( - "/test", - "indexAction", - ["POST", "GET"], - "test" -); -``` - -@param callable handler -@param string|array method - - -```php -public function options( string $routePattern, mixed $handler, string $name = null ): CollectionInterface; -``` -Maps a route to a handler that only matches if the HTTP method is -OPTIONS. - -@param callable|string handler - - -```php -public function patch( string $routePattern, mixed $handler, string $name = null ): CollectionInterface; -``` -Maps a route to a handler that only matches if the HTTP method is PATCH. - -@param callable|string handler - - -```php -public function post( string $routePattern, mixed $handler, string $name = null ): CollectionInterface; -``` -Maps a route to a handler that only matches if the HTTP method is POST. - -@param callable|string handler - - -```php -public function put( string $routePattern, mixed $handler, string $name = null ): CollectionInterface; -``` -Maps a route to a handler that only matches if the HTTP method is PUT. - -@param callable|string handler - - -```php -public function setHandler( mixed $handler, bool $lazy = bool ): CollectionInterface; -``` -Sets the main handler. - -@param callable|string handler - - -```php -public function setLazy( bool $lazy ): CollectionInterface; -``` -Sets if the main handler must be lazy loaded - - -```php -public function setPrefix( string $prefix ): CollectionInterface; -``` -Sets a prefix for all routes added to the collection - - -```php -protected function addMap( mixed $method, string $routePattern, mixed $handler, string $name ); -``` -Internal function to add a handler to the group. - -@param string|array method -@param callable|string handler - - - - -

        Interface Phalcon\Mvc\Micro\CollectionInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/micro/collectioninterface.zep) - -| Namespace | Phalcon\Mvc\Micro | - -Phalcon\Mvc\Micro\CollectionInterface - -Interface for Phalcon\Mvc\Micro\Collection - - -## Methods -```php -public function delete( string $routePattern, callable $handler, string $name = null ): CollectionInterface; -``` -Maps a route to a handler that only matches if the HTTP method is DELETE - - -```php -public function get( string $routePattern, callable $handler, string $name = null ): CollectionInterface; -``` -Maps a route to a handler that only matches if the HTTP method is GET - - -```php -public function getHandler(): mixed; -``` -Returns the main handler - - -```php -public function getHandlers(): array; -``` -Returns the registered handlers - - -```php -public function getPrefix(): string; -``` -Returns the collection prefix if any - - -```php -public function head( string $routePattern, callable $handler, string $name = null ): CollectionInterface; -``` -Maps a route to a handler that only matches if the HTTP method is HEAD - - -```php -public function isLazy(): bool; -``` -Returns if the main handler must be lazy loaded - - -```php -public function map( string $routePattern, callable $handler, string $name = null ): CollectionInterface; -``` -Maps a route to a handler - - -```php -public function options( string $routePattern, callable $handler, string $name = null ): CollectionInterface; -``` -Maps a route to a handler that only matches if the HTTP method is OPTIONS - - -```php -public function patch( string $routePattern, callable $handler, string $name = null ): CollectionInterface; -``` -Maps a route to a handler that only matches if the HTTP method is PATCH - - -```php -public function post( string $routePattern, callable $handler, string $name = null ): CollectionInterface; -``` -Maps a route to a handler that only matches if the HTTP method is POST - - -```php -public function put( string $routePattern, callable $handler, string $name = null ): CollectionInterface; -``` -Maps a route to a handler that only matches if the HTTP method is PUT - - -```php -public function setHandler( mixed $handler, bool $lazy = bool ): CollectionInterface; -``` -Sets the main handler - - -```php -public function setLazy( bool $lazy ): CollectionInterface; -``` -Sets if the main handler must be lazy loaded - - -```php -public function setPrefix( string $prefix ): CollectionInterface; -``` -Sets a prefix for all routes added to the collection - - - - -

        Class Phalcon\Mvc\Micro\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/micro/exception.zep) - -| Namespace | Phalcon\Mvc\Micro | -| Extends | \Phalcon\Exception | - -Exceptions thrown in Phalcon\Mvc\Micro will use this class - - - -

        Class Phalcon\Mvc\Micro\LazyLoader

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/micro/lazyloader.zep) - -| Namespace | Phalcon\Mvc\Micro | -| Uses | Phalcon\Mvc\Model\BinderInterface | - -Phalcon\Mvc\Micro\LazyLoader - -Lazy-Load of handlers for Mvc\Micro using auto-loading - - -## Properties -```php -// -protected handler; - -// -protected definition; - -``` - -## Methods -```php -public function __construct( string $definition ); -``` -Phalcon\Mvc\Micro\LazyLoader constructor - - -```php -public function callMethod( string $method, mixed $arguments, BinderInterface $modelBinder = null ); -``` -Calling __call method - -@param array arguments -@return mixed - - -```php -public function getDefinition() -``` - - - - -

        Interface Phalcon\Mvc\Micro\MiddlewareInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/micro/middlewareinterface.zep) - -| Namespace | Phalcon\Mvc\Micro | -| Uses | Phalcon\Mvc\Micro | - -Allows to implement Phalcon\Mvc\Micro middleware in classes - - -## Methods -```php -public function call( Micro $application ); -``` -Calls the middleware - - - - -

        Abstract Class Phalcon\Mvc\Model

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model.zep) - -| Namespace | Phalcon\Mvc | -| Uses | JsonSerializable, Phalcon\Db\Adapter\AdapterInterface, Phalcon\Db\Column, Phalcon\Db\DialectInterface, Phalcon\Db\Enum, Phalcon\Db\RawValue, Phalcon\Di\AbstractInjectionAware, Phalcon\Di, Phalcon\Di\DiInterface, Phalcon\Events\ManagerInterface, Phalcon\Helper\Arr, Phalcon\Messages\Message, Phalcon\Messages\MessageInterface, Phalcon\Mvc\Model\BehaviorInterface, Phalcon\Mvc\Model\Criteria, Phalcon\Mvc\Model\CriteriaInterface, Phalcon\Mvc\Model\Exception, Phalcon\Mvc\Model\ManagerInterface, Phalcon\Mvc\Model\MetaDataInterface, Phalcon\Mvc\Model\Query, Phalcon\Mvc\Model\Query\Builder, Phalcon\Mvc\Model\Query\BuilderInterface, Phalcon\Mvc\Model\QueryInterface, Phalcon\Mvc\Model\ResultInterface, Phalcon\Mvc\Model\Resultset, Phalcon\Mvc\Model\ResultsetInterface, Phalcon\Mvc\Model\Relation, Phalcon\Mvc\Model\RelationInterface, Phalcon\Mvc\Model\TransactionInterface, Phalcon\Mvc\Model\ValidationFailed, Phalcon\Mvc\ModelInterface, Phalcon\Validation\ValidationInterface, Phalcon\Events\ManagerInterface, Serializable | -| Extends | AbstractInjectionAware | -| Implements | EntityInterface, ModelInterface, ResultInterface, Serializable, JsonSerializable | - -Phalcon\Mvc\Model - -Phalcon\Mvc\Model connects business objects and database tables to create a -persistable domain model where logic and data are presented in one wrapping. -It‘s an implementation of the object-relational mapping (ORM). - -A model represents the information (data) of the application and the rules to -manipulate that data. Models are primarily used for managing the rules of -interaction with a corresponding database table. In most cases, each table in -your database will correspond to one model in your application. The bulk of -your application's business logic will be concentrated in the models. - -Phalcon\Mvc\Model is the first ORM written in Zephir/C languages for PHP, -giving to developers high performance when interacting with databases while -is also easy to use. - -```php -$robot = new Robots(); - -$robot->type = "mechanical"; -$robot->name = "Astro Boy"; -$robot->year = 1952; - -if ($robot->save() === false) { - echo "Umh, We can store robots: "; - - $messages = $robot->getMessages(); - - foreach ($messages as $message) { - echo $message; - } -} else { - echo "Great, a new robot was saved successfully!"; -} -``` - - -## Constants -```php -const DIRTY_STATE_DETACHED = 2; -const DIRTY_STATE_PERSISTENT = 0; -const DIRTY_STATE_TRANSIENT = 1; -const OP_CREATE = 1; -const OP_DELETE = 3; -const OP_NONE = 0; -const OP_UPDATE = 2; -const TRANSACTION_INDEX = transaction; -``` - -## Properties -```php -// -protected dirtyState = 1; - -// -protected dirtyRelated; - -// -protected errorMessages; - -// -protected modelsManager; - -// -protected modelsMetaData; - -// -protected related; - -// -protected operationMade = 0; - -// -protected oldSnapshot; - -// -protected skipped; - -// -protected snapshot; - -// -protected transaction; - -// -protected uniqueKey; - -// -protected uniqueParams; - -// -protected uniqueTypes; - -``` - -## Methods -```php -public function __call( string $method, array $arguments ); -``` -Handles method calls when a method is not implemented - -@return mixed - - -```php -public static function __callStatic( string $method, array $arguments ); -``` -Handles method calls when a static method is not implemented - -@return mixed - - -```php -final public function __construct( mixed $data = null, DiInterface $container = null, ManagerInterface $modelsManager = null ): void; -``` -Phalcon\Mvc\Model constructor - - -```php -public function __get( string $property ); -``` -Magic method to get related records using the relation alias as a -property - -@return mixed - - -```php -public function __isset( string $property ): bool; -``` -Magic method to check if a property is a valid relation - - -```php -public function __set( string $property, mixed $value ); -``` -Magic method to assign values to the the model - -@param mixed value - - -```php -public function addBehavior( BehaviorInterface $behavior ): void; -``` -Setups a behavior in a model - -```php -use Phalcon\Mvc\Model; -use Phalcon\Mvc\Model\Behavior\Timestampable; - -class Robots extends Model -{ - public function initialize() - { - $this->addBehavior( - new Timestampable( - [ - "onCreate" => [ - "field" => "created_at", - "format" => "Y-m-d", - ], - ] - ) - ); - } -} -``` - - -```php -public function appendMessage( MessageInterface $message ): ModelInterface; -``` -Appends a customized message on the validation process - -```php -use Phalcon\Mvc\Model; -use Phalcon\Messages\Message as Message; - -class Robots extends Model -{ - public function beforeSave() - { - if ($this->name === "Peter") { - $message = new Message( - "Sorry, but a robot cannot be named Peter" - ); - - $this->appendMessage($message); - } - } -} -``` - - -```php -public function assign( array $data, mixed $dataColumnMap = null, mixed $whiteList = null ): ModelInterface; -``` -Assigns values to a model from an array - -```php -$robot->assign( - [ - "type" => "mechanical", - "name" => "Astro Boy", - "year" => 1952, - ] -); - -// Assign by db row, column map needed -$robot->assign( - $dbRow, - [ - "db_type" => "type", - "db_name" => "name", - "db_year" => "year", - ] -); - -// Allow assign only name and year -$robot->assign( - $_POST, - null, - [ - "name", - "year", - ] -); - -// By default assign method will use setters if exist, you can disable it by using ini_set to directly use properties - -ini_set("phalcon.orm.disable_assign_setters", true); - -$robot->assign( - $_POST, - null, - [ - "name", - "year", - ] -); -``` - -@param array dataColumnMap array to transform keys of data to another -@param array whiteList - - -```php -public function create(): bool; -``` -Inserts a model instance. If the instance already exists in the -persistence it will throw an exception -Returning true on success or false otherwise. - -```php -// Creating a new robot -$robot = new Robots(); - -$robot->type = "mechanical"; -$robot->name = "Astro Boy"; -$robot->year = 1952; - -$robot->create(); - -// Passing an array to create -$robot = new Robots(); - -$robot->assign( - [ - "type" => "mechanical", - "name" => "Astro Boy", - "year" => 1952, - ] -); - -$robot->create(); -``` - - -```php -public function delete(): bool; -``` -Deletes a model instance. Returning true on success or false otherwise. - -```php -$robot = Robots::findFirst("id=100"); - -$robot->delete(); - -$robots = Robots::find("type = 'mechanical'"); - -foreach ($robots as $robot) { - $robot->delete(); -} -``` - - -```php -public function dump(): array; -``` -Returns a simple representation of the object that can be used with -`var_dump()` - -```php -var_dump( - $robot->dump() -); -``` - - -```php -public function fireEvent( string $eventName ): bool; -``` -Fires an event, implicitly calls behaviors and listeners in the events -manager are notified - - -```php -public function fireEventCancel( string $eventName ): bool; -``` -Fires an event, implicitly calls behaviors and listeners in the events -manager are notified -This method stops if one of the callbacks/listeners returns bool false - - -```php -public function getChangedFields(): array; -``` -Returns a list of changed values. - -```php -$robots = Robots::findFirst(); -print_r($robots->getChangedFields()); // [] - -$robots->deleted = 'Y'; - -$robots->getChangedFields(); -print_r($robots->getChangedFields()); // ["deleted"] -``` - - -```php -public function getDirtyState(): int; -``` -Returns one of the DIRTY_STATE_* constants telling if the record exists -in the database or not - - -```php -public function getEventsManager(): EventsManagerInterface; -``` -Returns the custom events manager - - -```php -public function getMessages( mixed $filter = null ): MessageInterface[]; -``` -Returns array of validation messages - -```php -$robot = new Robots(); - -$robot->type = "mechanical"; -$robot->name = "Astro Boy"; -$robot->year = 1952; - -if ($robot->save() === false) { - echo "Umh, We can't store robots right now "; - - $messages = $robot->getMessages(); - - foreach ($messages as $message) { - echo $message; - } -} else { - echo "Great, a new robot was saved successfully!"; -} -``` - - -```php -public function getModelsManager(): ManagerInterface; -``` -Returns the models manager related to the entity instance - - -```php -public function getModelsMetaData(): MetaDataInterface; -``` -{@inheritdoc} - - -```php -public function getOldSnapshotData(): array; -``` -Returns the internal old snapshot data - - -```php -public function getOperationMade(): int; -``` -Returns the type of the latest operation performed by the ORM -Returns one of the OP_* class constants - - -```php -final public function getReadConnection(): AdapterInterface; -``` -Gets the connection used to read data for the model - - -```php -final public function getReadConnectionService(): string; -``` -Returns the DependencyInjection connection service name used to read data -related the model - - -```php -public function getRelated( string $alias, mixed $arguments = null ); -``` -Returns related records based on defined relations - -@param array arguments -@return \Phalcon\Mvc\Model\Resultset\Simple|Phalcon\Mvc\Model\Resultset\Simple|false - - -```php -final public function getSchema(): string; -``` -Returns schema name where the mapped table is located - - -```php -public function getSnapshotData(): array; -``` -Returns the internal snapshot data - - -```php -final public function getSource(): string; -``` -Returns the table name mapped in the model - - -```php -public function getTransaction() -``` - - -```php -public function getUpdatedFields(): array; -``` -Returns a list of updated values. - -```php -$robots = Robots::findFirst(); -print_r($robots->getChangedFields()); // [] - -$robots->deleted = 'Y'; - -$robots->getChangedFields(); -print_r($robots->getChangedFields()); // ["deleted"] -$robots->save(); -print_r($robots->getChangedFields()); // [] -print_r($robots->getUpdatedFields()); // ["deleted"] -``` - - -```php -final public function getWriteConnection(): AdapterInterface; -``` -Gets the connection used to write data to the model - - -```php -final public function getWriteConnectionService(): string; -``` -Returns the DependencyInjection connection service name used to write -data related to the model - - -```php -public function hasChanged( mixed $fieldName = null, bool $allFields = bool ): bool; -``` -Check if a specific attribute has changed -This only works if the model is keeping data snapshots - -```php -$robot = new Robots(); - -$robot->type = "mechanical"; -$robot->name = "Astro Boy"; -$robot->year = 1952; - -$robot->create(); - -$robot->type = "hydraulic"; - -$hasChanged = $robot->hasChanged("type"); // returns true -$hasChanged = $robot->hasChanged(["type", "name"]); // returns true -$hasChanged = $robot->hasChanged(["type", "name"], true); // returns false -``` - -@param string|array fieldName -@param boolean allFields - - -```php -public function hasSnapshotData(): bool; -``` -Checks if the object has internal snapshot data - - -```php -public function hasUpdated( mixed $fieldName = null, bool $allFields = bool ): bool; -``` -Check if a specific attribute was updated -This only works if the model is keeping data snapshots - -@param string|array fieldName - - -```php -public function isRelationshipLoaded( string $relationshipAlias ): bool; -``` -Checks if saved related records have already been loaded. - -Only returns true if the records were previously fetched -through the model without any additional parameters. - -```php -$robot = Robots::findFirst(); -var_dump($robot->isRelationshipLoaded('robotsParts')); // false - -$robotsParts = $robot->getRobotsParts(['id > 0']); -var_dump($robot->isRelationshipLoaded('robotsParts')); // false - -$robotsParts = $robot->getRobotsParts(); // or $robot->robotsParts -var_dump($robot->isRelationshipLoaded('robotsParts')); // true - -$robot->robotsParts = [new RobotsParts()]; -var_dump($robot->isRelationshipLoaded('robotsParts')); // false -``` - - -```php -public function jsonSerialize(): array; -``` - Serializes the object for json_encode - - ```php - echo json_encode($robot); - ``` - - -```php -public function readAttribute( string $attribute ): mixed | null; -``` -Reads an attribute value by its name - -```php -echo $robot->readAttribute("name"); -``` - - -```php -public function refresh(): ModelInterface; -``` -Refreshes the model attributes re-querying the record from the database - - -```php -public function save(): bool; -``` -Inserts or updates a model instance. Returning true on success or false -otherwise. - -```php -// Creating a new robot -$robot = new Robots(); - -$robot->type = "mechanical"; -$robot->name = "Astro Boy"; -$robot->year = 1952; - -$robot->save(); - -// Updating a robot name -$robot = Robots::findFirst("id = 100"); - -$robot->name = "Biomass"; - -$robot->save(); -``` - - -```php -public function serialize(): string; -``` -Serializes the object ignoring connections, services, related objects or -static properties - - -```php -final public function setConnectionService( string $connectionService ): ModelInterface; -``` -Sets the DependencyInjection connection service name - - -```php -public function setDirtyState( int $dirtyState ): ModelInterface | bool; -``` -Sets the dirty state of the object using one of the DIRTY_STATE_* constants - - -```php -public function setEventsManager( EventsManagerInterface $eventsManager ); -``` -Sets a custom events manager - - -```php -public function setOldSnapshotData( array $data, mixed $columnMap = null ); -``` -Sets the record's old snapshot data. -This method is used internally to set old snapshot data when the model -was set up to keep snapshot data - -@param array data -@param array columnMap - - -```php -final public function setReadConnectionService( string $connectionService ): ModelInterface; -``` -Sets the DependencyInjection connection service name used to read data - - -```php -public function setSnapshotData( array $data, mixed $columnMap = null ): void; -``` -Sets the record's snapshot data. -This method is used internally to set snapshot data when the model was -set up to keep snapshot data - -@param array columnMap - - -```php -public function setTransaction( TransactionInterface $transaction ): ModelInterface; -``` -Sets a transaction related to the Model instance - -```php -use Phalcon\Mvc\Model\Transaction\Manager as TxManager; -use Phalcon\Mvc\Model\Transaction\Failed as TxFailed; - -try { - $txManager = new TxManager(); - - $transaction = $txManager->get(); - - $robot = new Robots(); - - $robot->setTransaction($transaction); - - $robot->name = "WALL·E"; - $robot->created_at = date("Y-m-d"); - - if ($robot->save() === false) { - $transaction->rollback("Can't save robot"); - } - - $robotPart = new RobotParts(); - - $robotPart->setTransaction($transaction); - - $robotPart->type = "head"; - - if ($robotPart->save() === false) { - $transaction->rollback("Robot part cannot be saved"); - } - - $transaction->commit(); -} catch (TxFailed $e) { - echo "Failed, reason: ", $e->getMessage(); -} -``` - - -```php -final public function setWriteConnectionService( string $connectionService ): ModelInterface; -``` -Sets the DependencyInjection connection service name used to write data - - -```php -public function skipOperation( bool $skip ): void; -``` -Skips the current operation forcing a success state - - -```php -public function toArray( mixed $columns = null ): array; -``` -Returns the instance as an array representation - -```php -print_r( - $robot->toArray() -); -``` - -@param array $columns - - -```php -public function unserialize( mixed $data ); -``` -Unserializes the object from a serialized string - - -```php -public function update(): bool; -``` -Updates a model instance. If the instance doesn't exist in the -persistence it will throw an exception. Returning true on success or -false otherwise. - -```php -// Updating a robot name -$robot = Robots::findFirst("id = 100"); - -$robot->name = "Biomass"; - -$robot->update(); -``` - - -```php -public function validationHasFailed(): bool; -``` -Check whether validation process has generated any messages - -```php -use Phalcon\Mvc\Model; -use Phalcon\Validation; -use Phalcon\Validation\Validator\ExclusionIn; - -class Subscriptors extends Model -{ - public function validation() - { - $validator = new Validation(); - - $validator->validate( - "status", - new ExclusionIn( - [ - "domain" => [ - "A", - "I", - ], - ] - ) - ); - - return $this->validate($validator); - } -} -``` - - -```php -public function writeAttribute( string $attribute, mixed $value ): void; -``` -Writes an attribute value by its name - -```php -$robot->writeAttribute("name", "Rosey"); -``` - - -```php -protected function _cancelOperation(); -``` -Cancel the current operation - - -```php -final protected function _checkForeignKeysRestrict(): bool; -``` -Reads "belongs to" relations and check the virtual foreign keys when -inserting or updating records to verify that inserted/updated values are -present in the related entity - - -```php -final protected function _checkForeignKeysReverseCascade(): bool; -``` -Reads both "hasMany" and "hasOne" relations and checks the virtual -foreign keys (cascade) when deleting records - - -```php -final protected function _checkForeignKeysReverseRestrict(): bool; -``` -Reads both "hasMany" and "hasOne" relations and checks the virtual -foreign keys (restrict) when deleting records - - -```php -protected function _doLowInsert( MetaDataInterface $metaData, AdapterInterface $connection, mixed $table, mixed $identityField ): bool; -``` -Sends a pre-build INSERT SQL statement to the relational database system - -@param string|array table -@param bool|string identityField - - -```php -protected function _doLowUpdate( MetaDataInterface $metaData, AdapterInterface $connection, mixed $table ): bool; -``` -Sends a pre-build UPDATE SQL statement to the relational database system - -@param string|array table - - -```php -protected function _exists( MetaDataInterface $metaData, AdapterInterface $connection ): bool; -``` -Checks whether the current record already exists - - -```php -protected function _getRelatedRecords( string $modelName, string $method, mixed $arguments ); -``` -Returns related records defined relations depending on the method name - -@param array arguments -@return mixed - - -```php -final protected function _possibleSetter( string $property, mixed $value ): bool; -``` -Check for, and attempt to use, possible setter. - - -```php -protected function _postSave( bool $success, bool $exists ): bool; -``` -Executes internal events after save a record - - -```php -protected function _postSaveRelatedRecords( AdapterInterface $connection, mixed $related ): bool; -``` -Save the related records assigned in the has-one/has-many relations - -@param Phalcon\Mvc\ModelInterface[] related - - -```php -protected function _preSave( MetaDataInterface $metaData, bool $exists, mixed $identityField ): bool; -``` -Executes internal hooks before save a record - - -```php -protected function _preSaveRelatedRecords( AdapterInterface $connection, mixed $related ): bool; -``` -Saves related records that must be stored prior to save the master record - -@param \Phalcon\Mvc\ModelInterface[] related - - -```php -protected function allowEmptyStringValues( array $attributes ): void; -``` -Sets a list of attributes that must be skipped from the -generated UPDATE statement - -```php -class Robots extends \Phalcon\Mvc\Model -{ - public function initialize() - { - $this->allowEmptyStringValues( - [ - "name", - ] - ); - } -} -``` - - -```php -protected function belongsTo( mixed $fields, string $referenceModel, mixed $referencedFields, mixed $options = null ): Relation; -``` -Setup a reverse 1-1 or n-1 relation between two models - -```php -class RobotsParts extends \Phalcon\Mvc\Model -{ - public function initialize() - { - $this->belongsTo( - "robots_id", - Robots::class, - "id" - ); - } -} -``` - - -```php -protected function hasMany( mixed $fields, string $referenceModel, mixed $referencedFields, mixed $options = null ): Relation; -``` -Setup a 1-n relation between two models - -```php -class Robots extends \Phalcon\Mvc\Model -{ - public function initialize() - { - $this->hasMany( - "id", - RobotsParts::class, - "robots_id" - ); - } -} -``` - - -```php -protected function hasManyToMany( mixed $fields, string $intermediateModel, mixed $intermediateFields, mixed $intermediateReferencedFields, string $referenceModel, mixed $referencedFields, mixed $options = null ): Relation; -``` -Setup an n-n relation between two models, through an intermediate -relation - -```php -class Robots extends \Phalcon\Mvc\Model -{ - public function initialize() - { - // Setup a many-to-many relation to Parts through RobotsParts - $this->hasManyToMany( - "id", - RobotsParts::class, - "robots_id", - "parts_id", - Parts::class, - "id", - ); - } -} -``` - -@param string|array fields -@param string|array intermediateFields -@param string|array intermediateReferencedFields -@param string|array referencedFields -@param array options - - -```php -protected function hasOne( mixed $fields, string $referenceModel, mixed $referencedFields, mixed $options = null ): Relation; -``` -Setup a 1-1 relation between two models - -```php -class Robots extends \Phalcon\Mvc\Model -{ - public function initialize() - { - $this->hasOne( - "id", - RobotsDescription::class, - "robots_id" - ); - } -} -``` - - -```php -protected function keepSnapshots( bool $keepSnapshot ): void; -``` -Sets if the model must keep the original record snapshot in memory - -```php -use Phalcon\Mvc\Model; - -class Robots extends Model -{ - public function initialize() - { - $this->keepSnapshots(true); - } -} -``` - - -```php -final protected function setSchema( string $schema ): ModelInterface; -``` -Sets schema name where the mapped table is located - - -```php -final protected function setSource( string $source ): ModelInterface; -``` -Sets the table name to which model should be mapped - - -```php -protected function skipAttributes( array $attributes ); -``` -Sets a list of attributes that must be skipped from the -generated INSERT/UPDATE statement - -```php -class Robots extends \Phalcon\Mvc\Model -{ - public function initialize() - { - $this->skipAttributes( - [ - "price", - ] - ); - } -} -``` - - -```php -protected function skipAttributesOnCreate( array $attributes ): void; -``` -Sets a list of attributes that must be skipped from the -generated INSERT statement - -```php -class Robots extends \Phalcon\Mvc\Model -{ - public function initialize() - { - $this->skipAttributesOnCreate( - [ - "created_at", - ] - ); - } -} -``` - - -```php -protected function skipAttributesOnUpdate( array $attributes ): void; -``` -Sets a list of attributes that must be skipped from the -generated UPDATE statement - -```php -class Robots extends \Phalcon\Mvc\Model -{ - public function initialize() - { - $this->skipAttributesOnUpdate( - [ - "modified_in", - ] - ); - } -} -``` - - -```php -protected function useDynamicUpdate( bool $dynamicUpdate ): void; -``` -Sets if a model must use dynamic update instead of the all-field update - -```php -use Phalcon\Mvc\Model; - -class Robots extends Model -{ - public function initialize() - { - $this->useDynamicUpdate(true); - } -} -``` - - -```php -protected function validate( ValidationInterface $validator ): bool; -``` -Executes validators on every validation call - -```php -use Phalcon\Mvc\Model; -use Phalcon\Validation; -use Phalcon\Validation\Validator\ExclusionIn; - -class Subscriptors extends Model -{ - public function validation() - { - $validator = new Validation(); - - $validator->add( - "status", - new ExclusionIn( - [ - "domain" => [ - "A", - "I", - ], - ] - ) - ); - - return $this->validate($validator); - } -} -``` - - - - -

        Abstract Class Phalcon\Mvc\Model\Behavior

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/behavior.zep) - -| Namespace | Phalcon\Mvc\Model | -| Uses | Phalcon\Mvc\ModelInterface, Phalcon\Mvc\Model\BehaviorInterface | -| Implements | BehaviorInterface | - -Phalcon\Mvc\Model\Behavior - -This is an optional base class for ORM behaviors - - -## Properties -```php -/** - * @var array - */ -protected options; - -``` - -## Methods -```php -public function __construct( array $options = [] ): void; -``` -Phalcon\Mvc\Model\Behavior - - -```php -public function missingMethod( ModelInterface $model, string $method, array $arguments = [] ); -``` -Acts as fallbacks when a missing method is called on the model - - -```php -public function notify( string $type, ModelInterface $model ); -``` -This method receives the notifications from the EventsManager - - -```php -protected function getOptions( string $eventName = null ); -``` -Returns the behavior options related to an event - -@return array - - -```php -protected function mustTakeAction( string $eventName ): bool; -``` -Checks whether the behavior must take action on certain event - - - - -

        Class Phalcon\Mvc\Model\Behavior\SoftDelete

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/behavior/softdelete.zep) - -| Namespace | Phalcon\Mvc\Model\Behavior | -| Uses | Phalcon\Mvc\ModelInterface, Phalcon\Mvc\Model\Behavior, Phalcon\Mvc\Model\Exception | -| Extends | Behavior | - -Phalcon\Mvc\Model\Behavior\SoftDelete - -Instead of permanently delete a record it marks the record as deleted -changing the value of a flag column - - -## Methods -```php -public function notify( string $type, ModelInterface $model ); -``` -Listens for notifications from the models manager - - - - -

        Class Phalcon\Mvc\Model\Behavior\Timestampable

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/behavior/timestampable.zep) - -| Namespace | Phalcon\Mvc\Model\Behavior | -| Uses | Closure, Phalcon\Mvc\ModelInterface, Phalcon\Mvc\Model\Behavior, Phalcon\Mvc\Model\Exception | -| Extends | Behavior | - -Phalcon\Mvc\Model\Behavior\Timestampable - -Allows to automatically update a model’s attribute saving the datetime when a -record is created or updated - - -## Methods -```php -public function notify( string $type, ModelInterface $model ); -``` -Listens for notifications from the models manager - - - - -

        Interface Phalcon\Mvc\Model\BehaviorInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/behaviorinterface.zep) - -| Namespace | Phalcon\Mvc\Model | -| Uses | Phalcon\Mvc\ModelInterface | - -Phalcon\Mvc\Model\BehaviorInterface - -Interface for Phalcon\Mvc\Model\Behavior - - -## Methods -```php -public function missingMethod( ModelInterface $model, string $method, array $arguments = [] ); -``` -Calls a method when it's missing in the model - - -```php -public function notify( string $type, ModelInterface $model ); -``` -This method receives the notifications from the EventsManager - - - - -

        Class Phalcon\Mvc\Model\Binder

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/binder.zep) - -| Namespace | Phalcon\Mvc\Model | -| Uses | Closure, Phalcon\Mvc\Controller\BindModelInterface, Phalcon\Mvc\Model\Binder\BindableInterface, Phalcon\Cache\Adapter\AdapterInterface, ReflectionFunction, ReflectionMethod | -| Implements | BinderInterface | - -Phalcon\Mvc\Model\Binding - -This is an class for binding models into params for handler - - -## Properties -```php -/** - * Array for storing active bound models - * - * @var array - */ -protected boundModels; - -/** - * Cache object used for caching parameters for model binding - */ -protected cache; - -/** - * Internal cache for caching parameters for model binding during request - */ -protected internalCache; - -/** - * Array for original values - */ -protected originalValues; - -``` - -## Methods -```php -public function __construct( AdapterInterface $cache = null ): void; -``` -Phalcon\Mvc\Model\Binder constructor - - -```php -public function bindToHandler( object $handler, array $params, string $cacheKey, string $methodName = null ): array; -``` -Bind models into params in proper handler - - -```php -public function getBoundModels(): array -``` - - -```php -public function getCache(): AdapterInterface; -``` -Sets cache instance - - -```php -public function getOriginalValues() -``` - - -```php -public function setCache( AdapterInterface $cache ): BinderInterface; -``` -Gets cache instance - - -```php -protected function findBoundModel( mixed $paramValue, string $className ): object | bool; -``` -Find the model by param value. - - -```php -protected function getParamsFromCache( string $cacheKey ): array | null; -``` -Get params classes from cache by key - - -```php -protected function getParamsFromReflection( object $handler, array $params, string $cacheKey, string $methodName ): array; -``` -Get modified params for handler using reflection - - - - -

        Interface Phalcon\Mvc\Model\Binder\BindableInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/binder/bindableinterface.zep) - -| Namespace | Phalcon\Mvc\Model\Binder | - -Phalcon\Mvc\Model\Binder\BindableInterface - -Interface for bindable classes - - -## Methods -```php -public function getModelName(): string | array; -``` -Return the model name or models names and parameters keys associated with -this class - - - - -

        Interface Phalcon\Mvc\Model\BinderInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/binderinterface.zep) - -| Namespace | Phalcon\Mvc\Model | -| Uses | Phalcon\Cache\Adapter\AdapterInterface | - -Phalcon\Mvc\Model\BinderInterface - -Interface for Phalcon\Mvc\Model\Binder - - -## Methods -```php -public function bindToHandler( object $handler, array $params, string $cacheKey, string $methodName = null ): array; -``` -Bind models into params in proper handler - - -```php -public function getBoundModels(): array; -``` -Gets active bound models - - -```php -public function getCache(): AdapterInterface; -``` -Gets cache instance - - -```php -public function setCache( AdapterInterface $cache ): BinderInterface; -``` -Sets cache instance - - - - -

        Class Phalcon\Mvc\Model\Criteria

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/criteria.zep) - -| Namespace | Phalcon\Mvc\Model | -| Uses | Phalcon\Di, Phalcon\Db\Column, Phalcon\Di\DiInterface, Phalcon\Mvc\Model\Exception, Phalcon\Di\InjectionAwareInterface, Phalcon\Mvc\Model\CriteriaInterface, Phalcon\Mvc\Model\ResultsetInterface, Phalcon\Mvc\Model\Query\BuilderInterface | -| Implements | CriteriaInterface, InjectionAwareInterface | - -Phalcon\Mvc\Model\Criteria - -This class is used to build the array parameter required by -Phalcon\Mvc\Model::find() and Phalcon\Mvc\Model::findFirst() using an -object-oriented interface. - -```php -$robots = Robots::query() - ->where("type = :type:") - ->andWhere("year < 2000") - ->bind(["type" => "mechanical"]) - ->limit(5, 10) - ->orderBy("name") - ->execute(); -``` - - -## Properties -```php -// -protected bindParams; - -// -protected bindTypes; - -// -protected hiddenParamNumber = 0; - -// -protected model; - -// -protected params; - -``` - -## Methods -```php -public function andWhere( string $conditions, mixed $bindParams = null, mixed $bindTypes = null ): CriteriaInterface; -``` -Appends a condition to the current conditions using an AND operator - - -```php -public function betweenWhere( string $expr, mixed $minimum, mixed $maximum ): CriteriaInterface; -``` -Appends a BETWEEN condition to the current conditions - -```php -$criteria->betweenWhere("price", 100.25, 200.50); -``` - - -```php -public function bind( array $bindParams, bool $merge = bool ): CriteriaInterface; -``` -Sets the bound parameters in the criteria -This method replaces all previously set bound parameters - - -```php -public function bindTypes( array $bindTypes ): CriteriaInterface; -``` -Sets the bind types in the criteria -This method replaces all previously set bound parameters - - -```php -public function cache( array $cache ): CriteriaInterface; -``` -Sets the cache options in the criteria -This method replaces all previously set cache options - - -```php -public function columns( mixed $columns ): CriteriaInterface; -``` -Sets the columns to be queried - -```php -$criteria->columns( - [ - "id", - "name", - ] -); -``` - -@param string|array columns - - -```php -public function conditions( string $conditions ): CriteriaInterface; -``` -Adds the conditions parameter to the criteria - - -```php -public function createBuilder(): BuilderInterface; -``` -Creates a query builder from criteria. - -```php -$builder = Robots::query() - ->where("type = :type:") - ->bind(["type" => "mechanical"]) - ->createBuilder(); -``` - - -```php -public function distinct( mixed $distinct ): CriteriaInterface; -``` -Sets SELECT DISTINCT / SELECT ALL flag - - -```php -public function execute(): ResultsetInterface; -``` -Executes a find using the parameters built with the criteria - - -```php -public function forUpdate( bool $forUpdate = bool ): CriteriaInterface; -``` -Adds the "for_update" parameter to the criteria - - -```php -public function getColumns(): string | null; -``` -Returns the columns to be queried - -@return string|array|null - - -```php -public function getConditions(): string | null; -``` -Returns the conditions parameter in the criteria - - -```php -public function getDI(): DiInterface; -``` -Returns the DependencyInjector container - - -```php -public function getGroupBy(); -``` -Returns the group clause in the criteria - - -```php -public function getHaving(); -``` -Returns the having clause in the criteria - - -```php -public function getLimit(): string | null; -``` -Returns the limit parameter in the criteria, which will be an integer if -limit was set without an offset, an array with 'number' and 'offset' keys -if an offset was set with the limit, or null if limit has not been set. - -@return int|array|null - - -```php -public function getModelName(): string; -``` -Returns an internal model name on which the criteria will be applied - - -```php -public function getOrderBy(): string | null; -``` -Returns the order clause in the criteria - - -```php -public function getParams(): array; -``` -Returns all the parameters defined in the criteria - - -```php -public function getWhere(): string | null; -``` -Returns the conditions parameter in the criteria - - -```php -public function groupBy( mixed $group ): CriteriaInterface; -``` -Adds the group-by clause to the criteria - - -```php -public function having( mixed $having ): CriteriaInterface; -``` -Adds the having clause to the criteria - - -```php -public function inWhere( string $expr, array $values ): CriteriaInterface; -``` -Appends an IN condition to the current conditions - -```php -$criteria->inWhere("id", [1, 2, 3]); -``` - - -```php -public function innerJoin( string $model, mixed $conditions = null, mixed $alias = null ): CriteriaInterface; -``` -Adds an INNER join to the query - -```php -$criteria->innerJoin( - Robots::class -); - -$criteria->innerJoin( - Robots::class, - "r.id = RobotsParts.robots_id" -); - -$criteria->innerJoin( - Robots::class, - "r.id = RobotsParts.robots_id", - "r" -); -``` - - -```php -public function join( string $model, mixed $conditions = null, mixed $alias = null, mixed $type = null ): CriteriaInterface; -``` -Adds an INNER join to the query - -```php -$criteria->join( - Robots::class -); - -$criteria->join( - Robots::class, - "r.id = RobotsParts.robots_id" -); - -$criteria->join( - Robots::class, - "r.id = RobotsParts.robots_id", - "r" -); - -$criteria->join( - Robots::class, - "r.id = RobotsParts.robots_id", - "r", - "LEFT" -); -``` - - -```php -public function leftJoin( string $model, mixed $conditions = null, mixed $alias = null ): CriteriaInterface; -``` -Adds a LEFT join to the query - -```php -$criteria->leftJoin( - Robots::class, - "r.id = RobotsParts.robots_id", - "r" -); -``` - - -```php -public function limit( int $limit, int $offset = int ): CriteriaInterface; -``` -Adds the limit parameter to the criteria. - -```php -$criteria->limit(100); -$criteria->limit(100, 200); -$criteria->limit("100", "200"); -``` - - -```php -public function notBetweenWhere( string $expr, mixed $minimum, mixed $maximum ): CriteriaInterface; -``` -Appends a NOT BETWEEN condition to the current conditions - -```php -$criteria->notBetweenWhere("price", 100.25, 200.50); -``` - - -```php -public function notInWhere( string $expr, array $values ): CriteriaInterface; -``` -Appends a NOT IN condition to the current conditions - -```php -$criteria->notInWhere("id", [1, 2, 3]); -``` - - -```php -public function orWhere( string $conditions, mixed $bindParams = null, mixed $bindTypes = null ): CriteriaInterface; -``` -Appends a condition to the current conditions using an OR operator - - -```php -public function orderBy( string $orderColumns ): CriteriaInterface; -``` -Adds the order-by clause to the criteria - - -```php -public function rightJoin( string $model, mixed $conditions = null, mixed $alias = null ): CriteriaInterface; -``` -Adds a RIGHT join to the query - -```php -$criteria->rightJoin( - Robots::class, - "r.id = RobotsParts.robots_id", - "r" -); -``` - - -```php -public function setDI( DiInterface $container ): void; -``` -Sets the DependencyInjector container - - -```php -public function setModelName( string $modelName ): CriteriaInterface; -``` -Set a model on which the query will be executed - - -```php -public function sharedLock( bool $sharedLock = bool ): CriteriaInterface; -``` -Adds the "shared_lock" parameter to the criteria - - -```php -public function where( string $conditions, mixed $bindParams = null, mixed $bindTypes = null ): CriteriaInterface; -``` -Sets the conditions parameter in the criteria - - - - -

        Interface Phalcon\Mvc\Model\CriteriaInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/criteriainterface.zep) - -| Namespace | Phalcon\Mvc\Model | -| Uses | Phalcon\Di\DiInterface | - -Phalcon\Mvc\Model\CriteriaInterface - -Interface for Phalcon\Mvc\Model\Criteria - - -## Methods -```php -public function andWhere( string $conditions, mixed $bindParams = null, mixed $bindTypes = null ): CriteriaInterface; -``` -Appends a condition to the current conditions using an AND operator - -@param array bindParams -@param array bindTypes - - -```php -public function betweenWhere( string $expr, mixed $minimum, mixed $maximum ): CriteriaInterface; -``` -Appends a BETWEEN condition to the current conditions - -```php -$criteria->betweenWhere("price", 100.25, 200.50); -``` - -@param mixed minimum -@param mixed maximum - - -```php -public function bind( array $bindParams ): CriteriaInterface; -``` -Sets the bound parameters in the criteria -This method replaces all previously set bound parameters - - -```php -public function bindTypes( array $bindTypes ): CriteriaInterface; -``` -Sets the bind types in the criteria -This method replaces all previously set bound parameters - - -```php -public function cache( array $cache ): CriteriaInterface; -``` -Sets the cache options in the criteria -This method replaces all previously set cache options - - -```php -public function conditions( string $conditions ): CriteriaInterface; -``` -Adds the conditions parameter to the criteria - - -```php -public function distinct( mixed $distinct ): CriteriaInterface; -``` -Sets SELECT DISTINCT / SELECT ALL flag - - -```php -public function execute(): ResultsetInterface; -``` -Executes a find using the parameters built with the criteria - - -```php -public function forUpdate( bool $forUpdate = bool ): CriteriaInterface; -``` -Sets the "for_update" parameter to the criteria - - -```php -public function getColumns(): string | null; -``` -Returns the columns to be queried - -@return string|array|null - - -```php -public function getConditions(): string | null; -``` -Returns the conditions parameter in the criteria - - -```php -public function getGroupBy(); -``` -Returns the group clause in the criteria - - -```php -public function getHaving(); -``` -Returns the having clause in the criteria - - -```php -public function getLimit(): string | null; -``` -Returns the limit parameter in the criteria, which will be an integer if -limit was set without an offset, an array with 'number' and 'offset' keys -if an offset was set with the limit, or null if limit has not been set. - - -```php -public function getModelName(): string; -``` -Returns an internal model name on which the criteria will be applied - - -```php -public function getOrderBy(): string | null; -``` -Returns the order parameter in the criteria - - -```php -public function getParams(): array; -``` -Returns all the parameters defined in the criteria - - -```php -public function getWhere(): string | null; -``` -Returns the conditions parameter in the criteria - - -```php -public function groupBy( mixed $group ): CriteriaInterface; -``` -Adds the group-by clause to the criteria - - -```php -public function having( mixed $having ): CriteriaInterface; -``` -Adds the having clause to the criteria - - -```php -public function inWhere( string $expr, array $values ): CriteriaInterface; -``` -Appends an IN condition to the current conditions - -```php -$criteria->inWhere("id", [1, 2, 3]); -``` - - -```php -public function innerJoin( string $model, mixed $conditions = null, mixed $alias = null ): CriteriaInterface; -``` -Adds an INNER join to the query - -```php -$criteria->innerJoin( - Robots::class -); - -$criteria->innerJoin( - Robots::class, - "r.id = RobotsParts.robots_id" -); - -$criteria->innerJoin( - Robots::class, - "r.id = RobotsParts.robots_id", - "r" -); -``` - - -```php -public function leftJoin( string $model, mixed $conditions = null, mixed $alias = null ): CriteriaInterface; -``` -Adds a LEFT join to the query - -```php -$criteria->leftJoin( - Robots::class, - "r.id = RobotsParts.robots_id", - "r" -); -``` - - -```php -public function limit( int $limit, int $offset = int ): CriteriaInterface; -``` -Sets the limit parameter to the criteria - - -```php -public function notBetweenWhere( string $expr, mixed $minimum, mixed $maximum ): CriteriaInterface; -``` -Appends a NOT BETWEEN condition to the current conditions - -```php -$criteria->notBetweenWhere("price", 100.25, 200.50); -``` - -@param mixed minimum -@param mixed maximum - - -```php -public function notInWhere( string $expr, array $values ): CriteriaInterface; -``` -Appends a NOT IN condition to the current conditions - -```php -$criteria->notInWhere("id", [1, 2, 3]); -``` - - -```php -public function orWhere( string $conditions, mixed $bindParams = null, mixed $bindTypes = null ): CriteriaInterface; -``` -Appends a condition to the current conditions using an OR operator - -@param array bindParams -@param array bindTypes - - -```php -public function orderBy( string $orderColumns ): CriteriaInterface; -``` -Adds the order-by parameter to the criteria - - -```php -public function rightJoin( string $model, mixed $conditions = null, mixed $alias = null ): CriteriaInterface; -``` -Adds a RIGHT join to the query - -```php -$criteria->rightJoin( - Robots::class, - "r.id = RobotsParts.robots_id", - "r" -); -``` - - -```php -public function setModelName( string $modelName ): CriteriaInterface; -``` -Set a model on which the query will be executed - - -```php -public function sharedLock( bool $sharedLock = bool ): CriteriaInterface; -``` -Sets the "shared_lock" parameter to the criteria - - -```php -public function where( string $conditions ): CriteriaInterface; -``` -Sets the conditions parameter in the criteria - - - - -

        Class Phalcon\Mvc\Model\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/exception.zep) - -| Namespace | Phalcon\Mvc\Model | -| Extends | \Phalcon\Exception | - -Phalcon\Mvc\Model\Exception - -Exceptions thrown in Phalcon\Mvc\Model\* classes will use this class - - - -

        Class Phalcon\Mvc\Model\Manager

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/manager.zep) - -| Namespace | Phalcon\Mvc\Model | -| Uses | Phalcon\Di\DiInterface, Phalcon\Mvc\Model\Relation, Phalcon\Mvc\Model\RelationInterface, Phalcon\Mvc\Model\Exception, Phalcon\Mvc\ModelInterface, Phalcon\Db\Adapter\AdapterInterface, Phalcon\Mvc\Model\ResultsetInterface, Phalcon\Mvc\Model\ManagerInterface, Phalcon\Di\InjectionAwareInterface, Phalcon\Events\EventsAwareInterface, Phalcon\Mvc\Model\Query, Phalcon\Mvc\Model\QueryInterface, Phalcon\Mvc\Model\Query\Builder, Phalcon\Mvc\Model\Query\BuilderInterface, Phalcon\Mvc\Model\BehaviorInterface, Phalcon\Events\ManagerInterface | -| Implements | ManagerInterface, InjectionAwareInterface, EventsAwareInterface | - -Phalcon\Mvc\Model\Manager - -This components controls the initialization of models, keeping record of -relations between the different models of the application. - -A ModelsManager is injected to a model via a Dependency Injector/Services -Container such as Phalcon\Di. - -```php -use Phalcon\Di; -use Phalcon\Mvc\Model\Manager as ModelsManager; - -$di = new Di(); - -$di->set( - "modelsManager", - function() { - return new ModelsManager(); - } -); - -$robot = new Robots($di); -``` - - -## Properties -```php -// -protected aliases; - -/** - * Models' behaviors - */ -protected behaviors; - -/** - * Belongs to relations - */ -protected belongsTo; - -/** - * All the relationships by model - */ -protected belongsToSingle; - -// -protected container; - -// -protected customEventsManager; - -/** - * Does the model use dynamic update, instead of updating all rows? - */ -protected dynamicUpdate; - -// -protected eventsManager; - -/** - * Has many relations - */ -protected hasMany; - -/** - * Has many relations by model - */ -protected hasManySingle; - -/** - * Has many-Through relations - */ -protected hasManyToMany; - -/** - * Has many-Through relations by model - */ -protected hasManyToManySingle; - -/** - * Has one relations - */ -protected hasOne; - -/** - * Has one relations by model - */ -protected hasOneSingle; - -/** - * Mark initialized models - */ -protected initialized; - -// -protected keepSnapshots; - -/** - * Last model initialized - */ -protected lastInitialized; - -/** - * Last query created/executed - */ -protected lastQuery; - -// -protected modelVisibility; - -// -protected prefix = ; - -// -protected readConnectionServices; - -// -protected sources; - -// -protected schemas; - -// -protected writeConnectionServices; - -/** - * Stores a list of reusable instances - */ -protected reusable; - -``` - -## Methods -```php -public function __destruct(); -``` -Destroys the current PHQL cache - - -```php -public function _getConnectionService( ModelInterface $model, mixed $connectionServices ): string; -``` -Returns the connection service name used to read or write data related to -a model depending on the connection services - - -```php -public function addBehavior( ModelInterface $model, BehaviorInterface $behavior ): void; -``` -Binds a behavior to a model - - -```php -public function addBelongsTo( ModelInterface $model, mixed $fields, string $referencedModel, mixed $referencedFields, mixed $options = null ): RelationInterface; -``` -Setup a relation reverse many to one between two models - -@param array options - - -```php -public function addHasMany( ModelInterface $model, mixed $fields, string $referencedModel, mixed $referencedFields, mixed $options = null ): RelationInterface; -``` -Setup a relation 1-n between two models - -@param mixed referencedFields -@param array options - - -```php -public function addHasManyToMany( ModelInterface $model, mixed $fields, string $intermediateModel, mixed $intermediateFields, mixed $intermediateReferencedFields, string $referencedModel, mixed $referencedFields, mixed $options = null ): RelationInterface; -``` -Setups a relation n-m between two models - -@param string fields -@param string intermediateFields -@param string intermediateReferencedFields -@param string referencedFields -@param array options - - -```php -public function addHasOne( ModelInterface $model, mixed $fields, string $referencedModel, mixed $referencedFields, mixed $options = null ): RelationInterface; -``` -Setup a 1-1 relation between two models - -@param array options - - -```php -public function clearReusableObjects(): void; -``` -Clears the internal reusable list - - -```php -public function createBuilder( mixed $params = null ): BuilderInterface; -``` -Creates a Phalcon\Mvc\Model\Query\Builder - - -```php -public function createQuery( string $phql ): QueryInterface; -``` -Creates a Phalcon\Mvc\Model\Query without execute it - - -```php -public function executeQuery( string $phql, mixed $placeholders = null, mixed $types = null ): QueryInterface; -``` -Creates a Phalcon\Mvc\Model\Query and execute it - - -```php -public function existsBelongsTo( string $modelName, string $modelRelation ): bool; -``` -Checks whether a model has a belongsTo relation with another model - - -```php -public function existsHasMany( string $modelName, string $modelRelation ): bool; -``` -Checks whether a model has a hasMany relation with another model - - -```php -public function existsHasManyToMany( string $modelName, string $modelRelation ): bool; -``` -Checks whether a model has a hasManyToMany relation with another model - - -```php -public function existsHasOne( string $modelName, string $modelRelation ): bool; -``` -Checks whether a model has a hasOne relation with another model - - -```php -public function getBelongsTo( ModelInterface $model ): RelationInterface[] | array; -``` -Gets all the belongsTo relations defined in a model - -```php -$relations = $modelsManager->getBelongsTo( - new Robots() -); -``` - - -```php -public function getBelongsToRecords( string $modelName, string $modelRelation, ModelInterface $record, mixed $parameters = null, string $method = null ): ResultsetInterface | bool; -``` -Gets belongsTo related records from a model - - -```php -public function getCustomEventsManager( ModelInterface $model ): EventsManagerInterface | bool; -``` -Returns a custom events manager related to a model - - -```php -public function getDI(): DiInterface; -``` -Returns the DependencyInjector container - - -```php -public function getEventsManager(): EventsManagerInterface; -``` -Returns the internal event manager - - -```php -public function getHasMany( ModelInterface $model ): RelationInterface[] | array; -``` -Gets hasMany relations defined on a model - - -```php -public function getHasManyRecords( string $modelName, string $modelRelation, ModelInterface $record, mixed $parameters = null, string $method = null ): ResultsetInterface | bool; -``` -Gets hasMany related records from a model - - -```php -public function getHasManyToMany( ModelInterface $model ): RelationInterface[] | array; -``` -Gets hasManyToMany relations defined on a model - - -```php -public function getHasOne( ModelInterface $model ): array; -``` -Gets hasOne relations defined on a model - - -```php -public function getHasOneAndHasMany( ModelInterface $model ): RelationInterface[]; -``` -Gets hasOne relations defined on a model - - -```php -public function getHasOneRecords( string $modelName, string $modelRelation, ModelInterface $record, mixed $parameters = null, string $method = null ): ModelInterface | bool; -``` -Gets belongsTo related records from a model - - -```php -public function getLastInitialized(): ModelInterface; -``` -Get last initialized model - - -```php -public function getLastQuery(): QueryInterface; -``` -Returns the last query created or executed in the models manager - - -```php -public function getModelPrefix(): string; -``` -Returns the prefix for all model sources. - - -```php -public function getModelSchema( ModelInterface $model ): string; -``` -Returns the mapped schema for a model - - -```php -public function getModelSource( ModelInterface $model ): string; -``` -Returns the mapped source for a model - - -```php -public function getReadConnection( ModelInterface $model ): AdapterInterface; -``` -Returns the connection to read data related to a model - - -```php -public function getReadConnectionService( ModelInterface $model ): string; -``` -Returns the connection service name used to read data related to a model - - -```php -public function getRelationByAlias( string $modelName, string $alias ): RelationInterface | bool; -``` -Returns a relation by its alias - - -```php -public function getRelationRecords( RelationInterface $relation, ModelInterface $record, mixed $parameters = null, string $method = null ); -``` -Helper method to query records based on a relation definition - -@return \Phalcon\Mvc\Model\Resultset\Simple|Phalcon\Mvc\Model\Resultset\Simple|int|false - - -```php -public function getRelations( string $modelName ): RelationInterface[]; -``` -Query all the relationships defined on a model - - -```php -public function getRelationsBetween( string $first, string $second ): RelationInterface[] | bool; -``` -Query the first relationship defined between two models - - -```php -public function getReusableRecords( string $modelName, string $key ); -``` -Returns a reusable object from the internal list - - -```php -public function getWriteConnection( ModelInterface $model ): AdapterInterface; -``` -Returns the connection to write data related to a model - - -```php -public function getWriteConnectionService( ModelInterface $model ): string; -``` -Returns the connection service name used to write data related to a model - - -```php -public function initialize( ModelInterface $model ): bool; -``` -Initializes a model in the model manager - - -```php -public function isInitialized( string $className ): bool; -``` -Check whether a model is already initialized - - -```php -public function isKeepingSnapshots( ModelInterface $model ): bool; -``` -Checks if a model is keeping snapshots for the queried records - - -```php -public function isUsingDynamicUpdate( ModelInterface $model ): bool; -``` -Checks if a model is using dynamic update instead of all-field update - - -```php -final public function isVisibleModelProperty( ModelInterface $model, string $property ): bool; -``` -Check whether a model property is declared as public. - -```php -$isPublic = $manager->isVisibleModelProperty( - new Robots(), - "name" -); -``` - - -```php -public function keepSnapshots( ModelInterface $model, bool $keepSnapshots ): void; -``` -Sets if a model must keep snapshots - - -```php -public function load( string $modelName ): ModelInterface; -``` -Loads a model throwing an exception if it doesn't exist - - -```php -public function missingMethod( ModelInterface $model, string $eventName, mixed $data ); -``` -Dispatch an event to the listeners and behaviors -This method expects that the endpoint listeners/behaviors returns true -meaning that a least one was implemented - - -```php -public function notifyEvent( string $eventName, ModelInterface $model ); -``` -Receives events generated in the models and dispatches them to an -events-manager if available. Notify the behaviors that are listening in -the model - - -```php -public function setConnectionService( ModelInterface $model, string $connectionService ): void; -``` -Sets both write and read connection service for a model - - -```php -public function setCustomEventsManager( ModelInterface $model, EventsManagerInterface $eventsManager ): void; -``` -Sets a custom events manager for a specific model - - -```php -public function setDI( DiInterface $container ): void; -``` -Sets the DependencyInjector container - - -```php -public function setEventsManager( EventsManagerInterface $eventsManager ): ManagerInterface; -``` -Sets a global events manager - - -```php -public function setModelPrefix( string $prefix ): void; -``` -Sets the prefix for all model sources. - -```php -use Phalcon\Mvc\Model\Manager; - -$di->set( - "modelsManager", - function () { - $modelsManager = new Manager(); - - $modelsManager->setModelPrefix("wp_"); - - return $modelsManager; - } -); - -$robots = new Robots(); - -echo $robots->getSource(); // wp_robots -``` - - -```php -public function setModelSchema( ModelInterface $model, string $schema ): void; -``` -Sets the mapped schema for a model - - -```php -public function setModelSource( ModelInterface $model, string $source ): void; -``` -Sets the mapped source for a model - - -```php -public function setReadConnectionService( ModelInterface $model, string $connectionService ): void; -``` -Sets read connection service for a model - - -```php -public function setReusableRecords( string $modelName, string $key, mixed $records ): void; -``` -Stores a reusable record in the internal list - - -```php -public function setWriteConnectionService( ModelInterface $model, string $connectionService ): void; -``` -Sets write connection service for a model - - -```php -public function useDynamicUpdate( ModelInterface $model, bool $dynamicUpdate ): void; -``` -Sets if a model must use dynamic update instead of the all-field update - - -```php -protected function _getConnection( ModelInterface $model, mixed $connectionServices ): AdapterInterface; -``` -Returns the connection to read or write data related to a model depending on the connection services. - - -```php -final protected function _mergeFindParameters( mixed $findParamsOne, mixed $findParamsTwo ): array; -``` -Merge two arrays of find parameters - - - - -

        Interface Phalcon\Mvc\Model\ManagerInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/managerinterface.zep) - -| Namespace | Phalcon\Mvc\Model | -| Uses | Phalcon\Db\Adapter\AdapterInterface, Phalcon\Mvc\ModelInterface, Phalcon\Mvc\Model\BehaviorInterface, Phalcon\Mvc\Model\RelationInterface, Phalcon\Mvc\Model\Query\BuilderInterface, Phalcon\Mvc\Model\QueryInterface | - -Phalcon\Mvc\Model\ManagerInterface - -Interface for Phalcon\Mvc\Model\Manager - - -## Methods -```php -public function addBehavior( ModelInterface $model, BehaviorInterface $behavior ): void; -``` -Binds a behavior to a model - - -```php -public function addBelongsTo( ModelInterface $model, mixed $fields, string $referencedModel, mixed $referencedFields, mixed $options = null ): RelationInterface; -``` -Setup a relation reverse 1-1 between two models - -@param mixed fields -@param mixed referencedFields -@param array options - - -```php -public function addHasMany( ModelInterface $model, mixed $fields, string $referencedModel, mixed $referencedFields, mixed $options = null ): RelationInterface; -``` -Setup a relation 1-n between two models - -@param mixed fields -@param mixed referencedFields -@param array options - - -```php -public function addHasManyToMany( ModelInterface $model, mixed $fields, string $intermediateModel, mixed $intermediateFields, mixed $intermediateReferencedFields, string $referencedModel, mixed $referencedFields, mixed $options = null ): RelationInterface; -``` -Setups a relation n-m between two models - -@param string fields -@param string intermediateFields -@param string intermediateReferencedFields -@param string referencedFields -@param array options - - -```php -public function addHasOne( ModelInterface $model, mixed $fields, string $referencedModel, mixed $referencedFields, mixed $options = null ): RelationInterface; -``` -Setup a 1-1 relation between two models - -@param mixed fields -@param mixed referencedFields -@param array options - - -```php -public function createBuilder( mixed $params = null ): BuilderInterface; -``` -Creates a Phalcon\Mvc\Model\Query\Builder - -@param string $params - - -```php -public function createQuery( string $phql ): QueryInterface; -``` -Creates a Phalcon\Mvc\Model\Query without execute it - - -```php -public function executeQuery( string $phql, mixed $placeholders = null ): QueryInterface; -``` -Creates a Phalcon\Mvc\Model\Query and execute it - -@param array $placeholders - - -```php -public function existsBelongsTo( string $modelName, string $modelRelation ): bool; -``` -Checks whether a model has a belongsTo relation with another model - - -```php -public function existsHasMany( string $modelName, string $modelRelation ): bool; -``` -Checks whether a model has a hasMany relation with another model - - -```php -public function existsHasManyToMany( string $modelName, string $modelRelation ): bool; -``` -Checks whether a model has a hasManyToMany relation with another model - - -```php -public function existsHasOne( string $modelName, string $modelRelation ): bool; -``` -Checks whether a model has a hasOne relation with another model - - -```php -public function getBelongsTo( ModelInterface $model ): RelationInterface[] | array; -``` -Gets belongsTo relations defined on a model - - -```php -public function getBelongsToRecords( string $modelName, string $modelRelation, ModelInterface $record, mixed $parameters = null, string $method = null ): ResultsetInterface | bool; -``` -Gets belongsTo related records from a model - -@param string $modelName -@param string $modelRelation -@param array|string|null $parameters -@param ModelInterface $record -@param string|null $method - - -```php -public function getHasMany( ModelInterface $model ): RelationInterface[] | array; -``` -Gets hasMany relations defined on a model - - -```php -public function getHasManyRecords( string $modelName, string $modelRelation, ModelInterface $record, mixed $parameters = null, string $method = null ): ResultsetInterface | bool; -``` -Gets hasMany related records from a model - -@param string $modelName -@param string $modelRelation -@param array|string|null $parameters -@param ModelInterface $record -@param string|null $method - - -```php -public function getHasManyToMany( ModelInterface $model ): RelationInterface[] | array; -``` -Gets hasManyToMany relations defined on a model - - -```php -public function getHasOne( ModelInterface $model ): RelationInterface[] | array; -``` -Gets hasOne relations defined on a model - - -```php -public function getHasOneAndHasMany( ModelInterface $model ): RelationInterface[]; -``` -Gets hasOne relations defined on a model - - -```php -public function getHasOneRecords( string $modelName, string $modelRelation, ModelInterface $record, mixed $parameters = null, string $method = null ): ModelInterface | bool; -``` -Gets belongsTo related records from a model - -@param string $modelName -@param string $modelRelation -@param array|string|null $parameters -@param ModelInterface $record -@param string|null $method - - -```php -public function getLastInitialized(): ModelInterface; -``` -Get last initialized model - - -```php -public function getLastQuery(): QueryInterface; -``` -Returns the last query created or executed in the models manager - - -```php -public function getModelSchema( ModelInterface $model ): string; -``` -Returns the mapped schema for a model - - -```php -public function getModelSource( ModelInterface $model ): string; -``` -Returns the mapped source for a model - - -```php -public function getReadConnection( ModelInterface $model ): AdapterInterface; -``` -Returns the connection to read data related to a model - - -```php -public function getReadConnectionService( ModelInterface $model ): string; -``` -Returns the connection service name used to read data related to a model - - -```php -public function getRelationByAlias( string $modelName, string $alias ): Relation | bool; -``` -Returns a relation by its alias - - -```php -public function getRelationRecords( RelationInterface $relation, ModelInterface $record, mixed $parameters = null, string $method = null ); -``` -Helper method to query records based on a relation definition - -@return \Phalcon\Mvc\Model\Resultset\Simple|Phalcon\Mvc\Model\Resultset\Simple|int|false - - -```php -public function getRelations( string $modelName ): RelationInterface[]; -``` -Query all the relationships defined on a model - - -```php -public function getRelationsBetween( string $first, string $second ): RelationInterface[] | bool; -``` -Query the relations between two models - - -```php -public function getWriteConnection( ModelInterface $model ): AdapterInterface; -``` -Returns the connection to write data related to a model - - -```php -public function getWriteConnectionService( ModelInterface $model ): string; -``` -Returns the connection service name used to write data related to a model - - -```php -public function initialize( ModelInterface $model ); -``` -Initializes a model in the model manager - - -```php -public function isInitialized( string $className ): bool; -``` -Check of a model is already initialized - - -```php -public function isKeepingSnapshots( ModelInterface $model ): bool; -``` -Checks if a model is keeping snapshots for the queried records - - -```php -public function isUsingDynamicUpdate( ModelInterface $model ): bool; -``` -Checks if a model is using dynamic update instead of all-field update - - -```php -final public function isVisibleModelProperty( ModelInterface $model, string $property ): bool; -``` -Check whether a model property is declared as public. - -```php -$isPublic = $manager->isVisibleModelProperty( - new Robots(), - "name" -); -``` - - -```php -public function keepSnapshots( ModelInterface $model, bool $keepSnapshots ): void; -``` -Sets if a model must keep snapshots - - -```php -public function load( string $modelName ): ModelInterface; -``` -Loads a model throwing an exception if it doesn't exist - - -```php -public function missingMethod( ModelInterface $model, string $eventName, mixed $data ); -``` -Dispatch an event to the listeners and behaviors -This method expects that the endpoint listeners/behaviors returns true -meaning that a least one is implemented - -@param array data -@return bool - - -```php -public function notifyEvent( string $eventName, ModelInterface $model ); -``` -Receives events generated in the models and dispatches them to an events-manager if available -Notify the behaviors that are listening in the model - - -```php -public function setConnectionService( ModelInterface $model, string $connectionService ): void; -``` -Sets both write and read connection service for a model - - -```php -public function setModelSchema( ModelInterface $model, string $schema ): void; -``` -Sets the mapped schema for a model - - -```php -public function setModelSource( ModelInterface $model, string $source ): void; -``` -Sets the mapped source for a model - - -```php -public function setReadConnectionService( ModelInterface $model, string $connectionService ): void; -``` -Sets read connection service for a model - - -```php -public function setWriteConnectionService( ModelInterface $model, string $connectionService ); -``` -Sets write connection service for a model - - -```php -public function useDynamicUpdate( ModelInterface $model, bool $dynamicUpdate ): void; -``` -Sets if a model must use dynamic update instead of the all-field update - - - - -

        Abstract Class Phalcon\Mvc\Model\MetaData

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/metadata.zep) - -| Namespace | Phalcon\Mvc\Model | -| Uses | Phalcon\Di\DiInterface, Phalcon\Mvc\ModelInterface, Phalcon\Mvc\Model\Exception, Phalcon\Di\InjectionAwareInterface, Phalcon\Mvc\Model\MetaData\Strategy\Introspection, Phalcon\Mvc\Model\MetaData\StrategyInterface, Phalcon\Cache\Adapter\AdapterInterface | -| Implements | InjectionAwareInterface, MetaDataInterface | - -Phalcon\Mvc\Model\MetaData - -Because Phalcon\Mvc\Model requires meta-data like field names, data types, -primary keys, etc. This component collect them and store for further -querying by Phalcon\Mvc\Model. Phalcon\Mvc\Model\MetaData can also use -adapters to store temporarily or permanently the meta-data. - -A standard Phalcon\Mvc\Model\MetaData can be used to query model attributes: - -```php -$metaData = new \Phalcon\Mvc\Model\MetaData\Memory(); - -$attributes = $metaData->getAttributes( - new Robots() -); - -print_r($attributes); -``` - - -## Constants -```php -const MODELS_ATTRIBUTES = 0; -const MODELS_AUTOMATIC_DEFAULT_INSERT = 10; -const MODELS_AUTOMATIC_DEFAULT_UPDATE = 11; -const MODELS_COLUMN_MAP = 0; -const MODELS_DATA_TYPES = 4; -const MODELS_DATA_TYPES_BIND = 9; -const MODELS_DATA_TYPES_NUMERIC = 5; -const MODELS_DATE_AT = 6; -const MODELS_DATE_IN = 7; -const MODELS_DEFAULT_VALUES = 12; -const MODELS_EMPTY_STRING_VALUES = 13; -const MODELS_IDENTITY_COLUMN = 8; -const MODELS_NON_PRIMARY_KEY = 2; -const MODELS_NOT_NULL = 3; -const MODELS_PRIMARY_KEY = 1; -const MODELS_REVERSE_COLUMN_MAP = 1; -``` - -## Properties -```php -/** - * @var CacheAdapterInterface - */ -protected adapter; - -// -protected columnMap; - -// -protected container; - -// -protected metaData; - -// -protected strategy; - -``` - -## Methods -```php -public function getAttributes( ModelInterface $model ): array; -``` -Returns table attributes names (fields) - -```php -print_r( - $metaData->getAttributes( - new Robots() - ) -); -``` - - -```php -public function getAutomaticCreateAttributes( ModelInterface $model ): array; -``` -Returns attributes that must be ignored from the INSERT SQL generation - -```php -print_r( - $metaData->getAutomaticCreateAttributes( - new Robots() - ) -); -``` - - -```php -public function getAutomaticUpdateAttributes( ModelInterface $model ): array; -``` -Returns attributes that must be ignored from the UPDATE SQL generation - -```php -print_r( - $metaData->getAutomaticUpdateAttributes( - new Robots() - ) -); -``` - - -```php -public function getBindTypes( ModelInterface $model ): array; -``` -Returns attributes and their bind data types - -```php -print_r( - $metaData->getBindTypes( - new Robots() - ) -); -``` - - -```php -public function getColumnMap( ModelInterface $model ): array; -``` -Returns the column map if any - -```php -print_r( - $metaData->getColumnMap( - new Robots() - ) -); -``` - - -```php -public function getDI(): DiInterface; -``` -Returns the DependencyInjector container - - -```php -public function getDataTypes( ModelInterface $model ): array; -``` -Returns attributes and their data types - -```php -print_r( - $metaData->getDataTypes( - new Robots() - ) -); -``` - - -```php -public function getDataTypesNumeric( ModelInterface $model ): array; -``` -Returns attributes which types are numerical - -```php -print_r( - $metaData->getDataTypesNumeric( - new Robots() - ) -); -``` - - -```php -public function getDefaultValues( ModelInterface $model ): array; -``` -Returns attributes (which have default values) and their default values - -```php -print_r( - $metaData->getDefaultValues( - new Robots() - ) -); -``` - - -```php -public function getEmptyStringAttributes( ModelInterface $model ): array; -``` -Returns attributes allow empty strings - -```php -print_r( - $metaData->getEmptyStringAttributes( - new Robots() - ) -); -``` - - -```php -public function getIdentityField( ModelInterface $model ): string; -``` -Returns the name of identity field (if one is present) - -```php -print_r( - $metaData->getIdentityField( - new Robots() - ) -); -``` - -@param Phalcon\Mvc\ModelInterface model -@return string - - -```php -public function getNonPrimaryKeyAttributes( ModelInterface $model ): array; -``` -Returns an array of fields which are not part of the primary key - -```php -print_r( - $metaData->getNonPrimaryKeyAttributes( - new Robots() - ) -); -``` - - -```php -public function getNotNullAttributes( ModelInterface $model ): array; -``` -Returns an array of not null attributes - -```php -print_r( - $metaData->getNotNullAttributes( - new Robots() - ) -); -``` - - -```php -public function getPrimaryKeyAttributes( ModelInterface $model ): array; -``` -Returns an array of fields which are part of the primary key - -```php -print_r( - $metaData->getPrimaryKeyAttributes( - new Robots() - ) -); -``` - - -```php -public function getReverseColumnMap( ModelInterface $model ): array; -``` -Returns the reverse column map if any - -```php -print_r( - $metaData->getReverseColumnMap( - new Robots() - ) -); -``` - - -```php -public function getStrategy(): StrategyInterface; -``` -Return the strategy to obtain the meta-data - - -```php -public function hasAttribute( ModelInterface $model, string $attribute ): bool; -``` -Check if a model has certain attribute - -```php -var_dump( - $metaData->hasAttribute( - new Robots(), - "name" - ) -); -``` - - -```php -public function isEmpty(): bool; -``` -Checks if the internal meta-data container is empty - -```php -var_dump( - $metaData->isEmpty() -); -``` - - -```php -public function read( string $key ): array | null; -``` -Reads metadata from the adapter - - -```php -final public function readColumnMap( ModelInterface $model ): array | null; -``` -Reads the ordered/reversed column map for certain model - -```php -print_r( - $metaData->readColumnMap( - new Robots() - ) -); -``` - - -```php -final public function readColumnMapIndex( ModelInterface $model, int $index ); -``` -Reads column-map information for certain model using a MODEL_* constant - -```php -print_r( - $metaData->readColumnMapIndex( - new Robots(), - MetaData::MODELS_REVERSE_COLUMN_MAP - ) -); -``` - - -```php -final public function readMetaData( ModelInterface $model ): array; -``` -Reads the complete meta-data for certain model - -```php -print_r( - $metaData->readMetaData( - new Robots() - ) -); -``` - - -```php -final public function readMetaDataIndex( ModelInterface $model, int $index ); -``` -Reads meta-data for certain model - -```php -print_r( - $metaData->readMetaDataIndex( - new Robots(), - 0 - ) -); -``` - - -```php -public function reset(): void; -``` -Resets internal meta-data in order to regenerate it - -```php -$metaData->reset(); -``` - - -```php -public function setAutomaticCreateAttributes( ModelInterface $model, array $attributes ): void; -``` -Set the attributes that must be ignored from the INSERT SQL generation - -```php -$metaData->setAutomaticCreateAttributes( - new Robots(), - [ - "created_at" => true, - ] -); -``` - - -```php -public function setAutomaticUpdateAttributes( ModelInterface $model, array $attributes ): void; -``` -Set the attributes that must be ignored from the UPDATE SQL generation - -```php -$metaData->setAutomaticUpdateAttributes( - new Robots(), - [ - "modified_at" => true, - ] -); -``` - - -```php -public function setDI( DiInterface $container ): void; -``` -Sets the DependencyInjector container - - -```php -public function setEmptyStringAttributes( ModelInterface $model, array $attributes ): void; -``` -Set the attributes that allow empty string values - -```php -$metaData->setEmptyStringAttributes( - new Robots(), - [ - "name" => true, - ] -); -``` - - -```php -public function setStrategy( StrategyInterface $strategy ): void; -``` -Set the meta-data extraction strategy - - -```php -public function write( string $key, array $data ): void; -``` -Writes the metadata to adapter - - -```php -final public function writeMetaDataIndex( ModelInterface $model, int $index, mixed $data ): void; -``` -Writes meta-data for certain model using a MODEL_* constant - -```php -print_r( - $metaData->writeColumnMapIndex( - new Robots(), - MetaData::MODELS_REVERSE_COLUMN_MAP, - [ - "leName" => "name", - ] - ) -); -``` - - -```php -final protected function initialize( ModelInterface $model, mixed $key, mixed $table, mixed $schema ); -``` -Initialize the metadata for certain table - - - - -

        Class Phalcon\Mvc\Model\MetaData\Apcu

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/metadata/apcu.zep) - -| Namespace | Phalcon\Mvc\Model\MetaData | -| Uses | Phalcon\Mvc\Model\MetaData, Phalcon\Mvc\Model\Exception, Phalcon\Cache\AdapterFactory | -| Extends | MetaData | - -Phalcon\Mvc\Model\MetaData\Apcu - -Stores model meta-data in the APCu cache. Data will erased if the web server is restarted - -By default meta-data is stored for 48 hours (172800 seconds) - -You can query the meta-data by printing apcu_fetch('$PMM$') or apcu_fetch('$PMM$my-app-id') - -```php -$metaData = new \Phalcon\Mvc\Model\MetaData\Apcu( - [ - "prefix" => "my-app-id", - "lifetime" => 86400, - ] -); -``` - - -## Methods -```php -public function __construct( AdapterFactory $factory, array $options = null ): void; -``` -Phalcon\Mvc\Model\MetaData\Apcu constructor - -@param array options - - - - -

        Class Phalcon\Mvc\Model\MetaData\Libmemcached

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/metadata/libmemcached.zep) - -| Namespace | Phalcon\Mvc\Model\MetaData | -| Uses | Phalcon\Helper\Arr, Phalcon\Mvc\Model\Exception, Phalcon\Mvc\Model\MetaData, Phalcon\Cache\AdapterFactory | -| Extends | MetaData | - -Phalcon\Mvc\Model\MetaData\Libmemcached - -Stores model meta-data in the Memcache. - -By default meta-data is stored for 48 hours (172800 seconds) - - -## Methods -```php -public function __construct( AdapterFactory $factory, array $options = [] ): void; -``` -Phalcon\Mvc\Model\MetaData\Libmemcached constructor - -@param array options - - -```php -public function reset(): void; -``` -Flush Memcache data and resets internal meta-data in order to regenerate it - - - - -

        Class Phalcon\Mvc\Model\MetaData\Memory

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/metadata/memory.zep) - -| Namespace | Phalcon\Mvc\Model\MetaData | -| Uses | Phalcon\Mvc\Model\MetaData, Phalcon\Mvc\Model\Exception | -| Extends | MetaData | - -Phalcon\Mvc\Model\MetaData\Memory - -Stores model meta-data in memory. Data will be erased when the request finishes - - - -## Methods -```php -public function __construct( mixed $options = null ): void; -``` -Phalcon\Mvc\Model\MetaData\Memory constructor - -@param array options - - -```php -public function read( string $key ): array | null; -``` -Reads the meta-data from temporal memory - - -```php -public function write( string $key, array $data ): void; -``` -Writes the meta-data to temporal memory - - - - -

        Class Phalcon\Mvc\Model\MetaData\Redis

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/metadata/redis.zep) - -| Namespace | Phalcon\Mvc\Model\MetaData | -| Uses | Phalcon\Mvc\Model\MetaData, Phalcon\Cache\AdapterFactory | -| Extends | MetaData | - -Phalcon\Mvc\Model\MetaData\Redis - -Stores model meta-data in the Redis. - -By default meta-data is stored for 48 hours (172800 seconds) - -```php -use Phalcon\Mvc\Model\MetaData\Redis; - -$metaData = new Redis( - [ - "host" => "127.0.0.1", - "port" => 6379, - "persistent" => 0, - "lifetime" => 172800, - "index" => 2, - ] -); -``` - - -## Methods -```php -public function __construct( AdapterFactory $factory, array $options = [] ): void; -``` -Phalcon\Mvc\Model\MetaData\Redis constructor - -@param array options - - -```php -public function reset(): void; -``` -Flush Redis data and resets internal meta-data in order to regenerate it - - - - -

        Class Phalcon\Mvc\Model\MetaData\Strategy\Annotations

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/metadata/strategy/annotations.zep) - -| Namespace | Phalcon\Mvc\Model\MetaData\Strategy | -| Uses | Phalcon\Di\DiInterface, Phalcon\Db\Column, Phalcon\Mvc\ModelInterface, Phalcon\Mvc\Model\MetaData, Phalcon\Mvc\Model\MetaData\StrategyInterface, Phalcon\Mvc\Model\Exception | -| Implements | StrategyInterface | - -This file is part of the Phalcon Framework. - -(c) Phalcon Team - -For the full copyright and license information, please view the LICENSE.txt -file that was distributed with this source code. - - -## Methods -```php -final public function getColumnMaps( ModelInterface $model, DiInterface $container ): array; -``` -Read the model's column map, this can't be inferred - - -```php -final public function getMetaData( ModelInterface $model, DiInterface $container ): array; -``` -The meta-data is obtained by reading the column descriptions from the database information schema - - - - -

        Class Phalcon\Mvc\Model\MetaData\Strategy\Introspection

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/metadata/strategy/introspection.zep) - -| Namespace | Phalcon\Mvc\Model\MetaData\Strategy | -| Uses | Phalcon\Di\DiInterface, Phalcon\Db\Adapter\AdapterInterface, Phalcon\Db\Column, Phalcon\Mvc\ModelInterface, Phalcon\Mvc\Model\Exception, Phalcon\Mvc\Model\MetaData, Phalcon\Mvc\Model\MetaData\StrategyInterface | -| Implements | StrategyInterface | - -Phalcon\Mvc\Model\MetaData\Strategy\Introspection - -Queries the table meta-data in order to introspect the model's metadata - - -## Methods -```php -final public function getColumnMaps( ModelInterface $model, DiInterface $container ): array; -``` -Read the model's column map, this can't be inferred - - -```php -final public function getMetaData( ModelInterface $model, DiInterface $container ): array; -``` -The meta-data is obtained by reading the column descriptions from the database information schema - - - - -

        Interface Phalcon\Mvc\Model\MetaData\StrategyInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/metadata/strategyinterface.zep) - -| Namespace | Phalcon\Mvc\Model\MetaData | -| Uses | Phalcon\Mvc\ModelInterface, Phalcon\Di\DiInterface | - -This file is part of the Phalcon Framework. - -(c) Phalcon Team - -For the full copyright and license information, please view the LICENSE.txt -file that was distributed with this source code. - - -## Methods -```php -public function getColumnMaps( ModelInterface $model, DiInterface $container ): array; -``` -Read the model's column map, this can't be inferred - -@todo Not implemented - - -```php -public function getMetaData( ModelInterface $model, DiInterface $container ): array; -``` -The meta-data is obtained by reading the column descriptions from the database information schema - - - - -

        Class Phalcon\Mvc\Model\MetaData\Stream

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/metadata/stream.zep) - -| Namespace | Phalcon\Mvc\Model\MetaData | -| Uses | Phalcon\Mvc\Model\MetaData, Phalcon\Mvc\Model\Exception | -| Extends | MetaData | - -Phalcon\Mvc\Model\MetaData\Stream - -Stores model meta-data in PHP files. - -```php -$metaData = new \Phalcon\Mvc\Model\MetaData\Files( - [ - "metaDataDir" => "app/cache/metadata/", - ] -); -``` - - -## Properties -```php -// -protected metaDataDir = ./; - -``` - -## Methods -```php -public function __construct( mixed $options = null ): void; -``` -Phalcon\Mvc\Model\MetaData\Files constructor - -@param array options - - -```php -public function read( string $key ): array | null; -``` -Reads meta-data from files - - -```php -public function write( string $key, array $data ): void; -``` -Writes the meta-data to files - - - - -

        Interface Phalcon\Mvc\Model\MetaDataInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/metadatainterface.zep) - -| Namespace | Phalcon\Mvc\Model | -| Uses | Phalcon\Mvc\ModelInterface, Phalcon\Mvc\Model\MetaData\StrategyInterface | - -Phalcon\Mvc\Model\MetaDataInterface - -Interface for Phalcon\Mvc\Model\MetaData - - -## Methods -```php -public function getAttributes( ModelInterface $model ): array; -``` -Returns table attributes names (fields) - - -```php -public function getAutomaticCreateAttributes( ModelInterface $model ): array; -``` -Returns attributes that must be ignored from the INSERT SQL generation - - -```php -public function getAutomaticUpdateAttributes( ModelInterface $model ): array; -``` -Returns attributes that must be ignored from the UPDATE SQL generation - - -```php -public function getBindTypes( ModelInterface $model ): array; -``` -Returns attributes and their bind data types - - -```php -public function getColumnMap( ModelInterface $model ): array; -``` -Returns the column map if any - - -```php -public function getDataTypes( ModelInterface $model ): array; -``` -Returns attributes and their data types - - -```php -public function getDataTypesNumeric( ModelInterface $model ): array; -``` -Returns attributes which types are numerical - - -```php -public function getDefaultValues( ModelInterface $model ): array; -``` -Returns attributes (which have default values) and their default values - - -```php -public function getEmptyStringAttributes( ModelInterface $model ): array; -``` -Returns attributes allow empty strings - - -```php -public function getIdentityField( ModelInterface $model ): string; -``` -Returns the name of identity field (if one is present) - - -```php -public function getNonPrimaryKeyAttributes( ModelInterface $model ): array; -``` -Returns an array of fields which are not part of the primary key - - -```php -public function getNotNullAttributes( ModelInterface $model ): array; -``` -Returns an array of not null attributes - - -```php -public function getPrimaryKeyAttributes( ModelInterface $model ): array; -``` -Returns an array of fields which are part of the primary key - - -```php -public function getReverseColumnMap( ModelInterface $model ): array; -``` -Returns the reverse column map if any - - -```php -public function getStrategy(): StrategyInterface; -``` -Return the strategy to obtain the meta-data - - -```php -public function hasAttribute( ModelInterface $model, string $attribute ): bool; -``` -Check if a model has certain attribute - - -```php -public function isEmpty(): bool; -``` -Checks if the internal meta-data container is empty - - -```php -public function read( string $key ): array | null; -``` -Reads meta-data from the adapter - - -```php -public function readColumnMap( ModelInterface $model ): array | null; -``` -Reads the ordered/reversed column map for certain model - - -```php -public function readColumnMapIndex( ModelInterface $model, int $index ); -``` -Reads column-map information for certain model using a MODEL_* constant - - -```php -public function readMetaData( ModelInterface $model ): array; -``` -Reads meta-data for certain model - - -```php -public function readMetaDataIndex( ModelInterface $model, int $index ): mixed; -``` -Reads meta-data for certain model using a MODEL_* constant - - -```php -public function reset(); -``` -Resets internal meta-data in order to regenerate it - - -```php -public function setAutomaticCreateAttributes( ModelInterface $model, array $attributes ); -``` -Set the attributes that must be ignored from the INSERT SQL generation - - -```php -public function setAutomaticUpdateAttributes( ModelInterface $model, array $attributes ); -``` -Set the attributes that must be ignored from the UPDATE SQL generation - - -```php -public function setEmptyStringAttributes( ModelInterface $model, array $attributes ): void; -``` -Set the attributes that allow empty string values - - -```php -public function setStrategy( StrategyInterface $strategy ); -``` -Set the meta-data extraction strategy - - -```php -public function write( string $key, array $data ): void; -``` -Writes meta-data to the adapter - - -```php -public function writeMetaDataIndex( ModelInterface $model, int $index, mixed $data ); -``` -Writes meta-data for certain model using a MODEL_* constant - - - - -

        Class Phalcon\Mvc\Model\Query

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/query.zep) - -| Namespace | Phalcon\Mvc\Model | -| Uses | Phalcon\Db\Column, Phalcon\Db\RawValue, Phalcon\Db\ResultInterface, Phalcon\Db\Adapter\AdapterInterface, Phalcon\Di\DiInterface, Phalcon\Helper\Arr, Phalcon\Mvc\Model\Row, Phalcon\Mvc\ModelInterface, Phalcon\Mvc\Model\Exception, Phalcon\Mvc\Model\ManagerInterface, Phalcon\Mvc\Model\QueryInterface, Phalcon\Mvc\Model\Query\Status, Phalcon\Mvc\Model\Resultset\Complex, Phalcon\Mvc\Model\Query\StatusInterface, Phalcon\Mvc\Model\ResultsetInterface, Phalcon\Mvc\Model\Resultset\Simple, Phalcon\Di\InjectionAwareInterface, Phalcon\Mvc\Model\RelationInterface, Phalcon\Mvc\Model\TransactionInterface, Phalcon\Db\DialectInterface, Phalcon\Cache\Adapter\AdapterInterface | -| Implements | QueryInterface, InjectionAwareInterface | - -Phalcon\Mvc\Model\Query - -This class takes a PHQL intermediate representation and executes it. - -```php -$phql = "SELECT c.price*0.16 AS taxes, c.* FROM Cars AS c JOIN Brands AS b - WHERE b.name = :name: ORDER BY c.name"; - -$result = $manager->executeQuery( - $phql, - [ - "name" => "Lamborghini", - ] -); - -foreach ($result as $row) { - echo "Name: ", $row->cars->name, "\n"; - echo "Price: ", $row->cars->price, "\n"; - echo "Taxes: ", $row->taxes, "\n"; -} - -// with transaction -use Phalcon\Mvc\Model\Query; -use Phalcon\Mvc\Model\Transaction; - -// $di needs to have the service "db" registered for this to work -$di = Phalcon\Di\FactoryDefault::getDefault(); - -$phql = 'SELECTFROM robot'; - -$myTransaction = new Transaction($di); -$myTransaction->begin(); - -$newRobot = new Robot(); -$newRobot->setTransaction($myTransaction); -$newRobot->type = "mechanical"; -$newRobot->name = "Astro Boy"; -$newRobot->year = 1952; -$newRobot->save(); - -$queryWithTransaction = new Query($phql, $di); -$queryWithTransaction->setTransaction($myTransaction); - -$resultWithEntries = $queryWithTransaction->execute(); - -$queryWithOutTransaction = new Query($phql, $di); -$resultWithOutEntries = $queryWithTransaction->execute(); -``` - - -## Constants -```php -const TYPE_DELETE = 303; -const TYPE_INSERT = 306; -const TYPE_SELECT = 309; -const TYPE_UPDATE = 300; -``` - -## Properties -```php -// -protected ast; - -// -protected bindParams; - -// -protected bindTypes; - -// -protected cache; - -// -protected cacheOptions; - -// -protected container; - -// -protected enableImplicitJoins; - -// -protected intermediate; - -// -protected manager; - -// -protected metaData; - -// -protected models; - -// -protected modelsInstances; - -// -protected nestingLevel = -1; - -// -protected phql; - -// -protected sharedLock; - -// -protected sqlAliases; - -// -protected sqlAliasesModels; - -// -protected sqlAliasesModelsInstances; - -// -protected sqlColumnAliases; - -// -protected sqlModelsAliases; - -// -protected type; - -// -protected uniqueRow; - -// -static protected _irPhqlCache; - -/** - * TransactionInterface so that the query can wrap a transaction - * around batch updates and intermediate selects within the transaction. - * however if a model got a transaction set inside it will use the local - * transaction instead of this one - */ -protected _transaction; - -``` - -## Methods -```php -public function __construct( string $phql = null, DiInterface $container = null, array $options = [] ): void; -``` -Phalcon\Mvc\Model\Query constructor - - -```php -public function cache( array $cacheOptions ): QueryInterface; -``` -Sets the cache parameters of the query - - -```php -public function execute( array $bindParams = [], array $bindTypes = [] ); -``` -Executes a parsed PHQL statement - -@return mixed - - -```php -public function getBindParams(): array; -``` -Returns default bind params - - -```php -public function getBindTypes(): array; -``` -Returns default bind types - - -```php -public function getCache(): AdapterInterface; -``` -Returns the current cache backend instance - - -```php -public function getCacheOptions(): array; -``` -Returns the current cache options - - -```php -public function getDI(): DiInterface; -``` -Returns the dependency injection container - - -```php -public function getIntermediate(): array; -``` -Returns the intermediate representation of the PHQL statement - - -```php -public function getSingleResult( array $bindParams = [], array $bindTypes = [] ): ModelInterface; -``` -Executes the query returning the first result - - -```php -public function getSql(): array; -``` -Returns the SQL to be generated by the internal PHQL (only works in -SELECT statements) - - -```php -public function getType(): int; -``` -Gets the type of PHQL statement executed - - -```php -public function getUniqueRow(): bool; -``` -Check if the query is programmed to get only the first row in the -resultset - - -```php -public function get_transaction() -``` - - -```php -public function parse(): array; -``` -Parses the intermediate code produced by Phalcon\Mvc\Model\Query\Lang -generating another intermediate representation that could be executed by -Phalcon\Mvc\Model\Query - - -```php -public function setBindParams( array $bindParams, bool $merge = bool ): QueryInterface; -``` -Set default bind parameters - - -```php -public function setBindTypes( array $bindTypes, bool $merge = bool ): QueryInterface; -``` -Set default bind parameters - - -```php -public function setDI( DiInterface $container ): void; -``` -Sets the dependency injection container - - -```php -public function setIntermediate( array $intermediate ): QueryInterface; -``` -Allows to set the IR to be executed - - -```php -public function setSharedLock( bool $sharedLock = bool ): QueryInterface; -``` -Set SHARED LOCK clause - - -```php -public function setTransaction( TransactionInterface $transaction ): QueryInterface; -``` -allows to wrap a transaction around all queries - - -```php -public function setType( int $type ): QueryInterface; -``` -Sets the type of PHQL statement to be executed - - -```php -public function setUniqueRow( bool $uniqueRow ): QueryInterface; -``` -Tells to the query if only the first row in the resultset must be -returned - - -```php -final protected function _executeDelete( array $intermediate, array $bindParams, array $bindTypes ): StatusInterface; -``` -Executes the DELETE intermediate representation producing a -Phalcon\Mvc\Model\Query\Status - - -```php -final protected function _executeInsert( array $intermediate, array $bindParams, array $bindTypes ): StatusInterface; -``` -Executes the INSERT intermediate representation producing a -Phalcon\Mvc\Model\Query\Status - - -```php -final protected function _executeSelect( array $intermediate, array $bindParams, array $bindTypes, bool $simulate = bool ): ResultsetInterface | array; -``` -Executes the SELECT intermediate representation producing a -Phalcon\Mvc\Model\Resultset - - -```php -final protected function _executeUpdate( array $intermediate, array $bindParams, array $bindTypes ): StatusInterface; -``` -Executes the UPDATE intermediate representation producing a -Phalcon\Mvc\Model\Query\Status - - -```php -final protected function _getCallArgument( array $argument ): array; -``` -Resolves an expression in a single call argument - - -```php -final protected function _getCaseExpression( array $expr ): array; -``` -Resolves an expression in a single call argument - - -```php -final protected function _getExpression( array $expr, bool $quoting = bool ): string; -``` -Resolves an expression from its intermediate code into a string - - -```php -final protected function _getFunctionCall( array $expr ): array; -``` -Resolves an expression in a single call argument - - -```php -final protected function _getGroupClause( array $group ): array; -``` -Returns a processed group clause for a SELECT statement - - -```php -final protected function _getJoin( ManagerInterface $manager, array $join ): array; -``` -Resolves a JOIN clause checking if the associated models exist - - -```php -final protected function _getJoinType( array $join ): string; -``` -Resolves a JOIN type - - -```php -final protected function _getJoins( array $select ): array; -``` -Processes the JOINs in the query returning an internal representation for -the database dialect - - -```php -final protected function _getLimitClause( array $limitClause ): array; -``` -Returns a processed limit clause for a SELECT statement - - -```php -final protected function _getMultiJoin( string $joinType, mixed $joinSource, string $modelAlias, string $joinAlias, RelationInterface $relation ): array; -``` -Resolves joins involving many-to-many relations - -@param string joinSource - - -```php -final protected function _getOrderClause( mixed $order ): array; -``` -Returns a processed order clause for a SELECT statement - -@param array|string order - - -```php -final protected function _getQualified( array $expr ): array; -``` -Replaces the model's name to its source name in a qualified-name -expression - - -```php -final protected function _getRelatedRecords( ModelInterface $model, array $intermediate, array $bindParams, array $bindTypes ): ResultsetInterface; -``` -Query the records on which the UPDATE/DELETE operation will be done - - -```php -final protected function _getSelectColumn( array $column ): array; -``` -Resolves a column from its intermediate representation into an array -used to determine if the resultset produced is simple or complex - - -```php -final protected function _getSingleJoin( string $joinType, mixed $joinSource, string $modelAlias, string $joinAlias, RelationInterface $relation ): array; -``` -Resolves joins involving has-one/belongs-to/has-many relations - -@param string joinSource - - -```php -final protected function _getTable( ManagerInterface $manager, array $qualifiedName ); -``` -Resolves a table in a SELECT statement checking if the model exists - -@return string - - -```php -final protected function _prepareDelete(): array; -``` -Analyzes a DELETE intermediate code and produces an array to be executed -later - - -```php -final protected function _prepareInsert(): array; -``` -Analyzes an INSERT intermediate code and produces an array to be executed -later - - -```php -final protected function _prepareSelect( mixed $ast = null, bool $merge = bool ): array; -``` -Analyzes a SELECT intermediate code and produces an array to be executed later - - -```php -final protected function _prepareUpdate(): array; -``` -Analyzes an UPDATE intermediate code and produces an array to be executed -later - - -```php -protected function getReadConnection( ModelInterface $model, array $intermediate = null, array $bindParams = [], array $bindTypes = [] ): AdapterInterface; -``` -Gets the read connection from the model if there is no transaction set -inside the query object - - -```php -protected function getWriteConnection( ModelInterface $model, array $intermediate = null, array $bindParams = [], array $bindTypes = [] ): AdapterInterface; -``` -Gets the write connection from the model if there is no transaction -inside the query object - - - - -

        Class Phalcon\Mvc\Model\Query\Builder

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/query/builder.zep) - -| Namespace | Phalcon\Mvc\Model\Query | -| Uses | Phalcon\Di, Phalcon\Db\Column, Phalcon\Di\DiInterface, Phalcon\Helper\Arr, Phalcon\Mvc\Model\Exception, Phalcon\Di\InjectionAwareInterface, Phalcon\Mvc\Model\QueryInterface, Phalcon\Mvc\Model\Query\BuilderInterface | -| Implements | BuilderInterface, InjectionAwareInterface | - -Phalcon\Mvc\Model\Query\Builder - -Helps to create PHQL queries using an OO interface - -```php -$params = [ - "models" => [ - Users::class, - ], - "columns" => ["id", "name", "status"], - "conditions" => [ - [ - "created > :min: AND created < :max:", - [ - "min" => "2013-01-01", - "max" => "2014-01-01", - ], - [ - "min" => PDO::PARAM_STR, - "max" => PDO::PARAM_STR, - ], - ], - ], - // or "conditions" => "created > '2013-01-01' AND created < '2014-01-01'", - "group" => ["id", "name"], - "having" => "name = 'Kamil'", - "order" => ["name", "id"], - "limit" => 20, - "offset" => 20, - // or "limit" => [20, 20], -]; - -$queryBuilder = new \Phalcon\Mvc\Model\Query\Builder($params); -``` - - -## Properties -```php -// -protected bindParams; - -// -protected bindTypes; - -// -protected columns; - -// -protected conditions; - -// -protected container; - -// -protected distinct; - -// -protected forUpdate; - -/** - * @var array - */ -protected group; - -// -protected having; - -// -protected hiddenParamNumber = 0; - -// -protected joins; - -// -protected limit; - -// -protected models; - -// -protected offset; - -// -protected order; - -// -protected sharedLock; - -``` - -## Methods -```php -public function __construct( mixed $params = null, DiInterface $container = null ): void; -``` -Phalcon\Mvc\Model\Query\Builder constructor - - -```php -public function addFrom( string $model, string $alias = null ): BuilderInterface; -``` -Add a model to take part of the query - -```php -// Load data from models Robots -$builder->addFrom( - Robots::class -); - -// Load data from model 'Robots' using 'r' as alias in PHQL -$builder->addFrom( - Robots::class, - "r" -); -``` - - -```php -public function andHaving( string $conditions, array $bindParams = [], array $bindTypes = [] ): BuilderInterface; -``` -Appends a condition to the current HAVING conditions clause using a AND operator - -```php -$builder->andHaving("SUM(Robots.price) > 0"); - -$builder->andHaving( - "SUM(Robots.price) > :sum:", - [ - "sum" => 100, - ] -); -``` - - -```php -public function andWhere( string $conditions, array $bindParams = [], array $bindTypes = [] ): BuilderInterface; -``` -Appends a condition to the current WHERE conditions using a AND operator - -```php -$builder->andWhere("name = 'Peter'"); - -$builder->andWhere( - "name = :name: AND id > :id:", - [ - "name" => "Peter", - "id" => 100, - ] -); -``` - - -```php -final public function autoescape( string $identifier ): string; -``` -Automatically escapes identifiers but only if they need to be escaped. - - -```php -public function betweenHaving( string $expr, mixed $minimum, mixed $maximum, string $operator = static-constant-access ): BuilderInterface; -``` -Appends a BETWEEN condition to the current HAVING conditions clause - -```php -$builder->betweenHaving("SUM(Robots.price)", 100.25, 200.50); -``` - - -```php -public function betweenWhere( string $expr, mixed $minimum, mixed $maximum, string $operator = static-constant-access ): BuilderInterface; -``` -Appends a BETWEEN condition to the current WHERE conditions - -```php -$builder->betweenWhere("price", 100.25, 200.50); -``` - - -```php -public function columns( mixed $columns ): BuilderInterface; -``` -Sets the columns to be queried - -```php -$builder->columns("id, name"); - -$builder->columns( - [ - "id", - "name", - ] -); - -$builder->columns( - [ - "name", - "number" => "COUNT(*)", - ] -); -``` - - -```php -public function distinct( mixed $distinct ): BuilderInterface; -``` -Sets SELECT DISTINCT / SELECT ALL flag - -```php -$builder->distinct("status"); -$builder->distinct(null); -``` - - -```php -public function forUpdate( bool $forUpdate ): BuilderInterface; -``` -Sets a FOR UPDATE clause - -```php -$builder->forUpdate(true); -``` - - -```php -public function from( mixed $models ): BuilderInterface; -``` -Sets the models who makes part of the query - -```php -$builder->from( - Robots::class -); - -$builder->from( - [ - Robots::class, - RobotsParts::class, - ] -); - -$builder->from( - [ - "r" => Robots::class, - "rp" => RobotsParts::class, - ] -); -``` - - -```php -public function getBindParams(): array; -``` -Returns default bind params - - -```php -public function getBindTypes(): array; -``` -Returns default bind types - - -```php -public function getColumns(); -``` -Return the columns to be queried - -@return string|array - - -```php -public function getDI(): DiInterface; -``` -Returns the DependencyInjector container - - -```php -public function getDistinct(): bool; -``` -Returns SELECT DISTINCT / SELECT ALL flag - - -```php -public function getFrom(); -``` -Return the models who makes part of the query - -@return string|array - - -```php -public function getGroupBy(): array; -``` -Returns the GROUP BY clause - - -```php -public function getHaving(): string; -``` -Return the current having clause - - -```php -public function getJoins(): array; -``` -Return join parts of the query - - -```php -public function getLimit(); -``` -Returns the current LIMIT clause - -@return string|array - - -```php -public function getModels(): string | array | null; -``` -Returns the models involved in the query - - -```php -public function getOffset(): int; -``` -Returns the current OFFSET clause - - -```php -public function getOrderBy(); -``` -Returns the set ORDER BY clause - -@return string|array - - -```php -final public function getPhql(): string; -``` -Returns a PHQL statement built based on the builder parameters - - -```php -public function getQuery(): QueryInterface; -``` -Returns the query built - - -```php -public function getWhere(); -``` -Return the conditions for the query - -@return string|array - - -```php -public function groupBy( mixed $group ): BuilderInterface; -``` -Sets a GROUP BY clause - -```php -$builder->groupBy( - [ - "Robots.name", - ] -); -``` - -@param string|array group - - -```php -public function having( mixed $conditions, array $bindParams = [], array $bindTypes = [] ): BuilderInterface; -``` -Sets the HAVING condition clause - -```php -$builder->having("SUM(Robots.price) > 0"); - -$builder->having( - "SUM(Robots.price) > :sum:", - [ - "sum" => 100, - ] -); -``` - - -```php -public function inHaving( string $expr, array $values, string $operator = static-constant-access ): BuilderInterface; -``` -Appends an IN condition to the current HAVING conditions clause - -```php -$builder->inHaving("SUM(Robots.price)", [100, 200]); -``` - - -```php -public function inWhere( string $expr, array $values, string $operator = static-constant-access ): BuilderInterface; -``` -Appends an IN condition to the current WHERE conditions - -```php -$builder->inWhere( - "id", - [1, 2, 3] -); -``` - - -```php -public function innerJoin( string $model, string $conditions = null, string $alias = null ): BuilderInterface; -``` -Adds an INNER join to the query - -```php -// Inner Join model 'Robots' with automatic conditions and alias -$builder->innerJoin( - Robots::class -); - -// Inner Join model 'Robots' specifying conditions -$builder->innerJoin( - Robots::class, - "Robots.id = RobotsParts.robots_id" -); - -// Inner Join model 'Robots' specifying conditions and alias -$builder->innerJoin( - Robots::class, - "r.id = RobotsParts.robots_id", - "r" -); -``` - - -```php -public function join( string $model, string $conditions = null, string $alias = null, string $type = null ): BuilderInterface; -``` -Adds an :type: join (by default type - INNER) to the query - -```php -// Inner Join model 'Robots' with automatic conditions and alias -$builder->join( - Robots::class -); - -// Inner Join model 'Robots' specifying conditions -$builder->join( - Robots::class, - "Robots.id = RobotsParts.robots_id" -); - -// Inner Join model 'Robots' specifying conditions and alias -$builder->join( - Robots::class, - "r.id = RobotsParts.robots_id", - "r" -); - -// Left Join model 'Robots' specifying conditions, alias and type of join -$builder->join( - Robots::class, - "r.id = RobotsParts.robots_id", - "r", - "LEFT" -); -``` - - -```php -public function leftJoin( string $model, string $conditions = null, string $alias = null ): BuilderInterface; -``` -Adds a LEFT join to the query - -```php -$builder->leftJoin( - Robots::class, - "r.id = RobotsParts.robots_id", - "r" -); -``` - - -```php -public function limit( int $limit, mixed $offset = null ): BuilderInterface; -``` -Sets a LIMIT clause, optionally an offset clause - -```php -$builder->limit(100); -$builder->limit(100, 20); -$builder->limit("100", "20"); -``` - - -```php -public function notBetweenHaving( string $expr, mixed $minimum, mixed $maximum, string $operator = static-constant-access ): BuilderInterface; -``` -Appends a NOT BETWEEN condition to the current HAVING conditions clause - -```php -$builder->notBetweenHaving("SUM(Robots.price)", 100.25, 200.50); -``` - - -```php -public function notBetweenWhere( string $expr, mixed $minimum, mixed $maximum, string $operator = static-constant-access ): BuilderInterface; -``` -Appends a NOT BETWEEN condition to the current WHERE conditions - -```php -$builder->notBetweenWhere("price", 100.25, 200.50); -``` - - -```php -public function notInHaving( string $expr, array $values, string $operator = static-constant-access ): BuilderInterface; -``` -Appends a NOT IN condition to the current HAVING conditions clause - -```php -$builder->notInHaving("SUM(Robots.price)", [100, 200]); -``` - - -```php -public function notInWhere( string $expr, array $values, string $operator = static-constant-access ): BuilderInterface; -``` -Appends a NOT IN condition to the current WHERE conditions - -```php -$builder->notInWhere("id", [1, 2, 3]); -``` - - -```php -public function offset( int $offset ): BuilderInterface; -``` -Sets an OFFSET clause - -```php -$builder->offset(30); -``` - - -```php -public function orHaving( string $conditions, array $bindParams = [], array $bindTypes = [] ): BuilderInterface; -``` -Appends a condition to the current HAVING conditions clause using an OR operator - -```php -$builder->orHaving("SUM(Robots.price) > 0"); - -$builder->orHaving( - "SUM(Robots.price) > :sum:", - [ - "sum" => 100, - ] -); -``` - - -```php -public function orWhere( string $conditions, array $bindParams = [], array $bindTypes = [] ): BuilderInterface; -``` -Appends a condition to the current conditions using an OR operator - -```php -$builder->orWhere("name = 'Peter'"); - -$builder->orWhere( - "name = :name: AND id > :id:", - [ - "name" => "Peter", - "id" => 100, - ] -); -``` - - -```php -public function orderBy( mixed $orderBy ): BuilderInterface; -``` -Sets an ORDER BY condition clause - -```php -$builder->orderBy("Robots.name"); -$builder->orderBy(["1", "Robots.name"]); -$builder->orderBy(["Robots.name DESC"]); -``` - -@param string|array orderBy - - -```php -public function rightJoin( string $model, string $conditions = null, string $alias = null ): BuilderInterface; -``` -Adds a RIGHT join to the query - -```php -$builder->rightJoin( - Robots::class, - "r.id = RobotsParts.robots_id", - "r" -); -``` - - -```php -public function setBindParams( array $bindParams, bool $merge = bool ): BuilderInterface; -``` -Set default bind parameters - - -```php -public function setBindTypes( array $bindTypes, bool $merge = bool ): BuilderInterface; -``` -Set default bind types - - -```php -public function setDI( DiInterface $container ): BuilderInterface; -``` -Sets the DependencyInjector container - - -```php -public function where( string $conditions, array $bindParams = [], array $bindTypes = [] ): BuilderInterface; -``` -Sets the query WHERE conditions - -```php -$builder->where(100); - -$builder->where("name = 'Peter'"); - -$builder->where( - "name = :name: AND id > :id:", - [ - "name" => "Peter", - "id" => 100, - ] -); -``` - - -```php -protected function conditionBetween( string $clause, string $operator, string $expr, mixed $minimum, mixed $maximum ): BuilderInterface; -``` -Appends a BETWEEN condition - - -```php -protected function conditionIn( string $clause, string $operator, string $expr, array $values ): BuilderInterface; -``` -Appends an IN condition - - -```php -protected function conditionNotBetween( string $clause, string $operator, string $expr, mixed $minimum, mixed $maximum ): BuilderInterface; -``` -Appends a NOT BETWEEN condition - - -```php -protected function conditionNotIn( string $clause, string $operator, string $expr, array $values ): BuilderInterface; -``` -Appends a NOT IN condition - - - - -

        Interface Phalcon\Mvc\Model\Query\BuilderInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/query/builderinterface.zep) - -| Namespace | Phalcon\Mvc\Model\Query | -| Uses | Phalcon\Mvc\Model\QueryInterface | - -Phalcon\Mvc\Model\Query\BuilderInterface - -Interface for Phalcon\Mvc\Model\Query\Builder - - -## Constants -```php -const OPERATOR_AND = and; -const OPERATOR_OR = or; -``` - -## Methods -```php -public function addFrom( string $model, string $alias = null ): BuilderInterface; -``` -Add a model to take part of the query - - -```php -public function andWhere( string $conditions, array $bindParams = [], array $bindTypes = [] ): BuilderInterface; -``` -Appends a condition to the current conditions using a AND operator - - -```php -public function betweenWhere( string $expr, mixed $minimum, mixed $maximum, string $operator = static-constant-access ): BuilderInterface; -``` -Appends a BETWEEN condition to the current conditions - -@param mixed minimum -@param mixed maximum - - -```php -public function columns( mixed $columns ): BuilderInterface; -``` -Sets the columns to be queried - -@param string|array columns - - -```php -public function distinct( mixed $distinct ): BuilderInterface; -``` -Sets SELECT DISTINCT / SELECT ALL flag - -```php -$builder->distinct("status"); -$builder->distinct(null); -``` - - -```php -public function forUpdate( bool $forUpdate ): BuilderInterface; -``` -Sets a FOR UPDATE clause - -```php -$builder->forUpdate(true); -``` - - -```php -public function from( mixed $models ): BuilderInterface; -``` -Sets the models who makes part of the query - -@param string|array models - - -```php -public function getBindParams(): array; -``` -Returns default bind params - - -```php -public function getBindTypes(): array; -``` -Returns default bind types - - -```php -public function getColumns(); -``` -Return the columns to be queried - -@return string|array - - -```php -public function getDistinct(): bool; -``` -Returns SELECT DISTINCT / SELECT ALL flag - - -```php -public function getFrom(); -``` -Return the models who makes part of the query - -@return string|array - - -```php -public function getGroupBy(): array; -``` -Returns the GROUP BY clause - - -```php -public function getHaving(): string; -``` -Returns the HAVING condition clause - - -```php -public function getJoins(): array; -``` -Return join parts of the query - - -```php -public function getLimit(); -``` -Returns the current LIMIT clause - -@return string|array - - -```php -public function getModels(): string | array | null; -``` -Returns the models involved in the query - - -```php -public function getOffset(): int; -``` -Returns the current OFFSET clause - - -```php -public function getOrderBy(); -``` -Return the set ORDER BY clause - -@return string|array - - -```php -public function getPhql(): string; -``` -Returns a PHQL statement built based on the builder parameters - - -```php -public function getQuery(): QueryInterface; -``` -Returns the query built - - -```php -public function getWhere(); -``` -Return the conditions for the query - -@return string|array - - -```php -public function groupBy( mixed $group ): BuilderInterface; -``` -Sets a GROUP BY clause - -@param string|array group - - -```php -public function having( string $having ): BuilderInterface; -``` -Sets a HAVING condition clause - - -```php -public function inWhere( string $expr, array $values, string $operator = static-constant-access ): BuilderInterface; -``` -Appends an IN condition to the current conditions - - -```php -public function innerJoin( string $model, string $conditions = null, string $alias = null ): BuilderInterface; -``` -Adds an INNER join to the query - - -```php -public function join( string $model, string $conditions = null, string $alias = null ): BuilderInterface; -``` -Adds an :type: join (by default type - INNER) to the query - -@param string model -@param string conditions -@param string alias -@param string type -@return BuilderInterface - - -```php -public function leftJoin( string $model, string $conditions = null, string $alias = null ): BuilderInterface; -``` -Adds a LEFT join to the query - - -```php -public function limit( int $limit, mixed $offset = null ): BuilderInterface; -``` -Sets a LIMIT clause - -@param int offset - - -```php -public function notBetweenWhere( string $expr, mixed $minimum, mixed $maximum, string $operator = static-constant-access ): BuilderInterface; -``` -Appends a NOT BETWEEN condition to the current conditions - -@param mixed minimum -@param mixed maximum - - -```php -public function notInWhere( string $expr, array $values, string $operator = static-constant-access ): BuilderInterface; -``` -Appends a NOT IN condition to the current conditions - - -```php -public function offset( int $offset ): BuilderInterface; -``` -Sets an OFFSET clause - - -```php -public function orWhere( string $conditions, array $bindParams = [], array $bindTypes = [] ): BuilderInterface; -``` -Appends a condition to the current conditions using an OR operator - - -```php -public function orderBy( string $orderBy ): BuilderInterface; -``` -Sets an ORDER BY condition clause - - -```php -public function rightJoin( string $model, string $conditions = null, string $alias = null ): BuilderInterface; -``` -Adds a RIGHT join to the query - - -```php -public function setBindParams( array $bindParams, bool $merge = bool ): BuilderInterface; -``` -Set default bind parameters - - -```php -public function setBindTypes( array $bindTypes, bool $merge = bool ): BuilderInterface; -``` -Set default bind types - - -```php -public function where( string $conditions, array $bindParams = [], array $bindTypes = [] ): BuilderInterface; -``` -Sets conditions for the query - - - - -

        Abstract Class Phalcon\Mvc\Model\Query\Lang

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/query/lang.zep) - -| Namespace | Phalcon\Mvc\Model\Query | - -Phalcon\Mvc\Model\Query\Lang - -PHQL is implemented as a parser (written in C) that translates syntax in -that of the target RDBMS. It allows Phalcon to offer a unified SQL language to -the developer, while internally doing all the work of translating PHQL -instructions to the most optimal SQL instructions depending on the -RDBMS type associated with a model. - -To achieve the highest performance possible, we wrote a parser that uses -the same technology as SQLite. This technology provides a small in-memory -parser with a very low memory footprint that is also thread-safe. - -```php -$intermediate = Phalcon\Mvc\Model\Query\Lang::parsePHQL( - "SELECT r.* FROM Robots r LIMIT 10" -); -``` - - - -

        Class Phalcon\Mvc\Model\Query\Status

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/query/status.zep) - -| Namespace | Phalcon\Mvc\Model\Query | -| Uses | Phalcon\Messages\MessageInterface, Phalcon\Mvc\ModelInterface, Phalcon\Mvc\Model\Query\StatusInterface | -| Implements | StatusInterface | - -Phalcon\Mvc\Model\Query\Status - -This class represents the status returned by a PHQL -statement like INSERT, UPDATE or DELETE. It offers context -information and the related messages produced by the -model which finally executes the operations when it fails - -```php -$phql = "UPDATE Robots SET name = :name:, type = :type:, year = :year: WHERE id = :id:"; - -$status = $app->modelsManager->executeQuery( - $phql, - [ - "id" => 100, - "name" => "Astroy Boy", - "type" => "mechanical", - "year" => 1959, - ] -); - -// Check if the update was successful -if ($status->success()) { - echo "OK"; -} -``` - - -## Properties -```php -// -protected model; - -// -protected success; - -``` - -## Methods -```php -public function __construct( bool $success, ModelInterface $model = null ): void; -``` -Phalcon\Mvc\Model\Query\Status - - -```php -public function getMessages(): MessageInterface[]; -``` -Returns the messages produced because of a failed operation - - -```php -public function getModel(): ModelInterface; -``` -Returns the model that executed the action - - -```php -public function success(): bool; -``` -Allows to check if the executed operation was successful - - - - -

        Interface Phalcon\Mvc\Model\Query\StatusInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/query/statusinterface.zep) - -| Namespace | Phalcon\Mvc\Model\Query | -| Uses | Phalcon\Messages\MessageInterface, Phalcon\Mvc\ModelInterface | - -Phalcon\Mvc\Model\Query\StatusInterface - -Interface for Phalcon\Mvc\Model\Query\Status - - -## Methods -```php -public function getMessages(): MessageInterface[]; -``` -Returns the messages produced by an operation failed - - -```php -public function getModel(): ModelInterface; -``` -Returns the model which executed the action - - -```php -public function success(): bool; -``` -Allows to check if the executed operation was successful - - - - -

        Interface Phalcon\Mvc\Model\QueryInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/queryinterface.zep) - -| Namespace | Phalcon\Mvc\Model | -| Uses | Phalcon\Mvc\ModelInterface | - -Phalcon\Mvc\Model\QueryInterface - -Interface for Phalcon\Mvc\Model\Query - - -## Methods -```php -public function cache( array $cacheOptions ): QueryInterface; -``` -Sets the cache parameters of the query - - -```php -public function execute( array $bindParams = [], array $bindTypes = [] ); -``` -Executes a parsed PHQL statement - -@return mixed - - -```php -public function getBindParams(): array; -``` -Returns default bind params - - -```php -public function getBindTypes(): array; -``` -Returns default bind types - - -```php -public function getCacheOptions(): array; -``` -Returns the current cache options - - -```php -public function getSingleResult( array $bindParams = [], array $bindTypes = [] ): ModelInterface; -``` -Executes the query returning the first result - - -```php -public function getSql(): array; -``` -Returns the SQL to be generated by the internal PHQL (only works in SELECT statements) - - -```php -public function getUniqueRow(): bool; -``` -Check if the query is programmed to get only the first row in the resultset - - -```php -public function parse(): array; -``` -Parses the intermediate code produced by Phalcon\Mvc\Model\Query\Lang generating another -intermediate representation that could be executed by Phalcon\Mvc\Model\Query - - -```php -public function setBindParams( array $bindParams, bool $merge = bool ): QueryInterface; -``` -Set default bind parameters - - -```php -public function setBindTypes( array $bindTypes, bool $merge = bool ): QueryInterface; -``` -Set default bind parameters - - -```php -public function setSharedLock( bool $sharedLock = bool ): QueryInterface; -``` -Set SHARED LOCK clause - - -```php -public function setUniqueRow( bool $uniqueRow ): QueryInterface; -``` -Tells to the query if only the first row in the resultset must be returned - - - - -

        Class Phalcon\Mvc\Model\Relation

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/relation.zep) - -| Namespace | Phalcon\Mvc\Model | -| Uses | Phalcon\Mvc\Model\RelationInterface | -| Implements | RelationInterface | - -Phalcon\Mvc\Model\Relation - -This class represents a relationship between two models - - -## Constants -```php -const ACTION_CASCADE = 2; -const ACTION_RESTRICT = 1; -const BELONGS_TO = 0; -const HAS_MANY = 2; -const HAS_MANY_THROUGH = 4; -const HAS_ONE = 1; -const HAS_ONE_THROUGH = 3; -const NO_ACTION = 0; -``` - -## Properties -```php -// -protected fields; - -// -protected intermediateFields; - -// -protected intermediateModel; - -// -protected intermediateReferencedFields; - -// -protected options; - -// -protected referencedFields; - -// -protected referencedModel; - -// -protected type; - -``` - -## Methods -```php -public function __construct( int $type, string $referencedModel, mixed $fields, mixed $referencedFields, array $options = [] ): void; -``` -Phalcon\Mvc\Model\Relation constructor - -@param string|array fields -@param string|array referencedFields - - -```php -public function getFields(); -``` -Returns the fields - -@return string|array - - -```php -public function getForeignKey(); -``` -Returns the foreign key configuration - -@return string|array - - -```php -public function getIntermediateFields(); -``` -Gets the intermediate fields for has-*-through relations - -@return string|array - - -```php -public function getIntermediateModel(): string; -``` -Gets the intermediate model for has-*-through relations - - -```php -public function getIntermediateReferencedFields(); -``` -Gets the intermediate referenced fields for has-*-through relations - -@return string|array - - -```php -public function getOption( string $name ); -``` -Returns an option by the specified name -If the option doesn't exist null is returned - - -```php -public function getOptions(): array; -``` -Returns the options - - -```php -public function getParams(); -``` -Returns parameters that must be always used when the related records are obtained - -@return array - - -```php -public function getReferencedFields(); -``` -Returns the referenced fields - -@return string|array - - -```php -public function getReferencedModel(): string; -``` -Returns the referenced model - - -```php -public function getType(): int; -``` -Returns the relation type - - -```php -public function isForeignKey(): bool; -``` -Check whether the relation act as a foreign key - - -```php -public function isReusable(): bool; -``` -Check if records returned by getting belongs-to/has-many are implicitly cached during the current request - - -```php -public function isThrough(): bool; -``` -Check whether the relation is a 'many-to-many' relation or not - - -```php -public function setIntermediateRelation( mixed $intermediateFields, string $intermediateModel, mixed $intermediateReferencedFields ); -``` -Sets the intermediate model data for has-*-through relations - -@param string|array intermediateFields -@param string intermediateReferencedFields - - - - -

        Interface Phalcon\Mvc\Model\RelationInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/relationinterface.zep) - -| Namespace | Phalcon\Mvc\Model | - -Phalcon\Mvc\Model\RelationInterface - -Interface for Phalcon\Mvc\Model\Relation - - -## Methods -```php -public function getFields(); -``` -Returns the fields - -@return string|array - - -```php -public function getForeignKey(); -``` -Returns the foreign key configuration - -@return string|array - - -```php -public function getIntermediateFields(); -``` -Gets the intermediate fields for has-*-through relations - -@return string|array - - -```php -public function getIntermediateModel(): string; -``` -Gets the intermediate model for has-*-through relations - - -```php -public function getIntermediateReferencedFields(); -``` -Gets the intermediate referenced fields for has-*-through relations - -@return string|array - - -```php -public function getOption( string $name ); -``` -Returns an option by the specified name -If the option doesn't exist null is returned - - -```php -public function getOptions(): array; -``` -Returns the options - - -```php -public function getParams(); -``` -Returns parameters that must be always used when the related records are obtained - -@return array - - -```php -public function getReferencedFields(); -``` -Returns the referenced fields - -@return string|array - - -```php -public function getReferencedModel(): string; -``` -Returns the referenced model - - -```php -public function getType(): int; -``` -Returns the relations type - - -```php -public function isForeignKey(): bool; -``` -Check whether the relation act as a foreign key - - -```php -public function isReusable(): bool; -``` -Check if records returned by getting belongs-to/has-many are implicitly cached during the current request - - -```php -public function isThrough(): bool; -``` -Check whether the relation is a 'many-to-many' relation or not - - -```php -public function setIntermediateRelation( mixed $intermediateFields, string $intermediateModel, mixed $intermediateReferencedFields ); -``` -Sets the intermediate model dat for has-*-through relations - -@param string|array intermediateFields -@param string|array intermediateReferencedFields - - - - -

        Interface Phalcon\Mvc\Model\ResultInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/resultinterface.zep) - -| Namespace | Phalcon\Mvc\Model | -| Uses | Phalcon\Mvc\ModelInterface | - -Phalcon\Mvc\Model\ResultInterface - -All single objects passed as base objects to Resultsets must implement this interface - - -## Methods -```php -public function setDirtyState( int $dirtyState ): ModelInterface | bool; -``` -Sets the object's state - - - - -

        Abstract Class Phalcon\Mvc\Model\Resultset

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/resultset.zep) - -| Namespace | Phalcon\Mvc\Model | -| Uses | ArrayAccess, Closure, Countable, Iterator, JsonSerializable, Phalcon\Db\Enum, Phalcon\Messages\MessageInterface, Phalcon\Mvc\Model, Phalcon\Mvc\ModelInterface, Phalcon\Mvc\Model\Exception, Phalcon\Mvc\Model\ResultsetInterface, Phalcon\Cache\Adapter\AdapterInterface, Phalcon\Storage\Serializer\SerializerInterface, SeekableIterator, Serializable | -| Implements | ResultsetInterface, Iterator, SeekableIterator, Countable, ArrayAccess, Serializable, JsonSerializable | - -Phalcon\Mvc\Model\Resultset - -This component allows to Phalcon\Mvc\Model returns large resultsets with the minimum memory consumption -Resultsets can be traversed using a standard foreach or a while statement. If a resultset is serialized -it will dump all the rows into a big array. Then unserialize will retrieve the rows as they were before -serializing. - -```php - -// Using a standard foreach -$robots = Robots::find( - [ - "type = 'virtual'", - "order" => "name", - ] -); - -foreach ($robots as robot) { - echo robot->name, "\n"; -} - -// Using a while -$robots = Robots::find( - [ - "type = 'virtual'", - "order" => "name", - ] -); - -$robots->rewind(); - -while ($robots->valid()) { - $robot = $robots->current(); - - echo $robot->name, "\n"; - - $robots->next(); -} -``` - - -## Constants -```php -const HYDRATE_ARRAYS = 1; -const HYDRATE_OBJECTS = 2; -const HYDRATE_RECORDS = 0; -const TYPE_RESULT_FULL = 0; -const TYPE_RESULT_PARTIAL = 1; -``` - -## Properties -```php -// -protected activeRow; - -// -protected cache; - -// -protected count; - -// -protected errorMessages; - -// -protected hydrateMode = 0; - -// -protected isFresh = true; - -// -protected pointer = 0; - -// -protected row; - -// -protected rows; - -/** - * Phalcon\Db\ResultInterface or false for empty resultset - */ -protected result; - -``` - -## Methods -```php -public function __construct( mixed $result, AdapterInterface $cache = null ): void; -``` -Phalcon\Mvc\Model\Resultset constructor - -@param \Phalcon\Db\ResultInterface|false result - - -```php -final public function count(): int; -``` -Counts how many rows are in the resultset - - -```php -public function delete( Closure $conditionCallback = null ): bool; -``` -Deletes every record in the resultset - - -```php -public function filter( callable $filter ): ModelInterface[]; -``` -Filters a resultset returning only those the developer requires - -```php -$filtered = $robots->filter( - function ($robot) { - if ($robot->id < 3) { - return $robot; - } - } -); -``` - - -```php -public function getCache(): AdapterInterface; -``` -Returns the associated cache for the resultset - - -```php -public function getFirst(): ModelInterface | null; -``` -Get first row in the resultset - - -```php -public function getHydrateMode(): int; -``` -Returns the current hydration mode - - -```php -public function getLast(): ModelInterface | null; -``` -Get last row in the resultset - - -```php -public function getMessages(): MessageInterface[]; -``` -Returns the error messages produced by a batch operation - - -```php -public function getType(): int; -``` -Returns the internal type of data retrieval that the resultset is using - - -```php -public function isFresh(): bool; -``` -Tell if the resultset if fresh or an old one cached - - -```php -public function jsonSerialize(): array; -``` -Returns serialised model objects as array for json_encode. -Calls jsonSerialize on each object if present - -```php -$robots = Robots::find(); - -echo json_encode($robots); -``` - - -```php -public function key(): int | null; -``` -Gets pointer number of active row in the resultset - - -```php -public function next(): void; -``` -Moves cursor to next row in the resultset - - -```php -public function offsetExists( mixed $index ): bool; -``` -Checks whether offset exists in the resultset - - -```php -public function offsetGet( mixed $index ): ModelInterface | bool; -``` -Gets row in a specific position of the resultset - - -```php -public function offsetSet( mixed $index, mixed $value ): void; -``` -Resultsets cannot be changed. It has only been implemented to meet the definition of the ArrayAccess interface - -@param int index -@param \Phalcon\Mvc\ModelInterface value - - -```php -public function offsetUnset( mixed $offset ): void; -``` -Resultsets cannot be changed. It has only been implemented to meet the definition of the ArrayAccess interface - - -```php -final public function rewind(): void; -``` -Rewinds resultset to its beginning - - -```php -final public function seek( mixed $position ): void; -``` -Changes the internal pointer to a specific position in the resultset. -Set the new position if required, and then set this->row - - -```php -public function setHydrateMode( int $hydrateMode ): ResultsetInterface; -``` -Sets the hydration mode in the resultset - - -```php -public function setIsFresh( bool $isFresh ): ResultsetInterface; -``` -Set if the resultset is fresh or an old one cached - - -```php -public function update( mixed $data, Closure $conditionCallback = null ): bool; -``` -Updates every record in the resultset - -@param array data - - -```php -public function valid(): bool; -``` -Check whether internal resource has rows to fetch - - - - -

        Class Phalcon\Mvc\Model\Resultset\Complex

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/resultset/complex.zep) - -| Namespace | Phalcon\Mvc\Model\Resultset | -| Uses | Phalcon\Mvc\Model, Phalcon\Mvc\Model\Row, Phalcon\Db\ResultInterface, Phalcon\Mvc\Model\Resultset, Phalcon\Mvc\Model\Exception, Phalcon\Mvc\Model\ResultsetInterface, Phalcon\Di\DiInterface, Phalcon\Di, Phalcon\Cache\Adapter\AdapterInterface, Phalcon\Storage\Serializer\SerializerInterface, stdClass | -| Extends | Resultset | -| Implements | ResultsetInterface | - -Phalcon\Mvc\Model\Resultset\Complex - -Complex resultsets may include complete objects and scalar values. -This class builds every complex row as it is required - - -## Properties -```php -// -protected columnTypes; - -/** - * Unserialised result-set hydrated all rows already. unserialise() sets - * disableHydration to true - */ -protected disableHydration = false; - -``` - -## Methods -```php -public function __construct( mixed $columnTypes, ResultInterface $result = null, AdapterInterface $cache = null ): void; -``` -Phalcon\Mvc\Model\Resultset\Complex constructor - -@param array columnTypes - - -```php -final public function current(): ModelInterface | bool; -``` -Returns current row in the resultset - - -```php -public function serialize(): string; -``` -Serializing a resultset will dump all related rows into a big array - - -```php -public function toArray(): array; -``` -Returns a complete resultset as an array, if the resultset has a big -number of rows it could consume more memory than currently it does. - - -```php -public function unserialize( mixed $data ): void; -``` -Unserializing a resultset will allow to only works on the rows present in the saved state - - - - -

        Class Phalcon\Mvc\Model\Resultset\Simple

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/resultset/simple.zep) - -| Namespace | Phalcon\Mvc\Model\Resultset | -| Uses | Phalcon\Di, Phalcon\Di\DiInterface, Phalcon\Mvc\Model, Phalcon\Mvc\Model\Exception, Phalcon\Mvc\Model\Resultset, Phalcon\Cache\Adapter\AdapterInterface, Phalcon\Storage\Serializer\SerializerInterface | -| Extends | Resultset | - -Phalcon\Mvc\Model\Resultset\Simple - -Simple resultsets only contains a complete objects -This class builds every complete object as it is required - - -## Properties -```php -// -protected columnMap; - -// -protected model; - -/** - * @var bool - */ -protected keepSnapshots = false; - -``` - -## Methods -```php -public function __construct( mixed $columnMap, mixed $model, mixed $result, AdapterInterface $cache = null, bool $keepSnapshots = null ): void; -``` -Phalcon\Mvc\Model\Resultset\Simple constructor - -@param array columnMap -@param \Phalcon\Mvc\ModelInterface|Phalcon\Mvc\Model\Row model - - -```php -final public function current(): ModelInterface | null; -``` -Returns current row in the resultset - - -```php -public function serialize(): string; -``` -Serializing a resultset will dump all related rows into a big array - - -```php -public function toArray( bool $renameColumns = bool ): array; -``` -Returns a complete resultset as an array, if the resultset has a big -number of rows it could consume more memory than currently it does. -Export the resultset to an array couldn't be faster with a large number -of records - - -```php -public function unserialize( mixed $data ): void; -``` -Unserializing a resultset will allow to only works on the rows present in -the saved state - - - - -

        Interface Phalcon\Mvc\Model\ResultsetInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/resultsetinterface.zep) - -| Namespace | Phalcon\Mvc\Model | -| Uses | Closure, Phalcon\Messages\MessageInterface, Phalcon\Mvc\ModelInterface, Phalcon\Cache\Adapter\AdapterInterface | - -Phalcon\Mvc\Model\ResultsetInterface - -Interface for Phalcon\Mvc\Model\Resultset - - -## Methods -```php -public function delete( Closure $conditionCallback = null ): bool; -``` -Deletes every record in the resultset - - -```php -public function filter( callable $filter ): ModelInterface[]; -``` -Filters a resultset returning only those the developer requires - -```php -$filtered = $robots->filter( - function ($robot) { - if ($robot->id < 3) { - return $robot; - } - } -); -``` - - -```php -public function getCache(): AdapterInterface; -``` -Returns the associated cache for the resultset - - -```php -public function getFirst(): ModelInterface | null; -``` -Get first row in the resultset - - -```php -public function getHydrateMode(): int; -``` -Returns the current hydration mode - - -```php -public function getLast(): ModelInterface | null; -``` -Get last row in the resultset - - -```php -public function getMessages(): MessageInterface[]; -``` -Returns the error messages produced by a batch operation - - -```php -public function getType(): int; -``` -Returns the internal type of data retrieval that the resultset is using - - -```php -public function isFresh(): bool; -``` -Tell if the resultset if fresh or an old one cached - - -```php -public function setHydrateMode( int $hydrateMode ): ResultsetInterface; -``` -Sets the hydration mode in the resultset - - -```php -public function setIsFresh( bool $isFresh ): ResultsetInterface; -``` -Set if the resultset is fresh or an old one cached - - -```php -public function toArray(): array; -``` -Returns a complete resultset as an array, if the resultset has a big number of rows -it could consume more memory than currently it does. - - -```php -public function update( mixed $data, Closure $conditionCallback = null ): bool; -``` -Updates every record in the resultset - -@param array data - - - - -

        Class Phalcon\Mvc\Model\Row

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/row.zep) - -| Namespace | Phalcon\Mvc\Model | -| Uses | ArrayAccess, JsonSerializable, Phalcon\Mvc\ModelInterface, Phalcon\Mvc\EntityInterface, Phalcon\Mvc\Model\Exception, Phalcon\Mvc\Model\ResultInterface | -| Implements | EntityInterface, ResultInterface, ArrayAccess, JsonSerializable | - -Phalcon\Mvc\Model\Row - -This component allows Phalcon\Mvc\Model to return rows without an associated entity. -This objects implements the ArrayAccess interface to allow access the object as object->x or array[x]. - - -## Methods -```php -public function jsonSerialize(): array; -``` - Serializes the object for json_encode - - -```php -public function offsetExists( mixed $index ): bool; -``` -Checks whether offset exists in the row - -@param string|int $index - - -```php -public function offsetGet( mixed $index ): mixed; -``` -Gets a record in a specific position of the row - -@param string|int index - -@return string|Phalcon\Mvc\ModelInterface - - -```php -public function offsetSet( mixed $index, mixed $value ): void; -``` -Rows cannot be changed. It has only been implemented to meet the definition of the ArrayAccess interface - -@param string|int index -@param \Phalcon\Mvc\ModelInterface value - - -```php -public function offsetUnset( mixed $offset ): void; -``` -Rows cannot be changed. It has only been implemented to meet the definition of the ArrayAccess interface - -@param string|int offset - - -```php -public function readAttribute( string $attribute ); -``` -Reads an attribute value by its name - -```php -echo $robot->readAttribute("name"); -``` - -@return mixed - - -```php -public function setDirtyState( int $dirtyState ): ModelInterface | bool; -``` -Set the current object's state - - -```php -public function toArray(): array; -``` -Returns the instance as an array representation - - -```php -public function writeAttribute( string $attribute, mixed $value ): void; -``` -Writes an attribute value by its name - -```php -$robot->writeAttribute("name", "Rosey"); -``` - -@param mixed value - - - - -

        Class Phalcon\Mvc\Model\Transaction

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/transaction.zep) - -| Namespace | Phalcon\Mvc\Model | -| Uses | Phalcon\Di\DiInterface, Phalcon\Mvc\ModelInterface, Phalcon\Mvc\Model\Transaction\Failed, Phalcon\Mvc\Model\Transaction\ManagerInterface, Phalcon\Mvc\Model\TransactionInterface | -| Implements | TransactionInterface | - -Phalcon\Mvc\Model\Transaction - -Transactions are protective blocks where SQL statements are only permanent if -they can all succeed as one atomic action. Phalcon\Transaction is intended to -be used with Phalcon_Model_Base. Phalcon Transactions should be created using -Phalcon\Transaction\Manager. - -```php -use Phalcon\Mvc\Model\Transaction\Failed; -use Phalcon\Mvc\Model\Transaction\Manager; - -try { - $manager = new Manager(); - - $transaction = $manager->get(); - - $robot = new Robots(); - - $robot->setTransaction($transaction); - - $robot->name = "WALL·E"; - $robot->created_at = date("Y-m-d"); - - if ($robot->save() === false) { - $transaction->rollback("Can't save robot"); - } - - $robotPart = new RobotParts(); - - $robotPart->setTransaction($transaction); - - $robotPart->type = "head"; - - if ($robotPart->save() === false) { - $transaction->rollback("Can't save robot part"); - } - - $transaction->commit(); -} catch(Failed $e) { - echo "Failed, reason: ", $e->getMessage(); -} -``` - - -## Properties -```php -// -protected activeTransaction = false; - -// -protected connection; - -// -protected isNewTransaction = true; - -// -protected manager; - -// -protected messages; - -// -protected rollbackRecord; - -// -protected rollbackOnAbort = false; - -// -protected rollbackThrowException = false; - -``` - -## Methods -```php -public function __construct( DiInterface $container, bool $autoBegin = bool, string $service = string ): void; -``` -Phalcon\Mvc\Model\Transaction constructor - - -```php -public function begin(): bool; -``` -Starts the transaction - - -```php -public function commit(): bool; -``` -Commits the transaction - - -```php -public function getConnection(): \Phalcon\Db\Adapter\AdapterInterface; -``` -Returns the connection related to transaction - - -```php -public function getMessages(): array; -``` -Returns validations messages from last save try - - -```php -public function isManaged(): bool; -``` -Checks whether transaction is managed by a transaction manager - - -```php -public function isValid(): bool; -``` -Checks whether internal connection is under an active transaction - - -```php -public function rollback( string $rollbackMessage = null, ModelInterface $rollbackRecord = null ): bool; -``` -Rollbacks the transaction - - -```php -public function setIsNewTransaction( bool $isNew ): void; -``` -Sets if is a reused transaction or new once - - -```php -public function setRollbackOnAbort( bool $rollbackOnAbort ): void; -``` -Sets flag to rollback on abort the HTTP connection - - -```php -public function setRollbackedRecord( ModelInterface $record ): void; -``` -Sets object which generates rollback action - - -```php -public function setTransactionManager( ManagerInterface $manager ): void; -``` -Sets transaction manager related to the transaction - - -```php -public function throwRollbackException( bool $status ): TransactionInterface; -``` -Enables throwing exception - - - - -

        Class Phalcon\Mvc\Model\Transaction\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/transaction/exception.zep) - -| Namespace | Phalcon\Mvc\Model\Transaction | -| Extends | \Phalcon\Mvc\Model\Exception | - -Phalcon\Mvc\Model\Transaction\Exception - -Exceptions thrown in Phalcon\Mvc\Model\Transaction will use this class - - - -

        Class Phalcon\Mvc\Model\Transaction\Failed

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/transaction/failed.zep) - -| Namespace | Phalcon\Mvc\Model\Transaction | -| Uses | Phalcon\Messages\MessageInterface, Phalcon\Mvc\ModelInterface, Phalcon\Mvc\Model\Transaction\Exception | -| Extends | Exception | - -Phalcon\Mvc\Model\Transaction\Failed - -This class will be thrown to exit a try/catch block for isolated transactions - - -## Properties -```php -// -protected record; - -``` - -## Methods -```php -public function __construct( string $message, ModelInterface $record = null ): void; -``` -Phalcon\Mvc\Model\Transaction\Failed constructor - - -```php -public function getRecord(): ModelInterface; -``` -Returns validation record messages which stop the transaction - - -```php -public function getRecordMessages(): MessageInterface[]; -``` -Returns validation record messages which stop the transaction - - - - -

        Class Phalcon\Mvc\Model\Transaction\Manager

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/transaction/manager.zep) - -| Namespace | Phalcon\Mvc\Model\Transaction | -| Uses | Phalcon\Di, Phalcon\Di\DiInterface, Phalcon\Di\InjectionAwareInterface, Phalcon\Mvc\Model\Transaction\ManagerInterface, Phalcon\Mvc\Model\Transaction\Exception, Phalcon\Mvc\Model\Transaction, Phalcon\Mvc\Model\TransactionInterface | -| Implements | ManagerInterface, InjectionAwareInterface | - -Phalcon\Mvc\Model\Transaction\Manager - -A transaction acts on a single database connection. If you have multiple -class-specific databases, the transaction will not protect interaction among -them. - -This class manages the objects that compose a transaction. -A transaction produces a unique connection that is passed to every object -part of the transaction. - -```php -use Phalcon\Mvc\Model\Transaction\Failed; -use Phalcon\Mvc\Model\Transaction\Manager; - -try { - $transactionManager = new Manager(); - - $transaction = $transactionManager->get(); - - $robot = new Robots(); - - $robot->setTransaction($transaction); - - $robot->name = "WALL·E"; - $robot->created_at = date("Y-m-d"); - - if ($robot->save() === false) { - $transaction->rollback("Can't save robot"); - } - - $robotPart = new RobotParts(); - - $robotPart->setTransaction($transaction); - - $robotPart->type = "head"; - - if ($robotPart->save() === false) { - $transaction->rollback("Can't save robot part"); - } - - $transaction->commit(); -} catch (Failed $e) { - echo "Failed, reason: ", $e->getMessage(); -} -``` - - -## Properties -```php -// -protected container; - -// -protected initialized = false; - -// -protected number = 0; - -// -protected rollbackPendent = true; - -// -protected service = db; - -/** - * @var array - */ -protected transactions; - -``` - -## Methods -```php -public function __construct( DiInterface $container = null ): void; -``` -Phalcon\Mvc\Model\Transaction\Manager constructor - - -```php -public function collectTransactions(): void; -``` -Remove all the transactions from the manager - - -```php -public function commit(); -``` -Commits active transactions within the manager - - -```php -public function get( bool $autoBegin = bool ): TransactionInterface; -``` -Returns a new \Phalcon\Mvc\Model\Transaction or an already created once -This method registers a shutdown function to rollback active connections - - -```php -public function getDI(): DiInterface; -``` -Returns the dependency injection container - - -```php -public function getDbService(): string; -``` -Returns the database service used to isolate the transaction - - -```php -public function getOrCreateTransaction( bool $autoBegin = bool ): TransactionInterface; -``` -Create/Returns a new transaction or an existing one - - -```php -public function getRollbackPendent(): bool; -``` -Check if the transaction manager is registering a shutdown function to -clean up pendent transactions - - -```php -public function has(): bool; -``` -Checks whether the manager has an active transaction - - -```php -public function notifyCommit( TransactionInterface $transaction ): void; -``` -Notifies the manager about a committed transaction - - -```php -public function notifyRollback( TransactionInterface $transaction ): void; -``` -Notifies the manager about a rollbacked transaction - - -```php -public function rollback( bool $collect = bool ): void; -``` -Rollbacks active transactions within the manager -Collect will remove the transaction from the manager - - -```php -public function rollbackPendent(): void; -``` -Rollbacks active transactions within the manager - - -```php -public function setDI( DiInterface $container ): void; -``` -Sets the dependency injection container - - -```php -public function setDbService( string $service ): ManagerInterface; -``` -Sets the database service used to run the isolated transactions - - -```php -public function setRollbackPendent( bool $rollbackPendent ): ManagerInterface; -``` -Set if the transaction manager must register a shutdown function to clean -up pendent transactions - - -```php -protected function collectTransaction( TransactionInterface $transaction ): void; -``` -Removes transactions from the TransactionManager - - - - -

        Interface Phalcon\Mvc\Model\Transaction\ManagerInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/transaction/managerinterface.zep) - -| Namespace | Phalcon\Mvc\Model\Transaction | -| Uses | Phalcon\Mvc\Model\TransactionInterface | - -Phalcon\Mvc\Model\Transaction\ManagerInterface - -Interface for Phalcon\Mvc\Model\Transaction\Manager - - -## Methods -```php -public function collectTransactions(): void; -``` -Remove all the transactions from the manager - - -```php -public function commit(); -``` -Commits active transactions within the manager - - -```php -public function get( bool $autoBegin = bool ): TransactionInterface; -``` -Returns a new \Phalcon\Mvc\Model\Transaction or an already created once - - -```php -public function getDbService(): string; -``` -Returns the database service used to isolate the transaction - - -```php -public function getRollbackPendent(): bool; -``` -Check if the transaction manager is registering a shutdown function to clean up pendent transactions - - -```php -public function has(): bool; -``` -Checks whether manager has an active transaction - - -```php -public function notifyCommit( TransactionInterface $transaction ): void; -``` -Notifies the manager about a committed transaction - - -```php -public function notifyRollback( TransactionInterface $transaction ): void; -``` -Notifies the manager about a rollbacked transaction - - -```php -public function rollback( bool $collect = bool ): void; -``` -Rollbacks active transactions within the manager -Collect will remove transaction from the manager - - -```php -public function rollbackPendent(): void; -``` -Rollbacks active transactions within the manager - - -```php -public function setDbService( string $service ): ManagerInterface; -``` -Sets the database service used to run the isolated transactions - - -```php -public function setRollbackPendent( bool $rollbackPendent ): ManagerInterface; -``` -Set if the transaction manager must register a shutdown function to clean up pendent transactions - - - - -

        Interface Phalcon\Mvc\Model\TransactionInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/transactioninterface.zep) - -| Namespace | Phalcon\Mvc\Model | -| Uses | Phalcon\Mvc\ModelInterface, Phalcon\Mvc\Model\Transaction\ManagerInterface | - -Phalcon\Mvc\Model\TransactionInterface - -Interface for Phalcon\Mvc\Model\Transaction - - -## Methods -```php -public function begin(): bool; -``` -Starts the transaction - - -```php -public function commit(): bool; -``` -Commits the transaction - - -```php -public function getConnection(): \Phalcon\Db\Adapter\AdapterInterface; -``` -Returns connection related to transaction - - -```php -public function getMessages(): array; -``` -Returns validations messages from last save try - - -```php -public function isManaged(): bool; -``` -Checks whether transaction is managed by a transaction manager - - -```php -public function isValid(): bool; -``` -Checks whether internal connection is under an active transaction - - -```php -public function rollback( string $rollbackMessage = null, ModelInterface $rollbackRecord = null ): bool; -``` -Rollbacks the transaction - - -```php -public function setIsNewTransaction( bool $isNew ): void; -``` -Sets if is a reused transaction or new once - - -```php -public function setRollbackOnAbort( bool $rollbackOnAbort ): void; -``` -Sets flag to rollback on abort the HTTP connection - - -```php -public function setRollbackedRecord( ModelInterface $record ): void; -``` -Sets object which generates rollback action - - -```php -public function setTransactionManager( ManagerInterface $manager ): void; -``` -Sets transaction manager related to the transaction - - -```php -public function throwRollbackException( bool $status ): TransactionInterface; -``` -Enables throwing exception - - - - -

        Class Phalcon\Mvc\Model\ValidationFailed

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/model/validationfailed.zep) - -| Namespace | Phalcon\Mvc\Model | -| Uses | Phalcon\Mvc\ModelInterface | -| Extends | Exception | - -Phalcon\Mvc\Model\ValidationFailed - -This exception is generated when a model fails to save a record -Phalcon\Mvc\Model must be set up to have this behavior - - -## Properties -```php -// -protected messages; - -// -protected model; - -``` - -## Methods -```php -public function __construct( ModelInterface $model, array $validationMessages ): void; -``` -Phalcon\Mvc\Model\ValidationFailed constructor - -@param Message[] validationMessages - - -```php -public function getMessages(): Message[]; -``` -Returns the complete group of messages produced in the validation - - -```php -public function getModel(): ModelInterface; -``` -Returns the model that generated the messages - - - - -

        Interface Phalcon\Mvc\ModelInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/modelinterface.zep) - -| Namespace | Phalcon\Mvc | -| Uses | Phalcon\Db\Adapter\AdapterInterface, Phalcon\Di\DiInterface, Phalcon\Messages\MessageInterface, Phalcon\Mvc\Model\CriteriaInterface, Phalcon\Mvc\Model\ModelInterface, Phalcon\Mvc\Model\MetaDataInterface, Phalcon\Mvc\Model\ResultsetInterface, Phalcon\Mvc\Model\TransactionInterface, Phalcon\Mvc\ModelInterface | - -Phalcon\Mvc\ModelInterface - -Interface for Phalcon\Mvc\Model - - -## Methods -```php -public function appendMessage( MessageInterface $message ): ModelInterface; -``` -Appends a customized message on the validation process - - -```php -public function assign( array $data, mixed $dataColumnMap = null, mixed $whiteList = null ): ModelInterface; -``` -Assigns values to a model from an array - -@param array columnMap - - -```php -public function create(): bool; -``` -Inserts a model instance. If the instance already exists in the -persistence it will throw an exception. Returning true on success or -false otherwise. - - -```php -public function delete(): bool; -``` -Deletes a model instance. Returning true on success or false otherwise. - - -```php -public function fireEvent( string $eventName ): bool; -``` -Fires an event, implicitly calls behaviors and listeners in the events -manager are notified - - -```php -public function fireEventCancel( string $eventName ): bool; -``` -Fires an event, implicitly calls behaviors and listeners in the events -manager are notified. This method stops if one of the callbacks/listeners -returns bool false - - -```php -public function getDirtyState(): int; -``` -Returns one of the DIRTY_STATE_* constants telling if the record exists -in the database or not - - -```php -public function getMessages(): MessageInterface[]; -``` -Returns array of validation messages - - -```php -public function getModelsMetaData(): MetaDataInterface; -``` -Returns the models meta-data service related to the entity instance. - - -```php -public function getOperationMade(): int; -``` -Returns the type of the latest operation performed by the ORM -Returns one of the OP_* class constants - - -```php -public function getReadConnection(): AdapterInterface; -``` -Gets internal database connection - - -```php -public function getReadConnectionService(): string; -``` -Returns DependencyInjection connection service used to read data - - -```php -public function getRelated( string $alias, mixed $arguments = null ); -``` -Returns related records based on defined relations - -@param array arguments -@return \Phalcon\Mvc\Model\Resultset\Simple|Phalcon\Mvc\Model\Resultset\Simple|false - - -```php -public function getSchema(): string; -``` -Returns schema name where table mapped is located - - -```php -public function getSource(): string; -``` -Returns table name mapped in the model - - -```php -public function getWriteConnection(): AdapterInterface; -``` -Gets internal database connection - - -```php -public function getWriteConnectionService(): string; -``` -Returns DependencyInjection connection service used to write data - - -```php -public function refresh(): ModelInterface; -``` -Refreshes the model attributes re-querying the record from the database - - -```php -public function save(): bool; -``` -Inserts or updates a model instance. Returning true on success or false -otherwise. - - -```php -public function setConnectionService( string $connectionService ): void; -``` -Sets both read/write connection services - - -```php -public function setDirtyState( int $dirtyState ): ModelInterface | bool; -``` -Sets the dirty state of the object using one of the DIRTY_STATE_* -constants - - -```php -public function setReadConnectionService( string $connectionService ): void; -``` -Sets the DependencyInjection connection service used to read data - - -```php -public function setSnapshotData( array $data, mixed $columnMap = null ): void; -``` -Sets the record's snapshot data. This method is used internally to set -snapshot data when the model was set up to keep snapshot data - -@param array columnMap - - -```php -public function setTransaction( TransactionInterface $transaction ): ModelInterface; -``` -Sets a transaction related to the Model instance - - -```php -public function setWriteConnectionService( string $connectionService ): void; -``` -Sets the DependencyInjection connection service used to write data - - -```php -public function skipOperation( bool $skip ): void; -``` -Skips the current operation forcing a success state - - -```php -public function update(): bool; -``` -Updates a model instance. If the instance doesn't exist in the -persistence it will throw an exception. Returning true on success or -false otherwise. - - -```php -public function validationHasFailed(): bool; -``` -Check whether validation process has generated any messages - - - - -

        Interface Phalcon\Mvc\ModuleDefinitionInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/moduledefinitioninterface.zep) - -| Namespace | Phalcon\Mvc | -| Uses | Phalcon\Di\DiInterface | - -Phalcon\Mvc\ModuleDefinitionInterface - -This interface must be implemented by class module definitions - - -## Methods -```php -public function registerAutoloaders( DiInterface $container = null ); -``` -Registers an autoloader related to the module - - -```php -public function registerServices( DiInterface $container ); -``` -Registers services related to the module - - - - -

        Class Phalcon\Mvc\Router

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/router.zep) - -| Namespace | Phalcon\Mvc | -| Uses | Phalcon\Di\DiInterface, Phalcon\Di\AbstractInjectionAware, Phalcon\Events\EventsAwareInterface, Phalcon\Events\ManagerInterface, Phalcon\Http\RequestInterface, Phalcon\Mvc\Router\Exception, Phalcon\Mvc\Router\GroupInterface, Phalcon\Mvc\Router\Route, Phalcon\Mvc\Router\RouteInterface | -| Extends | AbstractInjectionAware | -| Implements | RouterInterface, EventsAwareInterface | - -Phalcon\Mvc\Router - -Phalcon\Mvc\Router is the standard framework router. Routing is the -process of taking a URI endpoint (that part of the URI which comes after the -base URL) and decomposing it into parameters to determine which module, -controller, and action of that controller should receive the request - -```php -use Phalcon\Mvc\Router; - -$router = new Router(); - -$router->add( - "/documentation/{chapter}/{name}\.{type:[a-z]+}", - [ - "controller" => "documentation", - "action" => "show", - ] -); - -$router->handle( - "/documentation/1/examples.html" -); - -echo $router->getControllerName(); -``` - - -## Constants -```php -const POSITION_FIRST = 0; -const POSITION_LAST = 1; -``` - -## Properties -```php -// -protected action; - -// -protected controller; - -// -protected defaultAction; - -// -protected defaultController; - -// -protected defaultModule; - -// -protected defaultNamespace; - -// -protected defaultParams; - -// -protected eventsManager; - -// -protected keyRouteNames; - -// -protected keyRouteIds; - -// -protected matchedRoute; - -// -protected matches; - -// -protected module; - -// -protected namespaceName; - -// -protected notFoundPaths; - -// -protected params; - -// -protected removeExtraSlashes; - -// -protected routes; - -// -protected uriSource; - -// -protected wasMatched = false; - -``` - -## Methods -```php -public function __construct( bool $defaultRoutes = bool ); -``` -Phalcon\Mvc\Router constructor - - -```php -public function add( string $pattern, mixed $paths = null, mixed $httpMethods = null, mixed $position = static-constant-access ): RouteInterface; -``` -Adds a route to the router without any HTTP constraint - -```php -use Phalcon\Mvc\Router; - -$router->add("/about", "About::index"); - -$router->add( - "/about", - "About::index", - ["GET", "POST"] -); - -$router->add( - "/about", - "About::index", - ["GET", "POST"], - Router::POSITION_FIRST -); -``` - - -```php -public function addConnect( string $pattern, mixed $paths = null, mixed $position = static-constant-access ): RouteInterface; -``` -Adds a route to the router that only match if the HTTP method is CONNECT - - -```php -public function addDelete( string $pattern, mixed $paths = null, mixed $position = static-constant-access ): RouteInterface; -``` -Adds a route to the router that only match if the HTTP method is DELETE - - -```php -public function addGet( string $pattern, mixed $paths = null, mixed $position = static-constant-access ): RouteInterface; -``` -Adds a route to the router that only match if the HTTP method is GET - - -```php -public function addHead( string $pattern, mixed $paths = null, mixed $position = static-constant-access ): RouteInterface; -``` -Adds a route to the router that only match if the HTTP method is HEAD - - -```php -public function addOptions( string $pattern, mixed $paths = null, mixed $position = static-constant-access ): RouteInterface; -``` -Add a route to the router that only match if the HTTP method is OPTIONS - - -```php -public function addPatch( string $pattern, mixed $paths = null, mixed $position = static-constant-access ): RouteInterface; -``` -Adds a route to the router that only match if the HTTP method is PATCH - - -```php -public function addPost( string $pattern, mixed $paths = null, mixed $position = static-constant-access ): RouteInterface; -``` -Adds a route to the router that only match if the HTTP method is POST - - -```php -public function addPurge( string $pattern, mixed $paths = null, mixed $position = static-constant-access ): RouteInterface; -``` -Adds a route to the router that only match if the HTTP method is PURGE -(Squid and Varnish support) - - -```php -public function addPut( string $pattern, mixed $paths = null, mixed $position = static-constant-access ): RouteInterface; -``` -Adds a route to the router that only match if the HTTP method is PUT - - -```php -public function addTrace( string $pattern, mixed $paths = null, mixed $position = static-constant-access ): RouteInterface; -``` -Adds a route to the router that only match if the HTTP method is TRACE - - -```php -public function attach( RouteInterface $route, mixed $position = static-constant-access ): RouterInterface; -``` -Attach Route object to the routes stack. - -```php -use Phalcon\Mvc\Router; -use Phalcon\Mvc\Router\Route; - -class CustomRoute extends Route { - // ... -} - -$router = new Router(); - -$router->attach( - new CustomRoute("/about", "About::index", ["GET", "HEAD"]), - Router::POSITION_FIRST -); -``` - - -```php -public function clear(): void; -``` -Removes all the pre-defined routes - - -```php -public function getActionName(): string; -``` -Returns the processed action name - - -```php -public function getControllerName(): string; -``` -Returns the processed controller name - - -```php -public function getDefaults(): array; -``` -Returns an array of default parameters - - -```php -public function getEventsManager(): ManagerInterface; -``` -Returns the internal event manager - - -```php -public function getKeyRouteIds() -``` - - -```php -public function getKeyRouteNames() -``` - - -```php -public function getMatchedRoute(): RouteInterface; -``` -Returns the route that matches the handled URI - - -```php -public function getMatches(): array; -``` -Returns the sub expressions in the regular expression matched - - -```php -public function getModuleName(): string; -``` -Returns the processed module name - - -```php -public function getNamespaceName(): string; -``` -Returns the processed namespace name - - -```php -public function getParams(): array; -``` -Returns the processed parameters - - -```php -public function getRouteById( mixed $id ): RouteInterface | bool; -``` -Returns a route object by its id - - -```php -public function getRouteByName( string $name ): RouteInterface | bool; -``` -Returns a route object by its name - - -```php -public function getRoutes(): RouteInterface[]; -``` -Returns all the routes defined in the router - - -```php -public function handle( string $uri ); -``` -Handles routing information received from the rewrite engine - -```php -// Passing a URL -$router->handle("/posts/edit/1"); -``` - - -```php -public function isExactControllerName(): bool; -``` -Returns whether controller name should not be mangled - - -```php -public function mount( GroupInterface $group ): RouterInterface; -``` -Mounts a group of routes in the router - - -```php -public function notFound( mixed $paths ): RouterInterface; -``` -Set a group of paths to be returned when none of the defined routes are -matched - - -```php -public function removeExtraSlashes( bool $remove ): RouterInterface; -``` -Set whether router must remove the extra slashes in the handled routes - - -```php -public function setDefaultAction( string $actionName ): RouterInterface; -``` -Sets the default action name - - -```php -public function setDefaultController( string $controllerName ): RouterInterface; -``` -Sets the default controller name - - -```php -public function setDefaultModule( string $moduleName ): RouterInterface; -``` -Sets the name of the default module - - -```php -public function setDefaultNamespace( string $namespaceName ): RouterInterface; -``` -Sets the name of the default namespace - - -```php -public function setDefaults( array $defaults ): RouterInterface; -``` -Sets an array of default paths. If a route is missing a path the router -will use the defined here. This method must not be used to set a 404 -route - -```php -$router->setDefaults( - [ - "module" => "common", - "action" => "index", - ] -); -``` - - -```php -public function setEventsManager( ManagerInterface $eventsManager ): void; -``` -Sets the events manager - - -```php -public function setKeyRouteIds( $keyRouteIds ) -``` - - -```php -public function setKeyRouteNames( $keyRouteNames ) -``` - - -```php -public function wasMatched(): bool; -``` -Checks if the router matches any of the defined routes - - - - -

        Class Phalcon\Mvc\Router\Annotations

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/router/annotations.zep) - -| Namespace | Phalcon\Mvc\Router | -| Uses | Phalcon\Di\DiInterface, Phalcon\Mvc\Router, Phalcon\Annotations\Annotation, Phalcon\Mvc\Router\Exception | -| Extends | Router | - -Phalcon\Mvc\Router\Annotations - -A router that reads routes annotations from classes/resources - -```php -use Phalcon\Mvc\Router\Annotations; - -$di->setShared( - "router", - function() { - // Use the annotations router - $router = new Annotations(false); - - // This will do the same as above but only if the handled uri starts with /robots - $router->addResource("Robots", "/robots"); - - return $router; - } -); -``` - - -## Properties -```php -// -protected actionSuffix = Action; - -// -protected controllerSuffix = Controller; - -// -protected handlers; - -// -protected routePrefix; - -``` - -## Methods -```php -public function addModuleResource( string $module, string $handler, string $prefix = null ): Annotations; -``` -Adds a resource to the annotations handler -A resource is a class that contains routing annotations -The class is located in a module - - -```php -public function addResource( string $handler, string $prefix = null ): Annotations; -``` -Adds a resource to the annotations handler -A resource is a class that contains routing annotations - - -```php -public function getResources(): array; -``` -Return the registered resources - - -```php -public function handle( string $uri ); -``` -Produce the routing parameters from the rewrite information - - -```php -public function processActionAnnotation( string $module, string $namespaceName, string $controller, string $action, Annotation $annotation ); -``` -Checks for annotations in the public methods of the controller - - -```php -public function processControllerAnnotation( string $handler, Annotation $annotation ); -``` -Checks for annotations in the controller docblock - - -```php -public function setActionSuffix( string $actionSuffix ); -``` -Changes the action method suffix - - -```php -public function setControllerSuffix( string $controllerSuffix ); -``` -Changes the controller class suffix - - - - -

        Class Phalcon\Mvc\Router\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/router/exception.zep) - -| Namespace | Phalcon\Mvc\Router | -| Extends | \Phalcon\Exception | - -Phalcon\Mvc\Router\Exception - -Exceptions thrown in Phalcon\Mvc\Router will use this class - - - -

        Class Phalcon\Mvc\Router\Group

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/router/group.zep) - -| Namespace | Phalcon\Mvc\Router | -| Implements | GroupInterface | - -Phalcon\Mvc\Router\Group - -Helper class to create a group of routes with common attributes - -```php -$router = new \Phalcon\Mvc\Router(); - -//Create a group with a common module and controller -$blog = new Group( - [ - "module" => "blog", - "controller" => "index", - ] -); - -//All the routes start with /blog -$blog->setPrefix("/blog"); - -//Add a route to the group -$blog->add( - "/save", - [ - "action" => "save", - ] -); - -//Add another route to the group -$blog->add( - "/edit/{id}", - [ - "action" => "edit", - ] -); - -//This route maps to a controller different than the default -$blog->add( - "/blog", - [ - "controller" => "about", - "action" => "index", - ] -); - -//Add the group to the router -$router->mount($blog); -``` - - -## Properties -```php -// -protected beforeMatch; - -// -protected hostname; - -// -protected paths; - -// -protected prefix; - -// -protected routes; - -``` - -## Methods -```php -public function __construct( mixed $paths = null ); -``` -Phalcon\Mvc\Router\Group constructor - - -```php -public function add( string $pattern, mixed $paths = null, mixed $httpMethods = null ): RouteInterface; -``` -Adds a route to the router on any HTTP method - -```php -$router->add("/about", "About::index"); -``` - - -```php -public function addConnect( string $pattern, mixed $paths = null ): RouteInterface; -``` -Adds a route to the router that only match if the HTTP method is CONNECT - -@param string|array paths - - -```php -public function addDelete( string $pattern, mixed $paths = null ): RouteInterface; -``` -Adds a route to the router that only match if the HTTP method is DELETE - -@param string|array paths - - -```php -public function addGet( string $pattern, mixed $paths = null ): RouteInterface; -``` -Adds a route to the router that only match if the HTTP method is GET - -@param string|array paths - - -```php -public function addHead( string $pattern, mixed $paths = null ): RouteInterface; -``` -Adds a route to the router that only match if the HTTP method is HEAD - -@param string|array paths - - -```php -public function addOptions( string $pattern, mixed $paths = null ): RouteInterface; -``` -Add a route to the router that only match if the HTTP method is OPTIONS - -@param string|array paths - - -```php -public function addPatch( string $pattern, mixed $paths = null ): RouteInterface; -``` -Adds a route to the router that only match if the HTTP method is PATCH - -@param string|array paths - - -```php -public function addPost( string $pattern, mixed $paths = null ): RouteInterface; -``` -Adds a route to the router that only match if the HTTP method is POST - -@param string|array paths - - -```php -public function addPurge( string $pattern, mixed $paths = null ): RouteInterface; -``` -Adds a route to the router that only match if the HTTP method is PURGE - -@param string|array paths - - -```php -public function addPut( string $pattern, mixed $paths = null ): RouteInterface; -``` -Adds a route to the router that only match if the HTTP method is PUT - -@param string|array paths - - -```php -public function addTrace( string $pattern, mixed $paths = null ): RouteInterface; -``` -Adds a route to the router that only match if the HTTP method is TRACE - -@param string|array paths - - -```php -public function beforeMatch( callable $beforeMatch ): GroupInterface; -``` -Sets a callback that is called if the route is matched. -The developer can implement any arbitrary conditions here -If the callback returns false the route is treated as not matched - - -```php -public function clear(): void; -``` -Removes all the pre-defined routes - - -```php -public function getBeforeMatch(): callable; -``` -Returns the 'before match' callback if any - - -```php -public function getHostname(): string; -``` -Returns the hostname restriction - - -```php -public function getPaths(): array | string; -``` -Returns the common paths defined for this group - - -```php -public function getPrefix(): string; -``` -Returns the common prefix for all the routes - - -```php -public function getRoutes(): RouteInterface[]; -``` -Returns the routes added to the group - - -```php -public function setHostname( string $hostname ): GroupInterface; -``` -Set a hostname restriction for all the routes in the group - - -```php -public function setPaths( mixed $paths ): GroupInterface; -``` -Set common paths for all the routes in the group - - -```php -public function setPrefix( string $prefix ): GroupInterface; -``` -Set a common uri prefix for all the routes in this group - - -```php -protected function addRoute( string $pattern, mixed $paths = null, mixed $httpMethods = null ): RouteInterface; -``` -Adds a route applying the common attributes - - - - -

        Interface Phalcon\Mvc\Router\GroupInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/router/groupinterface.zep) - -| Namespace | Phalcon\Mvc\Router | -| Uses | Phalcon\Mvc\Router\RouteInterface | - -Phalcon\Mvc\Router\GroupInterface - -```php -$router = new \Phalcon\Mvc\Router(); - -// Create a group with a common module and controller -$blog = new Group( - [ - "module" => "blog", - "controller" => "index", - ] -); - -// All the routes start with /blog -$blog->setPrefix("/blog"); - -// Add a route to the group -$blog->add( - "/save", - [ - "action" => "save", - ] -); - -// Add another route to the group -$blog->add( - "/edit/{id}", - [ - "action" => "edit", - ] -); - -// This route maps to a controller different than the default -$blog->add( - "/blog", - [ - "controller" => "about", - "action" => "index", - ] -); - -// Add the group to the router -$router->mount($blog); -``` - - -## Methods -```php -public function add( string $pattern, mixed $paths = null, mixed $httpMethods = null ): RouteInterface; -``` -Adds a route to the router on any HTTP method - -```php -router->add("/about", "About::index"); -``` - - -```php -public function addConnect( string $pattern, mixed $paths = null ): RouteInterface; -``` -Adds a route to the router that only match if the HTTP method is CONNECT - - -```php -public function addDelete( string $pattern, mixed $paths = null ): RouteInterface; -``` -Adds a route to the router that only match if the HTTP method is DELETE - - -```php -public function addGet( string $pattern, mixed $paths = null ): RouteInterface; -``` -Adds a route to the router that only match if the HTTP method is GET - - -```php -public function addHead( string $pattern, mixed $paths = null ): RouteInterface; -``` -Adds a route to the router that only match if the HTTP method is HEAD - - -```php -public function addOptions( string $pattern, mixed $paths = null ): RouteInterface; -``` -Add a route to the router that only match if the HTTP method is OPTIONS - - -```php -public function addPatch( string $pattern, mixed $paths = null ): RouteInterface; -``` -Adds a route to the router that only match if the HTTP method is PATCH - - -```php -public function addPost( string $pattern, mixed $paths = null ): RouteInterface; -``` -Adds a route to the router that only match if the HTTP method is POST - - -```php -public function addPurge( string $pattern, mixed $paths = null ): RouteInterface; -``` -Adds a route to the router that only match if the HTTP method is PURGE - - -```php -public function addPut( string $pattern, mixed $paths = null ): RouteInterface; -``` -Adds a route to the router that only match if the HTTP method is PUT - - -```php -public function addTrace( string $pattern, mixed $paths = null ): RouteInterface; -``` -Adds a route to the router that only match if the HTTP method is TRACE - - -```php -public function beforeMatch( callable $beforeMatch ): GroupInterface; -``` -Sets a callback that is called if the route is matched. -The developer can implement any arbitrary conditions here -If the callback returns false the route is treated as not matched - - -```php -public function clear(): void; -``` -Removes all the pre-defined routes - - -```php -public function getBeforeMatch(): callable; -``` -Returns the 'before match' callback if any - - -```php -public function getHostname(): string; -``` -Returns the hostname restriction - - -```php -public function getPaths(): array | string; -``` -Returns the common paths defined for this group - - -```php -public function getPrefix(): string; -``` -Returns the common prefix for all the routes - - -```php -public function getRoutes(): RouteInterface[]; -``` -Returns the routes added to the group - - -```php -public function setHostname( string $hostname ): GroupInterface; -``` -Set a hostname restriction for all the routes in the group - - -```php -public function setPaths( mixed $paths ): GroupInterface; -``` -Set common paths for all the routes in the group - -@param array paths - - -```php -public function setPrefix( string $prefix ): GroupInterface; -``` -Set a common uri prefix for all the routes in this group - - - - -

        Class Phalcon\Mvc\Router\Route

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/router/route.zep) - -| Namespace | Phalcon\Mvc\Router | -| Uses | Phalcon\Mvc\Router\Exception | -| Implements | RouteInterface | - -Phalcon\Mvc\Router\Route - -This class represents every route added to the router - - -## Properties -```php -// -protected beforeMatch; - -// -protected compiledPattern; - -// -protected converters; - -// -protected group; - -// -protected hostname; - -// -protected id; - -// -protected methods; - -// -protected match; - -// -protected name; - -// -protected paths; - -// -protected pattern; - -// -protected static uniqueId = 0; - -``` - -## Methods -```php -public function __construct( string $pattern, mixed $paths = null, mixed $httpMethods = null ); -``` -Phalcon\Mvc\Router\Route constructor - - -```php -public function beforeMatch( mixed $callback ): RouteInterface; -``` -Sets a callback that is called if the route is matched. -The developer can implement any arbitrary conditions here -If the callback returns false the route is treated as not matched - -```php -$router->add( - "/login", - [ - "module" => "admin", - "controller" => "session", - ] -)->beforeMatch( - function ($uri, $route) { - // Check if the request was made with Ajax - if ($_SERVER["HTTP_X_REQUESTED_WITH"] === "xmlhttprequest") { - return false; - } - - return true; - } -); -``` - - -```php -public function compilePattern( string $pattern ): string; -``` -Replaces placeholders from pattern returning a valid PCRE regular expression - - -```php -public function convert( string $name, mixed $converter ): RouteInterface; -``` -{@inheritdoc} - - -```php -public function extractNamedParams( string $pattern ): array | bool; -``` -Extracts parameters from a string - - -```php -public function getBeforeMatch(): callable; -``` -Returns the 'before match' callback if any - - -```php -public function getCompiledPattern(): string; -``` -Returns the route's compiled pattern - - -```php -public function getConverters(): array; -``` -Returns the router converter - - -```php -public function getGroup(): GroupInterface | null; -``` -Returns the group associated with the route - - -```php -public function getHostname(): string; -``` -Returns the hostname restriction if any - - -```php -public function getHttpMethods(): array | string; -``` -Returns the HTTP methods that constraint matching the route - - -```php -public function getId() -``` - - -```php -public function getMatch(): callable; -``` -Returns the 'match' callback if any - - -```php -public function getName(): string; -``` -Returns the route's name - - -```php -public function getPaths(): array; -``` -Returns the paths - - -```php -public function getPattern(): string; -``` -Returns the route's pattern - - -```php -public function getReversedPaths(): array; -``` -Returns the paths using positions as keys and names as values - - -```php -public function getRouteId(): string; -``` -Returns the route's id - - -```php -public function match( mixed $callback ): RouteInterface; -``` -Allows to set a callback to handle the request directly in the route - -```php -$router->add( - "/help", - [] -)->match( - function () { - return $this->getResponse()->redirect("https://support.google.com/", true); - } -); -``` - - -```php -public function reConfigure( string $pattern, mixed $paths = null ): void; -``` -Reconfigure the route adding a new pattern and a set of paths - - -```php -public function setGroup( GroupInterface $group ): RouteInterface; -``` -Sets the group associated with the route - - -```php -public function setHostname( string $hostname ): RouteInterface; -``` -Sets a hostname restriction to the route - -```php -$route->setHostname("localhost"); -``` - - -```php -public function setHttpMethods( mixed $httpMethods ): RouteInterface; -``` -Sets a set of HTTP methods that constraint the matching of the route (alias of via) - -```php -$route->setHttpMethods("GET"); - -$route->setHttpMethods( - [ - "GET", - "POST", - ] -); -``` - - -```php -public function setName( string $name ): RouteInterface; -``` -Sets the route's name - -```php -$router->add( - "/about", - [ - "controller" => "about", - ] -)->setName("about"); -``` - - -```php -public function via( mixed $httpMethods ): RouteInterface; -``` -Set one or more HTTP methods that constraint the matching of the route - -```php -$route->via("GET"); - -$route->via( - [ - "GET", - "POST", - ] -); -``` - - - - -

        Interface Phalcon\Mvc\Router\RouteInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/router/routeinterface.zep) - -| Namespace | Phalcon\Mvc\Router | - -Phalcon\Mvc\Router\RouteInterface - -Interface for Phalcon\Mvc\Router\Route - - -## Methods -```php -public function compilePattern( string $pattern ): string; -``` -Replaces placeholders from pattern returning a valid PCRE regular expression - - -```php -public function convert( string $name, mixed $converter ): RouteInterface; -``` -Adds a converter to perform an additional transformation for certain parameter. - - -```php -public function getCompiledPattern(): string; -``` -Returns the route's pattern - - -```php -public function getHostname(): string; -``` -Returns the hostname restriction if any - - -```php -public function getHttpMethods(): string | array; -``` -Returns the HTTP methods that constraint matching the route - - -```php -public function getName(): string; -``` -Returns the route's name - - -```php -public function getPaths(): array; -``` -Returns the paths - - -```php -public function getPattern(): string; -``` -Returns the route's pattern - - -```php -public function getReversedPaths(): array; -``` -Returns the paths using positions as keys and names as values - - -```php -public function getRouteId(): string; -``` -Returns the route's id - - -```php -public function reConfigure( string $pattern, mixed $paths = null ): void; -``` -Reconfigure the route adding a new pattern and a set of paths - - -```php -public function setHostname( string $hostname ): RouteInterface; -``` -Sets a hostname restriction to the route - - -```php -public function setHttpMethods( mixed $httpMethods ): RouteInterface; -``` -Sets a set of HTTP methods that constraint the matching of the route - - -```php -public function setName( string $name ): void; -``` -Sets the route's name - - -```php -public function via( mixed $httpMethods ): void; -``` -Set one or more HTTP methods that constraint the matching of the route - - - - -

        Interface Phalcon\Mvc\RouterInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/routerinterface.zep) - -| Namespace | Phalcon\Mvc | -| Uses | Phalcon\Mvc\Router, Phalcon\Mvc\Router\RouteInterface, Phalcon\Mvc\Router\GroupInterface | - -Interface for Phalcon\Mvc\Router - - -## Methods -```php -public function add( string $pattern, mixed $paths = null, mixed $httpMethods = null ): RouteInterface; -``` -Adds a route to the router on any HTTP method - - -```php -public function addConnect( string $pattern, mixed $paths = null ): RouteInterface; -``` -Adds a route to the router that only match if the HTTP method is CONNECT - - -```php -public function addDelete( string $pattern, mixed $paths = null ): RouteInterface; -``` -Adds a route to the router that only match if the HTTP method is DELETE - - -```php -public function addGet( string $pattern, mixed $paths = null ): RouteInterface; -``` -Adds a route to the router that only match if the HTTP method is GET - - -```php -public function addHead( string $pattern, mixed $paths = null ): RouteInterface; -``` -Adds a route to the router that only match if the HTTP method is HEAD - - -```php -public function addOptions( string $pattern, mixed $paths = null ): RouteInterface; -``` -Add a route to the router that only match if the HTTP method is OPTIONS - - -```php -public function addPatch( string $pattern, mixed $paths = null ): RouteInterface; -``` -Adds a route to the router that only match if the HTTP method is PATCH - - -```php -public function addPost( string $pattern, mixed $paths = null ): RouteInterface; -``` -Adds a route to the router that only match if the HTTP method is POST - - -```php -public function addPurge( string $pattern, mixed $paths = null ): RouteInterface; -``` -Adds a route to the router that only match if the HTTP method is PURGE -(Squid and Varnish support) - - -```php -public function addPut( string $pattern, mixed $paths = null ): RouteInterface; -``` -Adds a route to the router that only match if the HTTP method is PUT - - -```php -public function addTrace( string $pattern, mixed $paths = null ): RouteInterface; -``` -Adds a route to the router that only match if the HTTP method is TRACE - - -```php -public function attach( RouteInterface $route, mixed $position = static-constant-access ): RouterInterface; -``` -Attach Route object to the routes stack. - - -```php -public function clear(): void; -``` -Removes all the defined routes - - -```php -public function getActionName(): string; -``` -Returns processed action name - - -```php -public function getControllerName(): string; -``` -Returns processed controller name - - -```php -public function getMatchedRoute(): RouteInterface; -``` -Returns the route that matches the handled URI - - -```php -public function getMatches(): array; -``` -Return the sub expressions in the regular expression matched - - -```php -public function getModuleName(): string; -``` -Returns processed module name - - -```php -public function getNamespaceName(): string; -``` -Returns processed namespace name - - -```php -public function getParams(): array; -``` -Returns processed extra params - - -```php -public function getRouteById( mixed $id ): RouteInterface | bool; -``` -Returns a route object by its id - - -```php -public function getRouteByName( string $name ): RouteInterface | bool; -``` -Returns a route object by its name - - -```php -public function getRoutes(): RouteInterface[]; -``` -Return all the routes defined in the router - - -```php -public function handle( string $uri ): void; -``` -Handles routing information received from the rewrite engine - - -```php -public function mount( GroupInterface $group ): RouterInterface; -``` -Mounts a group of routes in the router - - -```php -public function setDefaultAction( string $actionName ): void; -``` -Sets the default action name - - -```php -public function setDefaultController( string $controllerName ): void; -``` -Sets the default controller name - - -```php -public function setDefaultModule( string $moduleName ): void; -``` -Sets the name of the default module - - -```php -public function setDefaults( array $defaults ): void; -``` -Sets an array of default paths - - -```php -public function wasMatched(): bool; -``` -Check if the router matches any of the defined routes - - - - -

        Class Phalcon\Mvc\View

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/view.zep) - -| Namespace | Phalcon\Mvc | -| Uses | Closure, Phalcon\Di\DiInterface, Phalcon\Di\Injectable, Phalcon\Events\ManagerInterface, Phalcon\Helper\Arr, Phalcon\Helper\Str, Phalcon\Mvc\View\Exception, Phalcon\Mvc\ViewInterface, Phalcon\Mvc\View\Engine\Php | -| Extends | Injectable | -| Implements | ViewInterface | - -Phalcon\Mvc\View - -Phalcon\Mvc\View is a class for working with the "view" portion of the -model-view-controller pattern. That is, it exists to help keep the view -script separate from the model and controller scripts. It provides a system -of helpers, output filters, and variable escaping. - -```php -use Phalcon\Mvc\View; - -$view = new View(); - -// Setting views directory -$view->setViewsDir("app/views/"); - -$view->start(); - -// Shows recent posts view (app/views/posts/recent.phtml) -$view->render("posts", "recent"); -$view->finish(); - -// Printing views output -echo $view->getContent(); -``` - - -## Constants -```php -const LEVEL_ACTION_VIEW = 1; -const LEVEL_AFTER_TEMPLATE = 4; -const LEVEL_BEFORE_TEMPLATE = 2; -const LEVEL_LAYOUT = 3; -const LEVEL_MAIN_LAYOUT = 5; -const LEVEL_NO_RENDER = 0; -``` - -## Properties -```php -// -protected actionName; - -// -protected activeRenderPaths; - -// -protected basePath = ; - -// -protected content = ; - -// -protected controllerName; - -// -protected currentRenderLevel = 0; - -// -protected disabled = false; - -// -protected disabledLevels; - -// -protected engines = false; - -// -protected layout; - -// -protected layoutsDir = ; - -// -protected mainView = index; - -// -protected options; - -// -protected params; - -// -protected pickView; - -// -protected partialsDir = ; - -// -protected registeredEngines; - -// -protected renderLevel = 5; - -// -protected templatesAfter; - -// -protected templatesBefore; - -// -protected viewsDirs; - -// -protected viewParams; - -``` - -## Methods -```php -public function __construct( array $options = [] ); -``` -Phalcon\Mvc\View constructor - - -```php -public function __get( string $key ): mixed | null; -``` -Magic method to retrieve a variable passed to the view - -```php -echo $this->view->products; -``` - - -```php -public function __isset( string $key ): bool; -``` -Magic method to retrieve if a variable is set in the view - -```php -echo isset($this->view->products); -``` - - -```php -public function __set( string $key, mixed $value ); -``` -Magic method to pass variables to the views - -```php -$this->view->products = $products; -``` - - -```php -public function cleanTemplateAfter(): View; -``` -Resets any template before layouts - - -```php -public function cleanTemplateBefore(): View; -``` -Resets any "template before" layouts - - -```php -public function disable(): View; -``` -Disables the auto-rendering process - - -```php -public function disableLevel( mixed $level ): ViewInterface; -``` -Disables a specific level of rendering - -```php -// Render all levels except ACTION level -$this->view->disableLevel( - View::LEVEL_ACTION_VIEW -); -``` - - -```php -public function enable(): View; -``` -Enables the auto-rendering process - - -```php -public function exists( string $view ): bool; -``` -Checks whether view exists - - -```php -public function finish(): View; -``` -Finishes the render process by stopping the output buffering - - -```php -public function getActionName(): string; -``` -Gets the name of the action rendered - - -```php -public function getActiveRenderPath(): string | array; -``` -Returns the path (or paths) of the views that are currently rendered - - -```php -public function getBasePath(): string; -``` -Gets base path - - -```php -public function getContent(): string; -``` -Returns output from another view stage - - -```php -public function getControllerName(): string; -``` -Gets the name of the controller rendered - - -```php -public function getCurrentRenderLevel() -``` - - -```php -public function getLayout(): string; -``` -Returns the name of the main view - - -```php -public function getLayoutsDir(): string; -``` -Gets the current layouts sub-directory - - -```php -public function getMainView(): string; -``` -Returns the name of the main view - - -```php -public function getParamsToView(): array; -``` -Returns parameters to views - - -```php -public function getPartial( string $partialPath, mixed $params = null ): string; -``` -Renders a partial view - -```php -// Retrieve the contents of a partial -echo $this->getPartial("shared/footer"); -``` - -```php -// Retrieve the contents of a partial with arguments -echo $this->getPartial( - "shared/footer", - [ - "content" => $html, - ] -); -``` - - -```php -public function getPartialsDir(): string; -``` -Gets the current partials sub-directory - - -```php -public function getRegisteredEngines() -``` - - -```php -public function getRender( string $controllerName, string $actionName, array $params = [], mixed $configCallback = null ): string; -``` -Perform the automatic rendering returning the output as a string - -```php -$template = $this->view->getRender( - "products", - "show", - [ - "products" => $products, - ] -); -``` - -@param mixed configCallback - - -```php -public function getRenderLevel() -``` - - -```php -public function getVar( string $key ); -``` -Returns a parameter previously set in the view - - -```php -public function getViewsDir(): string | array; -``` -Gets views directory - - -```php -public function isDisabled(): bool; -``` -Whether automatic rendering is enabled - - -```php -public function partial( string $partialPath, mixed $params = null ); -``` -Renders a partial view - -```php -// Show a partial inside another view -$this->partial("shared/footer"); -``` - -```php -// Show a partial inside another view with parameters -$this->partial( - "shared/footer", - [ - "content" => $html, - ] -); -``` - - -```php -public function pick( mixed $renderView ): View; -``` -Choose a different view to render instead of last-controller/last-action - -```php -use Phalcon\Mvc\Controller; - -class ProductsController extends Controller -{ - public function saveAction() - { - // Do some save stuff... - - // Then show the list view - $this->view->pick("products/list"); - } -} -``` - - -```php -public function processRender( string $controllerName, string $actionName, array $params = [], bool $fireEvents = bool ): bool; -``` -Processes the view and templates; Fires events if needed - - -```php -public function registerEngines( array $engines ): View; -``` -Register templating engines - -```php -$this->view->registerEngines( - [ - ".phtml" => \Phalcon\Mvc\View\Engine\Php::class, - ".volt" => \Phalcon\Mvc\View\Engine\Volt::class, - ".mhtml" => \MyCustomEngine::class, - ] -); -``` - - -```php -public function render( string $controllerName, string $actionName, array $params = [] ): View | bool; -``` -Executes render process from dispatching data - -```php -// Shows recent posts view (app/views/posts/recent.phtml) -$view->start()->render("posts", "recent")->finish(); -``` - - -```php -public function reset(): View; -``` -Resets the view component to its factory default values - - -```php -public function setBasePath( string $basePath ): View; -``` -Sets base path. Depending of your platform, always add a trailing slash -or backslash - -```php -$view->setBasePath(__DIR__ . "/"); -``` - - -```php -public function setContent( string $content ): View; -``` -Externally sets the view content - -```php -$this->view->setContent("

        hello

        "); -``` - - -```php -public function setLayout( string $layout ): View; -``` -Change the layout to be used instead of using the name of the latest -controller name - -```php -$this->view->setLayout("main"); -``` - - -```php -public function setLayoutsDir( string $layoutsDir ): View; -``` -Sets the layouts sub-directory. Must be a directory under the views -directory. Depending of your platform, always add a trailing slash or -backslash - -```php -$view->setLayoutsDir("../common/layouts/"); -``` - - -```php -public function setMainView( string $viewPath ): View; -``` -Sets default view name. Must be a file without extension in the views -directory - -```php -// Renders as main view views-dir/base.phtml -$this->view->setMainView("base"); -``` - - -```php -public function setParamToView( string $key, mixed $value ): View; -``` -Adds parameters to views (alias of setVar) - -```php -$this->view->setParamToView("products", $products); -``` - - -```php -public function setPartialsDir( string $partialsDir ): View; -``` -Sets a partials sub-directory. Must be a directory under the views -directory. Depending of your platform, always add a trailing slash or -backslash - -```php -$view->setPartialsDir("../common/partials/"); -``` - - -```php -public function setRenderLevel( int $level ): ViewInterface; -``` -Sets the render level for the view - -```php -// Render the view related to the controller only -$this->view->setRenderLevel( - View::LEVEL_LAYOUT -); -``` - - -```php -public function setTemplateAfter( mixed $templateAfter ): View; -``` -Sets a "template after" controller layout - - -```php -public function setTemplateBefore( mixed $templateBefore ): View; -``` -Sets a template before the controller layout - - -```php -public function setVar( string $key, mixed $value ): View; -``` -Set a single view parameter - -```php -$this->view->setVar("products", $products); -``` - - -```php -public function setVars( array $params, bool $merge = bool ): View; -``` -Set all the render params - -```php -$this->view->setVars( - [ - "products" => $products, - ] -); -``` - - -```php -public function setViewsDir( mixed $viewsDir ): View; -``` -Sets the views directory. Depending of your platform, -always add a trailing slash or backslash - - -```php -public function start(): View; -``` -Starts rendering process enabling the output buffering - - -```php -public function toString( string $controllerName, string $actionName, array $params = [] ): string; -``` -Renders the view and returns it as a string - - -```php -protected function engineRender( array $engines, string $viewPath, bool $silence, bool $mustClean = bool ); -``` -Checks whether view exists on registered extensions and render it - - -```php -protected function getViewsDirs(): array; -``` -Gets views directories - - -```php -final protected function isAbsolutePath( string $path ); -``` -Checks if a path is absolute or not - - -```php -protected function loadTemplateEngines(): array; -``` -Loads registered template engines, if none is registered it will use -Phalcon\Mvc\View\Engine\Php - - - - -

        Abstract Class Phalcon\Mvc\View\Engine\AbstractEngine

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/view/engine/abstractengine.zep) - -| Namespace | Phalcon\Mvc\View\Engine | -| Uses | Phalcon\Di\DiInterface, Phalcon\Di\Injectable, Phalcon\Mvc\ViewBaseInterface | -| Extends | Injectable | -| Implements | EngineInterface | - -All the template engine adapters must inherit this class. This provides -basic interfacing between the engine and the Phalcon\Mvc\View component. - - -## Properties -```php -// -protected view; - -``` - -## Methods -```php -public function __construct( ViewBaseInterface $view, DiInterface $container = null ); -``` -Phalcon\Mvc\View\Engine constructor - - -```php -public function getContent(): string; -``` -Returns cached output on another view stage - - -```php -public function getView(): ViewBaseInterface; -``` -Returns the view component related to the adapter - - -```php -public function partial( string $partialPath, mixed $params = null ): string; -``` -Renders a partial inside another view - -@param array params - - - - -

        Interface Phalcon\Mvc\View\Engine\EngineInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/view/engine/engineinterface.zep) - -| Namespace | Phalcon\Mvc\View\Engine | - -Interface for Phalcon\Mvc\View engine adapters - - -## Methods -```php -public function getContent(): string; -``` -Returns cached output on another view stage - - -```php -public function partial( string $partialPath, mixed $params = null ): string; -``` -Renders a partial inside another view - - -```php -public function render( string $path, mixed $params, bool $mustClean = bool ); -``` -Renders a view using the template engine - - - - -

        Class Phalcon\Mvc\View\Engine\Php

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/view/engine/php.zep) - -| Namespace | Phalcon\Mvc\View\Engine | -| Uses | Phalcon\Mvc\View\Engine\AbstractEngine | -| Extends | AbstractEngine | - -Adapter to use PHP itself as templating engine - - -## Methods -```php -public function render( string $path, mixed $params, bool $mustClean = bool ); -``` -Renders a view using the template engine - - - - -

        Class Phalcon\Mvc\View\Engine\Volt

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/view/engine/volt.zep) - -| Namespace | Phalcon\Mvc\View\Engine | -| Uses | Phalcon\Di\DiInterface, Phalcon\Mvc\View\Engine\AbstractEngine, Phalcon\Mvc\View\Engine\Volt\Compiler, Phalcon\Mvc\View\Exception | -| Extends | AbstractEngine | - -Designer friendly and fast template engine for PHP written in Zephir/C - - -## Properties -```php -// -protected compiler; - -// -protected macros; - -// -protected options; - -``` - -## Methods -```php -public function callMacro( string $name, array $arguments = [] ): mixed; -``` -Checks if a macro is defined and calls it - - -```php -public function convertEncoding( string $text, string $from, string $to ): string; -``` -Performs a string conversion - - -```php -public function getCompiler(): Compiler; -``` -Returns the Volt's compiler - - -```php -public function getOptions(): array; -``` -Return Volt's options - - -```php -public function isIncluded( mixed $needle, mixed $haystack ): bool; -``` -Checks if the needle is included in the haystack - - -```php -public function length( mixed $item ): int; -``` -Length filter. If an array/object is passed a count is performed otherwise a strlen/mb_strlen - - -```php -public function render( string $templatePath, mixed $params, bool $mustClean = bool ); -``` -Renders a view using the template engine - - -```php -public function setOptions( array $options ); -``` -Set Volt's options - - -```php -public function slice( mixed $value, int $start = int, mixed $end = null ); -``` -Extracts a slice from a string/array/traversable object value - - -```php -public function sort( array $value ): array; -``` -Sorts an array - - - - -

        Class Phalcon\Mvc\View\Engine\Volt\Compiler

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/view/engine/volt/compiler.zep) - -| Namespace | Phalcon\Mvc\View\Engine\Volt | -| Uses | Closure, Phalcon\Di\DiInterface, Phalcon\Mvc\ViewBaseInterface, Phalcon\Di\InjectionAwareInterface, Phalcon\Mvc\View\Engine\Volt\Exception | -| Implements | InjectionAwareInterface | - -This class reads and compiles Volt templates into PHP plain code - -```php -$compiler = new \Phalcon\Mvc\View\Engine\Volt\Compiler(); - -$compiler->compile("views/partials/header.volt"); - -require $compiler->getCompiledTemplatePath(); -``` - - -## Properties -```php -// -protected autoescape = false; - -// -protected blockLevel = 0; - -// -protected blocks; - -// -protected container; - -// -protected compiledTemplatePath; - -// -protected currentBlock; - -// -protected currentPath; - -// -protected exprLevel = 0; - -// -protected extended = false; - -// -protected extensions; - -// -protected extendedBlocks; - -// -protected filters; - -// -protected foreachLevel = 0; - -// -protected forElsePointers; - -// -protected functions; - -// -protected level = 0; - -// -protected loopPointers; - -// -protected macros; - -// -protected options; - -// -protected prefix; - -// -protected view; - -``` - -## Methods -```php -public function __construct( ViewBaseInterface $view = null ); -``` -Phalcon\Mvc\View\Engine\Volt\Compiler - - -```php -public function addExtension( mixed $extension ): Compiler; -``` -Registers a Volt's extension - - -```php -public function addFilter( string $name, mixed $definition ): Compiler; -``` -Register a new filter in the compiler - - -```php -public function addFunction( string $name, mixed $definition ): Compiler; -``` -Register a new function in the compiler - - -```php -public function attributeReader( array $expr ): string; -``` -Resolves attribute reading - - -```php -public function compile( string $templatePath, bool $extendsMode = bool ); -``` -Compiles a template into a file applying the compiler options -This method does not return the compiled path if the template was not compiled - -```php -$compiler->compile("views/layouts/main.volt"); - -require $compiler->getCompiledTemplatePath(); -``` - - -```php -public function compileAutoEscape( array $statement, bool $extendsMode ): string; -``` -Compiles a "autoescape" statement returning PHP code - - -```php -public function compileCache( array $statement, bool $extendsMode = bool ): string; -``` -Compiles a "cache" statement returning PHP code - - -```php -public function compileCall( array $statement, bool $extendsMode ); -``` -Compiles calls to macros - - -```php -public function compileCase( array $statement, bool $caseClause = bool ): string; -``` -Compiles a "case"/"default" clause returning PHP code - - -```php -public function compileDo( array $statement ): string; -``` -Compiles a "do" statement returning PHP code - - -```php -public function compileEcho( array $statement ): string; -``` -Compiles a {% raw %}`{{` `}}`{% endraw %} statement returning PHP code - - -```php -public function compileElseIf( array $statement ): string; -``` -Compiles a "elseif" statement returning PHP code - - -```php -public function compileFile( string $path, string $compiledPath, bool $extendsMode = bool ); -``` -Compiles a template into a file forcing the destination path - -```php -$compiler->compileFile( - "views/layouts/main.volt", - "views/layouts/main.volt.php" -); -``` - -@return string|array - - -```php -public function compileForElse(): string; -``` -Generates a 'forelse' PHP code - - -```php -public function compileForeach( array $statement, bool $extendsMode = bool ): string; -``` -Compiles a "foreach" intermediate code representation into plain PHP code - - -```php -public function compileIf( array $statement, bool $extendsMode = bool ): string; -``` -Compiles a 'if' statement returning PHP code - - -```php -public function compileInclude( array $statement ): string; -``` -Compiles a 'include' statement returning PHP code - - -```php -public function compileMacro( array $statement, bool $extendsMode ): string; -``` -Compiles macros - - -```php -public function compileReturn( array $statement ): string; -``` -Compiles a "return" statement returning PHP code - - -```php -public function compileSet( array $statement ): string; -``` -Compiles a "set" statement returning PHP code - - -```php -public function compileString( string $viewCode, bool $extendsMode = bool ): string; -``` -Compiles a template into a string - -```php -echo $compiler->compileString({% raw %}'{{ "hello world" }}'{% endraw %}); -``` - - -```php -public function compileSwitch( array $statement, bool $extendsMode = bool ): string; -``` -Compiles a 'switch' statement returning PHP code - - -```php -final public function expression( array $expr ): string; -``` -Resolves an expression node in an AST volt tree - - -```php -final public function fireExtensionEvent( string $name, mixed $arguments = null ); -``` -Fires an event to registered extensions - -@param array arguments -@return mixed - - -```php -public function functionCall( array $expr ): string; -``` -Resolves function intermediate code into PHP function calls - - -```php -public function getCompiledTemplatePath(): string; -``` -Returns the path to the last compiled template - - -```php -public function getDI(): DiInterface; -``` -Returns the internal dependency injector - - -```php -public function getExtensions(): array; -``` -Returns the list of extensions registered in Volt - - -```php -public function getFilters(): array; -``` -Register the user registered filters - - -```php -public function getFunctions(): array; -``` -Register the user registered functions - - -```php -public function getOption( string $option ); -``` -Returns a compiler's option - -@return string - - -```php -public function getOptions(): array; -``` -Returns the compiler options - - -```php -public function getTemplatePath(): string; -``` -Returns the path that is currently being compiled - - -```php -public function getUniquePrefix(): string; -``` -Return a unique prefix to be used as prefix for compiled variables and -contexts - - -```php -public function parse( string $viewCode ); -``` -Parses a Volt template returning its intermediate representation - -```php -print_r( - $compiler->parse("{% raw %}{{ 3 + 2 }}{% endraw %}") -); -``` - -@return array - - -```php -public function resolveTest( array $test, string $left ): string; -``` -Resolves filter intermediate code into a valid PHP expression - - -```php -public function setDI( DiInterface $container ): void; -``` -Sets the dependency injector - - -```php -public function setOption( string $option, mixed $value ); -``` -Sets a single compiler option - -@param mixed value - - -```php -public function setOptions( array $options ); -``` -Sets the compiler options - - -```php -public function setUniquePrefix( string $prefix ): Compiler; -``` -Set a unique prefix to be used as prefix for compiled variables - - -```php -protected function compileSource( string $viewCode, bool $extendsMode = bool ): string; -``` -Compiles a Volt source code returning a PHP plain version - - -```php -protected function getFinalPath( string $path ); -``` -Gets the final path with VIEW - - -```php -final protected function resolveFilter( array $filter, string $left ): string; -``` -Resolves filter intermediate code into PHP function calls - - -```php -final protected function statementList( array $statements, bool $extendsMode = bool ): string; -``` -Traverses a statement list compiling each of its nodes - - -```php -final protected function statementListOrExtends( mixed $statements ); -``` -Compiles a block of statements - -@param array statements -@return string|array - - - - -

        Class Phalcon\Mvc\View\Engine\Volt\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/view/engine/volt/exception.zep) - -| Namespace | Phalcon\Mvc\View\Engine\Volt | -| Uses | Phalcon\Mvc\View\Exception | -| Extends | BaseException | - -Class for exceptions thrown by Phalcon\Mvc\View - - -## Properties -```php -// -protected statement; - -``` - -## Methods -```php -public function __construct( string $message = string, array $statement = [], int $code = int, \Exception $previous = null ); -``` -// - -```php -public function getStatement(): array; -``` -Gets currently parsed statement (if any). - - - - -

        Class Phalcon\Mvc\View\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/view/exception.zep) - -| Namespace | Phalcon\Mvc\View | -| Extends | \Phalcon\Exception | - -Phalcon\Mvc\View\Exception - -Class for exceptions thrown by Phalcon\Mvc\View - - - -

        Class Phalcon\Mvc\View\Simple

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/view/simple.zep) - -| Namespace | Phalcon\Mvc\View | -| Uses | Closure, Phalcon\Di\DiInterface, Phalcon\Di\Injectable, Phalcon\Helper\Arr, Phalcon\Helper\Str, Phalcon\Mvc\View\Exception, Phalcon\Mvc\ViewBaseInterface, Phalcon\Mvc\View\Engine\EngineInterface, Phalcon\Mvc\View\Engine\Php | -| Extends | Injectable | -| Implements | ViewBaseInterface | - -Phalcon\Mvc\View\Simple - -This component allows to render views without hierarchical levels - -```php -use Phalcon\Mvc\View\Simple as View; - -$view = new View(); - -// Render a view -echo $view->render( - "templates/my-view", - [ - "some" => $param, - ] -); - -// Or with filename with extension -echo $view->render( - "templates/my-view.volt", - [ - "parameter" => $here, - ] -); -``` - - -## Properties -```php -// -protected activeRenderPath; - -// -protected content; - -/** - * @var \Phalcon\Mvc\View\EngineInterface[]|false - */ -protected engines = false; - -// -protected options; - -// -protected partialsDir; - -/** - * @var array|null - */ -protected registeredEngines; - -// -protected viewsDir; - -// -protected viewParams; - -``` - -## Methods -```php -public function __construct( array $options = [] ); -``` -Phalcon\Mvc\View\Simple constructor - - -```php -public function __get( string $key ): mixed | null; -``` -Magic method to retrieve a variable passed to the view - -```php -echo $this->view->products; -``` - - -```php -public function __set( string $key, mixed $value ); -``` -Magic method to pass variables to the views - -```php -$this->view->products = $products; -``` - - -```php -public function getActiveRenderPath(): string; -``` -Returns the path of the view that is currently rendered - - -```php -public function getContent(): string; -``` -Returns output from another view stage - - -```php -public function getParamsToView(): array; -``` -Returns parameters to views - - -```php -public function getRegisteredEngines(): array|null -``` - - -```php -public function getVar( string $key ): mixed | null; -``` -Returns a parameter previously set in the view - - -```php -public function getViewsDir(): string; -``` -Gets views directory - - -```php -public function partial( string $partialPath, mixed $params = null ); -``` -Renders a partial view - -```php -// Show a partial inside another view -$this->partial("shared/footer"); -``` - -```php -// Show a partial inside another view with parameters -$this->partial( - "shared/footer", - [ - "content" => $html, - ] -); -``` - - -```php -public function registerEngines( array $engines ); -``` -Register templating engines - -```php -$this->view->registerEngines( - [ - ".phtml" => \Phalcon\Mvc\View\Engine\Php::class, - ".volt" => \Phalcon\Mvc\View\Engine\Volt::class, - ".mhtml" => \MyCustomEngine::class, - ] -); -``` - - -```php -public function render( string $path, array $params = [] ): string; -``` -Renders a view - - -```php -public function setContent( string $content ): Simple; -``` -Externally sets the view content - -```php -$this->view->setContent("

        hello

        "); -``` - - -```php -public function setParamToView( string $key, mixed $value ): Simple; -``` -Adds parameters to views (alias of setVar) - -```php -$this->view->setParamToView("products", $products); -``` - - -```php -public function setVar( string $key, mixed $value ): Simple; -``` -Set a single view parameter - -```php -$this->view->setVar("products", $products); -``` - - -```php -public function setVars( array $params, bool $merge = bool ): Simple; -``` -Set all the render params - -```php -$this->view->setVars( - [ - "products" => $products, - ] -); -``` - - -```php -public function setViewsDir( string $viewsDir ); -``` -Sets views directory - - -```php -final protected function internalRender( string $path, mixed $params ); -``` -Tries to render the view with every engine registered in the component - -@param array params - - -```php -protected function loadTemplateEngines(): array; -``` -Loads registered template engines, if none are registered it will use -Phalcon\Mvc\View\Engine\Php - - - - -

        Interface Phalcon\Mvc\ViewBaseInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/viewbaseinterface.zep) - -| Namespace | Phalcon\Mvc | -| Uses | Phalcon\Cache\Adapter\AdapterInterface | - -Phalcon\Mvc\ViewInterface - -Interface for Phalcon\Mvc\View and Phalcon\Mvc\View\Simple - - -## Methods -```php -public function getContent(): string; -``` -Returns cached output from another view stage - - -```php -public function getParamsToView(): array; -``` -Returns parameters to views - - -```php -public function getViewsDir(): string | array; -``` -Gets views directory - - -```php -public function partial( string $partialPath, mixed $params = null ); -``` -Renders a partial view - - -```php -public function setContent( string $content ); -``` -Externally sets the view content - - -```php -public function setParamToView( string $key, mixed $value ); -``` -Adds parameters to views (alias of setVar) - - -```php -public function setVar( string $key, mixed $value ); -``` -Adds parameters to views - - -```php -public function setViewsDir( string $viewsDir ); -``` -Sets views directory. Depending of your platform, always add a trailing -slash or backslash - - - - -

        Interface Phalcon\Mvc\ViewInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/mvc/viewinterface.zep) - -| Namespace | Phalcon\Mvc | -| Extends | ViewBaseInterface | - -Phalcon\Mvc\ViewInterface - -Interface for Phalcon\Mvc\View - - -## Methods -```php -public function cleanTemplateAfter(); -``` -Resets any template before layouts - - -```php -public function cleanTemplateBefore(); -``` -Resets any template before layouts - - -```php -public function disable(); -``` -Disables the auto-rendering process - - -```php -public function enable(); -``` -Enables the auto-rendering process - - -```php -public function finish(); -``` -Finishes the render process by stopping the output buffering - - -```php -public function getActionName(): string; -``` -Gets the name of the action rendered - - -```php -public function getActiveRenderPath(): string | array; -``` -Returns the path of the view that is currently rendered - - -```php -public function getBasePath(): string; -``` -Gets base path - - -```php -public function getControllerName(): string; -``` -Gets the name of the controller rendered - - -```php -public function getLayout(): string; -``` -Returns the name of the main view - - -```php -public function getLayoutsDir(): string; -``` -Gets the current layouts sub-directory - - -```php -public function getMainView(): string; -``` -Returns the name of the main view - - -```php -public function getPartialsDir(): string; -``` -Gets the current partials sub-directory - - -```php -public function isDisabled(): bool; -``` -Whether the automatic rendering is disabled - - -```php -public function pick( string $renderView ); -``` -Choose a view different to render than last-controller/last-action - - -```php -public function registerEngines( array $engines ); -``` -Register templating engines - - -```php -public function render( string $controllerName, string $actionName, array $params = [] ): ViewInterface | bool; -``` -Executes render process from dispatching data - - -```php -public function reset(); -``` -Resets the view component to its factory default values - - -```php -public function setBasePath( string $basePath ); -``` -Sets base path. Depending of your platform, always add a trailing slash -or backslash - - -```php -public function setLayout( string $layout ); -``` -Change the layout to be used instead of using the name of the latest -controller name - - -```php -public function setLayoutsDir( string $layoutsDir ); -``` -Sets the layouts sub-directory. Must be a directory under the views -directory. Depending of your platform, always add a trailing slash or -backslash - - -```php -public function setMainView( string $viewPath ); -``` -Sets default view name. Must be a file without extension in the views -directory - - -```php -public function setPartialsDir( string $partialsDir ); -``` -Sets a partials sub-directory. Must be a directory under the views -directory. Depending of your platform, always add a trailing slash or -backslash - - -```php -public function setRenderLevel( int $level ): ViewInterface; -``` -Sets the render level for the view - - -```php -public function setTemplateAfter( mixed $templateAfter ); -``` -Appends template after controller layout - -@param string|array templateAfter - - -```php -public function setTemplateBefore( mixed $templateBefore ); -``` -Appends template before controller layout - -@param string|array templateBefore - - -```php -public function start(); -``` -Starts rendering process enabling the output buffering - - diff --git a/nikos/api/Phalcon_Paginator.md b/nikos/api/Phalcon_Paginator.md deleted file mode 100644 index bf8e184ef13..00000000000 --- a/nikos/api/Phalcon_Paginator.md +++ /dev/null @@ -1,566 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Paginator' ---- - -* [Phalcon\Paginator\Adapter\AbstractAdapter](#paginator-adapter-abstractadapter) -* [Phalcon\Paginator\Adapter\AdapterInterface](#paginator-adapter-adapterinterface) -* [Phalcon\Paginator\Adapter\Model](#paginator-adapter-model) -* [Phalcon\Paginator\Adapter\NativeArray](#paginator-adapter-nativearray) -* [Phalcon\Paginator\Adapter\QueryBuilder](#paginator-adapter-querybuilder) -* [Phalcon\Paginator\Exception](#paginator-exception) -* [Phalcon\Paginator\PaginatorFactory](#paginator-paginatorfactory) -* [Phalcon\Paginator\Repository](#paginator-repository) -* [Phalcon\Paginator\RepositoryInterface](#paginator-repositoryinterface) - -

        Abstract Class Phalcon\Paginator\Adapter\AbstractAdapter

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/paginator/adapter/abstractadapter.zep) - -| Namespace | Phalcon\Paginator\Adapter | -| Uses | Phalcon\Paginator\Repository, Phalcon\Paginator\RepositoryInterface | -| Implements | AdapterInterface | - -Phalcon\Paginator\Adapter\AbstractAdapter - - -## Properties -```php -/** - * Configuration of paginator - */ -protected config; - -/** - * Number of rows to show in the paginator. By default is null - */ -protected limitRows; - -/** - * Current page in paginate - */ -protected page; - -/** - * Repository for pagination - * - * @var RepositoryInterface - */ -protected repository; - -``` - -## Methods -```php -public function __construct( array $config ): void; -``` -Phalcon\Paginator\Adapter\AbstractAdapter constructor - - -```php -public function getLimit(): int; -``` -Get current rows limit - - -```php -public function setCurrentPage( int $page ): Adapter; -``` -Set the current page number - - -```php -public function setLimit( int $limitRows ): Adapter; -``` -Set current rows limit - - -```php -public function setRepository( RepositoryInterface $repository ): Adapter; -``` -Sets current repository for pagination - - -```php -protected function getRepository( array $properties = null ): RepositoryInterface; -``` -Gets current repository for pagination - - - - -

        Interface Phalcon\Paginator\Adapter\AdapterInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/paginator/adapter/adapterinterface.zep) - -| Namespace | Phalcon\Paginator\Adapter | -| Uses | Phalcon\Paginator\RepositoryInterface | - -Phalcon\Paginator\AdapterInterface - -Interface for Phalcon\Paginator adapters - - -## Methods -```php -public function getLimit(): int; -``` -Get current rows limit - - -```php -public function paginate(): RepositoryInterface; -``` -Returns a slice of the resultset to show in the pagination - - -```php -public function setCurrentPage( int $page ); -``` -Set the current page number - - -```php -public function setLimit( int $limit ); -``` -Set current rows limit - - - - -

        Class Phalcon\Paginator\Adapter\Model

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/paginator/adapter/model.zep) - -| Namespace | Phalcon\Paginator\Adapter | -| Uses | Phalcon\Paginator\Exception, Phalcon\Paginator\Adapter\AbstractAdapter, Phalcon\Paginator\RepositoryInterface | -| Extends | AbstractAdapter | - -Phalcon\Paginator\Adapter\Model - -This adapter allows to paginate data using a Phalcon\Mvc\Model resultset as a -base. - -```php -use Phalcon\Paginator\Adapter\Model; - -$paginator = new Model( - [ - "data" => Robots::find(), - "limit" => 25, - "page" => $currentPage, - ] -); - -$paginate = $paginator->paginate(); -``` - - -## Methods -```php -public function paginate(): RepositoryInterface; -``` -Returns a slice of the resultset to show in the pagination - - - - -

        Class Phalcon\Paginator\Adapter\NativeArray

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/paginator/adapter/nativearray.zep) - -| Namespace | Phalcon\Paginator\Adapter | -| Uses | Phalcon\Paginator\Exception, Phalcon\Paginator\Adapter\AbstractAdapter, Phalcon\Paginator\RepositoryInterface | -| Extends | AbstractAdapter | - -Phalcon\Paginator\Adapter\NativeArray - -Pagination using a PHP array as source of data - -```php -use Phalcon\Paginator\Adapter\NativeArray; - -$paginator = new NativeArray( - [ - "data" => [ - ["id" => 1, "name" => "Artichoke"], - ["id" => 2, "name" => "Carrots"], - ["id" => 3, "name" => "Beet"], - ["id" => 4, "name" => "Lettuce"], - ["id" => 5, "name" => ""], - ], - "limit" => 2, - "page" => $currentPage, - ] -); -``` - - -## Methods -```php -public function paginate(): RepositoryInterface; -``` -Returns a slice of the resultset to show in the pagination - - - - -

        Class Phalcon\Paginator\Adapter\QueryBuilder

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/paginator/adapter/querybuilder.zep) - -| Namespace | Phalcon\Paginator\Adapter | -| Uses | Phalcon\Db\Enum, Phalcon\Mvc\Model\Query\Builder, Phalcon\Paginator\Adapter\AbstractAdapter, Phalcon\Paginator\RepositoryInterface, Phalcon\Paginator\Exception | -| Extends | AbstractAdapter | - -Phalcon\Paginator\Adapter\QueryBuilder - -Pagination using a PHQL query builder as source of data - -```php -use Phalcon\Paginator\Adapter\QueryBuilder; - -$builder = $this->modelsManager->createBuilder() - ->columns("id, name") - ->from(Robots::class) - ->orderBy("name"); - -$paginator = new QueryBuilder( - [ - "builder" => $builder, - "limit" => 20, - "page" => 1, - ] -); -``` - - -## Properties -```php -/** - * Paginator's data - */ -protected builder; - -/** - * Columns for count query if builder has having - */ -protected columns; - -``` - -## Methods -```php -public function __construct( array $config ): void; -``` -Phalcon\Paginator\Adapter\QueryBuilder - - -```php -public function getCurrentPage(): int; -``` -Get the current page number - - -```php -public function getQueryBuilder(): Builder; -``` -Get query builder object - - -```php -public function paginate(): RepositoryInterface; -``` -Returns a slice of the resultset to show in the pagination - - -```php -public function setQueryBuilder( Builder $builder ): QueryBuilder; -``` -Set query builder object - - - - -

        Class Phalcon\Paginator\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/paginator/exception.zep) - -| Namespace | Phalcon\Paginator | -| Extends | \Phalcon\Exception | - -Phalcon\Paginator\Exception - -Exceptions thrown in Phalcon\Paginator will use this class - - - -

        Class Phalcon\Paginator\PaginatorFactory

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/paginator/paginatorfactory.zep) - -| Namespace | Phalcon\Paginator | -| Uses | Phalcon\Paginator\Adapter\AbstractAdapter, Phalcon\Factory\AbstractFactory, Phalcon\Helper\Arr | -| Extends | AbstractFactory | - -This file is part of the Phalcon Framework. - -(c) Phalcon Team - -For the full copyright and license information, please view the LICENSE.txt -file that was distributed with this source code. - - -## Methods -```php -public function __construct( array $services = [] ); -``` -AdapterFactory constructor. - - -```php -public function load( mixed $config ): mixed; -``` -Factory to create an instace from a Config object - -```php -use Phalcon\Paginator\PaginatorFactory; - -$builder = $this - ->modelsManager - ->createBuilder() - ->columns("id, name") - ->from(Robots::class) - ->orderBy("name"); - -$options = [ - "builder" => $builder, - "limit" => 20, - "page" => 1, - "adapter" => "queryBuilder", -]; - -$paginator = (new PaginatorFactory())->load($options); -``` - - -```php -public function newInstance( string $name, array $options = [] ): AbstractAdapter; -``` -Create a new instance of the adapter - - -```php -protected function getAdapters(): array; -``` -// - - - -

        Class Phalcon\Paginator\Repository

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/paginator/repository.zep) - -| Namespace | Phalcon\Paginator | -| Uses | Phalcon\Helper\Arr | -| Implements | RepositoryInterface | - -Phalcon\Paginator\Repository - -Repository of current state Phalcon\Paginator\AdapterInterface::paginate() - - -## Properties -```php -/** - * @var array - */ -protected aliases; - -/** - * @var array - */ -protected properties; - -``` - -## Methods -```php -public function __get( string $property ): mixed | null; -``` -{@inheritdoc} - - -```php -public function getAliases(): array; -``` -{@inheritdoc} - - -```php -public function getCurrent(): int; -``` -{@inheritdoc} - - -```php -public function getFirst(): int; -``` -{@inheritdoc} - - -```php -public function getItems(): mixed; -``` -{@inheritdoc} - - -```php -public function getLast(): int; -``` -{@inheritdoc} - - -```php -public function getLimit(): int; -``` -{@inheritdoc} - - -```php -public function getNext(): int; -``` -{@inheritdoc} - - -```php -public function getPrevious(): int; -``` -{@inheritdoc} - - -```php -public function getTotalItems(): int; -``` -{@inheritdoc} - - -```php -public function setAliases( array $aliases ): RepositoryInterface; -``` -{@inheritdoc} - - -```php -public function setProperties( array $properties ): RepositoryInterface; -``` -{@inheritdoc} - - -```php -protected function getProperty( string $property, mixed $defaultValue = null ): mixed; -``` -Gets value of property by name - - -```php -protected function getRealNameProperty( string $property ): string; -``` -Resolve alias property name - - - - -

        Interface Phalcon\Paginator\RepositoryInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/paginator/repositoryinterface.zep) - -| Namespace | Phalcon\Paginator | - -Phalcon\Paginator\RepositoryInterface - -Interface for the repository of current state -Phalcon\Paginator\AdapterInterface::paginate() - - -## Constants -```php -const PROPERTY_CURRENT_PAGE = current; -const PROPERTY_FIRST_PAGE = first; -const PROPERTY_ITEMS = items; -const PROPERTY_LAST_PAGE = last; -const PROPERTY_LIMIT = limit; -const PROPERTY_NEXT_PAGE = next; -const PROPERTY_PREVIOUS_PAGE = previous; -const PROPERTY_TOTAL_ITEMS = total_items; -``` - -## Methods -```php -public function getAliases(): array; -``` -Gets the aliases for properties repository - - -```php -public function getCurrent(): int; -``` -Gets number of the current page - - -```php -public function getFirst(): int; -``` -Gets number of the first page - - -```php -public function getItems(): mixed; -``` -Gets the items on the current page - - -```php -public function getLast(): int; -``` -Gets number of the last page - - -```php -public function getLimit(): int; -``` -Gets current rows limit - - -```php -public function getNext(): int; -``` -Gets number of the next page - - -```php -public function getPrevious(): int; -``` -Gets number of the previous page - - -```php -public function getTotalItems(): int; -``` -Gets the total number of items - - -```php -public function setAliases( array $aliases ): RepositoryInterface; -``` -Sets the aliases for properties repository - - -```php -public function setProperties( array $properties ): RepositoryInterface; -``` -Sets values for properties of the repository - - diff --git a/nikos/api/Phalcon_Registry.md b/nikos/api/Phalcon_Registry.md deleted file mode 100644 index 87bb67d736a..00000000000 --- a/nikos/api/Phalcon_Registry.md +++ /dev/null @@ -1,222 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Registry' ---- - -* [Phalcon\Registry](#registry) - -

        Final Class Phalcon\Registry

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/registry.zep) - -| Namespace | Phalcon | -| Uses | Phalcon\Collection, Traversable | -| Extends | Collection | - -Phalcon\Registry - -A registry is a container for storing objects and values in the application -space. By storing the value in a registry, the same object is always -available throughout your application. - -```php -$registry = new \Phalcon\Registry(); - -// Set value -$registry->something = "something"; -// or -$registry["something"] = "something"; - -// Get value -$value = $registry->something; -// or -$value = $registry["something"]; - -// Check if the key exists -$exists = isset($registry->something); -// or -$exists = isset($registry["something"]); - -// Unset -unset($registry->something); -// or -unset($registry["something"]); -``` - -In addition to ArrayAccess, Phalcon\Registry also implements Countable -(count($registry) will return the number of elements in the registry), -Serializable and Iterator (you can iterate over the registry using a foreach -loop) interfaces. For PHP 5.4 and higher, JsonSerializable interface is -implemented. - -Phalcon\Registry is very fast (it is typically faster than any userspace -implementation of the registry); however, this comes at a price: -Phalcon\Registry is a final class and cannot be inherited from. - -Though Phalcon\Registry exposes methods like __get(), offsetGet(), count() etc, -it is not recommended to invoke them manually (these methods exist mainly to -match the interfaces the registry implements): $registry->__get("property") -is several times slower than $registry->property. - -Internally all the magic methods (and interfaces except JsonSerializable) -are implemented using object handlers or similar techniques: this allows to -bypass relatively slow method calls. - - -## Methods -```php -final public function __construct( array $data = null ): void; -``` -Constructor - - -```php -final public function __get( string $element ): mixed; -``` -Magic getter to get an element from the collection - - -```php -final public function __isset( string $element ): bool; -``` -Magic isset to check whether an element exists or not - - -```php -final public function __set( string $element, mixed $value ): void; -``` -Magic setter to assign values to an element - - -```php -final public function __unset( string $element ): void; -``` -Magic unset to remove an element from the collection - - -```php -final public function clear(): void; -``` -Clears the internal collection - - -```php -final public function count(): int; -``` -Count elements of an object - -@link https://php.net/manual/en/countable.count.php - - -```php -final public function get( string $element, mixed $defaultValue = null ): mixed; -``` -Get the element from the collection - - -```php -final public function getIterator(): Traversable; -``` -Returns the iterator of the class - - -```php -final public function has( string $element ): bool; -``` -Get the element from the collection - - -```php -final public function init( array $data = [] ): void; -``` -Initialize internal array - - -```php -final public function jsonSerialize(): array; -``` -Specify data which should be serialized to JSON - -@link https://php.net/manual/en/jsonserializable.jsonserialize.php - - -```php -final public function offsetExists( mixed $element ): bool; -``` -Whether a offset exists - -@link https://php.net/manual/en/arrayaccess.offsetexists.php - - -```php -final public function offsetGet( mixed $element ): mixed; -``` -Offset to retrieve - -@link https://php.net/manual/en/arrayaccess.offsetget.php - - -```php -final public function offsetSet( mixed $element, mixed $value ): void; -``` -Offset to set - -@link https://php.net/manual/en/arrayaccess.offsetset.php - - -```php -final public function offsetUnset( mixed $element ): void; -``` -Offset to unset - -@link https://php.net/manual/en/arrayaccess.offsetunset.php - - -```php -final public function remove( string $element ): void; -``` -Delete the element from the collection - - -```php -final public function serialize(): string; -``` -String representation of object - -@link https://php.net/manual/en/serializable.serialize.php - - -```php -final public function set( string $element, mixed $value ): void; -``` -Set an element in the collection - - -```php -final public function toArray(): array; -``` -Returns the object in an array format - - -```php -final public function toJson( int $options = int ): string; -``` -Returns the object in a JSON format - -The default string uses the following options for json_encode - -JSON_HEX_TAG, JSON_HEX_APOS, JSON_HEX_AMP, JSON_HEX_QUOT, JSON_UNESCAPED_SLASHES - -@see https://www.ietf.org/rfc/rfc4627.txt - - -```php -final public function unserialize( mixed $serialized ): void; -``` -Constructs the object - -@link https://php.net/manual/en/serializable.unserialize.php - - diff --git a/nikos/api/Phalcon_Security.md b/nikos/api/Phalcon_Security.md deleted file mode 100644 index e281c913587..00000000000 --- a/nikos/api/Phalcon_Security.md +++ /dev/null @@ -1,470 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Security' ---- - -* [Phalcon\Security](#security) -* [Phalcon\Security\Exception](#security-exception) -* [Phalcon\Security\Random](#security-random) - -

        Class Phalcon\Security

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/security.zep) - -| Namespace | Phalcon | -| Uses | Phalcon\Di\DiInterface, Phalcon\Di\AbstractInjectionAware, Phalcon\Http\RequestInterface, Phalcon\Security\Random, Phalcon\Security\Exception, Phalcon\Session\ManagerInterface | -| Extends | AbstractInjectionAware | - -This component provides a set of functions to improve the security in Phalcon -applications - -```php -$login = $this->request->getPost("login"); -$password = $this->request->getPost("password"); - -$user = Users::findFirstByLogin($login); - -if ($user) { - if ($this->security->checkHash($password, $user->password)) { - // The password is valid - } -} -``` - - -## Constants -```php -const CRYPT_BLOWFISH = 4; -const CRYPT_BLOWFISH_A = 5; -const CRYPT_BLOWFISH_X = 6; -const CRYPT_BLOWFISH_Y = 7; -const CRYPT_DEFAULT = 0; -const CRYPT_EXT_DES = 2; -const CRYPT_MD5 = 3; -const CRYPT_SHA256 = 8; -const CRYPT_SHA512 = 9; -const CRYPT_STD_DES = 1; -``` - -## Properties -```php -// -protected defaultHash; - -// -protected numberBytes = 16; - -// -protected random; - -// -protected requestToken; - -// -protected token; - -// -protected tokenKey; - -// -protected tokenKeySessionId = $PHALCON/CSRF/KEY$; - -// -protected tokenValueSessionId = $PHALCON/CSRF$; - -// -protected workFactor = 8; - -// -private localSession; - -// -private localRequest; - -``` - -## Methods -```php -public function __construct( SessionInterface $session = null, RequestInterface $request = null ): void; -``` -Phalcon\Security constructor - - -```php -public function checkHash( string $password, string $passwordHash, int $maxPassLength = int ): bool; -``` -Checks a plain text password and its hash version to check if the -password matches - - -```php -public function checkToken( mixed $tokenKey = null, mixed $tokenValue = null, bool $destroyIfValid = bool ): bool; -``` -Check if the CSRF token sent in the request is the same that the current -in session - - -```php -public function computeHmac( string $data, string $key, string $algo, bool $raw = bool ): string; -``` -Computes a HMAC - - -```php -public function destroyToken(): Security; -``` -Removes the value of the CSRF token and key from session - - -```php -public function getDefaultHash(): int | null; -``` - Returns the default hash - - -```php -public function getRandom(): Random; -``` -Returns a secure random number generator instance - - -```php -public function getRandomBytes(): string; -``` -Returns a number of bytes to be generated by the openssl pseudo random -generator - - -```php -public function getRequestToken(): string | null; -``` -Returns the value of the CSRF token for the current request. - - -```php -public function getSaltBytes( int $numberBytes = int ): string; -``` -Generate a >22-length pseudo random string to be used as salt for -passwords - - -```php -public function getSessionToken(): string | null; -``` -Returns the value of the CSRF token in session - - -```php -public function getToken(): string; -``` -Generates a pseudo random token value to be used as input's value in a -CSRF check - - -```php -public function getTokenKey(): string; -``` -Generates a pseudo random token key to be used as input's name in a CSRF -check - - -```php -public function getWorkFactor() -``` - - -```php -public function hash( string $password, int $workFactor = int ): string; -``` -Creates a password hash using bcrypt with a pseudo random salt - - -```php -public function isLegacyHash( string $passwordHash ): bool; -``` -Checks if a password hash is a valid bcrypt's hash - - -```php -public function setDefaultHash( int $defaultHash ): Security; -``` - Sets the default hash - - -```php -public function setRandomBytes( long $randomBytes ): Security; -``` -Sets a number of bytes to be generated by the openssl pseudo random -generator - - -```php -public function setWorkFactor( $workFactor ) -``` - - - - -

        Class Phalcon\Security\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/security/exception.zep) - -| Namespace | Phalcon\Security | -| Extends | \Phalcon\Exception | - -Phalcon\Security\Exception - -Exceptions thrown in Phalcon\Security will use this class - - - -

        Class Phalcon\Security\Random

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/security/random.zep) - -| Namespace | Phalcon\Security | - -Phalcon\Security\Random - -Secure random number generator class. - -Provides secure random number generator which is suitable for generating -session key in HTTP cookies, etc. - -`Phalcon\Security\Random` could be mainly useful for: - -- Key generation (e.g. generation of complicated keys) -- Generating random passwords for new user accounts -- Encryption systems - -```php -$random = new \Phalcon\Security\Random(); - -// Random binary string -$bytes = $random->bytes(); - -// Random hex string -echo $random->hex(10); // a29f470508d5ccb8e289 -echo $random->hex(10); // 533c2f08d5eee750e64a -echo $random->hex(11); // f362ef96cb9ffef150c9cd -echo $random->hex(12); // 95469d667475125208be45c4 -echo $random->hex(13); // 05475e8af4a34f8f743ab48761 - -// Random base62 string -echo $random->base62(); // z0RkwHfh8ErDM1xw - -// Random base64 string -echo $random->base64(12); // XfIN81jGGuKkcE1E -echo $random->base64(12); // 3rcq39QzGK9fUqh8 -echo $random->base64(); // DRcfbngL/iOo9hGGvy1TcQ== -echo $random->base64(16); // SvdhPcIHDZFad838Bb0Swg== - -// Random URL-safe base64 string -echo $random->base64Safe(); // PcV6jGbJ6vfVw7hfKIFDGA -echo $random->base64Safe(); // GD8JojhzSTrqX7Q8J6uug -echo $random->base64Safe(8); // mGyy0evy3ok -echo $random->base64Safe(null, true); // DRrAgOFkS4rvRiVHFefcQ== - -// Random UUID -echo $random->uuid(); // db082997-2572-4e2c-a046-5eefe97b1235 -echo $random->uuid(); // da2aa0e2-b4d0-4e3c-99f5-f5ef62c57fe2 -echo $random->uuid(); // 75e6b628-c562-4117-bb76-61c4153455a9 -echo $random->uuid(); // dc446df1-0848-4d05-b501-4af3c220c13d - -// Random number between 0 and $len -echo $random->number(256); // 84 -echo $random->number(256); // 79 -echo $random->number(100); // 29 -echo $random->number(300); // 40 - -// Random base58 string -echo $random->base58(); // 4kUgL2pdQMSCQtjE -echo $random->base58(); // Umjxqf7ZPwh765yR -echo $random->base58(24); // qoXcgmw4A9dys26HaNEdCRj9 -echo $random->base58(7); // 774SJD3vgP -``` - -This class partially borrows SecureRandom library from Ruby - -@link http://ruby-doc.org/stdlib-2.2.2/libdoc/securerandom/rdoc/SecureRandom.html - - -## Methods -```php -public function base58( int $len = null ): string; -``` -Generates a random base58 string - -If $len is not specified, 16 is assumed. It may be larger in future. -The result may contain alphanumeric characters except 0, O, I and l. - -It is similar to `Phalcon\Security\Random::base64()` but has been -modified to avoid both non-alphanumeric characters and letters which -might look ambiguous when printed. - -```php -$random = new \Phalcon\Security\Random(); - -echo $random->base58(); // 4kUgL2pdQMSCQtjE -``` - -@see \Phalcon\Security\Random:base64 -@link https://en.wikipedia.org/wiki/Base58 -@throws Exception If secure random number generator is not available or unexpected partial read - - -```php -public function base62( int $len = null ): string; -``` -Generates a random base62 string - -If $len is not specified, 16 is assumed. It may be larger in future. - -It is similar to `Phalcon\Security\Random::base58()` but has been -modified to provide the largest value that can safely be used in URLs -without needing to take extra characters into consideration because it is -[A-Za-z0-9]. - -```php -$random = new \Phalcon\Security\Random(); - -echo $random->base62(); // z0RkwHfh8ErDM1xw -``` - -@see \Phalcon\Security\Random:base58 -@throws Exception If secure random number generator is not available or unexpected partial read - - -```php -public function base64( int $len = null ): string; -``` -Generates a random base64 string - -If $len is not specified, 16 is assumed. It may be larger in future. -The length of the result string is usually greater of $len. -Size formula: 4($len / 3) rounded up to a multiple of 4. - -```php -$random = new \Phalcon\Security\Random(); - -echo $random->base64(12); // 3rcq39QzGK9fUqh8 -``` - -@throws Exception If secure random number generator is not available or unexpected partial read - - -```php -public function base64Safe( int $len = null, bool $padding = bool ): string; -``` -Generates a random URL-safe base64 string - -If $len is not specified, 16 is assumed. It may be larger in future. -The length of the result string is usually greater of $len. - -By default, padding is not generated because "=" may be used as a URL -delimiter. The result may contain A-Z, a-z, 0-9, "-" and "_". "=" is also -used if $padding is true. See RFC 3548 for the definition of URL-safe -base64. - -```php -$random = new \Phalcon\Security\Random(); - -echo $random->base64Safe(); // GD8JojhzSTrqX7Q8J6uug -``` - -@link https://www.ietf.org/rfc/rfc3548.txt -@throws Exception If secure random number generator is not available or unexpected partial read - - -```php -public function bytes( int $len = int ): string; -``` -Generates a random binary string - -The `Random::bytes` method returns a string and accepts as input an int -representing the length in bytes to be returned. - -If $len is not specified, 16 is assumed. It may be larger in future. -The result may contain any byte: "x00" - "xFF". - -```php -$random = new \Phalcon\Security\Random(); - -$bytes = $random->bytes(); -var_dump(bin2hex($bytes)); -// Possible output: string(32) "00f6c04b144b41fad6a59111c126e1ee" -``` - -@throws Exception If secure random number generator is not available or unexpected partial read - - -```php -public function hex( int $len = null ): string; -``` -Generates a random hex string - -If $len is not specified, 16 is assumed. It may be larger in future. -The length of the result string is usually greater of $len. - -```php -$random = new \Phalcon\Security\Random(); - -echo $random->hex(10); // a29f470508d5ccb8e289 -``` - -@throws Exception If secure random number generator is not available or unexpected partial read - - -```php -public function number( int $len ): int; -``` -Generates a random number between 0 and $len - -Returns an integer: 0 <= result <= $len. - -```php -$random = new \Phalcon\Security\Random(); - -echo $random->number(16); // 8 -``` -@throws Exception If secure random number generator is not available, unexpected partial read or $len <= 0 - - -```php -public function uuid(): string; -``` -Generates a v4 random UUID (Universally Unique IDentifier) - -The version 4 UUID is purely random (except the version). It doesn't -contain meaningful information such as MAC address, time, etc. See RFC -4122 for details of UUID. - -This algorithm sets the version number (4 bits) as well as two reserved -bits. All other bits (the remaining 122 bits) are set using a random or -pseudorandom data source. Version 4 UUIDs have the form -xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx where x is any hexadecimal digit and -y is one of 8, 9, A, or B (e.g., f47ac10b-58cc-4372-a567-0e02b2c3d479). - -```php -$random = new \Phalcon\Security\Random(); - -echo $random->uuid(); // 1378c906-64bb-4f81-a8d6-4ae1bfcdec22 -``` - -@link https://www.ietf.org/rfc/rfc4122.txt -@throws Exception If secure random number generator is not available or unexpected partial read - - -```php -protected function base( string $alphabet, int $base, mixed $n = null ): string; -``` -Generates a random string based on the number ($base) of characters -($alphabet). - -If $n is not specified, 16 is assumed. It may be larger in future. - -@throws Exception If secure random number generator is not available or unexpected partial read - - diff --git a/nikos/api/Phalcon_Session.md b/nikos/api/Phalcon_Session.md deleted file mode 100644 index 1eaf9d351cb..00000000000 --- a/nikos/api/Phalcon_Session.md +++ /dev/null @@ -1,736 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Session' ---- - -* [Phalcon\Session\Adapter\AbstractAdapter](#session-adapter-abstractadapter) -* [Phalcon\Session\Adapter\Libmemcached](#session-adapter-libmemcached) -* [Phalcon\Session\Adapter\Noop](#session-adapter-noop) -* [Phalcon\Session\Adapter\Redis](#session-adapter-redis) -* [Phalcon\Session\Adapter\Stream](#session-adapter-stream) -* [Phalcon\Session\Bag](#session-bag) -* [Phalcon\Session\Exception](#session-exception) -* [Phalcon\Session\Manager](#session-manager) -* [Phalcon\Session\ManagerInterface](#session-managerinterface) - -

        Abstract Class Phalcon\Session\Adapter\AbstractAdapter

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/session/adapter/abstractadapter.zep) - -| Namespace | Phalcon\Session\Adapter | -| Uses | Phalcon\Storage\Adapter\AdapterInterface, SessionHandlerInterface | -| Implements | SessionHandlerInterface | - -This file is part of the Phalcon. - -(c) Phalcon Team - -For the full copyright and license information, please view the LICENSE -file that was distributed with this source code. - - -## Properties -```php -/** - * @var - */ -protected adapter; - -``` - -## Methods -```php -public function close(): bool; -``` -Close - - -```php -public function destroy( mixed $id ): bool; -``` -Destroy - - -```php -public function gc( mixed $maxlifetime ): bool; -``` -Garbage Collector - - -```php -public function open( mixed $savePath, mixed $sessionName ): bool; -``` -Open - - -```php -public function read( mixed $id ): string; -``` -Read - - -```php -public function write( mixed $id, mixed $data ): bool; -``` -Write - - - - -

        Class Phalcon\Session\Adapter\Libmemcached

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/session/adapter/libmemcached.zep) - -| Namespace | Phalcon\Session\Adapter | -| Uses | Phalcon\Storage\AdapterFactory, Phalcon\Session\Adapter\AbstractAdapter | -| Extends | AbstractAdapter | - -Phalcon\Session\Adapter\Libmemcached - - -## Methods -```php -public function __construct( AdapterFactory $factory, array $options = [] ): void; -``` -Constructor - - - - -

        Class Phalcon\Session\Adapter\Noop

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/session/adapter/noop.zep) - -| Namespace | Phalcon\Session\Adapter | -| Uses | SessionHandlerInterface | -| Implements | SessionHandlerInterface | - -Phalcon\Session\Adapter\Noop - -This is an "empty" or null adapter. It can be used for testing or any -other purpose that no session needs to be invoked - -```php -setHandler(new Noop()); -``` - - -## Properties -```php -/** - * The connection of some adapters - */ -protected connection; - -/** - * Session options - * - * @var array - */ -protected options; - -/** - * Session prefix - * - * @var string - */ -protected prefix = ; - -/** - * Time To Live - * - * @var int - */ -protected ttl = 8600; - -``` - -## Methods -```php -public function __construct( array $options = [] ): void; -``` -Constructor - - -```php -public function close(): bool; -``` -Close - - -```php -public function destroy( mixed $id ): bool; -``` -Destroy - - -```php -public function gc( mixed $maxlifetime ): bool; -``` -Garbage Collector - - -```php -public function open( mixed $savePath, mixed $sessionName ): bool; -``` -Open - - -```php -public function read( mixed $id ): string; -``` -Read - - -```php -public function write( mixed $id, mixed $data ): bool; -``` -Write - - -```php -protected function getPrefixedName( mixed $name ): string; -``` -Helper method to get the name prefixed - - - - -

        Class Phalcon\Session\Adapter\Redis

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/session/adapter/redis.zep) - -| Namespace | Phalcon\Session\Adapter | -| Uses | Phalcon\Storage\AdapterFactory, Phalcon\Session\Adapter\AbstractAdapter | -| Extends | AbstractAdapter | - -Phalcon\Session\Adapter\Redis - - -## Methods -```php -public function __construct( AdapterFactory $factory, array $options = [] ): void; -``` -Constructor - - - - -

        Class Phalcon\Session\Adapter\Stream

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/session/adapter/stream.zep) - -| Namespace | Phalcon\Session\Adapter | -| Uses | Phalcon\Helper\Str, Phalcon\Session\Exception | -| Extends | Noop | - -Phalcon\Session\Adapter\Stream - -This is the file based adapter. It stores sessions in a file based system - -```php - '/tmp', - ] -); -$session->setHandler($files); -``` - - -## Properties -```php -/** - * @var string - */ -private path = ; - -``` - -## Methods -```php -public function __construct( array $options = [] ): void; -``` -// - -```php -public function destroy( mixed $id ): bool; -``` -// - -```php -public function gc( mixed $maxlifetime ): bool; -``` -// - -```php -public function open( mixed $savePath, mixed $sessionName ): bool; -``` - Ignore the savePath and use local defined path - - @return bool - - -```php -public function read( mixed $id ): string; -``` -// - -```php -public function write( mixed $id, mixed $data ): bool; -``` -// - - - -

        Class Phalcon\Session\Bag

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/session/bag.zep) - -| Namespace | Phalcon\Session | -| Uses | Phalcon\Collection, Phalcon\Di, Phalcon\Di\DiInterface, Phalcon\Di\InjectionAwareInterface | -| Extends | Collection | -| Implements | InjectionAwareInterface | - -Phalcon\Session\Bag - -This component helps to separate session data into "namespaces". Working by -this way you can easily create groups of session variables into the -application - -```php -$user = new \Phalcon\Session\Bag("user"); - -$user->name = "Kimbra Johnson"; -$user->age = 22; -``` - - -## Properties -```php -// -private container; - -// -private name; - -// -private session; - -``` - -## Methods -```php -public function __construct( string $name ): void; -``` -Phalcon\Session\Bag constructor - - -```php -public function clear(): void; -``` -Destroys the session bag - - -```php -public function getDI(): DiInterface; -``` -Returns the DependencyInjector container - - -```php -public function init( array $data = [] ): void; -``` -Removes a property from the internal bag - - -```php -public function remove( string $element ): void; -``` -Removes a property from the internal bag - - -```php -public function set( string $element, mixed $value ); -``` -Sets a value in the session bag - - -```php -public function setDI( DiInterface $container ): void; -``` -Sets the DependencyInjector container - - - - -

        Class Phalcon\Session\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/session/exception.zep) - -| Namespace | Phalcon\Session | -| Extends | \Phalcon\Exception | - -Phalcon\Session\Exception - -Exceptions thrown in Phalcon\Session will use this class - - - -

        Class Phalcon\Session\Manager

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/session/manager.zep) - -| Namespace | Phalcon\Session | -| Uses | InvalidArgumentException, RuntimeException, SessionHandlerInterface, Phalcon\DI\AbstractInjectionAware, Phalcon\Di\DiInterface, Phalcon\Helper\Arr, Phalcon\Session\ManagerInterface | -| Extends | AbstractInjectionAware | -| Implements | ManagerInterface | - -Phalcon\Session\Manager - -Session manager class - - -## Properties -```php -/** - * @var |null - */ -private handler; - -/** - * @var string - */ -private name = ; - -/** - * @var array - */ -private options; - -/** - * @var string - */ -private uniqueId = ; - -``` - -## Methods -```php -public function __construct( array $options = [] ): void; -``` -Manager constructor. - - -```php -public function __get( string $key ): mixed; -``` -Alias: Gets a session variable from an application context - - -```php -public function __isset( string $key ): bool; -``` -Alias: Check whether a session variable is set in an application context - - -```php -public function __set( string $key, mixed $value ): void; -``` -Alias: Sets a session variable in an application context - - -```php -public function __unset( string $key ): void; -``` -Alias: Removes a session variable from an application context - - -```php -public function destroy(): void; -``` -Destroy/end a session - - -```php -public function exists(): bool; -``` -Check whether the session has been started - - -```php -public function get( string $key, mixed $defaultValue = null, bool $remove = bool ): mixed; -``` -Gets a session variable from an application context - - -```php -public function getHandler(): SessionHandlerInterface; -``` -Returns the stored session handler - - -```php -public function getId(): string; -``` -Returns the session id - - -```php -public function getName(): string; -``` -Returns the name of the session - - -```php -public function getOptions(): array; -``` -Get internal options - - -```php -public function has( string $key ): bool; -``` -Check whether a session variable is set in an application context - - -```php -public function regenerateId( mixed $deleteOldSession = bool ): ManagerInterface; -``` -Regenerates the session id using the handler. - - -```php -public function registerHandler( SessionHandlerInterface $handler ): bool; -``` -Registers a handler with the session - - -```php -public function remove( string $key ); -``` -Removes a session variable from an application context - - -```php -public function set( string $key, mixed $value ): void; -``` -Sets a session variable in an application context - - -```php -public function setHandler( SessionHandlerInterface $handler ): ManagerInterface; -``` -Set the handler for the session - - -```php -public function setId( string $id ): ManagerInterface; -``` -Set session Id - - -```php -public function setName( string $name ): ManagerInterface; -``` -Set the session name. Throw exception if the session has started -and do not allow poop names - -@param string name - -@throws InvalidArgumentException - -@return Manager - - -```php -public function setOptions( array $options ): void; -``` -Sets session's options - - -```php -public function start(): bool; -``` -Starts the session (if headers are already sent the session will not be -started) - - -```php -public function status(): int; -``` -Returns the status of the current session. - - - - -

        Interface Phalcon\Session\ManagerInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/session/managerinterface.zep) - -| Namespace | Phalcon\Session | -| Uses | InvalidArgumentException, RuntimeException, SessionHandlerInterface | - -Phalcon\Session - -Interface for the Phalcon\Session\Manager - - -## Constants -```php -const SESSION_ACTIVE = 2; -const SESSION_DISABLED = 0; -const SESSION_NONE = 1; -``` - -## Methods -```php -public function __get( string $key ): void; -``` -Alias: Gets a session variable from an application context - - -```php -public function __isset( string $key ): bool; -``` -Alias: Check whether a session variable is set in an application context - - -```php -public function __set( string $key, mixed $value ): void; -``` -Alias: Sets a session variable in an application context - - -```php -public function __unset( string $key ): void; -``` -Alias: Removes a session variable from an application context - - -```php -public function destroy(): void; -``` -Destroy/end a session - - -```php -public function exists(): bool; -``` -Check whether the session has been started - - -```php -public function get( string $key, mixed $defaultValue = null, bool $remove = bool ): mixed; -``` -Gets a session variable from an application context - - -```php -public function getHandler(): SessionHandlerInterface; -``` -Returns the stored session handler - - -```php -public function getId(): string; -``` -Returns the session id - - -```php -public function getName(): string; -``` -Returns the name of the session - - -```php -public function getOptions(): array; -``` -Get internal options - - -```php -public function has( string $key ): bool; -``` -Check whether a session variable is set in an application context - - -```php -public function regenerateId( mixed $deleteOldSession = bool ): ManagerInterface; -``` -Regenerates the session id using the handler. - - -```php -public function registerHandler( SessionHandlerInterface $handler ): bool; -``` -Registers a handler with the session - - -```php -public function remove( string $key ): void; -``` -Removes a session variable from an application context - - -```php -public function set( string $key, mixed $value ): void; -``` -Sets a session variable in an application context - - -```php -public function setHandler( SessionHandlerInterface $handler ): ManagerInterface; -``` -Set the handler for the session - - -```php -public function setId( string $id ): ManagerInterface; -``` -Set session Id - - -```php -public function setName( string $name ): ManagerInterface; -``` -Set the session name. Throw exception if the session has started -and do not allow poop names - -@throws InvalidArgumentException - - -```php -public function setOptions( array $options ): void; -``` -Sets session's options - - -```php -public function start(): bool; -``` -Starts the session (if headers are already sent the session will not be -started) - - -```php -public function status(): int; -``` -Returns the status of the current session. - - diff --git a/nikos/api/Phalcon_Storage.md b/nikos/api/Phalcon_Storage.md deleted file mode 100644 index 449905cd38f..00000000000 --- a/nikos/api/Phalcon_Storage.md +++ /dev/null @@ -1,1253 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Storage' ---- - -* [Phalcon\Storage\Adapter\AbstractAdapter](#storage-adapter-abstractadapter) -* [Phalcon\Storage\Adapter\AdapterInterface](#storage-adapter-adapterinterface) -* [Phalcon\Storage\Adapter\Apcu](#storage-adapter-apcu) -* [Phalcon\Storage\Adapter\Libmemcached](#storage-adapter-libmemcached) -* [Phalcon\Storage\Adapter\Memory](#storage-adapter-memory) -* [Phalcon\Storage\Adapter\Redis](#storage-adapter-redis) -* [Phalcon\Storage\Adapter\Stream](#storage-adapter-stream) -* [Phalcon\Storage\AdapterFactory](#storage-adapterfactory) -* [Phalcon\Storage\Exception](#storage-exception) -* [Phalcon\Storage\Serializer\AbstractSerializer](#storage-serializer-abstractserializer) -* [Phalcon\Storage\Serializer\Base64](#storage-serializer-base64) -* [Phalcon\Storage\Serializer\Igbinary](#storage-serializer-igbinary) -* [Phalcon\Storage\Serializer\Json](#storage-serializer-json) -* [Phalcon\Storage\Serializer\Msgpack](#storage-serializer-msgpack) -* [Phalcon\Storage\Serializer\None](#storage-serializer-none) -* [Phalcon\Storage\Serializer\Php](#storage-serializer-php) -* [Phalcon\Storage\Serializer\SerializerInterface](#storage-serializer-serializerinterface) -* [Phalcon\Storage\SerializerFactory](#storage-serializerfactory) - -

        Abstract Class Phalcon\Storage\Adapter\AbstractAdapter

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/storage/adapter/abstractadapter.zep) - -| Namespace | Phalcon\Storage\Adapter | -| Uses | DateInterval, DateTime, Phalcon\Helper\Arr, Phalcon\Storage\Adapter\AdapterInterface, Phalcon\Storage\Exception, Phalcon\Storage\SerializerFactory, Phalcon\Storage\Serializer\SerializerInterface | -| Implements | AdapterInterface | - -This file is part of the Phalcon Framework. - -(c) Phalcon Team - -For the full copyright and license information, please view the LICENSE.txt -file that was distributed with this source code. - - -## Properties -```php -/** - * @var mixed - */ -protected adapter; - -/** - * Name of the default serializer class - * - * @var string - */ -protected defaultSerializer = Php; - -/** - * Name of the default TTL (time to live) - * - * @var int - */ -protected lifetime = 3600; - -/** - * @var string - */ -protected prefix = ; - -/** - * Serializer - * - * @var - */ -protected serializer; - -/** - * Serializer Factory - * - * @var - */ -protected serializerFactory; - -``` - -## Methods -```php -protected function __construct( SerializerFactory $factory = null, array $options ): void; -``` -Sets parameters based on options - - -```php -abstract public function clear(): bool; -``` -Flushes/clears the cache - - -```php -abstract public function decrement( string $key, int $value = int ): int | bool; -``` -Decrements a stored number - - -```php -abstract public function delete( string $key ): bool; -``` -Deletes data from the adapter - - -```php -abstract public function get( string $key ): mixed; -``` -Reads data from the adapter - - -```php -abstract public function getAdapter(): mixed; -``` -Returns the adapter - connects to the storage if not connected - - -```php -public function getDefaultSerializer(): string -``` - - -```php -abstract public function getKeys(): array; -``` -Returns all the keys stored - - -```php -public function getPrefix(): string -``` - - -```php -abstract public function has( string $key ): bool; -``` -Checks if an element exists in the cache - - -```php -abstract public function increment( string $key, int $value = int ): int | bool; -``` -Increments a stored number - - -```php -abstract public function set( string $key, mixed $value, mixed $ttl = null ): bool; -``` -Stores data in the adapter - - -```php -public function setDefaultSerializer( string $defaultSerializer ) -``` - - -```php -protected function getPrefixedKey( mixed $key ): string; -``` -Returns the key requested, prefixed - - -```php -protected function getSerializedData( mixed $content ): mixed; -``` -Returns serialized data - - -```php -protected function getTtl( mixed $ttl ): int; -``` -Calculates the TTL for a cache item - -@param DateInterval|int|null $ttl - -@return int -@throws Exception - - -```php -protected function getUnserializedData( mixed $content, mixed $defaultValue = null ): mixed; -``` -Returns unserialized data - - -```php -protected function initSerializer(): void; -``` -Initializes the serializer - - - - -

        Interface Phalcon\Storage\Adapter\AdapterInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/storage/adapter/adapterinterface.zep) - -| Namespace | Phalcon\Storage\Adapter | -| Uses | Phalcon\Storage\Serializer\SerializerInterface | - -Interface for Phalcon\Logger adapters - - -## Methods -```php -public function clear(): bool; -``` -Flushes/clears the cache - - -```php -public function decrement( string $key, int $value = int ): int | bool; -``` -Decrements a stored number - - -```php -public function delete( string $key ): bool; -``` -Deletes data from the adapter - - -```php -public function get( string $key ): mixed; -``` -Reads data from the adapter - - -```php -public function getAdapter(): mixed; -``` -Returns the already connected adapter or connects to the backend -server(s) - - -```php -public function getKeys(): array; -``` -Returns all the keys stored - - -```php -public function getPrefix(): string; -``` -Returns the prefix for the keys - - -```php -public function has( string $key ): bool; -``` -Checks if an element exists in the cache - - -```php -public function increment( string $key, int $value = int ): int | bool; -``` -Increments a stored number - - -```php -public function set( string $key, mixed $value, mixed $ttl = null ): bool; -``` -Stores data in the adapter - - - - -

        Class Phalcon\Storage\Adapter\Apcu

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/storage/adapter/apcu.zep) - -| Namespace | Phalcon\Storage\Adapter | -| Uses | APCUIterator, Phalcon\Helper\Arr, Phalcon\Storage\Adapter\AbstractAdapter, Phalcon\Storage\Exception, Phalcon\Storage\SerializerFactory, Phalcon\Storage\Serializer\SerializerInterface | -| Extends | AbstractAdapter | - -Apcu adapter - - -## Properties -```php -/** - * @var array - */ -protected options; - -``` - -## Methods -```php -public function __construct( SerializerFactory $factory = null, array $options = [] ); -``` -Constructor - - -```php -public function clear(): bool; -``` -Flushes/clears the cache - - -```php -public function decrement( string $key, int $value = int ): int | bool; -``` -Decrements a stored number - -@param string $key -@param int $value - -@return bool|int - - -```php -public function delete( string $key ): bool; -``` -Reads data from the adapter - -@param string $key - -@return bool - - -```php -public function get( string $key, mixed $defaultValue = null ): mixed; -``` -Reads data from the adapter - -@param string $key -@param null $defaultValue - -@return mixed - - -```php -public function getAdapter(): mixed; -``` -Returns the already connected adapter or connects to the Memcached -server(s) - -@return mixed - - -```php -public function getKeys(): array; -``` -Stores data in the adapter - -@return array - - -```php -public function has( string $key ): bool; -``` -Checks if an element exists in the cache - -@param string $key - -@return bool - - -```php -public function increment( string $key, int $value = int ): int | bool; -``` -Increments a stored number - -@param string $key -@param int $value - -@return bool|int - - -```php -public function set( string $key, mixed $value, mixed $ttl = null ): bool; -``` -Stores data in the adapter - -@param string $key -@param mixed $value -@param null $ttl - -@return bool -@throws \Exception - - - - -

        Class Phalcon\Storage\Adapter\Libmemcached

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/storage/adapter/libmemcached.zep) - -| Namespace | Phalcon\Storage\Adapter | -| Uses | Phalcon\Helper\Arr, Phalcon\Storage\Adapter\AbstractAdapter, Phalcon\Storage\Exception, Phalcon\Storage\SerializerFactory, Phalcon\Storage\Serializer\SerializerInterface | -| Extends | AbstractAdapter | - -Libmemcached adapter - - -## Properties -```php -/** - * @var array - */ -protected options; - -``` - -## Methods -```php -public function __construct( SerializerFactory $factory = null, array $options = [] ); -``` -Libmemcached constructor. - -@param array $options - - -```php -public function clear(): bool; -``` -Flushes/clears the cache - -@return bool -@throws Exception - - -```php -public function decrement( string $key, int $value = int ): int | bool; -``` -Decrements a stored number - - -```php -public function delete( string $key ): bool; -``` -Reads data from the adapter - -@param string $key - -@return bool -@throws Exception - - -```php -public function get( string $key, mixed $defaultValue = null ): mixed; -``` -Reads data from the adapter - -@param string $key -@param null $defaultValue - -@return mixed -@throws Exception - - -```php -public function getAdapter(): mixed; -``` -Returns the already connected adapter or connects to the Memcached -server(s) - -@return Memcached -@throws Exception - - -```php -public function getKeys(): array; -``` -Stores data in the adapter - -@return array -@throws Exception - - -```php -public function has( string $key ): bool; -``` -Checks if an element exists in the cache - -@param string $key - -@return bool -@throws Exception - - -```php -public function increment( string $key, int $value = int ): int | bool; -``` -Increments a stored number - -@param string $key -@param int $value - -@return bool|int -@throws Exception - - -```php -public function set( string $key, mixed $value, mixed $ttl = null ): bool; -``` -Stores data in the adapter - -@param string $key -@param mixed $value -@param null $ttl - -@return bool -@throws Exception - - - - -

        Class Phalcon\Storage\Adapter\Memory

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/storage/adapter/memory.zep) - -| Namespace | Phalcon\Storage\Adapter | -| Uses | Phalcon\Collection, Phalcon\Helper\Arr, Phalcon\Storage\Adapter\AbstractAdapter, Phalcon\Storage\Exception, Phalcon\Storage\SerializerFactory, Phalcon\Storage\Serializer\SerializerInterface | -| Extends | AbstractAdapter | - -Memory adapter - - -## Properties -```php -/** - * @var Collection - */ -protected data; - -/** - * @var array - */ -protected options; - -``` - -## Methods -```php -public function __construct( SerializerFactory $factory = null, array $options = [] ); -``` -Constructor - - -```php -public function clear(): bool; -``` -Flushes/clears the cache - - -```php -public function decrement( string $key, int $value = int ): int | bool; -``` -Decrements a stored number - -@param string $key -@param int $value - -@return bool|int - - -```php -public function delete( string $key ): bool; -``` -Reads data from the adapter - -@param string $key - -@return bool - - -```php -public function get( string $key, mixed $defaultValue = null ): mixed; -``` -Reads data from the adapter - -@param string $key -@param mixed|null $defaultValue - -@return mixed - - -```php -public function getAdapter(): mixed; -``` -Returns the already connected adapter or connects to the Memcached -server(s) - -@return mixed - - -```php -public function getKeys(): array; -``` -Stores data in the adapter - -@return array - - -```php -public function has( string $key ): bool; -``` -Checks if an element exists in the cache - -@param string $key - -@return bool - - -```php -public function increment( string $key, int $value = int ): int | bool; -``` -Increments a stored number - -@param string $key -@param int $value - -@return bool|int - - -```php -public function set( string $key, mixed $value, mixed $ttl = null ): bool; -``` -Stores data in the adapter - -@param string $key -@param mixed $value -@param null $ttl - -@return bool - - - - -

        Class Phalcon\Storage\Adapter\Redis

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/storage/adapter/redis.zep) - -| Namespace | Phalcon\Storage\Adapter | -| Uses | Phalcon\Helper\Arr, Phalcon\Storage\Adapter\AbstractAdapter, Phalcon\Storage\Exception, Phalcon\Storage\SerializerFactory, Phalcon\Storage\Serializer\SerializerInterface | -| Extends | AbstractAdapter | - -Redis adapter - - -## Properties -```php -/** - * @var array - */ -protected options; - -``` - -## Methods -```php -public function __construct( SerializerFactory $factory = null, array $options = [] ); -``` -Constructor - - -```php -public function clear(): bool; -``` -Flushes/clears the cache - -@return bool -@throws Exception - - -```php -public function decrement( string $key, int $value = int ): int | bool; -``` -Decrements a stored number - -@param string $key -@param int $value - -@return bool|int -@throws Exception - - -```php -public function delete( string $key ): bool; -``` -Reads data from the adapter - -@param string $key - -@return bool -@throws Exception - - -```php -public function get( string $key, mixed $defaultValue = null ): mixed; -``` -Reads data from the adapter - -@param string $key -@param null $defaultValue - -@return mixed -@throws Exception - - -```php -public function getAdapter(): mixed; -``` -Returns the already connected adapter or connects to the Memcached -server(s) - -@return mixed|\Redis -@throws Exception - - -```php -public function getKeys(): array; -``` -Stores data in the adapter - -@return array -@throws Exception - - -```php -public function has( string $key ): bool; -``` -Checks if an element exists in the cache - -@param string $key - -@return bool -@throws Exception - - -```php -public function increment( string $key, int $value = int ): int | bool; -``` -Increments a stored number - -@param string $key -@param int $value - -@return bool|int -@throws Exception - - -```php -public function set( string $key, mixed $value, mixed $ttl = null ): bool; -``` -Stores data in the adapter - -@param string $key -@param mixed $value -@param null $ttl - -@return bool -@throws Exception - - - - -

        Class Phalcon\Storage\Adapter\Stream

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/storage/adapter/stream.zep) - -| Namespace | Phalcon\Storage\Adapter | -| Uses | FilesystemIterator, Iterator, Phalcon\Helper\Arr, Phalcon\Helper\Str, Phalcon\Storage\Adapter\AbstractAdapter, Phalcon\Storage\Exception, Phalcon\Storage\SerializerFactory, Phalcon\Storage\Serializer\SerializerInterface, RecursiveDirectoryIterator, RecursiveIteratorIterator | -| Extends | AbstractAdapter | - -Stream adapter - - -## Properties -```php -/** - * @var string - */ -protected cacheDir = ; - -/** - * @var array - */ -protected options; - -``` - -## Methods -```php -public function __construct( SerializerFactory $factory = null, array $options = [] ); -``` -Stream constructor. - -@param array $options - -@throws Exception - - -```php -public function clear(): bool; -``` -Flushes/clears the cache - - -```php -public function decrement( string $key, int $value = int ): int | bool; -``` -Decrements a stored number - -@param string $key -@param int $value - -@return bool|int -@throws \Exception - - -```php -public function delete( string $key ): bool; -``` -Reads data from the adapter - -@param string $key - -@return bool - - -```php -public function get( string $key, mixed $defaultValue = null ): mixed; -``` -Reads data from the adapter - -@param string $key -@param null $defaultValue - -@return mixed|null - - -```php -public function getAdapter(): mixed; -``` -Returns the already connected adapter or connects to the Memcached -server(s) - - -```php -public function getKeys(): array; -``` -Stores data in the adapter - - -```php -public function has( string $key ): bool; -``` -Checks if an element exists in the cache and is not expired - -@param string $key - -@return bool - - -```php -public function increment( string $key, int $value = int ): int | bool; -``` -Increments a stored number - -@param string $key -@param int $value - -@return bool|int -@throws \Exception - - -```php -public function set( string $key, mixed $value, mixed $ttl = null ): bool; -``` -Stores data in the adapter - -@param string $key -@param mixed $value -@param null $ttl - -@return bool -@throws \Exception - - - - -

        Class Phalcon\Storage\AdapterFactory

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/storage/adapterfactory.zep) - -| Namespace | Phalcon\Storage | -| Uses | Phalcon\Factory\AbstractFactory, Phalcon\Storage\Adapter\AbstractAdapter, Phalcon\Storage\SerializerFactory | -| Extends | AbstractFactory | - -This file is part of the Phalcon Framework. - -(c) Phalcon Team - -For the full copyright and license information, please view the LICENSE.txt -file that was distributed with this source code. - - -## Properties -```php -/** - * @var - */ -private serializerFactory; - -``` - -## Methods -```php -public function __construct( SerializerFactory $factory = null, array $services = [] ); -``` -AdapterFactory constructor. - - -```php -public function newInstance( string $name, array $options = [] ): AbstractAdapter; -``` -Create a new instance of the adapter - - -```php -protected function getAdapters(): array; -``` -// - - - -

        Class Phalcon\Storage\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/storage/exception.zep) - -| Namespace | Phalcon\Storage | -| Extends | \Phalcon\Exception | - -Phalcon\Storage\Exception - -Exceptions thrown in Phalcon\Storage will use this class - - - - -

        Abstract Class Phalcon\Storage\Serializer\AbstractSerializer

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/storage/serializer/abstractserializer.zep) - -| Namespace | Phalcon\Storage\Serializer | -| Uses | Phalcon\Storage\Exception, Phalcon\Storage\Serializer\SerializerInterface | -| Implements | SerializerInterface | - -This file is part of the Phalcon Framework. - -(c) Phalcon Team - -For the full copyright and license information, please view the LICENSE.txt -file that was distributed with this source code. - - -## Properties -```php -/** - * @var mixed - */ -protected data; - -``` - -## Methods -```php -public function __construct( mixed $data = null ): void; -``` - Constructor - - -```php -public function getData(): mixed -``` - - -```php -public function setData( mixed $data ) -``` - - -```php -protected function isSerializable( mixed $data ): bool; -``` -If this returns true, then the data returns back as is - - - - -

        Class Phalcon\Storage\Serializer\Base64

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/storage/serializer/base64.zep) - -| Namespace | Phalcon\Storage\Serializer | -| Uses | InvalidArgumentException, Phalcon\Storage\Serializer\AbstractSerializer | -| Extends | AbstractSerializer | - -This file is part of the Phalcon Framework. - -(c) Phalcon Team - -For the full copyright and license information, please view the LICENSE.txt -file that was distributed with this source code. - - -## Methods -```php -public function serialize(): string; -``` - Serializes data - - -```php -public function unserialize( mixed $data ): void; -``` - Unserializes data - - - - -

        Class Phalcon\Storage\Serializer\Igbinary

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/storage/serializer/igbinary.zep) - -| Namespace | Phalcon\Storage\Serializer | -| Uses | Phalcon\Storage\Serializer\AbstractSerializer | -| Extends | AbstractSerializer | - -This file is part of the Phalcon Framework. - -(c) Phalcon Team - -For the full copyright and license information, please view the LICENSE.txt -file that was distributed with this source code. - - -## Methods -```php -public function serialize(): string; -``` - Serializes data - - -```php -public function unserialize( mixed $data ): void; -``` - Unserializes data - - - - -

        Class Phalcon\Storage\Serializer\Json

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/storage/serializer/json.zep) - -| Namespace | Phalcon\Storage\Serializer | -| Uses | Phalcon\Storage\Serializer\AbstractSerializer | -| Extends | AbstractSerializer | - -This file is part of the Phalcon Framework. - -(c) Phalcon Team - -For the full copyright and license information, please view the LICENSE.txt -file that was distributed with this source code. - - -## Methods -```php -public function serialize(): string; -``` - Serializes data - - -```php -public function unserialize( mixed $data ): void; -``` - Unserializes data - - - - -

        Class Phalcon\Storage\Serializer\Msgpack

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/storage/serializer/msgpack.zep) - -| Namespace | Phalcon\Storage\Serializer | -| Uses | Phalcon\Storage\Serializer\AbstractSerializer | -| Extends | AbstractSerializer | - -This file is part of the Phalcon Framework. - -(c) Phalcon Team - -For the full copyright and license information, please view the LICENSE.txt -file that was distributed with this source code. - - -## Methods -```php -public function serialize(): string | null; -``` - Serializes data - - -```php -public function unserialize( mixed $data ): void; -``` - Unserializes data - - - - -

        Class Phalcon\Storage\Serializer\None

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/storage/serializer/none.zep) - -| Namespace | Phalcon\Storage\Serializer | -| Uses | Phalcon\Storage\Serializer\AbstractSerializer | -| Extends | AbstractSerializer | - -This file is part of the Phalcon Framework. - -(c) Phalcon Team - -For the full copyright and license information, please view the LICENSE.txt -file that was distributed with this source code. - - -## Methods -```php -public function serialize(): string; -``` - Serializes data - - -```php -public function unserialize( mixed $data ): void; -``` - Unserializes data - - - - -

        Class Phalcon\Storage\Serializer\Php

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/storage/serializer/php.zep) - -| Namespace | Phalcon\Storage\Serializer | -| Uses | Phalcon\Storage\Exception, Phalcon\Storage\Serializer\AbstractSerializer | -| Extends | AbstractSerializer | - -This file is part of the Phalcon Framework. - -(c) Phalcon Team - -For the full copyright and license information, please view the LICENSE.txt -file that was distributed with this source code. - - -## Methods -```php -public function serialize(): string; -``` - Serializes data - - -```php -public function unserialize( mixed $data ): void; -``` - Unserializes data - - - - -

        Interface Phalcon\Storage\Serializer\SerializerInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/storage/serializer/serializerinterface.zep) - -| Namespace | Phalcon\Storage\Serializer | -| Uses | Serializable | -| Extends | Serializable | - -This file is part of the Phalcon Framework. - -(c) Phalcon Team - -For the full copyright and license information, please view the LICENSE.txt -file that was distributed with this source code. - - -## Methods -```php -public function getData(): mixed; -``` -@var mixed - - -```php -public function setData( mixed $data ): void; -``` -@param $data - - - - -

        Class Phalcon\Storage\SerializerFactory

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/storage/serializerfactory.zep) - -| Namespace | Phalcon\Storage | -| Uses | Phalcon\Factory\AbstractFactory, Phalcon\Storage\Serializer\SerializerInterface | -| Extends | AbstractFactory | - -This file is part of the Phalcon Framework. - -(c) Phalcon Team - -For the full copyright and license information, please view the LICENSE.txt -file that was distributed with this source code. - - -## Methods -```php -public function __construct( array $services = [] ); -``` -SerializerFactory constructor. - -@param array services - - -```php -public function newInstance( string $name ): SerializerInterface; -``` -@param string name - -@return mixed -@throws Exception - - -```php -protected function getAdapters(): array; -``` -// - diff --git a/nikos/api/Phalcon_Tag.md b/nikos/api/Phalcon_Tag.md deleted file mode 100644 index 766f5eb737e..00000000000 --- a/nikos/api/Phalcon_Tag.md +++ /dev/null @@ -1,125 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Tag' ---- - -* [Phalcon\Tag](#tag) -* [Phalcon\Tag\Exception](#tag-exception) -* [Phalcon\Tag\Select](#tag-select) - -

        Class Phalcon\Tag

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/tag.zep) - -| Namespace | Phalcon | -| Uses | Phalcon\Di\DiInterface, Phalcon\Escaper\EscaperInterface, Phalcon\Tag\Select, Phalcon\Tag\Exception, Phalcon\Url\UrlInterface | - -Phalcon\Tag is designed to simplify building of HTML tags. -It provides a set of helpers to generate HTML in a dynamic way. -This component is a class that you can extend to add more helpers. - - -## Constants -```php -const HTML32 = 1; -const HTML401_FRAMESET = 4; -const HTML401_STRICT = 2; -const HTML401_TRANSITIONAL = 3; -const HTML5 = 5; -const XHTML10_FRAMESET = 8; -const XHTML10_STRICT = 6; -const XHTML10_TRANSITIONAL = 7; -const XHTML11 = 9; -const XHTML20 = 10; -const XHTML5 = 11; -``` - -## Properties -```php -// -protected static autoEscape = true; - -/** - * Framework Dispatcher - */ -protected static container; - -/** - * Pre-assigned values for components - */ -protected static displayValues; - -// -protected static dispatcherService; - -// -protected static documentAppendTitle; - -// -protected static documentPrependTitle; - -/** - * HTML document title - */ -protected static documentTitle; - -// -protected static documentTitleSeparator; - -// -protected static documentType = 11; - -// -protected static escaperService; - -// -protected static urlService; - -``` - -## Methods -```php -static final protected function inputField( string $type, mixed $parameters, bool $asValue = bool ): string; -``` -Builds generic INPUT tags - -@param array parameters - - -```php -static final protected function inputFieldChecked( string $type, mixed $parameters ): string; -``` -Builds INPUT tags that implements the checked attribute - -@param array parameters - - - - -

        Class Phalcon\Tag\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/tag/exception.zep) - -| Namespace | Phalcon\Tag | -| Extends | \Phalcon\Exception | - -Phalcon\Tag\Exception - -Exceptions thrown in Phalcon\Tag will use this class - - - -

        Abstract Class Phalcon\Tag\Select

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/tag/select.zep) - -| Namespace | Phalcon\Tag | -| Uses | Phalcon\Tag\Exception, Phalcon\Tag, Phalcon\Escaper\EscaperInterface, Phalcon\Mvc\Model\ResultsetInterface | - -Phalcon\Tag\Select - -Generates a SELECT html tag using a static array of values or a -Phalcon\Mvc\Model resultset - diff --git a/nikos/api/Phalcon_Text.md b/nikos/api/Phalcon_Text.md deleted file mode 100644 index b9aba07c173..00000000000 --- a/nikos/api/Phalcon_Text.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Text' ---- - -* [Phalcon\Text](#text) - -

        Class Phalcon\Text

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/text.zep) - -| Namespace | Phalcon | -| Uses | Phalcon\Helper\Str | - -Provides utilities to work with texts - - -## Constants -```php -const RANDOM_ALNUM = 0; -const RANDOM_ALPHA = 1; -const RANDOM_DISTINCT = 5; -const RANDOM_HEXDEC = 2; -const RANDOM_NOZERO = 4; -const RANDOM_NUMERIC = 3; -``` diff --git a/nikos/api/Phalcon_Translate.md b/nikos/api/Phalcon_Translate.md deleted file mode 100644 index 2a89ceae9ff..00000000000 --- a/nikos/api/Phalcon_Translate.md +++ /dev/null @@ -1,590 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Translate' ---- - -* [Phalcon\Translate\Adapter\AbstractAdapter](#translate-adapter-abstractadapter) -* [Phalcon\Translate\Adapter\AdapterInterface](#translate-adapter-adapterinterface) -* [Phalcon\Translate\Adapter\Csv](#translate-adapter-csv) -* [Phalcon\Translate\Adapter\Gettext](#translate-adapter-gettext) -* [Phalcon\Translate\Adapter\NativeArray](#translate-adapter-nativearray) -* [Phalcon\Translate\Exception](#translate-exception) -* [Phalcon\Translate\Interpolator\AssociativeArray](#translate-interpolator-associativearray) -* [Phalcon\Translate\Interpolator\IndexedArray](#translate-interpolator-indexedarray) -* [Phalcon\Translate\Interpolator\InterpolatorInterface](#translate-interpolator-interpolatorinterface) -* [Phalcon\Translate\InterpolatorFactory](#translate-interpolatorfactory) -* [Phalcon\Translate\TranslateFactory](#translate-translatefactory) - -

        Abstract Class Phalcon\Translate\Adapter\AbstractAdapter

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/translate/adapter/abstractadapter.zep) - -| Namespace | Phalcon\Translate\Adapter | -| Uses | Phalcon\Helper\Arr, Phalcon\Translate\Exception, Phalcon\Translate\Adapter\AdapterInterface, Phalcon\Translate\InterpolatorFactory | -| Implements | AdapterInterface | - -Phalcon\Translate\Adapter - -Base class for Phalcon\Translate adapters - - -## Properties -```php -/** - * @var string - */ -protected defaultInterpolator = ; - -/** - * @var InterpolatorFactory - */ -protected interpolatorFactory; - -``` - -## Methods -```php -public function __construct( InterpolatorFactory $interpolator, array $options ); -``` -// - -```php -public function _( string $translateKey, mixed $placeholders = null ): string; -``` -Returns the translation string of the given key (alias of method 't') - -@param array placeholders - - -```php -public function offsetExists( mixed $translateKey ): bool; -``` -Check whether a translation key exists - - -```php -public function offsetGet( mixed $translateKey ): mixed; -``` -Returns the translation related to the given key - - -```php -public function offsetSet( mixed $offset, mixed $value ): void; -``` -Sets a translation value - -@param string value - - -```php -public function offsetUnset( mixed $offset ): void; -``` -Unsets a translation from the dictionary - - -```php -public function t( string $translateKey, mixed $placeholders = null ): string; -``` -Returns the translation string of the given key - -@param array placeholders - - -```php -protected function replacePlaceholders( string $translation, mixed $placeholders = null ): string; -``` -Replaces placeholders by the values passed - - - - -

        Interface Phalcon\Translate\Adapter\AdapterInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/translate/adapter/adapterinterface.zep) - -| Namespace | Phalcon\Translate\Adapter | - -Phalcon\Translate\AdapterInterface - -Interface for Phalcon\Translate adapters - - -## Methods -```php -public function exists( string $index ): bool; -``` -Check whether is defined a translation key in the internal array - - -```php -public function query( string $translateKey, mixed $placeholders = null ): string; -``` -Returns the translation related to the given key - -@param array placeholders - - -```php -public function t( string $translateKey, mixed $placeholders = null ): string; -``` -Returns the translation string of the given key - -@param array placeholders - - - - -

        Class Phalcon\Translate\Adapter\Csv

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/translate/adapter/csv.zep) - -| Namespace | Phalcon\Translate\Adapter | -| Uses | ArrayAccess, Phalcon\Translate\Exception, Phalcon\Translate\Adapter\AbstractAdapter, Phalcon\Translate\InterpolatorFactory | -| Extends | AbstractAdapter | -| Implements | ArrayAccess | - -Phalcon\Translate\Adapter\Csv - -Allows to define translation lists using CSV file - - -## Properties -```php -/** - * @var array - */ -protected translate; - -``` - -## Methods -```php -public function __construct( InterpolatorFactory $interpolator, array $options ): void; -``` -Phalcon\Translate\Adapter\Csv constructor - - -```php -public function exists( string $index ): bool; -``` -Check whether is defined a translation key in the internal array - - -```php -public function query( string $index, mixed $placeholders = null ): string; -``` -Returns the translation related to the given key - - - - -

        Class Phalcon\Translate\Adapter\Gettext

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/translate/adapter/gettext.zep) - -| Namespace | Phalcon\Translate\Adapter | -| Uses | ArrayAccess, Phalcon\Translate\Exception, Phalcon\Translate\Adapter\AbstractAdapter, Phalcon\Translate\InterpolatorFactory | -| Extends | AbstractAdapter | -| Implements | ArrayAccess | - -Phalcon\Translate\Adapter\Gettext - -```php -use Phalcon\Translate\Adapter\Gettext; - -$adapter = new Gettext( - [ - "locale" => "de_DE.UTF-8", - "defaultDomain" => "translations", - "directory" => "/path/to/application/locales", - "category" => LC_MESSAGES, - ] -); -``` - -Allows translate using gettext - - -## Properties -```php -/** - * @var int - */ -protected category; - -/** - * @var string - */ -protected defaultDomain; - -/** - * @var string|array - */ -protected directory; - -/** - * @var string - */ -protected locale; - -``` - -## Methods -```php -public function __construct( InterpolatorFactory $interpolator, array $options ): void; -``` -Phalcon\Translate\Adapter\Gettext constructor - - -```php -public function exists( string $index ): bool; -``` -Check whether is defined a translation key in the internal array - - -```php -public function getCategory(): int -``` - - -```php -public function getDefaultDomain(): string -``` - - -```php -public function getDirectory(): string|array -``` - - -```php -public function getLocale(): string -``` - - -```php -public function nquery( string $msgid1, string $msgid2, int $count, mixed $placeholders = null, string $domain = null ): string; -``` -The plural version of gettext(). -Some languages have more than one form for plural messages dependent on -the count. - - -```php -public function query( string $index, mixed $placeholders = null ): string; -``` -Returns the translation related to the given key. - -```php -$translator->query("你好 %name%!", ["name" => "Phalcon"]); -``` - -@param array placeholders - - -```php -public function resetDomain(): string; -``` -Sets the default domain - - -```php -public function setDefaultDomain( string $domain ): void; -``` -Sets the domain default to search within when calls are made to gettext() - - -```php -public function setDirectory( mixed $directory ): void; -``` -Sets the path for a domain - -```php -// Set the directory path -$gettext->setDirectory("/path/to/the/messages"); - -// Set the domains and directories path -$gettext->setDirectory( - [ - "messages" => "/path/to/the/messages", - "another" => "/path/to/the/another", - ] -); -``` - -@param string|array directory The directory path or an array of directories and domains - - -```php -public function setDomain( mixed $domain ): string; -``` -Changes the current domain (i.e. the translation file) - - -```php -public function setLocale( int $category, string $locale ): string | bool; -``` -Sets locale information - -```php -// Set locale to Dutch -$gettext->setLocale(LC_ALL, "nl_NL"); - -// Try different possible locale names for german -$gettext->setLocale(LC_ALL, "de_DE@euro", "de_DE", "de", "ge"); -``` - - -```php -protected function getOptionsDefault(): array; -``` -Gets default options - - -```php -protected function prepareOptions( array $options ): void; -``` -Validator for constructor - - - - -

        Class Phalcon\Translate\Adapter\NativeArray

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/translate/adapter/nativearray.zep) - -| Namespace | Phalcon\Translate\Adapter | -| Uses | ArrayAccess, Phalcon\Translate\Exception, Phalcon\Translate\Adapter\AbstractAdapter, Phalcon\Translate\InterpolatorFactory | -| Extends | AbstractAdapter | -| Implements | ArrayAccess | - -Phalcon\Translate\Adapter\NativeArray - -Allows to define translation lists using PHP arrays - - -## Properties -```php -/** - * @var array - */ -private translate; - -/** - * @var bool - */ -private triggerError = false; - -``` - -## Methods -```php -public function __construct( InterpolatorFactory $interpolator, array $options ): void; -``` -Phalcon\Translate\Adapter\NativeArray constructor - - -```php -public function exists( string $index ): bool; -``` -Check whether is defined a translation key in the internal array - - -```php -public function notFound( string $index ): string; -``` -Whenever a key is not found this medhod will be called - - -```php -public function query( string $index, mixed $placeholders = null ): string; -``` -Returns the translation related to the given key - - - - -

        Class Phalcon\Translate\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/translate/exception.zep) - -| Namespace | Phalcon\Translate | -| Extends | \Phalcon\Exception | - -Phalcon\Translate\Exception - -Class for exceptions thrown by Phalcon\Translate - - - -

        Class Phalcon\Translate\Interpolator\AssociativeArray

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/translate/interpolator/associativearray.zep) - -| Namespace | Phalcon\Translate\Interpolator | -| Uses | Phalcon\Translate\Interpolator\InterpolatorInterface | -| Implements | InterpolatorInterface | - -This file is part of the Phalcon Framework. - -(c) Phalcon Team - -For the full copyright and license information, please view the LICENSE.txt -file that was distributed with this source code. - - -## Methods -```php -public function replacePlaceholders( string $translation, array $placeholders = [] ): string; -``` -Replaces placeholders by the values passed - - - - -

        Class Phalcon\Translate\Interpolator\IndexedArray

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/translate/interpolator/indexedarray.zep) - -| Namespace | Phalcon\Translate\Interpolator | -| Uses | Phalcon\Translate\Interpolator\InterpolatorInterface | -| Implements | InterpolatorInterface | - -This file is part of the Phalcon Framework. - -(c) Phalcon Team - -For the full copyright and license information, please view the LICENSE.txt -file that was distributed with this source code. - - -## Methods -```php -public function replacePlaceholders( string $translation, array $placeholders = [] ): string; -``` -Replaces placeholders by the values passed - - - - -

        Interface Phalcon\Translate\Interpolator\InterpolatorInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/translate/interpolator/interpolatorinterface.zep) - -| Namespace | Phalcon\Translate\Interpolator | - -Phalcon\Translate\InterpolatorInterface - -Interface for Phalcon\Translate interpolators - - -## Methods -```php -public function replacePlaceholders( string $translation, array $placeholders = [] ): string; -``` -Replaces placeholders by the values passed - - - - -

        Class Phalcon\Translate\InterpolatorFactory

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/translate/interpolatorfactory.zep) - -| Namespace | Phalcon\Translate | -| Uses | Phalcon\Factory\AbstractFactory, Phalcon\Translate\Adapter\AdapterInterface | -| Extends | AbstractFactory | - -This file is part of the Phalcon Framework. - -(c) Phalcon Team - -For the full copyright and license information, please view the LICENSE.txt -file that was distributed with this source code. - - -## Properties -```php -/** - * @var array - */ -private mapper; - -/** - * @var array - */ -private services; - -``` - -## Methods -```php -public function __construct( array $services = [] ); -``` -AdapterFactory constructor. - - -```php -public function newInstance( string $name ): AdapterInterface; -``` -Create a new instance of the adapter - - -```php -protected function getAdapters(): array; -``` -// - - - -

        Class Phalcon\Translate\TranslateFactory

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/translate/translatefactory.zep) - -| Namespace | Phalcon\Translate | -| Uses | Phalcon\Config, Phalcon\Factory\AbstractFactory, Phalcon\Helper\Arr, Phalcon\Translate\InterpolatorFactory | -| Extends | AbstractFactory | - -This file is part of the Phalcon Framework. - -(c) Phalcon Team - -For the full copyright and license information, please view the LICENSE.txt -file that was distributed with this source code. - - -## Properties -```php -/** - * @var InterpolatorFactory - */ -private interpolator; - -``` - -## Methods -```php -public function __construct( InterpolatorFactory $interpolator, array $services = [] ); -``` -AdapterFactory constructor. - - -```php -public function load( mixed $config ): mixed; -``` -Factory to create an instace from a Config object - - -```php -public function newInstance( string $name, array $options = [] ): AbstractAdapter; -``` -Create a new instance of the adapter - - -```php -protected function getAdapters(): array; -``` -// - diff --git a/nikos/api/Phalcon_Url.md b/nikos/api/Phalcon_Url.md deleted file mode 100644 index aca9efec320..00000000000 --- a/nikos/api/Phalcon_Url.md +++ /dev/null @@ -1,241 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Url' ---- - -* [Phalcon\Url](#url) -* [Phalcon\Url\Exception](#url-exception) -* [Phalcon\Url\UrlInterface](#url-urlinterface) - -

        Class Phalcon\Url

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/url.zep) - -| Namespace | Phalcon | -| Uses | Phalcon\Di\DiInterface, Phalcon\Di\AbstractInjectionAware, Phalcon\Mvc\RouterInterface, Phalcon\Mvc\Router\RouteInterface, Phalcon\Url\Exception, Phalcon\Url\UrlInterface | -| Extends | AbstractInjectionAware | -| Implements | UrlInterface | - -This components helps in the generation of: URIs, URLs and Paths - -```php -// Generate a URL appending the URI to the base URI -echo $url->get("products/edit/1"); - -// Generate a URL for a predefined route -echo $url->get( - [ - "for" => "blog-post", - "title" => "some-cool-stuff", - "year" => "2012", - ] -); -``` - - -## Properties -```php -/** - * @var null | string - */ -protected baseUri; - -/** - * @var null | string - */ -protected basePath; - -/** - * @var | null - */ -protected router; - -/** - * @var null | string - */ -protected staticBaseUri; - -``` - -## Methods -```php -public function __construct( RouterInterface $router = null ); -``` -// - -```php -public function get( mixed $uri = null, mixed $args = null, bool $local = null, mixed $baseUri = null ): string; -``` -Generates a URL - -```php -// Generate a URL appending the URI to the base URI -echo $url->get("products/edit/1"); - -// Generate a URL for a predefined route -echo $url->get( - [ - "for" => "blog-post", - "title" => "some-cool-stuff", - "year" => "2015", - ] -); - -// Generate a URL with GET arguments (/show/products?id=1&name=Carrots) -echo $url->get( - "show/products", - [ - "id" => 1, - "name" => "Carrots", - ] -); - -// Generate an absolute URL by setting the third parameter as false. -echo $url->get( - "https://phalcon.io/", - null, - false -); -``` - - -```php -public function getBasePath(): string; -``` -Returns the base path - - -```php -public function getBaseUri(): string; -``` -Returns the prefix for all the generated urls. By default / - - -```php -public function getStatic( mixed $uri = null ): string; -``` -Generates a URL for a static resource - -```php -// Generate a URL for a static resource -echo $url->getStatic("img/logo.png"); - -// Generate a URL for a static predefined route -echo $url->getStatic( - [ - "for" => "logo-cdn", - ] -); -``` - - -```php -public function getStaticBaseUri(): string; -``` -Returns the prefix for all the generated static urls. By default / - - -```php -public function path( string $path = null ): string; -``` -Generates a local path - - -```php -public function setBasePath( string $basePath ): UrlInterface; -``` -Sets a base path for all the generated paths - -```php -$url->setBasePath("/var/www/htdocs/"); -``` - - -```php -public function setBaseUri( string $baseUri ): UrlInterface; -``` -Sets a prefix for all the URIs to be generated - -```php -$url->setBaseUri("/invo/"); - -$url->setBaseUri("/invo/index.php/"); -``` - - -```php -public function setStaticBaseUri( string $staticBaseUri ): UrlInterface; -``` -Sets a prefix for all static URLs generated - -```php -$url->setStaticBaseUri("/invo/"); -``` - - - - -

        Class Phalcon\Url\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/url/exception.zep) - -| Namespace | Phalcon\Url | -| Extends | \Phalcon\Exception | - -Phalcon\Url\Exception - -Exceptions thrown in Phalcon\Url will use this class - - - -

        Interface Phalcon\Url\UrlInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/url/urlinterface.zep) - -| Namespace | Phalcon\Url | - -Interface for Phalcon\Url\UrlInterface - - -## Methods -```php -public function get( mixed $uri = null, mixed $args = null, bool $local = null ): string; -``` -Generates a URL - -@param string|array uri -@param array|object args Optional arguments to be appended to the query string - - -```php -public function getBasePath(): string; -``` -Returns a base path - - -```php -public function getBaseUri(): string; -``` -Returns the prefix for all the generated urls. By default / - - -```php -public function path( string $path = null ): string; -``` -Generates a local path - - -```php -public function setBasePath( string $basePath ): UrlInterface; -``` -Sets a base paths for all the generated paths - - -```php -public function setBaseUri( string $baseUri ): UrlInterface; -``` -Sets a prefix to all the urls generated - - diff --git a/nikos/api/Phalcon_Validation.md b/nikos/api/Phalcon_Validation.md deleted file mode 100644 index 3d5d3e3752f..00000000000 --- a/nikos/api/Phalcon_Validation.md +++ /dev/null @@ -1,2769 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Validation' ---- - -* [Phalcon\Validation](#validation) -* [Phalcon\Validation\AbstractCombinedFieldsValidator](#validation-abstractcombinedfieldsvalidator) -* [Phalcon\Validation\AbstractValidator](#validation-abstractvalidator) -* [Phalcon\Validation\AbstractValidatorComposite](#validation-abstractvalidatorcomposite) -* [Phalcon\Validation\Exception](#validation-exception) -* [Phalcon\Validation\ValidationInterface](#validation-validationinterface) -* [Phalcon\Validation\Validator\Alnum](#validation-validator-alnum) -* [Phalcon\Validation\Validator\Alpha](#validation-validator-alpha) -* [Phalcon\Validation\Validator\Between](#validation-validator-between) -* [Phalcon\Validation\Validator\Callback](#validation-validator-callback) -* [Phalcon\Validation\Validator\Confirmation](#validation-validator-confirmation) -* [Phalcon\Validation\Validator\CreditCard](#validation-validator-creditcard) -* [Phalcon\Validation\Validator\Date](#validation-validator-date) -* [Phalcon\Validation\Validator\Digit](#validation-validator-digit) -* [Phalcon\Validation\Validator\Email](#validation-validator-email) -* [Phalcon\Validation\Validator\Exception](#validation-validator-exception) -* [Phalcon\Validation\Validator\ExclusionIn](#validation-validator-exclusionin) -* [Phalcon\Validation\Validator\File](#validation-validator-file) -* [Phalcon\Validation\Validator\File\AbstractFile](#validation-validator-file-abstractfile) -* [Phalcon\Validation\Validator\File\MimeType](#validation-validator-file-mimetype) -* [Phalcon\Validation\Validator\File\Resolution\Equal](#validation-validator-file-resolution-equal) -* [Phalcon\Validation\Validator\File\Resolution\Max](#validation-validator-file-resolution-max) -* [Phalcon\Validation\Validator\File\Resolution\Min](#validation-validator-file-resolution-min) -* [Phalcon\Validation\Validator\File\Size\Equal](#validation-validator-file-size-equal) -* [Phalcon\Validation\Validator\File\Size\Max](#validation-validator-file-size-max) -* [Phalcon\Validation\Validator\File\Size\Min](#validation-validator-file-size-min) -* [Phalcon\Validation\Validator\Identical](#validation-validator-identical) -* [Phalcon\Validation\Validator\InclusionIn](#validation-validator-inclusionin) -* [Phalcon\Validation\Validator\Ip](#validation-validator-ip) -* [Phalcon\Validation\Validator\Numericality](#validation-validator-numericality) -* [Phalcon\Validation\Validator\PresenceOf](#validation-validator-presenceof) -* [Phalcon\Validation\Validator\Regex](#validation-validator-regex) -* [Phalcon\Validation\Validator\StringLength](#validation-validator-stringlength) -* [Phalcon\Validation\Validator\StringLength\Max](#validation-validator-stringlength-max) -* [Phalcon\Validation\Validator\StringLength\Min](#validation-validator-stringlength-min) -* [Phalcon\Validation\Validator\Uniqueness](#validation-validator-uniqueness) -* [Phalcon\Validation\Validator\Url](#validation-validator-url) -* [Phalcon\Validation\ValidatorCompositeInterface](#validation-validatorcompositeinterface) -* [Phalcon\Validation\ValidatorFactory](#validation-validatorfactory) -* [Phalcon\Validation\ValidatorInterface](#validation-validatorinterface) - -

        Class Phalcon\Validation

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation.zep) - -| Namespace | Phalcon | -| Uses | Phalcon\Di, Phalcon\Di\DiInterface, Phalcon\Di\Injectable, Phalcon\Filter\FilterInterface, Phalcon\Messages\MessageInterface, Phalcon\Messages\Messages, Phalcon\Validation\ValidationInterface, Phalcon\Validation\Exception, Phalcon\Validation\ValidatorInterface, Phalcon\Validation\AbstractCombinedFieldsValidator | -| Extends | Injectable | -| Implements | ValidationInterface | - -Allows to validate data using custom or built-in validators - - -## Properties -```php -// -protected combinedFieldsValidators; - -// -protected data; - -// -protected entity; - -// -protected filters; - -// -protected labels; - -// -protected messages; - -// -protected validators; - -// -protected values; - -``` - -## Methods -```php -public function __construct( array $validators = [] ): void; -``` -Phalcon\Validation constructor - - -```php -public function add( mixed $field, ValidatorInterface $validator ): ValidationInterface; -``` -Adds a validator to a field - - -```php -public function appendMessage( MessageInterface $message ): ValidationInterface; -``` -Appends a message to the messages list - - -```php -public function bind( mixed $entity, mixed $data ): ValidationInterface; -``` -Assigns the data to an entity -The entity is used to obtain the validation values - -@param object entity -@param array|object data - - -```php -public function getData() -``` - - -```php -public function getEntity(): object; -``` -Returns the bound entity - - -```php -public function getFilters( string $field = null ): mixed | null; -``` -Returns all the filters or a specific one - - -```php -public function getLabel( mixed $field ): string; -``` -Get label for field - -@param string field - - -```php -public function getMessages(): Messages; -``` -Returns the registered validators - - -```php -public function getValidators(): array; -``` -Returns the validators added to the validation - - -```php -public function getValue( string $field ): mixed | null; -``` -Gets the a value to validate in the array/object data source - - -```php -public function rule( mixed $field, ValidatorInterface $validator ): ValidationInterface; -``` -Alias of `add` method - - -```php -public function rules( mixed $field, array $validators ): ValidationInterface; -``` -Adds the validators to a field - - -```php -public function setEntity( mixed $entity ): void; -``` -Sets the bound entity - -@param object entity - - -```php -public function setFilters( mixed $field, mixed $filters ): ValidationInterface; -``` -Adds filters to the field - -@param string field -@param array|string filters - - -```php -public function setLabels( array $labels ): void; -``` -Adds labels for fields - - -```php -public function setValidators( $validators ) -``` - - -```php -public function validate( mixed $data = null, mixed $entity = null ): Messages; -``` -Validate a set of data according to a set of rules - -@param array|object data -@param object entity - - -```php -protected function preChecking( mixed $field, ValidatorInterface $validator ): bool; -``` -Internal validations, if it returns true, then skip the current validator - - - - -

        Abstract Class Phalcon\Validation\AbstractCombinedFieldsValidator

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/abstractcombinedfieldsvalidator.zep) - -| Namespace | Phalcon\Validation | -| Extends | AbstractValidator | - -This is a base class for combined fields validators - - - -

        Abstract Class Phalcon\Validation\AbstractValidator

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/abstractvalidator.zep) - -| Namespace | Phalcon\Validation | -| Uses | Phalcon\Collection, Phalcon\Helper\Arr, Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\Exception, Phalcon\Validation\ValidatorInterface | -| Implements | ValidatorInterface | - -This is a base class for validators - - -## Properties -```php -/** - * Message template - * - * @var string|null - */ -protected template; - -/** - * Message templates - * - * @var array - */ -protected templates; - -// -protected options; - -``` - -## Methods -```php -public function __construct( array $options = [] ): void; -``` -Phalcon\Validation\Validator constructor - - -```php -public function getOption( string $key, mixed $defaultValue = null ): mixed; -``` -Returns an option in the validator's options -Returns null if the option hasn't set - - -```php -public function getTemplate( string $field = null ): string; -``` - Get the template message - - @return string - @throw InvalidArgumentException When the field does not exists - - -```php -public function getTemplates(): array; -``` - Get templates collection object - - @return array - - -```php -public function hasOption( string $key ): bool; -``` -Checks if an option is defined - - -```php -public function messageFactory( Validation $validation, mixed $field, array $replacements = [] ): Message; -``` - Create a default message by factory - - @return Message - - @throw Exception - - -```php -public function setOption( string $key, mixed $value ): void; -``` -Sets an option in the validator - - -```php -public function setTemplate( string $template ): ValidatorInterface; -``` - Set a new template message - - @return Validator - - -```php -public function setTemplates( array $templates ): ValidatorInterface; -``` - Clear current templates and set new from an array, - - @return Validator - - -```php -abstract public function validate( Validation $validation, mixed $field ): bool; -``` -Executes the validation - - -```php -protected function prepareCode( string $field ): int | null; -``` -Prepares a validation code. - - -```php -protected function prepareLabel( Validation $validation, string $field ): mixed; -``` -Prepares a label for the field. - - - - -

        Abstract Class Phalcon\Validation\AbstractValidatorComposite

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/abstractvalidatorcomposite.zep) - -| Namespace | Phalcon\Validation | -| Uses | Phalcon\Validation | -| Extends | AbstractValidator | -| Implements | ValidatorCompositeInterface | - -This is a base class for combined fields validators - - -## Properties -```php -/** - * @var array - */ -protected validators; - -``` - -## Methods -```php -public function getValidators(): array -``` - - -```php -public function validate( Validation $validation, mixed $field ): bool; -``` -Executes the validation - - - - -

        Class Phalcon\Validation\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/exception.zep) - -| Namespace | Phalcon\Validation | -| Extends | \Phalcon\Exception | - -Exceptions thrown in Phalcon\Validation\* classes will use this class - - - -

        Interface Phalcon\Validation\ValidationInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validationinterface.zep) - -| Namespace | Phalcon\Validation | -| Uses | Phalcon\Di\Injectable, Phalcon\Messages\MessageInterface, Phalcon\Messages\Messages, Phalcon\Validation\Exception, Phalcon\Validation\ValidatorInterface | - -Interface for the Phalcon\Validation component - - -## Methods -```php -public function add( string $field, ValidatorInterface $validator ): ValidationInterface; -``` -Adds a validator to a field - - -```php -public function appendMessage( MessageInterface $message ): ValidationInterface; -``` -Appends a message to the messages list - - -```php -public function bind( mixed $entity, mixed $data ): ValidationInterface; -``` -Assigns the data to an entity -The entity is used to obtain the validation values - -@param object entity -@param array|object data - - -```php -public function getEntity(): object; -``` -Returns the bound entity - - -```php -public function getFilters( string $field = null ): mixed | null; -``` -Returns all the filters or a specific one - - -```php -public function getLabel( string $field ): string; -``` -Get label for field - - -```php -public function getMessages(): Messages; -``` -Returns the registered validators - - -```php -public function getValidators(): array; -``` -Returns the validators added to the validation - - -```php -public function getValue( string $field ): mixed | null; -``` -Gets the a value to validate in the array/object data source - - -```php -public function rule( string $field, ValidatorInterface $validator ): ValidationInterface; -``` -Alias of `add` method - - -```php -public function rules( string $field, array $validators ): ValidationInterface; -``` -Adds the validators to a field - - -```php -public function setFilters( string $field, mixed $filters ): ValidationInterface; -``` -Adds filters to the field - -@param array|string filters - - -```php -public function setLabels( array $labels ): void; -``` -Adds labels for fields - - -```php -public function validate( mixed $data = null, mixed $entity = null ): Messages; -``` -Validate a set of data according to a set of rules - -@param array|object data -@param object entity - - - - -

        Class Phalcon\Validation\Validator\Alnum

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/alnum.zep) - -| Namespace | Phalcon\Validation\Validator | -| Uses | Phalcon\Validation, Phalcon\Validation\AbstractValidator | -| Extends | AbstractValidator | - -Check for alphanumeric character(s) - -```php -use Phalcon\Validation; -use Phalcon\Validation\Validator\Alnum as AlnumValidator; - -$validator = new Validation(); - -$validator->add( - "username", - new AlnumValidator( - [ - "message" => ":field must contain only alphanumeric characters", - ] - ) -); - -$validator->add( - [ - "username", - "name", - ], - new AlnumValidator( - [ - "message" => [ - "username" => "username must contain only alphanumeric characters", - "name" => "name must contain only alphanumeric characters", - ], - ] - ) -); -``` - - -## Properties -```php -// -protected template = Field :field must contain only letters and numbers; - -``` - -## Methods -```php -public function validate( Validation $validation, mixed $field ): bool; -``` -Executes the validation - - - - -

        Class Phalcon\Validation\Validator\Alpha

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/alpha.zep) - -| Namespace | Phalcon\Validation\Validator | -| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\AbstractValidator | -| Extends | AbstractValidator | - -Check for alphabetic character(s) - -```php -use Phalcon\Validation; -use Phalcon\Validation\Validator\Alpha as AlphaValidator; - -$validator = new Validation(); - -$validator->add( - "username", - new AlphaValidator( - [ - "message" => ":field must contain only letters", - ] - ) -); - -$validator->add( - [ - "username", - "name", - ], - new AlphaValidator( - [ - "message" => [ - "username" => "username must contain only letters", - "name" => "name must contain only letters", - ], - ] - ) -); -``` - - -## Properties -```php -// -protected template = Field :field must contain only letters; - -``` - -## Methods -```php -public function validate( Validation $validation, mixed $field ): bool; -``` -Executes the validation - - - - -

        Class Phalcon\Validation\Validator\Between

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/between.zep) - -| Namespace | Phalcon\Validation\Validator | -| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\AbstractValidator | -| Extends | AbstractValidator | - -Validates that a value is between an inclusive range of two values. -For a value x, the test is passed if minimum<=x<=maximum. - -```php -use Phalcon\Validation; -use Phalcon\Validation\Validator\Between; - -$validator = new Validation(); - -$validator->add( - "price", - new Between( - [ - "minimum" => 0, - "maximum" => 100, - "message" => "The price must be between 0 and 100", - ] - ) -); - -$validator->add( - [ - "price", - "amount", - ], - new Between( - [ - "minimum" => [ - "price" => 0, - "amount" => 0, - ], - "maximum" => [ - "price" => 100, - "amount" => 50, - ], - "message" => [ - "price" => "The price must be between 0 and 100", - "amount" => "The amount must be between 0 and 50", - ], - ] - ) -); -``` - - -## Properties -```php -// -protected template = Field :field must be within the range of :min to :max; - -``` - -## Methods -```php -public function validate( Validation $validation, mixed $field ): bool; -``` -Executes the validation - - - - -

        Class Phalcon\Validation\Validator\Callback

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/callback.zep) - -| Namespace | Phalcon\Validation\Validator | -| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\ValidatorInterface, Phalcon\Validation\AbstractValidator | -| Extends | AbstractValidator | - -Calls user function for validation - -```php -use Phalcon\Validation; -use Phalcon\Validation\Validator\Callback as CallbackValidator; -use Phalcon\Validation\Validator\Numericality as NumericalityValidator; - -$validator = new Validation(); - -$validator->add( - ["user", "admin"], - new CallbackValidator( - [ - "message" => "There must be only an user or admin set", - "callback" => function($data) { - if (!empty($data->getUser()) && !empty($data->getAdmin())) { - return false; - } - - return true; - } - ] - ) -); - -$validator->add( - "amount", - new CallbackValidator( - [ - "callback" => function($data) { - if (!empty($data->getProduct())) { - return new NumericalityValidator( - [ - "message" => "Amount must be a number." - ] - ); - } - } - ] - ) -); -``` - - -## Properties -```php -// -protected template = Field :field must match the callback function; - -``` - -## Methods -```php -public function validate( Validation $validation, mixed $field ): bool; -``` -Executes the validation - - - - -

        Class Phalcon\Validation\Validator\Confirmation

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/confirmation.zep) - -| Namespace | Phalcon\Validation\Validator | -| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\Exception, Phalcon\Validation\AbstractValidator | -| Extends | AbstractValidator | - -Checks that two values have the same value - -```php -use Phalcon\Validation; -use Phalcon\Validation\Validator\Confirmation; - -$validator = new Validation(); - -$validator->add( - "password", - new Confirmation( - [ - "message" => "Password doesn't match confirmation", - "with" => "confirmPassword", - ] - ) -); - -$validator->add( - [ - "password", - "email", - ], - new Confirmation( - [ - "message" => [ - "password" => "Password doesn't match confirmation", - "email" => "Email doesn't match confirmation", - ], - "with" => [ - "password" => "confirmPassword", - "email" => "confirmEmail", - ], - ] - ) -); -``` - - -## Properties -```php -// -protected template = Field :field must be the same as :with; - -``` - -## Methods -```php -public function validate( Validation $validation, mixed $field ): bool; -``` -Executes the validation - - -```php -final protected function compare( string $a, string $b ): bool; -``` -Compare strings - - - - -

        Class Phalcon\Validation\Validator\CreditCard

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/creditcard.zep) - -| Namespace | Phalcon\Validation\Validator | -| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\AbstractValidator | -| Extends | AbstractValidator | - -Checks if a value has a valid credit card number - -```php -use Phalcon\Validation; -use Phalcon\Validation\Validator\CreditCard as CreditCardValidator; - -$validator = new Validation(); - -$validator->add( - "creditCard", - new CreditCardValidator( - [ - "message" => "The credit card number is not valid", - ] - ) -); - -$validator->add( - [ - "creditCard", - "secondCreditCard", - ], - new CreditCardValidator( - [ - "message" => [ - "creditCard" => "The credit card number is not valid", - "secondCreditCard" => "The second credit card number is not valid", - ], - ] - ) -); -``` - - -## Properties -```php -// -protected template = Field :field is not valid for a credit card number; - -``` - -## Methods -```php -public function validate( Validation $validation, mixed $field ): bool; -``` -Executes the validation - - - - -

        Class Phalcon\Validation\Validator\Date

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/date.zep) - -| Namespace | Phalcon\Validation\Validator | -| Uses | DateTime, Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\AbstractValidator | -| Extends | AbstractValidator | - -Checks if a value is a valid date - -```php -use Phalcon\Validation; -use Phalcon\Validation\Validator\Date as DateValidator; - -$validator = new Validation(); - -$validator->add( - "date", - new DateValidator( - [ - "format" => "d-m-Y", - "message" => "The date is invalid", - ] - ) -); - -$validator->add( - [ - "date", - "anotherDate", - ], - new DateValidator( - [ - "format" => [ - "date" => "d-m-Y", - "anotherDate" => "Y-m-d", - ], - "message" => [ - "date" => "The date is invalid", - "anotherDate" => "The another date is invalid", - ], - ] - ) -); -``` - - -## Properties -```php -// -protected template = Field :field is not a valid date; - -``` - -## Methods -```php -public function validate( Validation $validation, mixed $field ): bool; -``` -Executes the validation - - - - -

        Class Phalcon\Validation\Validator\Digit

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/digit.zep) - -| Namespace | Phalcon\Validation\Validator | -| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\AbstractValidator | -| Extends | AbstractValidator | - -Check for numeric character(s) - -```php -use Phalcon\Validation; -use Phalcon\Validation\Validator\Digit as DigitValidator; - -$validator = new Validation(); - -$validator->add( - "height", - new DigitValidator( - [ - "message" => ":field must be numeric", - ] - ) -); - -$validator->add( - [ - "height", - "width", - ], - new DigitValidator( - [ - "message" => [ - "height" => "height must be numeric", - "width" => "width must be numeric", - ], - ] - ) -); -``` - - -## Properties -```php -// -protected template = Field :field must be numeric; - -``` - -## Methods -```php -public function validate( Validation $validation, mixed $field ): bool; -``` -Executes the validation - - - - -

        Class Phalcon\Validation\Validator\Email

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/email.zep) - -| Namespace | Phalcon\Validation\Validator | -| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\AbstractValidator | -| Extends | AbstractValidator | - -Checks if a value has a correct e-mail format - -```php -use Phalcon\Validation; -use Phalcon\Validation\Validator\Email as EmailValidator; - -$validator = new Validation(); - -$validator->add( - "email", - new EmailValidator( - [ - "message" => "The e-mail is not valid", - ] - ) -); - -$validator->add( - [ - "email", - "anotherEmail", - ], - new EmailValidator( - [ - "message" => [ - "email" => "The e-mail is not valid", - "anotherEmail" => "The another e-mail is not valid", - ], - ] - ) -); -``` - - -## Properties -```php -// -protected template = Field :field must be an email address; - -``` - -## Methods -```php -public function validate( Validation $validation, mixed $field ): bool; -``` -Executes the validation - - - - -

        Class Phalcon\Validation\Validator\Exception

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/exception.zep) - -| Namespace | Phalcon\Validation\Validator | -| Extends | \Phalcon\Exception | - -Exceptions thrown in Phalcon\Validation\Validator\* classes will use this -class - - - -

        Class Phalcon\Validation\Validator\ExclusionIn

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/exclusionin.zep) - -| Namespace | Phalcon\Validation\Validator | -| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\AbstractValidator, Phalcon\Validation\Exception | -| Extends | AbstractValidator | - -Check if a value is not included into a list of values - -```php -use Phalcon\Validation; -use Phalcon\Validation\Validator\ExclusionIn; - -$validator = new Validation(); - -$validator->add( - "status", - new ExclusionIn( - [ - "message" => "The status must not be A or B", - "domain" => [ - "A", - "B", - ], - ] - ) -); - -$validator->add( - [ - "status", - "type", - ], - new ExclusionIn( - [ - "message" => [ - "status" => "The status must not be A or B", - "type" => "The type must not be 1 or " - ], - "domain" => [ - "status" => [ - "A", - "B", - ], - "type" => [1, 2], - ], - ] - ) -); -``` - - -## Properties -```php -// -protected template = Field :field must not be a part of list: :domain; - -``` - -## Methods -```php -public function validate( Validation $validation, mixed $field ): bool; -``` -Executes the validation - - - - -

        Class Phalcon\Validation\Validator\File

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/file.zep) - -| Namespace | Phalcon\Validation\Validator | -| Uses | Phalcon\Helper\Arr, Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\AbstractValidatorComposite, Phalcon\Validation\Validator\File\MimeType, Phalcon\Validation\Validator\File\Resolution\Equal, Phalcon\Validation\Validator\File\Resolution\Max, Phalcon\Validation\Validator\File\Resolution\Min, Phalcon\Validation\Validator\File\Size\Equal, Phalcon\Validation\Validator\File\Size\Max, Phalcon\Validation\Validator\File\Size\Min | -| Extends | AbstractValidatorComposite | - -Checks if a value has a correct file - -```php -use Phalcon\Validation; -use Phalcon\Validation\Validator\File as FileValidator; - -$validator = new Validation(); - -$validator->add( - "file", - new FileValidator( - [ - "maxSize" => "2M", - "messageSize" => ":field exceeds the max filesize (:size)", - "allowedTypes" => [ - "image/jpeg", - "image/png", - ], - "messageType" => "Allowed file types are :types", - "maxResolution" => "800x600", - "messageMaxResolution" => "Max resolution of :field is :resolution", - ] - ) -); - -$validator->add( - [ - "file", - "anotherFile", - ], - new FileValidator( - [ - "maxSize" => [ - "file" => "2M", - "anotherFile" => "4M", - ], - "messageSize" => [ - "file" => "file exceeds the max filesize 2M", - "anotherFile" => "anotherFile exceeds the max filesize 4M", - "allowedTypes" => [ - "file" => [ - "image/jpeg", - "image/png", - ], - "anotherFile" => [ - "image/gif", - "image/bmp", - ], - ], - "messageType" => [ - "file" => "Allowed file types are image/jpeg and image/png", - "anotherFile" => "Allowed file types are image/gif and image/bmp", - ], - "maxResolution" => [ - "file" => "800x600", - "anotherFile" => "1024x768", - ], - "messageMaxResolution" => [ - "file" => "Max resolution of file is 800x600", - "anotherFile" => "Max resolution of file is 1024x768", - ], - ] - ) -); -``` - - -## Methods -```php -public function __construct( array $options = [] ); -``` -Constructor - - - - -

        Abstract Class Phalcon\Validation\Validator\File\AbstractFile

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/file/abstractfile.zep) - -| Namespace | Phalcon\Validation\Validator\File | -| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\AbstractValidator | -| Extends | AbstractValidator | - -Checks if a value has a correct file - -```php -use Phalcon\Validation; -use Phalcon\Validation\Validator\File\Size; - -$validator = new Validation(); - -$validator->add( - "file", - new Size( - [ - "maxSize" => "2M", - "messageSize" => ":field exceeds the max filesize (:size)", - ] - ) -); - -$validator->add( - [ - "file", - "anotherFile", - ], - new FileValidator( - [ - "maxSize" => [ - "file" => "2M", - "anotherFile" => "4M", - ], - "messageSize" => [ - "file" => "file exceeds the max filesize 2M", - "anotherFile" => "anotherFile exceeds the max filesize 4M", - ], - ] - ) -); -``` - - -## Properties -```php -/** - * Empty is empty - */ -protected messageFileEmpty = Field :field must not be empty; - -/** - * File exceeed the file size setted in PHP configuration - */ -protected messageIniSize = File :field exceeds the maximum file size; - -/** - * File is not valid - */ -protected messageValid = Field :field is not valid; - -``` - -## Methods -```php -public function checkUpload( Validation $validation, mixed $field ): bool; -``` - Check upload - - @param Valiation $validation - @param mixed $field - @return bool - - -```php -public function checkUploadIsEmpty( Validation $validation, mixed $field ): bool; -``` - Check if upload is empty - - @param Valiation $validation - @param mixed $field - @return boolean - - -```php -public function checkUploadIsValid( Validation $validation, mixed $field ): bool; -``` - Check if upload is valid - - @param Valiation $validation - @param mixed $field - @return boolean - - -```php -public function checkUploadMaxSize( Validation $validation, mixed $field ): bool; -``` - Check if uploaded file is larger than PHP allowed size - - @param Valiation $validation - @param mixed $field - @return boolean - - -```php -public function getFileSizeInBytes( string $size ): double; -``` - Convert a string like "2.5MB" in bytes - - @param string $size - @return float - - -```php -public function getMessageFileEmpty() -``` - - -```php -public function getMessageIniSize() -``` - - -```php -public function getMessageValid() -``` - - -```php -public function isAllowEmpty( Validation $validation, string $field ): bool; -``` -Check on empty - -@param Valiation $validation -@param mixed $field -@return bool - - -```php -public function setMessageFileEmpty( $messageFileEmpty ) -``` - - -```php -public function setMessageIniSize( $messageIniSize ) -``` - - -```php -public function setMessageValid( $messageValid ) -``` - - - - -

        Class Phalcon\Validation\Validator\File\MimeType

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/file/mimetype.zep) - -| Namespace | Phalcon\Validation\Validator\File | -| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\Exception, Phalcon\Validation\Validator\File\AbstractFile | -| Extends | AbstractFile | - -Checks if a value has a correct file mime type - -```php -use Phalcon\Validation; -use Phalcon\Validation\Validator\File\MimeType; - -$validator = new Validation(); - -$validator->add( - "file", - new MimeType( - [ - "types" => [ - "image/jpeg", - "image/png", - ], - "message" => "Allowed file types are :types" - ] - ) -); - -$validator->add( - [ - "file", - "anotherFile", - ], - new MimeType( - [ - "types" => [ - "file" => [ - "image/jpeg", - "image/png", - ], - "anotherFile" => [ - "image/gif", - "image/bmp", - ], - ], - "message" => [ - "file" => "Allowed file types are image/jpeg and image/png", - "anotherFile" => "Allowed file types are image/gif and image/bmp", - ] - ] - ) -); -``` - - -## Properties -```php -// -protected template = File :field must be of type: :types; - -``` - -## Methods -```php -public function validate( Validation $validation, mixed $field ): bool; -``` -Executes the validation - -@param Valiation $validation -@param mixed $field -@return bool - - - - -

        Class Phalcon\Validation\Validator\File\Resolution\Equal

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/file/resolution/equal.zep) - -| Namespace | Phalcon\Validation\Validator\File\Resolution | -| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\Validator\File\AbstractFile | -| Extends | AbstractFile | - -Checks if a file has the rigth resolution - -```php -use Phalcon\Validation; -use Phalcon\Validation\Validator\File\Resolution\Equal; - -$validator = new Validation(); - -$validator->add( - "file", - new Equal( - [ - "resolution" => "800x600", - "message" => "The resolution of the field :field has to be equal :resolution", - ] - ) -); - -$validator->add( - [ - "file", - "anotherFile", - ], - new Equal( - [ - "resolution" => [ - "file" => "800x600", - "anotherFile" => "1024x768", - ], - "message" => [ - "file" => "Equal resolution of file has to be 800x600", - "anotherFile" => "Equal resolution of file has to be 1024x768", - ], - ] - ) -); -``` - - -## Properties -```php -// -protected template = The resolution of the field :field has to be equal :resolution; - -``` - -## Methods -```php -public function validate( Validation $validation, mixed $field ): bool; -``` -Executes the validation - - - - -

        Class Phalcon\Validation\Validator\File\Resolution\Max

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/file/resolution/max.zep) - -| Namespace | Phalcon\Validation\Validator\File\Resolution | -| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\Validator\File\AbstractFile | -| Extends | AbstractFile | - -Checks if a file has the rigth resolution - -```php -use Phalcon\Validation; -use Phalcon\Validation\Validator\File\Resolution\Max; - -$validator = new Validation(); - -$validator->add( - "file", - new Max( - [ - "resolution" => "800x600", - "message" => "Max resolution of :field is :resolution", - "included" => true, - ] - ) -); - -$validator->add( - [ - "file", - "anotherFile", - ], - new Max( - [ - "resolution" => [ - "file" => "800x600", - "anotherFile" => "1024x768", - ], - "included" => [ - "file" => false, - "anotherFile" => true, - ], - "message" => [ - "file" => "Max resolution of file is 800x600", - "anotherFile" => "Max resolution of file is 1024x768", - ], - ] - ) -); -``` - - -## Properties -```php -// -protected template = File :field exceeds the maximum resolution of :resolution; - -``` - -## Methods -```php -public function validate( Validation $validation, mixed $field ): bool; -``` -Executes the validation - - - - -

        Class Phalcon\Validation\Validator\File\Resolution\Min

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/file/resolution/min.zep) - -| Namespace | Phalcon\Validation\Validator\File\Resolution | -| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\Validator\File\AbstractFile | -| Extends | AbstractFile | - -Checks if a file has the rigth resolution - -```php -use Phalcon\Validation; -use Phalcon\Validation\Validator\File\Resolution\Min; - -$validator = new Validation(); - -$validator->add( - "file", - new Min( - [ - "resolution" => "800x600", - "message" => "Min resolution of :field is :resolution", - "included" => true, - ] - ) -); - -$validator->add( - [ - "file", - "anotherFile", - ], - new Min( - [ - "resolution" => [ - "file" => "800x600", - "anotherFile" => "1024x768", - ], - "included" => [ - "file" => false, - "anotherFile" => true, - ], - "message" => [ - "file" => "Min resolution of file is 800x600", - "anotherFile" => "Min resolution of file is 1024x768", - ], - ] - ) -); -``` - - -## Properties -```php -// -protected template = File :field can not have the minimum resolution of :resolution; - -``` - -## Methods -```php -public function validate( Validation $validation, mixed $field ): bool; -``` -Executes the validation - - - - -

        Class Phalcon\Validation\Validator\File\Size\Equal

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/file/size/equal.zep) - -| Namespace | Phalcon\Validation\Validator\File\Size | -| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\Validator\File\Size\Equal, Phalcon\Validation\Validator\File\AbstractFile | -| Extends | AbstractFile | - -Checks if a value has a correct file - -```php -use Phalcon\Validation; -use Phalcon\Validation\Validator\File\Size; - -$validator = new Validation(); - -$validator->add( - "file", - new Equal( - [ - "size" => "2M", - "included" => true, - "message" => ":field exceeds the equal filesize (:size)", - ] - ) -); - -$validator->add( - [ - "file", - "anotherFile", - ], - new Equal( - [ - "size" => [ - "file" => "2M", - "anotherFile" => "4M", - ], - "included" => [ - "file" => false, - "anotherFile" => true, - ], - "message" => [ - "file" => "file does not have the rigth filesize", - "anotherFile" => "anotherFile wrong filesize (4MB)", - ], - ] - ) -); -``` - - -## Properties -```php -// -protected template = File :field does not have the exact :size filesize; - -``` - -## Methods -```php -public function validate( Validation $validation, mixed $field ): bool; -``` -Executes the validation - - - - -

        Class Phalcon\Validation\Validator\File\Size\Max

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/file/size/max.zep) - -| Namespace | Phalcon\Validation\Validator\File\Size | -| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\Validator\File\Size\Max, Phalcon\Validation\Validator\File\AbstractFile | -| Extends | AbstractFile | - -Checks if a value has a correct file - -```php -use Phalcon\Validation; -use Phalcon\Validation\Validator\File\Size; - -$validator = new Validation(); - -$validator->add( - "file", - new Max( - [ - "size" => "2M", - "included" => true, - "message" => ":field exceeds the max filesize (:size)", - ] - ) -); - -$validator->add( - [ - "file", - "anotherFile", - ], - new Max( - [ - "size" => [ - "file" => "2M", - "anotherFile" => "4M", - ], - "included" => [ - "file" => false, - "anotherFile" => true, - ], - "message" => [ - "file" => "file exceeds the max filesize 2M", - "anotherFile" => "anotherFile exceeds the max filesize 4M", - ], - ] - ) -); -``` - - -## Properties -```php -// -protected template = File :field exceeds the size of :size; - -``` - -## Methods -```php -public function validate( Validation $validation, mixed $field ): bool; -``` -Executes the validation - - - - -

        Class Phalcon\Validation\Validator\File\Size\Min

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/file/size/min.zep) - -| Namespace | Phalcon\Validation\Validator\File\Size | -| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\Validator\File\Size\Min, Phalcon\Validation\Validator\File\AbstractFile | -| Extends | AbstractFile | - -Checks if a value has a correct file - -```php -use Phalcon\Validation; -use Phalcon\Validation\Validator\File\Size; - -$validator = new Validation(); - -$validator->add( - "file", - new Min( - [ - "size" => "2M", - "included" => true, - "message" => ":field exceeds the min filesize (:size)", - ] - ) -); - -$validator->add( - [ - "file", - "anotherFile", - ], - new Min( - [ - "size" => [ - "file" => "2M", - "anotherFile" => "4M", - ], - "included" => [ - "file" => false, - "anotherFile" => true, - ], - "message" => [ - "file" => "file exceeds the min filesize 2M", - "anotherFile" => "anotherFile exceeds the min filesize 4M", - ], - ] - ) -); -``` - - -## Properties -```php -// -protected template = File :field can not have the minimum size of :size; - -``` - -## Methods -```php -public function validate( Validation $validation, mixed $field ): bool; -``` -Executes the validation - - - - -

        Class Phalcon\Validation\Validator\Identical

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/identical.zep) - -| Namespace | Phalcon\Validation\Validator | -| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\AbstractValidator | -| Extends | AbstractValidator | - -Checks if a value is identical to other - -```php -use Phalcon\Validation; -use Phalcon\Validation\Validator\Identical; - -$validator = new Validation(); - -$validator->add( - "terms", - new Identical( - [ - "accepted" => "yes", - "message" => "Terms and conditions must be accepted", - ] - ) -); - -$validator->add( - [ - "terms", - "anotherTerms", - ], - new Identical( - [ - "accepted" => [ - "terms" => "yes", - "anotherTerms" => "yes", - ], - "message" => [ - "terms" => "Terms and conditions must be accepted", - "anotherTerms" => "Another terms must be accepted", - ], - ] - ) -); -``` - - -## Properties -```php -// -protected template = Field :field does not have the expected value; - -``` - -## Methods -```php -public function validate( Validation $validation, mixed $field ): bool; -``` -Executes the validation - - - - -

        Class Phalcon\Validation\Validator\InclusionIn

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/inclusionin.zep) - -| Namespace | Phalcon\Validation\Validator | -| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\AbstractValidator, Phalcon\Validation\Exception | -| Extends | AbstractValidator | - -Check if a value is included into a list of values - -```php -use Phalcon\Validation; -use Phalcon\Validation\Validator\InclusionIn; - -$validator = new Validation(); - -$validator->add( - "status", - new InclusionIn( - [ - "message" => "The status must be A or B", - "domain" => ["A", "B"], - ] - ) -); - -$validator->add( - [ - "status", - "type", - ], - new InclusionIn( - [ - "message" => [ - "status" => "The status must be A or B", - "type" => "The status must be 1 or 2", - ], - "domain" => [ - "status" => ["A", "B"], - "type" => [1, 2], - ] - ] - ) -); -``` - - -## Properties -```php -// -protected template = Field :field must be a part of list: :domain; - -``` - -## Methods -```php -public function validate( Validation $validation, mixed $field ): bool; -``` -Executes the validation - - - - -

        Class Phalcon\Validation\Validator\Ip

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/ip.zep) - -| Namespace | Phalcon\Validation\Validator | -| Uses | Phalcon\Validation, Phalcon\Validation\AbstractValidator, Phalcon\Messages\Message | -| Extends | AbstractValidator | - -Check for IP addresses - -```php -use Phalcon\Validation\Validator\Ip as IpValidator; - -$validator->add( - "ip_address", - new IpValidator( - [ - "message" => ":field must contain only ip addresses", - "version" => IP::VERSION_4 | IP::VERSION_6, // v6 and v4. The same if not specified - "allowReserved" => false, // False if not specified. Ignored for v6 - "allowPrivate" => false, // False if not specified - "allowEmpty" => false, - ] - ) -); - -$validator->add( - [ - "source_address", - "destination_address", - ], - new IpValidator( - [ - "message" => [ - "source_address" => "source_address must be a valid IP address", - "destination_address" => "destination_address must be a valid IP address", - ], - "version" => [ - "source_address" => Ip::VERSION_4 | IP::VERSION_6, - "destination_address" => Ip::VERSION_4, - ], - "allowReserved" => [ - "source_address" => false, - "destination_address" => true, - ], - "allowPrivate" => [ - "source_address" => false, - "destination_address" => true, - ], - "allowEmpty" => [ - "source_address" => false, - "destination_address" => true, - ], - ] - ) -); -``` - - -## Constants -```php -const VERSION_4 = FILTER_FLAG_IPV4; -const VERSION_6 = FILTER_FLAG_IPV6; -``` - -## Properties -```php -// -protected template = Field :field must be a valid IP address; - -``` - -## Methods -```php -public function validate( Validation $validation, mixed $field ): bool; -``` -Executes the validation - - - - -

        Class Phalcon\Validation\Validator\Numericality

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/numericality.zep) - -| Namespace | Phalcon\Validation\Validator | -| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\AbstractValidator | -| Extends | AbstractValidator | - -Check for a valid numeric value - -```php -use Phalcon\Validation; -use Phalcon\Validation\Validator\Numericality; - -$validator = new Validation(); - -$validator->add( - "price", - new Numericality( - [ - "message" => ":field is not numeric", - ] - ) -); - -$validator->add( - [ - "price", - "amount", - ], - new Numericality( - [ - "message" => [ - "price" => "price is not numeric", - "amount" => "amount is not numeric", - ] - ] - ) -); -``` - - -## Properties -```php -// -protected template = Field :field does not have a valid numeric format; - -``` - -## Methods -```php -public function validate( Validation $validation, mixed $field ): bool; -``` -Executes the validation - - - - -

        Class Phalcon\Validation\Validator\PresenceOf

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/presenceof.zep) - -| Namespace | Phalcon\Validation\Validator | -| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\AbstractValidator | -| Extends | AbstractValidator | - -Validates that a value is not null or empty string - -```php -use Phalcon\Validation; -use Phalcon\Validation\Validator\PresenceOf; - -$validator = new Validation(); - -$validator->add( - "name", - new PresenceOf( - [ - "message" => "The name is required", - ] - ) -); - -$validator->add( - [ - "name", - "email", - ], - new PresenceOf( - [ - "message" => [ - "name" => "The name is required", - "email" => "The email is required", - ], - ] - ) -); -``` - - -## Properties -```php -// -protected template = Field :field is required; - -``` - -## Methods -```php -public function validate( Validation $validation, mixed $field ): bool; -``` -Executes the validation - - - - -

        Class Phalcon\Validation\Validator\Regex

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/regex.zep) - -| Namespace | Phalcon\Validation\Validator | -| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\AbstractValidator | -| Extends | AbstractValidator | - -Allows validate if the value of a field matches a regular expression - -```php -use Phalcon\Validation; -use Phalcon\Validation\Validator\Regex as RegexValidator; - -$validator = new Validation(); - -$validator->add( - "created_at", - new RegexValidator( - [ - "pattern" => "/^[0-9]{4}[-\/](0[1-9]|1[12])[-\/](0[1-9]|[12][0-9]|3[01])$/", - "message" => "The creation date is invalid", - ] - ) -); - -$validator->add( - [ - "created_at", - "name", - ], - new RegexValidator( - [ - "pattern" => [ - "created_at" => "/^[0-9]{4}[-\/](0[1-9]|1[12])[-\/](0[1-9]|[12][0-9]|3[01])$/", - "name" => "/^[a-z]$/", - ], - "message" => [ - "created_at" => "The creation date is invalid", - "name" => "The name is invalid", - ] - ] - ) -); -``` - - -## Properties -```php -// -protected template = Field :field does not match the required format; - -``` - -## Methods -```php -public function validate( Validation $validation, mixed $field ): bool; -``` -Executes the validation - - - - -

        Class Phalcon\Validation\Validator\StringLength

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/stringlength.zep) - -| Namespace | Phalcon\Validation\Validator | -| Uses | Phalcon\Messages\Message, Phalcon\Validation\AbstractValidator, Phalcon\Validation\AbstractValidatorComposite, Phalcon\Validation\Validator\StringLength\Max, Phalcon\Validation\Validator\StringLength\Min, Phalcon\Validation\Exception | -| Extends | AbstractValidatorComposite | - -Validates that a string has the specified maximum and minimum constraints -The test is passed if for a string's length L, min<=L<=max, i.e. L must -be at least min, and at most max. -Since Phalcon v4.0 this valitor works like a container - -```php -use Phalcon\Validation; -use Phalcon\Validation\Validator\StringLength as StringLength; - -$validator = new Validation(); - -$validation->add( - "name_last", - new StringLength( - [ - "max" => 50, - "min" => 2, - "messageMaximum" => "We don't like really long names", - "messageMinimum" => "We want more than just their initials", - "includedMaximum" => true, - "includedMinimum" => false, - ] - ) -); - -$validation->add( - [ - "name_last", - "name_first", - ], - new StringLength( - [ - "max" => [ - "name_last" => 50, - "name_first" => 40, - ], - "min" => [ - "name_last" => 2, - "name_first" => 4, - ], - "messageMaximum" => [ - "name_last" => "We don't like really long last names", - "name_first" => "We don't like really long first names", - ], - "messageMinimum" => [ - "name_last" => "We don't like too short last names", - "name_first" => "We don't like too short first names", - ], - "includedMaximum" => [ - "name_last" => false, - "name_first" => true, - ], - "includedMinimum" => [ - "name_last" => false, - "name_first" => true, - ] - ] - ) -); -``` - - -## Methods -```php -public function __construct( array $options = [] ): void; -``` -Constructor - - - - -

        Class Phalcon\Validation\Validator\StringLength\Max

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/stringlength/max.zep) - -| Namespace | Phalcon\Validation\Validator\StringLength | -| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\AbstractValidator, Phalcon\Validation\Exception | -| Extends | AbstractValidator | - -Validates that a string has the specified maximum constraints -The test is passed if for a string's length L, L<=max, i.e. L must -be at most max. - -```php -use Phalcon\Validation; -use Phalcon\Validation\Validator\StringLength\Max; - -$validator = new Validation(); - -$validation->add( - "name_last", - new Max( - [ - "max" => 50, - "message" => "We don't like really long names", - "included" => true - ] - ) -); - -$validation->add( - [ - "name_last", - "name_first", - ], - new Max( - [ - "max" => [ - "name_last" => 50, - "name_first" => 40, - ], - "message" => [ - "name_last" => "We don't like really long last names", - "name_first" => "We don't like really long first names", - ], - "included" => [ - "name_last" => false, - "name_first" => true, - ] - ] - ) -); -``` - - -## Properties -```php -// -protected template = Field :field must not exceed :max characters long; - -``` - -## Methods -```php -public function validate( Validation $validation, mixed $field ): bool; -``` -Executes the validation - - - - -

        Class Phalcon\Validation\Validator\StringLength\Min

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/stringlength/min.zep) - -| Namespace | Phalcon\Validation\Validator\StringLength | -| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\AbstractValidator, Phalcon\Validation\Exception | -| Extends | AbstractValidator | - -Validates that a string has the specified minimum constraints -The test is passed if for a string's length L, min<=L, i.e. L must -be at least min. - -```php -use Phalcon\Validation; -use Phalcon\Validation\Validator\StringLength\Min; - -$validator = new Validation(); - -$validation->add( - "name_last", - new Min( - [ - "min" => 2, - "message" => "We want more than just their initials", - "included" => true - ] - ) -); - -$validation->add( - [ - "name_last", - "name_first", - ], - new Min( - [ - "min" => [ - "name_last" => 2, - "name_first" => 4, - ], - "message" => [ - "name_last" => "We don't like too short last names", - "name_first" => "We don't like too short first names", - ], - "included" => [ - "name_last" => false, - "name_first" => true, - ] - ] - ) -); -``` - - -## Properties -```php -// -protected template = Field :field must be at least :min characters long; - -``` - -## Methods -```php -public function validate( Validation $validation, mixed $field ): bool; -``` -Executes the validation - - - - -

        Class Phalcon\Validation\Validator\Uniqueness

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/uniqueness.zep) - -| Namespace | Phalcon\Validation\Validator | -| Uses | Phalcon\Messages\Message, Phalcon\Mvc\Model, Phalcon\Mvc\ModelInterface, Phalcon\Validation, Phalcon\Validation\AbstractCombinedFieldsValidator, Phalcon\Validation\Exception | -| Extends | AbstractCombinedFieldsValidator | - -Check that a field is unique in the related table - -```php -use Phalcon\Validation; -use Phalcon\Validation\Validator\Uniqueness as UniquenessValidator; - -$validator = new Validation(); - -$validator->add( - "username", - new UniquenessValidator( - [ - "model" => new Users(), - "message" => ":field must be unique", - ] - ) -); -``` - -Different attribute from the field: -```php -$validator->add( - "username", - new UniquenessValidator( - [ - "model" => new Users(), - "attribute" => "nick", - ] - ) -); -``` - -In model: -```php -$validator->add( - "username", - new UniquenessValidator() -); -``` - -Combination of fields in model: -```php -$validator->add( - [ - "firstName", - "lastName", - ], - new UniquenessValidator() -); -``` - -It is possible to convert values before validation. This is useful in -situations where values need to be converted to do the database lookup: - -```php -$validator->add( - "username", - new UniquenessValidator( - [ - "convert" => function (array $values) { - $values["username"] = strtolower($values["username"]); - - return $values; - } - ] - ) -); -``` - - -## Properties -```php -// -protected template = Field :field must be unique; - -// -private columnMap; - -``` - -## Methods -```php -public function validate( Validation $validation, mixed $field ): bool; -``` -Executes the validation - - -```php -protected function getColumnNameReal( mixed $record, string $field ): string; -``` -The column map is used in the case to get real column name - - -```php -protected function isUniqueness( Validation $validation, mixed $field ): bool; -``` -// - -```php -protected function isUniquenessModel( mixed $record, array $field, array $values ); -``` -Uniqueness method used for model - - - - -

        Class Phalcon\Validation\Validator\Url

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validator/url.zep) - -| Namespace | Phalcon\Validation\Validator | -| Uses | Phalcon\Messages\Message, Phalcon\Validation, Phalcon\Validation\AbstractValidator | -| Extends | AbstractValidator | - -Checks if a value has a url format - -```php -use Phalcon\Validation; -use Phalcon\Validation\Validator\Url as UrlValidator; - -$validator = new Validation(); - -$validator->add( - "url", - new UrlValidator( - [ - "message" => ":field must be a url", - ] - ) -); - -$validator->add( - [ - "url", - "homepage", - ], - new UrlValidator( - [ - "message" => [ - "url" => "url must be a url", - "homepage" => "homepage must be a url", - ] - ] - ) -); -``` - - -## Properties -```php -// -protected template = Field :field must be a url; - -``` - -## Methods -```php -public function validate( Validation $validation, mixed $field ): bool; -``` -Executes the validation - - - - -

        Interface Phalcon\Validation\ValidatorCompositeInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validatorcompositeinterface.zep) - -| Namespace | Phalcon\Validation | -| Uses | Phalcon\Validation | - -This is a base class for combined fields validators - - -## Methods -```php -public function getValidators(): array; -``` -Executes the validation - - -```php -public function validate( Validation $validation, mixed $field ): bool; -``` -Executes the validation - - - - -

        Class Phalcon\Validation\ValidatorFactory

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validatorfactory.zep) - -| Namespace | Phalcon\Validation | -| Uses | Phalcon\Factory\AbstractFactory, Phalcon\Helper\Arr | -| Extends | AbstractFactory | - -This file is part of the Phalcon Framework. - -(c) Phalcon Team - -For the full copyright and license information, please view the LICENSE.txt -file that was distributed with this source code. - - -## Methods -```php -public function __construct( array $services = [] ); -``` -TagFactory constructor. - - -```php -public function newInstance( string $name ): mixed; -``` -Creates a new instance - - -```php -protected function getAdapters(): array; -``` -// - - - -

        Interface Phalcon\Validation\ValidatorInterface

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/validation/validatorinterface.zep) - -| Namespace | Phalcon\Validation | -| Uses | Phalcon\Collection, Phalcon\Validation | - -Interface for Phalcon\Validation\AbstractValidator - - -## Methods -```php -public function getOption( string $key, mixed $defaultValue = null ): mixed; -``` -Returns an option in the validator's options -Returns null if the option hasn't set - -@return mixed - - -```php -public function getTemplate( string $field ): string; -``` - Get the template message - - @return string - @throw InvalidArgumentException When the field does not exists - - -```php -public function getTemplates(): array; -``` - Get message templates - - @return array - - -```php -public function hasOption( string $key ): bool; -``` -Checks if an option is defined - -@return boolean - - -```php -public function setTemplate( string $template ): ValidatorInterface; -``` - Set a new temlate message - - @return ValidatorInterface - - -```php -public function setTemplates( array $templates ): ValidatorInterface; -``` - Clear current template and set new from an array, - - @return ValidatorInterface - - -```php -public function validate( Validation $validation, mixed $field ): bool; -``` -Executes the validation - -@return boolean - - diff --git a/nikos/api/Phalcon_Version.md b/nikos/api/Phalcon_Version.md deleted file mode 100644 index bf590dc9f6a..00000000000 --- a/nikos/api/Phalcon_Version.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -layout: default -language: 'en' -version: '4.0' -title: 'Phalcon\Version' ---- - -* [Phalcon\Version](#version) - -

        Class Phalcon\Version

        - -[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/version.zep) - -| Namespace | Phalcon | - -This class allows to get the installed version of the framework - - -## Constants -```php -const VERSION_MAJOR = 0; -const VERSION_MEDIUM = 1; -const VERSION_MINOR = 2; -const VERSION_SPECIAL = 3; -const VERSION_SPECIAL_NUMBER = 4; -``` diff --git a/nikos/api/api.json b/nikos/api/api.json deleted file mode 100644 index 75c23d72e68..00000000000 --- a/nikos/api/api.json +++ /dev/null @@ -1,680 +0,0 @@ -[ - { - "title": "Phalcon\\Acl", - "docs": [ - "Acl\/Adapter\/AbstractAdapter", - "Acl\/Adapter\/AdapterInterface", - "Acl\/Adapter\/Memory", - "Acl\/Component", - "Acl\/ComponentAware", - "Acl\/ComponentInterface", - "Acl\/Enum", - "Acl\/Exception", - "Acl\/Role", - "Acl\/RoleAware", - "Acl\/RoleInterface" - ] - }, - { - "title": "Phalcon\\Annotations", - "docs": [ - "Annotations\/Adapter\/AbstractAdapter", - "Annotations\/Adapter\/AdapterInterface", - "Annotations\/Adapter\/Apcu", - "Annotations\/Adapter\/Memory", - "Annotations\/Adapter\/Stream", - "Annotations\/Annotation", - "Annotations\/AnnotationsFactory", - "Annotations\/Collection", - "Annotations\/Exception", - "Annotations\/Reader", - "Annotations\/ReaderInterface", - "Annotations\/Reflection" - ] - }, - { - "title": "Phalcon\\Application", - "docs": [ - "Application\/AbstractApplication", - "Application\/Exception" - ] - }, - { - "title": "Phalcon\\Assets", - "docs": [ - "Assets\/Asset", - "Assets\/Asset\/Css", - "Assets\/Asset\/Js", - "Assets\/AssetInterface", - "Assets\/Collection", - "Assets\/Exception", - "Assets\/FilterInterface", - "Assets\/Filters\/CssMin", - "Assets\/Filters\/JsMin", - "Assets\/Filters\/None", - "Assets\/Inline", - "Assets\/Inline\/Css", - "Assets\/Inline\/Js", - "Assets\/Manager" - ] - }, - { - "title": "Phalcon\\Cache", - "docs": [ - "Cache", - "Cache\/Adapter\/AdapterInterface", - "Cache\/Adapter\/Apcu", - "Cache\/Adapter\/Libmemcached", - "Cache\/Adapter\/Memory", - "Cache\/Adapter\/Redis", - "Cache\/Adapter\/Stream", - "Cache\/AdapterFactory", - "Cache\/CacheFactory", - "Cache\/Exception\/Exception", - "Cache\/Exception\/InvalidArgumentException" - ] - }, - { - "title": "Phalcon\\Cli", - "docs": [ - "Cli\/Console", - "Cli\/Console\/Exception", - "Cli\/Dispatcher", - "Cli\/Dispatcher\/Exception", - "Cli\/DispatcherInterface", - "Cli\/Router", - "Cli\/Router\/Exception", - "Cli\/Router\/Route", - "Cli\/Router\/RouteInterface", - "Cli\/RouterInterface", - "Cli\/Task", - "Cli\/TaskInterface" - ] - }, - { - "title": "Phalcon\\Collection", - "docs": [ - "Collection", - "Collection\/Exception", - "Collection\/ReadOnly" - ] - }, - { - "title": "Phalcon\\Config", - "docs": [ - "Config", - "Config\/Adapter\/Grouped", - "Config\/Adapter\/Ini", - "Config\/Adapter\/Json", - "Config\/Adapter\/Php", - "Config\/Adapter\/Yaml", - "Config\/ConfigFactory", - "Config\/Exception" - ] - }, - { - "title": "Phalcon\\Container", - "docs": [ - "Container" - ] - }, - { - "title": "Phalcon\\Crypt", - "docs": [ - "Crypt", - "Crypt\/CryptInterface", - "Crypt\/Exception", - "Crypt\/Mismatch" - ] - }, - { - "title": "Phalcon\\Db", - "docs": [ - "Db\/AbstractDb", - "Db\/Adapter\/AbstractAdapter", - "Db\/Adapter\/AdapterInterface", - "Db\/Adapter\/Pdo\/AbstractPdo", - "Db\/Adapter\/Pdo\/Mysql", - "Db\/Adapter\/Pdo\/Postgresql", - "Db\/Adapter\/Pdo\/Sqlite", - "Db\/Adapter\/PdoFactory", - "Db\/Column", - "Db\/ColumnInterface", - "Db\/Dialect", - "Db\/Dialect\/Mysql", - "Db\/Dialect\/Postgresql", - "Db\/Dialect\/Sqlite", - "Db\/DialectInterface", - "Db\/Enum", - "Db\/Exception", - "Db\/Index", - "Db\/IndexInterface", - "Db\/Profiler", - "Db\/Profiler\/Item", - "Db\/RawValue", - "Db\/Reference", - "Db\/ReferenceInterface", - "Db\/Result\/Pdo", - "Db\/ResultInterface" - ] - }, - { - "title": "Phalcon\\Debug", - "docs": [ - "Debug", - "Debug\/Dump", - "Debug\/Exception" - ] - }, - { - "title": "Phalcon\\Di", - "docs": [ - "Di", - "Di\/AbstractInjectionAware", - "Di\/DiInterface", - "Di\/Exception", - "Di\/Exception\/ServiceResolutionException", - "Di\/FactoryDefault", - "Di\/FactoryDefault\/Cli", - "Di\/Injectable", - "Di\/InjectionAwareInterface", - "Di\/Service", - "Di\/Service\/Builder", - "Di\/ServiceInterface", - "Di\/ServiceProviderInterface" - ] - }, - { - "title": "Phalcon\\Dispatcher", - "docs": [ - "Dispatcher\/AbstractDispatcher", - "Dispatcher\/DispatcherInterface", - "Dispatcher\/Exception" - ] - }, - { - "title": "Phalcon\\Domain", - "docs": [ - "Domain\/Payload\/Payload", - "Domain\/Payload\/PayloadFactory", - "Domain\/Payload\/PayloadInterface", - "Domain\/Payload\/ReadableInterface", - "Domain\/Payload\/Status", - "Domain\/Payload\/WriteableInterface" - ] - }, - { - "title": "Phalcon\\Escaper", - "docs": [ - "Escaper", - "Escaper\/EscaperInterface", - "Escaper\/Exception" - ] - }, - { - "title": "Phalcon\\Events", - "docs": [ - "Events\/Event", - "Events\/EventInterface", - "Events\/EventsAwareInterface", - "Events\/Exception", - "Events\/Manager", - "Events\/ManagerInterface" - ] - }, - { - "title": "Phalcon\\Exception", - "docs": [ - "Exception" - ] - }, - { - "title": "Phalcon\\Factory", - "docs": [ - "Factory\/AbstractFactory", - "Factory\/Exception" - ] - }, - { - "title": "Phalcon\\Filter", - "docs": [ - "Filter\/Exception", - "Filter\/Filter", - "Filter\/FilterFactory", - "Filter\/FilterInterface", - "Filter\/Sanitize\/AbsInt", - "Filter\/Sanitize\/Alnum", - "Filter\/Sanitize\/Alpha", - "Filter\/Sanitize\/BoolVal", - "Filter\/Sanitize\/Email", - "Filter\/Sanitize\/FloatVal", - "Filter\/Sanitize\/IntVal", - "Filter\/Sanitize\/Lower", - "Filter\/Sanitize\/LowerFirst", - "Filter\/Sanitize\/Regex", - "Filter\/Sanitize\/Remove", - "Filter\/Sanitize\/Replace", - "Filter\/Sanitize\/Special", - "Filter\/Sanitize\/SpecialFull", - "Filter\/Sanitize\/StringVal", - "Filter\/Sanitize\/Striptags", - "Filter\/Sanitize\/Trim", - "Filter\/Sanitize\/Upper", - "Filter\/Sanitize\/UpperFirst", - "Filter\/Sanitize\/UpperWords", - "Filter\/Sanitize\/Url" - ] - }, - { - "title": "Phalcon\\Firewall", - "docs": [ - "Firewall\/Adapter\/AbstractAdapter", - "Firewall\/Adapter\/Acl", - "Firewall\/Adapter\/AdapterInterface", - "Firewall\/Adapter\/Annotations", - "Firewall\/Adapter\/Micro\/Acl", - "Firewall\/Exception" - ] - }, - { - "title": "Phalcon\\Flash", - "docs": [ - "Flash\/AbstractFlash", - "Flash\/Direct", - "Flash\/Exception", - "Flash\/FlashInterface", - "Flash\/Session" - ] - }, - { - "title": "Phalcon\\Forms", - "docs": [ - "Forms\/Element\/AbstractElement", - "Forms\/Element\/Check", - "Forms\/Element\/Date", - "Forms\/Element\/ElementInterface", - "Forms\/Element\/Email", - "Forms\/Element\/File", - "Forms\/Element\/Hidden", - "Forms\/Element\/Numeric", - "Forms\/Element\/Password", - "Forms\/Element\/Radio", - "Forms\/Element\/Select", - "Forms\/Element\/Submit", - "Forms\/Element\/Text", - "Forms\/Element\/TextArea", - "Forms\/Exception", - "Forms\/Form", - "Forms\/Manager" - ] - }, - { - "title": "Phalcon\\Helper", - "docs": [ - "Helper\/Arr", - "Helper\/Exception", - "Helper\/Fs", - "Helper\/Number", - "Helper\/Str" - ] - }, - { - "title": "Phalcon\\Html", - "docs": [ - "Html\/Attributes", - "Html\/Attributes\/AttributesInterface", - "Html\/Attributes\/RenderInterface", - "Html\/Breadcrumbs", - "Html\/Exception", - "Html\/Helper\/AbstractHelper", - "Html\/Helper\/Anchor", - "Html\/Helper\/AnchorRaw", - "Html\/Helper\/Body", - "Html\/Helper\/Button", - "Html\/Helper\/Close", - "Html\/Helper\/Element", - "Html\/Helper\/ElementRaw", - "Html\/Helper\/Form", - "Html\/Helper\/Img", - "Html\/Helper\/Label", - "Html\/Helper\/TextArea", - "Html\/Tag", - "Html\/TagFactory" - ] - }, - { - "title": "Phalcon\\Http", - "docs": [ - "Http\/Cookie", - "Http\/Cookie\/Exception", - "Http\/CookieInterface", - "Http\/Message\/AbstractCommon", - "Http\/Message\/AbstractMessage", - "Http\/Message\/AbstractRequest", - "Http\/Message\/Exception\/InvalidArgumentException", - "Http\/Message\/Request", - "Http\/Message\/RequestFactory", - "Http\/Message\/Response", - "Http\/Message\/ResponseFactory", - "Http\/Message\/ServerRequest", - "Http\/Message\/ServerRequestFactory", - "Http\/Message\/Stream", - "Http\/Message\/Stream\/Input", - "Http\/Message\/Stream\/Memory", - "Http\/Message\/Stream\/Temp", - "Http\/Message\/StreamFactory", - "Http\/Message\/UploadedFile", - "Http\/Message\/UploadedFileFactory", - "Http\/Message\/Uri", - "Http\/Message\/UriFactory", - "Http\/Request", - "Http\/Request\/Exception", - "Http\/Request\/File", - "Http\/Request\/FileInterface", - "Http\/RequestInterface", - "Http\/Response", - "Http\/Response\/Cookies", - "Http\/Response\/CookiesInterface", - "Http\/Response\/Exception", - "Http\/Response\/Headers", - "Http\/Response\/HeadersInterface", - "Http\/ResponseInterface", - "Http\/Server\/AbstractMiddleware", - "Http\/Server\/AbstractRequestHandler" - ] - }, - { - "title": "Phalcon\\Image", - "docs": [ - "Image\/Adapter\/AbstractAdapter", - "Image\/Adapter\/AdapterInterface", - "Image\/Adapter\/Gd", - "Image\/Adapter\/Imagick", - "Image\/Enum", - "Image\/Exception", - "Image\/ImageFactory" - ] - }, - { - "title": "Phalcon\\Kernel", - "docs": [ - "Kernel" - ] - }, - { - "title": "Phalcon\\Loader", - "docs": [ - "Loader", - "Loader\/Exception" - ] - }, - { - "title": "Phalcon\\Logger", - "docs": [ - "Logger", - "Logger\/Adapter\/AbstractAdapter", - "Logger\/Adapter\/AdapterInterface", - "Logger\/Adapter\/Noop", - "Logger\/Adapter\/Stream", - "Logger\/Adapter\/Syslog", - "Logger\/AdapterFactory", - "Logger\/Exception", - "Logger\/Formatter\/AbstractFormatter", - "Logger\/Formatter\/FormatterInterface", - "Logger\/Formatter\/Json", - "Logger\/Formatter\/Line", - "Logger\/Formatter\/Syslog", - "Logger\/Item", - "Logger\/LoggerFactory" - ] - }, - { - "title": "Phalcon\\Messages", - "docs": [ - "Messages\/Exception", - "Messages\/Message", - "Messages\/MessageInterface", - "Messages\/Messages" - ] - }, - { - "title": "Phalcon\\Mvc", - "docs": [ - "Mvc\/Application", - "Mvc\/Application\/Exception", - "Mvc\/Controller", - "Mvc\/Controller\/BindModelInterface", - "Mvc\/ControllerInterface", - "Mvc\/Dispatcher", - "Mvc\/Dispatcher\/Exception", - "Mvc\/DispatcherInterface", - "Mvc\/EntityInterface", - "Mvc\/Micro", - "Mvc\/Micro\/Collection", - "Mvc\/Micro\/CollectionInterface", - "Mvc\/Micro\/Exception", - "Mvc\/Micro\/LazyLoader", - "Mvc\/Micro\/MiddlewareInterface", - "Mvc\/Model", - "Mvc\/Model\/Behavior", - "Mvc\/Model\/Behavior\/SoftDelete", - "Mvc\/Model\/Behavior\/Timestampable", - "Mvc\/Model\/BehaviorInterface", - "Mvc\/Model\/Binder", - "Mvc\/Model\/Binder\/BindableInterface", - "Mvc\/Model\/BinderInterface", - "Mvc\/Model\/Criteria", - "Mvc\/Model\/CriteriaInterface", - "Mvc\/Model\/Exception", - "Mvc\/Model\/Manager", - "Mvc\/Model\/ManagerInterface", - "Mvc\/Model\/MetaData", - "Mvc\/Model\/MetaData\/Apcu", - "Mvc\/Model\/MetaData\/Libmemcached", - "Mvc\/Model\/MetaData\/Memory", - "Mvc\/Model\/MetaData\/Redis", - "Mvc\/Model\/MetaData\/Strategy\/Annotations", - "Mvc\/Model\/MetaData\/Strategy\/Introspection", - "Mvc\/Model\/MetaData\/StrategyInterface", - "Mvc\/Model\/MetaData\/Stream", - "Mvc\/Model\/MetaDataInterface", - "Mvc\/Model\/Query", - "Mvc\/Model\/Query\/Builder", - "Mvc\/Model\/Query\/BuilderInterface", - "Mvc\/Model\/Query\/Lang", - "Mvc\/Model\/Query\/Status", - "Mvc\/Model\/Query\/StatusInterface", - "Mvc\/Model\/QueryInterface", - "Mvc\/Model\/Relation", - "Mvc\/Model\/RelationInterface", - "Mvc\/Model\/ResultInterface", - "Mvc\/Model\/Resultset", - "Mvc\/Model\/Resultset\/Complex", - "Mvc\/Model\/Resultset\/Simple", - "Mvc\/Model\/ResultsetInterface", - "Mvc\/Model\/Row", - "Mvc\/Model\/Transaction", - "Mvc\/Model\/Transaction\/Exception", - "Mvc\/Model\/Transaction\/Failed", - "Mvc\/Model\/Transaction\/Manager", - "Mvc\/Model\/Transaction\/ManagerInterface", - "Mvc\/Model\/TransactionInterface", - "Mvc\/Model\/ValidationFailed", - "Mvc\/ModelInterface", - "Mvc\/ModuleDefinitionInterface", - "Mvc\/Router", - "Mvc\/Router\/Annotations", - "Mvc\/Router\/Exception", - "Mvc\/Router\/Group", - "Mvc\/Router\/GroupInterface", - "Mvc\/Router\/Route", - "Mvc\/Router\/RouteInterface", - "Mvc\/RouterInterface", - "Mvc\/View", - "Mvc\/View\/Engine\/AbstractEngine", - "Mvc\/View\/Engine\/EngineInterface", - "Mvc\/View\/Engine\/Php", - "Mvc\/View\/Engine\/Volt", - "Mvc\/View\/Engine\/Volt\/Compiler", - "Mvc\/View\/Engine\/Volt\/Exception", - "Mvc\/View\/Exception", - "Mvc\/View\/Simple", - "Mvc\/ViewBaseInterface", - "Mvc\/ViewInterface" - ] - }, - { - "title": "Phalcon\\Paginator", - "docs": [ - "Paginator\/Adapter\/AbstractAdapter", - "Paginator\/Adapter\/AdapterInterface", - "Paginator\/Adapter\/Model", - "Paginator\/Adapter\/NativeArray", - "Paginator\/Adapter\/QueryBuilder", - "Paginator\/Exception", - "Paginator\/PaginatorFactory", - "Paginator\/Repository", - "Paginator\/RepositoryInterface" - ] - }, - { - "title": "Phalcon\\Registry", - "docs": [ - "Registry" - ] - }, - { - "title": "Phalcon\\Security", - "docs": [ - "Security", - "Security\/Exception", - "Security\/Random" - ] - }, - { - "title": "Phalcon\\Session", - "docs": [ - "Session\/Adapter\/AbstractAdapter", - "Session\/Adapter\/Libmemcached", - "Session\/Adapter\/Noop", - "Session\/Adapter\/Redis", - "Session\/Adapter\/Stream", - "Session\/Bag", - "Session\/Exception", - "Session\/Manager", - "Session\/ManagerInterface" - ] - }, - { - "title": "Phalcon\\Storage", - "docs": [ - "Storage\/Adapter\/AbstractAdapter", - "Storage\/Adapter\/AdapterInterface", - "Storage\/Adapter\/Apcu", - "Storage\/Adapter\/Libmemcached", - "Storage\/Adapter\/Memory", - "Storage\/Adapter\/Redis", - "Storage\/Adapter\/Stream", - "Storage\/AdapterFactory", - "Storage\/Exception", - "Storage\/Serializer\/AbstractSerializer", - "Storage\/Serializer\/Base64", - "Storage\/Serializer\/Igbinary", - "Storage\/Serializer\/Json", - "Storage\/Serializer\/Msgpack", - "Storage\/Serializer\/None", - "Storage\/Serializer\/Php", - "Storage\/Serializer\/SerializerInterface", - "Storage\/SerializerFactory" - ] - }, - { - "title": "Phalcon\\Tag", - "docs": [ - "Tag", - "Tag\/Exception", - "Tag\/Select" - ] - }, - { - "title": "Phalcon\\Text", - "docs": [ - "Text" - ] - }, - { - "title": "Phalcon\\Translate", - "docs": [ - "Translate\/Adapter\/AbstractAdapter", - "Translate\/Adapter\/AdapterInterface", - "Translate\/Adapter\/Csv", - "Translate\/Adapter\/Gettext", - "Translate\/Adapter\/NativeArray", - "Translate\/Exception", - "Translate\/Interpolator\/AssociativeArray", - "Translate\/Interpolator\/IndexedArray", - "Translate\/Interpolator\/InterpolatorInterface", - "Translate\/InterpolatorFactory", - "Translate\/TranslateFactory" - ] - }, - { - "title": "Phalcon\\Url", - "docs": [ - "Url", - "Url\/Exception", - "Url\/UrlInterface" - ] - }, - { - "title": "Phalcon\\Validation", - "docs": [ - "Validation", - "Validation\/AbstractCombinedFieldsValidator", - "Validation\/AbstractValidator", - "Validation\/AbstractValidatorComposite", - "Validation\/Exception", - "Validation\/ValidationInterface", - "Validation\/Validator\/Alnum", - "Validation\/Validator\/Alpha", - "Validation\/Validator\/Between", - "Validation\/Validator\/Callback", - "Validation\/Validator\/Confirmation", - "Validation\/Validator\/CreditCard", - "Validation\/Validator\/Date", - "Validation\/Validator\/Digit", - "Validation\/Validator\/Email", - "Validation\/Validator\/Exception", - "Validation\/Validator\/ExclusionIn", - "Validation\/Validator\/File", - "Validation\/Validator\/File\/AbstractFile", - "Validation\/Validator\/File\/MimeType", - "Validation\/Validator\/File\/Resolution\/Equal", - "Validation\/Validator\/File\/Resolution\/Max", - "Validation\/Validator\/File\/Resolution\/Min", - "Validation\/Validator\/File\/Size\/Equal", - "Validation\/Validator\/File\/Size\/Max", - "Validation\/Validator\/File\/Size\/Min", - "Validation\/Validator\/Identical", - "Validation\/Validator\/InclusionIn", - "Validation\/Validator\/Ip", - "Validation\/Validator\/Numericality", - "Validation\/Validator\/PresenceOf", - "Validation\/Validator\/Regex", - "Validation\/Validator\/StringLength", - "Validation\/Validator\/StringLength\/Max", - "Validation\/Validator\/StringLength\/Min", - "Validation\/Validator\/Uniqueness", - "Validation\/Validator\/Url", - "Validation\/ValidatorCompositeInterface", - "Validation\/ValidatorFactory", - "Validation\/ValidatorInterface" - ] - }, - { - "title": "Phalcon\\Version", - "docs": [ - "Version" - ] - } -] \ No newline at end of file From a26cf82be8444ce1e002665b7595f7f28aea09aa Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Sat, 7 Sep 2019 13:58:55 -0400 Subject: [PATCH 105/202] [4.0.x] - Updating ext --- ext/config.m4 | 15 +- ext/config.w32 | 10 +- ext/phalcon.c | 30 +- ext/phalcon.h | 15 +- ext/phalcon/assets/manager.zep.c | 100 +-- ext/phalcon/assets/manager.zep.h | 15 - ext/phalcon/cli/router.zep.c | 60 +- ext/phalcon/cli/router.zep.h | 15 - ext/phalcon/di/abstractinjectionaware.zep.c | 75 ++ ext/phalcon/di/abstractinjectionaware.zep.h | 24 + .../dispatcher/abstractdispatcher.zep.c | 61 +- .../dispatcher/abstractdispatcher.zep.h | 15 - ext/phalcon/flash/abstractflash.zep.c | 177 ++--- ext/phalcon/flash/abstractflash.zep.h | 26 +- ext/phalcon/flash/direct.zep.h | 4 +- ext/phalcon/flash/flashinterface.zep.h | 6 +- ext/phalcon/flash/session.zep.c | 128 +++- ext/phalcon/flash/session.zep.h | 15 +- ext/phalcon/helper/fs.zep.c | 136 ++++ ext/phalcon/helper/fs.zep.h | 24 + ext/phalcon/helper/str.zep.c | 30 +- ext/phalcon/html/tag.zep.c | 88 +-- ext/phalcon/html/tag.zep.h | 15 - ext/phalcon/http/cookie.zep.c | 49 +- ext/phalcon/http/cookie.zep.h | 15 - ext/phalcon/http/request.zep.c | 327 ++++----- ext/phalcon/http/request.zep.h | 15 - ext/phalcon/http/response.zep.c | 84 ++- ext/phalcon/http/response/cookies.zep.c | 41 +- ext/phalcon/http/response/cookies.zep.h | 15 - ext/phalcon/http/response/headers.zep.c | 14 +- ext/phalcon/image/adapter/gd.zep.c | 232 +++--- ext/phalcon/loader.zep.c | 4 +- ext/phalcon/logger.zep.c | 4 +- ext/phalcon/logger/adapter/syslog.zep.c | 10 +- ext/phalcon/logger/formatter/json.zep.c | 2 +- ext/phalcon/logger/formatter/line.zep.c | 2 +- ext/phalcon/logger/loggerfactory.zep.c | 2 +- ext/phalcon/messages/messages.zep.c | 2 +- ext/phalcon/mvc/micro.zep.c | 22 +- ext/phalcon/mvc/model.zep.c | 683 +++++++++--------- ext/phalcon/mvc/model.zep.h | 15 - .../mvc/model/behavior/timestampable.zep.c | 4 +- ext/phalcon/mvc/model/binder.zep.c | 6 +- ext/phalcon/mvc/model/criteria.zep.c | 6 +- ext/phalcon/mvc/model/manager.zep.c | 16 +- ext/phalcon/mvc/model/metadata/stream.zep.c | 4 +- ext/phalcon/mvc/model/query.zep.c | 204 +++--- ext/phalcon/mvc/model/query/builder.zep.c | 60 +- ext/phalcon/mvc/model/resultset/complex.zep.c | 2 +- ext/phalcon/mvc/model/transaction.zep.c | 4 +- .../mvc/model/transaction/manager.zep.c | 6 +- ext/phalcon/mvc/router.zep.c | 99 +-- ext/phalcon/mvc/router.zep.h | 15 - ext/phalcon/mvc/router/group.zep.c | 2 +- ext/phalcon/mvc/view.zep.c | 16 +- ext/phalcon/mvc/view/engine/php.zep.c | 4 +- ext/phalcon/mvc/view/engine/volt.zep.c | 14 +- .../mvc/view/engine/volt/compiler.zep.c | 152 ++-- ext/phalcon/mvc/view/simple.zep.c | 6 +- ext/phalcon/security.zep.c | 409 +++++------ ext/phalcon/security.zep.h | 48 +- ext/phalcon/session/adapter/stream.zep.c | 22 +- ext/phalcon/session/manager.zep.c | 50 +- ext/phalcon/session/manager.zep.h | 15 - .../storage/adapter/abstractadapter.zep.c | 41 +- ext/phalcon/storage/adapter/redis.zep.c | 84 +-- ext/phalcon/text.zep.c | 4 +- ext/phalcon/url.zep.c | 230 +++--- ext/phalcon/url.zep.h | 21 +- ext/phalcon/validation.zep.c | 2 +- .../validator/file/resolution/equal.zep.c | 2 +- .../validator/file/resolution/max.zep.c | 2 +- .../validator/file/resolution/min.zep.c | 2 +- .../validation/validator/uniqueness.zep.c | 428 ++--------- .../validation/validator/uniqueness.zep.h | 8 - 76 files changed, 2047 insertions(+), 2563 deletions(-) create mode 100644 ext/phalcon/di/abstractinjectionaware.zep.c create mode 100644 ext/phalcon/di/abstractinjectionaware.zep.h create mode 100644 ext/phalcon/helper/fs.zep.c create mode 100644 ext/phalcon/helper/fs.zep.h diff --git a/ext/config.m4 b/ext/config.m4 index 0240ecc63a3..e16cd66697f 100644 --- a/ext/config.m4 +++ b/ext/config.m4 @@ -14,6 +14,7 @@ if test "$PHP_PHALCON" = "yes"; then phalcon/events/eventsawareinterface.zep.c phalcon/validation/validatorinterface.zep.c phalcon/validation/abstractvalidator.zep.c + phalcon/di/abstractinjectionaware.zep.c phalcon/storage/adapter/adapterinterface.zep.c phalcon/di/injectable.zep.c phalcon/factory/abstractfactory.zep.c @@ -40,7 +41,6 @@ if test "$PHP_PHALCON" = "yes"; then phalcon/http/message/abstractmessage.zep.c phalcon/logger/adapter/adapterinterface.zep.c phalcon/logger/formatter/formatterinterface.zep.c - phalcon/mvc/entityinterface.zep.c phalcon/mvc/model/resultsetinterface.zep.c phalcon/paginator/adapter/adapterinterface.zep.c phalcon/translate/adapter/adapterinterface.zep.c @@ -55,7 +55,6 @@ if test "$PHP_PHALCON" = "yes"; then phalcon/image/adapter/adapterinterface.zep.c phalcon/logger/adapter/abstractadapter.zep.c phalcon/logger/formatter/abstractformatter.zep.c - phalcon/mvc/collection/behaviorinterface.zep.c phalcon/mvc/model/behaviorinterface.zep.c phalcon/mvc/model/exception.zep.c phalcon/mvc/view/engine/engineinterface.zep.c @@ -76,7 +75,7 @@ if test "$PHP_PHALCON" = "yes"; then phalcon/flash/abstractflash.zep.c phalcon/http/message/abstractrequest.zep.c phalcon/image/adapter/abstractadapter.zep.c - phalcon/mvc/collection/behavior.zep.c + phalcon/mvc/entityinterface.zep.c phalcon/mvc/model/behavior.zep.c phalcon/mvc/model/metadata/strategyinterface.zep.c phalcon/mvc/model/resultinterface.zep.c @@ -115,7 +114,6 @@ if test "$PHP_PHALCON" = "yes"; then phalcon/http/response/headersinterface.zep.c phalcon/http/responseinterface.zep.c phalcon/messages/messageinterface.zep.c - phalcon/mvc/collectioninterface.zep.c phalcon/mvc/controllerinterface.zep.c phalcon/mvc/dispatcherinterface.zep.c phalcon/mvc/micro/collectioninterface.zep.c @@ -286,6 +284,7 @@ if test "$PHP_PHALCON" = "yes"; then phalcon/forms/manager.zep.c phalcon/helper/arr.zep.c phalcon/helper/exception.zep.c + phalcon/helper/fs.zep.c phalcon/helper/number.zep.c phalcon/helper/str.zep.c phalcon/html/attributes.zep.c @@ -354,13 +353,6 @@ if test "$PHP_PHALCON" = "yes"; then phalcon/messages/messages.zep.c phalcon/mvc/application.zep.c phalcon/mvc/application/exception.zep.c - phalcon/mvc/collection.zep.c - phalcon/mvc/collection/behavior/softdelete.zep.c - phalcon/mvc/collection/behavior/timestampable.zep.c - phalcon/mvc/collection/document.zep.c - phalcon/mvc/collection/exception.zep.c - phalcon/mvc/collection/manager.zep.c - phalcon/mvc/collection/managerinterface.zep.c phalcon/mvc/controller.zep.c phalcon/mvc/controller/bindmodelinterface.zep.c phalcon/mvc/dispatcher.zep.c @@ -413,7 +405,6 @@ if test "$PHP_PHALCON" = "yes"; then phalcon/paginator/exception.zep.c phalcon/paginator/paginatorfactory.zep.c phalcon/paginator/repository.zep.c - phalcon/plugin.zep.c phalcon/registry.zep.c phalcon/security.zep.c phalcon/security/exception.zep.c diff --git a/ext/config.w32 b/ext/config.w32 index 1d5e169526e..a94144d6f6f 100644 --- a/ext/config.w32 +++ b/ext/config.w32 @@ -14,8 +14,8 @@ if (PHP_PHALCON != "no") { ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/query", "scanner.c parser.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/view/engine/volt", "parser.c scanner.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/url", "utils.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon", "exception.zep.c collection.zep.c config.zep.c di.zep.c cache.zep.c container.zep.c crypt.zep.c debug.zep.c escaper.zep.c kernel.zep.c loader.zep.c logger.zep.c plugin.zep.c registry.zep.c security.zep.c tag.zep.c text.zep.c url.zep.c validation.zep.c version.zep.c 0__closure.zep.c 1__closure.zep.c 2__closure.zep.c 3__closure.zep.c 4__closure.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/di", "injectionawareinterface.zep.c injectable.zep.c diinterface.zep.c exception.zep.c factorydefault.zep.c serviceinterface.zep.c service.zep.c serviceproviderinterface.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon", "exception.zep.c collection.zep.c config.zep.c di.zep.c cache.zep.c container.zep.c crypt.zep.c debug.zep.c escaper.zep.c kernel.zep.c loader.zep.c logger.zep.c registry.zep.c security.zep.c tag.zep.c text.zep.c url.zep.c validation.zep.c version.zep.c 0__closure.zep.c 1__closure.zep.c 2__closure.zep.c 3__closure.zep.c 4__closure.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/di", "injectionawareinterface.zep.c abstractinjectionaware.zep.c injectable.zep.c diinterface.zep.c exception.zep.c factorydefault.zep.c serviceinterface.zep.c service.zep.c serviceproviderinterface.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/events", "eventsawareinterface.zep.c eventinterface.zep.c managerinterface.zep.c event.zep.c exception.zep.c manager.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/validation", "validatorinterface.zep.c abstractvalidator.zep.c validatorcompositeinterface.zep.c abstractvalidatorcomposite.zep.c abstractcombinedfieldsvalidator.zep.c validationinterface.zep.c exception.zep.c validatorfactory.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/storage/adapter", "adapterinterface.zep.c abstractadapter.zep.c apcu.zep.c libmemcached.zep.c memory.zep.c redis.zep.c stream.zep.c", "phalcon"); @@ -35,14 +35,13 @@ if (PHP_PHALCON != "no") { ADD_SOURCES(configure_module_dirname + "/phalcon/firewall/adapter", "adapterinterface.zep.c abstractadapter.zep.c acl.zep.c annotations.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/logger/adapter", "adapterinterface.zep.c abstractadapter.zep.c noop.zep.c stream.zep.c syslog.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/logger/formatter", "formatterinterface.zep.c abstractformatter.zep.c json.zep.c line.zep.c syslog.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc", "entityinterface.zep.c viewbaseinterface.zep.c routerinterface.zep.c collectioninterface.zep.c controllerinterface.zep.c dispatcherinterface.zep.c modelinterface.zep.c router.zep.c viewinterface.zep.c application.zep.c collection.zep.c controller.zep.c dispatcher.zep.c micro.zep.c model.zep.c moduledefinitioninterface.zep.c view.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/paginator/adapter", "adapterinterface.zep.c abstractadapter.zep.c model.zep.c nativearray.zep.c querybuilder.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/translate/adapter", "adapterinterface.zep.c abstractadapter.zep.c csv.zep.c gettext.zep.c nativearray.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/db/adapter/pdo", "abstractpdo.zep.c mysql.zep.c postgresql.zep.c sqlite.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/flash", "flashinterface.zep.c abstractflash.zep.c direct.zep.c exception.zep.c session.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/image/adapter", "adapterinterface.zep.c abstractadapter.zep.c gd.zep.c imagick.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/collection", "behaviorinterface.zep.c behavior.zep.c document.zep.c exception.zep.c manager.zep.c managerinterface.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/view/engine", "engineinterface.zep.c abstractengine.zep.c php.zep.c volt.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc", "viewbaseinterface.zep.c entityinterface.zep.c routerinterface.zep.c controllerinterface.zep.c dispatcherinterface.zep.c modelinterface.zep.c router.zep.c viewinterface.zep.c application.zep.c controller.zep.c dispatcher.zep.c micro.zep.c model.zep.c moduledefinitioninterface.zep.c view.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/acl/adapter", "adapterinterface.zep.c abstractadapter.zep.c memory.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/application", "abstractapplication.zep.c exception.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/domain/payload", "readableinterface.zep.c writeableinterface.zep.c payloadinterface.zep.c payload.zep.c payloadfactory.zep.c status.zep.c", "phalcon"); @@ -90,7 +89,7 @@ if (PHP_PHALCON != "no") { ADD_SOURCES(configure_module_dirname + "/phalcon/firewall/adapter/micro", "acl.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/firewall", "exception.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/forms", "exception.zep.c form.zep.c manager.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/helper", "arr.zep.c exception.zep.c number.zep.c str.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/helper", "arr.zep.c exception.zep.c fs.zep.c number.zep.c str.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/html", "attributes.zep.c breadcrumbs.zep.c exception.zep.c tag.zep.c tagfactory.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/http/cookie", "exception.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/http/message/exception", "invalidargumentexception.zep.c", "phalcon"); @@ -100,7 +99,6 @@ if (PHP_PHALCON != "no") { ADD_SOURCES(configure_module_dirname + "/phalcon/loader", "exception.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/logger", "adapterfactory.zep.c exception.zep.c item.zep.c loggerfactory.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/application", "exception.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/collection/behavior", "softdelete.zep.c timestampable.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/controller", "bindmodelinterface.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/dispatcher", "exception.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/behavior", "softdelete.zep.c timestampable.zep.c", "phalcon"); diff --git a/ext/phalcon.c b/ext/phalcon.c index 462f60c0ece..efa72b564be 100644 --- a/ext/phalcon.c +++ b/ext/phalcon.c @@ -40,7 +40,6 @@ zend_class_entry *phalcon_db_dialectinterface_ce; zend_class_entry *phalcon_firewall_adapter_adapterinterface_ce; zend_class_entry *phalcon_logger_adapter_adapterinterface_ce; zend_class_entry *phalcon_logger_formatter_formatterinterface_ce; -zend_class_entry *phalcon_mvc_entityinterface_ce; zend_class_entry *phalcon_mvc_model_resultsetinterface_ce; zend_class_entry *phalcon_paginator_adapter_adapterinterface_ce; zend_class_entry *phalcon_translate_adapter_adapterinterface_ce; @@ -48,7 +47,6 @@ zend_class_entry *phalcon_assets_filterinterface_ce; zend_class_entry *phalcon_di_diinterface_ce; zend_class_entry *phalcon_flash_flashinterface_ce; zend_class_entry *phalcon_image_adapter_adapterinterface_ce; -zend_class_entry *phalcon_mvc_collection_behaviorinterface_ce; zend_class_entry *phalcon_mvc_model_behaviorinterface_ce; zend_class_entry *phalcon_mvc_view_engine_engineinterface_ce; zend_class_entry *phalcon_mvc_viewbaseinterface_ce; @@ -56,6 +54,7 @@ zend_class_entry *phalcon_validation_validatorcompositeinterface_ce; zend_class_entry *phalcon_acl_adapter_adapterinterface_ce; zend_class_entry *phalcon_domain_payload_readableinterface_ce; zend_class_entry *phalcon_domain_payload_writeableinterface_ce; +zend_class_entry *phalcon_mvc_entityinterface_ce; zend_class_entry *phalcon_mvc_model_metadata_strategyinterface_ce; zend_class_entry *phalcon_mvc_model_resultinterface_ce; zend_class_entry *phalcon_mvc_routerinterface_ce; @@ -85,7 +84,6 @@ zend_class_entry *phalcon_http_response_cookiesinterface_ce; zend_class_entry *phalcon_http_response_headersinterface_ce; zend_class_entry *phalcon_http_responseinterface_ce; zend_class_entry *phalcon_messages_messageinterface_ce; -zend_class_entry *phalcon_mvc_collectioninterface_ce; zend_class_entry *phalcon_mvc_controllerinterface_ce; zend_class_entry *phalcon_mvc_dispatcherinterface_ce; zend_class_entry *phalcon_mvc_micro_collectioninterface_ce; @@ -111,13 +109,13 @@ zend_class_entry *phalcon_acl_roleaware_ce; zend_class_entry *phalcon_cli_router_routeinterface_ce; zend_class_entry *phalcon_cli_routerinterface_ce; zend_class_entry *phalcon_di_serviceproviderinterface_ce; -zend_class_entry *phalcon_mvc_collection_managerinterface_ce; zend_class_entry *phalcon_mvc_controller_bindmodelinterface_ce; zend_class_entry *phalcon_mvc_micro_middlewareinterface_ce; zend_class_entry *phalcon_mvc_model_binder_bindableinterface_ce; zend_class_entry *phalcon_mvc_moduledefinitioninterface_ce; zend_class_entry *phalcon_exception_ce; zend_class_entry *phalcon_validation_abstractvalidator_ce; +zend_class_entry *phalcon_di_abstractinjectionaware_ce; zend_class_entry *phalcon_di_injectable_ce; zend_class_entry *phalcon_factory_abstractfactory_ce; zend_class_entry *phalcon_forms_element_abstractelement_ce; @@ -151,7 +149,6 @@ zend_class_entry *phalcon_dispatcher_exception_ce; zend_class_entry *phalcon_flash_abstractflash_ce; zend_class_entry *phalcon_http_message_abstractrequest_ce; zend_class_entry *phalcon_image_adapter_abstractadapter_ce; -zend_class_entry *phalcon_mvc_collection_behavior_ce; zend_class_entry *phalcon_mvc_model_behavior_ce; zend_class_entry *phalcon_mvc_model_resultset_ce; zend_class_entry *phalcon_mvc_view_engine_abstractengine_ce; @@ -311,6 +308,7 @@ zend_class_entry *phalcon_forms_form_ce; zend_class_entry *phalcon_forms_manager_ce; zend_class_entry *phalcon_helper_arr_ce; zend_class_entry *phalcon_helper_exception_ce; +zend_class_entry *phalcon_helper_fs_ce; zend_class_entry *phalcon_helper_number_ce; zend_class_entry *phalcon_helper_str_ce; zend_class_entry *phalcon_html_attributes_ce; @@ -379,12 +377,6 @@ zend_class_entry *phalcon_messages_message_ce; zend_class_entry *phalcon_messages_messages_ce; zend_class_entry *phalcon_mvc_application_ce; zend_class_entry *phalcon_mvc_application_exception_ce; -zend_class_entry *phalcon_mvc_collection_behavior_softdelete_ce; -zend_class_entry *phalcon_mvc_collection_behavior_timestampable_ce; -zend_class_entry *phalcon_mvc_collection_ce; -zend_class_entry *phalcon_mvc_collection_document_ce; -zend_class_entry *phalcon_mvc_collection_exception_ce; -zend_class_entry *phalcon_mvc_collection_manager_ce; zend_class_entry *phalcon_mvc_controller_ce; zend_class_entry *phalcon_mvc_dispatcher_ce; zend_class_entry *phalcon_mvc_dispatcher_exception_ce; @@ -433,7 +425,6 @@ zend_class_entry *phalcon_paginator_adapter_querybuilder_ce; zend_class_entry *phalcon_paginator_exception_ce; zend_class_entry *phalcon_paginator_paginatorfactory_ce; zend_class_entry *phalcon_paginator_repository_ce; -zend_class_entry *phalcon_plugin_ce; zend_class_entry *phalcon_registry_ce; zend_class_entry *phalcon_security_ce; zend_class_entry *phalcon_security_exception_ce; @@ -549,7 +540,6 @@ static PHP_MINIT_FUNCTION(phalcon) ZEPHIR_INIT(Phalcon_Firewall_Adapter_AdapterInterface); ZEPHIR_INIT(Phalcon_Logger_Adapter_AdapterInterface); ZEPHIR_INIT(Phalcon_Logger_Formatter_FormatterInterface); - ZEPHIR_INIT(Phalcon_Mvc_EntityInterface); ZEPHIR_INIT(Phalcon_Mvc_Model_ResultsetInterface); ZEPHIR_INIT(Phalcon_Paginator_Adapter_AdapterInterface); ZEPHIR_INIT(Phalcon_Translate_Adapter_AdapterInterface); @@ -557,7 +547,6 @@ static PHP_MINIT_FUNCTION(phalcon) ZEPHIR_INIT(Phalcon_Di_DiInterface); ZEPHIR_INIT(Phalcon_Flash_FlashInterface); ZEPHIR_INIT(Phalcon_Image_Adapter_AdapterInterface); - ZEPHIR_INIT(Phalcon_Mvc_Collection_BehaviorInterface); ZEPHIR_INIT(Phalcon_Mvc_Model_BehaviorInterface); ZEPHIR_INIT(Phalcon_Mvc_ViewBaseInterface); ZEPHIR_INIT(Phalcon_Mvc_View_Engine_EngineInterface); @@ -565,6 +554,7 @@ static PHP_MINIT_FUNCTION(phalcon) ZEPHIR_INIT(Phalcon_Acl_Adapter_AdapterInterface); ZEPHIR_INIT(Phalcon_Domain_Payload_ReadableInterface); ZEPHIR_INIT(Phalcon_Domain_Payload_WriteableInterface); + ZEPHIR_INIT(Phalcon_Mvc_EntityInterface); ZEPHIR_INIT(Phalcon_Mvc_Model_MetaData_StrategyInterface); ZEPHIR_INIT(Phalcon_Mvc_Model_ResultInterface); ZEPHIR_INIT(Phalcon_Mvc_RouterInterface); @@ -594,7 +584,6 @@ static PHP_MINIT_FUNCTION(phalcon) ZEPHIR_INIT(Phalcon_Http_Response_CookiesInterface); ZEPHIR_INIT(Phalcon_Http_Response_HeadersInterface); ZEPHIR_INIT(Phalcon_Messages_MessageInterface); - ZEPHIR_INIT(Phalcon_Mvc_CollectionInterface); ZEPHIR_INIT(Phalcon_Mvc_ControllerInterface); ZEPHIR_INIT(Phalcon_Mvc_DispatcherInterface); ZEPHIR_INIT(Phalcon_Mvc_Micro_CollectionInterface); @@ -620,13 +609,13 @@ static PHP_MINIT_FUNCTION(phalcon) ZEPHIR_INIT(Phalcon_Cli_RouterInterface); ZEPHIR_INIT(Phalcon_Cli_Router_RouteInterface); ZEPHIR_INIT(Phalcon_Di_ServiceProviderInterface); - ZEPHIR_INIT(Phalcon_Mvc_Collection_ManagerInterface); ZEPHIR_INIT(Phalcon_Mvc_Controller_BindModelInterface); ZEPHIR_INIT(Phalcon_Mvc_Micro_MiddlewareInterface); ZEPHIR_INIT(Phalcon_Mvc_Model_Binder_BindableInterface); ZEPHIR_INIT(Phalcon_Mvc_ModuleDefinitionInterface); ZEPHIR_INIT(Phalcon_Exception); ZEPHIR_INIT(Phalcon_Validation_AbstractValidator); + ZEPHIR_INIT(Phalcon_Di_AbstractInjectionAware); ZEPHIR_INIT(Phalcon_Di_Injectable); ZEPHIR_INIT(Phalcon_Factory_AbstractFactory); ZEPHIR_INIT(Phalcon_Forms_Element_AbstractElement); @@ -660,7 +649,6 @@ static PHP_MINIT_FUNCTION(phalcon) ZEPHIR_INIT(Phalcon_Flash_AbstractFlash); ZEPHIR_INIT(Phalcon_Http_Message_AbstractRequest); ZEPHIR_INIT(Phalcon_Image_Adapter_AbstractAdapter); - ZEPHIR_INIT(Phalcon_Mvc_Collection_Behavior); ZEPHIR_INIT(Phalcon_Mvc_Model_Behavior); ZEPHIR_INIT(Phalcon_Mvc_Model_Resultset); ZEPHIR_INIT(Phalcon_Mvc_View_Engine_AbstractEngine); @@ -815,6 +803,7 @@ static PHP_MINIT_FUNCTION(phalcon) ZEPHIR_INIT(Phalcon_Forms_Manager); ZEPHIR_INIT(Phalcon_Helper_Arr); ZEPHIR_INIT(Phalcon_Helper_Exception); + ZEPHIR_INIT(Phalcon_Helper_Fs); ZEPHIR_INIT(Phalcon_Helper_Number); ZEPHIR_INIT(Phalcon_Helper_Str); ZEPHIR_INIT(Phalcon_Html_Attributes); @@ -883,12 +872,6 @@ static PHP_MINIT_FUNCTION(phalcon) ZEPHIR_INIT(Phalcon_Messages_Messages); ZEPHIR_INIT(Phalcon_Mvc_Application); ZEPHIR_INIT(Phalcon_Mvc_Application_Exception); - ZEPHIR_INIT(Phalcon_Mvc_Collection); - ZEPHIR_INIT(Phalcon_Mvc_Collection_Behavior_SoftDelete); - ZEPHIR_INIT(Phalcon_Mvc_Collection_Behavior_Timestampable); - ZEPHIR_INIT(Phalcon_Mvc_Collection_Document); - ZEPHIR_INIT(Phalcon_Mvc_Collection_Exception); - ZEPHIR_INIT(Phalcon_Mvc_Collection_Manager); ZEPHIR_INIT(Phalcon_Mvc_Controller); ZEPHIR_INIT(Phalcon_Mvc_Dispatcher); ZEPHIR_INIT(Phalcon_Mvc_Dispatcher_Exception); @@ -937,7 +920,6 @@ static PHP_MINIT_FUNCTION(phalcon) ZEPHIR_INIT(Phalcon_Paginator_Exception); ZEPHIR_INIT(Phalcon_Paginator_PaginatorFactory); ZEPHIR_INIT(Phalcon_Paginator_Repository); - ZEPHIR_INIT(Phalcon_Plugin); ZEPHIR_INIT(Phalcon_Registry); ZEPHIR_INIT(Phalcon_Security); ZEPHIR_INIT(Phalcon_Security_Exception); diff --git a/ext/phalcon.h b/ext/phalcon.h index 4341ec838c9..49495d4c156 100644 --- a/ext/phalcon.h +++ b/ext/phalcon.h @@ -9,6 +9,7 @@ #include "phalcon/events/eventsawareinterface.zep.h" #include "phalcon/validation/validatorinterface.zep.h" #include "phalcon/validation/abstractvalidator.zep.h" +#include "phalcon/di/abstractinjectionaware.zep.h" #include "phalcon/storage/adapter/adapterinterface.zep.h" #include "phalcon/di/injectable.zep.h" #include "phalcon/factory/abstractfactory.zep.h" @@ -35,7 +36,6 @@ #include "phalcon/http/message/abstractmessage.zep.h" #include "phalcon/logger/adapter/adapterinterface.zep.h" #include "phalcon/logger/formatter/formatterinterface.zep.h" -#include "phalcon/mvc/entityinterface.zep.h" #include "phalcon/mvc/model/resultsetinterface.zep.h" #include "phalcon/paginator/adapter/adapterinterface.zep.h" #include "phalcon/translate/adapter/adapterinterface.zep.h" @@ -50,7 +50,6 @@ #include "phalcon/image/adapter/adapterinterface.zep.h" #include "phalcon/logger/adapter/abstractadapter.zep.h" #include "phalcon/logger/formatter/abstractformatter.zep.h" -#include "phalcon/mvc/collection/behaviorinterface.zep.h" #include "phalcon/mvc/model/behaviorinterface.zep.h" #include "phalcon/mvc/model/exception.zep.h" #include "phalcon/mvc/view/engine/engineinterface.zep.h" @@ -71,7 +70,7 @@ #include "phalcon/flash/abstractflash.zep.h" #include "phalcon/http/message/abstractrequest.zep.h" #include "phalcon/image/adapter/abstractadapter.zep.h" -#include "phalcon/mvc/collection/behavior.zep.h" +#include "phalcon/mvc/entityinterface.zep.h" #include "phalcon/mvc/model/behavior.zep.h" #include "phalcon/mvc/model/metadata/strategyinterface.zep.h" #include "phalcon/mvc/model/resultinterface.zep.h" @@ -110,7 +109,6 @@ #include "phalcon/http/response/headersinterface.zep.h" #include "phalcon/http/responseinterface.zep.h" #include "phalcon/messages/messageinterface.zep.h" -#include "phalcon/mvc/collectioninterface.zep.h" #include "phalcon/mvc/controllerinterface.zep.h" #include "phalcon/mvc/dispatcherinterface.zep.h" #include "phalcon/mvc/micro/collectioninterface.zep.h" @@ -281,6 +279,7 @@ #include "phalcon/forms/manager.zep.h" #include "phalcon/helper/arr.zep.h" #include "phalcon/helper/exception.zep.h" +#include "phalcon/helper/fs.zep.h" #include "phalcon/helper/number.zep.h" #include "phalcon/helper/str.zep.h" #include "phalcon/html/attributes.zep.h" @@ -349,13 +348,6 @@ #include "phalcon/messages/messages.zep.h" #include "phalcon/mvc/application.zep.h" #include "phalcon/mvc/application/exception.zep.h" -#include "phalcon/mvc/collection.zep.h" -#include "phalcon/mvc/collection/behavior/softdelete.zep.h" -#include "phalcon/mvc/collection/behavior/timestampable.zep.h" -#include "phalcon/mvc/collection/document.zep.h" -#include "phalcon/mvc/collection/exception.zep.h" -#include "phalcon/mvc/collection/manager.zep.h" -#include "phalcon/mvc/collection/managerinterface.zep.h" #include "phalcon/mvc/controller.zep.h" #include "phalcon/mvc/controller/bindmodelinterface.zep.h" #include "phalcon/mvc/dispatcher.zep.h" @@ -408,7 +400,6 @@ #include "phalcon/paginator/exception.zep.h" #include "phalcon/paginator/paginatorfactory.zep.h" #include "phalcon/paginator/repository.zep.h" -#include "phalcon/plugin.zep.h" #include "phalcon/registry.zep.h" #include "phalcon/security.zep.h" #include "phalcon/security/exception.zep.h" diff --git a/ext/phalcon/assets/manager.zep.c b/ext/phalcon/assets/manager.zep.c index 6681b926dc9..2f7f15087ae 100644 --- a/ext/phalcon/assets/manager.zep.c +++ b/ext/phalcon/assets/manager.zep.c @@ -38,15 +38,10 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Assets_Manager) { - ZEPHIR_REGISTER_CLASS(Phalcon\\Assets, Manager, phalcon, assets_manager, phalcon_assets_manager_method_entry, 0); + ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Assets, Manager, phalcon, assets_manager, phalcon_di_abstractinjectionaware_ce, phalcon_assets_manager_method_entry, 0); zend_declare_property_null(phalcon_assets_manager_ce, SL("collections"), ZEND_ACC_PROTECTED TSRMLS_CC); - /** - * @var DiInterface - */ - zend_declare_property_null(phalcon_assets_manager_ce, SL("container"), ZEND_ACC_PROTECTED TSRMLS_CC); - /** * Options configure * @var array @@ -58,7 +53,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Assets_Manager) { */ zend_declare_property_bool(phalcon_assets_manager_ce, SL("implicitOutput"), 1, ZEND_ACC_PROTECTED TSRMLS_CC); - zend_class_implements(phalcon_assets_manager_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); return SUCCESS; } @@ -579,7 +573,7 @@ PHP_METHOD(Phalcon_Assets_Manager, collectionAssetsByType) { ZEPHIR_INIT_VAR(&filtered); array_init(&filtered); - zephir_is_iterable(&assets, 0, "phalcon/Assets/Manager.zep", 244); + zephir_is_iterable(&assets, 0, "phalcon/Assets/Manager.zep", 239); if (Z_TYPE_P(&assets) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&assets), _0) { @@ -588,7 +582,7 @@ PHP_METHOD(Phalcon_Assets_Manager, collectionAssetsByType) { ZEPHIR_CALL_METHOD(&_2$$3, &asset, "gettype", NULL, 0); zephir_check_call_status(); if (ZEPHIR_IS_EQUAL(&_2$$3, &type)) { - zephir_array_append(&filtered, &asset, PH_SEPARATE, "phalcon/Assets/Manager.zep", 240); + zephir_array_append(&filtered, &asset, PH_SEPARATE, "phalcon/Assets/Manager.zep", 235); } } ZEND_HASH_FOREACH_END(); } else { @@ -605,7 +599,7 @@ PHP_METHOD(Phalcon_Assets_Manager, collectionAssetsByType) { ZEPHIR_CALL_METHOD(&_3$$5, &asset, "gettype", NULL, 0); zephir_check_call_status(); if (ZEPHIR_IS_EQUAL(&_3$$5, &type)) { - zephir_array_append(&filtered, &asset, PH_SEPARATE, "phalcon/Assets/Manager.zep", 240); + zephir_array_append(&filtered, &asset, PH_SEPARATE, "phalcon/Assets/Manager.zep", 235); } ZEPHIR_CALL_METHOD(NULL, &assets, "next", NULL, 0); zephir_check_call_status(); @@ -692,7 +686,7 @@ PHP_METHOD(Phalcon_Assets_Manager, get) { ZEPHIR_OBS_VAR(&collection); zephir_read_property(&_0, this_ptr, SL("collections"), PH_NOISY_CC | PH_READONLY); if (UNEXPECTED(!(zephir_array_isset_fetch(&collection, &_0, &id, 0 TSRMLS_CC)))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "The collection does not exist in the manager", "phalcon/Assets/Manager.zep", 274); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "The collection does not exist in the manager", "phalcon/Assets/Manager.zep", 269); return; } RETURN_CCTOR(&collection); @@ -737,18 +731,6 @@ PHP_METHOD(Phalcon_Assets_Manager, getCss) { } -/** - * Returns the internal dependency injector - */ -PHP_METHOD(Phalcon_Assets_Manager, getDI) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "container"); - -} - /** * Returns the CSS collection of assets */ @@ -955,7 +937,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_CONCAT_SVS(&_3$$10, "Path '", &completeTargetPath, "' is not a valid target path (1)"); ZEPHIR_CALL_METHOD(NULL, &_2$$10, "__construct", NULL, 5, &_3$$10); zephir_check_call_status(); - zephir_throw_exception_debug(&_2$$10, "phalcon/Assets/Manager.zep", 445 TSRMLS_CC); + zephir_throw_exception_debug(&_2$$10, "phalcon/Assets/Manager.zep", 432 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -968,13 +950,13 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_CONCAT_SVS(&_6$$11, "Path '", &completeTargetPath, "' is not a valid target path (2), is dir."); ZEPHIR_CALL_METHOD(NULL, &_5$$11, "__construct", NULL, 5, &_6$$11); zephir_check_call_status(); - zephir_throw_exception_debug(&_5$$11, "phalcon/Assets/Manager.zep", 451 TSRMLS_CC); + zephir_throw_exception_debug(&_5$$11, "phalcon/Assets/Manager.zep", 438 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } } } - zephir_is_iterable(&assets, 0, "phalcon/Assets/Manager.zep", 709); + zephir_is_iterable(&assets, 0, "phalcon/Assets/Manager.zep", 696); if (Z_TYPE_P(&assets) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&assets), _7) { @@ -998,7 +980,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_CONCAT_SVS(&_10$$15, "Asset '", &sourcePath, "' does not have a valid source path"); ZEPHIR_CALL_METHOD(NULL, &_9$$15, "__construct", NULL, 5, &_10$$15); zephir_check_call_status(); - zephir_throw_exception_debug(&_9$$15, "phalcon/Assets/Manager.zep", 489 TSRMLS_CC); + zephir_throw_exception_debug(&_9$$15, "phalcon/Assets/Manager.zep", 476 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1016,7 +998,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_CONCAT_SVS(&_12$$17, "Asset '", &sourcePath, "' does not have a valid target path"); ZEPHIR_CALL_METHOD(NULL, &_11$$17, "__construct", NULL, 5, &_12$$17); zephir_check_call_status(); - zephir_throw_exception_debug(&_11$$17, "phalcon/Assets/Manager.zep", 515 TSRMLS_CC); + zephir_throw_exception_debug(&_11$$17, "phalcon/Assets/Manager.zep", 502 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1028,7 +1010,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_CONCAT_SVS(&_14$$19, "Asset '", &targetPath, "' have the same source and target paths"); ZEPHIR_CALL_METHOD(NULL, &_13$$19, "__construct", NULL, 5, &_14$$19); zephir_check_call_status(); - zephir_throw_exception_debug(&_13$$19, "phalcon/Assets/Manager.zep", 525 TSRMLS_CC); + zephir_throw_exception_debug(&_13$$19, "phalcon/Assets/Manager.zep", 512 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1098,7 +1080,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { zephir_array_fast_append(&_27$$28, &prefixedPath); ZEPHIR_CPY_WRT(¶meters, &_27$$28); } - zephir_array_append(¶meters, &local, PH_SEPARATE, "phalcon/Assets/Manager.zep", 571); + zephir_array_append(¶meters, &local, PH_SEPARATE, "phalcon/Assets/Manager.zep", 558); ZEPHIR_INIT_NVAR(&html); ZEPHIR_CALL_USER_FUNC_ARRAY(&html, callback, ¶meters); zephir_check_call_status(); @@ -1115,14 +1097,14 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_CALL_METHOD(&mustFilter, &asset, "getfilter", NULL, 0); zephir_check_call_status(); if (ZEPHIR_IS_TRUE(&mustFilter)) { - zephir_is_iterable(&filters, 0, "phalcon/Assets/Manager.zep", 624); + zephir_is_iterable(&filters, 0, "phalcon/Assets/Manager.zep", 611); if (Z_TYPE_P(&filters) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&filters), _28$$32) { ZEPHIR_INIT_NVAR(&filter); ZVAL_COPY(&filter, _28$$32); if (UNEXPECTED(Z_TYPE_P(&filter) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 610); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 597); return; } ZEPHIR_CALL_METHOD(&filteredContent, &filter, "filter", NULL, 0, &content); @@ -1141,7 +1123,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_CALL_METHOD(&filter, &filters, "current", NULL, 0); zephir_check_call_status(); if (UNEXPECTED(Z_TYPE_P(&filter) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 610); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 597); return; } ZEPHIR_CALL_METHOD(&filteredContent, &filter, "filter", NULL, 0, &content); @@ -1230,7 +1212,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { zephir_array_fast_append(&_39$$49, &prefixedPath); ZEPHIR_CPY_WRT(¶meters, &_39$$49); } - zephir_array_append(¶meters, &local, PH_SEPARATE, "phalcon/Assets/Manager.zep", 691); + zephir_array_append(¶meters, &local, PH_SEPARATE, "phalcon/Assets/Manager.zep", 678); ZEPHIR_INIT_NVAR(&html); ZEPHIR_CALL_USER_FUNC_ARRAY(&html, callback, ¶meters); zephir_check_call_status(); @@ -1270,7 +1252,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_CONCAT_SVS(&_41$$55, "Asset '", &sourcePath, "' does not have a valid source path"); ZEPHIR_CALL_METHOD(NULL, &_40$$55, "__construct", NULL, 5, &_41$$55); zephir_check_call_status(); - zephir_throw_exception_debug(&_40$$55, "phalcon/Assets/Manager.zep", 489 TSRMLS_CC); + zephir_throw_exception_debug(&_40$$55, "phalcon/Assets/Manager.zep", 476 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1288,7 +1270,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_CONCAT_SVS(&_43$$57, "Asset '", &sourcePath, "' does not have a valid target path"); ZEPHIR_CALL_METHOD(NULL, &_42$$57, "__construct", NULL, 5, &_43$$57); zephir_check_call_status(); - zephir_throw_exception_debug(&_42$$57, "phalcon/Assets/Manager.zep", 515 TSRMLS_CC); + zephir_throw_exception_debug(&_42$$57, "phalcon/Assets/Manager.zep", 502 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1300,7 +1282,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_CONCAT_SVS(&_45$$59, "Asset '", &targetPath, "' have the same source and target paths"); ZEPHIR_CALL_METHOD(NULL, &_44$$59, "__construct", NULL, 5, &_45$$59); zephir_check_call_status(); - zephir_throw_exception_debug(&_44$$59, "phalcon/Assets/Manager.zep", 525 TSRMLS_CC); + zephir_throw_exception_debug(&_44$$59, "phalcon/Assets/Manager.zep", 512 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1369,7 +1351,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { zephir_array_fast_append(&_55$$68, &prefixedPath); ZEPHIR_CPY_WRT(¶meters, &_55$$68); } - zephir_array_append(¶meters, &local, PH_SEPARATE, "phalcon/Assets/Manager.zep", 571); + zephir_array_append(¶meters, &local, PH_SEPARATE, "phalcon/Assets/Manager.zep", 558); ZEPHIR_INIT_NVAR(&html); ZEPHIR_CALL_USER_FUNC_ARRAY(&html, callback, ¶meters); zephir_check_call_status(); @@ -1386,14 +1368,14 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_CALL_METHOD(&mustFilter, &asset, "getfilter", NULL, 0); zephir_check_call_status(); if (ZEPHIR_IS_TRUE(&mustFilter)) { - zephir_is_iterable(&filters, 0, "phalcon/Assets/Manager.zep", 624); + zephir_is_iterable(&filters, 0, "phalcon/Assets/Manager.zep", 611); if (Z_TYPE_P(&filters) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&filters), _56$$72) { ZEPHIR_INIT_NVAR(&filter); ZVAL_COPY(&filter, _56$$72); if (UNEXPECTED(Z_TYPE_P(&filter) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 610); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 597); return; } ZEPHIR_CALL_METHOD(&filteredContent, &filter, "filter", NULL, 0, &content); @@ -1412,7 +1394,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { ZEPHIR_CALL_METHOD(&filter, &filters, "current", NULL, 0); zephir_check_call_status(); if (UNEXPECTED(Z_TYPE_P(&filter) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 610); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 597); return; } ZEPHIR_CALL_METHOD(&filteredContent, &filter, "filter", NULL, 0, &content); @@ -1501,7 +1483,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { zephir_array_fast_append(&_67$$89, &prefixedPath); ZEPHIR_CPY_WRT(¶meters, &_67$$89); } - zephir_array_append(¶meters, &local, PH_SEPARATE, "phalcon/Assets/Manager.zep", 691); + zephir_array_append(¶meters, &local, PH_SEPARATE, "phalcon/Assets/Manager.zep", 678); ZEPHIR_INIT_NVAR(&html); ZEPHIR_CALL_USER_FUNC_ARRAY(&html, callback, ¶meters); zephir_check_call_status(); @@ -1564,7 +1546,7 @@ PHP_METHOD(Phalcon_Assets_Manager, output) { zephir_array_fast_append(&_72$$97, &prefixedPath); ZEPHIR_CPY_WRT(¶meters, &_72$$97); } - zephir_array_append(¶meters, &local, PH_SEPARATE, "phalcon/Assets/Manager.zep", 753); + zephir_array_append(¶meters, &local, PH_SEPARATE, "phalcon/Assets/Manager.zep", 740); ZEPHIR_INIT_NVAR(&html); ZEPHIR_CALL_USER_FUNC_ARRAY(&html, callback, ¶meters); zephir_check_call_status(); @@ -1728,7 +1710,7 @@ PHP_METHOD(Phalcon_Assets_Manager, outputInline) { ZEPHIR_CALL_METHOD(&join, collection, "getjoin", NULL, 0); zephir_check_call_status(); if (zephir_fast_count_int(&codes TSRMLS_CC)) { - zephir_is_iterable(&codes, 0, "phalcon/Assets/Manager.zep", 845); + zephir_is_iterable(&codes, 0, "phalcon/Assets/Manager.zep", 832); if (Z_TYPE_P(&codes) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&codes), _0$$3) { @@ -1738,14 +1720,14 @@ PHP_METHOD(Phalcon_Assets_Manager, outputInline) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&content, &code, "getcontent", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&filters, 0, "phalcon/Assets/Manager.zep", 836); + zephir_is_iterable(&filters, 0, "phalcon/Assets/Manager.zep", 823); if (Z_TYPE_P(&filters) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&filters), _2$$4) { ZEPHIR_INIT_NVAR(&filter); ZVAL_COPY(&filter, _2$$4); if (UNEXPECTED(Z_TYPE_P(&filter) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 826); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 813); return; } ZEPHIR_CALL_METHOD(&_4$$5, &filter, "filter", NULL, 0, &content); @@ -1764,7 +1746,7 @@ PHP_METHOD(Phalcon_Assets_Manager, outputInline) { ZEPHIR_CALL_METHOD(&filter, &filters, "current", NULL, 0); zephir_check_call_status(); if (UNEXPECTED(Z_TYPE_P(&filter) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 826); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 813); return; } ZEPHIR_CALL_METHOD(&_5$$7, &filter, "filter", NULL, 0, &content); @@ -1805,14 +1787,14 @@ PHP_METHOD(Phalcon_Assets_Manager, outputInline) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&content, &code, "getcontent", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&filters, 0, "phalcon/Assets/Manager.zep", 836); + zephir_is_iterable(&filters, 0, "phalcon/Assets/Manager.zep", 823); if (Z_TYPE_P(&filters) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&filters), _13$$11) { ZEPHIR_INIT_NVAR(&filter); ZVAL_COPY(&filter, _13$$11); if (UNEXPECTED(Z_TYPE_P(&filter) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 826); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 813); return; } ZEPHIR_CALL_METHOD(&_15$$12, &filter, "filter", NULL, 0, &content); @@ -1831,7 +1813,7 @@ PHP_METHOD(Phalcon_Assets_Manager, outputInline) { ZEPHIR_CALL_METHOD(&filter, &filters, "current", NULL, 0); zephir_check_call_status(); if (UNEXPECTED(Z_TYPE_P(&filter) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 826); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_assets_exception_ce, "Filter is invalid", "phalcon/Assets/Manager.zep", 813); return; } ZEPHIR_CALL_METHOD(&_16$$14, &filter, "filter", NULL, 0, &content); @@ -2084,24 +2066,6 @@ PHP_METHOD(Phalcon_Assets_Manager, set) { } -/** - * Sets the dependency injector - */ -PHP_METHOD(Phalcon_Assets_Manager, setDI) { - - zval *container, container_sub; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&container_sub); - - zephir_fetch_params_without_memory_grow(1, 0, &container); - - - - zephir_update_property_zval(this_ptr, SL("container"), container); - -} - /** * Sets the manager options */ diff --git a/ext/phalcon/assets/manager.zep.h b/ext/phalcon/assets/manager.zep.h index 0de4836bed8..0ccb7942c27 100644 --- a/ext/phalcon/assets/manager.zep.h +++ b/ext/phalcon/assets/manager.zep.h @@ -18,7 +18,6 @@ PHP_METHOD(Phalcon_Assets_Manager, exists); PHP_METHOD(Phalcon_Assets_Manager, get); PHP_METHOD(Phalcon_Assets_Manager, getCollections); PHP_METHOD(Phalcon_Assets_Manager, getCss); -PHP_METHOD(Phalcon_Assets_Manager, getDI); PHP_METHOD(Phalcon_Assets_Manager, getJs); PHP_METHOD(Phalcon_Assets_Manager, getOptions); PHP_METHOD(Phalcon_Assets_Manager, output); @@ -28,7 +27,6 @@ PHP_METHOD(Phalcon_Assets_Manager, outputInlineCss); PHP_METHOD(Phalcon_Assets_Manager, outputInlineJs); PHP_METHOD(Phalcon_Assets_Manager, outputJs); PHP_METHOD(Phalcon_Assets_Manager, set); -PHP_METHOD(Phalcon_Assets_Manager, setDI); PHP_METHOD(Phalcon_Assets_Manager, setOptions); PHP_METHOD(Phalcon_Assets_Manager, useImplicitOutput); PHP_METHOD(Phalcon_Assets_Manager, getPrefixedPath); @@ -228,13 +226,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_assets_manager_getcss, 0 #endif ZEND_END_ARG_INFO() -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_assets_manager_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_assets_manager_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) -#endif -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_assets_manager_getjs, 0, 0, Phalcon\\Assets\\Collection, 0) #else @@ -329,10 +320,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_assets_manager_set, 0, 2 ZEND_ARG_OBJ_INFO(0, collection, Phalcon\\Assets\\Collection, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_assets_manager_setdi, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_assets_manager_setoptions, 0, 1, Phalcon\\Assets\\Manager, 0) #else @@ -382,7 +369,6 @@ ZEPHIR_INIT_FUNCS(phalcon_assets_manager_method_entry) { PHP_ME(Phalcon_Assets_Manager, get, arginfo_phalcon_assets_manager_get, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Assets_Manager, getCollections, arginfo_phalcon_assets_manager_getcollections, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Assets_Manager, getCss, arginfo_phalcon_assets_manager_getcss, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Assets_Manager, getDI, arginfo_phalcon_assets_manager_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Assets_Manager, getJs, arginfo_phalcon_assets_manager_getjs, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Assets_Manager, getOptions, arginfo_phalcon_assets_manager_getoptions, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Assets_Manager, output, arginfo_phalcon_assets_manager_output, ZEND_ACC_PUBLIC) @@ -392,7 +378,6 @@ ZEPHIR_INIT_FUNCS(phalcon_assets_manager_method_entry) { PHP_ME(Phalcon_Assets_Manager, outputInlineJs, arginfo_phalcon_assets_manager_outputinlinejs, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Assets_Manager, outputJs, arginfo_phalcon_assets_manager_outputjs, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Assets_Manager, set, arginfo_phalcon_assets_manager_set, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Assets_Manager, setDI, arginfo_phalcon_assets_manager_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Assets_Manager, setOptions, arginfo_phalcon_assets_manager_setoptions, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Assets_Manager, useImplicitOutput, arginfo_phalcon_assets_manager_useimplicitoutput, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Assets_Manager, getPrefixedPath, arginfo_phalcon_assets_manager_getprefixedpath, ZEND_ACC_PRIVATE) diff --git a/ext/phalcon/cli/router.zep.c b/ext/phalcon/cli/router.zep.c index 39fede73bd6..c70d10d8a08 100644 --- a/ext/phalcon/cli/router.zep.c +++ b/ext/phalcon/cli/router.zep.c @@ -52,12 +52,10 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Cli_Router) { - ZEPHIR_REGISTER_CLASS(Phalcon\\Cli, Router, phalcon, cli_router, phalcon_cli_router_method_entry, 0); + ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Cli, Router, phalcon, cli_router, phalcon_di_abstractinjectionaware_ce, phalcon_cli_router_method_entry, 0); zend_declare_property_null(phalcon_cli_router_ce, SL("action"), ZEND_ACC_PROTECTED TSRMLS_CC); - zend_declare_property_null(phalcon_cli_router_ce, SL("container"), ZEND_ACC_PROTECTED TSRMLS_CC); - zend_declare_property_null(phalcon_cli_router_ce, SL("defaultAction"), ZEND_ACC_PROTECTED TSRMLS_CC); zend_declare_property_null(phalcon_cli_router_ce, SL("defaultModule"), ZEND_ACC_PROTECTED TSRMLS_CC); @@ -87,8 +85,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Cli_Router) { zend_declare_property_bool(phalcon_cli_router_ce, SL("wasMatched"), 0, ZEND_ACC_PROTECTED TSRMLS_CC); phalcon_cli_router_ce->create_object = zephir_init_properties_Phalcon_Cli_Router; - - zend_class_implements(phalcon_cli_router_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); return SUCCESS; } @@ -134,7 +130,7 @@ PHP_METHOD(Phalcon_Cli_Router, __construct) { ZVAL_STRING(&_2$$3, "#^(?::delimiter)?([a-zA-Z0-9\\_\\-]+)[:delimiter]{0,1}$#"); ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 161, &_2$$3, &_1$$3); zephir_check_call_status(); - zephir_array_append(&routes, &_0$$3, PH_SEPARATE, "phalcon/Cli/Router.zep", 90); + zephir_array_append(&routes, &_0$$3, PH_SEPARATE, "phalcon/Cli/Router.zep", 88); ZEPHIR_INIT_NVAR(&_2$$3); object_init_ex(&_2$$3, phalcon_cli_router_route_ce); ZEPHIR_INIT_VAR(&_3$$3); @@ -146,7 +142,7 @@ PHP_METHOD(Phalcon_Cli_Router, __construct) { ZVAL_STRING(&_4$$3, "#^(?::delimiter)?([a-zA-Z0-9\\_\\-]+):delimiter([a-zA-Z0-9\\.\\_]+)(:delimiter.*)*$#"); ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 161, &_4$$3, &_3$$3); zephir_check_call_status(); - zephir_array_append(&routes, &_2$$3, PH_SEPARATE, "phalcon/Cli/Router.zep", 99); + zephir_array_append(&routes, &_2$$3, PH_SEPARATE, "phalcon/Cli/Router.zep", 97); } zephir_update_property_zval(this_ptr, SL("routes"), &routes); ZEPHIR_MM_RESTORE(); @@ -215,18 +211,6 @@ PHP_METHOD(Phalcon_Cli_Router, getActionName) { } -/** - * Returns the internal dependency injector - */ -PHP_METHOD(Phalcon_Cli_Router, getDI) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "container"); - -} - /** * Returns the route that matches the handled URI */ @@ -300,7 +284,7 @@ PHP_METHOD(Phalcon_Cli_Router, getRouteById) { zephir_read_property(&_0, this_ptr, SL("routes"), PH_NOISY_CC | PH_READONLY); - zephir_is_iterable(&_0, 0, "phalcon/Cli/Router.zep", 187); + zephir_is_iterable(&_0, 0, "phalcon/Cli/Router.zep", 177); if (Z_TYPE_P(&_0) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_0), _1) { @@ -371,7 +355,7 @@ PHP_METHOD(Phalcon_Cli_Router, getRouteByName) { zephir_read_property(&_0, this_ptr, SL("routes"), PH_NOISY_CC | PH_READONLY); - zephir_is_iterable(&_0, 0, "phalcon/Cli/Router.zep", 203); + zephir_is_iterable(&_0, 0, "phalcon/Cli/Router.zep", 193); if (Z_TYPE_P(&_0) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_0), _1) { @@ -531,11 +515,11 @@ PHP_METHOD(Phalcon_Cli_Router, handle) { _0$$3 = Z_TYPE_P(arguments) != IS_NULL; } if (UNEXPECTED(_0$$3)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cli_router_exception_ce, "Arguments must be an array or string", "phalcon/Cli/Router.zep", 242); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cli_router_exception_ce, "Arguments must be an array or string", "phalcon/Cli/Router.zep", 232); return; } zephir_read_property(&_1$$3, this_ptr, SL("routes"), PH_NOISY_CC | PH_READONLY); - zephir_is_iterable(&_1$$3, 0, "phalcon/Cli/Router.zep", 348); + zephir_is_iterable(&_1$$3, 0, "phalcon/Cli/Router.zep", 338); if (Z_TYPE_P(&_1$$3) == IS_ARRAY) { ZEND_HASH_REVERSE_FOREACH_VAL(Z_ARRVAL_P(&_1$$3), _2$$3) { @@ -543,7 +527,7 @@ PHP_METHOD(Phalcon_Cli_Router, handle) { ZVAL_COPY(&route, _2$$3); ZEPHIR_CALL_METHOD(&pattern, &route, "getcompiledpattern", NULL, 0); zephir_check_call_status(); - if (zephir_memnstr_str(&pattern, SL("^"), "phalcon/Cli/Router.zep", 251)) { + if (zephir_memnstr_str(&pattern, SL("^"), "phalcon/Cli/Router.zep", 241)) { ZEPHIR_INIT_NVAR(&routeFound); zephir_preg_match(&routeFound, &pattern, arguments, &matches, 0, 0 , 0 TSRMLS_CC); } else { @@ -555,7 +539,7 @@ PHP_METHOD(Phalcon_Cli_Router, handle) { zephir_check_call_status(); if (Z_TYPE_P(&beforeMatch) != IS_NULL) { if (UNEXPECTED(!(zephir_is_callable(&beforeMatch TSRMLS_CC)))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cli_router_exception_ce, "Before-Match callback is not callable in matched route", "phalcon/Cli/Router.zep", 270); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cli_router_exception_ce, "Before-Match callback is not callable in matched route", "phalcon/Cli/Router.zep", 260); return; } ZEPHIR_INIT_NVAR(&_4$$9); @@ -575,7 +559,7 @@ PHP_METHOD(Phalcon_Cli_Router, handle) { if (Z_TYPE_P(&matches) == IS_ARRAY) { ZEPHIR_CALL_METHOD(&converters, &route, "getconverters", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&paths, 0, "phalcon/Cli/Router.zep", 335); + zephir_is_iterable(&paths, 0, "phalcon/Cli/Router.zep", 325); if (Z_TYPE_P(&paths) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&paths), _7$$12, _8$$12, _5$$12) { @@ -678,7 +662,7 @@ PHP_METHOD(Phalcon_Cli_Router, handle) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&pattern, &route, "getcompiledpattern", NULL, 0); zephir_check_call_status(); - if (zephir_memnstr_str(&pattern, SL("^"), "phalcon/Cli/Router.zep", 251)) { + if (zephir_memnstr_str(&pattern, SL("^"), "phalcon/Cli/Router.zep", 241)) { ZEPHIR_INIT_NVAR(&routeFound); zephir_preg_match(&routeFound, &pattern, arguments, &matches, 0, 0 , 0 TSRMLS_CC); } else { @@ -690,7 +674,7 @@ PHP_METHOD(Phalcon_Cli_Router, handle) { zephir_check_call_status(); if (Z_TYPE_P(&beforeMatch) != IS_NULL) { if (UNEXPECTED(!(zephir_is_callable(&beforeMatch TSRMLS_CC)))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cli_router_exception_ce, "Before-Match callback is not callable in matched route", "phalcon/Cli/Router.zep", 270); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cli_router_exception_ce, "Before-Match callback is not callable in matched route", "phalcon/Cli/Router.zep", 260); return; } ZEPHIR_INIT_NVAR(&_17$$29); @@ -710,7 +694,7 @@ PHP_METHOD(Phalcon_Cli_Router, handle) { if (Z_TYPE_P(&matches) == IS_ARRAY) { ZEPHIR_CALL_METHOD(&converters, &route, "getconverters", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&paths, 0, "phalcon/Cli/Router.zep", 335); + zephir_is_iterable(&paths, 0, "phalcon/Cli/Router.zep", 325); if (Z_TYPE_P(&paths) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&paths), _20$$32, _21$$32, _18$$32) { @@ -1008,24 +992,6 @@ PHP_METHOD(Phalcon_Cli_Router, setDefaultTask) { } -/** - * Sets the dependency injector - */ -PHP_METHOD(Phalcon_Cli_Router, setDI) { - - zval *container, container_sub; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&container_sub); - - zephir_fetch_params_without_memory_grow(1, 0, &container); - - - - zephir_update_property_zval(this_ptr, SL("container"), container); - -} - /** * Checks if the router matches any of the defined routes */ diff --git a/ext/phalcon/cli/router.zep.h b/ext/phalcon/cli/router.zep.h index d87011c836f..d3ad257643c 100644 --- a/ext/phalcon/cli/router.zep.h +++ b/ext/phalcon/cli/router.zep.h @@ -6,7 +6,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Cli_Router); PHP_METHOD(Phalcon_Cli_Router, __construct); PHP_METHOD(Phalcon_Cli_Router, add); PHP_METHOD(Phalcon_Cli_Router, getActionName); -PHP_METHOD(Phalcon_Cli_Router, getDI); PHP_METHOD(Phalcon_Cli_Router, getMatchedRoute); PHP_METHOD(Phalcon_Cli_Router, getMatches); PHP_METHOD(Phalcon_Cli_Router, getModuleName); @@ -20,7 +19,6 @@ PHP_METHOD(Phalcon_Cli_Router, setDefaultAction); PHP_METHOD(Phalcon_Cli_Router, setDefaultModule); PHP_METHOD(Phalcon_Cli_Router, setDefaults); PHP_METHOD(Phalcon_Cli_Router, setDefaultTask); -PHP_METHOD(Phalcon_Cli_Router, setDI); PHP_METHOD(Phalcon_Cli_Router, wasMatched); zend_object *zephir_init_properties_Phalcon_Cli_Router(zend_class_entry *class_type TSRMLS_DC); @@ -52,13 +50,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_cli_router_getactionname #endif ZEND_END_ARG_INFO() -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_cli_router_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_cli_router_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) -#endif -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_cli_router_getmatchedroute, 0, 0, Phalcon\\Cli\\RouteInterface, 0) #else @@ -149,10 +140,6 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_cli_router_setdefaulttask, 0, 0, 1) #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_cli_router_setdi, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_cli_router_wasmatched, 0, 0, _IS_BOOL, 0) #else @@ -164,7 +151,6 @@ ZEPHIR_INIT_FUNCS(phalcon_cli_router_method_entry) { PHP_ME(Phalcon_Cli_Router, __construct, arginfo_phalcon_cli_router___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) PHP_ME(Phalcon_Cli_Router, add, arginfo_phalcon_cli_router_add, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Cli_Router, getActionName, arginfo_phalcon_cli_router_getactionname, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Cli_Router, getDI, arginfo_phalcon_cli_router_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Cli_Router, getMatchedRoute, arginfo_phalcon_cli_router_getmatchedroute, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Cli_Router, getMatches, arginfo_phalcon_cli_router_getmatches, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Cli_Router, getModuleName, arginfo_phalcon_cli_router_getmodulename, ZEND_ACC_PUBLIC) @@ -178,7 +164,6 @@ ZEPHIR_INIT_FUNCS(phalcon_cli_router_method_entry) { PHP_ME(Phalcon_Cli_Router, setDefaultModule, arginfo_phalcon_cli_router_setdefaultmodule, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Cli_Router, setDefaults, arginfo_phalcon_cli_router_setdefaults, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Cli_Router, setDefaultTask, arginfo_phalcon_cli_router_setdefaulttask, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Cli_Router, setDI, arginfo_phalcon_cli_router_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Cli_Router, wasMatched, arginfo_phalcon_cli_router_wasmatched, ZEND_ACC_PUBLIC) PHP_FE_END }; diff --git a/ext/phalcon/di/abstractinjectionaware.zep.c b/ext/phalcon/di/abstractinjectionaware.zep.c new file mode 100644 index 00000000000..1d6b68f777a --- /dev/null +++ b/ext/phalcon/di/abstractinjectionaware.zep.c @@ -0,0 +1,75 @@ + +#ifdef HAVE_CONFIG_H +#include "../../ext_config.h" +#endif + +#include +#include "../../php_ext.h" +#include "../../ext.h" + +#include +#include +#include + +#include "kernel/main.h" +#include "kernel/object.h" +#include "kernel/memory.h" + + +/** + * This file is part of the Phalcon Framework. + * + * (c) Phalcon Team + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ +/** + * This abstract class offers common access to the DI in a class + */ +ZEPHIR_INIT_CLASS(Phalcon_Di_AbstractInjectionAware) { + + ZEPHIR_REGISTER_CLASS(Phalcon\\Di, AbstractInjectionAware, phalcon, di_abstractinjectionaware, phalcon_di_abstractinjectionaware_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); + + /** + * Dependency Injector + * + * @var DiInterface + */ + zend_declare_property_null(phalcon_di_abstractinjectionaware_ce, SL("container"), ZEND_ACC_PROTECTED TSRMLS_CC); + + zend_class_implements(phalcon_di_abstractinjectionaware_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); + return SUCCESS; + +} + +/** + * Returns the internal dependency injector + */ +PHP_METHOD(Phalcon_Di_AbstractInjectionAware, getDI) { + + zval *this_ptr = getThis(); + + + RETURN_MEMBER(getThis(), "container"); + +} + +/** + * Sets the dependency injector + */ +PHP_METHOD(Phalcon_Di_AbstractInjectionAware, setDI) { + + zval *container, container_sub; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&container_sub); + + zephir_fetch_params_without_memory_grow(1, 0, &container); + + + + zephir_update_property_zval(this_ptr, SL("container"), container); + +} + diff --git a/ext/phalcon/di/abstractinjectionaware.zep.h b/ext/phalcon/di/abstractinjectionaware.zep.h new file mode 100644 index 00000000000..e3e7d8119ed --- /dev/null +++ b/ext/phalcon/di/abstractinjectionaware.zep.h @@ -0,0 +1,24 @@ + +extern zend_class_entry *phalcon_di_abstractinjectionaware_ce; + +ZEPHIR_INIT_CLASS(Phalcon_Di_AbstractInjectionAware); + +PHP_METHOD(Phalcon_Di_AbstractInjectionAware, getDI); +PHP_METHOD(Phalcon_Di_AbstractInjectionAware, setDI); + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_di_abstractinjectionaware_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_di_abstractinjectionaware_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_di_abstractinjectionaware_setdi, 0, 0, 1) + ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(phalcon_di_abstractinjectionaware_method_entry) { + PHP_ME(Phalcon_Di_AbstractInjectionAware, getDI, arginfo_phalcon_di_abstractinjectionaware_getdi, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Di_AbstractInjectionAware, setDI, arginfo_phalcon_di_abstractinjectionaware_setdi, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/phalcon/dispatcher/abstractdispatcher.zep.c b/ext/phalcon/dispatcher/abstractdispatcher.zep.c index 33f674230da..6312ee61a9d 100644 --- a/ext/phalcon/dispatcher/abstractdispatcher.zep.c +++ b/ext/phalcon/dispatcher/abstractdispatcher.zep.c @@ -38,7 +38,7 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Dispatcher_AbstractDispatcher) { - ZEPHIR_REGISTER_CLASS(Phalcon\\Dispatcher, AbstractDispatcher, phalcon, dispatcher_abstractdispatcher, phalcon_dispatcher_abstractdispatcher_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); + ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Dispatcher, AbstractDispatcher, phalcon, dispatcher_abstractdispatcher, phalcon_di_abstractinjectionaware_ce, phalcon_dispatcher_abstractdispatcher_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); zend_declare_property_null(phalcon_dispatcher_abstractdispatcher_ce, SL("activeHandler"), ZEND_ACC_PROTECTED TSRMLS_CC); @@ -59,8 +59,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Dispatcher_AbstractDispatcher) { */ zend_declare_property_null(phalcon_dispatcher_abstractdispatcher_ce, SL("camelCaseMap"), ZEND_ACC_PROTECTED TSRMLS_CC); - zend_declare_property_null(phalcon_dispatcher_abstractdispatcher_ce, SL("container"), ZEND_ACC_PROTECTED TSRMLS_CC); - /** * @var string */ @@ -128,7 +126,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Dispatcher_AbstractDispatcher) { phalcon_dispatcher_abstractdispatcher_ce->create_object = zephir_init_properties_Phalcon_Dispatcher_AbstractDispatcher; zend_class_implements(phalcon_dispatcher_abstractdispatcher_ce TSRMLS_CC, 1, phalcon_dispatcher_dispatcherinterface_ce); - zend_class_implements(phalcon_dispatcher_abstractdispatcher_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); zend_class_implements(phalcon_dispatcher_abstractdispatcher_ce TSRMLS_CC, 1, phalcon_events_eventsawareinterface_ce); return SUCCESS; @@ -345,7 +342,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, dispatch) { if (ZEPHIR_IS_FALSE_IDENTICAL(&status)) { RETURN_MM_BOOL(0); } - zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 184 TSRMLS_CC); + zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 182 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -419,7 +416,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, dispatch) { if (_23$$15) { continue; } - zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 225 TSRMLS_CC); + zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 223 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -574,7 +571,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, dispatch) { zephir_check_call_status(); continue; } - zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 366 TSRMLS_CC); + zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 364 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -618,7 +615,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, dispatch) { zephir_check_call_status(); continue; } - zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 385 TSRMLS_CC); + zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 383 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -661,7 +658,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, dispatch) { if (_79$$43) { continue; } - zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 427 TSRMLS_CC); + zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 425 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -708,7 +705,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, dispatch) { if (_89$$48) { continue; } - zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 446 TSRMLS_CC); + zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 444 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -780,7 +777,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, dispatch) { if (_105$$59) { continue; } - zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 518 TSRMLS_CC); + zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 516 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -821,7 +818,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, dispatch) { if (_115$$64) { continue; } - zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 534 TSRMLS_CC); + zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 532 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -861,7 +858,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, dispatch) { if (_123$$69) { continue; } - zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 551 TSRMLS_CC); + zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 549 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -895,7 +892,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, dispatch) { if (_130$$73) { continue; } - zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 568 TSRMLS_CC); + zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 566 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -925,7 +922,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, dispatch) { if (ZEPHIR_IS_FALSE_IDENTICAL(&_134$$77)) { RETURN_MM_BOOL(0); } - zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 585 TSRMLS_CC); + zephir_throw_exception_debug(&e, "phalcon/Dispatcher/AbstractDispatcher.zep", 583 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -977,7 +974,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, forward) { zephir_read_property(&_0, this_ptr, SL("isControllerInitialize"), PH_NOISY_CC | PH_READONLY); if (UNEXPECTED(ZEPHIR_IS_TRUE_IDENTICAL(&_0))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_dispatcher_exception_ce, "Forwarding inside a controller's initialize() method is forbidden", "phalcon/Dispatcher/AbstractDispatcher.zep", 619); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_dispatcher_exception_ce, "Forwarding inside a controller's initialize() method is forbidden", "phalcon/Dispatcher/AbstractDispatcher.zep", 617); return; } zephir_read_property(&_1, this_ptr, SL("namespaceName"), PH_NOISY_CC | PH_READONLY); @@ -1128,18 +1125,6 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, getDefaultNamespace) { } -/** - * Returns the internal dependency injector - */ -PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, getDI) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "container"); - -} - /** * Returns the internal event manager */ @@ -1390,24 +1375,6 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, setDefaultNamespace) { } -/** - * Sets the dependency injector - */ -PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, setDI) { - - zval *container, container_sub; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&container_sub); - - zephir_fetch_params_without_memory_grow(1, 0, &container); - - - - zephir_update_property_zval(this_ptr, SL("container"), container); - -} - /** * Possible class name that will be located to dispatch the request */ @@ -1435,7 +1402,7 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, getHandlerClass) { ZEPHIR_CPY_WRT(&handlerName, &_0); zephir_read_property(&_0, this_ptr, SL("namespaceName"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&namespaceName, &_0); - if (!(zephir_memnstr_str(&handlerName, SL("\\"), "phalcon/Dispatcher/AbstractDispatcher.zep", 886))) { + if (!(zephir_memnstr_str(&handlerName, SL("\\"), "phalcon/Dispatcher/AbstractDispatcher.zep", 868))) { ZEPHIR_CALL_METHOD(&camelizedClass, this_ptr, "tocamelcase", NULL, 0, &handlerName); zephir_check_call_status(); } else { diff --git a/ext/phalcon/dispatcher/abstractdispatcher.zep.h b/ext/phalcon/dispatcher/abstractdispatcher.zep.h index 42260688c4e..b847c11fec1 100644 --- a/ext/phalcon/dispatcher/abstractdispatcher.zep.h +++ b/ext/phalcon/dispatcher/abstractdispatcher.zep.h @@ -11,7 +11,6 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, getActionSuffix); PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, getActiveMethod); PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, getBoundModels); PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, getDefaultNamespace); -PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, getDI); PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, getEventsManager); PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, getHandlerSuffix); PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, getModelBinder); @@ -24,7 +23,6 @@ PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, isFinished); PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, setActionName); PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, setDefaultAction); PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, setDefaultNamespace); -PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, setDI); PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, getHandlerClass); PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, setParam); PHP_METHOD(Phalcon_Dispatcher_AbstractDispatcher, setParams); @@ -90,13 +88,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_dispatcher_abstractdispa #endif ZEND_END_ARG_INFO() -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_dispatcher_abstractdispatcher_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_dispatcher_abstractdispatcher_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) -#endif -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_dispatcher_abstractdispatcher_geteventsmanager, 0, 0, Phalcon\\Events\\ManagerInterface, 0) #else @@ -184,10 +175,6 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_dispatcher_abstractdispatcher_setdefaultn #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_dispatcher_abstractdispatcher_setdi, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_dispatcher_abstractdispatcher_gethandlerclass, 0, 0, IS_STRING, 0) #else @@ -281,7 +268,6 @@ ZEPHIR_INIT_FUNCS(phalcon_dispatcher_abstractdispatcher_method_entry) { PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, getActiveMethod, arginfo_phalcon_dispatcher_abstractdispatcher_getactivemethod, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, getBoundModels, arginfo_phalcon_dispatcher_abstractdispatcher_getboundmodels, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, getDefaultNamespace, arginfo_phalcon_dispatcher_abstractdispatcher_getdefaultnamespace, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, getDI, arginfo_phalcon_dispatcher_abstractdispatcher_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, getEventsManager, arginfo_phalcon_dispatcher_abstractdispatcher_geteventsmanager, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, getHandlerSuffix, arginfo_phalcon_dispatcher_abstractdispatcher_gethandlersuffix, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, getModelBinder, arginfo_phalcon_dispatcher_abstractdispatcher_getmodelbinder, ZEND_ACC_PUBLIC) @@ -294,7 +280,6 @@ ZEPHIR_INIT_FUNCS(phalcon_dispatcher_abstractdispatcher_method_entry) { PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, setActionName, arginfo_phalcon_dispatcher_abstractdispatcher_setactionname, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, setDefaultAction, arginfo_phalcon_dispatcher_abstractdispatcher_setdefaultaction, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, setDefaultNamespace, arginfo_phalcon_dispatcher_abstractdispatcher_setdefaultnamespace, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, setDI, arginfo_phalcon_dispatcher_abstractdispatcher_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, getHandlerClass, arginfo_phalcon_dispatcher_abstractdispatcher_gethandlerclass, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, setParam, arginfo_phalcon_dispatcher_abstractdispatcher_setparam, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Dispatcher_AbstractDispatcher, setParams, arginfo_phalcon_dispatcher_abstractdispatcher_setparams, ZEND_ACC_PUBLIC) diff --git a/ext/phalcon/flash/abstractflash.zep.c b/ext/phalcon/flash/abstractflash.zep.c index 529dd61157d..b54155a12e8 100644 --- a/ext/phalcon/flash/abstractflash.zep.c +++ b/ext/phalcon/flash/abstractflash.zep.c @@ -12,13 +12,13 @@ #include #include "kernel/main.h" -#include "kernel/array.h" -#include "kernel/memory.h" #include "kernel/object.h" +#include "kernel/memory.h" +#include "kernel/array.h" #include "kernel/fcall.h" #include "kernel/operators.h" -#include "ext/spl/spl_exceptions.h" #include "kernel/exception.h" +#include "ext/spl/spl_exceptions.h" #include "kernel/concat.h" #include "kernel/string.h" @@ -42,7 +42,7 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Flash_AbstractFlash) { - ZEPHIR_REGISTER_CLASS(Phalcon\\Flash, AbstractFlash, phalcon, flash_abstractflash, phalcon_flash_abstractflash_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); + ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Flash, AbstractFlash, phalcon, flash_abstractflash, phalcon_di_abstractinjectionaware_ce, phalcon_flash_abstractflash_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); /** * @var bool @@ -64,8 +64,9 @@ ZEPHIR_INIT_CLASS(Phalcon_Flash_AbstractFlash) { */ zend_declare_property_string(phalcon_flash_abstractflash_ce, SL("customTemplate"), "", ZEND_ACC_PROTECTED TSRMLS_CC); - zend_declare_property_null(phalcon_flash_abstractflash_ce, SL("container"), ZEND_ACC_PROTECTED TSRMLS_CC); - + /** + * @var EscaperInterface | null + */ zend_declare_property_null(phalcon_flash_abstractflash_ce, SL("escaperService"), ZEND_ACC_PROTECTED TSRMLS_CC); /** @@ -73,12 +74,19 @@ ZEPHIR_INIT_CLASS(Phalcon_Flash_AbstractFlash) { */ zend_declare_property_bool(phalcon_flash_abstractflash_ce, SL("implicitFlush"), 1, ZEND_ACC_PROTECTED TSRMLS_CC); + /** + * @var array + */ zend_declare_property_null(phalcon_flash_abstractflash_ce, SL("messages"), ZEND_ACC_PROTECTED TSRMLS_CC); + /** + * @var SessionInterface | null + */ + zend_declare_property_null(phalcon_flash_abstractflash_ce, SL("sessionService"), ZEND_ACC_PROTECTED TSRMLS_CC); + phalcon_flash_abstractflash_ce->create_object = zephir_init_properties_Phalcon_Flash_AbstractFlash; zend_class_implements(phalcon_flash_abstractflash_ce TSRMLS_CC, 1, phalcon_flash_flashinterface_ce); - zend_class_implements(phalcon_flash_abstractflash_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); return SUCCESS; } @@ -88,35 +96,38 @@ ZEPHIR_INIT_CLASS(Phalcon_Flash_AbstractFlash) { */ PHP_METHOD(Phalcon_Flash_AbstractFlash, __construct) { + zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *cssClasses = NULL, cssClasses_sub, __$null, _0$$3; + zval *escaper = NULL, escaper_sub, *session = NULL, session_sub, __$null; zval *this_ptr = getThis(); - ZVAL_UNDEF(&cssClasses_sub); + ZVAL_UNDEF(&escaper_sub); + ZVAL_UNDEF(&session_sub); ZVAL_NULL(&__$null); - ZVAL_UNDEF(&_0$$3); + ZVAL_UNDEF(&_0); ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 0, 1, &cssClasses); + zephir_fetch_params(1, 0, 2, &escaper, &session); - if (!cssClasses) { - cssClasses = &cssClasses_sub; - ZEPHIR_CPY_WRT(cssClasses, &__$null); - } else { - ZEPHIR_SEPARATE_PARAM(cssClasses); + if (!escaper) { + escaper = &escaper_sub; + escaper = &__$null; + } + if (!session) { + session = &session_sub; + session = &__$null; } - if (Z_TYPE_P(cssClasses) != IS_ARRAY) { - ZEPHIR_INIT_VAR(&_0$$3); - zephir_create_array(&_0$$3, 4, 0 TSRMLS_CC); - add_assoc_stringl_ex(&_0$$3, SL("error"), SL("errorMessage")); - add_assoc_stringl_ex(&_0$$3, SL("notice"), SL("noticeMessage")); - add_assoc_stringl_ex(&_0$$3, SL("success"), SL("successMessage")); - add_assoc_stringl_ex(&_0$$3, SL("warning"), SL("warningMessage")); - ZEPHIR_CPY_WRT(cssClasses, &_0$$3); - } - zephir_update_property_zval(this_ptr, SL("cssClasses"), cssClasses); + zephir_update_property_zval(this_ptr, SL("escaperService"), escaper); + zephir_update_property_zval(this_ptr, SL("sessionService"), session); + ZEPHIR_INIT_VAR(&_0); + zephir_create_array(&_0, 4, 0 TSRMLS_CC); + add_assoc_stringl_ex(&_0, SL("error"), SL("errorMessage")); + add_assoc_stringl_ex(&_0, SL("notice"), SL("noticeMessage")); + add_assoc_stringl_ex(&_0, SL("success"), SL("successMessage")); + add_assoc_stringl_ex(&_0, SL("warning"), SL("warningMessage")); + zephir_update_property_zval(this_ptr, SL("cssClasses"), &_0); ZEPHIR_MM_RESTORE(); } @@ -197,62 +208,75 @@ PHP_METHOD(Phalcon_Flash_AbstractFlash, getCustomTemplate) { } -/** - * Returns the internal dependency injector - */ -PHP_METHOD(Phalcon_Flash_AbstractFlash, getDI) { - - zval di; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zephir_fcall_cache_entry *_0 = NULL; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&di); - - ZEPHIR_MM_GROW(); - - ZEPHIR_OBS_VAR(&di); - zephir_read_property(&di, this_ptr, SL("container"), PH_NOISY_CC); - if (Z_TYPE_P(&di) != IS_OBJECT) { - ZEPHIR_CALL_CE_STATIC(&di, phalcon_di_ce, "getdefault", &_0, 0); - zephir_check_call_status(); - } - RETURN_CCTOR(&di); - -} - /** * Returns the Escaper Service */ PHP_METHOD(Phalcon_Flash_AbstractFlash, getEscaperService) { - zval escaper, container, _0$$3, _1$$3; + zval container, _0, _1, _6, _7, _2$$4, _3$$4, _5$$4, _8$$5, _9$$5, _10$$6, _11$$6, _12$$6; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; + zephir_fcall_cache_entry *_4 = NULL; zval *this_ptr = getThis(); - ZVAL_UNDEF(&escaper); ZVAL_UNDEF(&container); - ZVAL_UNDEF(&_0$$3); - ZVAL_UNDEF(&_1$$3); + ZVAL_UNDEF(&_0); + ZVAL_UNDEF(&_1); + ZVAL_UNDEF(&_6); + ZVAL_UNDEF(&_7); + ZVAL_UNDEF(&_2$$4); + ZVAL_UNDEF(&_3$$4); + ZVAL_UNDEF(&_5$$4); + ZVAL_UNDEF(&_8$$5); + ZVAL_UNDEF(&_9$$5); + ZVAL_UNDEF(&_10$$6); + ZVAL_UNDEF(&_11$$6); + ZVAL_UNDEF(&_12$$6); ZEPHIR_MM_GROW(); - ZEPHIR_OBS_VAR(&escaper); - zephir_read_property(&escaper, this_ptr, SL("escaperService"), PH_NOISY_CC); - if (Z_TYPE_P(&escaper) != IS_OBJECT) { - ZEPHIR_CALL_METHOD(&_0$$3, this_ptr, "getdi", NULL, 0); + zephir_read_property(&_0, this_ptr, SL("escaperService"), PH_NOISY_CC | PH_READONLY); + if (zephir_is_true(&_0)) { + RETURN_MM_MEMBER(getThis(), "escaperService"); + } + zephir_read_property(&_1, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CPY_WRT(&container, &_1); + if (UNEXPECTED(Z_TYPE_P(&container) != IS_OBJECT)) { + ZEPHIR_INIT_VAR(&_2$$4); + object_init_ex(&_2$$4, phalcon_flash_exception_ce); + ZEPHIR_INIT_VAR(&_5$$4); + ZVAL_STRING(&_5$$4, "the 'escaper' service"); + ZEPHIR_CALL_CE_STATIC(&_3$$4, phalcon_flash_exception_ce, "containerservicenotfound", &_4, 0, &_5$$4); zephir_check_call_status(); - ZEPHIR_CPY_WRT(&container, &_0$$3); - ZEPHIR_INIT_VAR(&_1$$3); - ZVAL_STRING(&_1$$3, "escaper"); - ZEPHIR_CALL_METHOD(&_0$$3, &container, "getshared", NULL, 0, &_1$$3); + ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 5, &_3$$4); zephir_check_call_status(); - ZEPHIR_CPY_WRT(&escaper, &_0$$3); - zephir_update_property_zval(this_ptr, SL("escaperService"), &escaper); + zephir_throw_exception_debug(&_2$$4, "phalcon/Flash/AbstractFlash.zep", 138 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); + return; + } + ZEPHIR_INIT_VAR(&_7); + ZVAL_STRING(&_7, "escaper"); + ZEPHIR_CALL_METHOD(&_6, &container, "has", NULL, 0, &_7); + zephir_check_call_status(); + if (UNEXPECTED(zephir_is_true(&_6))) { + ZEPHIR_INIT_VAR(&_9$$5); + ZVAL_STRING(&_9$$5, "escaper"); + ZEPHIR_CALL_METHOD(&_8$$5, &container, "getshared", NULL, 0, &_9$$5); + zephir_check_call_status(); + RETURN_CCTOR(&_8$$5); + } else { + ZEPHIR_INIT_VAR(&_10$$6); + object_init_ex(&_10$$6, phalcon_flash_exception_ce); + ZEPHIR_INIT_VAR(&_12$$6); + ZVAL_STRING(&_12$$6, "the 'escaper' service"); + ZEPHIR_CALL_CE_STATIC(&_11$$6, phalcon_flash_exception_ce, "containerservicenotfound", &_4, 0, &_12$$6); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(NULL, &_10$$6, "__construct", NULL, 5, &_11$$6); + zephir_check_call_status(); + zephir_throw_exception_debug(&_10$$6, "phalcon/Flash/AbstractFlash.zep", 146 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); + return; } - RETURN_CCTOR(&escaper); } @@ -395,25 +419,6 @@ PHP_METHOD(Phalcon_Flash_AbstractFlash, setCustomTemplate) { } -/** - * Sets the dependency injector - */ -PHP_METHOD(Phalcon_Flash_AbstractFlash, setDI) { - - zval *container, container_sub; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&container_sub); - - zephir_fetch_params_without_memory_grow(1, 0, &container); - - - - zephir_update_property_zval(this_ptr, SL("container"), container); - RETURN_THISW(); - -} - /** * Sets the Escaper Service */ @@ -535,7 +540,7 @@ PHP_METHOD(Phalcon_Flash_AbstractFlash, outputMessage) { ZEPHIR_INIT_VAR(&content); ZVAL_STRING(&content, ""); } - zephir_is_iterable(message, 0, "phalcon/Flash/AbstractFlash.zep", 294); + zephir_is_iterable(message, 0, "phalcon/Flash/AbstractFlash.zep", 286); if (Z_TYPE_P(message) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(message), _1$$3) { diff --git a/ext/phalcon/flash/abstractflash.zep.h b/ext/phalcon/flash/abstractflash.zep.h index 0366dc9f588..c459bf1d52f 100644 --- a/ext/phalcon/flash/abstractflash.zep.h +++ b/ext/phalcon/flash/abstractflash.zep.h @@ -8,14 +8,12 @@ PHP_METHOD(Phalcon_Flash_AbstractFlash, clear); PHP_METHOD(Phalcon_Flash_AbstractFlash, error); PHP_METHOD(Phalcon_Flash_AbstractFlash, getAutoescape); PHP_METHOD(Phalcon_Flash_AbstractFlash, getCustomTemplate); -PHP_METHOD(Phalcon_Flash_AbstractFlash, getDI); PHP_METHOD(Phalcon_Flash_AbstractFlash, getEscaperService); PHP_METHOD(Phalcon_Flash_AbstractFlash, notice); PHP_METHOD(Phalcon_Flash_AbstractFlash, setAutoescape); PHP_METHOD(Phalcon_Flash_AbstractFlash, setAutomaticHtml); PHP_METHOD(Phalcon_Flash_AbstractFlash, setCssClasses); PHP_METHOD(Phalcon_Flash_AbstractFlash, setCustomTemplate); -PHP_METHOD(Phalcon_Flash_AbstractFlash, setDI); PHP_METHOD(Phalcon_Flash_AbstractFlash, setEscaperService); PHP_METHOD(Phalcon_Flash_AbstractFlash, setImplicitFlush); PHP_METHOD(Phalcon_Flash_AbstractFlash, success); @@ -27,7 +25,8 @@ PHP_METHOD(Phalcon_Flash_AbstractFlash, prepareHtmlMessage); zend_object *zephir_init_properties_Phalcon_Flash_AbstractFlash(zend_class_entry *class_type TSRMLS_DC); ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_flash_abstractflash___construct, 0, 0, 0) - ZEND_ARG_INFO(0, cssClasses) + ZEND_ARG_OBJ_INFO(0, escaper, Phalcon\\Escaper\\EscaperInterface, 1) + ZEND_ARG_OBJ_INFO(0, session, Phalcon\\Session\\ManagerInterface, 1) ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 70200 @@ -56,13 +55,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_abstractflash_getc #endif ZEND_END_ARG_INFO() -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_flash_abstractflash_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_abstractflash_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) -#endif -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_flash_abstractflash_getescaperservice, 0, 0, Phalcon\\Escaper\\EscaperInterface, 0) #else @@ -83,9 +75,9 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_abstractflash_noti ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_flash_abstractflash_setautoescape, 0, 1, Phalcon\\Flash\\Flash, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_flash_abstractflash_setautoescape, 0, 1, Phalcon\\Flash\\FlashInterface, 0) #else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_abstractflash_setautoescape, 0, 1, IS_OBJECT, "Phalcon\\Flash\\Flash", 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_abstractflash_setautoescape, 0, 1, IS_OBJECT, "Phalcon\\Flash\\FlashInterface", 0) #endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, autoescape, _IS_BOOL, 0) @@ -126,14 +118,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_abstractflash_setc #endif ZEND_END_ARG_INFO() -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_flash_abstractflash_setdi, 0, 1, Phalcon\\Flash\\FlashInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_abstractflash_setdi, 0, 1, IS_OBJECT, "Phalcon\\Flash\\FlashInterface", 0) -#endif - ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_flash_abstractflash_setescaperservice, 0, 1, Phalcon\\Flash\\FlashInterface, 0) #else @@ -234,14 +218,12 @@ ZEPHIR_INIT_FUNCS(phalcon_flash_abstractflash_method_entry) { PHP_ME(Phalcon_Flash_AbstractFlash, error, arginfo_phalcon_flash_abstractflash_error, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, getAutoescape, arginfo_phalcon_flash_abstractflash_getautoescape, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, getCustomTemplate, arginfo_phalcon_flash_abstractflash_getcustomtemplate, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Flash_AbstractFlash, getDI, arginfo_phalcon_flash_abstractflash_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, getEscaperService, arginfo_phalcon_flash_abstractflash_getescaperservice, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, notice, arginfo_phalcon_flash_abstractflash_notice, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, setAutoescape, arginfo_phalcon_flash_abstractflash_setautoescape, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, setAutomaticHtml, arginfo_phalcon_flash_abstractflash_setautomatichtml, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, setCssClasses, arginfo_phalcon_flash_abstractflash_setcssclasses, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, setCustomTemplate, arginfo_phalcon_flash_abstractflash_setcustomtemplate, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Flash_AbstractFlash, setDI, arginfo_phalcon_flash_abstractflash_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, setEscaperService, arginfo_phalcon_flash_abstractflash_setescaperservice, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, setImplicitFlush, arginfo_phalcon_flash_abstractflash_setimplicitflush, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, success, arginfo_phalcon_flash_abstractflash_success, ZEND_ACC_PUBLIC) diff --git a/ext/phalcon/flash/direct.zep.h b/ext/phalcon/flash/direct.zep.h index 7dea27806f4..5a1be1d1e6d 100644 --- a/ext/phalcon/flash/direct.zep.h +++ b/ext/phalcon/flash/direct.zep.h @@ -7,9 +7,9 @@ PHP_METHOD(Phalcon_Flash_Direct, message); PHP_METHOD(Phalcon_Flash_Direct, output); #if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_direct_message, 0, 2, IS_STRING, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_direct_message, 0, 2, IS_STRING, 1) #else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_direct_message, 0, 2, IS_STRING, NULL, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_direct_message, 0, 2, IS_STRING, NULL, 1) #endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, type, IS_STRING, 0) diff --git a/ext/phalcon/flash/flashinterface.zep.h b/ext/phalcon/flash/flashinterface.zep.h index 251dce6193e..c33a6601d81 100644 --- a/ext/phalcon/flash/flashinterface.zep.h +++ b/ext/phalcon/flash/flashinterface.zep.h @@ -15,7 +15,11 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_flashinterface_err #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_flash_flashinterface_message, 0, 0, 2) +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_flashinterface_message, 0, 2, IS_STRING, 1) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_flashinterface_message, 0, 2, IS_STRING, NULL, 1) +#endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, type, IS_STRING, 0) #else diff --git a/ext/phalcon/flash/session.zep.c b/ext/phalcon/flash/session.zep.c index f14658a0899..9630a929937 100644 --- a/ext/phalcon/flash/session.zep.c +++ b/ext/phalcon/flash/session.zep.c @@ -174,7 +174,7 @@ PHP_METHOD(Phalcon_Flash_Session, message) { zephir_array_update_multi(&messages, &message TSRMLS_CC, SL("za"), 2, &type); ZEPHIR_CALL_METHOD(NULL, this_ptr, "setsessionmessages", NULL, 0, &messages); zephir_check_call_status(); - ZEPHIR_MM_RESTORE(); + RETURN_MM_NULL(); } @@ -215,7 +215,7 @@ PHP_METHOD(Phalcon_Flash_Session, output) { } ZEPHIR_CALL_METHOD(&messages, this_ptr, "getsessionmessages", NULL, 0, &_0); zephir_check_call_status(); - zephir_is_iterable(&messages, 0, "phalcon/Flash/Session.zep", 88); + zephir_is_iterable(&messages, 0, "phalcon/Flash/Session.zep", 90); if (Z_TYPE_P(&messages) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&messages), _3, _4, _1) { @@ -264,20 +264,18 @@ PHP_METHOD(Phalcon_Flash_Session, getSessionMessages) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; - zval *remove_param = NULL, *type = NULL, type_sub, __$null, container, session, messages, returnMessages, _0, _1, _2$$6, _3$$7; + zval *remove_param = NULL, *type = NULL, type_sub, __$null, session, messages, returnMessages, _0, _1$$6, _2$$7; zend_bool remove; zval *this_ptr = getThis(); ZVAL_UNDEF(&type_sub); ZVAL_NULL(&__$null); - ZVAL_UNDEF(&container); ZVAL_UNDEF(&session); ZVAL_UNDEF(&messages); ZVAL_UNDEF(&returnMessages); ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&_2$$6); - ZVAL_UNDEF(&_3$$7); + ZVAL_UNDEF(&_1$$6); + ZVAL_UNDEF(&_2$$7); ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &remove_param, &type); @@ -289,17 +287,11 @@ PHP_METHOD(Phalcon_Flash_Session, getSessionMessages) { } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getdi", NULL, 0); + ZEPHIR_CALL_METHOD(&session, this_ptr, "getsessionservice", NULL, 0); zephir_check_call_status(); - ZEPHIR_CPY_WRT(&container, &_0); - ZEPHIR_INIT_VAR(&_1); - ZVAL_STRING(&_1, "session"); - ZEPHIR_CALL_METHOD(&_0, &container, "getshared", NULL, 0, &_1); - zephir_check_call_status(); - ZEPHIR_CPY_WRT(&session, &_0); - ZEPHIR_INIT_NVAR(&_1); - ZVAL_STRING(&_1, "_flashMessages"); - ZEPHIR_CALL_METHOD(&messages, &session, "get", NULL, 0, &_1); + ZEPHIR_INIT_VAR(&_0); + ZVAL_STRING(&_0, "_flashMessages"); + ZEPHIR_CALL_METHOD(&messages, &session, "get", NULL, 0, &_0); zephir_check_call_status(); if (Z_TYPE_P(&messages) != IS_ARRAY) { ZEPHIR_INIT_NVAR(&messages); @@ -310,9 +302,9 @@ PHP_METHOD(Phalcon_Flash_Session, getSessionMessages) { if (zephir_array_isset_fetch(&returnMessages, &messages, type, 0 TSRMLS_CC)) { if (remove) { zephir_array_unset(&messages, type, PH_SEPARATE); - ZEPHIR_INIT_VAR(&_2$$6); - ZVAL_STRING(&_2$$6, "_flashMessages"); - ZEPHIR_CALL_METHOD(NULL, &session, "set", NULL, 0, &_2$$6, &messages); + ZEPHIR_INIT_VAR(&_1$$6); + ZVAL_STRING(&_1$$6, "_flashMessages"); + ZEPHIR_CALL_METHOD(NULL, &session, "set", NULL, 0, &_1$$6, &messages); zephir_check_call_status(); } RETURN_CCTOR(&returnMessages); @@ -321,9 +313,9 @@ PHP_METHOD(Phalcon_Flash_Session, getSessionMessages) { RETURN_MM(); } if (remove) { - ZEPHIR_INIT_VAR(&_3$$7); - ZVAL_STRING(&_3$$7, "_flashMessages"); - ZEPHIR_CALL_METHOD(NULL, &session, "remove", NULL, 0, &_3$$7); + ZEPHIR_INIT_VAR(&_2$$7); + ZVAL_STRING(&_2$$7, "_flashMessages"); + ZEPHIR_CALL_METHOD(NULL, &session, "remove", NULL, 0, &_2$$7); zephir_check_call_status(); } RETURN_CCTOR(&messages); @@ -337,15 +329,13 @@ PHP_METHOD(Phalcon_Flash_Session, setSessionMessages) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; - zval *messages_param = NULL, container, session, _0, _1; + zval *messages_param = NULL, session, _0; zval messages; zval *this_ptr = getThis(); ZVAL_UNDEF(&messages); - ZVAL_UNDEF(&container); ZVAL_UNDEF(&session); ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1); ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &messages_param); @@ -353,19 +343,85 @@ PHP_METHOD(Phalcon_Flash_Session, setSessionMessages) { ZEPHIR_OBS_COPY_OR_DUP(&messages, messages_param); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getdi", NULL, 0); - zephir_check_call_status(); - ZEPHIR_CPY_WRT(&container, &_0); - ZEPHIR_INIT_VAR(&_1); - ZVAL_STRING(&_1, "session"); - ZEPHIR_CALL_METHOD(&_0, &container, "getshared", NULL, 0, &_1); + ZEPHIR_CALL_METHOD(&session, this_ptr, "getsessionservice", NULL, 0); zephir_check_call_status(); - ZEPHIR_CPY_WRT(&session, &_0); - ZEPHIR_INIT_NVAR(&_1); - ZVAL_STRING(&_1, "_flashMessages"); - ZEPHIR_CALL_METHOD(NULL, &session, "set", NULL, 0, &_1, &messages); + ZEPHIR_INIT_VAR(&_0); + ZVAL_STRING(&_0, "_flashMessages"); + ZEPHIR_CALL_METHOD(NULL, &session, "set", NULL, 0, &_0, &messages); zephir_check_call_status(); RETURN_CTOR(&messages); } +/** + * Returns the Session Service + */ +PHP_METHOD(Phalcon_Flash_Session, getSessionService) { + + zval container, _0, _1, _6, _7, _2$$4, _3$$4, _5$$4, _8$$5, _9$$5, _10$$6, _11$$6, _12$$6; + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; + zend_long ZEPHIR_LAST_CALL_STATUS; + zephir_fcall_cache_entry *_4 = NULL; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&container); + ZVAL_UNDEF(&_0); + ZVAL_UNDEF(&_1); + ZVAL_UNDEF(&_6); + ZVAL_UNDEF(&_7); + ZVAL_UNDEF(&_2$$4); + ZVAL_UNDEF(&_3$$4); + ZVAL_UNDEF(&_5$$4); + ZVAL_UNDEF(&_8$$5); + ZVAL_UNDEF(&_9$$5); + ZVAL_UNDEF(&_10$$6); + ZVAL_UNDEF(&_11$$6); + ZVAL_UNDEF(&_12$$6); + + ZEPHIR_MM_GROW(); + + zephir_read_property(&_0, this_ptr, SL("sessionService"), PH_NOISY_CC | PH_READONLY); + if (zephir_is_true(&_0)) { + RETURN_MM_MEMBER(getThis(), "sessionService"); + } + zephir_read_property(&_1, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CPY_WRT(&container, &_1); + if (UNEXPECTED(Z_TYPE_P(&container) != IS_OBJECT)) { + ZEPHIR_INIT_VAR(&_2$$4); + object_init_ex(&_2$$4, phalcon_flash_exception_ce); + ZEPHIR_INIT_VAR(&_5$$4); + ZVAL_STRING(&_5$$4, "the 'session' service"); + ZEPHIR_CALL_CE_STATIC(&_3$$4, phalcon_flash_exception_ce, "containerservicenotfound", &_4, 0, &_5$$4); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 5, &_3$$4); + zephir_check_call_status(); + zephir_throw_exception_debug(&_2$$4, "phalcon/Flash/Session.zep", 159 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); + return; + } + ZEPHIR_INIT_VAR(&_7); + ZVAL_STRING(&_7, "session"); + ZEPHIR_CALL_METHOD(&_6, &container, "has", NULL, 0, &_7); + zephir_check_call_status(); + if (UNEXPECTED(zephir_is_true(&_6))) { + ZEPHIR_INIT_VAR(&_9$$5); + ZVAL_STRING(&_9$$5, "session"); + ZEPHIR_CALL_METHOD(&_8$$5, &container, "getshared", NULL, 0, &_9$$5); + zephir_check_call_status(); + RETURN_CCTOR(&_8$$5); + } else { + ZEPHIR_INIT_VAR(&_10$$6); + object_init_ex(&_10$$6, phalcon_flash_exception_ce); + ZEPHIR_INIT_VAR(&_12$$6); + ZVAL_STRING(&_12$$6, "the 'session' service"); + ZEPHIR_CALL_CE_STATIC(&_11$$6, phalcon_flash_exception_ce, "containerservicenotfound", &_4, 0, &_12$$6); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(NULL, &_10$$6, "__construct", NULL, 5, &_11$$6); + zephir_check_call_status(); + zephir_throw_exception_debug(&_10$$6, "phalcon/Flash/Session.zep", 167 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); + return; + } + +} + diff --git a/ext/phalcon/flash/session.zep.h b/ext/phalcon/flash/session.zep.h index ce45ab059d1..dac395fd0cf 100644 --- a/ext/phalcon/flash/session.zep.h +++ b/ext/phalcon/flash/session.zep.h @@ -10,6 +10,7 @@ PHP_METHOD(Phalcon_Flash_Session, message); PHP_METHOD(Phalcon_Flash_Session, output); PHP_METHOD(Phalcon_Flash_Session, getSessionMessages); PHP_METHOD(Phalcon_Flash_Session, setSessionMessages); +PHP_METHOD(Phalcon_Flash_Session, getSessionService); #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_session_getmessages, 0, 0, IS_ARRAY, 0) @@ -32,7 +33,11 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_session_has, 0, 0, ZEND_ARG_INFO(0, type) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_flash_session_message, 0, 0, 2) +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_session_message, 0, 2, IS_STRING, 1) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_session_message, 0, 2, IS_STRING, NULL, 1) +#endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, type, IS_STRING, 0) #else @@ -74,6 +79,13 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_session_setsession ZEND_ARG_ARRAY_INFO(0, messages, 0) ZEND_END_ARG_INFO() +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_flash_session_getsessionservice, 0, 0, Phalcon\\Session\\ManagerInterface, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_session_getsessionservice, 0, 0, IS_OBJECT, "Phalcon\\Session\\ManagerInterface", 0) +#endif +ZEND_END_ARG_INFO() + ZEPHIR_INIT_FUNCS(phalcon_flash_session_method_entry) { PHP_ME(Phalcon_Flash_Session, clear, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_Session, getMessages, arginfo_phalcon_flash_session_getmessages, ZEND_ACC_PUBLIC) @@ -82,5 +94,6 @@ ZEPHIR_INIT_FUNCS(phalcon_flash_session_method_entry) { PHP_ME(Phalcon_Flash_Session, output, arginfo_phalcon_flash_session_output, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_Session, getSessionMessages, arginfo_phalcon_flash_session_getsessionmessages, ZEND_ACC_PROTECTED) PHP_ME(Phalcon_Flash_Session, setSessionMessages, arginfo_phalcon_flash_session_setsessionmessages, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Flash_Session, getSessionService, arginfo_phalcon_flash_session_getsessionservice, ZEND_ACC_PUBLIC) PHP_FE_END }; diff --git a/ext/phalcon/helper/fs.zep.c b/ext/phalcon/helper/fs.zep.c new file mode 100644 index 00000000000..4cd8416661c --- /dev/null +++ b/ext/phalcon/helper/fs.zep.c @@ -0,0 +1,136 @@ + +#ifdef HAVE_CONFIG_H +#include "../../ext_config.h" +#endif + +#include +#include "../../php_ext.h" +#include "../../ext.h" + +#include +#include +#include + +#include "kernel/main.h" +#include "kernel/memory.h" +#include "kernel/string.h" +#include "kernel/operators.h" +#include "kernel/concat.h" +#include "kernel/fcall.h" +#include "kernel/array.h" +#include "ext/spl/spl_exceptions.h" +#include "kernel/exception.h" +#include "kernel/object.h" + + +/** + * This file is part of the Phalcon. + * + * (c) Phalcon Team + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ +/** + * This class offers file operation helper + */ +ZEPHIR_INIT_CLASS(Phalcon_Helper_Fs) { + + ZEPHIR_REGISTER_CLASS(Phalcon\\Helper, Fs, phalcon, helper_fs, phalcon_helper_fs_method_entry, 0); + + return SUCCESS; + +} + +/** + * Gets the filename from a given path, Same as PHP's basename() but has non-ASCII support. + * PHP's basename() does not properly support streams or filenames beginning with a non-US-ASCII character. + * see https://bugs.php.net/bug.php?id=37738 + * + * @param string $uri + * @param string $suffix + * + * @return string + */ +PHP_METHOD(Phalcon_Helper_Fs, basename) { + + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; + zend_long ZEPHIR_LAST_CALL_STATUS; + zval *uri_param = NULL, *suffix = NULL, suffix_sub, __$null, filename, matches, _0, _1, _2, _3, _4, _5, _6$$3, _7$$3, _8$$3, _9$$3; + zval uri; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&uri); + ZVAL_UNDEF(&suffix_sub); + ZVAL_NULL(&__$null); + ZVAL_UNDEF(&filename); + ZVAL_UNDEF(&matches); + ZVAL_UNDEF(&_0); + ZVAL_UNDEF(&_1); + ZVAL_UNDEF(&_2); + ZVAL_UNDEF(&_3); + ZVAL_UNDEF(&_4); + ZVAL_UNDEF(&_5); + ZVAL_UNDEF(&_6$$3); + ZVAL_UNDEF(&_7$$3); + ZVAL_UNDEF(&_8$$3); + ZVAL_UNDEF(&_9$$3); + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 1, &uri_param, &suffix); + + if (UNEXPECTED(Z_TYPE_P(uri_param) != IS_STRING && Z_TYPE_P(uri_param) != IS_NULL)) { + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'uri' must be of the type string") TSRMLS_CC); + RETURN_MM_NULL(); + } + if (EXPECTED(Z_TYPE_P(uri_param) == IS_STRING)) { + zephir_get_strval(&uri, uri_param); + } else { + ZEPHIR_INIT_VAR(&uri); + ZVAL_EMPTY_STRING(&uri); + } + if (!suffix) { + suffix = &suffix_sub; + suffix = &__$null; + } + + + ZEPHIR_INIT_VAR(&_0); + ZEPHIR_INIT_VAR(&_1); + ZVAL_STRING(&_1, "/"); + zephir_fast_trim(&_0, &uri, &_1, ZEPHIR_TRIM_RIGHT TSRMLS_CC); + zephir_get_strval(&uri, &_0); + ZEPHIR_INIT_VAR(&_2); + ZVAL_STRING(&_2, "/"); + ZEPHIR_INIT_VAR(&_3); + ZVAL_STRING(&_3, "@"); + ZEPHIR_CALL_FUNCTION(&_4, "preg_quote", NULL, 258, &_2, &_3); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(&_5); + ZEPHIR_CONCAT_SVS(&_5, "@[^", &_4, "]+$@"); + ZEPHIR_INIT_NVAR(&_2); + zephir_preg_match(&_2, &_5, &uri, &matches, 0, 0 , 0 TSRMLS_CC); + if (zephir_is_true(&_2)) { + ZEPHIR_OBS_VAR(&filename); + zephir_array_fetch_long(&filename, &matches, 0, PH_NOISY, "phalcon/Helper/Fs.zep", 36 TSRMLS_CC); + } else { + ZEPHIR_INIT_NVAR(&filename); + ZVAL_STRING(&filename, ""); + } + if (zephir_is_true(suffix)) { + ZEPHIR_INIT_VAR(&_6$$3); + ZVAL_STRING(&_6$$3, "@"); + ZEPHIR_CALL_FUNCTION(&_7$$3, "preg_quote", NULL, 258, suffix, &_6$$3); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(&_8$$3); + ZEPHIR_CONCAT_SVS(&_8$$3, "@", &_7$$3, "$@"); + ZEPHIR_INIT_NVAR(&_6$$3); + ZVAL_STRING(&_6$$3, ""); + ZEPHIR_CALL_FUNCTION(&_9$$3, "preg_replace", NULL, 44, &_8$$3, &_6$$3, &filename); + zephir_check_call_status(); + ZEPHIR_CPY_WRT(&filename, &_9$$3); + } + RETURN_CCTOR(&filename); + +} + diff --git a/ext/phalcon/helper/fs.zep.h b/ext/phalcon/helper/fs.zep.h new file mode 100644 index 00000000000..a8d37ce62fa --- /dev/null +++ b/ext/phalcon/helper/fs.zep.h @@ -0,0 +1,24 @@ + +extern zend_class_entry *phalcon_helper_fs_ce; + +ZEPHIR_INIT_CLASS(Phalcon_Helper_Fs); + +PHP_METHOD(Phalcon_Helper_Fs, basename); + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_helper_fs_basename, 0, 1, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_helper_fs_basename, 0, 1, IS_STRING, NULL, 0) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, uri, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, uri) +#endif + ZEND_ARG_INFO(0, suffix) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(phalcon_helper_fs_method_entry) { + PHP_ME(Phalcon_Helper_Fs, basename, arginfo_phalcon_helper_fs_basename, ZEND_ACC_FINAL|ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_FE_END +}; diff --git a/ext/phalcon/helper/str.zep.c b/ext/phalcon/helper/str.zep.c index cc39afdc624..798af9fda04 100644 --- a/ext/phalcon/helper/str.zep.c +++ b/ext/phalcon/helper/str.zep.c @@ -163,12 +163,12 @@ PHP_METHOD(Phalcon_Helper_Str, concat) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_helper_exception_ce, "concat needs at least three parameters", "phalcon/Helper/Str.zep", 80); return; } - ZEPHIR_CALL_CE_STATIC(&delimiter, phalcon_helper_arr_ce, "first", &_0, 258, &arguments); + ZEPHIR_CALL_CE_STATIC(&delimiter, phalcon_helper_arr_ce, "first", &_0, 259, &arguments); zephir_check_call_status(); - ZEPHIR_CALL_CE_STATIC(&_1, phalcon_helper_arr_ce, "sliceright", &_2, 259, &arguments); + ZEPHIR_CALL_CE_STATIC(&_1, phalcon_helper_arr_ce, "sliceright", &_2, 260, &arguments); zephir_check_call_status(); ZEPHIR_CPY_WRT(&arguments, &_1); - ZEPHIR_CALL_CE_STATIC(&first, phalcon_helper_arr_ce, "first", &_0, 258, &arguments); + ZEPHIR_CALL_CE_STATIC(&first, phalcon_helper_arr_ce, "first", &_0, 259, &arguments); zephir_check_call_status(); ZEPHIR_CALL_CE_STATIC(&last, phalcon_helper_arr_ce, "last", &_3, 123, &arguments); zephir_check_call_status(); @@ -178,12 +178,12 @@ PHP_METHOD(Phalcon_Helper_Str, concat) { ZVAL_STRING(&suffix, ""); ZEPHIR_INIT_VAR(&data); array_init(&data); - ZEPHIR_CALL_SELF(&_1, "startswith", &_4, 260, &first, &delimiter); + ZEPHIR_CALL_SELF(&_1, "startswith", &_4, 261, &first, &delimiter); zephir_check_call_status(); if (zephir_is_true(&_1)) { ZEPHIR_CPY_WRT(&prefix, &delimiter); } - ZEPHIR_CALL_SELF(&_5, "endswith", &_6, 261, &last, &delimiter); + ZEPHIR_CALL_SELF(&_5, "endswith", &_6, 262, &last, &delimiter); zephir_check_call_status(); if (zephir_is_true(&_5)) { ZEPHIR_CPY_WRT(&suffix, &delimiter); @@ -353,7 +353,7 @@ PHP_METHOD(Phalcon_Helper_Str, decapitalize) { } if (upperRest) { if ((zephir_function_exists_ex(SL("mb_strtoupper") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&suffix, "mb_strtoupper", NULL, 262, &substr, &encoding); + ZEPHIR_CALL_FUNCTION(&suffix, "mb_strtoupper", NULL, 263, &substr, &encoding); zephir_check_call_status(); } else { ZEPHIR_CALL_METHOD(&suffix, &substr, "upper", NULL, 0); @@ -636,24 +636,24 @@ PHP_METHOD(Phalcon_Helper_Str, dynamic) { } - ZEPHIR_CALL_FUNCTION(&_0, "substr_count", NULL, 263, &text, &leftDelimiter); + ZEPHIR_CALL_FUNCTION(&_0, "substr_count", NULL, 264, &text, &leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "substr_count", NULL, 263, &text, &rightDelimiter); + ZEPHIR_CALL_FUNCTION(&_1, "substr_count", NULL, 264, &text, &rightDelimiter); zephir_check_call_status(); if (UNEXPECTED(!ZEPHIR_IS_IDENTICAL(&_0, &_1))) { ZEPHIR_INIT_VAR(&_2$$3); object_init_ex(&_2$$3, spl_ce_RuntimeException); ZEPHIR_INIT_VAR(&_3$$3); ZEPHIR_CONCAT_SVS(&_3$$3, "Syntax error in string \"", &text, "\""); - ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 264, &_3$$3); + ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 265, &_3$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_2$$3, "phalcon/Helper/Str.zep", 256 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", NULL, 265, &leftDelimiter); + ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", NULL, 258, &leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", NULL, 265, &rightDelimiter); + ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", NULL, 258, &rightDelimiter); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_4); ZEPHIR_CONCAT_SVSVVSVS(&_4, "/", &ldS, "([^", &ldS, &rdS, "]+)", &rdS, "/"); @@ -687,7 +687,7 @@ PHP_METHOD(Phalcon_Helper_Str, dynamic) { zephir_check_call_status(); zephir_array_fetch(&word, &words, &_10$$6, PH_NOISY, "phalcon/Helper/Str.zep", 275 TSRMLS_CC); zephir_array_fetch_long(&_12$$6, &match, 0, PH_NOISY | PH_READONLY, "phalcon/Helper/Str.zep", 276 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&sub, "preg_quote", NULL, 265, &_12$$6, &separator); + ZEPHIR_CALL_FUNCTION(&sub, "preg_quote", NULL, 258, &_12$$6, &separator); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_13$$6); ZEPHIR_CONCAT_SVS(&_13$$6, "/", &sub, "/"); @@ -722,7 +722,7 @@ PHP_METHOD(Phalcon_Helper_Str, dynamic) { zephir_check_call_status(); zephir_array_fetch(&word, &words, &_19$$8, PH_NOISY, "phalcon/Helper/Str.zep", 275 TSRMLS_CC); zephir_array_fetch_long(&_20$$8, &match, 0, PH_NOISY | PH_READONLY, "phalcon/Helper/Str.zep", 276 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&sub, "preg_quote", NULL, 265, &_20$$8, &separator); + ZEPHIR_CALL_FUNCTION(&sub, "preg_quote", NULL, 258, &_20$$8, &separator); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_21$$8); ZEPHIR_CONCAT_SVS(&_21$$8, "/", &sub, "/"); @@ -1256,7 +1256,7 @@ PHP_METHOD(Phalcon_Helper_Str, isUpper) { if ((zephir_function_exists_ex(SL("mb_strtoupper") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&_0$$3, "mb_strtoupper", NULL, 262, &text, &encoding); + ZEPHIR_CALL_FUNCTION(&_0$$3, "mb_strtoupper", NULL, 263, &text, &encoding); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_IDENTICAL(&text, &_0$$3)); } else { @@ -1769,7 +1769,7 @@ PHP_METHOD(Phalcon_Helper_Str, upper) { if ((zephir_function_exists_ex(SL("mb_strtoupper") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 262, &text, &encoding); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 263, &text, &encoding); zephir_check_call_status(); RETURN_MM(); } diff --git a/ext/phalcon/html/tag.zep.c b/ext/phalcon/html/tag.zep.c index 267806399aa..9f3ccde0925 100644 --- a/ext/phalcon/html/tag.zep.c +++ b/ext/phalcon/html/tag.zep.c @@ -40,12 +40,7 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Html_Tag) { - ZEPHIR_REGISTER_CLASS(Phalcon\\Html, Tag, phalcon, html_tag, phalcon_html_tag_method_entry, 0); - - /** - * @var DiInterface - */ - zend_declare_property_null(phalcon_html_tag_ce, SL("container"), ZEND_ACC_PROTECTED TSRMLS_CC); + ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Html, Tag, phalcon, html_tag, phalcon_di_abstractinjectionaware_ce, phalcon_html_tag_method_entry, 0); /** * @var array @@ -113,7 +108,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Html_Tag) { zephir_declare_class_constant_long(phalcon_html_tag_ce, SL("XHTML5"), 11); - zend_class_implements(phalcon_html_tag_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); return SUCCESS; } @@ -700,7 +694,7 @@ PHP_METHOD(Phalcon_Html_Tag, friendlyTitle) { _10$$4 = Z_TYPE_P(&replace) != IS_STRING; } if (UNEXPECTED(_10$$4)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "Parameter replace must be an array or a string", "phalcon/Html/Tag.zep", 340); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "Parameter replace must be an array or a string", "phalcon/Html/Tag.zep", 335); return; } if (Z_TYPE_P(&replace) == IS_STRING) { @@ -754,18 +748,6 @@ PHP_METHOD(Phalcon_Html_Tag, friendlyTitle) { } -/** - * Returns the internal dependency injector - */ -PHP_METHOD(Phalcon_Html_Tag, getDI) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "container"); - -} - /** * Get the document type declaration of content. If the docType has not * been set properly, XHTML5 is returned @@ -968,7 +950,7 @@ PHP_METHOD(Phalcon_Html_Tag, getTitle) { if (!(ZEPHIR_IS_EMPTY(&prependTitle))) { ZEPHIR_CALL_FUNCTION(&prependArray$$4, "array_reverse", NULL, 280, &prependTitle); zephir_check_call_status(); - zephir_is_iterable(&prependArray$$4, 0, "phalcon/Html/Tag.zep", 480); + zephir_is_iterable(&prependArray$$4, 0, "phalcon/Html/Tag.zep", 467); if (Z_TYPE_P(&prependArray$$4) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&prependArray$$4), _3$$4) { @@ -976,7 +958,7 @@ PHP_METHOD(Phalcon_Html_Tag, getTitle) { ZVAL_COPY(&item, _3$$4); ZEPHIR_CALL_METHOD(&_5$$5, &escaper, "escapehtml", &_6, 0, &item); zephir_check_call_status(); - zephir_array_append(&items, &_5$$5, PH_SEPARATE, "phalcon/Html/Tag.zep", 478); + zephir_array_append(&items, &_5$$5, PH_SEPARATE, "phalcon/Html/Tag.zep", 465); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &prependArray$$4, "rewind", NULL, 0); @@ -991,7 +973,7 @@ PHP_METHOD(Phalcon_Html_Tag, getTitle) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_7$$6, &escaper, "escapehtml", &_8, 0, &item); zephir_check_call_status(); - zephir_array_append(&items, &_7$$6, PH_SEPARATE, "phalcon/Html/Tag.zep", 478); + zephir_array_append(&items, &_7$$6, PH_SEPARATE, "phalcon/Html/Tag.zep", 465); ZEPHIR_CALL_METHOD(NULL, &prependArray$$4, "next", NULL, 0); zephir_check_call_status(); } @@ -1000,13 +982,13 @@ PHP_METHOD(Phalcon_Html_Tag, getTitle) { } } if (!(ZEPHIR_IS_EMPTY(&title))) { - zephir_array_append(&items, &title, PH_SEPARATE, "phalcon/Html/Tag.zep", 484); + zephir_array_append(&items, &title, PH_SEPARATE, "phalcon/Html/Tag.zep", 471); } if (append) { ZEPHIR_OBS_VAR(&appendTitle); zephir_read_property(&appendTitle, this_ptr, SL("append"), PH_NOISY_CC); if (!(ZEPHIR_IS_EMPTY(&appendTitle))) { - zephir_is_iterable(&appendTitle, 0, "phalcon/Html/Tag.zep", 494); + zephir_is_iterable(&appendTitle, 0, "phalcon/Html/Tag.zep", 481); if (Z_TYPE_P(&appendTitle) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&appendTitle), _9$$9) { @@ -1014,7 +996,7 @@ PHP_METHOD(Phalcon_Html_Tag, getTitle) { ZVAL_COPY(&item, _9$$9); ZEPHIR_CALL_METHOD(&_11$$10, &escaper, "escapehtml", &_12, 0, &item); zephir_check_call_status(); - zephir_array_append(&items, &_11$$10, PH_SEPARATE, "phalcon/Html/Tag.zep", 492); + zephir_array_append(&items, &_11$$10, PH_SEPARATE, "phalcon/Html/Tag.zep", 479); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &appendTitle, "rewind", NULL, 0); @@ -1029,7 +1011,7 @@ PHP_METHOD(Phalcon_Html_Tag, getTitle) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_13$$11, &escaper, "escapehtml", &_14, 0, &item); zephir_check_call_status(); - zephir_array_append(&items, &_13$$11, PH_SEPARATE, "phalcon/Html/Tag.zep", 492); + zephir_array_append(&items, &_13$$11, PH_SEPARATE, "phalcon/Html/Tag.zep", 479); ZEPHIR_CALL_METHOD(NULL, &appendTitle, "next", NULL, 0); zephir_check_call_status(); } @@ -2434,7 +2416,7 @@ PHP_METHOD(Phalcon_Html_Tag, javascript) { zephir_read_property(&_3, this_ptr, SL("docType"), PH_NOISY_CC | PH_READONLY); _7 = ZEPHIR_GE_LONG(&_3, 5); if (_7) { - zephir_array_fetch_string(&_8, ¶meters, SL("type"), PH_NOISY | PH_READONLY, "phalcon/Html/Tag.zep", 1018 TSRMLS_CC); + zephir_array_fetch_string(&_8, ¶meters, SL("type"), PH_NOISY | PH_READONLY, "phalcon/Html/Tag.zep", 1005 TSRMLS_CC); ZEPHIR_SINIT_VAR(_9); ZVAL_STRING(&_9, "text/javascript"); _7 = ZEPHIR_IS_EQUAL(&_9, &_8); @@ -2867,7 +2849,7 @@ PHP_METHOD(Phalcon_Html_Tag, select) { _4 = !ZEPHIR_IS_STRING_IDENTICAL(data, "object"); } if (UNEXPECTED(_4)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "The dataset must be either an array or a ResultsetInterface", "phalcon/Html/Tag.zep", 1217); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "The dataset must be either an array or a ResultsetInterface", "phalcon/Html/Tag.zep", 1204); return; } if (Z_TYPE_P(data) == IS_OBJECT) { @@ -2884,7 +2866,7 @@ PHP_METHOD(Phalcon_Html_Tag, select) { if (_7$$4) { zephir_array_unset_string(¶meters, SL("using"), PH_SEPARATE); } else { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "The 'using' parameter is not a valid array", "phalcon/Html/Tag.zep", 1235); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "The 'using' parameter is not a valid array", "phalcon/Html/Tag.zep", 1222); return; } } @@ -2943,7 +2925,7 @@ PHP_METHOD(Phalcon_Html_Tag, select) { zephir_check_call_status(); zephir_concat_self(&output, &_15$$11 TSRMLS_CC); } else { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "Invalid data provided to SELECT helper", "phalcon/Html/Tag.zep", 1276); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "Invalid data provided to SELECT helper", "phalcon/Html/Tag.zep", 1263); return; } zephir_concat_self_str(&output, SL("") TSRMLS_CC); @@ -2998,7 +2980,7 @@ PHP_METHOD(Phalcon_Html_Tag, setAttribute) { _0$$3 = Z_TYPE_P(value) == IS_OBJECT; } if (UNEXPECTED(_0$$3)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "Only scalar values can be assigned to UI components", "phalcon/Html/Tag.zep", 1305); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "Only scalar values can be assigned to UI components", "phalcon/Html/Tag.zep", 1292); return; } } @@ -3061,24 +3043,6 @@ PHP_METHOD(Phalcon_Html_Tag, setAttributes) { } -/** - * Sets the dependency injector - */ -PHP_METHOD(Phalcon_Html_Tag, setDI) { - - zval *container, container_sub; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&container_sub); - - zephir_fetch_params_without_memory_grow(1, 0, &container); - - - - zephir_update_property_zval(this_ptr, SL("container"), container); - -} - /** * Set the document type of content */ @@ -3417,10 +3381,10 @@ PHP_METHOD(Phalcon_Html_Tag, textArea) { zephir_array_update_string(¶meters, SL("name"), &_3, PH_COPY | PH_SEPARATE); if (zephir_array_isset_string(¶meters, SL("value"))) { ZEPHIR_OBS_VAR(&content); - zephir_array_fetch_string(&content, ¶meters, SL("value"), PH_NOISY, "phalcon/Html/Tag.zep", 1509 TSRMLS_CC); + zephir_array_fetch_string(&content, ¶meters, SL("value"), PH_NOISY, "phalcon/Html/Tag.zep", 1488 TSRMLS_CC); zephir_array_unset_string(¶meters, SL("value"), PH_SEPARATE); } else { - zephir_array_fetch_string(&_4$$4, ¶meters, SL("id"), PH_NOISY | PH_READONLY, "phalcon/Html/Tag.zep", 1513 TSRMLS_CC); + zephir_array_fetch_string(&_4$$4, ¶meters, SL("id"), PH_NOISY | PH_READONLY, "phalcon/Html/Tag.zep", 1492 TSRMLS_CC); ZEPHIR_CALL_METHOD(&content, this_ptr, "getvalue", NULL, 0, &_4$$4, ¶meters); zephir_check_call_status(); } @@ -3486,7 +3450,7 @@ PHP_METHOD(Phalcon_Html_Tag, getService) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_1$$6, "__construct", NULL, 5, &_2$$6); zephir_check_call_status(); - zephir_throw_exception_debug(&_1$$6, "phalcon/Html/Tag.zep", 1544 TSRMLS_CC); + zephir_throw_exception_debug(&_1$$6, "phalcon/Html/Tag.zep", 1523 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3585,7 +3549,7 @@ PHP_METHOD(Phalcon_Html_Tag, renderAttributes) { zephir_check_call_status(); zephir_array_unset_string(&attrs, SL("escape"), PH_SEPARATE); ZEPHIR_CPY_WRT(&newCode, &code); - zephir_is_iterable(&attrs, 0, "phalcon/Html/Tag.zep", 1605); + zephir_is_iterable(&attrs, 0, "phalcon/Html/Tag.zep", 1584); if (Z_TYPE_P(&attrs) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&attrs), _3, _4, _1) { @@ -3615,7 +3579,7 @@ PHP_METHOD(Phalcon_Html_Tag, renderAttributes) { ZEPHIR_CONCAT_SVSVS(&_9$$5, "Value at index: '", &key, "' type: '", &_8$$5, "' cannot be rendered"); ZEPHIR_CALL_METHOD(NULL, &_7$$5, "__construct", &_10, 5, &_9$$5); zephir_check_call_status(); - zephir_throw_exception_debug(&_7$$5, "phalcon/Html/Tag.zep", 1592 TSRMLS_CC); + zephir_throw_exception_debug(&_7$$5, "phalcon/Html/Tag.zep", 1571 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3661,7 +3625,7 @@ PHP_METHOD(Phalcon_Html_Tag, renderAttributes) { ZEPHIR_CONCAT_SVSVS(&_17$$10, "Value at index: '", &key, "' type: '", &_16$$10, "' cannot be rendered"); ZEPHIR_CALL_METHOD(NULL, &_15$$10, "__construct", &_10, 5, &_17$$10); zephir_check_call_status(); - zephir_throw_exception_debug(&_15$$10, "phalcon/Html/Tag.zep", 1592 TSRMLS_CC); + zephir_throw_exception_debug(&_15$$10, "phalcon/Html/Tag.zep", 1571 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3922,7 +3886,7 @@ PHP_METHOD(Phalcon_Html_Tag, renderSelectArray) { ZEPHIR_INIT_VAR(&output); ZVAL_STRING(&output, ""); - zephir_is_iterable(&options, 0, "phalcon/Html/Tag.zep", 1736); + zephir_is_iterable(&options, 0, "phalcon/Html/Tag.zep", 1715); if (Z_TYPE_P(&options) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&options), _2, _3, _0) { @@ -4090,9 +4054,9 @@ PHP_METHOD(Phalcon_Html_Tag, renderSelectResultset) { ZVAL_STRING(&output, ""); if (Z_TYPE_P(using) == IS_ARRAY) { ZEPHIR_OBS_VAR(&optionValue); - zephir_array_fetch_long(&optionValue, using, 0, PH_NOISY, "phalcon/Html/Tag.zep", 1756 TSRMLS_CC); + zephir_array_fetch_long(&optionValue, using, 0, PH_NOISY, "phalcon/Html/Tag.zep", 1735 TSRMLS_CC); ZEPHIR_OBS_VAR(&optionText); - zephir_array_fetch_long(&optionText, using, 1, PH_NOISY, "phalcon/Html/Tag.zep", 1757 TSRMLS_CC); + zephir_array_fetch_long(&optionText, using, 1, PH_NOISY, "phalcon/Html/Tag.zep", 1736 TSRMLS_CC); } _1 = zephir_get_iterator(resultset TSRMLS_CC); _1->funcs->rewind(_1 TSRMLS_CC); @@ -4117,12 +4081,12 @@ PHP_METHOD(Phalcon_Html_Tag, renderSelectResultset) { } } else { if (UNEXPECTED(Z_TYPE_P(&option) != IS_ARRAY)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "Resultset returned an invalid value", "phalcon/Html/Tag.zep", 1775); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "Resultset returned an invalid value", "phalcon/Html/Tag.zep", 1754); return; } - zephir_array_fetch(&_4$$9, &option, &optionValue, PH_NOISY | PH_READONLY, "phalcon/Html/Tag.zep", 1778 TSRMLS_CC); + zephir_array_fetch(&_4$$9, &option, &optionValue, PH_NOISY | PH_READONLY, "phalcon/Html/Tag.zep", 1757 TSRMLS_CC); ZEPHIR_CPY_WRT(&optionValue, &_4$$9); - zephir_array_fetch(&_4$$9, &option, &optionText, PH_NOISY | PH_READONLY, "phalcon/Html/Tag.zep", 1779 TSRMLS_CC); + zephir_array_fetch(&_4$$9, &option, &optionText, PH_NOISY | PH_READONLY, "phalcon/Html/Tag.zep", 1758 TSRMLS_CC); ZEPHIR_CPY_WRT(&optionText, &_4$$9); } ZEPHIR_CALL_METHOD(&_5$$5, &escaper, "escapehtmlattr", &_6, 0, &optionValue); diff --git a/ext/phalcon/html/tag.zep.h b/ext/phalcon/html/tag.zep.h index 95c0a8e60f2..d3c09526d03 100644 --- a/ext/phalcon/html/tag.zep.h +++ b/ext/phalcon/html/tag.zep.h @@ -12,7 +12,6 @@ PHP_METHOD(Phalcon_Html_Tag, elementClose); PHP_METHOD(Phalcon_Html_Tag, endForm); PHP_METHOD(Phalcon_Html_Tag, form); PHP_METHOD(Phalcon_Html_Tag, friendlyTitle); -PHP_METHOD(Phalcon_Html_Tag, getDI); PHP_METHOD(Phalcon_Html_Tag, getDocType); PHP_METHOD(Phalcon_Html_Tag, getTitle); PHP_METHOD(Phalcon_Html_Tag, getTitleSeparator); @@ -47,7 +46,6 @@ PHP_METHOD(Phalcon_Html_Tag, reset); PHP_METHOD(Phalcon_Html_Tag, select); PHP_METHOD(Phalcon_Html_Tag, setAttribute); PHP_METHOD(Phalcon_Html_Tag, setAttributes); -PHP_METHOD(Phalcon_Html_Tag, setDI); PHP_METHOD(Phalcon_Html_Tag, setDocType); PHP_METHOD(Phalcon_Html_Tag, setTitle); PHP_METHOD(Phalcon_Html_Tag, setTitleSeparator); @@ -153,13 +151,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_html_tag_friendlytitle, ZEND_ARG_ARRAY_INFO(0, parameters, 0) ZEND_END_ARG_INFO() -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_html_tag_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_html_tag_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) -#endif -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_html_tag_getdoctype, 0, 0, IS_STRING, 0) #else @@ -594,10 +585,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_html_tag_setattributes, #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_html_tag_setdi, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_html_tag_setdoctype, 0, 1, Phalcon\\Html\\Tag, 0) #else @@ -781,7 +768,6 @@ ZEPHIR_INIT_FUNCS(phalcon_html_tag_method_entry) { PHP_ME(Phalcon_Html_Tag, endForm, arginfo_phalcon_html_tag_endform, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Html_Tag, form, arginfo_phalcon_html_tag_form, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Html_Tag, friendlyTitle, arginfo_phalcon_html_tag_friendlytitle, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Html_Tag, getDI, arginfo_phalcon_html_tag_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Html_Tag, getDocType, arginfo_phalcon_html_tag_getdoctype, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Html_Tag, getTitle, arginfo_phalcon_html_tag_gettitle, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Html_Tag, getTitleSeparator, arginfo_phalcon_html_tag_gettitleseparator, ZEND_ACC_PUBLIC) @@ -816,7 +802,6 @@ ZEPHIR_INIT_FUNCS(phalcon_html_tag_method_entry) { PHP_ME(Phalcon_Html_Tag, select, arginfo_phalcon_html_tag_select, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Html_Tag, setAttribute, arginfo_phalcon_html_tag_setattribute, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Html_Tag, setAttributes, arginfo_phalcon_html_tag_setattributes, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Html_Tag, setDI, arginfo_phalcon_html_tag_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Html_Tag, setDocType, arginfo_phalcon_html_tag_setdoctype, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Html_Tag, setTitle, arginfo_phalcon_html_tag_settitle, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Html_Tag, setTitleSeparator, arginfo_phalcon_html_tag_settitleseparator, ZEND_ACC_PUBLIC) diff --git a/ext/phalcon/http/cookie.zep.c b/ext/phalcon/http/cookie.zep.c index b0851b26542..d10207ef283 100644 --- a/ext/phalcon/http/cookie.zep.c +++ b/ext/phalcon/http/cookie.zep.c @@ -36,9 +36,7 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Http_Cookie) { - ZEPHIR_REGISTER_CLASS(Phalcon\\Http, Cookie, phalcon, http_cookie, phalcon_http_cookie_method_entry, 0); - - zend_declare_property_null(phalcon_http_cookie_ce, SL("container"), ZEND_ACC_PROTECTED TSRMLS_CC); + ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Http, Cookie, phalcon, http_cookie, phalcon_di_abstractinjectionaware_ce, phalcon_http_cookie_method_entry, 0); zend_declare_property_null(phalcon_http_cookie_ce, SL("domain"), ZEND_ACC_PROTECTED TSRMLS_CC); @@ -69,7 +67,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Http_Cookie) { zend_declare_property_null(phalcon_http_cookie_ce, SL("value"), ZEND_ACC_PROTECTED TSRMLS_CC); zend_class_implements(phalcon_http_cookie_ce TSRMLS_CC, 1, phalcon_http_cookieinterface_ce); - zend_class_implements(phalcon_http_cookie_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); return SUCCESS; } @@ -251,18 +248,6 @@ PHP_METHOD(Phalcon_Http_Cookie, delete) { } -/** - * Returns the internal dependency injector - */ -PHP_METHOD(Phalcon_Http_Cookie, getDI) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "container"); - -} - /** * Returns the domain that the cookie is available to */ @@ -473,7 +458,7 @@ PHP_METHOD(Phalcon_Http_Cookie, getValue) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_4$$7, "__construct", NULL, 5, &_5$$7); zephir_check_call_status(); - zephir_throw_exception_debug(&_4$$7, "phalcon/Http/Cookie.zep", 234 TSRMLS_CC); + zephir_throw_exception_debug(&_4$$7, "phalcon/Http/Cookie.zep", 224 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -483,7 +468,7 @@ PHP_METHOD(Phalcon_Http_Cookie, getValue) { zephir_check_call_status(); ZEPHIR_CPY_WRT(&crypt, &_8$$6); if (UNEXPECTED(Z_TYPE_P(&crypt) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_response_exception_ce, "A dependency which implements CryptInterface is required to use encryption", "phalcon/Http/Cookie.zep", 242); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_response_exception_ce, "A dependency which implements CryptInterface is required to use encryption", "phalcon/Http/Cookie.zep", 232); return; } zephir_read_property(&_3$$6, this_ptr, SL("signKey"), PH_NOISY_CC | PH_READONLY); @@ -515,7 +500,7 @@ PHP_METHOD(Phalcon_Http_Cookie, getValue) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_12$$15, "__construct", NULL, 5, &_13$$15); zephir_check_call_status(); - zephir_throw_exception_debug(&_12$$15, "phalcon/Http/Cookie.zep", 285 TSRMLS_CC); + zephir_throw_exception_debug(&_12$$15, "phalcon/Http/Cookie.zep", 275 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -697,7 +682,7 @@ PHP_METHOD(Phalcon_Http_Cookie, send) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 5, &_2$$3); zephir_check_call_status(); - zephir_throw_exception_debug(&_1$$3, "phalcon/Http/Cookie.zep", 387 TSRMLS_CC); + zephir_throw_exception_debug(&_1$$3, "phalcon/Http/Cookie.zep", 377 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -748,7 +733,7 @@ PHP_METHOD(Phalcon_Http_Cookie, send) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_9$$12, "__construct", NULL, 5, &_10$$12); zephir_check_call_status(); - zephir_throw_exception_debug(&_9$$12, "phalcon/Http/Cookie.zep", 432 TSRMLS_CC); + zephir_throw_exception_debug(&_9$$12, "phalcon/Http/Cookie.zep", 422 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -758,7 +743,7 @@ PHP_METHOD(Phalcon_Http_Cookie, send) { zephir_check_call_status(); ZEPHIR_CPY_WRT(&crypt, &_12$$11); if (UNEXPECTED(Z_TYPE_P(&crypt) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_response_exception_ce, "A dependency which implements CryptInterface is required to use encryption", "phalcon/Http/Cookie.zep", 440); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_response_exception_ce, "A dependency which implements CryptInterface is required to use encryption", "phalcon/Http/Cookie.zep", 430); return; } zephir_read_property(&_14$$11, this_ptr, SL("signKey"), PH_NOISY_CC | PH_READONLY); @@ -781,24 +766,6 @@ PHP_METHOD(Phalcon_Http_Cookie, send) { } -/** - * Sets the dependency injector - */ -PHP_METHOD(Phalcon_Http_Cookie, setDI) { - - zval *container, container_sub; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&container_sub); - - zephir_fetch_params_without_memory_grow(1, 0, &container); - - - - zephir_update_property_zval(this_ptr, SL("container"), container); - -} - /** * Sets the domain that the cookie is available to */ @@ -1118,7 +1085,7 @@ PHP_METHOD(Phalcon_Http_Cookie, assertSignKeyIsLongEnough) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 5, &_2$$3); zephir_check_call_status(); - zephir_throw_exception_debug(&_0$$3, "phalcon/Http/Cookie.zep", 611 TSRMLS_CC); + zephir_throw_exception_debug(&_0$$3, "phalcon/Http/Cookie.zep", 593 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } diff --git a/ext/phalcon/http/cookie.zep.h b/ext/phalcon/http/cookie.zep.h index 4b098f85fb5..8deaed0937d 100644 --- a/ext/phalcon/http/cookie.zep.h +++ b/ext/phalcon/http/cookie.zep.h @@ -6,7 +6,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Http_Cookie); PHP_METHOD(Phalcon_Http_Cookie, __construct); PHP_METHOD(Phalcon_Http_Cookie, __toString); PHP_METHOD(Phalcon_Http_Cookie, delete); -PHP_METHOD(Phalcon_Http_Cookie, getDI); PHP_METHOD(Phalcon_Http_Cookie, getDomain); PHP_METHOD(Phalcon_Http_Cookie, getExpiration); PHP_METHOD(Phalcon_Http_Cookie, getHttpOnly); @@ -17,7 +16,6 @@ PHP_METHOD(Phalcon_Http_Cookie, getValue); PHP_METHOD(Phalcon_Http_Cookie, isUsingEncryption); PHP_METHOD(Phalcon_Http_Cookie, restore); PHP_METHOD(Phalcon_Http_Cookie, send); -PHP_METHOD(Phalcon_Http_Cookie, setDI); PHP_METHOD(Phalcon_Http_Cookie, setDomain); PHP_METHOD(Phalcon_Http_Cookie, setExpiration); PHP_METHOD(Phalcon_Http_Cookie, setHttpOnly); @@ -69,13 +67,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_cookie___tostring, #endif ZEND_END_ARG_INFO() -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_http_cookie_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_cookie_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) -#endif -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_cookie_getdomain, 0, 0, IS_STRING, 0) #else @@ -144,10 +135,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_cookie_send, 0, 0, #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_http_cookie_setdi, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_http_cookie_setdomain, 0, 1, Phalcon\\Http\\CookieInterface, 0) #else @@ -252,7 +239,6 @@ ZEPHIR_INIT_FUNCS(phalcon_http_cookie_method_entry) { PHP_ME(Phalcon_Http_Cookie, __construct, arginfo_phalcon_http_cookie___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) PHP_ME(Phalcon_Http_Cookie, __toString, arginfo_phalcon_http_cookie___tostring, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Cookie, delete, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Http_Cookie, getDI, arginfo_phalcon_http_cookie_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Cookie, getDomain, arginfo_phalcon_http_cookie_getdomain, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Cookie, getExpiration, arginfo_phalcon_http_cookie_getexpiration, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Cookie, getHttpOnly, arginfo_phalcon_http_cookie_gethttponly, ZEND_ACC_PUBLIC) @@ -263,7 +249,6 @@ ZEPHIR_INIT_FUNCS(phalcon_http_cookie_method_entry) { PHP_ME(Phalcon_Http_Cookie, isUsingEncryption, arginfo_phalcon_http_cookie_isusingencryption, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Cookie, restore, arginfo_phalcon_http_cookie_restore, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Cookie, send, arginfo_phalcon_http_cookie_send, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Http_Cookie, setDI, arginfo_phalcon_http_cookie_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Cookie, setDomain, arginfo_phalcon_http_cookie_setdomain, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Cookie, setExpiration, arginfo_phalcon_http_cookie_setexpiration, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Cookie, setHttpOnly, arginfo_phalcon_http_cookie_sethttponly, ZEND_ACC_PUBLIC) diff --git a/ext/phalcon/http/request.zep.c b/ext/phalcon/http/request.zep.c index acd14433f85..e07f212d179 100644 --- a/ext/phalcon/http/request.zep.c +++ b/ext/phalcon/http/request.zep.c @@ -60,9 +60,7 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Http_Request) { - ZEPHIR_REGISTER_CLASS(Phalcon\\Http, Request, phalcon, http_request, phalcon_http_request_method_entry, 0); - - zend_declare_property_null(phalcon_http_request_ce, SL("container"), ZEND_ACC_PRIVATE TSRMLS_CC); + ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Http, Request, phalcon, http_request, phalcon_di_abstractinjectionaware_ce, phalcon_http_request_method_entry, 0); zend_declare_property_null(phalcon_http_request_ce, SL("filterService"), ZEND_ACC_PRIVATE TSRMLS_CC); @@ -88,7 +86,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Http_Request) { phalcon_http_request_ce->create_object = zephir_init_properties_Phalcon_Http_Request; zend_class_implements(phalcon_http_request_ce TSRMLS_CC, 1, phalcon_http_requestinterface_ce); - zend_class_implements(phalcon_http_request_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); return SUCCESS; } @@ -413,10 +410,10 @@ PHP_METHOD(Phalcon_Http_Request, getClientAddress) { if (Z_TYPE_P(&address) != IS_STRING) { RETURN_MM_BOOL(0); } - if (zephir_memnstr_str(&address, SL(","), "phalcon/Http/Request.zep", 180)) { + if (zephir_memnstr_str(&address, SL(","), "phalcon/Http/Request.zep", 178)) { ZEPHIR_INIT_VAR(&_0$$7); zephir_fast_explode_str(&_0$$7, SL(","), &address, LONG_MAX TSRMLS_CC); - zephir_array_fetch_long(&_1$$7, &_0$$7, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 185 TSRMLS_CC); + zephir_array_fetch_long(&_1$$7, &_0$$7, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 183 TSRMLS_CC); RETURN_CTOR(&_1$$7); } RETURN_CCTOR(&address); @@ -473,18 +470,6 @@ PHP_METHOD(Phalcon_Http_Request, getContentType) { } -/** - * Returns the internal dependency injector - */ -PHP_METHOD(Phalcon_Http_Request, getDI) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "container"); - -} - /** * Gets auth info accepted by the browser/client from * $_SERVER["PHP_AUTH_DIGEST"] @@ -531,15 +516,15 @@ PHP_METHOD(Phalcon_Http_Request, getDigestAuth) { RETURN_CTOR(&auth); } if (Z_TYPE_P(&matches) == IS_ARRAY) { - zephir_is_iterable(&matches, 0, "phalcon/Http/Request.zep", 248); + zephir_is_iterable(&matches, 0, "phalcon/Http/Request.zep", 237); if (Z_TYPE_P(&matches) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&matches), _3$$5) { ZEPHIR_INIT_NVAR(&match); ZVAL_COPY(&match, _3$$5); - zephir_array_fetch_long(&_5$$6, &match, 3, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 246 TSRMLS_CC); + zephir_array_fetch_long(&_5$$6, &match, 3, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 235 TSRMLS_CC); ZEPHIR_OBS_NVAR(&_6$$6); - zephir_array_fetch_long(&_6$$6, &match, 1, PH_NOISY, "phalcon/Http/Request.zep", 246 TSRMLS_CC); + zephir_array_fetch_long(&_6$$6, &match, 1, PH_NOISY, "phalcon/Http/Request.zep", 235 TSRMLS_CC); zephir_array_update_zval(&auth, &_6$$6, &_5$$6, PH_COPY | PH_SEPARATE); } ZEND_HASH_FOREACH_END(); } else { @@ -553,9 +538,9 @@ PHP_METHOD(Phalcon_Http_Request, getDigestAuth) { } ZEPHIR_CALL_METHOD(&match, &matches, "current", NULL, 0); zephir_check_call_status(); - zephir_array_fetch_long(&_7$$7, &match, 3, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 246 TSRMLS_CC); + zephir_array_fetch_long(&_7$$7, &match, 3, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 235 TSRMLS_CC); ZEPHIR_OBS_NVAR(&_8$$7); - zephir_array_fetch_long(&_8$$7, &match, 1, PH_NOISY, "phalcon/Http/Request.zep", 246 TSRMLS_CC); + zephir_array_fetch_long(&_8$$7, &match, 1, PH_NOISY, "phalcon/Http/Request.zep", 235 TSRMLS_CC); zephir_array_update_zval(&auth, &_8$$7, &_7$$7, PH_COPY | PH_SEPARATE); ZEPHIR_CALL_METHOD(NULL, &matches, "next", NULL, 0); zephir_check_call_status(); @@ -625,7 +610,7 @@ PHP_METHOD(Phalcon_Http_Request, getFilteredQuery) { ZEPHIR_OBS_VAR(&filters); zephir_read_property(&_0, this_ptr, SL("queryFilters"), PH_NOISY_CC | PH_READONLY); - zephir_array_fetch_string(&_1, &_0, SL("get"), PH_READONLY, "phalcon/Http/Request.zep", 261 TSRMLS_CC); + zephir_array_fetch_string(&_1, &_0, SL("get"), PH_READONLY, "phalcon/Http/Request.zep", 250 TSRMLS_CC); if (!(zephir_array_isset_fetch(&filters, &_1, &name, 0 TSRMLS_CC))) { ZEPHIR_INIT_NVAR(&filters); array_init(&filters); @@ -703,7 +688,7 @@ PHP_METHOD(Phalcon_Http_Request, getFilteredPost) { ZEPHIR_OBS_VAR(&filters); zephir_read_property(&_0, this_ptr, SL("queryFilters"), PH_NOISY_CC | PH_READONLY); - zephir_array_fetch_string(&_1, &_0, SL("post"), PH_READONLY, "phalcon/Http/Request.zep", 281 TSRMLS_CC); + zephir_array_fetch_string(&_1, &_0, SL("post"), PH_READONLY, "phalcon/Http/Request.zep", 270 TSRMLS_CC); if (!(zephir_array_isset_fetch(&filters, &_1, &name, 0 TSRMLS_CC))) { ZEPHIR_INIT_NVAR(&filters); array_init(&filters); @@ -781,7 +766,7 @@ PHP_METHOD(Phalcon_Http_Request, getFilteredPut) { ZEPHIR_OBS_VAR(&filters); zephir_read_property(&_0, this_ptr, SL("queryFilters"), PH_NOISY_CC | PH_READONLY); - zephir_array_fetch_string(&_1, &_0, SL("put"), PH_READONLY, "phalcon/Http/Request.zep", 301 TSRMLS_CC); + zephir_array_fetch_string(&_1, &_0, SL("put"), PH_READONLY, "phalcon/Http/Request.zep", 290 TSRMLS_CC); if (!(zephir_array_isset_fetch(&filters, &_1, &name, 0 TSRMLS_CC))) { ZEPHIR_INIT_NVAR(&filters); array_init(&filters); @@ -941,7 +926,7 @@ PHP_METHOD(Phalcon_Http_Request, getHeaders) { zephir_array_update_string(&contentHeaders, SL("CONTENT_MD5"), &__$true, PH_COPY | PH_SEPARATE); ZEPHIR_CALL_METHOD(&server, this_ptr, "getserverarray", NULL, 348); zephir_check_call_status(); - zephir_is_iterable(&server, 0, "phalcon/Http/Request.zep", 402); + zephir_is_iterable(&server, 0, "phalcon/Http/Request.zep", 391); if (Z_TYPE_P(&server) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&server), _2, _3, _0) { @@ -1165,7 +1150,7 @@ PHP_METHOD(Phalcon_Http_Request, getHttpHost) { zephir_fast_trim(&_4$$5, &host, NULL , ZEPHIR_TRIM_BOTH TSRMLS_CC); ZEPHIR_INIT_NVAR(&host); zephir_fast_strtolower(&host, &_4$$5); - if (zephir_memnstr_str(&host, SL(":"), "phalcon/Http/Request.zep", 476)) { + if (zephir_memnstr_str(&host, SL(":"), "phalcon/Http/Request.zep", 465)) { ZEPHIR_INIT_VAR(&_5$$6); ZVAL_STRING(&_5$$6, "/:[[:digit:]]+$/"); ZEPHIR_INIT_VAR(&_6$$6); @@ -1189,7 +1174,7 @@ PHP_METHOD(Phalcon_Http_Request, getHttpHost) { ZEPHIR_CONCAT_SV(&_13$$7, "Invalid host ", &host); ZEPHIR_CALL_METHOD(NULL, &_12$$7, "__construct", NULL, 349, &_13$$7); zephir_check_call_status(); - zephir_throw_exception_debug(&_12$$7, "phalcon/Http/Request.zep", 486 TSRMLS_CC); + zephir_throw_exception_debug(&_12$$7, "phalcon/Http/Request.zep", 475 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1390,7 +1375,7 @@ PHP_METHOD(Phalcon_Http_Request, getPort) { zephir_check_call_status(); RETURN_MM_LONG(zephir_get_intval(&_1$$3)); } - if (zephir_memnstr_str(&host, SL(":"), "phalcon/Http/Request.zep", 593)) { + if (zephir_memnstr_str(&host, SL(":"), "phalcon/Http/Request.zep", 582)) { ZEPHIR_INIT_VAR(&_3$$4); ZVAL_STRING(&_3$$4, ":"); ZEPHIR_CALL_FUNCTION(&pos, "strrpos", NULL, 170, &host, &_3$$4); @@ -1960,7 +1945,7 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { array_init(&files); ZEPHIR_CPY_WRT(&superFiles, &_FILES); if (zephir_fast_count_int(&superFiles TSRMLS_CC) > 0) { - zephir_is_iterable(&superFiles, 0, "phalcon/Http/Request.zep", 842); + zephir_is_iterable(&superFiles, 0, "phalcon/Http/Request.zep", 831); if (Z_TYPE_P(&superFiles) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&superFiles), _2$$3, _3$$3, _0$$3) { @@ -1973,16 +1958,16 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { ZEPHIR_INIT_NVAR(&input); ZVAL_COPY(&input, _0$$3); ZEPHIR_OBS_NVAR(&_4$$4); - zephir_array_fetch_string(&_4$$4, &input, SL("name"), PH_NOISY, "phalcon/Http/Request.zep", 799 TSRMLS_CC); + zephir_array_fetch_string(&_4$$4, &input, SL("name"), PH_NOISY, "phalcon/Http/Request.zep", 788 TSRMLS_CC); if (Z_TYPE_P(&_4$$4) == IS_ARRAY) { - zephir_array_fetch_string(&_5$$5, &input, SL("name"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 801 TSRMLS_CC); - zephir_array_fetch_string(&_6$$5, &input, SL("type"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 802 TSRMLS_CC); - zephir_array_fetch_string(&_7$$5, &input, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 803 TSRMLS_CC); - zephir_array_fetch_string(&_8$$5, &input, SL("size"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 804 TSRMLS_CC); - zephir_array_fetch_string(&_9$$5, &input, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 805 TSRMLS_CC); + zephir_array_fetch_string(&_5$$5, &input, SL("name"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 790 TSRMLS_CC); + zephir_array_fetch_string(&_6$$5, &input, SL("type"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 791 TSRMLS_CC); + zephir_array_fetch_string(&_7$$5, &input, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 792 TSRMLS_CC); + zephir_array_fetch_string(&_8$$5, &input, SL("size"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 793 TSRMLS_CC); + zephir_array_fetch_string(&_9$$5, &input, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 794 TSRMLS_CC); ZEPHIR_CALL_METHOD(&smoothInput, this_ptr, "smoothfiles", &_10, 353, &_5$$5, &_6$$5, &_7$$5, &_8$$5, &_9$$5, &prefix); zephir_check_call_status(); - zephir_is_iterable(&smoothInput, 0, "phalcon/Http/Request.zep", 832); + zephir_is_iterable(&smoothInput, 0, "phalcon/Http/Request.zep", 821); if (Z_TYPE_P(&smoothInput) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&smoothInput), _11$$5) { @@ -1990,43 +1975,43 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { ZVAL_COPY(&file, _11$$5); _13$$6 = onlySuccessful == 0; if (!(_13$$6)) { - zephir_array_fetch_string(&_14$$6, &file, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 810 TSRMLS_CC); + zephir_array_fetch_string(&_14$$6, &file, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 799 TSRMLS_CC); _13$$6 = ZEPHIR_IS_LONG(&_14$$6, 0); } if (_13$$6) { ZEPHIR_INIT_NVAR(&dataFile); zephir_create_array(&dataFile, 5, 0 TSRMLS_CC); ZEPHIR_OBS_NVAR(&_15$$7); - zephir_array_fetch_string(&_15$$7, &file, SL("name"), PH_NOISY, "phalcon/Http/Request.zep", 812 TSRMLS_CC); + zephir_array_fetch_string(&_15$$7, &file, SL("name"), PH_NOISY, "phalcon/Http/Request.zep", 801 TSRMLS_CC); zephir_array_update_string(&dataFile, SL("name"), &_15$$7, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_15$$7); - zephir_array_fetch_string(&_15$$7, &file, SL("type"), PH_NOISY, "phalcon/Http/Request.zep", 813 TSRMLS_CC); + zephir_array_fetch_string(&_15$$7, &file, SL("type"), PH_NOISY, "phalcon/Http/Request.zep", 802 TSRMLS_CC); zephir_array_update_string(&dataFile, SL("type"), &_15$$7, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_15$$7); - zephir_array_fetch_string(&_15$$7, &file, SL("tmp_name"), PH_NOISY, "phalcon/Http/Request.zep", 814 TSRMLS_CC); + zephir_array_fetch_string(&_15$$7, &file, SL("tmp_name"), PH_NOISY, "phalcon/Http/Request.zep", 803 TSRMLS_CC); zephir_array_update_string(&dataFile, SL("tmp_name"), &_15$$7, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_15$$7); - zephir_array_fetch_string(&_15$$7, &file, SL("size"), PH_NOISY, "phalcon/Http/Request.zep", 815 TSRMLS_CC); + zephir_array_fetch_string(&_15$$7, &file, SL("size"), PH_NOISY, "phalcon/Http/Request.zep", 804 TSRMLS_CC); zephir_array_update_string(&dataFile, SL("size"), &_15$$7, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_15$$7); - zephir_array_fetch_string(&_15$$7, &file, SL("error"), PH_NOISY, "phalcon/Http/Request.zep", 817 TSRMLS_CC); + zephir_array_fetch_string(&_15$$7, &file, SL("error"), PH_NOISY, "phalcon/Http/Request.zep", 806 TSRMLS_CC); zephir_array_update_string(&dataFile, SL("error"), &_15$$7, PH_COPY | PH_SEPARATE); if (namedKeys == 1) { ZEPHIR_INIT_NVAR(&_16$$8); object_init_ex(&_16$$8, phalcon_http_request_file_ce); - zephir_array_fetch_string(&_17$$8, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 823 TSRMLS_CC); + zephir_array_fetch_string(&_17$$8, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 812 TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, &_16$$8, "__construct", &_18, 354, &dataFile, &_17$$8); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&_19$$8); - zephir_array_fetch_string(&_19$$8, &file, SL("key"), PH_NOISY, "phalcon/Http/Request.zep", 820 TSRMLS_CC); + zephir_array_fetch_string(&_19$$8, &file, SL("key"), PH_NOISY, "phalcon/Http/Request.zep", 809 TSRMLS_CC); zephir_array_update_zval(&files, &_19$$8, &_16$$8, PH_COPY | PH_SEPARATE); } else { ZEPHIR_INIT_NVAR(&_20$$9); object_init_ex(&_20$$9, phalcon_http_request_file_ce); - zephir_array_fetch_string(&_21$$9, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 828 TSRMLS_CC); + zephir_array_fetch_string(&_21$$9, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 817 TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, &_20$$9, "__construct", &_18, 354, &dataFile, &_21$$9); zephir_check_call_status(); - zephir_array_append(&files, &_20$$9, PH_SEPARATE, "phalcon/Http/Request.zep", 828); + zephir_array_append(&files, &_20$$9, PH_SEPARATE, "phalcon/Http/Request.zep", 817); } } } ZEND_HASH_FOREACH_END(); @@ -2043,44 +2028,44 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { zephir_check_call_status(); _22$$10 = onlySuccessful == 0; if (!(_22$$10)) { - zephir_array_fetch_string(&_23$$10, &file, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 810 TSRMLS_CC); + zephir_array_fetch_string(&_23$$10, &file, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 799 TSRMLS_CC); _22$$10 = ZEPHIR_IS_LONG(&_23$$10, 0); } if (_22$$10) { ZEPHIR_INIT_NVAR(&_24$$11); zephir_create_array(&_24$$11, 5, 0 TSRMLS_CC); ZEPHIR_OBS_NVAR(&_25$$11); - zephir_array_fetch_string(&_25$$11, &file, SL("name"), PH_NOISY, "phalcon/Http/Request.zep", 812 TSRMLS_CC); + zephir_array_fetch_string(&_25$$11, &file, SL("name"), PH_NOISY, "phalcon/Http/Request.zep", 801 TSRMLS_CC); zephir_array_update_string(&_24$$11, SL("name"), &_25$$11, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_25$$11); - zephir_array_fetch_string(&_25$$11, &file, SL("type"), PH_NOISY, "phalcon/Http/Request.zep", 813 TSRMLS_CC); + zephir_array_fetch_string(&_25$$11, &file, SL("type"), PH_NOISY, "phalcon/Http/Request.zep", 802 TSRMLS_CC); zephir_array_update_string(&_24$$11, SL("type"), &_25$$11, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_25$$11); - zephir_array_fetch_string(&_25$$11, &file, SL("tmp_name"), PH_NOISY, "phalcon/Http/Request.zep", 814 TSRMLS_CC); + zephir_array_fetch_string(&_25$$11, &file, SL("tmp_name"), PH_NOISY, "phalcon/Http/Request.zep", 803 TSRMLS_CC); zephir_array_update_string(&_24$$11, SL("tmp_name"), &_25$$11, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_25$$11); - zephir_array_fetch_string(&_25$$11, &file, SL("size"), PH_NOISY, "phalcon/Http/Request.zep", 815 TSRMLS_CC); + zephir_array_fetch_string(&_25$$11, &file, SL("size"), PH_NOISY, "phalcon/Http/Request.zep", 804 TSRMLS_CC); zephir_array_update_string(&_24$$11, SL("size"), &_25$$11, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_25$$11); - zephir_array_fetch_string(&_25$$11, &file, SL("error"), PH_NOISY, "phalcon/Http/Request.zep", 817 TSRMLS_CC); + zephir_array_fetch_string(&_25$$11, &file, SL("error"), PH_NOISY, "phalcon/Http/Request.zep", 806 TSRMLS_CC); zephir_array_update_string(&_24$$11, SL("error"), &_25$$11, PH_COPY | PH_SEPARATE); ZEPHIR_CPY_WRT(&dataFile, &_24$$11); if (namedKeys == 1) { ZEPHIR_INIT_NVAR(&_26$$12); object_init_ex(&_26$$12, phalcon_http_request_file_ce); - zephir_array_fetch_string(&_27$$12, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 823 TSRMLS_CC); + zephir_array_fetch_string(&_27$$12, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 812 TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, &_26$$12, "__construct", &_18, 354, &dataFile, &_27$$12); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&_28$$12); - zephir_array_fetch_string(&_28$$12, &file, SL("key"), PH_NOISY, "phalcon/Http/Request.zep", 820 TSRMLS_CC); + zephir_array_fetch_string(&_28$$12, &file, SL("key"), PH_NOISY, "phalcon/Http/Request.zep", 809 TSRMLS_CC); zephir_array_update_zval(&files, &_28$$12, &_26$$12, PH_COPY | PH_SEPARATE); } else { ZEPHIR_INIT_NVAR(&_29$$13); object_init_ex(&_29$$13, phalcon_http_request_file_ce); - zephir_array_fetch_string(&_30$$13, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 828 TSRMLS_CC); + zephir_array_fetch_string(&_30$$13, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 817 TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, &_29$$13, "__construct", &_18, 354, &dataFile, &_30$$13); zephir_check_call_status(); - zephir_array_append(&files, &_29$$13, PH_SEPARATE, "phalcon/Http/Request.zep", 828); + zephir_array_append(&files, &_29$$13, PH_SEPARATE, "phalcon/Http/Request.zep", 817); } } ZEPHIR_CALL_METHOD(NULL, &smoothInput, "next", NULL, 0); @@ -2091,7 +2076,7 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { } else { _31$$14 = onlySuccessful == 0; if (!(_31$$14)) { - zephir_array_fetch_string(&_32$$14, &input, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 833 TSRMLS_CC); + zephir_array_fetch_string(&_32$$14, &input, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 822 TSRMLS_CC); _31$$14 = ZEPHIR_IS_LONG(&_32$$14, 0); } if (_31$$14) { @@ -2106,7 +2091,7 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { object_init_ex(&_34$$17, phalcon_http_request_file_ce); ZEPHIR_CALL_METHOD(NULL, &_34$$17, "__construct", &_18, 354, &input, &prefix); zephir_check_call_status(); - zephir_array_append(&files, &_34$$17, PH_SEPARATE, "phalcon/Http/Request.zep", 837); + zephir_array_append(&files, &_34$$17, PH_SEPARATE, "phalcon/Http/Request.zep", 826); } } } @@ -2125,16 +2110,16 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { ZEPHIR_CALL_METHOD(&input, &superFiles, "current", NULL, 0); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&_35$$18); - zephir_array_fetch_string(&_35$$18, &input, SL("name"), PH_NOISY, "phalcon/Http/Request.zep", 799 TSRMLS_CC); + zephir_array_fetch_string(&_35$$18, &input, SL("name"), PH_NOISY, "phalcon/Http/Request.zep", 788 TSRMLS_CC); if (Z_TYPE_P(&_35$$18) == IS_ARRAY) { - zephir_array_fetch_string(&_36$$19, &input, SL("name"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 801 TSRMLS_CC); - zephir_array_fetch_string(&_37$$19, &input, SL("type"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 802 TSRMLS_CC); - zephir_array_fetch_string(&_38$$19, &input, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 803 TSRMLS_CC); - zephir_array_fetch_string(&_39$$19, &input, SL("size"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 804 TSRMLS_CC); - zephir_array_fetch_string(&_40$$19, &input, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 805 TSRMLS_CC); + zephir_array_fetch_string(&_36$$19, &input, SL("name"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 790 TSRMLS_CC); + zephir_array_fetch_string(&_37$$19, &input, SL("type"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 791 TSRMLS_CC); + zephir_array_fetch_string(&_38$$19, &input, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 792 TSRMLS_CC); + zephir_array_fetch_string(&_39$$19, &input, SL("size"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 793 TSRMLS_CC); + zephir_array_fetch_string(&_40$$19, &input, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 794 TSRMLS_CC); ZEPHIR_CALL_METHOD(&smoothInput, this_ptr, "smoothfiles", &_10, 353, &_36$$19, &_37$$19, &_38$$19, &_39$$19, &_40$$19, &prefix); zephir_check_call_status(); - zephir_is_iterable(&smoothInput, 0, "phalcon/Http/Request.zep", 832); + zephir_is_iterable(&smoothInput, 0, "phalcon/Http/Request.zep", 821); if (Z_TYPE_P(&smoothInput) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&smoothInput), _41$$19) { @@ -2142,44 +2127,44 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { ZVAL_COPY(&file, _41$$19); _43$$20 = onlySuccessful == 0; if (!(_43$$20)) { - zephir_array_fetch_string(&_44$$20, &file, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 810 TSRMLS_CC); + zephir_array_fetch_string(&_44$$20, &file, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 799 TSRMLS_CC); _43$$20 = ZEPHIR_IS_LONG(&_44$$20, 0); } if (_43$$20) { ZEPHIR_INIT_NVAR(&_45$$21); zephir_create_array(&_45$$21, 5, 0 TSRMLS_CC); ZEPHIR_OBS_NVAR(&_46$$21); - zephir_array_fetch_string(&_46$$21, &file, SL("name"), PH_NOISY, "phalcon/Http/Request.zep", 812 TSRMLS_CC); + zephir_array_fetch_string(&_46$$21, &file, SL("name"), PH_NOISY, "phalcon/Http/Request.zep", 801 TSRMLS_CC); zephir_array_update_string(&_45$$21, SL("name"), &_46$$21, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_46$$21); - zephir_array_fetch_string(&_46$$21, &file, SL("type"), PH_NOISY, "phalcon/Http/Request.zep", 813 TSRMLS_CC); + zephir_array_fetch_string(&_46$$21, &file, SL("type"), PH_NOISY, "phalcon/Http/Request.zep", 802 TSRMLS_CC); zephir_array_update_string(&_45$$21, SL("type"), &_46$$21, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_46$$21); - zephir_array_fetch_string(&_46$$21, &file, SL("tmp_name"), PH_NOISY, "phalcon/Http/Request.zep", 814 TSRMLS_CC); + zephir_array_fetch_string(&_46$$21, &file, SL("tmp_name"), PH_NOISY, "phalcon/Http/Request.zep", 803 TSRMLS_CC); zephir_array_update_string(&_45$$21, SL("tmp_name"), &_46$$21, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_46$$21); - zephir_array_fetch_string(&_46$$21, &file, SL("size"), PH_NOISY, "phalcon/Http/Request.zep", 815 TSRMLS_CC); + zephir_array_fetch_string(&_46$$21, &file, SL("size"), PH_NOISY, "phalcon/Http/Request.zep", 804 TSRMLS_CC); zephir_array_update_string(&_45$$21, SL("size"), &_46$$21, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_46$$21); - zephir_array_fetch_string(&_46$$21, &file, SL("error"), PH_NOISY, "phalcon/Http/Request.zep", 817 TSRMLS_CC); + zephir_array_fetch_string(&_46$$21, &file, SL("error"), PH_NOISY, "phalcon/Http/Request.zep", 806 TSRMLS_CC); zephir_array_update_string(&_45$$21, SL("error"), &_46$$21, PH_COPY | PH_SEPARATE); ZEPHIR_CPY_WRT(&dataFile, &_45$$21); if (namedKeys == 1) { ZEPHIR_INIT_NVAR(&_47$$22); object_init_ex(&_47$$22, phalcon_http_request_file_ce); - zephir_array_fetch_string(&_48$$22, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 823 TSRMLS_CC); + zephir_array_fetch_string(&_48$$22, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 812 TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, &_47$$22, "__construct", &_18, 354, &dataFile, &_48$$22); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&_49$$22); - zephir_array_fetch_string(&_49$$22, &file, SL("key"), PH_NOISY, "phalcon/Http/Request.zep", 820 TSRMLS_CC); + zephir_array_fetch_string(&_49$$22, &file, SL("key"), PH_NOISY, "phalcon/Http/Request.zep", 809 TSRMLS_CC); zephir_array_update_zval(&files, &_49$$22, &_47$$22, PH_COPY | PH_SEPARATE); } else { ZEPHIR_INIT_NVAR(&_50$$23); object_init_ex(&_50$$23, phalcon_http_request_file_ce); - zephir_array_fetch_string(&_51$$23, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 828 TSRMLS_CC); + zephir_array_fetch_string(&_51$$23, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 817 TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, &_50$$23, "__construct", &_18, 354, &dataFile, &_51$$23); zephir_check_call_status(); - zephir_array_append(&files, &_50$$23, PH_SEPARATE, "phalcon/Http/Request.zep", 828); + zephir_array_append(&files, &_50$$23, PH_SEPARATE, "phalcon/Http/Request.zep", 817); } } } ZEND_HASH_FOREACH_END(); @@ -2196,44 +2181,44 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { zephir_check_call_status(); _52$$24 = onlySuccessful == 0; if (!(_52$$24)) { - zephir_array_fetch_string(&_53$$24, &file, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 810 TSRMLS_CC); + zephir_array_fetch_string(&_53$$24, &file, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 799 TSRMLS_CC); _52$$24 = ZEPHIR_IS_LONG(&_53$$24, 0); } if (_52$$24) { ZEPHIR_INIT_NVAR(&_54$$25); zephir_create_array(&_54$$25, 5, 0 TSRMLS_CC); ZEPHIR_OBS_NVAR(&_55$$25); - zephir_array_fetch_string(&_55$$25, &file, SL("name"), PH_NOISY, "phalcon/Http/Request.zep", 812 TSRMLS_CC); + zephir_array_fetch_string(&_55$$25, &file, SL("name"), PH_NOISY, "phalcon/Http/Request.zep", 801 TSRMLS_CC); zephir_array_update_string(&_54$$25, SL("name"), &_55$$25, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_55$$25); - zephir_array_fetch_string(&_55$$25, &file, SL("type"), PH_NOISY, "phalcon/Http/Request.zep", 813 TSRMLS_CC); + zephir_array_fetch_string(&_55$$25, &file, SL("type"), PH_NOISY, "phalcon/Http/Request.zep", 802 TSRMLS_CC); zephir_array_update_string(&_54$$25, SL("type"), &_55$$25, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_55$$25); - zephir_array_fetch_string(&_55$$25, &file, SL("tmp_name"), PH_NOISY, "phalcon/Http/Request.zep", 814 TSRMLS_CC); + zephir_array_fetch_string(&_55$$25, &file, SL("tmp_name"), PH_NOISY, "phalcon/Http/Request.zep", 803 TSRMLS_CC); zephir_array_update_string(&_54$$25, SL("tmp_name"), &_55$$25, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_55$$25); - zephir_array_fetch_string(&_55$$25, &file, SL("size"), PH_NOISY, "phalcon/Http/Request.zep", 815 TSRMLS_CC); + zephir_array_fetch_string(&_55$$25, &file, SL("size"), PH_NOISY, "phalcon/Http/Request.zep", 804 TSRMLS_CC); zephir_array_update_string(&_54$$25, SL("size"), &_55$$25, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_55$$25); - zephir_array_fetch_string(&_55$$25, &file, SL("error"), PH_NOISY, "phalcon/Http/Request.zep", 817 TSRMLS_CC); + zephir_array_fetch_string(&_55$$25, &file, SL("error"), PH_NOISY, "phalcon/Http/Request.zep", 806 TSRMLS_CC); zephir_array_update_string(&_54$$25, SL("error"), &_55$$25, PH_COPY | PH_SEPARATE); ZEPHIR_CPY_WRT(&dataFile, &_54$$25); if (namedKeys == 1) { ZEPHIR_INIT_NVAR(&_56$$26); object_init_ex(&_56$$26, phalcon_http_request_file_ce); - zephir_array_fetch_string(&_57$$26, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 823 TSRMLS_CC); + zephir_array_fetch_string(&_57$$26, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 812 TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, &_56$$26, "__construct", &_18, 354, &dataFile, &_57$$26); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&_58$$26); - zephir_array_fetch_string(&_58$$26, &file, SL("key"), PH_NOISY, "phalcon/Http/Request.zep", 820 TSRMLS_CC); + zephir_array_fetch_string(&_58$$26, &file, SL("key"), PH_NOISY, "phalcon/Http/Request.zep", 809 TSRMLS_CC); zephir_array_update_zval(&files, &_58$$26, &_56$$26, PH_COPY | PH_SEPARATE); } else { ZEPHIR_INIT_NVAR(&_59$$27); object_init_ex(&_59$$27, phalcon_http_request_file_ce); - zephir_array_fetch_string(&_60$$27, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 828 TSRMLS_CC); + zephir_array_fetch_string(&_60$$27, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 817 TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, &_59$$27, "__construct", &_18, 354, &dataFile, &_60$$27); zephir_check_call_status(); - zephir_array_append(&files, &_59$$27, PH_SEPARATE, "phalcon/Http/Request.zep", 828); + zephir_array_append(&files, &_59$$27, PH_SEPARATE, "phalcon/Http/Request.zep", 817); } } ZEPHIR_CALL_METHOD(NULL, &smoothInput, "next", NULL, 0); @@ -2244,7 +2229,7 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { } else { _61$$28 = onlySuccessful == 0; if (!(_61$$28)) { - zephir_array_fetch_string(&_62$$28, &input, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 833 TSRMLS_CC); + zephir_array_fetch_string(&_62$$28, &input, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 822 TSRMLS_CC); _61$$28 = ZEPHIR_IS_LONG(&_62$$28, 0); } if (_61$$28) { @@ -2259,7 +2244,7 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { object_init_ex(&_64$$31, phalcon_http_request_file_ce); ZEPHIR_CALL_METHOD(NULL, &_64$$31, "__construct", &_18, 354, &input, &prefix); zephir_check_call_status(); - zephir_array_append(&files, &_64$$31, PH_SEPARATE, "phalcon/Http/Request.zep", 837); + zephir_array_append(&files, &_64$$31, PH_SEPARATE, "phalcon/Http/Request.zep", 826); } } } @@ -2399,7 +2384,7 @@ PHP_METHOD(Phalcon_Http_Request, hasFiles) { if (Z_TYPE_P(&files) != IS_ARRAY) { RETURN_MM_LONG(0); } - zephir_is_iterable(&files, 0, "phalcon/Http/Request.zep", 918); + zephir_is_iterable(&files, 0, "phalcon/Http/Request.zep", 907); if (Z_TYPE_P(&files) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&files), _0) { @@ -2832,14 +2817,14 @@ PHP_METHOD(Phalcon_Http_Request, isMethod) { ZEPHIR_CONCAT_SV(&_3$$4, "Invalid HTTP method: ", methods); ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 5, &_3$$4); zephir_check_call_status(); - zephir_throw_exception_debug(&_2$$4, "phalcon/Http/Request.zep", 1029 TSRMLS_CC); + zephir_throw_exception_debug(&_2$$4, "phalcon/Http/Request.zep", 1018 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } RETURN_MM_BOOL(ZEPHIR_IS_EQUAL(methods, &httpMethod)); } if (Z_TYPE_P(methods) == IS_ARRAY) { - zephir_is_iterable(methods, 0, "phalcon/Http/Request.zep", 1042); + zephir_is_iterable(methods, 0, "phalcon/Http/Request.zep", 1031); if (Z_TYPE_P(methods) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(methods), _4$$5) { @@ -2885,7 +2870,7 @@ PHP_METHOD(Phalcon_Http_Request, isMethod) { RETURN_MM_BOOL(0); } if (UNEXPECTED(strict)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_request_exception_ce, "Invalid HTTP method: non-string", "phalcon/Http/Request.zep", 1046); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_request_exception_ce, "Invalid HTTP method: non-string", "phalcon/Http/Request.zep", 1035); return; } RETURN_MM_BOOL(0); @@ -3058,7 +3043,7 @@ PHP_METHOD(Phalcon_Http_Request, isSoap) { if (ZEPHIR_IS_EMPTY(&contentType)) { RETURN_MM_BOOL(0); } - RETURN_MM_BOOL(zephir_memnstr_str(&contentType, SL("application/soap+xml"), "phalcon/Http/Request.zep", 1131)); + RETURN_MM_BOOL(zephir_memnstr_str(&contentType, SL("application/soap+xml"), "phalcon/Http/Request.zep", 1120)); } @@ -3114,24 +3099,6 @@ PHP_METHOD(Phalcon_Http_Request, isValidHttpMethod) { } -/** - * Sets the dependency injector - */ -PHP_METHOD(Phalcon_Http_Request, setDI) { - - zval *container, container_sub; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&container_sub); - - zephir_fetch_params_without_memory_grow(1, 0, &container); - - - - zephir_update_property_zval(this_ptr, SL("container"), container); - -} - /** * Sets automatic sanitizers/filters for a particular field and for * particular methods @@ -3199,13 +3166,13 @@ PHP_METHOD(Phalcon_Http_Request, setParameterFilters) { ZEPHIR_CONCAT_SVS(&_1$$3, "Filters have not been defined for '", &name, "'"); ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 5, &_1$$3); zephir_check_call_status(); - zephir_throw_exception_debug(&_0$$3, "phalcon/Http/Request.zep", 1184 TSRMLS_CC); + zephir_throw_exception_debug(&_0$$3, "phalcon/Http/Request.zep", 1165 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } ZEPHIR_CALL_METHOD(&filterService, this_ptr, "getfilterservice", NULL, 358); zephir_check_call_status(); - zephir_is_iterable(&filters, 0, "phalcon/Http/Request.zep", 1197); + zephir_is_iterable(&filters, 0, "phalcon/Http/Request.zep", 1178); if (Z_TYPE_P(&filters) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&filters), _2) { @@ -3220,7 +3187,7 @@ PHP_METHOD(Phalcon_Http_Request, setParameterFilters) { ZEPHIR_CONCAT_SVS(&_7$$5, "Sanitizer '", &sanitizer, "' does not exist in the filter locator"); ZEPHIR_CALL_METHOD(NULL, &_6$$5, "__construct", NULL, 5, &_7$$5); zephir_check_call_status(); - zephir_throw_exception_debug(&_6$$5, "phalcon/Http/Request.zep", 1193 TSRMLS_CC); + zephir_throw_exception_debug(&_6$$5, "phalcon/Http/Request.zep", 1174 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3245,7 +3212,7 @@ PHP_METHOD(Phalcon_Http_Request, setParameterFilters) { ZEPHIR_CONCAT_SVS(&_11$$7, "Sanitizer '", &sanitizer, "' does not exist in the filter locator"); ZEPHIR_CALL_METHOD(NULL, &_10$$7, "__construct", NULL, 5, &_11$$7); zephir_check_call_status(); - zephir_throw_exception_debug(&_10$$7, "phalcon/Http/Request.zep", 1193 TSRMLS_CC); + zephir_throw_exception_debug(&_10$$7, "phalcon/Http/Request.zep", 1174 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3269,7 +3236,7 @@ PHP_METHOD(Phalcon_Http_Request, setParameterFilters) { } else { ZEPHIR_CPY_WRT(&localScope, &scope); } - zephir_is_iterable(&localScope, 0, "phalcon/Http/Request.zep", 1207); + zephir_is_iterable(&localScope, 0, "phalcon/Http/Request.zep", 1188); if (Z_TYPE_P(&localScope) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&localScope), _13) { @@ -3372,7 +3339,7 @@ PHP_METHOD(Phalcon_Http_Request, getBestQuality) { quality = 0.0; ZEPHIR_INIT_VAR(&selectedName); ZVAL_STRING(&selectedName, ""); - zephir_is_iterable(&qualityParts, 0, "phalcon/Http/Request.zep", 1250); + zephir_is_iterable(&qualityParts, 0, "phalcon/Http/Request.zep", 1231); if (Z_TYPE_P(&qualityParts) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&qualityParts), _0) { @@ -3380,18 +3347,18 @@ PHP_METHOD(Phalcon_Http_Request, getBestQuality) { ZVAL_COPY(&accept, _0); if (i == 0) { ZEPHIR_OBS_NVAR(&_2$$4); - zephir_array_fetch_string(&_2$$4, &accept, SL("quality"), PH_NOISY, "phalcon/Http/Request.zep", 1236 TSRMLS_CC); + zephir_array_fetch_string(&_2$$4, &accept, SL("quality"), PH_NOISY, "phalcon/Http/Request.zep", 1217 TSRMLS_CC); quality = zephir_get_doubleval(&_2$$4); ZEPHIR_OBS_NVAR(&selectedName); - zephir_array_fetch(&selectedName, &accept, &name, PH_NOISY, "phalcon/Http/Request.zep", 1237 TSRMLS_CC); + zephir_array_fetch(&selectedName, &accept, &name, PH_NOISY, "phalcon/Http/Request.zep", 1218 TSRMLS_CC); } else { ZEPHIR_OBS_NVAR(&_3$$5); - zephir_array_fetch_string(&_3$$5, &accept, SL("quality"), PH_NOISY, "phalcon/Http/Request.zep", 1239 TSRMLS_CC); + zephir_array_fetch_string(&_3$$5, &accept, SL("quality"), PH_NOISY, "phalcon/Http/Request.zep", 1220 TSRMLS_CC); acceptQuality = zephir_get_doubleval(&_3$$5); if (acceptQuality > quality) { quality = acceptQuality; ZEPHIR_OBS_NVAR(&selectedName); - zephir_array_fetch(&selectedName, &accept, &name, PH_NOISY, "phalcon/Http/Request.zep", 1243 TSRMLS_CC); + zephir_array_fetch(&selectedName, &accept, &name, PH_NOISY, "phalcon/Http/Request.zep", 1224 TSRMLS_CC); } } i++; @@ -3409,18 +3376,18 @@ PHP_METHOD(Phalcon_Http_Request, getBestQuality) { zephir_check_call_status(); if (i == 0) { ZEPHIR_OBS_NVAR(&_4$$8); - zephir_array_fetch_string(&_4$$8, &accept, SL("quality"), PH_NOISY, "phalcon/Http/Request.zep", 1236 TSRMLS_CC); + zephir_array_fetch_string(&_4$$8, &accept, SL("quality"), PH_NOISY, "phalcon/Http/Request.zep", 1217 TSRMLS_CC); quality = zephir_get_doubleval(&_4$$8); ZEPHIR_OBS_NVAR(&selectedName); - zephir_array_fetch(&selectedName, &accept, &name, PH_NOISY, "phalcon/Http/Request.zep", 1237 TSRMLS_CC); + zephir_array_fetch(&selectedName, &accept, &name, PH_NOISY, "phalcon/Http/Request.zep", 1218 TSRMLS_CC); } else { ZEPHIR_OBS_NVAR(&_5$$9); - zephir_array_fetch_string(&_5$$9, &accept, SL("quality"), PH_NOISY, "phalcon/Http/Request.zep", 1239 TSRMLS_CC); + zephir_array_fetch_string(&_5$$9, &accept, SL("quality"), PH_NOISY, "phalcon/Http/Request.zep", 1220 TSRMLS_CC); acceptQuality = zephir_get_doubleval(&_5$$9); if (acceptQuality > quality) { quality = acceptQuality; ZEPHIR_OBS_NVAR(&selectedName); - zephir_array_fetch(&selectedName, &accept, &name, PH_NOISY, "phalcon/Http/Request.zep", 1243 TSRMLS_CC); + zephir_array_fetch(&selectedName, &accept, &name, PH_NOISY, "phalcon/Http/Request.zep", 1224 TSRMLS_CC); } } i++; @@ -3558,7 +3525,7 @@ PHP_METHOD(Phalcon_Http_Request, hasFileHelper) { if (Z_TYPE_P(data) != IS_ARRAY) { RETURN_MM_LONG(1); } - zephir_is_iterable(data, 0, "phalcon/Http/Request.zep", 1305); + zephir_is_iterable(data, 0, "phalcon/Http/Request.zep", 1286); if (Z_TYPE_P(data) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(data), _0) { @@ -3727,7 +3694,7 @@ PHP_METHOD(Phalcon_Http_Request, getQualityHeader) { ZVAL_LONG(&_3, 1); ZEPHIR_CALL_FUNCTION(&parts, "preg_split", NULL, 92, &_1, &_0, &_2, &_3); zephir_check_call_status(); - zephir_is_iterable(&parts, 0, "phalcon/Http/Request.zep", 1345); + zephir_is_iterable(&parts, 0, "phalcon/Http/Request.zep", 1326); if (Z_TYPE_P(&parts) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&parts), _4) { @@ -3743,7 +3710,7 @@ PHP_METHOD(Phalcon_Http_Request, getQualityHeader) { ZVAL_LONG(&_9$$3, 1); ZEPHIR_CALL_FUNCTION(&_10$$3, "preg_split", NULL, 92, &_7$$3, &_6$$3, &_8$$3, &_9$$3); zephir_check_call_status(); - zephir_is_iterable(&_10$$3, 0, "phalcon/Http/Request.zep", 1342); + zephir_is_iterable(&_10$$3, 0, "phalcon/Http/Request.zep", 1323); if (Z_TYPE_P(&_10$$3) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_10$$3), _11$$3) { @@ -3756,17 +3723,17 @@ PHP_METHOD(Phalcon_Http_Request, getQualityHeader) { if (!ZEPHIR_IS_FALSE_IDENTICAL(&_14$$4)) { ZEPHIR_INIT_NVAR(&split); zephir_fast_explode_str(&split, SL("="), &headerPart, 2 TSRMLS_CC); - zephir_array_fetch_long(&_15$$5, &split, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1331 TSRMLS_CC); + zephir_array_fetch_long(&_15$$5, &split, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1312 TSRMLS_CC); if (ZEPHIR_IS_STRING_IDENTICAL(&_15$$5, "q")) { ZEPHIR_OBS_NVAR(&_16$$6); - zephir_array_fetch_long(&_16$$6, &split, 1, PH_NOISY, "phalcon/Http/Request.zep", 1332 TSRMLS_CC); + zephir_array_fetch_long(&_16$$6, &split, 1, PH_NOISY, "phalcon/Http/Request.zep", 1313 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_17$$6); ZVAL_DOUBLE(&_17$$6, zephir_get_doubleval(&_16$$6)); zephir_array_update_string(&headerParts, SL("quality"), &_17$$6, PH_COPY | PH_SEPARATE); } else { - zephir_array_fetch_long(&_18$$7, &split, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1334 TSRMLS_CC); + zephir_array_fetch_long(&_18$$7, &split, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1315 TSRMLS_CC); ZEPHIR_OBS_NVAR(&_19$$7); - zephir_array_fetch_long(&_19$$7, &split, 0, PH_NOISY, "phalcon/Http/Request.zep", 1334 TSRMLS_CC); + zephir_array_fetch_long(&_19$$7, &split, 0, PH_NOISY, "phalcon/Http/Request.zep", 1315 TSRMLS_CC); zephir_array_update_zval(&headerParts, &_19$$7, &_18$$7, PH_COPY | PH_SEPARATE); } } else { @@ -3794,17 +3761,17 @@ PHP_METHOD(Phalcon_Http_Request, getQualityHeader) { if (!ZEPHIR_IS_FALSE_IDENTICAL(&_22$$9)) { ZEPHIR_INIT_NVAR(&split); zephir_fast_explode_str(&split, SL("="), &headerPart, 2 TSRMLS_CC); - zephir_array_fetch_long(&_23$$10, &split, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1331 TSRMLS_CC); + zephir_array_fetch_long(&_23$$10, &split, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1312 TSRMLS_CC); if (ZEPHIR_IS_STRING_IDENTICAL(&_23$$10, "q")) { ZEPHIR_OBS_NVAR(&_24$$11); - zephir_array_fetch_long(&_24$$11, &split, 1, PH_NOISY, "phalcon/Http/Request.zep", 1332 TSRMLS_CC); + zephir_array_fetch_long(&_24$$11, &split, 1, PH_NOISY, "phalcon/Http/Request.zep", 1313 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_25$$11); ZVAL_DOUBLE(&_25$$11, zephir_get_doubleval(&_24$$11)); zephir_array_update_string(&headerParts, SL("quality"), &_25$$11, PH_COPY | PH_SEPARATE); } else { - zephir_array_fetch_long(&_26$$12, &split, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1334 TSRMLS_CC); + zephir_array_fetch_long(&_26$$12, &split, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1315 TSRMLS_CC); ZEPHIR_OBS_NVAR(&_27$$12); - zephir_array_fetch_long(&_27$$12, &split, 0, PH_NOISY, "phalcon/Http/Request.zep", 1334 TSRMLS_CC); + zephir_array_fetch_long(&_27$$12, &split, 0, PH_NOISY, "phalcon/Http/Request.zep", 1315 TSRMLS_CC); zephir_array_update_zval(&headerParts, &_27$$12, &_26$$12, PH_COPY | PH_SEPARATE); } } else { @@ -3818,7 +3785,7 @@ PHP_METHOD(Phalcon_Http_Request, getQualityHeader) { } } ZEPHIR_INIT_NVAR(&headerPart); - zephir_array_append(&returnedParts, &headerParts, PH_SEPARATE, "phalcon/Http/Request.zep", 1342); + zephir_array_append(&returnedParts, &headerParts, PH_SEPARATE, "phalcon/Http/Request.zep", 1323); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &parts, "rewind", NULL, 0); @@ -3841,7 +3808,7 @@ PHP_METHOD(Phalcon_Http_Request, getQualityHeader) { ZVAL_LONG(&_32$$14, 1); ZEPHIR_CALL_FUNCTION(&_33$$14, "preg_split", NULL, 92, &_30$$14, &_29$$14, &_31$$14, &_32$$14); zephir_check_call_status(); - zephir_is_iterable(&_33$$14, 0, "phalcon/Http/Request.zep", 1342); + zephir_is_iterable(&_33$$14, 0, "phalcon/Http/Request.zep", 1323); if (Z_TYPE_P(&_33$$14) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_33$$14), _34$$14) { @@ -3854,17 +3821,17 @@ PHP_METHOD(Phalcon_Http_Request, getQualityHeader) { if (!ZEPHIR_IS_FALSE_IDENTICAL(&_37$$15)) { ZEPHIR_INIT_NVAR(&split); zephir_fast_explode_str(&split, SL("="), &headerPart, 2 TSRMLS_CC); - zephir_array_fetch_long(&_38$$16, &split, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1331 TSRMLS_CC); + zephir_array_fetch_long(&_38$$16, &split, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1312 TSRMLS_CC); if (ZEPHIR_IS_STRING_IDENTICAL(&_38$$16, "q")) { ZEPHIR_OBS_NVAR(&_39$$17); - zephir_array_fetch_long(&_39$$17, &split, 1, PH_NOISY, "phalcon/Http/Request.zep", 1332 TSRMLS_CC); + zephir_array_fetch_long(&_39$$17, &split, 1, PH_NOISY, "phalcon/Http/Request.zep", 1313 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_40$$17); ZVAL_DOUBLE(&_40$$17, zephir_get_doubleval(&_39$$17)); zephir_array_update_string(&headerParts, SL("quality"), &_40$$17, PH_COPY | PH_SEPARATE); } else { - zephir_array_fetch_long(&_41$$18, &split, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1334 TSRMLS_CC); + zephir_array_fetch_long(&_41$$18, &split, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1315 TSRMLS_CC); ZEPHIR_OBS_NVAR(&_42$$18); - zephir_array_fetch_long(&_42$$18, &split, 0, PH_NOISY, "phalcon/Http/Request.zep", 1334 TSRMLS_CC); + zephir_array_fetch_long(&_42$$18, &split, 0, PH_NOISY, "phalcon/Http/Request.zep", 1315 TSRMLS_CC); zephir_array_update_zval(&headerParts, &_42$$18, &_41$$18, PH_COPY | PH_SEPARATE); } } else { @@ -3892,17 +3859,17 @@ PHP_METHOD(Phalcon_Http_Request, getQualityHeader) { if (!ZEPHIR_IS_FALSE_IDENTICAL(&_45$$20)) { ZEPHIR_INIT_NVAR(&split); zephir_fast_explode_str(&split, SL("="), &headerPart, 2 TSRMLS_CC); - zephir_array_fetch_long(&_46$$21, &split, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1331 TSRMLS_CC); + zephir_array_fetch_long(&_46$$21, &split, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1312 TSRMLS_CC); if (ZEPHIR_IS_STRING_IDENTICAL(&_46$$21, "q")) { ZEPHIR_OBS_NVAR(&_47$$22); - zephir_array_fetch_long(&_47$$22, &split, 1, PH_NOISY, "phalcon/Http/Request.zep", 1332 TSRMLS_CC); + zephir_array_fetch_long(&_47$$22, &split, 1, PH_NOISY, "phalcon/Http/Request.zep", 1313 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_48$$22); ZVAL_DOUBLE(&_48$$22, zephir_get_doubleval(&_47$$22)); zephir_array_update_string(&headerParts, SL("quality"), &_48$$22, PH_COPY | PH_SEPARATE); } else { - zephir_array_fetch_long(&_49$$23, &split, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1334 TSRMLS_CC); + zephir_array_fetch_long(&_49$$23, &split, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1315 TSRMLS_CC); ZEPHIR_OBS_NVAR(&_50$$23); - zephir_array_fetch_long(&_50$$23, &split, 0, PH_NOISY, "phalcon/Http/Request.zep", 1334 TSRMLS_CC); + zephir_array_fetch_long(&_50$$23, &split, 0, PH_NOISY, "phalcon/Http/Request.zep", 1315 TSRMLS_CC); zephir_array_update_zval(&headerParts, &_50$$23, &_49$$23, PH_COPY | PH_SEPARATE); } } else { @@ -3916,7 +3883,7 @@ PHP_METHOD(Phalcon_Http_Request, getQualityHeader) { } } ZEPHIR_INIT_NVAR(&headerPart); - zephir_array_append(&returnedParts, &headerParts, PH_SEPARATE, "phalcon/Http/Request.zep", 1342); + zephir_array_append(&returnedParts, &headerParts, PH_SEPARATE, "phalcon/Http/Request.zep", 1323); ZEPHIR_CALL_METHOD(NULL, &parts, "next", NULL, 0); zephir_check_call_status(); } @@ -4099,9 +4066,9 @@ PHP_METHOD(Phalcon_Http_Request, resolveAuthorizationHeaders) { ZEPHIR_INIT_VAR(&exploded); zephir_fast_explode_str(&exploded, SL(":"), &_28$$12, 2 TSRMLS_CC); if (zephir_fast_count_int(&exploded TSRMLS_CC) == 2) { - zephir_array_fetch_long(&_29$$13, &exploded, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1404 TSRMLS_CC); + zephir_array_fetch_long(&_29$$13, &exploded, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1385 TSRMLS_CC); zephir_array_update_string(&headers, SL("Php-Auth-User"), &_29$$13, PH_COPY | PH_SEPARATE); - zephir_array_fetch_long(&_30$$13, &exploded, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1405 TSRMLS_CC); + zephir_array_fetch_long(&_30$$13, &exploded, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1386 TSRMLS_CC); zephir_array_update_string(&headers, SL("Php-Auth-Pw"), &_30$$13, PH_COPY | PH_SEPARATE); } } else if (_23$$11) { @@ -4114,8 +4081,8 @@ PHP_METHOD(Phalcon_Http_Request, resolveAuthorizationHeaders) { if (!(zephir_array_isset_string(&headers, SL("Authorization")))) { ZEPHIR_OBS_VAR(&digest); if (zephir_array_isset_string(&headers, SL("Php-Auth-User"))) { - zephir_array_fetch_string(&_31$$17, &headers, SL("Php-Auth-User"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1417 TSRMLS_CC); - zephir_array_fetch_string(&_32$$17, &headers, SL("Php-Auth-Pw"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1417 TSRMLS_CC); + zephir_array_fetch_string(&_31$$17, &headers, SL("Php-Auth-User"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1398 TSRMLS_CC); + zephir_array_fetch_string(&_32$$17, &headers, SL("Php-Auth-Pw"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1398 TSRMLS_CC); ZEPHIR_INIT_VAR(&_33$$17); ZEPHIR_CONCAT_VSV(&_33$$17, &_31$$17, ":", &_32$$17); ZEPHIR_CALL_FUNCTION(&_34$$17, "base64_encode", NULL, 179, &_33$$17); @@ -4208,7 +4175,7 @@ PHP_METHOD(Phalcon_Http_Request, smoothFiles) { ZEPHIR_INIT_VAR(&files); array_init(&files); - zephir_is_iterable(&names, 0, "phalcon/Http/Request.zep", 1481); + zephir_is_iterable(&names, 0, "phalcon/Http/Request.zep", 1462); if (Z_TYPE_P(&names) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&names), _2, _3, _0) { @@ -4227,35 +4194,35 @@ PHP_METHOD(Phalcon_Http_Request, smoothFiles) { zephir_create_array(&_4$$4, 6, 0 TSRMLS_CC); zephir_array_update_string(&_4$$4, SL("name"), &name, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_5$$4); - zephir_array_fetch(&_5$$4, &types, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1457 TSRMLS_CC); + zephir_array_fetch(&_5$$4, &types, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1438 TSRMLS_CC); zephir_array_update_string(&_4$$4, SL("type"), &_5$$4, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_5$$4); - zephir_array_fetch(&_5$$4, &tmp_names, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1458 TSRMLS_CC); + zephir_array_fetch(&_5$$4, &tmp_names, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1439 TSRMLS_CC); zephir_array_update_string(&_4$$4, SL("tmp_name"), &_5$$4, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_5$$4); - zephir_array_fetch(&_5$$4, &sizes, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1459 TSRMLS_CC); + zephir_array_fetch(&_5$$4, &sizes, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1440 TSRMLS_CC); zephir_array_update_string(&_4$$4, SL("size"), &_5$$4, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_5$$4); - zephir_array_fetch(&_5$$4, &errors, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1460 TSRMLS_CC); + zephir_array_fetch(&_5$$4, &errors, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1441 TSRMLS_CC); zephir_array_update_string(&_4$$4, SL("error"), &_5$$4, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4$$4, SL("key"), &p, PH_COPY | PH_SEPARATE); - zephir_array_append(&files, &_4$$4, PH_SEPARATE, "phalcon/Http/Request.zep", 1462); + zephir_array_append(&files, &_4$$4, PH_SEPARATE, "phalcon/Http/Request.zep", 1443); } if (Z_TYPE_P(&name) == IS_ARRAY) { - zephir_array_fetch(&_6$$5, &names, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1467 TSRMLS_CC); - zephir_array_fetch(&_7$$5, &types, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1468 TSRMLS_CC); - zephir_array_fetch(&_8$$5, &tmp_names, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1469 TSRMLS_CC); - zephir_array_fetch(&_9$$5, &sizes, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1470 TSRMLS_CC); - zephir_array_fetch(&_10$$5, &errors, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1471 TSRMLS_CC); + zephir_array_fetch(&_6$$5, &names, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1448 TSRMLS_CC); + zephir_array_fetch(&_7$$5, &types, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1449 TSRMLS_CC); + zephir_array_fetch(&_8$$5, &tmp_names, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1450 TSRMLS_CC); + zephir_array_fetch(&_9$$5, &sizes, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1451 TSRMLS_CC); + zephir_array_fetch(&_10$$5, &errors, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1452 TSRMLS_CC); ZEPHIR_CALL_METHOD(&parentFiles, this_ptr, "smoothfiles", &_11, 353, &_6$$5, &_7$$5, &_8$$5, &_9$$5, &_10$$5, &p); zephir_check_call_status(); - zephir_is_iterable(&parentFiles, 0, "phalcon/Http/Request.zep", 1478); + zephir_is_iterable(&parentFiles, 0, "phalcon/Http/Request.zep", 1459); if (Z_TYPE_P(&parentFiles) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&parentFiles), _12$$5) { ZEPHIR_INIT_NVAR(&file); ZVAL_COPY(&file, _12$$5); - zephir_array_append(&files, &file, PH_SEPARATE, "phalcon/Http/Request.zep", 1476); + zephir_array_append(&files, &file, PH_SEPARATE, "phalcon/Http/Request.zep", 1457); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &parentFiles, "rewind", NULL, 0); @@ -4268,7 +4235,7 @@ PHP_METHOD(Phalcon_Http_Request, smoothFiles) { } ZEPHIR_CALL_METHOD(&file, &parentFiles, "current", NULL, 0); zephir_check_call_status(); - zephir_array_append(&files, &file, PH_SEPARATE, "phalcon/Http/Request.zep", 1476); + zephir_array_append(&files, &file, PH_SEPARATE, "phalcon/Http/Request.zep", 1457); ZEPHIR_CALL_METHOD(NULL, &parentFiles, "next", NULL, 0); zephir_check_call_status(); } @@ -4296,35 +4263,35 @@ PHP_METHOD(Phalcon_Http_Request, smoothFiles) { zephir_create_array(&_14$$9, 6, 0 TSRMLS_CC); zephir_array_update_string(&_14$$9, SL("name"), &name, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_15$$9); - zephir_array_fetch(&_15$$9, &types, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1457 TSRMLS_CC); + zephir_array_fetch(&_15$$9, &types, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1438 TSRMLS_CC); zephir_array_update_string(&_14$$9, SL("type"), &_15$$9, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_15$$9); - zephir_array_fetch(&_15$$9, &tmp_names, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1458 TSRMLS_CC); + zephir_array_fetch(&_15$$9, &tmp_names, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1439 TSRMLS_CC); zephir_array_update_string(&_14$$9, SL("tmp_name"), &_15$$9, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_15$$9); - zephir_array_fetch(&_15$$9, &sizes, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1459 TSRMLS_CC); + zephir_array_fetch(&_15$$9, &sizes, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1440 TSRMLS_CC); zephir_array_update_string(&_14$$9, SL("size"), &_15$$9, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_15$$9); - zephir_array_fetch(&_15$$9, &errors, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1460 TSRMLS_CC); + zephir_array_fetch(&_15$$9, &errors, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1441 TSRMLS_CC); zephir_array_update_string(&_14$$9, SL("error"), &_15$$9, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_14$$9, SL("key"), &p, PH_COPY | PH_SEPARATE); - zephir_array_append(&files, &_14$$9, PH_SEPARATE, "phalcon/Http/Request.zep", 1462); + zephir_array_append(&files, &_14$$9, PH_SEPARATE, "phalcon/Http/Request.zep", 1443); } if (Z_TYPE_P(&name) == IS_ARRAY) { - zephir_array_fetch(&_16$$10, &names, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1467 TSRMLS_CC); - zephir_array_fetch(&_17$$10, &types, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1468 TSRMLS_CC); - zephir_array_fetch(&_18$$10, &tmp_names, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1469 TSRMLS_CC); - zephir_array_fetch(&_19$$10, &sizes, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1470 TSRMLS_CC); - zephir_array_fetch(&_20$$10, &errors, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1471 TSRMLS_CC); + zephir_array_fetch(&_16$$10, &names, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1448 TSRMLS_CC); + zephir_array_fetch(&_17$$10, &types, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1449 TSRMLS_CC); + zephir_array_fetch(&_18$$10, &tmp_names, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1450 TSRMLS_CC); + zephir_array_fetch(&_19$$10, &sizes, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1451 TSRMLS_CC); + zephir_array_fetch(&_20$$10, &errors, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1452 TSRMLS_CC); ZEPHIR_CALL_METHOD(&parentFiles, this_ptr, "smoothfiles", &_11, 353, &_16$$10, &_17$$10, &_18$$10, &_19$$10, &_20$$10, &p); zephir_check_call_status(); - zephir_is_iterable(&parentFiles, 0, "phalcon/Http/Request.zep", 1478); + zephir_is_iterable(&parentFiles, 0, "phalcon/Http/Request.zep", 1459); if (Z_TYPE_P(&parentFiles) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&parentFiles), _21$$10) { ZEPHIR_INIT_NVAR(&file); ZVAL_COPY(&file, _21$$10); - zephir_array_append(&files, &file, PH_SEPARATE, "phalcon/Http/Request.zep", 1476); + zephir_array_append(&files, &file, PH_SEPARATE, "phalcon/Http/Request.zep", 1457); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &parentFiles, "rewind", NULL, 0); @@ -4337,7 +4304,7 @@ PHP_METHOD(Phalcon_Http_Request, smoothFiles) { } ZEPHIR_CALL_METHOD(&file, &parentFiles, "current", NULL, 0); zephir_check_call_status(); - zephir_array_append(&files, &file, PH_SEPARATE, "phalcon/Http/Request.zep", 1476); + zephir_array_append(&files, &file, PH_SEPARATE, "phalcon/Http/Request.zep", 1457); ZEPHIR_CALL_METHOD(NULL, &parentFiles, "next", NULL, 0); zephir_check_call_status(); } @@ -4391,7 +4358,7 @@ PHP_METHOD(Phalcon_Http_Request, getFilterService) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 5, &_3$$4); zephir_check_call_status(); - zephir_throw_exception_debug(&_2$$4, "phalcon/Http/Request.zep", 1499 TSRMLS_CC); + zephir_throw_exception_debug(&_2$$4, "phalcon/Http/Request.zep", 1480 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } diff --git a/ext/phalcon/http/request.zep.h b/ext/phalcon/http/request.zep.h index d0a1754fdbb..5260ce8d9f4 100644 --- a/ext/phalcon/http/request.zep.h +++ b/ext/phalcon/http/request.zep.h @@ -14,7 +14,6 @@ PHP_METHOD(Phalcon_Http_Request, getBestLanguage); PHP_METHOD(Phalcon_Http_Request, getClientAddress); PHP_METHOD(Phalcon_Http_Request, getClientCharsets); PHP_METHOD(Phalcon_Http_Request, getContentType); -PHP_METHOD(Phalcon_Http_Request, getDI); PHP_METHOD(Phalcon_Http_Request, getDigestAuth); PHP_METHOD(Phalcon_Http_Request, getFilteredQuery); PHP_METHOD(Phalcon_Http_Request, getFilteredPost); @@ -61,7 +60,6 @@ PHP_METHOD(Phalcon_Http_Request, isStrictHostCheck); PHP_METHOD(Phalcon_Http_Request, isSoap); PHP_METHOD(Phalcon_Http_Request, isTrace); PHP_METHOD(Phalcon_Http_Request, isValidHttpMethod); -PHP_METHOD(Phalcon_Http_Request, setDI); PHP_METHOD(Phalcon_Http_Request, setParameterFilters); PHP_METHOD(Phalcon_Http_Request, setStrictHostCheck); PHP_METHOD(Phalcon_Http_Request, getBestQuality); @@ -166,13 +164,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_request_getcontentt #endif ZEND_END_ARG_INFO() -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_http_request_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_request_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) -#endif -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_request_getdigestauth, 0, 0, IS_ARRAY, 0) #else @@ -637,10 +628,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_request_isvalidhttp #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_http_request_setdi, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_http_request_setparameterfilters, 0, 1, Phalcon\\Http\\RequestInterface, 0) #else @@ -781,7 +768,6 @@ ZEPHIR_INIT_FUNCS(phalcon_http_request_method_entry) { PHP_ME(Phalcon_Http_Request, getClientAddress, arginfo_phalcon_http_request_getclientaddress, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Request, getClientCharsets, arginfo_phalcon_http_request_getclientcharsets, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Request, getContentType, arginfo_phalcon_http_request_getcontenttype, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Http_Request, getDI, arginfo_phalcon_http_request_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Request, getDigestAuth, arginfo_phalcon_http_request_getdigestauth, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Request, getFilteredQuery, arginfo_phalcon_http_request_getfilteredquery, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Request, getFilteredPost, arginfo_phalcon_http_request_getfilteredpost, ZEND_ACC_PUBLIC) @@ -828,7 +814,6 @@ ZEPHIR_INIT_FUNCS(phalcon_http_request_method_entry) { PHP_ME(Phalcon_Http_Request, isSoap, arginfo_phalcon_http_request_issoap, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Request, isTrace, arginfo_phalcon_http_request_istrace, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Request, isValidHttpMethod, arginfo_phalcon_http_request_isvalidhttpmethod, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Http_Request, setDI, arginfo_phalcon_http_request_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Request, setParameterFilters, arginfo_phalcon_http_request_setparameterfilters, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Request, setStrictHostCheck, arginfo_phalcon_http_request_setstricthostcheck, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Request, getBestQuality, arginfo_phalcon_http_request_getbestquality, ZEND_ACC_FINAL|ZEND_ACC_PROTECTED) diff --git a/ext/phalcon/http/response.zep.c b/ext/phalcon/http/response.zep.c index 3a46e08cb98..9c6fdaa0ccb 100644 --- a/ext/phalcon/http/response.zep.c +++ b/ext/phalcon/http/response.zep.c @@ -21,7 +21,6 @@ #include "kernel/string.h" #include "ext/date/php_date.h" #include "ext/spl/spl_exceptions.h" -#include "kernel/file.h" #include "kernel/array.h" @@ -211,7 +210,7 @@ PHP_METHOD(Phalcon_Http_Response, getDI) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 5, &_3$$4); zephir_check_call_status(); - zephir_throw_exception_debug(&_2$$4, "phalcon/Http/Response.zep", 120 TSRMLS_CC); + zephir_throw_exception_debug(&_2$$4, "phalcon/Http/Response.zep", 121 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -594,7 +593,7 @@ PHP_METHOD(Phalcon_Http_Response, send) { zephir_read_property(&_0, this_ptr, SL("sent"), PH_NOISY_CC | PH_READONLY); if (UNEXPECTED(zephir_is_true(&_0))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_response_exception_ce, "Response was already sent", "phalcon/Http/Response.zep", 322); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_response_exception_ce, "Response was already sent", "phalcon/Http/Response.zep", 323); return; } ZEPHIR_CALL_METHOD(NULL, this_ptr, "sendheaders", NULL, 0); @@ -1014,18 +1013,26 @@ PHP_METHOD(Phalcon_Http_Response, setFileToSend) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; - zval *filePath_param = NULL, *attachmentName = NULL, attachmentName_sub, *attachment = NULL, attachment_sub, __$null, __$true, basePath, _0$$5, _1$$5; + zephir_fcall_cache_entry *_0 = NULL; + zval *filePath_param = NULL, *attachmentName = NULL, attachmentName_sub, *attachment = NULL, attachment_sub, __$true, __$null, basePath, basePathEncoding, _1$$6, _2$$5, _3$$7, _4$$7, _5$$7, _6$$8, _7$$8, _8$$8; zval filePath; zval *this_ptr = getThis(); ZVAL_UNDEF(&filePath); ZVAL_UNDEF(&attachmentName_sub); ZVAL_UNDEF(&attachment_sub); - ZVAL_NULL(&__$null); ZVAL_BOOL(&__$true, 1); + ZVAL_NULL(&__$null); ZVAL_UNDEF(&basePath); - ZVAL_UNDEF(&_0$$5); - ZVAL_UNDEF(&_1$$5); + ZVAL_UNDEF(&basePathEncoding); + ZVAL_UNDEF(&_1$$6); + ZVAL_UNDEF(&_2$$5); + ZVAL_UNDEF(&_3$$7); + ZVAL_UNDEF(&_4$$7); + ZVAL_UNDEF(&_5$$7); + ZVAL_UNDEF(&_6$$8); + ZVAL_UNDEF(&_7$$8); + ZVAL_UNDEF(&_8$$8); ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &filePath_param, &attachmentName, &attachment); @@ -1041,29 +1048,54 @@ PHP_METHOD(Phalcon_Http_Response, setFileToSend) { } + ZEPHIR_INIT_VAR(&basePathEncoding); + ZVAL_STRING(&basePathEncoding, "ASCII"); if (Z_TYPE_P(attachmentName) != IS_STRING) { - ZEPHIR_INIT_VAR(&basePath); - zephir_basename(&basePath, &filePath TSRMLS_CC); + ZEPHIR_CALL_CE_STATIC(&basePath, phalcon_helper_fs_ce, "basename", &_0, 363, &filePath); + zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&basePath, attachmentName); } if (zephir_is_true(attachment)) { - ZEPHIR_INIT_VAR(&_0$$5); - ZVAL_STRING(&_0$$5, "Content-Description: File Transfer"); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "setrawheader", NULL, 0, &_0$$5); - zephir_check_call_status(); - ZEPHIR_INIT_NVAR(&_0$$5); - ZVAL_STRING(&_0$$5, "Content-Type: application/octet-stream"); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "setrawheader", NULL, 0, &_0$$5); + if ((zephir_function_exists_ex(SL("mb_detect_encoding") TSRMLS_CC) == SUCCESS)) { + ZEPHIR_CALL_FUNCTION(&_1$$6, "mb_detect_order", NULL, 364); + zephir_check_call_status(); + ZEPHIR_CALL_FUNCTION(&basePathEncoding, "mb_detect_encoding", NULL, 221, &basePath, &_1$$6, &__$true); + zephir_check_call_status(); + } + ZEPHIR_INIT_VAR(&_2$$5); + ZVAL_STRING(&_2$$5, "Content-Description: File Transfer"); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "setrawheader", NULL, 0, &_2$$5); zephir_check_call_status(); - ZEPHIR_INIT_VAR(&_1$$5); - ZEPHIR_CONCAT_SVS(&_1$$5, "Content-Disposition: attachment; filename=", &basePath, ";"); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "setrawheader", NULL, 0, &_1$$5); + ZEPHIR_INIT_NVAR(&_2$$5); + ZVAL_STRING(&_2$$5, "Content-Type: application/octet-stream"); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "setrawheader", NULL, 0, &_2$$5); zephir_check_call_status(); - ZEPHIR_INIT_NVAR(&_0$$5); - ZVAL_STRING(&_0$$5, "Content-Transfer-Encoding: binary"); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "setrawheader", NULL, 0, &_0$$5); + ZEPHIR_INIT_NVAR(&_2$$5); + ZVAL_STRING(&_2$$5, "Content-Transfer-Encoding: binary"); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "setrawheader", NULL, 0, &_2$$5); zephir_check_call_status(); + if (!ZEPHIR_IS_STRING(&basePathEncoding, "ASCII")) { + ZEPHIR_CALL_FUNCTION(&_3$$7, "rawurlencode", NULL, 224, &basePath); + zephir_check_call_status(); + ZEPHIR_CPY_WRT(&basePath, &_3$$7); + ZEPHIR_INIT_VAR(&_4$$7); + zephir_fast_strtolower(&_4$$7, &basePathEncoding); + ZEPHIR_INIT_VAR(&_5$$7); + ZEPHIR_CONCAT_SVSVSV(&_5$$7, "Content-Disposition: attachment; filename=", &basePath, "; filename*=", &_4$$7, "''", &basePath); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "setrawheader", NULL, 0, &_5$$7); + zephir_check_call_status(); + } else { + ZEPHIR_INIT_VAR(&_6$$8); + ZVAL_STRING(&_6$$8, "\\15\\17\\\""); + ZEPHIR_CALL_FUNCTION(&_7$$8, "addcslashes", NULL, 190, &basePath, &_6$$8); + zephir_check_call_status(); + ZEPHIR_CPY_WRT(&basePath, &_7$$8); + ZEPHIR_INIT_VAR(&_8$$8); + ZEPHIR_CONCAT_SVS(&_8$$8, "Content-Disposition: attachment; filename=\"", &basePath, "\""); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "setrawheader", NULL, 0, &_8$$8); + zephir_check_call_status(); + } } zephir_update_property_zval(this_ptr, SL("file"), &filePath); RETURN_THIS(); @@ -1132,7 +1164,7 @@ PHP_METHOD(Phalcon_Http_Response, setHeaders) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&existing, this_ptr, "getheaders", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&data, 0, "phalcon/Http/Response.zep", 600); + zephir_is_iterable(&data, 0, "phalcon/Http/Response.zep", 619); if (Z_TYPE_P(&data) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _2, _3, _0) { @@ -1361,7 +1393,7 @@ PHP_METHOD(Phalcon_Http_Response, setStatusCode) { ZEPHIR_CALL_METHOD(¤tHeadersRaw, &headers, "toarray", NULL, 0); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_0); - zephir_is_iterable(¤tHeadersRaw, 0, "phalcon/Http/Response.zep", 699); + zephir_is_iterable(¤tHeadersRaw, 0, "phalcon/Http/Response.zep", 718); if (Z_TYPE_P(¤tHeadersRaw) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(¤tHeadersRaw), _3, _4, _1) { @@ -1485,11 +1517,11 @@ PHP_METHOD(Phalcon_Http_Response, setStatusCode) { add_index_stringl(&statusCodes, 510, SL("Not Extended")); add_index_stringl(&statusCodes, 511, SL("Network Authentication Required")); if (UNEXPECTED(!(zephir_array_isset_long(&statusCodes, code)))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_response_exception_ce, "Non-standard statuscode given without a message", "phalcon/Http/Response.zep", 776); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_response_exception_ce, "Non-standard statuscode given without a message", "phalcon/Http/Response.zep", 795); return; } ZEPHIR_OBS_VAR(&defaultMessage); - zephir_array_fetch_long(&defaultMessage, &statusCodes, code, PH_NOISY, "phalcon/Http/Response.zep", 779 TSRMLS_CC); + zephir_array_fetch_long(&defaultMessage, &statusCodes, code, PH_NOISY, "phalcon/Http/Response.zep", 798 TSRMLS_CC); zephir_get_strval(&message, &defaultMessage); } ZEPHIR_SINIT_VAR(_14); diff --git a/ext/phalcon/http/response/cookies.zep.c b/ext/phalcon/http/response/cookies.zep.c index 1728648239f..0bbe5c87a60 100644 --- a/ext/phalcon/http/response/cookies.zep.c +++ b/ext/phalcon/http/response/cookies.zep.c @@ -79,9 +79,7 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Http_Response_Cookies) { - ZEPHIR_REGISTER_CLASS(Phalcon\\Http\\Response, Cookies, phalcon, http_response_cookies, phalcon_http_response_cookies_method_entry, 0); - - zend_declare_property_null(phalcon_http_response_cookies_ce, SL("container"), ZEND_ACC_PROTECTED TSRMLS_CC); + ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Http\\Response, Cookies, phalcon, http_response_cookies, phalcon_di_abstractinjectionaware_ce, phalcon_http_response_cookies_method_entry, 0); zend_declare_property_null(phalcon_http_response_cookies_ce, SL("cookies"), ZEND_ACC_PROTECTED TSRMLS_CC); @@ -98,7 +96,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Http_Response_Cookies) { phalcon_http_response_cookies_ce->create_object = zephir_init_properties_Phalcon_Http_Response_Cookies; zend_class_implements(phalcon_http_response_cookies_ce TSRMLS_CC, 1, phalcon_http_response_cookiesinterface_ce); - zend_class_implements(phalcon_http_response_cookies_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); return SUCCESS; } @@ -272,18 +269,6 @@ PHP_METHOD(Phalcon_Http_Response_Cookies, getCookies) { } -/** - * Returns the internal dependency injector - */ -PHP_METHOD(Phalcon_Http_Response_Cookies, getDI) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "container"); - -} - /** * Check if a cookie is defined in the bag or exists in the _COOKIE * superglobal @@ -375,13 +360,13 @@ PHP_METHOD(Phalcon_Http_Response_Cookies, send) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_FUNCTION(&_0, "headers_sent", NULL, 363); + ZEPHIR_CALL_FUNCTION(&_0, "headers_sent", NULL, 365); zephir_check_call_status(); if (zephir_is_true(&_0)) { RETURN_MM_BOOL(0); } zephir_read_property(&_1, this_ptr, SL("cookies"), PH_NOISY_CC | PH_READONLY); - zephir_is_iterable(&_1, 0, "phalcon/Http/Response/Cookies.zep", 214); + zephir_is_iterable(&_1, 0, "phalcon/Http/Response/Cookies.zep", 204); if (Z_TYPE_P(&_1) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_1), _2) { @@ -603,7 +588,7 @@ PHP_METHOD(Phalcon_Http_Response_Cookies, set) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_12$$7, "__construct", NULL, 5, &_13$$7); zephir_check_call_status(); - zephir_throw_exception_debug(&_12$$7, "phalcon/Http/Response/Cookies.zep", 298 TSRMLS_CC); + zephir_throw_exception_debug(&_12$$7, "phalcon/Http/Response/Cookies.zep", 288 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -623,24 +608,6 @@ PHP_METHOD(Phalcon_Http_Response_Cookies, set) { } -/** - * Sets the dependency injector - */ -PHP_METHOD(Phalcon_Http_Response_Cookies, setDI) { - - zval *container, container_sub; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&container_sub); - - zephir_fetch_params_without_memory_grow(1, 0, &container); - - - - zephir_update_property_zval(this_ptr, SL("container"), container); - -} - /** * Sets the cookie's sign key. * diff --git a/ext/phalcon/http/response/cookies.zep.h b/ext/phalcon/http/response/cookies.zep.h index fec96ad33cf..af89de28750 100644 --- a/ext/phalcon/http/response/cookies.zep.h +++ b/ext/phalcon/http/response/cookies.zep.h @@ -7,13 +7,11 @@ PHP_METHOD(Phalcon_Http_Response_Cookies, __construct); PHP_METHOD(Phalcon_Http_Response_Cookies, delete); PHP_METHOD(Phalcon_Http_Response_Cookies, get); PHP_METHOD(Phalcon_Http_Response_Cookies, getCookies); -PHP_METHOD(Phalcon_Http_Response_Cookies, getDI); PHP_METHOD(Phalcon_Http_Response_Cookies, has); PHP_METHOD(Phalcon_Http_Response_Cookies, isUsingEncryption); PHP_METHOD(Phalcon_Http_Response_Cookies, reset); PHP_METHOD(Phalcon_Http_Response_Cookies, send); PHP_METHOD(Phalcon_Http_Response_Cookies, set); -PHP_METHOD(Phalcon_Http_Response_Cookies, setDI); PHP_METHOD(Phalcon_Http_Response_Cookies, setSignKey); PHP_METHOD(Phalcon_Http_Response_Cookies, useEncryption); zend_object *zephir_init_properties_Phalcon_Http_Response_Cookies(zend_class_entry *class_type TSRMLS_DC); @@ -62,13 +60,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_response_cookies_ge #endif ZEND_END_ARG_INFO() -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_http_response_cookies_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_response_cookies_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) -#endif -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_response_cookies_has, 0, 1, _IS_BOOL, 0) #else @@ -140,10 +131,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_response_cookies_se #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_http_response_cookies_setdi, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_http_response_cookies_setsignkey, 0, 0, Phalcon\\Http\\CookieInterface, 0) #else @@ -173,13 +160,11 @@ ZEPHIR_INIT_FUNCS(phalcon_http_response_cookies_method_entry) { PHP_ME(Phalcon_Http_Response_Cookies, delete, arginfo_phalcon_http_response_cookies_delete, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Response_Cookies, get, arginfo_phalcon_http_response_cookies_get, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Response_Cookies, getCookies, arginfo_phalcon_http_response_cookies_getcookies, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Http_Response_Cookies, getDI, arginfo_phalcon_http_response_cookies_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Response_Cookies, has, arginfo_phalcon_http_response_cookies_has, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Response_Cookies, isUsingEncryption, arginfo_phalcon_http_response_cookies_isusingencryption, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Response_Cookies, reset, arginfo_phalcon_http_response_cookies_reset, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Response_Cookies, send, arginfo_phalcon_http_response_cookies_send, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Response_Cookies, set, arginfo_phalcon_http_response_cookies_set, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Http_Response_Cookies, setDI, arginfo_phalcon_http_response_cookies_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Response_Cookies, setSignKey, arginfo_phalcon_http_response_cookies_setsignkey, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Http_Response_Cookies, useEncryption, arginfo_phalcon_http_response_cookies_useencryption, ZEND_ACC_PUBLIC) PHP_FE_END diff --git a/ext/phalcon/http/response/headers.zep.c b/ext/phalcon/http/response/headers.zep.c index 85e267588bf..2c9da668298 100644 --- a/ext/phalcon/http/response/headers.zep.c +++ b/ext/phalcon/http/response/headers.zep.c @@ -182,7 +182,7 @@ PHP_METHOD(Phalcon_Http_Response_Headers, send) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_FUNCTION(&_0, "headers_sent", NULL, 363); + ZEPHIR_CALL_FUNCTION(&_0, "headers_sent", NULL, 365); zephir_check_call_status(); if (zephir_is_true(&_0)) { RETURN_MM_BOOL(0); @@ -203,7 +203,7 @@ PHP_METHOD(Phalcon_Http_Response_Headers, send) { if (Z_TYPE_P(&value) != IS_NULL) { ZEPHIR_INIT_LNVAR(_6$$5); ZEPHIR_CONCAT_VSV(&_6$$5, &header, ": ", &value); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 364, &_6$$5, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 366, &_6$$5, &__$true); zephir_check_call_status(); } else { _8$$6 = zephir_memnstr_str(&header, SL(":"), "phalcon/Http/Response/Headers.zep", 88); @@ -215,12 +215,12 @@ PHP_METHOD(Phalcon_Http_Response_Headers, send) { _8$$6 = ZEPHIR_IS_STRING(&_11$$6, "HTTP/"); } if (_8$$6) { - ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 364, &header, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 366, &header, &__$true); zephir_check_call_status(); } else { ZEPHIR_INIT_LNVAR(_12$$8); ZEPHIR_CONCAT_VS(&_12$$8, &header, ": "); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 364, &_12$$8, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 366, &_12$$8, &__$true); zephir_check_call_status(); } } @@ -241,7 +241,7 @@ PHP_METHOD(Phalcon_Http_Response_Headers, send) { if (Z_TYPE_P(&value) != IS_NULL) { ZEPHIR_INIT_LNVAR(_13$$10); ZEPHIR_CONCAT_VSV(&_13$$10, &header, ": ", &value); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 364, &_13$$10, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 366, &_13$$10, &__$true); zephir_check_call_status(); } else { _14$$11 = zephir_memnstr_str(&header, SL(":"), "phalcon/Http/Response/Headers.zep", 88); @@ -253,12 +253,12 @@ PHP_METHOD(Phalcon_Http_Response_Headers, send) { _14$$11 = ZEPHIR_IS_STRING(&_17$$11, "HTTP/"); } if (_14$$11) { - ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 364, &header, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 366, &header, &__$true); zephir_check_call_status(); } else { ZEPHIR_INIT_LNVAR(_18$$13); ZEPHIR_CONCAT_VS(&_18$$13, &header, ": "); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 364, &_18$$13, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 366, &_18$$13, &__$true); zephir_check_call_status(); } } diff --git a/ext/phalcon/image/adapter/gd.zep.c b/ext/phalcon/image/adapter/gd.zep.c index 75027bce68f..3ab1ff47211 100644 --- a/ext/phalcon/image/adapter/gd.zep.c +++ b/ext/phalcon/image/adapter/gd.zep.c @@ -128,7 +128,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("realpath"), &_3$$4); zephir_read_property(&_4$$4, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&imageinfo, "getimagesize", NULL, 365, &_4$$4); + ZEPHIR_CALL_FUNCTION(&imageinfo, "getimagesize", NULL, 367, &_4$$4); zephir_check_call_status(); if (zephir_is_true(&imageinfo)) { zephir_array_fetch_long(&_5$$5, &imageinfo, 0, PH_NOISY | PH_READONLY, "phalcon/Image/Adapter/Gd.zep", 36 TSRMLS_CC); @@ -144,35 +144,35 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { do { if (ZEPHIR_IS_LONG(&_9$$4, 1)) { zephir_read_property(&_10$$6, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_11$$6, "imagecreatefromgif", NULL, 366, &_10$$6); + ZEPHIR_CALL_FUNCTION(&_11$$6, "imagecreatefromgif", NULL, 368, &_10$$6); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &_11$$6); break; } if (ZEPHIR_IS_LONG(&_9$$4, 2)) { zephir_read_property(&_12$$7, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_13$$7, "imagecreatefromjpeg", NULL, 367, &_12$$7); + ZEPHIR_CALL_FUNCTION(&_13$$7, "imagecreatefromjpeg", NULL, 369, &_12$$7); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &_13$$7); break; } if (ZEPHIR_IS_LONG(&_9$$4, 3)) { zephir_read_property(&_14$$8, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_15$$8, "imagecreatefrompng", NULL, 368, &_14$$8); + ZEPHIR_CALL_FUNCTION(&_15$$8, "imagecreatefrompng", NULL, 370, &_14$$8); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &_15$$8); break; } if (ZEPHIR_IS_LONG(&_9$$4, 15)) { zephir_read_property(&_16$$9, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_17$$9, "imagecreatefromwbmp", NULL, 369, &_16$$9); + ZEPHIR_CALL_FUNCTION(&_17$$9, "imagecreatefromwbmp", NULL, 371, &_16$$9); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &_17$$9); break; } if (ZEPHIR_IS_LONG(&_9$$4, 16)) { zephir_read_property(&_18$$10, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_19$$10, "imagecreatefromxbm", NULL, 370, &_18$$10); + ZEPHIR_CALL_FUNCTION(&_19$$10, "imagecreatefromxbm", NULL, 372, &_18$$10); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &_19$$10); break; @@ -195,7 +195,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { } while(0); zephir_read_property(&_24$$4, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 371, &_24$$4, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 373, &_24$$4, &__$true); zephir_check_call_status(); } else { _25$$13 = !width; @@ -216,14 +216,14 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { } ZVAL_LONG(&_29$$13, width); ZVAL_LONG(&_30$$13, height); - ZEPHIR_CALL_FUNCTION(&_31$$13, "imagecreatetruecolor", NULL, 372, &_29$$13, &_30$$13); + ZEPHIR_CALL_FUNCTION(&_31$$13, "imagecreatetruecolor", NULL, 374, &_29$$13, &_30$$13); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &_31$$13); zephir_read_property(&_29$$13, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 373, &_29$$13, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 375, &_29$$13, &__$true); zephir_check_call_status(); zephir_read_property(&_30$$13, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 371, &_30$$13, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 373, &_30$$13, &__$true); zephir_check_call_status(); zephir_read_property(&_32$$13, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); zephir_update_property_zval(this_ptr, SL("realpath"), &_32$$13); @@ -260,7 +260,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, __destruct) { zephir_read_property(&_0, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&image, &_0); if (Z_TYPE_P(&image) == IS_RESOURCE) { - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 374, &image); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &image); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -300,7 +300,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, check) { ZVAL_STRING(&_1, "2.0.1"); ZEPHIR_INIT_VAR(&_2); ZVAL_STRING(&_2, ">="); - ZEPHIR_CALL_FUNCTION(&_3, "version_compare", NULL, 375, &version, &_1, &_2); + ZEPHIR_CALL_FUNCTION(&_3, "version_compare", NULL, 377, &version, &_1, &_2); zephir_check_call_status(); if (UNEXPECTED(!zephir_is_true(&_3))) { ZEPHIR_INIT_VAR(&_4$$5); @@ -352,7 +352,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, getVersion) { ZEPHIR_INIT_NVAR(&version); ZEPHIR_MM_GET_CONSTANT(&version, "GD_VERSION"); } else { - ZEPHIR_CALL_FUNCTION(&info, "gd_info", NULL, 376); + ZEPHIR_CALL_FUNCTION(&info, "gd_info", NULL, 378); zephir_check_call_status(); ZEPHIR_INIT_VAR(&matches); ZVAL_NULL(&matches); @@ -412,9 +412,9 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processBackground) { ZVAL_LONG(&_3, g); ZVAL_LONG(&_4, b); ZVAL_LONG(&_5, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 377, &background, &_2, &_3, &_4, &_5); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 379, &background, &_2, &_3, &_4, &_5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 373, &background, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 375, &background, &__$true); zephir_check_call_status(); zephir_read_property(&_2, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_3, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY); @@ -423,11 +423,11 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processBackground) { ZVAL_LONG(&_6, 0); ZVAL_LONG(&_7, 0); ZVAL_LONG(&_8, 0); - ZEPHIR_CALL_FUNCTION(&_9, "imagecopy", NULL, 378, &background, &_2, &_5, &_6, &_7, &_8, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&_9, "imagecopy", NULL, 380, &background, &_2, &_5, &_6, &_7, &_8, &_3, &_4); zephir_check_call_status(); if (zephir_is_true(&_9)) { zephir_read_property(&_10$$3, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 374, &_10$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &_10$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &background); } @@ -459,7 +459,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processBlur) { } zephir_read_property(&_0$$3, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_1$$3, 7); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_2, 379, &_0$$3, &_1$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_2, 381, &_0$$3, &_1$$3); zephir_check_call_status(); i++; } @@ -489,11 +489,11 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processCreate) { ZVAL_LONG(&_0, width); ZVAL_LONG(&_1, height); - ZEPHIR_CALL_FUNCTION(&image, "imagecreatetruecolor", NULL, 372, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&image, "imagecreatetruecolor", NULL, 374, &_0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 373, &image, &__$false); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 375, &image, &__$false); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 371, &image, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 373, &image, &__$true); zephir_check_call_status(); RETURN_CCTOR(&image); @@ -538,16 +538,16 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processCrop) { ZVAL_LONG(&_0, height); zephir_array_update_string(&rect, SL("height"), &_0, PH_COPY | PH_SEPARATE); zephir_read_property(&_1, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&image, "imagecrop", NULL, 380, &_1, &rect); + ZEPHIR_CALL_FUNCTION(&image, "imagecrop", NULL, 382, &_1, &rect); zephir_check_call_status(); zephir_read_property(&_2, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 374, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &_2); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &image); - ZEPHIR_CALL_FUNCTION(&_3, "imagesx", NULL, 381, &image); + ZEPHIR_CALL_FUNCTION(&_3, "imagesx", NULL, 383, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("width"), &_3); - ZEPHIR_CALL_FUNCTION(&_4, "imagesy", NULL, 382, &image); + ZEPHIR_CALL_FUNCTION(&_4, "imagesy", NULL, 384, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("height"), &_4); ZEPHIR_MM_RESTORE(); @@ -575,12 +575,12 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processFlip) { if (direction == 11) { zephir_read_property(&_0$$3, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_1$$3, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imageflip", NULL, 383, &_0$$3, &_1$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imageflip", NULL, 385, &_0$$3, &_1$$3); zephir_check_call_status(); } else { zephir_read_property(&_2$$4, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_3$$4, 2); - ZEPHIR_CALL_FUNCTION(NULL, "imageflip", NULL, 383, &_2$$4, &_3$$4); + ZEPHIR_CALL_FUNCTION(NULL, "imageflip", NULL, 385, &_2$$4, &_3$$4); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -640,32 +640,32 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processMask) { ZEPHIR_CALL_METHOD(&_0, mask, "render", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&maskImage, "imagecreatefromstring", NULL, 384, &_0); + ZEPHIR_CALL_FUNCTION(&maskImage, "imagecreatefromstring", NULL, 386, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 381, &maskImage); + ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 383, &maskImage); zephir_check_call_status(); mask_width = zephir_get_intval(&_1); - ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 382, &maskImage); + ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 384, &maskImage); zephir_check_call_status(); mask_height = zephir_get_intval(&_2); alpha = 127; - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 371, &maskImage, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 373, &maskImage, &__$true); zephir_check_call_status(); zephir_read_property(&_3, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_4, this_ptr, SL("height"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CALL_METHOD(&newimage, this_ptr, "processcreate", NULL, 0, &_3, &_4); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 371, &newimage, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 373, &newimage, &__$true); zephir_check_call_status(); ZVAL_LONG(&_5, 0); ZVAL_LONG(&_6, 0); ZVAL_LONG(&_7, 0); ZVAL_LONG(&_8, alpha); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 377, &newimage, &_5, &_6, &_7, &_8); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 379, &newimage, &_5, &_6, &_7, &_8); zephir_check_call_status(); ZVAL_LONG(&_5, 0); ZVAL_LONG(&_6, 0); - ZEPHIR_CALL_FUNCTION(NULL, "imagefill", NULL, 385, &newimage, &_5, &_6, &color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefill", NULL, 387, &newimage, &_5, &_6, &color); zephir_check_call_status(); zephir_read_property(&_5, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY); _9 = !ZEPHIR_IS_LONG(&_5, mask_width); @@ -676,7 +676,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processMask) { if (_9) { zephir_read_property(&_10$$3, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_11$$3, this_ptr, SL("height"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&tempImage, "imagecreatetruecolor", NULL, 372, &_10$$3, &_11$$3); + ZEPHIR_CALL_FUNCTION(&tempImage, "imagecreatetruecolor", NULL, 374, &_10$$3, &_11$$3); zephir_check_call_status(); zephir_read_property(&_12$$3, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_13$$3, this_ptr, SL("height"), PH_NOISY_CC | PH_READONLY); @@ -686,9 +686,9 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processMask) { ZVAL_LONG(&_17$$3, 0); ZVAL_LONG(&_18$$3, mask_width); ZVAL_LONG(&_19$$3, mask_height); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopyresampled", NULL, 386, &tempImage, &maskImage, &_14$$3, &_15$$3, &_16$$3, &_17$$3, &_12$$3, &_13$$3, &_18$$3, &_19$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopyresampled", NULL, 388, &tempImage, &maskImage, &_14$$3, &_15$$3, &_16$$3, &_17$$3, &_12$$3, &_13$$3, &_18$$3, &_19$$3); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 374, &maskImage); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &maskImage); zephir_check_call_status(); ZEPHIR_CPY_WRT(&maskImage, &tempImage); } @@ -706,9 +706,9 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processMask) { } ZVAL_LONG(&_21$$5, x); ZVAL_LONG(&_22$$5, y); - ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_23, 387, &maskImage, &_21$$5, &_22$$5); + ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_23, 389, &maskImage, &_21$$5, &_22$$5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_24, 388, &maskImage, &index); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_24, 390, &maskImage, &index); zephir_check_call_status(); if (zephir_array_isset_string(&color, SL("red"))) { zephir_array_fetch_string(&_25$$6, &color, SL("red"), PH_NOISY | PH_READONLY, "phalcon/Image/Adapter/Gd.zep", 289 TSRMLS_CC); @@ -718,10 +718,10 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processMask) { zephir_read_property(&_21$$5, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_22$$5, x); ZVAL_LONG(&_27$$5, y); - ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_23, 387, &_21$$5, &_22$$5, &_27$$5); + ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_23, 389, &_21$$5, &_22$$5, &_27$$5); zephir_check_call_status(); zephir_read_property(&_22$$5, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_24, 388, &_22$$5, &index); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_24, 390, &_22$$5, &index); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&r); zephir_array_fetch_string(&r, &color, SL("red"), PH_NOISY, "phalcon/Image/Adapter/Gd.zep", 294 TSRMLS_CC); @@ -730,20 +730,20 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processMask) { ZEPHIR_OBS_NVAR(&b); zephir_array_fetch_string(&b, &color, SL("blue"), PH_NOISY, "phalcon/Image/Adapter/Gd.zep", 296 TSRMLS_CC); ZVAL_LONG(&_27$$5, alpha); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 377, &newimage, &r, &g, &b, &_27$$5); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 379, &newimage, &r, &g, &b, &_27$$5); zephir_check_call_status(); ZVAL_LONG(&_27$$5, x); ZVAL_LONG(&_28$$5, y); - ZEPHIR_CALL_FUNCTION(NULL, "imagesetpixel", &_29, 389, &newimage, &_27$$5, &_28$$5, &color); + ZEPHIR_CALL_FUNCTION(NULL, "imagesetpixel", &_29, 391, &newimage, &_27$$5, &_28$$5, &color); zephir_check_call_status(); y++; } x++; } zephir_read_property(&_8, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 374, &_8); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &_8); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 374, &maskImage); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &maskImage); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &newimage); ZEPHIR_MM_RESTORE(); @@ -803,7 +803,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processPixelate) { zephir_read_property(&_5$$4, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_6$$4, x1); ZVAL_LONG(&_7$$4, y1); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorat", &_8, 387, &_5$$4, &_6$$4, &_7$$4); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorat", &_8, 389, &_5$$4, &_6$$4, &_7$$4); zephir_check_call_status(); x2 = (x + amount); y2 = (y + amount); @@ -812,7 +812,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processPixelate) { ZVAL_LONG(&_9$$4, y); ZVAL_LONG(&_10$$4, x2); ZVAL_LONG(&_11$$4, y2); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", &_12, 390, &_6$$4, &_7$$4, &_9$$4, &_10$$4, &_11$$4, &color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", &_12, 392, &_6$$4, &_7$$4, &_9$$4, &_10$$4, &_11$$4, &color); zephir_check_call_status(); y += amount; } @@ -893,7 +893,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processReflection) { ZVAL_LONG(&_8, 0); ZVAL_LONG(&_9, 0); ZVAL_LONG(&_10, 0); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", NULL, 378, &reflection, &_4, &_7, &_8, &_9, &_10, &_5, &_6); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", NULL, 380, &reflection, &_4, &_7, &_8, &_9, &_10, &_5, &_6); zephir_check_call_status(); offset = 0; while (1) { @@ -926,14 +926,14 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processReflection) { ZVAL_LONG(&_22$$5, 0); ZVAL_LONG(&_23$$5, src_y); ZVAL_LONG(&_24$$5, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", NULL, 378, &line, &_18$$5, &_20$$5, &_21$$5, &_22$$5, &_23$$5, &_19$$5, &_24$$5); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", NULL, 380, &line, &_18$$5, &_20$$5, &_21$$5, &_22$$5, &_23$$5, &_19$$5, &_24$$5); zephir_check_call_status(); ZVAL_LONG(&_20$$5, 4); ZVAL_LONG(&_21$$5, 0); ZVAL_LONG(&_22$$5, 0); ZVAL_LONG(&_23$$5, 0); ZVAL_LONG(&_24$$5, dst_opacity); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_25, 379, &line, &_20$$5, &_21$$5, &_22$$5, &_23$$5, &_24$$5); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_25, 381, &line, &_20$$5, &_21$$5, &_22$$5, &_23$$5, &_24$$5); zephir_check_call_status(); zephir_read_property(&_20$$5, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_21$$5, 0); @@ -941,18 +941,18 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processReflection) { ZVAL_LONG(&_23$$5, 0); ZVAL_LONG(&_24$$5, 0); ZVAL_LONG(&_26$$5, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", NULL, 378, &reflection, &line, &_21$$5, &_22$$5, &_23$$5, &_24$$5, &_20$$5, &_26$$5); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", NULL, 380, &reflection, &line, &_21$$5, &_22$$5, &_23$$5, &_24$$5, &_20$$5, &_26$$5); zephir_check_call_status(); offset++; } zephir_read_property(&_7, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 374, &_7); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &_7); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &reflection); - ZEPHIR_CALL_FUNCTION(&_27, "imagesx", NULL, 381, &reflection); + ZEPHIR_CALL_FUNCTION(&_27, "imagesx", NULL, 383, &reflection); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("width"), &_27); - ZEPHIR_CALL_FUNCTION(&_28, "imagesy", NULL, 382, &reflection); + ZEPHIR_CALL_FUNCTION(&_28, "imagesy", NULL, 384, &reflection); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("height"), &_28); ZEPHIR_MM_RESTORE(); @@ -997,56 +997,56 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processRender) { ZEPHIR_INIT_VAR(&_0); zephir_fast_strtolower(&_0, &ext); zephir_get_strval(&ext, &_0); - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 391); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 393); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "gif"); - ZEPHIR_CALL_FUNCTION(&_2, "strcmp", NULL, 392, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "strcmp", NULL, 394, &ext, &_1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "jpg"); - ZEPHIR_CALL_FUNCTION(&_3, "strcmp", NULL, 392, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_3, "strcmp", NULL, 394, &ext, &_1); zephir_check_call_status(); _4 = ZEPHIR_IS_LONG(&_3, 0); if (!(_4)) { ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "jpeg"); - ZEPHIR_CALL_FUNCTION(&_5, "strcmp", NULL, 392, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_5, "strcmp", NULL, 394, &ext, &_1); zephir_check_call_status(); _4 = ZEPHIR_IS_LONG(&_5, 0); } ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "png"); - ZEPHIR_CALL_FUNCTION(&_6, "strcmp", NULL, 392, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_6, "strcmp", NULL, 394, &ext, &_1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "wbmp"); - ZEPHIR_CALL_FUNCTION(&_7, "strcmp", NULL, 392, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_7, "strcmp", NULL, 394, &ext, &_1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "xbm"); - ZEPHIR_CALL_FUNCTION(&_8, "strcmp", NULL, 392, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_8, "strcmp", NULL, 394, &ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_2, 0)) { zephir_read_property(&_9$$3, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 393, &_9$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 395, &_9$$3); zephir_check_call_status(); } else if (_4) { zephir_read_property(&_10$$4, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_11$$4, quality); - ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 394, &_10$$4, &__$null, &_11$$4); + ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 396, &_10$$4, &__$null, &_11$$4); zephir_check_call_status(); } else if (ZEPHIR_IS_LONG(&_6, 0)) { zephir_read_property(&_12$$5, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 395, &_12$$5); + ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 397, &_12$$5); zephir_check_call_status(); } else if (ZEPHIR_IS_LONG(&_7, 0)) { zephir_read_property(&_13$$6, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 396, &_13$$6); + ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 398, &_13$$6); zephir_check_call_status(); } else if (ZEPHIR_IS_LONG(&_8, 0)) { zephir_read_property(&_14$$7, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 397, &_14$$7, &__$null); + ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 399, &_14$$7, &__$null); zephir_check_call_status(); } else { ZEPHIR_INIT_VAR(&_15$$8); @@ -1059,7 +1059,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processRender) { ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", NULL, 398); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", NULL, 400); zephir_check_call_status(); RETURN_MM(); @@ -1089,16 +1089,16 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processResize) { zephir_read_property(&_0, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_1, width); ZVAL_LONG(&_2, height); - ZEPHIR_CALL_FUNCTION(&image, "imagescale", NULL, 399, &_0, &_1, &_2); + ZEPHIR_CALL_FUNCTION(&image, "imagescale", NULL, 401, &_0, &_1, &_2); zephir_check_call_status(); zephir_read_property(&_1, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 374, &_1); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &_1); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &image); - ZEPHIR_CALL_FUNCTION(&_3, "imagesx", NULL, 381, &image); + ZEPHIR_CALL_FUNCTION(&_3, "imagesx", NULL, 383, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("width"), &_3); - ZEPHIR_CALL_FUNCTION(&_4, "imagesy", NULL, 382, &image); + ZEPHIR_CALL_FUNCTION(&_4, "imagesy", NULL, 384, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("height"), &_4); ZEPHIR_MM_RESTORE(); @@ -1139,18 +1139,18 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processRotate) { ZVAL_LONG(&_2, 0); ZVAL_LONG(&_3, 0); ZVAL_LONG(&_4, 127); - ZEPHIR_CALL_FUNCTION(&transparent, "imagecolorallocatealpha", NULL, 377, &_0, &_1, &_2, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&transparent, "imagecolorallocatealpha", NULL, 379, &_0, &_1, &_2, &_3, &_4); zephir_check_call_status(); zephir_read_property(&_1, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_2, (360 - degrees)); ZVAL_LONG(&_3, 1); - ZEPHIR_CALL_FUNCTION(&image, "imagerotate", NULL, 400, &_1, &_2, &transparent, &_3); + ZEPHIR_CALL_FUNCTION(&image, "imagerotate", NULL, 402, &_1, &_2, &transparent, &_3); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 371, &image, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 373, &image, &__$true); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&width, "imagesx", NULL, 381, &image); + ZEPHIR_CALL_FUNCTION(&width, "imagesx", NULL, 383, &image); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&height, "imagesy", NULL, 382, &image); + ZEPHIR_CALL_FUNCTION(&height, "imagesy", NULL, 384, &image); zephir_check_call_status(); zephir_read_property(&_2, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_3, 0); @@ -1158,11 +1158,11 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processRotate) { ZVAL_LONG(&_5, 0); ZVAL_LONG(&_6, 0); ZVAL_LONG(&_7, 100); - ZEPHIR_CALL_FUNCTION(&_8, "imagecopymerge", NULL, 401, &_2, &image, &_3, &_4, &_5, &_6, &width, &height, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "imagecopymerge", NULL, 403, &_2, &image, &_3, &_4, &_5, &_6, &width, &height, &_7); zephir_check_call_status(); if (zephir_is_true(&_8)) { zephir_read_property(&_9$$3, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 374, &_9$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &_9$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &image); zephir_update_property_zval(this_ptr, SL("width"), &width); @@ -1224,7 +1224,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processSave) { zephir_check_call_status(); if (!(zephir_is_true(&ext))) { zephir_read_property(&_1$$3, this_ptr, SL("type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&ext, "image_type_to_extension", NULL, 402, &_1$$3, &__$false); + ZEPHIR_CALL_FUNCTION(&ext, "image_type_to_extension", NULL, 404, &_1$$3, &__$false); zephir_check_call_status(); } ZEPHIR_INIT_VAR(&_2); @@ -1232,30 +1232,30 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processSave) { ZEPHIR_CPY_WRT(&ext, &_2); ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "gif"); - ZEPHIR_CALL_FUNCTION(&_3, "strcmp", NULL, 392, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_3, "strcmp", NULL, 394, &ext, &_2); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_3, 0)) { ZEPHIR_INIT_ZVAL_NREF(_4$$4); ZVAL_LONG(&_4$$4, 1); zephir_update_property_zval(this_ptr, SL("type"), &_4$$4); zephir_read_property(&_4$$4, this_ptr, SL("type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_5$$4, "image_type_to_mime_type", NULL, 403, &_4$$4); + ZEPHIR_CALL_FUNCTION(&_5$$4, "image_type_to_mime_type", NULL, 405, &_4$$4); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("mime"), &_5$$4); zephir_read_property(&_6$$4, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 393, &_6$$4, &file); + ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 395, &_6$$4, &file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "jpg"); - ZEPHIR_CALL_FUNCTION(&_7, "strcmp", NULL, 392, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_7, "strcmp", NULL, 394, &ext, &_2); zephir_check_call_status(); _8 = ZEPHIR_IS_LONG(&_7, 0); if (!(_8)) { ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "jpeg"); - ZEPHIR_CALL_FUNCTION(&_9, "strcmp", NULL, 392, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_9, "strcmp", NULL, 394, &ext, &_2); zephir_check_call_status(); _8 = ZEPHIR_IS_LONG(&_9, 0); } @@ -1264,7 +1264,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processSave) { ZVAL_LONG(&_10$$5, 2); zephir_update_property_zval(this_ptr, SL("type"), &_10$$5); zephir_read_property(&_10$$5, this_ptr, SL("type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_11$$5, "image_type_to_mime_type", NULL, 403, &_10$$5); + ZEPHIR_CALL_FUNCTION(&_11$$5, "image_type_to_mime_type", NULL, 405, &_10$$5); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("mime"), &_11$$5); if (quality >= 0) { @@ -1275,63 +1275,63 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processSave) { } zephir_read_property(&_12$$6, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_13$$6, quality); - ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 394, &_12$$6, &file, &_13$$6); + ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 396, &_12$$6, &file, &_13$$6); zephir_check_call_status(); } else { zephir_read_property(&_14$$9, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 394, &_14$$9, &file); + ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 396, &_14$$9, &file); zephir_check_call_status(); } RETURN_MM_BOOL(1); } ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "png"); - ZEPHIR_CALL_FUNCTION(&_15, "strcmp", NULL, 392, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_15, "strcmp", NULL, 394, &ext, &_2); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_15, 0)) { ZEPHIR_INIT_ZVAL_NREF(_16$$10); ZVAL_LONG(&_16$$10, 3); zephir_update_property_zval(this_ptr, SL("type"), &_16$$10); zephir_read_property(&_16$$10, this_ptr, SL("type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_17$$10, "image_type_to_mime_type", NULL, 403, &_16$$10); + ZEPHIR_CALL_FUNCTION(&_17$$10, "image_type_to_mime_type", NULL, 405, &_16$$10); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("mime"), &_17$$10); zephir_read_property(&_18$$10, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 395, &_18$$10, &file); + ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 397, &_18$$10, &file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "wbmp"); - ZEPHIR_CALL_FUNCTION(&_19, "strcmp", NULL, 392, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_19, "strcmp", NULL, 394, &ext, &_2); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_19, 0)) { ZEPHIR_INIT_ZVAL_NREF(_20$$11); ZVAL_LONG(&_20$$11, 15); zephir_update_property_zval(this_ptr, SL("type"), &_20$$11); zephir_read_property(&_20$$11, this_ptr, SL("type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_21$$11, "image_type_to_mime_type", NULL, 403, &_20$$11); + ZEPHIR_CALL_FUNCTION(&_21$$11, "image_type_to_mime_type", NULL, 405, &_20$$11); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("mime"), &_21$$11); zephir_read_property(&_22$$11, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 396, &_22$$11, &file); + ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 398, &_22$$11, &file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "xbm"); - ZEPHIR_CALL_FUNCTION(&_23, "strcmp", NULL, 392, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_23, "strcmp", NULL, 394, &ext, &_2); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_23, 0)) { ZEPHIR_INIT_ZVAL_NREF(_24$$12); ZVAL_LONG(&_24$$12, 16); zephir_update_property_zval(this_ptr, SL("type"), &_24$$12); zephir_read_property(&_24$$12, this_ptr, SL("type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_25$$12, "image_type_to_mime_type", NULL, 403, &_24$$12); + ZEPHIR_CALL_FUNCTION(&_25$$12, "image_type_to_mime_type", NULL, 405, &_24$$12); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("mime"), &_25$$12); zephir_read_property(&_26$$12, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 397, &_26$$12, &file); + ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 399, &_26$$12, &file); zephir_check_call_status(); RETURN_MM_BOOL(1); } @@ -1424,15 +1424,15 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processSharpen) { zephir_read_property(&_5, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_6, (amount - 8)); ZVAL_LONG(&_7, 0); - ZEPHIR_CALL_FUNCTION(&_8, "imageconvolution", NULL, 404, &_5, &matrix, &_6, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "imageconvolution", NULL, 406, &_5, &matrix, &_6, &_7); zephir_check_call_status(); if (zephir_is_true(&_8)) { zephir_read_property(&_9$$3, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_10$$3, "imagesx", NULL, 381, &_9$$3); + ZEPHIR_CALL_FUNCTION(&_10$$3, "imagesx", NULL, 383, &_9$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("width"), &_10$$3); zephir_read_property(&_11$$3, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_12$$3, "imagesy", NULL, 382, &_11$$3); + ZEPHIR_CALL_FUNCTION(&_12$$3, "imagesy", NULL, 384, &_11$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("height"), &_12$$3); } @@ -1507,7 +1507,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processText) { if (!(Z_TYPE_P(&fontfile) == IS_UNDEF) && Z_STRLEN_P(&fontfile)) { ZVAL_LONG(&_3$$3, size); ZVAL_LONG(&_4$$3, 0); - ZEPHIR_CALL_FUNCTION(&space, "imagettfbbox", NULL, 405, &_3$$3, &_4$$3, &fontfile, &text); + ZEPHIR_CALL_FUNCTION(&space, "imagettfbbox", NULL, 407, &_3$$3, &_4$$3, &fontfile, &text); zephir_check_call_status(); if (zephir_array_isset_long(&space, 0)) { ZEPHIR_OBS_VAR(&_5$$4); @@ -1560,7 +1560,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processText) { ZVAL_LONG(&_16$$3, g); ZVAL_LONG(&_17$$3, b); ZVAL_LONG(&_18$$3, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 377, &_3$$3, &_4$$3, &_16$$3, &_17$$3, &_18$$3); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 379, &_3$$3, &_4$$3, &_16$$3, &_17$$3, &_18$$3); zephir_check_call_status(); angle = 0; zephir_read_property(&_4$$3, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); @@ -1568,15 +1568,15 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processText) { ZVAL_LONG(&_17$$3, angle); ZVAL_LONG(&_18$$3, offsetX); ZVAL_LONG(&_19$$3, offsetY); - ZEPHIR_CALL_FUNCTION(NULL, "imagettftext", NULL, 406, &_4$$3, &_16$$3, &_17$$3, &_18$$3, &_19$$3, &color, &fontfile, &text); + ZEPHIR_CALL_FUNCTION(NULL, "imagettftext", NULL, 408, &_4$$3, &_16$$3, &_17$$3, &_18$$3, &_19$$3, &color, &fontfile, &text); zephir_check_call_status(); } else { ZVAL_LONG(&_20$$8, size); - ZEPHIR_CALL_FUNCTION(&_21$$8, "imagefontwidth", NULL, 407, &_20$$8); + ZEPHIR_CALL_FUNCTION(&_21$$8, "imagefontwidth", NULL, 409, &_20$$8); zephir_check_call_status(); width = (zephir_get_intval(&_21$$8) * zephir_fast_strlen_ev(&text)); ZVAL_LONG(&_20$$8, size); - ZEPHIR_CALL_FUNCTION(&_22$$8, "imagefontheight", NULL, 408, &_20$$8); + ZEPHIR_CALL_FUNCTION(&_22$$8, "imagefontheight", NULL, 410, &_20$$8); zephir_check_call_status(); height = zephir_get_intval(&_22$$8); if (offsetX < 0) { @@ -1592,13 +1592,13 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processText) { ZVAL_LONG(&_26$$8, g); ZVAL_LONG(&_27$$8, b); ZVAL_LONG(&_28$$8, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 377, &_20$$8, &_25$$8, &_26$$8, &_27$$8, &_28$$8); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 379, &_20$$8, &_25$$8, &_26$$8, &_27$$8, &_28$$8); zephir_check_call_status(); zephir_read_property(&_25$$8, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_26$$8, size); ZVAL_LONG(&_27$$8, offsetX); ZVAL_LONG(&_28$$8, offsetY); - ZEPHIR_CALL_FUNCTION(NULL, "imagestring", NULL, 409, &_25$$8, &_26$$8, &_27$$8, &_28$$8, &text, &color); + ZEPHIR_CALL_FUNCTION(NULL, "imagestring", NULL, 411, &_25$$8, &_26$$8, &_27$$8, &_28$$8, &text, &color); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -1645,14 +1645,14 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processWatermark) { ZEPHIR_CALL_METHOD(&_0, watermark, "render", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&overlay, "imagecreatefromstring", NULL, 384, &_0); + ZEPHIR_CALL_FUNCTION(&overlay, "imagecreatefromstring", NULL, 386, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 371, &overlay, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 373, &overlay, &__$true); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 381, &overlay); + ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 383, &overlay); zephir_check_call_status(); width = zephir_get_intval(&_1); - ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 382, &overlay); + ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 384, &overlay); zephir_check_call_status(); height = zephir_get_intval(&_2); if (opacity < 100) { @@ -1666,20 +1666,20 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processWatermark) { ZVAL_LONG(&_6$$3, 127); ZVAL_LONG(&_7$$3, 127); ZVAL_LONG(&_8$$3, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 377, &overlay, &_4$$3, &_6$$3, &_7$$3, &_8$$3); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 379, &overlay, &_4$$3, &_6$$3, &_7$$3, &_8$$3); zephir_check_call_status(); ZVAL_LONG(&_4$$3, 3); - ZEPHIR_CALL_FUNCTION(NULL, "imagelayereffect", NULL, 410, &overlay, &_4$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagelayereffect", NULL, 412, &overlay, &_4$$3); zephir_check_call_status(); ZVAL_LONG(&_4$$3, 0); ZVAL_LONG(&_6$$3, 0); ZVAL_LONG(&_7$$3, width); ZVAL_LONG(&_8$$3, height); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", NULL, 390, &overlay, &_4$$3, &_6$$3, &_7$$3, &_8$$3, &color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", NULL, 392, &overlay, &_4$$3, &_6$$3, &_7$$3, &_8$$3, &color); zephir_check_call_status(); } zephir_read_property(&_9, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 373, &_9, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 375, &_9, &__$true); zephir_check_call_status(); zephir_read_property(&_10, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_11, offsetX); @@ -1688,10 +1688,10 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processWatermark) { ZVAL_LONG(&_14, 0); ZVAL_LONG(&_15, width); ZVAL_LONG(&_16, height); - ZEPHIR_CALL_FUNCTION(&_17, "imagecopy", NULL, 378, &_10, &overlay, &_11, &_12, &_13, &_14, &_15, &_16); + ZEPHIR_CALL_FUNCTION(&_17, "imagecopy", NULL, 380, &_10, &overlay, &_11, &_12, &_13, &_14, &_15, &_16); zephir_check_call_status(); if (zephir_is_true(&_17)) { - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 374, &overlay); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &overlay); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/loader.zep.c b/ext/phalcon/loader.zep.c index 673ec2c7564..789b320bb58 100644 --- a/ext/phalcon/loader.zep.c +++ b/ext/phalcon/loader.zep.c @@ -1097,7 +1097,7 @@ PHP_METHOD(Phalcon_Loader, register) { ZVAL_STRING(&_2$$3, "autoLoad"); zephir_array_fast_append(&_1$$3, &_2$$3); ZVAL_BOOL(&_3$$3, (prepend ? 1 : 0)); - ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_register", NULL, 411, &_1$$3, &__$true, &_3$$3); + ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_register", NULL, 413, &_1$$3, &__$true, &_3$$3); zephir_check_call_status(); if (1) { zephir_update_property_zval(this_ptr, SL("registered"), &__$true); @@ -1447,7 +1447,7 @@ PHP_METHOD(Phalcon_Loader, unregister) { ZEPHIR_INIT_VAR(&_2$$3); ZVAL_STRING(&_2$$3, "autoLoad"); zephir_array_fast_append(&_1$$3, &_2$$3); - ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_unregister", NULL, 412, &_1$$3); + ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_unregister", NULL, 414, &_1$$3); zephir_check_call_status(); if (0) { zephir_update_property_zval(this_ptr, SL("registered"), &__$true); diff --git a/ext/phalcon/logger.zep.c b/ext/phalcon/logger.zep.c index 8c770551a7c..3861f580375 100644 --- a/ext/phalcon/logger.zep.c +++ b/ext/phalcon/logger.zep.c @@ -576,7 +576,7 @@ PHP_METHOD(Phalcon_Logger, log) { } - ZEPHIR_CALL_METHOD(&intLevel, this_ptr, "getlevelnumber", NULL, 413, level); + ZEPHIR_CALL_METHOD(&intLevel, this_ptr, "getlevelnumber", NULL, 415, level); zephir_check_call_status(); zephir_get_strval(&_0, message); ZEPHIR_CALL_METHOD(NULL, this_ptr, "addmessage", NULL, 0, level, &_0, &context); @@ -791,7 +791,7 @@ PHP_METHOD(Phalcon_Logger, addMessage) { ZEPHIR_INIT_VAR(&_1); zephir_time(&_1); ZVAL_LONG(&_0, level); - ZEPHIR_CALL_METHOD(NULL, &item, "__construct", NULL, 414, &message, &levelName, &_0, &_1, &context); + ZEPHIR_CALL_METHOD(NULL, &item, "__construct", NULL, 416, &message, &levelName, &_0, &_1, &context); zephir_check_call_status(); zephir_is_iterable(®istered, 0, "phalcon/Logger.zep", 351); if (Z_TYPE_P(®istered) == IS_ARRAY) { diff --git a/ext/phalcon/logger/adapter/syslog.zep.c b/ext/phalcon/logger/adapter/syslog.zep.c index 54d565d6558..18111803241 100644 --- a/ext/phalcon/logger/adapter/syslog.zep.c +++ b/ext/phalcon/logger/adapter/syslog.zep.c @@ -159,7 +159,7 @@ PHP_METHOD(Phalcon_Logger_Adapter_Syslog, close) { if (!(zephir_is_true(&_0))) { RETURN_MM_BOOL(1); } - ZEPHIR_RETURN_CALL_FUNCTION("closelog", NULL, 415); + ZEPHIR_RETURN_CALL_FUNCTION("closelog", NULL, 417); zephir_check_call_status(); RETURN_MM(); @@ -212,7 +212,7 @@ PHP_METHOD(Phalcon_Logger_Adapter_Syslog, process) { ZEPHIR_CPY_WRT(&facility, &_0); zephir_read_property(&_0, this_ptr, SL("option"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&option, &_0); - ZEPHIR_CALL_FUNCTION(&result, "openlog", NULL, 416, &name, &option, &facility); + ZEPHIR_CALL_FUNCTION(&result, "openlog", NULL, 418, &name, &option, &facility); zephir_check_call_status(); if (!zephir_is_true(&result)) { ZEPHIR_INIT_VAR(&_1$$4); @@ -221,7 +221,7 @@ PHP_METHOD(Phalcon_Logger_Adapter_Syslog, process) { ZVAL_STRING(&_2$$4, "Cannot open syslog for name [%s] and facility [%s]"); ZEPHIR_CALL_FUNCTION(&_3$$4, "sprintf", NULL, 182, &_2$$4, &name, &facility); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 417, &_3$$4); + ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 419, &_3$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$4, "phalcon/Logger/Adapter/Syslog.zep", 132 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -234,10 +234,10 @@ PHP_METHOD(Phalcon_Logger_Adapter_Syslog, process) { zephir_update_property_zval(this_ptr, SL("opened"), &__$false); } zephir_array_fetch_long(&_4, &message, 1, PH_NOISY | PH_READONLY, "phalcon/Logger/Adapter/Syslog.zep", 137 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&level, this_ptr, "logleveltosyslog", NULL, 418, &_4); + ZEPHIR_CALL_METHOD(&level, this_ptr, "logleveltosyslog", NULL, 420, &_4); zephir_check_call_status(); zephir_array_fetch_long(&_5, &message, 1, PH_NOISY | PH_READONLY, "phalcon/Logger/Adapter/Syslog.zep", 139 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(NULL, "syslog", NULL, 419, &level, &_5); + ZEPHIR_CALL_FUNCTION(NULL, "syslog", NULL, 421, &level, &_5); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/logger/formatter/json.zep.c b/ext/phalcon/logger/formatter/json.zep.c index 8ad05eafa5e..eca3311375a 100644 --- a/ext/phalcon/logger/formatter/json.zep.c +++ b/ext/phalcon/logger/formatter/json.zep.c @@ -163,7 +163,7 @@ PHP_METHOD(Phalcon_Logger_Formatter_Json, format) { zephir_read_property(&_6, this_ptr, SL("dateFormat"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CALL_METHOD(&_5, item, "gettime", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_7, "date", NULL, 420, &_6, &_5); + ZEPHIR_CALL_FUNCTION(&_7, "date", NULL, 422, &_6, &_5); zephir_check_call_status(); zephir_array_update_string(&_4, SL("timestamp"), &_7, PH_COPY | PH_SEPARATE); zephir_json_encode(&_3, &_4, 0 ); diff --git a/ext/phalcon/logger/formatter/line.zep.c b/ext/phalcon/logger/formatter/line.zep.c index c2c411fb8ae..fec6d0cd0ae 100644 --- a/ext/phalcon/logger/formatter/line.zep.c +++ b/ext/phalcon/logger/formatter/line.zep.c @@ -202,7 +202,7 @@ PHP_METHOD(Phalcon_Logger_Formatter_Line, format) { zephir_read_property(&_2$$3, this_ptr, SL("dateFormat"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CALL_METHOD(&_3$$3, item, "gettime", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_4$$3, "date", NULL, 420, &_2$$3, &_3$$3); + ZEPHIR_CALL_FUNCTION(&_4$$3, "date", NULL, 422, &_2$$3, &_3$$3); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_5$$3); ZVAL_STRING(&_5$$3, "%date%"); diff --git a/ext/phalcon/logger/loggerfactory.zep.c b/ext/phalcon/logger/loggerfactory.zep.c index 5e7a93c9127..4f80e6849b1 100644 --- a/ext/phalcon/logger/loggerfactory.zep.c +++ b/ext/phalcon/logger/loggerfactory.zep.c @@ -244,7 +244,7 @@ PHP_METHOD(Phalcon_Logger_LoggerFactory, newInstance) { object_init_ex(return_value, phalcon_logger_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 421, &name, &adapters); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 423, &name, &adapters); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/messages/messages.zep.c b/ext/phalcon/messages/messages.zep.c index 5fab4dd0cbc..7daeb455322 100644 --- a/ext/phalcon/messages/messages.zep.c +++ b/ext/phalcon/messages/messages.zep.c @@ -520,7 +520,7 @@ PHP_METHOD(Phalcon_Messages_Messages, offsetUnset) { zephir_read_property(&_1$$3, this_ptr, SL("messages"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_2$$3, 1); ZEPHIR_MAKE_REF(&_1$$3); - ZEPHIR_CALL_FUNCTION(NULL, "array_splice", NULL, 422, &_1$$3, index, &_2$$3); + ZEPHIR_CALL_FUNCTION(NULL, "array_splice", NULL, 424, &_1$$3, index, &_2$$3); ZEPHIR_UNREF(&_1$$3); zephir_check_call_status(); } diff --git a/ext/phalcon/mvc/micro.zep.c b/ext/phalcon/mvc/micro.zep.c index d80256de13a..ca56341ad65 100644 --- a/ext/phalcon/mvc/micro.zep.c +++ b/ext/phalcon/mvc/micro.zep.c @@ -468,11 +468,11 @@ PHP_METHOD(Phalcon_Mvc_Micro, getService) { if (Z_TYPE_P(&container) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&container); object_init_ex(&container, phalcon_di_factorydefault_ce); - ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 427); + ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 425); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("container"), &container); } - ZEPHIR_RETURN_CALL_METHOD(&container, "get", NULL, 428, &serviceName); + ZEPHIR_RETURN_CALL_METHOD(&container, "get", NULL, 426, &serviceName); zephir_check_call_status(); RETURN_MM(); @@ -515,11 +515,11 @@ PHP_METHOD(Phalcon_Mvc_Micro, getSharedService) { if (Z_TYPE_P(&container) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&container); object_init_ex(&container, phalcon_di_factorydefault_ce); - ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 427); + ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 425); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("container"), &container); } - ZEPHIR_RETURN_CALL_METHOD(&container, "getshared", NULL, 429, &serviceName); + ZEPHIR_RETURN_CALL_METHOD(&container, "getshared", NULL, 427, &serviceName); zephir_check_call_status(); RETURN_MM(); @@ -1324,11 +1324,11 @@ PHP_METHOD(Phalcon_Mvc_Micro, hasService) { if (Z_TYPE_P(&container) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&container); object_init_ex(&container, phalcon_di_factorydefault_ce); - ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 427); + ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 425); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("container"), &container); } - ZEPHIR_RETURN_CALL_METHOD(&container, "has", NULL, 430, &serviceName); + ZEPHIR_RETURN_CALL_METHOD(&container, "has", NULL, 428, &serviceName); zephir_check_call_status(); RETURN_MM(); @@ -1475,7 +1475,7 @@ PHP_METHOD(Phalcon_Mvc_Micro, mount) { if (zephir_is_true(&_0)) { ZEPHIR_INIT_VAR(&lazyHandler); object_init_ex(&lazyHandler, phalcon_mvc_micro_lazyloader_ce); - ZEPHIR_CALL_METHOD(NULL, &lazyHandler, "__construct", NULL, 431, &mainHandler); + ZEPHIR_CALL_METHOD(NULL, &lazyHandler, "__construct", NULL, 429, &mainHandler); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&lazyHandler, &mainHandler); @@ -1728,11 +1728,11 @@ PHP_METHOD(Phalcon_Mvc_Micro, offsetUnset) { if (Z_TYPE_P(&container) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&container); object_init_ex(&container, phalcon_di_factorydefault_ce); - ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 427); + ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 425); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("container"), &container); } - ZEPHIR_CALL_METHOD(NULL, &container, "remove", NULL, 432, alias); + ZEPHIR_CALL_METHOD(NULL, &container, "remove", NULL, 430, alias); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -2086,7 +2086,7 @@ PHP_METHOD(Phalcon_Mvc_Micro, setService) { if (Z_TYPE_P(&container) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&container); object_init_ex(&container, phalcon_di_factorydefault_ce); - ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 427); + ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 425); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("container"), &container); } @@ -2095,7 +2095,7 @@ PHP_METHOD(Phalcon_Mvc_Micro, setService) { } else { ZVAL_BOOL(&_0, 0); } - ZEPHIR_RETURN_CALL_METHOD(&container, "set", NULL, 433, &serviceName, definition, &_0); + ZEPHIR_RETURN_CALL_METHOD(&container, "set", NULL, 431, &serviceName, definition, &_0); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/mvc/model.zep.c b/ext/phalcon/mvc/model.zep.c index 7fab2e04c1f..31e52d78b9b 100644 --- a/ext/phalcon/mvc/model.zep.c +++ b/ext/phalcon/mvc/model.zep.c @@ -71,9 +71,7 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Mvc_Model) { - ZEPHIR_REGISTER_CLASS(Phalcon\\Mvc, Model, phalcon, mvc_model, phalcon_mvc_model_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); - - zend_declare_property_null(phalcon_mvc_model_ce, SL("container"), ZEND_ACC_PROTECTED TSRMLS_CC); + ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Mvc, Model, phalcon, mvc_model, phalcon_di_abstractinjectionaware_ce, phalcon_mvc_model_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); zend_declare_property_long(phalcon_mvc_model_ce, SL("dirtyState"), 1, ZEND_ACC_PROTECTED TSRMLS_CC); @@ -123,7 +121,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Mvc_Model) { zend_class_implements(phalcon_mvc_model_ce TSRMLS_CC, 1, phalcon_mvc_entityinterface_ce); zend_class_implements(phalcon_mvc_model_ce TSRMLS_CC, 1, phalcon_mvc_modelinterface_ce); zend_class_implements(phalcon_mvc_model_ce TSRMLS_CC, 1, phalcon_mvc_model_resultinterface_ce); - zend_class_implements(phalcon_mvc_model_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); zend_class_implements(phalcon_mvc_model_ce TSRMLS_CC, 1, zend_ce_serializable); zend_class_implements(phalcon_mvc_model_ce TSRMLS_CC, 1, zephir_get_internal_ce(SL("jsonserializable"))); return SUCCESS; @@ -194,7 +191,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __construct) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 5, &_2$$4); zephir_check_call_status(); - zephir_throw_exception_debug(&_1$$4, "phalcon/Mvc/Model.zep", 142 TSRMLS_CC); + zephir_throw_exception_debug(&_1$$4, "phalcon/Mvc/Model.zep", 140 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -206,7 +203,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __construct) { zephir_check_call_status(); ZEPHIR_CPY_WRT(modelsManager, &_5$$5); if (UNEXPECTED(Z_TYPE_P(modelsManager) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsManager' is not valid", "phalcon/Mvc/Model.zep", 156); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsManager' is not valid", "phalcon/Mvc/Model.zep", 154); return; } } @@ -256,7 +253,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __call) { zephir_get_arrval(&arguments, arguments_param); - ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 434, &method, &arguments); + ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 432, &method, &arguments); zephir_check_call_status(); if (Z_TYPE_P(&records) != IS_NULL) { RETURN_CCTOR(&records); @@ -280,7 +277,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __call) { ZEPHIR_CONCAT_SVSVS(&_3, "The method '", &method, "' doesn't exist on model '", &modelName, "'"); ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 5, &_3); zephir_check_call_status(); - zephir_throw_exception_debug(&_2, "phalcon/Mvc/Model.zep", 224 TSRMLS_CC); + zephir_throw_exception_debug(&_2, "phalcon/Mvc/Model.zep", 222 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; @@ -311,7 +308,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __callStatic) { zephir_get_arrval(&arguments, arguments_param); - ZEPHIR_RETURN_CALL_SELF("_invokefinder", &_0, 434, &method, &arguments); + ZEPHIR_RETURN_CALL_SELF("_invokefinder", &_0, 432, &method, &arguments); zephir_check_call_status(); RETURN_MM(); @@ -373,7 +370,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __get) { zephir_read_property(&_1$$3, this_ptr, SL("dirtyRelated"), PH_NOISY_CC | PH_READONLY); if (zephir_array_isset(&_1$$3, &lowerProperty)) { zephir_read_property(&_2$$4, this_ptr, SL("dirtyRelated"), PH_NOISY_CC | PH_READONLY); - zephir_array_fetch(&_3$$4, &_2$$4, &lowerProperty, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 266 TSRMLS_CC); + zephir_array_fetch(&_3$$4, &_2$$4, &lowerProperty, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 264 TSRMLS_CC); RETURN_CTOR(&_3$$4); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getrelated", NULL, 0, &lowerProperty); @@ -556,7 +553,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __set) { if (ZEPHIR_IS_LONG(&_5$$7, 2) || ZEPHIR_IS_LONG(&_5$$7, 4)) { ZEPHIR_INIT_VAR(&related); array_init(&related); - zephir_is_iterable(value, 0, "phalcon/Mvc/Model.zep", 405); + zephir_is_iterable(value, 0, "phalcon/Mvc/Model.zep", 403); if (Z_TYPE_P(value) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(value), _9$$10) { @@ -564,7 +561,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __set) { ZVAL_COPY(&item, _9$$10); if (Z_TYPE_P(&item) == IS_OBJECT) { if (zephir_instance_of_ev(&item, phalcon_mvc_modelinterface_ce TSRMLS_CC)) { - zephir_array_append(&related, &item, PH_SEPARATE, "phalcon/Mvc/Model.zep", 400); + zephir_array_append(&related, &item, PH_SEPARATE, "phalcon/Mvc/Model.zep", 398); } } } ZEND_HASH_FOREACH_END(); @@ -581,7 +578,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __set) { zephir_check_call_status(); if (Z_TYPE_P(&item) == IS_OBJECT) { if (zephir_instance_of_ev(&item, phalcon_mvc_modelinterface_ce TSRMLS_CC)) { - zephir_array_append(&related, &item, PH_SEPARATE, "phalcon/Mvc/Model.zep", 400); + zephir_array_append(&related, &item, PH_SEPARATE, "phalcon/Mvc/Model.zep", 398); } } ZEPHIR_CALL_METHOD(NULL, value, "next", NULL, 0); @@ -605,13 +602,13 @@ PHP_METHOD(Phalcon_Mvc_Model, __set) { } } - ZEPHIR_CALL_METHOD(&_13, this_ptr, "_possiblesetter", NULL, 435, &property, value); + ZEPHIR_CALL_METHOD(&_13, this_ptr, "_possiblesetter", NULL, 433, &property, value); zephir_check_call_status(); if (zephir_is_true(&_13)) { RETVAL_ZVAL(value, 1, 0); RETURN_MM(); } - ZEPHIR_CALL_FUNCTION(&_14, "property_exists", NULL, 436, this_ptr, &property); + ZEPHIR_CALL_FUNCTION(&_14, "property_exists", NULL, 434, this_ptr, &property); zephir_check_call_status(); if (zephir_is_true(&_14)) { ZEPHIR_CALL_METHOD(&manager, this_ptr, "getmodelsmanager", NULL, 0); @@ -625,7 +622,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __set) { ZEPHIR_CONCAT_SVS(&_17$$20, "Property '", &property, "' does not have a setter."); ZEPHIR_CALL_METHOD(NULL, &_16$$20, "__construct", NULL, 5, &_17$$20); zephir_check_call_status(); - zephir_throw_exception_debug(&_16$$20, "phalcon/Mvc/Model.zep", 434 TSRMLS_CC); + zephir_throw_exception_debug(&_16$$20, "phalcon/Mvc/Model.zep", 432 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -826,7 +823,7 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { if (Z_TYPE_P(dataColumnMap) == IS_ARRAY) { ZEPHIR_INIT_VAR(&dataMapped); array_init(&dataMapped); - zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 568); + zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 566); if (Z_TYPE_P(&data) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _2$$3, _3$$3, _0$$3) { @@ -883,7 +880,7 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { } ZEPHIR_CALL_METHOD(&_4, &metaData, "getattributes", NULL, 0, this_ptr); zephir_check_call_status(); - zephir_is_iterable(&_4, 0, "phalcon/Mvc/Model.zep", 625); + zephir_is_iterable(&_4, 0, "phalcon/Mvc/Model.zep", 623); if (Z_TYPE_P(&_4) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_4), _5) { @@ -894,7 +891,7 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { _7$$12 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_7$$12) { - ZEPHIR_CALL_SELF(&_8$$13, "caseinsensitivecolumnmap", &_9, 437, &columnMap, &attribute); + ZEPHIR_CALL_SELF(&_8$$13, "caseinsensitivecolumnmap", &_9, 435, &columnMap, &attribute); zephir_check_call_status(); ZEPHIR_CPY_WRT(&attribute, &_8$$13); } @@ -908,7 +905,7 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { ZEPHIR_CONCAT_SVS(&_11$$16, "Column '", &attribute, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_10$$16, "__construct", &_12, 5, &_11$$16); zephir_check_call_status(); - zephir_throw_exception_debug(&_10$$16, "phalcon/Mvc/Model.zep", 599 TSRMLS_CC); + zephir_throw_exception_debug(&_10$$16, "phalcon/Mvc/Model.zep", 597 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -926,7 +923,7 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { } _13$$18 = zephir_is_true(&disableAssignSetters); if (!(_13$$18)) { - ZEPHIR_CALL_METHOD(&_14$$18, this_ptr, "_possiblesetter", &_15, 435, &attributeField, &value); + ZEPHIR_CALL_METHOD(&_14$$18, this_ptr, "_possiblesetter", &_15, 433, &attributeField, &value); zephir_check_call_status(); _13$$18 = !zephir_is_true(&_14$$18); } @@ -951,7 +948,7 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { _16$$22 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_16$$22) { - ZEPHIR_CALL_SELF(&_17$$23, "caseinsensitivecolumnmap", &_9, 437, &columnMap, &attribute); + ZEPHIR_CALL_SELF(&_17$$23, "caseinsensitivecolumnmap", &_9, 435, &columnMap, &attribute); zephir_check_call_status(); ZEPHIR_CPY_WRT(&attribute, &_17$$23); } @@ -965,7 +962,7 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { ZEPHIR_CONCAT_SVS(&_19$$26, "Column '", &attribute, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_18$$26, "__construct", &_12, 5, &_19$$26); zephir_check_call_status(); - zephir_throw_exception_debug(&_18$$26, "phalcon/Mvc/Model.zep", 599 TSRMLS_CC); + zephir_throw_exception_debug(&_18$$26, "phalcon/Mvc/Model.zep", 597 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -983,7 +980,7 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { } _20$$28 = zephir_is_true(&disableAssignSetters); if (!(_20$$28)) { - ZEPHIR_CALL_METHOD(&_21$$28, this_ptr, "_possiblesetter", &_15, 435, &attributeField, &value); + ZEPHIR_CALL_METHOD(&_21$$28, this_ptr, "_possiblesetter", &_15, 433, &attributeField, &value); zephir_check_call_status(); _20$$28 = !zephir_is_true(&_21$$28); } @@ -1110,7 +1107,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResult) { ZVAL_LONG(&_0, dirtyState); ZEPHIR_CALL_METHOD(NULL, &instance, "setdirtystate", NULL, 0, &_0); zephir_check_call_status(); - zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 703); + zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 701); if (Z_TYPE_P(&data) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _3, _4, _1) { @@ -1123,7 +1120,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResult) { ZEPHIR_INIT_NVAR(&value); ZVAL_COPY(&value, _1); if (UNEXPECTED(Z_TYPE_P(&key) != IS_STRING)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Invalid key in array data provided to dumpResult()", "phalcon/Mvc/Model.zep", 693); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Invalid key in array data provided to dumpResult()", "phalcon/Mvc/Model.zep", 691); return; } zephir_update_property_zval_zval(&instance, &key, &value TSRMLS_CC); @@ -1142,7 +1139,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResult) { ZEPHIR_CALL_METHOD(&value, &data, "current", NULL, 0); zephir_check_call_status(); if (UNEXPECTED(Z_TYPE_P(&key) != IS_STRING)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Invalid key in array data provided to dumpResult()", "phalcon/Mvc/Model.zep", 693); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Invalid key in array data provided to dumpResult()", "phalcon/Mvc/Model.zep", 691); return; } zephir_update_property_zval_zval(&instance, &key, &value TSRMLS_CC); @@ -1235,7 +1232,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { ZVAL_LONG(&_0, dirtyState); ZEPHIR_CALL_METHOD(NULL, &instance, "setdirtystate", NULL, 0, &_0); zephir_check_call_status(); - zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 806); + zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 804); if (Z_TYPE_P(&data) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _3, _4, _1) { @@ -1263,7 +1260,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { ZEPHIR_CONCAT_SVS(&_6$$7, "Column '", &key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_5$$7, "__construct", &_7, 5, &_6$$7); zephir_check_call_status(); - zephir_throw_exception_debug(&_5$$7, "phalcon/Mvc/Model.zep", 751 TSRMLS_CC); + zephir_throw_exception_debug(&_5$$7, "phalcon/Mvc/Model.zep", 749 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1278,7 +1275,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { _8$$3 = Z_TYPE_P(&value) != IS_NULL; } if (_8$$3) { - zephir_array_fetch_long(&_9$$9, &attribute, 1, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 764 TSRMLS_CC); + zephir_array_fetch_long(&_9$$9, &attribute, 1, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 762 TSRMLS_CC); do { if (ZEPHIR_IS_LONG(&_9$$9, 0)) { ZVAL_LONG(&_10$$10, 10); @@ -1301,7 +1298,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { } while(0); } else { - zephir_array_fetch_long(&_12$$14, &attribute, 1, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 784 TSRMLS_CC); + zephir_array_fetch_long(&_12$$14, &attribute, 1, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 782 TSRMLS_CC); do { if (ZEPHIR_IS_LONG(&_12$$14, 0) || ZEPHIR_IS_LONG(&_12$$14, 9) || ZEPHIR_IS_LONG(&_12$$14, 3) || ZEPHIR_IS_LONG(&_12$$14, 7) || ZEPHIR_IS_LONG(&_12$$14, 8)) { ZEPHIR_INIT_NVAR(&castValue); @@ -1314,7 +1311,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { } ZEPHIR_OBS_NVAR(&attributeName); - zephir_array_fetch_long(&attributeName, &attribute, 0, PH_NOISY, "phalcon/Mvc/Model.zep", 799 TSRMLS_CC); + zephir_array_fetch_long(&attributeName, &attribute, 0, PH_NOISY, "phalcon/Mvc/Model.zep", 797 TSRMLS_CC); zephir_update_property_zval_zval(&instance, &attributeName, &castValue TSRMLS_CC); } ZEND_HASH_FOREACH_END(); } else { @@ -1346,7 +1343,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { ZEPHIR_CONCAT_SVS(&_14$$21, "Column '", &key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_13$$21, "__construct", &_7, 5, &_14$$21); zephir_check_call_status(); - zephir_throw_exception_debug(&_13$$21, "phalcon/Mvc/Model.zep", 751 TSRMLS_CC); + zephir_throw_exception_debug(&_13$$21, "phalcon/Mvc/Model.zep", 749 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1361,7 +1358,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { _15$$17 = Z_TYPE_P(&value) != IS_NULL; } if (_15$$17) { - zephir_array_fetch_long(&_16$$23, &attribute, 1, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 764 TSRMLS_CC); + zephir_array_fetch_long(&_16$$23, &attribute, 1, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 762 TSRMLS_CC); do { if (ZEPHIR_IS_LONG(&_16$$23, 0)) { ZVAL_LONG(&_17$$24, 10); @@ -1384,7 +1381,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { } while(0); } else { - zephir_array_fetch_long(&_18$$28, &attribute, 1, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 784 TSRMLS_CC); + zephir_array_fetch_long(&_18$$28, &attribute, 1, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 782 TSRMLS_CC); do { if (ZEPHIR_IS_LONG(&_18$$28, 0) || ZEPHIR_IS_LONG(&_18$$28, 9) || ZEPHIR_IS_LONG(&_18$$28, 3) || ZEPHIR_IS_LONG(&_18$$28, 7) || ZEPHIR_IS_LONG(&_18$$28, 8)) { ZEPHIR_INIT_NVAR(&castValue); @@ -1397,7 +1394,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { } ZEPHIR_OBS_NVAR(&attributeName); - zephir_array_fetch_long(&attributeName, &attribute, 0, PH_NOISY, "phalcon/Mvc/Model.zep", 799 TSRMLS_CC); + zephir_array_fetch_long(&attributeName, &attribute, 0, PH_NOISY, "phalcon/Mvc/Model.zep", 797 TSRMLS_CC); zephir_update_property_zval_zval(&instance, &attributeName, &castValue TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, &data, "next", NULL, 0); zephir_check_call_status(); @@ -1468,7 +1465,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { } ZEPHIR_INIT_VAR(&hydrateArray); array_init(&hydrateArray); - zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 887); + zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 885); if (Z_TYPE_P(&data) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _2, _3, _0) { @@ -1489,7 +1486,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { _4$$7 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_4$$7) { - ZEPHIR_CALL_SELF(&_5$$8, "caseinsensitivecolumnmap", &_6, 437, columnMap, &key); + ZEPHIR_CALL_SELF(&_5$$8, "caseinsensitivecolumnmap", &_6, 435, columnMap, &key); zephir_check_call_status(); ZEPHIR_CPY_WRT(&key, &_5$$8); } @@ -1502,7 +1499,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { ZEPHIR_CONCAT_SVS(&_8$$10, "Column '", &key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_7$$10, "__construct", &_9, 5, &_8$$10); zephir_check_call_status(); - zephir_throw_exception_debug(&_7$$10, "phalcon/Mvc/Model.zep", 866 TSRMLS_CC); + zephir_throw_exception_debug(&_7$$10, "phalcon/Mvc/Model.zep", 864 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1510,7 +1507,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { } if (Z_TYPE_P(&attribute) == IS_ARRAY) { ZEPHIR_OBS_NVAR(&attributeName); - zephir_array_fetch_long(&attributeName, &attribute, 0, PH_NOISY, "phalcon/Mvc/Model.zep", 876 TSRMLS_CC); + zephir_array_fetch_long(&attributeName, &attribute, 0, PH_NOISY, "phalcon/Mvc/Model.zep", 874 TSRMLS_CC); } else { ZEPHIR_CPY_WRT(&attributeName, &attribute); } @@ -1541,7 +1538,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { _10$$16 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_10$$16) { - ZEPHIR_CALL_SELF(&_11$$17, "caseinsensitivecolumnmap", &_6, 437, columnMap, &key); + ZEPHIR_CALL_SELF(&_11$$17, "caseinsensitivecolumnmap", &_6, 435, columnMap, &key); zephir_check_call_status(); ZEPHIR_CPY_WRT(&key, &_11$$17); } @@ -1554,7 +1551,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { ZEPHIR_CONCAT_SVS(&_13$$19, "Column '", &key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_12$$19, "__construct", &_9, 5, &_13$$19); zephir_check_call_status(); - zephir_throw_exception_debug(&_12$$19, "phalcon/Mvc/Model.zep", 866 TSRMLS_CC); + zephir_throw_exception_debug(&_12$$19, "phalcon/Mvc/Model.zep", 864 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1562,7 +1559,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { } if (Z_TYPE_P(&attribute) == IS_ARRAY) { ZEPHIR_OBS_NVAR(&attributeName); - zephir_array_fetch_long(&attributeName, &attribute, 0, PH_NOISY, "phalcon/Mvc/Model.zep", 876 TSRMLS_CC); + zephir_array_fetch_long(&attributeName, &attribute, 0, PH_NOISY, "phalcon/Mvc/Model.zep", 874 TSRMLS_CC); } else { ZEPHIR_CPY_WRT(&attributeName, &attribute); } @@ -1577,7 +1574,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { ZEPHIR_INIT_NVAR(&value); ZEPHIR_INIT_NVAR(&key); if (hydrationMode != 1) { - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_helper_arr_ce, "arraytoobject", &_14, 438, &hydrateArray); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_helper_arr_ce, "arraytoobject", &_14, 436, &hydrateArray); zephir_check_call_status(); RETURN_MM(); } @@ -1688,7 +1685,7 @@ PHP_METHOD(Phalcon_Mvc_Model, create) { ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "getreadconnection", NULL, 439); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "getreadconnection", NULL, 437); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_0, this_ptr, "_exists", NULL, 0, &metaData, &_1); zephir_check_call_status(); @@ -1787,7 +1784,7 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&writeConnection, this_ptr, "getwriteconnection", NULL, 440); + ZEPHIR_CALL_METHOD(&writeConnection, this_ptr, "getwriteconnection", NULL, 438); zephir_check_call_status(); ZEPHIR_INIT_ZVAL_NREF(_0); ZVAL_LONG(&_0, 3); @@ -1796,7 +1793,7 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { array_init(&_1); zephir_update_property_zval(this_ptr, SL("errorMessages"), &_1); if (ZEPHIR_GLOBAL(orm).virtual_foreign_keys) { - ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "_checkforeignkeysreverserestrict", NULL, 441); + ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "_checkforeignkeysreverserestrict", NULL, 439); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_2$$3)) { RETURN_MM_BOOL(0); @@ -1820,10 +1817,10 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZVAL_NULL(&columnMap); } if (UNEXPECTED(!(zephir_fast_count_int(&primaryKeys TSRMLS_CC)))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/Mvc/Model.zep", 1041); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/Mvc/Model.zep", 1039); return; } - zephir_is_iterable(&primaryKeys, 0, "phalcon/Mvc/Model.zep", 1089); + zephir_is_iterable(&primaryKeys, 0, "phalcon/Mvc/Model.zep", 1087); if (Z_TYPE_P(&primaryKeys) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&primaryKeys), _3) { @@ -1837,7 +1834,7 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(&_6$$9, "Column '", &primaryKey, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, &_5$$9, "__construct", &_7, 5, &_6$$9); zephir_check_call_status(); - zephir_throw_exception_debug(&_5$$9, "phalcon/Mvc/Model.zep", 1055 TSRMLS_CC); + zephir_throw_exception_debug(&_5$$9, "phalcon/Mvc/Model.zep", 1053 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1850,7 +1847,7 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(&_9$$11, "Column '", &primaryKey, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_8$$11, "__construct", &_7, 5, &_9$$11); zephir_check_call_status(); - zephir_throw_exception_debug(&_8$$11, "phalcon/Mvc/Model.zep", 1065 TSRMLS_CC); + zephir_throw_exception_debug(&_8$$11, "phalcon/Mvc/Model.zep", 1063 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1865,17 +1862,17 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(&_11$$13, "Cannot delete the record because the primary key attribute: '", &attributeField, "' wasn't set"); ZEPHIR_CALL_METHOD(NULL, &_10$$13, "__construct", &_7, 5, &_11$$13); zephir_check_call_status(); - zephir_throw_exception_debug(&_10$$13, "phalcon/Mvc/Model.zep", 1078 TSRMLS_CC); + zephir_throw_exception_debug(&_10$$13, "phalcon/Mvc/Model.zep", 1076 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1084); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1082); ZEPHIR_CALL_METHOD(&_12$$8, &writeConnection, "escapeidentifier", &_13, 0, &primaryKey); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_14$$8); ZEPHIR_CONCAT_VS(&_14$$8, &_12$$8, " = ?"); - zephir_array_append(&conditions, &_14$$8, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1085); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1086); + zephir_array_append(&conditions, &_14$$8, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1083); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1084); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &primaryKeys, "rewind", NULL, 0); @@ -1896,7 +1893,7 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(&_16$$15, "Column '", &primaryKey, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, &_15$$15, "__construct", &_7, 5, &_16$$15); zephir_check_call_status(); - zephir_throw_exception_debug(&_15$$15, "phalcon/Mvc/Model.zep", 1055 TSRMLS_CC); + zephir_throw_exception_debug(&_15$$15, "phalcon/Mvc/Model.zep", 1053 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1909,7 +1906,7 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(&_18$$17, "Column '", &primaryKey, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_17$$17, "__construct", &_7, 5, &_18$$17); zephir_check_call_status(); - zephir_throw_exception_debug(&_17$$17, "phalcon/Mvc/Model.zep", 1065 TSRMLS_CC); + zephir_throw_exception_debug(&_17$$17, "phalcon/Mvc/Model.zep", 1063 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1924,17 +1921,17 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(&_20$$19, "Cannot delete the record because the primary key attribute: '", &attributeField, "' wasn't set"); ZEPHIR_CALL_METHOD(NULL, &_19$$19, "__construct", &_7, 5, &_20$$19); zephir_check_call_status(); - zephir_throw_exception_debug(&_19$$19, "phalcon/Mvc/Model.zep", 1078 TSRMLS_CC); + zephir_throw_exception_debug(&_19$$19, "phalcon/Mvc/Model.zep", 1076 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1084); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1082); ZEPHIR_CALL_METHOD(&_21$$14, &writeConnection, "escapeidentifier", &_22, 0, &primaryKey); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_23$$14); ZEPHIR_CONCAT_VS(&_23$$14, &_21$$14, " = ?"); - zephir_array_append(&conditions, &_23$$14, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1085); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1086); + zephir_array_append(&conditions, &_23$$14, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1083); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1084); ZEPHIR_CALL_METHOD(NULL, &primaryKeys, "next", NULL, 0); zephir_check_call_status(); } @@ -1958,9 +1955,9 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { RETURN_MM_BOOL(1); } } - ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 442); + ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 440); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 443); + ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 441); zephir_check_call_status(); if (zephir_is_true(&schema)) { ZEPHIR_INIT_VAR(&table); @@ -1975,7 +1972,7 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CALL_METHOD(&success, &writeConnection, "delete", NULL, 0, &table, &_27, &values, &bindTypes); zephir_check_call_status(); if (ZEPHIR_GLOBAL(orm).virtual_foreign_keys) { - ZEPHIR_CALL_METHOD(&_28$$25, this_ptr, "_checkforeignkeysreversecascade", NULL, 444); + ZEPHIR_CALL_METHOD(&_28$$25, this_ptr, "_checkforeignkeysreversecascade", NULL, 442); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_28$$25)) { RETURN_MM_BOOL(0); @@ -2208,12 +2205,12 @@ PHP_METHOD(Phalcon_Mvc_Model, find) { ZEPHIR_INIT_VAR(¶ms); array_init(¶ms); if (Z_TYPE_P(parameters) != IS_NULL) { - zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1332); + zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1330); } } else { ZEPHIR_CPY_WRT(¶ms, parameters); } - ZEPHIR_CALL_STATIC(&query, "getpreparedquery", &_0, 445, ¶ms); + ZEPHIR_CALL_STATIC(&query, "getpreparedquery", &_0, 443, ¶ms); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&resultset, &query, "execute", NULL, 0); zephir_check_call_status(); @@ -2336,11 +2333,11 @@ PHP_METHOD(Phalcon_Mvc_Model, findFirst) { zephir_array_fast_append(&_1$$5, parameters); ZEPHIR_CPY_WRT(¶ms, &_1$$5); } else { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Parameters passed must be of type array, string, numeric or null", "phalcon/Mvc/Model.zep", 1438); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Parameters passed must be of type array, string, numeric or null", "phalcon/Mvc/Model.zep", 1436); return; } ZVAL_LONG(&_3, 1); - ZEPHIR_CALL_STATIC(&query, "getpreparedquery", &_2, 445, ¶ms, &_3); + ZEPHIR_CALL_STATIC(&query, "getpreparedquery", &_2, 443, ¶ms, &_3); zephir_check_call_status(); ZVAL_BOOL(&_3, 1); ZEPHIR_CALL_METHOD(NULL, &query, "setuniquerow", NULL, 0, &_3); @@ -2479,7 +2476,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getChangedFields) { zephir_read_property(&_0, this_ptr, SL("snapshot"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&snapshot, &_0); if (UNEXPECTED(Z_TYPE_P(&snapshot) != IS_ARRAY)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record doesn't have a valid data snapshot", "phalcon/Mvc/Model.zep", 1524); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record doesn't have a valid data snapshot", "phalcon/Mvc/Model.zep", 1522); return; } ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); @@ -2495,7 +2492,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getChangedFields) { ZEPHIR_INIT_VAR(&changed); array_init(&changed); ZEPHIR_INIT_VAR(&_1); - zephir_is_iterable(&allAttributes, 0, "phalcon/Mvc/Model.zep", 1582); + zephir_is_iterable(&allAttributes, 0, "phalcon/Mvc/Model.zep", 1580); if (Z_TYPE_P(&allAttributes) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&allAttributes), _4, _5, _2) { @@ -2508,17 +2505,17 @@ PHP_METHOD(Phalcon_Mvc_Model, getChangedFields) { ZEPHIR_INIT_NVAR(&_1); ZVAL_COPY(&_1, _2); if (!(zephir_array_isset(&snapshot, &name))) { - zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1557); + zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1555); continue; } ZEPHIR_OBS_NVAR(&value); if (!(zephir_fetch_property_zval(&value, this_ptr, &name, PH_SILENT_CC))) { - zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1567); + zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1565); continue; } - zephir_array_fetch(&_6$$6, &snapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 1575 TSRMLS_CC); + zephir_array_fetch(&_6$$6, &snapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 1573 TSRMLS_CC); if (!ZEPHIR_IS_IDENTICAL(&value, &_6$$6)) { - zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1576); + zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1574); continue; } } ZEND_HASH_FOREACH_END(); @@ -2536,17 +2533,17 @@ PHP_METHOD(Phalcon_Mvc_Model, getChangedFields) { ZEPHIR_CALL_METHOD(&_1, &allAttributes, "current", NULL, 0); zephir_check_call_status(); if (!(zephir_array_isset(&snapshot, &name))) { - zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1557); + zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1555); continue; } ZEPHIR_OBS_NVAR(&value); if (!(zephir_fetch_property_zval(&value, this_ptr, &name, PH_SILENT_CC))) { - zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1567); + zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1565); continue; } - zephir_array_fetch(&_7$$10, &snapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 1575 TSRMLS_CC); + zephir_array_fetch(&_7$$10, &snapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 1573 TSRMLS_CC); if (!ZEPHIR_IS_IDENTICAL(&value, &_7$$10)) { - zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1576); + zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1574); continue; } ZEPHIR_CALL_METHOD(NULL, &allAttributes, "next", NULL, 0); @@ -2572,18 +2569,6 @@ PHP_METHOD(Phalcon_Mvc_Model, getDirtyState) { } -/** - * Returns the dependency injection container - */ -PHP_METHOD(Phalcon_Mvc_Model, getDI) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "container"); - -} - /** * Returns the custom events manager */ @@ -2663,7 +2648,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getMessages) { ZEPHIR_INIT_VAR(&filtered); array_init(&filtered); zephir_read_property(&_1$$3, this_ptr, SL("errorMessages"), PH_NOISY_CC | PH_READONLY); - zephir_is_iterable(&_1$$3, 0, "phalcon/Mvc/Model.zep", 1647); + zephir_is_iterable(&_1$$3, 0, "phalcon/Mvc/Model.zep", 1637); if (Z_TYPE_P(&_1$$3) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_1$$3), _2$$3) { @@ -2672,7 +2657,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getMessages) { ZEPHIR_CALL_METHOD(&_4$$4, &message, "getfield", NULL, 0); zephir_check_call_status(); if (ZEPHIR_IS_EQUAL(&_4$$4, filter)) { - zephir_array_append(&filtered, &message, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1643); + zephir_array_append(&filtered, &message, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1633); } } ZEND_HASH_FOREACH_END(); } else { @@ -2689,7 +2674,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getMessages) { ZEPHIR_CALL_METHOD(&_5$$6, &message, "getfield", NULL, 0); zephir_check_call_status(); if (ZEPHIR_IS_EQUAL(&_5$$6, filter)) { - zephir_array_append(&filtered, &message, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1643); + zephir_array_append(&filtered, &message, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1633); } ZEPHIR_CALL_METHOD(NULL, &_1$$3, "next", NULL, 0); zephir_check_call_status(); @@ -2743,7 +2728,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getModelsMetaData) { zephir_check_call_status(); ZEPHIR_CPY_WRT(&metaData, &_1$$3); if (UNEXPECTED(Z_TYPE_P(&metaData) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsMetadata' is not valid", "phalcon/Mvc/Model.zep", 1681); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsMetadata' is not valid", "phalcon/Mvc/Model.zep", 1671); return; } zephir_update_property_zval(this_ptr, SL("modelsMetaData"), &metaData); @@ -2885,7 +2870,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getRelated) { ZEPHIR_CONCAT_SVSVS(&_3$$3, "There is no defined relations for the model '", &className, "' using alias '", &alias, "'"); ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 5, &_3$$3); zephir_check_call_status(); - zephir_throw_exception_debug(&_2$$3, "phalcon/Mvc/Model.zep", 1760 TSRMLS_CC); + zephir_throw_exception_debug(&_2$$3, "phalcon/Mvc/Model.zep", 1750 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -2901,7 +2886,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getRelated) { if (_5$$4) { zephir_read_property(&_7$$5, this_ptr, SL("related"), PH_NOISY_CC | PH_READONLY); ZEPHIR_OBS_VAR(&result); - zephir_array_fetch(&result, &_7$$5, &lowerAlias, PH_NOISY, "phalcon/Mvc/Model.zep", 1772 TSRMLS_CC); + zephir_array_fetch(&result, &_7$$5, &lowerAlias, PH_NOISY, "phalcon/Mvc/Model.zep", 1762 TSRMLS_CC); } else { ZEPHIR_CALL_METHOD(&result, &manager, "getrelationrecords", NULL, 0, &relation, this_ptr, arguments); zephir_check_call_status(); @@ -3057,21 +3042,21 @@ PHP_METHOD(Phalcon_Mvc_Model, getUpdatedFields) { zephir_read_property(&_0, this_ptr, SL("oldSnapshot"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&oldSnapshot, &_0); if (UNEXPECTED(!(ZEPHIR_GLOBAL(orm).update_snapshot_on_save))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Update snapshot on save must be enabled for this method to work properly", "phalcon/Mvc/Model.zep", 1871); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Update snapshot on save must be enabled for this method to work properly", "phalcon/Mvc/Model.zep", 1861); return; } if (UNEXPECTED(Z_TYPE_P(&snapshot) != IS_ARRAY)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record doesn't have a valid data snapshot", "phalcon/Mvc/Model.zep", 1877); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record doesn't have a valid data snapshot", "phalcon/Mvc/Model.zep", 1867); return; } zephir_read_property(&_0, this_ptr, SL("dirtyState"), PH_NOISY_CC | PH_READONLY); if (UNEXPECTED(!ZEPHIR_IS_LONG(&_0, 0))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Change checking cannot be performed because the object has not been persisted or is deleted", "phalcon/Mvc/Model.zep", 1886); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Change checking cannot be performed because the object has not been persisted or is deleted", "phalcon/Mvc/Model.zep", 1876); return; } ZEPHIR_INIT_VAR(&updated); array_init(&updated); - zephir_is_iterable(&snapshot, 0, "phalcon/Mvc/Model.zep", 1901); + zephir_is_iterable(&snapshot, 0, "phalcon/Mvc/Model.zep", 1891); if (Z_TYPE_P(&snapshot) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&snapshot), _3, _4, _1) { @@ -3085,11 +3070,11 @@ PHP_METHOD(Phalcon_Mvc_Model, getUpdatedFields) { ZVAL_COPY(&value, _1); _5$$6 = !(zephir_array_isset(&oldSnapshot, &name)); if (!(_5$$6)) { - zephir_array_fetch(&_6$$6, &oldSnapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 1896 TSRMLS_CC); + zephir_array_fetch(&_6$$6, &oldSnapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 1886 TSRMLS_CC); _5$$6 = !ZEPHIR_IS_IDENTICAL(&value, &_6$$6); } if (_5$$6) { - zephir_array_append(&updated, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1897); + zephir_array_append(&updated, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1887); } } ZEND_HASH_FOREACH_END(); } else { @@ -3107,11 +3092,11 @@ PHP_METHOD(Phalcon_Mvc_Model, getUpdatedFields) { zephir_check_call_status(); _7$$8 = !(zephir_array_isset(&oldSnapshot, &name)); if (!(_7$$8)) { - zephir_array_fetch(&_8$$8, &oldSnapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 1896 TSRMLS_CC); + zephir_array_fetch(&_8$$8, &oldSnapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 1886 TSRMLS_CC); _7$$8 = !ZEPHIR_IS_IDENTICAL(&value, &_8$$8); } if (_7$$8) { - zephir_array_append(&updated, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1897); + zephir_array_append(&updated, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1887); } ZEPHIR_CALL_METHOD(NULL, &snapshot, "next", NULL, 0); zephir_check_call_status(); @@ -3495,12 +3480,12 @@ PHP_METHOD(Phalcon_Mvc_Model, query) { ZEPHIR_CALL_METHOD(NULL, &criteria, "__construct", NULL, 0); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, &criteria, "setdi", NULL, 446, container); + ZEPHIR_CALL_METHOD(NULL, &criteria, "setdi", NULL, 444, container); zephir_check_call_status(); } ZEPHIR_INIT_VAR(&_3); zephir_get_called_class(&_3 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &criteria, "setmodelname", NULL, 447, &_3); + ZEPHIR_CALL_METHOD(NULL, &criteria, "setmodelname", NULL, 445, &_3); zephir_check_call_status(); RETURN_CCTOR(&criteria); @@ -3590,18 +3575,18 @@ PHP_METHOD(Phalcon_Mvc_Model, refresh) { zephir_read_property(&_0, this_ptr, SL("dirtyState"), PH_NOISY_CC | PH_READONLY); if (UNEXPECTED(!ZEPHIR_IS_LONG(&_0, 0))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/Mvc/Model.zep", 2156); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/Mvc/Model.zep", 2146); return; } ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&readConnection, this_ptr, "getreadconnection", NULL, 439); + ZEPHIR_CALL_METHOD(&readConnection, this_ptr, "getreadconnection", NULL, 437); zephir_check_call_status(); zephir_read_property(&_1, this_ptr, SL("modelsManager"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&manager, &_1); - ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 442); + ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 440); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 443); + ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 441); zephir_check_call_status(); if (zephir_is_true(&schema)) { ZEPHIR_INIT_VAR(&table); @@ -3617,7 +3602,7 @@ PHP_METHOD(Phalcon_Mvc_Model, refresh) { ZEPHIR_CALL_METHOD(&_2$$6, this_ptr, "_exists", NULL, 0, &metaData, &readConnection); zephir_check_call_status(); if (UNEXPECTED(!zephir_is_true(&_2$$6))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/Mvc/Model.zep", 2181); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/Mvc/Model.zep", 2171); return; } zephir_read_property(&_3$$6, this_ptr, SL("uniqueKey"), PH_NOISY_CC | PH_READONLY); @@ -3626,14 +3611,14 @@ PHP_METHOD(Phalcon_Mvc_Model, refresh) { zephir_read_property(&_1, this_ptr, SL("uniqueParams"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&uniqueParams, &_1); if (UNEXPECTED(Z_TYPE_P(&uniqueParams) != IS_ARRAY)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/Mvc/Model.zep", 2192); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/Mvc/Model.zep", 2182); return; } ZEPHIR_INIT_VAR(&fields); array_init(&fields); ZEPHIR_CALL_METHOD(&_4, &metaData, "getattributes", NULL, 0, this_ptr); zephir_check_call_status(); - zephir_is_iterable(&_4, 0, "phalcon/Mvc/Model.zep", 2207); + zephir_is_iterable(&_4, 0, "phalcon/Mvc/Model.zep", 2197); if (Z_TYPE_P(&_4) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_4), _5) { @@ -3642,7 +3627,7 @@ PHP_METHOD(Phalcon_Mvc_Model, refresh) { ZEPHIR_INIT_NVAR(&_7$$9); zephir_create_array(&_7$$9, 1, 0 TSRMLS_CC); zephir_array_fast_append(&_7$$9, &attribute); - zephir_array_append(&fields, &_7$$9, PH_SEPARATE, "phalcon/Mvc/Model.zep", 2201); + zephir_array_append(&fields, &_7$$9, PH_SEPARATE, "phalcon/Mvc/Model.zep", 2191); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &_4, "rewind", NULL, 0); @@ -3658,7 +3643,7 @@ PHP_METHOD(Phalcon_Mvc_Model, refresh) { ZEPHIR_INIT_NVAR(&_8$$10); zephir_create_array(&_8$$10, 1, 0 TSRMLS_CC); zephir_array_fast_append(&_8$$10, &attribute); - zephir_array_append(&fields, &_8$$10, PH_SEPARATE, "phalcon/Mvc/Model.zep", 2201); + zephir_array_append(&fields, &_8$$10, PH_SEPARATE, "phalcon/Mvc/Model.zep", 2191); ZEPHIR_CALL_METHOD(NULL, &_4, "next", NULL, 0); zephir_check_call_status(); } @@ -3760,7 +3745,7 @@ PHP_METHOD(Phalcon_Mvc_Model, save) { ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&writeConnection, this_ptr, "getwriteconnection", NULL, 440); + ZEPHIR_CALL_METHOD(&writeConnection, this_ptr, "getwriteconnection", NULL, 438); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "prepareSave"); @@ -3776,9 +3761,9 @@ PHP_METHOD(Phalcon_Mvc_Model, save) { RETURN_MM_BOOL(0); } } - ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 442); + ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 440); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 443); + ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 441); zephir_check_call_status(); if (zephir_is_true(&schema)) { ZEPHIR_INIT_VAR(&table); @@ -3788,7 +3773,7 @@ PHP_METHOD(Phalcon_Mvc_Model, save) { } else { ZEPHIR_CPY_WRT(&table, &source); } - ZEPHIR_CALL_METHOD(&readConnection, this_ptr, "getreadconnection", NULL, 439); + ZEPHIR_CALL_METHOD(&readConnection, this_ptr, "getreadconnection", NULL, 437); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&exists, this_ptr, "_exists", NULL, 0, &metaData, &readConnection); zephir_check_call_status(); @@ -3819,9 +3804,9 @@ PHP_METHOD(Phalcon_Mvc_Model, save) { object_init_ex(&_7$$11, phalcon_mvc_model_validationfailed_ce); ZEPHIR_CALL_METHOD(&_8$$11, this_ptr, "getmessages", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_7$$11, "__construct", NULL, 448, this_ptr, &_8$$11); + ZEPHIR_CALL_METHOD(NULL, &_7$$11, "__construct", NULL, 446, this_ptr, &_8$$11); zephir_check_call_status(); - zephir_throw_exception_debug(&_7$$11, "phalcon/Mvc/Model.zep", 2356 TSRMLS_CC); + zephir_throw_exception_debug(&_7$$11, "phalcon/Mvc/Model.zep", 2346 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3971,7 +3956,7 @@ PHP_METHOD(Phalcon_Mvc_Model, unserialize) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 5, &_2$$4); zephir_check_call_status(); - zephir_throw_exception_debug(&_1$$4, "phalcon/Mvc/Model.zep", 2477 TSRMLS_CC); + zephir_throw_exception_debug(&_1$$4, "phalcon/Mvc/Model.zep", 2467 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3982,7 +3967,7 @@ PHP_METHOD(Phalcon_Mvc_Model, unserialize) { zephir_check_call_status(); ZEPHIR_CPY_WRT(&manager, &_5$$3); if (UNEXPECTED(Z_TYPE_P(&manager) != IS_OBJECT)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsManager' is not valid", "phalcon/Mvc/Model.zep", 2493); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsManager' is not valid", "phalcon/Mvc/Model.zep", 2483); return; } zephir_update_property_zval(this_ptr, SL("modelsManager"), &manager); @@ -3993,13 +3978,13 @@ PHP_METHOD(Phalcon_Mvc_Model, unserialize) { if (zephir_is_true(&_5$$3)) { if (zephir_array_isset_string_fetch(&snapshot, &attributes, SL("snapshot"), 1)) { zephir_update_property_zval(this_ptr, SL("snapshot"), &snapshot); - zephir_array_fetch_string(&_7$$7, &attributes, SL("_attributes"), PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 2509 TSRMLS_CC); + zephir_array_fetch_string(&_7$$7, &attributes, SL("_attributes"), PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 2499 TSRMLS_CC); ZEPHIR_CPY_WRT(&attributes, &_7$$7); } else { zephir_update_property_zval(this_ptr, SL("snapshot"), &attributes); } } - zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 2521); + zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 2511); if (Z_TYPE_P(&attributes) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&attributes), _10$$3, _11$$3, _8$$3) { @@ -4097,24 +4082,6 @@ PHP_METHOD(Phalcon_Mvc_Model, setDirtyState) { } -/** - * Sets the dependency injection container - */ -PHP_METHOD(Phalcon_Mvc_Model, setDI) { - - zval *container, container_sub; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&container_sub); - - zephir_fetch_params_without_memory_grow(1, 0, &container); - - - - zephir_update_property_zval(this_ptr, SL("container"), container); - -} - /** * Sets a custom events manager */ @@ -4225,7 +4192,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setOldSnapshotData) { if (Z_TYPE_P(columnMap) == IS_ARRAY) { ZEPHIR_INIT_VAR(&snapshot); array_init(&snapshot); - zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 2630); + zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 2612); if (Z_TYPE_P(&data) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _2$$3, _3$$3, _0$$3) { @@ -4249,7 +4216,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setOldSnapshotData) { ZEPHIR_CONCAT_SVS(&_5$$7, "Column '", &key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_4$$7, "__construct", &_6, 5, &_5$$7); zephir_check_call_status(); - zephir_throw_exception_debug(&_4$$7, "phalcon/Mvc/Model.zep", 2610 TSRMLS_CC); + zephir_throw_exception_debug(&_4$$7, "phalcon/Mvc/Model.zep", 2592 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -4265,7 +4232,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setOldSnapshotData) { ZEPHIR_CONCAT_SVS(&_8$$10, "Column '", &key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_7$$10, "__construct", &_6, 5, &_8$$10); zephir_check_call_status(); - zephir_throw_exception_debug(&_7$$10, "phalcon/Mvc/Model.zep", 2621 TSRMLS_CC); + zephir_throw_exception_debug(&_7$$10, "phalcon/Mvc/Model.zep", 2603 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -4299,7 +4266,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setOldSnapshotData) { ZEPHIR_CONCAT_SVS(&_10$$14, "Column '", &key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_9$$14, "__construct", &_6, 5, &_10$$14); zephir_check_call_status(); - zephir_throw_exception_debug(&_9$$14, "phalcon/Mvc/Model.zep", 2610 TSRMLS_CC); + zephir_throw_exception_debug(&_9$$14, "phalcon/Mvc/Model.zep", 2592 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -4315,7 +4282,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setOldSnapshotData) { ZEPHIR_CONCAT_SVS(&_12$$17, "Column '", &key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_11$$17, "__construct", &_6, 5, &_12$$17); zephir_check_call_status(); - zephir_throw_exception_debug(&_11$$17, "phalcon/Mvc/Model.zep", 2621 TSRMLS_CC); + zephir_throw_exception_debug(&_11$$17, "phalcon/Mvc/Model.zep", 2603 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -4388,7 +4355,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { if (Z_TYPE_P(columnMap) == IS_ARRAY) { ZEPHIR_INIT_VAR(&snapshot); array_init(&snapshot); - zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 2695); + zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 2677); if (Z_TYPE_P(&data) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _2$$3, _3$$3, _0$$3) { @@ -4408,7 +4375,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { _4$$4 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_4$$4) { - ZEPHIR_CALL_SELF(&_5$$6, "caseinsensitivecolumnmap", &_6, 437, columnMap, &key); + ZEPHIR_CALL_SELF(&_5$$6, "caseinsensitivecolumnmap", &_6, 435, columnMap, &key); zephir_check_call_status(); ZEPHIR_CPY_WRT(&key, &_5$$6); } @@ -4421,7 +4388,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { ZEPHIR_CONCAT_SVS(&_8$$8, "Column '", &key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_7$$8, "__construct", &_9, 5, &_8$$8); zephir_check_call_status(); - zephir_throw_exception_debug(&_7$$8, "phalcon/Mvc/Model.zep", 2675 TSRMLS_CC); + zephir_throw_exception_debug(&_7$$8, "phalcon/Mvc/Model.zep", 2657 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -4437,7 +4404,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { ZEPHIR_CONCAT_SVS(&_11$$11, "Column '", &key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_10$$11, "__construct", &_9, 5, &_11$$11); zephir_check_call_status(); - zephir_throw_exception_debug(&_10$$11, "phalcon/Mvc/Model.zep", 2686 TSRMLS_CC); + zephir_throw_exception_debug(&_10$$11, "phalcon/Mvc/Model.zep", 2668 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -4467,7 +4434,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { _12$$12 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_12$$12) { - ZEPHIR_CALL_SELF(&_13$$14, "caseinsensitivecolumnmap", &_6, 437, columnMap, &key); + ZEPHIR_CALL_SELF(&_13$$14, "caseinsensitivecolumnmap", &_6, 435, columnMap, &key); zephir_check_call_status(); ZEPHIR_CPY_WRT(&key, &_13$$14); } @@ -4480,7 +4447,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { ZEPHIR_CONCAT_SVS(&_15$$16, "Column '", &key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_14$$16, "__construct", &_9, 5, &_15$$16); zephir_check_call_status(); - zephir_throw_exception_debug(&_14$$16, "phalcon/Mvc/Model.zep", 2675 TSRMLS_CC); + zephir_throw_exception_debug(&_14$$16, "phalcon/Mvc/Model.zep", 2657 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -4496,7 +4463,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { ZEPHIR_CONCAT_SVS(&_17$$19, "Column '", &key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_16$$19, "__construct", &_9, 5, &_17$$19); zephir_check_call_status(); - zephir_throw_exception_debug(&_16$$19, "phalcon/Mvc/Model.zep", 2686 TSRMLS_CC); + zephir_throw_exception_debug(&_16$$19, "phalcon/Mvc/Model.zep", 2668 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -4845,7 +4812,7 @@ PHP_METHOD(Phalcon_Mvc_Model, toArray) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_0, &metaData, "getattributes", NULL, 0, this_ptr); zephir_check_call_status(); - zephir_is_iterable(&_0, 0, "phalcon/Mvc/Model.zep", 2967); + zephir_is_iterable(&_0, 0, "phalcon/Mvc/Model.zep", 2949); if (Z_TYPE_P(&_0) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_0), _1) { @@ -4857,7 +4824,7 @@ PHP_METHOD(Phalcon_Mvc_Model, toArray) { _3$$4 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_3$$4) { - ZEPHIR_CALL_SELF(&_4$$5, "caseinsensitivecolumnmap", &_5, 437, &columnMap, &attribute); + ZEPHIR_CALL_SELF(&_4$$5, "caseinsensitivecolumnmap", &_5, 435, &columnMap, &attribute); zephir_check_call_status(); ZEPHIR_CPY_WRT(&attribute, &_4$$5); } @@ -4870,7 +4837,7 @@ PHP_METHOD(Phalcon_Mvc_Model, toArray) { ZEPHIR_CONCAT_SVS(&_7$$7, "Column '", &attribute, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_6$$7, "__construct", &_8, 5, &_7$$7); zephir_check_call_status(); - zephir_throw_exception_debug(&_6$$7, "phalcon/Mvc/Model.zep", 2945 TSRMLS_CC); + zephir_throw_exception_debug(&_6$$7, "phalcon/Mvc/Model.zep", 2927 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -4908,7 +4875,7 @@ PHP_METHOD(Phalcon_Mvc_Model, toArray) { _9$$14 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_9$$14) { - ZEPHIR_CALL_SELF(&_10$$15, "caseinsensitivecolumnmap", &_5, 437, &columnMap, &attribute); + ZEPHIR_CALL_SELF(&_10$$15, "caseinsensitivecolumnmap", &_5, 435, &columnMap, &attribute); zephir_check_call_status(); ZEPHIR_CPY_WRT(&attribute, &_10$$15); } @@ -4921,7 +4888,7 @@ PHP_METHOD(Phalcon_Mvc_Model, toArray) { ZEPHIR_CONCAT_SVS(&_12$$17, "Column '", &attribute, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_11$$17, "__construct", &_8, 5, &_12$$17); zephir_check_call_status(); - zephir_throw_exception_debug(&_11$$17, "phalcon/Mvc/Model.zep", 2945 TSRMLS_CC); + zephir_throw_exception_debug(&_11$$17, "phalcon/Mvc/Model.zep", 2927 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -4988,7 +4955,7 @@ PHP_METHOD(Phalcon_Mvc_Model, update) { if (zephir_is_true(&_0)) { ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "getreadconnection", NULL, 439); + ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "getreadconnection", NULL, 437); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_1$$3, this_ptr, "_exists", NULL, 0, &metaData, &_2$$3); zephir_check_call_status(); @@ -5123,7 +5090,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { ZEPHIR_CALL_METHOD(&belongsTo, &manager, "getbelongsto", NULL, 0, this_ptr); zephir_check_call_status(); error = 0; - zephir_is_iterable(&belongsTo, 0, "phalcon/Mvc/Model.zep", 3174); + zephir_is_iterable(&belongsTo, 0, "phalcon/Mvc/Model.zep", 3156); if (Z_TYPE_P(&belongsTo) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&belongsTo), _1) { @@ -5138,7 +5105,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { action = 1; if (zephir_array_isset_string(&foreignKey, SL("action"))) { ZEPHIR_OBS_NVAR(&_3$$5); - zephir_array_fetch_string(&_3$$5, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3069 TSRMLS_CC); + zephir_array_fetch_string(&_3$$5, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3051 TSRMLS_CC); action = zephir_get_intval(&_3$$5); } if (action != 1) { @@ -5158,7 +5125,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { ZEPHIR_CALL_METHOD(&referencedFields, &relation, "getreferencedfields", NULL, 0); zephir_check_call_status(); if (Z_TYPE_P(&fields) == IS_ARRAY) { - zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3112); + zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3094); if (Z_TYPE_P(&fields) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&fields), _8$$7, _9$$7, _6$$7) { @@ -5172,11 +5139,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { ZVAL_COPY(&field, _6$$7); ZEPHIR_OBS_NVAR(&value); zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC); - zephir_array_fetch(&_10$$8, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3104 TSRMLS_CC); + zephir_array_fetch(&_10$$8, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3086 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_11$$8); ZEPHIR_CONCAT_SVSV(&_11$$8, "[", &_10$$8, "] = ?", &position); - zephir_array_append(&conditions, &_11$$8, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3104); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3105); + zephir_array_append(&conditions, &_11$$8, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3086); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3087); if (Z_TYPE_P(&value) == IS_NULL) { numberNull++; } @@ -5196,11 +5163,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { zephir_check_call_status(); ZEPHIR_OBS_NVAR(&value); zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC); - zephir_array_fetch(&_12$$10, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3104 TSRMLS_CC); + zephir_array_fetch(&_12$$10, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3086 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_13$$10); ZEPHIR_CONCAT_SVSV(&_13$$10, "[", &_12$$10, "] = ?", &position); - zephir_array_append(&conditions, &_13$$10, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3104); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3105); + zephir_array_append(&conditions, &_13$$10, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3086); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3087); if (Z_TYPE_P(&value) == IS_NULL) { numberNull++; } @@ -5216,15 +5183,15 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { zephir_fetch_property_zval(&value, this_ptr, &fields, PH_SILENT_CC); ZEPHIR_INIT_LNVAR(_14$$12); ZEPHIR_CONCAT_SVS(&_14$$12, "[", &referencedFields, "] = ?0"); - zephir_array_append(&conditions, &_14$$12, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3116); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3117); + zephir_array_append(&conditions, &_14$$12, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3098); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3099); if (Z_TYPE_P(&value) == IS_NULL) { validateWithNulls = 1; } } ZEPHIR_OBS_NVAR(&extraConditions); if (zephir_array_isset_string_fetch(&extraConditions, &foreignKey, SL("conditions"), 0)) { - zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3128); + zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3110); } if (validateWithNulls) { ZEPHIR_OBS_NVAR(&allowNulls); @@ -5290,7 +5257,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { action = 1; if (zephir_array_isset_string(&foreignKey, SL("action"))) { ZEPHIR_OBS_NVAR(&_24$$24); - zephir_array_fetch_string(&_24$$24, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3069 TSRMLS_CC); + zephir_array_fetch_string(&_24$$24, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3051 TSRMLS_CC); action = zephir_get_intval(&_24$$24); } if (action != 1) { @@ -5310,7 +5277,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { ZEPHIR_CALL_METHOD(&referencedFields, &relation, "getreferencedfields", NULL, 0); zephir_check_call_status(); if (Z_TYPE_P(&fields) == IS_ARRAY) { - zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3112); + zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3094); if (Z_TYPE_P(&fields) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&fields), _29$$26, _30$$26, _27$$26) { @@ -5324,11 +5291,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { ZVAL_COPY(&field, _27$$26); ZEPHIR_OBS_NVAR(&value); zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC); - zephir_array_fetch(&_31$$27, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3104 TSRMLS_CC); + zephir_array_fetch(&_31$$27, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3086 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_32$$27); ZEPHIR_CONCAT_SVSV(&_32$$27, "[", &_31$$27, "] = ?", &position); - zephir_array_append(&conditions, &_32$$27, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3104); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3105); + zephir_array_append(&conditions, &_32$$27, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3086); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3087); if (Z_TYPE_P(&value) == IS_NULL) { numberNull++; } @@ -5348,11 +5315,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { zephir_check_call_status(); ZEPHIR_OBS_NVAR(&value); zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC); - zephir_array_fetch(&_33$$29, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3104 TSRMLS_CC); + zephir_array_fetch(&_33$$29, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3086 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_34$$29); ZEPHIR_CONCAT_SVSV(&_34$$29, "[", &_33$$29, "] = ?", &position); - zephir_array_append(&conditions, &_34$$29, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3104); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3105); + zephir_array_append(&conditions, &_34$$29, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3086); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3087); if (Z_TYPE_P(&value) == IS_NULL) { numberNull++; } @@ -5368,15 +5335,15 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { zephir_fetch_property_zval(&value, this_ptr, &fields, PH_SILENT_CC); ZEPHIR_INIT_LNVAR(_35$$31); ZEPHIR_CONCAT_SVS(&_35$$31, "[", &referencedFields, "] = ?0"); - zephir_array_append(&conditions, &_35$$31, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3116); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3117); + zephir_array_append(&conditions, &_35$$31, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3098); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3099); if (Z_TYPE_P(&value) == IS_NULL) { validateWithNulls = 1; } } ZEPHIR_OBS_NVAR(&extraConditions); if (zephir_array_isset_string_fetch(&extraConditions, &foreignKey, SL("conditions"), 0)) { - zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3128); + zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3110); } if (validateWithNulls) { ZEPHIR_OBS_NVAR(&allowNulls); @@ -5502,7 +5469,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { ZEPHIR_CPY_WRT(&manager, &_0); ZEPHIR_CALL_METHOD(&relations, &manager, "gethasoneandhasmany", NULL, 0, this_ptr); zephir_check_call_status(); - zephir_is_iterable(&relations, 0, "phalcon/Mvc/Model.zep", 3294); + zephir_is_iterable(&relations, 0, "phalcon/Mvc/Model.zep", 3276); if (Z_TYPE_P(&relations) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&relations), _1) { @@ -5520,7 +5487,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { } if (_3$$3) { ZEPHIR_OBS_NVAR(&_4$$5); - zephir_array_fetch_string(&_4$$5, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3226 TSRMLS_CC); + zephir_array_fetch_string(&_4$$5, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3208 TSRMLS_CC); action = zephir_get_intval(&_4$$5); } if (action != 2) { @@ -5539,7 +5506,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { ZEPHIR_INIT_NVAR(&bindParams); array_init(&bindParams); if (Z_TYPE_P(&fields) == IS_ARRAY) { - zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3259); + zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3241); if (Z_TYPE_P(&fields) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&fields), _9$$7, _10$$7, _7$$7) { @@ -5553,11 +5520,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { ZVAL_COPY(&field, _7$$7); ZEPHIR_OBS_NVAR(&value); zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC); - zephir_array_fetch(&_11$$8, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3256 TSRMLS_CC); + zephir_array_fetch(&_11$$8, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3238 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_12$$8); ZEPHIR_CONCAT_SVSV(&_12$$8, "[", &_11$$8, "] = ?", &position); - zephir_array_append(&conditions, &_12$$8, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3256); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3257); + zephir_array_append(&conditions, &_12$$8, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3238); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3239); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &fields, "rewind", NULL, 0); @@ -5574,11 +5541,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { zephir_check_call_status(); ZEPHIR_OBS_NVAR(&value); zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC); - zephir_array_fetch(&_13$$9, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3256 TSRMLS_CC); + zephir_array_fetch(&_13$$9, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3238 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_14$$9); ZEPHIR_CONCAT_SVSV(&_14$$9, "[", &_13$$9, "] = ?", &position); - zephir_array_append(&conditions, &_14$$9, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3256); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3257); + zephir_array_append(&conditions, &_14$$9, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3238); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3239); ZEPHIR_CALL_METHOD(NULL, &fields, "next", NULL, 0); zephir_check_call_status(); } @@ -5590,12 +5557,12 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { zephir_fetch_property_zval(&value, this_ptr, &fields, PH_SILENT_CC); ZEPHIR_INIT_LNVAR(_15$$10); ZEPHIR_CONCAT_SVS(&_15$$10, "[", &referencedFields, "] = ?0"); - zephir_array_append(&conditions, &_15$$10, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3262); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3263); + zephir_array_append(&conditions, &_15$$10, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3244); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3245); } ZEPHIR_OBS_NVAR(&extraConditions); if (zephir_array_isset_string_fetch(&extraConditions, &foreignKey, SL("conditions"), 0)) { - zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3270); + zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3252); } ZEPHIR_INIT_NVAR(&_16$$3); zephir_create_array(&_16$$3, 2, 0 TSRMLS_CC); @@ -5634,7 +5601,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { } if (_19$$13) { ZEPHIR_OBS_NVAR(&_20$$15); - zephir_array_fetch_string(&_20$$15, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3226 TSRMLS_CC); + zephir_array_fetch_string(&_20$$15, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3208 TSRMLS_CC); action = zephir_get_intval(&_20$$15); } if (action != 2) { @@ -5653,7 +5620,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { ZEPHIR_INIT_NVAR(&bindParams); array_init(&bindParams); if (Z_TYPE_P(&fields) == IS_ARRAY) { - zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3259); + zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3241); if (Z_TYPE_P(&fields) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&fields), _25$$17, _26$$17, _23$$17) { @@ -5667,11 +5634,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { ZVAL_COPY(&field, _23$$17); ZEPHIR_OBS_NVAR(&value); zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC); - zephir_array_fetch(&_27$$18, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3256 TSRMLS_CC); + zephir_array_fetch(&_27$$18, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3238 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_28$$18); ZEPHIR_CONCAT_SVSV(&_28$$18, "[", &_27$$18, "] = ?", &position); - zephir_array_append(&conditions, &_28$$18, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3256); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3257); + zephir_array_append(&conditions, &_28$$18, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3238); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3239); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &fields, "rewind", NULL, 0); @@ -5688,11 +5655,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { zephir_check_call_status(); ZEPHIR_OBS_NVAR(&value); zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC); - zephir_array_fetch(&_29$$19, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3256 TSRMLS_CC); + zephir_array_fetch(&_29$$19, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3238 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_30$$19); ZEPHIR_CONCAT_SVSV(&_30$$19, "[", &_29$$19, "] = ?", &position); - zephir_array_append(&conditions, &_30$$19, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3256); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3257); + zephir_array_append(&conditions, &_30$$19, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3238); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3239); ZEPHIR_CALL_METHOD(NULL, &fields, "next", NULL, 0); zephir_check_call_status(); } @@ -5704,12 +5671,12 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { zephir_fetch_property_zval(&value, this_ptr, &fields, PH_SILENT_CC); ZEPHIR_INIT_LNVAR(_31$$20); ZEPHIR_CONCAT_SVS(&_31$$20, "[", &referencedFields, "] = ?0"); - zephir_array_append(&conditions, &_31$$20, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3262); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3263); + zephir_array_append(&conditions, &_31$$20, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3244); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3245); } ZEPHIR_OBS_NVAR(&extraConditions); if (zephir_array_isset_string_fetch(&extraConditions, &foreignKey, SL("conditions"), 0)) { - zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3270); + zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3252); } ZEPHIR_INIT_NVAR(&_32$$13); zephir_create_array(&_32$$13, 2, 0 TSRMLS_CC); @@ -5799,7 +5766,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { ZEPHIR_CALL_METHOD(&relations, &manager, "gethasoneandhasmany", NULL, 0, this_ptr); zephir_check_call_status(); error = 0; - zephir_is_iterable(&relations, 0, "phalcon/Mvc/Model.zep", 3417); + zephir_is_iterable(&relations, 0, "phalcon/Mvc/Model.zep", 3399); if (Z_TYPE_P(&relations) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&relations), _1) { @@ -5817,7 +5784,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { } if (_3$$3) { ZEPHIR_OBS_NVAR(&_4$$5); - zephir_array_fetch_string(&_4$$5, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3340 TSRMLS_CC); + zephir_array_fetch_string(&_4$$5, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3322 TSRMLS_CC); action = zephir_get_intval(&_4$$5); } if (action != 1) { @@ -5836,7 +5803,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { ZEPHIR_INIT_NVAR(&bindParams); array_init(&bindParams); if (Z_TYPE_P(&fields) == IS_ARRAY) { - zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3374); + zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3356); if (Z_TYPE_P(&fields) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&fields), _8$$7, _9$$7, _6$$7) { @@ -5850,11 +5817,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { ZVAL_COPY(&field, _6$$7); ZEPHIR_OBS_NVAR(&value); zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC); - zephir_array_fetch(&_10$$8, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3371 TSRMLS_CC); + zephir_array_fetch(&_10$$8, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3353 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_11$$8); ZEPHIR_CONCAT_SVSV(&_11$$8, "[", &_10$$8, "] = ?", &position); - zephir_array_append(&conditions, &_11$$8, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3371); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3372); + zephir_array_append(&conditions, &_11$$8, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3353); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3354); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &fields, "rewind", NULL, 0); @@ -5871,11 +5838,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { zephir_check_call_status(); ZEPHIR_OBS_NVAR(&value); zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC); - zephir_array_fetch(&_12$$9, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3371 TSRMLS_CC); + zephir_array_fetch(&_12$$9, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3353 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_13$$9); ZEPHIR_CONCAT_SVSV(&_13$$9, "[", &_12$$9, "] = ?", &position); - zephir_array_append(&conditions, &_13$$9, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3371); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3372); + zephir_array_append(&conditions, &_13$$9, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3353); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3354); ZEPHIR_CALL_METHOD(NULL, &fields, "next", NULL, 0); zephir_check_call_status(); } @@ -5887,12 +5854,12 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { zephir_fetch_property_zval(&value, this_ptr, &fields, PH_SILENT_CC); ZEPHIR_INIT_LNVAR(_14$$10); ZEPHIR_CONCAT_SVS(&_14$$10, "[", &referencedFields, "] = ?0"); - zephir_array_append(&conditions, &_14$$10, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3377); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3378); + zephir_array_append(&conditions, &_14$$10, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3359); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3360); } ZEPHIR_OBS_NVAR(&extraConditions); if (zephir_array_isset_string_fetch(&extraConditions, &foreignKey, SL("conditions"), 0)) { - zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3385); + zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3367); } ZEPHIR_INIT_NVAR(&_16$$3); zephir_create_array(&_16$$3, 2, 0 TSRMLS_CC); @@ -5943,7 +5910,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { } if (_22$$14) { ZEPHIR_OBS_NVAR(&_23$$16); - zephir_array_fetch_string(&_23$$16, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3340 TSRMLS_CC); + zephir_array_fetch_string(&_23$$16, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3322 TSRMLS_CC); action = zephir_get_intval(&_23$$16); } if (action != 1) { @@ -5962,7 +5929,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { ZEPHIR_INIT_NVAR(&bindParams); array_init(&bindParams); if (Z_TYPE_P(&fields) == IS_ARRAY) { - zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3374); + zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3356); if (Z_TYPE_P(&fields) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&fields), _27$$18, _28$$18, _25$$18) { @@ -5976,11 +5943,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { ZVAL_COPY(&field, _25$$18); ZEPHIR_OBS_NVAR(&value); zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC); - zephir_array_fetch(&_29$$19, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3371 TSRMLS_CC); + zephir_array_fetch(&_29$$19, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3353 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_30$$19); ZEPHIR_CONCAT_SVSV(&_30$$19, "[", &_29$$19, "] = ?", &position); - zephir_array_append(&conditions, &_30$$19, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3371); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3372); + zephir_array_append(&conditions, &_30$$19, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3353); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3354); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &fields, "rewind", NULL, 0); @@ -5997,11 +5964,11 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { zephir_check_call_status(); ZEPHIR_OBS_NVAR(&value); zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC); - zephir_array_fetch(&_31$$20, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3371 TSRMLS_CC); + zephir_array_fetch(&_31$$20, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3353 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_32$$20); ZEPHIR_CONCAT_SVSV(&_32$$20, "[", &_31$$20, "] = ?", &position); - zephir_array_append(&conditions, &_32$$20, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3371); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3372); + zephir_array_append(&conditions, &_32$$20, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3353); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3354); ZEPHIR_CALL_METHOD(NULL, &fields, "next", NULL, 0); zephir_check_call_status(); } @@ -6013,12 +5980,12 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { zephir_fetch_property_zval(&value, this_ptr, &fields, PH_SILENT_CC); ZEPHIR_INIT_LNVAR(_33$$21); ZEPHIR_CONCAT_SVS(&_33$$21, "[", &referencedFields, "] = ?0"); - zephir_array_append(&conditions, &_33$$21, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3377); - zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3378); + zephir_array_append(&conditions, &_33$$21, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3359); + zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3360); } ZEPHIR_OBS_NVAR(&extraConditions); if (zephir_array_isset_string_fetch(&extraConditions, &foreignKey, SL("conditions"), 0)) { - zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3385); + zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3367); } ZEPHIR_INIT_NVAR(&_35$$14); zephir_create_array(&_35$$14, 2, 0 TSRMLS_CC); @@ -6174,7 +6141,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_INIT_NVAR(&columnMap); ZVAL_NULL(&columnMap); } - zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 3534); + zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 3516); if (Z_TYPE_P(&attributes) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&attributes), _1) { @@ -6189,7 +6156,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CONCAT_SVS(&_4$$7, "Column '", &field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_3$$7, "__construct", &_5, 5, &_4$$7); zephir_check_call_status(); - zephir_throw_exception_debug(&_3$$7, "phalcon/Mvc/Model.zep", 3476 TSRMLS_CC); + zephir_throw_exception_debug(&_3$$7, "phalcon/Mvc/Model.zep", 3458 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -6207,9 +6174,9 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { if (_6$$11) { ZEPHIR_CALL_METHOD(&value, connection, "getdefaultvalue", &_7, 0); zephir_check_call_status(); - zephir_array_fetch(&_8$$12, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3495 TSRMLS_CC); + zephir_array_fetch(&_8$$12, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3477 TSRMLS_CC); zephir_array_update_zval(&snapshot, &attributeField, &_8$$12, PH_COPY | PH_SEPARATE); - zephir_array_fetch(&_9$$12, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3496 TSRMLS_CC); + zephir_array_fetch(&_9$$12, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3478 TSRMLS_CC); zephir_array_update_zval(&unsetDefaultValues, &attributeField, &_9$$12, PH_COPY | PH_SEPARATE); } else { zephir_array_update_zval(&snapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); @@ -6222,28 +6189,28 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CONCAT_SVS(&_11$$14, "Column '", &field, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, &_10$$14, "__construct", &_5, 5, &_11$$14); zephir_check_call_status(); - zephir_throw_exception_debug(&_10$$14, "phalcon/Mvc/Model.zep", 3507 TSRMLS_CC); + zephir_throw_exception_debug(&_10$$14, "phalcon/Mvc/Model.zep", 3489 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3510); - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3511); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3512); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3492); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3493); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3494); } else { if (zephir_array_isset(&defaultValues, &field)) { ZEPHIR_CALL_METHOD(&_12$$16, connection, "getdefaultvalue", &_13, 0); zephir_check_call_status(); - zephir_array_append(&values, &_12$$16, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3515); - zephir_array_fetch(&_14$$16, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3517 TSRMLS_CC); + zephir_array_append(&values, &_12$$16, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3497); + zephir_array_fetch(&_14$$16, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3499 TSRMLS_CC); zephir_array_update_zval(&snapshot, &attributeField, &_14$$16, PH_COPY | PH_SEPARATE); - zephir_array_fetch(&_15$$16, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3518 TSRMLS_CC); + zephir_array_fetch(&_15$$16, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3500 TSRMLS_CC); zephir_array_update_zval(&unsetDefaultValues, &attributeField, &_15$$16, PH_COPY | PH_SEPARATE); } else { - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3520); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3502); zephir_array_update_zval(&snapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); } - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3524); - zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3525); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3506); + zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3507); } } } @@ -6268,7 +6235,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CONCAT_SVS(&_17$$20, "Column '", &field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_16$$20, "__construct", &_5, 5, &_17$$20); zephir_check_call_status(); - zephir_throw_exception_debug(&_16$$20, "phalcon/Mvc/Model.zep", 3476 TSRMLS_CC); + zephir_throw_exception_debug(&_16$$20, "phalcon/Mvc/Model.zep", 3458 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -6286,9 +6253,9 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { if (_18$$24) { ZEPHIR_CALL_METHOD(&value, connection, "getdefaultvalue", &_19, 0); zephir_check_call_status(); - zephir_array_fetch(&_20$$25, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3495 TSRMLS_CC); + zephir_array_fetch(&_20$$25, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3477 TSRMLS_CC); zephir_array_update_zval(&snapshot, &attributeField, &_20$$25, PH_COPY | PH_SEPARATE); - zephir_array_fetch(&_21$$25, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3496 TSRMLS_CC); + zephir_array_fetch(&_21$$25, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3478 TSRMLS_CC); zephir_array_update_zval(&unsetDefaultValues, &attributeField, &_21$$25, PH_COPY | PH_SEPARATE); } else { zephir_array_update_zval(&snapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); @@ -6301,28 +6268,28 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CONCAT_SVS(&_23$$27, "Column '", &field, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, &_22$$27, "__construct", &_5, 5, &_23$$27); zephir_check_call_status(); - zephir_throw_exception_debug(&_22$$27, "phalcon/Mvc/Model.zep", 3507 TSRMLS_CC); + zephir_throw_exception_debug(&_22$$27, "phalcon/Mvc/Model.zep", 3489 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3510); - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3511); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3512); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3492); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3493); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3494); } else { if (zephir_array_isset(&defaultValues, &field)) { ZEPHIR_CALL_METHOD(&_24$$29, connection, "getdefaultvalue", &_25, 0); zephir_check_call_status(); - zephir_array_append(&values, &_24$$29, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3515); - zephir_array_fetch(&_26$$29, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3517 TSRMLS_CC); + zephir_array_append(&values, &_24$$29, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3497); + zephir_array_fetch(&_26$$29, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3499 TSRMLS_CC); zephir_array_update_zval(&snapshot, &attributeField, &_26$$29, PH_COPY | PH_SEPARATE); - zephir_array_fetch(&_27$$29, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3518 TSRMLS_CC); + zephir_array_fetch(&_27$$29, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3500 TSRMLS_CC); zephir_array_update_zval(&unsetDefaultValues, &attributeField, &_27$$29, PH_COPY | PH_SEPARATE); } else { - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3520); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3502); zephir_array_update_zval(&snapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); } - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3524); - zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3525); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3506); + zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3507); } } } @@ -6338,7 +6305,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { zephir_check_call_status(); useExplicitIdentity = zephir_get_boolval(&_28$$31); if (useExplicitIdentity) { - zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3544); + zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3526); } if (Z_TYPE_P(&columnMap) == IS_ARRAY) { ZEPHIR_OBS_NVAR(&attributeField); @@ -6349,7 +6316,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CONCAT_SVS(&_30$$34, "Identity column '", identityField, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_29$$34, "__construct", &_5, 5, &_30$$34); zephir_check_call_status(); - zephir_throw_exception_debug(&_29$$34, "phalcon/Mvc/Model.zep", 3554 TSRMLS_CC); + zephir_throw_exception_debug(&_29$$34, "phalcon/Mvc/Model.zep", 3536 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -6364,12 +6331,12 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { } if (_31$$36) { if (useExplicitIdentity) { - zephir_array_append(&values, &defaultValue, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3566); - zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3566); + zephir_array_append(&values, &defaultValue, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3548); + zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3548); } } else { if (!(useExplicitIdentity)) { - zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3574); + zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3556); } ZEPHIR_OBS_NVAR(&bindType); if (UNEXPECTED(!(zephir_array_isset_fetch(&bindType, &bindDataTypes, identityField, 0 TSRMLS_CC)))) { @@ -6379,17 +6346,17 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CONCAT_SVS(&_33$$41, "Identity column '", identityField, "' isn\\'t part of the table columns"); ZEPHIR_CALL_METHOD(NULL, &_32$$41, "__construct", &_5, 5, &_33$$41); zephir_check_call_status(); - zephir_throw_exception_debug(&_32$$41, "phalcon/Mvc/Model.zep", 3583 TSRMLS_CC); + zephir_throw_exception_debug(&_32$$41, "phalcon/Mvc/Model.zep", 3565 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3586); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3587); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3568); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3569); } } else { if (useExplicitIdentity) { - zephir_array_append(&values, &defaultValue, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3591); - zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3592); + zephir_array_append(&values, &defaultValue, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3573); + zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3574); } } } @@ -6409,9 +6376,9 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CALL_METHOD(&sequenceName, this_ptr, "getsequencename", NULL, 0); zephir_check_call_status(); } else { - ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 443); + ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 441); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 442); + ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 440); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&sequenceName); if (ZEPHIR_IS_EMPTY(&schema)) { @@ -6434,7 +6401,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { zephir_update_property_zval(this_ptr, SL("uniqueParams"), &__$null); } if (zephir_is_true(&success)) { - zephir_is_iterable(&unsetDefaultValues, 0, "phalcon/Mvc/Model.zep", 3655); + zephir_is_iterable(&unsetDefaultValues, 0, "phalcon/Mvc/Model.zep", 3637); if (Z_TYPE_P(&unsetDefaultValues) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&unsetDefaultValues), _40$$51, _41$$51, _38$$51) { @@ -6599,7 +6566,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_INIT_NVAR(&columnMap); ZVAL_NULL(&columnMap); } - zephir_is_iterable(&nonPrimary, 0, "phalcon/Mvc/Model.zep", 3830); + zephir_is_iterable(&nonPrimary, 0, "phalcon/Mvc/Model.zep", 3812); if (Z_TYPE_P(&nonPrimary) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&nonPrimary), _2) { @@ -6614,7 +6581,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(&_5$$9, "Column '", &field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_4$$9, "__construct", &_6, 5, &_5$$9); zephir_check_call_status(); - zephir_throw_exception_debug(&_4$$9, "phalcon/Mvc/Model.zep", 3719 TSRMLS_CC); + zephir_throw_exception_debug(&_4$$9, "phalcon/Mvc/Model.zep", 3701 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -6630,16 +6597,16 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(&_8$$12, "Column '", &field, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, &_7$$12, "__construct", &_6, 5, &_8$$12); zephir_check_call_status(); - zephir_throw_exception_debug(&_7$$12, "phalcon/Mvc/Model.zep", 3732 TSRMLS_CC); + zephir_throw_exception_debug(&_7$$12, "phalcon/Mvc/Model.zep", 3714 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } ZEPHIR_OBS_NVAR(&value); if (zephir_fetch_property_zval(&value, this_ptr, &attributeField, PH_SILENT_CC)) { if (!(useDynamicUpdate)) { - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3744); - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3745); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3746); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3726); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3727); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3728); } else { ZEPHIR_OBS_NVAR(&snapshotValue); if (!(zephir_array_isset_fetch(&snapshotValue, &snapshot, &attributeField, 0 TSRMLS_CC))) { @@ -6659,7 +6626,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(&_10$$22, "Column '", &field, "' have not defined a data type"); ZEPHIR_CALL_METHOD(NULL, &_9$$22, "__construct", &_6, 5, &_10$$22); zephir_check_call_status(); - zephir_throw_exception_debug(&_9$$22, "phalcon/Mvc/Model.zep", 3771 TSRMLS_CC); + zephir_throw_exception_debug(&_9$$22, "phalcon/Mvc/Model.zep", 3753 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -6689,17 +6656,17 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { } } if (changed) { - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3810); - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3811); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3812); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3792); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3793); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3794); } } zephir_array_update_zval(&newSnapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); } else { zephir_array_update_zval(&newSnapshot, &attributeField, &__$null, PH_COPY | PH_SEPARATE); - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3820); - zephir_array_append(&values, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3821); - zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3822); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3802); + zephir_array_append(&values, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3803); + zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3804); } } } ZEND_HASH_FOREACH_END(); @@ -6723,7 +6690,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(&_17$$31, "Column '", &field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_16$$31, "__construct", &_6, 5, &_17$$31); zephir_check_call_status(); - zephir_throw_exception_debug(&_16$$31, "phalcon/Mvc/Model.zep", 3719 TSRMLS_CC); + zephir_throw_exception_debug(&_16$$31, "phalcon/Mvc/Model.zep", 3701 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -6739,16 +6706,16 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(&_19$$34, "Column '", &field, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, &_18$$34, "__construct", &_6, 5, &_19$$34); zephir_check_call_status(); - zephir_throw_exception_debug(&_18$$34, "phalcon/Mvc/Model.zep", 3732 TSRMLS_CC); + zephir_throw_exception_debug(&_18$$34, "phalcon/Mvc/Model.zep", 3714 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } ZEPHIR_OBS_NVAR(&value); if (zephir_fetch_property_zval(&value, this_ptr, &attributeField, PH_SILENT_CC)) { if (!(useDynamicUpdate)) { - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3744); - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3745); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3746); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3726); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3727); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3728); } else { ZEPHIR_OBS_NVAR(&snapshotValue); if (!(zephir_array_isset_fetch(&snapshotValue, &snapshot, &attributeField, 0 TSRMLS_CC))) { @@ -6768,7 +6735,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(&_21$$44, "Column '", &field, "' have not defined a data type"); ZEPHIR_CALL_METHOD(NULL, &_20$$44, "__construct", &_6, 5, &_21$$44); zephir_check_call_status(); - zephir_throw_exception_debug(&_20$$44, "phalcon/Mvc/Model.zep", 3771 TSRMLS_CC); + zephir_throw_exception_debug(&_20$$44, "phalcon/Mvc/Model.zep", 3753 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -6798,17 +6765,17 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { } } if (changed) { - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3810); - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3811); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3812); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3792); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3793); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3794); } } zephir_array_update_zval(&newSnapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); } else { zephir_array_update_zval(&newSnapshot, &attributeField, &__$null, PH_COPY | PH_SEPARATE); - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3820); - zephir_array_append(&values, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3821); - zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3822); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3802); + zephir_array_append(&values, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3803); + zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3804); } } ZEPHIR_CALL_METHOD(NULL, &nonPrimary, "next", NULL, 0); @@ -6832,12 +6799,12 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CALL_METHOD(&primaryKeys, metaData, "getprimarykeyattributes", NULL, 0, this_ptr); zephir_check_call_status(); if (UNEXPECTED(!(zephir_fast_count_int(&primaryKeys TSRMLS_CC)))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/Mvc/Model.zep", 3854); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/Mvc/Model.zep", 3836); return; } ZEPHIR_INIT_NVAR(&uniqueParams); array_init(&uniqueParams); - zephir_is_iterable(&primaryKeys, 0, "phalcon/Mvc/Model.zep", 3881); + zephir_is_iterable(&primaryKeys, 0, "phalcon/Mvc/Model.zep", 3863); if (Z_TYPE_P(&primaryKeys) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&primaryKeys), _26$$53) { @@ -6852,7 +6819,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(&_29$$57, "Column '", &field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_28$$57, "__construct", &_6, 5, &_29$$57); zephir_check_call_status(); - zephir_throw_exception_debug(&_28$$57, "phalcon/Mvc/Model.zep", 3867 TSRMLS_CC); + zephir_throw_exception_debug(&_28$$57, "phalcon/Mvc/Model.zep", 3849 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -6862,10 +6829,10 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_OBS_NVAR(&value); if (zephir_fetch_property_zval(&value, this_ptr, &attributeField, PH_SILENT_CC)) { zephir_array_update_zval(&newSnapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); - zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3875); + zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3857); } else { zephir_array_update_zval(&newSnapshot, &attributeField, &__$null, PH_COPY | PH_SEPARATE); - zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3878); + zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3860); } } ZEND_HASH_FOREACH_END(); } else { @@ -6888,7 +6855,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(&_31$$63, "Column '", &field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_30$$63, "__construct", &_6, 5, &_31$$63); zephir_check_call_status(); - zephir_throw_exception_debug(&_30$$63, "phalcon/Mvc/Model.zep", 3867 TSRMLS_CC); + zephir_throw_exception_debug(&_30$$63, "phalcon/Mvc/Model.zep", 3849 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -6898,10 +6865,10 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_OBS_NVAR(&value); if (zephir_fetch_property_zval(&value, this_ptr, &attributeField, PH_SILENT_CC)) { zephir_array_update_zval(&newSnapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); - zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3875); + zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3857); } else { zephir_array_update_zval(&newSnapshot, &attributeField, &__$null, PH_COPY | PH_SEPARATE); - zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3878); + zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3860); } ZEPHIR_CALL_METHOD(NULL, &primaryKeys, "next", NULL, 0); zephir_check_call_status(); @@ -7032,7 +6999,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _exists) { array_init(&uniqueParams); ZEPHIR_INIT_NVAR(&uniqueTypes); array_init(&uniqueTypes); - zephir_is_iterable(&primaryKeys, 0, "phalcon/Mvc/Model.zep", 4003); + zephir_is_iterable(&primaryKeys, 0, "phalcon/Mvc/Model.zep", 3985); if (Z_TYPE_P(&primaryKeys) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&primaryKeys), _1$$3) { @@ -7047,7 +7014,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _exists) { ZEPHIR_CONCAT_SVS(&_4$$9, "Column '", &field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_3$$9, "__construct", &_5, 5, &_4$$9); zephir_check_call_status(); - zephir_throw_exception_debug(&_3$$9, "phalcon/Mvc/Model.zep", 3962 TSRMLS_CC); + zephir_throw_exception_debug(&_3$$9, "phalcon/Mvc/Model.zep", 3944 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -7065,9 +7032,9 @@ PHP_METHOD(Phalcon_Mvc_Model, _exists) { if (_6$$11) { numberEmpty++; } - zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3983); + zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3965); } else { - zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3985); + zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3967); numberEmpty++; } ZEPHIR_OBS_NVAR(&type); @@ -7078,16 +7045,16 @@ PHP_METHOD(Phalcon_Mvc_Model, _exists) { ZEPHIR_CONCAT_SVS(&_8$$14, "Column '", &field, "' isn't part of the table columns"); ZEPHIR_CALL_METHOD(NULL, &_7$$14, "__construct", &_5, 5, &_8$$14); zephir_check_call_status(); - zephir_throw_exception_debug(&_7$$14, "phalcon/Mvc/Model.zep", 3992 TSRMLS_CC); + zephir_throw_exception_debug(&_7$$14, "phalcon/Mvc/Model.zep", 3974 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&uniqueTypes, &type, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3995); + zephir_array_append(&uniqueTypes, &type, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3977); ZEPHIR_CALL_METHOD(&_9$$7, connection, "escapeidentifier", &_10, 0, &field); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_11$$7); ZEPHIR_CONCAT_VS(&_11$$7, &_9$$7, " = ?"); - zephir_array_append(&wherePk, &_11$$7, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3996); + zephir_array_append(&wherePk, &_11$$7, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3978); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &primaryKeys, "rewind", NULL, 0); @@ -7109,7 +7076,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _exists) { ZEPHIR_CONCAT_SVS(&_13$$17, "Column '", &field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_12$$17, "__construct", &_5, 5, &_13$$17); zephir_check_call_status(); - zephir_throw_exception_debug(&_12$$17, "phalcon/Mvc/Model.zep", 3962 TSRMLS_CC); + zephir_throw_exception_debug(&_12$$17, "phalcon/Mvc/Model.zep", 3944 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -7127,9 +7094,9 @@ PHP_METHOD(Phalcon_Mvc_Model, _exists) { if (_14$$19) { numberEmpty++; } - zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3983); + zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3965); } else { - zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3985); + zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3967); numberEmpty++; } ZEPHIR_OBS_NVAR(&type); @@ -7140,16 +7107,16 @@ PHP_METHOD(Phalcon_Mvc_Model, _exists) { ZEPHIR_CONCAT_SVS(&_16$$22, "Column '", &field, "' isn't part of the table columns"); ZEPHIR_CALL_METHOD(NULL, &_15$$22, "__construct", &_5, 5, &_16$$22); zephir_check_call_status(); - zephir_throw_exception_debug(&_15$$22, "phalcon/Mvc/Model.zep", 3992 TSRMLS_CC); + zephir_throw_exception_debug(&_15$$22, "phalcon/Mvc/Model.zep", 3974 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&uniqueTypes, &type, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3995); + zephir_array_append(&uniqueTypes, &type, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3977); ZEPHIR_CALL_METHOD(&_17$$15, connection, "escapeidentifier", &_18, 0, &field); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_19$$15); ZEPHIR_CONCAT_VS(&_19$$15, &_17$$15, " = ?"); - zephir_array_append(&wherePk, &_19$$15, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3996); + zephir_array_append(&wherePk, &_19$$15, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3978); ZEPHIR_CALL_METHOD(NULL, &primaryKeys, "next", NULL, 0); zephir_check_call_status(); } @@ -7181,9 +7148,9 @@ PHP_METHOD(Phalcon_Mvc_Model, _exists) { zephir_read_property(&_22$$27, this_ptr, SL("uniqueTypes"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&uniqueTypes, &_22$$27); } - ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 442); + ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 440); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 443); + ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 441); zephir_check_call_status(); if (zephir_is_true(&schema)) { ZEPHIR_INIT_VAR(&table); @@ -7200,7 +7167,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _exists) { ZVAL_NULL(&_25); ZEPHIR_CALL_METHOD(&num, connection, "fetchone", NULL, 0, &_24, &_25, &uniqueParams, &uniqueTypes); zephir_check_call_status(); - zephir_array_fetch_string(&_26, &num, SL("rowcount"), PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4057 TSRMLS_CC); + zephir_array_fetch_string(&_26, &num, SL("rowcount"), PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4039 TSRMLS_CC); if (zephir_is_true(&_26)) { ZEPHIR_INIT_ZVAL_NREF(_27$$30); ZVAL_LONG(&_27$$30, 0); @@ -7382,7 +7349,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _groupResult) { ZEPHIR_INIT_VAR(¶ms); array_init(¶ms); if (Z_TYPE_P(parameters) != IS_NULL) { - zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4152); + zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4134); } } else { ZEPHIR_CPY_WRT(¶ms, parameters); @@ -7523,7 +7490,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _invokeFinder) { ZEPHIR_CONCAT_SVS(&_4$$7, "The static method '", &method, "' requires one argument"); ZEPHIR_CALL_METHOD(NULL, &_3$$7, "__construct", NULL, 5, &_4$$7); zephir_check_call_status(); - zephir_throw_exception_debug(&_3$$7, "phalcon/Mvc/Model.zep", 4271 TSRMLS_CC); + zephir_throw_exception_debug(&_3$$7, "phalcon/Mvc/Model.zep", 4253 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -7563,7 +7530,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _invokeFinder) { ZEPHIR_CONCAT_SVS(&_8$$13, "Cannot resolve attribute '", &extraMethod, "' in the model"); ZEPHIR_CALL_METHOD(NULL, &_7$$13, "__construct", NULL, 5, &_8$$13); zephir_check_call_status(); - zephir_throw_exception_debug(&_7$$13, "phalcon/Mvc/Model.zep", 4308 TSRMLS_CC); + zephir_throw_exception_debug(&_7$$13, "phalcon/Mvc/Model.zep", 4290 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -7703,7 +7670,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSave) { } } if (ZEPHIR_GLOBAL(orm).virtual_foreign_keys) { - ZEPHIR_CALL_METHOD(&_3$$8, this_ptr, "_checkforeignkeysrestrict", NULL, 449); + ZEPHIR_CALL_METHOD(&_3$$8, this_ptr, "_checkforeignkeysrestrict", NULL, 447); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_3$$8)) { RETURN_MM_BOOL(0); @@ -7734,7 +7701,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSave) { ZEPHIR_CALL_METHOD(&emptyStringValues, metaData, "getemptystringattributes", NULL, 0, this_ptr); zephir_check_call_status(); error = 0; - zephir_is_iterable(¬Null, 0, "phalcon/Mvc/Model.zep", 4503); + zephir_is_iterable(¬Null, 0, "phalcon/Mvc/Model.zep", 4485); if (Z_TYPE_P(¬Null) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(¬Null), _4$$11) { @@ -7749,7 +7716,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSave) { ZEPHIR_CONCAT_SVS(&_7$$18, "Column '", &field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_6$$18, "__construct", &_8, 5, &_7$$18); zephir_check_call_status(); - zephir_throw_exception_debug(&_6$$18, "phalcon/Mvc/Model.zep", 4428 TSRMLS_CC); + zephir_throw_exception_debug(&_6$$18, "phalcon/Mvc/Model.zep", 4410 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -7773,7 +7740,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSave) { if (_10$$26) { _11$$26 = !(zephir_array_isset(&defaultValues, &field)); if (!(_11$$26)) { - zephir_array_fetch(&_12$$26, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4457 TSRMLS_CC); + zephir_array_fetch(&_12$$26, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4439 TSRMLS_CC); _11$$26 = !ZEPHIR_IS_IDENTICAL(&value, &_12$$26); } _10$$26 = _11$$26; @@ -7835,7 +7802,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSave) { ZEPHIR_CONCAT_SVS(&_18$$37, "Column '", &field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, &_17$$37, "__construct", &_8, 5, &_18$$37); zephir_check_call_status(); - zephir_throw_exception_debug(&_17$$37, "phalcon/Mvc/Model.zep", 4428 TSRMLS_CC); + zephir_throw_exception_debug(&_17$$37, "phalcon/Mvc/Model.zep", 4410 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -7859,7 +7826,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSave) { if (_20$$45) { _21$$45 = !(zephir_array_isset(&defaultValues, &field)); if (!(_21$$45)) { - zephir_array_fetch(&_22$$45, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4457 TSRMLS_CC); + zephir_array_fetch(&_22$$45, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4439 TSRMLS_CC); _21$$45 = !ZEPHIR_IS_IDENTICAL(&value, &_22$$45); } _20$$45 = _21$$45; @@ -8057,7 +8024,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "getmodelsmanager", NULL, 0); zephir_check_call_status(); ZEPHIR_CPY_WRT(&manager, &_1); - zephir_is_iterable(related, 0, "phalcon/Mvc/Model.zep", 4680); + zephir_is_iterable(related, 0, "phalcon/Mvc/Model.zep", 4662); if (Z_TYPE_P(related) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(related), _4, _5, _2) { @@ -8084,7 +8051,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_10, 0, &_9$$6); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects can be stored as part of belongs-to relations", "phalcon/Mvc/Model.zep", 4623); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects can be stored as part of belongs-to relations", "phalcon/Mvc/Model.zep", 4605); return; } ZEPHIR_CALL_METHOD(&columns, &relation, "getfields", &_11, 0); @@ -8101,7 +8068,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_15, 0, &_14$$7); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4633); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4615); return; } zephir_read_property(&_16$$5, &record, SL("dirtyState"), PH_NOISY_CC | PH_READONLY); @@ -8114,7 +8081,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { if (_17$$5) { ZEPHIR_CALL_METHOD(&_19$$8, &record, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_19$$8, 0, "phalcon/Mvc/Model.zep", 4666); + zephir_is_iterable(&_19$$8, 0, "phalcon/Mvc/Model.zep", 4648); if (Z_TYPE_P(&_19$$8) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_19$$8), _20$$8) { @@ -8198,7 +8165,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_31, 0, &_30$$16); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects can be stored as part of belongs-to relations", "phalcon/Mvc/Model.zep", 4623); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects can be stored as part of belongs-to relations", "phalcon/Mvc/Model.zep", 4605); return; } ZEPHIR_CALL_METHOD(&columns, &relation, "getfields", &_11, 0); @@ -8215,7 +8182,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_33, 0, &_32$$17); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4633); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4615); return; } zephir_read_property(&_34$$15, &record, SL("dirtyState"), PH_NOISY_CC | PH_READONLY); @@ -8228,7 +8195,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { if (_35$$15) { ZEPHIR_CALL_METHOD(&_37$$18, &record, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_37$$18, 0, "phalcon/Mvc/Model.zep", 4666); + zephir_is_iterable(&_37$$18, 0, "phalcon/Mvc/Model.zep", 4648); if (Z_TYPE_P(&_37$$18) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_37$$18), _38$$18) { @@ -8455,7 +8422,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmodelsmanager", NULL, 0); zephir_check_call_status(); ZEPHIR_CPY_WRT(&manager, &_0); - zephir_is_iterable(related, 0, "phalcon/Mvc/Model.zep", 4910); + zephir_is_iterable(related, 0, "phalcon/Mvc/Model.zep", 4892); if (Z_TYPE_P(related) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(related), _3, _4, _1) { @@ -8488,7 +8455,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_11, 0, &_10$$6); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects/arrays can be stored as part of has-many/has-one/has-many-to-many relations", "phalcon/Mvc/Model.zep", 4740); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects/arrays can be stored as part of has-many/has-one/has-many-to-many relations", "phalcon/Mvc/Model.zep", 4722); return; } ZEPHIR_CALL_METHOD(&columns, &relation, "getfields", &_12, 0); @@ -8505,7 +8472,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_16, 0, &_15$$7); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4750); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4732); return; } if (Z_TYPE_P(&record) == IS_OBJECT) { @@ -8530,7 +8497,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CONCAT_SVS(&_20$$10, "The column '", &columns, "' needs to be present in the model"); ZEPHIR_CALL_METHOD(NULL, &_19$$10, "__construct", &_21, 5, &_20$$10); zephir_check_call_status(); - zephir_throw_exception_debug(&_19$$10, "phalcon/Mvc/Model.zep", 4767 TSRMLS_CC); + zephir_throw_exception_debug(&_19$$10, "phalcon/Mvc/Model.zep", 4749 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -8545,7 +8512,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&intermediateReferencedFields, &relation, "getintermediatereferencedfields", &_26, 0); zephir_check_call_status(); } - zephir_is_iterable(&relatedRecords, 0, "phalcon/Mvc/Model.zep", 4896); + zephir_is_iterable(&relatedRecords, 0, "phalcon/Mvc/Model.zep", 4878); if (Z_TYPE_P(&relatedRecords) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&relatedRecords), _27$$4) { @@ -8560,7 +8527,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(&_29$$12))) { ZEPHIR_CALL_METHOD(&_30$$14, &recordAfter, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_30$$14, 0, "phalcon/Mvc/Model.zep", 4826); + zephir_is_iterable(&_30$$14, 0, "phalcon/Mvc/Model.zep", 4808); if (Z_TYPE_P(&_30$$14) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_30$$14), _31$$14) { @@ -8624,7 +8591,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(&_39$$19))) { ZEPHIR_CALL_METHOD(&_40$$20, &intermediateModel, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_40$$20, 0, "phalcon/Mvc/Model.zep", 4890); + zephir_is_iterable(&_40$$20, 0, "phalcon/Mvc/Model.zep", 4872); if (Z_TYPE_P(&_40$$20) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_40$$20), _41$$20) { @@ -8696,7 +8663,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(&_47$$25))) { ZEPHIR_CALL_METHOD(&_48$$27, &recordAfter, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_48$$27, 0, "phalcon/Mvc/Model.zep", 4826); + zephir_is_iterable(&_48$$27, 0, "phalcon/Mvc/Model.zep", 4808); if (Z_TYPE_P(&_48$$27) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_48$$27), _49$$27) { @@ -8760,7 +8727,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(&_56$$32))) { ZEPHIR_CALL_METHOD(&_57$$33, &intermediateModel, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_57$$33, 0, "phalcon/Mvc/Model.zep", 4890); + zephir_is_iterable(&_57$$33, 0, "phalcon/Mvc/Model.zep", 4872); if (Z_TYPE_P(&_57$$33) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_57$$33), _58$$33) { @@ -8831,7 +8798,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CONCAT_SVSVS(&_67$$39, "There are no defined relations for the model '", &className, "' using alias '", &name, "'"); ZEPHIR_CALL_METHOD(NULL, &_66$$39, "__construct", &_21, 5, &_67$$39); zephir_check_call_status(); - zephir_throw_exception_debug(&_66$$39, "phalcon/Mvc/Model.zep", 4902 TSRMLS_CC); + zephir_throw_exception_debug(&_66$$39, "phalcon/Mvc/Model.zep", 4884 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -8871,7 +8838,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_73, 0, &_72$$43); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects/arrays can be stored as part of has-many/has-one/has-many-to-many relations", "phalcon/Mvc/Model.zep", 4740); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects/arrays can be stored as part of has-many/has-one/has-many-to-many relations", "phalcon/Mvc/Model.zep", 4722); return; } ZEPHIR_CALL_METHOD(&columns, &relation, "getfields", &_12, 0); @@ -8888,7 +8855,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_75, 0, &_74$$44); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4750); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4732); return; } if (Z_TYPE_P(&record) == IS_OBJECT) { @@ -8914,7 +8881,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CONCAT_SVS(&_80$$47, "The column '", &columns, "' needs to be present in the model"); ZEPHIR_CALL_METHOD(NULL, &_79$$47, "__construct", &_21, 5, &_80$$47); zephir_check_call_status(); - zephir_throw_exception_debug(&_79$$47, "phalcon/Mvc/Model.zep", 4767 TSRMLS_CC); + zephir_throw_exception_debug(&_79$$47, "phalcon/Mvc/Model.zep", 4749 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -8929,7 +8896,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&intermediateReferencedFields, &relation, "getintermediatereferencedfields", &_26, 0); zephir_check_call_status(); } - zephir_is_iterable(&relatedRecords, 0, "phalcon/Mvc/Model.zep", 4896); + zephir_is_iterable(&relatedRecords, 0, "phalcon/Mvc/Model.zep", 4878); if (Z_TYPE_P(&relatedRecords) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&relatedRecords), _82$$41) { @@ -8944,7 +8911,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(&_84$$49))) { ZEPHIR_CALL_METHOD(&_85$$51, &recordAfter, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_85$$51, 0, "phalcon/Mvc/Model.zep", 4826); + zephir_is_iterable(&_85$$51, 0, "phalcon/Mvc/Model.zep", 4808); if (Z_TYPE_P(&_85$$51) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_85$$51), _86$$51) { @@ -9008,7 +8975,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(&_93$$56))) { ZEPHIR_CALL_METHOD(&_94$$57, &intermediateModel, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_94$$57, 0, "phalcon/Mvc/Model.zep", 4890); + zephir_is_iterable(&_94$$57, 0, "phalcon/Mvc/Model.zep", 4872); if (Z_TYPE_P(&_94$$57) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_94$$57), _95$$57) { @@ -9080,7 +9047,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(&_101$$62))) { ZEPHIR_CALL_METHOD(&_102$$64, &recordAfter, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_102$$64, 0, "phalcon/Mvc/Model.zep", 4826); + zephir_is_iterable(&_102$$64, 0, "phalcon/Mvc/Model.zep", 4808); if (Z_TYPE_P(&_102$$64) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_102$$64), _103$$64) { @@ -9144,7 +9111,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(&_110$$69))) { ZEPHIR_CALL_METHOD(&_111$$70, &intermediateModel, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_111$$70, 0, "phalcon/Mvc/Model.zep", 4890); + zephir_is_iterable(&_111$$70, 0, "phalcon/Mvc/Model.zep", 4872); if (Z_TYPE_P(&_111$$70) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_111$$70), _112$$70) { @@ -9215,7 +9182,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CONCAT_SVSVS(&_121$$76, "There are no defined relations for the model '", &className, "' using alias '", &name, "'"); ZEPHIR_CALL_METHOD(NULL, &_120$$76, "__construct", &_21, 5, &_121$$76); zephir_check_call_status(); - zephir_throw_exception_debug(&_120$$76, "phalcon/Mvc/Model.zep", 4902 TSRMLS_CC); + zephir_throw_exception_debug(&_120$$76, "phalcon/Mvc/Model.zep", 4884 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -9278,7 +9245,7 @@ PHP_METHOD(Phalcon_Mvc_Model, allowEmptyStringValues) { ZEPHIR_INIT_VAR(&keysAttributes); array_init(&keysAttributes); - zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 4943); + zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 4925); if (Z_TYPE_P(&attributes) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&attributes), _0) { @@ -9887,7 +9854,7 @@ PHP_METHOD(Phalcon_Mvc_Model, skipAttributesOnCreate) { ZEPHIR_INIT_VAR(&keysAttributes); array_init(&keysAttributes); - zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 5244); + zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 5226); if (Z_TYPE_P(&attributes) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&attributes), _0) { @@ -9961,7 +9928,7 @@ PHP_METHOD(Phalcon_Mvc_Model, skipAttributesOnUpdate) { ZEPHIR_INIT_VAR(&keysAttributes); array_init(&keysAttributes); - zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 5279); + zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 5261); if (Z_TYPE_P(&attributes) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&attributes), _0) { @@ -10196,7 +10163,7 @@ PHP_METHOD(Phalcon_Mvc_Model, caseInsensitiveColumnMap) { ZEPHIR_INIT_VAR(&_0); zephir_array_keys(&_0, columnMap TSRMLS_CC); - zephir_is_iterable(&_0, 0, "phalcon/Mvc/Model.zep", 5415); + zephir_is_iterable(&_0, 0, "phalcon/Mvc/Model.zep", 5397); if (Z_TYPE_P(&_0) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_0), _1) { diff --git a/ext/phalcon/mvc/model.zep.h b/ext/phalcon/mvc/model.zep.h index 901a3dd7a32..6a01ed43235 100644 --- a/ext/phalcon/mvc/model.zep.h +++ b/ext/phalcon/mvc/model.zep.h @@ -27,7 +27,6 @@ PHP_METHOD(Phalcon_Mvc_Model, fireEvent); PHP_METHOD(Phalcon_Mvc_Model, fireEventCancel); PHP_METHOD(Phalcon_Mvc_Model, getChangedFields); PHP_METHOD(Phalcon_Mvc_Model, getDirtyState); -PHP_METHOD(Phalcon_Mvc_Model, getDI); PHP_METHOD(Phalcon_Mvc_Model, getEventsManager); PHP_METHOD(Phalcon_Mvc_Model, getMessages); PHP_METHOD(Phalcon_Mvc_Model, getModelsManager); @@ -58,7 +57,6 @@ PHP_METHOD(Phalcon_Mvc_Model, serialize); PHP_METHOD(Phalcon_Mvc_Model, unserialize); PHP_METHOD(Phalcon_Mvc_Model, setConnectionService); PHP_METHOD(Phalcon_Mvc_Model, setDirtyState); -PHP_METHOD(Phalcon_Mvc_Model, setDI); PHP_METHOD(Phalcon_Mvc_Model, setEventsManager); PHP_METHOD(Phalcon_Mvc_Model, setReadConnectionService); PHP_METHOD(Phalcon_Mvc_Model, setOldSnapshotData); @@ -310,13 +308,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_model_getdirtystate, #endif ZEND_END_ARG_INFO() -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_mvc_model_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_model_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) -#endif -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_mvc_model_geteventsmanager, 0, 0, Phalcon\\Events\\ManagerInterface, 0) #else @@ -546,10 +537,6 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_setdirtystate, 0, 0, 1) #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_setdi, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) -ZEND_END_ARG_INFO() - ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_seteventsmanager, 0, 0, 1) ZEND_ARG_OBJ_INFO(0, eventsManager, Phalcon\\Events\\ManagerInterface, 0) ZEND_END_ARG_INFO() @@ -975,7 +962,6 @@ ZEPHIR_INIT_FUNCS(phalcon_mvc_model_method_entry) { PHP_ME(Phalcon_Mvc_Model, fireEventCancel, arginfo_phalcon_mvc_model_fireeventcancel, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Model, getChangedFields, arginfo_phalcon_mvc_model_getchangedfields, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Model, getDirtyState, arginfo_phalcon_mvc_model_getdirtystate, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model, getDI, arginfo_phalcon_mvc_model_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Model, getEventsManager, arginfo_phalcon_mvc_model_geteventsmanager, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Model, getMessages, arginfo_phalcon_mvc_model_getmessages, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Model, getModelsManager, arginfo_phalcon_mvc_model_getmodelsmanager, ZEND_ACC_PUBLIC) @@ -1006,7 +992,6 @@ ZEPHIR_INIT_FUNCS(phalcon_mvc_model_method_entry) { PHP_ME(Phalcon_Mvc_Model, unserialize, arginfo_phalcon_mvc_model_unserialize, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Model, setConnectionService, arginfo_phalcon_mvc_model_setconnectionservice, ZEND_ACC_FINAL|ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Model, setDirtyState, arginfo_phalcon_mvc_model_setdirtystate, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model, setDI, arginfo_phalcon_mvc_model_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Model, setEventsManager, arginfo_phalcon_mvc_model_seteventsmanager, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Model, setReadConnectionService, arginfo_phalcon_mvc_model_setreadconnectionservice, ZEND_ACC_FINAL|ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Model, setOldSnapshotData, arginfo_phalcon_mvc_model_setoldsnapshotdata, ZEND_ACC_PUBLIC) diff --git a/ext/phalcon/mvc/model/behavior/timestampable.zep.c b/ext/phalcon/mvc/model/behavior/timestampable.zep.c index 00938f852f8..7f4d7c9d90a 100644 --- a/ext/phalcon/mvc/model/behavior/timestampable.zep.c +++ b/ext/phalcon/mvc/model/behavior/timestampable.zep.c @@ -96,7 +96,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Behavior_Timestampable, notify) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The option 'field' is required", "phalcon/Mvc/Model/Behavior/Timestampable.zep", 50); return; } - ZEPHIR_CALL_METHOD(×tamp, this_ptr, "gettimestamp", NULL, 450, &options); + ZEPHIR_CALL_METHOD(×tamp, this_ptr, "gettimestamp", NULL, 448, &options); zephir_check_call_status(); if (UNEXPECTED(Z_TYPE_P(&field) == IS_ARRAY)) { zephir_is_iterable(&field, 0, "phalcon/Mvc/Model/Behavior/Timestampable.zep", 63); @@ -155,7 +155,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Behavior_Timestampable, getTimestamp) { ZEPHIR_OBS_VAR(&format); if (zephir_array_isset_string_fetch(&format, &options, SL("format"), 0)) { - ZEPHIR_RETURN_CALL_FUNCTION("date", NULL, 420, &format); + ZEPHIR_RETURN_CALL_FUNCTION("date", NULL, 422, &format); zephir_check_call_status(); RETURN_MM(); } diff --git a/ext/phalcon/mvc/model/binder.zep.c b/ext/phalcon/mvc/model/binder.zep.c index 128d4ddcf3f..9991583e63f 100644 --- a/ext/phalcon/mvc/model/binder.zep.c +++ b/ext/phalcon/mvc/model/binder.zep.c @@ -396,7 +396,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Binder, getParamsFromReflection) { ZEPHIR_INIT_VAR(&reflection); if (!ZEPHIR_IS_STRING(&methodName, "")) { object_init_ex(&reflection, zephir_get_internal_ce(SL("reflectionmethod"))); - ZEPHIR_CALL_METHOD(NULL, &reflection, "__construct", NULL, 451, handler, &methodName); + ZEPHIR_CALL_METHOD(NULL, &reflection, "__construct", NULL, 449, handler, &methodName); zephir_check_call_status(); } else { object_init_ex(&reflection, zephir_get_internal_ce(SL("reflectionfunction"))); @@ -438,7 +438,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Binder, getParamsFromReflection) { zephir_array_fetch(¶mValue, ¶ms, ¶mKey, PH_NOISY, "phalcon/Mvc/Model/Binder.zep", 171 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_6$$5); ZVAL_STRING(&_6$$5, "Phalcon\\Mvc\\Model"); - ZEPHIR_CALL_FUNCTION(&_7$$5, "is_subclass_of", &_8, 452, &className, &_6$$5); + ZEPHIR_CALL_FUNCTION(&_7$$5, "is_subclass_of", &_8, 450, &className, &_6$$5); zephir_check_call_status(); if (ZEPHIR_IS_STRING(&className, "Phalcon\\Mvc\\Model")) { if (Z_TYPE_P(&realClasses) == IS_NULL) { @@ -520,7 +520,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Binder, getParamsFromReflection) { zephir_array_fetch(¶mValue, ¶ms, ¶mKey, PH_NOISY, "phalcon/Mvc/Model/Binder.zep", 171 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_15$$19); ZVAL_STRING(&_15$$19, "Phalcon\\Mvc\\Model"); - ZEPHIR_CALL_FUNCTION(&_16$$19, "is_subclass_of", &_8, 452, &className, &_15$$19); + ZEPHIR_CALL_FUNCTION(&_16$$19, "is_subclass_of", &_8, 450, &className, &_15$$19); zephir_check_call_status(); if (ZEPHIR_IS_STRING(&className, "Phalcon\\Mvc\\Model")) { if (Z_TYPE_P(&realClasses) == IS_NULL) { diff --git a/ext/phalcon/mvc/model/criteria.zep.c b/ext/phalcon/mvc/model/criteria.zep.c index 8552a791694..3760284cde3 100644 --- a/ext/phalcon/mvc/model/criteria.zep.c +++ b/ext/phalcon/mvc/model/criteria.zep.c @@ -1776,12 +1776,12 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { ZEPHIR_INIT_VAR(&_19$$16); ZEPHIR_CONCAT_SVS(&_19$$16, " ", &operator, " "); zephir_fast_join(&_18$$16, &_19$$16, &conditions TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &criteria, "where", NULL, 453, &_18$$16); + ZEPHIR_CALL_METHOD(NULL, &criteria, "where", NULL, 451, &_18$$16); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &criteria, "bind", NULL, 454, &bind); + ZEPHIR_CALL_METHOD(NULL, &criteria, "bind", NULL, 452, &bind); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, &criteria, "setmodelname", NULL, 447, &modelName); + ZEPHIR_CALL_METHOD(NULL, &criteria, "setmodelname", NULL, 445, &modelName); zephir_check_call_status(); RETURN_CCTOR(&criteria); diff --git a/ext/phalcon/mvc/model/manager.zep.c b/ext/phalcon/mvc/model/manager.zep.c index aa6db53daef..c6ab8764fa9 100644 --- a/ext/phalcon/mvc/model/manager.zep.c +++ b/ext/phalcon/mvc/model/manager.zep.c @@ -1413,7 +1413,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasOne) { ZEPHIR_INIT_VAR(&relation); object_init_ex(&relation, phalcon_mvc_model_relation_ce); ZVAL_LONG(&_2, 1); - ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 455, &_2, &referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 453, &_2, &referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(&alias); if (zephir_array_isset_string_fetch(&alias, options, SL("alias"), 0)) { @@ -1516,7 +1516,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, addBelongsTo) { ZEPHIR_INIT_VAR(&relation); object_init_ex(&relation, phalcon_mvc_model_relation_ce); ZVAL_LONG(&_2, 0); - ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 455, &_2, &referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 453, &_2, &referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(&alias); if (zephir_array_isset_string_fetch(&alias, options, SL("alias"), 0)) { @@ -1621,7 +1621,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasMany) { ZEPHIR_INIT_VAR(&relation); object_init_ex(&relation, phalcon_mvc_model_relation_ce); ZVAL_LONG(&_1, 2); - ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 455, &_1, &referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 453, &_1, &referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(&alias); if (zephir_array_isset_string_fetch(&alias, options, SL("alias"), 0)) { @@ -1751,9 +1751,9 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasManyToMany) { ZEPHIR_INIT_VAR(&relation); object_init_ex(&relation, phalcon_mvc_model_relation_ce); ZVAL_LONG(&_1, 4); - ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 455, &_1, &referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 453, &_1, &referencedModel, fields, referencedFields, options); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &relation, "setintermediaterelation", NULL, 456, intermediateFields, &intermediateModel, intermediateReferencedFields); + ZEPHIR_CALL_METHOD(NULL, &relation, "setintermediaterelation", NULL, 454, intermediateFields, &intermediateModel, intermediateReferencedFields); zephir_check_call_status(); ZEPHIR_OBS_VAR(&alias); if (zephir_array_isset_string_fetch(&alias, options, SL("alias"), 0)) { @@ -2435,7 +2435,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { ZEPHIR_INIT_VAR(&_4$$3); ZEPHIR_CONCAT_SVSVSVSVS(&_4$$3, "[", &intermediateModel, "].[", &intermediateFields, "] = [", &referencedModel, "].[", &_3$$3, "]"); zephir_array_append(&joinConditions, &_4$$3, PH_SEPARATE, "phalcon/Mvc/Model/Manager.zep", 1299); - ZEPHIR_CALL_METHOD(&_5$$3, this_ptr, "_mergefindparameters", NULL, 457, &extraParameters, parameters); + ZEPHIR_CALL_METHOD(&_5$$3, this_ptr, "_mergefindparameters", NULL, 455, &extraParameters, parameters); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&builder, this_ptr, "createbuilder", NULL, 0, &_5$$3); zephir_check_call_status(); @@ -2548,10 +2548,10 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { ZEPHIR_CALL_METHOD(&_30, record, "getdi", NULL, 0); zephir_check_call_status(); zephir_array_update_string(&findParams, SL("di"), &_30, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&findArguments, this_ptr, "_mergefindparameters", NULL, 457, &findParams, parameters); + ZEPHIR_CALL_METHOD(&findArguments, this_ptr, "_mergefindparameters", NULL, 455, &findParams, parameters); zephir_check_call_status(); if (Z_TYPE_P(&extraParameters) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&findParams, this_ptr, "_mergefindparameters", NULL, 457, &extraParameters, &findArguments); + ZEPHIR_CALL_METHOD(&findParams, this_ptr, "_mergefindparameters", NULL, 455, &extraParameters, &findArguments); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&findParams, &findArguments); diff --git a/ext/phalcon/mvc/model/metadata/stream.zep.c b/ext/phalcon/mvc/model/metadata/stream.zep.c index 3e5cbac5570..80307773a3b 100644 --- a/ext/phalcon/mvc/model/metadata/stream.zep.c +++ b/ext/phalcon/mvc/model/metadata/stream.zep.c @@ -195,7 +195,7 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Stream, write) { ZEPHIR_CONCAT_SVS(&_5$$3, "= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_mvc_router_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_router_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) -#endif -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_mvc_router_geteventsmanager, 0, 0, Phalcon\\Events\\ManagerInterface, 0) #else @@ -417,10 +408,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_router_getdefaults, #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_router_setdi, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) -ZEND_END_ARG_INFO() - ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_router_seteventsmanager, 0, 0, 1) ZEND_ARG_OBJ_INFO(0, eventsManager, Phalcon\\Events\\ManagerInterface, 0) ZEND_END_ARG_INFO() @@ -451,7 +438,6 @@ ZEPHIR_INIT_FUNCS(phalcon_mvc_router_method_entry) { PHP_ME(Phalcon_Mvc_Router, addTrace, arginfo_phalcon_mvc_router_addtrace, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, attach, arginfo_phalcon_mvc_router_attach, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, clear, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Router, getDI, arginfo_phalcon_mvc_router_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, getEventsManager, arginfo_phalcon_mvc_router_geteventsmanager, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, getActionName, arginfo_phalcon_mvc_router_getactionname, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, getControllerName, arginfo_phalcon_mvc_router_getcontrollername, ZEND_ACC_PUBLIC) @@ -474,7 +460,6 @@ ZEPHIR_INIT_FUNCS(phalcon_mvc_router_method_entry) { PHP_ME(Phalcon_Mvc_Router, setDefaultNamespace, arginfo_phalcon_mvc_router_setdefaultnamespace, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, setDefaults, arginfo_phalcon_mvc_router_setdefaults, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, getDefaults, arginfo_phalcon_mvc_router_getdefaults, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Router, setDI, arginfo_phalcon_mvc_router_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, setEventsManager, arginfo_phalcon_mvc_router_seteventsmanager, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, wasMatched, arginfo_phalcon_mvc_router_wasmatched, ZEND_ACC_PUBLIC) PHP_FE_END diff --git a/ext/phalcon/mvc/router/group.zep.c b/ext/phalcon/mvc/router/group.zep.c index ae98c1f75c5..283821c101f 100644 --- a/ext/phalcon/mvc/router/group.zep.c +++ b/ext/phalcon/mvc/router/group.zep.c @@ -872,7 +872,7 @@ PHP_METHOD(Phalcon_Mvc_Router_Group, addRoute) { ZEPHIR_CALL_METHOD(NULL, &route, "__construct", NULL, 105, &_2, &mergedPaths, httpMethods); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("routes"), &route); - ZEPHIR_CALL_METHOD(NULL, &route, "setgroup", NULL, 498, this_ptr); + ZEPHIR_CALL_METHOD(NULL, &route, "setgroup", NULL, 496, this_ptr); zephir_check_call_status(); RETURN_CCTOR(&route); diff --git a/ext/phalcon/mvc/view.zep.c b/ext/phalcon/mvc/view.zep.c index 2e4856c8702..c63df9f3e9b 100644 --- a/ext/phalcon/mvc/view.zep.c +++ b/ext/phalcon/mvc/view.zep.c @@ -801,11 +801,11 @@ PHP_METHOD(Phalcon_Mvc_View, getPartial) { } - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 391); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 393); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "partial", NULL, 0, &partialPath, params); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", NULL, 398); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", NULL, 400); zephir_check_call_status(); RETURN_MM(); @@ -1777,7 +1777,7 @@ PHP_METHOD(Phalcon_Mvc_View, start) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 391); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 393); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("content"), &__$null); RETURN_THIS(); @@ -1937,7 +1937,7 @@ PHP_METHOD(Phalcon_Mvc_View, engineRender) { { ZEPHIR_INIT_NVAR(&viewsDir); ZVAL_COPY(&viewsDir, _2); - ZEPHIR_CALL_METHOD(&_4$$3, this_ptr, "isabsolutepath", &_5, 499, &viewPath); + ZEPHIR_CALL_METHOD(&_4$$3, this_ptr, "isabsolutepath", &_5, 497, &viewPath); zephir_check_call_status(); if (!(zephir_is_true(&_4$$3))) { ZEPHIR_INIT_NVAR(&viewsDirPath); @@ -2055,7 +2055,7 @@ PHP_METHOD(Phalcon_Mvc_View, engineRender) { } ZEPHIR_CALL_METHOD(&viewsDir, &_1, "current", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_24$$16, this_ptr, "isabsolutepath", &_5, 499, &viewPath); + ZEPHIR_CALL_METHOD(&_24$$16, this_ptr, "isabsolutepath", &_5, 497, &viewPath); zephir_check_call_status(); if (!(zephir_is_true(&_24$$16))) { ZEPHIR_INIT_NVAR(&viewsDirPath); @@ -2288,7 +2288,7 @@ PHP_METHOD(Phalcon_Mvc_View, loadTemplateEngines) { if (ZEPHIR_IS_EMPTY(®isteredEngines)) { ZEPHIR_INIT_VAR(&_2$$4); object_init_ex(&_2$$4, phalcon_mvc_view_engine_php_ce); - ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 500, this_ptr, &di); + ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 498, this_ptr, &di); zephir_check_call_status(); zephir_array_update_string(&engines, SL(".phtml"), &_2$$4, PH_COPY | PH_SEPARATE); } else { @@ -2505,7 +2505,7 @@ PHP_METHOD(Phalcon_Mvc_View, processRender) { zephir_update_property_zval(this_ptr, SL("currentRenderLevel"), &_0); zephir_read_property(&_0, this_ptr, SL("disabled"), PH_NOISY_CC | PH_READONLY); if (!ZEPHIR_IS_FALSE_IDENTICAL(&_0)) { - ZEPHIR_CALL_FUNCTION(&_1$$3, "ob_get_contents", NULL, 501); + ZEPHIR_CALL_FUNCTION(&_1$$3, "ob_get_contents", NULL, 499); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("content"), &_1$$3); RETURN_MM_BOOL(0); @@ -2563,7 +2563,7 @@ PHP_METHOD(Phalcon_Mvc_View, processRender) { RETURN_MM_BOOL(0); } } - ZEPHIR_CALL_FUNCTION(&_8, "ob_get_contents", NULL, 501); + ZEPHIR_CALL_FUNCTION(&_8, "ob_get_contents", NULL, 499); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("content"), &_8); silence = 1; diff --git a/ext/phalcon/mvc/view/engine/php.zep.c b/ext/phalcon/mvc/view/engine/php.zep.c index ae3814f034a..76970a13f12 100644 --- a/ext/phalcon/mvc/view/engine/php.zep.c +++ b/ext/phalcon/mvc/view/engine/php.zep.c @@ -85,7 +85,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render) { if (mustClean) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 502); + ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 500); zephir_check_call_status(); } if (Z_TYPE_P(params) == IS_ARRAY) { @@ -135,7 +135,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render) { } if (mustClean) { zephir_read_property(&_6$$7, this_ptr, SL("view"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_7$$7, "ob_get_contents", NULL, 501); + ZEPHIR_CALL_FUNCTION(&_7$$7, "ob_get_contents", NULL, 499); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_6$$7, "setcontent", NULL, 0, &_7$$7); zephir_check_call_status(); diff --git a/ext/phalcon/mvc/view/engine/volt.zep.c b/ext/phalcon/mvc/view/engine/volt.zep.c index 746a15df842..c9f12bdfd14 100644 --- a/ext/phalcon/mvc/view/engine/volt.zep.c +++ b/ext/phalcon/mvc/view/engine/volt.zep.c @@ -155,7 +155,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, convertEncoding) { _0 = ZEPHIR_IS_STRING(&to, "utf8"); } if (_0) { - ZEPHIR_RETURN_CALL_FUNCTION("utf8_encode", NULL, 503, &text); + ZEPHIR_RETURN_CALL_FUNCTION("utf8_encode", NULL, 501, &text); zephir_check_call_status(); RETURN_MM(); } @@ -208,18 +208,18 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, getCompiler) { ZEPHIR_INIT_NVAR(&compiler); object_init_ex(&compiler, phalcon_mvc_view_engine_volt_compiler_ce); zephir_read_property(&_1$$3, this_ptr, SL("view"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(NULL, &compiler, "__construct", NULL, 504, &_1$$3); + ZEPHIR_CALL_METHOD(NULL, &compiler, "__construct", NULL, 502, &_1$$3); zephir_check_call_status(); zephir_read_property(&_2$$3, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&container, &_2$$3); if (Z_TYPE_P(&container) == IS_OBJECT) { - ZEPHIR_CALL_METHOD(NULL, &compiler, "setdi", NULL, 505, &container); + ZEPHIR_CALL_METHOD(NULL, &compiler, "setdi", NULL, 503, &container); zephir_check_call_status(); } zephir_read_property(&_2$$3, this_ptr, SL("options"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&options, &_2$$3); if (Z_TYPE_P(&options) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, &compiler, "setoptions", NULL, 506, &options); + ZEPHIR_CALL_METHOD(NULL, &compiler, "setoptions", NULL, 504, &options); zephir_check_call_status(); } zephir_update_property_zval(this_ptr, SL("compiler"), &compiler); @@ -365,7 +365,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, render) { if (mustClean) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 502); + ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 500); zephir_check_call_status(); } ZEPHIR_CALL_METHOD(&compiler, this_ptr, "getcompiler", NULL, 0); @@ -441,7 +441,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, render) { } if (mustClean) { zephir_read_property(&_11$$11, this_ptr, SL("view"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_12$$11, "ob_get_contents", NULL, 501); + ZEPHIR_CALL_FUNCTION(&_12$$11, "ob_get_contents", NULL, 499); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_11$$11, "setcontent", NULL, 0, &_12$$11); zephir_check_call_status(); @@ -601,7 +601,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, sort) { ZEPHIR_MAKE_REF(&value); - ZEPHIR_CALL_FUNCTION(NULL, "asort", NULL, 507, &value); + ZEPHIR_CALL_FUNCTION(NULL, "asort", NULL, 505, &value); ZEPHIR_UNREF(&value); zephir_check_call_status(); RETURN_CTOR(&value); diff --git a/ext/phalcon/mvc/view/engine/volt/compiler.zep.c b/ext/phalcon/mvc/view/engine/volt/compiler.zep.c index 6329d813517..c19ca394af9 100644 --- a/ext/phalcon/mvc/view/engine/volt/compiler.zep.c +++ b/ext/phalcon/mvc/view/engine/volt/compiler.zep.c @@ -293,7 +293,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, attributeReader) { } } } else { - ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", NULL, 508, &left); + ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", NULL, 506, &left); zephir_check_call_status(); ZEPHIR_OBS_VAR(&leftType); zephir_array_fetch_string(&leftType, &left, SL("type"), PH_NOISY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 137 TSRMLS_CC); @@ -315,7 +315,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, attributeReader) { zephir_array_fetch_string(&_11$$11, &right, SL("value"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 151 TSRMLS_CC); zephir_concat_self(&exprCode, &_11$$11 TSRMLS_CC); } else { - ZEPHIR_CALL_METHOD(&_12$$12, this_ptr, "expression", NULL, 508, &right); + ZEPHIR_CALL_METHOD(&_12$$12, this_ptr, "expression", NULL, 506, &right); zephir_check_call_status(); zephir_concat_self(&exprCode, &_12$$12 TSRMLS_CC); } @@ -575,7 +575,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compile) { object_init_ex(&_17$$35, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_18$$35); ZEPHIR_CONCAT_SVS(&_18$$35, "Extends compilation file ", &compiledTemplatePath, " could not be opened"); - ZEPHIR_CALL_METHOD(NULL, &_17$$35, "__construct", NULL, 509, &_18$$35); + ZEPHIR_CALL_METHOD(NULL, &_17$$35, "__construct", NULL, 507, &_18$$35); zephir_check_call_status(); zephir_throw_exception_debug(&_17$$35, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 366 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -637,7 +637,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileAutoEscape) { } else { ZVAL_BOOL(&_1, 0); } - ZEPHIR_CALL_METHOD(&compilation, this_ptr, "statementlist", NULL, 510, &_0, &_1); + ZEPHIR_CALL_METHOD(&compilation, this_ptr, "statementlist", NULL, 508, &_0, &_1); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("autoescape"), &oldAutoescape); RETURN_CCTOR(&compilation); @@ -702,15 +702,15 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileCache) { object_init_ex(&_0$$3, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "Corrupt statement"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 509, &_1$$3, &statement); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 507, &_1$$3, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$3, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 429 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 508, &expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 506, &expr); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 508, &expr); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 506, &expr); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_3); ZEPHIR_CONCAT_SVS(&_3, "di->get('viewCache'); "); @@ -746,7 +746,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileCache) { } else { ZVAL_BOOL(&_14, 0); } - ZEPHIR_CALL_METHOD(&_12, this_ptr, "statementlist", NULL, 510, &_13, &_14); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "statementlist", NULL, 508, &_13, &_14); zephir_check_call_status(); zephir_concat_self(&compilation, &_12 TSRMLS_CC); ZEPHIR_OBS_NVAR(&lifetime); @@ -836,13 +836,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileCase) { object_init_ex(&_0$$4, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_1$$4); ZVAL_STRING(&_1$$4, "Corrupt statement"); - ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 509, &_1$$4, &statement); + ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 507, &_1$$4, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$4, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 505 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 508, &expr); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 506, &expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -875,7 +875,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileDo) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 525); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 508, &expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 506, &expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -916,13 +916,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileEcho) { object_init_ex(&_0$$3, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "Corrupt statement"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 509, &_1$$3, &statement); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 507, &_1$$3, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$3, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 545 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 508, &expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 506, &expr); zephir_check_call_status(); zephir_array_fetch_string(&_2, &expr, SL("type"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 553 TSRMLS_CC); if (ZEPHIR_IS_LONG(&_2, 350)) { @@ -974,13 +974,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileElseIf) { object_init_ex(&_0$$3, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "Corrupt statement"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 509, &_1$$3, &statement); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 507, &_1$$3, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$3, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 588 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 508, &expr); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 506, &expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -1059,7 +1059,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { object_init_ex(&_0$$4, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_1$$4); ZEPHIR_CONCAT_SVS(&_1$$4, "Template file ", &path, " does not exist"); - ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 509, &_1$$4); + ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 507, &_1$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$4, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 623 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -1072,7 +1072,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { object_init_ex(&_2$$5, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_3$$5); ZEPHIR_CONCAT_SVS(&_3$$5, "Template file ", &path, " could not be opened"); - ZEPHIR_CALL_METHOD(NULL, &_2$$5, "__construct", NULL, 509, &_3$$5); + ZEPHIR_CALL_METHOD(NULL, &_2$$5, "__construct", NULL, 507, &_3$$5); zephir_check_call_status(); zephir_throw_exception_debug(&_2$$5, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 635 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -1186,7 +1186,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { ZEPHIR_CONCAT_VV(&prefixLevel, &prefix, &level); ZEPHIR_OBS_VAR(&expr); zephir_array_fetch_string(&expr, &statement, SL("expr"), PH_NOISY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 696 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 508, &expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 506, &expr); zephir_check_call_status(); ZEPHIR_OBS_VAR(&blockStatements); zephir_array_fetch_string(&blockStatements, &statement, SL("block_statements"), PH_NOISY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 703 TSRMLS_CC); @@ -1246,7 +1246,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { } else { ZVAL_BOOL(&_4, 0); } - ZEPHIR_CALL_METHOD(&code, this_ptr, "statementlist", NULL, 510, &blockStatements, &_4); + ZEPHIR_CALL_METHOD(&code, this_ptr, "statementlist", NULL, 508, &blockStatements, &_4); zephir_check_call_status(); ZEPHIR_OBS_VAR(&loopContext); zephir_read_property(&loopContext, this_ptr, SL("loopPointers"), PH_NOISY_CC); @@ -1297,7 +1297,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { } ZEPHIR_OBS_VAR(&ifExpr); if (zephir_array_isset_string_fetch(&ifExpr, &statement, SL("if_expr"), 0)) { - ZEPHIR_CALL_METHOD(&_16$$15, this_ptr, "expression", NULL, 508, &ifExpr); + ZEPHIR_CALL_METHOD(&_16$$15, this_ptr, "expression", NULL, 506, &ifExpr); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_17$$15); ZEPHIR_CONCAT_SVS(&_17$$15, "if (", &_16$$15, ") { ?>"); @@ -1424,13 +1424,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileIf) { object_init_ex(&_0$$3, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "Corrupt statement"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 509, &_1$$3, &statement); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 507, &_1$$3, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$3, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 850 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 508, &expr); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 506, &expr); zephir_check_call_status(); zephir_array_fetch_string(&_4, &statement, SL("true_statements"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 856 TSRMLS_CC); if (extendsMode) { @@ -1438,7 +1438,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileIf) { } else { ZVAL_BOOL(&_5, 0); } - ZEPHIR_CALL_METHOD(&_3, this_ptr, "statementlist", NULL, 510, &_4, &_5); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "statementlist", NULL, 508, &_4, &_5); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_6); ZEPHIR_CONCAT_SVSV(&_6, "", &_3); @@ -1450,7 +1450,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileIf) { } else { ZVAL_BOOL(&_8$$4, 0); } - ZEPHIR_CALL_METHOD(&_7$$4, this_ptr, "statementlist", NULL, 510, &blockStatements, &_8$$4); + ZEPHIR_CALL_METHOD(&_7$$4, this_ptr, "statementlist", NULL, 508, &blockStatements, &_8$$4); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_9$$4); ZEPHIR_CONCAT_SV(&_9$$4, "", &_7$$4); @@ -1518,14 +1518,14 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileInclude) { RETURN_CCTOR(&compilation); } } - ZEPHIR_CALL_METHOD(&path, this_ptr, "expression", NULL, 508, &pathExpr); + ZEPHIR_CALL_METHOD(&path, this_ptr, "expression", NULL, 506, &pathExpr); zephir_check_call_status(); ZEPHIR_OBS_VAR(¶ms); if (!(zephir_array_isset_string_fetch(¶ms, &statement, SL("params"), 0))) { ZEPHIR_CONCAT_SVS(return_value, "partial(", &path, "); ?>"); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_3, this_ptr, "expression", NULL, 508, ¶ms); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "expression", NULL, 506, ¶ms); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "partial(", &path, ", ", &_3, "); ?>"); RETURN_MM(); @@ -1602,7 +1602,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { object_init_ex(&_1$$4, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_2$$4); ZEPHIR_CONCAT_SVS(&_2$$4, "Macro '", &name, "' is already defined"); - ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 509, &_2$$4); + ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 507, &_2$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$4, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 962 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -1653,7 +1653,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { zephir_concat_self_str(&code, " } else { ", sizeof(" } else { ")-1 TSRMLS_CC); ZEPHIR_OBS_NVAR(&defaultValue); if (EXPECTED(zephir_array_isset_string_fetch(&defaultValue, ¶meter, SL("default"), 0))) { - ZEPHIR_CALL_METHOD(&_14$$8, this_ptr, "expression", &_15, 508, &defaultValue); + ZEPHIR_CALL_METHOD(&_14$$8, this_ptr, "expression", &_15, 506, &defaultValue); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_16$$8); ZEPHIR_CONCAT_SVSVS(&_16$$8, "$", &variableName, " = ", &_14$$8, ";"); @@ -1696,7 +1696,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { zephir_concat_self_str(&code, " } else { ", sizeof(" } else { ")-1 TSRMLS_CC); ZEPHIR_OBS_NVAR(&defaultValue); if (EXPECTED(zephir_array_isset_string_fetch(&defaultValue, ¶meter, SL("default"), 0))) { - ZEPHIR_CALL_METHOD(&_22$$11, this_ptr, "expression", &_15, 508, &defaultValue); + ZEPHIR_CALL_METHOD(&_22$$11, this_ptr, "expression", &_15, 506, &defaultValue); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_23$$11); ZEPHIR_CONCAT_SVSVS(&_23$$11, "$", &variableName, " = ", &_22$$11, ";"); @@ -1722,7 +1722,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { } else { ZVAL_BOOL(&_26$$13, 0); } - ZEPHIR_CALL_METHOD(&_25$$13, this_ptr, "statementlist", NULL, 510, &blockStatements, &_26$$13); + ZEPHIR_CALL_METHOD(&_25$$13, this_ptr, "statementlist", NULL, 508, &blockStatements, &_26$$13); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_27$$13); ZEPHIR_CONCAT_VS(&_27$$13, &_25$$13, ""); RETURN_MM(); @@ -1827,10 +1827,10 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSet) { ZEPHIR_INIT_NVAR(&assignment); ZVAL_COPY(&assignment, _0); zephir_array_fetch_string(&_2$$4, &assignment, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1067 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_3, 508, &_2$$4); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_3, 506, &_2$$4); zephir_check_call_status(); zephir_array_fetch_string(&_4$$4, &assignment, SL("variable"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1074 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_3, 508, &_4$$4); + ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_3, 506, &_4$$4); zephir_check_call_status(); zephir_array_fetch_string(&_5$$4, &assignment, SL("op"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1080 TSRMLS_CC); do { @@ -1877,10 +1877,10 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSet) { ZEPHIR_CALL_METHOD(&assignment, &assignments, "current", NULL, 0); zephir_check_call_status(); zephir_array_fetch_string(&_11$$10, &assignment, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1067 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_3, 508, &_11$$10); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_3, 506, &_11$$10); zephir_check_call_status(); zephir_array_fetch_string(&_12$$10, &assignment, SL("variable"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1074 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_3, 508, &_12$$10); + ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_3, 506, &_12$$10); zephir_check_call_status(); zephir_array_fetch_string(&_13$$10, &assignment, SL("op"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1080 TSRMLS_CC); do { @@ -2021,13 +2021,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSwitch) { object_init_ex(&_0$$3, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "Corrupt statement"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 509, &_1$$3, &statement); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 507, &_1$$3, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$3, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1135 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 508, &expr); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 506, &expr); zephir_check_call_status(); ZEPHIR_INIT_VAR(&compilation); ZEPHIR_CONCAT_SVS(&compilation, ""); @@ -2038,7 +2038,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSwitch) { } else { ZVAL_BOOL(&_3$$4, 0); } - ZEPHIR_CALL_METHOD(&lines, this_ptr, "statementlist", NULL, 510, &caseClauses, &_3$$4); + ZEPHIR_CALL_METHOD(&lines, this_ptr, "statementlist", NULL, 508, &caseClauses, &_3$$4); zephir_check_call_status(); if (zephir_fast_strlen_ev(&lines) != 0) { ZEPHIR_INIT_VAR(&_4$$5); @@ -2124,7 +2124,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { zephir_array_fast_append(&_1$$4, &expr); ZEPHIR_INIT_NVAR(&_2$$4); ZVAL_STRING(&_2$$4, "resolveExpression"); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "fireextensionevent", &_3, 511, &_2$$4, &_1$$4); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "fireextensionevent", &_3, 509, &_2$$4, &_1$$4); zephir_check_call_status(); if (Z_TYPE_P(&exprCode) == IS_STRING) { break; @@ -2141,7 +2141,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { ZEPHIR_INIT_NVAR(&singleExpr); ZVAL_COPY(&singleExpr, _4$$6); zephir_array_fetch_string(&_6$$7, &singleExpr, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1219 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 508, &_6$$7); + ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 506, &_6$$7); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&name); if (zephir_array_isset_string_fetch(&name, &singleExpr, SL("name"), 0)) { @@ -2164,7 +2164,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { ZEPHIR_CALL_METHOD(&singleExpr, &expr, "current", NULL, 0); zephir_check_call_status(); zephir_array_fetch_string(&_9$$10, &singleExpr, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1219 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 508, &_9$$10); + ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 506, &_9$$10); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&name); if (zephir_array_isset_string_fetch(&name, &singleExpr, SL("name"), 0)) { @@ -2190,7 +2190,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } ZEPHIR_OBS_NVAR(&left); if (zephir_array_isset_string_fetch(&left, &expr, SL("left"), 0)) { - ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_7, 508, &left); + ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_7, 506, &left); zephir_check_call_status(); } if (ZEPHIR_IS_LONG(&type, 311)) { @@ -2201,13 +2201,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } if (ZEPHIR_IS_LONG(&type, 124)) { zephir_array_fetch_string(&_14$$16, &expr, SL("right"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1266 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "resolvefilter", &_15, 0, &_14$$16, &leftCode); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "resolvefilter", &_15, 510, &_14$$16, &leftCode); zephir_check_call_status(); break; } ZEPHIR_OBS_NVAR(&right); if (zephir_array_isset_string_fetch(&right, &expr, SL("right"), 0)) { - ZEPHIR_CALL_METHOD(&rightCode, this_ptr, "expression", &_7, 508, &right); + ZEPHIR_CALL_METHOD(&rightCode, this_ptr, "expression", &_7, 506, &right); zephir_check_call_status(); } ZEPHIR_INIT_NVAR(&exprCode); @@ -2383,7 +2383,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { if (ZEPHIR_IS_LONG(&type, 365)) { ZEPHIR_OBS_NVAR(&start); if (zephir_array_isset_string_fetch(&start, &expr, SL("start"), 0)) { - ZEPHIR_CALL_METHOD(&startCode, this_ptr, "expression", &_7, 508, &start); + ZEPHIR_CALL_METHOD(&startCode, this_ptr, "expression", &_7, 506, &start); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(&startCode); @@ -2391,7 +2391,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } ZEPHIR_OBS_NVAR(&end); if (zephir_array_isset_string_fetch(&end, &expr, SL("end"), 0)) { - ZEPHIR_CALL_METHOD(&endCode, this_ptr, "expression", &_7, 508, &end); + ZEPHIR_CALL_METHOD(&endCode, this_ptr, "expression", &_7, 506, &end); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(&endCode); @@ -2483,7 +2483,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } if (ZEPHIR_IS_LONG(&type, 366)) { zephir_array_fetch_string(&_23$$72, &expr, SL("ternary"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1500 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_22$$72, this_ptr, "expression", &_7, 508, &_23$$72); + ZEPHIR_CALL_METHOD(&_22$$72, this_ptr, "expression", &_7, 506, &_23$$72); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&exprCode); ZEPHIR_CONCAT_SVSVSVS(&exprCode, "(", &_22$$72, " ? ", &leftCode, " : ", &rightCode, ")"); @@ -2510,7 +2510,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { zephir_array_fetch_string(&_26$$76, &expr, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1518 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_27$$76); ZEPHIR_CONCAT_SVSVSV(&_27$$76, "Unknown expression ", &type, " in ", &_25$$76, " on line ", &_26$$76); - ZEPHIR_CALL_METHOD(NULL, &_24$$76, "__construct", &_28, 509, &_27$$76); + ZEPHIR_CALL_METHOD(NULL, &_24$$76, "__construct", &_28, 507, &_27$$76); zephir_check_call_status(); zephir_throw_exception_debug(&_24$$76, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1518 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -2703,7 +2703,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { ZVAL_NULL(&funcArguments); ZEPHIR_OBS_NVAR(&funcArguments); if (zephir_array_isset_string_fetch(&funcArguments, &expr, SL("arguments"), 0)) { - ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 508, &funcArguments); + ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 506, &funcArguments); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(&arguments); @@ -2726,7 +2726,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { zephir_array_fast_append(&_1$$6, &funcArguments); ZEPHIR_INIT_VAR(&_2$$6); ZVAL_STRING(&_2$$6, "compileFunction"); - ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 511, &_2$$6, &_1$$6); + ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 509, &_2$$6, &_1$$6); zephir_check_call_status(); if (Z_TYPE_P(&code) == IS_STRING) { RETURN_CCTOR(&code); @@ -2758,7 +2758,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { zephir_array_fetch_string(&_6$$9, &expr, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1645 TSRMLS_CC); ZEPHIR_INIT_VAR(&_7$$9); ZEPHIR_CONCAT_SVSVSV(&_7$$9, "Invalid definition for user function '", &name, "' in ", &_5$$9, " on line ", &_6$$9); - ZEPHIR_CALL_METHOD(NULL, &_4$$9, "__construct", NULL, 509, &_7$$9); + ZEPHIR_CALL_METHOD(NULL, &_4$$9, "__construct", NULL, 507, &_7$$9); zephir_check_call_status(); zephir_throw_exception_debug(&_4$$9, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1645 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -2787,7 +2787,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { zephir_read_property(&_11$$17, this_ptr, SL("exprLevel"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&exprLevel, &_11$$17); if (Z_TYPE_P(&block) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&code, this_ptr, "statementlistorextends", NULL, 0, &block); + ZEPHIR_CALL_METHOD(&code, this_ptr, "statementlistorextends", NULL, 511, &block); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&exprLevel, 1)) { ZEPHIR_CPY_WRT(&escapedCode, &code); @@ -2876,7 +2876,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { ZEPHIR_CONCAT_SVSVS(return_value, "$this->callMacro('", &name, "', [", &arguments, "])"); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_14, this_ptr, "expression", NULL, 508, &nameExpr); + ZEPHIR_CALL_METHOD(&_14, this_ptr, "expression", NULL, 506, &nameExpr); zephir_check_call_status(); ZEPHIR_CONCAT_VSVS(return_value, &_14, "(", &arguments, ")"); RETURN_MM(); @@ -3177,28 +3177,28 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveTest) { if (zephir_array_isset_string_fetch(&name, &testName, SL("value"), 0)) { if (ZEPHIR_IS_STRING(&name, "divisibleby")) { zephir_array_fetch_string(&_1$$12, &test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2036 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0$$12, this_ptr, "expression", NULL, 508, &_1$$12); + ZEPHIR_CALL_METHOD(&_0$$12, this_ptr, "expression", NULL, 506, &_1$$12); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "(((", &left, ") % (", &_0$$12, ")) == 0)"); RETURN_MM(); } if (ZEPHIR_IS_STRING(&name, "sameas")) { zephir_array_fetch_string(&_3$$13, &test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2043 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_2$$13, this_ptr, "expression", NULL, 508, &_3$$13); + ZEPHIR_CALL_METHOD(&_2$$13, this_ptr, "expression", NULL, 506, &_3$$13); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "(", &left, ") === (", &_2$$13, ")"); RETURN_MM(); } if (ZEPHIR_IS_STRING(&name, "type")) { zephir_array_fetch_string(&_5$$14, &test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2050 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_4$$14, this_ptr, "expression", NULL, 508, &_5$$14); + ZEPHIR_CALL_METHOD(&_4$$14, this_ptr, "expression", NULL, 506, &_5$$14); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "gettype(", &left, ") === (", &_4$$14, ")"); RETURN_MM(); } } } - ZEPHIR_CALL_METHOD(&_6, this_ptr, "expression", NULL, 508, &test); + ZEPHIR_CALL_METHOD(&_6, this_ptr, "expression", NULL, 506, &test); zephir_check_call_status(); ZEPHIR_CONCAT_VSV(return_value, &left, " == ", &_6); RETURN_MM(); @@ -3392,7 +3392,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSource) { } else { ZVAL_BOOL(&_0, 0); } - ZEPHIR_CALL_METHOD(&compilation, this_ptr, "statementlist", NULL, 510, &intermediate, &_0); + ZEPHIR_CALL_METHOD(&compilation, this_ptr, "statementlist", NULL, 508, &intermediate, &_0); zephir_check_call_status(); zephir_read_property(&_1, this_ptr, SL("extended"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&extended, &_1); @@ -3424,11 +3424,11 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSource) { ZEPHIR_OBS_NVAR(&localBlock); zephir_array_fetch(&localBlock, &blocks, &name, PH_NOISY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2165 TSRMLS_CC); zephir_update_property_zval(this_ptr, SL("currentBlock"), &name); - ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 510, &localBlock); + ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 508, &localBlock); zephir_check_call_status(); } else { if (Z_TYPE_P(&block) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 510, &block); + ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 508, &block); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&blockCompilation, &block); @@ -3465,11 +3465,11 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSource) { ZEPHIR_OBS_NVAR(&localBlock); zephir_array_fetch(&localBlock, &blocks, &name, PH_NOISY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2165 TSRMLS_CC); zephir_update_property_zval(this_ptr, SL("currentBlock"), &name); - ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 510, &localBlock); + ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 508, &localBlock); zephir_check_call_status(); } else { if (Z_TYPE_P(&block) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 510, &block); + ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 508, &block); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&blockCompilation, &block); @@ -3647,7 +3647,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fetch_string(&_2$$5, &filter, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2263 TSRMLS_CC); ZEPHIR_INIT_VAR(&_3$$5); ZEPHIR_CONCAT_SVSV(&_3$$5, "Unknown filter type in ", &_1$$5, " on line ", &_2$$5); - ZEPHIR_CALL_METHOD(NULL, &_0$$5, "__construct", NULL, 509, &_3$$5); + ZEPHIR_CALL_METHOD(NULL, &_0$$5, "__construct", NULL, 507, &_3$$5); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$5, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2263 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -3685,7 +3685,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { ZEPHIR_UNREF(&funcArguments); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 508, &funcArguments); + ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 506, &funcArguments); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&arguments, &left); @@ -3700,7 +3700,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fast_append(&_7$$9, &funcArguments); ZEPHIR_INIT_VAR(&_8$$9); ZVAL_STRING(&_8$$9, "compileFilter"); - ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 511, &_8$$9, &_7$$9); + ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 509, &_8$$9, &_7$$9); zephir_check_call_status(); if (Z_TYPE_P(&code) == IS_STRING) { RETURN_CCTOR(&code); @@ -3731,7 +3731,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fetch_string(&_12$$11, &filter, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2357 TSRMLS_CC); ZEPHIR_INIT_VAR(&_13$$11); ZEPHIR_CONCAT_SVSVSV(&_13$$11, "Invalid definition for user filter '", &name, "' in ", &_11$$11, " on line ", &_12$$11); - ZEPHIR_CALL_METHOD(NULL, &_10$$11, "__construct", NULL, 509, &_13$$11); + ZEPHIR_CALL_METHOD(NULL, &_10$$11, "__construct", NULL, 507, &_13$$11); zephir_check_call_status(); zephir_throw_exception_debug(&_10$$11, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2357 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -3859,7 +3859,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fetch_string(&_19, &filter, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2551 TSRMLS_CC); ZEPHIR_INIT_VAR(&_20); ZEPHIR_CONCAT_SVSVSV(&_20, "Unknown filter \"", &name, "\" in ", &_18, " on line ", &_19); - ZEPHIR_CALL_METHOD(NULL, &_17, "__construct", NULL, 509, &_20); + ZEPHIR_CALL_METHOD(NULL, &_17, "__construct", NULL, 507, &_20); zephir_check_call_status(); zephir_throw_exception_debug(&_17, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2551 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -4027,7 +4027,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { zephir_array_fetch_string(&_6$$7, &statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2599 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_7$$7); ZEPHIR_CONCAT_SVSV(&_7$$7, "Invalid statement in ", &_5$$7, " on line ", &_6$$7); - ZEPHIR_CALL_METHOD(NULL, &_4$$7, "__construct", &_8, 509, &_7$$7, &statement); + ZEPHIR_CALL_METHOD(NULL, &_4$$7, "__construct", &_8, 507, &_7$$7, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_4$$7, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2601 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -4039,7 +4039,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { zephir_array_fast_append(&_9$$8, &statement); ZEPHIR_INIT_NVAR(&_10$$8); ZVAL_STRING(&_10$$8, "compileStatement"); - ZEPHIR_CALL_METHOD(&tempCompilation, this_ptr, "fireextensionevent", &_11, 511, &_10$$8, &_9$$8); + ZEPHIR_CALL_METHOD(&tempCompilation, this_ptr, "fireextensionevent", &_11, 509, &_10$$8, &_9$$8); zephir_check_call_status(); if (Z_TYPE_P(&tempCompilation) == IS_STRING) { zephir_concat_self(&compilation, &tempCompilation TSRMLS_CC); @@ -4144,7 +4144,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { } else { ZVAL_BOOL(&_34$$24, 0); } - ZEPHIR_CALL_METHOD(&_33$$24, this_ptr, "statementlist", &_35, 510, &blockStatements, &_34$$24); + ZEPHIR_CALL_METHOD(&_33$$24, this_ptr, "statementlist", &_35, 508, &blockStatements, &_34$$24); zephir_check_call_status(); zephir_concat_self(&compilation, &_33$$24 TSRMLS_CC); } @@ -4265,7 +4265,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { zephir_array_fetch_string(&_61$$38, &statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2839 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_62$$38); ZEPHIR_CONCAT_SVSVSV(&_62$$38, "Unknown statement ", &type, " in ", &_60$$38, " on line ", &_61$$38); - ZEPHIR_CALL_METHOD(NULL, &_59$$38, "__construct", &_8, 509, &_62$$38); + ZEPHIR_CALL_METHOD(NULL, &_59$$38, "__construct", &_8, 507, &_62$$38); zephir_check_call_status(); zephir_throw_exception_debug(&_59$$38, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2839 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -4295,7 +4295,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { zephir_array_fetch_string(&_65$$41, &statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2599 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_66$$41); ZEPHIR_CONCAT_SVSV(&_66$$41, "Invalid statement in ", &_64$$41, " on line ", &_65$$41); - ZEPHIR_CALL_METHOD(NULL, &_63$$41, "__construct", &_8, 509, &_66$$41, &statement); + ZEPHIR_CALL_METHOD(NULL, &_63$$41, "__construct", &_8, 507, &_66$$41, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_63$$41, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2601 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -4307,7 +4307,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { zephir_array_fast_append(&_67$$42, &statement); ZEPHIR_INIT_NVAR(&_68$$42); ZVAL_STRING(&_68$$42, "compileStatement"); - ZEPHIR_CALL_METHOD(&tempCompilation, this_ptr, "fireextensionevent", &_11, 511, &_68$$42, &_67$$42); + ZEPHIR_CALL_METHOD(&tempCompilation, this_ptr, "fireextensionevent", &_11, 509, &_68$$42, &_67$$42); zephir_check_call_status(); if (Z_TYPE_P(&tempCompilation) == IS_STRING) { zephir_concat_self(&compilation, &tempCompilation TSRMLS_CC); @@ -4412,7 +4412,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { } else { ZVAL_BOOL(&_84$$58, 0); } - ZEPHIR_CALL_METHOD(&_83$$58, this_ptr, "statementlist", &_35, 510, &blockStatements, &_84$$58); + ZEPHIR_CALL_METHOD(&_83$$58, this_ptr, "statementlist", &_35, 508, &blockStatements, &_84$$58); zephir_check_call_status(); zephir_concat_self(&compilation, &_83$$58 TSRMLS_CC); } @@ -4533,7 +4533,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { zephir_array_fetch_string(&_101$$72, &statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2839 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_102$$72); ZEPHIR_CONCAT_SVSVSV(&_102$$72, "Unknown statement ", &type, " in ", &_100$$72, " on line ", &_101$$72); - ZEPHIR_CALL_METHOD(NULL, &_99$$72, "__construct", &_8, 509, &_102$$72); + ZEPHIR_CALL_METHOD(NULL, &_99$$72, "__construct", &_8, 507, &_102$$72); zephir_check_call_status(); zephir_throw_exception_debug(&_99$$72, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2839 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -4621,7 +4621,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementListOrExtends) { ZEPHIR_INIT_NVAR(&statement); } if (isStatementList) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "statementlist", NULL, 510, statements); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "statementlist", NULL, 508, statements); zephir_check_call_status(); RETURN_MM(); } diff --git a/ext/phalcon/mvc/view/simple.zep.c b/ext/phalcon/mvc/view/simple.zep.c index 753918ea07c..20cec2bb7ce 100644 --- a/ext/phalcon/mvc/view/simple.zep.c +++ b/ext/phalcon/mvc/view/simple.zep.c @@ -349,7 +349,7 @@ PHP_METHOD(Phalcon_Mvc_View_Simple, partial) { } - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 391); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 393); zephir_check_call_status(); if (Z_TYPE_P(params) == IS_ARRAY) { zephir_read_property(&_0$$3, this_ptr, SL("viewParams"), PH_NOISY_CC | PH_READONLY); @@ -451,7 +451,7 @@ PHP_METHOD(Phalcon_Mvc_View_Simple, render) { ZEPHIR_INIT_VAR(&_0); ZEPHIR_CREATE_SYMBOL_TABLE(); - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 391); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 393); zephir_check_call_status(); zephir_read_property(&_1, this_ptr, SL("viewParams"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&viewParams, &_1); @@ -712,7 +712,7 @@ PHP_METHOD(Phalcon_Mvc_View_Simple, loadTemplateEngines) { if (Z_TYPE_P(®isteredEngines) != IS_ARRAY) { ZEPHIR_INIT_VAR(&_2$$4); object_init_ex(&_2$$4, phalcon_mvc_view_engine_php_ce); - ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 500, this_ptr, &di); + ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 498, this_ptr, &di); zephir_check_call_status(); zephir_array_update_string(&engines, SL(".phtml"), &_2$$4, PH_COPY | PH_SEPARATE); } else { diff --git a/ext/phalcon/security.zep.c b/ext/phalcon/security.zep.c index 20633e34070..2e42112b6b0 100644 --- a/ext/phalcon/security.zep.c +++ b/ext/phalcon/security.zep.c @@ -49,9 +49,7 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Security) { - ZEPHIR_REGISTER_CLASS(Phalcon, Security, phalcon, security, phalcon_security_method_entry, 0); - - zend_declare_property_null(phalcon_security_ce, SL("container"), ZEND_ACC_PROTECTED TSRMLS_CC); + ZEPHIR_REGISTER_CLASS_EX(Phalcon, Security, phalcon, security, phalcon_di_abstractinjectionaware_ce, phalcon_security_method_entry, 0); zend_declare_property_null(phalcon_security_ce, SL("defaultHash"), ZEND_ACC_PROTECTED TSRMLS_CC); @@ -71,6 +69,10 @@ ZEPHIR_INIT_CLASS(Phalcon_Security) { zend_declare_property_long(phalcon_security_ce, SL("workFactor"), 8, ZEND_ACC_PROTECTED TSRMLS_CC); + zend_declare_property_null(phalcon_security_ce, SL("localSession"), ZEND_ACC_PRIVATE TSRMLS_CC); + + zend_declare_property_null(phalcon_security_ce, SL("localRequest"), ZEND_ACC_PRIVATE TSRMLS_CC); + zephir_declare_class_constant_long(phalcon_security_ce, SL("CRYPT_DEFAULT"), 0); zephir_declare_class_constant_long(phalcon_security_ce, SL("CRYPT_BLOWFISH"), 4); @@ -91,7 +93,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Security) { zephir_declare_class_constant_long(phalcon_security_ce, SL("CRYPT_STD_DES"), 1); - zend_class_implements(phalcon_security_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); return SUCCESS; } @@ -126,14 +127,28 @@ PHP_METHOD(Phalcon_Security, getWorkFactor) { */ PHP_METHOD(Phalcon_Security, __construct) { - zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; + zval *session = NULL, session_sub, *request = NULL, request_sub, __$null, _0; zval *this_ptr = getThis(); + ZVAL_UNDEF(&session_sub); + ZVAL_UNDEF(&request_sub); + ZVAL_NULL(&__$null); ZVAL_UNDEF(&_0); ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 0, 2, &session, &request); + + if (!session) { + session = &session_sub; + session = &__$null; + } + if (!request) { + request = &request_sub; + request = &__$null; + } + ZEPHIR_INIT_VAR(&_0); object_init_ex(&_0, phalcon_security_random_ce); @@ -142,6 +157,8 @@ PHP_METHOD(Phalcon_Security, __construct) { zephir_check_call_status(); } zephir_update_property_zval(this_ptr, SL("random"), &_0); + zephir_update_property_zval(this_ptr, SL("localRequest"), request); + zephir_update_property_zval(this_ptr, SL("localSession"), session); ZEPHIR_MM_RESTORE(); } @@ -213,28 +230,20 @@ PHP_METHOD(Phalcon_Security, checkToken) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; - zephir_fcall_cache_entry *_3 = NULL; - zend_bool destroyIfValid, _9; - zval *tokenKey = NULL, tokenKey_sub, *tokenValue = NULL, tokenValue_sub, *destroyIfValid_param = NULL, __$null, container, session, request, equals, userToken, knownToken, _0, _5, _6, _1$$3, _2$$3, _4$$3, _7$$4, _8$$6; + zend_bool destroyIfValid, _0, _3; + zval *tokenKey = NULL, tokenKey_sub, *tokenValue = NULL, tokenValue_sub, *destroyIfValid_param = NULL, __$null, session, request, equals, userToken, knownToken, _1$$3, _2$$5; zval *this_ptr = getThis(); ZVAL_UNDEF(&tokenKey_sub); ZVAL_UNDEF(&tokenValue_sub); ZVAL_NULL(&__$null); - ZVAL_UNDEF(&container); ZVAL_UNDEF(&session); ZVAL_UNDEF(&request); ZVAL_UNDEF(&equals); ZVAL_UNDEF(&userToken); ZVAL_UNDEF(&knownToken); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_5); - ZVAL_UNDEF(&_6); ZVAL_UNDEF(&_1$$3); - ZVAL_UNDEF(&_2$$3); - ZVAL_UNDEF(&_4$$3); - ZVAL_UNDEF(&_7$$4); - ZVAL_UNDEF(&_8$$6); + ZVAL_UNDEF(&_2$$5); ZEPHIR_MM_GROW(); zephir_fetch_params(1, 0, 3, &tokenKey, &tokenValue, &destroyIfValid_param); @@ -256,56 +265,43 @@ PHP_METHOD(Phalcon_Security, checkToken) { } - zephir_read_property(&_0, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CPY_WRT(&container, &_0); - if (UNEXPECTED(Z_TYPE_P(&container) != IS_OBJECT)) { - ZEPHIR_INIT_VAR(&_1$$3); - object_init_ex(&_1$$3, phalcon_security_exception_ce); - ZEPHIR_INIT_VAR(&_4$$3); - ZVAL_STRING(&_4$$3, "the 'session' service"); - ZEPHIR_CALL_CE_STATIC(&_2$$3, phalcon_security_exception_ce, "containerservicenotfound", &_3, 0, &_4$$3); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 5, &_2$$3); - zephir_check_call_status(); - zephir_throw_exception_debug(&_1$$3, "phalcon/Security.zep", 111 TSRMLS_CC); - ZEPHIR_MM_RESTORE(); - return; - } - ZEPHIR_INIT_VAR(&_6); - ZVAL_STRING(&_6, "session"); - ZEPHIR_CALL_METHOD(&_5, &container, "getshared", NULL, 0, &_6); + ZEPHIR_CALL_METHOD(&session, this_ptr, "getlocalsession", NULL, 0); zephir_check_call_status(); - ZEPHIR_CPY_WRT(&session, &_5); - if (!(zephir_is_true(tokenKey))) { - zephir_read_property(&_7$$4, this_ptr, SL("tokenKeySessionId"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(tokenKey, &session, "get", NULL, 0, &_7$$4); + _0 = zephir_is_true(&session); + if (_0) { + _0 = !zephir_is_true(tokenKey); + } + if (EXPECTED(_0)) { + zephir_read_property(&_1$$3, this_ptr, SL("tokenKeySessionId"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CALL_METHOD(tokenKey, &session, "get", NULL, 0, &_1$$3); zephir_check_call_status(); } if (!(zephir_is_true(tokenKey))) { RETURN_MM_BOOL(0); } if (!(zephir_is_true(tokenValue))) { - ZEPHIR_INIT_VAR(&_8$$6); - ZVAL_STRING(&_8$$6, "request"); - ZEPHIR_CALL_METHOD(&request, &container, "getshared", NULL, 0, &_8$$6); + ZEPHIR_CALL_METHOD(&request, this_ptr, "getlocalrequest", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_NVAR(&_8$$6); - ZVAL_STRING(&_8$$6, "string"); - ZEPHIR_CALL_METHOD(&userToken, &request, "getpost", NULL, 0, tokenKey, &_8$$6); + ZEPHIR_INIT_VAR(&_2$$5); + ZVAL_STRING(&_2$$5, "string"); + ZEPHIR_CALL_METHOD(&userToken, &request, "getpost", NULL, 0, tokenKey, &_2$$5); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&userToken, tokenValue); } ZEPHIR_CALL_METHOD(&knownToken, this_ptr, "getrequesttoken", NULL, 0); zephir_check_call_status(); + if (Z_TYPE_P(&knownToken) == IS_NULL) { + RETURN_MM_BOOL(0); + } ZEPHIR_INIT_VAR(&equals); ZEPHIR_INIT_NVAR(&equals); ZVAL_BOOL(&equals, zephir_hash_equals(&knownToken, &userToken)); - _9 = zephir_is_true(&equals); - if (_9) { - _9 = destroyIfValid; + _3 = zephir_is_true(&equals); + if (_3) { + _3 = destroyIfValid; } - if (_9) { + if (_3) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "destroytoken", NULL, 0); zephir_check_call_status(); } @@ -359,7 +355,7 @@ PHP_METHOD(Phalcon_Security, computeHmac) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 5, &_3$$3); zephir_check_call_status(); - zephir_throw_exception_debug(&_1$$3, "phalcon/Security.zep", 172 TSRMLS_CC); + zephir_throw_exception_debug(&_1$$3, "phalcon/Security.zep", 173 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -373,50 +369,27 @@ PHP_METHOD(Phalcon_Security, computeHmac) { PHP_METHOD(Phalcon_Security, destroyToken) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval __$null, container, session, _0, _5, _6, _7, _1$$3, _2$$3, _4$$3; + zval __$null, session, _0$$3, _1$$3; zend_long ZEPHIR_LAST_CALL_STATUS; - zephir_fcall_cache_entry *_3 = NULL; zval *this_ptr = getThis(); ZVAL_NULL(&__$null); - ZVAL_UNDEF(&container); ZVAL_UNDEF(&session); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_5); - ZVAL_UNDEF(&_6); - ZVAL_UNDEF(&_7); + ZVAL_UNDEF(&_0$$3); ZVAL_UNDEF(&_1$$3); - ZVAL_UNDEF(&_2$$3); - ZVAL_UNDEF(&_4$$3); ZEPHIR_MM_GROW(); - zephir_read_property(&_0, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CPY_WRT(&container, &_0); - if (UNEXPECTED(Z_TYPE_P(&container) != IS_OBJECT)) { - ZEPHIR_INIT_VAR(&_1$$3); - object_init_ex(&_1$$3, phalcon_security_exception_ce); - ZEPHIR_INIT_VAR(&_4$$3); - ZVAL_STRING(&_4$$3, "the 'session' service"); - ZEPHIR_CALL_CE_STATIC(&_2$$3, phalcon_security_exception_ce, "containerservicenotfound", &_3, 0, &_4$$3); + ZEPHIR_CALL_METHOD(&session, this_ptr, "getlocalsession", NULL, 0); + zephir_check_call_status(); + if (UNEXPECTED(zephir_is_true(&session))) { + zephir_read_property(&_0$$3, this_ptr, SL("tokenKeySessionId"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CALL_METHOD(NULL, &session, "remove", NULL, 0, &_0$$3); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 5, &_2$$3); + zephir_read_property(&_1$$3, this_ptr, SL("tokenValueSessionId"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CALL_METHOD(NULL, &session, "remove", NULL, 0, &_1$$3); zephir_check_call_status(); - zephir_throw_exception_debug(&_1$$3, "phalcon/Security.zep", 190 TSRMLS_CC); - ZEPHIR_MM_RESTORE(); - return; } - ZEPHIR_INIT_VAR(&_6); - ZVAL_STRING(&_6, "session"); - ZEPHIR_CALL_METHOD(&_5, &container, "getshared", NULL, 0, &_6); - zephir_check_call_status(); - ZEPHIR_CPY_WRT(&session, &_5); - zephir_read_property(&_0, this_ptr, SL("tokenKeySessionId"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(NULL, &session, "remove", NULL, 0, &_0); - zephir_check_call_status(); - zephir_read_property(&_7, this_ptr, SL("tokenValueSessionId"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(NULL, &session, "remove", NULL, 0, &_7); - zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("token"), &__$null); zephir_update_property_zval(this_ptr, SL("tokenKey"), &__$null); zephir_update_property_zval(this_ptr, SL("requestToken"), &__$null); @@ -436,18 +409,6 @@ PHP_METHOD(Phalcon_Security, getDefaultHash) { } -/** - * Returns the internal dependency injector - */ -PHP_METHOD(Phalcon_Security, getDI) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "container"); - -} - /** * Returns a secure random number generator instance */ @@ -502,47 +463,25 @@ PHP_METHOD(Phalcon_Security, getRequestToken) { */ PHP_METHOD(Phalcon_Security, getSessionToken) { - zval container, session, _0, _5, _6, _1$$3, _2$$3, _4$$3; + zval session, _0$$3; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; - zephir_fcall_cache_entry *_3 = NULL; zval *this_ptr = getThis(); - ZVAL_UNDEF(&container); ZVAL_UNDEF(&session); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_5); - ZVAL_UNDEF(&_6); - ZVAL_UNDEF(&_1$$3); - ZVAL_UNDEF(&_2$$3); - ZVAL_UNDEF(&_4$$3); + ZVAL_UNDEF(&_0$$3); ZEPHIR_MM_GROW(); - zephir_read_property(&_0, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CPY_WRT(&container, &_0); - if (UNEXPECTED(Z_TYPE_P(&container) != IS_OBJECT)) { - ZEPHIR_INIT_VAR(&_1$$3); - object_init_ex(&_1$$3, phalcon_security_exception_ce); - ZEPHIR_INIT_VAR(&_4$$3); - ZVAL_STRING(&_4$$3, "the 'session' service"); - ZEPHIR_CALL_CE_STATIC(&_2$$3, phalcon_security_exception_ce, "containerservicenotfound", &_3, 0, &_4$$3); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 5, &_2$$3); + ZEPHIR_CALL_METHOD(&session, this_ptr, "getlocalsession", NULL, 0); + zephir_check_call_status(); + if (UNEXPECTED(zephir_is_true(&session))) { + zephir_read_property(&_0$$3, this_ptr, SL("tokenValueSessionId"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_RETURN_CALL_METHOD(&session, "get", NULL, 0, &_0$$3); zephir_check_call_status(); - zephir_throw_exception_debug(&_1$$3, "phalcon/Security.zep", 262 TSRMLS_CC); - ZEPHIR_MM_RESTORE(); - return; + RETURN_MM(); } - ZEPHIR_INIT_VAR(&_6); - ZVAL_STRING(&_6, "session"); - ZEPHIR_CALL_METHOD(&_5, &container, "getshared", NULL, 0, &_6); - zephir_check_call_status(); - ZEPHIR_CPY_WRT(&session, &_5); - zephir_read_property(&_0, this_ptr, SL("tokenValueSessionId"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_RETURN_CALL_METHOD(&session, "get", NULL, 0, &_0); - zephir_check_call_status(); - RETURN_MM(); + RETURN_MM_NULL(); } @@ -601,26 +540,19 @@ PHP_METHOD(Phalcon_Security, getSaltBytes) { */ PHP_METHOD(Phalcon_Security, getToken) { - zval container, session, _0, _1$$3, _2$$3, _3$$3, _4$$3, _5$$3, _10$$3, _11$$3, _12$$3, _6$$4, _7$$4, _9$$4; + zval session, _0, _1$$3, _2$$3, _3$$3, _4$$3, _5$$4, _6$$4; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zephir_fcall_cache_entry *_8 = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; zval *this_ptr = getThis(); - ZVAL_UNDEF(&container); ZVAL_UNDEF(&session); ZVAL_UNDEF(&_0); ZVAL_UNDEF(&_1$$3); ZVAL_UNDEF(&_2$$3); ZVAL_UNDEF(&_3$$3); ZVAL_UNDEF(&_4$$3); - ZVAL_UNDEF(&_5$$3); - ZVAL_UNDEF(&_10$$3); - ZVAL_UNDEF(&_11$$3); - ZVAL_UNDEF(&_12$$3); + ZVAL_UNDEF(&_5$$4); ZVAL_UNDEF(&_6$$4); - ZVAL_UNDEF(&_7$$4); - ZVAL_UNDEF(&_9$$4); ZEPHIR_MM_GROW(); @@ -634,30 +566,14 @@ PHP_METHOD(Phalcon_Security, getToken) { ZEPHIR_CALL_METHOD(&_3$$3, &_2$$3, "base64safe", NULL, 0, &_4$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("token"), &_3$$3); - zephir_read_property(&_5$$3, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CPY_WRT(&container, &_5$$3); - if (UNEXPECTED(Z_TYPE_P(&container) != IS_OBJECT)) { - ZEPHIR_INIT_VAR(&_6$$4); - object_init_ex(&_6$$4, phalcon_security_exception_ce); - ZEPHIR_INIT_VAR(&_9$$4); - ZVAL_STRING(&_9$$4, "the 'session' service"); - ZEPHIR_CALL_CE_STATIC(&_7$$4, phalcon_security_exception_ce, "containerservicenotfound", &_8, 0, &_9$$4); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_6$$4, "__construct", NULL, 5, &_7$$4); + ZEPHIR_CALL_METHOD(&session, this_ptr, "getlocalsession", NULL, 0); + zephir_check_call_status(); + if (UNEXPECTED(zephir_is_true(&session))) { + zephir_read_property(&_5$$4, this_ptr, SL("tokenValueSessionId"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_6$$4, this_ptr, SL("token"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CALL_METHOD(NULL, &session, "set", NULL, 0, &_5$$4, &_6$$4); zephir_check_call_status(); - zephir_throw_exception_debug(&_6$$4, "phalcon/Security.zep", 310 TSRMLS_CC); - ZEPHIR_MM_RESTORE(); - return; } - ZEPHIR_INIT_VAR(&_11$$3); - ZVAL_STRING(&_11$$3, "session"); - ZEPHIR_CALL_METHOD(&_10$$3, &container, "getshared", NULL, 0, &_11$$3); - zephir_check_call_status(); - ZEPHIR_CPY_WRT(&session, &_10$$3); - zephir_read_property(&_5$$3, this_ptr, SL("tokenValueSessionId"), PH_NOISY_CC | PH_READONLY); - zephir_read_property(&_12$$3, this_ptr, SL("token"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(NULL, &session, "set", NULL, 0, &_5$$3, &_12$$3); - zephir_check_call_status(); } RETURN_MM_MEMBER(getThis(), "token"); @@ -669,59 +585,36 @@ PHP_METHOD(Phalcon_Security, getToken) { */ PHP_METHOD(Phalcon_Security, getTokenKey) { - zval container, session, _0, _1$$3, _6$$3, _7$$3, _8$$3, _9$$3, _10$$3, _11$$3, _2$$4, _3$$4, _5$$4; + zval session, _0, _1$$4, _2$$4, _3$$4, _4$$4, _5$$4; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; - zephir_fcall_cache_entry *_4 = NULL; zval *this_ptr = getThis(); - ZVAL_UNDEF(&container); ZVAL_UNDEF(&session); ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1$$3); - ZVAL_UNDEF(&_6$$3); - ZVAL_UNDEF(&_7$$3); - ZVAL_UNDEF(&_8$$3); - ZVAL_UNDEF(&_9$$3); - ZVAL_UNDEF(&_10$$3); - ZVAL_UNDEF(&_11$$3); + ZVAL_UNDEF(&_1$$4); ZVAL_UNDEF(&_2$$4); ZVAL_UNDEF(&_3$$4); + ZVAL_UNDEF(&_4$$4); ZVAL_UNDEF(&_5$$4); ZEPHIR_MM_GROW(); zephir_read_property(&_0, this_ptr, SL("tokenKey"), PH_NOISY_CC | PH_READONLY); if (Z_TYPE_P(&_0) == IS_NULL) { - zephir_read_property(&_1$$3, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CPY_WRT(&container, &_1$$3); - if (UNEXPECTED(Z_TYPE_P(&container) != IS_OBJECT)) { - ZEPHIR_INIT_VAR(&_2$$4); - object_init_ex(&_2$$4, phalcon_security_exception_ce); - ZEPHIR_INIT_VAR(&_5$$4); - ZVAL_STRING(&_5$$4, "the 'session' service"); - ZEPHIR_CALL_CE_STATIC(&_3$$4, phalcon_security_exception_ce, "containerservicenotfound", &_4, 0, &_5$$4); + ZEPHIR_CALL_METHOD(&session, this_ptr, "getlocalsession", NULL, 0); + zephir_check_call_status(); + if (UNEXPECTED(zephir_is_true(&session))) { + zephir_read_property(&_1$$4, this_ptr, SL("random"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_3$$4, this_ptr, SL("numberBytes"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CALL_METHOD(&_2$$4, &_1$$4, "base64safe", NULL, 0, &_3$$4); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 5, &_3$$4); + zephir_update_property_zval(this_ptr, SL("tokenKey"), &_2$$4); + zephir_read_property(&_4$$4, this_ptr, SL("tokenKeySessionId"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_5$$4, this_ptr, SL("tokenKey"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CALL_METHOD(NULL, &session, "set", NULL, 0, &_4$$4, &_5$$4); zephir_check_call_status(); - zephir_throw_exception_debug(&_2$$4, "phalcon/Security.zep", 338 TSRMLS_CC); - ZEPHIR_MM_RESTORE(); - return; } - zephir_read_property(&_1$$3, this_ptr, SL("random"), PH_NOISY_CC | PH_READONLY); - zephir_read_property(&_7$$3, this_ptr, SL("numberBytes"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(&_6$$3, &_1$$3, "base64safe", NULL, 0, &_7$$3); - zephir_check_call_status(); - zephir_update_property_zval(this_ptr, SL("tokenKey"), &_6$$3); - ZEPHIR_INIT_VAR(&_9$$3); - ZVAL_STRING(&_9$$3, "session"); - ZEPHIR_CALL_METHOD(&_8$$3, &container, "getshared", NULL, 0, &_9$$3); - zephir_check_call_status(); - ZEPHIR_CPY_WRT(&session, &_8$$3); - zephir_read_property(&_10$$3, this_ptr, SL("tokenKeySessionId"), PH_NOISY_CC | PH_READONLY); - zephir_read_property(&_11$$3, this_ptr, SL("tokenKey"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(NULL, &session, "set", NULL, 0, &_10$$3, &_11$$3); - zephir_check_call_status(); } RETURN_MM_MEMBER(getThis(), "tokenKey"); @@ -822,7 +715,7 @@ PHP_METHOD(Phalcon_Security, hash) { zephir_check_call_status(); } if (UNEXPECTED(Z_TYPE_P(&saltBytes) != IS_STRING)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Unable to get random bytes for the salt", "phalcon/Security.zep", 420); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Unable to get random bytes for the salt", "phalcon/Security.zep", 391); return; } ZEPHIR_RETURN_CALL_FUNCTION("crypt", NULL, 0, &password, &saltBytes); @@ -841,7 +734,7 @@ PHP_METHOD(Phalcon_Security, hash) { ZEPHIR_CALL_METHOD(&saltBytes, this_ptr, "getsaltbytes", NULL, 0, &_5$$15); zephir_check_call_status(); if (UNEXPECTED(Z_TYPE_P(&saltBytes) != IS_STRING)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Unable to get random bytes for the salt", "phalcon/Security.zep", 439); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Unable to get random bytes for the salt", "phalcon/Security.zep", 410); return; } ZEPHIR_INIT_VAR(&_6$$15); @@ -854,7 +747,7 @@ PHP_METHOD(Phalcon_Security, hash) { ZEPHIR_CALL_METHOD(&saltBytes, this_ptr, "getsaltbytes", NULL, 0, &_7$$17); zephir_check_call_status(); if (UNEXPECTED(Z_TYPE_P(&saltBytes) != IS_STRING)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Unable to get random bytes for the salt", "phalcon/Security.zep", 468); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Unable to get random bytes for the salt", "phalcon/Security.zep", 439); return; } if (workFactor < 4) { @@ -923,24 +816,6 @@ PHP_METHOD(Phalcon_Security, setDefaultHash) { } -/** - * Sets the dependency injector - */ -PHP_METHOD(Phalcon_Security, setDI) { - - zval *container, container_sub; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&container_sub); - - zephir_fetch_params_without_memory_grow(1, 0, &container); - - - - zephir_update_property_zval(this_ptr, SL("container"), container); - -} - /** * Sets a number of bytes to be generated by the openssl pseudo random * generator @@ -969,3 +844,113 @@ PHP_METHOD(Phalcon_Security, setRandomBytes) { } +PHP_METHOD(Phalcon_Security, getLocalRequest) { + + zval container, _0, _1, _6, _7, _2$$4, _3$$4, _5$$4, _8$$5, _9$$5; + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; + zend_long ZEPHIR_LAST_CALL_STATUS; + zephir_fcall_cache_entry *_4 = NULL; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&container); + ZVAL_UNDEF(&_0); + ZVAL_UNDEF(&_1); + ZVAL_UNDEF(&_6); + ZVAL_UNDEF(&_7); + ZVAL_UNDEF(&_2$$4); + ZVAL_UNDEF(&_3$$4); + ZVAL_UNDEF(&_5$$4); + ZVAL_UNDEF(&_8$$5); + ZVAL_UNDEF(&_9$$5); + + ZEPHIR_MM_GROW(); + + zephir_read_property(&_0, this_ptr, SL("localRequest"), PH_NOISY_CC | PH_READONLY); + if (zephir_is_true(&_0)) { + RETURN_MM_MEMBER(getThis(), "localRequest"); + } + zephir_read_property(&_1, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CPY_WRT(&container, &_1); + if (UNEXPECTED(Z_TYPE_P(&container) != IS_OBJECT)) { + ZEPHIR_INIT_VAR(&_2$$4); + object_init_ex(&_2$$4, phalcon_security_exception_ce); + ZEPHIR_INIT_VAR(&_5$$4); + ZVAL_STRING(&_5$$4, "the 'request' service"); + ZEPHIR_CALL_CE_STATIC(&_3$$4, phalcon_security_exception_ce, "containerservicenotfound", &_4, 0, &_5$$4); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 5, &_3$$4); + zephir_check_call_status(); + zephir_throw_exception_debug(&_2$$4, "phalcon/Security.zep", 498 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); + return; + } + ZEPHIR_INIT_VAR(&_7); + ZVAL_STRING(&_7, "request"); + ZEPHIR_CALL_METHOD(&_6, &container, "has", NULL, 0, &_7); + zephir_check_call_status(); + if (UNEXPECTED(zephir_is_true(&_6))) { + ZEPHIR_INIT_VAR(&_9$$5); + ZVAL_STRING(&_9$$5, "request"); + ZEPHIR_CALL_METHOD(&_8$$5, &container, "getshared", NULL, 0, &_9$$5); + zephir_check_call_status(); + RETURN_CCTOR(&_8$$5); + } + RETURN_MM_NULL(); + +} + +PHP_METHOD(Phalcon_Security, getLocalSession) { + + zval container, _0, _1, _6, _7, _2$$4, _3$$4, _5$$4, _8$$5, _9$$5; + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; + zend_long ZEPHIR_LAST_CALL_STATUS; + zephir_fcall_cache_entry *_4 = NULL; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&container); + ZVAL_UNDEF(&_0); + ZVAL_UNDEF(&_1); + ZVAL_UNDEF(&_6); + ZVAL_UNDEF(&_7); + ZVAL_UNDEF(&_2$$4); + ZVAL_UNDEF(&_3$$4); + ZVAL_UNDEF(&_5$$4); + ZVAL_UNDEF(&_8$$5); + ZVAL_UNDEF(&_9$$5); + + ZEPHIR_MM_GROW(); + + zephir_read_property(&_0, this_ptr, SL("localSession"), PH_NOISY_CC | PH_READONLY); + if (zephir_is_true(&_0)) { + RETURN_MM_MEMBER(getThis(), "localSession"); + } + zephir_read_property(&_1, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CPY_WRT(&container, &_1); + if (UNEXPECTED(Z_TYPE_P(&container) != IS_OBJECT)) { + ZEPHIR_INIT_VAR(&_2$$4); + object_init_ex(&_2$$4, phalcon_security_exception_ce); + ZEPHIR_INIT_VAR(&_5$$4); + ZVAL_STRING(&_5$$4, "the 'session' service"); + ZEPHIR_CALL_CE_STATIC(&_3$$4, phalcon_security_exception_ce, "containerservicenotfound", &_4, 0, &_5$$4); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 5, &_3$$4); + zephir_check_call_status(); + zephir_throw_exception_debug(&_2$$4, "phalcon/Security.zep", 520 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); + return; + } + ZEPHIR_INIT_VAR(&_7); + ZVAL_STRING(&_7, "session"); + ZEPHIR_CALL_METHOD(&_6, &container, "has", NULL, 0, &_7); + zephir_check_call_status(); + if (UNEXPECTED(zephir_is_true(&_6))) { + ZEPHIR_INIT_VAR(&_9$$5); + ZVAL_STRING(&_9$$5, "session"); + ZEPHIR_CALL_METHOD(&_8$$5, &container, "getshared", NULL, 0, &_9$$5); + zephir_check_call_status(); + RETURN_CCTOR(&_8$$5); + } + RETURN_MM_NULL(); + +} + diff --git a/ext/phalcon/security.zep.h b/ext/phalcon/security.zep.h index d8cb169ce1e..252f62c768d 100644 --- a/ext/phalcon/security.zep.h +++ b/ext/phalcon/security.zep.h @@ -11,7 +11,6 @@ PHP_METHOD(Phalcon_Security, checkToken); PHP_METHOD(Phalcon_Security, computeHmac); PHP_METHOD(Phalcon_Security, destroyToken); PHP_METHOD(Phalcon_Security, getDefaultHash); -PHP_METHOD(Phalcon_Security, getDI); PHP_METHOD(Phalcon_Security, getRandom); PHP_METHOD(Phalcon_Security, getRandomBytes); PHP_METHOD(Phalcon_Security, getRequestToken); @@ -22,13 +21,19 @@ PHP_METHOD(Phalcon_Security, getTokenKey); PHP_METHOD(Phalcon_Security, hash); PHP_METHOD(Phalcon_Security, isLegacyHash); PHP_METHOD(Phalcon_Security, setDefaultHash); -PHP_METHOD(Phalcon_Security, setDI); PHP_METHOD(Phalcon_Security, setRandomBytes); +PHP_METHOD(Phalcon_Security, getLocalRequest); +PHP_METHOD(Phalcon_Security, getLocalSession); ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_security_setworkfactor, 0, 0, 1) ZEND_ARG_INFO(0, workFactor) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_security___construct, 0, 0, 0) + ZEND_ARG_OBJ_INFO(0, session, Phalcon\\Session\\ManagerInterface, 1) + ZEND_ARG_OBJ_INFO(0, request, Phalcon\\Http\\RequestInterface, 1) +ZEND_END_ARG_INFO() + #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_checkhash, 0, 2, _IS_BOOL, 0) #else @@ -106,13 +111,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getdefaulthash, #endif ZEND_END_ARG_INFO() -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_security_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) -#endif -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_security_getrandom, 0, 0, Phalcon\\Security\\Random, 0) #else @@ -128,16 +126,16 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getrandombytes, ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getrequesttoken, 0, 0, IS_STRING, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getrequesttoken, 0, 0, IS_STRING, 1) #else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getrequesttoken, 0, 0, IS_STRING, NULL, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getrequesttoken, 0, 0, IS_STRING, NULL, 1) #endif ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getsessiontoken, 0, 0, IS_STRING, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getsessiontoken, 0, 0, IS_STRING, 1) #else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getsessiontoken, 0, 0, IS_STRING, NULL, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getsessiontoken, 0, 0, IS_STRING, NULL, 1) #endif ZEND_END_ARG_INFO() @@ -208,10 +206,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_setdefaulthash, #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_security_setdi, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_security_setrandombytes, 0, 1, Phalcon\\Security, 0) #else @@ -224,16 +218,29 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_setrandombytes, #endif ZEND_END_ARG_INFO() +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_security_getlocalrequest, 0, 0, Phalcon\\Http\\RequestInterface, 1) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getlocalrequest, 0, 0, IS_OBJECT, "Phalcon\\Http\\RequestInterface", 1) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_security_getlocalsession, 0, 0, Phalcon\\Session\\ManagerInterface, 1) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_security_getlocalsession, 0, 0, IS_OBJECT, "Phalcon\\Session\\ManagerInterface", 1) +#endif +ZEND_END_ARG_INFO() + ZEPHIR_INIT_FUNCS(phalcon_security_method_entry) { PHP_ME(Phalcon_Security, setWorkFactor, arginfo_phalcon_security_setworkfactor, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security, getWorkFactor, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Security, __construct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Security, __construct, arginfo_phalcon_security___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) PHP_ME(Phalcon_Security, checkHash, arginfo_phalcon_security_checkhash, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security, checkToken, arginfo_phalcon_security_checktoken, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security, computeHmac, arginfo_phalcon_security_computehmac, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security, destroyToken, arginfo_phalcon_security_destroytoken, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security, getDefaultHash, arginfo_phalcon_security_getdefaulthash, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Security, getDI, arginfo_phalcon_security_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security, getRandom, arginfo_phalcon_security_getrandom, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security, getRandomBytes, arginfo_phalcon_security_getrandombytes, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security, getRequestToken, arginfo_phalcon_security_getrequesttoken, ZEND_ACC_PUBLIC) @@ -244,7 +251,8 @@ ZEPHIR_INIT_FUNCS(phalcon_security_method_entry) { PHP_ME(Phalcon_Security, hash, arginfo_phalcon_security_hash, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security, isLegacyHash, arginfo_phalcon_security_islegacyhash, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security, setDefaultHash, arginfo_phalcon_security_setdefaulthash, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Security, setDI, arginfo_phalcon_security_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Security, setRandomBytes, arginfo_phalcon_security_setrandombytes, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Security, getLocalRequest, arginfo_phalcon_security_getlocalrequest, ZEND_ACC_PRIVATE) + PHP_ME(Phalcon_Security, getLocalSession, arginfo_phalcon_security_getlocalsession, ZEND_ACC_PRIVATE) PHP_FE_END }; diff --git a/ext/phalcon/session/adapter/stream.zep.c b/ext/phalcon/session/adapter/stream.zep.c index 8c02c522e95..bfedaf17066 100644 --- a/ext/phalcon/session/adapter/stream.zep.c +++ b/ext/phalcon/session/adapter/stream.zep.c @@ -22,7 +22,6 @@ #include "ext/spl/spl_exceptions.h" #include "kernel/file.h" #include "kernel/time.h" -#include "kernel/string.h" /** @@ -111,7 +110,7 @@ PHP_METHOD(Phalcon_Session_Adapter_Stream, __construct) { ZEPHIR_INIT_VAR(&_4$$4); object_init_ex(&_4$$4, phalcon_session_exception_ce); ZEPHIR_INIT_VAR(&_5$$4); - ZEPHIR_CONCAT_SVS(&_5$$4, "The save_path [", &path, "]is not writeable"); + ZEPHIR_CONCAT_SVS(&_5$$4, "The session save path [", &path, "] is not writable"); ZEPHIR_CALL_METHOD(NULL, &_4$$4, "__construct", NULL, 5, &_5$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_4$$4, "phalcon/Session/Adapter/Stream.zep", 60 TSRMLS_CC); @@ -260,27 +259,24 @@ PHP_METHOD(Phalcon_Session_Adapter_Stream, gc) { } +/** + * Ignore the savePath and use local defined path + * + * @return bool + */ PHP_METHOD(Phalcon_Session_Adapter_Stream, open) { - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *savePath, savePath_sub, *sessionName, sessionName_sub, path; + zval *savePath, savePath_sub, *sessionName, sessionName_sub; zval *this_ptr = getThis(); ZVAL_UNDEF(&savePath_sub); ZVAL_UNDEF(&sessionName_sub); - ZVAL_UNDEF(&path); - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 2, 0, &savePath, &sessionName); + zephir_fetch_params_without_memory_grow(2, 0, &savePath, &sessionName); - if (1 != zephir_end_with_str(savePath, SL("/"))) { - ZEPHIR_INIT_VAR(&path); - ZEPHIR_CONCAT_VS(&path, savePath, "/"); - } - zephir_update_property_zval(this_ptr, SL("path"), &path); - RETURN_MM_BOOL(1); + RETURN_BOOL(1); } diff --git a/ext/phalcon/session/manager.zep.c b/ext/phalcon/session/manager.zep.c index b773a063135..09c0486a64e 100644 --- a/ext/phalcon/session/manager.zep.c +++ b/ext/phalcon/session/manager.zep.c @@ -38,12 +38,7 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Session_Manager) { - ZEPHIR_REGISTER_CLASS(Phalcon\\Session, Manager, phalcon, session_manager, phalcon_session_manager_method_entry, 0); - - /** - * @var - */ - zend_declare_property_null(phalcon_session_manager_ce, SL("container"), ZEND_ACC_PRIVATE TSRMLS_CC); + ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Session, Manager, phalcon, session_manager, phalcon_di_abstractinjectionaware_ce, phalcon_session_manager_method_entry, 0); /** * @var |null @@ -68,7 +63,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Session_Manager) { phalcon_session_manager_ce->create_object = zephir_init_properties_Phalcon_Session_Manager; zend_class_implements(phalcon_session_manager_ce TSRMLS_CC, 1, phalcon_session_managerinterface_ce); - zend_class_implements(phalcon_session_manager_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); return SUCCESS; } @@ -307,18 +301,6 @@ PHP_METHOD(Phalcon_Session_Manager, get) { } -/** - * Returns the DependencyInjector container - */ -PHP_METHOD(Phalcon_Session_Manager, getDI) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "container"); - -} - /** * Returns the stored session handler */ @@ -554,24 +536,6 @@ PHP_METHOD(Phalcon_Session_Manager, set) { } -/** - * Sets the DependencyInjector container - */ -PHP_METHOD(Phalcon_Session_Manager, setDI) { - - zval *container, container_sub; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&container_sub); - - zephir_fetch_params_without_memory_grow(1, 0, &container); - - - - zephir_update_property_zval(this_ptr, SL("container"), container); - -} - /** * Set the handler for the session */ @@ -620,9 +584,9 @@ PHP_METHOD(Phalcon_Session_Manager, setId) { object_init_ex(&_1$$3, spl_ce_RuntimeException); ZEPHIR_INIT_VAR(&_2$$3); ZEPHIR_CONCAT_SS(&_2$$3, "The session has already been started. ", "To change the id, use regenerateId()"); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 264, &_2$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 265, &_2$$3); zephir_check_call_status(); - zephir_throw_exception_debug(&_1$$3, "phalcon/Session/Manager.zep", 280 TSRMLS_CC); + zephir_throw_exception_debug(&_1$$3, "phalcon/Session/Manager.zep", 259 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -666,7 +630,7 @@ PHP_METHOD(Phalcon_Session_Manager, setName) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "exists", NULL, 0); zephir_check_call_status(); if (UNEXPECTED(zephir_is_true(&_0))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(spl_ce_InvalidArgumentException, "Cannot set session name after a session has started", "phalcon/Session/Manager.zep", 303); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(spl_ce_InvalidArgumentException, "Cannot set session name after a session has started", "phalcon/Session/Manager.zep", 282); return; } ZEPHIR_INIT_VAR(&_1); @@ -677,7 +641,7 @@ PHP_METHOD(Phalcon_Session_Manager, setName) { ZVAL_STRING(&_4, "/^[\\p{L}\\p{N}_-]+$/u"); zephir_preg_match(&_3, &_4, &name, &_1, 0, 0 , 0 TSRMLS_CC); if (UNEXPECTED(!zephir_is_true(&_3))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(spl_ce_InvalidArgumentException, "The name contains non alphanum characters", "phalcon/Session/Manager.zep", 309); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(spl_ce_InvalidArgumentException, "The name contains non alphanum characters", "phalcon/Session/Manager.zep", 288); return; } zephir_update_property_zval(this_ptr, SL("name"), &name); @@ -745,7 +709,7 @@ PHP_METHOD(Phalcon_Session_Manager, start) { if (ZEPHIR_IS_TRUE_IDENTICAL(&_0)) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_1, "headers_sent", NULL, 363); + ZEPHIR_CALL_FUNCTION(&_1, "headers_sent", NULL, 365); zephir_check_call_status(); if (ZEPHIR_IS_TRUE_IDENTICAL(&_1)) { RETURN_MM_BOOL(0); @@ -753,7 +717,7 @@ PHP_METHOD(Phalcon_Session_Manager, start) { ZEPHIR_OBS_VAR(&_2); zephir_read_property(&_2, this_ptr, SL("handler"), PH_NOISY_CC); if (UNEXPECTED(!(zephir_is_instance_of(&_2, SL("SessionHandlerInterface") TSRMLS_CC)))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_session_exception_ce, "The session handler is not valid", "phalcon/Session/Manager.zep", 349); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_session_exception_ce, "The session handler is not valid", "phalcon/Session/Manager.zep", 328); return; } zephir_read_property(&_3, this_ptr, SL("handler"), PH_NOISY_CC | PH_READONLY); diff --git a/ext/phalcon/session/manager.zep.h b/ext/phalcon/session/manager.zep.h index 2cd49fdea6e..cd9c575e5b9 100644 --- a/ext/phalcon/session/manager.zep.h +++ b/ext/phalcon/session/manager.zep.h @@ -11,7 +11,6 @@ PHP_METHOD(Phalcon_Session_Manager, __unset); PHP_METHOD(Phalcon_Session_Manager, destroy); PHP_METHOD(Phalcon_Session_Manager, exists); PHP_METHOD(Phalcon_Session_Manager, get); -PHP_METHOD(Phalcon_Session_Manager, getDI); PHP_METHOD(Phalcon_Session_Manager, getHandler); PHP_METHOD(Phalcon_Session_Manager, getId); PHP_METHOD(Phalcon_Session_Manager, getName); @@ -21,7 +20,6 @@ PHP_METHOD(Phalcon_Session_Manager, regenerateId); PHP_METHOD(Phalcon_Session_Manager, registerHandler); PHP_METHOD(Phalcon_Session_Manager, remove); PHP_METHOD(Phalcon_Session_Manager, set); -PHP_METHOD(Phalcon_Session_Manager, setDI); PHP_METHOD(Phalcon_Session_Manager, setHandler); PHP_METHOD(Phalcon_Session_Manager, setId); PHP_METHOD(Phalcon_Session_Manager, setName); @@ -93,13 +91,6 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_manager_get, 0, 0, 1) #endif ZEND_END_ARG_INFO() -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_session_manager_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_session_manager_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) -#endif -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_session_manager_gethandler, 0, 0, SessionHandlerInterface, 0) #else @@ -173,10 +164,6 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_manager_set, 0, 0, 2) ZEND_ARG_INFO(0, value) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_manager_setdi, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_session_manager_sethandler, 0, 1, Phalcon\\Session\\ManagerInterface, 0) #else @@ -248,7 +235,6 @@ ZEPHIR_INIT_FUNCS(phalcon_session_manager_method_entry) { PHP_ME(Phalcon_Session_Manager, destroy, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, exists, arginfo_phalcon_session_manager_exists, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, get, arginfo_phalcon_session_manager_get, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Session_Manager, getDI, arginfo_phalcon_session_manager_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, getHandler, arginfo_phalcon_session_manager_gethandler, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, getId, arginfo_phalcon_session_manager_getid, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, getName, arginfo_phalcon_session_manager_getname, ZEND_ACC_PUBLIC) @@ -258,7 +244,6 @@ ZEPHIR_INIT_FUNCS(phalcon_session_manager_method_entry) { PHP_ME(Phalcon_Session_Manager, registerHandler, arginfo_phalcon_session_manager_registerhandler, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, remove, arginfo_phalcon_session_manager_remove, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, set, arginfo_phalcon_session_manager_set, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Session_Manager, setDI, arginfo_phalcon_session_manager_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, setHandler, arginfo_phalcon_session_manager_sethandler, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, setId, arginfo_phalcon_session_manager_setid, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, setName, arginfo_phalcon_session_manager_setname, ZEND_ACC_PUBLIC) diff --git a/ext/phalcon/storage/adapter/abstractadapter.zep.c b/ext/phalcon/storage/adapter/abstractadapter.zep.c index 5e5cb98dbc2..ea58da80ade 100644 --- a/ext/phalcon/storage/adapter/abstractadapter.zep.c +++ b/ext/phalcon/storage/adapter/abstractadapter.zep.c @@ -412,7 +412,8 @@ PHP_METHOD(Phalcon_Storage_Adapter_AbstractAdapter, getUnserializedData) { */ PHP_METHOD(Phalcon_Storage_Adapter_AbstractAdapter, initSerializer) { - zval _0, _1, _2, _3; + zend_bool _1, _4; + zval _0, _2, _3, _5, _6$$4, _7$$4, _8$$4; zval className; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -420,24 +421,42 @@ PHP_METHOD(Phalcon_Storage_Adapter_AbstractAdapter, initSerializer) { ZVAL_UNDEF(&className); ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1); ZVAL_UNDEF(&_2); ZVAL_UNDEF(&_3); + ZVAL_UNDEF(&_5); + ZVAL_UNDEF(&_6$$4); + ZVAL_UNDEF(&_7$$4); + ZVAL_UNDEF(&_8$$4); ZEPHIR_MM_GROW(); - zephir_read_property(&_0, this_ptr, SL("serializerFactory"), PH_NOISY_CC | PH_READONLY); - if (UNEXPECTED(Z_TYPE_P(&_0) == IS_NULL)) { + zephir_read_property(&_0, this_ptr, SL("serializer"), PH_NOISY_CC | PH_READONLY); + _1 = Z_TYPE_P(&_0) == IS_NULL; + if (_1) { + zephir_read_property(&_2, this_ptr, SL("serializerFactory"), PH_NOISY_CC | PH_READONLY); + _1 = Z_TYPE_P(&_2) == IS_NULL; + } + if (UNEXPECTED(_1)) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_storage_exception_ce, "A valid serializer is required", "phalcon/Storage/Adapter/AbstractAdapter.zep", 196); return; } - zephir_read_property(&_1, this_ptr, SL("defaultSerializer"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_INIT_VAR(&className); - zephir_fast_strtolower(&className, &_1); - zephir_read_property(&_2, this_ptr, SL("serializerFactory"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(&_3, &_2, "newinstance", NULL, 0, &className); - zephir_check_call_status(); - zephir_update_property_zval(this_ptr, SL("serializer"), &_3); + ZEPHIR_OBS_VAR(&_3); + zephir_read_property(&_3, this_ptr, SL("serializer"), PH_NOISY_CC); + _4 = Z_TYPE_P(&_3) == IS_OBJECT; + if (_4) { + ZEPHIR_OBS_VAR(&_5); + zephir_read_property(&_5, this_ptr, SL("serializer"), PH_NOISY_CC); + _4 = zephir_instance_of_ev(&_5, phalcon_storage_serializer_serializerinterface_ce TSRMLS_CC); + } + if (!(_4)) { + zephir_read_property(&_6$$4, this_ptr, SL("defaultSerializer"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_INIT_VAR(&className); + zephir_fast_strtolower(&className, &_6$$4); + zephir_read_property(&_7$$4, this_ptr, SL("serializerFactory"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CALL_METHOD(&_8$$4, &_7$$4, "newinstance", NULL, 0, &className); + zephir_check_call_status(); + zephir_update_property_zval(this_ptr, SL("serializer"), &_8$$4); + } ZEPHIR_MM_RESTORE(); } diff --git a/ext/phalcon/storage/adapter/redis.zep.c b/ext/phalcon/storage/adapter/redis.zep.c index fd2e6de8551..7e6ec0fa15d 100644 --- a/ext/phalcon/storage/adapter/redis.zep.c +++ b/ext/phalcon/storage/adapter/redis.zep.c @@ -319,8 +319,8 @@ PHP_METHOD(Phalcon_Storage_Adapter_Redis, get) { */ PHP_METHOD(Phalcon_Storage_Adapter_Redis, getAdapter) { - zend_bool _4$$3, _6$$3; - zval auth, connection, host, index, method, options, persistent, port, result, _0, _1$$3, _5$$3, _7$$3, _8$$3, _9$$3, _2$$4, _3$$4; + zend_bool _6$$3, _8$$3; + zval auth, connection, host, index, options, port, result, persistent, persistentid, _0, _1$$3, _7$$3, _9$$3, _10$$3, _2$$4, _3$$5, _4$$6, _5$$6; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; zval *this_ptr = getThis(); @@ -329,19 +329,20 @@ PHP_METHOD(Phalcon_Storage_Adapter_Redis, getAdapter) { ZVAL_UNDEF(&connection); ZVAL_UNDEF(&host); ZVAL_UNDEF(&index); - ZVAL_UNDEF(&method); ZVAL_UNDEF(&options); - ZVAL_UNDEF(&persistent); ZVAL_UNDEF(&port); ZVAL_UNDEF(&result); + ZVAL_UNDEF(&persistent); + ZVAL_UNDEF(&persistentid); ZVAL_UNDEF(&_0); ZVAL_UNDEF(&_1$$3); - ZVAL_UNDEF(&_5$$3); ZVAL_UNDEF(&_7$$3); - ZVAL_UNDEF(&_8$$3); ZVAL_UNDEF(&_9$$3); + ZVAL_UNDEF(&_10$$3); ZVAL_UNDEF(&_2$$4); - ZVAL_UNDEF(&_3$$4); + ZVAL_UNDEF(&_3$$5); + ZVAL_UNDEF(&_4$$6); + ZVAL_UNDEF(&_5$$6); ZEPHIR_MM_GROW(); @@ -357,56 +358,57 @@ PHP_METHOD(Phalcon_Storage_Adapter_Redis, getAdapter) { zephir_array_fetch_string(&auth, &options, SL("auth"), PH_NOISY, "phalcon/Storage/Adapter/Redis.zep", 119 TSRMLS_CC); ZEPHIR_OBS_VAR(&host); zephir_array_fetch_string(&host, &options, SL("host"), PH_NOISY, "phalcon/Storage/Adapter/Redis.zep", 120 TSRMLS_CC); + ZEPHIR_OBS_VAR(&port); + zephir_array_fetch_string(&port, &options, SL("port"), PH_NOISY, "phalcon/Storage/Adapter/Redis.zep", 121 TSRMLS_CC); ZEPHIR_OBS_VAR(&index); - zephir_array_fetch_string(&index, &options, SL("index"), PH_NOISY, "phalcon/Storage/Adapter/Redis.zep", 121 TSRMLS_CC); + zephir_array_fetch_string(&index, &options, SL("index"), PH_NOISY, "phalcon/Storage/Adapter/Redis.zep", 122 TSRMLS_CC); ZEPHIR_OBS_VAR(&persistent); - zephir_array_fetch_string(&persistent, &options, SL("persistent"), PH_NOISY, "phalcon/Storage/Adapter/Redis.zep", 122 TSRMLS_CC); - ZEPHIR_OBS_VAR(&port); - zephir_array_fetch_string(&port, &options, SL("port"), PH_NOISY, "phalcon/Storage/Adapter/Redis.zep", 123 TSRMLS_CC); - if (zephir_is_true(&persistent)) { - ZEPHIR_INIT_VAR(&method); - ZVAL_STRING(&method, "pconnect"); + zephir_array_fetch_string(&persistent, &options, SL("persistent"), PH_NOISY, "phalcon/Storage/Adapter/Redis.zep", 123 TSRMLS_CC); + if (!(zephir_is_true(&persistent))) { + zephir_read_property(&_2$$4, this_ptr, SL("lifetime"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CALL_METHOD(&result, &connection, "connect", NULL, 0, &host, &port, &_2$$4); + zephir_check_call_status(); } else { - ZEPHIR_INIT_NVAR(&method); - ZVAL_STRING(&method, "connect"); + ZEPHIR_INIT_VAR(&persistentid); + ZEPHIR_CONCAT_SV(&persistentid, "persistentid_", &index); + zephir_read_property(&_3$$5, this_ptr, SL("lifetime"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CALL_METHOD(&result, &connection, "pconnect", NULL, 0, &host, &port, &_3$$5, &persistentid); + zephir_check_call_status(); } - zephir_read_property(&_1$$3, this_ptr, SL("lifetime"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD_ZVAL(&result, &connection, &method, NULL, 0, &host, &port, &_1$$3); - zephir_check_call_status(); if (!(zephir_is_true(&result))) { - ZEPHIR_INIT_VAR(&_2$$4); - object_init_ex(&_2$$4, phalcon_storage_exception_ce); - ZEPHIR_INIT_VAR(&_3$$4); - ZEPHIR_CONCAT_SVSVS(&_3$$4, "Could not connect to the Redisd server [", &host, ":", &port, "]"); - ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 5, &_3$$4); + ZEPHIR_INIT_VAR(&_4$$6); + object_init_ex(&_4$$6, phalcon_storage_exception_ce); + ZEPHIR_INIT_VAR(&_5$$6); + ZEPHIR_CONCAT_SVSVS(&_5$$6, "Could not connect to the Redisd server [", &host, ":", &port, "]"); + ZEPHIR_CALL_METHOD(NULL, &_4$$6, "__construct", NULL, 5, &_5$$6); zephir_check_call_status(); - zephir_throw_exception_debug(&_2$$4, "phalcon/Storage/Adapter/Redis.zep", 131 TSRMLS_CC); + zephir_throw_exception_debug(&_4$$6, "phalcon/Storage/Adapter/Redis.zep", 135 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - _4$$3 = !(ZEPHIR_IS_EMPTY(&auth)); - if (_4$$3) { - ZEPHIR_CALL_METHOD(&_5$$3, &connection, "auth", NULL, 0, &auth); + _6$$3 = !(ZEPHIR_IS_EMPTY(&auth)); + if (_6$$3) { + ZEPHIR_CALL_METHOD(&_7$$3, &connection, "auth", NULL, 0, &auth); zephir_check_call_status(); - _4$$3 = !zephir_is_true(&_5$$3); + _6$$3 = !zephir_is_true(&_7$$3); } - if (_4$$3) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_storage_exception_ce, "Failed to authenticate with the Redis server", "phalcon/Storage/Adapter/Redis.zep", 135); + if (_6$$3) { + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_storage_exception_ce, "Failed to authenticate with the Redis server", "phalcon/Storage/Adapter/Redis.zep", 139); return; } - _6$$3 = ZEPHIR_GT_LONG(&index, 0); - if (_6$$3) { - ZEPHIR_CALL_METHOD(&_7$$3, &connection, "select", NULL, 0, &index); + _8$$3 = ZEPHIR_GT_LONG(&index, 0); + if (_8$$3) { + ZEPHIR_CALL_METHOD(&_9$$3, &connection, "select", NULL, 0, &index); zephir_check_call_status(); - _6$$3 = !zephir_is_true(&_7$$3); + _8$$3 = !zephir_is_true(&_9$$3); } - if (_6$$3) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_storage_exception_ce, "Redis server selected database failed", "phalcon/Storage/Adapter/Redis.zep", 139); + if (_8$$3) { + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_storage_exception_ce, "Redis server selected database failed", "phalcon/Storage/Adapter/Redis.zep", 143); return; } - zephir_read_property(&_8$$3, this_ptr, SL("prefix"), PH_NOISY_CC | PH_READONLY); - ZVAL_LONG(&_9$$3, 2); - ZEPHIR_CALL_METHOD(NULL, &connection, "setoption", NULL, 0, &_9$$3, &_8$$3); + zephir_read_property(&_1$$3, this_ptr, SL("prefix"), PH_NOISY_CC | PH_READONLY); + ZVAL_LONG(&_10$$3, 2); + ZEPHIR_CALL_METHOD(NULL, &connection, "setoption", NULL, 0, &_10$$3, &_1$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "setserializer", NULL, 114, &connection); zephir_check_call_status(); @@ -662,7 +664,7 @@ PHP_METHOD(Phalcon_Storage_Adapter_Redis, setSerializer) { ZEPHIR_INIT_NVAR(&_8$$5); ZVAL_STRING(&_8$$5, ""); zephir_update_property_zval(this_ptr, SL("defaultSerializer"), &_8$$5); - zephir_array_fetch(&_9$$5, &map, &serializer, PH_NOISY | PH_READONLY, "phalcon/Storage/Adapter/Redis.zep", 240 TSRMLS_CC); + zephir_array_fetch(&_9$$5, &map, &serializer, PH_NOISY | PH_READONLY, "phalcon/Storage/Adapter/Redis.zep", 244 TSRMLS_CC); ZVAL_LONG(&_10$$5, 1); ZEPHIR_CALL_METHOD(NULL, connection, "setoption", NULL, 0, &_10$$5, &_9$$5); zephir_check_call_status(); diff --git a/ext/phalcon/text.zep.c b/ext/phalcon/text.zep.c index 19df03ca82d..5f4c8fe86c9 100644 --- a/ext/phalcon/text.zep.c +++ b/ext/phalcon/text.zep.c @@ -284,7 +284,7 @@ PHP_METHOD(Phalcon_Text, endsWith) { } else { ZVAL_BOOL(&_1, 0); } - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_helper_str_ce, "endswith", &_0, 261, &text, &end, &_1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_helper_str_ce, "endswith", &_0, 262, &text, &end, &_1); zephir_check_call_status(); RETURN_MM(); @@ -465,7 +465,7 @@ PHP_METHOD(Phalcon_Text, startsWith) { } else { ZVAL_BOOL(&_1, 0); } - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_helper_str_ce, "startswith", &_0, 260, &text, &start, &_1); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_helper_str_ce, "startswith", &_0, 261, &text, &start, &_1); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/url.zep.c b/ext/phalcon/url.zep.c index 18a3140aaa3..55bf3851c31 100644 --- a/ext/phalcon/url.zep.c +++ b/ext/phalcon/url.zep.c @@ -12,13 +12,13 @@ #include #include "kernel/main.h" -#include "kernel/string.h" +#include "kernel/object.h" #include "kernel/memory.h" +#include "kernel/string.h" #include "kernel/operators.h" #include "kernel/fcall.h" #include "kernel/array.h" #include "kernel/exception.h" -#include "kernel/object.h" #include "kernel/concat.h" #include "ext/spl/spl_exceptions.h" #include "phalcon/url/utils.h" @@ -51,7 +51,7 @@ */ ZEPHIR_INIT_CLASS(Phalcon_Url) { - ZEPHIR_REGISTER_CLASS(Phalcon, Url, phalcon, url, phalcon_url_method_entry, 0); + ZEPHIR_REGISTER_CLASS_EX(Phalcon, Url, phalcon, url, phalcon_di_abstractinjectionaware_ce, phalcon_url_method_entry, 0); /** * @var null | string @@ -64,10 +64,8 @@ ZEPHIR_INIT_CLASS(Phalcon_Url) { zend_declare_property_null(phalcon_url_ce, SL("basePath"), ZEND_ACC_PROTECTED TSRMLS_CC); /** - * @var + * @var | null */ - zend_declare_property_null(phalcon_url_ce, SL("container"), ZEND_ACC_PROTECTED TSRMLS_CC); - zend_declare_property_null(phalcon_url_ce, SL("router"), ZEND_ACC_PROTECTED TSRMLS_CC); /** @@ -76,11 +74,30 @@ ZEPHIR_INIT_CLASS(Phalcon_Url) { zend_declare_property_null(phalcon_url_ce, SL("staticBaseUri"), ZEND_ACC_PROTECTED TSRMLS_CC); zend_class_implements(phalcon_url_ce TSRMLS_CC, 1, phalcon_url_urlinterface_ce); - zend_class_implements(phalcon_url_ce TSRMLS_CC, 1, phalcon_di_injectionawareinterface_ce); return SUCCESS; } +PHP_METHOD(Phalcon_Url, __construct) { + + zval *router = NULL, router_sub, __$null; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&router_sub); + ZVAL_NULL(&__$null); + + zephir_fetch_params_without_memory_grow(0, 1, &router); + + if (!router) { + router = &router_sub; + router = &__$null; + } + + + zephir_update_property_zval(this_ptr, SL("router"), router); + +} + /** * Generates a URL * @@ -116,13 +133,12 @@ ZEPHIR_INIT_CLASS(Phalcon_Url) { */ PHP_METHOD(Phalcon_Url, get) { - unsigned char _24$$14, _26$$14, _31$$16; - zval strUri, _19$$14; + zval strUri, _23$$15; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zephir_fcall_cache_entry *_10 = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; - zend_bool local, _0$$3, _1$$3, _22$$14, _23$$14, _25$$14, _29$$16, _30$$16, _32$$19; - zval *uri = NULL, uri_sub, *args = NULL, args_sub, *local_param = NULL, *baseUri = NULL, baseUri_sub, __$null, router, container, routeName, route, queryString, _2$$4, _3$$4, _4$$4, _5$$4, _6$$9, _14$$9, _17$$9, _18$$9, _7$$11, _12$$11, _13$$11, _8$$12, _9$$12, _11$$12, _15$$13, _16$$13, _20$$14, _21$$14, _27$$15, _28$$15, _33$$20, _34$$20, _35$$21, _36$$22; + zend_bool local, _0$$3, _1$$3, _27$$16; + zval *uri = NULL, uri_sub, *args = NULL, args_sub, *local_param = NULL, *baseUri = NULL, baseUri_sub, __$null, router, container, routeName, route, queryString, _2$$4, _3$$4, _4$$4, _5$$4, _6$$9, _18$$9, _21$$9, _22$$9, _7$$11, _12$$11, _13$$11, _17$$11, _8$$12, _9$$12, _11$$12, _14$$13, _15$$13, _16$$13, _19$$14, _20$$14, _24$$15, _25$$15, _26$$15, _28$$17, _29$$17, _30$$18, _31$$19; zval *this_ptr = getThis(); ZVAL_UNDEF(&uri_sub); @@ -139,27 +155,30 @@ PHP_METHOD(Phalcon_Url, get) { ZVAL_UNDEF(&_4$$4); ZVAL_UNDEF(&_5$$4); ZVAL_UNDEF(&_6$$9); - ZVAL_UNDEF(&_14$$9); - ZVAL_UNDEF(&_17$$9); ZVAL_UNDEF(&_18$$9); + ZVAL_UNDEF(&_21$$9); + ZVAL_UNDEF(&_22$$9); ZVAL_UNDEF(&_7$$11); ZVAL_UNDEF(&_12$$11); ZVAL_UNDEF(&_13$$11); + ZVAL_UNDEF(&_17$$11); ZVAL_UNDEF(&_8$$12); ZVAL_UNDEF(&_9$$12); ZVAL_UNDEF(&_11$$12); + ZVAL_UNDEF(&_14$$13); ZVAL_UNDEF(&_15$$13); ZVAL_UNDEF(&_16$$13); + ZVAL_UNDEF(&_19$$14); ZVAL_UNDEF(&_20$$14); - ZVAL_UNDEF(&_21$$14); - ZVAL_UNDEF(&_27$$15); - ZVAL_UNDEF(&_28$$15); - ZVAL_UNDEF(&_33$$20); - ZVAL_UNDEF(&_34$$20); - ZVAL_UNDEF(&_35$$21); - ZVAL_UNDEF(&_36$$22); + ZVAL_UNDEF(&_24$$15); + ZVAL_UNDEF(&_25$$15); + ZVAL_UNDEF(&_26$$15); + ZVAL_UNDEF(&_28$$17); + ZVAL_UNDEF(&_29$$17); + ZVAL_UNDEF(&_30$$18); + ZVAL_UNDEF(&_31$$19); ZVAL_UNDEF(&strUri); - ZVAL_UNDEF(&_19$$14); + ZVAL_UNDEF(&_23$$15); ZEPHIR_MM_GROW(); zephir_fetch_params(1, 0, 4, &uri, &args, &local_param, &baseUri); @@ -190,9 +209,9 @@ PHP_METHOD(Phalcon_Url, get) { if (local == 0) { _0$$3 = Z_TYPE_P(uri) == IS_STRING; if (_0$$3) { - _1$$3 = zephir_memnstr_str(uri, SL("//"), "phalcon/Url.zep", 100); + _1$$3 = zephir_memnstr_str(uri, SL("//"), "phalcon/Url.zep", 103); if (!(_1$$3)) { - _1$$3 = zephir_memnstr_str(uri, SL(":"), "phalcon/Url.zep", 100); + _1$$3 = zephir_memnstr_str(uri, SL(":"), "phalcon/Url.zep", 103); } _0$$3 = _1$$3; } @@ -220,12 +239,12 @@ PHP_METHOD(Phalcon_Url, get) { if (Z_TYPE_P(uri) == IS_ARRAY) { ZEPHIR_OBS_VAR(&routeName); if (UNEXPECTED(!(zephir_array_isset_string_fetch(&routeName, uri, SL("for"), 0)))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_url_exception_ce, "It's necessary to define the route name with the parameter 'for'", "phalcon/Url.zep", 119); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_url_exception_ce, "It's necessary to define the route name with the parameter 'for'", "phalcon/Url.zep", 122); return; } zephir_read_property(&_6$$9, this_ptr, SL("router"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&router, &_6$$9); - if (Z_TYPE_P(&router) != IS_OBJECT) { + if (UNEXPECTED(!zephir_is_true(&router))) { zephir_read_property(&_7$$11, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&container, &_7$$11); if (UNEXPECTED(Z_TYPE_P(&container) != IS_OBJECT)) { @@ -237,103 +256,88 @@ PHP_METHOD(Phalcon_Url, get) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_8$$12, "__construct", NULL, 5, &_9$$12); zephir_check_call_status(); - zephir_throw_exception_debug(&_8$$12, "phalcon/Url.zep", 135 TSRMLS_CC); + zephir_throw_exception_debug(&_8$$12, "phalcon/Url.zep", 138 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } ZEPHIR_INIT_VAR(&_13$$11); ZVAL_STRING(&_13$$11, "router"); - ZEPHIR_CALL_METHOD(&_12$$11, &container, "getshared", NULL, 0, &_13$$11); + ZEPHIR_CALL_METHOD(&_12$$11, &container, "has", NULL, 0, &_13$$11); + zephir_check_call_status(); + if (UNEXPECTED(!zephir_is_true(&_12$$11))) { + ZEPHIR_INIT_VAR(&_14$$13); + object_init_ex(&_14$$13, phalcon_url_exception_ce); + ZEPHIR_INIT_VAR(&_16$$13); + ZVAL_STRING(&_16$$13, "the 'router' service"); + ZEPHIR_CALL_CE_STATIC(&_15$$13, phalcon_url_exception_ce, "containerservicenotfound", &_10, 0, &_16$$13); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(NULL, &_14$$13, "__construct", NULL, 5, &_15$$13); + zephir_check_call_status(); + zephir_throw_exception_debug(&_14$$13, "phalcon/Url.zep", 146 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); + return; + } + ZEPHIR_INIT_NVAR(&_13$$11); + ZVAL_STRING(&_13$$11, "router"); + ZEPHIR_CALL_METHOD(&_17$$11, &container, "getshared", NULL, 0, &_13$$11); zephir_check_call_status(); - ZEPHIR_CPY_WRT(&router, &_12$$11); + ZEPHIR_CPY_WRT(&router, &_17$$11); zephir_update_property_zval(this_ptr, SL("router"), &router); } - ZEPHIR_CALL_METHOD(&_14$$9, &router, "getroutebyname", NULL, 0, &routeName); + ZEPHIR_CALL_METHOD(&_18$$9, &router, "getroutebyname", NULL, 0, &routeName); zephir_check_call_status(); - ZEPHIR_CPY_WRT(&route, &_14$$9); + ZEPHIR_CPY_WRT(&route, &_18$$9); if (UNEXPECTED(Z_TYPE_P(&route) != IS_OBJECT)) { - ZEPHIR_INIT_VAR(&_15$$13); - object_init_ex(&_15$$13, phalcon_url_exception_ce); - ZEPHIR_INIT_VAR(&_16$$13); - ZEPHIR_CONCAT_SVS(&_16$$13, "Cannot obtain a route using the name '", &routeName, "'"); - ZEPHIR_CALL_METHOD(NULL, &_15$$13, "__construct", NULL, 5, &_16$$13); + ZEPHIR_INIT_VAR(&_19$$14); + object_init_ex(&_19$$14, phalcon_url_exception_ce); + ZEPHIR_INIT_VAR(&_20$$14); + ZEPHIR_CONCAT_SVS(&_20$$14, "Cannot obtain a route using the name '", &routeName, "'"); + ZEPHIR_CALL_METHOD(NULL, &_19$$14, "__construct", NULL, 5, &_20$$14); zephir_check_call_status(); - zephir_throw_exception_debug(&_15$$13, "phalcon/Url.zep", 150 TSRMLS_CC); + zephir_throw_exception_debug(&_19$$14, "phalcon/Url.zep", 161 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_INIT_VAR(&_17$$9); - ZEPHIR_CALL_METHOD(&_14$$9, &route, "getpattern", NULL, 0); + ZEPHIR_INIT_VAR(&_21$$9); + ZEPHIR_CALL_METHOD(&_18$$9, &route, "getpattern", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_18$$9, &route, "getreversedpaths", NULL, 0); + ZEPHIR_CALL_METHOD(&_22$$9, &route, "getreversedpaths", NULL, 0); zephir_check_call_status(); - phalcon_replace_paths(&_17$$9, &_14$$9, &_18$$9, uri TSRMLS_CC); - ZEPHIR_CPY_WRT(uri, &_17$$9); + phalcon_replace_paths(&_21$$9, &_18$$9, &_22$$9, uri TSRMLS_CC); + ZEPHIR_CPY_WRT(uri, &_21$$9); } if (local) { - zephir_get_strval(&_19$$14, uri); - ZEPHIR_CPY_WRT(&strUri, &_19$$14); - ZVAL_LONG(&_20$$14, -1); - ZEPHIR_INIT_VAR(&_21$$14); - zephir_substr(&_21$$14, baseUri, -1 , 0, ZEPHIR_SUBSTR_NO_LENGTH); - _22$$14 = ZEPHIR_IS_STRING(&_21$$14, "/"); - if (_22$$14) { - _22$$14 = zephir_fast_strlen_ev(&strUri) > 2; - } - _23$$14 = _22$$14; - if (_23$$14) { - _24$$14 = ZEPHIR_STRING_OFFSET(&strUri, 0); - _23$$14 = _24$$14 == '/'; - } - _25$$14 = _23$$14; - if (_25$$14) { - _26$$14 = ZEPHIR_STRING_OFFSET(&strUri, 1); - _25$$14 = _26$$14 != '/'; - } - if (_25$$14) { - ZVAL_LONG(&_27$$15, 1); - ZEPHIR_INIT_VAR(&_28$$15); - zephir_substr(&_28$$15, &strUri, 1 , 0, ZEPHIR_SUBSTR_NO_LENGTH); - ZEPHIR_INIT_NVAR(uri); - ZEPHIR_CONCAT_VV(uri, baseUri, &_28$$15); - } else { - _29$$16 = ZEPHIR_IS_STRING(baseUri, "/"); - if (_29$$16) { - _29$$16 = zephir_fast_strlen_ev(&strUri) == 1; - } - _30$$16 = _29$$16; - if (_30$$16) { - _31$$16 = ZEPHIR_STRING_OFFSET(&strUri, 0); - _30$$16 = _31$$16 == '/'; - } - if (_30$$16) { - ZEPHIR_CPY_WRT(uri, baseUri); - } else { - ZEPHIR_INIT_NVAR(uri); - ZEPHIR_CONCAT_VV(uri, baseUri, &strUri); - } - } + zephir_get_strval(&_23$$15, uri); + ZEPHIR_CPY_WRT(&strUri, &_23$$15); + ZEPHIR_INIT_VAR(&_24$$15); + ZEPHIR_CONCAT_VV(&_24$$15, baseUri, &strUri); + ZEPHIR_INIT_VAR(&_25$$15); + ZVAL_STRING(&_25$$15, "#(?= 70200 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_url_get, 0, 0, IS_STRING, 0) #else @@ -44,13 +47,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_url_getbaseuri, 0, 0, IS #endif ZEND_END_ARG_INFO() -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_url_getdi, 0, 0, Phalcon\\Di\\DiInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_url_getdi, 0, 0, IS_OBJECT, "Phalcon\\Di\\DiInterface", 0) -#endif -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_url_getstatic, 0, 0, IS_STRING, 0) #else @@ -90,10 +86,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_url_setbaseuri, 0, 1, IS #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_url_setdi, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, container, Phalcon\\Di\\DiInterface, 0) -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_url_setstaticbaseuri, 0, 1, Phalcon\\Url\\UrlInterface, 0) #else @@ -119,15 +111,14 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_url_path, 0, 0, IS_STRIN ZEND_END_ARG_INFO() ZEPHIR_INIT_FUNCS(phalcon_url_method_entry) { + PHP_ME(Phalcon_Url, __construct, arginfo_phalcon_url___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) PHP_ME(Phalcon_Url, get, arginfo_phalcon_url_get, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Url, getBasePath, arginfo_phalcon_url_getbasepath, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Url, getBaseUri, arginfo_phalcon_url_getbaseuri, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Url, getDI, arginfo_phalcon_url_getdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Url, getStatic, arginfo_phalcon_url_getstatic, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Url, getStaticBaseUri, arginfo_phalcon_url_getstaticbaseuri, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Url, setBasePath, arginfo_phalcon_url_setbasepath, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Url, setBaseUri, arginfo_phalcon_url_setbaseuri, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Url, setDI, arginfo_phalcon_url_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Url, setStaticBaseUri, arginfo_phalcon_url_setstaticbaseuri, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Url, path, arginfo_phalcon_url_path, ZEND_ACC_PUBLIC) PHP_FE_END diff --git a/ext/phalcon/validation.zep.c b/ext/phalcon/validation.zep.c index db3a3ae6e0e..9807dc9fc1b 100644 --- a/ext/phalcon/validation.zep.c +++ b/ext/phalcon/validation.zep.c @@ -513,7 +513,7 @@ PHP_METHOD(Phalcon_Validation, getValue) { if (Z_TYPE_P(&entity) == IS_OBJECT) { ZEPHIR_INIT_NVAR(&method); ZEPHIR_CONCAT_SV(&method, "set", &camelizedField); - ZEPHIR_CALL_FUNCTION(&_10$$21, "property_exists", NULL, 436, &entity, &field); + ZEPHIR_CALL_FUNCTION(&_10$$21, "property_exists", NULL, 434, &entity, &field); zephir_check_call_status(); if ((zephir_method_exists(&entity, &method TSRMLS_CC) == SUCCESS)) { ZEPHIR_CALL_METHOD_ZVAL(NULL, &entity, &method, NULL, 0, &value); diff --git a/ext/phalcon/validation/validator/file/resolution/equal.zep.c b/ext/phalcon/validation/validator/file/resolution/equal.zep.c index 0f474382329..22bc44c8b50 100644 --- a/ext/phalcon/validation/validator/file/resolution/equal.zep.c +++ b/ext/phalcon/validation/validator/file/resolution/equal.zep.c @@ -119,7 +119,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File_Resolution_Equal, validate) { ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, field); zephir_check_call_status(); zephir_array_fetch_string(&_1, &value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/Validation/Validator/File/Resolution/Equal.zep", 74 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 365, &_1); + ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 367, &_1); zephir_check_call_status(); ZEPHIR_OBS_VAR(&width); zephir_array_fetch_long(&width, &tmp, 0, PH_NOISY, "phalcon/Validation/Validator/File/Resolution/Equal.zep", 75 TSRMLS_CC); diff --git a/ext/phalcon/validation/validator/file/resolution/max.zep.c b/ext/phalcon/validation/validator/file/resolution/max.zep.c index cacebcfda46..dc6bd2ae902 100644 --- a/ext/phalcon/validation/validator/file/resolution/max.zep.c +++ b/ext/phalcon/validation/validator/file/resolution/max.zep.c @@ -129,7 +129,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File_Resolution_Max, validate) { ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, field); zephir_check_call_status(); zephir_array_fetch_string(&_1, &value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/Validation/Validator/File/Resolution/Max.zep", 79 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 365, &_1); + ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 367, &_1); zephir_check_call_status(); ZEPHIR_OBS_VAR(&width); zephir_array_fetch_long(&width, &tmp, 0, PH_NOISY, "phalcon/Validation/Validator/File/Resolution/Max.zep", 80 TSRMLS_CC); diff --git a/ext/phalcon/validation/validator/file/resolution/min.zep.c b/ext/phalcon/validation/validator/file/resolution/min.zep.c index f16534e830f..58f1dd6ae5a 100644 --- a/ext/phalcon/validation/validator/file/resolution/min.zep.c +++ b/ext/phalcon/validation/validator/file/resolution/min.zep.c @@ -129,7 +129,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File_Resolution_Min, validate) { ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, field); zephir_check_call_status(); zephir_array_fetch_string(&_1, &value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/Validation/Validator/File/Resolution/Min.zep", 79 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 365, &_1); + ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 367, &_1); zephir_check_call_status(); ZEPHIR_OBS_VAR(&width); zephir_array_fetch_long(&width, &tmp, 0, PH_NOISY, "phalcon/Validation/Validator/File/Resolution/Min.zep", 80 TSRMLS_CC); diff --git a/ext/phalcon/validation/validator/uniqueness.zep.c b/ext/phalcon/validation/validator/uniqueness.zep.c index 46dd0d49a7e..27f5f46af42 100644 --- a/ext/phalcon/validation/validator/uniqueness.zep.c +++ b/ext/phalcon/validation/validator/uniqueness.zep.c @@ -220,7 +220,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, getColumnNameReal) { PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniqueness) { zend_class_entry *_9; - zend_bool isModel = 0, isDocument = 0, _7; + zend_bool isModel = 0, _7; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zephir_fcall_cache_entry *_4 = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -252,7 +252,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniqueness) { ZEPHIR_CPY_WRT(&singleField, field); ZEPHIR_INIT_NVAR(field); array_init(field); - zephir_array_append(field, &singleField, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 142); + zephir_array_append(field, &singleField, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 145); } ZEPHIR_INIT_VAR(&values); array_init(&values); @@ -260,7 +260,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniqueness) { ZVAL_STRING(&_0, "convert"); ZEPHIR_CALL_METHOD(&convert, this_ptr, "getoption", NULL, 0, &_0); zephir_check_call_status(); - zephir_is_iterable(field, 0, "phalcon/Validation/Validator/Uniqueness.zep", 152); + zephir_is_iterable(field, 0, "phalcon/Validation/Validator/Uniqueness.zep", 155); if (Z_TYPE_P(field) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(field), _1) { @@ -294,7 +294,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniqueness) { zephir_check_call_status(); ZEPHIR_CPY_WRT(&values, &_6$$6); if (UNEXPECTED(!(Z_TYPE_P(&values) == IS_ARRAY))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_validation_exception_ce, "Value conversion must return an array", "phalcon/Validation/Validator/Uniqueness.zep", 156); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_validation_exception_ce, "Value conversion must return an array", "phalcon/Validation/Validator/Uniqueness.zep", 159); return; } } @@ -310,20 +310,16 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniqueness) { ZEPHIR_CALL_METHOD(&record, validation, "getentity", NULL, 0); zephir_check_call_status(); if (UNEXPECTED(ZEPHIR_IS_EMPTY(&record))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_validation_exception_ce, "Model of record must be set to property \"model\"", "phalcon/Validation/Validator/Uniqueness.zep", 169); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_validation_exception_ce, "Model of record must be set to property \"model\"", "phalcon/Validation/Validator/Uniqueness.zep", 172); return; } } isModel = zephir_instance_of_ev(&record, phalcon_mvc_modelinterface_ce TSRMLS_CC); - isDocument = zephir_instance_of_ev(&record, phalcon_mvc_collectioninterface_ce TSRMLS_CC); if (isModel) { ZEPHIR_CALL_METHOD(¶ms, this_ptr, "isuniquenessmodel", NULL, 0, &record, field, &values); zephir_check_call_status(); - } else if (isDocument) { - ZEPHIR_CALL_METHOD(¶ms, this_ptr, "isuniquenesscollection", NULL, 0, &record, field, &values); - zephir_check_call_status(); } else { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_validation_exception_ce, "The uniqueness validator works only with Phalcon\\Mvc\\Model or Phalcon\\Mvc\\Collection", "phalcon/Validation/Validator/Uniqueness.zep", 183); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_validation_exception_ce, "The uniqueness validator works only with Phalcon\\Mvc\\Model", "phalcon/Validation/Validator/Uniqueness.zep", 192); return; } ZEPHIR_INIT_VAR(&className); @@ -335,308 +331,6 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniqueness) { } -/** - * Uniqueness method used for collection - */ -PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessCollection) { - - zend_bool _5$$4, _6$$4, _16$$17, _17$$17; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zephir_fcall_cache_entry *_4 = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval field, values, _9$$8, _10$$11, _13$$12, _14$$15, _20$$21, _21$$24, _24$$25, _25$$28, _27$$29, _29$$30; - zval *record, record_sub, *field_param = NULL, *values_param = NULL, exceptConditions, fieldExcept, notInValues, value, singleField, params, except, singleExcept, _0, *_1, _2, _26, _3$$3, *_7$$8, _8$$8, *_11$$12, _12$$12, _15$$16, *_18$$21, _19$$21, *_22$$25, _23$$25, _28$$29; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&record_sub); - ZVAL_UNDEF(&exceptConditions); - ZVAL_UNDEF(&fieldExcept); - ZVAL_UNDEF(¬InValues); - ZVAL_UNDEF(&value); - ZVAL_UNDEF(&singleField); - ZVAL_UNDEF(¶ms); - ZVAL_UNDEF(&except); - ZVAL_UNDEF(&singleExcept); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_2); - ZVAL_UNDEF(&_26); - ZVAL_UNDEF(&_3$$3); - ZVAL_UNDEF(&_8$$8); - ZVAL_UNDEF(&_12$$12); - ZVAL_UNDEF(&_15$$16); - ZVAL_UNDEF(&_19$$21); - ZVAL_UNDEF(&_23$$25); - ZVAL_UNDEF(&_28$$29); - ZVAL_UNDEF(&field); - ZVAL_UNDEF(&values); - ZVAL_UNDEF(&_9$$8); - ZVAL_UNDEF(&_10$$11); - ZVAL_UNDEF(&_13$$12); - ZVAL_UNDEF(&_14$$15); - ZVAL_UNDEF(&_20$$21); - ZVAL_UNDEF(&_21$$24); - ZVAL_UNDEF(&_24$$25); - ZVAL_UNDEF(&_25$$28); - ZVAL_UNDEF(&_27$$29); - ZVAL_UNDEF(&_29$$30); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 3, 0, &record, &field_param, &values_param); - - zephir_get_arrval(&field, field_param); - zephir_get_arrval(&values, values_param); - - - ZEPHIR_INIT_VAR(&exceptConditions); - array_init(&exceptConditions); - ZEPHIR_INIT_VAR(¶ms); - zephir_create_array(¶ms, 1, 0 TSRMLS_CC); - ZEPHIR_INIT_VAR(&_0); - array_init(&_0); - zephir_array_update_string(¶ms, SL("conditions"), &_0, PH_COPY | PH_SEPARATE); - zephir_is_iterable(&field, 0, "phalcon/Validation/Validator/Uniqueness.zep", 250); - if (Z_TYPE_P(&field) == IS_ARRAY) { - ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&field), _1) - { - ZEPHIR_INIT_NVAR(&singleField); - ZVAL_COPY(&singleField, _1); - ZEPHIR_INIT_NVAR(&fieldExcept); - ZVAL_NULL(&fieldExcept); - ZEPHIR_INIT_NVAR(¬InValues); - array_init(¬InValues); - ZEPHIR_OBS_NVAR(&value); - zephir_array_fetch(&value, &values, &singleField, PH_NOISY, "phalcon/Validation/Validator/Uniqueness.zep", 207 TSRMLS_CC); - ZEPHIR_INIT_NVAR(&_3$$3); - ZVAL_STRING(&_3$$3, "except"); - ZEPHIR_CALL_METHOD(&except, this_ptr, "getoption", &_4, 0, &_3$$3); - zephir_check_call_status(); - zephir_array_update_multi(¶ms, &value TSRMLS_CC, SL("sz"), 3, SL("conditions"), &singleField); - if (zephir_is_true(&except)) { - _5$$4 = Z_TYPE_P(&except) == IS_ARRAY; - if (_5$$4) { - _5$$4 = zephir_fast_count_int(&field TSRMLS_CC) > 1; - } - if (_5$$4) { - if (zephir_array_isset(&except, &singleField)) { - ZEPHIR_OBS_NVAR(&fieldExcept); - zephir_array_fetch(&fieldExcept, &except, &singleField, PH_NOISY, "phalcon/Validation/Validator/Uniqueness.zep", 216 TSRMLS_CC); - } - } - _6$$4 = Z_TYPE_P(&except) == IS_ARRAY; - if (_6$$4) { - _6$$4 = zephir_fast_count_int(&field TSRMLS_CC) == 1; - } - if (Z_TYPE_P(&fieldExcept) != IS_NULL) { - if (Z_TYPE_P(&fieldExcept) == IS_ARRAY) { - zephir_is_iterable(&fieldExcept, 0, "phalcon/Validation/Validator/Uniqueness.zep", 226); - if (Z_TYPE_P(&fieldExcept) == IS_ARRAY) { - ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&fieldExcept), _7$$8) - { - ZEPHIR_INIT_NVAR(&singleExcept); - ZVAL_COPY(&singleExcept, _7$$8); - zephir_array_append(¬InValues, &singleExcept, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 223); - } ZEND_HASH_FOREACH_END(); - } else { - ZEPHIR_CALL_METHOD(NULL, &fieldExcept, "rewind", NULL, 0); - zephir_check_call_status(); - while (1) { - ZEPHIR_CALL_METHOD(&_8$$8, &fieldExcept, "valid", NULL, 0); - zephir_check_call_status(); - if (!zend_is_true(&_8$$8)) { - break; - } - ZEPHIR_CALL_METHOD(&singleExcept, &fieldExcept, "current", NULL, 0); - zephir_check_call_status(); - zephir_array_append(¬InValues, &singleExcept, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 223); - ZEPHIR_CALL_METHOD(NULL, &fieldExcept, "next", NULL, 0); - zephir_check_call_status(); - } - } - ZEPHIR_INIT_NVAR(&singleExcept); - ZEPHIR_INIT_NVAR(&_9$$8); - zephir_create_array(&_9$$8, 1, 0 TSRMLS_CC); - zephir_array_update_string(&_9$$8, SL("$nin"), ¬InValues, PH_COPY | PH_SEPARATE); - zephir_array_update_zval(&exceptConditions, &singleField, &_9$$8, PH_COPY | PH_SEPARATE); - } else { - ZEPHIR_INIT_NVAR(&_10$$11); - zephir_create_array(&_10$$11, 1, 0 TSRMLS_CC); - zephir_array_update_string(&_10$$11, SL("$ne"), &fieldExcept, PH_COPY | PH_SEPARATE); - zephir_array_update_zval(&exceptConditions, &singleField, &_10$$11, PH_COPY | PH_SEPARATE); - } - } else if (_6$$4) { - zephir_is_iterable(&except, 0, "phalcon/Validation/Validator/Uniqueness.zep", 239); - if (Z_TYPE_P(&except) == IS_ARRAY) { - ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&except), _11$$12) - { - ZEPHIR_INIT_NVAR(&singleExcept); - ZVAL_COPY(&singleExcept, _11$$12); - zephir_array_append(¬InValues, &singleExcept, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 236); - } ZEND_HASH_FOREACH_END(); - } else { - ZEPHIR_CALL_METHOD(NULL, &except, "rewind", NULL, 0); - zephir_check_call_status(); - while (1) { - ZEPHIR_CALL_METHOD(&_12$$12, &except, "valid", NULL, 0); - zephir_check_call_status(); - if (!zend_is_true(&_12$$12)) { - break; - } - ZEPHIR_CALL_METHOD(&singleExcept, &except, "current", NULL, 0); - zephir_check_call_status(); - zephir_array_append(¬InValues, &singleExcept, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 236); - ZEPHIR_CALL_METHOD(NULL, &except, "next", NULL, 0); - zephir_check_call_status(); - } - } - ZEPHIR_INIT_NVAR(&singleExcept); - ZEPHIR_INIT_NVAR(&_13$$12); - zephir_create_array(&_13$$12, 1, 0 TSRMLS_CC); - zephir_array_update_string(&_13$$12, SL("$nin"), ¬InValues, PH_COPY | PH_SEPARATE); - zephir_array_update_multi(¶ms, &_13$$12 TSRMLS_CC, SL("sz"), 3, SL("conditions"), &singleField); - } else if (zephir_fast_count_int(&field TSRMLS_CC) == 1) { - ZEPHIR_INIT_NVAR(&_14$$15); - zephir_create_array(&_14$$15, 1, 0 TSRMLS_CC); - zephir_array_update_string(&_14$$15, SL("$ne"), &except, PH_COPY | PH_SEPARATE); - zephir_array_update_multi(¶ms, &_14$$15 TSRMLS_CC, SL("sz"), 3, SL("conditions"), &singleField); - } - } - } ZEND_HASH_FOREACH_END(); - } else { - ZEPHIR_CALL_METHOD(NULL, &field, "rewind", NULL, 0); - zephir_check_call_status(); - while (1) { - ZEPHIR_CALL_METHOD(&_2, &field, "valid", NULL, 0); - zephir_check_call_status(); - if (!zend_is_true(&_2)) { - break; - } - ZEPHIR_CALL_METHOD(&singleField, &field, "current", NULL, 0); - zephir_check_call_status(); - ZEPHIR_INIT_NVAR(&fieldExcept); - ZVAL_NULL(&fieldExcept); - ZEPHIR_INIT_NVAR(¬InValues); - array_init(¬InValues); - ZEPHIR_OBS_NVAR(&value); - zephir_array_fetch(&value, &values, &singleField, PH_NOISY, "phalcon/Validation/Validator/Uniqueness.zep", 207 TSRMLS_CC); - ZEPHIR_INIT_NVAR(&_15$$16); - ZVAL_STRING(&_15$$16, "except"); - ZEPHIR_CALL_METHOD(&except, this_ptr, "getoption", &_4, 0, &_15$$16); - zephir_check_call_status(); - zephir_array_update_multi(¶ms, &value TSRMLS_CC, SL("sz"), 3, SL("conditions"), &singleField); - if (zephir_is_true(&except)) { - _16$$17 = Z_TYPE_P(&except) == IS_ARRAY; - if (_16$$17) { - _16$$17 = zephir_fast_count_int(&field TSRMLS_CC) > 1; - } - if (_16$$17) { - if (zephir_array_isset(&except, &singleField)) { - ZEPHIR_OBS_NVAR(&fieldExcept); - zephir_array_fetch(&fieldExcept, &except, &singleField, PH_NOISY, "phalcon/Validation/Validator/Uniqueness.zep", 216 TSRMLS_CC); - } - } - _17$$17 = Z_TYPE_P(&except) == IS_ARRAY; - if (_17$$17) { - _17$$17 = zephir_fast_count_int(&field TSRMLS_CC) == 1; - } - if (Z_TYPE_P(&fieldExcept) != IS_NULL) { - if (Z_TYPE_P(&fieldExcept) == IS_ARRAY) { - zephir_is_iterable(&fieldExcept, 0, "phalcon/Validation/Validator/Uniqueness.zep", 226); - if (Z_TYPE_P(&fieldExcept) == IS_ARRAY) { - ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&fieldExcept), _18$$21) - { - ZEPHIR_INIT_NVAR(&singleExcept); - ZVAL_COPY(&singleExcept, _18$$21); - zephir_array_append(¬InValues, &singleExcept, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 223); - } ZEND_HASH_FOREACH_END(); - } else { - ZEPHIR_CALL_METHOD(NULL, &fieldExcept, "rewind", NULL, 0); - zephir_check_call_status(); - while (1) { - ZEPHIR_CALL_METHOD(&_19$$21, &fieldExcept, "valid", NULL, 0); - zephir_check_call_status(); - if (!zend_is_true(&_19$$21)) { - break; - } - ZEPHIR_CALL_METHOD(&singleExcept, &fieldExcept, "current", NULL, 0); - zephir_check_call_status(); - zephir_array_append(¬InValues, &singleExcept, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 223); - ZEPHIR_CALL_METHOD(NULL, &fieldExcept, "next", NULL, 0); - zephir_check_call_status(); - } - } - ZEPHIR_INIT_NVAR(&singleExcept); - ZEPHIR_INIT_NVAR(&_20$$21); - zephir_create_array(&_20$$21, 1, 0 TSRMLS_CC); - zephir_array_update_string(&_20$$21, SL("$nin"), ¬InValues, PH_COPY | PH_SEPARATE); - zephir_array_update_zval(&exceptConditions, &singleField, &_20$$21, PH_COPY | PH_SEPARATE); - } else { - ZEPHIR_INIT_NVAR(&_21$$24); - zephir_create_array(&_21$$24, 1, 0 TSRMLS_CC); - zephir_array_update_string(&_21$$24, SL("$ne"), &fieldExcept, PH_COPY | PH_SEPARATE); - zephir_array_update_zval(&exceptConditions, &singleField, &_21$$24, PH_COPY | PH_SEPARATE); - } - } else if (_17$$17) { - zephir_is_iterable(&except, 0, "phalcon/Validation/Validator/Uniqueness.zep", 239); - if (Z_TYPE_P(&except) == IS_ARRAY) { - ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&except), _22$$25) - { - ZEPHIR_INIT_NVAR(&singleExcept); - ZVAL_COPY(&singleExcept, _22$$25); - zephir_array_append(¬InValues, &singleExcept, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 236); - } ZEND_HASH_FOREACH_END(); - } else { - ZEPHIR_CALL_METHOD(NULL, &except, "rewind", NULL, 0); - zephir_check_call_status(); - while (1) { - ZEPHIR_CALL_METHOD(&_23$$25, &except, "valid", NULL, 0); - zephir_check_call_status(); - if (!zend_is_true(&_23$$25)) { - break; - } - ZEPHIR_CALL_METHOD(&singleExcept, &except, "current", NULL, 0); - zephir_check_call_status(); - zephir_array_append(¬InValues, &singleExcept, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 236); - ZEPHIR_CALL_METHOD(NULL, &except, "next", NULL, 0); - zephir_check_call_status(); - } - } - ZEPHIR_INIT_NVAR(&singleExcept); - ZEPHIR_INIT_NVAR(&_24$$25); - zephir_create_array(&_24$$25, 1, 0 TSRMLS_CC); - zephir_array_update_string(&_24$$25, SL("$nin"), ¬InValues, PH_COPY | PH_SEPARATE); - zephir_array_update_multi(¶ms, &_24$$25 TSRMLS_CC, SL("sz"), 3, SL("conditions"), &singleField); - } else if (zephir_fast_count_int(&field TSRMLS_CC) == 1) { - ZEPHIR_INIT_NVAR(&_25$$28); - zephir_create_array(&_25$$28, 1, 0 TSRMLS_CC); - zephir_array_update_string(&_25$$28, SL("$ne"), &except, PH_COPY | PH_SEPARATE); - zephir_array_update_multi(¶ms, &_25$$28 TSRMLS_CC, SL("sz"), 3, SL("conditions"), &singleField); - } - } - ZEPHIR_CALL_METHOD(NULL, &field, "next", NULL, 0); - zephir_check_call_status(); - } - } - ZEPHIR_INIT_NVAR(&singleField); - ZEPHIR_CALL_METHOD(&_26, record, "getdirtystate", NULL, 0); - zephir_check_call_status(); - if (ZEPHIR_IS_LONG(&_26, 0)) { - ZEPHIR_INIT_VAR(&_27$$29); - zephir_create_array(&_27$$29, 1, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_28$$29, record, "getid", NULL, 0); - zephir_check_call_status(); - zephir_array_update_string(&_27$$29, SL("$ne"), &_28$$29, PH_COPY | PH_SEPARATE); - zephir_array_update_multi(¶ms, &_27$$29 TSRMLS_CC, SL("ss"), 4, SL("conditions"), SL("_id")); - } - if (!(ZEPHIR_IS_EMPTY(&exceptConditions))) { - ZEPHIR_INIT_VAR(&_29$$30); - zephir_create_array(&_29$$30, 1, 0 TSRMLS_CC); - zephir_array_fast_append(&_29$$30, &exceptConditions); - zephir_array_update_multi(¶ms, &_29$$30 TSRMLS_CC, SL("ss"), 4, SL("conditions"), SL("$or")); - } - RETURN_CCTOR(¶ms); - -} - /** * Uniqueness method used for model */ @@ -844,7 +538,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZVAL_STRING(&_0, "except"); ZEPHIR_CALL_METHOD(&except, this_ptr, "getoption", NULL, 0, &_0); zephir_check_call_status(); - zephir_is_iterable(&field, 0, "phalcon/Validation/Validator/Uniqueness.zep", 365); + zephir_is_iterable(&field, 0, "phalcon/Validation/Validator/Uniqueness.zep", 384); if (Z_TYPE_P(&field) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&field), _1) { @@ -855,7 +549,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZEPHIR_INIT_NVAR(¬InValues); array_init(¬InValues); ZEPHIR_OBS_NVAR(&value); - zephir_array_fetch(&value, &values, &singleField, PH_NOISY, "phalcon/Validation/Validator/Uniqueness.zep", 283 TSRMLS_CC); + zephir_array_fetch(&value, &values, &singleField, PH_NOISY, "phalcon/Validation/Validator/Uniqueness.zep", 302 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_3$$3); ZVAL_STRING(&_3$$3, "attribute"); ZEPHIR_CALL_METHOD(&attribute, this_ptr, "getoption", NULL, 0, &_3$$3, &singleField); @@ -888,7 +582,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { _9$$6 = !ZEPHIR_IS_IDENTICAL(&_10$$6, &_13$$6); } if (_9$$6) { - zephir_is_iterable(&except, 0, "phalcon/Validation/Validator/Uniqueness.zep", 318); + zephir_is_iterable(&except, 0, "phalcon/Validation/Validator/Uniqueness.zep", 337); if (Z_TYPE_P(&except) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&except), _17$$7, _18$$7, _15$$7) { @@ -907,7 +601,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZEPHIR_CALL_METHOD(&attribute, this_ptr, "getcolumnnamereal", &_5, 0, record, &_19$$8); zephir_check_call_status(); if (Z_TYPE_P(&fieldExcept) == IS_ARRAY) { - zephir_is_iterable(&fieldExcept, 0, "phalcon/Validation/Validator/Uniqueness.zep", 311); + zephir_is_iterable(&fieldExcept, 0, "phalcon/Validation/Validator/Uniqueness.zep", 330); if (Z_TYPE_P(&fieldExcept) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&fieldExcept), _21$$9) { @@ -917,7 +611,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZVAL_LONG(&_23$$10, index); ZEPHIR_INIT_LNVAR(_24$$10); ZEPHIR_CONCAT_SV(&_24$$10, "?", &_23$$10); - zephir_array_append(¬InValues, &_24$$10, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 306); + zephir_array_append(¬InValues, &_24$$10, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 325); zephir_array_update_multi(¶ms, &singleExcept TSRMLS_CC, SL("sa"), 3, SL("bind")); index++; } ZEND_HASH_FOREACH_END(); @@ -936,7 +630,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZVAL_LONG(&_25$$11, index); ZEPHIR_INIT_LNVAR(_26$$11); ZEPHIR_CONCAT_SV(&_26$$11, "?", &_25$$11); - zephir_array_append(¬InValues, &_26$$11, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 306); + zephir_array_append(¬InValues, &_26$$11, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 325); zephir_array_update_multi(¶ms, &singleExcept TSRMLS_CC, SL("sa"), 3, SL("bind")); index++; ZEPHIR_CALL_METHOD(NULL, &fieldExcept, "next", NULL, 0); @@ -948,13 +642,13 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { zephir_fast_join_str(&_27$$9, SL(","), ¬InValues TSRMLS_CC); ZEPHIR_INIT_LNVAR(_28$$9); ZEPHIR_CONCAT_VSVS(&_28$$9, &attribute, " NOT IN (", &_27$$9, ")"); - zephir_array_append(&exceptConditions, &_28$$9, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 311); + zephir_array_append(&exceptConditions, &_28$$9, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 330); } else { ZEPHIR_SINIT_NVAR(_29$$12); ZVAL_LONG(&_29$$12, index); ZEPHIR_INIT_LNVAR(_30$$12); ZEPHIR_CONCAT_VSV(&_30$$12, &attribute, " <> ?", &_29$$12); - zephir_array_append(&exceptConditions, &_30$$12, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 313); + zephir_array_append(&exceptConditions, &_30$$12, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 332); zephir_array_update_multi(¶ms, &fieldExcept TSRMLS_CC, SL("sa"), 3, SL("bind")); index++; } @@ -979,7 +673,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZEPHIR_CALL_METHOD(&attribute, this_ptr, "getcolumnnamereal", &_5, 0, record, &_31$$13); zephir_check_call_status(); if (Z_TYPE_P(&fieldExcept) == IS_ARRAY) { - zephir_is_iterable(&fieldExcept, 0, "phalcon/Validation/Validator/Uniqueness.zep", 311); + zephir_is_iterable(&fieldExcept, 0, "phalcon/Validation/Validator/Uniqueness.zep", 330); if (Z_TYPE_P(&fieldExcept) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&fieldExcept), _33$$14) { @@ -989,7 +683,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZVAL_LONG(&_35$$15, index); ZEPHIR_INIT_LNVAR(_36$$15); ZEPHIR_CONCAT_SV(&_36$$15, "?", &_35$$15); - zephir_array_append(¬InValues, &_36$$15, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 306); + zephir_array_append(¬InValues, &_36$$15, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 325); zephir_array_update_multi(¶ms, &singleExcept TSRMLS_CC, SL("sa"), 3, SL("bind")); index++; } ZEND_HASH_FOREACH_END(); @@ -1008,7 +702,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZVAL_LONG(&_37$$16, index); ZEPHIR_INIT_LNVAR(_38$$16); ZEPHIR_CONCAT_SV(&_38$$16, "?", &_37$$16); - zephir_array_append(¬InValues, &_38$$16, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 306); + zephir_array_append(¬InValues, &_38$$16, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 325); zephir_array_update_multi(¶ms, &singleExcept TSRMLS_CC, SL("sa"), 3, SL("bind")); index++; ZEPHIR_CALL_METHOD(NULL, &fieldExcept, "next", NULL, 0); @@ -1020,13 +714,13 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { zephir_fast_join_str(&_39$$14, SL(","), ¬InValues TSRMLS_CC); ZEPHIR_INIT_LNVAR(_40$$14); ZEPHIR_CONCAT_VSVS(&_40$$14, &attribute, " NOT IN (", &_39$$14, ")"); - zephir_array_append(&exceptConditions, &_40$$14, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 311); + zephir_array_append(&exceptConditions, &_40$$14, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 330); } else { ZEPHIR_SINIT_NVAR(_41$$17); ZVAL_LONG(&_41$$17, index); ZEPHIR_INIT_LNVAR(_42$$17); ZEPHIR_CONCAT_VSV(&_42$$17, &attribute, " <> ?", &_41$$17); - zephir_array_append(&exceptConditions, &_42$$17, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 313); + zephir_array_append(&exceptConditions, &_42$$17, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 332); zephir_array_update_multi(¶ms, &fieldExcept TSRMLS_CC, SL("sa"), 3, SL("bind")); index++; } @@ -1037,7 +731,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZEPHIR_INIT_NVAR(&fieldExcept); ZEPHIR_INIT_NVAR(&singleField); } else if (zephir_fast_count_int(&field TSRMLS_CC) == 1) { - zephir_array_fetch_long(&_44$$18, &field, 0, PH_NOISY | PH_READONLY, "phalcon/Validation/Validator/Uniqueness.zep", 321 TSRMLS_CC); + zephir_array_fetch_long(&_44$$18, &field, 0, PH_NOISY | PH_READONLY, "phalcon/Validation/Validator/Uniqueness.zep", 340 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_45$$18); ZVAL_STRING(&_45$$18, "attribute"); ZEPHIR_CALL_METHOD(&_43$$18, this_ptr, "getoption", NULL, 0, &_45$$18, &_44$$18); @@ -1045,7 +739,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZEPHIR_CALL_METHOD(&attribute, this_ptr, "getcolumnnamereal", &_5, 0, record, &_43$$18); zephir_check_call_status(); if (Z_TYPE_P(&except) == IS_ARRAY) { - zephir_is_iterable(&except, 0, "phalcon/Validation/Validator/Uniqueness.zep", 331); + zephir_is_iterable(&except, 0, "phalcon/Validation/Validator/Uniqueness.zep", 350); if (Z_TYPE_P(&except) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&except), _46$$19) { @@ -1055,7 +749,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZVAL_LONG(&_48$$20, index); ZEPHIR_INIT_LNVAR(_49$$20); ZEPHIR_CONCAT_SV(&_49$$20, "?", &_48$$20); - zephir_array_append(¬InValues, &_49$$20, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 326); + zephir_array_append(¬InValues, &_49$$20, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 345); zephir_array_update_multi(¶ms, &singleExcept TSRMLS_CC, SL("sa"), 3, SL("bind")); index++; } ZEND_HASH_FOREACH_END(); @@ -1074,7 +768,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZVAL_LONG(&_50$$21, index); ZEPHIR_INIT_LNVAR(_51$$21); ZEPHIR_CONCAT_SV(&_51$$21, "?", &_50$$21); - zephir_array_append(¬InValues, &_51$$21, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 326); + zephir_array_append(¬InValues, &_51$$21, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 345); zephir_array_update_multi(¶ms, &singleExcept TSRMLS_CC, SL("sa"), 3, SL("bind")); index++; ZEPHIR_CALL_METHOD(NULL, &except, "next", NULL, 0); @@ -1086,7 +780,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { zephir_fast_join_str(&_52$$19, SL(","), ¬InValues TSRMLS_CC); ZEPHIR_INIT_LNVAR(_53$$19); ZEPHIR_CONCAT_VSVS(&_53$$19, &attribute, " NOT IN (", &_52$$19, ")"); - zephir_array_append(&exceptConditions, &_53$$19, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 331); + zephir_array_append(&exceptConditions, &_53$$19, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 350); } else { ZEPHIR_SINIT_NVAR(_54$$22); ZVAL_LONG(&_54$$22, index); @@ -1097,7 +791,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { index++; } } else if (zephir_fast_count_int(&field TSRMLS_CC) > 1) { - zephir_is_iterable(&field, 0, "phalcon/Validation/Validator/Uniqueness.zep", 358); + zephir_is_iterable(&field, 0, "phalcon/Validation/Validator/Uniqueness.zep", 377); if (Z_TYPE_P(&field) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&field), _56$$23) { @@ -1110,7 +804,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZEPHIR_CALL_METHOD(&attribute, this_ptr, "getcolumnnamereal", &_5, 0, record, &_58$$24); zephir_check_call_status(); if (Z_TYPE_P(&except) == IS_ARRAY) { - zephir_is_iterable(&except, 0, "phalcon/Validation/Validator/Uniqueness.zep", 351); + zephir_is_iterable(&except, 0, "phalcon/Validation/Validator/Uniqueness.zep", 370); if (Z_TYPE_P(&except) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&except), _60$$25) { @@ -1120,7 +814,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZVAL_LONG(&_62$$26, index); ZEPHIR_INIT_LNVAR(_63$$26); ZEPHIR_CONCAT_SV(&_63$$26, "?", &_62$$26); - zephir_array_append(¬InValues, &_63$$26, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 346); + zephir_array_append(¬InValues, &_63$$26, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 365); zephir_array_update_multi(¶ms, &singleExcept TSRMLS_CC, SL("sa"), 3, SL("bind")); index++; } ZEND_HASH_FOREACH_END(); @@ -1139,7 +833,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZVAL_LONG(&_64$$27, index); ZEPHIR_INIT_LNVAR(_65$$27); ZEPHIR_CONCAT_SV(&_65$$27, "?", &_64$$27); - zephir_array_append(¬InValues, &_65$$27, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 346); + zephir_array_append(¬InValues, &_65$$27, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 365); zephir_array_update_multi(¶ms, &singleExcept TSRMLS_CC, SL("sa"), 3, SL("bind")); index++; ZEPHIR_CALL_METHOD(NULL, &except, "next", NULL, 0); @@ -1151,7 +845,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { zephir_fast_join_str(&_66$$25, SL(","), ¬InValues TSRMLS_CC); ZEPHIR_INIT_LNVAR(_67$$25); ZEPHIR_CONCAT_VSVS(&_67$$25, &attribute, " NOT IN (", &_66$$25, ")"); - zephir_array_append(&exceptConditions, &_67$$25, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 351); + zephir_array_append(&exceptConditions, &_67$$25, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 370); } else { ZEPHIR_SINIT_NVAR(_68$$28); ZVAL_LONG(&_68$$28, index); @@ -1180,7 +874,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZEPHIR_CALL_METHOD(&attribute, this_ptr, "getcolumnnamereal", &_5, 0, record, &_70$$29); zephir_check_call_status(); if (Z_TYPE_P(&except) == IS_ARRAY) { - zephir_is_iterable(&except, 0, "phalcon/Validation/Validator/Uniqueness.zep", 351); + zephir_is_iterable(&except, 0, "phalcon/Validation/Validator/Uniqueness.zep", 370); if (Z_TYPE_P(&except) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&except), _72$$30) { @@ -1190,7 +884,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZVAL_LONG(&_74$$31, index); ZEPHIR_INIT_LNVAR(_75$$31); ZEPHIR_CONCAT_SV(&_75$$31, "?", &_74$$31); - zephir_array_append(¬InValues, &_75$$31, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 346); + zephir_array_append(¬InValues, &_75$$31, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 365); zephir_array_update_multi(¶ms, &singleExcept TSRMLS_CC, SL("sa"), 3, SL("bind")); index++; } ZEND_HASH_FOREACH_END(); @@ -1209,7 +903,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZVAL_LONG(&_76$$32, index); ZEPHIR_INIT_LNVAR(_77$$32); ZEPHIR_CONCAT_SV(&_77$$32, "?", &_76$$32); - zephir_array_append(¬InValues, &_77$$32, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 346); + zephir_array_append(¬InValues, &_77$$32, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 365); zephir_array_update_multi(¶ms, &singleExcept TSRMLS_CC, SL("sa"), 3, SL("bind")); index++; ZEPHIR_CALL_METHOD(NULL, &except, "next", NULL, 0); @@ -1221,7 +915,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { zephir_fast_join_str(&_78$$30, SL(","), ¬InValues TSRMLS_CC); ZEPHIR_INIT_LNVAR(_79$$30); ZEPHIR_CONCAT_VSVS(&_79$$30, &attribute, " NOT IN (", &_78$$30, ")"); - zephir_array_append(&exceptConditions, &_79$$30, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 351); + zephir_array_append(&exceptConditions, &_79$$30, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 370); } else { ZEPHIR_SINIT_NVAR(_80$$33); ZVAL_LONG(&_80$$33, index); @@ -1255,7 +949,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZEPHIR_INIT_NVAR(¬InValues); array_init(¬InValues); ZEPHIR_OBS_NVAR(&value); - zephir_array_fetch(&value, &values, &singleField, PH_NOISY, "phalcon/Validation/Validator/Uniqueness.zep", 283 TSRMLS_CC); + zephir_array_fetch(&value, &values, &singleField, PH_NOISY, "phalcon/Validation/Validator/Uniqueness.zep", 302 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_82$$34); ZVAL_STRING(&_82$$34, "attribute"); ZEPHIR_CALL_METHOD(&attribute, this_ptr, "getoption", NULL, 0, &_82$$34, &singleField); @@ -1288,7 +982,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { _87$$37 = !ZEPHIR_IS_IDENTICAL(&_88$$37, &_91$$37); } if (_87$$37) { - zephir_is_iterable(&except, 0, "phalcon/Validation/Validator/Uniqueness.zep", 318); + zephir_is_iterable(&except, 0, "phalcon/Validation/Validator/Uniqueness.zep", 337); if (Z_TYPE_P(&except) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&except), _94$$38, _95$$38, _92$$38) { @@ -1307,7 +1001,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZEPHIR_CALL_METHOD(&attribute, this_ptr, "getcolumnnamereal", &_5, 0, record, &_96$$39); zephir_check_call_status(); if (Z_TYPE_P(&fieldExcept) == IS_ARRAY) { - zephir_is_iterable(&fieldExcept, 0, "phalcon/Validation/Validator/Uniqueness.zep", 311); + zephir_is_iterable(&fieldExcept, 0, "phalcon/Validation/Validator/Uniqueness.zep", 330); if (Z_TYPE_P(&fieldExcept) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&fieldExcept), _98$$40) { @@ -1317,7 +1011,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZVAL_LONG(&_100$$41, index); ZEPHIR_INIT_LNVAR(_101$$41); ZEPHIR_CONCAT_SV(&_101$$41, "?", &_100$$41); - zephir_array_append(¬InValues, &_101$$41, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 306); + zephir_array_append(¬InValues, &_101$$41, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 325); zephir_array_update_multi(¶ms, &singleExcept TSRMLS_CC, SL("sa"), 3, SL("bind")); index++; } ZEND_HASH_FOREACH_END(); @@ -1336,7 +1030,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZVAL_LONG(&_102$$42, index); ZEPHIR_INIT_LNVAR(_103$$42); ZEPHIR_CONCAT_SV(&_103$$42, "?", &_102$$42); - zephir_array_append(¬InValues, &_103$$42, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 306); + zephir_array_append(¬InValues, &_103$$42, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 325); zephir_array_update_multi(¶ms, &singleExcept TSRMLS_CC, SL("sa"), 3, SL("bind")); index++; ZEPHIR_CALL_METHOD(NULL, &fieldExcept, "next", NULL, 0); @@ -1348,13 +1042,13 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { zephir_fast_join_str(&_104$$40, SL(","), ¬InValues TSRMLS_CC); ZEPHIR_INIT_LNVAR(_105$$40); ZEPHIR_CONCAT_VSVS(&_105$$40, &attribute, " NOT IN (", &_104$$40, ")"); - zephir_array_append(&exceptConditions, &_105$$40, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 311); + zephir_array_append(&exceptConditions, &_105$$40, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 330); } else { ZEPHIR_SINIT_NVAR(_106$$43); ZVAL_LONG(&_106$$43, index); ZEPHIR_INIT_LNVAR(_107$$43); ZEPHIR_CONCAT_VSV(&_107$$43, &attribute, " <> ?", &_106$$43); - zephir_array_append(&exceptConditions, &_107$$43, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 313); + zephir_array_append(&exceptConditions, &_107$$43, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 332); zephir_array_update_multi(¶ms, &fieldExcept TSRMLS_CC, SL("sa"), 3, SL("bind")); index++; } @@ -1379,7 +1073,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZEPHIR_CALL_METHOD(&attribute, this_ptr, "getcolumnnamereal", &_5, 0, record, &_108$$44); zephir_check_call_status(); if (Z_TYPE_P(&fieldExcept) == IS_ARRAY) { - zephir_is_iterable(&fieldExcept, 0, "phalcon/Validation/Validator/Uniqueness.zep", 311); + zephir_is_iterable(&fieldExcept, 0, "phalcon/Validation/Validator/Uniqueness.zep", 330); if (Z_TYPE_P(&fieldExcept) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&fieldExcept), _110$$45) { @@ -1389,7 +1083,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZVAL_LONG(&_112$$46, index); ZEPHIR_INIT_LNVAR(_113$$46); ZEPHIR_CONCAT_SV(&_113$$46, "?", &_112$$46); - zephir_array_append(¬InValues, &_113$$46, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 306); + zephir_array_append(¬InValues, &_113$$46, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 325); zephir_array_update_multi(¶ms, &singleExcept TSRMLS_CC, SL("sa"), 3, SL("bind")); index++; } ZEND_HASH_FOREACH_END(); @@ -1408,7 +1102,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZVAL_LONG(&_114$$47, index); ZEPHIR_INIT_LNVAR(_115$$47); ZEPHIR_CONCAT_SV(&_115$$47, "?", &_114$$47); - zephir_array_append(¬InValues, &_115$$47, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 306); + zephir_array_append(¬InValues, &_115$$47, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 325); zephir_array_update_multi(¶ms, &singleExcept TSRMLS_CC, SL("sa"), 3, SL("bind")); index++; ZEPHIR_CALL_METHOD(NULL, &fieldExcept, "next", NULL, 0); @@ -1420,13 +1114,13 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { zephir_fast_join_str(&_116$$45, SL(","), ¬InValues TSRMLS_CC); ZEPHIR_INIT_LNVAR(_117$$45); ZEPHIR_CONCAT_VSVS(&_117$$45, &attribute, " NOT IN (", &_116$$45, ")"); - zephir_array_append(&exceptConditions, &_117$$45, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 311); + zephir_array_append(&exceptConditions, &_117$$45, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 330); } else { ZEPHIR_SINIT_NVAR(_118$$48); ZVAL_LONG(&_118$$48, index); ZEPHIR_INIT_LNVAR(_119$$48); ZEPHIR_CONCAT_VSV(&_119$$48, &attribute, " <> ?", &_118$$48); - zephir_array_append(&exceptConditions, &_119$$48, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 313); + zephir_array_append(&exceptConditions, &_119$$48, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 332); zephir_array_update_multi(¶ms, &fieldExcept TSRMLS_CC, SL("sa"), 3, SL("bind")); index++; } @@ -1437,7 +1131,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZEPHIR_INIT_NVAR(&fieldExcept); ZEPHIR_INIT_NVAR(&singleField); } else if (zephir_fast_count_int(&field TSRMLS_CC) == 1) { - zephir_array_fetch_long(&_121$$49, &field, 0, PH_NOISY | PH_READONLY, "phalcon/Validation/Validator/Uniqueness.zep", 321 TSRMLS_CC); + zephir_array_fetch_long(&_121$$49, &field, 0, PH_NOISY | PH_READONLY, "phalcon/Validation/Validator/Uniqueness.zep", 340 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_122$$49); ZVAL_STRING(&_122$$49, "attribute"); ZEPHIR_CALL_METHOD(&_120$$49, this_ptr, "getoption", NULL, 0, &_122$$49, &_121$$49); @@ -1445,7 +1139,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZEPHIR_CALL_METHOD(&attribute, this_ptr, "getcolumnnamereal", &_5, 0, record, &_120$$49); zephir_check_call_status(); if (Z_TYPE_P(&except) == IS_ARRAY) { - zephir_is_iterable(&except, 0, "phalcon/Validation/Validator/Uniqueness.zep", 331); + zephir_is_iterable(&except, 0, "phalcon/Validation/Validator/Uniqueness.zep", 350); if (Z_TYPE_P(&except) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&except), _123$$50) { @@ -1455,7 +1149,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZVAL_LONG(&_125$$51, index); ZEPHIR_INIT_LNVAR(_126$$51); ZEPHIR_CONCAT_SV(&_126$$51, "?", &_125$$51); - zephir_array_append(¬InValues, &_126$$51, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 326); + zephir_array_append(¬InValues, &_126$$51, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 345); zephir_array_update_multi(¶ms, &singleExcept TSRMLS_CC, SL("sa"), 3, SL("bind")); index++; } ZEND_HASH_FOREACH_END(); @@ -1474,7 +1168,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZVAL_LONG(&_127$$52, index); ZEPHIR_INIT_LNVAR(_128$$52); ZEPHIR_CONCAT_SV(&_128$$52, "?", &_127$$52); - zephir_array_append(¬InValues, &_128$$52, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 326); + zephir_array_append(¬InValues, &_128$$52, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 345); zephir_array_update_multi(¶ms, &singleExcept TSRMLS_CC, SL("sa"), 3, SL("bind")); index++; ZEPHIR_CALL_METHOD(NULL, &except, "next", NULL, 0); @@ -1486,7 +1180,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { zephir_fast_join_str(&_129$$50, SL(","), ¬InValues TSRMLS_CC); ZEPHIR_INIT_LNVAR(_130$$50); ZEPHIR_CONCAT_VSVS(&_130$$50, &attribute, " NOT IN (", &_129$$50, ")"); - zephir_array_append(&exceptConditions, &_130$$50, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 331); + zephir_array_append(&exceptConditions, &_130$$50, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 350); } else { ZEPHIR_SINIT_NVAR(_131$$53); ZVAL_LONG(&_131$$53, index); @@ -1497,7 +1191,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { index++; } } else if (zephir_fast_count_int(&field TSRMLS_CC) > 1) { - zephir_is_iterable(&field, 0, "phalcon/Validation/Validator/Uniqueness.zep", 358); + zephir_is_iterable(&field, 0, "phalcon/Validation/Validator/Uniqueness.zep", 377); if (Z_TYPE_P(&field) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&field), _133$$54) { @@ -1510,7 +1204,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZEPHIR_CALL_METHOD(&attribute, this_ptr, "getcolumnnamereal", &_5, 0, record, &_135$$55); zephir_check_call_status(); if (Z_TYPE_P(&except) == IS_ARRAY) { - zephir_is_iterable(&except, 0, "phalcon/Validation/Validator/Uniqueness.zep", 351); + zephir_is_iterable(&except, 0, "phalcon/Validation/Validator/Uniqueness.zep", 370); if (Z_TYPE_P(&except) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&except), _137$$56) { @@ -1520,7 +1214,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZVAL_LONG(&_139$$57, index); ZEPHIR_INIT_LNVAR(_140$$57); ZEPHIR_CONCAT_SV(&_140$$57, "?", &_139$$57); - zephir_array_append(¬InValues, &_140$$57, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 346); + zephir_array_append(¬InValues, &_140$$57, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 365); zephir_array_update_multi(¶ms, &singleExcept TSRMLS_CC, SL("sa"), 3, SL("bind")); index++; } ZEND_HASH_FOREACH_END(); @@ -1539,7 +1233,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZVAL_LONG(&_141$$58, index); ZEPHIR_INIT_LNVAR(_142$$58); ZEPHIR_CONCAT_SV(&_142$$58, "?", &_141$$58); - zephir_array_append(¬InValues, &_142$$58, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 346); + zephir_array_append(¬InValues, &_142$$58, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 365); zephir_array_update_multi(¶ms, &singleExcept TSRMLS_CC, SL("sa"), 3, SL("bind")); index++; ZEPHIR_CALL_METHOD(NULL, &except, "next", NULL, 0); @@ -1551,7 +1245,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { zephir_fast_join_str(&_143$$56, SL(","), ¬InValues TSRMLS_CC); ZEPHIR_INIT_LNVAR(_144$$56); ZEPHIR_CONCAT_VSVS(&_144$$56, &attribute, " NOT IN (", &_143$$56, ")"); - zephir_array_append(&exceptConditions, &_144$$56, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 351); + zephir_array_append(&exceptConditions, &_144$$56, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 370); } else { ZEPHIR_SINIT_NVAR(_145$$59); ZVAL_LONG(&_145$$59, index); @@ -1580,7 +1274,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZEPHIR_CALL_METHOD(&attribute, this_ptr, "getcolumnnamereal", &_5, 0, record, &_147$$60); zephir_check_call_status(); if (Z_TYPE_P(&except) == IS_ARRAY) { - zephir_is_iterable(&except, 0, "phalcon/Validation/Validator/Uniqueness.zep", 351); + zephir_is_iterable(&except, 0, "phalcon/Validation/Validator/Uniqueness.zep", 370); if (Z_TYPE_P(&except) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&except), _149$$61) { @@ -1590,7 +1284,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZVAL_LONG(&_151$$62, index); ZEPHIR_INIT_LNVAR(_152$$62); ZEPHIR_CONCAT_SV(&_152$$62, "?", &_151$$62); - zephir_array_append(¬InValues, &_152$$62, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 346); + zephir_array_append(¬InValues, &_152$$62, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 365); zephir_array_update_multi(¶ms, &singleExcept TSRMLS_CC, SL("sa"), 3, SL("bind")); index++; } ZEND_HASH_FOREACH_END(); @@ -1609,7 +1303,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { ZVAL_LONG(&_153$$63, index); ZEPHIR_INIT_LNVAR(_154$$63); ZEPHIR_CONCAT_SV(&_154$$63, "?", &_153$$63); - zephir_array_append(¬InValues, &_154$$63, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 346); + zephir_array_append(¬InValues, &_154$$63, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 365); zephir_array_update_multi(¶ms, &singleExcept TSRMLS_CC, SL("sa"), 3, SL("bind")); index++; ZEPHIR_CALL_METHOD(NULL, &except, "next", NULL, 0); @@ -1621,7 +1315,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { zephir_fast_join_str(&_155$$61, SL(","), ¬InValues TSRMLS_CC); ZEPHIR_INIT_LNVAR(_156$$61); ZEPHIR_CONCAT_VSVS(&_156$$61, &attribute, " NOT IN (", &_155$$61, ")"); - zephir_array_append(&exceptConditions, &_156$$61, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 351); + zephir_array_append(&exceptConditions, &_156$$61, PH_SEPARATE, "phalcon/Validation/Validator/Uniqueness.zep", 370); } else { ZEPHIR_SINIT_NVAR(_157$$64); ZVAL_LONG(&_157$$64, index); @@ -1654,7 +1348,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_162$$65, &metaData, "getprimarykeyattributes", NULL, 0, record); zephir_check_call_status(); - zephir_is_iterable(&_162$$65, 0, "phalcon/Validation/Validator/Uniqueness.zep", 377); + zephir_is_iterable(&_162$$65, 0, "phalcon/Validation/Validator/Uniqueness.zep", 396); if (Z_TYPE_P(&_162$$65) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_162$$65), _163$$65) { @@ -1712,7 +1406,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { zephir_array_update_multi(¶ms, &_176$$68 TSRMLS_CC, SL("sa"), 3, SL("conditions")); } ZEPHIR_INIT_NVAR(&_0); - zephir_array_fetch_string(&_177, ¶ms, SL("conditions"), PH_NOISY | PH_READONLY, "phalcon/Validation/Validator/Uniqueness.zep", 386 TSRMLS_CC); + zephir_array_fetch_string(&_177, ¶ms, SL("conditions"), PH_NOISY | PH_READONLY, "phalcon/Validation/Validator/Uniqueness.zep", 405 TSRMLS_CC); zephir_fast_join_str(&_0, SL(" AND "), &_177 TSRMLS_CC); zephir_array_update_string(¶ms, SL("conditions"), &_0, PH_COPY | PH_SEPARATE); RETURN_CCTOR(¶ms); diff --git a/ext/phalcon/validation/validator/uniqueness.zep.h b/ext/phalcon/validation/validator/uniqueness.zep.h index 65123d3b173..fb8d84bbd0f 100644 --- a/ext/phalcon/validation/validator/uniqueness.zep.h +++ b/ext/phalcon/validation/validator/uniqueness.zep.h @@ -6,7 +6,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Validation_Validator_Uniqueness); PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, validate); PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, getColumnNameReal); PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniqueness); -PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessCollection); PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel); #if PHP_VERSION_ID >= 70200 @@ -40,12 +39,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_validation_validator_uni ZEND_ARG_INFO(0, field) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_uniqueness_isuniquenesscollection, 0, 0, 3) - ZEND_ARG_INFO(0, record) - ZEND_ARG_ARRAY_INFO(0, field, 0) - ZEND_ARG_ARRAY_INFO(0, values, 0) -ZEND_END_ARG_INFO() - ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_uniqueness_isuniquenessmodel, 0, 0, 3) ZEND_ARG_INFO(0, record) ZEND_ARG_ARRAY_INFO(0, field, 0) @@ -56,7 +49,6 @@ ZEPHIR_INIT_FUNCS(phalcon_validation_validator_uniqueness_method_entry) { PHP_ME(Phalcon_Validation_Validator_Uniqueness, validate, arginfo_phalcon_validation_validator_uniqueness_validate, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Validator_Uniqueness, getColumnNameReal, arginfo_phalcon_validation_validator_uniqueness_getcolumnnamereal, ZEND_ACC_PROTECTED) PHP_ME(Phalcon_Validation_Validator_Uniqueness, isUniqueness, arginfo_phalcon_validation_validator_uniqueness_isuniqueness, ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Validation_Validator_Uniqueness, isUniquenessCollection, arginfo_phalcon_validation_validator_uniqueness_isuniquenesscollection, ZEND_ACC_PROTECTED) PHP_ME(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel, arginfo_phalcon_validation_validator_uniqueness_isuniquenessmodel, ZEND_ACC_PROTECTED) PHP_FE_END }; From b95e43ee1313f8229d5eed760d728db685007fd9 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Sat, 7 Sep 2019 16:11:58 -0400 Subject: [PATCH 106/202] [4.0.x] - Removed unecessary tests --- tests/unit/Flash/ClearCest.php | 31 ---------------------- tests/unit/Flash/ConstructCest.php | 31 ---------------------- tests/unit/Flash/ErrorCest.php | 31 ---------------------- tests/unit/Flash/GetAutoescapeCest.php | 31 ---------------------- tests/unit/Flash/GetCustomTemplateCest.php | 30 --------------------- tests/unit/Flash/GetDICest.php | 31 ---------------------- tests/unit/Flash/GetEscaperServiceCest.php | 31 ---------------------- tests/unit/Flash/MessageCest.php | 31 ---------------------- tests/unit/Flash/NoticeCest.php | 31 ---------------------- tests/unit/Flash/OutputMessageCest.php | 31 ---------------------- tests/unit/Flash/SetAutoescapeCest.php | 31 ---------------------- tests/unit/Flash/SetAutomaticHtmlCest.php | 31 ---------------------- tests/unit/Flash/SetCssClassesCest.php | 31 ---------------------- tests/unit/Flash/SetCustomTemplateCest.php | 30 --------------------- tests/unit/Flash/SetDICest.php | 31 ---------------------- tests/unit/Flash/SetEscaperServiceCest.php | 31 ---------------------- tests/unit/Flash/SetImplicitFlushCest.php | 31 ---------------------- tests/unit/Flash/SuccessCest.php | 31 ---------------------- tests/unit/Flash/WarningCest.php | 31 ---------------------- 19 files changed, 587 deletions(-) delete mode 100644 tests/unit/Flash/ClearCest.php delete mode 100644 tests/unit/Flash/ConstructCest.php delete mode 100644 tests/unit/Flash/ErrorCest.php delete mode 100644 tests/unit/Flash/GetAutoescapeCest.php delete mode 100644 tests/unit/Flash/GetCustomTemplateCest.php delete mode 100644 tests/unit/Flash/GetDICest.php delete mode 100644 tests/unit/Flash/GetEscaperServiceCest.php delete mode 100644 tests/unit/Flash/MessageCest.php delete mode 100644 tests/unit/Flash/NoticeCest.php delete mode 100644 tests/unit/Flash/OutputMessageCest.php delete mode 100644 tests/unit/Flash/SetAutoescapeCest.php delete mode 100644 tests/unit/Flash/SetAutomaticHtmlCest.php delete mode 100644 tests/unit/Flash/SetCssClassesCest.php delete mode 100644 tests/unit/Flash/SetCustomTemplateCest.php delete mode 100644 tests/unit/Flash/SetDICest.php delete mode 100644 tests/unit/Flash/SetEscaperServiceCest.php delete mode 100644 tests/unit/Flash/SetImplicitFlushCest.php delete mode 100644 tests/unit/Flash/SuccessCest.php delete mode 100644 tests/unit/Flash/WarningCest.php diff --git a/tests/unit/Flash/ClearCest.php b/tests/unit/Flash/ClearCest.php deleted file mode 100644 index cffddeace19..00000000000 --- a/tests/unit/Flash/ClearCest.php +++ /dev/null @@ -1,31 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Unit\Flash; - -use UnitTester; - -class ClearCest -{ - /** - * Tests Phalcon\Flash :: clear() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function flashClear(UnitTester $I) - { - $I->wantToTest('Flash - clear()'); - - $I->skipTest('Need implementation'); - } -} diff --git a/tests/unit/Flash/ConstructCest.php b/tests/unit/Flash/ConstructCest.php deleted file mode 100644 index b471af06e3b..00000000000 --- a/tests/unit/Flash/ConstructCest.php +++ /dev/null @@ -1,31 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Unit\Flash; - -use UnitTester; - -class ConstructCest -{ - /** - * Tests Phalcon\Flash :: __construct() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function flashConstruct(UnitTester $I) - { - $I->wantToTest('Flash - __construct()'); - - $I->skipTest('Need implementation'); - } -} diff --git a/tests/unit/Flash/ErrorCest.php b/tests/unit/Flash/ErrorCest.php deleted file mode 100644 index 5aa0d1cd5c4..00000000000 --- a/tests/unit/Flash/ErrorCest.php +++ /dev/null @@ -1,31 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Unit\Flash; - -use UnitTester; - -class ErrorCest -{ - /** - * Tests Phalcon\Flash :: error() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function flashError(UnitTester $I) - { - $I->wantToTest('Flash - error()'); - - $I->skipTest('Need implementation'); - } -} diff --git a/tests/unit/Flash/GetAutoescapeCest.php b/tests/unit/Flash/GetAutoescapeCest.php deleted file mode 100644 index 01b616e84db..00000000000 --- a/tests/unit/Flash/GetAutoescapeCest.php +++ /dev/null @@ -1,31 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Unit\Flash; - -use UnitTester; - -class GetAutoescapeCest -{ - /** - * Tests Phalcon\Flash :: getAutoescape() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function flashGetAutoescape(UnitTester $I) - { - $I->wantToTest('Flash - getAutoescape()'); - - $I->skipTest('Need implementation'); - } -} diff --git a/tests/unit/Flash/GetCustomTemplateCest.php b/tests/unit/Flash/GetCustomTemplateCest.php deleted file mode 100644 index 2005d470f31..00000000000 --- a/tests/unit/Flash/GetCustomTemplateCest.php +++ /dev/null @@ -1,30 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Unit\Flash; - -use UnitTester; - -class GetCustomTemplateCest -{ - /** - * Tests Phalcon\Flash :: getCustomTemplate() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function flashGetCustomTemplate(UnitTester $I) - { - $I->wantToTest('Flash - getCustomTemplate()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/unit/Flash/GetDICest.php b/tests/unit/Flash/GetDICest.php deleted file mode 100644 index e6c6c5dc7cc..00000000000 --- a/tests/unit/Flash/GetDICest.php +++ /dev/null @@ -1,31 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Unit\Flash; - -use UnitTester; - -class GetDICest -{ - /** - * Tests Phalcon\Flash :: getDI() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function flashGetDI(UnitTester $I) - { - $I->wantToTest('Flash - getDI()'); - - $I->skipTest('Need implementation'); - } -} diff --git a/tests/unit/Flash/GetEscaperServiceCest.php b/tests/unit/Flash/GetEscaperServiceCest.php deleted file mode 100644 index ce2fe993f2f..00000000000 --- a/tests/unit/Flash/GetEscaperServiceCest.php +++ /dev/null @@ -1,31 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Unit\Flash; - -use UnitTester; - -class GetEscaperServiceCest -{ - /** - * Tests Phalcon\Flash :: getEscaperService() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function flashGetEscaperService(UnitTester $I) - { - $I->wantToTest('Flash - getEscaperService()'); - - $I->skipTest('Need implementation'); - } -} diff --git a/tests/unit/Flash/MessageCest.php b/tests/unit/Flash/MessageCest.php deleted file mode 100644 index e4d4b3c5052..00000000000 --- a/tests/unit/Flash/MessageCest.php +++ /dev/null @@ -1,31 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Unit\Flash; - -use UnitTester; - -class MessageCest -{ - /** - * Tests Phalcon\Flash :: message() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function flashMessage(UnitTester $I) - { - $I->wantToTest('Flash - message()'); - - $I->skipTest('Need implementation'); - } -} diff --git a/tests/unit/Flash/NoticeCest.php b/tests/unit/Flash/NoticeCest.php deleted file mode 100644 index bcfb21eea15..00000000000 --- a/tests/unit/Flash/NoticeCest.php +++ /dev/null @@ -1,31 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Unit\Flash; - -use UnitTester; - -class NoticeCest -{ - /** - * Tests Phalcon\Flash :: notice() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function flashNotice(UnitTester $I) - { - $I->wantToTest('Flash - notice()'); - - $I->skipTest('Need implementation'); - } -} diff --git a/tests/unit/Flash/OutputMessageCest.php b/tests/unit/Flash/OutputMessageCest.php deleted file mode 100644 index 3a5cd67c8cb..00000000000 --- a/tests/unit/Flash/OutputMessageCest.php +++ /dev/null @@ -1,31 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Unit\Flash; - -use UnitTester; - -class OutputMessageCest -{ - /** - * Tests Phalcon\Flash :: outputMessage() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function flashOutputMessage(UnitTester $I) - { - $I->wantToTest('Flash - outputMessage()'); - - $I->skipTest('Need implementation'); - } -} diff --git a/tests/unit/Flash/SetAutoescapeCest.php b/tests/unit/Flash/SetAutoescapeCest.php deleted file mode 100644 index e8ff37588f6..00000000000 --- a/tests/unit/Flash/SetAutoescapeCest.php +++ /dev/null @@ -1,31 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Unit\Flash; - -use UnitTester; - -class SetAutoescapeCest -{ - /** - * Tests Phalcon\Flash :: setAutoescape() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function flashSetAutoescape(UnitTester $I) - { - $I->wantToTest('Flash - setAutoescape()'); - - $I->skipTest('Need implementation'); - } -} diff --git a/tests/unit/Flash/SetAutomaticHtmlCest.php b/tests/unit/Flash/SetAutomaticHtmlCest.php deleted file mode 100644 index 7c714a0bfc3..00000000000 --- a/tests/unit/Flash/SetAutomaticHtmlCest.php +++ /dev/null @@ -1,31 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Unit\Flash; - -use UnitTester; - -class SetAutomaticHtmlCest -{ - /** - * Tests Phalcon\Flash :: setAutomaticHtml() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function flashSetAutomaticHtml(UnitTester $I) - { - $I->wantToTest('Flash - setAutomaticHtml()'); - - $I->skipTest('Need implementation'); - } -} diff --git a/tests/unit/Flash/SetCssClassesCest.php b/tests/unit/Flash/SetCssClassesCest.php deleted file mode 100644 index dcfb0517f1b..00000000000 --- a/tests/unit/Flash/SetCssClassesCest.php +++ /dev/null @@ -1,31 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Unit\Flash; - -use UnitTester; - -class SetCssClassesCest -{ - /** - * Tests Phalcon\Flash :: setCssClasses() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function flashSetCssClasses(UnitTester $I) - { - $I->wantToTest('Flash - setCssClasses()'); - - $I->skipTest('Need implementation'); - } -} diff --git a/tests/unit/Flash/SetCustomTemplateCest.php b/tests/unit/Flash/SetCustomTemplateCest.php deleted file mode 100644 index 1d60aa0d64e..00000000000 --- a/tests/unit/Flash/SetCustomTemplateCest.php +++ /dev/null @@ -1,30 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Unit\Flash; - -use UnitTester; - -class SetCustomTemplateCest -{ - /** - * Tests Phalcon\Flash :: setCustomTemplate() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function flashSetCustomTemplate(UnitTester $I) - { - $I->wantToTest('Flash - setCustomTemplate()'); - $I->skipTest('Need implementation'); - } -} diff --git a/tests/unit/Flash/SetDICest.php b/tests/unit/Flash/SetDICest.php deleted file mode 100644 index 6aaafbbc2e8..00000000000 --- a/tests/unit/Flash/SetDICest.php +++ /dev/null @@ -1,31 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Unit\Flash; - -use UnitTester; - -class SetDICest -{ - /** - * Tests Phalcon\Flash :: setDI() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function flashSetDI(UnitTester $I) - { - $I->wantToTest('Flash - setDI()'); - - $I->skipTest('Need implementation'); - } -} diff --git a/tests/unit/Flash/SetEscaperServiceCest.php b/tests/unit/Flash/SetEscaperServiceCest.php deleted file mode 100644 index 0d39a4741e2..00000000000 --- a/tests/unit/Flash/SetEscaperServiceCest.php +++ /dev/null @@ -1,31 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Unit\Flash; - -use UnitTester; - -class SetEscaperServiceCest -{ - /** - * Tests Phalcon\Flash :: setEscaperService() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function flashSetEscaperService(UnitTester $I) - { - $I->wantToTest('Flash - setEscaperService()'); - - $I->skipTest('Need implementation'); - } -} diff --git a/tests/unit/Flash/SetImplicitFlushCest.php b/tests/unit/Flash/SetImplicitFlushCest.php deleted file mode 100644 index 042788e282a..00000000000 --- a/tests/unit/Flash/SetImplicitFlushCest.php +++ /dev/null @@ -1,31 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Unit\Flash; - -use UnitTester; - -class SetImplicitFlushCest -{ - /** - * Tests Phalcon\Flash :: setImplicitFlush() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function flashSetImplicitFlush(UnitTester $I) - { - $I->wantToTest('Flash - setImplicitFlush()'); - - $I->skipTest('Need implementation'); - } -} diff --git a/tests/unit/Flash/SuccessCest.php b/tests/unit/Flash/SuccessCest.php deleted file mode 100644 index 2059cc26739..00000000000 --- a/tests/unit/Flash/SuccessCest.php +++ /dev/null @@ -1,31 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Unit\Flash; - -use UnitTester; - -class SuccessCest -{ - /** - * Tests Phalcon\Flash :: success() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function flashSuccess(UnitTester $I) - { - $I->wantToTest('Flash - success()'); - - $I->skipTest('Need implementation'); - } -} diff --git a/tests/unit/Flash/WarningCest.php b/tests/unit/Flash/WarningCest.php deleted file mode 100644 index 09100aadb5c..00000000000 --- a/tests/unit/Flash/WarningCest.php +++ /dev/null @@ -1,31 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Test\Unit\Flash; - -use UnitTester; - -class WarningCest -{ - /** - * Tests Phalcon\Flash :: warning() - * - * @author Phalcon Team - * @since 2018-11-13 - */ - public function flashWarning(UnitTester $I) - { - $I->wantToTest('Flash - warning()'); - - $I->skipTest('Need implementation'); - } -} From b2c72e83c5ed4202075566ba2642c28c6672e32c Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Sat, 7 Sep 2019 16:12:13 -0400 Subject: [PATCH 107/202] [4.0.x] - Added getCssClasses --- ext/phalcon/flash/abstractflash.zep.c | 40 +++++++++++++++++---------- ext/phalcon/flash/abstractflash.zep.h | 27 ++++++++++++------ phalcon/Flash/AbstractFlash.zep | 12 ++------ 3 files changed, 45 insertions(+), 34 deletions(-) diff --git a/ext/phalcon/flash/abstractflash.zep.c b/ext/phalcon/flash/abstractflash.zep.c index b54155a12e8..da9e1261f0c 100644 --- a/ext/phalcon/flash/abstractflash.zep.c +++ b/ext/phalcon/flash/abstractflash.zep.c @@ -91,6 +91,28 @@ ZEPHIR_INIT_CLASS(Phalcon_Flash_AbstractFlash) { } +/** + */ +PHP_METHOD(Phalcon_Flash_AbstractFlash, getCssClasses) { + + zval *this_ptr = getThis(); + + + RETURN_MEMBER(getThis(), "cssClasses"); + +} + +/** + */ +PHP_METHOD(Phalcon_Flash_AbstractFlash, getCustomTemplate) { + + zval *this_ptr = getThis(); + + + RETURN_MEMBER(getThis(), "customTemplate"); + +} + /** * Phalcon\Flash constructor */ @@ -196,18 +218,6 @@ PHP_METHOD(Phalcon_Flash_AbstractFlash, getAutoescape) { } -/** - * Returns the custom template set - */ -PHP_METHOD(Phalcon_Flash_AbstractFlash, getCustomTemplate) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "customTemplate"); - -} - /** * Returns the Escaper Service */ @@ -250,7 +260,7 @@ PHP_METHOD(Phalcon_Flash_AbstractFlash, getEscaperService) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 5, &_3$$4); zephir_check_call_status(); - zephir_throw_exception_debug(&_2$$4, "phalcon/Flash/AbstractFlash.zep", 138 TSRMLS_CC); + zephir_throw_exception_debug(&_2$$4, "phalcon/Flash/AbstractFlash.zep", 130 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -273,7 +283,7 @@ PHP_METHOD(Phalcon_Flash_AbstractFlash, getEscaperService) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_10$$6, "__construct", NULL, 5, &_11$$6); zephir_check_call_status(); - zephir_throw_exception_debug(&_10$$6, "phalcon/Flash/AbstractFlash.zep", 146 TSRMLS_CC); + zephir_throw_exception_debug(&_10$$6, "phalcon/Flash/AbstractFlash.zep", 138 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -540,7 +550,7 @@ PHP_METHOD(Phalcon_Flash_AbstractFlash, outputMessage) { ZEPHIR_INIT_VAR(&content); ZVAL_STRING(&content, ""); } - zephir_is_iterable(message, 0, "phalcon/Flash/AbstractFlash.zep", 286); + zephir_is_iterable(message, 0, "phalcon/Flash/AbstractFlash.zep", 278); if (Z_TYPE_P(message) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(message), _1$$3) { diff --git a/ext/phalcon/flash/abstractflash.zep.h b/ext/phalcon/flash/abstractflash.zep.h index c459bf1d52f..892253a3fae 100644 --- a/ext/phalcon/flash/abstractflash.zep.h +++ b/ext/phalcon/flash/abstractflash.zep.h @@ -3,11 +3,12 @@ extern zend_class_entry *phalcon_flash_abstractflash_ce; ZEPHIR_INIT_CLASS(Phalcon_Flash_AbstractFlash); +PHP_METHOD(Phalcon_Flash_AbstractFlash, getCssClasses); +PHP_METHOD(Phalcon_Flash_AbstractFlash, getCustomTemplate); PHP_METHOD(Phalcon_Flash_AbstractFlash, __construct); PHP_METHOD(Phalcon_Flash_AbstractFlash, clear); PHP_METHOD(Phalcon_Flash_AbstractFlash, error); PHP_METHOD(Phalcon_Flash_AbstractFlash, getAutoescape); -PHP_METHOD(Phalcon_Flash_AbstractFlash, getCustomTemplate); PHP_METHOD(Phalcon_Flash_AbstractFlash, getEscaperService); PHP_METHOD(Phalcon_Flash_AbstractFlash, notice); PHP_METHOD(Phalcon_Flash_AbstractFlash, setAutoescape); @@ -24,6 +25,20 @@ PHP_METHOD(Phalcon_Flash_AbstractFlash, prepareEscapedMessage); PHP_METHOD(Phalcon_Flash_AbstractFlash, prepareHtmlMessage); zend_object *zephir_init_properties_Phalcon_Flash_AbstractFlash(zend_class_entry *class_type TSRMLS_DC); +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_abstractflash_getcssclasses, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_abstractflash_getcssclasses, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_abstractflash_getcustomtemplate, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_abstractflash_getcustomtemplate, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_flash_abstractflash___construct, 0, 0, 0) ZEND_ARG_OBJ_INFO(0, escaper, Phalcon\\Escaper\\EscaperInterface, 1) ZEND_ARG_OBJ_INFO(0, session, Phalcon\\Session\\ManagerInterface, 1) @@ -48,13 +63,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_abstractflash_geta #endif ZEND_END_ARG_INFO() -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_abstractflash_getcustomtemplate, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_abstractflash_getcustomtemplate, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_flash_abstractflash_getescaperservice, 0, 0, Phalcon\\Escaper\\EscaperInterface, 0) #else @@ -213,11 +221,12 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_abstractflash_prep ZEND_END_ARG_INFO() ZEPHIR_INIT_FUNCS(phalcon_flash_abstractflash_method_entry) { + PHP_ME(Phalcon_Flash_AbstractFlash, getCssClasses, arginfo_phalcon_flash_abstractflash_getcssclasses, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Flash_AbstractFlash, getCustomTemplate, arginfo_phalcon_flash_abstractflash_getcustomtemplate, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, __construct, arginfo_phalcon_flash_abstractflash___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) PHP_ME(Phalcon_Flash_AbstractFlash, clear, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, error, arginfo_phalcon_flash_abstractflash_error, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, getAutoescape, arginfo_phalcon_flash_abstractflash_getautoescape, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Flash_AbstractFlash, getCustomTemplate, arginfo_phalcon_flash_abstractflash_getcustomtemplate, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, getEscaperService, arginfo_phalcon_flash_abstractflash_getescaperservice, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, notice, arginfo_phalcon_flash_abstractflash_notice, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, setAutoescape, arginfo_phalcon_flash_abstractflash_setautoescape, ZEND_ACC_PUBLIC) diff --git a/phalcon/Flash/AbstractFlash.zep b/phalcon/Flash/AbstractFlash.zep index c2adc967541..7e76eead75c 100644 --- a/phalcon/Flash/AbstractFlash.zep +++ b/phalcon/Flash/AbstractFlash.zep @@ -41,12 +41,12 @@ abstract class AbstractFlash extends AbstractInjectionAware implements FlashInte /** * @var array */ - protected cssClasses = []; + protected cssClasses = [] { get }; /** * @var string */ - protected customTemplate = ""; + protected customTemplate = "" { get }; /** * @var EscaperInterface | null @@ -112,14 +112,6 @@ abstract class AbstractFlash extends AbstractInjectionAware implements FlashInte return this->autoescape; } - /** - * Returns the custom template set - */ - public function getCustomTemplate() -> string - { - return this->customTemplate; - } - /** * Returns the Escaper Service */ From 8f185e4818c5c52f82640c20a328a8b9344beadd Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 8 Sep 2019 11:41:25 +0300 Subject: [PATCH 108/202] Check gd extension on test Phalcon Closes https://github.com/phalcon/cphalcon/issues/14348 --- composer.json | 1 + tests/_data/fixtures/Traits/GdTrait.php | 22 +++++++++++++++---- tests/unit/Image/Adapter/Gd/GetHeightCest.php | 3 +++ tests/unit/Image/Adapter/Gd/GetMimeCest.php | 3 +++ .../unit/Image/Adapter/Gd/GetVersionCest.php | 3 +++ tests/unit/Image/Adapter/Gd/GetWidthCest.php | 4 +++- 6 files changed, 31 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index 22a557539a8..e42de104e96 100644 --- a/composer.json +++ b/composer.json @@ -41,6 +41,7 @@ "psr/simple-cache": "^1.0" }, "require-dev": { + "ext-gd": "*", "ext-dom": "*", "ext-json": "*", "ext-libxml": "*", diff --git a/tests/_data/fixtures/Traits/GdTrait.php b/tests/_data/fixtures/Traits/GdTrait.php index 4fce64ef91e..f65ae3022ec 100644 --- a/tests/_data/fixtures/Traits/GdTrait.php +++ b/tests/_data/fixtures/Traits/GdTrait.php @@ -40,8 +40,9 @@ private function getImages(): array /** * @param string $image path to image - * @param string $hash expected hasd - * @param int $simility percent of similarity + * @param string $hash expected hash + * @param float $simility percent of similarity + * @return bool */ private function checkImageHash(string $image, string $hash, float $simility = 95.0): bool { @@ -56,8 +57,11 @@ private function checkImageHash(string $image, string $hash, float $simility = 9 * as hashes. * * @author https://github.com/xwiz/phash + * * @param array|string $hash1 * @param array|string $hash2 + * @param int $precision + * @return float */ private function getSimilarityHamming($hash1, $hash2, int $precision = 1): float { @@ -92,6 +96,8 @@ private function getSimilarityHamming($hash1, $hash2, int $precision = 1): float /** * @author https://github.com/xwiz/phash + * + * @param string $filepath * @return array|string */ private function getHash(string $filepath) @@ -120,7 +126,7 @@ private function getHash(string $filepath) return 'the image format is not supported. supported formats: ' . $supportedFormats; } - //test image for same size + // test image for same size $width = imagesx($img); $height = imagesy($img); @@ -129,6 +135,8 @@ private function getHash(string $filepath) } $averageValue = 0; + $grayscale = []; + for ($y = 0; $y < $scale; $y++) { for ($x = 0; $x < $scale; $x++) { // get the rgb value for current pixel @@ -163,8 +171,10 @@ private function getHash(string $filepath) /** * @author https://github.com/xwiz/phash - * @param $hash + * + * @param array $hash * @param bool $hex + * @return string|null */ private function hashAsString(array $hash, $hex = true): ?string { @@ -190,6 +200,7 @@ private function hashAsString(array $hash, $hex = true): ?string /** * @author https://github.com/xwiz/phash + * * @param $img * @param $thumbwidth * @param $thumbheight @@ -213,6 +224,7 @@ private function makeThumbnail($img, int $thumbwidth, int $thumbheight, int $wid /** * @author https://github.com/xwiz/phash + * * @param $dst_image * @param $src_image * @param $dst_x @@ -224,6 +236,7 @@ private function makeThumbnail($img, int $thumbwidth, int $thumbheight, int $wid * @param $src_w * @param $src_h * @param int $quality + * @return bool */ private function fastimagecopyresampled( &$dst_image, @@ -294,6 +307,7 @@ private function fastimagecopyresampled( * Performs a left shift on the supplied binary array * * @author https://github.com/xwiz/phash + * * @param array binary array to perform shift on * @param int integer value to shift * @param int amount of places to left shift diff --git a/tests/unit/Image/Adapter/Gd/GetHeightCest.php b/tests/unit/Image/Adapter/Gd/GetHeightCest.php index 39189921bf1..3fa48dbd6d9 100644 --- a/tests/unit/Image/Adapter/Gd/GetHeightCest.php +++ b/tests/unit/Image/Adapter/Gd/GetHeightCest.php @@ -13,10 +13,13 @@ namespace Phalcon\Test\Unit\Image\Adapter\Gd; use Phalcon\Image\Adapter\Gd; +use Phalcon\Test\Fixtures\Traits\GdTrait; use UnitTester; class GetHeightCest { + use GdTrait; + /** * Tests Phalcon\Image\Adapter\Gd :: getHeight() * diff --git a/tests/unit/Image/Adapter/Gd/GetMimeCest.php b/tests/unit/Image/Adapter/Gd/GetMimeCest.php index 8c618783360..c13e7d533ee 100644 --- a/tests/unit/Image/Adapter/Gd/GetMimeCest.php +++ b/tests/unit/Image/Adapter/Gd/GetMimeCest.php @@ -13,10 +13,13 @@ namespace Phalcon\Test\Unit\Image\Adapter\Gd; use Phalcon\Image\Adapter\Gd; +use Phalcon\Test\Fixtures\Traits\GdTrait; use UnitTester; class GetMimeCest { + use GdTrait; + /** * Tests Phalcon\Image\Adapter\Gd :: getMime() * diff --git a/tests/unit/Image/Adapter/Gd/GetVersionCest.php b/tests/unit/Image/Adapter/Gd/GetVersionCest.php index 77d0984fc8d..a24d8ef70ae 100644 --- a/tests/unit/Image/Adapter/Gd/GetVersionCest.php +++ b/tests/unit/Image/Adapter/Gd/GetVersionCest.php @@ -13,10 +13,13 @@ namespace Phalcon\Test\Unit\Image\Adapter\Gd; use Phalcon\Image\Adapter\Gd; +use Phalcon\Test\Fixtures\Traits\GdTrait; use UnitTester; class GetVersionCest { + use GdTrait; + /** * Unit Tests Phalcon\Image\Adapter\Gd :: getVersion() * diff --git a/tests/unit/Image/Adapter/Gd/GetWidthCest.php b/tests/unit/Image/Adapter/Gd/GetWidthCest.php index ce22130296a..d8d17169a07 100644 --- a/tests/unit/Image/Adapter/Gd/GetWidthCest.php +++ b/tests/unit/Image/Adapter/Gd/GetWidthCest.php @@ -13,10 +13,13 @@ namespace Phalcon\Test\Unit\Image\Adapter\Gd; use Phalcon\Image\Adapter\Gd; +use Phalcon\Test\Fixtures\Traits\GdTrait; use UnitTester; class GetWidthCest { + use GdTrait; + /** * Tests Phalcon\Image\Adapter\Gd :: getWidth() * @@ -35,7 +38,6 @@ public function imageAdapterGdGetWidthJpg(UnitTester $I) ); } - /** * Tests Phalcon\Image\Adapter\Gd :: getWidth() * From d7b106a516b1ad75f6a2ebcbb58e1937788c1b13 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 8 Sep 2019 12:14:21 +0300 Subject: [PATCH 109/202] Allow install PHP deps on Travis CI w/o gd extension --- .travis.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f2bc3e6ef7c..d2d87754bba 100644 --- a/.travis.yml +++ b/.travis.yml @@ -56,9 +56,15 @@ before_install: fi [ -d ~/bin ] || mkdir ~/bin - export DEFAULT_COMPOSER_FLAGS=("--no-interaction" "--no-ansi" "--no-progress" "--no-suggest") export PHP_PEAR_PHP_BIN="$(phpenv which php)" + DEFAULT_COMPOSER_FLAGS=("--no-interaction" "--no-ansi" "--no-progress" "--no-suggest") + if [ "$(php-config --vernum)" -ge "70400" ] + then + DEFAULT_COMPOSER_FLAGS+=("--ignore-platform-reqs") + fi + export DEFAULT_COMPOSER_FLAGS + # Hide "You are in 'detached HEAD' state" message git config --global advice.detachedHead false From 38b5eca5db984f0a342a19d3316e65cd76728a7a Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Sun, 8 Sep 2019 10:31:20 -0400 Subject: [PATCH 110/202] [#14364] - Minor adjustment to the getter --- phalcon/Flash/AbstractFlash.zep | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/phalcon/Flash/AbstractFlash.zep b/phalcon/Flash/AbstractFlash.zep index 7e76eead75c..5f7abfc8365 100644 --- a/phalcon/Flash/AbstractFlash.zep +++ b/phalcon/Flash/AbstractFlash.zep @@ -31,7 +31,7 @@ abstract class AbstractFlash extends AbstractInjectionAware implements FlashInte /** * @var bool */ - protected autoescape = true; + protected autoescape = true { get }; /** * @var bool @@ -104,14 +104,6 @@ abstract class AbstractFlash extends AbstractInjectionAware implements FlashInte return this->{"message"}("error", message); } - /** - * Returns the autoescape mode in generated html - */ - public function getAutoescape() -> bool - { - return this->autoescape; - } - /** * Returns the Escaper Service */ From a9084180c5e86a89d4650462ade37ab75e23f756 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Sun, 8 Sep 2019 10:31:36 -0400 Subject: [PATCH 111/202] [#14364] - Corrected URL to the docs --- phalcon/Debug.zep | 83 ++++++++++++++++++++++++++++------------------- 1 file changed, 50 insertions(+), 33 deletions(-) diff --git a/phalcon/Debug.zep b/phalcon/Debug.zep index 7654009ef88..218a18d293c 100644 --- a/phalcon/Debug.zep +++ b/phalcon/Debug.zep @@ -92,9 +92,12 @@ class Debug let uri = this->uri; - let sources = ""; - let sources .= ""; - let sources .= ""; + let sources = "" + . "" + . ""; return sources; } @@ -108,11 +111,16 @@ class Debug let uri = this->uri; - let sources = ""; - let sources .= ""; - let sources .= ""; - let sources .= ""; - let sources .= ""; + let sources = "" + . "" + . "" + . "" + . ""; return sources; } @@ -231,8 +239,10 @@ class Debug * CSS static sources to style the error presentation * Use the exception info as document's title */ - let html = "" . className . ": " . escapedMessage . ""; - let html .= this->getCssSources() . ""; + let html = "" + . "" . className . ": " . escapedMessage . "" + . this->getCssSources() + . ""; /** * Get the version link @@ -242,10 +252,11 @@ class Debug /** * Main exception info */ - let html .= "
        "; - let html .= "

        " . className . ": " . escapedMessage . "

        "; - let html .= "" . exception->getFile() . " (" . exception->getLine() . ")"; - let html .= "
        "; + let html .= "
        " + . "
        " + . "

        " . className . ": " . escapedMessage . "

        " + . "" . exception->getFile() . " (" . exception->getLine() . ")" + . "
        "; let showBackTrace = this->showBackTrace; @@ -258,12 +269,12 @@ class Debug /** * Create the tabs in the page */ - let html .= "
          "; - let html .= "
        • Backtrace
        • "; - let html .= "
        • Request
        • "; - let html .= "
        • Server
        • "; - let html .= "
        • Included Files
        • "; - let html .= "
        • Memory
        • "; + let html .= "
            " + . "
          • Backtrace
          • " + . "
          • Request
          • " + . "
          • Server
          • " + . "
          • Included Files
          • " + . "
          • Memory
          • "; if typeof dataVars == "array" { let html .= "
          • Variables
          • "; @@ -288,8 +299,9 @@ class Debug /** * Print _REQUEST superglobal */ - let html .= "
            "; - let html .= ""; + let html .= "
            " + . "
            KeyValue
            " + . ""; let blacklist = Arr::get(this->blacklist, "request", []); for keyRequest, value in _REQUEST { @@ -307,8 +319,9 @@ class Debug /** * Print _SERVER superglobal */ - let html .= "
            KeyValue
            "; - let html .= ""; + let html .= "
            " + . "
            KeyValue
            " + . ""; let blacklist = Arr::get(this->blacklist, "server", []); for keyServer, value in _SERVER { @@ -322,8 +335,9 @@ class Debug /** * Show included files */ - let html .= "
            KeyValue
            "; - let html .= ""; + let html .= "
            " + . "
            #Path
            " + . ""; for keyFile, value in get_included_files() { let html .= ""; @@ -334,16 +348,18 @@ class Debug /** * Memory usage */ - let html .= "
            #Path
            " . keyFile . "" . value . "
            "; - let html .= ""; - let html .= "
            Memory
            Usage" . memory_get_usage(true) . "
            "; + let html .= "
            " + . "" + . "" + . "
            Memory
            Usage" . memory_get_usage(true) . "
            "; /** * Print extra variables passed to the component */ if typeof dataVars == "array" { - let html .= "
            "; - let html .= ""; + let html .= "
            " + . "
            KeyValue
            " + . ""; for keyVar, dataVar in dataVars { let html .= ""; @@ -597,7 +613,7 @@ class Debug classReflection, prepareUriClass, functionName, functionReflection, traceArgs, arguments, argument, filez, line, showFiles, lines, numberLines, showFileFragment, firstLine, lastLine, i, linePosition, - currentLine, classNameWithLink, functionNameWithLink; + currentLine, classNameWithLink, functionNameWithLink, parts; /** * Every trace in the backtrace have a unique number @@ -613,7 +629,8 @@ class Debug /** * Prepare the class name according to the Phalcon's conventions */ - let prepareUriClass = str_replace("\\", "_", className); + let parts = explode("\\", className); + let prepareUriClass = parts[0] . "_" . parts[1]; /** * Generate a link to the official docs From ad2d916b926ecc3b72c4b0ec9f3221934e537409 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Sun, 8 Sep 2019 10:44:22 -0400 Subject: [PATCH 112/202] [#14364] - Moved Filter to the root namespace (makes sense) --- phalcon/Di/Injectable.zep | 2 +- phalcon/{Filter => }/Filter.zep | 2 +- phalcon/Filter/FilterFactory.zep | 2 +- tests/cli/Di/FactoryDefault/Cli/ConstructCest.php | 2 +- tests/unit/Di/FactoryDefault/ConstructCest.php | 2 +- tests/unit/Filter/Filter/ConstructCest.php | 2 +- tests/unit/Filter/Filter/CustomCest.php | 6 +++--- tests/unit/Filter/Filter/GetSetHasCest.php | 10 +++++----- tests/unit/Filter/FilterFactory/NewInstanceCest.php | 2 +- 9 files changed, 15 insertions(+), 15 deletions(-) rename phalcon/{Filter => }/Filter.zep (99%) diff --git a/phalcon/Di/Injectable.zep b/phalcon/Di/Injectable.zep index cc45ae35bc9..2e58a67ae46 100644 --- a/phalcon/Di/Injectable.zep +++ b/phalcon/Di/Injectable.zep @@ -28,7 +28,7 @@ use Phalcon\Session\BagInterface; * @property \Phalcon\Http\Request|\Phalcon\Http\RequestInterface $request * @property \Phalcon\Http\Response|\Phalcon\Http\ResponseInterface $response * @property \Phalcon\Http\Response\Cookies|\Phalcon\Http\Response\CookiesInterface $cookies - * @property \Phalcon\Filter\FilterLocator $filter + * @property \Phalcon\Filter $filter * @property \Phalcon\Flash\Direct $flash * @property \Phalcon\Flash\Session $flashSession * @property \Phalcon\Session\ManagerInterface $session diff --git a/phalcon/Filter/Filter.zep b/phalcon/Filter.zep similarity index 99% rename from phalcon/Filter/Filter.zep rename to phalcon/Filter.zep index ccdc2653aed..6fc81b14735 100644 --- a/phalcon/Filter/Filter.zep +++ b/phalcon/Filter.zep @@ -8,7 +8,7 @@ * file that was distributed with this source code. */ -namespace Phalcon\Filter; +namespace Phalcon; use Closure; use Phalcon\Filter\Exception; diff --git a/phalcon/Filter/FilterFactory.zep b/phalcon/Filter/FilterFactory.zep index ba092c636a4..fc0f7d069ef 100644 --- a/phalcon/Filter/FilterFactory.zep +++ b/phalcon/Filter/FilterFactory.zep @@ -10,7 +10,7 @@ namespace Phalcon\Filter; -use Phalcon\Filter\Filter; +use Phalcon\Filter; class FilterFactory { diff --git a/tests/cli/Di/FactoryDefault/Cli/ConstructCest.php b/tests/cli/Di/FactoryDefault/Cli/ConstructCest.php index 8bae17a3313..449b6538cad 100644 --- a/tests/cli/Di/FactoryDefault/Cli/ConstructCest.php +++ b/tests/cli/Di/FactoryDefault/Cli/ConstructCest.php @@ -18,7 +18,7 @@ use Phalcon\Cli\Router; use Phalcon\Di\FactoryDefault\Cli; use Phalcon\Escaper; -use Phalcon\Filter\Filter; +use Phalcon\Filter; use Phalcon\Mvc\Model\MetaData\Memory; use Phalcon\Mvc\Model\Transaction\Manager; use Phalcon\Security; diff --git a/tests/unit/Di/FactoryDefault/ConstructCest.php b/tests/unit/Di/FactoryDefault/ConstructCest.php index 80a81d3cddb..c2ec6a46ef5 100644 --- a/tests/unit/Di/FactoryDefault/ConstructCest.php +++ b/tests/unit/Di/FactoryDefault/ConstructCest.php @@ -19,7 +19,7 @@ use Phalcon\Di\FactoryDefault; use Phalcon\Escaper; use Phalcon\Events\Manager as ManagerEvents; -use Phalcon\Filter\Filter; +use Phalcon\Filter; use Phalcon\Flash\Direct; use Phalcon\Flash\Session; use Phalcon\Http\Request; diff --git a/tests/unit/Filter/Filter/ConstructCest.php b/tests/unit/Filter/Filter/ConstructCest.php index cd396aa81e1..35a4f8a0ccb 100644 --- a/tests/unit/Filter/Filter/ConstructCest.php +++ b/tests/unit/Filter/Filter/ConstructCest.php @@ -13,7 +13,7 @@ namespace Phalcon\Test\Unit\Filter\Locator; use Phalcon\Filter\Exception; -use Phalcon\Filter\Filter; +use Phalcon\Filter; use UnitTester; class ConstructCest diff --git a/tests/unit/Filter/Filter/CustomCest.php b/tests/unit/Filter/Filter/CustomCest.php index 3c05c3503d0..974e278578c 100644 --- a/tests/unit/Filter/Filter/CustomCest.php +++ b/tests/unit/Filter/Filter/CustomCest.php @@ -12,14 +12,14 @@ namespace Phalcon\Test\Unit\Filter\Filter; -use Phalcon\Filter\Filter; +use Phalcon\Filter; use Phalcon\Test\Fixtures\Filter\Sanitize\IPv4; use UnitTester; class CustomCest { /** - * Tests Phalcon\Filter\Filter :: custom has() + * Tests Phalcon\Filter :: custom has() * * @author Phalcon Team * @since 2019-01-19 @@ -42,7 +42,7 @@ public function filterFilterCustomHas(UnitTester $I) } /** - * Tests Phalcon\Filter\Filter :: custom sanitizer + * Tests Phalcon\Filter :: custom sanitizer * * @author Phalcon Team * @since 2019-01-19 diff --git a/tests/unit/Filter/Filter/GetSetHasCest.php b/tests/unit/Filter/Filter/GetSetHasCest.php index 025de2f0524..120e7e1ce20 100644 --- a/tests/unit/Filter/Filter/GetSetHasCest.php +++ b/tests/unit/Filter/Filter/GetSetHasCest.php @@ -12,14 +12,14 @@ namespace Phalcon\Test\Unit\Filter; -use Phalcon\Filter\Filter; +use Phalcon\Filter; use Phalcon\Test\Fixtures\Service\HelloService; use UnitTester; class GetSetHasCest { /** - * Tests Phalcon\Filter\Filter :: get()/set()/has() - has() + * Tests Phalcon\Filter :: get()/set()/has() - has() * * @author Phalcon Team * @since 2019-01-19 @@ -40,7 +40,7 @@ public function filterFilterGetSetHasHas(UnitTester $I) } /** - * Tests Phalcon\Filter\Filter :: get()/set()/has() - get() + * Tests Phalcon\Filter :: get()/set()/has() - get() * * @author Phalcon Team * @since 2018-11-13 @@ -64,7 +64,7 @@ public function filterFilterLocatorGetSetHasGet(UnitTester $I) } /** - * Tests Phalcon\Filter\Filter :: get()/set()/has() - get() same + * Tests Phalcon\Filter :: get()/set()/has() - get() same * * @author Phalcon Team * @since 2018-11-13 @@ -93,7 +93,7 @@ public function filterFilterGetSetHasGetSame(UnitTester $I) } /** - * Tests Phalcon\Filter\Filter :: get()/set()/has() - set() + * Tests Phalcon\Filter :: get()/set()/has() - set() * * @author Phalcon Team * @since 2018-11-13 diff --git a/tests/unit/Filter/FilterFactory/NewInstanceCest.php b/tests/unit/Filter/FilterFactory/NewInstanceCest.php index a399da10645..55af8f1690a 100644 --- a/tests/unit/Filter/FilterFactory/NewInstanceCest.php +++ b/tests/unit/Filter/FilterFactory/NewInstanceCest.php @@ -13,7 +13,7 @@ namespace Phalcon\Test\Unit\Filter\FilterFactory; use Codeception\Example; -use Phalcon\Filter\Filter; +use Phalcon\Filter; use Phalcon\Filter\FilterFactory; use Phalcon\Filter\FilterInterface; use Phalcon\Filter\Sanitize\AbsInt; From a8dba950226bdeb6e52d7dde1965166429dcf0b8 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Sun, 8 Sep 2019 10:45:20 -0400 Subject: [PATCH 113/202] [#14364] - Removing ext files --- ext/phalcon/filter/filter.zep.c | 647 -------------------------------- ext/phalcon/filter/filter.zep.h | 101 ----- 2 files changed, 748 deletions(-) delete mode 100644 ext/phalcon/filter/filter.zep.c delete mode 100644 ext/phalcon/filter/filter.zep.h diff --git a/ext/phalcon/filter/filter.zep.c b/ext/phalcon/filter/filter.zep.c deleted file mode 100644 index ee5604552bf..00000000000 --- a/ext/phalcon/filter/filter.zep.c +++ /dev/null @@ -1,647 +0,0 @@ - -#ifdef HAVE_CONFIG_H -#include "../../ext_config.h" -#endif - -#include -#include "../../php_ext.h" -#include "../../ext.h" - -#include -#include -#include - -#include "kernel/main.h" -#include "kernel/fcall.h" -#include "kernel/memory.h" -#include "ext/spl/spl_exceptions.h" -#include "kernel/exception.h" -#include "kernel/object.h" -#include "kernel/array.h" -#include "kernel/concat.h" -#include "Zend/zend_closures.h" -#include "kernel/operators.h" - - -/** - * This file is part of the Phalcon Framework. - * - * (c) Phalcon Team - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ -/** - * Lazy loads, stores and exposes sanitizer objects - */ -ZEPHIR_INIT_CLASS(Phalcon_Filter_Filter) { - - ZEPHIR_REGISTER_CLASS(Phalcon\\Filter, Filter, phalcon, filter_filter, phalcon_filter_filter_method_entry, 0); - - /** - * @var array - */ - zend_declare_property_null(phalcon_filter_filter_ce, SL("mapper"), ZEND_ACC_PROTECTED TSRMLS_CC); - - /** - * @var array - */ - zend_declare_property_null(phalcon_filter_filter_ce, SL("services"), ZEND_ACC_PROTECTED TSRMLS_CC); - - phalcon_filter_filter_ce->create_object = zephir_init_properties_Phalcon_Filter_Filter; - zephir_declare_class_constant_string(phalcon_filter_filter_ce, SL("FILTER_ABSINT"), "absint"); - - zephir_declare_class_constant_string(phalcon_filter_filter_ce, SL("FILTER_ALNUM"), "alnum"); - - zephir_declare_class_constant_string(phalcon_filter_filter_ce, SL("FILTER_ALPHA"), "alpha"); - - zephir_declare_class_constant_string(phalcon_filter_filter_ce, SL("FILTER_BOOL"), "bool"); - - zephir_declare_class_constant_string(phalcon_filter_filter_ce, SL("FILTER_EMAIL"), "email"); - - zephir_declare_class_constant_string(phalcon_filter_filter_ce, SL("FILTER_FLOAT"), "float"); - - zephir_declare_class_constant_string(phalcon_filter_filter_ce, SL("FILTER_INT"), "int"); - - zephir_declare_class_constant_string(phalcon_filter_filter_ce, SL("FILTER_LOWER"), "lower"); - - zephir_declare_class_constant_string(phalcon_filter_filter_ce, SL("FILTER_LOWERFIRST"), "lowerFirst"); - - zephir_declare_class_constant_string(phalcon_filter_filter_ce, SL("FILTER_REGEX"), "regex"); - - zephir_declare_class_constant_string(phalcon_filter_filter_ce, SL("FILTER_REMOVE"), "remove"); - - zephir_declare_class_constant_string(phalcon_filter_filter_ce, SL("FILTER_REPLACE"), "replace"); - - zephir_declare_class_constant_string(phalcon_filter_filter_ce, SL("FILTER_SPECIAL"), "special"); - - zephir_declare_class_constant_string(phalcon_filter_filter_ce, SL("FILTER_SPECIALFULL"), "specialFull"); - - zephir_declare_class_constant_string(phalcon_filter_filter_ce, SL("FILTER_STRING"), "string"); - - zephir_declare_class_constant_string(phalcon_filter_filter_ce, SL("FILTER_STRIPTAGS"), "striptags"); - - zephir_declare_class_constant_string(phalcon_filter_filter_ce, SL("FILTER_TRIM"), "trim"); - - zephir_declare_class_constant_string(phalcon_filter_filter_ce, SL("FILTER_UPPER"), "upper"); - - zephir_declare_class_constant_string(phalcon_filter_filter_ce, SL("FILTER_UPPERFIRST"), "upperFirst"); - - zephir_declare_class_constant_string(phalcon_filter_filter_ce, SL("FILTER_UPPERWORDS"), "upperWords"); - - zephir_declare_class_constant_string(phalcon_filter_filter_ce, SL("FILTER_URL"), "url"); - - zend_class_implements(phalcon_filter_filter_ce TSRMLS_CC, 1, phalcon_filter_filterinterface_ce); - return SUCCESS; - -} - -/** - * Key value pairs with name as the key and a callable as the value for - * the service object - */ -PHP_METHOD(Phalcon_Filter_Filter, __construct) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *mapper_param = NULL; - zval mapper; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&mapper); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 0, 1, &mapper_param); - - if (!mapper_param) { - ZEPHIR_INIT_VAR(&mapper); - array_init(&mapper); - } else { - ZEPHIR_OBS_COPY_OR_DUP(&mapper, mapper_param); - } - - - ZEPHIR_CALL_METHOD(NULL, this_ptr, "init", NULL, 0, &mapper); - zephir_check_call_status(); - ZEPHIR_MM_RESTORE(); - -} - -/** - * Get a service. If it is not in the mapper array, create a new object, - * set it and then return it. - */ -PHP_METHOD(Phalcon_Filter_Filter, get) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *name_param = NULL, definition, _0, _3, _7, _8, _1$$3, _4$$4, _5$$5, _6$$6; - zval name, _2$$3; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&_2$$3); - ZVAL_UNDEF(&definition); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_3); - ZVAL_UNDEF(&_7); - ZVAL_UNDEF(&_8); - ZVAL_UNDEF(&_1$$3); - ZVAL_UNDEF(&_4$$4); - ZVAL_UNDEF(&_5$$5); - ZVAL_UNDEF(&_6$$6); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &name_param); - - if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { - zephir_get_strval(&name, name_param); - } else { - ZEPHIR_INIT_VAR(&name); - ZVAL_EMPTY_STRING(&name); - } - - - zephir_read_property(&_0, this_ptr, SL("mapper"), PH_NOISY_CC | PH_READONLY); - if (UNEXPECTED(!(zephir_array_isset(&_0, &name)))) { - ZEPHIR_INIT_VAR(&_1$$3); - object_init_ex(&_1$$3, phalcon_filter_exception_ce); - ZEPHIR_INIT_VAR(&_2$$3); - ZEPHIR_CONCAT_SVS(&_2$$3, "The service ", &name, " has not been found in the locator"); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 5, &_2$$3); - zephir_check_call_status(); - zephir_throw_exception_debug(&_1$$3, "phalcon/Filter/Filter.zep", 74 TSRMLS_CC); - ZEPHIR_MM_RESTORE(); - return; - } - zephir_read_property(&_3, this_ptr, SL("services"), PH_NOISY_CC | PH_READONLY); - if (!(zephir_array_isset(&_3, &name))) { - zephir_read_property(&_4$$4, this_ptr, SL("mapper"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_OBS_VAR(&definition); - zephir_array_fetch(&definition, &_4$$4, &name, PH_NOISY, "phalcon/Filter/Filter.zep", 78 TSRMLS_CC); - if (Z_TYPE_P(&definition) == IS_STRING) { - ZEPHIR_INIT_VAR(&_5$$5); - ZEPHIR_LAST_CALL_STATUS = zephir_create_instance(&_5$$5, &definition TSRMLS_CC); - zephir_check_call_status(); - zephir_update_property_array(this_ptr, SL("services"), &name, &_5$$5); - } else if (zephir_instance_of_ev(&definition, zend_ce_closure TSRMLS_CC)) { - ZEPHIR_INIT_VAR(&_6$$6); - ZEPHIR_CALL_USER_FUNC(&_6$$6, &definition); - zephir_check_call_status(); - zephir_update_property_array(this_ptr, SL("services"), &name, &_6$$6); - } else { - zephir_update_property_array(this_ptr, SL("services"), &name, &definition); - } - } - zephir_read_property(&_7, this_ptr, SL("services"), PH_NOISY_CC | PH_READONLY); - zephir_array_fetch(&_8, &_7, &name, PH_NOISY | PH_READONLY, "phalcon/Filter/Filter.zep", 88 TSRMLS_CC); - RETURN_CTOR(&_8); - -} - -/** - * Checks if a service exists in the map array - */ -PHP_METHOD(Phalcon_Filter_Filter, has) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *name_param = NULL, _0; - zval name; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&_0); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &name_param); - - if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { - zephir_get_strval(&name, name_param); - } else { - ZEPHIR_INIT_VAR(&name); - ZVAL_EMPTY_STRING(&name); - } - - - zephir_read_property(&_0, this_ptr, SL("mapper"), PH_NOISY_CC | PH_READONLY); - RETURN_MM_BOOL(zephir_array_isset(&_0, &name)); - -} - -/** - * Sanitizes a value with a specified single or set of sanitizers - */ -PHP_METHOD(Phalcon_Filter_Filter, sanitize) { - - zend_string *_3$$3; - zend_ulong _2$$3; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zephir_fcall_cache_entry *_6 = NULL, *_8 = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zend_bool noRecursive, _12, _4$$5, _9$$10; - zval *value = NULL, value_sub, *sanitizers, sanitizers_sub, *noRecursive_param = NULL, sanitizer, sanitizerKey, sanitizerName, sanitizerParams, *_0$$3, _1$$3, _5$$8, _7$$9, _10$$13, _11$$14; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&value_sub); - ZVAL_UNDEF(&sanitizers_sub); - ZVAL_UNDEF(&sanitizer); - ZVAL_UNDEF(&sanitizerKey); - ZVAL_UNDEF(&sanitizerName); - ZVAL_UNDEF(&sanitizerParams); - ZVAL_UNDEF(&_1$$3); - ZVAL_UNDEF(&_5$$8); - ZVAL_UNDEF(&_7$$9); - ZVAL_UNDEF(&_10$$13); - ZVAL_UNDEF(&_11$$14); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 2, 1, &value, &sanitizers, &noRecursive_param); - - ZEPHIR_SEPARATE_PARAM(value); - if (!noRecursive_param) { - noRecursive = 0; - } else { - noRecursive = zephir_get_boolval(noRecursive_param); - } - - - if (Z_TYPE_P(sanitizers) == IS_ARRAY) { - if (Z_TYPE_P(value) == IS_NULL) { - RETVAL_ZVAL(value, 1, 0); - RETURN_MM(); - } - zephir_is_iterable(sanitizers, 0, "phalcon/Filter/Filter.zep", 182); - if (Z_TYPE_P(sanitizers) == IS_ARRAY) { - ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(sanitizers), _2$$3, _3$$3, _0$$3) - { - ZEPHIR_INIT_NVAR(&sanitizerKey); - if (_3$$3 != NULL) { - ZVAL_STR_COPY(&sanitizerKey, _3$$3); - } else { - ZVAL_LONG(&sanitizerKey, _2$$3); - } - ZEPHIR_INIT_NVAR(&sanitizer); - ZVAL_COPY(&sanitizer, _0$$3); - if (Z_TYPE_P(&sanitizer) == IS_ARRAY) { - ZEPHIR_CPY_WRT(&sanitizerName, &sanitizerKey); - ZEPHIR_CPY_WRT(&sanitizerParams, &sanitizer); - } else { - ZEPHIR_CPY_WRT(&sanitizerName, &sanitizer); - ZEPHIR_INIT_NVAR(&sanitizerParams); - array_init(&sanitizerParams); - } - _4$$5 = Z_TYPE_P(value) == IS_ARRAY; - if (_4$$5) { - _4$$5 = !noRecursive; - } - if (_4$$5) { - ZEPHIR_CALL_METHOD(&_5$$8, this_ptr, "processarrayvalues", &_6, 231, value, &sanitizerName, &sanitizerParams); - zephir_check_call_status(); - ZEPHIR_CPY_WRT(value, &_5$$8); - } else { - ZEPHIR_CALL_METHOD(&_7$$9, this_ptr, "sanitizer", &_8, 232, value, &sanitizerName, &sanitizerParams); - zephir_check_call_status(); - ZEPHIR_CPY_WRT(value, &_7$$9); - } - } ZEND_HASH_FOREACH_END(); - } else { - ZEPHIR_CALL_METHOD(NULL, sanitizers, "rewind", NULL, 0); - zephir_check_call_status(); - while (1) { - ZEPHIR_CALL_METHOD(&_1$$3, sanitizers, "valid", NULL, 0); - zephir_check_call_status(); - if (!zend_is_true(&_1$$3)) { - break; - } - ZEPHIR_CALL_METHOD(&sanitizerKey, sanitizers, "key", NULL, 0); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&sanitizer, sanitizers, "current", NULL, 0); - zephir_check_call_status(); - if (Z_TYPE_P(&sanitizer) == IS_ARRAY) { - ZEPHIR_CPY_WRT(&sanitizerName, &sanitizerKey); - ZEPHIR_CPY_WRT(&sanitizerParams, &sanitizer); - } else { - ZEPHIR_CPY_WRT(&sanitizerName, &sanitizer); - ZEPHIR_INIT_NVAR(&sanitizerParams); - array_init(&sanitizerParams); - } - _9$$10 = Z_TYPE_P(value) == IS_ARRAY; - if (_9$$10) { - _9$$10 = !noRecursive; - } - if (_9$$10) { - ZEPHIR_CALL_METHOD(&_10$$13, this_ptr, "processarrayvalues", &_6, 231, value, &sanitizerName, &sanitizerParams); - zephir_check_call_status(); - ZEPHIR_CPY_WRT(value, &_10$$13); - } else { - ZEPHIR_CALL_METHOD(&_11$$14, this_ptr, "sanitizer", &_8, 232, value, &sanitizerName, &sanitizerParams); - zephir_check_call_status(); - ZEPHIR_CPY_WRT(value, &_11$$14); - } - ZEPHIR_CALL_METHOD(NULL, sanitizers, "next", NULL, 0); - zephir_check_call_status(); - } - } - ZEPHIR_INIT_NVAR(&sanitizer); - ZEPHIR_INIT_NVAR(&sanitizerKey); - RETVAL_ZVAL(value, 1, 0); - RETURN_MM(); - } - _12 = Z_TYPE_P(value) == IS_ARRAY; - if (_12) { - _12 = !noRecursive; - } - if (_12) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "processarrayvalues", &_6, 231, value, sanitizers); - zephir_check_call_status(); - RETURN_MM(); - } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "sanitizer", &_8, 232, value, sanitizers); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Set a new service to the mapper array - */ -PHP_METHOD(Phalcon_Filter_Filter, set) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *name_param = NULL, *service, service_sub, _0; - zval name; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&service_sub); - ZVAL_UNDEF(&_0); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 2, 0, &name_param, &service); - - if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { - zephir_get_strval(&name, name_param); - } else { - ZEPHIR_INIT_VAR(&name); - ZVAL_EMPTY_STRING(&name); - } - - - zephir_update_property_array(this_ptr, SL("mapper"), &name, service); - zephir_read_property(&_0, this_ptr, SL("services"), PH_NOISY_CC | PH_READONLY); - zephir_array_unset(&_0, &name, PH_SEPARATE); - ZEPHIR_MM_RESTORE(); - -} - -/** - * Loads the objects in the internal mapper array - */ -PHP_METHOD(Phalcon_Filter_Filter, init) { - - zend_string *_3; - zend_ulong _2; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zephir_fcall_cache_entry *_4 = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *mapper_param = NULL, name, service, *_0, _1; - zval mapper; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&mapper); - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&service); - ZVAL_UNDEF(&_1); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &mapper_param); - - ZEPHIR_OBS_COPY_OR_DUP(&mapper, mapper_param); - - - zephir_is_iterable(&mapper, 0, "phalcon/Filter/Filter.zep", 219); - if (Z_TYPE_P(&mapper) == IS_ARRAY) { - ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&mapper), _2, _3, _0) - { - ZEPHIR_INIT_NVAR(&name); - if (_3 != NULL) { - ZVAL_STR_COPY(&name, _3); - } else { - ZVAL_LONG(&name, _2); - } - ZEPHIR_INIT_NVAR(&service); - ZVAL_COPY(&service, _0); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "set", &_4, 0, &name, &service); - zephir_check_call_status(); - } ZEND_HASH_FOREACH_END(); - } else { - ZEPHIR_CALL_METHOD(NULL, &mapper, "rewind", NULL, 0); - zephir_check_call_status(); - while (1) { - ZEPHIR_CALL_METHOD(&_1, &mapper, "valid", NULL, 0); - zephir_check_call_status(); - if (!zend_is_true(&_1)) { - break; - } - ZEPHIR_CALL_METHOD(&name, &mapper, "key", NULL, 0); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&service, &mapper, "current", NULL, 0); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "set", &_4, 0, &name, &service); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &mapper, "next", NULL, 0); - zephir_check_call_status(); - } - } - ZEPHIR_INIT_NVAR(&service); - ZEPHIR_INIT_NVAR(&name); - ZEPHIR_MM_RESTORE(); - -} - -/** - * Processes the array values with the relevant sanitizers - */ -PHP_METHOD(Phalcon_Filter_Filter, processArrayValues) { - - zend_string *_3; - zend_ulong _2; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zephir_fcall_cache_entry *_5 = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval sanitizerName; - zval *values_param = NULL, *sanitizerName_param = NULL, *sanitizerParams_param = NULL, itemKey, itemValue, *_0, _1, _4$$3, _6$$4; - zval values, sanitizerParams, arrayValue; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&values); - ZVAL_UNDEF(&sanitizerParams); - ZVAL_UNDEF(&arrayValue); - ZVAL_UNDEF(&itemKey); - ZVAL_UNDEF(&itemValue); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&_4$$3); - ZVAL_UNDEF(&_6$$4); - ZVAL_UNDEF(&sanitizerName); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 2, 1, &values_param, &sanitizerName_param, &sanitizerParams_param); - - zephir_get_arrval(&values, values_param); - zephir_get_strval(&sanitizerName, sanitizerName_param); - if (!sanitizerParams_param) { - ZEPHIR_INIT_VAR(&sanitizerParams); - array_init(&sanitizerParams); - } else { - zephir_get_arrval(&sanitizerParams, sanitizerParams_param); - } - - - ZEPHIR_INIT_VAR(&arrayValue); - array_init(&arrayValue); - zephir_is_iterable(&values, 0, "phalcon/Filter/Filter.zep", 243); - if (Z_TYPE_P(&values) == IS_ARRAY) { - ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&values), _2, _3, _0) - { - ZEPHIR_INIT_NVAR(&itemKey); - if (_3 != NULL) { - ZVAL_STR_COPY(&itemKey, _3); - } else { - ZVAL_LONG(&itemKey, _2); - } - ZEPHIR_INIT_NVAR(&itemValue); - ZVAL_COPY(&itemValue, _0); - ZEPHIR_CALL_METHOD(&_4$$3, this_ptr, "sanitizer", &_5, 232, &itemValue, &sanitizerName, &sanitizerParams); - zephir_check_call_status(); - zephir_array_update_zval(&arrayValue, &itemKey, &_4$$3, PH_COPY | PH_SEPARATE); - } ZEND_HASH_FOREACH_END(); - } else { - ZEPHIR_CALL_METHOD(NULL, &values, "rewind", NULL, 0); - zephir_check_call_status(); - while (1) { - ZEPHIR_CALL_METHOD(&_1, &values, "valid", NULL, 0); - zephir_check_call_status(); - if (!zend_is_true(&_1)) { - break; - } - ZEPHIR_CALL_METHOD(&itemKey, &values, "key", NULL, 0); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&itemValue, &values, "current", NULL, 0); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_6$$4, this_ptr, "sanitizer", &_5, 232, &itemValue, &sanitizerName, &sanitizerParams); - zephir_check_call_status(); - zephir_array_update_zval(&arrayValue, &itemKey, &_6$$4, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, &values, "next", NULL, 0); - zephir_check_call_status(); - } - } - ZEPHIR_INIT_NVAR(&itemValue); - ZEPHIR_INIT_NVAR(&itemKey); - RETURN_CTOR(&arrayValue); - -} - -/** - * Internal sanitize wrapper for recursion - */ -PHP_METHOD(Phalcon_Filter_Filter, sanitizer) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval sanitizerParams, _1; - zval sanitizerName; - zval *value, value_sub, *sanitizerName_param = NULL, *sanitizerParams_param = NULL, sanitizerObject, params, _0; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&value_sub); - ZVAL_UNDEF(&sanitizerObject); - ZVAL_UNDEF(¶ms); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&sanitizerName); - ZVAL_UNDEF(&sanitizerParams); - ZVAL_UNDEF(&_1); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 2, 1, &value, &sanitizerName_param, &sanitizerParams_param); - - if (UNEXPECTED(Z_TYPE_P(sanitizerName_param) != IS_STRING && Z_TYPE_P(sanitizerName_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sanitizerName' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(sanitizerName_param) == IS_STRING)) { - zephir_get_strval(&sanitizerName, sanitizerName_param); - } else { - ZEPHIR_INIT_VAR(&sanitizerName); - ZVAL_EMPTY_STRING(&sanitizerName); - } - if (!sanitizerParams_param) { - ZEPHIR_INIT_VAR(&sanitizerParams); - array_init(&sanitizerParams); - } else { - zephir_get_arrval(&sanitizerParams, sanitizerParams_param); - } - - - ZEPHIR_CALL_METHOD(&_0, this_ptr, "has", NULL, 0, &sanitizerName); - zephir_check_call_status(); - if (!(zephir_is_true(&_0))) { - RETVAL_ZVAL(value, 1, 0); - RETURN_MM(); - } - ZEPHIR_CALL_METHOD(&sanitizerObject, this_ptr, "get", NULL, 0, &sanitizerName); - zephir_check_call_status(); - ZEPHIR_INIT_VAR(&_1); - zephir_create_array(&_1, 1, 0 TSRMLS_CC); - zephir_array_fast_append(&_1, value); - ZEPHIR_INIT_VAR(¶ms); - zephir_fast_array_merge(¶ms, &_1, &sanitizerParams TSRMLS_CC); - ZEPHIR_CALL_USER_FUNC_ARRAY(return_value, &sanitizerObject, ¶ms); - zephir_check_call_status(); - RETURN_MM(); - -} - -zend_object *zephir_init_properties_Phalcon_Filter_Filter(zend_class_entry *class_type TSRMLS_DC) { - - zval _0, _2, _1$$3, _3$$4; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_2); - ZVAL_UNDEF(&_1$$3); - ZVAL_UNDEF(&_3$$4); - - ZEPHIR_MM_GROW(); - - { - zval local_this_ptr, *this_ptr = &local_this_ptr; - ZEPHIR_CREATE_OBJECT(this_ptr, class_type); - zephir_read_property(&_0, this_ptr, SL("services"), PH_NOISY_CC | PH_READONLY); - if (Z_TYPE_P(&_0) == IS_NULL) { - ZEPHIR_INIT_VAR(&_1$$3); - array_init(&_1$$3); - zephir_update_property_zval(this_ptr, SL("services"), &_1$$3); - } - zephir_read_property(&_2, this_ptr, SL("mapper"), PH_NOISY_CC | PH_READONLY); - if (Z_TYPE_P(&_2) == IS_NULL) { - ZEPHIR_INIT_VAR(&_3$$4); - array_init(&_3$$4); - zephir_update_property_zval(this_ptr, SL("mapper"), &_3$$4); - } - ZEPHIR_MM_RESTORE(); - return Z_OBJ_P(this_ptr); - } - -} - diff --git a/ext/phalcon/filter/filter.zep.h b/ext/phalcon/filter/filter.zep.h deleted file mode 100644 index 6c26cb45059..00000000000 --- a/ext/phalcon/filter/filter.zep.h +++ /dev/null @@ -1,101 +0,0 @@ - -extern zend_class_entry *phalcon_filter_filter_ce; - -ZEPHIR_INIT_CLASS(Phalcon_Filter_Filter); - -PHP_METHOD(Phalcon_Filter_Filter, __construct); -PHP_METHOD(Phalcon_Filter_Filter, get); -PHP_METHOD(Phalcon_Filter_Filter, has); -PHP_METHOD(Phalcon_Filter_Filter, sanitize); -PHP_METHOD(Phalcon_Filter_Filter, set); -PHP_METHOD(Phalcon_Filter_Filter, init); -PHP_METHOD(Phalcon_Filter_Filter, processArrayValues); -PHP_METHOD(Phalcon_Filter_Filter, sanitizer); -zend_object *zephir_init_properties_Phalcon_Filter_Filter(zend_class_entry *class_type TSRMLS_DC); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_filter_filter___construct, 0, 0, 0) - ZEND_ARG_ARRAY_INFO(0, mapper, 0) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_filter_filter_get, 0, 1, NULL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_filter_filter_get, 0, 1, IS_OBJECT, "NULL", 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, name) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_filter_filter_has, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_filter_filter_has, 0, 1, _IS_BOOL, NULL, 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, name) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_filter_filter_sanitize, 0, 0, 2) - ZEND_ARG_INFO(0, value) - ZEND_ARG_INFO(0, sanitizers) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, noRecursive, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, noRecursive) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_filter_filter_set, 0, 0, 2) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, name) -#endif - ZEND_ARG_INFO(0, service) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_filter_filter_init, 0, 0, 1) - ZEND_ARG_ARRAY_INFO(0, mapper, 0) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_filter_filter_processarrayvalues, 0, 2, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_filter_filter_processarrayvalues, 0, 2, IS_ARRAY, NULL, 0) -#endif - ZEND_ARG_ARRAY_INFO(0, values, 0) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, sanitizerName, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, sanitizerName) -#endif - ZEND_ARG_ARRAY_INFO(0, sanitizerParams, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_filter_filter_sanitizer, 0, 0, 2) - ZEND_ARG_INFO(0, value) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, sanitizerName, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, sanitizerName) -#endif - ZEND_ARG_ARRAY_INFO(0, sanitizerParams, 0) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(phalcon_filter_filter_method_entry) { - PHP_ME(Phalcon_Filter_Filter, __construct, arginfo_phalcon_filter_filter___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Filter_Filter, get, arginfo_phalcon_filter_filter_get, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Filter_Filter, has, arginfo_phalcon_filter_filter_has, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Filter_Filter, sanitize, arginfo_phalcon_filter_filter_sanitize, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Filter_Filter, set, arginfo_phalcon_filter_filter_set, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Filter_Filter, init, arginfo_phalcon_filter_filter_init, ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Filter_Filter, processArrayValues, arginfo_phalcon_filter_filter_processarrayvalues, ZEND_ACC_PRIVATE) - PHP_ME(Phalcon_Filter_Filter, sanitizer, arginfo_phalcon_filter_filter_sanitizer, ZEND_ACC_PRIVATE) - PHP_FE_END -}; From f949fcc4d032ee2259e13272781f67a3f6c1796b Mon Sep 17 00:00:00 2001 From: Anton Vasiliev Date: Sun, 8 Sep 2019 21:56:36 +0100 Subject: [PATCH 114/202] #14367 - Visibility refactor --- tests/_ci/generate-api-docs.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/_ci/generate-api-docs.php b/tests/_ci/generate-api-docs.php index 6a689cc47cb..0b6a76697e3 100644 --- a/tests/_ci/generate-api-docs.php +++ b/tests/_ci/generate-api-docs.php @@ -32,7 +32,7 @@ $title = str_replace('Phalcon\\', '', $fileName); $key = str_replace('.zep', '', $split[0]); - $documents[$key]['title'] = 'Phalcon\\' . $key; //$split[0]; + $documents[$key]['title'] = 'Phalcon\\' . $key; $documents[$key]['docs'][$fileName] = $fileName; if (strpos($documents[$key]['title'], 'Url') > 0) { @@ -282,12 +282,8 @@ function parseMethods(array $item): array $line = $method['docblock'] ?? ''; $line = getDocblockMethod($line); - $signature = ''; $visibility = $method['visibility'] ?? []; - foreach ($visibility as $vis) { - $signature .= ' ' . $vis; - } - + $signature = join(' ', $visibility); $signature .= ' function ' . $method['name'] . '('; $params = $method['parameters'] ?? []; From af4d7aa27a6465667c319446de10b13dd58272ae Mon Sep 17 00:00:00 2001 From: Anton Vasiliev Date: Sun, 8 Sep 2019 22:16:18 +0100 Subject: [PATCH 115/202] #14367 - Fix and refactor function orderMethods() To process static methods --- tests/_ci/generate-api-docs.php | 50 ++++++++++++++++----------------- 1 file changed, 24 insertions(+), 26 deletions(-) diff --git a/tests/_ci/generate-api-docs.php b/tests/_ci/generate-api-docs.php index 0b6a76697e3..f813964b6b3 100644 --- a/tests/_ci/generate-api-docs.php +++ b/tests/_ci/generate-api-docs.php @@ -332,7 +332,7 @@ function parseMethods(array $item): array if (1 === $li['collection']) { $rt .= '[]'; } -// [ + $retTypes[] = $rt; } else { $retTypes[] = transformType($li['data-type']); @@ -471,41 +471,39 @@ function getDocblock(string $source): string return '/' . $doc . '/'; } -function orderMethods($methods): array +function orderMethods(array $methods): array { - if (is_array($methods)) { - $public = []; - $reserved = []; - $protected = []; + $public = []; + $reserved = []; + $protected = []; - foreach ($methods as $name => $method) { - if (substr($name, 0, 2) === '__') { - $reserved[$name] = $method; + foreach ($methods as $name => $method) { + if (substr($name, 0, 2) === '__') { + $reserved[$name] = $method; - continue; - } + continue; + } - if (strpos($method['signature'], 'public function') !== false) { - $public[$name] = $method; + if (strpos($method['signature'], 'public function') !== false || + strpos($method['signature'], 'public static function') !== false) { + $public[$name] = $method; - continue; - } + continue; + } - if (strpos($method['signature'], 'protected function') !== false) { - $protected[$name] = $method; + if (strpos($method['signature'], 'protected function') !== false || + strpos($method['signature'], 'protected static function') !== false) { + $protected[$name] = $method; - continue; - } + continue; } + } - ksort($reserved); - ksort($public); - ksort($protected); + ksort($reserved); + ksort($public); + ksort($protected); - return array_merge($reserved, $public, $protected); - } else { - return $methods; - } + return array_merge($reserved, $public, $protected); } function transformType(string $type, string $value = ''): string From 0932d6039b6f798da4368063c6e60e27eef0ed95 Mon Sep 17 00:00:00 2001 From: Anton Vasiliev Date: Sun, 8 Sep 2019 22:35:53 +0100 Subject: [PATCH 116/202] #14367 - Remove method params --- tests/_ci/generate-api-docs.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/_ci/generate-api-docs.php b/tests/_ci/generate-api-docs.php index f813964b6b3..e06d3eb8669 100644 --- a/tests/_ci/generate-api-docs.php +++ b/tests/_ci/generate-api-docs.php @@ -140,10 +140,13 @@ if (count($methods) > 0) { $elements = []; foreach ($methods as $method) { + // Ignore method params as they are already in signature + $methodComment = preg_match('/\@param/', $method['comment']) ? '' : $method['comment']; + $elements[] = '```php' . PHP_EOL . $method['signature'] . PHP_EOL . '```' . PHP_EOL - . $method['comment'] . PHP_EOL; + . $methodComment . PHP_EOL; } $signature = implode(PHP_EOL, $elements); $output .= " From 951c239c458639a0d2e00d28a4ceade96003308b Mon Sep 17 00:00:00 2001 From: Anton Vasiliev Date: Sun, 8 Sep 2019 21:56:36 +0100 Subject: [PATCH 117/202] #14367 - Visibility refactor --- tests/_ci/generate-api-docs.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/_ci/generate-api-docs.php b/tests/_ci/generate-api-docs.php index 6a689cc47cb..0b6a76697e3 100644 --- a/tests/_ci/generate-api-docs.php +++ b/tests/_ci/generate-api-docs.php @@ -32,7 +32,7 @@ $title = str_replace('Phalcon\\', '', $fileName); $key = str_replace('.zep', '', $split[0]); - $documents[$key]['title'] = 'Phalcon\\' . $key; //$split[0]; + $documents[$key]['title'] = 'Phalcon\\' . $key; $documents[$key]['docs'][$fileName] = $fileName; if (strpos($documents[$key]['title'], 'Url') > 0) { @@ -282,12 +282,8 @@ function parseMethods(array $item): array $line = $method['docblock'] ?? ''; $line = getDocblockMethod($line); - $signature = ''; $visibility = $method['visibility'] ?? []; - foreach ($visibility as $vis) { - $signature .= ' ' . $vis; - } - + $signature = join(' ', $visibility); $signature .= ' function ' . $method['name'] . '('; $params = $method['parameters'] ?? []; From d44d0ab1d330543b5dcb69c3bef3cb12e1366746 Mon Sep 17 00:00:00 2001 From: Anton Vasiliev Date: Sun, 8 Sep 2019 22:16:18 +0100 Subject: [PATCH 118/202] #14367 - Fix and refactor function orderMethods() To process static methods --- tests/_ci/generate-api-docs.php | 50 ++++++++++++++++----------------- 1 file changed, 24 insertions(+), 26 deletions(-) diff --git a/tests/_ci/generate-api-docs.php b/tests/_ci/generate-api-docs.php index 0b6a76697e3..f813964b6b3 100644 --- a/tests/_ci/generate-api-docs.php +++ b/tests/_ci/generate-api-docs.php @@ -332,7 +332,7 @@ function parseMethods(array $item): array if (1 === $li['collection']) { $rt .= '[]'; } -// [ + $retTypes[] = $rt; } else { $retTypes[] = transformType($li['data-type']); @@ -471,41 +471,39 @@ function getDocblock(string $source): string return '/' . $doc . '/'; } -function orderMethods($methods): array +function orderMethods(array $methods): array { - if (is_array($methods)) { - $public = []; - $reserved = []; - $protected = []; + $public = []; + $reserved = []; + $protected = []; - foreach ($methods as $name => $method) { - if (substr($name, 0, 2) === '__') { - $reserved[$name] = $method; + foreach ($methods as $name => $method) { + if (substr($name, 0, 2) === '__') { + $reserved[$name] = $method; - continue; - } + continue; + } - if (strpos($method['signature'], 'public function') !== false) { - $public[$name] = $method; + if (strpos($method['signature'], 'public function') !== false || + strpos($method['signature'], 'public static function') !== false) { + $public[$name] = $method; - continue; - } + continue; + } - if (strpos($method['signature'], 'protected function') !== false) { - $protected[$name] = $method; + if (strpos($method['signature'], 'protected function') !== false || + strpos($method['signature'], 'protected static function') !== false) { + $protected[$name] = $method; - continue; - } + continue; } + } - ksort($reserved); - ksort($public); - ksort($protected); + ksort($reserved); + ksort($public); + ksort($protected); - return array_merge($reserved, $public, $protected); - } else { - return $methods; - } + return array_merge($reserved, $public, $protected); } function transformType(string $type, string $value = ''): string From c34b7022bcb968f130af3f308140dbd7536a05e7 Mon Sep 17 00:00:00 2001 From: Anton Vasiliev Date: Sun, 8 Sep 2019 22:35:53 +0100 Subject: [PATCH 119/202] #14367 - Remove method params --- tests/_ci/generate-api-docs.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/_ci/generate-api-docs.php b/tests/_ci/generate-api-docs.php index f813964b6b3..e06d3eb8669 100644 --- a/tests/_ci/generate-api-docs.php +++ b/tests/_ci/generate-api-docs.php @@ -140,10 +140,13 @@ if (count($methods) > 0) { $elements = []; foreach ($methods as $method) { + // Ignore method params as they are already in signature + $methodComment = preg_match('/\@param/', $method['comment']) ? '' : $method['comment']; + $elements[] = '```php' . PHP_EOL . $method['signature'] . PHP_EOL . '```' . PHP_EOL - . $method['comment'] . PHP_EOL; + . $methodComment . PHP_EOL; } $signature = implode(PHP_EOL, $elements); $output .= " From 772a002acf0daaa0ad57470694e1e8f08a62a95e Mon Sep 17 00:00:00 2001 From: Fenikkusu Date: Wed, 28 Aug 2019 23:22:12 -0400 Subject: [PATCH 120/202] Adding Passback To DIC, Updating Documentation --- CHANGELOG-4.0.md | 1 + phalcon/Di/Service.zep | 5 +++-- tests/unit/Di/ServiceCest.php | 19 +++++++++++++++++++ 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/CHANGELOG-4.0.md b/CHANGELOG-4.0.md index 26eb87ead6c..aea40c3fe7c 100644 --- a/CHANGELOG-4.0.md +++ b/CHANGELOG-4.0.md @@ -8,6 +8,7 @@ - Changed `Phalcon\Flash\Direct` to allow `escaper` in the constructor [#14349](https://github.com/phalcon/cphalcon/issues/14349) - Changed `Phalcon\Flash\Session` to allow `escaper` in the constructor [#14349](https://github.com/phalcon/cphalcon/issues/14349) - Changed `Phalcon\Di\AbstractDIAware` to `Phalcon\Di\AbstractInjectionAware` [#14359](https://github.com/phalcon/cphalcon/issues/14359) +- Changed `Phalcon\Di\Service` to use DI to initialize `string` based services when possible [#14342](https://github.com/phalcon/cphalcon/pull/14342) ## Fixed - Fixed `Phalcon\Helper\Str::includes` to return correct result [#14301](https://github.com/phalcon/cphalcon/issues/14301) diff --git a/phalcon/Di/Service.zep b/phalcon/Di/Service.zep index 07e1bea5036..30bd6445a2b 100644 --- a/phalcon/Di/Service.zep +++ b/phalcon/Di/Service.zep @@ -134,11 +134,12 @@ class Service implements ServiceInterface let definition = this->definition; if typeof definition == "string" { - /** * String definitions can be class names without implicit parameters */ - if class_exists(definition) { + if container !== null { + let instance = container->get(definition, parameters); + } elseif class_exists(definition) { if typeof parameters == "array" && count(parameters) { let instance = create_instance_params( definition, diff --git a/tests/unit/Di/ServiceCest.php b/tests/unit/Di/ServiceCest.php index ce9228cfb0c..72f8853915b 100644 --- a/tests/unit/Di/ServiceCest.php +++ b/tests/unit/Di/ServiceCest.php @@ -61,4 +61,23 @@ function () { $di->getService('notResolved')->isResolved() ); } + + public function testAlias(UnitTester $I) + { + $escaper = new Escaper(); + + $di = new Di(); + + $di->set( + 'resolved', + Escaper::class + ); + + $di->set(Escaper::class, $escaper); + + $I->assertSame( + $escaper, + $di->get('resolved') + ); + } } From 774251f1aaa3ee025145f620461577bffe929aa9 Mon Sep 17 00:00:00 2001 From: Anton Vasiliev Date: Sun, 8 Sep 2019 22:57:23 +0100 Subject: [PATCH 121/202] #14367 - Remove method params --- tests/_ci/generate-api-docs.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/_ci/generate-api-docs.php b/tests/_ci/generate-api-docs.php index e06d3eb8669..4718064962a 100644 --- a/tests/_ci/generate-api-docs.php +++ b/tests/_ci/generate-api-docs.php @@ -140,8 +140,8 @@ if (count($methods) > 0) { $elements = []; foreach ($methods as $method) { - // Ignore method params as they are already in signature - $methodComment = preg_match('/\@param/', $method['comment']) ? '' : $method['comment']; + // Ignore method params lines as they are already in signature + $methodComment = preg_replace('/\@param(.+?)\n/', '', $method['comment']); $elements[] = '```php' . PHP_EOL . $method['signature'] . PHP_EOL From 7298c3fff2da93ed148f6283d6c515324641b6da Mon Sep 17 00:00:00 2001 From: Anton Vasiliev Date: Sun, 8 Sep 2019 23:00:04 +0100 Subject: [PATCH 122/202] #14367 - Remove method params --- tests/_ci/generate-api-docs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/_ci/generate-api-docs.php b/tests/_ci/generate-api-docs.php index e06d3eb8669..0f626d82ae5 100644 --- a/tests/_ci/generate-api-docs.php +++ b/tests/_ci/generate-api-docs.php @@ -141,7 +141,7 @@ $elements = []; foreach ($methods as $method) { // Ignore method params as they are already in signature - $methodComment = preg_match('/\@param/', $method['comment']) ? '' : $method['comment']; + $methodComment = preg_replace('/\@param(.+?)\n/', '', $method['comment']); $elements[] = '```php' . PHP_EOL . $method['signature'] . PHP_EOL From 7340ba50484060995c255ed6e6c3784c0c877630 Mon Sep 17 00:00:00 2001 From: Anton Vasiliev Date: Sun, 8 Sep 2019 22:57:23 +0100 Subject: [PATCH 123/202] #14367 - Remove method params --- tests/_ci/generate-api-docs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/_ci/generate-api-docs.php b/tests/_ci/generate-api-docs.php index 0f626d82ae5..4718064962a 100644 --- a/tests/_ci/generate-api-docs.php +++ b/tests/_ci/generate-api-docs.php @@ -140,7 +140,7 @@ if (count($methods) > 0) { $elements = []; foreach ($methods as $method) { - // Ignore method params as they are already in signature + // Ignore method params lines as they are already in signature $methodComment = preg_replace('/\@param(.+?)\n/', '', $method['comment']); $elements[] = '```php' . PHP_EOL From e90255ca614d09624f3acdff0d0a58e42e6e6570 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Crnjakovi=C4=87?= Date: Tue, 27 Aug 2019 17:20:25 +0200 Subject: [PATCH 124/202] Add onlyPath flag to getURI() method Add a flag which will indicate whether or not the method should omit the query part from the resulting string. --- phalcon/Http/Request.zep | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/phalcon/Http/Request.zep b/phalcon/Http/Request.zep index 81c34d2f7c8..4cd0c5a6a19 100644 --- a/phalcon/Http/Request.zep +++ b/phalcon/Http/Request.zep @@ -835,8 +835,19 @@ class Request extends AbstractInjectionAware implements RequestInterface /** * Gets HTTP URI which request has been made + * + *```php + * // Returns /some/path?with=queryParams + * $uri = $request->getURI(); + * + * // Returns /some/path + * $uri = $request->getURI(true); + *``` + * + * @param bool onlyPath If true, query part will be omitted + * @return string */ - final public function getURI() -> string + final public function getURI(bool onlyPath = false) -> string { var requestURI; @@ -844,6 +855,10 @@ class Request extends AbstractInjectionAware implements RequestInterface if null === requestURI { return ""; } + + if onlyPath { + let requestURI = explode('?', requestURI)[0]; + } return requestURI; } From eadad3b70731cb804c0ccd03f9945030c9b7ff28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Crnjakovi=C4=87?= Date: Tue, 27 Aug 2019 17:22:47 +0200 Subject: [PATCH 125/202] Updated changelog --- CHANGELOG-4.0.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG-4.0.md b/CHANGELOG-4.0.md index 26eb87ead6c..dd0a7d800be 100644 --- a/CHANGELOG-4.0.md +++ b/CHANGELOG-4.0.md @@ -1,5 +1,6 @@ # [4.0.0](https://github.com/phalcon/cphalcon/releases/tag/v4.0.0) (2019-xx-xx) ## Changed +- `Phalcon\Http\Request::getURI()` now accepts optional boolean parameter which indicates whether or not the method should return only the path without the query string - Changed `Phalcon\Url::get` to use implementation behind `Phalcon\Helper\Str::reduceSlashes` to reduce slashes [#14331](https://github.com/phalcon/cphalcon/issues/14331) - Changed `Phalcon\Http\Headers\set()` to return self for a more fluent interface - Changed `Phalcon\Assets\Manager`, `Phalcon\Cli\Router`, `Phalcon\Dispatcher\AbstractDispatcher`, `Phalcon\Html\Tag`, `Phalcon\Http\Cookie`, `Phalcon\Http\Request`, `Phalcon\Http\Response\Cookies`, `Phalcon\Mvc\Model`, `Phalcon\Mvc\Router`, `Phalcon\Security`, `Phalcon\Session\Manager` to use `Phalcon\Di\AbstractDiAware` for container functionality [#14351](https://github.com/phalcon/cphalcon/pull/14351) From f74cb6896a46fa35531896e0ffc0a91980a8e632 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Crnjakovi=C4=87?= Date: Tue, 27 Aug 2019 17:23:39 +0200 Subject: [PATCH 126/202] Update changelog --- CHANGELOG-4.0.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG-4.0.md b/CHANGELOG-4.0.md index dd0a7d800be..8ee61997277 100644 --- a/CHANGELOG-4.0.md +++ b/CHANGELOG-4.0.md @@ -1,6 +1,6 @@ # [4.0.0](https://github.com/phalcon/cphalcon/releases/tag/v4.0.0) (2019-xx-xx) ## Changed -- `Phalcon\Http\Request::getURI()` now accepts optional boolean parameter which indicates whether or not the method should return only the path without the query string +- Added optional boolean parameter to `Phalcon\Http\Request::getURI()` which indicates whether or not the method should return only the path without the query string - Changed `Phalcon\Url::get` to use implementation behind `Phalcon\Helper\Str::reduceSlashes` to reduce slashes [#14331](https://github.com/phalcon/cphalcon/issues/14331) - Changed `Phalcon\Http\Headers\set()` to return self for a more fluent interface - Changed `Phalcon\Assets\Manager`, `Phalcon\Cli\Router`, `Phalcon\Dispatcher\AbstractDispatcher`, `Phalcon\Html\Tag`, `Phalcon\Http\Cookie`, `Phalcon\Http\Request`, `Phalcon\Http\Response\Cookies`, `Phalcon\Mvc\Model`, `Phalcon\Mvc\Router`, `Phalcon\Security`, `Phalcon\Session\Manager` to use `Phalcon\Di\AbstractDiAware` for container functionality [#14351](https://github.com/phalcon/cphalcon/pull/14351) From 99b337bec32c9bc903954728eab7226c231a8bc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Crnjakovi=C4=87?= Date: Thu, 29 Aug 2019 00:07:47 +0200 Subject: [PATCH 127/202] Placed entry to correct section --- CHANGELOG-4.0.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG-4.0.md b/CHANGELOG-4.0.md index 8ee61997277..7168781c064 100644 --- a/CHANGELOG-4.0.md +++ b/CHANGELOG-4.0.md @@ -1,6 +1,9 @@ # [4.0.0](https://github.com/phalcon/cphalcon/releases/tag/v4.0.0) (2019-xx-xx) + +## Added +- Added optional boolean parameter to `Phalcon\Http\Request::getURI()` (as well as its interface) which indicates whether or not the method should return only the path without the query string + ## Changed -- Added optional boolean parameter to `Phalcon\Http\Request::getURI()` which indicates whether or not the method should return only the path without the query string - Changed `Phalcon\Url::get` to use implementation behind `Phalcon\Helper\Str::reduceSlashes` to reduce slashes [#14331](https://github.com/phalcon/cphalcon/issues/14331) - Changed `Phalcon\Http\Headers\set()` to return self for a more fluent interface - Changed `Phalcon\Assets\Manager`, `Phalcon\Cli\Router`, `Phalcon\Dispatcher\AbstractDispatcher`, `Phalcon\Html\Tag`, `Phalcon\Http\Cookie`, `Phalcon\Http\Request`, `Phalcon\Http\Response\Cookies`, `Phalcon\Mvc\Model`, `Phalcon\Mvc\Router`, `Phalcon\Security`, `Phalcon\Session\Manager` to use `Phalcon\Di\AbstractDiAware` for container functionality [#14351](https://github.com/phalcon/cphalcon/pull/14351) From 981cd59ba82c9156697cb1c970fb839884080ff9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Crnjakovi=C4=87?= Date: Thu, 29 Aug 2019 00:10:56 +0200 Subject: [PATCH 128/202] Added the onlyPath flag to the interface --- phalcon/Http/RequestInterface.zep | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/phalcon/Http/RequestInterface.zep b/phalcon/Http/RequestInterface.zep index 95999150b7e..1f9f8b7d96b 100644 --- a/phalcon/Http/RequestInterface.zep +++ b/phalcon/Http/RequestInterface.zep @@ -178,9 +178,20 @@ interface RequestInterface public function getPort() -> int; /** - * Gets HTTP URI which request has been made + * Gets HTTP URI which request has been made with + * + *```php + * // Returns /some/path?with=queryParams + * $uri = $request->getURI(); + * + * // Returns /some/path + * $uri = $request->getURI(true); + *``` + * + * @param bool onlyPath If true, query part will be omitted + * @return string */ - final public function getURI() -> string; + final public function getURI(bool onlyPath = false) -> string; /** * Gets a variable from the $_POST superglobal applying filters if needed From 379e8eb7a5d0941961ec5fee64cdd440f91d51c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Crnjakovi=C4=87?= Date: Thu, 29 Aug 2019 00:12:38 +0200 Subject: [PATCH 129/202] Grammatical correction --- phalcon/Http/Request.zep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phalcon/Http/Request.zep b/phalcon/Http/Request.zep index 4cd0c5a6a19..b3157b5aa12 100644 --- a/phalcon/Http/Request.zep +++ b/phalcon/Http/Request.zep @@ -834,7 +834,7 @@ class Request extends AbstractInjectionAware implements RequestInterface } /** - * Gets HTTP URI which request has been made + * Gets HTTP URI which request has been made to * *```php * // Returns /some/path?with=queryParams From 3f35fcad64ba0a0cca4b8dbef23a6ccd64e4eae7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Crnjakovi=C4=87?= Date: Thu, 29 Aug 2019 00:13:06 +0200 Subject: [PATCH 130/202] Grammatical correction --- phalcon/Http/RequestInterface.zep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phalcon/Http/RequestInterface.zep b/phalcon/Http/RequestInterface.zep index 1f9f8b7d96b..643f6af248b 100644 --- a/phalcon/Http/RequestInterface.zep +++ b/phalcon/Http/RequestInterface.zep @@ -178,7 +178,7 @@ interface RequestInterface public function getPort() -> int; /** - * Gets HTTP URI which request has been made with + * Gets HTTP URI which request has been made to * *```php * // Returns /some/path?with=queryParams From cdd4a7c1d31ba90a959884eac69388e14a4ece4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Crnjakovi=C4=87?= Date: Fri, 30 Aug 2019 14:05:55 +0200 Subject: [PATCH 131/202] Fixed spacing in RequestInterface.zep --- phalcon/Http/RequestInterface.zep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phalcon/Http/RequestInterface.zep b/phalcon/Http/RequestInterface.zep index 643f6af248b..93c974a1e56 100644 --- a/phalcon/Http/RequestInterface.zep +++ b/phalcon/Http/RequestInterface.zep @@ -189,7 +189,7 @@ interface RequestInterface *``` * * @param bool onlyPath If true, query part will be omitted - * @return string + * @return string */ final public function getURI(bool onlyPath = false) -> string; From 1483618ae95b90d8504c5749083b8b214caaa783 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Crnjakovi=C4=87?= Date: Fri, 30 Aug 2019 14:07:19 +0200 Subject: [PATCH 132/202] Fixed spacing in Request.zep --- phalcon/Http/Request.zep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phalcon/Http/Request.zep b/phalcon/Http/Request.zep index b3157b5aa12..2761ef379e1 100644 --- a/phalcon/Http/Request.zep +++ b/phalcon/Http/Request.zep @@ -845,7 +845,7 @@ class Request extends AbstractInjectionAware implements RequestInterface *``` * * @param bool onlyPath If true, query part will be omitted - * @return string + * @return string */ final public function getURI(bool onlyPath = false) -> string { From 09031d5ead74995c05de48dfbbc5d7524c6c3dbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=A9meth=20Bal=C3=A1zs?= Date: Wed, 24 Jul 2019 19:42:38 +0200 Subject: [PATCH 133/202] Using a Route object to compile pattern prefixes for quicker route handling. --- phalcon/Mvc/Router/Annotations.zep | 32 ++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/phalcon/Mvc/Router/Annotations.zep b/phalcon/Mvc/Router/Annotations.zep index 6cdeb39acf8..79f6352ade9 100644 --- a/phalcon/Mvc/Router/Annotations.zep +++ b/phalcon/Mvc/Router/Annotations.zep @@ -84,9 +84,10 @@ class Annotations extends Router public function handle(string! uri) { var annotationsService, handlers, controllerSuffix, scope, prefix, - container, handler, controllerName, lowerControllerName, - namespaceName, moduleName, handlerAnnotations, classAnnotations, - annotations, annotation, methodAnnotations, method, collection; + route, compiledPattern, container, handler, controllerName, + lowerControllerName, namespaceName, moduleName, handlerAnnotations, + classAnnotations, annotations, annotation, methodAnnotations, method, + collection; string sufixed; let container = this->container; @@ -113,7 +114,30 @@ class Annotations extends Router */ let prefix = scope[0]; - if !empty prefix && !starts_with(uri, prefix) { + if empty prefix { + continue; + } + + /** + * Route object is used to compile patterns + */ + let route = new Route(prefix); + + /** + * Compiled patterns can be valid regular expressions. + * In that case We only need to theck if it starts with + * the pattern so we remove to "$" from the end. + */ + let compiledPattern = str_replace( + "$#", "#", route->getCompiledPattern() + ); + + /** + * If it's a regular expression, it will contain the "^" + */ + if memstr(compiledPattern, "^") && !preg_match(compiledPattern, uri) { + continue; + } elseif !starts_with(uri, prefix) { continue; } From 4bb069aa8bedb91aef269bd2c122c74e74fca8d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=A9meth=20Bal=C3=A1zs?= Date: Wed, 24 Jul 2019 20:01:30 +0200 Subject: [PATCH 134/202] Fixing the conditions --- phalcon/Mvc/Router/Annotations.zep | 48 +++++++++++++++--------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/phalcon/Mvc/Router/Annotations.zep b/phalcon/Mvc/Router/Annotations.zep index 79f6352ade9..7ad0c269f1a 100644 --- a/phalcon/Mvc/Router/Annotations.zep +++ b/phalcon/Mvc/Router/Annotations.zep @@ -114,31 +114,31 @@ class Annotations extends Router */ let prefix = scope[0]; - if empty prefix { - continue; - } - - /** - * Route object is used to compile patterns - */ - let route = new Route(prefix); - - /** - * Compiled patterns can be valid regular expressions. - * In that case We only need to theck if it starts with - * the pattern so we remove to "$" from the end. - */ - let compiledPattern = str_replace( - "$#", "#", route->getCompiledPattern() - ); + if !empty prefix { + /** + * Route object is used to compile patterns + */ + let route = new Route(prefix); - /** - * If it's a regular expression, it will contain the "^" - */ - if memstr(compiledPattern, "^") && !preg_match(compiledPattern, uri) { - continue; - } elseif !starts_with(uri, prefix) { - continue; + /** + * Compiled patterns can be valid regular expressions. + * In that case We only need to theck if it starts with + * the pattern so we remove to "$" from the end. + */ + let compiledPattern = str_replace( + "$#", "#", route->getCompiledPattern() + ); + + if memstr(compiledPattern, "^") { + /** + * If it's a regular expression, it will contain the "^" + */ + if !preg_match(compiledPattern, uri) { + continue; + } + } elseif !starts_with(uri, prefix) { + continue; + } } /** From 8948e1c24dd9553744a368ed59c289ed494a2f1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=A9meth=20Bal=C3=A1zs?= Date: Wed, 14 Aug 2019 12:39:09 +0200 Subject: [PATCH 135/202] Routes in a Group should be an empty array as default --- phalcon/Mvc/Router/Group.zep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phalcon/Mvc/Router/Group.zep b/phalcon/Mvc/Router/Group.zep index 02214228d6b..07d19d71461 100644 --- a/phalcon/Mvc/Router/Group.zep +++ b/phalcon/Mvc/Router/Group.zep @@ -64,7 +64,7 @@ class Group implements GroupInterface protected hostname; protected paths; protected prefix; - protected routes; + protected routes = []; /** * Phalcon\Mvc\Router\Group constructor From 852a5f796673731d162ac9d354830691249a7e8e Mon Sep 17 00:00:00 2001 From: zsilbi Date: Tue, 10 Sep 2019 15:48:21 +0200 Subject: [PATCH 136/202] Changelog --- CHANGELOG-4.0.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG-4.0.md b/CHANGELOG-4.0.md index 7168781c064..d71aa1e1ba3 100644 --- a/CHANGELOG-4.0.md +++ b/CHANGELOG-4.0.md @@ -12,6 +12,8 @@ - Changed `Phalcon\Flash\Direct` to allow `escaper` in the constructor [#14349](https://github.com/phalcon/cphalcon/issues/14349) - Changed `Phalcon\Flash\Session` to allow `escaper` in the constructor [#14349](https://github.com/phalcon/cphalcon/issues/14349) - Changed `Phalcon\Di\AbstractDIAware` to `Phalcon\Di\AbstractInjectionAware` [#14359](https://github.com/phalcon/cphalcon/issues/14359) +- Changed `Phalcon\Mvc\Router\Annotations` to be able to handle patterns az prefixes [#14259](https://github.com/phalcon/cphalcon/pull/14259) +- Changed `Phalcon\Mvc\Router\Group::routes` to an array as default [#14259](https://github.com/phalcon/cphalcon/pull/14259) ## Fixed - Fixed `Phalcon\Helper\Str::includes` to return correct result [#14301](https://github.com/phalcon/cphalcon/issues/14301) From ba26e2b9fd3f0c161f7d5de79c126a98f907b5a4 Mon Sep 17 00:00:00 2001 From: Ruud Boon Date: Fri, 16 Aug 2019 17:27:11 +0200 Subject: [PATCH 137/202] Added test for issue #14303 --- .../QueryBuilder/GetSetQueryBuilderCest.php | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/tests/integration/Paginator/Adapter/QueryBuilder/GetSetQueryBuilderCest.php b/tests/integration/Paginator/Adapter/QueryBuilder/GetSetQueryBuilderCest.php index b1a30734e25..c420fb847b9 100644 --- a/tests/integration/Paginator/Adapter/QueryBuilder/GetSetQueryBuilderCest.php +++ b/tests/integration/Paginator/Adapter/QueryBuilder/GetSetQueryBuilderCest.php @@ -78,4 +78,30 @@ public function paginatorAdapterQuerybuilderGetSetQueryBuilder(IntegrationTester $I->assertEquals($paginator, $setterResult); } + + /** + * Tests Phalcon\Paginator\Adapter\QueryBuilder :: getQueryBuilder() / setQueryBuilder() + */ + public function issue14303(IntegrationTester $I) + { + $I->wantToTest('Paginator\Adapter\QueryBuilder when limit = 0'); + + $manager = $this->getService('modelsManager'); + + $builder1 = $manager->createBuilder() + ->columns('cedula, nombres') + ->from(Personnes::class) + ->orderBy('cedula') + ; + + $paginator = new QueryBuilder( + [ + 'builder' => $builder1, + 'limit' => 0, + 'page' => 1, + ] + ); + + $paginator->paginate(); + } } From 39f169482a48a50f9fd6dd37dccea35c13bd7c93 Mon Sep 17 00:00:00 2001 From: Ruud Boon Date: Mon, 9 Sep 2019 14:08:37 +0200 Subject: [PATCH 138/202] - Replaced test - Fixed paginator-division-by-zero-warning --- phalcon/Paginator/Adapter/AbstractAdapter.zep | 4 +++ .../Adapter/QueryBuilder/GetSetLimitCest.php | 17 ++++++++++++ .../QueryBuilder/GetSetQueryBuilderCest.php | 26 ------------------- 3 files changed, 21 insertions(+), 26 deletions(-) diff --git a/phalcon/Paginator/Adapter/AbstractAdapter.zep b/phalcon/Paginator/Adapter/AbstractAdapter.zep index f2910922a94..c565fc703ba 100644 --- a/phalcon/Paginator/Adapter/AbstractAdapter.zep +++ b/phalcon/Paginator/Adapter/AbstractAdapter.zep @@ -10,6 +10,7 @@ namespace Phalcon\Paginator\Adapter; +use Phalcon\Paginator\Exception; use Phalcon\Paginator\Repository; use Phalcon\Paginator\RepositoryInterface; @@ -89,6 +90,9 @@ abstract class AbstractAdapter implements AdapterInterface */ public function setLimit(int limitRows) -> { + if limitRows <= 0 { + throw new Exception("Limit must be greater then zero"); + } let this->limitRows = limitRows; return this; diff --git a/tests/integration/Paginator/Adapter/QueryBuilder/GetSetLimitCest.php b/tests/integration/Paginator/Adapter/QueryBuilder/GetSetLimitCest.php index 01ceb5307e2..2993f79ef79 100644 --- a/tests/integration/Paginator/Adapter/QueryBuilder/GetSetLimitCest.php +++ b/tests/integration/Paginator/Adapter/QueryBuilder/GetSetLimitCest.php @@ -14,6 +14,7 @@ use IntegrationTester; use Phalcon\Paginator\Adapter\QueryBuilder; +use Phalcon\Paginator\Exception; use Phalcon\Test\Fixtures\Traits\DiTrait; use Phalcon\Test\Models\Personnes; @@ -68,5 +69,21 @@ public function paginatorAdapterQuerybuilderGetSetLimit(IntegrationTester $I) ); $I->assertEquals($paginator, $setterResult); + + + + try { + $paginator = new QueryBuilder( + [ + 'builder' => $builder, + 'limit' => 0, + 'page' => 1, + ] + ); + + $paginator->paginate(); + } catch (Exception $ex) { + $I->assertEquals('Limit must be greater then zero', $ex->getMessage()); + } } } diff --git a/tests/integration/Paginator/Adapter/QueryBuilder/GetSetQueryBuilderCest.php b/tests/integration/Paginator/Adapter/QueryBuilder/GetSetQueryBuilderCest.php index c420fb847b9..b1a30734e25 100644 --- a/tests/integration/Paginator/Adapter/QueryBuilder/GetSetQueryBuilderCest.php +++ b/tests/integration/Paginator/Adapter/QueryBuilder/GetSetQueryBuilderCest.php @@ -78,30 +78,4 @@ public function paginatorAdapterQuerybuilderGetSetQueryBuilder(IntegrationTester $I->assertEquals($paginator, $setterResult); } - - /** - * Tests Phalcon\Paginator\Adapter\QueryBuilder :: getQueryBuilder() / setQueryBuilder() - */ - public function issue14303(IntegrationTester $I) - { - $I->wantToTest('Paginator\Adapter\QueryBuilder when limit = 0'); - - $manager = $this->getService('modelsManager'); - - $builder1 = $manager->createBuilder() - ->columns('cedula, nombres') - ->from(Personnes::class) - ->orderBy('cedula') - ; - - $paginator = new QueryBuilder( - [ - 'builder' => $builder1, - 'limit' => 0, - 'page' => 1, - ] - ); - - $paginator->paginate(); - } } From 54ff3a386547064ee964397a11e96144f8450f9c Mon Sep 17 00:00:00 2001 From: Ruud Boon Date: Mon, 9 Sep 2019 14:58:39 +0200 Subject: [PATCH 139/202] Updated changelog --- CHANGELOG-4.0.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG-4.0.md b/CHANGELOG-4.0.md index d71aa1e1ba3..67aa9fe11aa 100644 --- a/CHANGELOG-4.0.md +++ b/CHANGELOG-4.0.md @@ -28,6 +28,7 @@ - Fixed `Phalcon\Http\Response::setFileToSend` to properly handle non-ASCII filenames [#13919](https://github.com/phalcon/cphalcon/issues/13919) - Fixed `Phalcon\Security::getSessionToken` return value [#14346](https://github.com/phalcon/cphalcon/issues/14346) - Fixed `Phalcon\Flash\*` interfaces for `message()` to return `string/null` [#14349](https://github.com/phalcon/cphalcon/issues/14349) +- Fixed `Phalcon\Paginator\Adapter\AbstractAdapter` throw exception if `limit <= 0` [#14303](https://github.com/phalcon/cphalcon/issues/14303) ## Removed - Removed `Phalcon\Plugin` - duplicate of `Phalcon\DI\Injectable` [#14359](https://github.com/phalcon/cphalcon/issues/14359) From 53169ede982ccca171f958cffeb694c193c5bb72 Mon Sep 17 00:00:00 2001 From: Ruud Boon Date: Mon, 9 Sep 2019 18:52:46 +0200 Subject: [PATCH 140/202] Refactored test --- .../Paginator/Adapter/QueryBuilder/GetSetLimitCest.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/integration/Paginator/Adapter/QueryBuilder/GetSetLimitCest.php b/tests/integration/Paginator/Adapter/QueryBuilder/GetSetLimitCest.php index 2993f79ef79..89237b97391 100644 --- a/tests/integration/Paginator/Adapter/QueryBuilder/GetSetLimitCest.php +++ b/tests/integration/Paginator/Adapter/QueryBuilder/GetSetLimitCest.php @@ -70,9 +70,7 @@ public function paginatorAdapterQuerybuilderGetSetLimit(IntegrationTester $I) $I->assertEquals($paginator, $setterResult); - - - try { + $I->expectThrowable(new Exception('Limit must be greater then zero'), function() use ($builder) { $paginator = new QueryBuilder( [ 'builder' => $builder, @@ -82,8 +80,6 @@ public function paginatorAdapterQuerybuilderGetSetLimit(IntegrationTester $I) ); $paginator->paginate(); - } catch (Exception $ex) { - $I->assertEquals('Limit must be greater then zero', $ex->getMessage()); - } + }); } } From 47cd4a73caf9310303845eb472b8f188ee6d40e7 Mon Sep 17 00:00:00 2001 From: Ruud Boon Date: Tue, 10 Sep 2019 13:13:58 +0200 Subject: [PATCH 141/202] Fixed phpcs --- .../Paginator/Adapter/QueryBuilder/GetSetLimitCest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/Paginator/Adapter/QueryBuilder/GetSetLimitCest.php b/tests/integration/Paginator/Adapter/QueryBuilder/GetSetLimitCest.php index 89237b97391..c16fb68f74c 100644 --- a/tests/integration/Paginator/Adapter/QueryBuilder/GetSetLimitCest.php +++ b/tests/integration/Paginator/Adapter/QueryBuilder/GetSetLimitCest.php @@ -70,7 +70,7 @@ public function paginatorAdapterQuerybuilderGetSetLimit(IntegrationTester $I) $I->assertEquals($paginator, $setterResult); - $I->expectThrowable(new Exception('Limit must be greater then zero'), function() use ($builder) { + $I->expectThrowable(new Exception('Limit must be greater then zero'), function () use ($builder) { $paginator = new QueryBuilder( [ 'builder' => $builder, From f82d5250da1fad3399af5ce62b8b0a6f335ec295 Mon Sep 17 00:00:00 2001 From: Ruud Boon Date: Thu, 12 Sep 2019 12:15:14 +0200 Subject: [PATCH 142/202] Setup Test --- tests/integration/Mvc/Model/Query/Builder/FromCest.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/integration/Mvc/Model/Query/Builder/FromCest.php b/tests/integration/Mvc/Model/Query/Builder/FromCest.php index 8b6d2c5be75..43d456802b5 100644 --- a/tests/integration/Mvc/Model/Query/Builder/FromCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/FromCest.php @@ -13,6 +13,7 @@ namespace Phalcon\Test\Integration\Mvc\Model\Query\Builder; use IntegrationTester; +use Phalcon\Test\Models\RobotsParts; /** * Class FromCest @@ -28,6 +29,10 @@ class FromCest public function mvcModelQueryBuilderFrom(IntegrationTester $I) { $I->wantToTest('Mvc\Model\Query\Builder - from()'); - $I->skipTest('Need implementation'); + $builder = new Phalcon\Mvc\Model\Query\Builder(); + $builder->addFrom(RobotsParts::class); + + $expectedQuery = "SELECT [".RobotsParts::class."].* FROM [".RobotsParts::class."]"; + $I->assertEquals($expectedQuery, $builder->getQuery()); } } From fe595fc8854dfd2dae441f680a07f6907fef0ccc Mon Sep 17 00:00:00 2001 From: Ruud Boon Date: Thu, 12 Sep 2019 12:31:12 +0200 Subject: [PATCH 143/202] Use Mvc\Model\Query\Builder --- tests/integration/Mvc/Model/Query/Builder/FromCest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/integration/Mvc/Model/Query/Builder/FromCest.php b/tests/integration/Mvc/Model/Query/Builder/FromCest.php index 43d456802b5..6bc77f0ce65 100644 --- a/tests/integration/Mvc/Model/Query/Builder/FromCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/FromCest.php @@ -14,6 +14,7 @@ use IntegrationTester; use Phalcon\Test\Models\RobotsParts; +use Mvc\Model\Query\Builder; /** * Class FromCest From c3f328ebd208ab76057bbe7046349489c4c11768 Mon Sep 17 00:00:00 2001 From: Ruud Boon Date: Thu, 12 Sep 2019 13:08:43 +0200 Subject: [PATCH 144/202] Fixed typo in namespace --- tests/integration/Mvc/Model/Query/Builder/FromCest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/Mvc/Model/Query/Builder/FromCest.php b/tests/integration/Mvc/Model/Query/Builder/FromCest.php index 6bc77f0ce65..a7d1092eeaf 100644 --- a/tests/integration/Mvc/Model/Query/Builder/FromCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/FromCest.php @@ -30,7 +30,7 @@ class FromCest public function mvcModelQueryBuilderFrom(IntegrationTester $I) { $I->wantToTest('Mvc\Model\Query\Builder - from()'); - $builder = new Phalcon\Mvc\Model\Query\Builder(); + $builder = new Builder(); $builder->addFrom(RobotsParts::class); $expectedQuery = "SELECT [".RobotsParts::class."].* FROM [".RobotsParts::class."]"; From 8c7d36f9558898b641c4730f2ca8fd13631206c8 Mon Sep 17 00:00:00 2001 From: Ruud Boon Date: Thu, 12 Sep 2019 13:22:16 +0200 Subject: [PATCH 145/202] Fixed test --- tests/integration/Mvc/Model/Query/Builder/FromCest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/Mvc/Model/Query/Builder/FromCest.php b/tests/integration/Mvc/Model/Query/Builder/FromCest.php index a7d1092eeaf..d16d018e0fd 100644 --- a/tests/integration/Mvc/Model/Query/Builder/FromCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/FromCest.php @@ -14,7 +14,7 @@ use IntegrationTester; use Phalcon\Test\Models\RobotsParts; -use Mvc\Model\Query\Builder; +use Phalcon\Mvc\Model\Query\Builder; /** * Class FromCest From c50acafbfc2df0fa595bf1d1978462cfde415b89 Mon Sep 17 00:00:00 2001 From: Ruud Boon Date: Thu, 12 Sep 2019 13:50:46 +0200 Subject: [PATCH 146/202] Fixed Test Fixed bug --- phalcon/Mvc/Model/Query/Builder.zep | 2 +- tests/integration/Mvc/Model/Query/Builder/FromCest.php | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/phalcon/Mvc/Model/Query/Builder.zep b/phalcon/Mvc/Model/Query/Builder.zep index ce492395d6b..b91bee325ff 100644 --- a/phalcon/Mvc/Model/Query/Builder.zep +++ b/phalcon/Mvc/Model/Query/Builder.zep @@ -279,7 +279,7 @@ class Builder implements BuilderInterface, InjectionAwareInterface } } - if typeof alias == "string" { + if typeof alias == "string" && alias !== null { let models[alias] = model; } else { let models[] = model; diff --git a/tests/integration/Mvc/Model/Query/Builder/FromCest.php b/tests/integration/Mvc/Model/Query/Builder/FromCest.php index d16d018e0fd..f2505b0b4ee 100644 --- a/tests/integration/Mvc/Model/Query/Builder/FromCest.php +++ b/tests/integration/Mvc/Model/Query/Builder/FromCest.php @@ -34,6 +34,12 @@ public function mvcModelQueryBuilderFrom(IntegrationTester $I) $builder->addFrom(RobotsParts::class); $expectedQuery = "SELECT [".RobotsParts::class."].* FROM [".RobotsParts::class."]"; - $I->assertEquals($expectedQuery, $builder->getQuery()); + $I->assertEquals($expectedQuery, $builder->getPhql()); + + $alias = "MyAlias"; + $builder = new Builder(); + $builder->addFrom(RobotsParts::class, $alias); + $expectedQuery = "SELECT [".$alias."].* FROM [".RobotsParts::class."] AS [".$alias."]"; + $I->assertEquals($expectedQuery, $builder->getPhql()); } } From be226081985de5ba39d52c4290340951fa188113 Mon Sep 17 00:00:00 2001 From: Ruud Boon Date: Thu, 12 Sep 2019 13:56:29 +0200 Subject: [PATCH 147/202] Added changelog --- CHANGELOG-4.0.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG-4.0.md b/CHANGELOG-4.0.md index 67aa9fe11aa..384a0d4f1c4 100644 --- a/CHANGELOG-4.0.md +++ b/CHANGELOG-4.0.md @@ -29,6 +29,7 @@ - Fixed `Phalcon\Security::getSessionToken` return value [#14346](https://github.com/phalcon/cphalcon/issues/14346) - Fixed `Phalcon\Flash\*` interfaces for `message()` to return `string/null` [#14349](https://github.com/phalcon/cphalcon/issues/14349) - Fixed `Phalcon\Paginator\Adapter\AbstractAdapter` throw exception if `limit <= 0` [#14303](https://github.com/phalcon/cphalcon/issues/14303) +- Fixed `Phalcon\Mvc\Model\Query\Builder` Empty table alias in query [#14366](https://github.com/phalcon/cphalcon/issues/14366) ## Removed - Removed `Phalcon\Plugin` - duplicate of `Phalcon\DI\Injectable` [#14359](https://github.com/phalcon/cphalcon/issues/14359) From 45dd48795d1754c436c76b6a1356cda9ed78326e Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Tue, 10 Sep 2019 22:07:50 -0400 Subject: [PATCH 148/202] [interface] - Removed Html\Tag --- phalcon/Html/Tag.zep | 1798 ----------------- tests/unit/Html/Tag/AppendTitleCest.php | 224 -- tests/unit/Html/Tag/ButtonCest.php | 27 - tests/unit/Html/Tag/ClearCest.php | 44 - tests/unit/Html/Tag/ConstantsCest.php | 42 - tests/unit/Html/Tag/ElementCest.php | 187 -- tests/unit/Html/Tag/ElementCloseCest.php | 83 - tests/unit/Html/Tag/EndFormCest.php | 56 - tests/unit/Html/Tag/FormCest.php | 30 - tests/unit/Html/Tag/FriendlyTitleCest.php | 219 -- tests/unit/Html/Tag/GetSetDICest.php | 41 - tests/unit/Html/Tag/GetSetDocTypeCest.php | 108 - tests/unit/Html/Tag/GetTitleCest.php | 97 - tests/unit/Html/Tag/GetTitleSeparatorCest.php | 39 - tests/unit/Html/Tag/GetValueCest.php | 75 - tests/unit/Html/Tag/HasValueCest.php | 57 - tests/unit/Html/Tag/ImageCest.php | 156 -- tests/unit/Html/Tag/InputCheckboxCest.php | 27 - tests/unit/Html/Tag/InputColorCest.php | 27 - tests/unit/Html/Tag/InputDateCest.php | 27 - tests/unit/Html/Tag/InputDateTimeCest.php | 27 - .../unit/Html/Tag/InputDateTimeLocalCest.php | 27 - tests/unit/Html/Tag/InputEmailCest.php | 27 - tests/unit/Html/Tag/InputFileCest.php | 27 - tests/unit/Html/Tag/InputHiddenCest.php | 27 - tests/unit/Html/Tag/InputImageCest.php | 27 - tests/unit/Html/Tag/InputMonthCest.php | 27 - tests/unit/Html/Tag/InputNumericCest.php | 27 - tests/unit/Html/Tag/InputPasswordCest.php | 27 - tests/unit/Html/Tag/InputRadioCest.php | 27 - tests/unit/Html/Tag/InputRangeCest.php | 27 - tests/unit/Html/Tag/InputSearchCest.php | 27 - tests/unit/Html/Tag/InputTelCest.php | 27 - tests/unit/Html/Tag/InputTextCest.php | 27 - tests/unit/Html/Tag/InputTimeCest.php | 27 - tests/unit/Html/Tag/InputUrlCest.php | 27 - tests/unit/Html/Tag/InputWeekCest.php | 27 - tests/unit/Html/Tag/JavascriptCest.php | 83 - tests/unit/Html/Tag/LinkCest.php | 191 -- tests/unit/Html/Tag/PrependTitleCest.php | 215 -- tests/unit/Html/Tag/RenderTitleCest.php | 78 - tests/unit/Html/Tag/ResetCest.php | 27 - tests/unit/Html/Tag/SelectCest.php | 389 ---- tests/unit/Html/Tag/SetAttributeCest.php | 36 - tests/unit/Html/Tag/SetAttributesCest.php | 45 - tests/unit/Html/Tag/SetTitleCest.php | 49 - tests/unit/Html/Tag/SetTitleSeparatorCest.php | 39 - tests/unit/Html/Tag/StylesheetCest.php | 125 -- tests/unit/Html/Tag/SubmitCest.php | 27 - tests/unit/Html/Tag/TextAreaCest.php | 130 -- 50 files changed, 5257 deletions(-) delete mode 100644 phalcon/Html/Tag.zep delete mode 100644 tests/unit/Html/Tag/AppendTitleCest.php delete mode 100644 tests/unit/Html/Tag/ButtonCest.php delete mode 100644 tests/unit/Html/Tag/ClearCest.php delete mode 100644 tests/unit/Html/Tag/ConstantsCest.php delete mode 100644 tests/unit/Html/Tag/ElementCest.php delete mode 100644 tests/unit/Html/Tag/ElementCloseCest.php delete mode 100644 tests/unit/Html/Tag/EndFormCest.php delete mode 100644 tests/unit/Html/Tag/FormCest.php delete mode 100644 tests/unit/Html/Tag/FriendlyTitleCest.php delete mode 100644 tests/unit/Html/Tag/GetSetDICest.php delete mode 100644 tests/unit/Html/Tag/GetSetDocTypeCest.php delete mode 100644 tests/unit/Html/Tag/GetTitleCest.php delete mode 100644 tests/unit/Html/Tag/GetTitleSeparatorCest.php delete mode 100644 tests/unit/Html/Tag/GetValueCest.php delete mode 100644 tests/unit/Html/Tag/HasValueCest.php delete mode 100644 tests/unit/Html/Tag/ImageCest.php delete mode 100644 tests/unit/Html/Tag/InputCheckboxCest.php delete mode 100644 tests/unit/Html/Tag/InputColorCest.php delete mode 100644 tests/unit/Html/Tag/InputDateCest.php delete mode 100644 tests/unit/Html/Tag/InputDateTimeCest.php delete mode 100644 tests/unit/Html/Tag/InputDateTimeLocalCest.php delete mode 100644 tests/unit/Html/Tag/InputEmailCest.php delete mode 100644 tests/unit/Html/Tag/InputFileCest.php delete mode 100644 tests/unit/Html/Tag/InputHiddenCest.php delete mode 100644 tests/unit/Html/Tag/InputImageCest.php delete mode 100644 tests/unit/Html/Tag/InputMonthCest.php delete mode 100644 tests/unit/Html/Tag/InputNumericCest.php delete mode 100644 tests/unit/Html/Tag/InputPasswordCest.php delete mode 100644 tests/unit/Html/Tag/InputRadioCest.php delete mode 100644 tests/unit/Html/Tag/InputRangeCest.php delete mode 100644 tests/unit/Html/Tag/InputSearchCest.php delete mode 100644 tests/unit/Html/Tag/InputTelCest.php delete mode 100644 tests/unit/Html/Tag/InputTextCest.php delete mode 100644 tests/unit/Html/Tag/InputTimeCest.php delete mode 100644 tests/unit/Html/Tag/InputUrlCest.php delete mode 100644 tests/unit/Html/Tag/InputWeekCest.php delete mode 100644 tests/unit/Html/Tag/JavascriptCest.php delete mode 100644 tests/unit/Html/Tag/LinkCest.php delete mode 100644 tests/unit/Html/Tag/PrependTitleCest.php delete mode 100644 tests/unit/Html/Tag/RenderTitleCest.php delete mode 100644 tests/unit/Html/Tag/ResetCest.php delete mode 100644 tests/unit/Html/Tag/SelectCest.php delete mode 100644 tests/unit/Html/Tag/SetAttributeCest.php delete mode 100644 tests/unit/Html/Tag/SetAttributesCest.php delete mode 100644 tests/unit/Html/Tag/SetTitleCest.php delete mode 100644 tests/unit/Html/Tag/SetTitleSeparatorCest.php delete mode 100644 tests/unit/Html/Tag/StylesheetCest.php delete mode 100644 tests/unit/Html/Tag/SubmitCest.php delete mode 100644 tests/unit/Html/Tag/TextAreaCest.php diff --git a/phalcon/Html/Tag.zep b/phalcon/Html/Tag.zep deleted file mode 100644 index c19a0b34322..00000000000 --- a/phalcon/Html/Tag.zep +++ /dev/null @@ -1,1798 +0,0 @@ - -/** - * This file is part of the Phalcon Framework. - * - * (c) Phalcon Team - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ - -namespace Phalcon\Html; - -use Phalcon\Di\DiInterface; -use Phalcon\Di\AbstractInjectionAware; -use Phalcon\Escaper; -use Phalcon\Escaper\EscaperInterface; -use Phalcon\Helper\Arr; -use Phalcon\Html\Exception; -use Phalcon\Url\UrlInterface; -use Phalcon\Mvc\Model\ResultsetInterface; - -/** - * Phalcon\Html\Tag - * - * Phalcon\Html\Tag is designed to simplify building of HTML tags. It provides a - * set of helpers to dynamically generate HTML. - */ -class Tag extends AbstractInjectionAware -{ - /** - * @var array - */ - private append = []; - - /** - * @var int - */ - private docType = 5; // HTML5 - - /** - * @var - */ - private escaper; - - /** - * @var array - */ - private prepend = []; - - /** - * @var string - */ - private separator = ""; - - /** - * @var string - */ - private title = ""; - - /** - * @var array - */ - private values = []; - - /** - * @var - */ - private url; - - /** - * Constants - */ - const HTML32 = 1; - const HTML401_STRICT = 2; - const HTML401_TRANSITIONAL = 3; - const HTML401_FRAMESET = 4; - const HTML5 = 5; - const XHTML10_STRICT = 6; - const XHTML10_TRANSITIONAL = 7; - const XHTML10_FRAMESET = 8; - const XHTML11 = 9; - const XHTML20 = 10; - const XHTML5 = 11; - - /** - * Constructor - */ - public function __construct( escaper = null, url = null) - { - let this->escaper = escaper, - this->url = url; - } - - /** - * Appends a text to current document title - */ - public function appendTitle(var title) -> - { - if typeof title === "array" { - let this->append = title; - } else { - let this->append[] = (string) title; - } - - return this; - } - - /** - * Builds a HTML input[type="button"] tag - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->button('Click Me'); - * ``` - * - * Volt syntax: - * ```php - * {% raw %}{{ button('Click Me') }}{% endraw %} - * ``` - */ - public function button(string! name, array parameters = []) -> string - { - return this->renderInput("button", name, parameters); - } - - /** - * Resets the request and internal values to avoid those fields will have - * any default value. - */ - public function clear() -> void - { - let this->append = [], - this->docType = self::HTML5, - this->prepend = [], - this->separator = "", - this->title = "", - this->values = []; - } - - /** - * Builds a HTML tag - * - * Parameters - * `onlyStart` Only process the start of th element - * `selfClose` It is a self close element - * `useEol` Append PHP_EOL at the end - */ - public function element(string! tag, array parameters = []) -> string - { - var onlyStart, output, selfClose, useEol; - - let useEol = Arr::get(parameters, "useEol", false), - onlyStart = Arr::get(parameters, "onlyStart", false), - selfClose = Arr::get(parameters, "selfClose", false); - - /** - * Unset options for this control - */ - unset parameters["onlyStart"]; - unset parameters["selfClose"]; - unset parameters["useEol"]; - - let output = this->renderAttributes("<" . tag, parameters); - - if this->docType > self::HTML5 { - if selfClose { - let output .= " />"; - } else { - let output .= ">"; - } - } else { - if onlyStart { - let output .= ">"; - } else { - let output .= ">"; - } - } - - if useEol { - let output .= PHP_EOL; - } - - return output; - } - - /** - * Builds the closing tag of an html element - * - * Parameters - * `useEol` Append PHP_EOL at the end - * - * ```php - * use Phalcon\Html\Tag; - * - * $tab = new Tag(); - * - * echo $tag->elementClose( - * [ - * 'name' => 'aside', - * ] - * ); // - * - * echo $tag->elementClose( - * [ - * 'name' => 'aside', - * 'useEol' => true, - * ] - * ); // '' . PHP_EOL - * ``` - */ - public function elementClose(string! tag, array parameters = []) -> string - { - var useEol = false; - - let useEol = Arr::get(parameters, "useEol", false); - - if useEol { - return "" . PHP_EOL; - } - - return ""; - - } - - /** - * Returns the closing tag of a form element - */ - public function endForm(bool eol = true) -> string - { - if eol { - return "" . PHP_EOL; - } else { - return ""; - } - } - - /** - * Builds a HTML FORM tag - * - * ```php - * use Phalcon\Html\Tag; - * - * $tab = new Tag(); - * - * echo $tag->form('posts/save'); - * - * echo $tag->form( - * 'posts/save', - * [ - * "method" => "post", - * ] - * ); - * ``` - * - * Volt syntax: - * ```php - * {% raw %}{{ form('posts/save') }}{% endraw %} - * {% raw %}{{ form('posts/save', ['method': 'post') }}{% endraw %} - * ``` - */ - public function form(string action, array parameters = []) -> string - { - var output, params, service; - - let service = this->getService("url"); - - let parameters["method"] = Arr::get(parameters, "method", "post"), - parameters["action"] = service->get(action); - - /** - * Check for extra parameters - */ - if fetch params, parameters["parameters"] { - let parameters["action"] .= "?" . params; - - unset parameters["parameters"]; - } - - let output = this->renderAttributes(""; - - return output; - - } - - /** - * Converts text to URL-friendly strings - * - * Parameters - * `text` The text to be processed - * `separator` Separator to use (default '-') - * `lowercase` Convert to lowercase - * `replace` - * - * ```php - * use Phalcon\Html\Tag; - * - * $tab = new Tag(); - * - * echo $tag->friendlyTitle( - * [ - * 'text' => 'These are big important news', - * 'separator' => '-', - * ] - * ); - * ``` - * - * Volt Syntax: - * ```php - * {% raw %}{{ friendly_title(['text': 'These are big important news', 'separator': '-']) }}{% endraw %} - * ``` - */ - public function friendlyTitle(string! text, array parameters = []) -> string - { - var count, from, locale, lowercase, replace, separator, to, output; - - if extension_loaded("iconv") { - /** - * Save the old locale and set the new locale to UTF-8 - */ - let locale = setlocale(LC_ALL, "en_US.UTF-8"), - text = iconv("UTF-8", "ASCII//TRANSLIT", text); - } - - let lowercase = Arr::get(parameters, "lowercase", true), - replace = Arr::get(parameters, "replace", []), - separator = Arr::get(parameters, "separator", "-"); - - if !empty replace { - if unlikely (typeof replace !== "array" && typeof replace !== "string") { - throw new Exception( - "Parameter replace must be an array or a string" - ); - } - - if typeof replace === "string" { - let from = [replace]; - } else { - let from = replace; - } - - let count = count(from), - to = array_fill(0, count - 1, " "), - text = str_replace(from, to, text); - } - - let output = preg_replace("/[^a-zA-Z0-9\\/_|+ -]/", "", text); - if lowercase { - let output = strtolower(output); - } - - let output = preg_replace("/[\\/_|+ -]+/", separator, output), - output = trim(output, separator); - - if extension_loaded("iconv") { - /** - * Revert back to the old locale - */ - setlocale(LC_ALL, locale); - } - - return output; - } - - /** - * Get the document type declaration of content. If the docType has not - * been set properly, XHTML5 is returned - */ - public function getDocType() -> string - { - switch this->docType - { - case 1: - return "" . PHP_EOL; - /* no break */ - - case 2: - return "" . PHP_EOL; - /* no break */ - - case 3: - return "" . PHP_EOL; - /* no break */ - - case 4: - return "" . PHP_EOL; - /* no break */ - - case 6: - return "" . PHP_EOL; - /* no break */ - - case 7: - return "" . PHP_EOL; - /* no break */ - - case 8: - return "" . PHP_EOL; - /* no break */ - - case 9: - return "" . PHP_EOL; - /* no break */ - - case 10: - return "" . PHP_EOL; - /* no break */ - } - - return "" . PHP_EOL; - } - - /** - * Gets the current document title. The title will be automatically escaped. - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * $tag - * ->setTitleSeparator(' ') - * ->prependTitle(['Hello']) - * ->setTitle('World') - * ->appendTitle(['from Phalcon']); - * - * echo $tag->getTitle(); // Hello World from Phalcon - * echo $tag->getTitle(false); // World from Phalcon - * echo $tag->getTitle(true, false); // Hello World - * echo $tag->getTitle(false, false); // World - * ``` - * - * Volt syntax: - * ```php - * {% raw %}{{ get_title() }}{% endraw %} - * ``` - */ - public function getTitle(bool prepend = true, bool append = true) -> string - { - var item, output, title, appendTitle, prependTitle, separator, escaper; - array items; - - let escaper = this->getService("escaper"), - items = [], - output = "", - title = escaper->escapeHtml(this->title), - separator = escaper->escapeHtml(this->separator); - - if prepend { - let prependTitle = this->prepend; - - if !empty prependTitle { - var prependArray = array_reverse(prependTitle); - for item in prependArray { - let items[] = escaper->escapeHtml(item); - } - } - } - - if !empty title { - let items[] = title; - } - - if append { - let appendTitle = this->append; - - if !empty appendTitle { - for item in appendTitle { - let items[] = escaper->escapeHtml(item); - } - } - } - - if !empty items { - let output = implode(separator, items); - } - - return output; - } - - /** - * Gets the current document title separator - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->getTitleSeparator(); - * ``` - * - * Volt syntax: - * ```php - * {% raw %}{{ get_title_separator() }}{% endraw %} - * ``` - */ - public function getTitleSeparator() -> string - { - return this->separator; - } - - /** - * Every helper calls this function to check whether a component has a - * predefined value using `setAttribute` or value from $_POST - */ - public function getValue(string name, array parameters = []) -> var | null - { - var value; - - if !fetch value, parameters["value"] { - /** - * Check if there is a predefined value for it - */ - if !fetch value, this->values[name] { - /** - * Check if there is a post value for the item - */ - if !fetch value, _POST[name] { - return null; - } - } - } - - return value; - } - - /** - * Check if a helper has a default value set using `setAttribute()` or - * value from $_POST - */ - public function hasValue(string name) -> bool - { - /** - * Check if there is a predefined or a POST value for it - */ - return isset this->values[name] || isset _POST[name]; - } - - /** - * Builds HTML IMG tags - * - * Parameters - * `local` Local resource or not (default `true`) - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->image('img/bg.png'); - * - * echo $tag->image( - * 'img/photo.jpg', - * [ - * 'alt' => 'Some Photo', - * ] - * ); - * - * echo $tag->image( - * 'http://static.mywebsite.com/img/bg.png', - * [ - * 'local' => false, - * ] - * ); - * ``` - * - * Volt Syntax: - * ```php - * {% raw %}{{ image('img/bg.png') }}{% endraw %} - * {% raw %}{{ image('img/photo.jpg', ['alt': 'Some Photo') }}{% endraw %} - * {% raw %}{{ image('http://static.mywebsite.com/img/bg.png', ['local': false]) }}{% endraw %} - * ``` - */ - public function image(string url = "", array parameters = []) -> string - { - var local, service, src, output; - - let local = Arr::get(parameters, "local", true), - src = Arr::get(parameters, "src", url); - - /** - * Use the "url" service if the URI is local - */ - if local { - let service = this->getService("url"), - src = service->getStatic(url); - } - - unset parameters["local"]; - - let parameters["src"] = src; - - let output = this->renderAttributes("renderCloseTag(); - - return output; - } - - /** - * Builds a HTML input[type="check"] tag - * - * ```php - * echo $tag->inputCheckbox( - * [ - * 'name' => 'terms, - * 'value' => 'Y', - * ] - * ); - * ``` - * - * Volt syntax: - * ```php - * {% raw %}{{ input_checkbox(['name': 'terms, 'value': 'Y']) }}{% endraw %} - * ``` - */ - public function inputCheckbox(string! name, array parameters = []) -> string - { - return this->renderInputChecked("checkbox", name, parameters); - } - - /** - * Builds a HTML input[type='color'] tag - */ - public function inputColor(string! name, array parameters = []) -> string - { - return this->renderInput("color", name, parameters); - } - - /** - * Builds a HTML input[type='date'] tag - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->inputDate( - * [ - * 'name' => 'born', - * 'value' => '14-12-1980', - * ] - * ); - * ``` - * - * Volt syntax: - * ```php - * {% raw %}{{ input_date(['name':'born', 'value':'14-12-1980']) }}{% endraw %} - * ``` - */ - public function inputDate(string! name, array parameters = []) -> string - { - return this->renderInput("date", name, parameters); - } - - /** - * Builds a HTML input[type='datetime'] tag - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->inputDateTime( - * [ - * 'name' => 'born', - * 'value' => '14-12-1980', - * ] - * ); - * ``` - * - * Volt syntax: - * ```php - * {% raw %}{{ input_date_time(['name':'born', 'value':'14-12-1980']) }}{% endraw %} - * ``` - */ - public function inputDateTime(string! name, array parameters = []) -> string - { - return this->renderInput("datetime", name, parameters); - } - - /** - * Builds a HTML input[type='datetime-local'] tag - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->inputDateTimeLocal( - * [ - * 'name' => 'born', - * 'value' => '14-12-1980', - * ] - * ); - * ``` - * - * Volt syntax: - * ```php - * {% raw %}{{ input_date_time_local(['name':'born', 'value':'14-12-1980']) }}{% endraw %} - * ``` - */ - public function inputDateTimeLocal(string! name, array parameters = []) -> string - { - return this->renderInput("datetime-local", name, parameters); - } - - /** - * Builds a HTML input[type='email'] tag - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->inputEmail( - * [ - * 'name' => 'email', - * ] - * ); - * ``` - * - * Volt syntax: - * ```php - * {% raw %}{{ input_email(['name': 'email']);{% endraw %} - * ``` - */ - public function inputEmail(string! name, array parameters = []) -> string - { - return this->renderInput("email", name, parameters); - } - - /** - * Builds a HTML input[type='file'] tag - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->inputFile( - * [ - * 'name' => 'file', - * ] - * ); - * ``` - * - * Volt syntax: - * ```php - * {% raw %}{{ input_file(['name': 'file']){% endraw %} - * ``` - */ - public function inputFile(string! name, array parameters = []) -> string - { - return this->renderInput("file", name, parameters); - } - - /** - * Builds a HTML input[type='hidden'] tag - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->inputHidden( - * [ - * 'name' => 'my-field', - * 'value' => 'mike', - * ] - * ); - * ``` - */ - public function inputHidden(string! name, array parameters = []) -> string - { - return this->renderInput("hidden", name, parameters); - } - - /** - * Builds a HTML input[type="image"] tag - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * echo $tag->inputImage( - * [ - * 'src' => '/img/button.png', - * ] - * ); - * ``` - * - * Volt syntax: - * ```php - * {% raw %}{{ input_image(['src': '/img/button.png']) }}{% endraw %} - * ``` - */ - public function inputImage(string! name, array parameters = []) -> string - { - return this->renderInput("image", name, parameters); - } - - /** - * Builds a HTML input[type='month'] tag - */ - public function inputMonth(string! name, array parameters = []) -> string - { - return this->renderInput("month", name, parameters); - } - - /** - * Builds a HTML input[type='number'] tag - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->numericField( - * [ - * 'name' => 'price', - * 'min' => '1', - * 'max' => '5', - * ] - * ); - * ``` - */ - public function inputNumeric(string! name, array parameters = []) -> string - { - return this->renderInput("numeric", name, parameters); - } - - /** - * Builds a HTML input[type='password'] tag - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->passwordField( - * [ - * 'name' => 'my-field', - * 'size' => 30, - * ] - * ); - * ``` - */ - public function inputPassword(string! name, array parameters = []) -> string - { - return this->renderInput("password", name, parameters); - } - - /** - * Builds a HTML input[type="radio"] tag - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->inputRadio( - * [ - * 'name' => 'weather', - * 'value" => 'hot', - * ] - * ); - * ``` - * - * Volt syntax: - * ```php - * {% raw %}{{ input_radio(['name': 'weather', 'value": 'hot']) }}{% endraw %} - * ``` - */ - public function inputRadio(string! name, array parameters = []) -> string - { - return this->renderInputChecked("radio", name, parameters); - } - - /** - * Builds a HTML input[type='range'] tag - */ - public function inputRange(string! name, array parameters = []) -> string - { - return this->renderInput("range", name, parameters); - } - - /** - * Builds a HTML input[type='search'] tag - */ - public function inputSearch(string! name, array parameters = []) -> string - { - return this->renderInput("search", name, parameters); - } - - /** - * Builds a HTML input[type='tel'] tag - */ - public function inputTel(string! name, array parameters = []) -> string - { - return this->renderInput("tel", name, parameters); - } - - /** - * Builds a HTML input[type='text'] tag - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->inputText( - * [ - * 'name' => 'my-field', - * 'size' => 30, - * ] - * ); - * ``` - */ - public function inputText(string! name, array parameters = []) -> string - { - return this->renderInput("text", name, parameters); - } - - /** - * Builds a HTML input[type='time'] tag - */ - public function inputTime(string! name, array parameters = []) -> string - { - return this->renderInput("time", name, parameters); - } - - /** - * Builds a HTML input[type='url'] tag - */ - public function inputUrl(string! name, array parameters = []) -> string - { - return this->renderInput("url", name, parameters); - } - - /** - * Builds a HTML input[type='week'] tag - */ - public function inputWeek(string! name, array parameters = []) -> string - { - return this->renderInput("week", name, parameters); - } - - /** - * Builds a script[type="javascript"] tag - * - * Parameters - * `local` Local resource or not (default `true`) - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->javascript( - * 'http://ajax.googleapis.com/ajax/libs/jquery/2.2.3/jquery.min.js', - * [ - * 'local' => false, - * ] - * ); - * - * echo $tag->javascript('javascript/jquery.js'); - * ``` - * - * Volt syntax: - * ```php - * {% raw %}{{ javascript('http://ajax.googleapis.com/ajax/libs/jquery/2.2.3/jquery.min.js', ['local': false]) }}{% endraw %} - * {% raw %}{{ javascript('javascript/jquery.js') }}{% endraw %} - * ``` - */ - public function javascript(string url, array parameters = []) -> string - { - var service, output; - bool local; - - let local = (bool) Arr::get(parameters, "local", true); - - /** - * URLs are generated through the "url" service - */ - if local { - let service = this->getService("url"), - parameters["src"] = service->getStatic(url); - } else { - let parameters["src"] = url; - } - - unset parameters["local"]; - - let parameters["type"] = Arr::get(parameters, "type", "text/javascript"); - - if this->docType >= self::HTML5 && "text/javascript" == parameters["type"] { - unset(parameters["type"]); - } - - let output = this->renderAttributes("" . PHP_EOL; - - return output; - - } - - /** - * Builds a HTML A tag using framework conventions - * - * Parameters - * `local` Local resource or not (default `true`) - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->link('signup/register', 'Register Here!'); - * - * echo $tag->link( - * 'signup/register', - * 'Register Here!', - * [ - * 'class' => 'btn-primary', - * ] - * ); - * - * echo $tag->link( - * 'https://phalcon.io/', - * 'Phalcon!', - * [ - * 'local' => false, - * ] - * ); - * - * echo $tag->link( - * 'https://phalcon.io/', - * 'Phalcon!', - * [ - * 'local' => false, - * 'target' => '_new', - * ] - * ); - * ``` - */ - public function link(string url, string text = "", array parameters = []) -> string - { - var local, query, output, service, text; - - let service = this->getService("url"), - url = Arr::get(parameters, "url", url), - text = Arr::get(parameters, "text", text), - local = Arr::get(parameters, "local", true), - query = Arr::get(parameters, "query", null); - - unset parameters["url"]; - unset parameters["local"]; - unset parameters["text"]; - unset parameters["query"]; - - let parameters["href"] = service->get(url, query, local); - - let output = this->renderAttributes("" . text . ""; - - return output; - } - - /** - * Prepends a text to current document title - */ - public function prependTitle(var title) -> - { - if typeof title === "array" { - let this->prepend = title; - } else { - let this->prepend[] = (string) title; - } - - return this; - } - - /** - * Renders the title with title tags. The title is automaticall escaped - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * $tag - * ->setTitleSeparator(' ') - * ->prependTitle(['Hello']) - * ->setTitle('World') - * ->appendTitle(['from Phalcon']); - * - * echo $tag->renderTitle(); // Hello World from Phalcon - * echo $tag->renderTitle(false); // World from Phalcon - * echo $tag->renderTitle(true, false); // Hello World - * echo $tag->renderTitle(false, false); // World - * ``` - * - * ```php - * {% raw %}{{ render_title() }}{% endraw %} - * ``` - */ - public function renderTitle(bool prepend = true, bool append = true) -> string - { - return "" . this->getTitle(prepend, append) . "" . PHP_EOL; - } - - /** - * Builds a HTML input[type="reset"] tag - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->reset('Reset') - * ``` - * - * Volt syntax: - * ```php - * {% raw %}{{ reset('Save') }}{% endraw %} - * ``` - */ - public function reset(string! name, array parameters = []) -> string - { - return this->renderInput("reset", name, parameters); - } - - /** - * Builds a select element. It accepts an array or a resultset from - * a Phalcon\Mvc\Model - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->select( - * 'status', - * [ - * 'id' => 'status-id', - * 'useEmpty' => true, - * 'emptyValue => '', - * 'emptyText' => 'Choose Status...', - * ], - * [ - * 'A' => 'Active', - * 'I' => 'Inactive', - * ] - * ); - * - * echo $tag->select( - * 'status', - * [ - * 'id' => 'status-id', - * 'useEmpty' => true, - * 'emptyValue => '', - * 'emptyText' => 'Choose Type...', - * 'using' => [ - * 'id, - * 'name', - * ], - * ], - * Robots::find( - * [ - * 'conditions' => 'type = :type:', - * 'bind' => [ - * 'type' => 'mechanical', - * ] - * ] - * ) - * ); - * ``` - */ - public function select(string! name, array parameters = [], data = null) -> string - { - var emptyText, emptyValue, id, output, outputEmpty, useEmpty, using, value; - - let id = Arr::get(parameters, "id", name), - name = Arr::get(parameters, "name", name), - useEmpty = Arr::get(parameters, "useEmpty", false), - using = [], - parameters["name"] = name, - parameters["id"] = id, - outputEmpty = ""; - - /** - * First check the data passed. We only accept datasets or arrays - */ - if unlikely (typeof data !== "array" && data !== "object") { - throw new Exception( - "The dataset must be either an array or a ResultsetInterface" - ); - } - - /** - * For the ResultsetInterface we need the 'using' parameter - */ - if typeof data === "object" { - let using = Arr::get( - parameters, - "using", - [] - ); - - if typeof using === "array" && count(using) === 2 { - unset parameters["using"]; - } else { - throw new Exception( - "The 'using' parameter is not a valid array" - ); - } - } - - /** - * Check if `useEmpty` has been passed - */ - if useEmpty { - let emptyText = Arr::get(parameters, "emptyText", "Choose..."), - emptyValue = Arr::get(parameters, "emptyValue", ""), - outputEmpty = sprintf( - "\t" . PHP_EOL, - emptyValue, - emptyText - ); - - unset parameters["useEmpty"]; - unset parameters["emptyText"]; - unset parameters["emptyValue"]; - } - - if !fetch value, parameters["value"] { - let value = this->getValue(id, parameters); - } else { - unset parameters["value"]; - } - - let output = this->renderAttributes("" . PHP_EOL - . outputEmpty; - - if typeof data == "object" { - /** - * Create the SELECT's option from a resultset - */ - let output .= this->renderSelectResultset(data, using, value, "" . PHP_EOL); - } elseif typeof data == "array" { - /** - * Create the SELECT's option from an array - */ - let output .= this->renderSelectArray(data, value, "" . PHP_EOL); - } else { - throw new Exception("Invalid data provided to SELECT helper"); - } - - let output .= ""; - - return output; - } - - /** - * Assigns default values to generated tags by helpers - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * // Assigning 'peter' to 'name' component - * $tag->setAttribute('name', 'peter'); - * - * // Later in the view - * echo $tag->inputText('name'); // Will have the value 'peter' by default - * ``` - */ - public function setAttribute(string! name, value) -> - { - if value !== null { - if unlikely (typeof value == "array" || typeof value == "object") { - throw new Exception( - "Only scalar values can be assigned to UI components" - ); - } - } - - let this->values[name] = value; - - return this; - } - - /** - * Assigns default values to generated tags by helpers - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * // Assigning 'peter' to 'name' component - * $tag->setAttribute( - * [ - * 'name' => 'peter', - * ] - * ); - * - * // Later in the view - * echo $tag->inputText('name'); // Will have the value 'peter' by default - * ``` - */ - public function setAttributes(array! values, bool merge = false) -> - { - if merge { - let this->values = array_merge(this->values, values); - } else { - let this->values = values; - } - - return this; - } - - /** - * Set the document type of content - */ - public function setDocType(int doctype) -> - { - if (doctype < self::HTML32 || doctype > self::XHTML5) { - let this->docType = self::HTML5; - } else { - let this->docType = doctype; - } - - return this; - } - - /** - * Set the title separator of view content - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * $tag->setTitle('Phalcon Framework'); - * ``` - */ - public function setTitle(string title) -> - { - let this->title = title; - - return this; - } - - /** - * Set the title separator of view content - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->setTitleSeparator('-'); - * ``` - */ - public function setTitleSeparator(string separator) -> - { - let this->separator = separator; - - return this; - } - - /** - * Builds a LINK[rel="stylesheet"] tag - * - * Parameters - * `local` Local resource or not (default `true`) - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->stylesheet( - * 'http://fonts.googleapis.com/css?family=Rosario', - * [ - * 'local' => false, - * ] - * ); - * - * echo $tag->stylesheet('css/style.css'); - * ``` - * - * Volt syntax: - * ```php - * {% raw %}{{ stylesheet('http://fonts.googleapis.com/css?family=Rosario', ['local': false]) }}{% endraw %} - * {% raw %}{{ stylesheet('css/style.css') }}{% endraw %} - * ``` - */ - public function stylesheet(string url, array parameters = []) -> string - { - var service, output; - bool local; - - let local = (bool) Arr::get(parameters, "local", true); - - unset parameters["local"]; - - /** - * URLs are generated through the "url" service - */ - if local { - let service = this->getService("url"), - parameters["href"] = service->getStatic(url); - } else { - let parameters["href"] = url; - } - - if !isset parameters["rel"] { - let parameters["rel"] = "stylesheet"; - } - - let parameters["type"] = Arr::get(parameters, "type", "text/css"), - output = this->renderAttributes("renderCloseTag(true); - - return output; - } - - /** - * Builds a HTML input[type="submit"] tag - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->submit('Save'); - * ``` - * - * Volt syntax: - * ```php - * {% raw %}{{ submit('Save') }}{% endraw %} - * ``` - */ - public function submit(string! name, array parameters = []) -> string - { - return this->renderInput("submit", name, parameters); - } - - /** - * Builds a HTML TEXTAREA tag - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->textArea( - * 'comments', - * [ - * 'cols' => 10, - * 'rows' => 4, - * ] - * ); - * ``` - * - * Volt syntax: - * ```php - * {% raw %}{{ text_area('comments', ['cols': 10, 'rows': 4]) }}{% endraw %} - * ``` - */ - public function textArea(string! name, array parameters = []) -> string - { - var content, output; - - let parameters["id"] = Arr::get(parameters, "id", name), - parameters["name"] = Arr::get(parameters, "name", name); - - if isset parameters["value"] { - let content = parameters["value"]; - - unset parameters["value"]; - } else { - let content = this->getValue(parameters["id"], parameters); - } - - - let output = this->renderAttributes("" . - htmlspecialchars(content) . ""; - - return output; - } - - /** - * Returns the escaper service from the DI container - */ - private function getService(string name) - { - var service, container; - - if "escaper" === name { - let service = this->escaper; - } else { - let service = this->url; - } - - if typeof service !== "object" { - let container = this->getDI(); - - if unlikely typeof container != "object" { - throw new Exception( - Exception::containerServiceNotFound( - "the '" . name . "' service" - ) - ); - } - - if "escaper" === name { - let service = container->getShared(name), - this->escaper = service; - } else { - let service = container->getShared(name), - this->url = service; - } - } - - return service; - } - - /** - * Renders the attributes of an HTML element - */ - private function renderAttributes(string! code, array! attributes) -> string - { - var attrs, escaper, escaped, key, newCode, intersect, order, value; - - let order = [ - "rel" : null, - "type" : null, - "for" : null, - "src" : null, - "href" : null, - "action" : null, - "id" : null, - "name" : null, - "value" : null, - "class" : null - ]; - - let intersect = array_intersect_key(order, attributes), - attrs = array_merge(intersect, attributes), - escaper = this->getService("escaper"); - - unset attrs["escape"]; - - let newCode = code; - - for key, value in attrs { - if typeof key == "string" && value !== null { - if unlikely (typeof value == "array" || typeof value == "resource") { - throw new Exception( - "Value at index: '" . key . "' type: '" . gettype(value) . "' cannot be rendered" - ); - } - - if escaper { - let escaped = escaper->escapeHtmlAttr(value); - } else { - let escaped = value; - } - - let newCode .= " " . key . "=\"" . escaped . "\""; - } - } - - return newCode; - } - - /** - * Returns the closing tag depending on the doctype - */ - private function renderCloseTag(bool addEol = false) -> string - { - var eol = ""; - - if addEol { - let eol = PHP_EOL; - } - - /** - * Check if Doctype is XHTML - */ - if this->docType > self::HTML5 { - return " />" . eol; - } else { - return ">" . eol; - } - } - - /** - * Builds `input` elements - */ - private function renderInput(string type, string name, array parameters = []) -> string - { - var name, id, output; - - let id = Arr::get(parameters, "id", name); - - let parameters["id"] = id, - parameters["name"] = name, - parameters["type"] = type, - parameters["value"] = this->getValue(id, parameters); - - let output = this->renderAttributes("renderCloseTag(); - - return output; - } - /** - * Builds INPUT tags that implements the checked attribute - */ - private function renderInputChecked(string type, string name, array parameters = []) -> string - { - var currentValue, id, name, output, value; - - let id = Arr::get(parameters, "id", name); - - /** - * Automatically check inputs - */ - if fetch currentValue, parameters["value"] { - unset parameters["value"]; - - let value = this->getValue(id, parameters); - - if value !== null && currentValue === value { - let parameters["checked"] = "checked"; - } - - let parameters["value"] = currentValue; - } else { - let value = this->getValue(id, parameters); - - /** - * Evaluate the value in POST - */ - if value !== null { - let parameters["checked"] = "checked"; - } - - /** - * Update the value anyways - */ - let parameters["value"] = value; - } - - let parameters["id"] = id, - parameters["name"] = name, - parameters["type"] = type; - - let output = this->renderAttributes("renderCloseTag(); - - return output; - } - - /** - * Generates the option values or optgroup from an array - */ - private function renderSelectArray(array options, var value, string closeOption) -> string - { - var label, strOptionValue, strValue, optionText, optionValue, output; - - let output = ""; - - for optionValue, optionText in options { - let label = htmlspecialchars(optionValue); - - /** - * Check if this is an option group - */ - if typeof optionText === "array" { - let output .= "\t" . PHP_EOL - . this->renderSelectArray(optionText, value, closeOption) . "\t" . PHP_EOL; - - continue; - } - - if typeof value === "array" { - if in_array(optionValue, value) { - let output .= "\t
            KeyValue
            " . keyVar . "" . this->getVarDump(dataVar[0]) . "
            ") TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_11$$5, exception, "gettrace", NULL, 0); + ZEPHIR_CALL_METHOD(&_10$$5, exception, "gettrace", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_11$$5, 0, "phalcon/Debug.zep", 286); - if (Z_TYPE_P(&_11$$5) == IS_ARRAY) { - ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_11$$5), _14$$5, _15$$5, _12$$5) + zephir_is_iterable(&_10$$5, 0, "phalcon/Debug.zep", 297); + if (Z_TYPE_P(&_10$$5) == IS_ARRAY) { + ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_10$$5), _13$$5, _14$$5, _11$$5) { ZEPHIR_INIT_NVAR(&n); - if (_15$$5 != NULL) { - ZVAL_STR_COPY(&n, _15$$5); + if (_14$$5 != NULL) { + ZVAL_STR_COPY(&n, _14$$5); } else { - ZVAL_LONG(&n, _14$$5); + ZVAL_LONG(&n, _13$$5); } ZEPHIR_INIT_NVAR(&traceItem); - ZVAL_COPY(&traceItem, _12$$5); - ZEPHIR_CALL_METHOD(&_16$$7, this_ptr, "showtraceitem", &_17, 201, &n, &traceItem); + ZVAL_COPY(&traceItem, _11$$5); + ZEPHIR_CALL_METHOD(&_15$$7, this_ptr, "showtraceitem", &_16, 201, &n, &traceItem); zephir_check_call_status(); - zephir_concat_self(&html, &_16$$7 TSRMLS_CC); + zephir_concat_self(&html, &_15$$7 TSRMLS_CC); } ZEND_HASH_FOREACH_END(); } else { - ZEPHIR_CALL_METHOD(NULL, &_11$$5, "rewind", NULL, 0); + ZEPHIR_CALL_METHOD(NULL, &_10$$5, "rewind", NULL, 0); zephir_check_call_status(); while (1) { - ZEPHIR_CALL_METHOD(&_13$$5, &_11$$5, "valid", NULL, 0); + ZEPHIR_CALL_METHOD(&_12$$5, &_10$$5, "valid", NULL, 0); zephir_check_call_status(); - if (!zend_is_true(&_13$$5)) { + if (!zend_is_true(&_12$$5)) { break; } - ZEPHIR_CALL_METHOD(&n, &_11$$5, "key", NULL, 0); + ZEPHIR_CALL_METHOD(&n, &_10$$5, "key", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&traceItem, &_11$$5, "current", NULL, 0); + ZEPHIR_CALL_METHOD(&traceItem, &_10$$5, "current", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_18$$8, this_ptr, "showtraceitem", &_17, 201, &n, &traceItem); + ZEPHIR_CALL_METHOD(&_17$$8, this_ptr, "showtraceitem", &_16, 201, &n, &traceItem); zephir_check_call_status(); - zephir_concat_self(&html, &_18$$8 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &_11$$5, "next", NULL, 0); + zephir_concat_self(&html, &_17$$8 TSRMLS_CC); + ZEPHIR_CALL_METHOD(NULL, &_10$$5, "next", NULL, 0); zephir_check_call_status(); } } ZEPHIR_INIT_NVAR(&traceItem); ZEPHIR_INIT_NVAR(&n); zephir_concat_self_str(&html, SL("
            ") TSRMLS_CC); - zephir_concat_self_str(&html, SL("
            ") TSRMLS_CC); - zephir_concat_self_str(&html, SL("") TSRMLS_CC); + ZEPHIR_INIT_VAR(&_18$$5); + ZEPHIR_CONCAT_SSS(&_18$$5, "
            ", "
            KeyValue
            ", ""); + zephir_concat_self(&html, &_18$$5 TSRMLS_CC); zephir_read_property(&_20$$5, this_ptr, SL("blacklist"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_21$$5); array_init(&_21$$5); @@ -571,7 +541,7 @@ PHP_METHOD(Phalcon_Debug, onUncaughtException) { ZVAL_STRING(&_22$$5, "request"); ZEPHIR_CALL_CE_STATIC(&blacklist, phalcon_helper_arr_ce, "get", &_19, 12, &_20$$5, &_22$$5, &_21$$5); zephir_check_call_status(); - zephir_is_iterable(&_REQUEST, 0, "phalcon/Debug.zep", 305); + zephir_is_iterable(&_REQUEST, 0, "phalcon/Debug.zep", 317); if (Z_TYPE_P(&_REQUEST) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_REQUEST), _25$$5, _26$$5, _23$$5) { @@ -634,58 +604,59 @@ PHP_METHOD(Phalcon_Debug, onUncaughtException) { ZEPHIR_INIT_NVAR(&value); ZEPHIR_INIT_NVAR(&keyRequest); zephir_concat_self_str(&html, SL("
            KeyValue
            ") TSRMLS_CC); - zephir_concat_self_str(&html, SL("
            ") TSRMLS_CC); - zephir_concat_self_str(&html, SL("") TSRMLS_CC); - zephir_read_property(&_36$$5, this_ptr, SL("blacklist"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_INIT_VAR(&_36$$5); + ZEPHIR_CONCAT_SSS(&_36$$5, "
            ", "
            KeyValue
            ", ""); + zephir_concat_self(&html, &_36$$5 TSRMLS_CC); + zephir_read_property(&_37$$5, this_ptr, SL("blacklist"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_NVAR(&_22$$5); array_init(&_22$$5); - ZEPHIR_INIT_VAR(&_37$$5); - ZVAL_STRING(&_37$$5, "server"); - ZEPHIR_CALL_CE_STATIC(&blacklist, phalcon_helper_arr_ce, "get", &_19, 12, &_36$$5, &_37$$5, &_22$$5); + ZEPHIR_INIT_VAR(&_38$$5); + ZVAL_STRING(&_38$$5, "server"); + ZEPHIR_CALL_CE_STATIC(&blacklist, phalcon_helper_arr_ce, "get", &_19, 12, &_37$$5, &_38$$5, &_22$$5); zephir_check_call_status(); - zephir_is_iterable(&_SERVER, 0, "phalcon/Debug.zep", 320); + zephir_is_iterable(&_SERVER, 0, "phalcon/Debug.zep", 333); if (Z_TYPE_P(&_SERVER) == IS_ARRAY) { - ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_SERVER), _40$$5, _41$$5, _38$$5) + ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_SERVER), _41$$5, _42$$5, _39$$5) { ZEPHIR_INIT_NVAR(&keyServer); - if (_41$$5 != NULL) { - ZVAL_STR_COPY(&keyServer, _41$$5); + if (_42$$5 != NULL) { + ZVAL_STR_COPY(&keyServer, _42$$5); } else { - ZVAL_LONG(&keyServer, _40$$5); + ZVAL_LONG(&keyServer, _41$$5); } ZEPHIR_INIT_NVAR(&value); - ZVAL_COPY(&value, _38$$5); - ZEPHIR_INIT_NVAR(&_42$$17); - zephir_fast_strtolower(&_42$$17, &keyServer); - if (1 != zephir_array_isset(&blacklist, &_42$$17)) { - ZEPHIR_CALL_METHOD(&_43$$18, this_ptr, "getvardump", &_44, 0, &value); + ZVAL_COPY(&value, _39$$5); + ZEPHIR_INIT_NVAR(&_43$$17); + zephir_fast_strtolower(&_43$$17, &keyServer); + if (1 != zephir_array_isset(&blacklist, &_43$$17)) { + ZEPHIR_CALL_METHOD(&_44$$18, this_ptr, "getvardump", &_45, 0, &value); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_45$$18); - ZEPHIR_CONCAT_SVSVS(&_45$$18, ""); - zephir_concat_self(&html, &_45$$18 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_46$$18); + ZEPHIR_CONCAT_SVSVS(&_46$$18, ""); + zephir_concat_self(&html, &_46$$18 TSRMLS_CC); } } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &_SERVER, "rewind", NULL, 0); zephir_check_call_status(); while (1) { - ZEPHIR_CALL_METHOD(&_39$$5, &_SERVER, "valid", NULL, 0); + ZEPHIR_CALL_METHOD(&_40$$5, &_SERVER, "valid", NULL, 0); zephir_check_call_status(); - if (!zend_is_true(&_39$$5)) { + if (!zend_is_true(&_40$$5)) { break; } ZEPHIR_CALL_METHOD(&keyServer, &_SERVER, "key", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&value, &_SERVER, "current", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_NVAR(&_46$$19); - zephir_fast_strtolower(&_46$$19, &keyServer); - if (1 != zephir_array_isset(&blacklist, &_46$$19)) { - ZEPHIR_CALL_METHOD(&_47$$20, this_ptr, "getvardump", &_44, 0, &value); + ZEPHIR_INIT_NVAR(&_47$$19); + zephir_fast_strtolower(&_47$$19, &keyServer); + if (1 != zephir_array_isset(&blacklist, &_47$$19)) { + ZEPHIR_CALL_METHOD(&_48$$20, this_ptr, "getvardump", &_45, 0, &value); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_48$$20); - ZEPHIR_CONCAT_SVSVS(&_48$$20, ""); - zephir_concat_self(&html, &_48$$20 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_49$$20); + ZEPHIR_CONCAT_SVSVS(&_49$$20, ""); + zephir_concat_self(&html, &_49$$20 TSRMLS_CC); } ZEPHIR_CALL_METHOD(NULL, &_SERVER, "next", NULL, 0); zephir_check_call_status(); @@ -694,97 +665,97 @@ PHP_METHOD(Phalcon_Debug, onUncaughtException) { ZEPHIR_INIT_NVAR(&value); ZEPHIR_INIT_NVAR(&keyServer); zephir_concat_self_str(&html, SL("
            KeyValue
            ", &keyServer, "", &_43$$18, "
            ", &keyServer, "", &_44$$18, "
            ", &keyServer, "", &_47$$20, "
            ", &keyServer, "", &_48$$20, "
            ") TSRMLS_CC); - zephir_concat_self_str(&html, SL("
            ") TSRMLS_CC); - zephir_concat_self_str(&html, SL("") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_49$$5, "get_included_files", NULL, 203); + ZEPHIR_INIT_VAR(&_50$$5); + ZEPHIR_CONCAT_SSS(&_50$$5, "
            ", "
            #Path
            ", ""); + zephir_concat_self(&html, &_50$$5 TSRMLS_CC); + ZEPHIR_CALL_FUNCTION(&_51$$5, "get_included_files", NULL, 203); zephir_check_call_status(); - zephir_is_iterable(&_49$$5, 0, "phalcon/Debug.zep", 332); - if (Z_TYPE_P(&_49$$5) == IS_ARRAY) { - ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_49$$5), _52$$5, _53$$5, _50$$5) + zephir_is_iterable(&_51$$5, 0, "phalcon/Debug.zep", 346); + if (Z_TYPE_P(&_51$$5) == IS_ARRAY) { + ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_51$$5), _54$$5, _55$$5, _52$$5) { ZEPHIR_INIT_NVAR(&keyFile); - if (_53$$5 != NULL) { - ZVAL_STR_COPY(&keyFile, _53$$5); + if (_55$$5 != NULL) { + ZVAL_STR_COPY(&keyFile, _55$$5); } else { - ZVAL_LONG(&keyFile, _52$$5); + ZVAL_LONG(&keyFile, _54$$5); } ZEPHIR_INIT_NVAR(&value); - ZVAL_COPY(&value, _50$$5); - ZEPHIR_INIT_LNVAR(_54$$21); - ZEPHIR_CONCAT_SVSVS(&_54$$21, ""); - zephir_concat_self(&html, &_54$$21 TSRMLS_CC); + ZVAL_COPY(&value, _52$$5); + ZEPHIR_INIT_LNVAR(_56$$21); + ZEPHIR_CONCAT_SVSVS(&_56$$21, ""); + zephir_concat_self(&html, &_56$$21 TSRMLS_CC); } ZEND_HASH_FOREACH_END(); } else { - ZEPHIR_CALL_METHOD(NULL, &_49$$5, "rewind", NULL, 0); + ZEPHIR_CALL_METHOD(NULL, &_51$$5, "rewind", NULL, 0); zephir_check_call_status(); while (1) { - ZEPHIR_CALL_METHOD(&_51$$5, &_49$$5, "valid", NULL, 0); + ZEPHIR_CALL_METHOD(&_53$$5, &_51$$5, "valid", NULL, 0); zephir_check_call_status(); - if (!zend_is_true(&_51$$5)) { + if (!zend_is_true(&_53$$5)) { break; } - ZEPHIR_CALL_METHOD(&keyFile, &_49$$5, "key", NULL, 0); + ZEPHIR_CALL_METHOD(&keyFile, &_51$$5, "key", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&value, &_49$$5, "current", NULL, 0); + ZEPHIR_CALL_METHOD(&value, &_51$$5, "current", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_55$$22); - ZEPHIR_CONCAT_SVSVS(&_55$$22, ""); - zephir_concat_self(&html, &_55$$22 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &_49$$5, "next", NULL, 0); + ZEPHIR_INIT_LNVAR(_57$$22); + ZEPHIR_CONCAT_SVSVS(&_57$$22, ""); + zephir_concat_self(&html, &_57$$22 TSRMLS_CC); + ZEPHIR_CALL_METHOD(NULL, &_51$$5, "next", NULL, 0); zephir_check_call_status(); } } ZEPHIR_INIT_NVAR(&value); ZEPHIR_INIT_NVAR(&keyFile); zephir_concat_self_str(&html, SL("
            #Path
            ", &keyFile, "", &value, "
            ", &keyFile, "", &value, "
            ", &keyFile, "", &value, "
            ", &keyFile, "", &value, "
            ") TSRMLS_CC); - zephir_concat_self_str(&html, SL("
            ") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_56$$5, "memory_get_usage", NULL, 204, &__$true); + ZEPHIR_CALL_FUNCTION(&_58$$5, "memory_get_usage", NULL, 204, &__$true); zephir_check_call_status(); - ZEPHIR_INIT_VAR(&_57$$5); - ZEPHIR_CONCAT_SVS(&_57$$5, ""); - zephir_concat_self(&html, &_57$$5 TSRMLS_CC); - zephir_concat_self_str(&html, SL("
            Memory
            Usage", &_56$$5, "
            ") TSRMLS_CC); + ZEPHIR_INIT_VAR(&_59$$5); + ZEPHIR_CONCAT_SSSVSS(&_59$$5, "
            ", "", "", "
            Memory
            Usage", &_58$$5, "
            "); + zephir_concat_self(&html, &_59$$5 TSRMLS_CC); if (Z_TYPE_P(&dataVars) == IS_ARRAY) { - zephir_concat_self_str(&html, SL("
            ") TSRMLS_CC); - zephir_concat_self_str(&html, SL("") TSRMLS_CC); - zephir_is_iterable(&dataVars, 0, "phalcon/Debug.zep", 352); + ZEPHIR_INIT_VAR(&_60$$23); + ZEPHIR_CONCAT_SSS(&_60$$23, "
            ", "
            KeyValue
            ", ""); + zephir_concat_self(&html, &_60$$23 TSRMLS_CC); + zephir_is_iterable(&dataVars, 0, "phalcon/Debug.zep", 368); if (Z_TYPE_P(&dataVars) == IS_ARRAY) { - ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&dataVars), _60$$23, _61$$23, _58$$23) + ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&dataVars), _63$$23, _64$$23, _61$$23) { ZEPHIR_INIT_NVAR(&keyVar); - if (_61$$23 != NULL) { - ZVAL_STR_COPY(&keyVar, _61$$23); + if (_64$$23 != NULL) { + ZVAL_STR_COPY(&keyVar, _64$$23); } else { - ZVAL_LONG(&keyVar, _60$$23); + ZVAL_LONG(&keyVar, _63$$23); } ZEPHIR_INIT_NVAR(&dataVar); - ZVAL_COPY(&dataVar, _58$$23); - zephir_array_fetch_long(&_63$$24, &dataVar, 0, PH_NOISY | PH_READONLY, "phalcon/Debug.zep", 349 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_62$$24, this_ptr, "getvardump", &_44, 0, &_63$$24); + ZVAL_COPY(&dataVar, _61$$23); + zephir_array_fetch_long(&_66$$24, &dataVar, 0, PH_NOISY | PH_READONLY, "phalcon/Debug.zep", 365 TSRMLS_CC); + ZEPHIR_CALL_METHOD(&_65$$24, this_ptr, "getvardump", &_45, 0, &_66$$24); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_64$$24); - ZEPHIR_CONCAT_SVSVS(&_64$$24, ""); - zephir_concat_self(&html, &_64$$24 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_67$$24); + ZEPHIR_CONCAT_SVSVS(&_67$$24, ""); + zephir_concat_self(&html, &_67$$24 TSRMLS_CC); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &dataVars, "rewind", NULL, 0); zephir_check_call_status(); while (1) { - ZEPHIR_CALL_METHOD(&_59$$23, &dataVars, "valid", NULL, 0); + ZEPHIR_CALL_METHOD(&_62$$23, &dataVars, "valid", NULL, 0); zephir_check_call_status(); - if (!zend_is_true(&_59$$23)) { + if (!zend_is_true(&_62$$23)) { break; } ZEPHIR_CALL_METHOD(&keyVar, &dataVars, "key", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&dataVar, &dataVars, "current", NULL, 0); zephir_check_call_status(); - zephir_array_fetch_long(&_66$$25, &dataVar, 0, PH_NOISY | PH_READONLY, "phalcon/Debug.zep", 349 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_65$$25, this_ptr, "getvardump", &_44, 0, &_66$$25); + zephir_array_fetch_long(&_69$$25, &dataVar, 0, PH_NOISY | PH_READONLY, "phalcon/Debug.zep", 365 TSRMLS_CC); + ZEPHIR_CALL_METHOD(&_68$$25, this_ptr, "getvardump", &_45, 0, &_69$$25); zephir_check_call_status(); - ZEPHIR_INIT_LNVAR(_67$$25); - ZEPHIR_CONCAT_SVSVS(&_67$$25, ""); - zephir_concat_self(&html, &_67$$25 TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_70$$25); + ZEPHIR_CONCAT_SVSVS(&_70$$25, ""); + zephir_concat_self(&html, &_70$$25 TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, &dataVars, "next", NULL, 0); zephir_check_call_status(); } @@ -795,11 +766,11 @@ PHP_METHOD(Phalcon_Debug, onUncaughtException) { } zephir_concat_self_str(&html, SL("") TSRMLS_CC); } - ZEPHIR_CALL_METHOD(&_68, this_ptr, "getjssources", NULL, 0); + ZEPHIR_CALL_METHOD(&_71, this_ptr, "getjssources", NULL, 0); zephir_check_call_status(); - ZEPHIR_INIT_VAR(&_69); - ZEPHIR_CONCAT_VS(&_69, &_68, ""); - zephir_concat_self(&html, &_69 TSRMLS_CC); + ZEPHIR_INIT_VAR(&_72); + ZEPHIR_CONCAT_VS(&_72, &_71, ""); + zephir_concat_self(&html, &_72 TSRMLS_CC); zend_print_zval(&html, 0); zend_update_static_property(phalcon_debug_ce, ZEND_STRL("isActive"), &__$false); RETURN_MM_BOOL(1); @@ -841,7 +812,7 @@ PHP_METHOD(Phalcon_Debug, onUncaughtLowSeverity) { ZVAL_LONG(&_3$$3, 0); ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 206, message, &_3$$3, severity, file, line); zephir_check_call_status(); - zephir_throw_exception_debug(&_2$$3, "phalcon/Debug.zep", 382 TSRMLS_CC); + zephir_throw_exception_debug(&_2$$3, "phalcon/Debug.zep", 398 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -892,7 +863,7 @@ PHP_METHOD(Phalcon_Debug, setBlacklist) { array_init(&subArray); ZEPHIR_INIT_VAR(&result); array_init(&result); - zephir_is_iterable(&area, 0, "phalcon/Debug.zep", 402); + zephir_is_iterable(&area, 0, "phalcon/Debug.zep", 418); if (Z_TYPE_P(&area) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&area), _3) { @@ -936,7 +907,7 @@ PHP_METHOD(Phalcon_Debug, setBlacklist) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(&subArray); array_init(&subArray); - zephir_is_iterable(&area, 0, "phalcon/Debug.zep", 411); + zephir_is_iterable(&area, 0, "phalcon/Debug.zep", 427); if (Z_TYPE_P(&area) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&area), _8) { @@ -1186,7 +1157,7 @@ PHP_METHOD(Phalcon_Debug, getArrayDump) { } ZEPHIR_INIT_VAR(&dump); array_init(&dump); - zephir_is_iterable(&argument, 0, "phalcon/Debug.zep", 511); + zephir_is_iterable(&argument, 0, "phalcon/Debug.zep", 527); if (Z_TYPE_P(&argument) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&argument), _3, _4, _1) { @@ -1223,7 +1194,7 @@ PHP_METHOD(Phalcon_Debug, getArrayDump) { } ZEPHIR_INIT_LNVAR(_10$$5); ZEPHIR_CONCAT_SVSV(&_10$$5, "[", &k, "] => ", &varDump); - zephir_array_append(&dump, &_10$$5, PH_SEPARATE, "phalcon/Debug.zep", 508); + zephir_array_append(&dump, &_10$$5, PH_SEPARATE, "phalcon/Debug.zep", 524); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &argument, "rewind", NULL, 0); @@ -1263,7 +1234,7 @@ PHP_METHOD(Phalcon_Debug, getArrayDump) { } ZEPHIR_INIT_LNVAR(_14$$12); ZEPHIR_CONCAT_SVSV(&_14$$12, "[", &k, "] => ", &varDump); - zephir_array_append(&dump, &_14$$12, PH_SEPARATE, "phalcon/Debug.zep", 508); + zephir_array_append(&dump, &_14$$12, PH_SEPARATE, "phalcon/Debug.zep", 524); ZEPHIR_CALL_METHOD(NULL, &argument, "next", NULL, 0); zephir_check_call_status(); } @@ -1350,7 +1321,7 @@ PHP_METHOD(Phalcon_Debug, showTraceItem) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zephir_fcall_cache_entry *_21 = NULL, *_49 = NULL; zval trace; - zval *n_param = NULL, *trace_param = NULL, className, prepareInternalClass, preparedFunctionName, html, classReflection, prepareUriClass, functionName, functionReflection, traceArgs, arguments, argument, filez, line, showFiles, lines, numberLines, showFileFragment, firstLine, lastLine, linePosition, currentLine, classNameWithLink, functionNameWithLink, _0, _17, _2$$3, _3$$3, _4$$3, _5$$3, _12$$3, _13$$3, _6$$4, _7$$4, _8$$5, _9$$6, _10$$6, _11$$6, _14$$10, _15$$11, _16$$11, *_18$$14, _19$$14, _25$$14, _26$$14, _20$$15, _22$$15, _23$$16, _24$$16, _27$$17, _29$$17, _30$$17, _31$$18, _32$$19, _33$$24, _34$$27, _35$$27, _36$$27, _37$$27, _38$$27, _39$$28, _40$$28, _41$$28, _43$$30, _44$$30, _45$$30, _46$$30, _47$$30, _48$$30; + zval *n_param = NULL, *trace_param = NULL, className, prepareInternalClass, preparedFunctionName, html, classReflection, prepareUriClass, functionName, functionReflection, traceArgs, arguments, argument, filez, line, showFiles, lines, numberLines, showFileFragment, firstLine, lastLine, linePosition, currentLine, classNameWithLink, functionNameWithLink, parts, _0, _17, _2$$3, _3$$3, _4$$3, _5$$3, _12$$3, _13$$3, _6$$4, _7$$4, _8$$5, _9$$6, _10$$6, _11$$6, _14$$10, _15$$11, _16$$11, *_18$$14, _19$$14, _25$$14, _26$$14, _20$$15, _22$$15, _23$$16, _24$$16, _27$$17, _29$$17, _30$$17, _31$$18, _32$$19, _33$$24, _34$$27, _35$$27, _36$$27, _37$$27, _38$$27, _39$$28, _40$$28, _41$$28, _43$$30, _44$$30, _45$$30, _46$$30, _47$$30, _48$$30; zend_long n, ZEPHIR_LAST_CALL_STATUS, i = 0, beforeLine$$19, afterLine$$19; zval *this_ptr = getThis(); @@ -1377,6 +1348,7 @@ PHP_METHOD(Phalcon_Debug, showTraceItem) { ZVAL_UNDEF(¤tLine); ZVAL_UNDEF(&classNameWithLink); ZVAL_UNDEF(&functionNameWithLink); + ZVAL_UNDEF(&parts); ZVAL_UNDEF(&_0); ZVAL_UNDEF(&_17); ZVAL_UNDEF(&_2$$3); @@ -1447,12 +1419,12 @@ PHP_METHOD(Phalcon_Debug, showTraceItem) { ZVAL_STRING(&_5$$3, "/^Phalcon/"); zephir_preg_match(&_4$$3, &_5$$3, &className, &_2$$3, 0, 0 , 0 TSRMLS_CC); if (zephir_is_true(&_4$$3)) { - ZEPHIR_INIT_VAR(&_6$$4); - ZVAL_STRING(&_6$$4, "\\"); - ZEPHIR_INIT_VAR(&_7$$4); - ZVAL_STRING(&_7$$4, "_"); + ZEPHIR_INIT_VAR(&parts); + zephir_fast_explode_str(&parts, SL("\\"), &className, LONG_MAX TSRMLS_CC); + zephir_array_fetch_long(&_6$$4, &parts, 0, PH_NOISY | PH_READONLY, "phalcon/Debug.zep", 633 TSRMLS_CC); + zephir_array_fetch_long(&_7$$4, &parts, 1, PH_NOISY | PH_READONLY, "phalcon/Debug.zep", 633 TSRMLS_CC); ZEPHIR_INIT_VAR(&prepareUriClass); - zephir_fast_str_replace(&prepareUriClass, &_6$$4, &_7$$4, &className TSRMLS_CC); + ZEPHIR_CONCAT_VSV(&prepareUriClass, &_6$$4, "_", &_7$$4); ZEPHIR_INIT_VAR(&classNameWithLink); ZEPHIR_CONCAT_SVSVS(&classNameWithLink, "", &className, ""); } else { @@ -1480,11 +1452,11 @@ PHP_METHOD(Phalcon_Debug, showTraceItem) { ZEPHIR_INIT_VAR(&_12$$3); ZEPHIR_CONCAT_SVS(&_12$$3, "", &classNameWithLink, ""); zephir_concat_self(&html, &_12$$3 TSRMLS_CC); - zephir_array_fetch_string(&_13$$3, &trace, SL("type"), PH_NOISY | PH_READONLY, "phalcon/Debug.zep", 649 TSRMLS_CC); + zephir_array_fetch_string(&_13$$3, &trace, SL("type"), PH_NOISY | PH_READONLY, "phalcon/Debug.zep", 666 TSRMLS_CC); zephir_concat_self(&html, &_13$$3 TSRMLS_CC); } ZEPHIR_OBS_VAR(&functionName); - zephir_array_fetch_string(&functionName, &trace, SL("function"), PH_NOISY, "phalcon/Debug.zep", 655 TSRMLS_CC); + zephir_array_fetch_string(&functionName, &trace, SL("function"), PH_NOISY, "phalcon/Debug.zep", 672 TSRMLS_CC); if (zephir_array_isset_string(&trace, SL("class"))) { ZEPHIR_CPY_WRT(&functionNameWithLink, &functionName); } else { @@ -1518,7 +1490,7 @@ PHP_METHOD(Phalcon_Debug, showTraceItem) { if (zephir_array_isset_string_fetch(&traceArgs, &trace, SL("args"), 0)) { ZEPHIR_INIT_VAR(&arguments); array_init(&arguments); - zephir_is_iterable(&traceArgs, 0, "phalcon/Debug.zep", 707); + zephir_is_iterable(&traceArgs, 0, "phalcon/Debug.zep", 724); if (Z_TYPE_P(&traceArgs) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&traceArgs), _18$$14) { @@ -1528,7 +1500,7 @@ PHP_METHOD(Phalcon_Debug, showTraceItem) { zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_22$$15); ZEPHIR_CONCAT_SVS(&_22$$15, "", &_20$$15, ""); - zephir_array_append(&arguments, &_22$$15, PH_SEPARATE, "phalcon/Debug.zep", 701); + zephir_array_append(&arguments, &_22$$15, PH_SEPARATE, "phalcon/Debug.zep", 718); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &traceArgs, "rewind", NULL, 0); @@ -1545,7 +1517,7 @@ PHP_METHOD(Phalcon_Debug, showTraceItem) { zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_24$$16); ZEPHIR_CONCAT_SVS(&_24$$16, "", &_23$$16, ""); - zephir_array_append(&arguments, &_24$$16, PH_SEPARATE, "phalcon/Debug.zep", 701); + zephir_array_append(&arguments, &_24$$16, PH_SEPARATE, "phalcon/Debug.zep", 718); ZEPHIR_CALL_METHOD(NULL, &traceArgs, "next", NULL, 0); zephir_check_call_status(); } @@ -1560,7 +1532,7 @@ PHP_METHOD(Phalcon_Debug, showTraceItem) { ZEPHIR_OBS_VAR(&filez); if (zephir_array_isset_string_fetch(&filez, &trace, SL("file"), 0)) { ZEPHIR_OBS_VAR(&_27$$17); - zephir_array_fetch_string(&_27$$17, &trace, SL("line"), PH_NOISY, "phalcon/Debug.zep", 715 TSRMLS_CC); + zephir_array_fetch_string(&_27$$17, &trace, SL("line"), PH_NOISY, "phalcon/Debug.zep", 732 TSRMLS_CC); zephir_get_strval(&_28$$17, &_27$$17); ZEPHIR_CPY_WRT(&line, &_28$$17); ZEPHIR_INIT_VAR(&_29$$17); @@ -1610,7 +1582,7 @@ PHP_METHOD(Phalcon_Debug, showTraceItem) { ZEPHIR_INIT_NVAR(&linePosition); ZVAL_LONG(&linePosition, (i - 1)); ZEPHIR_OBS_NVAR(¤tLine); - zephir_array_fetch(¤tLine, &lines, &linePosition, PH_NOISY, "phalcon/Debug.zep", 788 TSRMLS_CC); + zephir_array_fetch(¤tLine, &lines, &linePosition, PH_NOISY, "phalcon/Debug.zep", 805 TSRMLS_CC); if (zephir_is_true(&showFileFragment)) { if (ZEPHIR_IS_LONG(&firstLine, i)) { ZEPHIR_INIT_NVAR(&_34$$27); diff --git a/ext/phalcon/di/injectable.zep.c b/ext/phalcon/di/injectable.zep.c index 11c52567c97..15c44aff7f0 100644 --- a/ext/phalcon/di/injectable.zep.c +++ b/ext/phalcon/di/injectable.zep.c @@ -40,7 +40,7 @@ * @property \Phalcon\Http\Request|\Phalcon\Http\RequestInterface $request * @property \Phalcon\Http\Response|\Phalcon\Http\ResponseInterface $response * @property \Phalcon\Http\Response\Cookies|\Phalcon\Http\Response\CookiesInterface $cookies - * @property \Phalcon\Filter\FilterLocator $filter + * @property \Phalcon\Filter $filter * @property \Phalcon\Flash\Direct $flash * @property \Phalcon\Flash\Session $flashSession * @property \Phalcon\Session\ManagerInterface $session diff --git a/ext/phalcon/di/service.zep.c b/ext/phalcon/di/service.zep.c index cbf2ada3cd0..3298e796e6a 100644 --- a/ext/phalcon/di/service.zep.c +++ b/ext/phalcon/di/service.zep.c @@ -177,11 +177,11 @@ PHP_METHOD(Phalcon_Di_Service, isShared) { */ PHP_METHOD(Phalcon_Di_Service, resolve) { - zend_class_entry *_4$$13; - zend_bool found = 0, _2$$6; + zend_class_entry *_4$$14; + zend_bool found = 0, _2$$7; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; - zval *parameters = NULL, parameters_sub, *container = NULL, container_sub, __$true, __$false, __$null, shared, definition, sharedInstance, instance, builder, _0, _1$$3, _3$$13, _5$$20; + zval *parameters = NULL, parameters_sub, *container = NULL, container_sub, __$true, __$false, __$null, shared, definition, sharedInstance, instance, builder, _0, _1$$3, _3$$14, _5$$21; zval *this_ptr = getThis(); ZVAL_UNDEF(¶meters_sub); @@ -196,8 +196,8 @@ PHP_METHOD(Phalcon_Di_Service, resolve) { ZVAL_UNDEF(&builder); ZVAL_UNDEF(&_0); ZVAL_UNDEF(&_1$$3); - ZVAL_UNDEF(&_3$$13); - ZVAL_UNDEF(&_5$$20); + ZVAL_UNDEF(&_3$$14); + ZVAL_UNDEF(&_5$$21); ZEPHIR_MM_GROW(); zephir_fetch_params(1, 0, 2, ¶meters, &container); @@ -227,12 +227,15 @@ PHP_METHOD(Phalcon_Di_Service, resolve) { zephir_read_property(&_0, this_ptr, SL("definition"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&definition, &_0); if (Z_TYPE_P(&definition) == IS_STRING) { - if (zephir_class_exists(&definition, 1 TSRMLS_CC)) { - _2$$6 = Z_TYPE_P(parameters) == IS_ARRAY; - if (_2$$6) { - _2$$6 = ((zephir_fast_count_int(parameters TSRMLS_CC)) ? 1 : 0); + if (Z_TYPE_P(container) != IS_NULL) { + ZEPHIR_CALL_METHOD(&instance, container, "get", NULL, 0, &definition, parameters); + zephir_check_call_status(); + } else if (zephir_class_exists(&definition, 1 TSRMLS_CC)) { + _2$$7 = Z_TYPE_P(parameters) == IS_ARRAY; + if (_2$$7) { + _2$$7 = ((zephir_fast_count_int(parameters TSRMLS_CC)) ? 1 : 0); } - if (_2$$6) { + if (_2$$7) { ZEPHIR_INIT_NVAR(&instance); ZEPHIR_LAST_CALL_STATUS = zephir_create_instance_params(&instance, &definition, parameters TSRMLS_CC); zephir_check_call_status(); @@ -248,10 +251,10 @@ PHP_METHOD(Phalcon_Di_Service, resolve) { if (Z_TYPE_P(&definition) == IS_OBJECT) { if (zephir_instance_of_ev(&definition, zend_ce_closure TSRMLS_CC)) { if (Z_TYPE_P(container) == IS_OBJECT) { - _4$$13 = zephir_fetch_class_str_ex(SL("Closure"), ZEND_FETCH_CLASS_AUTO); - ZEPHIR_CALL_CE_STATIC(&_3$$13, _4$$13, "bind", NULL, 0, &definition, container); + _4$$14 = zephir_fetch_class_str_ex(SL("Closure"), ZEND_FETCH_CLASS_AUTO); + ZEPHIR_CALL_CE_STATIC(&_3$$14, _4$$14, "bind", NULL, 0, &definition, container); zephir_check_call_status(); - ZEPHIR_CPY_WRT(&definition, &_3$$13); + ZEPHIR_CPY_WRT(&definition, &_3$$14); } if (Z_TYPE_P(parameters) == IS_ARRAY) { ZEPHIR_INIT_NVAR(&instance); @@ -281,11 +284,11 @@ PHP_METHOD(Phalcon_Di_Service, resolve) { } } if (UNEXPECTED(found == 0)) { - ZEPHIR_INIT_VAR(&_5$$20); - object_init_ex(&_5$$20, phalcon_di_exception_serviceresolutionexception_ce); - ZEPHIR_CALL_METHOD(NULL, &_5$$20, "__construct", NULL, 5); + ZEPHIR_INIT_VAR(&_5$$21); + object_init_ex(&_5$$21, phalcon_di_exception_serviceresolutionexception_ce); + ZEPHIR_CALL_METHOD(NULL, &_5$$21, "__construct", NULL, 5); zephir_check_call_status(); - zephir_throw_exception_debug(&_5$$20, "phalcon/Di/Service.zep", 201 TSRMLS_CC); + zephir_throw_exception_debug(&_5$$21, "phalcon/Di/Service.zep", 202 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -346,7 +349,7 @@ PHP_METHOD(Phalcon_Di_Service, setParameter) { zephir_read_property(&_0, this_ptr, SL("definition"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&definition, &_0); if (UNEXPECTED(Z_TYPE_P(&definition) != IS_ARRAY)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_di_exception_ce, "Definition must be an array to update its parameters", "phalcon/Di/Service.zep", 236); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_di_exception_ce, "Definition must be an array to update its parameters", "phalcon/Di/Service.zep", 237); return; } ZEPHIR_OBS_VAR(&arguments); diff --git a/ext/phalcon/filter.zep.c b/ext/phalcon/filter.zep.c new file mode 100644 index 00000000000..069a2da3c5b --- /dev/null +++ b/ext/phalcon/filter.zep.c @@ -0,0 +1,647 @@ + +#ifdef HAVE_CONFIG_H +#include "../ext_config.h" +#endif + +#include +#include "../php_ext.h" +#include "../ext.h" + +#include +#include +#include + +#include "kernel/main.h" +#include "kernel/fcall.h" +#include "kernel/memory.h" +#include "ext/spl/spl_exceptions.h" +#include "kernel/exception.h" +#include "kernel/object.h" +#include "kernel/array.h" +#include "kernel/concat.h" +#include "Zend/zend_closures.h" +#include "kernel/operators.h" + + +/** + * This file is part of the Phalcon Framework. + * + * (c) Phalcon Team + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ +/** + * Lazy loads, stores and exposes sanitizer objects + */ +ZEPHIR_INIT_CLASS(Phalcon_Filter) { + + ZEPHIR_REGISTER_CLASS(Phalcon, Filter, phalcon, filter, phalcon_filter_method_entry, 0); + + /** + * @var array + */ + zend_declare_property_null(phalcon_filter_ce, SL("mapper"), ZEND_ACC_PROTECTED TSRMLS_CC); + + /** + * @var array + */ + zend_declare_property_null(phalcon_filter_ce, SL("services"), ZEND_ACC_PROTECTED TSRMLS_CC); + + phalcon_filter_ce->create_object = zephir_init_properties_Phalcon_Filter; + zephir_declare_class_constant_string(phalcon_filter_ce, SL("FILTER_ABSINT"), "absint"); + + zephir_declare_class_constant_string(phalcon_filter_ce, SL("FILTER_ALNUM"), "alnum"); + + zephir_declare_class_constant_string(phalcon_filter_ce, SL("FILTER_ALPHA"), "alpha"); + + zephir_declare_class_constant_string(phalcon_filter_ce, SL("FILTER_BOOL"), "bool"); + + zephir_declare_class_constant_string(phalcon_filter_ce, SL("FILTER_EMAIL"), "email"); + + zephir_declare_class_constant_string(phalcon_filter_ce, SL("FILTER_FLOAT"), "float"); + + zephir_declare_class_constant_string(phalcon_filter_ce, SL("FILTER_INT"), "int"); + + zephir_declare_class_constant_string(phalcon_filter_ce, SL("FILTER_LOWER"), "lower"); + + zephir_declare_class_constant_string(phalcon_filter_ce, SL("FILTER_LOWERFIRST"), "lowerFirst"); + + zephir_declare_class_constant_string(phalcon_filter_ce, SL("FILTER_REGEX"), "regex"); + + zephir_declare_class_constant_string(phalcon_filter_ce, SL("FILTER_REMOVE"), "remove"); + + zephir_declare_class_constant_string(phalcon_filter_ce, SL("FILTER_REPLACE"), "replace"); + + zephir_declare_class_constant_string(phalcon_filter_ce, SL("FILTER_SPECIAL"), "special"); + + zephir_declare_class_constant_string(phalcon_filter_ce, SL("FILTER_SPECIALFULL"), "specialFull"); + + zephir_declare_class_constant_string(phalcon_filter_ce, SL("FILTER_STRING"), "string"); + + zephir_declare_class_constant_string(phalcon_filter_ce, SL("FILTER_STRIPTAGS"), "striptags"); + + zephir_declare_class_constant_string(phalcon_filter_ce, SL("FILTER_TRIM"), "trim"); + + zephir_declare_class_constant_string(phalcon_filter_ce, SL("FILTER_UPPER"), "upper"); + + zephir_declare_class_constant_string(phalcon_filter_ce, SL("FILTER_UPPERFIRST"), "upperFirst"); + + zephir_declare_class_constant_string(phalcon_filter_ce, SL("FILTER_UPPERWORDS"), "upperWords"); + + zephir_declare_class_constant_string(phalcon_filter_ce, SL("FILTER_URL"), "url"); + + zend_class_implements(phalcon_filter_ce TSRMLS_CC, 1, phalcon_filter_filterinterface_ce); + return SUCCESS; + +} + +/** + * Key value pairs with name as the key and a callable as the value for + * the service object + */ +PHP_METHOD(Phalcon_Filter, __construct) { + + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; + zend_long ZEPHIR_LAST_CALL_STATUS; + zval *mapper_param = NULL; + zval mapper; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&mapper); + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 0, 1, &mapper_param); + + if (!mapper_param) { + ZEPHIR_INIT_VAR(&mapper); + array_init(&mapper); + } else { + ZEPHIR_OBS_COPY_OR_DUP(&mapper, mapper_param); + } + + + ZEPHIR_CALL_METHOD(NULL, this_ptr, "init", NULL, 0, &mapper); + zephir_check_call_status(); + ZEPHIR_MM_RESTORE(); + +} + +/** + * Get a service. If it is not in the mapper array, create a new object, + * set it and then return it. + */ +PHP_METHOD(Phalcon_Filter, get) { + + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; + zend_long ZEPHIR_LAST_CALL_STATUS; + zval *name_param = NULL, definition, _0, _3, _7, _8, _1$$3, _4$$4, _5$$5, _6$$6; + zval name, _2$$3; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&name); + ZVAL_UNDEF(&_2$$3); + ZVAL_UNDEF(&definition); + ZVAL_UNDEF(&_0); + ZVAL_UNDEF(&_3); + ZVAL_UNDEF(&_7); + ZVAL_UNDEF(&_8); + ZVAL_UNDEF(&_1$$3); + ZVAL_UNDEF(&_4$$4); + ZVAL_UNDEF(&_5$$5); + ZVAL_UNDEF(&_6$$6); + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &name_param); + + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be of the type string") TSRMLS_CC); + RETURN_MM_NULL(); + } + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { + zephir_get_strval(&name, name_param); + } else { + ZEPHIR_INIT_VAR(&name); + ZVAL_EMPTY_STRING(&name); + } + + + zephir_read_property(&_0, this_ptr, SL("mapper"), PH_NOISY_CC | PH_READONLY); + if (UNEXPECTED(!(zephir_array_isset(&_0, &name)))) { + ZEPHIR_INIT_VAR(&_1$$3); + object_init_ex(&_1$$3, phalcon_filter_exception_ce); + ZEPHIR_INIT_VAR(&_2$$3); + ZEPHIR_CONCAT_SVS(&_2$$3, "The service ", &name, " has not been found in the locator"); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 5, &_2$$3); + zephir_check_call_status(); + zephir_throw_exception_debug(&_1$$3, "phalcon/Filter.zep", 74 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); + return; + } + zephir_read_property(&_3, this_ptr, SL("services"), PH_NOISY_CC | PH_READONLY); + if (!(zephir_array_isset(&_3, &name))) { + zephir_read_property(&_4$$4, this_ptr, SL("mapper"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_OBS_VAR(&definition); + zephir_array_fetch(&definition, &_4$$4, &name, PH_NOISY, "phalcon/Filter.zep", 78 TSRMLS_CC); + if (Z_TYPE_P(&definition) == IS_STRING) { + ZEPHIR_INIT_VAR(&_5$$5); + ZEPHIR_LAST_CALL_STATUS = zephir_create_instance(&_5$$5, &definition TSRMLS_CC); + zephir_check_call_status(); + zephir_update_property_array(this_ptr, SL("services"), &name, &_5$$5); + } else if (zephir_instance_of_ev(&definition, zend_ce_closure TSRMLS_CC)) { + ZEPHIR_INIT_VAR(&_6$$6); + ZEPHIR_CALL_USER_FUNC(&_6$$6, &definition); + zephir_check_call_status(); + zephir_update_property_array(this_ptr, SL("services"), &name, &_6$$6); + } else { + zephir_update_property_array(this_ptr, SL("services"), &name, &definition); + } + } + zephir_read_property(&_7, this_ptr, SL("services"), PH_NOISY_CC | PH_READONLY); + zephir_array_fetch(&_8, &_7, &name, PH_NOISY | PH_READONLY, "phalcon/Filter.zep", 88 TSRMLS_CC); + RETURN_CTOR(&_8); + +} + +/** + * Checks if a service exists in the map array + */ +PHP_METHOD(Phalcon_Filter, has) { + + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; + zval *name_param = NULL, _0; + zval name; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&name); + ZVAL_UNDEF(&_0); + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &name_param); + + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be of the type string") TSRMLS_CC); + RETURN_MM_NULL(); + } + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { + zephir_get_strval(&name, name_param); + } else { + ZEPHIR_INIT_VAR(&name); + ZVAL_EMPTY_STRING(&name); + } + + + zephir_read_property(&_0, this_ptr, SL("mapper"), PH_NOISY_CC | PH_READONLY); + RETURN_MM_BOOL(zephir_array_isset(&_0, &name)); + +} + +/** + * Sanitizes a value with a specified single or set of sanitizers + */ +PHP_METHOD(Phalcon_Filter, sanitize) { + + zend_string *_3$$3; + zend_ulong _2$$3; + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; + zephir_fcall_cache_entry *_6 = NULL, *_8 = NULL; + zend_long ZEPHIR_LAST_CALL_STATUS; + zend_bool noRecursive, _12, _4$$5, _9$$10; + zval *value = NULL, value_sub, *sanitizers, sanitizers_sub, *noRecursive_param = NULL, sanitizer, sanitizerKey, sanitizerName, sanitizerParams, *_0$$3, _1$$3, _5$$8, _7$$9, _10$$13, _11$$14; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&value_sub); + ZVAL_UNDEF(&sanitizers_sub); + ZVAL_UNDEF(&sanitizer); + ZVAL_UNDEF(&sanitizerKey); + ZVAL_UNDEF(&sanitizerName); + ZVAL_UNDEF(&sanitizerParams); + ZVAL_UNDEF(&_1$$3); + ZVAL_UNDEF(&_5$$8); + ZVAL_UNDEF(&_7$$9); + ZVAL_UNDEF(&_10$$13); + ZVAL_UNDEF(&_11$$14); + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 2, 1, &value, &sanitizers, &noRecursive_param); + + ZEPHIR_SEPARATE_PARAM(value); + if (!noRecursive_param) { + noRecursive = 0; + } else { + noRecursive = zephir_get_boolval(noRecursive_param); + } + + + if (Z_TYPE_P(sanitizers) == IS_ARRAY) { + if (Z_TYPE_P(value) == IS_NULL) { + RETVAL_ZVAL(value, 1, 0); + RETURN_MM(); + } + zephir_is_iterable(sanitizers, 0, "phalcon/Filter.zep", 182); + if (Z_TYPE_P(sanitizers) == IS_ARRAY) { + ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(sanitizers), _2$$3, _3$$3, _0$$3) + { + ZEPHIR_INIT_NVAR(&sanitizerKey); + if (_3$$3 != NULL) { + ZVAL_STR_COPY(&sanitizerKey, _3$$3); + } else { + ZVAL_LONG(&sanitizerKey, _2$$3); + } + ZEPHIR_INIT_NVAR(&sanitizer); + ZVAL_COPY(&sanitizer, _0$$3); + if (Z_TYPE_P(&sanitizer) == IS_ARRAY) { + ZEPHIR_CPY_WRT(&sanitizerName, &sanitizerKey); + ZEPHIR_CPY_WRT(&sanitizerParams, &sanitizer); + } else { + ZEPHIR_CPY_WRT(&sanitizerName, &sanitizer); + ZEPHIR_INIT_NVAR(&sanitizerParams); + array_init(&sanitizerParams); + } + _4$$5 = Z_TYPE_P(value) == IS_ARRAY; + if (_4$$5) { + _4$$5 = !noRecursive; + } + if (_4$$5) { + ZEPHIR_CALL_METHOD(&_5$$8, this_ptr, "processarrayvalues", &_6, 231, value, &sanitizerName, &sanitizerParams); + zephir_check_call_status(); + ZEPHIR_CPY_WRT(value, &_5$$8); + } else { + ZEPHIR_CALL_METHOD(&_7$$9, this_ptr, "sanitizer", &_8, 232, value, &sanitizerName, &sanitizerParams); + zephir_check_call_status(); + ZEPHIR_CPY_WRT(value, &_7$$9); + } + } ZEND_HASH_FOREACH_END(); + } else { + ZEPHIR_CALL_METHOD(NULL, sanitizers, "rewind", NULL, 0); + zephir_check_call_status(); + while (1) { + ZEPHIR_CALL_METHOD(&_1$$3, sanitizers, "valid", NULL, 0); + zephir_check_call_status(); + if (!zend_is_true(&_1$$3)) { + break; + } + ZEPHIR_CALL_METHOD(&sanitizerKey, sanitizers, "key", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&sanitizer, sanitizers, "current", NULL, 0); + zephir_check_call_status(); + if (Z_TYPE_P(&sanitizer) == IS_ARRAY) { + ZEPHIR_CPY_WRT(&sanitizerName, &sanitizerKey); + ZEPHIR_CPY_WRT(&sanitizerParams, &sanitizer); + } else { + ZEPHIR_CPY_WRT(&sanitizerName, &sanitizer); + ZEPHIR_INIT_NVAR(&sanitizerParams); + array_init(&sanitizerParams); + } + _9$$10 = Z_TYPE_P(value) == IS_ARRAY; + if (_9$$10) { + _9$$10 = !noRecursive; + } + if (_9$$10) { + ZEPHIR_CALL_METHOD(&_10$$13, this_ptr, "processarrayvalues", &_6, 231, value, &sanitizerName, &sanitizerParams); + zephir_check_call_status(); + ZEPHIR_CPY_WRT(value, &_10$$13); + } else { + ZEPHIR_CALL_METHOD(&_11$$14, this_ptr, "sanitizer", &_8, 232, value, &sanitizerName, &sanitizerParams); + zephir_check_call_status(); + ZEPHIR_CPY_WRT(value, &_11$$14); + } + ZEPHIR_CALL_METHOD(NULL, sanitizers, "next", NULL, 0); + zephir_check_call_status(); + } + } + ZEPHIR_INIT_NVAR(&sanitizer); + ZEPHIR_INIT_NVAR(&sanitizerKey); + RETVAL_ZVAL(value, 1, 0); + RETURN_MM(); + } + _12 = Z_TYPE_P(value) == IS_ARRAY; + if (_12) { + _12 = !noRecursive; + } + if (_12) { + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "processarrayvalues", &_6, 231, value, sanitizers); + zephir_check_call_status(); + RETURN_MM(); + } + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "sanitizer", &_8, 232, value, sanitizers); + zephir_check_call_status(); + RETURN_MM(); + +} + +/** + * Set a new service to the mapper array + */ +PHP_METHOD(Phalcon_Filter, set) { + + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; + zval *name_param = NULL, *service, service_sub, _0; + zval name; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&name); + ZVAL_UNDEF(&service_sub); + ZVAL_UNDEF(&_0); + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 2, 0, &name_param, &service); + + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be of the type string") TSRMLS_CC); + RETURN_MM_NULL(); + } + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { + zephir_get_strval(&name, name_param); + } else { + ZEPHIR_INIT_VAR(&name); + ZVAL_EMPTY_STRING(&name); + } + + + zephir_update_property_array(this_ptr, SL("mapper"), &name, service); + zephir_read_property(&_0, this_ptr, SL("services"), PH_NOISY_CC | PH_READONLY); + zephir_array_unset(&_0, &name, PH_SEPARATE); + ZEPHIR_MM_RESTORE(); + +} + +/** + * Loads the objects in the internal mapper array + */ +PHP_METHOD(Phalcon_Filter, init) { + + zend_string *_3; + zend_ulong _2; + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; + zephir_fcall_cache_entry *_4 = NULL; + zend_long ZEPHIR_LAST_CALL_STATUS; + zval *mapper_param = NULL, name, service, *_0, _1; + zval mapper; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&mapper); + ZVAL_UNDEF(&name); + ZVAL_UNDEF(&service); + ZVAL_UNDEF(&_1); + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &mapper_param); + + ZEPHIR_OBS_COPY_OR_DUP(&mapper, mapper_param); + + + zephir_is_iterable(&mapper, 0, "phalcon/Filter.zep", 219); + if (Z_TYPE_P(&mapper) == IS_ARRAY) { + ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&mapper), _2, _3, _0) + { + ZEPHIR_INIT_NVAR(&name); + if (_3 != NULL) { + ZVAL_STR_COPY(&name, _3); + } else { + ZVAL_LONG(&name, _2); + } + ZEPHIR_INIT_NVAR(&service); + ZVAL_COPY(&service, _0); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "set", &_4, 0, &name, &service); + zephir_check_call_status(); + } ZEND_HASH_FOREACH_END(); + } else { + ZEPHIR_CALL_METHOD(NULL, &mapper, "rewind", NULL, 0); + zephir_check_call_status(); + while (1) { + ZEPHIR_CALL_METHOD(&_1, &mapper, "valid", NULL, 0); + zephir_check_call_status(); + if (!zend_is_true(&_1)) { + break; + } + ZEPHIR_CALL_METHOD(&name, &mapper, "key", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&service, &mapper, "current", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "set", &_4, 0, &name, &service); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(NULL, &mapper, "next", NULL, 0); + zephir_check_call_status(); + } + } + ZEPHIR_INIT_NVAR(&service); + ZEPHIR_INIT_NVAR(&name); + ZEPHIR_MM_RESTORE(); + +} + +/** + * Processes the array values with the relevant sanitizers + */ +PHP_METHOD(Phalcon_Filter, processArrayValues) { + + zend_string *_3; + zend_ulong _2; + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; + zephir_fcall_cache_entry *_5 = NULL; + zend_long ZEPHIR_LAST_CALL_STATUS; + zval sanitizerName; + zval *values_param = NULL, *sanitizerName_param = NULL, *sanitizerParams_param = NULL, itemKey, itemValue, *_0, _1, _4$$3, _6$$4; + zval values, sanitizerParams, arrayValue; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&values); + ZVAL_UNDEF(&sanitizerParams); + ZVAL_UNDEF(&arrayValue); + ZVAL_UNDEF(&itemKey); + ZVAL_UNDEF(&itemValue); + ZVAL_UNDEF(&_1); + ZVAL_UNDEF(&_4$$3); + ZVAL_UNDEF(&_6$$4); + ZVAL_UNDEF(&sanitizerName); + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 2, 1, &values_param, &sanitizerName_param, &sanitizerParams_param); + + zephir_get_arrval(&values, values_param); + zephir_get_strval(&sanitizerName, sanitizerName_param); + if (!sanitizerParams_param) { + ZEPHIR_INIT_VAR(&sanitizerParams); + array_init(&sanitizerParams); + } else { + zephir_get_arrval(&sanitizerParams, sanitizerParams_param); + } + + + ZEPHIR_INIT_VAR(&arrayValue); + array_init(&arrayValue); + zephir_is_iterable(&values, 0, "phalcon/Filter.zep", 243); + if (Z_TYPE_P(&values) == IS_ARRAY) { + ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&values), _2, _3, _0) + { + ZEPHIR_INIT_NVAR(&itemKey); + if (_3 != NULL) { + ZVAL_STR_COPY(&itemKey, _3); + } else { + ZVAL_LONG(&itemKey, _2); + } + ZEPHIR_INIT_NVAR(&itemValue); + ZVAL_COPY(&itemValue, _0); + ZEPHIR_CALL_METHOD(&_4$$3, this_ptr, "sanitizer", &_5, 232, &itemValue, &sanitizerName, &sanitizerParams); + zephir_check_call_status(); + zephir_array_update_zval(&arrayValue, &itemKey, &_4$$3, PH_COPY | PH_SEPARATE); + } ZEND_HASH_FOREACH_END(); + } else { + ZEPHIR_CALL_METHOD(NULL, &values, "rewind", NULL, 0); + zephir_check_call_status(); + while (1) { + ZEPHIR_CALL_METHOD(&_1, &values, "valid", NULL, 0); + zephir_check_call_status(); + if (!zend_is_true(&_1)) { + break; + } + ZEPHIR_CALL_METHOD(&itemKey, &values, "key", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&itemValue, &values, "current", NULL, 0); + zephir_check_call_status(); + ZEPHIR_CALL_METHOD(&_6$$4, this_ptr, "sanitizer", &_5, 232, &itemValue, &sanitizerName, &sanitizerParams); + zephir_check_call_status(); + zephir_array_update_zval(&arrayValue, &itemKey, &_6$$4, PH_COPY | PH_SEPARATE); + ZEPHIR_CALL_METHOD(NULL, &values, "next", NULL, 0); + zephir_check_call_status(); + } + } + ZEPHIR_INIT_NVAR(&itemValue); + ZEPHIR_INIT_NVAR(&itemKey); + RETURN_CTOR(&arrayValue); + +} + +/** + * Internal sanitize wrapper for recursion + */ +PHP_METHOD(Phalcon_Filter, sanitizer) { + + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; + zend_long ZEPHIR_LAST_CALL_STATUS; + zval sanitizerParams, _1; + zval sanitizerName; + zval *value, value_sub, *sanitizerName_param = NULL, *sanitizerParams_param = NULL, sanitizerObject, params, _0; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&value_sub); + ZVAL_UNDEF(&sanitizerObject); + ZVAL_UNDEF(¶ms); + ZVAL_UNDEF(&_0); + ZVAL_UNDEF(&sanitizerName); + ZVAL_UNDEF(&sanitizerParams); + ZVAL_UNDEF(&_1); + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 2, 1, &value, &sanitizerName_param, &sanitizerParams_param); + + if (UNEXPECTED(Z_TYPE_P(sanitizerName_param) != IS_STRING && Z_TYPE_P(sanitizerName_param) != IS_NULL)) { + zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sanitizerName' must be of the type string") TSRMLS_CC); + RETURN_MM_NULL(); + } + if (EXPECTED(Z_TYPE_P(sanitizerName_param) == IS_STRING)) { + zephir_get_strval(&sanitizerName, sanitizerName_param); + } else { + ZEPHIR_INIT_VAR(&sanitizerName); + ZVAL_EMPTY_STRING(&sanitizerName); + } + if (!sanitizerParams_param) { + ZEPHIR_INIT_VAR(&sanitizerParams); + array_init(&sanitizerParams); + } else { + zephir_get_arrval(&sanitizerParams, sanitizerParams_param); + } + + + ZEPHIR_CALL_METHOD(&_0, this_ptr, "has", NULL, 0, &sanitizerName); + zephir_check_call_status(); + if (!(zephir_is_true(&_0))) { + RETVAL_ZVAL(value, 1, 0); + RETURN_MM(); + } + ZEPHIR_CALL_METHOD(&sanitizerObject, this_ptr, "get", NULL, 0, &sanitizerName); + zephir_check_call_status(); + ZEPHIR_INIT_VAR(&_1); + zephir_create_array(&_1, 1, 0 TSRMLS_CC); + zephir_array_fast_append(&_1, value); + ZEPHIR_INIT_VAR(¶ms); + zephir_fast_array_merge(¶ms, &_1, &sanitizerParams TSRMLS_CC); + ZEPHIR_CALL_USER_FUNC_ARRAY(return_value, &sanitizerObject, ¶ms); + zephir_check_call_status(); + RETURN_MM(); + +} + +zend_object *zephir_init_properties_Phalcon_Filter(zend_class_entry *class_type TSRMLS_DC) { + + zval _0, _2, _1$$3, _3$$4; + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; + ZVAL_UNDEF(&_0); + ZVAL_UNDEF(&_2); + ZVAL_UNDEF(&_1$$3); + ZVAL_UNDEF(&_3$$4); + + ZEPHIR_MM_GROW(); + + { + zval local_this_ptr, *this_ptr = &local_this_ptr; + ZEPHIR_CREATE_OBJECT(this_ptr, class_type); + zephir_read_property(&_0, this_ptr, SL("services"), PH_NOISY_CC | PH_READONLY); + if (Z_TYPE_P(&_0) == IS_NULL) { + ZEPHIR_INIT_VAR(&_1$$3); + array_init(&_1$$3); + zephir_update_property_zval(this_ptr, SL("services"), &_1$$3); + } + zephir_read_property(&_2, this_ptr, SL("mapper"), PH_NOISY_CC | PH_READONLY); + if (Z_TYPE_P(&_2) == IS_NULL) { + ZEPHIR_INIT_VAR(&_3$$4); + array_init(&_3$$4); + zephir_update_property_zval(this_ptr, SL("mapper"), &_3$$4); + } + ZEPHIR_MM_RESTORE(); + return Z_OBJ_P(this_ptr); + } + +} + diff --git a/ext/phalcon/filter.zep.h b/ext/phalcon/filter.zep.h new file mode 100644 index 00000000000..c264625e8c1 --- /dev/null +++ b/ext/phalcon/filter.zep.h @@ -0,0 +1,101 @@ + +extern zend_class_entry *phalcon_filter_ce; + +ZEPHIR_INIT_CLASS(Phalcon_Filter); + +PHP_METHOD(Phalcon_Filter, __construct); +PHP_METHOD(Phalcon_Filter, get); +PHP_METHOD(Phalcon_Filter, has); +PHP_METHOD(Phalcon_Filter, sanitize); +PHP_METHOD(Phalcon_Filter, set); +PHP_METHOD(Phalcon_Filter, init); +PHP_METHOD(Phalcon_Filter, processArrayValues); +PHP_METHOD(Phalcon_Filter, sanitizer); +zend_object *zephir_init_properties_Phalcon_Filter(zend_class_entry *class_type TSRMLS_DC); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_filter___construct, 0, 0, 0) + ZEND_ARG_ARRAY_INFO(0, mapper, 0) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_filter_get, 0, 1, NULL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_filter_get, 0, 1, IS_OBJECT, "NULL", 0) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, name) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_filter_has, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_filter_has, 0, 1, _IS_BOOL, NULL, 0) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, name) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_filter_sanitize, 0, 0, 2) + ZEND_ARG_INFO(0, value) + ZEND_ARG_INFO(0, sanitizers) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, noRecursive, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, noRecursive) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_filter_set, 0, 0, 2) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, name) +#endif + ZEND_ARG_INFO(0, service) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_filter_init, 0, 0, 1) + ZEND_ARG_ARRAY_INFO(0, mapper, 0) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_filter_processarrayvalues, 0, 2, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_filter_processarrayvalues, 0, 2, IS_ARRAY, NULL, 0) +#endif + ZEND_ARG_ARRAY_INFO(0, values, 0) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, sanitizerName, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, sanitizerName) +#endif + ZEND_ARG_ARRAY_INFO(0, sanitizerParams, 0) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_filter_sanitizer, 0, 0, 2) + ZEND_ARG_INFO(0, value) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, sanitizerName, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, sanitizerName) +#endif + ZEND_ARG_ARRAY_INFO(0, sanitizerParams, 0) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(phalcon_filter_method_entry) { + PHP_ME(Phalcon_Filter, __construct, arginfo_phalcon_filter___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Filter, get, arginfo_phalcon_filter_get, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Filter, has, arginfo_phalcon_filter_has, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Filter, sanitize, arginfo_phalcon_filter_sanitize, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Filter, set, arginfo_phalcon_filter_set, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Filter, init, arginfo_phalcon_filter_init, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Filter, processArrayValues, arginfo_phalcon_filter_processarrayvalues, ZEND_ACC_PRIVATE) + PHP_ME(Phalcon_Filter, sanitizer, arginfo_phalcon_filter_sanitizer, ZEND_ACC_PRIVATE) + PHP_FE_END +}; diff --git a/ext/phalcon/filter/filterfactory.zep.c b/ext/phalcon/filter/filterfactory.zep.c index fcf4b0324b4..606f043c028 100644 --- a/ext/phalcon/filter/filterfactory.zep.c +++ b/ext/phalcon/filter/filterfactory.zep.c @@ -49,7 +49,7 @@ PHP_METHOD(Phalcon_Filter_FilterFactory, newInstance) { ZEPHIR_MM_GROW(); - object_init_ex(return_value, phalcon_filter_filter_ce); + object_init_ex(return_value, phalcon_filter_ce); ZEPHIR_CALL_METHOD(&_0, this_ptr, "getadapters", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 233, &_0); diff --git a/ext/phalcon/flash/abstractflash.zep.c b/ext/phalcon/flash/abstractflash.zep.c index da9e1261f0c..e039a02d770 100644 --- a/ext/phalcon/flash/abstractflash.zep.c +++ b/ext/phalcon/flash/abstractflash.zep.c @@ -91,6 +91,17 @@ ZEPHIR_INIT_CLASS(Phalcon_Flash_AbstractFlash) { } +/** + */ +PHP_METHOD(Phalcon_Flash_AbstractFlash, getAutoescape) { + + zval *this_ptr = getThis(); + + + RETURN_MEMBER(getThis(), "autoescape"); + +} + /** */ PHP_METHOD(Phalcon_Flash_AbstractFlash, getCssClasses) { @@ -206,18 +217,6 @@ PHP_METHOD(Phalcon_Flash_AbstractFlash, error) { } -/** - * Returns the autoescape mode in generated html - */ -PHP_METHOD(Phalcon_Flash_AbstractFlash, getAutoescape) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "autoescape"); - -} - /** * Returns the Escaper Service */ @@ -260,7 +259,7 @@ PHP_METHOD(Phalcon_Flash_AbstractFlash, getEscaperService) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 5, &_3$$4); zephir_check_call_status(); - zephir_throw_exception_debug(&_2$$4, "phalcon/Flash/AbstractFlash.zep", 130 TSRMLS_CC); + zephir_throw_exception_debug(&_2$$4, "phalcon/Flash/AbstractFlash.zep", 122 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -283,7 +282,7 @@ PHP_METHOD(Phalcon_Flash_AbstractFlash, getEscaperService) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_10$$6, "__construct", NULL, 5, &_11$$6); zephir_check_call_status(); - zephir_throw_exception_debug(&_10$$6, "phalcon/Flash/AbstractFlash.zep", 138 TSRMLS_CC); + zephir_throw_exception_debug(&_10$$6, "phalcon/Flash/AbstractFlash.zep", 130 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -550,7 +549,7 @@ PHP_METHOD(Phalcon_Flash_AbstractFlash, outputMessage) { ZEPHIR_INIT_VAR(&content); ZVAL_STRING(&content, ""); } - zephir_is_iterable(message, 0, "phalcon/Flash/AbstractFlash.zep", 278); + zephir_is_iterable(message, 0, "phalcon/Flash/AbstractFlash.zep", 270); if (Z_TYPE_P(message) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(message), _1$$3) { diff --git a/ext/phalcon/flash/abstractflash.zep.h b/ext/phalcon/flash/abstractflash.zep.h index 892253a3fae..bea8fedfc4a 100644 --- a/ext/phalcon/flash/abstractflash.zep.h +++ b/ext/phalcon/flash/abstractflash.zep.h @@ -3,12 +3,12 @@ extern zend_class_entry *phalcon_flash_abstractflash_ce; ZEPHIR_INIT_CLASS(Phalcon_Flash_AbstractFlash); +PHP_METHOD(Phalcon_Flash_AbstractFlash, getAutoescape); PHP_METHOD(Phalcon_Flash_AbstractFlash, getCssClasses); PHP_METHOD(Phalcon_Flash_AbstractFlash, getCustomTemplate); PHP_METHOD(Phalcon_Flash_AbstractFlash, __construct); PHP_METHOD(Phalcon_Flash_AbstractFlash, clear); PHP_METHOD(Phalcon_Flash_AbstractFlash, error); -PHP_METHOD(Phalcon_Flash_AbstractFlash, getAutoescape); PHP_METHOD(Phalcon_Flash_AbstractFlash, getEscaperService); PHP_METHOD(Phalcon_Flash_AbstractFlash, notice); PHP_METHOD(Phalcon_Flash_AbstractFlash, setAutoescape); @@ -25,6 +25,13 @@ PHP_METHOD(Phalcon_Flash_AbstractFlash, prepareEscapedMessage); PHP_METHOD(Phalcon_Flash_AbstractFlash, prepareHtmlMessage); zend_object *zephir_init_properties_Phalcon_Flash_AbstractFlash(zend_class_entry *class_type TSRMLS_DC); +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_abstractflash_getautoescape, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_abstractflash_getautoescape, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_abstractflash_getcssclasses, 0, 0, IS_ARRAY, 0) #else @@ -56,13 +63,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_abstractflash_erro #endif ZEND_END_ARG_INFO() -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_abstractflash_getautoescape, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_abstractflash_getautoescape, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 70200 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_flash_abstractflash_getescaperservice, 0, 0, Phalcon\\Escaper\\EscaperInterface, 0) #else @@ -221,12 +221,12 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_flash_abstractflash_prep ZEND_END_ARG_INFO() ZEPHIR_INIT_FUNCS(phalcon_flash_abstractflash_method_entry) { + PHP_ME(Phalcon_Flash_AbstractFlash, getAutoescape, arginfo_phalcon_flash_abstractflash_getautoescape, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, getCssClasses, arginfo_phalcon_flash_abstractflash_getcssclasses, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, getCustomTemplate, arginfo_phalcon_flash_abstractflash_getcustomtemplate, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, __construct, arginfo_phalcon_flash_abstractflash___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) PHP_ME(Phalcon_Flash_AbstractFlash, clear, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, error, arginfo_phalcon_flash_abstractflash_error, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Flash_AbstractFlash, getAutoescape, arginfo_phalcon_flash_abstractflash_getautoescape, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, getEscaperService, arginfo_phalcon_flash_abstractflash_getescaperservice, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, notice, arginfo_phalcon_flash_abstractflash_notice, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Flash_AbstractFlash, setAutoescape, arginfo_phalcon_flash_abstractflash_setautoescape, ZEND_ACC_PUBLIC) diff --git a/ext/phalcon/http/cookie.zep.c b/ext/phalcon/http/cookie.zep.c index d10207ef283..180f910736d 100644 --- a/ext/phalcon/http/cookie.zep.c +++ b/ext/phalcon/http/cookie.zep.c @@ -242,7 +242,7 @@ PHP_METHOD(Phalcon_Http_Cookie, delete) { ZEPHIR_INIT_VAR(&_4); zephir_time(&_4); ZVAL_LONG(&_0, (zephir_get_numberval(&_4) - 691200)); - ZEPHIR_CALL_FUNCTION(NULL, "setcookie", NULL, 285, &name, &__$null, &_0, &path, &domain, &secure, &httpOnly); + ZEPHIR_CALL_FUNCTION(NULL, "setcookie", NULL, 274, &name, &__$null, &_0, &path, &domain, &secure, &httpOnly); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -760,7 +760,7 @@ PHP_METHOD(Phalcon_Http_Cookie, send) { } else { ZEPHIR_CPY_WRT(&encryptValue, &value); } - ZEPHIR_CALL_FUNCTION(NULL, "setcookie", NULL, 285, &name, &encryptValue, &expire, &path, &domain, &secure, &httpOnly); + ZEPHIR_CALL_FUNCTION(NULL, "setcookie", NULL, 274, &name, &encryptValue, &expire, &path, &domain, &secure, &httpOnly); zephir_check_call_status(); RETURN_THIS(); @@ -1074,7 +1074,7 @@ PHP_METHOD(Phalcon_Http_Cookie, assertSignKeyIsLongEnough) { } - ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 286, &signKey); + ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 275, &signKey); zephir_check_call_status(); if (UNEXPECTED(ZEPHIR_LT_LONG(&length, 32))) { ZEPHIR_INIT_VAR(&_0$$3); diff --git a/ext/phalcon/http/message/request.zep.c b/ext/phalcon/http/message/request.zep.c index e5ebc297807..b8360ee676b 100644 --- a/ext/phalcon/http/message/request.zep.c +++ b/ext/phalcon/http/message/request.zep.c @@ -102,13 +102,13 @@ PHP_METHOD(Phalcon_Http_Message_Request, __construct) { if (UNEXPECTED(ZEPHIR_IS_IDENTICAL(&_0, body))) { ZEPHIR_INIT_NVAR(body); object_init_ex(body, phalcon_http_message_stream_input_ce); - ZEPHIR_CALL_METHOD(NULL, body, "__construct", NULL, 287); + ZEPHIR_CALL_METHOD(NULL, body, "__construct", NULL, 276); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&_1, this_ptr, "processuri", NULL, 288, uri); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "processuri", NULL, 277, uri); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("uri"), &_1); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "processheaders", NULL, 289, headers); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "processheaders", NULL, 278, headers); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("headers"), &_2); ZEPHIR_CALL_METHOD(&_3, this_ptr, "processmethod", NULL, 97, &method); diff --git a/ext/phalcon/http/message/requestfactory.zep.c b/ext/phalcon/http/message/requestfactory.zep.c index 65a5829705c..485facc34b8 100644 --- a/ext/phalcon/http/message/requestfactory.zep.c +++ b/ext/phalcon/http/message/requestfactory.zep.c @@ -79,7 +79,7 @@ PHP_METHOD(Phalcon_Http_Message_RequestFactory, createRequest) { object_init_ex(return_value, phalcon_http_message_request_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 290, &method, uri); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 279, &method, uri); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/http/message/response.zep.c b/ext/phalcon/http/message/response.zep.c index 536274e7a26..bdf10768032 100644 --- a/ext/phalcon/http/message/response.zep.c +++ b/ext/phalcon/http/message/response.zep.c @@ -154,9 +154,9 @@ PHP_METHOD(Phalcon_Http_Message_Response, __construct) { ZVAL_LONG(&_0, code); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "processcode", NULL, 291, &_0); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "processcode", NULL, 280, &_0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "processheaders", NULL, 289, &headers); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "processheaders", NULL, 278, &headers); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("headers"), &_1); ZEPHIR_INIT_VAR(&_3); @@ -278,7 +278,7 @@ PHP_METHOD(Phalcon_Http_Message_Response, checkCodeValue) { ZVAL_LONG(&_2, code); ZVAL_LONG(&_3, 100); ZVAL_LONG(&_4, 599); - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_helper_number_ce, "between", &_1, 292, &_2, &_3, &_4); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_helper_number_ce, "between", &_1, 281, &_2, &_3, &_4); zephir_check_call_status(); if (!ZEPHIR_IS_TRUE_IDENTICAL(&_0)) { ZEPHIR_INIT_VAR(&_5$$3); @@ -430,14 +430,14 @@ PHP_METHOD(Phalcon_Http_Message_Response, processCode) { } - ZEPHIR_CALL_METHOD(&phrases, this_ptr, "getphrases", NULL, 293); + ZEPHIR_CALL_METHOD(&phrases, this_ptr, "getphrases", NULL, 282); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "checkcodetype", NULL, 294, code); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "checkcodetype", NULL, 283, code); zephir_check_call_status(); _0 = zephir_get_intval(code); ZEPHIR_INIT_NVAR(code); ZVAL_LONG(code, _0); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "checkcodevalue", NULL, 295, code); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "checkcodevalue", NULL, 284, code); zephir_check_call_status(); if (UNEXPECTED(Z_TYPE_P(phrase) != IS_STRING)) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_message_exception_invalidargumentexception_ce, "Invalid response reason", "phalcon/Http/Message/Response.zep", 243); diff --git a/ext/phalcon/http/message/responsefactory.zep.c b/ext/phalcon/http/message/responsefactory.zep.c index 64f9c0dc408..b71da8ecca9 100644 --- a/ext/phalcon/http/message/responsefactory.zep.c +++ b/ext/phalcon/http/message/responsefactory.zep.c @@ -83,10 +83,10 @@ PHP_METHOD(Phalcon_Http_Message_ResponseFactory, createResponse) { ZEPHIR_INIT_VAR(&_0); object_init_ex(&_0, phalcon_http_message_response_ce); - ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 296); + ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 285); zephir_check_call_status(); ZVAL_LONG(&_1, code); - ZEPHIR_RETURN_CALL_METHOD(&_0, "withstatus", NULL, 297, &_1, &reasonPhrase); + ZEPHIR_RETURN_CALL_METHOD(&_0, "withstatus", NULL, 286, &_1, &reasonPhrase); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/http/message/serverrequest.zep.c b/ext/phalcon/http/message/serverrequest.zep.c index 36c49804723..3c546614fdb 100644 --- a/ext/phalcon/http/message/serverrequest.zep.c +++ b/ext/phalcon/http/message/serverrequest.zep.c @@ -325,10 +325,10 @@ PHP_METHOD(Phalcon_Http_Message_ServerRequest, __construct) { if (UNEXPECTED(ZEPHIR_IS_IDENTICAL(&_0, body))) { ZEPHIR_INIT_NVAR(body); object_init_ex(body, phalcon_http_message_stream_input_ce); - ZEPHIR_CALL_METHOD(NULL, body, "__construct", NULL, 287); + ZEPHIR_CALL_METHOD(NULL, body, "__construct", NULL, 276); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "checkuploadedfiles", NULL, 298, &uploadFiles); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "checkuploadedfiles", NULL, 287, &uploadFiles); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_1, this_ptr, "processprotocol", NULL, 33, &protocol); zephir_check_call_status(); @@ -336,10 +336,10 @@ PHP_METHOD(Phalcon_Http_Message_ServerRequest, __construct) { ZEPHIR_CALL_METHOD(&_2, this_ptr, "processmethod", NULL, 97, &method); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("method"), &_2); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "processheaders", NULL, 289, headers); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "processheaders", NULL, 278, headers); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("headers"), &_3); - ZEPHIR_CALL_METHOD(&_4, this_ptr, "processuri", NULL, 288, uri); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "processuri", NULL, 277, uri); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("uri"), &_4); ZEPHIR_INIT_VAR(&_6); @@ -551,8 +551,7 @@ PHP_METHOD(Phalcon_Http_Message_ServerRequest, withCookieParams) { * @param array|object|null $data * * @return ServerRequest - * @throws InvalidArgumentException if an unsupported argument type is - * provided. + * @throws InvalidArgumentException if an unsupported argument type is provided. * */ PHP_METHOD(Phalcon_Http_Message_ServerRequest, withParsedBody) { @@ -655,7 +654,7 @@ PHP_METHOD(Phalcon_Http_Message_ServerRequest, withUploadedFiles) { zephir_get_arrval(&uploadedFiles, uploadedFiles_param); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "checkuploadedfiles", NULL, 298, &uploadedFiles); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "checkuploadedfiles", NULL, 287, &uploadedFiles); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "uploadedFiles"); @@ -738,14 +737,14 @@ PHP_METHOD(Phalcon_Http_Message_ServerRequest, checkUploadedFiles) { zephir_get_arrval(&files, files_param); - zephir_is_iterable(&files, 0, "phalcon/Http/Message/ServerRequest.zep", 355); + zephir_is_iterable(&files, 0, "phalcon/Http/Message/ServerRequest.zep", 354); if (Z_TYPE_P(&files) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&files), _0) { ZEPHIR_INIT_NVAR(&file); ZVAL_COPY(&file, _0); if (UNEXPECTED(Z_TYPE_P(&file) == IS_ARRAY)) { - ZEPHIR_CALL_METHOD(NULL, this_ptr, "checkuploadedfiles", &_2, 298, &file); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "checkuploadedfiles", &_2, 287, &file); zephir_check_call_status(); } else { _3$$5 = Z_TYPE_P(&file) == IS_OBJECT; @@ -753,7 +752,7 @@ PHP_METHOD(Phalcon_Http_Message_ServerRequest, checkUploadedFiles) { _3$$5 = zephir_is_instance_of(&file, SL("Psr\\Http\\Message\\UploadedFileInterface") TSRMLS_CC); } if (UNEXPECTED(!(_3$$5))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_message_exception_invalidargumentexception_ce, "Invalid uploaded file", "phalcon/Http/Message/ServerRequest.zep", 351); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_message_exception_invalidargumentexception_ce, "Invalid uploaded file", "phalcon/Http/Message/ServerRequest.zep", 350); return; } } @@ -770,7 +769,7 @@ PHP_METHOD(Phalcon_Http_Message_ServerRequest, checkUploadedFiles) { ZEPHIR_CALL_METHOD(&file, &files, "current", NULL, 0); zephir_check_call_status(); if (UNEXPECTED(Z_TYPE_P(&file) == IS_ARRAY)) { - ZEPHIR_CALL_METHOD(NULL, this_ptr, "checkuploadedfiles", &_2, 298, &file); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "checkuploadedfiles", &_2, 287, &file); zephir_check_call_status(); } else { _4$$9 = Z_TYPE_P(&file) == IS_OBJECT; @@ -778,7 +777,7 @@ PHP_METHOD(Phalcon_Http_Message_ServerRequest, checkUploadedFiles) { _4$$9 = zephir_is_instance_of(&file, SL("Psr\\Http\\Message\\UploadedFileInterface") TSRMLS_CC); } if (UNEXPECTED(!(_4$$9))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_message_exception_invalidargumentexception_ce, "Invalid uploaded file", "phalcon/Http/Message/ServerRequest.zep", 351); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_message_exception_invalidargumentexception_ce, "Invalid uploaded file", "phalcon/Http/Message/ServerRequest.zep", 350); return; } } diff --git a/ext/phalcon/http/message/serverrequestfactory.zep.c b/ext/phalcon/http/message/serverrequestfactory.zep.c index f314f77580f..24e2170d12b 100644 --- a/ext/phalcon/http/message/serverrequestfactory.zep.c +++ b/ext/phalcon/http/message/serverrequestfactory.zep.c @@ -93,7 +93,7 @@ PHP_METHOD(Phalcon_Http_Message_ServerRequestFactory, createServerRequest) { object_init_ex(return_value, phalcon_http_message_serverrequest_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 299, &method, uri, &serverParams); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 288, &method, uri, &serverParams); zephir_check_call_status(); RETURN_MM(); @@ -195,22 +195,22 @@ PHP_METHOD(Phalcon_Http_Message_ServerRequestFactory, load) { } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "checknullarray", NULL, 300, &server, &_SERVER); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "checknullarray", NULL, 289, &server, &_SERVER); zephir_check_call_status(); ZEPHIR_CPY_WRT(&server, &_0); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "checknullarray", NULL, 300, &files, &_FILES); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "checknullarray", NULL, 289, &files, &_FILES); zephir_check_call_status(); ZEPHIR_CPY_WRT(&files, &_1); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "checknullarray", NULL, 300, &cookies, &_COOKIE); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "checknullarray", NULL, 289, &cookies, &_COOKIE); zephir_check_call_status(); ZEPHIR_CPY_WRT(&cookies, &_2); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "checknullarray", NULL, 300, &get, &_GET); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "checknullarray", NULL, 289, &get, &_GET); zephir_check_call_status(); ZEPHIR_CPY_WRT(&get, &_2); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "checknullarray", NULL, 300, &post, &_POST); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "checknullarray", NULL, 289, &post, &_POST); zephir_check_call_status(); ZEPHIR_CPY_WRT(&post, &_3); - ZEPHIR_CALL_METHOD(&serverCollection, this_ptr, "parseserver", NULL, 301, &server); + ZEPHIR_CALL_METHOD(&serverCollection, this_ptr, "parseserver", NULL, 290, &server); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_4); ZVAL_STRING(&_4, "REQUEST_METHOD"); @@ -224,9 +224,9 @@ PHP_METHOD(Phalcon_Http_Message_ServerRequestFactory, load) { ZVAL_STRING(&_5, "1.1"); ZEPHIR_CALL_METHOD(&protocol, &serverCollection, "get", NULL, 0, &_4, &_5); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&headers, this_ptr, "parseheaders", NULL, 302, &serverCollection); + ZEPHIR_CALL_METHOD(&headers, this_ptr, "parseheaders", NULL, 291, &serverCollection); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&filesCollection, this_ptr, "parseuploadedfiles", NULL, 303, &files); + ZEPHIR_CALL_METHOD(&filesCollection, this_ptr, "parseuploadedfiles", NULL, 292, &files); zephir_check_call_status(); _6 = ZEPHIR_IS_EMPTY(&cookies); if (_6) { @@ -241,11 +241,11 @@ PHP_METHOD(Phalcon_Http_Message_ServerRequestFactory, load) { ZVAL_STRING(&_9$$3, "cookie"); ZEPHIR_CALL_METHOD(&_8$$3, &headers, "get", NULL, 0, &_9$$3); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&cookies, this_ptr, "parsecookieheader", NULL, 304, &_8$$3); + ZEPHIR_CALL_METHOD(&cookies, this_ptr, "parsecookieheader", NULL, 293, &_8$$3); zephir_check_call_status(); } object_init_ex(return_value, phalcon_http_message_serverrequest_ce); - ZEPHIR_CALL_METHOD(&_10, this_ptr, "parseuri", NULL, 305, &serverCollection, &headers); + ZEPHIR_CALL_METHOD(&_10, this_ptr, "parseuri", NULL, 294, &serverCollection, &headers); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_11, &serverCollection, "toarray", NULL, 0); zephir_check_call_status(); @@ -255,7 +255,7 @@ PHP_METHOD(Phalcon_Http_Message_ServerRequestFactory, load) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "php://input"); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 299, &method, &_10, &_11, &_4, &_12, &cookies, &get, &_13, &post, &protocol); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 288, &method, &_10, &_11, &_4, &_12, &cookies, &get, &_13, &post, &protocol); zephir_check_call_status(); RETURN_MM(); @@ -276,7 +276,7 @@ PHP_METHOD(Phalcon_Http_Message_ServerRequestFactory, getHeaders) { ZEPHIR_MM_GROW(); if (EXPECTED((zephir_function_exists_ex(SL("apache_request_headers") TSRMLS_CC) == SUCCESS))) { - ZEPHIR_RETURN_CALL_FUNCTION("apache_request_headers", NULL, 306); + ZEPHIR_RETURN_CALL_FUNCTION("apache_request_headers", NULL, 295); zephir_check_call_status(); RETURN_MM(); } @@ -326,14 +326,14 @@ PHP_METHOD(Phalcon_Http_Message_ServerRequestFactory, calculateUriHost) { ZEPHIR_INIT_NVAR(&_0); ZVAL_STRING(&_0, "host"); ZVAL_BOOL(&_2, 0); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "getheader", NULL, 307, headers, &_0, &_2); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "getheader", NULL, 296, headers, &_0, &_2); zephir_check_call_status(); if (UNEXPECTED(zephir_is_true(&_1))) { ZEPHIR_INIT_VAR(&_3$$3); ZVAL_STRING(&_3$$3, "host"); - ZEPHIR_CALL_METHOD(&host, this_ptr, "getheader", NULL, 307, headers, &_3$$3); + ZEPHIR_CALL_METHOD(&host, this_ptr, "getheader", NULL, 296, headers, &_3$$3); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "calculateurihostfromheader", NULL, 308, &host); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "calculateurihostfromheader", NULL, 297, &host); zephir_check_call_status(); RETURN_MM(); } @@ -602,7 +602,7 @@ PHP_METHOD(Phalcon_Http_Message_ServerRequestFactory, calculateUriScheme) { ZVAL_STRING(&_1, "x-forwarded-proto"); ZEPHIR_INIT_VAR(&_8); ZVAL_STRING(&_8, "https"); - ZEPHIR_CALL_METHOD(&header, this_ptr, "getheader", NULL, 307, headers, &_1, &_8); + ZEPHIR_CALL_METHOD(&header, this_ptr, "getheader", NULL, 296, headers, &_1, &_8); zephir_check_call_status(); _9 = !zephir_is_true(&isHttps); if (!(_9)) { @@ -717,7 +717,7 @@ PHP_METHOD(Phalcon_Http_Message_ServerRequestFactory, createUploadedFile) { zephir_array_fetch_string(&_4, &file, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/Http/Message/ServerRequestFactory.zep", 304 TSRMLS_CC); zephir_array_fetch_string(&_5, &file, SL("size"), PH_NOISY | PH_READONLY, "phalcon/Http/Message/ServerRequestFactory.zep", 305 TSRMLS_CC); zephir_array_fetch_string(&_6, &file, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Message/ServerRequestFactory.zep", 306 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 309, &_4, &_5, &_6, &name, &type); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 298, &_4, &_5, &_6, &name, &type); zephir_check_call_status(); RETURN_MM(); @@ -806,7 +806,7 @@ PHP_METHOD(Phalcon_Http_Message_ServerRequestFactory, parseCookieHeader) { ZEPHIR_CALL_FUNCTION(&_1, "strtr", NULL, 3, &cookieHeader, &_0); zephir_check_call_status(); ZEPHIR_MAKE_REF(&cookies); - ZEPHIR_CALL_FUNCTION(NULL, "parse_str", NULL, 310, &_1, &cookies); + ZEPHIR_CALL_FUNCTION(NULL, "parse_str", NULL, 299, &_1, &cookies); ZEPHIR_UNREF(&cookies); zephir_check_call_status(); RETURN_CCTOR(&cookies); @@ -1074,7 +1074,7 @@ PHP_METHOD(Phalcon_Http_Message_ServerRequestFactory, parseServer) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "HTTP_AUTHORIZATION"); - ZEPHIR_CALL_METHOD(&_0, &collection, "has", NULL, 311, &_1); + ZEPHIR_CALL_METHOD(&_0, &collection, "has", NULL, 300, &_1); zephir_check_call_status(); _2 = !zephir_is_true(&_0); if (_2) { @@ -1087,12 +1087,12 @@ PHP_METHOD(Phalcon_Http_Message_ServerRequestFactory, parseServer) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&_4$$3); ZVAL_STRING(&_4$$3, "Authorization"); - ZEPHIR_CALL_METHOD(&_3$$3, &headersCollection, "has", NULL, 311, &_4$$3); + ZEPHIR_CALL_METHOD(&_3$$3, &headersCollection, "has", NULL, 300, &_4$$3); zephir_check_call_status(); if (UNEXPECTED(zephir_is_true(&_3$$3))) { ZEPHIR_INIT_VAR(&_6$$4); ZVAL_STRING(&_6$$4, "Authorization"); - ZEPHIR_CALL_METHOD(&_5$$4, &headersCollection, "get", NULL, 312, &_6$$4); + ZEPHIR_CALL_METHOD(&_5$$4, &headersCollection, "get", NULL, 301, &_6$$4); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_6$$4); ZVAL_STRING(&_6$$4, "HTTP_AUTHORIZATION"); @@ -1176,14 +1176,14 @@ PHP_METHOD(Phalcon_Http_Message_ServerRequestFactory, parseUploadedFiles) { _7$$3 = zephir_array_isset_string(&file, SL("tmp_name")); } if (EXPECTED(_7$$3)) { - ZEPHIR_CALL_METHOD(&_8$$5, this_ptr, "createuploadedfile", &_9, 313, &file); + ZEPHIR_CALL_METHOD(&_8$$5, this_ptr, "createuploadedfile", &_9, 302, &file); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &collection, "set", &_6, 37, &key, &_8$$5); zephir_check_call_status(); continue; } if (UNEXPECTED(Z_TYPE_P(&file) == IS_ARRAY)) { - ZEPHIR_CALL_METHOD(&data, this_ptr, "parseuploadedfiles", &_10, 303, &file); + ZEPHIR_CALL_METHOD(&data, this_ptr, "parseuploadedfiles", &_10, 292, &file); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_11$$6, &data, "toarray", &_12, 0); zephir_check_call_status(); @@ -1221,14 +1221,14 @@ PHP_METHOD(Phalcon_Http_Message_ServerRequestFactory, parseUploadedFiles) { _15$$7 = zephir_array_isset_string(&file, SL("tmp_name")); } if (EXPECTED(_15$$7)) { - ZEPHIR_CALL_METHOD(&_16$$9, this_ptr, "createuploadedfile", &_9, 313, &file); + ZEPHIR_CALL_METHOD(&_16$$9, this_ptr, "createuploadedfile", &_9, 302, &file); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &collection, "set", &_6, 37, &key, &_16$$9); zephir_check_call_status(); continue; } if (UNEXPECTED(Z_TYPE_P(&file) == IS_ARRAY)) { - ZEPHIR_CALL_METHOD(&data, this_ptr, "parseuploadedfiles", &_10, 303, &file); + ZEPHIR_CALL_METHOD(&data, this_ptr, "parseuploadedfiles", &_10, 292, &file); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_17$$10, &data, "toarray", &_12, 0); zephir_check_call_status(); @@ -1289,30 +1289,30 @@ PHP_METHOD(Phalcon_Http_Message_ServerRequestFactory, parseUri) { object_init_ex(&uri, phalcon_http_message_uri_ce); ZEPHIR_CALL_METHOD(NULL, &uri, "__construct", NULL, 98); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&scheme, this_ptr, "calculateurischeme", NULL, 314, server, headers); + ZEPHIR_CALL_METHOD(&scheme, this_ptr, "calculateurischeme", NULL, 303, server, headers); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_0, &uri, "withscheme", NULL, 315, &scheme); + ZEPHIR_CALL_METHOD(&_0, &uri, "withscheme", NULL, 304, &scheme); zephir_check_call_status(); ZEPHIR_CPY_WRT(&uri, &_0); - ZEPHIR_CALL_METHOD(&split, this_ptr, "calculateurihost", NULL, 316, server, headers); + ZEPHIR_CALL_METHOD(&split, this_ptr, "calculateurihost", NULL, 305, server, headers); zephir_check_call_status(); ZEPHIR_OBS_VAR(&_1); zephir_array_fetch_long(&_1, &split, 0, PH_NOISY, "phalcon/Http/Message/ServerRequestFactory.zep", 523 TSRMLS_CC); if (EXPECTED(!(ZEPHIR_IS_EMPTY(&_1)))) { zephir_array_fetch_long(&_3$$3, &split, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Message/ServerRequestFactory.zep", 524 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_2$$3, &uri, "withhost", NULL, 317, &_3$$3); + ZEPHIR_CALL_METHOD(&_2$$3, &uri, "withhost", NULL, 306, &_3$$3); zephir_check_call_status(); ZEPHIR_CPY_WRT(&uri, &_2$$3); ZEPHIR_OBS_VAR(&_4$$3); zephir_array_fetch_long(&_4$$3, &split, 1, PH_NOISY, "phalcon/Http/Message/ServerRequestFactory.zep", 525 TSRMLS_CC); if (UNEXPECTED(!(ZEPHIR_IS_EMPTY(&_4$$3)))) { zephir_array_fetch_long(&_6$$4, &split, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Message/ServerRequestFactory.zep", 526 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_5$$4, &uri, "withport", NULL, 318, &_6$$4); + ZEPHIR_CALL_METHOD(&_5$$4, &uri, "withport", NULL, 307, &_6$$4); zephir_check_call_status(); ZEPHIR_CPY_WRT(&uri, &_5$$4); } } - ZEPHIR_CALL_METHOD(&path, this_ptr, "calculateuripath", NULL, 319, server); + ZEPHIR_CALL_METHOD(&path, this_ptr, "calculateuripath", NULL, 308, server); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&split); zephir_fast_explode_str(&split, SL("#"), &path, LONG_MAX TSRMLS_CC); @@ -1320,18 +1320,18 @@ PHP_METHOD(Phalcon_Http_Message_ServerRequestFactory, parseUri) { ZEPHIR_INIT_NVAR(&path); zephir_fast_explode_str(&path, SL("?"), &_7, LONG_MAX TSRMLS_CC); zephir_array_fetch_long(&_8, &path, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Message/ServerRequestFactory.zep", 536 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0, &uri, "withpath", NULL, 320, &_8); + ZEPHIR_CALL_METHOD(&_0, &uri, "withpath", NULL, 309, &_8); zephir_check_call_status(); ZEPHIR_CPY_WRT(&uri, &_0); if (UNEXPECTED(zephir_fast_count_int(&split TSRMLS_CC) > 1)) { zephir_array_fetch_long(&_10$$5, &split, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Message/ServerRequestFactory.zep", 539 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_9$$5, &uri, "withfragment", NULL, 321, &_10$$5); + ZEPHIR_CALL_METHOD(&_9$$5, &uri, "withfragment", NULL, 310, &_10$$5); zephir_check_call_status(); ZEPHIR_CPY_WRT(&uri, &_9$$5); } - ZEPHIR_CALL_METHOD(&query, this_ptr, "calculateuriquery", NULL, 322, server); + ZEPHIR_CALL_METHOD(&query, this_ptr, "calculateuriquery", NULL, 311, server); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_0, &uri, "withquery", NULL, 323, &query); + ZEPHIR_CALL_METHOD(&_0, &uri, "withquery", NULL, 312, &query); zephir_check_call_status(); ZEPHIR_CPY_WRT(&uri, &_0); RETURN_CCTOR(&uri); diff --git a/ext/phalcon/http/message/streamfactory.zep.c b/ext/phalcon/http/message/streamfactory.zep.c index 4853c75822d..7dbdb4d6505 100644 --- a/ext/phalcon/http/message/streamfactory.zep.c +++ b/ext/phalcon/http/message/streamfactory.zep.c @@ -98,9 +98,9 @@ PHP_METHOD(Phalcon_Http_Message_StreamFactory, createStream) { return; } zephir_fwrite(NULL, &handle, &content TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(NULL, "rewind", NULL, 324, &handle); + ZEPHIR_CALL_FUNCTION(NULL, "rewind", NULL, 313, &handle); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "createstreamfromresource", NULL, 325, &handle); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "createstreamfromresource", NULL, 314, &handle); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/http/message/uploadedfile.zep.c b/ext/phalcon/http/message/uploadedfile.zep.c index b90a9618b11..fbd1c0adc2f 100644 --- a/ext/phalcon/http/message/uploadedfile.zep.c +++ b/ext/phalcon/http/message/uploadedfile.zep.c @@ -255,10 +255,10 @@ PHP_METHOD(Phalcon_Http_Message_UploadedFile, __construct) { ZVAL_LONG(&_0, error); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "checkstream", NULL, 326, stream, &_0); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "checkstream", NULL, 315, stream, &_0); zephir_check_call_status(); ZVAL_LONG(&_0, error); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "checkerror", NULL, 327, &_0); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "checkerror", NULL, 316, &_0); zephir_check_call_status(); ZEPHIR_INIT_ZVAL_NREF(_0); ZVAL_LONG(&_0, size); @@ -282,8 +282,7 @@ PHP_METHOD(Phalcon_Http_Message_UploadedFile, __construct) { * raise an exception. * * @return StreamInterface Stream representation of the uploaded file. - * @throws RuntimeException in cases when no stream is available or can be - * created. + * @throws RuntimeException in cases when no stream is available or can be created. */ PHP_METHOD(Phalcon_Http_Message_UploadedFile, getStream) { @@ -308,17 +307,17 @@ PHP_METHOD(Phalcon_Http_Message_UploadedFile, getStream) { ZEPHIR_INIT_VAR(&_1$$3); object_init_ex(&_1$$3, phalcon_http_message_exception_invalidargumentexception_ce); zephir_read_property(&_3$$3, this_ptr, SL("error"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "geterrordescription", NULL, 328, &_3$$3); + ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "geterrordescription", NULL, 317, &_3$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 35, &_2$$3); zephir_check_call_status(); - zephir_throw_exception_debug(&_1$$3, "phalcon/Http/Message/UploadedFile.zep", 161 TSRMLS_CC); + zephir_throw_exception_debug(&_1$$3, "phalcon/Http/Message/UploadedFile.zep", 160 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } zephir_read_property(&_4, this_ptr, SL("alreadyMoved"), PH_NOISY_CC | PH_READONLY); if (UNEXPECTED(zephir_is_true(&_4))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_message_exception_invalidargumentexception_ce, "The file has already been moved to the target location", "phalcon/Http/Message/UploadedFile.zep", 167); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_message_exception_invalidargumentexception_ce, "The file has already been moved to the target location", "phalcon/Http/Message/UploadedFile.zep", 166); return; } ZEPHIR_OBS_VAR(&_5); @@ -402,7 +401,7 @@ PHP_METHOD(Phalcon_Http_Message_UploadedFile, moveTo) { zephir_read_property(&_0, this_ptr, SL("alreadyMoved"), PH_NOISY_CC | PH_READONLY); if (UNEXPECTED(zephir_is_true(&_0))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_message_exception_invalidargumentexception_ce, "File has already been moved", "phalcon/Http/Message/UploadedFile.zep", 216); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_message_exception_invalidargumentexception_ce, "File has already been moved", "phalcon/Http/Message/UploadedFile.zep", 215); return; } zephir_read_property(&_1, this_ptr, SL("error"), PH_NOISY_CC | PH_READONLY); @@ -410,11 +409,11 @@ PHP_METHOD(Phalcon_Http_Message_UploadedFile, moveTo) { ZEPHIR_INIT_VAR(&_2$$4); object_init_ex(&_2$$4, phalcon_http_message_exception_invalidargumentexception_ce); zephir_read_property(&_4$$4, this_ptr, SL("error"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(&_3$$4, this_ptr, "geterrordescription", NULL, 328, &_4$$4); + ZEPHIR_CALL_METHOD(&_3$$4, this_ptr, "geterrordescription", NULL, 317, &_4$$4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 35, &_3$$4); zephir_check_call_status(); - zephir_throw_exception_debug(&_2$$4, "phalcon/Http/Message/UploadedFile.zep", 222 TSRMLS_CC); + zephir_throw_exception_debug(&_2$$4, "phalcon/Http/Message/UploadedFile.zep", 221 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -424,7 +423,7 @@ PHP_METHOD(Phalcon_Http_Message_UploadedFile, moveTo) { } _6 = _5; if (_6) { - ZEPHIR_CALL_FUNCTION(&_7, "dirname", NULL, 329, targetPath); + ZEPHIR_CALL_FUNCTION(&_7, "dirname", NULL, 318, targetPath); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&_8, "is_dir", NULL, 125, &_7); zephir_check_call_status(); @@ -432,14 +431,14 @@ PHP_METHOD(Phalcon_Http_Message_UploadedFile, moveTo) { } _9 = _6; if (_9) { - ZEPHIR_CALL_FUNCTION(&_10, "dirname", NULL, 329, targetPath); + ZEPHIR_CALL_FUNCTION(&_10, "dirname", NULL, 318, targetPath); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_11, "is_writable", NULL, 330, &_10); + ZEPHIR_CALL_FUNCTION(&_11, "is_writable", NULL, 319, &_10); zephir_check_call_status(); _9 = zephir_is_true(&_11); } if (UNEXPECTED(!(_9))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_message_exception_invalidargumentexception_ce, "Target folder is empty string, not a folder or not writable", "phalcon/Http/Message/UploadedFile.zep", 234); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_message_exception_invalidargumentexception_ce, "Target folder is empty string, not a folder or not writable", "phalcon/Http/Message/UploadedFile.zep", 233); return; } ZEPHIR_INIT_VAR(&_12); @@ -461,14 +460,14 @@ PHP_METHOD(Phalcon_Http_Message_UploadedFile, moveTo) { _16 = zephir_start_with_str(&sapi, SL("phpdbg")); } if (UNEXPECTED(_16)) { - ZEPHIR_CALL_METHOD(NULL, this_ptr, "storefile", NULL, 331, targetPath); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "storefile", NULL, 320, targetPath); zephir_check_call_status(); } else { zephir_read_property(&_17$$7, this_ptr, SL("fileName"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_18$$7, "move_uploaded_file", NULL, 332, &_17$$7, targetPath); + ZEPHIR_CALL_FUNCTION(&_18$$7, "move_uploaded_file", NULL, 321, &_17$$7, targetPath); zephir_check_call_status(); if (!ZEPHIR_IS_TRUE_IDENTICAL(&_18$$7)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_message_exception_invalidargumentexception_ce, "The file cannot be moved to the target folder", "phalcon/Http/Message/UploadedFile.zep", 248); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_message_exception_invalidargumentexception_ce, "The file cannot be moved to the target folder", "phalcon/Http/Message/UploadedFile.zep", 247); return; } } @@ -508,10 +507,10 @@ PHP_METHOD(Phalcon_Http_Message_UploadedFile, checkError) { ZVAL_LONG(&_2, error); ZVAL_LONG(&_3, 0); ZVAL_LONG(&_4, 8); - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_helper_number_ce, "between", &_1, 292, &_2, &_3, &_4); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_helper_number_ce, "between", &_1, 281, &_2, &_3, &_4); zephir_check_call_status(); if (UNEXPECTED(!ZEPHIR_IS_TRUE_IDENTICAL(&_0))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_message_exception_invalidargumentexception_ce, "Invalid error. Must be one of the UPLOAD_ERR_* constants", "phalcon/Http/Message/UploadedFile.zep", 265); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_message_exception_invalidargumentexception_ce, "Invalid error. Must be one of the UPLOAD_ERR_* constants", "phalcon/Http/Message/UploadedFile.zep", 264); return; } ZEPHIR_INIT_ZVAL_NREF(_2); @@ -563,7 +562,7 @@ PHP_METHOD(Phalcon_Http_Message_UploadedFile, checkStream) { zephir_update_property_zval(this_ptr, SL("stream"), stream); break; } - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_message_exception_invalidargumentexception_ce, "Invalid stream or file passed", "phalcon/Http/Message/UploadedFile.zep", 291); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_message_exception_invalidargumentexception_ce, "Invalid stream or file passed", "phalcon/Http/Message/UploadedFile.zep", 290); return; } while(0); @@ -650,10 +649,10 @@ PHP_METHOD(Phalcon_Http_Message_UploadedFile, storeFile) { ZEPHIR_CALL_FUNCTION(&handle, "fopen", NULL, 81, &targetPath, &_0); zephir_check_call_status(); if (UNEXPECTED(ZEPHIR_IS_FALSE_IDENTICAL(&handle))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_message_exception_invalidargumentexception_ce, "Cannot write to file.", "phalcon/Http/Message/UploadedFile.zep", 332); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_message_exception_invalidargumentexception_ce, "Cannot write to file.", "phalcon/Http/Message/UploadedFile.zep", 331); return; } - ZEPHIR_CALL_METHOD(&stream, this_ptr, "getstream", NULL, 333); + ZEPHIR_CALL_METHOD(&stream, this_ptr, "getstream", NULL, 322); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &stream, "rewind", NULL, 0); zephir_check_call_status(); diff --git a/ext/phalcon/http/message/uploadedfilefactory.zep.c b/ext/phalcon/http/message/uploadedfilefactory.zep.c index ad6b62fc377..983357fbee4 100644 --- a/ext/phalcon/http/message/uploadedfilefactory.zep.c +++ b/ext/phalcon/http/message/uploadedfilefactory.zep.c @@ -104,7 +104,7 @@ PHP_METHOD(Phalcon_Http_Message_UploadedFileFactory, createUploadedFile) { object_init_ex(return_value, phalcon_http_message_uploadedfile_ce); ZVAL_LONG(&_0, size); ZVAL_LONG(&_1, error); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 309, stream, &_0, &_1, &clientFilename, &clientMediaType); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 298, stream, &_0, &_1, &clientFilename, &clientMediaType); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/http/message/uri.zep.c b/ext/phalcon/http/message/uri.zep.c index cb2e245eb75..b213fc123ee 100644 --- a/ext/phalcon/http/message/uri.zep.c +++ b/ext/phalcon/http/message/uri.zep.c @@ -299,7 +299,7 @@ PHP_METHOD(Phalcon_Http_Message_Uri, __construct) { ZVAL_STRING(&_5$$3, ""); ZEPHIR_CALL_CE_STATIC(&_2$$3, phalcon_helper_arr_ce, "get", &_3, 12, &urlParts, &_4$$3, &_5$$3); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_1$$3, this_ptr, "filterfragment", NULL, 334, &_2$$3); + ZEPHIR_CALL_METHOD(&_1$$3, this_ptr, "filterfragment", NULL, 323, &_2$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("fragment"), &_1$$3); ZEPHIR_INIT_NVAR(&_4$$3); @@ -326,7 +326,7 @@ PHP_METHOD(Phalcon_Http_Message_Uri, __construct) { ZVAL_STRING(&_7$$3, ""); ZEPHIR_CALL_CE_STATIC(&_11$$3, phalcon_helper_arr_ce, "get", &_3, 12, &urlParts, &_5$$3, &_7$$3); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_10$$3, this_ptr, "filterpath", NULL, 335, &_11$$3); + ZEPHIR_CALL_METHOD(&_10$$3, this_ptr, "filterpath", NULL, 324, &_11$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("path"), &_10$$3); ZEPHIR_INIT_NVAR(&_5$$3); @@ -334,7 +334,7 @@ PHP_METHOD(Phalcon_Http_Message_Uri, __construct) { ZVAL_NULL(&_14$$3); ZEPHIR_CALL_CE_STATIC(&_13$$3, phalcon_helper_arr_ce, "get", &_3, 12, &urlParts, &_5$$3, &_14$$3); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_12$$3, this_ptr, "filterport", NULL, 336, &_13$$3); + ZEPHIR_CALL_METHOD(&_12$$3, this_ptr, "filterport", NULL, 325, &_13$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("port"), &_12$$3); ZEPHIR_INIT_NVAR(&_5$$3); @@ -343,7 +343,7 @@ PHP_METHOD(Phalcon_Http_Message_Uri, __construct) { ZVAL_STRING(&_7$$3, ""); ZEPHIR_CALL_CE_STATIC(&_16$$3, phalcon_helper_arr_ce, "get", &_3, 12, &urlParts, &_5$$3, &_7$$3); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_15$$3, this_ptr, "filterquery", NULL, 337, &_16$$3); + ZEPHIR_CALL_METHOD(&_15$$3, this_ptr, "filterquery", NULL, 326, &_16$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("query"), &_15$$3); ZEPHIR_INIT_NVAR(&_5$$3); @@ -352,7 +352,7 @@ PHP_METHOD(Phalcon_Http_Message_Uri, __construct) { ZVAL_STRING(&_7$$3, ""); ZEPHIR_CALL_CE_STATIC(&_18$$3, phalcon_helper_arr_ce, "get", &_3, 12, &urlParts, &_5$$3, &_7$$3); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_17$$3, this_ptr, "filterscheme", NULL, 338, &_18$$3); + ZEPHIR_CALL_METHOD(&_17$$3, this_ptr, "filterscheme", NULL, 327, &_18$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("scheme"), &_17$$3); ZEPHIR_INIT_NVAR(&_5$$3); @@ -405,7 +405,7 @@ PHP_METHOD(Phalcon_Http_Message_Uri, __toString) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&authority, this_ptr, "getauthority", NULL, 339); + ZEPHIR_CALL_METHOD(&authority, this_ptr, "getauthority", NULL, 328); zephir_check_call_status(); zephir_read_property(&_0, this_ptr, SL("path"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&path, &_0); @@ -431,21 +431,21 @@ PHP_METHOD(Phalcon_Http_Message_Uri, __toString) { ZVAL_STRING(&_7, ""); ZEPHIR_INIT_VAR(&_8); ZVAL_STRING(&_8, ":"); - ZEPHIR_CALL_METHOD(&_6, this_ptr, "checkvalue", NULL, 340, &_0, &_7, &_8); + ZEPHIR_CALL_METHOD(&_6, this_ptr, "checkvalue", NULL, 329, &_0, &_7, &_8); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_7); ZVAL_STRING(&_7, "//"); - ZEPHIR_CALL_METHOD(&_9, this_ptr, "checkvalue", NULL, 340, &authority, &_7); + ZEPHIR_CALL_METHOD(&_9, this_ptr, "checkvalue", NULL, 329, &authority, &_7); zephir_check_call_status(); zephir_read_property(&_11, this_ptr, SL("query"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_NVAR(&_7); ZVAL_STRING(&_7, "?"); - ZEPHIR_CALL_METHOD(&_10, this_ptr, "checkvalue", NULL, 340, &_11, &_7); + ZEPHIR_CALL_METHOD(&_10, this_ptr, "checkvalue", NULL, 329, &_11, &_7); zephir_check_call_status(); zephir_read_property(&_13, this_ptr, SL("fragment"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_NVAR(&_7); ZVAL_STRING(&_7, "#"); - ZEPHIR_CALL_METHOD(&_12, this_ptr, "checkvalue", NULL, 340, &_13, &_7); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "checkvalue", NULL, 329, &_13, &_7); zephir_check_call_status(); ZEPHIR_INIT_VAR(&uri); ZEPHIR_CONCAT_VVVVV(&uri, &_6, &_9, &path, &_10, &_12); @@ -485,7 +485,7 @@ PHP_METHOD(Phalcon_Http_Message_Uri, getAuthority) { } ZEPHIR_OBS_VAR(&authority); zephir_read_property(&authority, this_ptr, SL("host"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(&userInfo, this_ptr, "getuserinfo", NULL, 341); + ZEPHIR_CALL_METHOD(&userInfo, this_ptr, "getuserinfo", NULL, 330); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, ""); @@ -578,7 +578,7 @@ PHP_METHOD(Phalcon_Http_Message_Uri, withFragment) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "checkstringparameter", NULL, 15, fragment); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "filterfragment", NULL, 334, fragment); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "filterfragment", NULL, 323, fragment); zephir_check_call_status(); ZEPHIR_CPY_WRT(fragment, &_0); ZEPHIR_INIT_VAR(&_1); @@ -652,7 +652,7 @@ PHP_METHOD(Phalcon_Http_Message_Uri, withPath) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_message_exception_invalidargumentexception_ce, "Path cannot contain a query string or fragment", "phalcon/Http/Message/Uri.zep", 291); return; } - ZEPHIR_CALL_METHOD(&_5, this_ptr, "filterpath", NULL, 335, path); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "filterpath", NULL, 324, path); zephir_check_call_status(); ZEPHIR_CPY_WRT(path, &_5); ZEPHIR_INIT_VAR(&_6); @@ -699,7 +699,7 @@ PHP_METHOD(Phalcon_Http_Message_Uri, withPort) { if (UNEXPECTED(Z_TYPE_P(port) != IS_NULL)) { - ZEPHIR_CALL_METHOD(&_0$$3, this_ptr, "filterport", NULL, 336, port); + ZEPHIR_CALL_METHOD(&_0$$3, this_ptr, "filterport", NULL, 325, port); zephir_check_call_status(); ZEPHIR_CPY_WRT(port, &_0$$3); _1$$3 = Z_TYPE_P(port) != IS_NULL; @@ -768,7 +768,7 @@ PHP_METHOD(Phalcon_Http_Message_Uri, withQuery) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_message_exception_invalidargumentexception_ce, "Query cannot contain a query fragment", "phalcon/Http/Message/Uri.zep", 354); return; } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "filterquery", NULL, 337, query); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "filterquery", NULL, 326, query); zephir_check_call_status(); ZEPHIR_CPY_WRT(query, &_2); ZEPHIR_INIT_VAR(&_3); @@ -815,12 +815,12 @@ PHP_METHOD(Phalcon_Http_Message_Uri, withScheme) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "checkstringparameter", NULL, 15, scheme); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "filterscheme", NULL, 338, scheme); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "filterscheme", NULL, 327, scheme); zephir_check_call_status(); ZEPHIR_CPY_WRT(scheme, &_0); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "scheme"); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "processwith", NULL, 342, scheme, &_1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "processwith", NULL, 331, scheme, &_1); zephir_check_call_status(); RETURN_MM(); @@ -915,7 +915,7 @@ PHP_METHOD(Phalcon_Http_Message_Uri, withHost) { ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "host"); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "processwith", NULL, 342, host, &_0); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "processwith", NULL, 331, host, &_0); zephir_check_call_status(); RETURN_MM(); @@ -1303,7 +1303,7 @@ PHP_METHOD(Phalcon_Http_Message_Uri, filterQuery) { } ZEPHIR_INIT_NVAR(&part); ZVAL_COPY(&part, _3); - ZEPHIR_CALL_METHOD(&split, this_ptr, "splitqueryvalue", &_7, 343, &part); + ZEPHIR_CALL_METHOD(&split, this_ptr, "splitqueryvalue", &_7, 332, &part); zephir_check_call_status(); zephir_array_fetch_long(&_8$$4, &split, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Message/Uri.zep", 590 TSRMLS_CC); if (UNEXPECTED(Z_TYPE_P(&_8$$4) == IS_NULL)) { @@ -1336,7 +1336,7 @@ PHP_METHOD(Phalcon_Http_Message_Uri, filterQuery) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&part, &parts, "current", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&split, this_ptr, "splitqueryvalue", &_7, 343, &part); + ZEPHIR_CALL_METHOD(&split, this_ptr, "splitqueryvalue", &_7, 332, &part); zephir_check_call_status(); zephir_array_fetch_long(&_17$$6, &split, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Message/Uri.zep", 590 TSRMLS_CC); if (UNEXPECTED(Z_TYPE_P(&_17$$6) == IS_NULL)) { diff --git a/ext/phalcon/http/request.zep.c b/ext/phalcon/http/request.zep.c index e07f212d179..1a754225acd 100644 --- a/ext/phalcon/http/request.zep.c +++ b/ext/phalcon/http/request.zep.c @@ -204,7 +204,7 @@ PHP_METHOD(Phalcon_Http_Request, get) { } else { ZVAL_BOOL(&_1, 0); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 344, &_REQUEST, &name, filters, defaultValue, &_0, &_1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 333, &_REQUEST, &name, filters, defaultValue, &_0, &_1); zephir_check_call_status(); RETURN_MM(); @@ -230,7 +230,7 @@ PHP_METHOD(Phalcon_Http_Request, getAcceptableContent) { ZVAL_STRING(&_0, "HTTP_ACCEPT"); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "accept"); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getqualityheader", NULL, 345, &_0, &_1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getqualityheader", NULL, 334, &_0, &_1); zephir_check_call_status(); RETURN_MM(); @@ -257,13 +257,13 @@ PHP_METHOD(Phalcon_Http_Request, getBasicAuth) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "PHP_AUTH_USER"); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "hasserver", NULL, 346, &_1); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "hasserver", NULL, 335, &_1); zephir_check_call_status(); _2 = !zephir_is_true(&_0); if (!(_2)) { ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "PHP_AUTH_PW"); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "hasserver", NULL, 346, &_1); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "hasserver", NULL, 335, &_1); zephir_check_call_status(); _2 = !zephir_is_true(&_3); } @@ -305,7 +305,7 @@ PHP_METHOD(Phalcon_Http_Request, getBestAccept) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "accept"); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getbestquality", NULL, 347, &_0, &_1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getbestquality", NULL, 336, &_0, &_1); zephir_check_call_status(); RETURN_MM(); @@ -331,7 +331,7 @@ PHP_METHOD(Phalcon_Http_Request, getBestCharset) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "charset"); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getbestquality", NULL, 347, &_0, &_1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getbestquality", NULL, 336, &_0, &_1); zephir_check_call_status(); RETURN_MM(); @@ -357,7 +357,7 @@ PHP_METHOD(Phalcon_Http_Request, getBestLanguage) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "language"); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getbestquality", NULL, 347, &_0, &_1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getbestquality", NULL, 336, &_0, &_1); zephir_check_call_status(); RETURN_MM(); @@ -393,7 +393,7 @@ PHP_METHOD(Phalcon_Http_Request, getClientAddress) { ZEPHIR_INIT_VAR(&address); ZVAL_NULL(&address); - ZEPHIR_CALL_METHOD(&server, this_ptr, "getserverarray", NULL, 348); + ZEPHIR_CALL_METHOD(&server, this_ptr, "getserverarray", NULL, 337); zephir_check_call_status(); if (trustForwardedHeader) { ZEPHIR_OBS_NVAR(&address); @@ -440,7 +440,7 @@ PHP_METHOD(Phalcon_Http_Request, getClientCharsets) { ZVAL_STRING(&_0, "HTTP_ACCEPT_CHARSET"); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "charset"); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getqualityheader", NULL, 345, &_0, &_1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getqualityheader", NULL, 334, &_0, &_1); zephir_check_call_status(); RETURN_MM(); @@ -461,7 +461,7 @@ PHP_METHOD(Phalcon_Http_Request, getContentType) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&server, this_ptr, "getserverarray", NULL, 348); + ZEPHIR_CALL_METHOD(&server, this_ptr, "getserverarray", NULL, 337); zephir_check_call_status(); if (!(zephir_array_isset_string_fetch(&contentType, &server, SL("CONTENT_TYPE"), 1))) { RETURN_MM_NULL(); @@ -500,7 +500,7 @@ PHP_METHOD(Phalcon_Http_Request, getDigestAuth) { ZEPHIR_INIT_VAR(&auth); array_init(&auth); - ZEPHIR_CALL_METHOD(&server, this_ptr, "getserverarray", NULL, 348); + ZEPHIR_CALL_METHOD(&server, this_ptr, "getserverarray", NULL, 337); zephir_check_call_status(); ZEPHIR_OBS_VAR(&digest); if (zephir_array_isset_string_fetch(&digest, &server, SL("PHP_AUTH_DIGEST"), 0)) { @@ -830,7 +830,7 @@ PHP_METHOD(Phalcon_Http_Request, getHeader) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&name); zephir_fast_strtoupper(&name, &_2); - ZEPHIR_CALL_METHOD(&server, this_ptr, "getserverarray", NULL, 348); + ZEPHIR_CALL_METHOD(&server, this_ptr, "getserverarray", NULL, 337); zephir_check_call_status(); ZEPHIR_OBS_VAR(&value); if (zephir_array_isset_fetch(&value, &server, &name, 0 TSRMLS_CC)) { @@ -924,7 +924,7 @@ PHP_METHOD(Phalcon_Http_Request, getHeaders) { zephir_array_update_string(&contentHeaders, SL("CONTENT_TYPE"), &__$true, PH_COPY | PH_SEPARATE); zephir_array_update_string(&contentHeaders, SL("CONTENT_LENGTH"), &__$true, PH_COPY | PH_SEPARATE); zephir_array_update_string(&contentHeaders, SL("CONTENT_MD5"), &__$true, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&server, this_ptr, "getserverarray", NULL, 348); + ZEPHIR_CALL_METHOD(&server, this_ptr, "getserverarray", NULL, 337); zephir_check_call_status(); zephir_is_iterable(&server, 0, "phalcon/Http/Request.zep", 391); if (Z_TYPE_P(&server) == IS_ARRAY) { @@ -1172,7 +1172,7 @@ PHP_METHOD(Phalcon_Http_Request, getHttpHost) { object_init_ex(&_12$$7, spl_ce_UnexpectedValueException); ZEPHIR_INIT_VAR(&_13$$7); ZEPHIR_CONCAT_SV(&_13$$7, "Invalid host ", &host); - ZEPHIR_CALL_METHOD(NULL, &_12$$7, "__construct", NULL, 349, &_13$$7); + ZEPHIR_CALL_METHOD(NULL, &_12$$7, "__construct", NULL, 338, &_13$$7); zephir_check_call_status(); zephir_throw_exception_debug(&_12$$7, "phalcon/Http/Request.zep", 475 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -1199,7 +1199,7 @@ PHP_METHOD(Phalcon_Http_Request, getHTTPReferer) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&server, this_ptr, "getserverarray", NULL, 348); + ZEPHIR_CALL_METHOD(&server, this_ptr, "getserverarray", NULL, 337); zephir_check_call_status(); if (!(zephir_array_isset_string_fetch(&httpReferer, &server, SL("HTTP_REFERER"), 1))) { RETURN_MM_STRING(""); @@ -1263,7 +1263,7 @@ PHP_METHOD(Phalcon_Http_Request, getLanguages) { ZVAL_STRING(&_0, "HTTP_ACCEPT_LANGUAGE"); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "language"); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getqualityheader", NULL, 345, &_0, &_1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getqualityheader", NULL, 334, &_0, &_1); zephir_check_call_status(); RETURN_MM(); @@ -1304,7 +1304,7 @@ PHP_METHOD(Phalcon_Http_Request, getMethod) { ZEPHIR_INIT_VAR(&returnMethod); ZVAL_STRING(&returnMethod, ""); - ZEPHIR_CALL_METHOD(&server, this_ptr, "getserverarray", NULL, 348); + ZEPHIR_CALL_METHOD(&server, this_ptr, "getserverarray", NULL, 337); zephir_check_call_status(); ZEPHIR_OBS_VAR(&requestMethod); if (EXPECTED(zephir_array_isset_string_fetch(&requestMethod, &server, SL("REQUEST_METHOD"), 0))) { @@ -1318,7 +1318,7 @@ PHP_METHOD(Phalcon_Http_Request, getMethod) { if (ZEPHIR_IS_IDENTICAL(&_0, &returnMethod)) { ZEPHIR_INIT_VAR(&_1$$5); ZVAL_STRING(&_1$$5, "X-HTTP-METHOD-OVERRIDE"); - ZEPHIR_CALL_METHOD(&overridedMethod, this_ptr, "getheader", NULL, 350, &_1$$5); + ZEPHIR_CALL_METHOD(&overridedMethod, this_ptr, "getheader", NULL, 339, &_1$$5); zephir_check_call_status(); zephir_read_property(&_2$$5, this_ptr, SL("httpMethodParameterOverride"), PH_NOISY_CC | PH_READONLY); if (!(ZEPHIR_IS_EMPTY(&overridedMethod))) { @@ -1479,7 +1479,7 @@ PHP_METHOD(Phalcon_Http_Request, getPost) { } else { ZVAL_BOOL(&_1, 0); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 344, &_POST, &name, filters, defaultValue, &_0, &_1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 333, &_POST, &name, filters, defaultValue, &_0, &_1); zephir_check_call_status(); RETURN_MM(); @@ -1565,7 +1565,7 @@ PHP_METHOD(Phalcon_Http_Request, getPut) { if (_0$$3) { ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "json"); - ZEPHIR_CALL_FUNCTION(&_2$$3, "stripos", NULL, 351, &contentType, &_1$$3); + ZEPHIR_CALL_FUNCTION(&_2$$3, "stripos", NULL, 340, &contentType, &_1$$3); zephir_check_call_status(); _0$$3 = !ZEPHIR_IS_FALSE(&_2$$3); } @@ -1583,7 +1583,7 @@ PHP_METHOD(Phalcon_Http_Request, getPut) { ZEPHIR_CALL_METHOD(&_4$$6, this_ptr, "getrawbody", NULL, 0); zephir_check_call_status(); ZEPHIR_MAKE_REF(&put); - ZEPHIR_CALL_FUNCTION(NULL, "parse_str", NULL, 310, &_4$$6, &put); + ZEPHIR_CALL_FUNCTION(NULL, "parse_str", NULL, 299, &_4$$6, &put); ZEPHIR_UNREF(&put); zephir_check_call_status(); } @@ -1599,7 +1599,7 @@ PHP_METHOD(Phalcon_Http_Request, getPut) { } else { ZVAL_BOOL(&_6, 0); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 344, &put, &name, filters, defaultValue, &_5, &_6); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 333, &put, &name, filters, defaultValue, &_5, &_6); zephir_check_call_status(); RETURN_MM(); @@ -1686,7 +1686,7 @@ PHP_METHOD(Phalcon_Http_Request, getQuery) { } else { ZVAL_BOOL(&_1, 0); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 344, &_GET, &name, filters, defaultValue, &_0, &_1); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "gethelper", NULL, 333, &_GET, &name, filters, defaultValue, &_0, &_1); zephir_check_call_status(); RETURN_MM(); @@ -1783,7 +1783,7 @@ PHP_METHOD(Phalcon_Http_Request, getServer) { } - ZEPHIR_CALL_METHOD(&server, this_ptr, "getserverarray", NULL, 348); + ZEPHIR_CALL_METHOD(&server, this_ptr, "getserverarray", NULL, 337); zephir_check_call_status(); if (!(zephir_array_isset_fetch(&serverValue, &server, &name, 1 TSRMLS_CC))) { RETURN_MM_NULL(); @@ -1815,7 +1815,7 @@ PHP_METHOD(Phalcon_Http_Request, getServerAddress) { if (Z_TYPE_P(&serverAddr) == IS_NULL) { ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "localhost"); - ZEPHIR_RETURN_CALL_FUNCTION("gethostbyname", NULL, 352, &_1$$3); + ZEPHIR_RETURN_CALL_FUNCTION("gethostbyname", NULL, 341, &_1$$3); zephir_check_call_status(); RETURN_MM(); } @@ -1965,7 +1965,7 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { zephir_array_fetch_string(&_7$$5, &input, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 792 TSRMLS_CC); zephir_array_fetch_string(&_8$$5, &input, SL("size"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 793 TSRMLS_CC); zephir_array_fetch_string(&_9$$5, &input, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 794 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&smoothInput, this_ptr, "smoothfiles", &_10, 353, &_5$$5, &_6$$5, &_7$$5, &_8$$5, &_9$$5, &prefix); + ZEPHIR_CALL_METHOD(&smoothInput, this_ptr, "smoothfiles", &_10, 342, &_5$$5, &_6$$5, &_7$$5, &_8$$5, &_9$$5, &prefix); zephir_check_call_status(); zephir_is_iterable(&smoothInput, 0, "phalcon/Http/Request.zep", 821); if (Z_TYPE_P(&smoothInput) == IS_ARRAY) { @@ -2000,7 +2000,7 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { ZEPHIR_INIT_NVAR(&_16$$8); object_init_ex(&_16$$8, phalcon_http_request_file_ce); zephir_array_fetch_string(&_17$$8, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 812 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &_16$$8, "__construct", &_18, 354, &dataFile, &_17$$8); + ZEPHIR_CALL_METHOD(NULL, &_16$$8, "__construct", &_18, 343, &dataFile, &_17$$8); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&_19$$8); zephir_array_fetch_string(&_19$$8, &file, SL("key"), PH_NOISY, "phalcon/Http/Request.zep", 809 TSRMLS_CC); @@ -2009,7 +2009,7 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { ZEPHIR_INIT_NVAR(&_20$$9); object_init_ex(&_20$$9, phalcon_http_request_file_ce); zephir_array_fetch_string(&_21$$9, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 817 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &_20$$9, "__construct", &_18, 354, &dataFile, &_21$$9); + ZEPHIR_CALL_METHOD(NULL, &_20$$9, "__construct", &_18, 343, &dataFile, &_21$$9); zephir_check_call_status(); zephir_array_append(&files, &_20$$9, PH_SEPARATE, "phalcon/Http/Request.zep", 817); } @@ -2054,7 +2054,7 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { ZEPHIR_INIT_NVAR(&_26$$12); object_init_ex(&_26$$12, phalcon_http_request_file_ce); zephir_array_fetch_string(&_27$$12, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 812 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &_26$$12, "__construct", &_18, 354, &dataFile, &_27$$12); + ZEPHIR_CALL_METHOD(NULL, &_26$$12, "__construct", &_18, 343, &dataFile, &_27$$12); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&_28$$12); zephir_array_fetch_string(&_28$$12, &file, SL("key"), PH_NOISY, "phalcon/Http/Request.zep", 809 TSRMLS_CC); @@ -2063,7 +2063,7 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { ZEPHIR_INIT_NVAR(&_29$$13); object_init_ex(&_29$$13, phalcon_http_request_file_ce); zephir_array_fetch_string(&_30$$13, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 817 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &_29$$13, "__construct", &_18, 354, &dataFile, &_30$$13); + ZEPHIR_CALL_METHOD(NULL, &_29$$13, "__construct", &_18, 343, &dataFile, &_30$$13); zephir_check_call_status(); zephir_array_append(&files, &_29$$13, PH_SEPARATE, "phalcon/Http/Request.zep", 817); } @@ -2083,13 +2083,13 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { if (namedKeys == 1) { ZEPHIR_INIT_NVAR(&_33$$16); object_init_ex(&_33$$16, phalcon_http_request_file_ce); - ZEPHIR_CALL_METHOD(NULL, &_33$$16, "__construct", &_18, 354, &input, &prefix); + ZEPHIR_CALL_METHOD(NULL, &_33$$16, "__construct", &_18, 343, &input, &prefix); zephir_check_call_status(); zephir_array_update_zval(&files, &prefix, &_33$$16, PH_COPY | PH_SEPARATE); } else { ZEPHIR_INIT_NVAR(&_34$$17); object_init_ex(&_34$$17, phalcon_http_request_file_ce); - ZEPHIR_CALL_METHOD(NULL, &_34$$17, "__construct", &_18, 354, &input, &prefix); + ZEPHIR_CALL_METHOD(NULL, &_34$$17, "__construct", &_18, 343, &input, &prefix); zephir_check_call_status(); zephir_array_append(&files, &_34$$17, PH_SEPARATE, "phalcon/Http/Request.zep", 826); } @@ -2117,7 +2117,7 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { zephir_array_fetch_string(&_38$$19, &input, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 792 TSRMLS_CC); zephir_array_fetch_string(&_39$$19, &input, SL("size"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 793 TSRMLS_CC); zephir_array_fetch_string(&_40$$19, &input, SL("error"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 794 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&smoothInput, this_ptr, "smoothfiles", &_10, 353, &_36$$19, &_37$$19, &_38$$19, &_39$$19, &_40$$19, &prefix); + ZEPHIR_CALL_METHOD(&smoothInput, this_ptr, "smoothfiles", &_10, 342, &_36$$19, &_37$$19, &_38$$19, &_39$$19, &_40$$19, &prefix); zephir_check_call_status(); zephir_is_iterable(&smoothInput, 0, "phalcon/Http/Request.zep", 821); if (Z_TYPE_P(&smoothInput) == IS_ARRAY) { @@ -2153,7 +2153,7 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { ZEPHIR_INIT_NVAR(&_47$$22); object_init_ex(&_47$$22, phalcon_http_request_file_ce); zephir_array_fetch_string(&_48$$22, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 812 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &_47$$22, "__construct", &_18, 354, &dataFile, &_48$$22); + ZEPHIR_CALL_METHOD(NULL, &_47$$22, "__construct", &_18, 343, &dataFile, &_48$$22); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&_49$$22); zephir_array_fetch_string(&_49$$22, &file, SL("key"), PH_NOISY, "phalcon/Http/Request.zep", 809 TSRMLS_CC); @@ -2162,7 +2162,7 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { ZEPHIR_INIT_NVAR(&_50$$23); object_init_ex(&_50$$23, phalcon_http_request_file_ce); zephir_array_fetch_string(&_51$$23, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 817 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &_50$$23, "__construct", &_18, 354, &dataFile, &_51$$23); + ZEPHIR_CALL_METHOD(NULL, &_50$$23, "__construct", &_18, 343, &dataFile, &_51$$23); zephir_check_call_status(); zephir_array_append(&files, &_50$$23, PH_SEPARATE, "phalcon/Http/Request.zep", 817); } @@ -2207,7 +2207,7 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { ZEPHIR_INIT_NVAR(&_56$$26); object_init_ex(&_56$$26, phalcon_http_request_file_ce); zephir_array_fetch_string(&_57$$26, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 812 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &_56$$26, "__construct", &_18, 354, &dataFile, &_57$$26); + ZEPHIR_CALL_METHOD(NULL, &_56$$26, "__construct", &_18, 343, &dataFile, &_57$$26); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&_58$$26); zephir_array_fetch_string(&_58$$26, &file, SL("key"), PH_NOISY, "phalcon/Http/Request.zep", 809 TSRMLS_CC); @@ -2216,7 +2216,7 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { ZEPHIR_INIT_NVAR(&_59$$27); object_init_ex(&_59$$27, phalcon_http_request_file_ce); zephir_array_fetch_string(&_60$$27, &file, SL("key"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 817 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &_59$$27, "__construct", &_18, 354, &dataFile, &_60$$27); + ZEPHIR_CALL_METHOD(NULL, &_59$$27, "__construct", &_18, 343, &dataFile, &_60$$27); zephir_check_call_status(); zephir_array_append(&files, &_59$$27, PH_SEPARATE, "phalcon/Http/Request.zep", 817); } @@ -2236,13 +2236,13 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { if (namedKeys == 1) { ZEPHIR_INIT_NVAR(&_63$$30); object_init_ex(&_63$$30, phalcon_http_request_file_ce); - ZEPHIR_CALL_METHOD(NULL, &_63$$30, "__construct", &_18, 354, &input, &prefix); + ZEPHIR_CALL_METHOD(NULL, &_63$$30, "__construct", &_18, 343, &input, &prefix); zephir_check_call_status(); zephir_array_update_zval(&files, &prefix, &_63$$30, PH_COPY | PH_SEPARATE); } else { ZEPHIR_INIT_NVAR(&_64$$31); object_init_ex(&_64$$31, phalcon_http_request_file_ce); - ZEPHIR_CALL_METHOD(NULL, &_64$$31, "__construct", &_18, 354, &input, &prefix); + ZEPHIR_CALL_METHOD(NULL, &_64$$31, "__construct", &_18, 343, &input, &prefix); zephir_check_call_status(); zephir_array_append(&files, &_64$$31, PH_SEPARATE, "phalcon/Http/Request.zep", 826); } @@ -2260,19 +2260,42 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { } /** - * Gets HTTP URI which request has been made + * Gets HTTP URI which request has been made to + * + *```php + * // Returns /some/path?with=queryParams + * $uri = $request->getURI(); + * + * // Returns /some/path + * $uri = $request->getURI(true); + *``` + * + * @param bool onlyPath If true, query part will be omitted + * @return string */ PHP_METHOD(Phalcon_Http_Request, getURI) { - zval requestURI, _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; + zval *onlyPath_param = NULL, requestURI, _0, _1$$4, _2$$4, _3$$4; + zend_bool onlyPath; zval *this_ptr = getThis(); ZVAL_UNDEF(&requestURI); ZVAL_UNDEF(&_0); + ZVAL_UNDEF(&_1$$4); + ZVAL_UNDEF(&_2$$4); + ZVAL_UNDEF(&_3$$4); ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 0, 1, &onlyPath_param); + + if (!onlyPath_param) { + onlyPath = 0; + } else { + onlyPath = zephir_get_boolval(onlyPath_param); + } + ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "REQUEST_URI"); @@ -2281,6 +2304,14 @@ PHP_METHOD(Phalcon_Http_Request, getURI) { if (Z_TYPE_P(&requestURI) == IS_NULL) { RETURN_MM_STRING(""); } + if (onlyPath) { + ZEPHIR_INIT_VAR(&_1$$4); + ZEPHIR_INIT_VAR(&_2$$4); + ZVAL_STRING(&_2$$4, "?"); + zephir_fast_explode(&_1$$4, &_2$$4, &requestURI, LONG_MAX TSRMLS_CC); + zephir_array_fetch_long(&_3$$4, &_1$$4, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 860 TSRMLS_CC); + ZEPHIR_CPY_WRT(&requestURI, &_3$$4); + } RETURN_CCTOR(&requestURI); } @@ -2384,7 +2415,7 @@ PHP_METHOD(Phalcon_Http_Request, hasFiles) { if (Z_TYPE_P(&files) != IS_ARRAY) { RETURN_MM_LONG(0); } - zephir_is_iterable(&files, 0, "phalcon/Http/Request.zep", 907); + zephir_is_iterable(&files, 0, "phalcon/Http/Request.zep", 922); if (Z_TYPE_P(&files) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&files), _0) { @@ -2407,7 +2438,7 @@ PHP_METHOD(Phalcon_Http_Request, hasFiles) { } else { ZVAL_BOOL(&_4$$8, 0); } - ZEPHIR_CALL_METHOD(&_3$$8, this_ptr, "hasfilehelper", &_5, 355, &error, &_4$$8); + ZEPHIR_CALL_METHOD(&_3$$8, this_ptr, "hasfilehelper", &_5, 344, &error, &_4$$8); zephir_check_call_status(); numberFiles += zephir_get_numberval(&_3$$8); } @@ -2441,7 +2472,7 @@ PHP_METHOD(Phalcon_Http_Request, hasFiles) { } else { ZVAL_BOOL(&_8$$13, 0); } - ZEPHIR_CALL_METHOD(&_7$$13, this_ptr, "hasfilehelper", &_5, 355, &error, &_8$$13); + ZEPHIR_CALL_METHOD(&_7$$13, this_ptr, "hasfilehelper", &_5, 344, &error, &_8$$13); zephir_check_call_status(); numberFiles += zephir_get_numberval(&_7$$13); } @@ -2499,13 +2530,13 @@ PHP_METHOD(Phalcon_Http_Request, hasHeader) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&name); zephir_fast_strtoupper(&name, &_2); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "hasserver", NULL, 346, &name); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "hasserver", NULL, 335, &name); zephir_check_call_status(); _4 = zephir_is_true(&_3); if (!(_4)) { ZEPHIR_INIT_VAR(&_6); ZEPHIR_CONCAT_SV(&_6, "HTTP_", &name); - ZEPHIR_CALL_METHOD(&_5, this_ptr, "hasserver", NULL, 346, &_6); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "hasserver", NULL, 335, &_6); zephir_check_call_status(); _4 = zephir_is_true(&_5); } @@ -2643,7 +2674,7 @@ PHP_METHOD(Phalcon_Http_Request, hasServer) { } - ZEPHIR_CALL_METHOD(&server, this_ptr, "getserverarray", NULL, 348); + ZEPHIR_CALL_METHOD(&server, this_ptr, "getserverarray", NULL, 337); zephir_check_call_status(); RETURN_MM_BOOL(zephir_array_isset(&server, &name)); @@ -2668,7 +2699,7 @@ PHP_METHOD(Phalcon_Http_Request, isAjax) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "HTTP_X_REQUESTED_WITH"); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "hasserver", NULL, 346, &_1); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "hasserver", NULL, 335, &_1); zephir_check_call_status(); _2 = zephir_is_true(&_0); if (_2) { @@ -2697,7 +2728,7 @@ PHP_METHOD(Phalcon_Http_Request, isConnect) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 356); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 345); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(&_0, "CONNECT")); @@ -2718,7 +2749,7 @@ PHP_METHOD(Phalcon_Http_Request, isDelete) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 356); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 345); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(&_0, "DELETE")); @@ -2739,7 +2770,7 @@ PHP_METHOD(Phalcon_Http_Request, isGet) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 356); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 345); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(&_0, "GET")); @@ -2760,7 +2791,7 @@ PHP_METHOD(Phalcon_Http_Request, isHead) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 356); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 345); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(&_0, "HEAD")); @@ -2801,7 +2832,7 @@ PHP_METHOD(Phalcon_Http_Request, isMethod) { } - ZEPHIR_CALL_METHOD(&httpMethod, this_ptr, "getmethod", NULL, 356); + ZEPHIR_CALL_METHOD(&httpMethod, this_ptr, "getmethod", NULL, 345); zephir_check_call_status(); if (Z_TYPE_P(methods) == IS_STRING) { _0$$3 = strict; @@ -2817,14 +2848,14 @@ PHP_METHOD(Phalcon_Http_Request, isMethod) { ZEPHIR_CONCAT_SV(&_3$$4, "Invalid HTTP method: ", methods); ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 5, &_3$$4); zephir_check_call_status(); - zephir_throw_exception_debug(&_2$$4, "phalcon/Http/Request.zep", 1018 TSRMLS_CC); + zephir_throw_exception_debug(&_2$$4, "phalcon/Http/Request.zep", 1033 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } RETURN_MM_BOOL(ZEPHIR_IS_EQUAL(methods, &httpMethod)); } if (Z_TYPE_P(methods) == IS_ARRAY) { - zephir_is_iterable(methods, 0, "phalcon/Http/Request.zep", 1031); + zephir_is_iterable(methods, 0, "phalcon/Http/Request.zep", 1046); if (Z_TYPE_P(methods) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(methods), _4$$5) { @@ -2835,7 +2866,7 @@ PHP_METHOD(Phalcon_Http_Request, isMethod) { } else { ZVAL_BOOL(&_7$$6, 0); } - ZEPHIR_CALL_METHOD(&_6$$6, this_ptr, "ismethod", &_8, 357, &method, &_7$$6); + ZEPHIR_CALL_METHOD(&_6$$6, this_ptr, "ismethod", &_8, 346, &method, &_7$$6); zephir_check_call_status(); if (zephir_is_true(&_6$$6)) { RETURN_MM_BOOL(1); @@ -2857,7 +2888,7 @@ PHP_METHOD(Phalcon_Http_Request, isMethod) { } else { ZVAL_BOOL(&_10$$8, 0); } - ZEPHIR_CALL_METHOD(&_9$$8, this_ptr, "ismethod", &_8, 357, &method, &_10$$8); + ZEPHIR_CALL_METHOD(&_9$$8, this_ptr, "ismethod", &_8, 346, &method, &_10$$8); zephir_check_call_status(); if (zephir_is_true(&_9$$8)) { RETURN_MM_BOOL(1); @@ -2870,7 +2901,7 @@ PHP_METHOD(Phalcon_Http_Request, isMethod) { RETURN_MM_BOOL(0); } if (UNEXPECTED(strict)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_request_exception_ce, "Invalid HTTP method: non-string", "phalcon/Http/Request.zep", 1035); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_http_request_exception_ce, "Invalid HTTP method: non-string", "phalcon/Http/Request.zep", 1050); return; } RETURN_MM_BOOL(0); @@ -2892,7 +2923,7 @@ PHP_METHOD(Phalcon_Http_Request, isOptions) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 356); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 345); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(&_0, "OPTIONS")); @@ -2913,7 +2944,7 @@ PHP_METHOD(Phalcon_Http_Request, isPatch) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 356); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 345); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(&_0, "PATCH")); @@ -2934,7 +2965,7 @@ PHP_METHOD(Phalcon_Http_Request, isPost) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 356); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 345); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(&_0, "POST")); @@ -2955,7 +2986,7 @@ PHP_METHOD(Phalcon_Http_Request, isPut) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 356); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 345); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(&_0, "PUT")); @@ -2976,7 +3007,7 @@ PHP_METHOD(Phalcon_Http_Request, isPurge) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 356); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 345); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(&_0, "PURGE")); @@ -3033,7 +3064,7 @@ PHP_METHOD(Phalcon_Http_Request, isSoap) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "HTTP_SOAPACTION"); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "hasserver", NULL, 346, &_1); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "hasserver", NULL, 335, &_1); zephir_check_call_status(); if (zephir_is_true(&_0)) { RETURN_MM_BOOL(1); @@ -3043,7 +3074,7 @@ PHP_METHOD(Phalcon_Http_Request, isSoap) { if (ZEPHIR_IS_EMPTY(&contentType)) { RETURN_MM_BOOL(0); } - RETURN_MM_BOOL(zephir_memnstr_str(&contentType, SL("application/soap+xml"), "phalcon/Http/Request.zep", 1120)); + RETURN_MM_BOOL(zephir_memnstr_str(&contentType, SL("application/soap+xml"), "phalcon/Http/Request.zep", 1135)); } @@ -3062,7 +3093,7 @@ PHP_METHOD(Phalcon_Http_Request, isTrace) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 356); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmethod", NULL, 345); zephir_check_call_status(); RETURN_MM_BOOL(ZEPHIR_IS_STRING_IDENTICAL(&_0, "TRACE")); @@ -3166,13 +3197,13 @@ PHP_METHOD(Phalcon_Http_Request, setParameterFilters) { ZEPHIR_CONCAT_SVS(&_1$$3, "Filters have not been defined for '", &name, "'"); ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 5, &_1$$3); zephir_check_call_status(); - zephir_throw_exception_debug(&_0$$3, "phalcon/Http/Request.zep", 1165 TSRMLS_CC); + zephir_throw_exception_debug(&_0$$3, "phalcon/Http/Request.zep", 1180 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&filterService, this_ptr, "getfilterservice", NULL, 358); + ZEPHIR_CALL_METHOD(&filterService, this_ptr, "getfilterservice", NULL, 347); zephir_check_call_status(); - zephir_is_iterable(&filters, 0, "phalcon/Http/Request.zep", 1178); + zephir_is_iterable(&filters, 0, "phalcon/Http/Request.zep", 1193); if (Z_TYPE_P(&filters) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&filters), _2) { @@ -3187,7 +3218,7 @@ PHP_METHOD(Phalcon_Http_Request, setParameterFilters) { ZEPHIR_CONCAT_SVS(&_7$$5, "Sanitizer '", &sanitizer, "' does not exist in the filter locator"); ZEPHIR_CALL_METHOD(NULL, &_6$$5, "__construct", NULL, 5, &_7$$5); zephir_check_call_status(); - zephir_throw_exception_debug(&_6$$5, "phalcon/Http/Request.zep", 1174 TSRMLS_CC); + zephir_throw_exception_debug(&_6$$5, "phalcon/Http/Request.zep", 1189 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3212,7 +3243,7 @@ PHP_METHOD(Phalcon_Http_Request, setParameterFilters) { ZEPHIR_CONCAT_SVS(&_11$$7, "Sanitizer '", &sanitizer, "' does not exist in the filter locator"); ZEPHIR_CALL_METHOD(NULL, &_10$$7, "__construct", NULL, 5, &_11$$7); zephir_check_call_status(); - zephir_throw_exception_debug(&_10$$7, "phalcon/Http/Request.zep", 1174 TSRMLS_CC); + zephir_throw_exception_debug(&_10$$7, "phalcon/Http/Request.zep", 1189 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3236,7 +3267,7 @@ PHP_METHOD(Phalcon_Http_Request, setParameterFilters) { } else { ZEPHIR_CPY_WRT(&localScope, &scope); } - zephir_is_iterable(&localScope, 0, "phalcon/Http/Request.zep", 1188); + zephir_is_iterable(&localScope, 0, "phalcon/Http/Request.zep", 1203); if (Z_TYPE_P(&localScope) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&localScope), _13) { @@ -3339,7 +3370,7 @@ PHP_METHOD(Phalcon_Http_Request, getBestQuality) { quality = 0.0; ZEPHIR_INIT_VAR(&selectedName); ZVAL_STRING(&selectedName, ""); - zephir_is_iterable(&qualityParts, 0, "phalcon/Http/Request.zep", 1231); + zephir_is_iterable(&qualityParts, 0, "phalcon/Http/Request.zep", 1246); if (Z_TYPE_P(&qualityParts) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&qualityParts), _0) { @@ -3347,18 +3378,18 @@ PHP_METHOD(Phalcon_Http_Request, getBestQuality) { ZVAL_COPY(&accept, _0); if (i == 0) { ZEPHIR_OBS_NVAR(&_2$$4); - zephir_array_fetch_string(&_2$$4, &accept, SL("quality"), PH_NOISY, "phalcon/Http/Request.zep", 1217 TSRMLS_CC); + zephir_array_fetch_string(&_2$$4, &accept, SL("quality"), PH_NOISY, "phalcon/Http/Request.zep", 1232 TSRMLS_CC); quality = zephir_get_doubleval(&_2$$4); ZEPHIR_OBS_NVAR(&selectedName); - zephir_array_fetch(&selectedName, &accept, &name, PH_NOISY, "phalcon/Http/Request.zep", 1218 TSRMLS_CC); + zephir_array_fetch(&selectedName, &accept, &name, PH_NOISY, "phalcon/Http/Request.zep", 1233 TSRMLS_CC); } else { ZEPHIR_OBS_NVAR(&_3$$5); - zephir_array_fetch_string(&_3$$5, &accept, SL("quality"), PH_NOISY, "phalcon/Http/Request.zep", 1220 TSRMLS_CC); + zephir_array_fetch_string(&_3$$5, &accept, SL("quality"), PH_NOISY, "phalcon/Http/Request.zep", 1235 TSRMLS_CC); acceptQuality = zephir_get_doubleval(&_3$$5); if (acceptQuality > quality) { quality = acceptQuality; ZEPHIR_OBS_NVAR(&selectedName); - zephir_array_fetch(&selectedName, &accept, &name, PH_NOISY, "phalcon/Http/Request.zep", 1224 TSRMLS_CC); + zephir_array_fetch(&selectedName, &accept, &name, PH_NOISY, "phalcon/Http/Request.zep", 1239 TSRMLS_CC); } } i++; @@ -3376,18 +3407,18 @@ PHP_METHOD(Phalcon_Http_Request, getBestQuality) { zephir_check_call_status(); if (i == 0) { ZEPHIR_OBS_NVAR(&_4$$8); - zephir_array_fetch_string(&_4$$8, &accept, SL("quality"), PH_NOISY, "phalcon/Http/Request.zep", 1217 TSRMLS_CC); + zephir_array_fetch_string(&_4$$8, &accept, SL("quality"), PH_NOISY, "phalcon/Http/Request.zep", 1232 TSRMLS_CC); quality = zephir_get_doubleval(&_4$$8); ZEPHIR_OBS_NVAR(&selectedName); - zephir_array_fetch(&selectedName, &accept, &name, PH_NOISY, "phalcon/Http/Request.zep", 1218 TSRMLS_CC); + zephir_array_fetch(&selectedName, &accept, &name, PH_NOISY, "phalcon/Http/Request.zep", 1233 TSRMLS_CC); } else { ZEPHIR_OBS_NVAR(&_5$$9); - zephir_array_fetch_string(&_5$$9, &accept, SL("quality"), PH_NOISY, "phalcon/Http/Request.zep", 1220 TSRMLS_CC); + zephir_array_fetch_string(&_5$$9, &accept, SL("quality"), PH_NOISY, "phalcon/Http/Request.zep", 1235 TSRMLS_CC); acceptQuality = zephir_get_doubleval(&_5$$9); if (acceptQuality > quality) { quality = acceptQuality; ZEPHIR_OBS_NVAR(&selectedName); - zephir_array_fetch(&selectedName, &accept, &name, PH_NOISY, "phalcon/Http/Request.zep", 1224 TSRMLS_CC); + zephir_array_fetch(&selectedName, &accept, &name, PH_NOISY, "phalcon/Http/Request.zep", 1239 TSRMLS_CC); } } i++; @@ -3472,7 +3503,7 @@ PHP_METHOD(Phalcon_Http_Request, getHelper) { RETURN_MM(); } if (Z_TYPE_P(filters) != IS_NULL) { - ZEPHIR_CALL_METHOD(&filterService, this_ptr, "getfilterservice", NULL, 358); + ZEPHIR_CALL_METHOD(&filterService, this_ptr, "getfilterservice", NULL, 347); zephir_check_call_status(); if (noRecursive) { ZVAL_BOOL(&_1$$5, 1); @@ -3525,7 +3556,7 @@ PHP_METHOD(Phalcon_Http_Request, hasFileHelper) { if (Z_TYPE_P(data) != IS_ARRAY) { RETURN_MM_LONG(1); } - zephir_is_iterable(data, 0, "phalcon/Http/Request.zep", 1286); + zephir_is_iterable(data, 0, "phalcon/Http/Request.zep", 1301); if (Z_TYPE_P(data) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(data), _0) { @@ -3546,7 +3577,7 @@ PHP_METHOD(Phalcon_Http_Request, hasFileHelper) { } else { ZVAL_BOOL(&_4$$7, 0); } - ZEPHIR_CALL_METHOD(&_3$$7, this_ptr, "hasfilehelper", &_5, 355, &value, &_4$$7); + ZEPHIR_CALL_METHOD(&_3$$7, this_ptr, "hasfilehelper", &_5, 344, &value, &_4$$7); zephir_check_call_status(); numberFiles += zephir_get_numberval(&_3$$7); } @@ -3577,7 +3608,7 @@ PHP_METHOD(Phalcon_Http_Request, hasFileHelper) { } else { ZVAL_BOOL(&_8$$11, 0); } - ZEPHIR_CALL_METHOD(&_7$$11, this_ptr, "hasfilehelper", &_5, 355, &value, &_8$$11); + ZEPHIR_CALL_METHOD(&_7$$11, this_ptr, "hasfilehelper", &_5, 344, &value, &_8$$11); zephir_check_call_status(); numberFiles += zephir_get_numberval(&_7$$11); } @@ -3694,7 +3725,7 @@ PHP_METHOD(Phalcon_Http_Request, getQualityHeader) { ZVAL_LONG(&_3, 1); ZEPHIR_CALL_FUNCTION(&parts, "preg_split", NULL, 92, &_1, &_0, &_2, &_3); zephir_check_call_status(); - zephir_is_iterable(&parts, 0, "phalcon/Http/Request.zep", 1326); + zephir_is_iterable(&parts, 0, "phalcon/Http/Request.zep", 1341); if (Z_TYPE_P(&parts) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&parts), _4) { @@ -3710,7 +3741,7 @@ PHP_METHOD(Phalcon_Http_Request, getQualityHeader) { ZVAL_LONG(&_9$$3, 1); ZEPHIR_CALL_FUNCTION(&_10$$3, "preg_split", NULL, 92, &_7$$3, &_6$$3, &_8$$3, &_9$$3); zephir_check_call_status(); - zephir_is_iterable(&_10$$3, 0, "phalcon/Http/Request.zep", 1323); + zephir_is_iterable(&_10$$3, 0, "phalcon/Http/Request.zep", 1338); if (Z_TYPE_P(&_10$$3) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_10$$3), _11$$3) { @@ -3723,17 +3754,17 @@ PHP_METHOD(Phalcon_Http_Request, getQualityHeader) { if (!ZEPHIR_IS_FALSE_IDENTICAL(&_14$$4)) { ZEPHIR_INIT_NVAR(&split); zephir_fast_explode_str(&split, SL("="), &headerPart, 2 TSRMLS_CC); - zephir_array_fetch_long(&_15$$5, &split, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1312 TSRMLS_CC); + zephir_array_fetch_long(&_15$$5, &split, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1327 TSRMLS_CC); if (ZEPHIR_IS_STRING_IDENTICAL(&_15$$5, "q")) { ZEPHIR_OBS_NVAR(&_16$$6); - zephir_array_fetch_long(&_16$$6, &split, 1, PH_NOISY, "phalcon/Http/Request.zep", 1313 TSRMLS_CC); + zephir_array_fetch_long(&_16$$6, &split, 1, PH_NOISY, "phalcon/Http/Request.zep", 1328 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_17$$6); ZVAL_DOUBLE(&_17$$6, zephir_get_doubleval(&_16$$6)); zephir_array_update_string(&headerParts, SL("quality"), &_17$$6, PH_COPY | PH_SEPARATE); } else { - zephir_array_fetch_long(&_18$$7, &split, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1315 TSRMLS_CC); + zephir_array_fetch_long(&_18$$7, &split, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1330 TSRMLS_CC); ZEPHIR_OBS_NVAR(&_19$$7); - zephir_array_fetch_long(&_19$$7, &split, 0, PH_NOISY, "phalcon/Http/Request.zep", 1315 TSRMLS_CC); + zephir_array_fetch_long(&_19$$7, &split, 0, PH_NOISY, "phalcon/Http/Request.zep", 1330 TSRMLS_CC); zephir_array_update_zval(&headerParts, &_19$$7, &_18$$7, PH_COPY | PH_SEPARATE); } } else { @@ -3761,17 +3792,17 @@ PHP_METHOD(Phalcon_Http_Request, getQualityHeader) { if (!ZEPHIR_IS_FALSE_IDENTICAL(&_22$$9)) { ZEPHIR_INIT_NVAR(&split); zephir_fast_explode_str(&split, SL("="), &headerPart, 2 TSRMLS_CC); - zephir_array_fetch_long(&_23$$10, &split, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1312 TSRMLS_CC); + zephir_array_fetch_long(&_23$$10, &split, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1327 TSRMLS_CC); if (ZEPHIR_IS_STRING_IDENTICAL(&_23$$10, "q")) { ZEPHIR_OBS_NVAR(&_24$$11); - zephir_array_fetch_long(&_24$$11, &split, 1, PH_NOISY, "phalcon/Http/Request.zep", 1313 TSRMLS_CC); + zephir_array_fetch_long(&_24$$11, &split, 1, PH_NOISY, "phalcon/Http/Request.zep", 1328 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_25$$11); ZVAL_DOUBLE(&_25$$11, zephir_get_doubleval(&_24$$11)); zephir_array_update_string(&headerParts, SL("quality"), &_25$$11, PH_COPY | PH_SEPARATE); } else { - zephir_array_fetch_long(&_26$$12, &split, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1315 TSRMLS_CC); + zephir_array_fetch_long(&_26$$12, &split, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1330 TSRMLS_CC); ZEPHIR_OBS_NVAR(&_27$$12); - zephir_array_fetch_long(&_27$$12, &split, 0, PH_NOISY, "phalcon/Http/Request.zep", 1315 TSRMLS_CC); + zephir_array_fetch_long(&_27$$12, &split, 0, PH_NOISY, "phalcon/Http/Request.zep", 1330 TSRMLS_CC); zephir_array_update_zval(&headerParts, &_27$$12, &_26$$12, PH_COPY | PH_SEPARATE); } } else { @@ -3785,7 +3816,7 @@ PHP_METHOD(Phalcon_Http_Request, getQualityHeader) { } } ZEPHIR_INIT_NVAR(&headerPart); - zephir_array_append(&returnedParts, &headerParts, PH_SEPARATE, "phalcon/Http/Request.zep", 1323); + zephir_array_append(&returnedParts, &headerParts, PH_SEPARATE, "phalcon/Http/Request.zep", 1338); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &parts, "rewind", NULL, 0); @@ -3808,7 +3839,7 @@ PHP_METHOD(Phalcon_Http_Request, getQualityHeader) { ZVAL_LONG(&_32$$14, 1); ZEPHIR_CALL_FUNCTION(&_33$$14, "preg_split", NULL, 92, &_30$$14, &_29$$14, &_31$$14, &_32$$14); zephir_check_call_status(); - zephir_is_iterable(&_33$$14, 0, "phalcon/Http/Request.zep", 1323); + zephir_is_iterable(&_33$$14, 0, "phalcon/Http/Request.zep", 1338); if (Z_TYPE_P(&_33$$14) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_33$$14), _34$$14) { @@ -3821,17 +3852,17 @@ PHP_METHOD(Phalcon_Http_Request, getQualityHeader) { if (!ZEPHIR_IS_FALSE_IDENTICAL(&_37$$15)) { ZEPHIR_INIT_NVAR(&split); zephir_fast_explode_str(&split, SL("="), &headerPart, 2 TSRMLS_CC); - zephir_array_fetch_long(&_38$$16, &split, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1312 TSRMLS_CC); + zephir_array_fetch_long(&_38$$16, &split, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1327 TSRMLS_CC); if (ZEPHIR_IS_STRING_IDENTICAL(&_38$$16, "q")) { ZEPHIR_OBS_NVAR(&_39$$17); - zephir_array_fetch_long(&_39$$17, &split, 1, PH_NOISY, "phalcon/Http/Request.zep", 1313 TSRMLS_CC); + zephir_array_fetch_long(&_39$$17, &split, 1, PH_NOISY, "phalcon/Http/Request.zep", 1328 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_40$$17); ZVAL_DOUBLE(&_40$$17, zephir_get_doubleval(&_39$$17)); zephir_array_update_string(&headerParts, SL("quality"), &_40$$17, PH_COPY | PH_SEPARATE); } else { - zephir_array_fetch_long(&_41$$18, &split, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1315 TSRMLS_CC); + zephir_array_fetch_long(&_41$$18, &split, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1330 TSRMLS_CC); ZEPHIR_OBS_NVAR(&_42$$18); - zephir_array_fetch_long(&_42$$18, &split, 0, PH_NOISY, "phalcon/Http/Request.zep", 1315 TSRMLS_CC); + zephir_array_fetch_long(&_42$$18, &split, 0, PH_NOISY, "phalcon/Http/Request.zep", 1330 TSRMLS_CC); zephir_array_update_zval(&headerParts, &_42$$18, &_41$$18, PH_COPY | PH_SEPARATE); } } else { @@ -3859,17 +3890,17 @@ PHP_METHOD(Phalcon_Http_Request, getQualityHeader) { if (!ZEPHIR_IS_FALSE_IDENTICAL(&_45$$20)) { ZEPHIR_INIT_NVAR(&split); zephir_fast_explode_str(&split, SL("="), &headerPart, 2 TSRMLS_CC); - zephir_array_fetch_long(&_46$$21, &split, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1312 TSRMLS_CC); + zephir_array_fetch_long(&_46$$21, &split, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1327 TSRMLS_CC); if (ZEPHIR_IS_STRING_IDENTICAL(&_46$$21, "q")) { ZEPHIR_OBS_NVAR(&_47$$22); - zephir_array_fetch_long(&_47$$22, &split, 1, PH_NOISY, "phalcon/Http/Request.zep", 1313 TSRMLS_CC); + zephir_array_fetch_long(&_47$$22, &split, 1, PH_NOISY, "phalcon/Http/Request.zep", 1328 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_48$$22); ZVAL_DOUBLE(&_48$$22, zephir_get_doubleval(&_47$$22)); zephir_array_update_string(&headerParts, SL("quality"), &_48$$22, PH_COPY | PH_SEPARATE); } else { - zephir_array_fetch_long(&_49$$23, &split, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1315 TSRMLS_CC); + zephir_array_fetch_long(&_49$$23, &split, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1330 TSRMLS_CC); ZEPHIR_OBS_NVAR(&_50$$23); - zephir_array_fetch_long(&_50$$23, &split, 0, PH_NOISY, "phalcon/Http/Request.zep", 1315 TSRMLS_CC); + zephir_array_fetch_long(&_50$$23, &split, 0, PH_NOISY, "phalcon/Http/Request.zep", 1330 TSRMLS_CC); zephir_array_update_zval(&headerParts, &_50$$23, &_49$$23, PH_COPY | PH_SEPARATE); } } else { @@ -3883,7 +3914,7 @@ PHP_METHOD(Phalcon_Http_Request, getQualityHeader) { } } ZEPHIR_INIT_NVAR(&headerPart); - zephir_array_append(&returnedParts, &headerParts, PH_SEPARATE, "phalcon/Http/Request.zep", 1323); + zephir_array_append(&returnedParts, &headerParts, PH_SEPARATE, "phalcon/Http/Request.zep", 1338); ZEPHIR_CALL_METHOD(NULL, &parts, "next", NULL, 0); zephir_check_call_status(); } @@ -3959,7 +3990,7 @@ PHP_METHOD(Phalcon_Http_Request, resolveAuthorizationHeaders) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "getdi", NULL, 0); zephir_check_call_status(); ZEPHIR_CPY_WRT(&container, &_0); - ZEPHIR_CALL_METHOD(&server, this_ptr, "getserverarray", NULL, 348); + ZEPHIR_CALL_METHOD(&server, this_ptr, "getserverarray", NULL, 337); zephir_check_call_status(); if (Z_TYPE_P(&container) == IS_OBJECT) { ZEPHIR_INIT_VAR(&_2$$3); @@ -3995,13 +4026,13 @@ PHP_METHOD(Phalcon_Http_Request, resolveAuthorizationHeaders) { } ZEPHIR_INIT_VAR(&_9); ZVAL_STRING(&_9, "PHP_AUTH_USER"); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "hasserver", NULL, 346, &_9); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "hasserver", NULL, 335, &_9); zephir_check_call_status(); _10 = zephir_is_true(&_0); if (_10) { ZEPHIR_INIT_NVAR(&_9); ZVAL_STRING(&_9, "PHP_AUTH_PW"); - ZEPHIR_CALL_METHOD(&_11, this_ptr, "hasserver", NULL, 346, &_9); + ZEPHIR_CALL_METHOD(&_11, this_ptr, "hasserver", NULL, 335, &_9); zephir_check_call_status(); _10 = zephir_is_true(&_11); } @@ -4019,11 +4050,11 @@ PHP_METHOD(Phalcon_Http_Request, resolveAuthorizationHeaders) { } else { ZEPHIR_INIT_VAR(&_16$$8); ZVAL_STRING(&_16$$8, "HTTP_AUTHORIZATION"); - ZEPHIR_CALL_METHOD(&_15$$8, this_ptr, "hasserver", NULL, 346, &_16$$8); + ZEPHIR_CALL_METHOD(&_15$$8, this_ptr, "hasserver", NULL, 335, &_16$$8); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_16$$8); ZVAL_STRING(&_16$$8, "REDIRECT_HTTP_AUTHORIZATION"); - ZEPHIR_CALL_METHOD(&_17$$8, this_ptr, "hasserver", NULL, 346, &_16$$8); + ZEPHIR_CALL_METHOD(&_17$$8, this_ptr, "hasserver", NULL, 335, &_16$$8); zephir_check_call_status(); if (zephir_is_true(&_15$$8)) { ZEPHIR_INIT_VAR(&_18$$9); @@ -4039,23 +4070,23 @@ PHP_METHOD(Phalcon_Http_Request, resolveAuthorizationHeaders) { if (zephir_is_true(&authHeader)) { ZEPHIR_INIT_VAR(&_20$$11); ZVAL_STRING(&_20$$11, "basic "); - ZEPHIR_CALL_FUNCTION(&_21$$11, "stripos", NULL, 351, &authHeader, &_20$$11); + ZEPHIR_CALL_FUNCTION(&_21$$11, "stripos", NULL, 340, &authHeader, &_20$$11); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_20$$11); ZVAL_STRING(&_20$$11, "digest "); - ZEPHIR_CALL_FUNCTION(&_22$$11, "stripos", NULL, 351, &authHeader, &_20$$11); + ZEPHIR_CALL_FUNCTION(&_22$$11, "stripos", NULL, 340, &authHeader, &_20$$11); zephir_check_call_status(); _23$$11 = ZEPHIR_IS_LONG_IDENTICAL(&_22$$11, 0); if (_23$$11) { ZEPHIR_INIT_NVAR(&_20$$11); ZVAL_STRING(&_20$$11, "PHP_AUTH_DIGEST"); - ZEPHIR_CALL_METHOD(&_24$$11, this_ptr, "hasserver", NULL, 346, &_20$$11); + ZEPHIR_CALL_METHOD(&_24$$11, this_ptr, "hasserver", NULL, 335, &_20$$11); zephir_check_call_status(); _23$$11 = !zephir_is_true(&_24$$11); } ZEPHIR_INIT_NVAR(&_20$$11); ZVAL_STRING(&_20$$11, "bearer "); - ZEPHIR_CALL_FUNCTION(&_25$$11, "stripos", NULL, 351, &authHeader, &_20$$11); + ZEPHIR_CALL_FUNCTION(&_25$$11, "stripos", NULL, 340, &authHeader, &_20$$11); zephir_check_call_status(); if (ZEPHIR_IS_LONG_IDENTICAL(&_21$$11, 0)) { ZVAL_LONG(&_26$$12, 6); @@ -4066,9 +4097,9 @@ PHP_METHOD(Phalcon_Http_Request, resolveAuthorizationHeaders) { ZEPHIR_INIT_VAR(&exploded); zephir_fast_explode_str(&exploded, SL(":"), &_28$$12, 2 TSRMLS_CC); if (zephir_fast_count_int(&exploded TSRMLS_CC) == 2) { - zephir_array_fetch_long(&_29$$13, &exploded, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1385 TSRMLS_CC); + zephir_array_fetch_long(&_29$$13, &exploded, 0, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1400 TSRMLS_CC); zephir_array_update_string(&headers, SL("Php-Auth-User"), &_29$$13, PH_COPY | PH_SEPARATE); - zephir_array_fetch_long(&_30$$13, &exploded, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1386 TSRMLS_CC); + zephir_array_fetch_long(&_30$$13, &exploded, 1, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1401 TSRMLS_CC); zephir_array_update_string(&headers, SL("Php-Auth-Pw"), &_30$$13, PH_COPY | PH_SEPARATE); } } else if (_23$$11) { @@ -4081,8 +4112,8 @@ PHP_METHOD(Phalcon_Http_Request, resolveAuthorizationHeaders) { if (!(zephir_array_isset_string(&headers, SL("Authorization")))) { ZEPHIR_OBS_VAR(&digest); if (zephir_array_isset_string(&headers, SL("Php-Auth-User"))) { - zephir_array_fetch_string(&_31$$17, &headers, SL("Php-Auth-User"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1398 TSRMLS_CC); - zephir_array_fetch_string(&_32$$17, &headers, SL("Php-Auth-Pw"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1398 TSRMLS_CC); + zephir_array_fetch_string(&_31$$17, &headers, SL("Php-Auth-User"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1413 TSRMLS_CC); + zephir_array_fetch_string(&_32$$17, &headers, SL("Php-Auth-Pw"), PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1413 TSRMLS_CC); ZEPHIR_INIT_VAR(&_33$$17); ZEPHIR_CONCAT_VSV(&_33$$17, &_31$$17, ":", &_32$$17); ZEPHIR_CALL_FUNCTION(&_34$$17, "base64_encode", NULL, 179, &_33$$17); @@ -4175,7 +4206,7 @@ PHP_METHOD(Phalcon_Http_Request, smoothFiles) { ZEPHIR_INIT_VAR(&files); array_init(&files); - zephir_is_iterable(&names, 0, "phalcon/Http/Request.zep", 1462); + zephir_is_iterable(&names, 0, "phalcon/Http/Request.zep", 1477); if (Z_TYPE_P(&names) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&names), _2, _3, _0) { @@ -4194,35 +4225,35 @@ PHP_METHOD(Phalcon_Http_Request, smoothFiles) { zephir_create_array(&_4$$4, 6, 0 TSRMLS_CC); zephir_array_update_string(&_4$$4, SL("name"), &name, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_5$$4); - zephir_array_fetch(&_5$$4, &types, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1438 TSRMLS_CC); + zephir_array_fetch(&_5$$4, &types, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1453 TSRMLS_CC); zephir_array_update_string(&_4$$4, SL("type"), &_5$$4, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_5$$4); - zephir_array_fetch(&_5$$4, &tmp_names, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1439 TSRMLS_CC); + zephir_array_fetch(&_5$$4, &tmp_names, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1454 TSRMLS_CC); zephir_array_update_string(&_4$$4, SL("tmp_name"), &_5$$4, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_5$$4); - zephir_array_fetch(&_5$$4, &sizes, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1440 TSRMLS_CC); + zephir_array_fetch(&_5$$4, &sizes, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1455 TSRMLS_CC); zephir_array_update_string(&_4$$4, SL("size"), &_5$$4, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_5$$4); - zephir_array_fetch(&_5$$4, &errors, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1441 TSRMLS_CC); + zephir_array_fetch(&_5$$4, &errors, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1456 TSRMLS_CC); zephir_array_update_string(&_4$$4, SL("error"), &_5$$4, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4$$4, SL("key"), &p, PH_COPY | PH_SEPARATE); - zephir_array_append(&files, &_4$$4, PH_SEPARATE, "phalcon/Http/Request.zep", 1443); + zephir_array_append(&files, &_4$$4, PH_SEPARATE, "phalcon/Http/Request.zep", 1458); } if (Z_TYPE_P(&name) == IS_ARRAY) { - zephir_array_fetch(&_6$$5, &names, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1448 TSRMLS_CC); - zephir_array_fetch(&_7$$5, &types, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1449 TSRMLS_CC); - zephir_array_fetch(&_8$$5, &tmp_names, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1450 TSRMLS_CC); - zephir_array_fetch(&_9$$5, &sizes, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1451 TSRMLS_CC); - zephir_array_fetch(&_10$$5, &errors, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1452 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&parentFiles, this_ptr, "smoothfiles", &_11, 353, &_6$$5, &_7$$5, &_8$$5, &_9$$5, &_10$$5, &p); + zephir_array_fetch(&_6$$5, &names, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1463 TSRMLS_CC); + zephir_array_fetch(&_7$$5, &types, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1464 TSRMLS_CC); + zephir_array_fetch(&_8$$5, &tmp_names, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1465 TSRMLS_CC); + zephir_array_fetch(&_9$$5, &sizes, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1466 TSRMLS_CC); + zephir_array_fetch(&_10$$5, &errors, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1467 TSRMLS_CC); + ZEPHIR_CALL_METHOD(&parentFiles, this_ptr, "smoothfiles", &_11, 342, &_6$$5, &_7$$5, &_8$$5, &_9$$5, &_10$$5, &p); zephir_check_call_status(); - zephir_is_iterable(&parentFiles, 0, "phalcon/Http/Request.zep", 1459); + zephir_is_iterable(&parentFiles, 0, "phalcon/Http/Request.zep", 1474); if (Z_TYPE_P(&parentFiles) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&parentFiles), _12$$5) { ZEPHIR_INIT_NVAR(&file); ZVAL_COPY(&file, _12$$5); - zephir_array_append(&files, &file, PH_SEPARATE, "phalcon/Http/Request.zep", 1457); + zephir_array_append(&files, &file, PH_SEPARATE, "phalcon/Http/Request.zep", 1472); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &parentFiles, "rewind", NULL, 0); @@ -4235,7 +4266,7 @@ PHP_METHOD(Phalcon_Http_Request, smoothFiles) { } ZEPHIR_CALL_METHOD(&file, &parentFiles, "current", NULL, 0); zephir_check_call_status(); - zephir_array_append(&files, &file, PH_SEPARATE, "phalcon/Http/Request.zep", 1457); + zephir_array_append(&files, &file, PH_SEPARATE, "phalcon/Http/Request.zep", 1472); ZEPHIR_CALL_METHOD(NULL, &parentFiles, "next", NULL, 0); zephir_check_call_status(); } @@ -4263,35 +4294,35 @@ PHP_METHOD(Phalcon_Http_Request, smoothFiles) { zephir_create_array(&_14$$9, 6, 0 TSRMLS_CC); zephir_array_update_string(&_14$$9, SL("name"), &name, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_15$$9); - zephir_array_fetch(&_15$$9, &types, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1438 TSRMLS_CC); + zephir_array_fetch(&_15$$9, &types, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1453 TSRMLS_CC); zephir_array_update_string(&_14$$9, SL("type"), &_15$$9, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_15$$9); - zephir_array_fetch(&_15$$9, &tmp_names, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1439 TSRMLS_CC); + zephir_array_fetch(&_15$$9, &tmp_names, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1454 TSRMLS_CC); zephir_array_update_string(&_14$$9, SL("tmp_name"), &_15$$9, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_15$$9); - zephir_array_fetch(&_15$$9, &sizes, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1440 TSRMLS_CC); + zephir_array_fetch(&_15$$9, &sizes, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1455 TSRMLS_CC); zephir_array_update_string(&_14$$9, SL("size"), &_15$$9, PH_COPY | PH_SEPARATE); ZEPHIR_OBS_NVAR(&_15$$9); - zephir_array_fetch(&_15$$9, &errors, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1441 TSRMLS_CC); + zephir_array_fetch(&_15$$9, &errors, &idx, PH_NOISY, "phalcon/Http/Request.zep", 1456 TSRMLS_CC); zephir_array_update_string(&_14$$9, SL("error"), &_15$$9, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_14$$9, SL("key"), &p, PH_COPY | PH_SEPARATE); - zephir_array_append(&files, &_14$$9, PH_SEPARATE, "phalcon/Http/Request.zep", 1443); + zephir_array_append(&files, &_14$$9, PH_SEPARATE, "phalcon/Http/Request.zep", 1458); } if (Z_TYPE_P(&name) == IS_ARRAY) { - zephir_array_fetch(&_16$$10, &names, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1448 TSRMLS_CC); - zephir_array_fetch(&_17$$10, &types, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1449 TSRMLS_CC); - zephir_array_fetch(&_18$$10, &tmp_names, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1450 TSRMLS_CC); - zephir_array_fetch(&_19$$10, &sizes, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1451 TSRMLS_CC); - zephir_array_fetch(&_20$$10, &errors, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1452 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&parentFiles, this_ptr, "smoothfiles", &_11, 353, &_16$$10, &_17$$10, &_18$$10, &_19$$10, &_20$$10, &p); + zephir_array_fetch(&_16$$10, &names, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1463 TSRMLS_CC); + zephir_array_fetch(&_17$$10, &types, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1464 TSRMLS_CC); + zephir_array_fetch(&_18$$10, &tmp_names, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1465 TSRMLS_CC); + zephir_array_fetch(&_19$$10, &sizes, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1466 TSRMLS_CC); + zephir_array_fetch(&_20$$10, &errors, &idx, PH_NOISY | PH_READONLY, "phalcon/Http/Request.zep", 1467 TSRMLS_CC); + ZEPHIR_CALL_METHOD(&parentFiles, this_ptr, "smoothfiles", &_11, 342, &_16$$10, &_17$$10, &_18$$10, &_19$$10, &_20$$10, &p); zephir_check_call_status(); - zephir_is_iterable(&parentFiles, 0, "phalcon/Http/Request.zep", 1459); + zephir_is_iterable(&parentFiles, 0, "phalcon/Http/Request.zep", 1474); if (Z_TYPE_P(&parentFiles) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&parentFiles), _21$$10) { ZEPHIR_INIT_NVAR(&file); ZVAL_COPY(&file, _21$$10); - zephir_array_append(&files, &file, PH_SEPARATE, "phalcon/Http/Request.zep", 1457); + zephir_array_append(&files, &file, PH_SEPARATE, "phalcon/Http/Request.zep", 1472); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &parentFiles, "rewind", NULL, 0); @@ -4304,7 +4335,7 @@ PHP_METHOD(Phalcon_Http_Request, smoothFiles) { } ZEPHIR_CALL_METHOD(&file, &parentFiles, "current", NULL, 0); zephir_check_call_status(); - zephir_array_append(&files, &file, PH_SEPARATE, "phalcon/Http/Request.zep", 1457); + zephir_array_append(&files, &file, PH_SEPARATE, "phalcon/Http/Request.zep", 1472); ZEPHIR_CALL_METHOD(NULL, &parentFiles, "next", NULL, 0); zephir_check_call_status(); } @@ -4358,7 +4389,7 @@ PHP_METHOD(Phalcon_Http_Request, getFilterService) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 5, &_3$$4); zephir_check_call_status(); - zephir_throw_exception_debug(&_2$$4, "phalcon/Http/Request.zep", 1480 TSRMLS_CC); + zephir_throw_exception_debug(&_2$$4, "phalcon/Http/Request.zep", 1495 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } diff --git a/ext/phalcon/http/request.zep.h b/ext/phalcon/http/request.zep.h index 5260ce8d9f4..b15125da7fa 100644 --- a/ext/phalcon/http/request.zep.h +++ b/ext/phalcon/http/request.zep.h @@ -412,6 +412,11 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_request_geturi, 0, #else ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_request_geturi, 0, 0, IS_STRING, NULL, 0) #endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, onlyPath, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, onlyPath) +#endif ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 70200 diff --git a/ext/phalcon/http/request/file.zep.c b/ext/phalcon/http/request/file.zep.c index 9ba6354d692..9fbc3996226 100644 --- a/ext/phalcon/http/request/file.zep.c +++ b/ext/phalcon/http/request/file.zep.c @@ -215,15 +215,15 @@ PHP_METHOD(Phalcon_Http_Request_File, getRealType) { ZEPHIR_MM_GROW(); ZVAL_LONG(&_0, 16); - ZEPHIR_CALL_FUNCTION(&finfo, "finfo_open", NULL, 359, &_0); + ZEPHIR_CALL_FUNCTION(&finfo, "finfo_open", NULL, 348, &_0); zephir_check_call_status(); if (Z_TYPE_P(&finfo) != IS_RESOURCE) { RETURN_MM_STRING(""); } zephir_read_property(&_0, this_ptr, SL("tmp"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 360, &finfo, &_0); + ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 349, &finfo, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 361, &finfo); + ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 350, &finfo); zephir_check_call_status(); RETURN_CCTOR(&mime); @@ -324,7 +324,7 @@ PHP_METHOD(Phalcon_Http_Request_File, moveTo) { zephir_read_property(&_0, this_ptr, SL("tmp"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_RETURN_CALL_FUNCTION("move_uploaded_file", NULL, 332, &_0, &destination); + ZEPHIR_RETURN_CALL_FUNCTION("move_uploaded_file", NULL, 321, &_0, &destination); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/http/requestinterface.zep.c b/ext/phalcon/http/requestinterface.zep.c index 8e82be3ec9d..b54dd54c792 100644 --- a/ext/phalcon/http/requestinterface.zep.c +++ b/ext/phalcon/http/requestinterface.zep.c @@ -191,7 +191,18 @@ ZEPHIR_DOC_METHOD(Phalcon_Http_RequestInterface, getMethod); ZEPHIR_DOC_METHOD(Phalcon_Http_RequestInterface, getPort); /** - * Gets HTTP URI which request has been made + * Gets HTTP URI which request has been made to + * + *```php + * // Returns /some/path?with=queryParams + * $uri = $request->getURI(); + * + * // Returns /some/path + * $uri = $request->getURI(true); + *``` + * + * @param bool onlyPath If true, query part will be omitted + * @return string */ ZEPHIR_DOC_METHOD(Phalcon_Http_RequestInterface, getURI); diff --git a/ext/phalcon/http/requestinterface.zep.h b/ext/phalcon/http/requestinterface.zep.h index 17de01bf9b7..ed021dda9b3 100644 --- a/ext/phalcon/http/requestinterface.zep.h +++ b/ext/phalcon/http/requestinterface.zep.h @@ -154,6 +154,11 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_requestinterface_ge #else ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_http_requestinterface_geturi, 0, 0, IS_STRING, NULL, 0) #endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, onlyPath, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, onlyPath) +#endif ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_http_requestinterface_getpost, 0, 0, 0) diff --git a/ext/phalcon/http/response.zep.c b/ext/phalcon/http/response.zep.c index 9c6fdaa0ccb..112143d0116 100644 --- a/ext/phalcon/http/response.zep.c +++ b/ext/phalcon/http/response.zep.c @@ -612,7 +612,7 @@ PHP_METHOD(Phalcon_Http_Response, send) { _3$$5 = ((zephir_fast_strlen_ev(&file)) ? 1 : 0); } if (_3$$5) { - ZEPHIR_CALL_FUNCTION(NULL, "readfile", NULL, 362, &file); + ZEPHIR_CALL_FUNCTION(NULL, "readfile", NULL, 351, &file); zephir_check_call_status(); } } @@ -1051,14 +1051,14 @@ PHP_METHOD(Phalcon_Http_Response, setFileToSend) { ZEPHIR_INIT_VAR(&basePathEncoding); ZVAL_STRING(&basePathEncoding, "ASCII"); if (Z_TYPE_P(attachmentName) != IS_STRING) { - ZEPHIR_CALL_CE_STATIC(&basePath, phalcon_helper_fs_ce, "basename", &_0, 363, &filePath); + ZEPHIR_CALL_CE_STATIC(&basePath, phalcon_helper_fs_ce, "basename", &_0, 352, &filePath); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&basePath, attachmentName); } if (zephir_is_true(attachment)) { if ((zephir_function_exists_ex(SL("mb_detect_encoding") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&_1$$6, "mb_detect_order", NULL, 364); + ZEPHIR_CALL_FUNCTION(&_1$$6, "mb_detect_order", NULL, 353); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&basePathEncoding, "mb_detect_encoding", NULL, 221, &basePath, &_1$$6, &__$true); zephir_check_call_status(); diff --git a/ext/phalcon/http/response/cookies.zep.c b/ext/phalcon/http/response/cookies.zep.c index 0bbe5c87a60..17d2219429a 100644 --- a/ext/phalcon/http/response/cookies.zep.c +++ b/ext/phalcon/http/response/cookies.zep.c @@ -360,7 +360,7 @@ PHP_METHOD(Phalcon_Http_Response_Cookies, send) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_FUNCTION(&_0, "headers_sent", NULL, 365); + ZEPHIR_CALL_FUNCTION(&_0, "headers_sent", NULL, 354); zephir_check_call_status(); if (zephir_is_true(&_0)) { RETURN_MM_BOOL(0); diff --git a/ext/phalcon/http/response/headers.zep.c b/ext/phalcon/http/response/headers.zep.c index 2c9da668298..eb29612bb89 100644 --- a/ext/phalcon/http/response/headers.zep.c +++ b/ext/phalcon/http/response/headers.zep.c @@ -182,7 +182,7 @@ PHP_METHOD(Phalcon_Http_Response_Headers, send) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_FUNCTION(&_0, "headers_sent", NULL, 365); + ZEPHIR_CALL_FUNCTION(&_0, "headers_sent", NULL, 354); zephir_check_call_status(); if (zephir_is_true(&_0)) { RETURN_MM_BOOL(0); @@ -203,7 +203,7 @@ PHP_METHOD(Phalcon_Http_Response_Headers, send) { if (Z_TYPE_P(&value) != IS_NULL) { ZEPHIR_INIT_LNVAR(_6$$5); ZEPHIR_CONCAT_VSV(&_6$$5, &header, ": ", &value); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 366, &_6$$5, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 355, &_6$$5, &__$true); zephir_check_call_status(); } else { _8$$6 = zephir_memnstr_str(&header, SL(":"), "phalcon/Http/Response/Headers.zep", 88); @@ -215,12 +215,12 @@ PHP_METHOD(Phalcon_Http_Response_Headers, send) { _8$$6 = ZEPHIR_IS_STRING(&_11$$6, "HTTP/"); } if (_8$$6) { - ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 366, &header, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 355, &header, &__$true); zephir_check_call_status(); } else { ZEPHIR_INIT_LNVAR(_12$$8); ZEPHIR_CONCAT_VS(&_12$$8, &header, ": "); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 366, &_12$$8, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 355, &_12$$8, &__$true); zephir_check_call_status(); } } @@ -241,7 +241,7 @@ PHP_METHOD(Phalcon_Http_Response_Headers, send) { if (Z_TYPE_P(&value) != IS_NULL) { ZEPHIR_INIT_LNVAR(_13$$10); ZEPHIR_CONCAT_VSV(&_13$$10, &header, ": ", &value); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 366, &_13$$10, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 355, &_13$$10, &__$true); zephir_check_call_status(); } else { _14$$11 = zephir_memnstr_str(&header, SL(":"), "phalcon/Http/Response/Headers.zep", 88); @@ -253,12 +253,12 @@ PHP_METHOD(Phalcon_Http_Response_Headers, send) { _14$$11 = ZEPHIR_IS_STRING(&_17$$11, "HTTP/"); } if (_14$$11) { - ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 366, &header, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 355, &header, &__$true); zephir_check_call_status(); } else { ZEPHIR_INIT_LNVAR(_18$$13); ZEPHIR_CONCAT_VS(&_18$$13, &header, ": "); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 366, &_18$$13, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_7, 355, &_18$$13, &__$true); zephir_check_call_status(); } } diff --git a/ext/phalcon/image/adapter/abstractadapter.zep.c b/ext/phalcon/image/adapter/abstractadapter.zep.c index c01acdd7560..d5a387e17e6 100644 --- a/ext/phalcon/image/adapter/abstractadapter.zep.c +++ b/ext/phalcon/image/adapter/abstractadapter.zep.c @@ -677,7 +677,7 @@ PHP_METHOD(Phalcon_Image_Adapter_AbstractAdapter, resize) { _0$$3 = !height; } if (UNEXPECTED(_0$$3)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_image_exception_ce, "width and height must be specified", "phalcon/Image/Adapter/AbstractAdapter.zep", 250); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_image_exception_ce, "width and height must be specified", "phalcon/Image/Adapter/AbstractAdapter.zep", 264); return; } } else { @@ -687,7 +687,7 @@ PHP_METHOD(Phalcon_Image_Adapter_AbstractAdapter, resize) { _1$$6 = !height; } if (UNEXPECTED(_1$$6)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_image_exception_ce, "width and height must be specified", "phalcon/Image/Adapter/AbstractAdapter.zep", 257); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_image_exception_ce, "width and height must be specified", "phalcon/Image/Adapter/AbstractAdapter.zep", 271); return; } ZEPHIR_INIT_VAR(&_2$$6); @@ -708,7 +708,7 @@ PHP_METHOD(Phalcon_Image_Adapter_AbstractAdapter, resize) { _5$$8 = !height; } if (UNEXPECTED(_5$$8)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_image_exception_ce, "width and height must be specified", "phalcon/Image/Adapter/AbstractAdapter.zep", 266); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_image_exception_ce, "width and height must be specified", "phalcon/Image/Adapter/AbstractAdapter.zep", 280); return; } ZEPHIR_INIT_VAR(&_6$$8); @@ -726,7 +726,7 @@ PHP_METHOD(Phalcon_Image_Adapter_AbstractAdapter, resize) { do { if (master == 2) { if (UNEXPECTED(!width)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_image_exception_ce, "width must be specified", "phalcon/Image/Adapter/AbstractAdapter.zep", 276); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_image_exception_ce, "width must be specified", "phalcon/Image/Adapter/AbstractAdapter.zep", 290); return; } zephir_read_property(&_9$$10, this_ptr, SL("height"), PH_NOISY_CC | PH_READONLY); @@ -736,7 +736,7 @@ PHP_METHOD(Phalcon_Image_Adapter_AbstractAdapter, resize) { } if (master == 3) { if (UNEXPECTED(!height)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_image_exception_ce, "height must be specified", "phalcon/Image/Adapter/AbstractAdapter.zep", 285); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_image_exception_ce, "height must be specified", "phalcon/Image/Adapter/AbstractAdapter.zep", 299); return; } zephir_read_property(&_11$$12, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY); @@ -750,7 +750,7 @@ PHP_METHOD(Phalcon_Image_Adapter_AbstractAdapter, resize) { _13$$14 = !height; } if (UNEXPECTED(_13$$14)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_image_exception_ce, "width and height must be specified", "phalcon/Image/Adapter/AbstractAdapter.zep", 296); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_image_exception_ce, "width and height must be specified", "phalcon/Image/Adapter/AbstractAdapter.zep", 310); return; } zephir_read_property(&_14$$14, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY); @@ -1028,9 +1028,9 @@ PHP_METHOD(Phalcon_Image_Adapter_AbstractAdapter, text) { ZVAL_STRING(&_11, "hexdec"); ZEPHIR_CALL_FUNCTION(&colors, "array_map", NULL, 93, &_11, &_10); zephir_check_call_status(); - zephir_array_fetch_long(&_12, &colors, 0, PH_NOISY | PH_READONLY, "phalcon/Image/Adapter/AbstractAdapter.zep", 416 TSRMLS_CC); - zephir_array_fetch_long(&_13, &colors, 1, PH_NOISY | PH_READONLY, "phalcon/Image/Adapter/AbstractAdapter.zep", 417 TSRMLS_CC); - zephir_array_fetch_long(&_14, &colors, 2, PH_NOISY | PH_READONLY, "phalcon/Image/Adapter/AbstractAdapter.zep", 418 TSRMLS_CC); + zephir_array_fetch_long(&_12, &colors, 0, PH_NOISY | PH_READONLY, "phalcon/Image/Adapter/AbstractAdapter.zep", 437 TSRMLS_CC); + zephir_array_fetch_long(&_13, &colors, 1, PH_NOISY | PH_READONLY, "phalcon/Image/Adapter/AbstractAdapter.zep", 438 TSRMLS_CC); + zephir_array_fetch_long(&_14, &colors, 2, PH_NOISY | PH_READONLY, "phalcon/Image/Adapter/AbstractAdapter.zep", 439 TSRMLS_CC); ZVAL_LONG(&_9, opacity); ZVAL_LONG(&_15, size); ZEPHIR_CALL_METHOD(NULL, this_ptr, "processtext", NULL, 0, &text, offsetX, offsetY, &_9, &_12, &_13, &_14, &_15, &fontfile); diff --git a/ext/phalcon/image/adapter/abstractadapter.zep.h b/ext/phalcon/image/adapter/abstractadapter.zep.h index 5114a99fd54..08e33460966 100644 --- a/ext/phalcon/image/adapter/abstractadapter.zep.h +++ b/ext/phalcon/image/adapter/abstractadapter.zep.h @@ -54,9 +54,9 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractad ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_background, 0, 1, Phalcon\\Image\\Adapter\\Adapter, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_background, 0, 1, Phalcon\\Image\\Adapter\\AdapterInterface, 0) #else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_background, 0, 1, IS_OBJECT, "Phalcon\\Image\\Adapter\\Adapter", 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_background, 0, 1, IS_OBJECT, "Phalcon\\Image\\Adapter\\AdapterInterface", 0) #endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, color, IS_STRING, 0) @@ -71,9 +71,9 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractad ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_blur, 0, 1, Phalcon\\Image\\Adapter\\Adapter, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_blur, 0, 1, Phalcon\\Image\\Adapter\\AdapterInterface, 0) #else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_blur, 0, 1, IS_OBJECT, "Phalcon\\Image\\Adapter\\Adapter", 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_blur, 0, 1, IS_OBJECT, "Phalcon\\Image\\Adapter\\AdapterInterface", 0) #endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, radius, IS_LONG, 0) @@ -83,9 +83,9 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractad ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_crop, 0, 2, Phalcon\\Image\\Adapter\\Adapter, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_crop, 0, 2, Phalcon\\Image\\Adapter\\AdapterInterface, 0) #else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_crop, 0, 2, IS_OBJECT, "Phalcon\\Image\\Adapter\\Adapter", 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_crop, 0, 2, IS_OBJECT, "Phalcon\\Image\\Adapter\\AdapterInterface", 0) #endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) @@ -110,9 +110,9 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractad ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_flip, 0, 1, Phalcon\\Image\\Adapter\\Adapter, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_flip, 0, 1, Phalcon\\Image\\Adapter\\AdapterInterface, 0) #else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_flip, 0, 1, IS_OBJECT, "Phalcon\\Image\\Adapter\\Adapter", 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_flip, 0, 1, IS_OBJECT, "Phalcon\\Image\\Adapter\\AdapterInterface", 0) #endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, direction, IS_LONG, 0) @@ -122,9 +122,9 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractad ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_liquidrescale, 0, 2, Phalcon\\Image\\Adapter\\Adapter, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_liquidrescale, 0, 2, Phalcon\\Image\\Adapter\\AbstractAdapter, 0) #else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_liquidrescale, 0, 2, IS_OBJECT, "Phalcon\\Image\\Adapter\\Adapter", 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_liquidrescale, 0, 2, IS_OBJECT, "Phalcon\\Image\\Adapter\\AbstractAdapter", 0) #endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) @@ -149,17 +149,17 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractad ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_mask, 0, 1, Phalcon\\Image\\Adapter\\Adapter, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_mask, 0, 1, Phalcon\\Image\\Adapter\\AdapterInterface, 0) #else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_mask, 0, 1, IS_OBJECT, "Phalcon\\Image\\Adapter\\Adapter", 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_mask, 0, 1, IS_OBJECT, "Phalcon\\Image\\Adapter\\AdapterInterface", 0) #endif ZEND_ARG_OBJ_INFO(0, watermark, Phalcon\\Image\\Adapter\\AdapterInterface, 0) ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_pixelate, 0, 1, Phalcon\\Image\\Adapter\\Adapter, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_pixelate, 0, 1, Phalcon\\Image\\Adapter\\AdapterInterface, 0) #else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_pixelate, 0, 1, IS_OBJECT, "Phalcon\\Image\\Adapter\\Adapter", 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_pixelate, 0, 1, IS_OBJECT, "Phalcon\\Image\\Adapter\\AdapterInterface", 0) #endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, amount, IS_LONG, 0) @@ -169,9 +169,9 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractad ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_reflection, 0, 1, Phalcon\\Image\\Adapter\\Adapter, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_reflection, 0, 1, Phalcon\\Image\\Adapter\\AdapterInterface, 0) #else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_reflection, 0, 1, IS_OBJECT, "Phalcon\\Image\\Adapter\\Adapter", 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_reflection, 0, 1, IS_OBJECT, "Phalcon\\Image\\Adapter\\AdapterInterface", 0) #endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) @@ -208,9 +208,9 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractad ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_resize, 0, 0, Phalcon\\Image\\Adapter\\Adapter, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_resize, 0, 0, Phalcon\\Image\\Adapter\\AdapterInterface, 0) #else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_resize, 0, 0, IS_OBJECT, "Phalcon\\Image\\Adapter\\Adapter", 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_resize, 0, 0, IS_OBJECT, "Phalcon\\Image\\Adapter\\AdapterInterface", 0) #endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 1) @@ -230,9 +230,9 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractad ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_rotate, 0, 1, Phalcon\\Image\\Adapter\\Adapter, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_rotate, 0, 1, Phalcon\\Image\\Adapter\\AdapterInterface, 0) #else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_rotate, 0, 1, IS_OBJECT, "Phalcon\\Image\\Adapter\\Adapter", 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_rotate, 0, 1, IS_OBJECT, "Phalcon\\Image\\Adapter\\AdapterInterface", 0) #endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, degrees, IS_LONG, 0) @@ -242,9 +242,9 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractad ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_save, 0, 0, Phalcon\\Image\\Adapter\\Adapter, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_save, 0, 0, Phalcon\\Image\\Adapter\\AdapterInterface, 0) #else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_save, 0, 0, IS_OBJECT, "Phalcon\\Image\\Adapter\\Adapter", 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_save, 0, 0, IS_OBJECT, "Phalcon\\Image\\Adapter\\AdapterInterface", 0) #endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, file, IS_STRING, 1) @@ -259,9 +259,9 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractad ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_sharpen, 0, 1, Phalcon\\Image\\Adapter\\Adapter, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_sharpen, 0, 1, Phalcon\\Image\\Adapter\\AdapterInterface, 0) #else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_sharpen, 0, 1, IS_OBJECT, "Phalcon\\Image\\Adapter\\Adapter", 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_sharpen, 0, 1, IS_OBJECT, "Phalcon\\Image\\Adapter\\AdapterInterface", 0) #endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, amount, IS_LONG, 0) @@ -271,9 +271,9 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractad ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_text, 0, 1, Phalcon\\Image\\Adapter\\Adapter, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_text, 0, 1, Phalcon\\Image\\Adapter\\AdapterInterface, 0) #else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_text, 0, 1, IS_OBJECT, "Phalcon\\Image\\Adapter\\Adapter", 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_text, 0, 1, IS_OBJECT, "Phalcon\\Image\\Adapter\\AdapterInterface", 0) #endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, text, IS_STRING, 0) @@ -305,9 +305,9 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractad ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_watermark, 0, 1, Phalcon\\Image\\Adapter\\Adapter, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_watermark, 0, 1, Phalcon\\Image\\Adapter\\AdapterInterface, 0) #else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_watermark, 0, 1, IS_OBJECT, "Phalcon\\Image\\Adapter\\Adapter", 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_abstractadapter_watermark, 0, 1, IS_OBJECT, "Phalcon\\Image\\Adapter\\AdapterInterface", 0) #endif ZEND_ARG_OBJ_INFO(0, watermark, Phalcon\\Image\\Adapter\\AdapterInterface, 0) #if PHP_VERSION_ID >= 70200 diff --git a/ext/phalcon/image/adapter/adapterinterface.zep.h b/ext/phalcon/image/adapter/adapterinterface.zep.h index a9d45898dc9..8e657acc0cd 100644 --- a/ext/phalcon/image/adapter/adapterinterface.zep.h +++ b/ext/phalcon/image/adapter/adapterinterface.zep.h @@ -3,7 +3,11 @@ extern zend_class_entry *phalcon_image_adapter_adapterinterface_ce; ZEPHIR_INIT_CLASS(Phalcon_Image_Adapter_AdapterInterface); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_background, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_background, 0, 1, Phalcon\\Image\\Adapter\\AdapterInterface, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_background, 0, 1, IS_OBJECT, "Phalcon\\Image\\Adapter\\AdapterInterface", 0) +#endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, color, IS_STRING, 0) #else @@ -16,7 +20,11 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_background #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_blur, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_blur, 0, 1, Phalcon\\Image\\Adapter\\AdapterInterface, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_blur, 0, 1, IS_OBJECT, "Phalcon\\Image\\Adapter\\AdapterInterface", 0) +#endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, radius, IS_LONG, 0) #else @@ -24,7 +32,11 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_blur, 0, 0 #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_crop, 0, 0, 2) +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_crop, 0, 2, Phalcon\\Image\\Adapter\\AdapterInterface, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_crop, 0, 2, IS_OBJECT, "Phalcon\\Image\\Adapter\\AdapterInterface", 0) +#endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) #else @@ -47,7 +59,11 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_crop, 0, 0 #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_flip, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_flip, 0, 1, Phalcon\\Image\\Adapter\\AdapterInterface, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_flip, 0, 1, IS_OBJECT, "Phalcon\\Image\\Adapter\\AdapterInterface", 0) +#endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, direction, IS_LONG, 0) #else @@ -55,11 +71,19 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_flip, 0, 0 #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_mask, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_mask, 0, 1, Phalcon\\Image\\Adapter\\AdapterInterface, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_mask, 0, 1, IS_OBJECT, "Phalcon\\Image\\Adapter\\AdapterInterface", 0) +#endif ZEND_ARG_OBJ_INFO(0, watermark, Phalcon\\Image\\Adapter\\AdapterInterface, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_pixelate, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_pixelate, 0, 1, Phalcon\\Image\\Adapter\\AdapterInterface, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_pixelate, 0, 1, IS_OBJECT, "Phalcon\\Image\\Adapter\\AdapterInterface", 0) +#endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, amount, IS_LONG, 0) #else @@ -67,7 +91,11 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_pixelate, #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_reflection, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_reflection, 0, 1, Phalcon\\Image\\Adapter\\AdapterInterface, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_reflection, 0, 1, IS_OBJECT, "Phalcon\\Image\\Adapter\\AdapterInterface", 0) +#endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) #else @@ -85,7 +113,11 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_reflection #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_render, 0, 0, 0) +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_render, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_render, 0, 0, IS_STRING, NULL, 0) +#endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, ext, IS_STRING, 1) #else @@ -98,7 +130,11 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_render, 0, #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_resize, 0, 0, 0) +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_resize, 0, 0, Phalcon\\Image\\Adapter\\AdapterInterface, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_resize, 0, 0, IS_OBJECT, "Phalcon\\Image\\Adapter\\AdapterInterface", 0) +#endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 1) #else @@ -116,7 +152,11 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_resize, 0, #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_rotate, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_rotate, 0, 1, Phalcon\\Image\\Adapter\\AdapterInterface, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_rotate, 0, 1, IS_OBJECT, "Phalcon\\Image\\Adapter\\AdapterInterface", 0) +#endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, degrees, IS_LONG, 0) #else @@ -124,7 +164,11 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_rotate, 0, #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_save, 0, 0, 0) +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_save, 0, 0, Phalcon\\Image\\Adapter\\AdapterInterface, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_save, 0, 0, IS_OBJECT, "Phalcon\\Image\\Adapter\\AdapterInterface", 0) +#endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, file, IS_STRING, 1) #else @@ -137,7 +181,11 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_save, 0, 0 #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_sharpen, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_sharpen, 0, 1, Phalcon\\Image\\Adapter\\AdapterInterface, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_sharpen, 0, 1, IS_OBJECT, "Phalcon\\Image\\Adapter\\AdapterInterface", 0) +#endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, amount, IS_LONG, 0) #else @@ -145,7 +193,11 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_sharpen, 0 #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_text, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_text, 0, 1, Phalcon\\Image\\Adapter\\AdapterInterface, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_text, 0, 1, IS_OBJECT, "Phalcon\\Image\\Adapter\\AdapterInterface", 0) +#endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, text, IS_STRING, 0) #else @@ -183,7 +235,11 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_text, 0, 0 #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_watermark, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_watermark, 0, 1, Phalcon\\Image\\Adapter\\AdapterInterface, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_image_adapter_adapterinterface_watermark, 0, 1, IS_OBJECT, "Phalcon\\Image\\Adapter\\AdapterInterface", 0) +#endif ZEND_ARG_OBJ_INFO(0, watermark, Phalcon\\Image\\Adapter\\AdapterInterface, 0) #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, offsetX, IS_LONG, 0) diff --git a/ext/phalcon/image/adapter/gd.zep.c b/ext/phalcon/image/adapter/gd.zep.c index 3ab1ff47211..b41ca66fc07 100644 --- a/ext/phalcon/image/adapter/gd.zep.c +++ b/ext/phalcon/image/adapter/gd.zep.c @@ -128,7 +128,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("realpath"), &_3$$4); zephir_read_property(&_4$$4, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&imageinfo, "getimagesize", NULL, 367, &_4$$4); + ZEPHIR_CALL_FUNCTION(&imageinfo, "getimagesize", NULL, 356, &_4$$4); zephir_check_call_status(); if (zephir_is_true(&imageinfo)) { zephir_array_fetch_long(&_5$$5, &imageinfo, 0, PH_NOISY | PH_READONLY, "phalcon/Image/Adapter/Gd.zep", 36 TSRMLS_CC); @@ -144,35 +144,35 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { do { if (ZEPHIR_IS_LONG(&_9$$4, 1)) { zephir_read_property(&_10$$6, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_11$$6, "imagecreatefromgif", NULL, 368, &_10$$6); + ZEPHIR_CALL_FUNCTION(&_11$$6, "imagecreatefromgif", NULL, 357, &_10$$6); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &_11$$6); break; } if (ZEPHIR_IS_LONG(&_9$$4, 2)) { zephir_read_property(&_12$$7, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_13$$7, "imagecreatefromjpeg", NULL, 369, &_12$$7); + ZEPHIR_CALL_FUNCTION(&_13$$7, "imagecreatefromjpeg", NULL, 358, &_12$$7); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &_13$$7); break; } if (ZEPHIR_IS_LONG(&_9$$4, 3)) { zephir_read_property(&_14$$8, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_15$$8, "imagecreatefrompng", NULL, 370, &_14$$8); + ZEPHIR_CALL_FUNCTION(&_15$$8, "imagecreatefrompng", NULL, 359, &_14$$8); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &_15$$8); break; } if (ZEPHIR_IS_LONG(&_9$$4, 15)) { zephir_read_property(&_16$$9, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_17$$9, "imagecreatefromwbmp", NULL, 371, &_16$$9); + ZEPHIR_CALL_FUNCTION(&_17$$9, "imagecreatefromwbmp", NULL, 360, &_16$$9); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &_17$$9); break; } if (ZEPHIR_IS_LONG(&_9$$4, 16)) { zephir_read_property(&_18$$10, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_19$$10, "imagecreatefromxbm", NULL, 372, &_18$$10); + ZEPHIR_CALL_FUNCTION(&_19$$10, "imagecreatefromxbm", NULL, 361, &_18$$10); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &_19$$10); break; @@ -195,7 +195,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { } while(0); zephir_read_property(&_24$$4, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 373, &_24$$4, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 362, &_24$$4, &__$true); zephir_check_call_status(); } else { _25$$13 = !width; @@ -216,14 +216,14 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { } ZVAL_LONG(&_29$$13, width); ZVAL_LONG(&_30$$13, height); - ZEPHIR_CALL_FUNCTION(&_31$$13, "imagecreatetruecolor", NULL, 374, &_29$$13, &_30$$13); + ZEPHIR_CALL_FUNCTION(&_31$$13, "imagecreatetruecolor", NULL, 363, &_29$$13, &_30$$13); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &_31$$13); zephir_read_property(&_29$$13, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 375, &_29$$13, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 364, &_29$$13, &__$true); zephir_check_call_status(); zephir_read_property(&_30$$13, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 373, &_30$$13, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 362, &_30$$13, &__$true); zephir_check_call_status(); zephir_read_property(&_32$$13, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); zephir_update_property_zval(this_ptr, SL("realpath"), &_32$$13); @@ -260,7 +260,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, __destruct) { zephir_read_property(&_0, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&image, &_0); if (Z_TYPE_P(&image) == IS_RESOURCE) { - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &image); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 365, &image); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -300,7 +300,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, check) { ZVAL_STRING(&_1, "2.0.1"); ZEPHIR_INIT_VAR(&_2); ZVAL_STRING(&_2, ">="); - ZEPHIR_CALL_FUNCTION(&_3, "version_compare", NULL, 377, &version, &_1, &_2); + ZEPHIR_CALL_FUNCTION(&_3, "version_compare", NULL, 366, &version, &_1, &_2); zephir_check_call_status(); if (UNEXPECTED(!zephir_is_true(&_3))) { ZEPHIR_INIT_VAR(&_4$$5); @@ -352,7 +352,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, getVersion) { ZEPHIR_INIT_NVAR(&version); ZEPHIR_MM_GET_CONSTANT(&version, "GD_VERSION"); } else { - ZEPHIR_CALL_FUNCTION(&info, "gd_info", NULL, 378); + ZEPHIR_CALL_FUNCTION(&info, "gd_info", NULL, 367); zephir_check_call_status(); ZEPHIR_INIT_VAR(&matches); ZVAL_NULL(&matches); @@ -412,9 +412,9 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processBackground) { ZVAL_LONG(&_3, g); ZVAL_LONG(&_4, b); ZVAL_LONG(&_5, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 379, &background, &_2, &_3, &_4, &_5); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 368, &background, &_2, &_3, &_4, &_5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 375, &background, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 364, &background, &__$true); zephir_check_call_status(); zephir_read_property(&_2, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_3, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY); @@ -423,11 +423,11 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processBackground) { ZVAL_LONG(&_6, 0); ZVAL_LONG(&_7, 0); ZVAL_LONG(&_8, 0); - ZEPHIR_CALL_FUNCTION(&_9, "imagecopy", NULL, 380, &background, &_2, &_5, &_6, &_7, &_8, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&_9, "imagecopy", NULL, 369, &background, &_2, &_5, &_6, &_7, &_8, &_3, &_4); zephir_check_call_status(); if (zephir_is_true(&_9)) { zephir_read_property(&_10$$3, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &_10$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 365, &_10$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &background); } @@ -459,7 +459,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processBlur) { } zephir_read_property(&_0$$3, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_1$$3, 7); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_2, 381, &_0$$3, &_1$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_2, 370, &_0$$3, &_1$$3); zephir_check_call_status(); i++; } @@ -489,11 +489,11 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processCreate) { ZVAL_LONG(&_0, width); ZVAL_LONG(&_1, height); - ZEPHIR_CALL_FUNCTION(&image, "imagecreatetruecolor", NULL, 374, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&image, "imagecreatetruecolor", NULL, 363, &_0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 375, &image, &__$false); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 364, &image, &__$false); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 373, &image, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 362, &image, &__$true); zephir_check_call_status(); RETURN_CCTOR(&image); @@ -538,16 +538,16 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processCrop) { ZVAL_LONG(&_0, height); zephir_array_update_string(&rect, SL("height"), &_0, PH_COPY | PH_SEPARATE); zephir_read_property(&_1, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&image, "imagecrop", NULL, 382, &_1, &rect); + ZEPHIR_CALL_FUNCTION(&image, "imagecrop", NULL, 371, &_1, &rect); zephir_check_call_status(); zephir_read_property(&_2, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 365, &_2); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &image); - ZEPHIR_CALL_FUNCTION(&_3, "imagesx", NULL, 383, &image); + ZEPHIR_CALL_FUNCTION(&_3, "imagesx", NULL, 372, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("width"), &_3); - ZEPHIR_CALL_FUNCTION(&_4, "imagesy", NULL, 384, &image); + ZEPHIR_CALL_FUNCTION(&_4, "imagesy", NULL, 373, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("height"), &_4); ZEPHIR_MM_RESTORE(); @@ -575,12 +575,12 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processFlip) { if (direction == 11) { zephir_read_property(&_0$$3, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_1$$3, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imageflip", NULL, 385, &_0$$3, &_1$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imageflip", NULL, 374, &_0$$3, &_1$$3); zephir_check_call_status(); } else { zephir_read_property(&_2$$4, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_3$$4, 2); - ZEPHIR_CALL_FUNCTION(NULL, "imageflip", NULL, 385, &_2$$4, &_3$$4); + ZEPHIR_CALL_FUNCTION(NULL, "imageflip", NULL, 374, &_2$$4, &_3$$4); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -640,32 +640,32 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processMask) { ZEPHIR_CALL_METHOD(&_0, mask, "render", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&maskImage, "imagecreatefromstring", NULL, 386, &_0); + ZEPHIR_CALL_FUNCTION(&maskImage, "imagecreatefromstring", NULL, 375, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 383, &maskImage); + ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 372, &maskImage); zephir_check_call_status(); mask_width = zephir_get_intval(&_1); - ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 384, &maskImage); + ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 373, &maskImage); zephir_check_call_status(); mask_height = zephir_get_intval(&_2); alpha = 127; - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 373, &maskImage, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 362, &maskImage, &__$true); zephir_check_call_status(); zephir_read_property(&_3, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_4, this_ptr, SL("height"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CALL_METHOD(&newimage, this_ptr, "processcreate", NULL, 0, &_3, &_4); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 373, &newimage, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 362, &newimage, &__$true); zephir_check_call_status(); ZVAL_LONG(&_5, 0); ZVAL_LONG(&_6, 0); ZVAL_LONG(&_7, 0); ZVAL_LONG(&_8, alpha); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 379, &newimage, &_5, &_6, &_7, &_8); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 368, &newimage, &_5, &_6, &_7, &_8); zephir_check_call_status(); ZVAL_LONG(&_5, 0); ZVAL_LONG(&_6, 0); - ZEPHIR_CALL_FUNCTION(NULL, "imagefill", NULL, 387, &newimage, &_5, &_6, &color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefill", NULL, 376, &newimage, &_5, &_6, &color); zephir_check_call_status(); zephir_read_property(&_5, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY); _9 = !ZEPHIR_IS_LONG(&_5, mask_width); @@ -676,7 +676,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processMask) { if (_9) { zephir_read_property(&_10$$3, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_11$$3, this_ptr, SL("height"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&tempImage, "imagecreatetruecolor", NULL, 374, &_10$$3, &_11$$3); + ZEPHIR_CALL_FUNCTION(&tempImage, "imagecreatetruecolor", NULL, 363, &_10$$3, &_11$$3); zephir_check_call_status(); zephir_read_property(&_12$$3, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_13$$3, this_ptr, SL("height"), PH_NOISY_CC | PH_READONLY); @@ -686,9 +686,9 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processMask) { ZVAL_LONG(&_17$$3, 0); ZVAL_LONG(&_18$$3, mask_width); ZVAL_LONG(&_19$$3, mask_height); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopyresampled", NULL, 388, &tempImage, &maskImage, &_14$$3, &_15$$3, &_16$$3, &_17$$3, &_12$$3, &_13$$3, &_18$$3, &_19$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopyresampled", NULL, 377, &tempImage, &maskImage, &_14$$3, &_15$$3, &_16$$3, &_17$$3, &_12$$3, &_13$$3, &_18$$3, &_19$$3); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &maskImage); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 365, &maskImage); zephir_check_call_status(); ZEPHIR_CPY_WRT(&maskImage, &tempImage); } @@ -706,9 +706,9 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processMask) { } ZVAL_LONG(&_21$$5, x); ZVAL_LONG(&_22$$5, y); - ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_23, 389, &maskImage, &_21$$5, &_22$$5); + ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_23, 378, &maskImage, &_21$$5, &_22$$5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_24, 390, &maskImage, &index); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_24, 379, &maskImage, &index); zephir_check_call_status(); if (zephir_array_isset_string(&color, SL("red"))) { zephir_array_fetch_string(&_25$$6, &color, SL("red"), PH_NOISY | PH_READONLY, "phalcon/Image/Adapter/Gd.zep", 289 TSRMLS_CC); @@ -718,10 +718,10 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processMask) { zephir_read_property(&_21$$5, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_22$$5, x); ZVAL_LONG(&_27$$5, y); - ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_23, 389, &_21$$5, &_22$$5, &_27$$5); + ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_23, 378, &_21$$5, &_22$$5, &_27$$5); zephir_check_call_status(); zephir_read_property(&_22$$5, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_24, 390, &_22$$5, &index); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_24, 379, &_22$$5, &index); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&r); zephir_array_fetch_string(&r, &color, SL("red"), PH_NOISY, "phalcon/Image/Adapter/Gd.zep", 294 TSRMLS_CC); @@ -730,20 +730,20 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processMask) { ZEPHIR_OBS_NVAR(&b); zephir_array_fetch_string(&b, &color, SL("blue"), PH_NOISY, "phalcon/Image/Adapter/Gd.zep", 296 TSRMLS_CC); ZVAL_LONG(&_27$$5, alpha); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 379, &newimage, &r, &g, &b, &_27$$5); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 368, &newimage, &r, &g, &b, &_27$$5); zephir_check_call_status(); ZVAL_LONG(&_27$$5, x); ZVAL_LONG(&_28$$5, y); - ZEPHIR_CALL_FUNCTION(NULL, "imagesetpixel", &_29, 391, &newimage, &_27$$5, &_28$$5, &color); + ZEPHIR_CALL_FUNCTION(NULL, "imagesetpixel", &_29, 380, &newimage, &_27$$5, &_28$$5, &color); zephir_check_call_status(); y++; } x++; } zephir_read_property(&_8, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &_8); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 365, &_8); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &maskImage); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 365, &maskImage); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &newimage); ZEPHIR_MM_RESTORE(); @@ -803,7 +803,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processPixelate) { zephir_read_property(&_5$$4, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_6$$4, x1); ZVAL_LONG(&_7$$4, y1); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorat", &_8, 389, &_5$$4, &_6$$4, &_7$$4); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorat", &_8, 378, &_5$$4, &_6$$4, &_7$$4); zephir_check_call_status(); x2 = (x + amount); y2 = (y + amount); @@ -812,7 +812,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processPixelate) { ZVAL_LONG(&_9$$4, y); ZVAL_LONG(&_10$$4, x2); ZVAL_LONG(&_11$$4, y2); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", &_12, 392, &_6$$4, &_7$$4, &_9$$4, &_10$$4, &_11$$4, &color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", &_12, 381, &_6$$4, &_7$$4, &_9$$4, &_10$$4, &_11$$4, &color); zephir_check_call_status(); y += amount; } @@ -893,7 +893,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processReflection) { ZVAL_LONG(&_8, 0); ZVAL_LONG(&_9, 0); ZVAL_LONG(&_10, 0); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", NULL, 380, &reflection, &_4, &_7, &_8, &_9, &_10, &_5, &_6); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", NULL, 369, &reflection, &_4, &_7, &_8, &_9, &_10, &_5, &_6); zephir_check_call_status(); offset = 0; while (1) { @@ -926,14 +926,14 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processReflection) { ZVAL_LONG(&_22$$5, 0); ZVAL_LONG(&_23$$5, src_y); ZVAL_LONG(&_24$$5, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", NULL, 380, &line, &_18$$5, &_20$$5, &_21$$5, &_22$$5, &_23$$5, &_19$$5, &_24$$5); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", NULL, 369, &line, &_18$$5, &_20$$5, &_21$$5, &_22$$5, &_23$$5, &_19$$5, &_24$$5); zephir_check_call_status(); ZVAL_LONG(&_20$$5, 4); ZVAL_LONG(&_21$$5, 0); ZVAL_LONG(&_22$$5, 0); ZVAL_LONG(&_23$$5, 0); ZVAL_LONG(&_24$$5, dst_opacity); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_25, 381, &line, &_20$$5, &_21$$5, &_22$$5, &_23$$5, &_24$$5); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_25, 370, &line, &_20$$5, &_21$$5, &_22$$5, &_23$$5, &_24$$5); zephir_check_call_status(); zephir_read_property(&_20$$5, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_21$$5, 0); @@ -941,18 +941,18 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processReflection) { ZVAL_LONG(&_23$$5, 0); ZVAL_LONG(&_24$$5, 0); ZVAL_LONG(&_26$$5, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", NULL, 380, &reflection, &line, &_21$$5, &_22$$5, &_23$$5, &_24$$5, &_20$$5, &_26$$5); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", NULL, 369, &reflection, &line, &_21$$5, &_22$$5, &_23$$5, &_24$$5, &_20$$5, &_26$$5); zephir_check_call_status(); offset++; } zephir_read_property(&_7, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &_7); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 365, &_7); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &reflection); - ZEPHIR_CALL_FUNCTION(&_27, "imagesx", NULL, 383, &reflection); + ZEPHIR_CALL_FUNCTION(&_27, "imagesx", NULL, 372, &reflection); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("width"), &_27); - ZEPHIR_CALL_FUNCTION(&_28, "imagesy", NULL, 384, &reflection); + ZEPHIR_CALL_FUNCTION(&_28, "imagesy", NULL, 373, &reflection); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("height"), &_28); ZEPHIR_MM_RESTORE(); @@ -997,56 +997,56 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processRender) { ZEPHIR_INIT_VAR(&_0); zephir_fast_strtolower(&_0, &ext); zephir_get_strval(&ext, &_0); - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 393); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 382); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "gif"); - ZEPHIR_CALL_FUNCTION(&_2, "strcmp", NULL, 394, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "strcmp", NULL, 383, &ext, &_1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "jpg"); - ZEPHIR_CALL_FUNCTION(&_3, "strcmp", NULL, 394, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_3, "strcmp", NULL, 383, &ext, &_1); zephir_check_call_status(); _4 = ZEPHIR_IS_LONG(&_3, 0); if (!(_4)) { ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "jpeg"); - ZEPHIR_CALL_FUNCTION(&_5, "strcmp", NULL, 394, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_5, "strcmp", NULL, 383, &ext, &_1); zephir_check_call_status(); _4 = ZEPHIR_IS_LONG(&_5, 0); } ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "png"); - ZEPHIR_CALL_FUNCTION(&_6, "strcmp", NULL, 394, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_6, "strcmp", NULL, 383, &ext, &_1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "wbmp"); - ZEPHIR_CALL_FUNCTION(&_7, "strcmp", NULL, 394, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_7, "strcmp", NULL, 383, &ext, &_1); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "xbm"); - ZEPHIR_CALL_FUNCTION(&_8, "strcmp", NULL, 394, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_8, "strcmp", NULL, 383, &ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_2, 0)) { zephir_read_property(&_9$$3, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 395, &_9$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 384, &_9$$3); zephir_check_call_status(); } else if (_4) { zephir_read_property(&_10$$4, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_11$$4, quality); - ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 396, &_10$$4, &__$null, &_11$$4); + ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 385, &_10$$4, &__$null, &_11$$4); zephir_check_call_status(); } else if (ZEPHIR_IS_LONG(&_6, 0)) { zephir_read_property(&_12$$5, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 397, &_12$$5); + ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 386, &_12$$5); zephir_check_call_status(); } else if (ZEPHIR_IS_LONG(&_7, 0)) { zephir_read_property(&_13$$6, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 398, &_13$$6); + ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 387, &_13$$6); zephir_check_call_status(); } else if (ZEPHIR_IS_LONG(&_8, 0)) { zephir_read_property(&_14$$7, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 399, &_14$$7, &__$null); + ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 388, &_14$$7, &__$null); zephir_check_call_status(); } else { ZEPHIR_INIT_VAR(&_15$$8); @@ -1059,7 +1059,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processRender) { ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", NULL, 400); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", NULL, 389); zephir_check_call_status(); RETURN_MM(); @@ -1089,16 +1089,16 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processResize) { zephir_read_property(&_0, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_1, width); ZVAL_LONG(&_2, height); - ZEPHIR_CALL_FUNCTION(&image, "imagescale", NULL, 401, &_0, &_1, &_2); + ZEPHIR_CALL_FUNCTION(&image, "imagescale", NULL, 390, &_0, &_1, &_2); zephir_check_call_status(); zephir_read_property(&_1, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &_1); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 365, &_1); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &image); - ZEPHIR_CALL_FUNCTION(&_3, "imagesx", NULL, 383, &image); + ZEPHIR_CALL_FUNCTION(&_3, "imagesx", NULL, 372, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("width"), &_3); - ZEPHIR_CALL_FUNCTION(&_4, "imagesy", NULL, 384, &image); + ZEPHIR_CALL_FUNCTION(&_4, "imagesy", NULL, 373, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("height"), &_4); ZEPHIR_MM_RESTORE(); @@ -1139,18 +1139,18 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processRotate) { ZVAL_LONG(&_2, 0); ZVAL_LONG(&_3, 0); ZVAL_LONG(&_4, 127); - ZEPHIR_CALL_FUNCTION(&transparent, "imagecolorallocatealpha", NULL, 379, &_0, &_1, &_2, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&transparent, "imagecolorallocatealpha", NULL, 368, &_0, &_1, &_2, &_3, &_4); zephir_check_call_status(); zephir_read_property(&_1, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_2, (360 - degrees)); ZVAL_LONG(&_3, 1); - ZEPHIR_CALL_FUNCTION(&image, "imagerotate", NULL, 402, &_1, &_2, &transparent, &_3); + ZEPHIR_CALL_FUNCTION(&image, "imagerotate", NULL, 391, &_1, &_2, &transparent, &_3); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 373, &image, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 362, &image, &__$true); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&width, "imagesx", NULL, 383, &image); + ZEPHIR_CALL_FUNCTION(&width, "imagesx", NULL, 372, &image); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&height, "imagesy", NULL, 384, &image); + ZEPHIR_CALL_FUNCTION(&height, "imagesy", NULL, 373, &image); zephir_check_call_status(); zephir_read_property(&_2, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_3, 0); @@ -1158,11 +1158,11 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processRotate) { ZVAL_LONG(&_5, 0); ZVAL_LONG(&_6, 0); ZVAL_LONG(&_7, 100); - ZEPHIR_CALL_FUNCTION(&_8, "imagecopymerge", NULL, 403, &_2, &image, &_3, &_4, &_5, &_6, &width, &height, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "imagecopymerge", NULL, 392, &_2, &image, &_3, &_4, &_5, &_6, &width, &height, &_7); zephir_check_call_status(); if (zephir_is_true(&_8)) { zephir_read_property(&_9$$3, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &_9$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 365, &_9$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("image"), &image); zephir_update_property_zval(this_ptr, SL("width"), &width); @@ -1224,7 +1224,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processSave) { zephir_check_call_status(); if (!(zephir_is_true(&ext))) { zephir_read_property(&_1$$3, this_ptr, SL("type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&ext, "image_type_to_extension", NULL, 404, &_1$$3, &__$false); + ZEPHIR_CALL_FUNCTION(&ext, "image_type_to_extension", NULL, 393, &_1$$3, &__$false); zephir_check_call_status(); } ZEPHIR_INIT_VAR(&_2); @@ -1232,30 +1232,30 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processSave) { ZEPHIR_CPY_WRT(&ext, &_2); ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "gif"); - ZEPHIR_CALL_FUNCTION(&_3, "strcmp", NULL, 394, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_3, "strcmp", NULL, 383, &ext, &_2); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_3, 0)) { ZEPHIR_INIT_ZVAL_NREF(_4$$4); ZVAL_LONG(&_4$$4, 1); zephir_update_property_zval(this_ptr, SL("type"), &_4$$4); zephir_read_property(&_4$$4, this_ptr, SL("type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_5$$4, "image_type_to_mime_type", NULL, 405, &_4$$4); + ZEPHIR_CALL_FUNCTION(&_5$$4, "image_type_to_mime_type", NULL, 394, &_4$$4); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("mime"), &_5$$4); zephir_read_property(&_6$$4, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 395, &_6$$4, &file); + ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 384, &_6$$4, &file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "jpg"); - ZEPHIR_CALL_FUNCTION(&_7, "strcmp", NULL, 394, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_7, "strcmp", NULL, 383, &ext, &_2); zephir_check_call_status(); _8 = ZEPHIR_IS_LONG(&_7, 0); if (!(_8)) { ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "jpeg"); - ZEPHIR_CALL_FUNCTION(&_9, "strcmp", NULL, 394, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_9, "strcmp", NULL, 383, &ext, &_2); zephir_check_call_status(); _8 = ZEPHIR_IS_LONG(&_9, 0); } @@ -1264,7 +1264,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processSave) { ZVAL_LONG(&_10$$5, 2); zephir_update_property_zval(this_ptr, SL("type"), &_10$$5); zephir_read_property(&_10$$5, this_ptr, SL("type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_11$$5, "image_type_to_mime_type", NULL, 405, &_10$$5); + ZEPHIR_CALL_FUNCTION(&_11$$5, "image_type_to_mime_type", NULL, 394, &_10$$5); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("mime"), &_11$$5); if (quality >= 0) { @@ -1275,63 +1275,63 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processSave) { } zephir_read_property(&_12$$6, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_13$$6, quality); - ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 396, &_12$$6, &file, &_13$$6); + ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 385, &_12$$6, &file, &_13$$6); zephir_check_call_status(); } else { zephir_read_property(&_14$$9, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 396, &_14$$9, &file); + ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 385, &_14$$9, &file); zephir_check_call_status(); } RETURN_MM_BOOL(1); } ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "png"); - ZEPHIR_CALL_FUNCTION(&_15, "strcmp", NULL, 394, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_15, "strcmp", NULL, 383, &ext, &_2); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_15, 0)) { ZEPHIR_INIT_ZVAL_NREF(_16$$10); ZVAL_LONG(&_16$$10, 3); zephir_update_property_zval(this_ptr, SL("type"), &_16$$10); zephir_read_property(&_16$$10, this_ptr, SL("type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_17$$10, "image_type_to_mime_type", NULL, 405, &_16$$10); + ZEPHIR_CALL_FUNCTION(&_17$$10, "image_type_to_mime_type", NULL, 394, &_16$$10); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("mime"), &_17$$10); zephir_read_property(&_18$$10, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 397, &_18$$10, &file); + ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 386, &_18$$10, &file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "wbmp"); - ZEPHIR_CALL_FUNCTION(&_19, "strcmp", NULL, 394, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_19, "strcmp", NULL, 383, &ext, &_2); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_19, 0)) { ZEPHIR_INIT_ZVAL_NREF(_20$$11); ZVAL_LONG(&_20$$11, 15); zephir_update_property_zval(this_ptr, SL("type"), &_20$$11); zephir_read_property(&_20$$11, this_ptr, SL("type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_21$$11, "image_type_to_mime_type", NULL, 405, &_20$$11); + ZEPHIR_CALL_FUNCTION(&_21$$11, "image_type_to_mime_type", NULL, 394, &_20$$11); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("mime"), &_21$$11); zephir_read_property(&_22$$11, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 398, &_22$$11, &file); + ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 387, &_22$$11, &file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "xbm"); - ZEPHIR_CALL_FUNCTION(&_23, "strcmp", NULL, 394, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_23, "strcmp", NULL, 383, &ext, &_2); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_23, 0)) { ZEPHIR_INIT_ZVAL_NREF(_24$$12); ZVAL_LONG(&_24$$12, 16); zephir_update_property_zval(this_ptr, SL("type"), &_24$$12); zephir_read_property(&_24$$12, this_ptr, SL("type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_25$$12, "image_type_to_mime_type", NULL, 405, &_24$$12); + ZEPHIR_CALL_FUNCTION(&_25$$12, "image_type_to_mime_type", NULL, 394, &_24$$12); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("mime"), &_25$$12); zephir_read_property(&_26$$12, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 399, &_26$$12, &file); + ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 388, &_26$$12, &file); zephir_check_call_status(); RETURN_MM_BOOL(1); } @@ -1424,15 +1424,15 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processSharpen) { zephir_read_property(&_5, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_6, (amount - 8)); ZVAL_LONG(&_7, 0); - ZEPHIR_CALL_FUNCTION(&_8, "imageconvolution", NULL, 406, &_5, &matrix, &_6, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "imageconvolution", NULL, 395, &_5, &matrix, &_6, &_7); zephir_check_call_status(); if (zephir_is_true(&_8)) { zephir_read_property(&_9$$3, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_10$$3, "imagesx", NULL, 383, &_9$$3); + ZEPHIR_CALL_FUNCTION(&_10$$3, "imagesx", NULL, 372, &_9$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("width"), &_10$$3); zephir_read_property(&_11$$3, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_12$$3, "imagesy", NULL, 384, &_11$$3); + ZEPHIR_CALL_FUNCTION(&_12$$3, "imagesy", NULL, 373, &_11$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("height"), &_12$$3); } @@ -1507,7 +1507,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processText) { if (!(Z_TYPE_P(&fontfile) == IS_UNDEF) && Z_STRLEN_P(&fontfile)) { ZVAL_LONG(&_3$$3, size); ZVAL_LONG(&_4$$3, 0); - ZEPHIR_CALL_FUNCTION(&space, "imagettfbbox", NULL, 407, &_3$$3, &_4$$3, &fontfile, &text); + ZEPHIR_CALL_FUNCTION(&space, "imagettfbbox", NULL, 396, &_3$$3, &_4$$3, &fontfile, &text); zephir_check_call_status(); if (zephir_array_isset_long(&space, 0)) { ZEPHIR_OBS_VAR(&_5$$4); @@ -1560,7 +1560,7 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processText) { ZVAL_LONG(&_16$$3, g); ZVAL_LONG(&_17$$3, b); ZVAL_LONG(&_18$$3, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 379, &_3$$3, &_4$$3, &_16$$3, &_17$$3, &_18$$3); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 368, &_3$$3, &_4$$3, &_16$$3, &_17$$3, &_18$$3); zephir_check_call_status(); angle = 0; zephir_read_property(&_4$$3, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); @@ -1568,15 +1568,15 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processText) { ZVAL_LONG(&_17$$3, angle); ZVAL_LONG(&_18$$3, offsetX); ZVAL_LONG(&_19$$3, offsetY); - ZEPHIR_CALL_FUNCTION(NULL, "imagettftext", NULL, 408, &_4$$3, &_16$$3, &_17$$3, &_18$$3, &_19$$3, &color, &fontfile, &text); + ZEPHIR_CALL_FUNCTION(NULL, "imagettftext", NULL, 397, &_4$$3, &_16$$3, &_17$$3, &_18$$3, &_19$$3, &color, &fontfile, &text); zephir_check_call_status(); } else { ZVAL_LONG(&_20$$8, size); - ZEPHIR_CALL_FUNCTION(&_21$$8, "imagefontwidth", NULL, 409, &_20$$8); + ZEPHIR_CALL_FUNCTION(&_21$$8, "imagefontwidth", NULL, 398, &_20$$8); zephir_check_call_status(); width = (zephir_get_intval(&_21$$8) * zephir_fast_strlen_ev(&text)); ZVAL_LONG(&_20$$8, size); - ZEPHIR_CALL_FUNCTION(&_22$$8, "imagefontheight", NULL, 410, &_20$$8); + ZEPHIR_CALL_FUNCTION(&_22$$8, "imagefontheight", NULL, 399, &_20$$8); zephir_check_call_status(); height = zephir_get_intval(&_22$$8); if (offsetX < 0) { @@ -1592,13 +1592,13 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processText) { ZVAL_LONG(&_26$$8, g); ZVAL_LONG(&_27$$8, b); ZVAL_LONG(&_28$$8, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 379, &_20$$8, &_25$$8, &_26$$8, &_27$$8, &_28$$8); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 368, &_20$$8, &_25$$8, &_26$$8, &_27$$8, &_28$$8); zephir_check_call_status(); zephir_read_property(&_25$$8, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_26$$8, size); ZVAL_LONG(&_27$$8, offsetX); ZVAL_LONG(&_28$$8, offsetY); - ZEPHIR_CALL_FUNCTION(NULL, "imagestring", NULL, 411, &_25$$8, &_26$$8, &_27$$8, &_28$$8, &text, &color); + ZEPHIR_CALL_FUNCTION(NULL, "imagestring", NULL, 400, &_25$$8, &_26$$8, &_27$$8, &_28$$8, &text, &color); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -1645,14 +1645,14 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processWatermark) { ZEPHIR_CALL_METHOD(&_0, watermark, "render", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&overlay, "imagecreatefromstring", NULL, 386, &_0); + ZEPHIR_CALL_FUNCTION(&overlay, "imagecreatefromstring", NULL, 375, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 373, &overlay, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 362, &overlay, &__$true); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 383, &overlay); + ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 372, &overlay); zephir_check_call_status(); width = zephir_get_intval(&_1); - ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 384, &overlay); + ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 373, &overlay); zephir_check_call_status(); height = zephir_get_intval(&_2); if (opacity < 100) { @@ -1666,20 +1666,20 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processWatermark) { ZVAL_LONG(&_6$$3, 127); ZVAL_LONG(&_7$$3, 127); ZVAL_LONG(&_8$$3, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 379, &overlay, &_4$$3, &_6$$3, &_7$$3, &_8$$3); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 368, &overlay, &_4$$3, &_6$$3, &_7$$3, &_8$$3); zephir_check_call_status(); ZVAL_LONG(&_4$$3, 3); - ZEPHIR_CALL_FUNCTION(NULL, "imagelayereffect", NULL, 412, &overlay, &_4$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagelayereffect", NULL, 401, &overlay, &_4$$3); zephir_check_call_status(); ZVAL_LONG(&_4$$3, 0); ZVAL_LONG(&_6$$3, 0); ZVAL_LONG(&_7$$3, width); ZVAL_LONG(&_8$$3, height); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", NULL, 392, &overlay, &_4$$3, &_6$$3, &_7$$3, &_8$$3, &color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", NULL, 381, &overlay, &_4$$3, &_6$$3, &_7$$3, &_8$$3, &color); zephir_check_call_status(); } zephir_read_property(&_9, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 375, &_9, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 364, &_9, &__$true); zephir_check_call_status(); zephir_read_property(&_10, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_11, offsetX); @@ -1688,10 +1688,10 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, processWatermark) { ZVAL_LONG(&_14, 0); ZVAL_LONG(&_15, width); ZVAL_LONG(&_16, height); - ZEPHIR_CALL_FUNCTION(&_17, "imagecopy", NULL, 380, &_10, &overlay, &_11, &_12, &_13, &_14, &_15, &_16); + ZEPHIR_CALL_FUNCTION(&_17, "imagecopy", NULL, 369, &_10, &overlay, &_11, &_12, &_13, &_14, &_15, &_16); zephir_check_call_status(); if (zephir_is_true(&_17)) { - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 376, &overlay); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 365, &overlay); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/loader.zep.c b/ext/phalcon/loader.zep.c index 789b320bb58..6819b0dfde2 100644 --- a/ext/phalcon/loader.zep.c +++ b/ext/phalcon/loader.zep.c @@ -1097,7 +1097,7 @@ PHP_METHOD(Phalcon_Loader, register) { ZVAL_STRING(&_2$$3, "autoLoad"); zephir_array_fast_append(&_1$$3, &_2$$3); ZVAL_BOOL(&_3$$3, (prepend ? 1 : 0)); - ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_register", NULL, 413, &_1$$3, &__$true, &_3$$3); + ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_register", NULL, 402, &_1$$3, &__$true, &_3$$3); zephir_check_call_status(); if (1) { zephir_update_property_zval(this_ptr, SL("registered"), &__$true); @@ -1447,7 +1447,7 @@ PHP_METHOD(Phalcon_Loader, unregister) { ZEPHIR_INIT_VAR(&_2$$3); ZVAL_STRING(&_2$$3, "autoLoad"); zephir_array_fast_append(&_1$$3, &_2$$3); - ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_unregister", NULL, 414, &_1$$3); + ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_unregister", NULL, 403, &_1$$3); zephir_check_call_status(); if (0) { zephir_update_property_zval(this_ptr, SL("registered"), &__$true); diff --git a/ext/phalcon/logger.zep.c b/ext/phalcon/logger.zep.c index 3861f580375..8ce0271c1f3 100644 --- a/ext/phalcon/logger.zep.c +++ b/ext/phalcon/logger.zep.c @@ -576,7 +576,7 @@ PHP_METHOD(Phalcon_Logger, log) { } - ZEPHIR_CALL_METHOD(&intLevel, this_ptr, "getlevelnumber", NULL, 415, level); + ZEPHIR_CALL_METHOD(&intLevel, this_ptr, "getlevelnumber", NULL, 404, level); zephir_check_call_status(); zephir_get_strval(&_0, message); ZEPHIR_CALL_METHOD(NULL, this_ptr, "addmessage", NULL, 0, level, &_0, &context); @@ -791,7 +791,7 @@ PHP_METHOD(Phalcon_Logger, addMessage) { ZEPHIR_INIT_VAR(&_1); zephir_time(&_1); ZVAL_LONG(&_0, level); - ZEPHIR_CALL_METHOD(NULL, &item, "__construct", NULL, 416, &message, &levelName, &_0, &_1, &context); + ZEPHIR_CALL_METHOD(NULL, &item, "__construct", NULL, 405, &message, &levelName, &_0, &_1, &context); zephir_check_call_status(); zephir_is_iterable(®istered, 0, "phalcon/Logger.zep", 351); if (Z_TYPE_P(®istered) == IS_ARRAY) { diff --git a/ext/phalcon/logger/adapter/stream.zep.c b/ext/phalcon/logger/adapter/stream.zep.c index 523ddbde1cd..dcf9fa84ebb 100644 --- a/ext/phalcon/logger/adapter/stream.zep.c +++ b/ext/phalcon/logger/adapter/stream.zep.c @@ -221,7 +221,7 @@ PHP_METHOD(Phalcon_Logger_Adapter_Stream, process) { ZVAL_STRING(&_8$$4, "The file '%s' cannot be opened with mode '%s'"); ZEPHIR_CALL_FUNCTION(&_9$$4, "sprintf", NULL, 182, &_8$$4, &_6$$4, &_7$$4); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_5$$4, "__construct", NULL, 349, &_9$$4); + ZEPHIR_CALL_METHOD(NULL, &_5$$4, "__construct", NULL, 338, &_9$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_5$$4, "phalcon/Logger/Adapter/Stream.zep", 123 TSRMLS_CC); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/logger/adapter/syslog.zep.c b/ext/phalcon/logger/adapter/syslog.zep.c index 18111803241..f0f5e020b37 100644 --- a/ext/phalcon/logger/adapter/syslog.zep.c +++ b/ext/phalcon/logger/adapter/syslog.zep.c @@ -159,7 +159,7 @@ PHP_METHOD(Phalcon_Logger_Adapter_Syslog, close) { if (!(zephir_is_true(&_0))) { RETURN_MM_BOOL(1); } - ZEPHIR_RETURN_CALL_FUNCTION("closelog", NULL, 417); + ZEPHIR_RETURN_CALL_FUNCTION("closelog", NULL, 406); zephir_check_call_status(); RETURN_MM(); @@ -212,7 +212,7 @@ PHP_METHOD(Phalcon_Logger_Adapter_Syslog, process) { ZEPHIR_CPY_WRT(&facility, &_0); zephir_read_property(&_0, this_ptr, SL("option"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&option, &_0); - ZEPHIR_CALL_FUNCTION(&result, "openlog", NULL, 418, &name, &option, &facility); + ZEPHIR_CALL_FUNCTION(&result, "openlog", NULL, 407, &name, &option, &facility); zephir_check_call_status(); if (!zephir_is_true(&result)) { ZEPHIR_INIT_VAR(&_1$$4); @@ -221,7 +221,7 @@ PHP_METHOD(Phalcon_Logger_Adapter_Syslog, process) { ZVAL_STRING(&_2$$4, "Cannot open syslog for name [%s] and facility [%s]"); ZEPHIR_CALL_FUNCTION(&_3$$4, "sprintf", NULL, 182, &_2$$4, &name, &facility); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 419, &_3$$4); + ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 408, &_3$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$4, "phalcon/Logger/Adapter/Syslog.zep", 132 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -234,10 +234,10 @@ PHP_METHOD(Phalcon_Logger_Adapter_Syslog, process) { zephir_update_property_zval(this_ptr, SL("opened"), &__$false); } zephir_array_fetch_long(&_4, &message, 1, PH_NOISY | PH_READONLY, "phalcon/Logger/Adapter/Syslog.zep", 137 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&level, this_ptr, "logleveltosyslog", NULL, 420, &_4); + ZEPHIR_CALL_METHOD(&level, this_ptr, "logleveltosyslog", NULL, 409, &_4); zephir_check_call_status(); zephir_array_fetch_long(&_5, &message, 1, PH_NOISY | PH_READONLY, "phalcon/Logger/Adapter/Syslog.zep", 139 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(NULL, "syslog", NULL, 421, &level, &_5); + ZEPHIR_CALL_FUNCTION(NULL, "syslog", NULL, 410, &level, &_5); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); diff --git a/ext/phalcon/logger/formatter/json.zep.c b/ext/phalcon/logger/formatter/json.zep.c index eca3311375a..00441ab92a5 100644 --- a/ext/phalcon/logger/formatter/json.zep.c +++ b/ext/phalcon/logger/formatter/json.zep.c @@ -163,7 +163,7 @@ PHP_METHOD(Phalcon_Logger_Formatter_Json, format) { zephir_read_property(&_6, this_ptr, SL("dateFormat"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CALL_METHOD(&_5, item, "gettime", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_7, "date", NULL, 422, &_6, &_5); + ZEPHIR_CALL_FUNCTION(&_7, "date", NULL, 411, &_6, &_5); zephir_check_call_status(); zephir_array_update_string(&_4, SL("timestamp"), &_7, PH_COPY | PH_SEPARATE); zephir_json_encode(&_3, &_4, 0 ); diff --git a/ext/phalcon/logger/formatter/line.zep.c b/ext/phalcon/logger/formatter/line.zep.c index fec6d0cd0ae..fb2b0d6fddf 100644 --- a/ext/phalcon/logger/formatter/line.zep.c +++ b/ext/phalcon/logger/formatter/line.zep.c @@ -202,7 +202,7 @@ PHP_METHOD(Phalcon_Logger_Formatter_Line, format) { zephir_read_property(&_2$$3, this_ptr, SL("dateFormat"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CALL_METHOD(&_3$$3, item, "gettime", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_4$$3, "date", NULL, 422, &_2$$3, &_3$$3); + ZEPHIR_CALL_FUNCTION(&_4$$3, "date", NULL, 411, &_2$$3, &_3$$3); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_5$$3); ZVAL_STRING(&_5$$3, "%date%"); diff --git a/ext/phalcon/logger/loggerfactory.zep.c b/ext/phalcon/logger/loggerfactory.zep.c index 4f80e6849b1..5da5dbd66e0 100644 --- a/ext/phalcon/logger/loggerfactory.zep.c +++ b/ext/phalcon/logger/loggerfactory.zep.c @@ -244,7 +244,7 @@ PHP_METHOD(Phalcon_Logger_LoggerFactory, newInstance) { object_init_ex(return_value, phalcon_logger_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 423, &name, &adapters); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 412, &name, &adapters); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/messages/messages.zep.c b/ext/phalcon/messages/messages.zep.c index 7daeb455322..4b45eb7f889 100644 --- a/ext/phalcon/messages/messages.zep.c +++ b/ext/phalcon/messages/messages.zep.c @@ -520,7 +520,7 @@ PHP_METHOD(Phalcon_Messages_Messages, offsetUnset) { zephir_read_property(&_1$$3, this_ptr, SL("messages"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_2$$3, 1); ZEPHIR_MAKE_REF(&_1$$3); - ZEPHIR_CALL_FUNCTION(NULL, "array_splice", NULL, 424, &_1$$3, index, &_2$$3); + ZEPHIR_CALL_FUNCTION(NULL, "array_splice", NULL, 413, &_1$$3, index, &_2$$3); ZEPHIR_UNREF(&_1$$3); zephir_check_call_status(); } diff --git a/ext/phalcon/mvc/micro.zep.c b/ext/phalcon/mvc/micro.zep.c index ca56341ad65..850194b82b3 100644 --- a/ext/phalcon/mvc/micro.zep.c +++ b/ext/phalcon/mvc/micro.zep.c @@ -468,11 +468,11 @@ PHP_METHOD(Phalcon_Mvc_Micro, getService) { if (Z_TYPE_P(&container) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&container); object_init_ex(&container, phalcon_di_factorydefault_ce); - ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 425); + ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 414); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("container"), &container); } - ZEPHIR_RETURN_CALL_METHOD(&container, "get", NULL, 426, &serviceName); + ZEPHIR_RETURN_CALL_METHOD(&container, "get", NULL, 415, &serviceName); zephir_check_call_status(); RETURN_MM(); @@ -515,11 +515,11 @@ PHP_METHOD(Phalcon_Mvc_Micro, getSharedService) { if (Z_TYPE_P(&container) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&container); object_init_ex(&container, phalcon_di_factorydefault_ce); - ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 425); + ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 414); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("container"), &container); } - ZEPHIR_RETURN_CALL_METHOD(&container, "getshared", NULL, 427, &serviceName); + ZEPHIR_RETURN_CALL_METHOD(&container, "getshared", NULL, 416, &serviceName); zephir_check_call_status(); RETURN_MM(); @@ -1324,11 +1324,11 @@ PHP_METHOD(Phalcon_Mvc_Micro, hasService) { if (Z_TYPE_P(&container) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&container); object_init_ex(&container, phalcon_di_factorydefault_ce); - ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 425); + ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 414); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("container"), &container); } - ZEPHIR_RETURN_CALL_METHOD(&container, "has", NULL, 428, &serviceName); + ZEPHIR_RETURN_CALL_METHOD(&container, "has", NULL, 417, &serviceName); zephir_check_call_status(); RETURN_MM(); @@ -1475,7 +1475,7 @@ PHP_METHOD(Phalcon_Mvc_Micro, mount) { if (zephir_is_true(&_0)) { ZEPHIR_INIT_VAR(&lazyHandler); object_init_ex(&lazyHandler, phalcon_mvc_micro_lazyloader_ce); - ZEPHIR_CALL_METHOD(NULL, &lazyHandler, "__construct", NULL, 429, &mainHandler); + ZEPHIR_CALL_METHOD(NULL, &lazyHandler, "__construct", NULL, 418, &mainHandler); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&lazyHandler, &mainHandler); @@ -1728,11 +1728,11 @@ PHP_METHOD(Phalcon_Mvc_Micro, offsetUnset) { if (Z_TYPE_P(&container) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&container); object_init_ex(&container, phalcon_di_factorydefault_ce); - ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 425); + ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 414); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("container"), &container); } - ZEPHIR_CALL_METHOD(NULL, &container, "remove", NULL, 430, alias); + ZEPHIR_CALL_METHOD(NULL, &container, "remove", NULL, 419, alias); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -2086,7 +2086,7 @@ PHP_METHOD(Phalcon_Mvc_Micro, setService) { if (Z_TYPE_P(&container) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&container); object_init_ex(&container, phalcon_di_factorydefault_ce); - ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 425); + ZEPHIR_CALL_METHOD(NULL, &container, "__construct", NULL, 414); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("container"), &container); } @@ -2095,7 +2095,7 @@ PHP_METHOD(Phalcon_Mvc_Micro, setService) { } else { ZVAL_BOOL(&_0, 0); } - ZEPHIR_RETURN_CALL_METHOD(&container, "set", NULL, 431, &serviceName, definition, &_0); + ZEPHIR_RETURN_CALL_METHOD(&container, "set", NULL, 420, &serviceName, definition, &_0); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/mvc/model.zep.c b/ext/phalcon/mvc/model.zep.c index 31e52d78b9b..3a31be23514 100644 --- a/ext/phalcon/mvc/model.zep.c +++ b/ext/phalcon/mvc/model.zep.c @@ -253,7 +253,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __call) { zephir_get_arrval(&arguments, arguments_param); - ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 432, &method, &arguments); + ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 421, &method, &arguments); zephir_check_call_status(); if (Z_TYPE_P(&records) != IS_NULL) { RETURN_CCTOR(&records); @@ -308,7 +308,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __callStatic) { zephir_get_arrval(&arguments, arguments_param); - ZEPHIR_RETURN_CALL_SELF("_invokefinder", &_0, 432, &method, &arguments); + ZEPHIR_RETURN_CALL_SELF("_invokefinder", &_0, 421, &method, &arguments); zephir_check_call_status(); RETURN_MM(); @@ -602,13 +602,13 @@ PHP_METHOD(Phalcon_Mvc_Model, __set) { } } - ZEPHIR_CALL_METHOD(&_13, this_ptr, "_possiblesetter", NULL, 433, &property, value); + ZEPHIR_CALL_METHOD(&_13, this_ptr, "_possiblesetter", NULL, 422, &property, value); zephir_check_call_status(); if (zephir_is_true(&_13)) { RETVAL_ZVAL(value, 1, 0); RETURN_MM(); } - ZEPHIR_CALL_FUNCTION(&_14, "property_exists", NULL, 434, this_ptr, &property); + ZEPHIR_CALL_FUNCTION(&_14, "property_exists", NULL, 423, this_ptr, &property); zephir_check_call_status(); if (zephir_is_true(&_14)) { ZEPHIR_CALL_METHOD(&manager, this_ptr, "getmodelsmanager", NULL, 0); @@ -891,7 +891,7 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { _7$$12 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_7$$12) { - ZEPHIR_CALL_SELF(&_8$$13, "caseinsensitivecolumnmap", &_9, 435, &columnMap, &attribute); + ZEPHIR_CALL_SELF(&_8$$13, "caseinsensitivecolumnmap", &_9, 424, &columnMap, &attribute); zephir_check_call_status(); ZEPHIR_CPY_WRT(&attribute, &_8$$13); } @@ -923,7 +923,7 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { } _13$$18 = zephir_is_true(&disableAssignSetters); if (!(_13$$18)) { - ZEPHIR_CALL_METHOD(&_14$$18, this_ptr, "_possiblesetter", &_15, 433, &attributeField, &value); + ZEPHIR_CALL_METHOD(&_14$$18, this_ptr, "_possiblesetter", &_15, 422, &attributeField, &value); zephir_check_call_status(); _13$$18 = !zephir_is_true(&_14$$18); } @@ -948,7 +948,7 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { _16$$22 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_16$$22) { - ZEPHIR_CALL_SELF(&_17$$23, "caseinsensitivecolumnmap", &_9, 435, &columnMap, &attribute); + ZEPHIR_CALL_SELF(&_17$$23, "caseinsensitivecolumnmap", &_9, 424, &columnMap, &attribute); zephir_check_call_status(); ZEPHIR_CPY_WRT(&attribute, &_17$$23); } @@ -980,7 +980,7 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { } _20$$28 = zephir_is_true(&disableAssignSetters); if (!(_20$$28)) { - ZEPHIR_CALL_METHOD(&_21$$28, this_ptr, "_possiblesetter", &_15, 433, &attributeField, &value); + ZEPHIR_CALL_METHOD(&_21$$28, this_ptr, "_possiblesetter", &_15, 422, &attributeField, &value); zephir_check_call_status(); _20$$28 = !zephir_is_true(&_21$$28); } @@ -1486,7 +1486,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { _4$$7 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_4$$7) { - ZEPHIR_CALL_SELF(&_5$$8, "caseinsensitivecolumnmap", &_6, 435, columnMap, &key); + ZEPHIR_CALL_SELF(&_5$$8, "caseinsensitivecolumnmap", &_6, 424, columnMap, &key); zephir_check_call_status(); ZEPHIR_CPY_WRT(&key, &_5$$8); } @@ -1538,7 +1538,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { _10$$16 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_10$$16) { - ZEPHIR_CALL_SELF(&_11$$17, "caseinsensitivecolumnmap", &_6, 435, columnMap, &key); + ZEPHIR_CALL_SELF(&_11$$17, "caseinsensitivecolumnmap", &_6, 424, columnMap, &key); zephir_check_call_status(); ZEPHIR_CPY_WRT(&key, &_11$$17); } @@ -1574,7 +1574,7 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { ZEPHIR_INIT_NVAR(&value); ZEPHIR_INIT_NVAR(&key); if (hydrationMode != 1) { - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_helper_arr_ce, "arraytoobject", &_14, 436, &hydrateArray); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_helper_arr_ce, "arraytoobject", &_14, 425, &hydrateArray); zephir_check_call_status(); RETURN_MM(); } @@ -1685,7 +1685,7 @@ PHP_METHOD(Phalcon_Mvc_Model, create) { ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "getreadconnection", NULL, 437); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "getreadconnection", NULL, 426); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_0, this_ptr, "_exists", NULL, 0, &metaData, &_1); zephir_check_call_status(); @@ -1784,7 +1784,7 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&writeConnection, this_ptr, "getwriteconnection", NULL, 438); + ZEPHIR_CALL_METHOD(&writeConnection, this_ptr, "getwriteconnection", NULL, 427); zephir_check_call_status(); ZEPHIR_INIT_ZVAL_NREF(_0); ZVAL_LONG(&_0, 3); @@ -1793,7 +1793,7 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { array_init(&_1); zephir_update_property_zval(this_ptr, SL("errorMessages"), &_1); if (ZEPHIR_GLOBAL(orm).virtual_foreign_keys) { - ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "_checkforeignkeysreverserestrict", NULL, 439); + ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "_checkforeignkeysreverserestrict", NULL, 428); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_2$$3)) { RETURN_MM_BOOL(0); @@ -1955,9 +1955,9 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { RETURN_MM_BOOL(1); } } - ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 440); + ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 429); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 441); + ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 430); zephir_check_call_status(); if (zephir_is_true(&schema)) { ZEPHIR_INIT_VAR(&table); @@ -1972,7 +1972,7 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CALL_METHOD(&success, &writeConnection, "delete", NULL, 0, &table, &_27, &values, &bindTypes); zephir_check_call_status(); if (ZEPHIR_GLOBAL(orm).virtual_foreign_keys) { - ZEPHIR_CALL_METHOD(&_28$$25, this_ptr, "_checkforeignkeysreversecascade", NULL, 442); + ZEPHIR_CALL_METHOD(&_28$$25, this_ptr, "_checkforeignkeysreversecascade", NULL, 431); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_28$$25)) { RETURN_MM_BOOL(0); @@ -2210,7 +2210,7 @@ PHP_METHOD(Phalcon_Mvc_Model, find) { } else { ZEPHIR_CPY_WRT(¶ms, parameters); } - ZEPHIR_CALL_STATIC(&query, "getpreparedquery", &_0, 443, ¶ms); + ZEPHIR_CALL_STATIC(&query, "getpreparedquery", &_0, 432, ¶ms); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&resultset, &query, "execute", NULL, 0); zephir_check_call_status(); @@ -2337,7 +2337,7 @@ PHP_METHOD(Phalcon_Mvc_Model, findFirst) { return; } ZVAL_LONG(&_3, 1); - ZEPHIR_CALL_STATIC(&query, "getpreparedquery", &_2, 443, ¶ms, &_3); + ZEPHIR_CALL_STATIC(&query, "getpreparedquery", &_2, 432, ¶ms, &_3); zephir_check_call_status(); ZVAL_BOOL(&_3, 1); ZEPHIR_CALL_METHOD(NULL, &query, "setuniquerow", NULL, 0, &_3); @@ -3480,12 +3480,12 @@ PHP_METHOD(Phalcon_Mvc_Model, query) { ZEPHIR_CALL_METHOD(NULL, &criteria, "__construct", NULL, 0); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, &criteria, "setdi", NULL, 444, container); + ZEPHIR_CALL_METHOD(NULL, &criteria, "setdi", NULL, 433, container); zephir_check_call_status(); } ZEPHIR_INIT_VAR(&_3); zephir_get_called_class(&_3 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &criteria, "setmodelname", NULL, 445, &_3); + ZEPHIR_CALL_METHOD(NULL, &criteria, "setmodelname", NULL, 434, &_3); zephir_check_call_status(); RETURN_CCTOR(&criteria); @@ -3580,13 +3580,13 @@ PHP_METHOD(Phalcon_Mvc_Model, refresh) { } ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&readConnection, this_ptr, "getreadconnection", NULL, 437); + ZEPHIR_CALL_METHOD(&readConnection, this_ptr, "getreadconnection", NULL, 426); zephir_check_call_status(); zephir_read_property(&_1, this_ptr, SL("modelsManager"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&manager, &_1); - ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 440); + ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 429); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 441); + ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 430); zephir_check_call_status(); if (zephir_is_true(&schema)) { ZEPHIR_INIT_VAR(&table); @@ -3745,7 +3745,7 @@ PHP_METHOD(Phalcon_Mvc_Model, save) { ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&writeConnection, this_ptr, "getwriteconnection", NULL, 438); + ZEPHIR_CALL_METHOD(&writeConnection, this_ptr, "getwriteconnection", NULL, 427); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "prepareSave"); @@ -3761,9 +3761,9 @@ PHP_METHOD(Phalcon_Mvc_Model, save) { RETURN_MM_BOOL(0); } } - ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 440); + ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 429); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 441); + ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 430); zephir_check_call_status(); if (zephir_is_true(&schema)) { ZEPHIR_INIT_VAR(&table); @@ -3773,7 +3773,7 @@ PHP_METHOD(Phalcon_Mvc_Model, save) { } else { ZEPHIR_CPY_WRT(&table, &source); } - ZEPHIR_CALL_METHOD(&readConnection, this_ptr, "getreadconnection", NULL, 437); + ZEPHIR_CALL_METHOD(&readConnection, this_ptr, "getreadconnection", NULL, 426); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&exists, this_ptr, "_exists", NULL, 0, &metaData, &readConnection); zephir_check_call_status(); @@ -3804,7 +3804,7 @@ PHP_METHOD(Phalcon_Mvc_Model, save) { object_init_ex(&_7$$11, phalcon_mvc_model_validationfailed_ce); ZEPHIR_CALL_METHOD(&_8$$11, this_ptr, "getmessages", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_7$$11, "__construct", NULL, 446, this_ptr, &_8$$11); + ZEPHIR_CALL_METHOD(NULL, &_7$$11, "__construct", NULL, 435, this_ptr, &_8$$11); zephir_check_call_status(); zephir_throw_exception_debug(&_7$$11, "phalcon/Mvc/Model.zep", 2346 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -4375,7 +4375,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { _4$$4 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_4$$4) { - ZEPHIR_CALL_SELF(&_5$$6, "caseinsensitivecolumnmap", &_6, 435, columnMap, &key); + ZEPHIR_CALL_SELF(&_5$$6, "caseinsensitivecolumnmap", &_6, 424, columnMap, &key); zephir_check_call_status(); ZEPHIR_CPY_WRT(&key, &_5$$6); } @@ -4434,7 +4434,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { _12$$12 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_12$$12) { - ZEPHIR_CALL_SELF(&_13$$14, "caseinsensitivecolumnmap", &_6, 435, columnMap, &key); + ZEPHIR_CALL_SELF(&_13$$14, "caseinsensitivecolumnmap", &_6, 424, columnMap, &key); zephir_check_call_status(); ZEPHIR_CPY_WRT(&key, &_13$$14); } @@ -4824,7 +4824,7 @@ PHP_METHOD(Phalcon_Mvc_Model, toArray) { _3$$4 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_3$$4) { - ZEPHIR_CALL_SELF(&_4$$5, "caseinsensitivecolumnmap", &_5, 435, &columnMap, &attribute); + ZEPHIR_CALL_SELF(&_4$$5, "caseinsensitivecolumnmap", &_5, 424, &columnMap, &attribute); zephir_check_call_status(); ZEPHIR_CPY_WRT(&attribute, &_4$$5); } @@ -4875,7 +4875,7 @@ PHP_METHOD(Phalcon_Mvc_Model, toArray) { _9$$14 = ZEPHIR_GLOBAL(orm).case_insensitive_column_map; } if (_9$$14) { - ZEPHIR_CALL_SELF(&_10$$15, "caseinsensitivecolumnmap", &_5, 435, &columnMap, &attribute); + ZEPHIR_CALL_SELF(&_10$$15, "caseinsensitivecolumnmap", &_5, 424, &columnMap, &attribute); zephir_check_call_status(); ZEPHIR_CPY_WRT(&attribute, &_10$$15); } @@ -4955,7 +4955,7 @@ PHP_METHOD(Phalcon_Mvc_Model, update) { if (zephir_is_true(&_0)) { ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "getreadconnection", NULL, 437); + ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "getreadconnection", NULL, 426); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_1$$3, this_ptr, "_exists", NULL, 0, &metaData, &_2$$3); zephir_check_call_status(); @@ -6376,9 +6376,9 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_CALL_METHOD(&sequenceName, this_ptr, "getsequencename", NULL, 0); zephir_check_call_status(); } else { - ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 441); + ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 430); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 440); + ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 429); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&sequenceName); if (ZEPHIR_IS_EMPTY(&schema)) { @@ -7148,9 +7148,9 @@ PHP_METHOD(Phalcon_Mvc_Model, _exists) { zephir_read_property(&_22$$27, this_ptr, SL("uniqueTypes"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&uniqueTypes, &_22$$27); } - ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 440); + ZEPHIR_CALL_METHOD(&schema, this_ptr, "getschema", NULL, 429); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 441); + ZEPHIR_CALL_METHOD(&source, this_ptr, "getsource", NULL, 430); zephir_check_call_status(); if (zephir_is_true(&schema)) { ZEPHIR_INIT_VAR(&table); @@ -7670,7 +7670,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSave) { } } if (ZEPHIR_GLOBAL(orm).virtual_foreign_keys) { - ZEPHIR_CALL_METHOD(&_3$$8, this_ptr, "_checkforeignkeysrestrict", NULL, 447); + ZEPHIR_CALL_METHOD(&_3$$8, this_ptr, "_checkforeignkeysrestrict", NULL, 436); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_3$$8)) { RETURN_MM_BOOL(0); diff --git a/ext/phalcon/mvc/model/behavior/timestampable.zep.c b/ext/phalcon/mvc/model/behavior/timestampable.zep.c index 7f4d7c9d90a..0a31e483615 100644 --- a/ext/phalcon/mvc/model/behavior/timestampable.zep.c +++ b/ext/phalcon/mvc/model/behavior/timestampable.zep.c @@ -96,7 +96,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Behavior_Timestampable, notify) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The option 'field' is required", "phalcon/Mvc/Model/Behavior/Timestampable.zep", 50); return; } - ZEPHIR_CALL_METHOD(×tamp, this_ptr, "gettimestamp", NULL, 448, &options); + ZEPHIR_CALL_METHOD(×tamp, this_ptr, "gettimestamp", NULL, 437, &options); zephir_check_call_status(); if (UNEXPECTED(Z_TYPE_P(&field) == IS_ARRAY)) { zephir_is_iterable(&field, 0, "phalcon/Mvc/Model/Behavior/Timestampable.zep", 63); @@ -155,7 +155,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Behavior_Timestampable, getTimestamp) { ZEPHIR_OBS_VAR(&format); if (zephir_array_isset_string_fetch(&format, &options, SL("format"), 0)) { - ZEPHIR_RETURN_CALL_FUNCTION("date", NULL, 422, &format); + ZEPHIR_RETURN_CALL_FUNCTION("date", NULL, 411, &format); zephir_check_call_status(); RETURN_MM(); } diff --git a/ext/phalcon/mvc/model/binder.zep.c b/ext/phalcon/mvc/model/binder.zep.c index 9991583e63f..35df702da5c 100644 --- a/ext/phalcon/mvc/model/binder.zep.c +++ b/ext/phalcon/mvc/model/binder.zep.c @@ -396,7 +396,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Binder, getParamsFromReflection) { ZEPHIR_INIT_VAR(&reflection); if (!ZEPHIR_IS_STRING(&methodName, "")) { object_init_ex(&reflection, zephir_get_internal_ce(SL("reflectionmethod"))); - ZEPHIR_CALL_METHOD(NULL, &reflection, "__construct", NULL, 449, handler, &methodName); + ZEPHIR_CALL_METHOD(NULL, &reflection, "__construct", NULL, 438, handler, &methodName); zephir_check_call_status(); } else { object_init_ex(&reflection, zephir_get_internal_ce(SL("reflectionfunction"))); @@ -438,7 +438,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Binder, getParamsFromReflection) { zephir_array_fetch(¶mValue, ¶ms, ¶mKey, PH_NOISY, "phalcon/Mvc/Model/Binder.zep", 171 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_6$$5); ZVAL_STRING(&_6$$5, "Phalcon\\Mvc\\Model"); - ZEPHIR_CALL_FUNCTION(&_7$$5, "is_subclass_of", &_8, 450, &className, &_6$$5); + ZEPHIR_CALL_FUNCTION(&_7$$5, "is_subclass_of", &_8, 439, &className, &_6$$5); zephir_check_call_status(); if (ZEPHIR_IS_STRING(&className, "Phalcon\\Mvc\\Model")) { if (Z_TYPE_P(&realClasses) == IS_NULL) { @@ -520,7 +520,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Binder, getParamsFromReflection) { zephir_array_fetch(¶mValue, ¶ms, ¶mKey, PH_NOISY, "phalcon/Mvc/Model/Binder.zep", 171 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_15$$19); ZVAL_STRING(&_15$$19, "Phalcon\\Mvc\\Model"); - ZEPHIR_CALL_FUNCTION(&_16$$19, "is_subclass_of", &_8, 450, &className, &_15$$19); + ZEPHIR_CALL_FUNCTION(&_16$$19, "is_subclass_of", &_8, 439, &className, &_15$$19); zephir_check_call_status(); if (ZEPHIR_IS_STRING(&className, "Phalcon\\Mvc\\Model")) { if (Z_TYPE_P(&realClasses) == IS_NULL) { diff --git a/ext/phalcon/mvc/model/criteria.zep.c b/ext/phalcon/mvc/model/criteria.zep.c index 3760284cde3..67b7f88a855 100644 --- a/ext/phalcon/mvc/model/criteria.zep.c +++ b/ext/phalcon/mvc/model/criteria.zep.c @@ -1776,12 +1776,12 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { ZEPHIR_INIT_VAR(&_19$$16); ZEPHIR_CONCAT_SVS(&_19$$16, " ", &operator, " "); zephir_fast_join(&_18$$16, &_19$$16, &conditions TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &criteria, "where", NULL, 451, &_18$$16); + ZEPHIR_CALL_METHOD(NULL, &criteria, "where", NULL, 440, &_18$$16); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &criteria, "bind", NULL, 452, &bind); + ZEPHIR_CALL_METHOD(NULL, &criteria, "bind", NULL, 441, &bind); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, &criteria, "setmodelname", NULL, 445, &modelName); + ZEPHIR_CALL_METHOD(NULL, &criteria, "setmodelname", NULL, 434, &modelName); zephir_check_call_status(); RETURN_CCTOR(&criteria); diff --git a/ext/phalcon/mvc/model/manager.zep.c b/ext/phalcon/mvc/model/manager.zep.c index c6ab8764fa9..caf1989f100 100644 --- a/ext/phalcon/mvc/model/manager.zep.c +++ b/ext/phalcon/mvc/model/manager.zep.c @@ -1413,7 +1413,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasOne) { ZEPHIR_INIT_VAR(&relation); object_init_ex(&relation, phalcon_mvc_model_relation_ce); ZVAL_LONG(&_2, 1); - ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 453, &_2, &referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 442, &_2, &referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(&alias); if (zephir_array_isset_string_fetch(&alias, options, SL("alias"), 0)) { @@ -1516,7 +1516,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, addBelongsTo) { ZEPHIR_INIT_VAR(&relation); object_init_ex(&relation, phalcon_mvc_model_relation_ce); ZVAL_LONG(&_2, 0); - ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 453, &_2, &referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 442, &_2, &referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(&alias); if (zephir_array_isset_string_fetch(&alias, options, SL("alias"), 0)) { @@ -1621,7 +1621,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasMany) { ZEPHIR_INIT_VAR(&relation); object_init_ex(&relation, phalcon_mvc_model_relation_ce); ZVAL_LONG(&_1, 2); - ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 453, &_1, &referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 442, &_1, &referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(&alias); if (zephir_array_isset_string_fetch(&alias, options, SL("alias"), 0)) { @@ -1751,9 +1751,9 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasManyToMany) { ZEPHIR_INIT_VAR(&relation); object_init_ex(&relation, phalcon_mvc_model_relation_ce); ZVAL_LONG(&_1, 4); - ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 453, &_1, &referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 442, &_1, &referencedModel, fields, referencedFields, options); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &relation, "setintermediaterelation", NULL, 454, intermediateFields, &intermediateModel, intermediateReferencedFields); + ZEPHIR_CALL_METHOD(NULL, &relation, "setintermediaterelation", NULL, 443, intermediateFields, &intermediateModel, intermediateReferencedFields); zephir_check_call_status(); ZEPHIR_OBS_VAR(&alias); if (zephir_array_isset_string_fetch(&alias, options, SL("alias"), 0)) { @@ -2435,7 +2435,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { ZEPHIR_INIT_VAR(&_4$$3); ZEPHIR_CONCAT_SVSVSVSVS(&_4$$3, "[", &intermediateModel, "].[", &intermediateFields, "] = [", &referencedModel, "].[", &_3$$3, "]"); zephir_array_append(&joinConditions, &_4$$3, PH_SEPARATE, "phalcon/Mvc/Model/Manager.zep", 1299); - ZEPHIR_CALL_METHOD(&_5$$3, this_ptr, "_mergefindparameters", NULL, 455, &extraParameters, parameters); + ZEPHIR_CALL_METHOD(&_5$$3, this_ptr, "_mergefindparameters", NULL, 444, &extraParameters, parameters); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&builder, this_ptr, "createbuilder", NULL, 0, &_5$$3); zephir_check_call_status(); @@ -2548,10 +2548,10 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { ZEPHIR_CALL_METHOD(&_30, record, "getdi", NULL, 0); zephir_check_call_status(); zephir_array_update_string(&findParams, SL("di"), &_30, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&findArguments, this_ptr, "_mergefindparameters", NULL, 455, &findParams, parameters); + ZEPHIR_CALL_METHOD(&findArguments, this_ptr, "_mergefindparameters", NULL, 444, &findParams, parameters); zephir_check_call_status(); if (Z_TYPE_P(&extraParameters) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&findParams, this_ptr, "_mergefindparameters", NULL, 455, &extraParameters, &findArguments); + ZEPHIR_CALL_METHOD(&findParams, this_ptr, "_mergefindparameters", NULL, 444, &extraParameters, &findArguments); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&findParams, &findArguments); diff --git a/ext/phalcon/mvc/model/metadata/stream.zep.c b/ext/phalcon/mvc/model/metadata/stream.zep.c index 80307773a3b..4edfaede667 100644 --- a/ext/phalcon/mvc/model/metadata/stream.zep.c +++ b/ext/phalcon/mvc/model/metadata/stream.zep.c @@ -195,7 +195,7 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Stream, write) { ZEPHIR_CONCAT_SVS(&_5$$3, "create_object = zephir_init_properties_Phalcon_Mvc_Router_Group; + zend_class_implements(phalcon_mvc_router_group_ce TSRMLS_CC, 1, phalcon_mvc_router_groupinterface_ce); return SUCCESS; @@ -872,9 +874,33 @@ PHP_METHOD(Phalcon_Mvc_Router_Group, addRoute) { ZEPHIR_CALL_METHOD(NULL, &route, "__construct", NULL, 105, &_2, &mergedPaths, httpMethods); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("routes"), &route); - ZEPHIR_CALL_METHOD(NULL, &route, "setgroup", NULL, 496, this_ptr); + ZEPHIR_CALL_METHOD(NULL, &route, "setgroup", NULL, 486, this_ptr); zephir_check_call_status(); RETURN_CCTOR(&route); } +zend_object *zephir_init_properties_Phalcon_Mvc_Router_Group(zend_class_entry *class_type TSRMLS_DC) { + + zval _0, _1$$3; + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; + ZVAL_UNDEF(&_0); + ZVAL_UNDEF(&_1$$3); + + ZEPHIR_MM_GROW(); + + { + zval local_this_ptr, *this_ptr = &local_this_ptr; + ZEPHIR_CREATE_OBJECT(this_ptr, class_type); + zephir_read_property(&_0, this_ptr, SL("routes"), PH_NOISY_CC | PH_READONLY); + if (Z_TYPE_P(&_0) == IS_NULL) { + ZEPHIR_INIT_VAR(&_1$$3); + array_init(&_1$$3); + zephir_update_property_zval(this_ptr, SL("routes"), &_1$$3); + } + ZEPHIR_MM_RESTORE(); + return Z_OBJ_P(this_ptr); + } + +} + diff --git a/ext/phalcon/mvc/router/group.zep.h b/ext/phalcon/mvc/router/group.zep.h index b4db58e0503..669a3b4de98 100644 --- a/ext/phalcon/mvc/router/group.zep.h +++ b/ext/phalcon/mvc/router/group.zep.h @@ -26,6 +26,7 @@ PHP_METHOD(Phalcon_Mvc_Router_Group, setHostname); PHP_METHOD(Phalcon_Mvc_Router_Group, setPaths); PHP_METHOD(Phalcon_Mvc_Router_Group, setPrefix); PHP_METHOD(Phalcon_Mvc_Router_Group, addRoute); +zend_object *zephir_init_properties_Phalcon_Mvc_Router_Group(zend_class_entry *class_type TSRMLS_DC); ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_router_group___construct, 0, 0, 0) ZEND_ARG_INFO(0, paths) diff --git a/ext/phalcon/mvc/view.zep.c b/ext/phalcon/mvc/view.zep.c index c63df9f3e9b..56356e301d0 100644 --- a/ext/phalcon/mvc/view.zep.c +++ b/ext/phalcon/mvc/view.zep.c @@ -801,11 +801,11 @@ PHP_METHOD(Phalcon_Mvc_View, getPartial) { } - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 393); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 382); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "partial", NULL, 0, &partialPath, params); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", NULL, 400); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", NULL, 389); zephir_check_call_status(); RETURN_MM(); @@ -1777,7 +1777,7 @@ PHP_METHOD(Phalcon_Mvc_View, start) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 393); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 382); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("content"), &__$null); RETURN_THIS(); @@ -1937,7 +1937,7 @@ PHP_METHOD(Phalcon_Mvc_View, engineRender) { { ZEPHIR_INIT_NVAR(&viewsDir); ZVAL_COPY(&viewsDir, _2); - ZEPHIR_CALL_METHOD(&_4$$3, this_ptr, "isabsolutepath", &_5, 497, &viewPath); + ZEPHIR_CALL_METHOD(&_4$$3, this_ptr, "isabsolutepath", &_5, 487, &viewPath); zephir_check_call_status(); if (!(zephir_is_true(&_4$$3))) { ZEPHIR_INIT_NVAR(&viewsDirPath); @@ -2055,7 +2055,7 @@ PHP_METHOD(Phalcon_Mvc_View, engineRender) { } ZEPHIR_CALL_METHOD(&viewsDir, &_1, "current", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_24$$16, this_ptr, "isabsolutepath", &_5, 497, &viewPath); + ZEPHIR_CALL_METHOD(&_24$$16, this_ptr, "isabsolutepath", &_5, 487, &viewPath); zephir_check_call_status(); if (!(zephir_is_true(&_24$$16))) { ZEPHIR_INIT_NVAR(&viewsDirPath); @@ -2288,7 +2288,7 @@ PHP_METHOD(Phalcon_Mvc_View, loadTemplateEngines) { if (ZEPHIR_IS_EMPTY(®isteredEngines)) { ZEPHIR_INIT_VAR(&_2$$4); object_init_ex(&_2$$4, phalcon_mvc_view_engine_php_ce); - ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 498, this_ptr, &di); + ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 488, this_ptr, &di); zephir_check_call_status(); zephir_array_update_string(&engines, SL(".phtml"), &_2$$4, PH_COPY | PH_SEPARATE); } else { @@ -2505,7 +2505,7 @@ PHP_METHOD(Phalcon_Mvc_View, processRender) { zephir_update_property_zval(this_ptr, SL("currentRenderLevel"), &_0); zephir_read_property(&_0, this_ptr, SL("disabled"), PH_NOISY_CC | PH_READONLY); if (!ZEPHIR_IS_FALSE_IDENTICAL(&_0)) { - ZEPHIR_CALL_FUNCTION(&_1$$3, "ob_get_contents", NULL, 499); + ZEPHIR_CALL_FUNCTION(&_1$$3, "ob_get_contents", NULL, 489); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("content"), &_1$$3); RETURN_MM_BOOL(0); @@ -2563,7 +2563,7 @@ PHP_METHOD(Phalcon_Mvc_View, processRender) { RETURN_MM_BOOL(0); } } - ZEPHIR_CALL_FUNCTION(&_8, "ob_get_contents", NULL, 499); + ZEPHIR_CALL_FUNCTION(&_8, "ob_get_contents", NULL, 489); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("content"), &_8); silence = 1; diff --git a/ext/phalcon/mvc/view/engine/php.zep.c b/ext/phalcon/mvc/view/engine/php.zep.c index 76970a13f12..de499f10296 100644 --- a/ext/phalcon/mvc/view/engine/php.zep.c +++ b/ext/phalcon/mvc/view/engine/php.zep.c @@ -85,7 +85,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render) { if (mustClean) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 500); + ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 490); zephir_check_call_status(); } if (Z_TYPE_P(params) == IS_ARRAY) { @@ -135,7 +135,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render) { } if (mustClean) { zephir_read_property(&_6$$7, this_ptr, SL("view"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_7$$7, "ob_get_contents", NULL, 499); + ZEPHIR_CALL_FUNCTION(&_7$$7, "ob_get_contents", NULL, 489); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_6$$7, "setcontent", NULL, 0, &_7$$7); zephir_check_call_status(); diff --git a/ext/phalcon/mvc/view/engine/volt.zep.c b/ext/phalcon/mvc/view/engine/volt.zep.c index c9f12bdfd14..a3084df2451 100644 --- a/ext/phalcon/mvc/view/engine/volt.zep.c +++ b/ext/phalcon/mvc/view/engine/volt.zep.c @@ -155,7 +155,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, convertEncoding) { _0 = ZEPHIR_IS_STRING(&to, "utf8"); } if (_0) { - ZEPHIR_RETURN_CALL_FUNCTION("utf8_encode", NULL, 501, &text); + ZEPHIR_RETURN_CALL_FUNCTION("utf8_encode", NULL, 491, &text); zephir_check_call_status(); RETURN_MM(); } @@ -174,7 +174,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, convertEncoding) { RETURN_MM(); } if ((zephir_function_exists_ex(SL("iconv") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("iconv", NULL, 278, &from, &to, &text); + ZEPHIR_RETURN_CALL_FUNCTION("iconv", NULL, 492, &from, &to, &text); zephir_check_call_status(); RETURN_MM(); } @@ -208,18 +208,18 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, getCompiler) { ZEPHIR_INIT_NVAR(&compiler); object_init_ex(&compiler, phalcon_mvc_view_engine_volt_compiler_ce); zephir_read_property(&_1$$3, this_ptr, SL("view"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(NULL, &compiler, "__construct", NULL, 502, &_1$$3); + ZEPHIR_CALL_METHOD(NULL, &compiler, "__construct", NULL, 493, &_1$$3); zephir_check_call_status(); zephir_read_property(&_2$$3, this_ptr, SL("container"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&container, &_2$$3); if (Z_TYPE_P(&container) == IS_OBJECT) { - ZEPHIR_CALL_METHOD(NULL, &compiler, "setdi", NULL, 503, &container); + ZEPHIR_CALL_METHOD(NULL, &compiler, "setdi", NULL, 494, &container); zephir_check_call_status(); } zephir_read_property(&_2$$3, this_ptr, SL("options"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&options, &_2$$3); if (Z_TYPE_P(&options) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, &compiler, "setoptions", NULL, 504, &options); + ZEPHIR_CALL_METHOD(NULL, &compiler, "setoptions", NULL, 495, &options); zephir_check_call_status(); } zephir_update_property_zval(this_ptr, SL("compiler"), &compiler); @@ -304,7 +304,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, length) { RETURN_MM_LONG(zephir_fast_count_int(item TSRMLS_CC)); } if ((zephir_function_exists_ex(SL("mb_strlen") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strlen", NULL, 286, item); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strlen", NULL, 275, item); zephir_check_call_status(); RETURN_MM(); } @@ -365,7 +365,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, render) { if (mustClean) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 500); + ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 490); zephir_check_call_status(); } ZEPHIR_CALL_METHOD(&compiler, this_ptr, "getcompiler", NULL, 0); @@ -441,7 +441,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, render) { } if (mustClean) { zephir_read_property(&_11$$11, this_ptr, SL("view"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_12$$11, "ob_get_contents", NULL, 499); + ZEPHIR_CALL_FUNCTION(&_12$$11, "ob_get_contents", NULL, 489); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_11$$11, "setcontent", NULL, 0, &_12$$11); zephir_check_call_status(); @@ -601,7 +601,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, sort) { ZEPHIR_MAKE_REF(&value); - ZEPHIR_CALL_FUNCTION(NULL, "asort", NULL, 505, &value); + ZEPHIR_CALL_FUNCTION(NULL, "asort", NULL, 496, &value); ZEPHIR_UNREF(&value); zephir_check_call_status(); RETURN_CTOR(&value); diff --git a/ext/phalcon/mvc/view/engine/volt/compiler.zep.c b/ext/phalcon/mvc/view/engine/volt/compiler.zep.c index c19ca394af9..6e5d9e2aac8 100644 --- a/ext/phalcon/mvc/view/engine/volt/compiler.zep.c +++ b/ext/phalcon/mvc/view/engine/volt/compiler.zep.c @@ -293,7 +293,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, attributeReader) { } } } else { - ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", NULL, 506, &left); + ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", NULL, 497, &left); zephir_check_call_status(); ZEPHIR_OBS_VAR(&leftType); zephir_array_fetch_string(&leftType, &left, SL("type"), PH_NOISY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 137 TSRMLS_CC); @@ -315,7 +315,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, attributeReader) { zephir_array_fetch_string(&_11$$11, &right, SL("value"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 151 TSRMLS_CC); zephir_concat_self(&exprCode, &_11$$11 TSRMLS_CC); } else { - ZEPHIR_CALL_METHOD(&_12$$12, this_ptr, "expression", NULL, 506, &right); + ZEPHIR_CALL_METHOD(&_12$$12, this_ptr, "expression", NULL, 497, &right); zephir_check_call_status(); zephir_concat_self(&exprCode, &_12$$12 TSRMLS_CC); } @@ -575,7 +575,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compile) { object_init_ex(&_17$$35, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_18$$35); ZEPHIR_CONCAT_SVS(&_18$$35, "Extends compilation file ", &compiledTemplatePath, " could not be opened"); - ZEPHIR_CALL_METHOD(NULL, &_17$$35, "__construct", NULL, 507, &_18$$35); + ZEPHIR_CALL_METHOD(NULL, &_17$$35, "__construct", NULL, 498, &_18$$35); zephir_check_call_status(); zephir_throw_exception_debug(&_17$$35, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 366 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -637,7 +637,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileAutoEscape) { } else { ZVAL_BOOL(&_1, 0); } - ZEPHIR_CALL_METHOD(&compilation, this_ptr, "statementlist", NULL, 508, &_0, &_1); + ZEPHIR_CALL_METHOD(&compilation, this_ptr, "statementlist", NULL, 499, &_0, &_1); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("autoescape"), &oldAutoescape); RETURN_CCTOR(&compilation); @@ -702,15 +702,15 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileCache) { object_init_ex(&_0$$3, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "Corrupt statement"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 507, &_1$$3, &statement); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 498, &_1$$3, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$3, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 429 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 506, &expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 497, &expr); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 506, &expr); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 497, &expr); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_3); ZEPHIR_CONCAT_SVS(&_3, "di->get('viewCache'); "); @@ -746,7 +746,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileCache) { } else { ZVAL_BOOL(&_14, 0); } - ZEPHIR_CALL_METHOD(&_12, this_ptr, "statementlist", NULL, 508, &_13, &_14); + ZEPHIR_CALL_METHOD(&_12, this_ptr, "statementlist", NULL, 499, &_13, &_14); zephir_check_call_status(); zephir_concat_self(&compilation, &_12 TSRMLS_CC); ZEPHIR_OBS_NVAR(&lifetime); @@ -836,13 +836,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileCase) { object_init_ex(&_0$$4, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_1$$4); ZVAL_STRING(&_1$$4, "Corrupt statement"); - ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 507, &_1$$4, &statement); + ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 498, &_1$$4, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$4, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 505 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 506, &expr); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 497, &expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -875,7 +875,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileDo) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 525); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 506, &expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 497, &expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -916,13 +916,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileEcho) { object_init_ex(&_0$$3, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "Corrupt statement"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 507, &_1$$3, &statement); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 498, &_1$$3, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$3, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 545 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 506, &expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 497, &expr); zephir_check_call_status(); zephir_array_fetch_string(&_2, &expr, SL("type"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 553 TSRMLS_CC); if (ZEPHIR_IS_LONG(&_2, 350)) { @@ -974,13 +974,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileElseIf) { object_init_ex(&_0$$3, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "Corrupt statement"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 507, &_1$$3, &statement); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 498, &_1$$3, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$3, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 588 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 506, &expr); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 497, &expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -1059,7 +1059,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { object_init_ex(&_0$$4, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_1$$4); ZEPHIR_CONCAT_SVS(&_1$$4, "Template file ", &path, " does not exist"); - ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 507, &_1$$4); + ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 498, &_1$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$4, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 623 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -1072,7 +1072,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileFile) { object_init_ex(&_2$$5, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_3$$5); ZEPHIR_CONCAT_SVS(&_3$$5, "Template file ", &path, " could not be opened"); - ZEPHIR_CALL_METHOD(NULL, &_2$$5, "__construct", NULL, 507, &_3$$5); + ZEPHIR_CALL_METHOD(NULL, &_2$$5, "__construct", NULL, 498, &_3$$5); zephir_check_call_status(); zephir_throw_exception_debug(&_2$$5, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 635 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -1186,7 +1186,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { ZEPHIR_CONCAT_VV(&prefixLevel, &prefix, &level); ZEPHIR_OBS_VAR(&expr); zephir_array_fetch_string(&expr, &statement, SL("expr"), PH_NOISY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 696 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 506, &expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 497, &expr); zephir_check_call_status(); ZEPHIR_OBS_VAR(&blockStatements); zephir_array_fetch_string(&blockStatements, &statement, SL("block_statements"), PH_NOISY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 703 TSRMLS_CC); @@ -1246,7 +1246,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { } else { ZVAL_BOOL(&_4, 0); } - ZEPHIR_CALL_METHOD(&code, this_ptr, "statementlist", NULL, 508, &blockStatements, &_4); + ZEPHIR_CALL_METHOD(&code, this_ptr, "statementlist", NULL, 499, &blockStatements, &_4); zephir_check_call_status(); ZEPHIR_OBS_VAR(&loopContext); zephir_read_property(&loopContext, this_ptr, SL("loopPointers"), PH_NOISY_CC); @@ -1297,7 +1297,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { } ZEPHIR_OBS_VAR(&ifExpr); if (zephir_array_isset_string_fetch(&ifExpr, &statement, SL("if_expr"), 0)) { - ZEPHIR_CALL_METHOD(&_16$$15, this_ptr, "expression", NULL, 506, &ifExpr); + ZEPHIR_CALL_METHOD(&_16$$15, this_ptr, "expression", NULL, 497, &ifExpr); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_17$$15); ZEPHIR_CONCAT_SVS(&_17$$15, "if (", &_16$$15, ") { ?>"); @@ -1424,13 +1424,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileIf) { object_init_ex(&_0$$3, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "Corrupt statement"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 507, &_1$$3, &statement); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 498, &_1$$3, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$3, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 850 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 506, &expr); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 497, &expr); zephir_check_call_status(); zephir_array_fetch_string(&_4, &statement, SL("true_statements"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 856 TSRMLS_CC); if (extendsMode) { @@ -1438,7 +1438,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileIf) { } else { ZVAL_BOOL(&_5, 0); } - ZEPHIR_CALL_METHOD(&_3, this_ptr, "statementlist", NULL, 508, &_4, &_5); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "statementlist", NULL, 499, &_4, &_5); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_6); ZEPHIR_CONCAT_SVSV(&_6, "", &_3); @@ -1450,7 +1450,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileIf) { } else { ZVAL_BOOL(&_8$$4, 0); } - ZEPHIR_CALL_METHOD(&_7$$4, this_ptr, "statementlist", NULL, 508, &blockStatements, &_8$$4); + ZEPHIR_CALL_METHOD(&_7$$4, this_ptr, "statementlist", NULL, 499, &blockStatements, &_8$$4); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_9$$4); ZEPHIR_CONCAT_SV(&_9$$4, "", &_7$$4); @@ -1518,14 +1518,14 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileInclude) { RETURN_CCTOR(&compilation); } } - ZEPHIR_CALL_METHOD(&path, this_ptr, "expression", NULL, 506, &pathExpr); + ZEPHIR_CALL_METHOD(&path, this_ptr, "expression", NULL, 497, &pathExpr); zephir_check_call_status(); ZEPHIR_OBS_VAR(¶ms); if (!(zephir_array_isset_string_fetch(¶ms, &statement, SL("params"), 0))) { ZEPHIR_CONCAT_SVS(return_value, "partial(", &path, "); ?>"); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_3, this_ptr, "expression", NULL, 506, ¶ms); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "expression", NULL, 497, ¶ms); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "partial(", &path, ", ", &_3, "); ?>"); RETURN_MM(); @@ -1602,7 +1602,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { object_init_ex(&_1$$4, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_2$$4); ZEPHIR_CONCAT_SVS(&_2$$4, "Macro '", &name, "' is already defined"); - ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 507, &_2$$4); + ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 498, &_2$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$4, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 962 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -1653,7 +1653,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { zephir_concat_self_str(&code, " } else { ", sizeof(" } else { ")-1 TSRMLS_CC); ZEPHIR_OBS_NVAR(&defaultValue); if (EXPECTED(zephir_array_isset_string_fetch(&defaultValue, ¶meter, SL("default"), 0))) { - ZEPHIR_CALL_METHOD(&_14$$8, this_ptr, "expression", &_15, 506, &defaultValue); + ZEPHIR_CALL_METHOD(&_14$$8, this_ptr, "expression", &_15, 497, &defaultValue); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_16$$8); ZEPHIR_CONCAT_SVSVS(&_16$$8, "$", &variableName, " = ", &_14$$8, ";"); @@ -1696,7 +1696,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { zephir_concat_self_str(&code, " } else { ", sizeof(" } else { ")-1 TSRMLS_CC); ZEPHIR_OBS_NVAR(&defaultValue); if (EXPECTED(zephir_array_isset_string_fetch(&defaultValue, ¶meter, SL("default"), 0))) { - ZEPHIR_CALL_METHOD(&_22$$11, this_ptr, "expression", &_15, 506, &defaultValue); + ZEPHIR_CALL_METHOD(&_22$$11, this_ptr, "expression", &_15, 497, &defaultValue); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_23$$11); ZEPHIR_CONCAT_SVSVS(&_23$$11, "$", &variableName, " = ", &_22$$11, ";"); @@ -1722,7 +1722,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { } else { ZVAL_BOOL(&_26$$13, 0); } - ZEPHIR_CALL_METHOD(&_25$$13, this_ptr, "statementlist", NULL, 508, &blockStatements, &_26$$13); + ZEPHIR_CALL_METHOD(&_25$$13, this_ptr, "statementlist", NULL, 499, &blockStatements, &_26$$13); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_27$$13); ZEPHIR_CONCAT_VS(&_27$$13, &_25$$13, ""); RETURN_MM(); @@ -1827,10 +1827,10 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSet) { ZEPHIR_INIT_NVAR(&assignment); ZVAL_COPY(&assignment, _0); zephir_array_fetch_string(&_2$$4, &assignment, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1067 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_3, 506, &_2$$4); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_3, 497, &_2$$4); zephir_check_call_status(); zephir_array_fetch_string(&_4$$4, &assignment, SL("variable"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1074 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_3, 506, &_4$$4); + ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_3, 497, &_4$$4); zephir_check_call_status(); zephir_array_fetch_string(&_5$$4, &assignment, SL("op"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1080 TSRMLS_CC); do { @@ -1877,10 +1877,10 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSet) { ZEPHIR_CALL_METHOD(&assignment, &assignments, "current", NULL, 0); zephir_check_call_status(); zephir_array_fetch_string(&_11$$10, &assignment, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1067 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_3, 506, &_11$$10); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_3, 497, &_11$$10); zephir_check_call_status(); zephir_array_fetch_string(&_12$$10, &assignment, SL("variable"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1074 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_3, 506, &_12$$10); + ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_3, 497, &_12$$10); zephir_check_call_status(); zephir_array_fetch_string(&_13$$10, &assignment, SL("op"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1080 TSRMLS_CC); do { @@ -2021,13 +2021,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSwitch) { object_init_ex(&_0$$3, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "Corrupt statement"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 507, &_1$$3, &statement); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 498, &_1$$3, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$3, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1135 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 506, &expr); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "expression", NULL, 497, &expr); zephir_check_call_status(); ZEPHIR_INIT_VAR(&compilation); ZEPHIR_CONCAT_SVS(&compilation, ""); @@ -2038,7 +2038,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSwitch) { } else { ZVAL_BOOL(&_3$$4, 0); } - ZEPHIR_CALL_METHOD(&lines, this_ptr, "statementlist", NULL, 508, &caseClauses, &_3$$4); + ZEPHIR_CALL_METHOD(&lines, this_ptr, "statementlist", NULL, 499, &caseClauses, &_3$$4); zephir_check_call_status(); if (zephir_fast_strlen_ev(&lines) != 0) { ZEPHIR_INIT_VAR(&_4$$5); @@ -2124,7 +2124,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { zephir_array_fast_append(&_1$$4, &expr); ZEPHIR_INIT_NVAR(&_2$$4); ZVAL_STRING(&_2$$4, "resolveExpression"); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "fireextensionevent", &_3, 509, &_2$$4, &_1$$4); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "fireextensionevent", &_3, 500, &_2$$4, &_1$$4); zephir_check_call_status(); if (Z_TYPE_P(&exprCode) == IS_STRING) { break; @@ -2141,7 +2141,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { ZEPHIR_INIT_NVAR(&singleExpr); ZVAL_COPY(&singleExpr, _4$$6); zephir_array_fetch_string(&_6$$7, &singleExpr, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1219 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 506, &_6$$7); + ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 497, &_6$$7); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&name); if (zephir_array_isset_string_fetch(&name, &singleExpr, SL("name"), 0)) { @@ -2164,7 +2164,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { ZEPHIR_CALL_METHOD(&singleExpr, &expr, "current", NULL, 0); zephir_check_call_status(); zephir_array_fetch_string(&_9$$10, &singleExpr, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1219 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 506, &_9$$10); + ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_7, 497, &_9$$10); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&name); if (zephir_array_isset_string_fetch(&name, &singleExpr, SL("name"), 0)) { @@ -2190,7 +2190,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } ZEPHIR_OBS_NVAR(&left); if (zephir_array_isset_string_fetch(&left, &expr, SL("left"), 0)) { - ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_7, 506, &left); + ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_7, 497, &left); zephir_check_call_status(); } if (ZEPHIR_IS_LONG(&type, 311)) { @@ -2201,13 +2201,13 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } if (ZEPHIR_IS_LONG(&type, 124)) { zephir_array_fetch_string(&_14$$16, &expr, SL("right"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1266 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "resolvefilter", &_15, 510, &_14$$16, &leftCode); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "resolvefilter", &_15, 501, &_14$$16, &leftCode); zephir_check_call_status(); break; } ZEPHIR_OBS_NVAR(&right); if (zephir_array_isset_string_fetch(&right, &expr, SL("right"), 0)) { - ZEPHIR_CALL_METHOD(&rightCode, this_ptr, "expression", &_7, 506, &right); + ZEPHIR_CALL_METHOD(&rightCode, this_ptr, "expression", &_7, 497, &right); zephir_check_call_status(); } ZEPHIR_INIT_NVAR(&exprCode); @@ -2383,7 +2383,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { if (ZEPHIR_IS_LONG(&type, 365)) { ZEPHIR_OBS_NVAR(&start); if (zephir_array_isset_string_fetch(&start, &expr, SL("start"), 0)) { - ZEPHIR_CALL_METHOD(&startCode, this_ptr, "expression", &_7, 506, &start); + ZEPHIR_CALL_METHOD(&startCode, this_ptr, "expression", &_7, 497, &start); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(&startCode); @@ -2391,7 +2391,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } ZEPHIR_OBS_NVAR(&end); if (zephir_array_isset_string_fetch(&end, &expr, SL("end"), 0)) { - ZEPHIR_CALL_METHOD(&endCode, this_ptr, "expression", &_7, 506, &end); + ZEPHIR_CALL_METHOD(&endCode, this_ptr, "expression", &_7, 497, &end); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(&endCode); @@ -2483,7 +2483,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } if (ZEPHIR_IS_LONG(&type, 366)) { zephir_array_fetch_string(&_23$$72, &expr, SL("ternary"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1500 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_22$$72, this_ptr, "expression", &_7, 506, &_23$$72); + ZEPHIR_CALL_METHOD(&_22$$72, this_ptr, "expression", &_7, 497, &_23$$72); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&exprCode); ZEPHIR_CONCAT_SVSVSVS(&exprCode, "(", &_22$$72, " ? ", &leftCode, " : ", &rightCode, ")"); @@ -2510,7 +2510,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { zephir_array_fetch_string(&_26$$76, &expr, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1518 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_27$$76); ZEPHIR_CONCAT_SVSVSV(&_27$$76, "Unknown expression ", &type, " in ", &_25$$76, " on line ", &_26$$76); - ZEPHIR_CALL_METHOD(NULL, &_24$$76, "__construct", &_28, 507, &_27$$76); + ZEPHIR_CALL_METHOD(NULL, &_24$$76, "__construct", &_28, 498, &_27$$76); zephir_check_call_status(); zephir_throw_exception_debug(&_24$$76, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1518 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -2703,7 +2703,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { ZVAL_NULL(&funcArguments); ZEPHIR_OBS_NVAR(&funcArguments); if (zephir_array_isset_string_fetch(&funcArguments, &expr, SL("arguments"), 0)) { - ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 506, &funcArguments); + ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 497, &funcArguments); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(&arguments); @@ -2726,7 +2726,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { zephir_array_fast_append(&_1$$6, &funcArguments); ZEPHIR_INIT_VAR(&_2$$6); ZVAL_STRING(&_2$$6, "compileFunction"); - ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 509, &_2$$6, &_1$$6); + ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 500, &_2$$6, &_1$$6); zephir_check_call_status(); if (Z_TYPE_P(&code) == IS_STRING) { RETURN_CCTOR(&code); @@ -2758,7 +2758,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { zephir_array_fetch_string(&_6$$9, &expr, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1645 TSRMLS_CC); ZEPHIR_INIT_VAR(&_7$$9); ZEPHIR_CONCAT_SVSVSV(&_7$$9, "Invalid definition for user function '", &name, "' in ", &_5$$9, " on line ", &_6$$9); - ZEPHIR_CALL_METHOD(NULL, &_4$$9, "__construct", NULL, 507, &_7$$9); + ZEPHIR_CALL_METHOD(NULL, &_4$$9, "__construct", NULL, 498, &_7$$9); zephir_check_call_status(); zephir_throw_exception_debug(&_4$$9, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 1645 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -2787,7 +2787,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { zephir_read_property(&_11$$17, this_ptr, SL("exprLevel"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&exprLevel, &_11$$17); if (Z_TYPE_P(&block) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&code, this_ptr, "statementlistorextends", NULL, 511, &block); + ZEPHIR_CALL_METHOD(&code, this_ptr, "statementlistorextends", NULL, 502, &block); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&exprLevel, 1)) { ZEPHIR_CPY_WRT(&escapedCode, &code); @@ -2876,7 +2876,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { ZEPHIR_CONCAT_SVSVS(return_value, "$this->callMacro('", &name, "', [", &arguments, "])"); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_14, this_ptr, "expression", NULL, 506, &nameExpr); + ZEPHIR_CALL_METHOD(&_14, this_ptr, "expression", NULL, 497, &nameExpr); zephir_check_call_status(); ZEPHIR_CONCAT_VSVS(return_value, &_14, "(", &arguments, ")"); RETURN_MM(); @@ -3177,28 +3177,28 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveTest) { if (zephir_array_isset_string_fetch(&name, &testName, SL("value"), 0)) { if (ZEPHIR_IS_STRING(&name, "divisibleby")) { zephir_array_fetch_string(&_1$$12, &test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2036 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0$$12, this_ptr, "expression", NULL, 506, &_1$$12); + ZEPHIR_CALL_METHOD(&_0$$12, this_ptr, "expression", NULL, 497, &_1$$12); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "(((", &left, ") % (", &_0$$12, ")) == 0)"); RETURN_MM(); } if (ZEPHIR_IS_STRING(&name, "sameas")) { zephir_array_fetch_string(&_3$$13, &test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2043 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_2$$13, this_ptr, "expression", NULL, 506, &_3$$13); + ZEPHIR_CALL_METHOD(&_2$$13, this_ptr, "expression", NULL, 497, &_3$$13); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "(", &left, ") === (", &_2$$13, ")"); RETURN_MM(); } if (ZEPHIR_IS_STRING(&name, "type")) { zephir_array_fetch_string(&_5$$14, &test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2050 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_4$$14, this_ptr, "expression", NULL, 506, &_5$$14); + ZEPHIR_CALL_METHOD(&_4$$14, this_ptr, "expression", NULL, 497, &_5$$14); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "gettype(", &left, ") === (", &_4$$14, ")"); RETURN_MM(); } } } - ZEPHIR_CALL_METHOD(&_6, this_ptr, "expression", NULL, 506, &test); + ZEPHIR_CALL_METHOD(&_6, this_ptr, "expression", NULL, 497, &test); zephir_check_call_status(); ZEPHIR_CONCAT_VSV(return_value, &left, " == ", &_6); RETURN_MM(); @@ -3392,7 +3392,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSource) { } else { ZVAL_BOOL(&_0, 0); } - ZEPHIR_CALL_METHOD(&compilation, this_ptr, "statementlist", NULL, 508, &intermediate, &_0); + ZEPHIR_CALL_METHOD(&compilation, this_ptr, "statementlist", NULL, 499, &intermediate, &_0); zephir_check_call_status(); zephir_read_property(&_1, this_ptr, SL("extended"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&extended, &_1); @@ -3424,11 +3424,11 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSource) { ZEPHIR_OBS_NVAR(&localBlock); zephir_array_fetch(&localBlock, &blocks, &name, PH_NOISY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2165 TSRMLS_CC); zephir_update_property_zval(this_ptr, SL("currentBlock"), &name); - ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 508, &localBlock); + ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 499, &localBlock); zephir_check_call_status(); } else { if (Z_TYPE_P(&block) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 508, &block); + ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 499, &block); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&blockCompilation, &block); @@ -3465,11 +3465,11 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSource) { ZEPHIR_OBS_NVAR(&localBlock); zephir_array_fetch(&localBlock, &blocks, &name, PH_NOISY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2165 TSRMLS_CC); zephir_update_property_zval(this_ptr, SL("currentBlock"), &name); - ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 508, &localBlock); + ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 499, &localBlock); zephir_check_call_status(); } else { if (Z_TYPE_P(&block) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 508, &block); + ZEPHIR_CALL_METHOD(&blockCompilation, this_ptr, "statementlist", NULL, 499, &block); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&blockCompilation, &block); @@ -3647,7 +3647,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fetch_string(&_2$$5, &filter, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2263 TSRMLS_CC); ZEPHIR_INIT_VAR(&_3$$5); ZEPHIR_CONCAT_SVSV(&_3$$5, "Unknown filter type in ", &_1$$5, " on line ", &_2$$5); - ZEPHIR_CALL_METHOD(NULL, &_0$$5, "__construct", NULL, 507, &_3$$5); + ZEPHIR_CALL_METHOD(NULL, &_0$$5, "__construct", NULL, 498, &_3$$5); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$5, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2263 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -3681,11 +3681,11 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_update_string(&_4$$7, SL("file"), &file, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4$$7, SL("line"), &line, PH_COPY | PH_SEPARATE); ZEPHIR_MAKE_REF(&funcArguments); - ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 0, &funcArguments, &_4$$7); + ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 503, &funcArguments, &_4$$7); ZEPHIR_UNREF(&funcArguments); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 506, &funcArguments); + ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 497, &funcArguments); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&arguments, &left); @@ -3700,7 +3700,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fast_append(&_7$$9, &funcArguments); ZEPHIR_INIT_VAR(&_8$$9); ZVAL_STRING(&_8$$9, "compileFilter"); - ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 509, &_8$$9, &_7$$9); + ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 500, &_8$$9, &_7$$9); zephir_check_call_status(); if (Z_TYPE_P(&code) == IS_STRING) { RETURN_CCTOR(&code); @@ -3731,7 +3731,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fetch_string(&_12$$11, &filter, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2357 TSRMLS_CC); ZEPHIR_INIT_VAR(&_13$$11); ZEPHIR_CONCAT_SVSVSV(&_13$$11, "Invalid definition for user filter '", &name, "' in ", &_11$$11, " on line ", &_12$$11); - ZEPHIR_CALL_METHOD(NULL, &_10$$11, "__construct", NULL, 507, &_13$$11); + ZEPHIR_CALL_METHOD(NULL, &_10$$11, "__construct", NULL, 498, &_13$$11); zephir_check_call_status(); zephir_throw_exception_debug(&_10$$11, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2357 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -3859,7 +3859,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fetch_string(&_19, &filter, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2551 TSRMLS_CC); ZEPHIR_INIT_VAR(&_20); ZEPHIR_CONCAT_SVSVSV(&_20, "Unknown filter \"", &name, "\" in ", &_18, " on line ", &_19); - ZEPHIR_CALL_METHOD(NULL, &_17, "__construct", NULL, 507, &_20); + ZEPHIR_CALL_METHOD(NULL, &_17, "__construct", NULL, 498, &_20); zephir_check_call_status(); zephir_throw_exception_debug(&_17, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2551 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -4027,7 +4027,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { zephir_array_fetch_string(&_6$$7, &statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2599 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_7$$7); ZEPHIR_CONCAT_SVSV(&_7$$7, "Invalid statement in ", &_5$$7, " on line ", &_6$$7); - ZEPHIR_CALL_METHOD(NULL, &_4$$7, "__construct", &_8, 507, &_7$$7, &statement); + ZEPHIR_CALL_METHOD(NULL, &_4$$7, "__construct", &_8, 498, &_7$$7, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_4$$7, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2601 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -4039,7 +4039,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { zephir_array_fast_append(&_9$$8, &statement); ZEPHIR_INIT_NVAR(&_10$$8); ZVAL_STRING(&_10$$8, "compileStatement"); - ZEPHIR_CALL_METHOD(&tempCompilation, this_ptr, "fireextensionevent", &_11, 509, &_10$$8, &_9$$8); + ZEPHIR_CALL_METHOD(&tempCompilation, this_ptr, "fireextensionevent", &_11, 500, &_10$$8, &_9$$8); zephir_check_call_status(); if (Z_TYPE_P(&tempCompilation) == IS_STRING) { zephir_concat_self(&compilation, &tempCompilation TSRMLS_CC); @@ -4144,7 +4144,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { } else { ZVAL_BOOL(&_34$$24, 0); } - ZEPHIR_CALL_METHOD(&_33$$24, this_ptr, "statementlist", &_35, 508, &blockStatements, &_34$$24); + ZEPHIR_CALL_METHOD(&_33$$24, this_ptr, "statementlist", &_35, 499, &blockStatements, &_34$$24); zephir_check_call_status(); zephir_concat_self(&compilation, &_33$$24 TSRMLS_CC); } @@ -4265,7 +4265,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { zephir_array_fetch_string(&_61$$38, &statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2839 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_62$$38); ZEPHIR_CONCAT_SVSVSV(&_62$$38, "Unknown statement ", &type, " in ", &_60$$38, " on line ", &_61$$38); - ZEPHIR_CALL_METHOD(NULL, &_59$$38, "__construct", &_8, 507, &_62$$38); + ZEPHIR_CALL_METHOD(NULL, &_59$$38, "__construct", &_8, 498, &_62$$38); zephir_check_call_status(); zephir_throw_exception_debug(&_59$$38, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2839 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -4295,7 +4295,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { zephir_array_fetch_string(&_65$$41, &statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2599 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_66$$41); ZEPHIR_CONCAT_SVSV(&_66$$41, "Invalid statement in ", &_64$$41, " on line ", &_65$$41); - ZEPHIR_CALL_METHOD(NULL, &_63$$41, "__construct", &_8, 507, &_66$$41, &statement); + ZEPHIR_CALL_METHOD(NULL, &_63$$41, "__construct", &_8, 498, &_66$$41, &statement); zephir_check_call_status(); zephir_throw_exception_debug(&_63$$41, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2601 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -4307,7 +4307,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { zephir_array_fast_append(&_67$$42, &statement); ZEPHIR_INIT_NVAR(&_68$$42); ZVAL_STRING(&_68$$42, "compileStatement"); - ZEPHIR_CALL_METHOD(&tempCompilation, this_ptr, "fireextensionevent", &_11, 509, &_68$$42, &_67$$42); + ZEPHIR_CALL_METHOD(&tempCompilation, this_ptr, "fireextensionevent", &_11, 500, &_68$$42, &_67$$42); zephir_check_call_status(); if (Z_TYPE_P(&tempCompilation) == IS_STRING) { zephir_concat_self(&compilation, &tempCompilation TSRMLS_CC); @@ -4412,7 +4412,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { } else { ZVAL_BOOL(&_84$$58, 0); } - ZEPHIR_CALL_METHOD(&_83$$58, this_ptr, "statementlist", &_35, 508, &blockStatements, &_84$$58); + ZEPHIR_CALL_METHOD(&_83$$58, this_ptr, "statementlist", &_35, 499, &blockStatements, &_84$$58); zephir_check_call_status(); zephir_concat_self(&compilation, &_83$$58 TSRMLS_CC); } @@ -4533,7 +4533,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementList) { zephir_array_fetch_string(&_101$$72, &statement, SL("line"), PH_NOISY | PH_READONLY, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2839 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_102$$72); ZEPHIR_CONCAT_SVSVSV(&_102$$72, "Unknown statement ", &type, " in ", &_100$$72, " on line ", &_101$$72); - ZEPHIR_CALL_METHOD(NULL, &_99$$72, "__construct", &_8, 507, &_102$$72); + ZEPHIR_CALL_METHOD(NULL, &_99$$72, "__construct", &_8, 498, &_102$$72); zephir_check_call_status(); zephir_throw_exception_debug(&_99$$72, "phalcon/Mvc/View/Engine/Volt/Compiler.zep", 2839 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -4621,7 +4621,7 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, statementListOrExtends) { ZEPHIR_INIT_NVAR(&statement); } if (isStatementList) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "statementlist", NULL, 508, statements); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "statementlist", NULL, 499, statements); zephir_check_call_status(); RETURN_MM(); } diff --git a/ext/phalcon/mvc/view/simple.zep.c b/ext/phalcon/mvc/view/simple.zep.c index 20cec2bb7ce..5887fc722d9 100644 --- a/ext/phalcon/mvc/view/simple.zep.c +++ b/ext/phalcon/mvc/view/simple.zep.c @@ -349,7 +349,7 @@ PHP_METHOD(Phalcon_Mvc_View_Simple, partial) { } - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 393); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 382); zephir_check_call_status(); if (Z_TYPE_P(params) == IS_ARRAY) { zephir_read_property(&_0$$3, this_ptr, SL("viewParams"), PH_NOISY_CC | PH_READONLY); @@ -362,7 +362,7 @@ PHP_METHOD(Phalcon_Mvc_View_Simple, partial) { } else { ZEPHIR_CPY_WRT(&mergedParams, params); } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "internalrender", NULL, 0, &partialPath, &mergedParams); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "internalrender", NULL, 504, &partialPath, &mergedParams); zephir_check_call_status(); if (Z_TYPE_P(params) == IS_ARRAY) { zephir_update_property_zval(this_ptr, SL("viewParams"), &viewParams); @@ -451,13 +451,13 @@ PHP_METHOD(Phalcon_Mvc_View_Simple, render) { ZEPHIR_INIT_VAR(&_0); ZEPHIR_CREATE_SYMBOL_TABLE(); - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 393); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 382); zephir_check_call_status(); zephir_read_property(&_1, this_ptr, SL("viewParams"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&viewParams, &_1); ZEPHIR_INIT_VAR(&mergedParams); zephir_fast_array_merge(&mergedParams, &viewParams, ¶ms TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "internalrender", NULL, 0, &path, &mergedParams); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "internalrender", NULL, 504, &path, &mergedParams); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 200); zephir_check_call_status(); @@ -712,7 +712,7 @@ PHP_METHOD(Phalcon_Mvc_View_Simple, loadTemplateEngines) { if (Z_TYPE_P(®isteredEngines) != IS_ARRAY) { ZEPHIR_INIT_VAR(&_2$$4); object_init_ex(&_2$$4, phalcon_mvc_view_engine_php_ce); - ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 498, this_ptr, &di); + ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", NULL, 488, this_ptr, &di); zephir_check_call_status(); zephir_array_update_string(&engines, SL(".phtml"), &_2$$4, PH_COPY | PH_SEPARATE); } else { diff --git a/ext/phalcon/paginator/adapter/abstractadapter.zep.c b/ext/phalcon/paginator/adapter/abstractadapter.zep.c index cdab9f3936e..5011858b86a 100644 --- a/ext/phalcon/paginator/adapter/abstractadapter.zep.c +++ b/ext/phalcon/paginator/adapter/abstractadapter.zep.c @@ -87,17 +87,17 @@ PHP_METHOD(Phalcon_Paginator_Adapter_AbstractAdapter, __construct) { zephir_update_property_zval(this_ptr, SL("config"), &config); if (zephir_array_isset_string(&config, SL("limit"))) { - zephir_array_fetch_string(&_0$$3, &config, SL("limit"), PH_NOISY | PH_READONLY, "phalcon/Paginator/Adapter/AbstractAdapter.zep", 53 TSRMLS_CC); + zephir_array_fetch_string(&_0$$3, &config, SL("limit"), PH_NOISY | PH_READONLY, "phalcon/Paginator/Adapter/AbstractAdapter.zep", 54 TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, this_ptr, "setlimit", NULL, 0, &_0$$3); zephir_check_call_status(); } if (zephir_array_isset_string(&config, SL("page"))) { - zephir_array_fetch_string(&_1$$4, &config, SL("page"), PH_NOISY | PH_READONLY, "phalcon/Paginator/Adapter/AbstractAdapter.zep", 59 TSRMLS_CC); + zephir_array_fetch_string(&_1$$4, &config, SL("page"), PH_NOISY | PH_READONLY, "phalcon/Paginator/Adapter/AbstractAdapter.zep", 60 TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, this_ptr, "setcurrentpage", NULL, 0, &_1$$4); zephir_check_call_status(); } if (zephir_array_isset_string(&config, SL("repository"))) { - zephir_array_fetch_string(&_2$$5, &config, SL("repository"), PH_NOISY | PH_READONLY, "phalcon/Paginator/Adapter/AbstractAdapter.zep", 65 TSRMLS_CC); + zephir_array_fetch_string(&_2$$5, &config, SL("repository"), PH_NOISY | PH_READONLY, "phalcon/Paginator/Adapter/AbstractAdapter.zep", 66 TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, this_ptr, "setrepository", NULL, 0, &_2$$5); zephir_check_call_status(); } @@ -156,6 +156,10 @@ PHP_METHOD(Phalcon_Paginator_Adapter_AbstractAdapter, setLimit) { limitRows = zephir_get_intval(limitRows_param); + if (limitRows <= 0) { + ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(phalcon_paginator_exception_ce, "Limit must be greater then zero", "phalcon/Paginator/Adapter/AbstractAdapter.zep", 94); + return; + } ZEPHIR_INIT_ZVAL_NREF(_0); ZVAL_LONG(&_0, limitRows); zephir_update_property_zval(this_ptr, SL("limitRows"), &_0); diff --git a/ext/phalcon/security.zep.c b/ext/phalcon/security.zep.c index 2e42112b6b0..fc84282c8a0 100644 --- a/ext/phalcon/security.zep.c +++ b/ext/phalcon/security.zep.c @@ -204,7 +204,7 @@ PHP_METHOD(Phalcon_Security, checkHash) { if (_0) { RETURN_MM_BOOL(0); } - ZEPHIR_CALL_FUNCTION(&_1, "crypt", NULL, 0, &password, &passwordHash); + ZEPHIR_CALL_FUNCTION(&_1, "crypt", NULL, 505, &password, &passwordHash); zephir_check_call_status(); zephir_get_strval(&_2, &_1); ZEPHIR_CPY_WRT(&cryptedHash, &_2); @@ -265,7 +265,7 @@ PHP_METHOD(Phalcon_Security, checkToken) { } - ZEPHIR_CALL_METHOD(&session, this_ptr, "getlocalsession", NULL, 0); + ZEPHIR_CALL_METHOD(&session, this_ptr, "getlocalsession", NULL, 506); zephir_check_call_status(); _0 = zephir_is_true(&session); if (_0) { @@ -280,7 +280,7 @@ PHP_METHOD(Phalcon_Security, checkToken) { RETURN_MM_BOOL(0); } if (!(zephir_is_true(tokenValue))) { - ZEPHIR_CALL_METHOD(&request, this_ptr, "getlocalrequest", NULL, 0); + ZEPHIR_CALL_METHOD(&request, this_ptr, "getlocalrequest", NULL, 507); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_2$$5); ZVAL_STRING(&_2$$5, "string"); @@ -380,7 +380,7 @@ PHP_METHOD(Phalcon_Security, destroyToken) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&session, this_ptr, "getlocalsession", NULL, 0); + ZEPHIR_CALL_METHOD(&session, this_ptr, "getlocalsession", NULL, 506); zephir_check_call_status(); if (UNEXPECTED(zephir_is_true(&session))) { zephir_read_property(&_0$$3, this_ptr, SL("tokenKeySessionId"), PH_NOISY_CC | PH_READONLY); @@ -473,7 +473,7 @@ PHP_METHOD(Phalcon_Security, getSessionToken) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&session, this_ptr, "getlocalsession", NULL, 0); + ZEPHIR_CALL_METHOD(&session, this_ptr, "getlocalsession", NULL, 506); zephir_check_call_status(); if (UNEXPECTED(zephir_is_true(&session))) { zephir_read_property(&_0$$3, this_ptr, SL("tokenValueSessionId"), PH_NOISY_CC | PH_READONLY); @@ -566,7 +566,7 @@ PHP_METHOD(Phalcon_Security, getToken) { ZEPHIR_CALL_METHOD(&_3$$3, &_2$$3, "base64safe", NULL, 0, &_4$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("token"), &_3$$3); - ZEPHIR_CALL_METHOD(&session, this_ptr, "getlocalsession", NULL, 0); + ZEPHIR_CALL_METHOD(&session, this_ptr, "getlocalsession", NULL, 506); zephir_check_call_status(); if (UNEXPECTED(zephir_is_true(&session))) { zephir_read_property(&_5$$4, this_ptr, SL("tokenValueSessionId"), PH_NOISY_CC | PH_READONLY); @@ -602,7 +602,7 @@ PHP_METHOD(Phalcon_Security, getTokenKey) { zephir_read_property(&_0, this_ptr, SL("tokenKey"), PH_NOISY_CC | PH_READONLY); if (Z_TYPE_P(&_0) == IS_NULL) { - ZEPHIR_CALL_METHOD(&session, this_ptr, "getlocalsession", NULL, 0); + ZEPHIR_CALL_METHOD(&session, this_ptr, "getlocalsession", NULL, 506); zephir_check_call_status(); if (UNEXPECTED(zephir_is_true(&session))) { zephir_read_property(&_1$$4, this_ptr, SL("random"), PH_NOISY_CC | PH_READONLY); @@ -718,7 +718,7 @@ PHP_METHOD(Phalcon_Security, hash) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Unable to get random bytes for the salt", "phalcon/Security.zep", 391); return; } - ZEPHIR_RETURN_CALL_FUNCTION("crypt", NULL, 0, &password, &saltBytes); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", NULL, 505, &password, &saltBytes); zephir_check_call_status(); RETURN_MM(); } @@ -739,7 +739,7 @@ PHP_METHOD(Phalcon_Security, hash) { } ZEPHIR_INIT_VAR(&_6$$15); ZEPHIR_CONCAT_SVSVS(&_6$$15, "$", &variant, "$", &saltBytes, "$"); - ZEPHIR_RETURN_CALL_FUNCTION("crypt", NULL, 0, &password, &_6$$15); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", NULL, 505, &password, &_6$$15); zephir_check_call_status(); RETURN_MM(); } @@ -762,7 +762,7 @@ PHP_METHOD(Phalcon_Security, hash) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&_10$$17); ZEPHIR_CONCAT_SVSVSVS(&_10$$17, "$2", &variant, "$", &_9$$17, "$", &saltBytes, "$"); - ZEPHIR_RETURN_CALL_FUNCTION("crypt", NULL, 0, &password, &_10$$17); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", NULL, 505, &password, &_10$$17); zephir_check_call_status(); RETURN_MM(); } while(0); diff --git a/ext/phalcon/security/random.zep.c b/ext/phalcon/security/random.zep.c index 0eccf1d9019..5b1998c2c71 100644 --- a/ext/phalcon/security/random.zep.c +++ b/ext/phalcon/security/random.zep.c @@ -369,7 +369,7 @@ PHP_METHOD(Phalcon_Security_Random, bytes) { len = 16; } ZVAL_LONG(&_0, len); - ZEPHIR_RETURN_CALL_FUNCTION("random_bytes", NULL, 0, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("random_bytes", NULL, 508, &_0); zephir_check_call_status(); RETURN_MM(); @@ -416,7 +416,7 @@ PHP_METHOD(Phalcon_Security_Random, hex) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&_2); ZVAL_STRING(&_2, "H*"); - ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 0, &_2, &_0); + ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 509, &_2, &_0); zephir_check_call_status(); ZEPHIR_MAKE_REF(&_3); ZEPHIR_RETURN_CALL_FUNCTION("array_shift", NULL, 19, &_3); @@ -460,7 +460,7 @@ PHP_METHOD(Phalcon_Security_Random, number) { } ZVAL_LONG(&_0, 0); ZVAL_LONG(&_1, len); - ZEPHIR_RETURN_CALL_FUNCTION("random_int", NULL, 0, &_0, &_1); + ZEPHIR_RETURN_CALL_FUNCTION("random_int", NULL, 510, &_0, &_1); zephir_check_call_status(); RETURN_MM(); @@ -512,7 +512,7 @@ PHP_METHOD(Phalcon_Security_Random, uuid) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&_2); ZVAL_STRING(&_2, "N1a/n1b/n1c/n1d/n1e/N1f"); - ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 0, &_2, &_0); + ZEPHIR_CALL_FUNCTION(&_3, "unpack", NULL, 509, &_2, &_0); zephir_check_call_status(); ZEPHIR_CALL_FUNCTION(&ary, "array_values", NULL, 160, &_3); zephir_check_call_status(); @@ -527,7 +527,7 @@ PHP_METHOD(Phalcon_Security_Random, uuid) { ZEPHIR_INIT_VAR(&_7); ZVAL_STRING(&_7, "%08x-%04x-%04x-%04x-%04x%08x"); ZEPHIR_MAKE_REF(&ary); - ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 0, &ary, &_7); + ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 503, &ary, &_7); ZEPHIR_UNREF(&ary); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_7); @@ -586,7 +586,7 @@ PHP_METHOD(Phalcon_Security_Random, base) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "C*"); - ZEPHIR_CALL_FUNCTION(&bytes, "unpack", NULL, 0, &_1, &_0); + ZEPHIR_CALL_FUNCTION(&bytes, "unpack", NULL, 509, &_1, &_0); zephir_check_call_status(); zephir_is_iterable(&bytes, 0, "phalcon/Security/Random.zep", 350); if (Z_TYPE_P(&bytes) == IS_ARRAY) { diff --git a/ext/phalcon/session/adapter/noop.zep.c b/ext/phalcon/session/adapter/noop.zep.c index 3a1794e8e3d..a2fbe65a2b9 100644 --- a/ext/phalcon/session/adapter/noop.zep.c +++ b/ext/phalcon/session/adapter/noop.zep.c @@ -42,7 +42,7 @@ * use Phalcon\Session\Adapter\Noop; * * $session = new Manager(); - * $session->setHandler(new Noop()); + * $session->setAdapter(new Noop()); * ``` */ ZEPHIR_INIT_CLASS(Phalcon_Session_Adapter_Noop) { diff --git a/ext/phalcon/session/adapter/stream.zep.c b/ext/phalcon/session/adapter/stream.zep.c index bfedaf17066..2ffa77c16b9 100644 --- a/ext/phalcon/session/adapter/stream.zep.c +++ b/ext/phalcon/session/adapter/stream.zep.c @@ -49,7 +49,7 @@ * 'savePath' => '/tmp', * ] * ); - * $session->setHandler($files); + * $session->setAdapter($files); * ``` */ ZEPHIR_INIT_CLASS(Phalcon_Session_Adapter_Stream) { @@ -101,10 +101,10 @@ PHP_METHOD(Phalcon_Session_Adapter_Stream, __construct) { if (!(zephir_array_isset_string_fetch(&path, &options, SL("savePath"), 0))) { ZEPHIR_INIT_VAR(&_2$$3); ZVAL_STRING(&_2$$3, "session.save_path"); - ZEPHIR_CALL_FUNCTION(&path, "ini_get", NULL, 0, &_2$$3); + ZEPHIR_CALL_FUNCTION(&path, "ini_get", NULL, 511, &_2$$3); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_3, "is_writable", NULL, 330, &path); + ZEPHIR_CALL_FUNCTION(&_3, "is_writable", NULL, 319, &path); zephir_check_call_status(); if (UNEXPECTED(!zephir_is_true(&_3))) { ZEPHIR_INIT_VAR(&_4$$4); diff --git a/ext/phalcon/session/manager.zep.c b/ext/phalcon/session/manager.zep.c index 09c0486a64e..9a5dea50b2d 100644 --- a/ext/phalcon/session/manager.zep.c +++ b/ext/phalcon/session/manager.zep.c @@ -43,7 +43,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Session_Manager) { /** * @var |null */ - zend_declare_property_null(phalcon_session_manager_ce, SL("handler"), ZEND_ACC_PRIVATE TSRMLS_CC); + zend_declare_property_null(phalcon_session_manager_ce, SL("adapter"), ZEND_ACC_PRIVATE TSRMLS_CC); /** * @var string @@ -302,14 +302,14 @@ PHP_METHOD(Phalcon_Session_Manager, get) { } /** - * Returns the stored session handler + * Returns the stored session adapter */ -PHP_METHOD(Phalcon_Session_Manager, getHandler) { +PHP_METHOD(Phalcon_Session_Manager, getAdapter) { zval *this_ptr = getThis(); - RETURN_MEMBER(getThis(), "handler"); + RETURN_MEMBER(getThis(), "adapter"); } @@ -406,7 +406,7 @@ PHP_METHOD(Phalcon_Session_Manager, getOptions) { } /** - * Regenerates the session id using the handler. + * Regenerates the session id using the adapter. */ PHP_METHOD(Phalcon_Session_Manager, regenerateId) { @@ -442,29 +442,6 @@ PHP_METHOD(Phalcon_Session_Manager, regenerateId) { } -/** - * Registers a handler with the session - */ -PHP_METHOD(Phalcon_Session_Manager, registerHandler) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *handler, handler_sub; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&handler_sub); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &handler); - - - - ZEPHIR_RETURN_CALL_FUNCTION("session_set_save_handler", NULL, 0, handler); - zephir_check_call_status(); - RETURN_MM(); - -} - /** * Removes a session variable from an application context */ @@ -537,20 +514,20 @@ PHP_METHOD(Phalcon_Session_Manager, set) { } /** - * Set the handler for the session + * Set the adapter for the session */ -PHP_METHOD(Phalcon_Session_Manager, setHandler) { +PHP_METHOD(Phalcon_Session_Manager, setAdapter) { - zval *handler, handler_sub; + zval *adapter, adapter_sub; zval *this_ptr = getThis(); - ZVAL_UNDEF(&handler_sub); + ZVAL_UNDEF(&adapter_sub); - zephir_fetch_params_without_memory_grow(1, 0, &handler); + zephir_fetch_params_without_memory_grow(1, 0, &adapter); - zephir_update_property_zval(this_ptr, SL("handler"), handler); + zephir_update_property_zval(this_ptr, SL("adapter"), adapter); RETURN_THISW(); } @@ -586,7 +563,7 @@ PHP_METHOD(Phalcon_Session_Manager, setId) { ZEPHIR_CONCAT_SS(&_2$$3, "The session has already been started. ", "To change the id, use regenerateId()"); ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 265, &_2$$3); zephir_check_call_status(); - zephir_throw_exception_debug(&_1$$3, "phalcon/Session/Manager.zep", 259 TSRMLS_CC); + zephir_throw_exception_debug(&_1$$3, "phalcon/Session/Manager.zep", 251 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -630,7 +607,7 @@ PHP_METHOD(Phalcon_Session_Manager, setName) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "exists", NULL, 0); zephir_check_call_status(); if (UNEXPECTED(zephir_is_true(&_0))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(spl_ce_InvalidArgumentException, "Cannot set session name after a session has started", "phalcon/Session/Manager.zep", 282); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(spl_ce_InvalidArgumentException, "Cannot set session name after a session has started", "phalcon/Session/Manager.zep", 274); return; } ZEPHIR_INIT_VAR(&_1); @@ -641,7 +618,7 @@ PHP_METHOD(Phalcon_Session_Manager, setName) { ZVAL_STRING(&_4, "/^[\\p{L}\\p{N}_-]+$/u"); zephir_preg_match(&_3, &_4, &name, &_1, 0, 0 , 0 TSRMLS_CC); if (UNEXPECTED(!zephir_is_true(&_3))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(spl_ce_InvalidArgumentException, "The name contains non alphanum characters", "phalcon/Session/Manager.zep", 288); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(spl_ce_InvalidArgumentException, "The name contains non alphanum characters", "phalcon/Session/Manager.zep", 280); return; } zephir_update_property_zval(this_ptr, SL("name"), &name); @@ -709,19 +686,19 @@ PHP_METHOD(Phalcon_Session_Manager, start) { if (ZEPHIR_IS_TRUE_IDENTICAL(&_0)) { RETURN_MM_BOOL(1); } - ZEPHIR_CALL_FUNCTION(&_1, "headers_sent", NULL, 365); + ZEPHIR_CALL_FUNCTION(&_1, "headers_sent", NULL, 354); zephir_check_call_status(); if (ZEPHIR_IS_TRUE_IDENTICAL(&_1)) { RETURN_MM_BOOL(0); } ZEPHIR_OBS_VAR(&_2); - zephir_read_property(&_2, this_ptr, SL("handler"), PH_NOISY_CC); + zephir_read_property(&_2, this_ptr, SL("adapter"), PH_NOISY_CC); if (UNEXPECTED(!(zephir_is_instance_of(&_2, SL("SessionHandlerInterface") TSRMLS_CC)))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_session_exception_ce, "The session handler is not valid", "phalcon/Session/Manager.zep", 328); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_session_exception_ce, "The session adapter is not valid", "phalcon/Session/Manager.zep", 320); return; } - zephir_read_property(&_3, this_ptr, SL("handler"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "registerhandler", NULL, 0, &_3); + zephir_read_property(&_3, this_ptr, SL("adapter"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 0, &_3); zephir_check_call_status(); ZEPHIR_RETURN_CALL_FUNCTION("session_start", NULL, 0); zephir_check_call_status(); diff --git a/ext/phalcon/session/manager.zep.h b/ext/phalcon/session/manager.zep.h index cd9c575e5b9..8ae6d9bfdae 100644 --- a/ext/phalcon/session/manager.zep.h +++ b/ext/phalcon/session/manager.zep.h @@ -11,16 +11,15 @@ PHP_METHOD(Phalcon_Session_Manager, __unset); PHP_METHOD(Phalcon_Session_Manager, destroy); PHP_METHOD(Phalcon_Session_Manager, exists); PHP_METHOD(Phalcon_Session_Manager, get); -PHP_METHOD(Phalcon_Session_Manager, getHandler); +PHP_METHOD(Phalcon_Session_Manager, getAdapter); PHP_METHOD(Phalcon_Session_Manager, getId); PHP_METHOD(Phalcon_Session_Manager, getName); PHP_METHOD(Phalcon_Session_Manager, has); PHP_METHOD(Phalcon_Session_Manager, getOptions); PHP_METHOD(Phalcon_Session_Manager, regenerateId); -PHP_METHOD(Phalcon_Session_Manager, registerHandler); PHP_METHOD(Phalcon_Session_Manager, remove); PHP_METHOD(Phalcon_Session_Manager, set); -PHP_METHOD(Phalcon_Session_Manager, setHandler); +PHP_METHOD(Phalcon_Session_Manager, setAdapter); PHP_METHOD(Phalcon_Session_Manager, setId); PHP_METHOD(Phalcon_Session_Manager, setName); PHP_METHOD(Phalcon_Session_Manager, setOptions); @@ -92,9 +91,9 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_manager_get, 0, 0, 1) ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_session_manager_gethandler, 0, 0, SessionHandlerInterface, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_session_manager_getadapter, 0, 0, SessionHandlerInterface, 0) #else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_session_manager_gethandler, 0, 0, IS_OBJECT, "SessionHandlerInterface", 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_session_manager_getadapter, 0, 0, IS_OBJECT, "SessionHandlerInterface", 0) #endif ZEND_END_ARG_INFO() @@ -139,14 +138,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_session_manager_regenera ZEND_ARG_INFO(0, deleteOldSession) ZEND_END_ARG_INFO() -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_session_manager_registerhandler, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_session_manager_registerhandler, 0, 1, _IS_BOOL, NULL, 0) -#endif - ZEND_ARG_OBJ_INFO(0, handler, SessionHandlerInterface, 0) -ZEND_END_ARG_INFO() - ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_manager_remove, 0, 0, 1) #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) @@ -165,11 +156,11 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_manager_set, 0, 0, 2) ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_session_manager_sethandler, 0, 1, Phalcon\\Session\\ManagerInterface, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_session_manager_setadapter, 0, 1, Phalcon\\Session\\ManagerInterface, 0) #else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_session_manager_sethandler, 0, 1, IS_OBJECT, "Phalcon\\Session\\ManagerInterface", 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_session_manager_setadapter, 0, 1, IS_OBJECT, "Phalcon\\Session\\ManagerInterface", 0) #endif - ZEND_ARG_OBJ_INFO(0, handler, SessionHandlerInterface, 0) + ZEND_ARG_OBJ_INFO(0, adapter, SessionHandlerInterface, 0) ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 70200 @@ -235,16 +226,15 @@ ZEPHIR_INIT_FUNCS(phalcon_session_manager_method_entry) { PHP_ME(Phalcon_Session_Manager, destroy, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, exists, arginfo_phalcon_session_manager_exists, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, get, arginfo_phalcon_session_manager_get, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Session_Manager, getHandler, arginfo_phalcon_session_manager_gethandler, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Session_Manager, getAdapter, arginfo_phalcon_session_manager_getadapter, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, getId, arginfo_phalcon_session_manager_getid, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, getName, arginfo_phalcon_session_manager_getname, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, has, arginfo_phalcon_session_manager_has, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, getOptions, arginfo_phalcon_session_manager_getoptions, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, regenerateId, arginfo_phalcon_session_manager_regenerateid, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Session_Manager, registerHandler, arginfo_phalcon_session_manager_registerhandler, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, remove, arginfo_phalcon_session_manager_remove, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, set, arginfo_phalcon_session_manager_set, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Session_Manager, setHandler, arginfo_phalcon_session_manager_sethandler, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Session_Manager, setAdapter, arginfo_phalcon_session_manager_setadapter, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, setId, arginfo_phalcon_session_manager_setid, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, setName, arginfo_phalcon_session_manager_setname, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Session_Manager, setOptions, arginfo_phalcon_session_manager_setoptions, ZEND_ACC_PUBLIC) diff --git a/ext/phalcon/session/managerinterface.zep.c b/ext/phalcon/session/managerinterface.zep.c index be7d9bcdce2..25aa75b99d5 100644 --- a/ext/phalcon/session/managerinterface.zep.c +++ b/ext/phalcon/session/managerinterface.zep.c @@ -80,9 +80,9 @@ ZEPHIR_DOC_METHOD(Phalcon_Session_ManagerInterface, get); ZEPHIR_DOC_METHOD(Phalcon_Session_ManagerInterface, getId); /** - * Returns the stored session handler + * Returns the stored session adapter */ -ZEPHIR_DOC_METHOD(Phalcon_Session_ManagerInterface, getHandler); +ZEPHIR_DOC_METHOD(Phalcon_Session_ManagerInterface, getAdapter); /** * Returns the name of the session @@ -110,9 +110,9 @@ ZEPHIR_DOC_METHOD(Phalcon_Session_ManagerInterface, remove); ZEPHIR_DOC_METHOD(Phalcon_Session_ManagerInterface, set); /** - * Set the handler for the session + * Set the adapter for the session */ -ZEPHIR_DOC_METHOD(Phalcon_Session_ManagerInterface, setHandler); +ZEPHIR_DOC_METHOD(Phalcon_Session_ManagerInterface, setAdapter); /** * Set session Id @@ -144,12 +144,7 @@ ZEPHIR_DOC_METHOD(Phalcon_Session_ManagerInterface, status); ZEPHIR_DOC_METHOD(Phalcon_Session_ManagerInterface, start); /** - * Regenerates the session id using the handler. + * Regenerates the session id using the adapter. */ ZEPHIR_DOC_METHOD(Phalcon_Session_ManagerInterface, regenerateId); -/** - * Registers a handler with the session - */ -ZEPHIR_DOC_METHOD(Phalcon_Session_ManagerInterface, registerHandler); - diff --git a/ext/phalcon/session/managerinterface.zep.h b/ext/phalcon/session/managerinterface.zep.h index f8aa591417a..f18a72daca1 100644 --- a/ext/phalcon/session/managerinterface.zep.h +++ b/ext/phalcon/session/managerinterface.zep.h @@ -69,9 +69,9 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_session_managerinterface ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_session_managerinterface_gethandler, 0, 0, SessionHandlerInterface, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_session_managerinterface_getadapter, 0, 0, SessionHandlerInterface, 0) #else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_session_managerinterface_gethandler, 0, 0, IS_OBJECT, "SessionHandlerInterface", 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_session_managerinterface_getadapter, 0, 0, IS_OBJECT, "SessionHandlerInterface", 0) #endif ZEND_END_ARG_INFO() @@ -119,11 +119,11 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_managerinterface_set, 0, 0, 2) ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_session_managerinterface_sethandler, 0, 1, Phalcon\\Session\\ManagerInterface, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_session_managerinterface_setadapter, 0, 1, Phalcon\\Session\\ManagerInterface, 0) #else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_session_managerinterface_sethandler, 0, 1, IS_OBJECT, "Phalcon\\Session\\ManagerInterface", 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_session_managerinterface_setadapter, 0, 1, IS_OBJECT, "Phalcon\\Session\\ManagerInterface", 0) #endif - ZEND_ARG_OBJ_INFO(0, handler, SessionHandlerInterface, 0) + ZEND_ARG_OBJ_INFO(0, adapter, SessionHandlerInterface, 0) ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 70200 @@ -176,14 +176,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_session_managerinterface ZEND_ARG_INFO(0, deleteOldSession) ZEND_END_ARG_INFO() -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_session_managerinterface_registerhandler, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_session_managerinterface_registerhandler, 0, 1, _IS_BOOL, NULL, 0) -#endif - ZEND_ARG_OBJ_INFO(0, handler, SessionHandlerInterface, 0) -ZEND_END_ARG_INFO() - ZEPHIR_INIT_FUNCS(phalcon_session_managerinterface_method_entry) { PHP_ABSTRACT_ME(Phalcon_Session_ManagerInterface, __get, arginfo_phalcon_session_managerinterface___get) PHP_ABSTRACT_ME(Phalcon_Session_ManagerInterface, __isset, arginfo_phalcon_session_managerinterface___isset) @@ -193,19 +185,18 @@ ZEPHIR_INIT_FUNCS(phalcon_session_managerinterface_method_entry) { PHP_ABSTRACT_ME(Phalcon_Session_ManagerInterface, destroy, NULL) PHP_ABSTRACT_ME(Phalcon_Session_ManagerInterface, get, arginfo_phalcon_session_managerinterface_get) PHP_ABSTRACT_ME(Phalcon_Session_ManagerInterface, getId, arginfo_phalcon_session_managerinterface_getid) - PHP_ABSTRACT_ME(Phalcon_Session_ManagerInterface, getHandler, arginfo_phalcon_session_managerinterface_gethandler) + PHP_ABSTRACT_ME(Phalcon_Session_ManagerInterface, getAdapter, arginfo_phalcon_session_managerinterface_getadapter) PHP_ABSTRACT_ME(Phalcon_Session_ManagerInterface, getName, arginfo_phalcon_session_managerinterface_getname) PHP_ABSTRACT_ME(Phalcon_Session_ManagerInterface, getOptions, arginfo_phalcon_session_managerinterface_getoptions) PHP_ABSTRACT_ME(Phalcon_Session_ManagerInterface, has, arginfo_phalcon_session_managerinterface_has) PHP_ABSTRACT_ME(Phalcon_Session_ManagerInterface, remove, arginfo_phalcon_session_managerinterface_remove) PHP_ABSTRACT_ME(Phalcon_Session_ManagerInterface, set, arginfo_phalcon_session_managerinterface_set) - PHP_ABSTRACT_ME(Phalcon_Session_ManagerInterface, setHandler, arginfo_phalcon_session_managerinterface_sethandler) + PHP_ABSTRACT_ME(Phalcon_Session_ManagerInterface, setAdapter, arginfo_phalcon_session_managerinterface_setadapter) PHP_ABSTRACT_ME(Phalcon_Session_ManagerInterface, setId, arginfo_phalcon_session_managerinterface_setid) PHP_ABSTRACT_ME(Phalcon_Session_ManagerInterface, setName, arginfo_phalcon_session_managerinterface_setname) PHP_ABSTRACT_ME(Phalcon_Session_ManagerInterface, setOptions, arginfo_phalcon_session_managerinterface_setoptions) PHP_ABSTRACT_ME(Phalcon_Session_ManagerInterface, status, arginfo_phalcon_session_managerinterface_status) PHP_ABSTRACT_ME(Phalcon_Session_ManagerInterface, start, arginfo_phalcon_session_managerinterface_start) PHP_ABSTRACT_ME(Phalcon_Session_ManagerInterface, regenerateId, arginfo_phalcon_session_managerinterface_regenerateid) - PHP_ABSTRACT_ME(Phalcon_Session_ManagerInterface, registerHandler, arginfo_phalcon_session_managerinterface_registerhandler) PHP_FE_END }; diff --git a/ext/phalcon/tag.zep.c b/ext/phalcon/tag.zep.c index c3467ca9dc9..431c48035d4 100644 --- a/ext/phalcon/tag.zep.c +++ b/ext/phalcon/tag.zep.c @@ -43,7 +43,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Tag) { zend_declare_property_bool(phalcon_tag_ce, SL("autoEscape"), 1, ZEND_ACC_PROTECTED|ZEND_ACC_STATIC TSRMLS_CC); /** - * Framework Dispatcher + * DI Container */ zend_declare_property_null(phalcon_tag_ce, SL("container"), ZEND_ACC_PROTECTED|ZEND_ACC_STATIC TSRMLS_CC); @@ -52,8 +52,6 @@ ZEPHIR_INIT_CLASS(Phalcon_Tag) { */ zend_declare_property_null(phalcon_tag_ce, SL("displayValues"), ZEND_ACC_PROTECTED|ZEND_ACC_STATIC TSRMLS_CC); - zend_declare_property_null(phalcon_tag_ce, SL("dispatcherService"), ZEND_ACC_PROTECTED|ZEND_ACC_STATIC TSRMLS_CC); - zend_declare_property_null(phalcon_tag_ce, SL("documentAppendTitle"), ZEND_ACC_PROTECTED|ZEND_ACC_STATIC TSRMLS_CC); zend_declare_property_null(phalcon_tag_ce, SL("documentPrependTitle"), ZEND_ACC_PROTECTED|ZEND_ACC_STATIC TSRMLS_CC); @@ -132,22 +130,6 @@ PHP_METHOD(Phalcon_Tag, appendTitle) { /** * Builds a HTML input[type="check"] tag - * - *```php - * echo Phalcon\Tag::checkField( - * [ - * "terms", - * "value" => "Y", - * ] - * ); - *``` - * - * Volt syntax: - *```php - * {{ check_field("terms") }} - *``` - * - * @param array parameters */ PHP_METHOD(Phalcon_Tag, checkField) { @@ -175,8 +157,6 @@ PHP_METHOD(Phalcon_Tag, checkField) { /** * Builds a HTML input[type="color"] tag - * - * @param array parameters */ PHP_METHOD(Phalcon_Tag, colorField) { @@ -204,17 +184,6 @@ PHP_METHOD(Phalcon_Tag, colorField) { /** * Builds a HTML input[type="date"] tag - * - * ```php - * echo Phalcon\Tag::dateField( - * [ - * "born", - * "value" => "14-12-1980", - * ] - * ); - * ``` - * - * @param array parameters */ PHP_METHOD(Phalcon_Tag, dateField) { @@ -242,8 +211,6 @@ PHP_METHOD(Phalcon_Tag, dateField) { /** * Builds a HTML input[type="datetime"] tag - * - * @param array parameters */ PHP_METHOD(Phalcon_Tag, dateTimeField) { @@ -271,8 +238,6 @@ PHP_METHOD(Phalcon_Tag, dateTimeField) { /** * Builds a HTML input[type="datetime-local"] tag - * - * @param array parameters */ PHP_METHOD(Phalcon_Tag, dateTimeLocalField) { @@ -300,8 +265,6 @@ PHP_METHOD(Phalcon_Tag, dateTimeLocalField) { /** * Alias of Phalcon\Tag::setDefault() - * - * @param string value */ PHP_METHOD(Phalcon_Tag, displayTo) { @@ -337,12 +300,6 @@ PHP_METHOD(Phalcon_Tag, displayTo) { /** * Builds a HTML input[type="email"] tag - * - * ```php - * echo Phalcon\Tag::emailField("email"); - * ``` - * - * @param array parameters */ PHP_METHOD(Phalcon_Tag, emailField) { @@ -382,12 +339,6 @@ PHP_METHOD(Phalcon_Tag, endForm) { /** * Builds a HTML input[type="file"] tag - * - *```php - * echo Phalcon\Tag::fileField("file"); - *``` - * - * @param array parameters */ PHP_METHOD(Phalcon_Tag, fileField) { @@ -415,25 +366,6 @@ PHP_METHOD(Phalcon_Tag, fileField) { /** * Builds a HTML FORM tag - * - * ```php - * echo Phalcon\Tag::form("posts/save"); - * - * echo Phalcon\Tag::form( - * [ - * "posts/save", - * "method" => "post", - * ] - * ); - * ``` - * - * Volt syntax: - * ```php - * {{ form("posts/save") }} - * {{ form("posts/save", "method": "post") }} - * ``` - * - * @param array parameters */ PHP_METHOD(Phalcon_Tag, form) { @@ -503,10 +435,6 @@ PHP_METHOD(Phalcon_Tag, form) { /** * Converts texts into URL-friendly titles - * - *```php - * echo Phalcon\Tag::friendlyTitle("These are big important news", "-") - *``` */ PHP_METHOD(Phalcon_Tag, friendlyTitle) { @@ -571,13 +499,13 @@ PHP_METHOD(Phalcon_Tag, friendlyTitle) { ZVAL_LONG(&_2$$3, 6); ZEPHIR_INIT_VAR(&_3$$3); ZVAL_STRING(&_3$$3, "en_US.UTF-8"); - ZEPHIR_CALL_FUNCTION(&locale, "setlocale", NULL, 277, &_2$$3, &_3$$3); + ZEPHIR_CALL_FUNCTION(&locale, "setlocale", NULL, 0, &_2$$3, &_3$$3); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_3$$3); ZVAL_STRING(&_3$$3, "UTF-8"); ZEPHIR_INIT_VAR(&_4$$3); ZVAL_STRING(&_4$$3, "ASCII//TRANSLIT"); - ZEPHIR_CALL_FUNCTION(&_5$$3, "iconv", NULL, 278, &_3$$3, &_4$$3, &text); + ZEPHIR_CALL_FUNCTION(&_5$$3, "iconv", NULL, 492, &_3$$3, &_4$$3, &text); zephir_check_call_status(); zephir_get_strval(&text, &_5$$3); } @@ -587,11 +515,11 @@ PHP_METHOD(Phalcon_Tag, friendlyTitle) { _6$$4 = Z_TYPE_P(replace) != IS_STRING; } if (UNEXPECTED(_6$$4)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_tag_exception_ce, "Parameter replace must be an array or a string", "phalcon/Tag.zep", 298); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_tag_exception_ce, "Parameter replace must be an array or a string", "phalcon/Tag.zep", 226); return; } if (Z_TYPE_P(replace) == IS_ARRAY) { - zephir_is_iterable(replace, 0, "phalcon/Tag.zep", 305); + zephir_is_iterable(replace, 0, "phalcon/Tag.zep", 233); if (Z_TYPE_P(replace) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(replace), _7$$6) { @@ -657,7 +585,7 @@ PHP_METHOD(Phalcon_Tag, friendlyTitle) { zephir_check_call_status(); if (zephir_is_true(&_17)) { ZVAL_LONG(&_18$$11, 6); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 277, &_18$$11, &locale); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 0, &_18$$11, &locale); zephir_check_call_status(); } RETURN_CCTOR(&friendly); @@ -873,7 +801,7 @@ PHP_METHOD(Phalcon_Tag, getEscaperService) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 5, &_1$$4); zephir_check_call_status(); - zephir_throw_exception_debug(&_0$$4, "phalcon/Tag.zep", 423 TSRMLS_CC); + zephir_throw_exception_debug(&_0$$4, "phalcon/Tag.zep", 351 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -889,23 +817,7 @@ PHP_METHOD(Phalcon_Tag, getEscaperService) { } /** - * Gets the current document title. - * The title will be automatically escaped. - * - * ```php - * Tag::prependTitle('Hello'); - * Tag::setTitle('World'); - * Tag::appendTitle('from Phalcon'); - * - * echo Tag::getTitle(); // Hello World from Phalcon - * echo Tag::getTitle(false); // World from Phalcon - * echo Tag::getTitle(true, false); // Hello World - * echo Tag::getTitle(false, false); // World - * ``` - * - * ```php - * {{ get_title() }} - * ``` + * Gets the current document title. The title will be automatically escaped. */ PHP_METHOD(Phalcon_Tag, getTitle) { @@ -986,9 +898,9 @@ PHP_METHOD(Phalcon_Tag, getTitle) { zephir_read_static_property_ce(&_6$$3, phalcon_tag_ce, SL("documentPrependTitle"), PH_NOISY_CC); ZEPHIR_CPY_WRT(&documentPrependTitle, &_6$$3); if (!(ZEPHIR_IS_EMPTY(&documentPrependTitle))) { - ZEPHIR_CALL_FUNCTION(&tmp$$5, "array_reverse", NULL, 280, &documentPrependTitle); + ZEPHIR_CALL_FUNCTION(&tmp$$5, "array_reverse", NULL, 0, &documentPrependTitle); zephir_check_call_status(); - zephir_is_iterable(&tmp$$5, 0, "phalcon/Tag.zep", 479); + zephir_is_iterable(&tmp$$5, 0, "phalcon/Tag.zep", 391); if (Z_TYPE_P(&tmp$$5) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&tmp$$5), _7$$5) { @@ -996,7 +908,7 @@ PHP_METHOD(Phalcon_Tag, getTitle) { ZVAL_COPY(&title, _7$$5); ZEPHIR_CALL_METHOD(&_9$$6, &escaper, "escapehtml", &_10, 0, &title); zephir_check_call_status(); - zephir_array_append(&items, &_9$$6, PH_SEPARATE, "phalcon/Tag.zep", 477); + zephir_array_append(&items, &_9$$6, PH_SEPARATE, "phalcon/Tag.zep", 389); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &tmp$$5, "rewind", NULL, 0); @@ -1011,7 +923,7 @@ PHP_METHOD(Phalcon_Tag, getTitle) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_11$$7, &escaper, "escapehtml", &_12, 0, &title); zephir_check_call_status(); - zephir_array_append(&items, &_11$$7, PH_SEPARATE, "phalcon/Tag.zep", 477); + zephir_array_append(&items, &_11$$7, PH_SEPARATE, "phalcon/Tag.zep", 389); ZEPHIR_CALL_METHOD(NULL, &tmp$$5, "next", NULL, 0); zephir_check_call_status(); } @@ -1020,7 +932,7 @@ PHP_METHOD(Phalcon_Tag, getTitle) { } } if (!(ZEPHIR_IS_EMPTY(&documentTitle))) { - zephir_array_append(&items, &documentTitle, PH_SEPARATE, "phalcon/Tag.zep", 483); + zephir_array_append(&items, &documentTitle, PH_SEPARATE, "phalcon/Tag.zep", 395); } if (append) { zephir_read_static_property_ce(&_13$$9, phalcon_tag_ce, SL("documentAppendTitle"), PH_NOISY_CC | PH_READONLY); @@ -1033,7 +945,7 @@ PHP_METHOD(Phalcon_Tag, getTitle) { zephir_read_static_property_ce(&_15$$9, phalcon_tag_ce, SL("documentAppendTitle"), PH_NOISY_CC); ZEPHIR_CPY_WRT(&documentAppendTitle, &_15$$9); if (!(ZEPHIR_IS_EMPTY(&documentAppendTitle))) { - zephir_is_iterable(&documentAppendTitle, 0, "phalcon/Tag.zep", 497); + zephir_is_iterable(&documentAppendTitle, 0, "phalcon/Tag.zep", 409); if (Z_TYPE_P(&documentAppendTitle) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&documentAppendTitle), _16$$11) { @@ -1041,7 +953,7 @@ PHP_METHOD(Phalcon_Tag, getTitle) { ZVAL_COPY(&title, _16$$11); ZEPHIR_CALL_METHOD(&_18$$12, &escaper, "escapehtml", &_19, 0, &title); zephir_check_call_status(); - zephir_array_append(&items, &_18$$12, PH_SEPARATE, "phalcon/Tag.zep", 495); + zephir_array_append(&items, &_18$$12, PH_SEPARATE, "phalcon/Tag.zep", 407); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &documentAppendTitle, "rewind", NULL, 0); @@ -1056,7 +968,7 @@ PHP_METHOD(Phalcon_Tag, getTitle) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_20$$13, &escaper, "escapehtml", &_21, 0, &title); zephir_check_call_status(); - zephir_array_append(&items, &_20$$13, PH_SEPARATE, "phalcon/Tag.zep", 495); + zephir_array_append(&items, &_20$$13, PH_SEPARATE, "phalcon/Tag.zep", 407); ZEPHIR_CALL_METHOD(NULL, &documentAppendTitle, "next", NULL, 0); zephir_check_call_status(); } @@ -1078,14 +990,6 @@ PHP_METHOD(Phalcon_Tag, getTitle) { /** * Gets the current document title separator - * - * ```php - * echo Phalcon\Tag::getTitleSeparator(); - * ``` - * - * ```php - * {{ get_title_separator() }} - * ``` */ PHP_METHOD(Phalcon_Tag, getTitleSeparator) { @@ -1135,7 +1039,7 @@ PHP_METHOD(Phalcon_Tag, getUrlService) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 5, &_1$$4); zephir_check_call_status(); - zephir_throw_exception_debug(&_0$$4, "phalcon/Tag.zep", 542 TSRMLS_CC); + zephir_throw_exception_debug(&_0$$4, "phalcon/Tag.zep", 446 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -1153,9 +1057,6 @@ PHP_METHOD(Phalcon_Tag, getUrlService) { /** * Every helper calls this function to check whether a component has a * predefined value using Phalcon\Tag::setDefault() or value from $_POST - * - * @param string name - * @return mixed */ PHP_METHOD(Phalcon_Tag, getValue) { @@ -1200,8 +1101,6 @@ PHP_METHOD(Phalcon_Tag, getValue) { /** * Check if a helper has a default value set using Phalcon\Tag::setDefault() * or value from $_POST - * - * @param string name */ PHP_METHOD(Phalcon_Tag, hasValue) { @@ -1229,17 +1128,6 @@ PHP_METHOD(Phalcon_Tag, hasValue) { /** * Builds a HTML input[type="hidden"] tag - * - *```php - * echo Phalcon\Tag::hiddenField( - * [ - * "name", - * "value" => "mike", - * ] - * ); - *``` - * - * @param array parameters */ PHP_METHOD(Phalcon_Tag, hiddenField) { @@ -1267,26 +1155,6 @@ PHP_METHOD(Phalcon_Tag, hiddenField) { /** * Builds HTML IMG tags - * - * ```php - * echo Phalcon\Tag::image("img/bg.png"); - * - * echo Phalcon\Tag::image( - * [ - * "img/photo.jpg", - * "alt" => "Some Photo", - * ] - * ); - * ``` - * - * Volt Syntax: - * ```php - * {{ image("img/bg.png") }} - * {{ image("img/photo.jpg", "alt": "Some Photo") }} - * {{ image("http://static.mywebsite.com/img/bg.png", false) }} - * ``` - * - * @param array parameters */ PHP_METHOD(Phalcon_Tag, image) { @@ -1331,7 +1199,7 @@ PHP_METHOD(Phalcon_Tag, image) { ZEPHIR_CPY_WRT(¶ms, parameters); if (zephir_array_isset_long(¶ms, 1)) { ZEPHIR_OBS_VAR(&_0$$5); - zephir_array_fetch_long(&_0$$5, ¶ms, 1, PH_NOISY, "phalcon/Tag.zep", 646 TSRMLS_CC); + zephir_array_fetch_long(&_0$$5, ¶ms, 1, PH_NOISY, "phalcon/Tag.zep", 514 TSRMLS_CC); local = zephir_get_boolval(&_0$$5); } } @@ -1348,7 +1216,7 @@ PHP_METHOD(Phalcon_Tag, image) { if (local) { ZEPHIR_CALL_SELF(&_2$$9, "geturlservice", NULL, 0); zephir_check_call_status(); - zephir_array_fetch_string(&_4$$9, ¶ms, SL("src"), PH_NOISY | PH_READONLY, "phalcon/Tag.zep", 662 TSRMLS_CC); + zephir_array_fetch_string(&_4$$9, ¶ms, SL("src"), PH_NOISY | PH_READONLY, "phalcon/Tag.zep", 530 TSRMLS_CC); ZEPHIR_CALL_METHOD(&_3$$9, &_2$$9, "getstatic", NULL, 0, &_4$$9); zephir_check_call_status(); zephir_array_update_string(¶ms, SL("src"), &_3$$9, PH_COPY | PH_SEPARATE); @@ -1369,21 +1237,6 @@ PHP_METHOD(Phalcon_Tag, image) { /** * Builds a HTML input[type="image"] tag - * - *```php - * echo Phalcon\Tag::imageInput( - * [ - * "src" => "/img/button.png", - * ] - * ); - *``` - * - * Volt syntax: - *```php - * {{ image_input("src": "/img/button.png") }} - *``` - * - * @param array parameters */ PHP_METHOD(Phalcon_Tag, imageInput) { @@ -1413,23 +1266,6 @@ PHP_METHOD(Phalcon_Tag, imageInput) { /** * Builds a SCRIPT[type="javascript"] tag - * - * ```php - * echo Phalcon\Tag::javascriptInclude( - * "http://ajax.googleapis.com/ajax/libs/jquery/2.2.3/jquery.min.js", - * false - * ); - * - * echo Phalcon\Tag::javascriptInclude("javascript/jquery.js"); - * ``` - * - * Volt syntax: - * ```php - * {{ javascript_include("http://ajax.googleapis.com/ajax/libs/jquery/2.2.3/jquery.min.js", false) }} - * {{ javascript_include("javascript/jquery.js") }} - * ``` - * - * @param array parameters */ PHP_METHOD(Phalcon_Tag, javascriptInclude) { @@ -1482,12 +1318,12 @@ PHP_METHOD(Phalcon_Tag, javascriptInclude) { } if (zephir_array_isset_long(¶ms, 1)) { ZEPHIR_OBS_VAR(&_1$$5); - zephir_array_fetch_long(&_1$$5, ¶ms, 1, PH_NOISY, "phalcon/Tag.zep", 733 TSRMLS_CC); + zephir_array_fetch_long(&_1$$5, ¶ms, 1, PH_NOISY, "phalcon/Tag.zep", 569 TSRMLS_CC); local = zephir_get_boolval(&_1$$5); } else { if (zephir_array_isset_string(¶ms, SL("local"))) { ZEPHIR_OBS_VAR(&_2$$7); - zephir_array_fetch_string(&_2$$7, ¶ms, SL("local"), PH_NOISY, "phalcon/Tag.zep", 736 TSRMLS_CC); + zephir_array_fetch_string(&_2$$7, ¶ms, SL("local"), PH_NOISY, "phalcon/Tag.zep", 572 TSRMLS_CC); local = zephir_get_boolval(&_2$$7); zephir_array_unset_string(¶ms, SL("local"), PH_SEPARATE); } @@ -1504,7 +1340,7 @@ PHP_METHOD(Phalcon_Tag, javascriptInclude) { } if (!(zephir_array_isset_string(¶ms, SL("src")))) { if (zephir_array_isset_long(¶ms, 0)) { - zephir_array_fetch_long(&_6$$10, ¶ms, 0, PH_NOISY | PH_READONLY, "phalcon/Tag.zep", 748 TSRMLS_CC); + zephir_array_fetch_long(&_6$$10, ¶ms, 0, PH_NOISY | PH_READONLY, "phalcon/Tag.zep", 584 TSRMLS_CC); zephir_array_update_string(¶ms, SL("src"), &_6$$10, PH_COPY | PH_SEPARATE); } else { ZEPHIR_INIT_VAR(&_7$$11); @@ -1515,7 +1351,7 @@ PHP_METHOD(Phalcon_Tag, javascriptInclude) { if (local) { ZEPHIR_CALL_SELF(&_8$$12, "geturlservice", NULL, 0); zephir_check_call_status(); - zephir_array_fetch_string(&_10$$12, ¶ms, SL("src"), PH_NOISY | PH_READONLY, "phalcon/Tag.zep", 758 TSRMLS_CC); + zephir_array_fetch_string(&_10$$12, ¶ms, SL("src"), PH_NOISY | PH_READONLY, "phalcon/Tag.zep", 594 TSRMLS_CC); ZEPHIR_CALL_METHOD(&_9$$12, &_8$$12, "getstatic", NULL, 0, &_10$$12); zephir_check_call_status(); zephir_array_update_string(¶ms, SL("src"), &_9$$12, PH_COPY | PH_SEPARATE); @@ -1535,57 +1371,6 @@ PHP_METHOD(Phalcon_Tag, javascriptInclude) { /** * Builds a HTML A tag using framework conventions - * - *```php - * echo Phalcon\Tag::linkTo("signup/register", "Register Here!"); - * - * echo Phalcon\Tag::linkTo( - * [ - * "signup/register", - * "Register Here!" - * ] - * ); - * - * echo Phalcon\Tag::linkTo( - * [ - * "signup/register", - * "Register Here!", - * "class" => "btn-primary", - * ] - * ); - * - * echo Phalcon\Tag::linkTo("http://phalcon.io/", "Phalcon", false); - * - * echo Phalcon\Tag::linkTo( - * [ - * "http://phalcon.io/", - * "Phalcon Home", - * false, - * ] - * ); - * - * echo Phalcon\Tag::linkTo( - * [ - * "http://phalcon.io/", - * "Phalcon Home", - * "local" => false, - * ] - * ); - * - * echo Phalcon\Tag::linkTo( - * [ - * "action" => "http://phalcon.io/", - * "text" => "Phalcon Home", - * "local" => false, - * "target" => "_new" - * ] - * ); - * - *``` - * - * @param array|string parameters - * @param string text - * @param bool local */ PHP_METHOD(Phalcon_Tag, linkTo) { @@ -1689,8 +1474,6 @@ PHP_METHOD(Phalcon_Tag, linkTo) { /** * Builds a HTML input[type="month"] tag - * - * @param array parameters */ PHP_METHOD(Phalcon_Tag, monthField) { @@ -1718,18 +1501,6 @@ PHP_METHOD(Phalcon_Tag, monthField) { /** * Builds a HTML input[type="number"] tag - * - * ```php - * echo Phalcon\Tag::numericField( - * [ - * "price", - * "min" => "1", - * "max" => "5", - * ] - * ); - * ``` - * - * @param array parameters */ PHP_METHOD(Phalcon_Tag, numericField) { @@ -1757,17 +1528,6 @@ PHP_METHOD(Phalcon_Tag, numericField) { /** * Builds a HTML input[type="password"] tag - * - *```php - * echo Phalcon\Tag::passwordField( - * [ - * "name", - * "size" => 30, - * ] - * ); - *``` - * - * @param array parameters */ PHP_METHOD(Phalcon_Tag, passwordField) { @@ -1828,22 +1588,6 @@ PHP_METHOD(Phalcon_Tag, prependTitle) { /** * Builds a HTML input[type="radio"] tag - * - *```php - * echo Phalcon\Tag::radioField( - * [ - * "weather", - * "value" => "hot", - * ] - * ); - *``` - * - * Volt syntax: - *```php - * {{ radio_field("Save") }} - *``` - * - * @param array parameters */ PHP_METHOD(Phalcon_Tag, radioField) { @@ -1871,8 +1615,6 @@ PHP_METHOD(Phalcon_Tag, radioField) { /** * Builds a HTML input[type="range"] tag - * - * @param array parameters */ PHP_METHOD(Phalcon_Tag, rangeField) { @@ -1968,7 +1710,7 @@ PHP_METHOD(Phalcon_Tag, renderAttributes) { zephir_array_update_string(&order, SL("class"), &__$null, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_VAR(&attrs); array_init(&attrs); - zephir_is_iterable(&order, 0, "phalcon/Tag.zep", 997); + zephir_is_iterable(&order, 0, "phalcon/Tag.zep", 739); if (Z_TYPE_P(&order) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&order), _2, _3, _0) { @@ -2008,7 +1750,7 @@ PHP_METHOD(Phalcon_Tag, renderAttributes) { } ZEPHIR_INIT_NVAR(&value); ZEPHIR_INIT_NVAR(&key); - zephir_is_iterable(&attributes, 0, "phalcon/Tag.zep", 1003); + zephir_is_iterable(&attributes, 0, "phalcon/Tag.zep", 745); if (Z_TYPE_P(&attributes) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&attributes), _6, _7, _4) { @@ -2051,7 +1793,7 @@ PHP_METHOD(Phalcon_Tag, renderAttributes) { ZEPHIR_CPY_WRT(&escaper, &_8); zephir_array_unset_string(&attrs, SL("escape"), PH_SEPARATE); ZEPHIR_CPY_WRT(&newCode, &code); - zephir_is_iterable(&attrs, 0, "phalcon/Tag.zep", 1027); + zephir_is_iterable(&attrs, 0, "phalcon/Tag.zep", 769); if (Z_TYPE_P(&attrs) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&attrs), _11, _12, _9) { @@ -2081,7 +1823,7 @@ PHP_METHOD(Phalcon_Tag, renderAttributes) { ZEPHIR_CONCAT_SVSVS(&_17$$13, "Value at index: '", &key, "' type: '", &_16$$13, "' cannot be rendered"); ZEPHIR_CALL_METHOD(NULL, &_15$$13, "__construct", &_18, 5, &_17$$13); zephir_check_call_status(); - zephir_throw_exception_debug(&_15$$13, "phalcon/Tag.zep", 1014 TSRMLS_CC); + zephir_throw_exception_debug(&_15$$13, "phalcon/Tag.zep", 756 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -2127,7 +1869,7 @@ PHP_METHOD(Phalcon_Tag, renderAttributes) { ZEPHIR_CONCAT_SVSVS(&_25$$18, "Value at index: '", &key, "' type: '", &_24$$18, "' cannot be rendered"); ZEPHIR_CALL_METHOD(NULL, &_23$$18, "__construct", &_18, 5, &_25$$18); zephir_check_call_status(); - zephir_throw_exception_debug(&_23$$18, "phalcon/Tag.zep", 1014 TSRMLS_CC); + zephir_throw_exception_debug(&_23$$18, "phalcon/Tag.zep", 756 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -2153,21 +1895,6 @@ PHP_METHOD(Phalcon_Tag, renderAttributes) { /** * Renders the title with title tags. The title is automaticall escaped - * - * ```php - * Tag::prependTitle('Hello'); - * Tag::setTitle('World'); - * Tag::appendTitle('from Phalcon'); - * - * echo Tag::renderTitle(); // Hello World from Phalcon - * echo Tag::renderTitle(false); // World from Phalcon - * echo Tag::renderTitle(true, false); // Hello World - * echo Tag::renderTitle(false, false); // World - * ``` - * - * ```php - * {{ render_title() }} - * ``` */ PHP_METHOD(Phalcon_Tag, renderTitle) { @@ -2252,8 +1979,6 @@ PHP_METHOD(Phalcon_Tag, resetInput) { /** * Builds a HTML input[type="search"] tag - * - * @param array parameters */ PHP_METHOD(Phalcon_Tag, searchField) { @@ -2281,24 +2006,6 @@ PHP_METHOD(Phalcon_Tag, searchField) { /** * Builds a HTML SELECT tag using a Phalcon\Mvc\Model resultset as options - * - *```php - * echo Phalcon\Tag::select( - * [ - * "robotId", - * Robots::find("type = "mechanical""), - * "using" => ["id", "name"], - * ] - * ); - *``` - * - * Volt syntax: - *```php - * {{ select("robotId", robots, "using": ["id", "name"]) }} - *``` - * - * @param array parameters - * @param array data */ PHP_METHOD(Phalcon_Tag, select) { @@ -2329,19 +2036,6 @@ PHP_METHOD(Phalcon_Tag, select) { /** * Builds a HTML SELECT tag using a PHP array for options - * - *```php - * echo Phalcon\Tag::selectStatic( - * "status", - * [ - * "A" => "Active", - * "I" => "Inactive", - * ] - * ); - *``` - * - * @param array parameters - * @param array data */ PHP_METHOD(Phalcon_Tag, selectStatic) { @@ -2394,16 +2088,6 @@ PHP_METHOD(Phalcon_Tag, setAutoescape) { /** * Assigns default values to generated tags by helpers - * - * ```php - * // Assigning "peter" to "name" component - * Phalcon\Tag::setDefault("name", "peter"); - * - * // Later in the view - * echo Phalcon\Tag::textField("name"); // Will have the value "peter" by default - * ``` - * - * @param string value */ PHP_METHOD(Phalcon_Tag, setDefault) { @@ -2437,7 +2121,7 @@ PHP_METHOD(Phalcon_Tag, setDefault) { _0$$3 = Z_TYPE_P(value) == IS_OBJECT; } if (UNEXPECTED(_0$$3)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_tag_exception_ce, "Only scalar values can be assigned to UI components", "phalcon/Tag.zep", 1152); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_tag_exception_ce, "Only scalar values can be assigned to UI components", "phalcon/Tag.zep", 836); return; } } @@ -2448,18 +2132,6 @@ PHP_METHOD(Phalcon_Tag, setDefault) { /** * Assigns default values to generated tags by helpers - * - * ```php - * // Assigning "peter" to "name" component - * Phalcon\Tag::setDefaults( - * [ - * "name" => "peter", - * ] - * ); - * - * // Later in the view - * echo Phalcon\Tag::textField("name"); // Will have the value "peter" by default - * ``` */ PHP_METHOD(Phalcon_Tag, setDefaults) { @@ -2557,10 +2229,6 @@ PHP_METHOD(Phalcon_Tag, setDocType) { /** * Set the title of view content - * - *```php - * Phalcon\Tag::setTitle("Welcome to my Page"); - *``` */ PHP_METHOD(Phalcon_Tag, setTitle) { @@ -2584,10 +2252,6 @@ PHP_METHOD(Phalcon_Tag, setTitle) { /** * Set the title separator of view content - * - *```php - * Phalcon\Tag::setTitleSeparator("-"); - *``` */ PHP_METHOD(Phalcon_Tag, setTitleSeparator) { @@ -2611,23 +2275,6 @@ PHP_METHOD(Phalcon_Tag, setTitleSeparator) { /** * Builds a LINK[rel="stylesheet"] tag - * - * ```php - * echo Phalcon\Tag::stylesheetLink( - * "http://fonts.googleapis.com/css?family=Rosario", - * false - * ); - * - * echo Phalcon\Tag::stylesheetLink("css/style.css"); - * ``` - * - * Volt Syntax: - *```php - * {{ stylesheet_link("http://fonts.googleapis.com/css?family=Rosario", false) }} - * {{ stylesheet_link("css/style.css") }} - *``` - * - * @param array parameters */ PHP_METHOD(Phalcon_Tag, stylesheetLink) { @@ -2684,12 +2331,12 @@ PHP_METHOD(Phalcon_Tag, stylesheetLink) { } if (zephir_array_isset_long(¶ms, 1)) { ZEPHIR_OBS_VAR(&_1$$5); - zephir_array_fetch_long(&_1$$5, ¶ms, 1, PH_NOISY, "phalcon/Tag.zep", 1258 TSRMLS_CC); + zephir_array_fetch_long(&_1$$5, ¶ms, 1, PH_NOISY, "phalcon/Tag.zep", 905 TSRMLS_CC); local = zephir_get_boolval(&_1$$5); } else { if (zephir_array_isset_string(¶ms, SL("local"))) { ZEPHIR_OBS_VAR(&_2$$7); - zephir_array_fetch_string(&_2$$7, ¶ms, SL("local"), PH_NOISY, "phalcon/Tag.zep", 1261 TSRMLS_CC); + zephir_array_fetch_string(&_2$$7, ¶ms, SL("local"), PH_NOISY, "phalcon/Tag.zep", 908 TSRMLS_CC); local = zephir_get_boolval(&_2$$7); zephir_array_unset_string(¶ms, SL("local"), PH_SEPARATE); } @@ -2701,7 +2348,7 @@ PHP_METHOD(Phalcon_Tag, stylesheetLink) { } if (!(zephir_array_isset_string(¶ms, SL("href")))) { if (zephir_array_isset_long(¶ms, 0)) { - zephir_array_fetch_long(&_4$$10, ¶ms, 0, PH_NOISY | PH_READONLY, "phalcon/Tag.zep", 1273 TSRMLS_CC); + zephir_array_fetch_long(&_4$$10, ¶ms, 0, PH_NOISY | PH_READONLY, "phalcon/Tag.zep", 920 TSRMLS_CC); zephir_array_update_string(¶ms, SL("href"), &_4$$10, PH_COPY | PH_SEPARATE); } else { ZEPHIR_INIT_VAR(&_5$$11); @@ -2712,7 +2359,7 @@ PHP_METHOD(Phalcon_Tag, stylesheetLink) { if (local) { ZEPHIR_CALL_SELF(&_6$$12, "geturlservice", NULL, 0); zephir_check_call_status(); - zephir_array_fetch_string(&_8$$12, ¶ms, SL("href"), PH_NOISY | PH_READONLY, "phalcon/Tag.zep", 1285 TSRMLS_CC); + zephir_array_fetch_string(&_8$$12, ¶ms, SL("href"), PH_NOISY | PH_READONLY, "phalcon/Tag.zep", 932 TSRMLS_CC); ZEPHIR_CALL_METHOD(&_7$$12, &_6$$12, "getstatic", NULL, 0, &_8$$12); zephir_check_call_status(); zephir_array_update_string(¶ms, SL("href"), &_7$$12, PH_COPY | PH_SEPARATE); @@ -2746,17 +2393,6 @@ PHP_METHOD(Phalcon_Tag, stylesheetLink) { /** * Builds a HTML input[type="submit"] tag - * - *```php - * echo Phalcon\Tag::submitButton("Save") - *``` - * - * Volt syntax: - *```php - * {{ submit_button("Save") }} - *``` - * - * @param array parameters */ PHP_METHOD(Phalcon_Tag, submitButton) { @@ -2869,10 +2505,6 @@ PHP_METHOD(Phalcon_Tag, tagHtml) { /** * Builds a HTML tag closing tag - * - *```php - * echo Phalcon\Tag::tagHtmlClose("script", true); - *``` */ PHP_METHOD(Phalcon_Tag, tagHtmlClose) { @@ -2909,8 +2541,6 @@ PHP_METHOD(Phalcon_Tag, tagHtmlClose) { /** * Builds a HTML input[type="tel"] tag - * - * @param array parameters */ PHP_METHOD(Phalcon_Tag, telField) { @@ -2938,23 +2568,6 @@ PHP_METHOD(Phalcon_Tag, telField) { /** * Builds a HTML TEXTAREA tag - * - *```php - * echo Phalcon\Tag::textArea( - * [ - * "comments", - * "cols" => 10, - * "rows" => 4, - * ] - * ); - *``` - * - * Volt syntax: - *```php - * {{ text_area("comments", "cols": 10, "rows": 4) }} - *``` - * - * @param array parameters */ PHP_METHOD(Phalcon_Tag, textArea) { @@ -2988,17 +2601,17 @@ PHP_METHOD(Phalcon_Tag, textArea) { } if (!(zephir_array_isset_long(¶ms, 0))) { if (zephir_array_isset_string(¶ms, SL("id"))) { - zephir_array_fetch_string(&_0$$6, ¶ms, SL("id"), PH_NOISY | PH_READONLY, "phalcon/Tag.zep", 1428 TSRMLS_CC); + zephir_array_fetch_string(&_0$$6, ¶ms, SL("id"), PH_NOISY | PH_READONLY, "phalcon/Tag.zep", 1041 TSRMLS_CC); zephir_array_update_long(¶ms, 0, &_0$$6, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } } ZEPHIR_OBS_VAR(&id); - zephir_array_fetch_long(&id, ¶ms, 0, PH_NOISY, "phalcon/Tag.zep", 1432 TSRMLS_CC); + zephir_array_fetch_long(&id, ¶ms, 0, PH_NOISY, "phalcon/Tag.zep", 1045 TSRMLS_CC); if (!(zephir_array_isset_string(¶ms, SL("name")))) { zephir_array_update_string(¶ms, SL("name"), &id, PH_COPY | PH_SEPARATE); } else { ZEPHIR_OBS_VAR(&name); - zephir_array_fetch_string(&name, ¶ms, SL("name"), PH_NOISY, "phalcon/Tag.zep", 1437 TSRMLS_CC); + zephir_array_fetch_string(&name, ¶ms, SL("name"), PH_NOISY, "phalcon/Tag.zep", 1050 TSRMLS_CC); if (ZEPHIR_IS_EMPTY(&name)) { zephir_array_update_string(¶ms, SL("name"), &id, PH_COPY | PH_SEPARATE); } @@ -3008,7 +2621,7 @@ PHP_METHOD(Phalcon_Tag, textArea) { } if (zephir_array_isset_string(¶ms, SL("value"))) { ZEPHIR_OBS_VAR(&content); - zephir_array_fetch_string(&content, ¶ms, SL("value"), PH_NOISY, "phalcon/Tag.zep", 1449 TSRMLS_CC); + zephir_array_fetch_string(&content, ¶ms, SL("value"), PH_NOISY, "phalcon/Tag.zep", 1062 TSRMLS_CC); zephir_array_unset_string(¶ms, SL("value"), PH_SEPARATE); } else { ZEPHIR_CALL_SELF(&content, "getvalue", NULL, 0, &id, ¶ms); @@ -3029,17 +2642,6 @@ PHP_METHOD(Phalcon_Tag, textArea) { /** * Builds a HTML input[type="text"] tag - * - * ```php - * echo Phalcon\Tag::textField( - * [ - * "name", - * "size" => 30, - * ] - * ); - * ``` - * - * @param array parameters */ PHP_METHOD(Phalcon_Tag, textField) { @@ -3067,8 +2669,6 @@ PHP_METHOD(Phalcon_Tag, textField) { /** * Builds a HTML input[type="time"] tag - * - * @param array parameters */ PHP_METHOD(Phalcon_Tag, timeField) { @@ -3096,8 +2696,6 @@ PHP_METHOD(Phalcon_Tag, timeField) { /** * Builds a HTML input[type="url"] tag - * - * @param array parameters */ PHP_METHOD(Phalcon_Tag, urlField) { @@ -3125,8 +2723,6 @@ PHP_METHOD(Phalcon_Tag, urlField) { /** * Builds a HTML input[type="week"] tag - * - * @param array parameters */ PHP_METHOD(Phalcon_Tag, weekField) { @@ -3154,8 +2750,6 @@ PHP_METHOD(Phalcon_Tag, weekField) { /** * Builds generic INPUT tags - * - * @param array parameters */ PHP_METHOD(Phalcon_Tag, inputField) { @@ -3192,14 +2786,14 @@ PHP_METHOD(Phalcon_Tag, inputField) { ZEPHIR_INIT_VAR(¶ms); array_init(¶ms); if (Z_TYPE_P(parameters) != IS_ARRAY) { - zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/Tag.zep", 1523); + zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/Tag.zep", 1117); } else { ZEPHIR_CPY_WRT(¶ms, parameters); } if (asValue == 0) { ZEPHIR_OBS_VAR(&id); if (!(zephir_array_isset_long_fetch(&id, ¶ms, 0, 0 TSRMLS_CC))) { - zephir_array_fetch_string(&_0$$6, ¶ms, SL("id"), PH_NOISY | PH_READONLY, "phalcon/Tag.zep", 1530 TSRMLS_CC); + zephir_array_fetch_string(&_0$$6, ¶ms, SL("id"), PH_NOISY | PH_READONLY, "phalcon/Tag.zep", 1124 TSRMLS_CC); zephir_array_update_long(¶ms, 0, &_0$$6, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } ZEPHIR_OBS_VAR(&name); @@ -3211,7 +2805,7 @@ PHP_METHOD(Phalcon_Tag, inputField) { zephir_array_update_string(¶ms, SL("name"), &id, PH_COPY | PH_SEPARATE); } if (Z_TYPE_P(&id) == IS_STRING) { - _1$$10 = !(zephir_memnstr_str(&id, SL("["), "phalcon/Tag.zep", 1545)); + _1$$10 = !(zephir_memnstr_str(&id, SL("["), "phalcon/Tag.zep", 1139)); if (_1$$10) { _1$$10 = !(zephir_array_isset_string(¶ms, SL("id"))); } @@ -3247,8 +2841,6 @@ PHP_METHOD(Phalcon_Tag, inputField) { /** * Builds INPUT tags that implements the checked attribute - * - * @param array parameters */ PHP_METHOD(Phalcon_Tag, inputFieldChecked) { @@ -3289,16 +2881,16 @@ PHP_METHOD(Phalcon_Tag, inputFieldChecked) { ZEPHIR_CPY_WRT(¶ms, parameters); } if (!(zephir_array_isset_long(¶ms, 0))) { - zephir_array_fetch_string(&_0$$5, ¶ms, SL("id"), PH_NOISY | PH_READONLY, "phalcon/Tag.zep", 1593 TSRMLS_CC); + zephir_array_fetch_string(&_0$$5, ¶ms, SL("id"), PH_NOISY | PH_READONLY, "phalcon/Tag.zep", 1185 TSRMLS_CC); zephir_array_update_long(¶ms, 0, &_0$$5, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } ZEPHIR_OBS_VAR(&id); - zephir_array_fetch_long(&id, ¶ms, 0, PH_NOISY, "phalcon/Tag.zep", 1596 TSRMLS_CC); + zephir_array_fetch_long(&id, ¶ms, 0, PH_NOISY, "phalcon/Tag.zep", 1188 TSRMLS_CC); if (!(zephir_array_isset_string(¶ms, SL("name")))) { zephir_array_update_string(¶ms, SL("name"), &id, PH_COPY | PH_SEPARATE); } else { ZEPHIR_OBS_VAR(&name); - zephir_array_fetch_string(&name, ¶ms, SL("name"), PH_NOISY, "phalcon/Tag.zep", 1601 TSRMLS_CC); + zephir_array_fetch_string(&name, ¶ms, SL("name"), PH_NOISY, "phalcon/Tag.zep", 1193 TSRMLS_CC); if (ZEPHIR_IS_EMPTY(&name)) { zephir_array_update_string(¶ms, SL("name"), &id, PH_COPY | PH_SEPARATE); } diff --git a/ext/phalcon/translate/adapter/gettext.zep.c b/ext/phalcon/translate/adapter/gettext.zep.c index 746af350b4b..b0364ff6776 100644 --- a/ext/phalcon/translate/adapter/gettext.zep.c +++ b/ext/phalcon/translate/adapter/gettext.zep.c @@ -572,7 +572,7 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setLocale) { zephir_check_call_status(); zephir_read_property(&_9, this_ptr, SL("locale"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_10, 6); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 277, &_10, &_9); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 0, &_10, &_9); zephir_check_call_status(); RETURN_MM_MEMBER(getThis(), "locale"); diff --git a/ext/phalcon/translate/interpolator/indexedarray.zep.c b/ext/phalcon/translate/interpolator/indexedarray.zep.c index 27353cd2987..885f8404259 100644 --- a/ext/phalcon/translate/interpolator/indexedarray.zep.c +++ b/ext/phalcon/translate/interpolator/indexedarray.zep.c @@ -76,7 +76,7 @@ PHP_METHOD(Phalcon_Translate_Interpolator_IndexedArray, replacePlaceholders) { if (zephir_fast_count_int(&placeholders TSRMLS_CC)) { ZEPHIR_MAKE_REF(&placeholders); - ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 0, &placeholders, &translation); + ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 503, &placeholders, &translation); ZEPHIR_UNREF(&placeholders); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_0$$3); diff --git a/ext/phalcon/validation.zep.c b/ext/phalcon/validation.zep.c index 9807dc9fc1b..559bbfa7196 100644 --- a/ext/phalcon/validation.zep.c +++ b/ext/phalcon/validation.zep.c @@ -513,7 +513,7 @@ PHP_METHOD(Phalcon_Validation, getValue) { if (Z_TYPE_P(&entity) == IS_OBJECT) { ZEPHIR_INIT_NVAR(&method); ZEPHIR_CONCAT_SV(&method, "set", &camelizedField); - ZEPHIR_CALL_FUNCTION(&_10$$21, "property_exists", NULL, 434, &entity, &field); + ZEPHIR_CALL_FUNCTION(&_10$$21, "property_exists", NULL, 423, &entity, &field); zephir_check_call_status(); if ((zephir_method_exists(&entity, &method TSRMLS_CC) == SUCCESS)) { ZEPHIR_CALL_METHOD_ZVAL(NULL, &entity, &method, NULL, 0, &value); diff --git a/ext/phalcon/validation/validator/creditcard.zep.c b/ext/phalcon/validation/validator/creditcard.zep.c index 2d7ff57c60f..83bc608d24b 100644 --- a/ext/phalcon/validation/validator/creditcard.zep.c +++ b/ext/phalcon/validation/validator/creditcard.zep.c @@ -148,7 +148,7 @@ PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm) { zephir_check_call_status(); zephir_get_arrval(&_1, &_0); ZEPHIR_CPY_WRT(&digits, &_1); - ZEPHIR_CALL_FUNCTION(&_3, "array_reverse", NULL, 280, &digits); + ZEPHIR_CALL_FUNCTION(&_3, "array_reverse", NULL, 0, &digits); zephir_check_call_status(); zephir_is_iterable(&_3, 0, "phalcon/Validation/Validator/CreditCard.zep", 92); if (Z_TYPE_P(&_3) == IS_ARRAY) { diff --git a/ext/phalcon/validation/validator/file/mimetype.zep.c b/ext/phalcon/validation/validator/file/mimetype.zep.c index cb5142b51c4..ce7629f86c9 100644 --- a/ext/phalcon/validation/validator/file/mimetype.zep.c +++ b/ext/phalcon/validation/validator/file/mimetype.zep.c @@ -142,12 +142,12 @@ PHP_METHOD(Phalcon_Validation_Validator_File_MimeType, validate) { } if ((zephir_function_exists_ex(SL("finfo_open") TSRMLS_CC) == SUCCESS)) { ZVAL_LONG(&_2$$6, 16); - ZEPHIR_CALL_FUNCTION(&tmp, "finfo_open", NULL, 359, &_2$$6); + ZEPHIR_CALL_FUNCTION(&tmp, "finfo_open", NULL, 348, &_2$$6); zephir_check_call_status(); zephir_array_fetch_string(&_3$$6, &value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/Validation/Validator/File/MimeType.zep", 102 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 360, &tmp, &_3$$6); + ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 349, &tmp, &_3$$6); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 361, &tmp); + ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 350, &tmp); zephir_check_call_status(); } else { ZEPHIR_OBS_NVAR(&mime); diff --git a/ext/phalcon/validation/validator/file/resolution/equal.zep.c b/ext/phalcon/validation/validator/file/resolution/equal.zep.c index 22bc44c8b50..cf93bc3988e 100644 --- a/ext/phalcon/validation/validator/file/resolution/equal.zep.c +++ b/ext/phalcon/validation/validator/file/resolution/equal.zep.c @@ -119,7 +119,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File_Resolution_Equal, validate) { ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, field); zephir_check_call_status(); zephir_array_fetch_string(&_1, &value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/Validation/Validator/File/Resolution/Equal.zep", 74 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 367, &_1); + ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 356, &_1); zephir_check_call_status(); ZEPHIR_OBS_VAR(&width); zephir_array_fetch_long(&width, &tmp, 0, PH_NOISY, "phalcon/Validation/Validator/File/Resolution/Equal.zep", 75 TSRMLS_CC); diff --git a/ext/phalcon/validation/validator/file/resolution/max.zep.c b/ext/phalcon/validation/validator/file/resolution/max.zep.c index dc6bd2ae902..f3250d52c83 100644 --- a/ext/phalcon/validation/validator/file/resolution/max.zep.c +++ b/ext/phalcon/validation/validator/file/resolution/max.zep.c @@ -129,7 +129,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File_Resolution_Max, validate) { ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, field); zephir_check_call_status(); zephir_array_fetch_string(&_1, &value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/Validation/Validator/File/Resolution/Max.zep", 79 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 367, &_1); + ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 356, &_1); zephir_check_call_status(); ZEPHIR_OBS_VAR(&width); zephir_array_fetch_long(&width, &tmp, 0, PH_NOISY, "phalcon/Validation/Validator/File/Resolution/Max.zep", 80 TSRMLS_CC); diff --git a/ext/phalcon/validation/validator/file/resolution/min.zep.c b/ext/phalcon/validation/validator/file/resolution/min.zep.c index 58f1dd6ae5a..1b3317d6a2c 100644 --- a/ext/phalcon/validation/validator/file/resolution/min.zep.c +++ b/ext/phalcon/validation/validator/file/resolution/min.zep.c @@ -129,7 +129,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File_Resolution_Min, validate) { ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, field); zephir_check_call_status(); zephir_array_fetch_string(&_1, &value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/Validation/Validator/File/Resolution/Min.zep", 79 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 367, &_1); + ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 356, &_1); zephir_check_call_status(); ZEPHIR_OBS_VAR(&width); zephir_array_fetch_long(&width, &tmp, 0, PH_NOISY, "phalcon/Validation/Validator/File/Resolution/Min.zep", 80 TSRMLS_CC); diff --git a/ext/phalcon/validation/validator/stringlength/max.zep.c b/ext/phalcon/validation/validator/stringlength/max.zep.c index df3ab552224..c5c8baf7a25 100644 --- a/ext/phalcon/validation/validator/stringlength/max.zep.c +++ b/ext/phalcon/validation/validator/stringlength/max.zep.c @@ -116,7 +116,7 @@ PHP_METHOD(Phalcon_Validation_Validator_StringLength_Max, validate) { ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, field); zephir_check_call_status(); if ((zephir_function_exists_ex(SL("mb_strlen") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 286, &value); + ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 275, &value); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(&length); diff --git a/ext/phalcon/validation/validator/stringlength/min.zep.c b/ext/phalcon/validation/validator/stringlength/min.zep.c index 33b66319801..150825ae168 100644 --- a/ext/phalcon/validation/validator/stringlength/min.zep.c +++ b/ext/phalcon/validation/validator/stringlength/min.zep.c @@ -116,7 +116,7 @@ PHP_METHOD(Phalcon_Validation_Validator_StringLength_Min, validate) { ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, field); zephir_check_call_status(); if ((zephir_function_exists_ex(SL("mb_strlen") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 286, &value); + ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 275, &value); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(&length); From cebf669ac5f2846b4b285f5b9a5c1252674dc205 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Thu, 12 Sep 2019 14:54:07 -0400 Subject: [PATCH 158/202] [interface] - Updated changelog --- CHANGELOG-4.0.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG-4.0.md b/CHANGELOG-4.0.md index b5bd1d0268a..5f9218ea973 100644 --- a/CHANGELOG-4.0.md +++ b/CHANGELOG-4.0.md @@ -31,10 +31,13 @@ - Fixed `Phalcon\Flash\*` interfaces for `message()` to return `string/null` [#14349](https://github.com/phalcon/cphalcon/issues/14349) - Fixed `Phalcon\Paginator\Adapter\AbstractAdapter` throw exception if `limit <= 0` [#14303](https://github.com/phalcon/cphalcon/issues/14303) - Fixed `Phalcon\Mvc\Model\Query\Builder` Empty table alias in query [#14366](https://github.com/phalcon/cphalcon/issues/14366) +- Fixed `Phalcon/Db/Adapter/PdoFactory` to reference the correct interface [#14381](https://github.com/phalcon/cphalcon/pull/14381) ## Removed - Removed `Phalcon\Plugin` - duplicate of `Phalcon\DI\Injectable` [#14359](https://github.com/phalcon/cphalcon/issues/14359) - Removed `Phalcon\Mvc\Collection` and all related references. 4.0 will not support mongo as it is being re-implemented to take advantage of the latest Mongo driver (see [#13697](https://github.com/phalcon/cphalcon/issues/13697)) [#14361](https://github.com/phalcon/cphalcon/pull/14361) +- Removed `Phalcon\Session\Manager::registerHandler` - duplicate functionality [#14381](https://github.com/phalcon/cphalcon/pull/14381) +- Removed `Phalcon\Html\Tag` - duplicate functionality [#14381](https://github.com/phalcon/cphalcon/pull/14381) # [4.0.0-beta.2](https://github.com/phalcon/cphalcon/releases/tag/v4.0.0-beta.2) (2019-08-18) From 817d2d28b2530a6e4d521a90a0804af388403b7f Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Thu, 12 Sep 2019 15:03:26 -0400 Subject: [PATCH 159/202] [interface] - Removed tag in ext --- ext/phalcon/html/tag.zep.c | 4177 ------------------------------------ ext/phalcon/html/tag.zep.h | 819 ------- 2 files changed, 4996 deletions(-) delete mode 100644 ext/phalcon/html/tag.zep.c delete mode 100644 ext/phalcon/html/tag.zep.h diff --git a/ext/phalcon/html/tag.zep.c b/ext/phalcon/html/tag.zep.c deleted file mode 100644 index 9f3ccde0925..00000000000 --- a/ext/phalcon/html/tag.zep.c +++ /dev/null @@ -1,4177 +0,0 @@ - -#ifdef HAVE_CONFIG_H -#include "../../ext_config.h" -#endif - -#include -#include "../../php_ext.h" -#include "../../ext.h" - -#include -#include -#include - -#include "kernel/main.h" -#include "kernel/object.h" -#include "kernel/memory.h" -#include "kernel/operators.h" -#include "kernel/fcall.h" -#include "ext/spl/spl_exceptions.h" -#include "kernel/exception.h" -#include "kernel/array.h" -#include "kernel/concat.h" -#include "kernel/string.h" -#include "kernel/iterator.h" - - -/** - * This file is part of the Phalcon Framework. - * - * (c) Phalcon Team - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ -/** - * Phalcon\Html\Tag - * - * Phalcon\Html\Tag is designed to simplify building of HTML tags. It provides a - * set of helpers to dynamically generate HTML. - */ -ZEPHIR_INIT_CLASS(Phalcon_Html_Tag) { - - ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Html, Tag, phalcon, html_tag, phalcon_di_abstractinjectionaware_ce, phalcon_html_tag_method_entry, 0); - - /** - * @var array - */ - zend_declare_property_null(phalcon_html_tag_ce, SL("append"), ZEND_ACC_PRIVATE TSRMLS_CC); - - /** - * @var int - */ - zend_declare_property_long(phalcon_html_tag_ce, SL("docType"), 5, ZEND_ACC_PRIVATE TSRMLS_CC); - - /** - * @var - */ - zend_declare_property_null(phalcon_html_tag_ce, SL("escaper"), ZEND_ACC_PRIVATE TSRMLS_CC); - - /** - * @var array - */ - zend_declare_property_null(phalcon_html_tag_ce, SL("prepend"), ZEND_ACC_PRIVATE TSRMLS_CC); - - /** - * @var string - */ - zend_declare_property_string(phalcon_html_tag_ce, SL("separator"), "", ZEND_ACC_PRIVATE TSRMLS_CC); - - /** - * @var string - */ - zend_declare_property_string(phalcon_html_tag_ce, SL("title"), "", ZEND_ACC_PRIVATE TSRMLS_CC); - - /** - * @var array - */ - zend_declare_property_null(phalcon_html_tag_ce, SL("values"), ZEND_ACC_PRIVATE TSRMLS_CC); - - /** - * @var - */ - zend_declare_property_null(phalcon_html_tag_ce, SL("url"), ZEND_ACC_PRIVATE TSRMLS_CC); - - phalcon_html_tag_ce->create_object = zephir_init_properties_Phalcon_Html_Tag; - /** - * Constants - */ - zephir_declare_class_constant_long(phalcon_html_tag_ce, SL("HTML32"), 1); - - zephir_declare_class_constant_long(phalcon_html_tag_ce, SL("HTML401_STRICT"), 2); - - zephir_declare_class_constant_long(phalcon_html_tag_ce, SL("HTML401_TRANSITIONAL"), 3); - - zephir_declare_class_constant_long(phalcon_html_tag_ce, SL("HTML401_FRAMESET"), 4); - - zephir_declare_class_constant_long(phalcon_html_tag_ce, SL("HTML5"), 5); - - zephir_declare_class_constant_long(phalcon_html_tag_ce, SL("XHTML10_STRICT"), 6); - - zephir_declare_class_constant_long(phalcon_html_tag_ce, SL("XHTML10_TRANSITIONAL"), 7); - - zephir_declare_class_constant_long(phalcon_html_tag_ce, SL("XHTML10_FRAMESET"), 8); - - zephir_declare_class_constant_long(phalcon_html_tag_ce, SL("XHTML11"), 9); - - zephir_declare_class_constant_long(phalcon_html_tag_ce, SL("XHTML20"), 10); - - zephir_declare_class_constant_long(phalcon_html_tag_ce, SL("XHTML5"), 11); - - return SUCCESS; - -} - -/** - * Constructor - */ -PHP_METHOD(Phalcon_Html_Tag, __construct) { - - zval *escaper = NULL, escaper_sub, *url = NULL, url_sub, __$null; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&escaper_sub); - ZVAL_UNDEF(&url_sub); - ZVAL_NULL(&__$null); - - zephir_fetch_params_without_memory_grow(0, 2, &escaper, &url); - - if (!escaper) { - escaper = &escaper_sub; - escaper = &__$null; - } - if (!url) { - url = &url_sub; - url = &__$null; - } - - - zephir_update_property_zval(this_ptr, SL("escaper"), escaper); - zephir_update_property_zval(this_ptr, SL("url"), url); - -} - -/** - * Appends a text to current document title - */ -PHP_METHOD(Phalcon_Html_Tag, appendTitle) { - - zval _0$$4; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *title, title_sub; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&title_sub); - ZVAL_UNDEF(&_0$$4); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &title); - - - - if (Z_TYPE_P(title) == IS_ARRAY) { - zephir_update_property_zval(this_ptr, SL("append"), title); - } else { - zephir_get_strval(&_0$$4, title); - zephir_update_property_array_append(this_ptr, SL("append"), &_0$$4); - } - RETURN_THIS(); - -} - -/** - * Builds a HTML input[type="button"] tag - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->button('Click Me'); - * ``` - * - * Volt syntax: - * ```php - * {% raw %}{{ button('Click Me') }}{% endraw %} - * ``` - */ -PHP_METHOD(Phalcon_Html_Tag, button) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval parameters; - zval *name_param = NULL, *parameters_param = NULL, _0; - zval name; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(¶meters); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &name_param, ¶meters_param); - - if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { - zephir_get_strval(&name, name_param); - } else { - ZEPHIR_INIT_VAR(&name); - ZVAL_EMPTY_STRING(&name); - } - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - - - ZEPHIR_INIT_VAR(&_0); - ZVAL_STRING(&_0, "button"); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "renderinput", NULL, 274, &_0, &name, ¶meters); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Resets the request and internal values to avoid those fields will have - * any default value. - */ -PHP_METHOD(Phalcon_Html_Tag, clear) { - - zval _0, _1, _2, _3; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&_2); - ZVAL_UNDEF(&_3); - - ZEPHIR_MM_GROW(); - - ZEPHIR_INIT_VAR(&_0); - array_init(&_0); - zephir_update_property_zval(this_ptr, SL("append"), &_0); - ZEPHIR_INIT_ZVAL_NREF(_1); - ZVAL_LONG(&_1, 5); - zephir_update_property_zval(this_ptr, SL("docType"), &_1); - ZEPHIR_INIT_VAR(&_2); - array_init(&_2); - zephir_update_property_zval(this_ptr, SL("prepend"), &_2); - ZEPHIR_INIT_VAR(&_3); - ZEPHIR_INIT_NVAR(&_3); - ZVAL_STRING(&_3, ""); - zephir_update_property_zval(this_ptr, SL("separator"), &_3); - ZEPHIR_INIT_NVAR(&_3); - ZVAL_STRING(&_3, ""); - zephir_update_property_zval(this_ptr, SL("title"), &_3); - ZEPHIR_INIT_NVAR(&_3); - array_init(&_3); - zephir_update_property_zval(this_ptr, SL("values"), &_3); - ZEPHIR_MM_RESTORE(); - -} - -/** - * Builds a HTML tag - * - * Parameters - * `onlyStart` Only process the start of th element - * `selfClose` It is a self close element - * `useEol` Append PHP_EOL at the end - */ -PHP_METHOD(Phalcon_Html_Tag, element) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zephir_fcall_cache_entry *_0 = NULL; - zval parameters; - zval *tag_param = NULL, *parameters_param = NULL, onlyStart, output, selfClose, useEol, _1, _2, _5$$9; - zval tag, _3, _4$$8; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&tag); - ZVAL_UNDEF(&_3); - ZVAL_UNDEF(&_4$$8); - ZVAL_UNDEF(&onlyStart); - ZVAL_UNDEF(&output); - ZVAL_UNDEF(&selfClose); - ZVAL_UNDEF(&useEol); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&_2); - ZVAL_UNDEF(&_5$$9); - ZVAL_UNDEF(¶meters); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &tag_param, ¶meters_param); - - if (UNEXPECTED(Z_TYPE_P(tag_param) != IS_STRING && Z_TYPE_P(tag_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tag' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(tag_param) == IS_STRING)) { - zephir_get_strval(&tag, tag_param); - } else { - ZEPHIR_INIT_VAR(&tag); - ZVAL_EMPTY_STRING(&tag); - } - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - - - ZEPHIR_INIT_VAR(&_1); - ZVAL_STRING(&_1, "useEol"); - ZVAL_BOOL(&_2, 0); - ZEPHIR_CALL_CE_STATIC(&useEol, phalcon_helper_arr_ce, "get", &_0, 12, ¶meters, &_1, &_2); - zephir_check_call_status(); - ZEPHIR_INIT_NVAR(&_1); - ZVAL_STRING(&_1, "onlyStart"); - ZVAL_BOOL(&_2, 0); - ZEPHIR_CALL_CE_STATIC(&onlyStart, phalcon_helper_arr_ce, "get", &_0, 12, ¶meters, &_1, &_2); - zephir_check_call_status(); - ZEPHIR_INIT_NVAR(&_1); - ZVAL_STRING(&_1, "selfClose"); - ZVAL_BOOL(&_2, 0); - ZEPHIR_CALL_CE_STATIC(&selfClose, phalcon_helper_arr_ce, "get", &_0, 12, ¶meters, &_1, &_2); - zephir_check_call_status(); - zephir_array_unset_string(¶meters, SL("onlyStart"), PH_SEPARATE); - zephir_array_unset_string(¶meters, SL("selfClose"), PH_SEPARATE); - zephir_array_unset_string(¶meters, SL("useEol"), PH_SEPARATE); - ZEPHIR_INIT_VAR(&_3); - ZEPHIR_CONCAT_SV(&_3, "<", &tag); - ZEPHIR_CALL_METHOD(&output, this_ptr, "renderattributes", NULL, 275, &_3, ¶meters); - zephir_check_call_status(); - zephir_read_property(&_2, this_ptr, SL("docType"), PH_NOISY_CC | PH_READONLY); - if (ZEPHIR_GT_LONG(&_2, 5)) { - if (zephir_is_true(&selfClose)) { - zephir_concat_self_str(&output, SL(" />") TSRMLS_CC); - } else { - zephir_concat_self_str(&output, SL(">") TSRMLS_CC); - } - } else { - if (zephir_is_true(&onlyStart)) { - zephir_concat_self_str(&output, SL(">") TSRMLS_CC); - } else { - ZEPHIR_INIT_VAR(&_4$$8); - ZEPHIR_CONCAT_SVS(&_4$$8, ">"); - zephir_concat_self(&output, &_4$$8 TSRMLS_CC); - } - } - if (zephir_is_true(&useEol)) { - ZEPHIR_INIT_VAR(&_5$$9); - ZEPHIR_MM_GET_CONSTANT(&_5$$9, "PHP_EOL"); - zephir_concat_self(&output, &_5$$9 TSRMLS_CC); - } - RETURN_CCTOR(&output); - -} - -/** - * Builds the closing tag of an html element - * - * Parameters - * `useEol` Append PHP_EOL at the end - * - * ```php - * use Phalcon\Html\Tag; - * - * $tab = new Tag(); - * - * echo $tag->elementClose( - * [ - * 'name' => 'aside', - * ] - * ); // - * - * echo $tag->elementClose( - * [ - * 'name' => 'aside', - * 'useEol' => true, - * ] - * ); // '' . PHP_EOL - * ``` - */ -PHP_METHOD(Phalcon_Html_Tag, elementClose) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zephir_fcall_cache_entry *_0 = NULL; - zval parameters; - zval *tag_param = NULL, *parameters_param = NULL, useEol, _1, _2, _3$$3; - zval tag; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&tag); - ZVAL_UNDEF(&useEol); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&_2); - ZVAL_UNDEF(&_3$$3); - ZVAL_UNDEF(¶meters); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &tag_param, ¶meters_param); - - if (UNEXPECTED(Z_TYPE_P(tag_param) != IS_STRING && Z_TYPE_P(tag_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tag' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(tag_param) == IS_STRING)) { - zephir_get_strval(&tag, tag_param); - } else { - ZEPHIR_INIT_VAR(&tag); - ZVAL_EMPTY_STRING(&tag); - } - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - - - ZEPHIR_INIT_VAR(&useEol); - ZVAL_BOOL(&useEol, 0); - ZEPHIR_INIT_VAR(&_1); - ZVAL_STRING(&_1, "useEol"); - ZVAL_BOOL(&_2, 0); - ZEPHIR_CALL_CE_STATIC(&useEol, phalcon_helper_arr_ce, "get", &_0, 12, ¶meters, &_1, &_2); - zephir_check_call_status(); - if (zephir_is_true(&useEol)) { - ZEPHIR_INIT_VAR(&_3$$3); - ZEPHIR_MM_GET_CONSTANT(&_3$$3, "PHP_EOL"); - ZEPHIR_CONCAT_SVSV(return_value, "", &_3$$3); - RETURN_MM(); - } - ZEPHIR_CONCAT_SVS(return_value, ""); - RETURN_MM(); - -} - -/** - * Returns the closing tag of a form element - */ -PHP_METHOD(Phalcon_Html_Tag, endForm) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *eol_param = NULL, _0$$3; - zend_bool eol; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&_0$$3); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 0, 1, &eol_param); - - if (!eol_param) { - eol = 1; - } else { - eol = zephir_get_boolval(eol_param); - } - - - if (eol) { - ZEPHIR_INIT_VAR(&_0$$3); - ZEPHIR_MM_GET_CONSTANT(&_0$$3, "PHP_EOL"); - ZEPHIR_CONCAT_SV(return_value, "", &_0$$3); - RETURN_MM(); - } else { - RETURN_MM_STRING(""); - } - -} - -/** - * Builds a HTML FORM tag - * - * ```php - * use Phalcon\Html\Tag; - * - * $tab = new Tag(); - * - * echo $tag->form('posts/save'); - * - * echo $tag->form( - * 'posts/save', - * [ - * "method" => "post", - * ] - * ); - * ``` - * - * Volt syntax: - * ```php - * {% raw %}{{ form('posts/save') }}{% endraw %} - * {% raw %}{{ form('posts/save', ['method': 'post') }}{% endraw %} - * ``` - */ -PHP_METHOD(Phalcon_Html_Tag, form) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zephir_fcall_cache_entry *_2 = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval parameters; - zval *action_param = NULL, *parameters_param = NULL, output, params, service, _0, _1, _3, _4, _6, _5$$3; - zval action; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&action); - ZVAL_UNDEF(&output); - ZVAL_UNDEF(¶ms); - ZVAL_UNDEF(&service); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&_3); - ZVAL_UNDEF(&_4); - ZVAL_UNDEF(&_6); - ZVAL_UNDEF(&_5$$3); - ZVAL_UNDEF(¶meters); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &action_param, ¶meters_param); - - zephir_get_strval(&action, action_param); - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - - - ZEPHIR_INIT_VAR(&_0); - ZVAL_STRING(&_0, "url"); - ZEPHIR_CALL_METHOD(&service, this_ptr, "getservice", NULL, 276, &_0); - zephir_check_call_status(); - ZEPHIR_INIT_NVAR(&_0); - ZVAL_STRING(&_0, "method"); - ZEPHIR_INIT_VAR(&_3); - ZVAL_STRING(&_3, "post"); - ZEPHIR_CALL_CE_STATIC(&_1, phalcon_helper_arr_ce, "get", &_2, 12, ¶meters, &_0, &_3); - zephir_check_call_status(); - zephir_array_update_string(¶meters, SL("method"), &_1, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_4, &service, "get", NULL, 0, &action); - zephir_check_call_status(); - zephir_array_update_string(¶meters, SL("action"), &_4, PH_COPY | PH_SEPARATE); - ZEPHIR_OBS_VAR(¶ms); - if (zephir_array_isset_string_fetch(¶ms, ¶meters, SL("parameters"), 0)) { - ZEPHIR_INIT_VAR(&_5$$3); - ZEPHIR_CONCAT_SV(&_5$$3, "?", ¶ms); - zephir_array_update_string(¶meters, SL("action"), &_5$$3, PH_COPY | PH_SEPARATE); - zephir_array_unset_string(¶meters, SL("parameters"), PH_SEPARATE); - } - ZEPHIR_INIT_NVAR(&_0); - ZVAL_STRING(&_0, ""); - RETURN_CCTOR(&output); - -} - -/** - * Converts text to URL-friendly strings - * - * Parameters - * `text` The text to be processed - * `separator` Separator to use (default '-') - * `lowercase` Convert to lowercase - * `replace` - * - * ```php - * use Phalcon\Html\Tag; - * - * $tab = new Tag(); - * - * echo $tag->friendlyTitle( - * [ - * 'text' => 'These are big important news', - * 'separator' => '-', - * ] - * ); - * ``` - * - * Volt Syntax: - * ```php - * {% raw %}{{ friendly_title(['text': 'These are big important news', 'separator': '-']) }}{% endraw %} - * ``` - */ -PHP_METHOD(Phalcon_Html_Tag, friendlyTitle) { - - zend_bool _10$$4; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zephir_fcall_cache_entry *_6 = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval parameters; - zval *text_param = NULL, *parameters_param = NULL, count, from, locale, lowercase, replace, separator, to, output, _0, _1, _7, _8, _9, _15, _2$$3, _3$$3, _4$$3, _5$$3, _11$$4, _12$$4, _13$$4, _14$$8, _16$$9; - zval text; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&text); - ZVAL_UNDEF(&count); - ZVAL_UNDEF(&from); - ZVAL_UNDEF(&locale); - ZVAL_UNDEF(&lowercase); - ZVAL_UNDEF(&replace); - ZVAL_UNDEF(&separator); - ZVAL_UNDEF(&to); - ZVAL_UNDEF(&output); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&_7); - ZVAL_UNDEF(&_8); - ZVAL_UNDEF(&_9); - ZVAL_UNDEF(&_15); - ZVAL_UNDEF(&_2$$3); - ZVAL_UNDEF(&_3$$3); - ZVAL_UNDEF(&_4$$3); - ZVAL_UNDEF(&_5$$3); - ZVAL_UNDEF(&_11$$4); - ZVAL_UNDEF(&_12$$4); - ZVAL_UNDEF(&_13$$4); - ZVAL_UNDEF(&_14$$8); - ZVAL_UNDEF(&_16$$9); - ZVAL_UNDEF(¶meters); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &text_param, ¶meters_param); - - if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { - zephir_get_strval(&text, text_param); - } else { - ZEPHIR_INIT_VAR(&text); - ZVAL_EMPTY_STRING(&text); - } - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - - - ZEPHIR_INIT_VAR(&_0); - ZVAL_STRING(&_0, "iconv"); - ZEPHIR_CALL_FUNCTION(&_1, "extension_loaded", NULL, 168, &_0); - zephir_check_call_status(); - if (zephir_is_true(&_1)) { - ZVAL_LONG(&_2$$3, 6); - ZEPHIR_INIT_VAR(&_3$$3); - ZVAL_STRING(&_3$$3, "en_US.UTF-8"); - ZEPHIR_CALL_FUNCTION(&locale, "setlocale", NULL, 277, &_2$$3, &_3$$3); - zephir_check_call_status(); - ZEPHIR_INIT_NVAR(&_3$$3); - ZVAL_STRING(&_3$$3, "UTF-8"); - ZEPHIR_INIT_VAR(&_4$$3); - ZVAL_STRING(&_4$$3, "ASCII//TRANSLIT"); - ZEPHIR_CALL_FUNCTION(&_5$$3, "iconv", NULL, 278, &_3$$3, &_4$$3, &text); - zephir_check_call_status(); - zephir_get_strval(&text, &_5$$3); - } - ZEPHIR_INIT_NVAR(&_0); - ZVAL_STRING(&_0, "lowercase"); - ZVAL_BOOL(&_7, 1); - ZEPHIR_CALL_CE_STATIC(&lowercase, phalcon_helper_arr_ce, "get", &_6, 12, ¶meters, &_0, &_7); - zephir_check_call_status(); - ZEPHIR_INIT_NVAR(&_0); - array_init(&_0); - ZEPHIR_INIT_VAR(&_8); - ZVAL_STRING(&_8, "replace"); - ZEPHIR_CALL_CE_STATIC(&replace, phalcon_helper_arr_ce, "get", &_6, 12, ¶meters, &_8, &_0); - zephir_check_call_status(); - ZEPHIR_INIT_NVAR(&_8); - ZVAL_STRING(&_8, "separator"); - ZEPHIR_INIT_VAR(&_9); - ZVAL_STRING(&_9, "-"); - ZEPHIR_CALL_CE_STATIC(&separator, phalcon_helper_arr_ce, "get", &_6, 12, ¶meters, &_8, &_9); - zephir_check_call_status(); - if (!(ZEPHIR_IS_EMPTY(&replace))) { - _10$$4 = Z_TYPE_P(&replace) != IS_ARRAY; - if (_10$$4) { - _10$$4 = Z_TYPE_P(&replace) != IS_STRING; - } - if (UNEXPECTED(_10$$4)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "Parameter replace must be an array or a string", "phalcon/Html/Tag.zep", 335); - return; - } - if (Z_TYPE_P(&replace) == IS_STRING) { - ZEPHIR_INIT_VAR(&from); - zephir_create_array(&from, 1, 0 TSRMLS_CC); - zephir_array_fast_append(&from, &replace); - } else { - ZEPHIR_CPY_WRT(&from, &replace); - } - ZEPHIR_INIT_VAR(&count); - ZVAL_LONG(&count, zephir_fast_count_int(&from TSRMLS_CC)); - ZVAL_LONG(&_11$$4, 0); - ZVAL_LONG(&_12$$4, (zephir_get_numberval(&count) - 1)); - ZEPHIR_INIT_VAR(&_13$$4); - ZVAL_STRING(&_13$$4, " "); - ZEPHIR_CALL_FUNCTION(&to, "array_fill", NULL, 279, &_11$$4, &_12$$4, &_13$$4); - zephir_check_call_status(); - ZEPHIR_INIT_NVAR(&_13$$4); - zephir_fast_str_replace(&_13$$4, &from, &to, &text TSRMLS_CC); - zephir_get_strval(&text, &_13$$4); - } - ZEPHIR_INIT_NVAR(&_8); - ZVAL_STRING(&_8, "/[^a-zA-Z0-9\\/_|+ -]/"); - ZEPHIR_INIT_NVAR(&_9); - ZVAL_STRING(&_9, ""); - ZEPHIR_CALL_FUNCTION(&output, "preg_replace", NULL, 44, &_8, &_9, &text); - zephir_check_call_status(); - if (zephir_is_true(&lowercase)) { - ZEPHIR_INIT_VAR(&_14$$8); - zephir_fast_strtolower(&_14$$8, &output); - ZEPHIR_CPY_WRT(&output, &_14$$8); - } - ZEPHIR_INIT_NVAR(&_8); - ZVAL_STRING(&_8, "/[\\/_|+ -]+/"); - ZEPHIR_CALL_FUNCTION(&_15, "preg_replace", NULL, 44, &_8, &separator, &output); - zephir_check_call_status(); - ZEPHIR_CPY_WRT(&output, &_15); - ZEPHIR_INIT_NVAR(&_8); - zephir_fast_trim(&_8, &output, &separator, ZEPHIR_TRIM_BOTH TSRMLS_CC); - ZEPHIR_CPY_WRT(&output, &_8); - ZEPHIR_INIT_NVAR(&_8); - ZVAL_STRING(&_8, "iconv"); - ZEPHIR_CALL_FUNCTION(&_15, "extension_loaded", NULL, 168, &_8); - zephir_check_call_status(); - if (zephir_is_true(&_15)) { - ZVAL_LONG(&_16$$9, 6); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 277, &_16$$9, &locale); - zephir_check_call_status(); - } - RETURN_CCTOR(&output); - -} - -/** - * Get the document type declaration of content. If the docType has not - * been set properly, XHTML5 is returned - */ -PHP_METHOD(Phalcon_Html_Tag, getDocType) { - - zval _0, _18, _1$$3, _2$$4, _3$$4, _4$$5, _5$$5, _6$$6, _7$$6, _8$$7, _9$$7, _10$$8, _11$$8, _12$$9, _13$$9, _14$$10, _15$$10, _16$$11, _17$$11; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_18); - ZVAL_UNDEF(&_1$$3); - ZVAL_UNDEF(&_2$$4); - ZVAL_UNDEF(&_3$$4); - ZVAL_UNDEF(&_4$$5); - ZVAL_UNDEF(&_5$$5); - ZVAL_UNDEF(&_6$$6); - ZVAL_UNDEF(&_7$$6); - ZVAL_UNDEF(&_8$$7); - ZVAL_UNDEF(&_9$$7); - ZVAL_UNDEF(&_10$$8); - ZVAL_UNDEF(&_11$$8); - ZVAL_UNDEF(&_12$$9); - ZVAL_UNDEF(&_13$$9); - ZVAL_UNDEF(&_14$$10); - ZVAL_UNDEF(&_15$$10); - ZVAL_UNDEF(&_16$$11); - ZVAL_UNDEF(&_17$$11); - - ZEPHIR_MM_GROW(); - - zephir_read_property(&_0, this_ptr, SL("docType"), PH_NOISY_CC | PH_READONLY); - do { - if (ZEPHIR_IS_LONG(&_0, 1)) { - ZEPHIR_INIT_VAR(&_1$$3); - ZEPHIR_MM_GET_CONSTANT(&_1$$3, "PHP_EOL"); - ZEPHIR_CONCAT_SV(return_value, "", &_1$$3); - RETURN_MM(); - } - if (ZEPHIR_IS_LONG(&_0, 2)) { - ZEPHIR_INIT_VAR(&_2$$4); - ZEPHIR_MM_GET_CONSTANT(&_2$$4, "PHP_EOL"); - ZEPHIR_INIT_VAR(&_3$$4); - ZEPHIR_MM_GET_CONSTANT(&_3$$4, "PHP_EOL"); - ZEPHIR_CONCAT_SVSV(return_value, "", &_3$$4); - RETURN_MM(); - } - if (ZEPHIR_IS_LONG(&_0, 3)) { - ZEPHIR_INIT_VAR(&_4$$5); - ZEPHIR_MM_GET_CONSTANT(&_4$$5, "PHP_EOL"); - ZEPHIR_INIT_VAR(&_5$$5); - ZEPHIR_MM_GET_CONSTANT(&_5$$5, "PHP_EOL"); - ZEPHIR_CONCAT_SVSV(return_value, "", &_5$$5); - RETURN_MM(); - } - if (ZEPHIR_IS_LONG(&_0, 4)) { - ZEPHIR_INIT_VAR(&_6$$6); - ZEPHIR_MM_GET_CONSTANT(&_6$$6, "PHP_EOL"); - ZEPHIR_INIT_VAR(&_7$$6); - ZEPHIR_MM_GET_CONSTANT(&_7$$6, "PHP_EOL"); - ZEPHIR_CONCAT_SVSV(return_value, "", &_7$$6); - RETURN_MM(); - } - if (ZEPHIR_IS_LONG(&_0, 6)) { - ZEPHIR_INIT_VAR(&_8$$7); - ZEPHIR_MM_GET_CONSTANT(&_8$$7, "PHP_EOL"); - ZEPHIR_INIT_VAR(&_9$$7); - ZEPHIR_MM_GET_CONSTANT(&_9$$7, "PHP_EOL"); - ZEPHIR_CONCAT_SVSV(return_value, "", &_9$$7); - RETURN_MM(); - } - if (ZEPHIR_IS_LONG(&_0, 7)) { - ZEPHIR_INIT_VAR(&_10$$8); - ZEPHIR_MM_GET_CONSTANT(&_10$$8, "PHP_EOL"); - ZEPHIR_INIT_VAR(&_11$$8); - ZEPHIR_MM_GET_CONSTANT(&_11$$8, "PHP_EOL"); - ZEPHIR_CONCAT_SVSV(return_value, "", &_11$$8); - RETURN_MM(); - } - if (ZEPHIR_IS_LONG(&_0, 8)) { - ZEPHIR_INIT_VAR(&_12$$9); - ZEPHIR_MM_GET_CONSTANT(&_12$$9, "PHP_EOL"); - ZEPHIR_INIT_VAR(&_13$$9); - ZEPHIR_MM_GET_CONSTANT(&_13$$9, "PHP_EOL"); - ZEPHIR_CONCAT_SVSV(return_value, "", &_13$$9); - RETURN_MM(); - } - if (ZEPHIR_IS_LONG(&_0, 9)) { - ZEPHIR_INIT_VAR(&_14$$10); - ZEPHIR_MM_GET_CONSTANT(&_14$$10, "PHP_EOL"); - ZEPHIR_INIT_VAR(&_15$$10); - ZEPHIR_MM_GET_CONSTANT(&_15$$10, "PHP_EOL"); - ZEPHIR_CONCAT_SVSV(return_value, "", &_15$$10); - RETURN_MM(); - } - if (ZEPHIR_IS_LONG(&_0, 10)) { - ZEPHIR_INIT_VAR(&_16$$11); - ZEPHIR_MM_GET_CONSTANT(&_16$$11, "PHP_EOL"); - ZEPHIR_INIT_VAR(&_17$$11); - ZEPHIR_MM_GET_CONSTANT(&_17$$11, "PHP_EOL"); - ZEPHIR_CONCAT_SVSV(return_value, "", &_17$$11); - RETURN_MM(); - } - } while(0); - - ZEPHIR_INIT_VAR(&_18); - ZEPHIR_MM_GET_CONSTANT(&_18, "PHP_EOL"); - ZEPHIR_CONCAT_SV(return_value, "", &_18); - RETURN_MM(); - -} - -/** - * Gets the current document title. The title will be automatically escaped. - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * $tag - * ->setTitleSeparator(' ') - * ->prependTitle(['Hello']) - * ->setTitle('World') - * ->appendTitle(['from Phalcon']); - * - * echo $tag->getTitle(); // Hello World from Phalcon - * echo $tag->getTitle(false); // World from Phalcon - * echo $tag->getTitle(true, false); // Hello World - * echo $tag->getTitle(false, false); // World - * ``` - * - * Volt syntax: - * ```php - * {% raw %}{{ get_title() }}{% endraw %} - * ``` - */ -PHP_METHOD(Phalcon_Html_Tag, getTitle) { - - zval items; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zephir_fcall_cache_entry *_6 = NULL, *_8 = NULL, *_12 = NULL, *_14 = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *prepend_param = NULL, *append_param = NULL, item, output, title, appendTitle, prependTitle, separator, escaper, _0, _1, _2, prependArray$$4, *_3$$4, _4$$4, _5$$5, _7$$6, *_9$$9, _10$$9, _11$$10, _13$$11; - zend_bool prepend, append; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&item); - ZVAL_UNDEF(&output); - ZVAL_UNDEF(&title); - ZVAL_UNDEF(&appendTitle); - ZVAL_UNDEF(&prependTitle); - ZVAL_UNDEF(&separator); - ZVAL_UNDEF(&escaper); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&_2); - ZVAL_UNDEF(&prependArray$$4); - ZVAL_UNDEF(&_4$$4); - ZVAL_UNDEF(&_5$$5); - ZVAL_UNDEF(&_7$$6); - ZVAL_UNDEF(&_10$$9); - ZVAL_UNDEF(&_11$$10); - ZVAL_UNDEF(&_13$$11); - ZVAL_UNDEF(&items); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 0, 2, &prepend_param, &append_param); - - if (!prepend_param) { - prepend = 1; - } else { - prepend = zephir_get_boolval(prepend_param); - } - if (!append_param) { - append = 1; - } else { - append = zephir_get_boolval(append_param); - } - - - ZEPHIR_INIT_VAR(&_0); - ZVAL_STRING(&_0, "escaper"); - ZEPHIR_CALL_METHOD(&escaper, this_ptr, "getservice", NULL, 276, &_0); - zephir_check_call_status(); - ZEPHIR_INIT_VAR(&items); - array_init(&items); - ZEPHIR_INIT_VAR(&output); - ZVAL_STRING(&output, ""); - zephir_read_property(&_1, this_ptr, SL("title"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(&title, &escaper, "escapehtml", NULL, 0, &_1); - zephir_check_call_status(); - zephir_read_property(&_2, this_ptr, SL("separator"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(&separator, &escaper, "escapehtml", NULL, 0, &_2); - zephir_check_call_status(); - if (prepend) { - ZEPHIR_OBS_VAR(&prependTitle); - zephir_read_property(&prependTitle, this_ptr, SL("prepend"), PH_NOISY_CC); - if (!(ZEPHIR_IS_EMPTY(&prependTitle))) { - ZEPHIR_CALL_FUNCTION(&prependArray$$4, "array_reverse", NULL, 280, &prependTitle); - zephir_check_call_status(); - zephir_is_iterable(&prependArray$$4, 0, "phalcon/Html/Tag.zep", 467); - if (Z_TYPE_P(&prependArray$$4) == IS_ARRAY) { - ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&prependArray$$4), _3$$4) - { - ZEPHIR_INIT_NVAR(&item); - ZVAL_COPY(&item, _3$$4); - ZEPHIR_CALL_METHOD(&_5$$5, &escaper, "escapehtml", &_6, 0, &item); - zephir_check_call_status(); - zephir_array_append(&items, &_5$$5, PH_SEPARATE, "phalcon/Html/Tag.zep", 465); - } ZEND_HASH_FOREACH_END(); - } else { - ZEPHIR_CALL_METHOD(NULL, &prependArray$$4, "rewind", NULL, 0); - zephir_check_call_status(); - while (1) { - ZEPHIR_CALL_METHOD(&_4$$4, &prependArray$$4, "valid", NULL, 0); - zephir_check_call_status(); - if (!zend_is_true(&_4$$4)) { - break; - } - ZEPHIR_CALL_METHOD(&item, &prependArray$$4, "current", NULL, 0); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_7$$6, &escaper, "escapehtml", &_8, 0, &item); - zephir_check_call_status(); - zephir_array_append(&items, &_7$$6, PH_SEPARATE, "phalcon/Html/Tag.zep", 465); - ZEPHIR_CALL_METHOD(NULL, &prependArray$$4, "next", NULL, 0); - zephir_check_call_status(); - } - } - ZEPHIR_INIT_NVAR(&item); - } - } - if (!(ZEPHIR_IS_EMPTY(&title))) { - zephir_array_append(&items, &title, PH_SEPARATE, "phalcon/Html/Tag.zep", 471); - } - if (append) { - ZEPHIR_OBS_VAR(&appendTitle); - zephir_read_property(&appendTitle, this_ptr, SL("append"), PH_NOISY_CC); - if (!(ZEPHIR_IS_EMPTY(&appendTitle))) { - zephir_is_iterable(&appendTitle, 0, "phalcon/Html/Tag.zep", 481); - if (Z_TYPE_P(&appendTitle) == IS_ARRAY) { - ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&appendTitle), _9$$9) - { - ZEPHIR_INIT_NVAR(&item); - ZVAL_COPY(&item, _9$$9); - ZEPHIR_CALL_METHOD(&_11$$10, &escaper, "escapehtml", &_12, 0, &item); - zephir_check_call_status(); - zephir_array_append(&items, &_11$$10, PH_SEPARATE, "phalcon/Html/Tag.zep", 479); - } ZEND_HASH_FOREACH_END(); - } else { - ZEPHIR_CALL_METHOD(NULL, &appendTitle, "rewind", NULL, 0); - zephir_check_call_status(); - while (1) { - ZEPHIR_CALL_METHOD(&_10$$9, &appendTitle, "valid", NULL, 0); - zephir_check_call_status(); - if (!zend_is_true(&_10$$9)) { - break; - } - ZEPHIR_CALL_METHOD(&item, &appendTitle, "current", NULL, 0); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_13$$11, &escaper, "escapehtml", &_14, 0, &item); - zephir_check_call_status(); - zephir_array_append(&items, &_13$$11, PH_SEPARATE, "phalcon/Html/Tag.zep", 479); - ZEPHIR_CALL_METHOD(NULL, &appendTitle, "next", NULL, 0); - zephir_check_call_status(); - } - } - ZEPHIR_INIT_NVAR(&item); - } - } - if (!(ZEPHIR_IS_EMPTY(&items))) { - ZEPHIR_INIT_NVAR(&output); - zephir_fast_join(&output, &separator, &items TSRMLS_CC); - } - RETURN_CCTOR(&output); - -} - -/** - * Gets the current document title separator - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->getTitleSeparator(); - * ``` - * - * Volt syntax: - * ```php - * {% raw %}{{ get_title_separator() }}{% endraw %} - * ``` - */ -PHP_METHOD(Phalcon_Html_Tag, getTitleSeparator) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "separator"); - -} - -/** - * Every helper calls this function to check whether a component has a - * predefined value using `setAttribute` or value from $_POST - */ -PHP_METHOD(Phalcon_Html_Tag, getValue) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval parameters; - zval *name_param = NULL, *parameters_param = NULL, _POST, value, _0$$3; - zval name; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&_POST); - ZVAL_UNDEF(&value); - ZVAL_UNDEF(&_0$$3); - ZVAL_UNDEF(¶meters); - - ZEPHIR_MM_GROW(); - zephir_get_global(&_POST, SL("_POST")); - zephir_fetch_params(1, 1, 1, &name_param, ¶meters_param); - - zephir_get_strval(&name, name_param); - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - - - ZEPHIR_OBS_VAR(&value); - if (!(zephir_array_isset_string_fetch(&value, ¶meters, SL("value"), 0))) { - ZEPHIR_OBS_NVAR(&value); - zephir_read_property(&_0$$3, this_ptr, SL("values"), PH_NOISY_CC | PH_READONLY); - if (!(zephir_array_isset_fetch(&value, &_0$$3, &name, 0 TSRMLS_CC))) { - ZEPHIR_OBS_NVAR(&value); - if (!(zephir_array_isset_fetch(&value, &_POST, &name, 0 TSRMLS_CC))) { - RETURN_MM_NULL(); - } - } - } - RETURN_CCTOR(&value); - -} - -/** - * Check if a helper has a default value set using `setAttribute()` or - * value from $_POST - */ -PHP_METHOD(Phalcon_Html_Tag, hasValue) { - - zend_bool _1; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *name_param = NULL, _POST, _0; - zval name; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&_POST); - ZVAL_UNDEF(&_0); - - ZEPHIR_MM_GROW(); - zephir_get_global(&_POST, SL("_POST")); - zephir_fetch_params(1, 1, 0, &name_param); - - zephir_get_strval(&name, name_param); - - - zephir_read_property(&_0, this_ptr, SL("values"), PH_NOISY_CC | PH_READONLY); - _1 = zephir_array_isset(&_0, &name); - if (!(_1)) { - _1 = zephir_array_isset(&_POST, &name); - } - RETURN_MM_BOOL(_1); - -} - -/** - * Builds HTML IMG tags - * - * Parameters - * `local` Local resource or not (default `true`) - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->image('img/bg.png'); - * - * echo $tag->image( - * 'img/photo.jpg', - * [ - * 'alt' => 'Some Photo', - * ] - * ); - * - * echo $tag->image( - * 'http://static.mywebsite.com/img/bg.png', - * [ - * 'local' => false, - * ] - * ); - * ``` - * - * Volt Syntax: - * ```php - * {% raw %}{{ image('img/bg.png') }}{% endraw %} - * {% raw %}{{ image('img/photo.jpg', ['alt': 'Some Photo') }}{% endraw %} - * {% raw %}{{ image('http://static.mywebsite.com/img/bg.png', ['local': false]) }}{% endraw %} - * ``` - */ -PHP_METHOD(Phalcon_Html_Tag, image) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zephir_fcall_cache_entry *_0 = NULL; - zval parameters; - zval *url_param = NULL, *parameters_param = NULL, local, service, src, output, _1, _2, _4, _5, _3$$3; - zval url; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&url); - ZVAL_UNDEF(&local); - ZVAL_UNDEF(&service); - ZVAL_UNDEF(&src); - ZVAL_UNDEF(&output); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&_2); - ZVAL_UNDEF(&_4); - ZVAL_UNDEF(&_5); - ZVAL_UNDEF(&_3$$3); - ZVAL_UNDEF(¶meters); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 0, 2, &url_param, ¶meters_param); - - if (!url_param) { - ZEPHIR_INIT_VAR(&url); - ZVAL_STRING(&url, ""); - } else { - zephir_get_strval(&url, url_param); - } - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - - - ZEPHIR_INIT_VAR(&_1); - ZVAL_STRING(&_1, "local"); - ZVAL_BOOL(&_2, 1); - ZEPHIR_CALL_CE_STATIC(&local, phalcon_helper_arr_ce, "get", &_0, 12, ¶meters, &_1, &_2); - zephir_check_call_status(); - ZEPHIR_INIT_NVAR(&_1); - ZVAL_STRING(&_1, "src"); - ZEPHIR_CALL_CE_STATIC(&src, phalcon_helper_arr_ce, "get", &_0, 12, ¶meters, &_1, &url); - zephir_check_call_status(); - if (zephir_is_true(&local)) { - ZEPHIR_INIT_VAR(&_3$$3); - ZVAL_STRING(&_3$$3, "url"); - ZEPHIR_CALL_METHOD(&service, this_ptr, "getservice", NULL, 276, &_3$$3); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&src, &service, "getstatic", NULL, 0, &url); - zephir_check_call_status(); - } - zephir_array_unset_string(¶meters, SL("local"), PH_SEPARATE); - zephir_array_update_string(¶meters, SL("src"), &src, PH_COPY | PH_SEPARATE); - ZEPHIR_INIT_NVAR(&_1); - ZVAL_STRING(&_1, "inputCheckbox( - * [ - * 'name' => 'terms, - * 'value' => 'Y', - * ] - * ); - * ``` - * - * Volt syntax: - * ```php - * {% raw %}{{ input_checkbox(['name': 'terms, 'value': 'Y']) }}{% endraw %} - * ``` - */ -PHP_METHOD(Phalcon_Html_Tag, inputCheckbox) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval parameters; - zval *name_param = NULL, *parameters_param = NULL, _0; - zval name; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(¶meters); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &name_param, ¶meters_param); - - if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { - zephir_get_strval(&name, name_param); - } else { - ZEPHIR_INIT_VAR(&name); - ZVAL_EMPTY_STRING(&name); - } - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - - - ZEPHIR_INIT_VAR(&_0); - ZVAL_STRING(&_0, "checkbox"); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "renderinputchecked", NULL, 282, &_0, &name, ¶meters); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Builds a HTML input[type='color'] tag - */ -PHP_METHOD(Phalcon_Html_Tag, inputColor) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval parameters; - zval *name_param = NULL, *parameters_param = NULL, _0; - zval name; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(¶meters); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &name_param, ¶meters_param); - - if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { - zephir_get_strval(&name, name_param); - } else { - ZEPHIR_INIT_VAR(&name); - ZVAL_EMPTY_STRING(&name); - } - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - - - ZEPHIR_INIT_VAR(&_0); - ZVAL_STRING(&_0, "color"); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "renderinput", NULL, 274, &_0, &name, ¶meters); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Builds a HTML input[type='date'] tag - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->inputDate( - * [ - * 'name' => 'born', - * 'value' => '14-12-1980', - * ] - * ); - * ``` - * - * Volt syntax: - * ```php - * {% raw %}{{ input_date(['name':'born', 'value':'14-12-1980']) }}{% endraw %} - * ``` - */ -PHP_METHOD(Phalcon_Html_Tag, inputDate) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval parameters; - zval *name_param = NULL, *parameters_param = NULL, _0; - zval name; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(¶meters); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &name_param, ¶meters_param); - - if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { - zephir_get_strval(&name, name_param); - } else { - ZEPHIR_INIT_VAR(&name); - ZVAL_EMPTY_STRING(&name); - } - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - - - ZEPHIR_INIT_VAR(&_0); - ZVAL_STRING(&_0, "date"); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "renderinput", NULL, 274, &_0, &name, ¶meters); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Builds a HTML input[type='datetime'] tag - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->inputDateTime( - * [ - * 'name' => 'born', - * 'value' => '14-12-1980', - * ] - * ); - * ``` - * - * Volt syntax: - * ```php - * {% raw %}{{ input_date_time(['name':'born', 'value':'14-12-1980']) }}{% endraw %} - * ``` - */ -PHP_METHOD(Phalcon_Html_Tag, inputDateTime) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval parameters; - zval *name_param = NULL, *parameters_param = NULL, _0; - zval name; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(¶meters); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &name_param, ¶meters_param); - - if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { - zephir_get_strval(&name, name_param); - } else { - ZEPHIR_INIT_VAR(&name); - ZVAL_EMPTY_STRING(&name); - } - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - - - ZEPHIR_INIT_VAR(&_0); - ZVAL_STRING(&_0, "datetime"); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "renderinput", NULL, 274, &_0, &name, ¶meters); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Builds a HTML input[type='datetime-local'] tag - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->inputDateTimeLocal( - * [ - * 'name' => 'born', - * 'value' => '14-12-1980', - * ] - * ); - * ``` - * - * Volt syntax: - * ```php - * {% raw %}{{ input_date_time_local(['name':'born', 'value':'14-12-1980']) }}{% endraw %} - * ``` - */ -PHP_METHOD(Phalcon_Html_Tag, inputDateTimeLocal) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval parameters; - zval *name_param = NULL, *parameters_param = NULL, _0; - zval name; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(¶meters); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &name_param, ¶meters_param); - - if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { - zephir_get_strval(&name, name_param); - } else { - ZEPHIR_INIT_VAR(&name); - ZVAL_EMPTY_STRING(&name); - } - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - - - ZEPHIR_INIT_VAR(&_0); - ZVAL_STRING(&_0, "datetime-local"); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "renderinput", NULL, 274, &_0, &name, ¶meters); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Builds a HTML input[type='email'] tag - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->inputEmail( - * [ - * 'name' => 'email', - * ] - * ); - * ``` - * - * Volt syntax: - * ```php - * {% raw %}{{ input_email(['name': 'email']);{% endraw %} - * ``` - */ -PHP_METHOD(Phalcon_Html_Tag, inputEmail) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval parameters; - zval *name_param = NULL, *parameters_param = NULL, _0; - zval name; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(¶meters); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &name_param, ¶meters_param); - - if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { - zephir_get_strval(&name, name_param); - } else { - ZEPHIR_INIT_VAR(&name); - ZVAL_EMPTY_STRING(&name); - } - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - - - ZEPHIR_INIT_VAR(&_0); - ZVAL_STRING(&_0, "email"); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "renderinput", NULL, 274, &_0, &name, ¶meters); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Builds a HTML input[type='file'] tag - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->inputFile( - * [ - * 'name' => 'file', - * ] - * ); - * ``` - * - * Volt syntax: - * ```php - * {% raw %}{{ input_file(['name': 'file']){% endraw %} - * ``` - */ -PHP_METHOD(Phalcon_Html_Tag, inputFile) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval parameters; - zval *name_param = NULL, *parameters_param = NULL, _0; - zval name; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(¶meters); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &name_param, ¶meters_param); - - if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { - zephir_get_strval(&name, name_param); - } else { - ZEPHIR_INIT_VAR(&name); - ZVAL_EMPTY_STRING(&name); - } - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - - - ZEPHIR_INIT_VAR(&_0); - ZVAL_STRING(&_0, "file"); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "renderinput", NULL, 274, &_0, &name, ¶meters); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Builds a HTML input[type='hidden'] tag - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->inputHidden( - * [ - * 'name' => 'my-field', - * 'value' => 'mike', - * ] - * ); - * ``` - */ -PHP_METHOD(Phalcon_Html_Tag, inputHidden) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval parameters; - zval *name_param = NULL, *parameters_param = NULL, _0; - zval name; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(¶meters); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &name_param, ¶meters_param); - - if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { - zephir_get_strval(&name, name_param); - } else { - ZEPHIR_INIT_VAR(&name); - ZVAL_EMPTY_STRING(&name); - } - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - - - ZEPHIR_INIT_VAR(&_0); - ZVAL_STRING(&_0, "hidden"); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "renderinput", NULL, 274, &_0, &name, ¶meters); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Builds a HTML input[type="image"] tag - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * echo $tag->inputImage( - * [ - * 'src' => '/img/button.png', - * ] - * ); - * ``` - * - * Volt syntax: - * ```php - * {% raw %}{{ input_image(['src': '/img/button.png']) }}{% endraw %} - * ``` - */ -PHP_METHOD(Phalcon_Html_Tag, inputImage) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval parameters; - zval *name_param = NULL, *parameters_param = NULL, _0; - zval name; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(¶meters); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &name_param, ¶meters_param); - - if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { - zephir_get_strval(&name, name_param); - } else { - ZEPHIR_INIT_VAR(&name); - ZVAL_EMPTY_STRING(&name); - } - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - - - ZEPHIR_INIT_VAR(&_0); - ZVAL_STRING(&_0, "image"); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "renderinput", NULL, 274, &_0, &name, ¶meters); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Builds a HTML input[type='month'] tag - */ -PHP_METHOD(Phalcon_Html_Tag, inputMonth) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval parameters; - zval *name_param = NULL, *parameters_param = NULL, _0; - zval name; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(¶meters); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &name_param, ¶meters_param); - - if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { - zephir_get_strval(&name, name_param); - } else { - ZEPHIR_INIT_VAR(&name); - ZVAL_EMPTY_STRING(&name); - } - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - - - ZEPHIR_INIT_VAR(&_0); - ZVAL_STRING(&_0, "month"); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "renderinput", NULL, 274, &_0, &name, ¶meters); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Builds a HTML input[type='number'] tag - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->numericField( - * [ - * 'name' => 'price', - * 'min' => '1', - * 'max' => '5', - * ] - * ); - * ``` - */ -PHP_METHOD(Phalcon_Html_Tag, inputNumeric) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval parameters; - zval *name_param = NULL, *parameters_param = NULL, _0; - zval name; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(¶meters); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &name_param, ¶meters_param); - - if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { - zephir_get_strval(&name, name_param); - } else { - ZEPHIR_INIT_VAR(&name); - ZVAL_EMPTY_STRING(&name); - } - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - - - ZEPHIR_INIT_VAR(&_0); - ZVAL_STRING(&_0, "numeric"); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "renderinput", NULL, 274, &_0, &name, ¶meters); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Builds a HTML input[type='password'] tag - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->passwordField( - * [ - * 'name' => 'my-field', - * 'size' => 30, - * ] - * ); - * ``` - */ -PHP_METHOD(Phalcon_Html_Tag, inputPassword) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval parameters; - zval *name_param = NULL, *parameters_param = NULL, _0; - zval name; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(¶meters); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &name_param, ¶meters_param); - - if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { - zephir_get_strval(&name, name_param); - } else { - ZEPHIR_INIT_VAR(&name); - ZVAL_EMPTY_STRING(&name); - } - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - - - ZEPHIR_INIT_VAR(&_0); - ZVAL_STRING(&_0, "password"); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "renderinput", NULL, 274, &_0, &name, ¶meters); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Builds a HTML input[type="radio"] tag - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->inputRadio( - * [ - * 'name' => 'weather', - * 'value" => 'hot', - * ] - * ); - * ``` - * - * Volt syntax: - * ```php - * {% raw %}{{ input_radio(['name': 'weather', 'value": 'hot']) }}{% endraw %} - * ``` - */ -PHP_METHOD(Phalcon_Html_Tag, inputRadio) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval parameters; - zval *name_param = NULL, *parameters_param = NULL, _0; - zval name; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(¶meters); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &name_param, ¶meters_param); - - if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { - zephir_get_strval(&name, name_param); - } else { - ZEPHIR_INIT_VAR(&name); - ZVAL_EMPTY_STRING(&name); - } - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - - - ZEPHIR_INIT_VAR(&_0); - ZVAL_STRING(&_0, "radio"); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "renderinputchecked", NULL, 282, &_0, &name, ¶meters); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Builds a HTML input[type='range'] tag - */ -PHP_METHOD(Phalcon_Html_Tag, inputRange) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval parameters; - zval *name_param = NULL, *parameters_param = NULL, _0; - zval name; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(¶meters); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &name_param, ¶meters_param); - - if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { - zephir_get_strval(&name, name_param); - } else { - ZEPHIR_INIT_VAR(&name); - ZVAL_EMPTY_STRING(&name); - } - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - - - ZEPHIR_INIT_VAR(&_0); - ZVAL_STRING(&_0, "range"); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "renderinput", NULL, 274, &_0, &name, ¶meters); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Builds a HTML input[type='search'] tag - */ -PHP_METHOD(Phalcon_Html_Tag, inputSearch) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval parameters; - zval *name_param = NULL, *parameters_param = NULL, _0; - zval name; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(¶meters); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &name_param, ¶meters_param); - - if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { - zephir_get_strval(&name, name_param); - } else { - ZEPHIR_INIT_VAR(&name); - ZVAL_EMPTY_STRING(&name); - } - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - - - ZEPHIR_INIT_VAR(&_0); - ZVAL_STRING(&_0, "search"); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "renderinput", NULL, 274, &_0, &name, ¶meters); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Builds a HTML input[type='tel'] tag - */ -PHP_METHOD(Phalcon_Html_Tag, inputTel) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval parameters; - zval *name_param = NULL, *parameters_param = NULL, _0; - zval name; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(¶meters); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &name_param, ¶meters_param); - - if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { - zephir_get_strval(&name, name_param); - } else { - ZEPHIR_INIT_VAR(&name); - ZVAL_EMPTY_STRING(&name); - } - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - - - ZEPHIR_INIT_VAR(&_0); - ZVAL_STRING(&_0, "tel"); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "renderinput", NULL, 274, &_0, &name, ¶meters); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Builds a HTML input[type='text'] tag - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->inputText( - * [ - * 'name' => 'my-field', - * 'size' => 30, - * ] - * ); - * ``` - */ -PHP_METHOD(Phalcon_Html_Tag, inputText) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval parameters; - zval *name_param = NULL, *parameters_param = NULL, _0; - zval name; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(¶meters); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &name_param, ¶meters_param); - - if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { - zephir_get_strval(&name, name_param); - } else { - ZEPHIR_INIT_VAR(&name); - ZVAL_EMPTY_STRING(&name); - } - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - - - ZEPHIR_INIT_VAR(&_0); - ZVAL_STRING(&_0, "text"); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "renderinput", NULL, 274, &_0, &name, ¶meters); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Builds a HTML input[type='time'] tag - */ -PHP_METHOD(Phalcon_Html_Tag, inputTime) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval parameters; - zval *name_param = NULL, *parameters_param = NULL, _0; - zval name; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(¶meters); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &name_param, ¶meters_param); - - if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { - zephir_get_strval(&name, name_param); - } else { - ZEPHIR_INIT_VAR(&name); - ZVAL_EMPTY_STRING(&name); - } - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - - - ZEPHIR_INIT_VAR(&_0); - ZVAL_STRING(&_0, "time"); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "renderinput", NULL, 274, &_0, &name, ¶meters); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Builds a HTML input[type='url'] tag - */ -PHP_METHOD(Phalcon_Html_Tag, inputUrl) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval parameters; - zval *name_param = NULL, *parameters_param = NULL, _0; - zval name; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(¶meters); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &name_param, ¶meters_param); - - if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { - zephir_get_strval(&name, name_param); - } else { - ZEPHIR_INIT_VAR(&name); - ZVAL_EMPTY_STRING(&name); - } - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - - - ZEPHIR_INIT_VAR(&_0); - ZVAL_STRING(&_0, "url"); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "renderinput", NULL, 274, &_0, &name, ¶meters); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Builds a HTML input[type='week'] tag - */ -PHP_METHOD(Phalcon_Html_Tag, inputWeek) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval parameters; - zval *name_param = NULL, *parameters_param = NULL, _0; - zval name; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(¶meters); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &name_param, ¶meters_param); - - if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { - zephir_get_strval(&name, name_param); - } else { - ZEPHIR_INIT_VAR(&name); - ZVAL_EMPTY_STRING(&name); - } - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - - - ZEPHIR_INIT_VAR(&_0); - ZVAL_STRING(&_0, "week"); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "renderinput", NULL, 274, &_0, &name, ¶meters); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Builds a script[type="javascript"] tag - * - * Parameters - * `local` Local resource or not (default `true`) - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->javascript( - * 'http://ajax.googleapis.com/ajax/libs/jquery/2.2.3/jquery.min.js', - * [ - * 'local' => false, - * ] - * ); - * - * echo $tag->javascript('javascript/jquery.js'); - * ``` - * - * Volt syntax: - * ```php - * {% raw %}{{ javascript('http://ajax.googleapis.com/ajax/libs/jquery/2.2.3/jquery.min.js', ['local': false]) }}{% endraw %} - * {% raw %}{{ javascript('javascript/jquery.js') }}{% endraw %} - * ``` - */ -PHP_METHOD(Phalcon_Html_Tag, javascript) { - - zend_bool local = 0, _7; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zephir_fcall_cache_entry *_1 = NULL; - zval parameters; - zval *url_param = NULL, *parameters_param = NULL, service, output, _0, _2, _3, _6, _8, _9, _10, _4$$3, _5$$3; - zval url; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&url); - ZVAL_UNDEF(&service); - ZVAL_UNDEF(&output); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_2); - ZVAL_UNDEF(&_3); - ZVAL_UNDEF(&_6); - ZVAL_UNDEF(&_8); - ZVAL_UNDEF(&_9); - ZVAL_UNDEF(&_10); - ZVAL_UNDEF(&_4$$3); - ZVAL_UNDEF(&_5$$3); - ZVAL_UNDEF(¶meters); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &url_param, ¶meters_param); - - zephir_get_strval(&url, url_param); - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - - - ZEPHIR_INIT_VAR(&_2); - ZVAL_STRING(&_2, "local"); - ZVAL_BOOL(&_3, 1); - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_helper_arr_ce, "get", &_1, 12, ¶meters, &_2, &_3); - zephir_check_call_status(); - local = zephir_get_boolval(&_0); - if (local) { - ZEPHIR_INIT_VAR(&_4$$3); - ZVAL_STRING(&_4$$3, "url"); - ZEPHIR_CALL_METHOD(&service, this_ptr, "getservice", NULL, 276, &_4$$3); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_5$$3, &service, "getstatic", NULL, 0, &url); - zephir_check_call_status(); - zephir_array_update_string(¶meters, SL("src"), &_5$$3, PH_COPY | PH_SEPARATE); - } else { - zephir_array_update_string(¶meters, SL("src"), &url, PH_COPY | PH_SEPARATE); - } - zephir_array_unset_string(¶meters, SL("local"), PH_SEPARATE); - ZEPHIR_INIT_NVAR(&_2); - ZVAL_STRING(&_2, "type"); - ZEPHIR_INIT_VAR(&_6); - ZVAL_STRING(&_6, "text/javascript"); - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_helper_arr_ce, "get", &_1, 12, ¶meters, &_2, &_6); - zephir_check_call_status(); - zephir_array_update_string(¶meters, SL("type"), &_0, PH_COPY | PH_SEPARATE); - zephir_read_property(&_3, this_ptr, SL("docType"), PH_NOISY_CC | PH_READONLY); - _7 = ZEPHIR_GE_LONG(&_3, 5); - if (_7) { - zephir_array_fetch_string(&_8, ¶meters, SL("type"), PH_NOISY | PH_READONLY, "phalcon/Html/Tag.zep", 1005 TSRMLS_CC); - ZEPHIR_SINIT_VAR(_9); - ZVAL_STRING(&_9, "text/javascript"); - _7 = ZEPHIR_IS_EQUAL(&_9, &_8); - } - if (_7) { - zephir_array_unset_string(¶meters, SL("type"), PH_SEPARATE); - } - ZEPHIR_INIT_NVAR(&_2); - ZVAL_STRING(&_2, "", &_2); - RETURN_CCTOR(&output); - -} - -/** - * Builds a HTML A tag using framework conventions - * - * Parameters - * `local` Local resource or not (default `true`) - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->link('signup/register', 'Register Here!'); - * - * echo $tag->link( - * 'signup/register', - * 'Register Here!', - * [ - * 'class' => 'btn-primary', - * ] - * ); - * - * echo $tag->link( - * 'https://phalcon.io/', - * 'Phalcon!', - * [ - * 'local' => false, - * ] - * ); - * - * echo $tag->link( - * 'https://phalcon.io/', - * 'Phalcon!', - * [ - * 'local' => false, - * 'target' => '_new', - * ] - * ); - * ``` - */ -PHP_METHOD(Phalcon_Html_Tag, link) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zephir_fcall_cache_entry *_2 = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval parameters; - zval *url_param = NULL, text, *text_param = NULL, *parameters_param = NULL, local, query, output, service, _0, _1, _3, _4, _5; - zval url; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&url); - ZVAL_UNDEF(&text); - ZVAL_UNDEF(&local); - ZVAL_UNDEF(&query); - ZVAL_UNDEF(&output); - ZVAL_UNDEF(&service); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&_3); - ZVAL_UNDEF(&_4); - ZVAL_UNDEF(&_5); - ZVAL_UNDEF(¶meters); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 2, &url_param, &text_param, ¶meters_param); - - zephir_get_strval(&url, url_param); - if (!text_param) { - ZEPHIR_INIT_VAR(&text); - ZVAL_STRING(&text, ""); - } else { - zephir_get_strval(&text, text_param); - } - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - - - ZEPHIR_INIT_VAR(&_0); - ZVAL_STRING(&_0, "url"); - ZEPHIR_CALL_METHOD(&service, this_ptr, "getservice", NULL, 276, &_0); - zephir_check_call_status(); - ZEPHIR_INIT_NVAR(&_0); - ZVAL_STRING(&_0, "url"); - ZEPHIR_CALL_CE_STATIC(&_1, phalcon_helper_arr_ce, "get", &_2, 12, ¶meters, &_0, &url); - zephir_check_call_status(); - zephir_get_strval(&url, &_1); - ZEPHIR_INIT_NVAR(&_0); - ZVAL_STRING(&_0, "text"); - ZEPHIR_CALL_CE_STATIC(&_3, phalcon_helper_arr_ce, "get", &_2, 12, ¶meters, &_0, &text); - zephir_check_call_status(); - ZEPHIR_CPY_WRT(&text, &_3); - ZEPHIR_INIT_NVAR(&_0); - ZVAL_STRING(&_0, "local"); - ZVAL_BOOL(&_4, 1); - ZEPHIR_CALL_CE_STATIC(&local, phalcon_helper_arr_ce, "get", &_2, 12, ¶meters, &_0, &_4); - zephir_check_call_status(); - ZEPHIR_INIT_NVAR(&_0); - ZVAL_STRING(&_0, "query"); - ZVAL_NULL(&_4); - ZEPHIR_CALL_CE_STATIC(&query, phalcon_helper_arr_ce, "get", &_2, 12, ¶meters, &_0, &_4); - zephir_check_call_status(); - zephir_array_unset_string(¶meters, SL("url"), PH_SEPARATE); - zephir_array_unset_string(¶meters, SL("local"), PH_SEPARATE); - zephir_array_unset_string(¶meters, SL("text"), PH_SEPARATE); - zephir_array_unset_string(¶meters, SL("query"), PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_3, &service, "get", NULL, 0, &url, &query, &local); - zephir_check_call_status(); - zephir_array_update_string(¶meters, SL("href"), &_3, PH_COPY | PH_SEPARATE); - ZEPHIR_INIT_NVAR(&_0); - ZVAL_STRING(&_0, "", &text, ""); - RETURN_CCTOR(&output); - -} - -/** - * Prepends a text to current document title - */ -PHP_METHOD(Phalcon_Html_Tag, prependTitle) { - - zval _0$$4; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *title, title_sub; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&title_sub); - ZVAL_UNDEF(&_0$$4); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &title); - - - - if (Z_TYPE_P(title) == IS_ARRAY) { - zephir_update_property_zval(this_ptr, SL("prepend"), title); - } else { - zephir_get_strval(&_0$$4, title); - zephir_update_property_array_append(this_ptr, SL("prepend"), &_0$$4); - } - RETURN_THIS(); - -} - -/** - * Renders the title with title tags. The title is automaticall escaped - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * $tag - * ->setTitleSeparator(' ') - * ->prependTitle(['Hello']) - * ->setTitle('World') - * ->appendTitle(['from Phalcon']); - * - * echo $tag->renderTitle(); // Hello World from Phalcon - * echo $tag->renderTitle(false); // World from Phalcon - * echo $tag->renderTitle(true, false); // Hello World - * echo $tag->renderTitle(false, false); // World - * ``` - * - * ```php - * {% raw %}{{ render_title() }}{% endraw %} - * ``` - */ -PHP_METHOD(Phalcon_Html_Tag, renderTitle) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *prepend_param = NULL, *append_param = NULL, _0, _1, _2, _3; - zend_bool prepend, append; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&_2); - ZVAL_UNDEF(&_3); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 0, 2, &prepend_param, &append_param); - - if (!prepend_param) { - prepend = 1; - } else { - prepend = zephir_get_boolval(prepend_param); - } - if (!append_param) { - append = 1; - } else { - append = zephir_get_boolval(append_param); - } - - - if (prepend) { - ZVAL_BOOL(&_1, 1); - } else { - ZVAL_BOOL(&_1, 0); - } - if (append) { - ZVAL_BOOL(&_2, 1); - } else { - ZVAL_BOOL(&_2, 0); - } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "gettitle", NULL, 0, &_1, &_2); - zephir_check_call_status(); - ZEPHIR_INIT_VAR(&_3); - ZEPHIR_MM_GET_CONSTANT(&_3, "PHP_EOL"); - ZEPHIR_CONCAT_SVSV(return_value, "", &_0, "", &_3); - RETURN_MM(); - -} - -/** - * Builds a HTML input[type="reset"] tag - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->reset('Reset') - * ``` - * - * Volt syntax: - * ```php - * {% raw %}{{ reset('Save') }}{% endraw %} - * ``` - */ -PHP_METHOD(Phalcon_Html_Tag, reset) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval parameters; - zval *name_param = NULL, *parameters_param = NULL, _0; - zval name; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(¶meters); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &name_param, ¶meters_param); - - if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { - zephir_get_strval(&name, name_param); - } else { - ZEPHIR_INIT_VAR(&name); - ZVAL_EMPTY_STRING(&name); - } - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - - - ZEPHIR_INIT_VAR(&_0); - ZVAL_STRING(&_0, "reset"); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "renderinput", NULL, 274, &_0, &name, ¶meters); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Builds a select element. It accepts an array or a resultset from - * a Phalcon\Mvc\Model - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->select( - * 'status', - * [ - * 'id' => 'status-id', - * 'useEmpty' => true, - * 'emptyValue => '', - * 'emptyText' => 'Choose Status...', - * ], - * [ - * 'A' => 'Active', - * 'I' => 'Inactive', - * ] - * ); - * - * echo $tag->select( - * 'status', - * [ - * 'id' => 'status-id', - * 'useEmpty' => true, - * 'emptyValue => '', - * 'emptyText' => 'Choose Type...', - * 'using' => [ - * 'id, - * 'name', - * ], - * ], - * Robots::find( - * [ - * 'conditions' => 'type = :type:', - * 'bind' => [ - * 'type' => 'mechanical', - * ] - * ] - * ) - * ); - * ``` - */ -PHP_METHOD(Phalcon_Html_Tag, select) { - - zend_bool _4, _7$$4; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zephir_fcall_cache_entry *_0 = NULL; - zval parameters; - zval *name_param = NULL, *parameters_param = NULL, *data = NULL, data_sub, __$null, emptyText, emptyValue, id, output, outputEmpty, useEmpty, using, value, _1, _2, _3, _11, _5$$4, _6$$4, _8$$7, _9$$7, _10$$7, _12$$10, _13$$10, _14$$10, _15$$11, _16$$11, _17$$11; - zval name; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&data_sub); - ZVAL_NULL(&__$null); - ZVAL_UNDEF(&emptyText); - ZVAL_UNDEF(&emptyValue); - ZVAL_UNDEF(&id); - ZVAL_UNDEF(&output); - ZVAL_UNDEF(&outputEmpty); - ZVAL_UNDEF(&useEmpty); - ZVAL_UNDEF(&using); - ZVAL_UNDEF(&value); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&_2); - ZVAL_UNDEF(&_3); - ZVAL_UNDEF(&_11); - ZVAL_UNDEF(&_5$$4); - ZVAL_UNDEF(&_6$$4); - ZVAL_UNDEF(&_8$$7); - ZVAL_UNDEF(&_9$$7); - ZVAL_UNDEF(&_10$$7); - ZVAL_UNDEF(&_12$$10); - ZVAL_UNDEF(&_13$$10); - ZVAL_UNDEF(&_14$$10); - ZVAL_UNDEF(&_15$$11); - ZVAL_UNDEF(&_16$$11); - ZVAL_UNDEF(&_17$$11); - ZVAL_UNDEF(¶meters); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 2, &name_param, ¶meters_param, &data); - - if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { - zephir_get_strval(&name, name_param); - } else { - ZEPHIR_INIT_VAR(&name); - ZVAL_EMPTY_STRING(&name); - } - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - if (!data) { - data = &data_sub; - data = &__$null; - } - - - ZEPHIR_INIT_VAR(&_1); - ZVAL_STRING(&_1, "id"); - ZEPHIR_CALL_CE_STATIC(&id, phalcon_helper_arr_ce, "get", &_0, 12, ¶meters, &_1, &name); - zephir_check_call_status(); - ZEPHIR_INIT_NVAR(&_1); - ZVAL_STRING(&_1, "name"); - ZEPHIR_CALL_CE_STATIC(&_2, phalcon_helper_arr_ce, "get", &_0, 12, ¶meters, &_1, &name); - zephir_check_call_status(); - zephir_get_strval(&name, &_2); - ZEPHIR_INIT_NVAR(&_1); - ZVAL_STRING(&_1, "useEmpty"); - ZVAL_BOOL(&_3, 0); - ZEPHIR_CALL_CE_STATIC(&useEmpty, phalcon_helper_arr_ce, "get", &_0, 12, ¶meters, &_1, &_3); - zephir_check_call_status(); - ZEPHIR_INIT_VAR(&using); - array_init(&using); - zephir_array_update_string(¶meters, SL("name"), &name, PH_COPY | PH_SEPARATE); - zephir_array_update_string(¶meters, SL("id"), &id, PH_COPY | PH_SEPARATE); - ZEPHIR_INIT_VAR(&outputEmpty); - ZVAL_STRING(&outputEmpty, ""); - _4 = Z_TYPE_P(data) != IS_ARRAY; - if (_4) { - _4 = !ZEPHIR_IS_STRING_IDENTICAL(data, "object"); - } - if (UNEXPECTED(_4)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "The dataset must be either an array or a ResultsetInterface", "phalcon/Html/Tag.zep", 1204); - return; - } - if (Z_TYPE_P(data) == IS_OBJECT) { - ZEPHIR_INIT_VAR(&_5$$4); - array_init(&_5$$4); - ZEPHIR_INIT_VAR(&_6$$4); - ZVAL_STRING(&_6$$4, "using"); - ZEPHIR_CALL_CE_STATIC(&using, phalcon_helper_arr_ce, "get", &_0, 12, ¶meters, &_6$$4, &_5$$4); - zephir_check_call_status(); - _7$$4 = Z_TYPE_P(&using) == IS_ARRAY; - if (_7$$4) { - _7$$4 = zephir_fast_count_int(&using TSRMLS_CC) == 2; - } - if (_7$$4) { - zephir_array_unset_string(¶meters, SL("using"), PH_SEPARATE); - } else { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "The 'using' parameter is not a valid array", "phalcon/Html/Tag.zep", 1222); - return; - } - } - if (zephir_is_true(&useEmpty)) { - ZEPHIR_INIT_VAR(&_8$$7); - ZVAL_STRING(&_8$$7, "emptyText"); - ZEPHIR_INIT_VAR(&_9$$7); - ZVAL_STRING(&_9$$7, "Choose..."); - ZEPHIR_CALL_CE_STATIC(&emptyText, phalcon_helper_arr_ce, "get", &_0, 12, ¶meters, &_8$$7, &_9$$7); - zephir_check_call_status(); - ZEPHIR_INIT_NVAR(&_8$$7); - ZVAL_STRING(&_8$$7, "emptyValue"); - ZEPHIR_INIT_NVAR(&_9$$7); - ZVAL_STRING(&_9$$7, ""); - ZEPHIR_CALL_CE_STATIC(&emptyValue, phalcon_helper_arr_ce, "get", &_0, 12, ¶meters, &_8$$7, &_9$$7); - zephir_check_call_status(); - ZEPHIR_INIT_NVAR(&_8$$7); - ZEPHIR_MM_GET_CONSTANT(&_8$$7, "PHP_EOL"); - ZEPHIR_INIT_VAR(&_10$$7); - ZEPHIR_CONCAT_SV(&_10$$7, "\t", &_8$$7); - ZEPHIR_CALL_FUNCTION(&outputEmpty, "sprintf", NULL, 182, &_10$$7, &emptyValue, &emptyText); - zephir_check_call_status(); - zephir_array_unset_string(¶meters, SL("useEmpty"), PH_SEPARATE); - zephir_array_unset_string(¶meters, SL("emptyText"), PH_SEPARATE); - zephir_array_unset_string(¶meters, SL("emptyValue"), PH_SEPARATE); - } - ZEPHIR_OBS_VAR(&value); - if (!(zephir_array_isset_string_fetch(&value, ¶meters, SL("value"), 0))) { - ZEPHIR_CALL_METHOD(&value, this_ptr, "getvalue", NULL, 0, &id, ¶meters); - zephir_check_call_status(); - } else { - zephir_array_unset_string(¶meters, SL("value"), PH_SEPARATE); - } - ZEPHIR_INIT_NVAR(&_1); - ZVAL_STRING(&_1, "", &_1, &outputEmpty); - if (Z_TYPE_P(data) == IS_OBJECT) { - ZEPHIR_INIT_VAR(&_13$$10); - ZEPHIR_MM_GET_CONSTANT(&_13$$10, "PHP_EOL"); - ZEPHIR_INIT_VAR(&_14$$10); - ZEPHIR_CONCAT_SV(&_14$$10, "", &_13$$10); - ZEPHIR_CALL_METHOD(&_12$$10, this_ptr, "renderselectresultset", NULL, 283, data, &using, &value, &_14$$10); - zephir_check_call_status(); - zephir_concat_self(&output, &_12$$10 TSRMLS_CC); - } else if (Z_TYPE_P(data) == IS_ARRAY) { - ZEPHIR_INIT_VAR(&_16$$11); - ZEPHIR_MM_GET_CONSTANT(&_16$$11, "PHP_EOL"); - ZEPHIR_INIT_VAR(&_17$$11); - ZEPHIR_CONCAT_SV(&_17$$11, "", &_16$$11); - ZEPHIR_CALL_METHOD(&_15$$11, this_ptr, "renderselectarray", NULL, 284, data, &value, &_17$$11); - zephir_check_call_status(); - zephir_concat_self(&output, &_15$$11 TSRMLS_CC); - } else { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "Invalid data provided to SELECT helper", "phalcon/Html/Tag.zep", 1263); - return; - } - zephir_concat_self_str(&output, SL("") TSRMLS_CC); - RETURN_CCTOR(&output); - -} - -/** - * Assigns default values to generated tags by helpers - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * // Assigning 'peter' to 'name' component - * $tag->setAttribute('name', 'peter'); - * - * // Later in the view - * echo $tag->inputText('name'); // Will have the value 'peter' by default - * ``` - */ -PHP_METHOD(Phalcon_Html_Tag, setAttribute) { - - zend_bool _0$$3; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *name_param = NULL, *value, value_sub; - zval name; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&value_sub); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 2, 0, &name_param, &value); - - if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { - zephir_get_strval(&name, name_param); - } else { - ZEPHIR_INIT_VAR(&name); - ZVAL_EMPTY_STRING(&name); - } - - - if (Z_TYPE_P(value) != IS_NULL) { - _0$$3 = Z_TYPE_P(value) == IS_ARRAY; - if (!(_0$$3)) { - _0$$3 = Z_TYPE_P(value) == IS_OBJECT; - } - if (UNEXPECTED(_0$$3)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_html_exception_ce, "Only scalar values can be assigned to UI components", "phalcon/Html/Tag.zep", 1292); - return; - } - } - zephir_update_property_array(this_ptr, SL("values"), &name, value); - RETURN_THIS(); - -} - -/** - * Assigns default values to generated tags by helpers - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * // Assigning 'peter' to 'name' component - * $tag->setAttribute( - * [ - * 'name' => 'peter', - * ] - * ); - * - * // Later in the view - * echo $tag->inputText('name'); // Will have the value 'peter' by default - * ``` - */ -PHP_METHOD(Phalcon_Html_Tag, setAttributes) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_bool merge; - zval *values_param = NULL, *merge_param = NULL, _0$$3, _1$$3; - zval values; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&values); - ZVAL_UNDEF(&_0$$3); - ZVAL_UNDEF(&_1$$3); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &values_param, &merge_param); - - ZEPHIR_OBS_COPY_OR_DUP(&values, values_param); - if (!merge_param) { - merge = 0; - } else { - merge = zephir_get_boolval(merge_param); - } - - - if (merge) { - ZEPHIR_INIT_VAR(&_0$$3); - zephir_read_property(&_1$$3, this_ptr, SL("values"), PH_NOISY_CC | PH_READONLY); - zephir_fast_array_merge(&_0$$3, &_1$$3, &values TSRMLS_CC); - zephir_update_property_zval(this_ptr, SL("values"), &_0$$3); - } else { - zephir_update_property_zval(this_ptr, SL("values"), &values); - } - RETURN_THIS(); - -} - -/** - * Set the document type of content - */ -PHP_METHOD(Phalcon_Html_Tag, setDocType) { - - zend_bool _0; - zval *doctype_param = NULL, _1$$3, _2$$4; - zend_long doctype; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&_1$$3); - ZVAL_UNDEF(&_2$$4); - - zephir_fetch_params_without_memory_grow(1, 0, &doctype_param); - - doctype = zephir_get_intval(doctype_param); - - - _0 = doctype < 1; - if (!(_0)) { - _0 = doctype > 11; - } - if (_0) { - ZEPHIR_INIT_ZVAL_NREF(_1$$3); - ZVAL_LONG(&_1$$3, 5); - zephir_update_property_zval(this_ptr, SL("docType"), &_1$$3); - } else { - ZEPHIR_INIT_ZVAL_NREF(_2$$4); - ZVAL_LONG(&_2$$4, doctype); - zephir_update_property_zval(this_ptr, SL("docType"), &_2$$4); - } - RETURN_THISW(); - -} - -/** - * Set the title separator of view content - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * $tag->setTitle('Phalcon Framework'); - * ``` - */ -PHP_METHOD(Phalcon_Html_Tag, setTitle) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *title_param = NULL; - zval title; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&title); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &title_param); - - zephir_get_strval(&title, title_param); - - - zephir_update_property_zval(this_ptr, SL("title"), &title); - RETURN_THIS(); - -} - -/** - * Set the title separator of view content - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->setTitleSeparator('-'); - * ``` - */ -PHP_METHOD(Phalcon_Html_Tag, setTitleSeparator) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *separator_param = NULL; - zval separator; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&separator); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &separator_param); - - zephir_get_strval(&separator, separator_param); - - - zephir_update_property_zval(this_ptr, SL("separator"), &separator); - RETURN_THIS(); - -} - -/** - * Builds a LINK[rel="stylesheet"] tag - * - * Parameters - * `local` Local resource or not (default `true`) - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->stylesheet( - * 'http://fonts.googleapis.com/css?family=Rosario', - * [ - * 'local' => false, - * ] - * ); - * - * echo $tag->stylesheet('css/style.css'); - * ``` - * - * Volt syntax: - * ```php - * {% raw %}{{ stylesheet('http://fonts.googleapis.com/css?family=Rosario', ['local': false]) }}{% endraw %} - * {% raw %}{{ stylesheet('css/style.css') }}{% endraw %} - * ``` - */ -PHP_METHOD(Phalcon_Html_Tag, stylesheet) { - - zend_bool local = 0; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zephir_fcall_cache_entry *_1 = NULL; - zval parameters; - zval *url_param = NULL, *parameters_param = NULL, service, output, _0, _2, _3, _7, _8, _9, _4$$3, _5$$3, _6$$5; - zval url; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&url); - ZVAL_UNDEF(&service); - ZVAL_UNDEF(&output); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_2); - ZVAL_UNDEF(&_3); - ZVAL_UNDEF(&_7); - ZVAL_UNDEF(&_8); - ZVAL_UNDEF(&_9); - ZVAL_UNDEF(&_4$$3); - ZVAL_UNDEF(&_5$$3); - ZVAL_UNDEF(&_6$$5); - ZVAL_UNDEF(¶meters); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &url_param, ¶meters_param); - - zephir_get_strval(&url, url_param); - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - - - ZEPHIR_INIT_VAR(&_2); - ZVAL_STRING(&_2, "local"); - ZVAL_BOOL(&_3, 1); - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_helper_arr_ce, "get", &_1, 12, ¶meters, &_2, &_3); - zephir_check_call_status(); - local = zephir_get_boolval(&_0); - zephir_array_unset_string(¶meters, SL("local"), PH_SEPARATE); - if (local) { - ZEPHIR_INIT_VAR(&_4$$3); - ZVAL_STRING(&_4$$3, "url"); - ZEPHIR_CALL_METHOD(&service, this_ptr, "getservice", NULL, 276, &_4$$3); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_5$$3, &service, "getstatic", NULL, 0, &url); - zephir_check_call_status(); - zephir_array_update_string(¶meters, SL("href"), &_5$$3, PH_COPY | PH_SEPARATE); - } else { - zephir_array_update_string(¶meters, SL("href"), &url, PH_COPY | PH_SEPARATE); - } - if (!(zephir_array_isset_string(¶meters, SL("rel")))) { - ZEPHIR_INIT_VAR(&_6$$5); - ZVAL_STRING(&_6$$5, "stylesheet"); - zephir_array_update_string(¶meters, SL("rel"), &_6$$5, PH_COPY | PH_SEPARATE); - } - ZEPHIR_INIT_NVAR(&_2); - ZVAL_STRING(&_2, "type"); - ZEPHIR_INIT_VAR(&_7); - ZVAL_STRING(&_7, "text/css"); - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_helper_arr_ce, "get", &_1, 12, ¶meters, &_2, &_7); - zephir_check_call_status(); - zephir_array_update_string(¶meters, SL("type"), &_0, PH_COPY | PH_SEPARATE); - ZEPHIR_INIT_NVAR(&_2); - ZVAL_STRING(&_2, "submit('Save'); - * ``` - * - * Volt syntax: - * ```php - * {% raw %}{{ submit('Save') }}{% endraw %} - * ``` - */ -PHP_METHOD(Phalcon_Html_Tag, submit) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval parameters; - zval *name_param = NULL, *parameters_param = NULL, _0; - zval name; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(¶meters); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &name_param, ¶meters_param); - - if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { - zephir_get_strval(&name, name_param); - } else { - ZEPHIR_INIT_VAR(&name); - ZVAL_EMPTY_STRING(&name); - } - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - - - ZEPHIR_INIT_VAR(&_0); - ZVAL_STRING(&_0, "submit"); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "renderinput", NULL, 274, &_0, &name, ¶meters); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Builds a HTML TEXTAREA tag - * - * ```php - * use Phalcon\Html\Tag; - * - * $tag = new Tag(); - * - * echo $tag->textArea( - * 'comments', - * [ - * 'cols' => 10, - * 'rows' => 4, - * ] - * ); - * ``` - * - * Volt syntax: - * ```php - * {% raw %}{{ text_area('comments', ['cols': 10, 'rows': 4]) }}{% endraw %} - * ``` - */ -PHP_METHOD(Phalcon_Html_Tag, textArea) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zephir_fcall_cache_entry *_1 = NULL; - zval parameters; - zval *name_param = NULL, *parameters_param = NULL, content, output, _0, _2, _3, _5, _6, _4$$4; - zval name; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&content); - ZVAL_UNDEF(&output); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_2); - ZVAL_UNDEF(&_3); - ZVAL_UNDEF(&_5); - ZVAL_UNDEF(&_6); - ZVAL_UNDEF(&_4$$4); - ZVAL_UNDEF(¶meters); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &name_param, ¶meters_param); - - if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { - zephir_get_strval(&name, name_param); - } else { - ZEPHIR_INIT_VAR(&name); - ZVAL_EMPTY_STRING(&name); - } - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - - - ZEPHIR_INIT_VAR(&_2); - ZVAL_STRING(&_2, "id"); - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_helper_arr_ce, "get", &_1, 12, ¶meters, &_2, &name); - zephir_check_call_status(); - zephir_array_update_string(¶meters, SL("id"), &_0, PH_COPY | PH_SEPARATE); - ZEPHIR_INIT_NVAR(&_2); - ZVAL_STRING(&_2, "name"); - ZEPHIR_CALL_CE_STATIC(&_3, phalcon_helper_arr_ce, "get", &_1, 12, ¶meters, &_2, &name); - zephir_check_call_status(); - zephir_array_update_string(¶meters, SL("name"), &_3, PH_COPY | PH_SEPARATE); - if (zephir_array_isset_string(¶meters, SL("value"))) { - ZEPHIR_OBS_VAR(&content); - zephir_array_fetch_string(&content, ¶meters, SL("value"), PH_NOISY, "phalcon/Html/Tag.zep", 1488 TSRMLS_CC); - zephir_array_unset_string(¶meters, SL("value"), PH_SEPARATE); - } else { - zephir_array_fetch_string(&_4$$4, ¶meters, SL("id"), PH_NOISY | PH_READONLY, "phalcon/Html/Tag.zep", 1492 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&content, this_ptr, "getvalue", NULL, 0, &_4$$4, ¶meters); - zephir_check_call_status(); - } - ZEPHIR_INIT_NVAR(&_2); - ZVAL_STRING(&_2, "", &_6, ""); - RETURN_CCTOR(&output); - -} - -/** - * Returns the escaper service from the DI container - */ -PHP_METHOD(Phalcon_Html_Tag, getService) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zephir_fcall_cache_entry *_3 = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *name_param = NULL, service, container, _0, _1$$6, _2$$6, _5$$5, _6$$7, _7$$8; - zval name, _4$$6; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&_4$$6); - ZVAL_UNDEF(&service); - ZVAL_UNDEF(&container); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1$$6); - ZVAL_UNDEF(&_2$$6); - ZVAL_UNDEF(&_5$$5); - ZVAL_UNDEF(&_6$$7); - ZVAL_UNDEF(&_7$$8); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &name_param); - - zephir_get_strval(&name, name_param); - - - ZEPHIR_SINIT_VAR(_0); - ZVAL_STRING(&_0, "escaper"); - if (ZEPHIR_IS_IDENTICAL(&_0, &name)) { - ZEPHIR_OBS_VAR(&service); - zephir_read_property(&service, this_ptr, SL("escaper"), PH_NOISY_CC); - } else { - ZEPHIR_OBS_NVAR(&service); - zephir_read_property(&service, this_ptr, SL("url"), PH_NOISY_CC); - } - if (Z_TYPE_P(&service) != IS_OBJECT) { - ZEPHIR_CALL_METHOD(&container, this_ptr, "getdi", NULL, 0); - zephir_check_call_status(); - if (UNEXPECTED(Z_TYPE_P(&container) != IS_OBJECT)) { - ZEPHIR_INIT_VAR(&_1$$6); - object_init_ex(&_1$$6, phalcon_html_exception_ce); - ZEPHIR_INIT_VAR(&_4$$6); - ZEPHIR_CONCAT_SVS(&_4$$6, "the '", &name, "' service"); - ZEPHIR_CALL_CE_STATIC(&_2$$6, phalcon_html_exception_ce, "containerservicenotfound", &_3, 0, &_4$$6); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_1$$6, "__construct", NULL, 5, &_2$$6); - zephir_check_call_status(); - zephir_throw_exception_debug(&_1$$6, "phalcon/Html/Tag.zep", 1523 TSRMLS_CC); - ZEPHIR_MM_RESTORE(); - return; - } - ZEPHIR_SINIT_VAR(_5$$5); - ZVAL_STRING(&_5$$5, "escaper"); - ZEPHIR_INIT_NVAR(&service); - if (ZEPHIR_IS_IDENTICAL(&_5$$5, &name)) { - ZEPHIR_CALL_METHOD(&_6$$7, &container, "getshared", NULL, 0, &name); - zephir_check_call_status(); - ZEPHIR_CPY_WRT(&service, &_6$$7); - zephir_update_property_zval(this_ptr, SL("escaper"), &service); - } else { - ZEPHIR_CALL_METHOD(&_7$$8, &container, "getshared", NULL, 0, &name); - zephir_check_call_status(); - ZEPHIR_CPY_WRT(&service, &_7$$8); - zephir_update_property_zval(this_ptr, SL("url"), &service); - } - } - RETURN_CCTOR(&service); - -} - -/** - * Renders the attributes of an HTML element - */ -PHP_METHOD(Phalcon_Html_Tag, renderAttributes) { - - zend_bool _5$$3, _6$$4, _13$$8, _14$$9; - zend_string *_4; - zend_ulong _3; - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zephir_fcall_cache_entry *_10 = NULL, *_11 = NULL, *_18 = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval attributes; - zval *code_param = NULL, *attributes_param = NULL, __$null, attrs, escaper, escaped, key, newCode, intersect, order, value, _0, *_1, _2, _12$$4, _7$$5, _8$$5, _9$$5, _19$$9, _15$$10, _16$$10, _17$$10; - zval code; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&code); - ZVAL_NULL(&__$null); - ZVAL_UNDEF(&attrs); - ZVAL_UNDEF(&escaper); - ZVAL_UNDEF(&escaped); - ZVAL_UNDEF(&key); - ZVAL_UNDEF(&newCode); - ZVAL_UNDEF(&intersect); - ZVAL_UNDEF(&order); - ZVAL_UNDEF(&value); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_2); - ZVAL_UNDEF(&_12$$4); - ZVAL_UNDEF(&_7$$5); - ZVAL_UNDEF(&_8$$5); - ZVAL_UNDEF(&_9$$5); - ZVAL_UNDEF(&_19$$9); - ZVAL_UNDEF(&_15$$10); - ZVAL_UNDEF(&_16$$10); - ZVAL_UNDEF(&_17$$10); - ZVAL_UNDEF(&attributes); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 2, 0, &code_param, &attributes_param); - - if (UNEXPECTED(Z_TYPE_P(code_param) != IS_STRING && Z_TYPE_P(code_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'code' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(code_param) == IS_STRING)) { - zephir_get_strval(&code, code_param); - } else { - ZEPHIR_INIT_VAR(&code); - ZVAL_EMPTY_STRING(&code); - } - ZEPHIR_OBS_COPY_OR_DUP(&attributes, attributes_param); - - - ZEPHIR_INIT_VAR(&order); - zephir_create_array(&order, 10, 0 TSRMLS_CC); - zephir_array_update_string(&order, SL("rel"), &__$null, PH_COPY | PH_SEPARATE); - zephir_array_update_string(&order, SL("type"), &__$null, PH_COPY | PH_SEPARATE); - zephir_array_update_string(&order, SL("for"), &__$null, PH_COPY | PH_SEPARATE); - zephir_array_update_string(&order, SL("src"), &__$null, PH_COPY | PH_SEPARATE); - zephir_array_update_string(&order, SL("href"), &__$null, PH_COPY | PH_SEPARATE); - zephir_array_update_string(&order, SL("action"), &__$null, PH_COPY | PH_SEPARATE); - zephir_array_update_string(&order, SL("id"), &__$null, PH_COPY | PH_SEPARATE); - zephir_array_update_string(&order, SL("name"), &__$null, PH_COPY | PH_SEPARATE); - zephir_array_update_string(&order, SL("value"), &__$null, PH_COPY | PH_SEPARATE); - zephir_array_update_string(&order, SL("class"), &__$null, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&intersect, "array_intersect_key", NULL, 8, &order, &attributes); - zephir_check_call_status(); - ZEPHIR_INIT_VAR(&attrs); - zephir_fast_array_merge(&attrs, &intersect, &attributes TSRMLS_CC); - ZEPHIR_INIT_VAR(&_0); - ZVAL_STRING(&_0, "escaper"); - ZEPHIR_CALL_METHOD(&escaper, this_ptr, "getservice", NULL, 276, &_0); - zephir_check_call_status(); - zephir_array_unset_string(&attrs, SL("escape"), PH_SEPARATE); - ZEPHIR_CPY_WRT(&newCode, &code); - zephir_is_iterable(&attrs, 0, "phalcon/Html/Tag.zep", 1584); - if (Z_TYPE_P(&attrs) == IS_ARRAY) { - ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&attrs), _3, _4, _1) - { - ZEPHIR_INIT_NVAR(&key); - if (_4 != NULL) { - ZVAL_STR_COPY(&key, _4); - } else { - ZVAL_LONG(&key, _3); - } - ZEPHIR_INIT_NVAR(&value); - ZVAL_COPY(&value, _1); - _5$$3 = Z_TYPE_P(&key) == IS_STRING; - if (_5$$3) { - _5$$3 = Z_TYPE_P(&value) != IS_NULL; - } - if (_5$$3) { - _6$$4 = Z_TYPE_P(&value) == IS_ARRAY; - if (!(_6$$4)) { - _6$$4 = Z_TYPE_P(&value) == IS_RESOURCE; - } - if (UNEXPECTED(_6$$4)) { - ZEPHIR_INIT_NVAR(&_7$$5); - object_init_ex(&_7$$5, phalcon_html_exception_ce); - ZEPHIR_INIT_NVAR(&_8$$5); - zephir_gettype(&_8$$5, &value TSRMLS_CC); - ZEPHIR_INIT_LNVAR(_9$$5); - ZEPHIR_CONCAT_SVSVS(&_9$$5, "Value at index: '", &key, "' type: '", &_8$$5, "' cannot be rendered"); - ZEPHIR_CALL_METHOD(NULL, &_7$$5, "__construct", &_10, 5, &_9$$5); - zephir_check_call_status(); - zephir_throw_exception_debug(&_7$$5, "phalcon/Html/Tag.zep", 1571 TSRMLS_CC); - ZEPHIR_MM_RESTORE(); - return; - } - if (zephir_is_true(&escaper)) { - ZEPHIR_CALL_METHOD(&escaped, &escaper, "escapehtmlattr", &_11, 0, &value); - zephir_check_call_status(); - } else { - ZEPHIR_CPY_WRT(&escaped, &value); - } - ZEPHIR_INIT_LNVAR(_12$$4); - ZEPHIR_CONCAT_SVSVS(&_12$$4, " ", &key, "=\"", &escaped, "\""); - zephir_concat_self(&newCode, &_12$$4 TSRMLS_CC); - } - } ZEND_HASH_FOREACH_END(); - } else { - ZEPHIR_CALL_METHOD(NULL, &attrs, "rewind", NULL, 0); - zephir_check_call_status(); - while (1) { - ZEPHIR_CALL_METHOD(&_2, &attrs, "valid", NULL, 0); - zephir_check_call_status(); - if (!zend_is_true(&_2)) { - break; - } - ZEPHIR_CALL_METHOD(&key, &attrs, "key", NULL, 0); - zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&value, &attrs, "current", NULL, 0); - zephir_check_call_status(); - _13$$8 = Z_TYPE_P(&key) == IS_STRING; - if (_13$$8) { - _13$$8 = Z_TYPE_P(&value) != IS_NULL; - } - if (_13$$8) { - _14$$9 = Z_TYPE_P(&value) == IS_ARRAY; - if (!(_14$$9)) { - _14$$9 = Z_TYPE_P(&value) == IS_RESOURCE; - } - if (UNEXPECTED(_14$$9)) { - ZEPHIR_INIT_NVAR(&_15$$10); - object_init_ex(&_15$$10, phalcon_html_exception_ce); - ZEPHIR_INIT_NVAR(&_16$$10); - zephir_gettype(&_16$$10, &value TSRMLS_CC); - ZEPHIR_INIT_LNVAR(_17$$10); - ZEPHIR_CONCAT_SVSVS(&_17$$10, "Value at index: '", &key, "' type: '", &_16$$10, "' cannot be rendered"); - ZEPHIR_CALL_METHOD(NULL, &_15$$10, "__construct", &_10, 5, &_17$$10); - zephir_check_call_status(); - zephir_throw_exception_debug(&_15$$10, "phalcon/Html/Tag.zep", 1571 TSRMLS_CC); - ZEPHIR_MM_RESTORE(); - return; - } - if (zephir_is_true(&escaper)) { - ZEPHIR_CALL_METHOD(&escaped, &escaper, "escapehtmlattr", &_18, 0, &value); - zephir_check_call_status(); - } else { - ZEPHIR_CPY_WRT(&escaped, &value); - } - ZEPHIR_INIT_LNVAR(_19$$9); - ZEPHIR_CONCAT_SVSVS(&_19$$9, " ", &key, "=\"", &escaped, "\""); - zephir_concat_self(&newCode, &_19$$9 TSRMLS_CC); - } - ZEPHIR_CALL_METHOD(NULL, &attrs, "next", NULL, 0); - zephir_check_call_status(); - } - } - ZEPHIR_INIT_NVAR(&value); - ZEPHIR_INIT_NVAR(&key); - RETURN_CCTOR(&newCode); - -} - -/** - * Returns the closing tag depending on the doctype - */ -PHP_METHOD(Phalcon_Html_Tag, renderCloseTag) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zval *addEol_param = NULL, eol, _0; - zend_bool addEol; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&eol); - ZVAL_UNDEF(&_0); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 0, 1, &addEol_param); - - if (!addEol_param) { - addEol = 0; - } else { - addEol = zephir_get_boolval(addEol_param); - } - - - ZEPHIR_INIT_VAR(&eol); - ZVAL_STRING(&eol, ""); - if (addEol) { - ZEPHIR_INIT_NVAR(&eol); - ZEPHIR_MM_GET_CONSTANT(&eol, "PHP_EOL"); - } - zephir_read_property(&_0, this_ptr, SL("docType"), PH_NOISY_CC | PH_READONLY); - if (ZEPHIR_GT_LONG(&_0, 5)) { - ZEPHIR_CONCAT_SV(return_value, " />", &eol); - RETURN_MM(); - } else { - ZEPHIR_CONCAT_SV(return_value, ">", &eol); - RETURN_MM(); - } - -} - -/** - * Builds `input` elements - */ -PHP_METHOD(Phalcon_Html_Tag, renderInput) { - - zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; - zend_long ZEPHIR_LAST_CALL_STATUS; - zephir_fcall_cache_entry *_0 = NULL; - zval parameters; - zval *type_param = NULL, name, *name_param = NULL, *parameters_param = NULL, id, output, _1, _2, _3, _4; - zval type; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&type); - ZVAL_UNDEF(&name); - ZVAL_UNDEF(&id); - ZVAL_UNDEF(&output); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&_2); - ZVAL_UNDEF(&_3); - ZVAL_UNDEF(&_4); - ZVAL_UNDEF(¶meters); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 2, 1, &type_param, &name_param, ¶meters_param); - - zephir_get_strval(&type, type_param); - zephir_get_strval(&name, name_param); - if (!parameters_param) { - ZEPHIR_INIT_VAR(¶meters); - array_init(¶meters); - } else { - zephir_get_arrval(¶meters, parameters_param); - } - - - ZEPHIR_INIT_VAR(&_1); - ZVAL_STRING(&_1, "id"); - ZEPHIR_CALL_CE_STATIC(&id, phalcon_helper_arr_ce, "get", &_0, 12, ¶meters, &_1, &name); - zephir_check_call_status(); - zephir_array_update_string(¶meters, SL("id"), &id, PH_COPY | PH_SEPARATE); - zephir_array_update_string(¶meters, SL("name"), &name, PH_COPY | PH_SEPARATE); - zephir_array_update_string(¶meters, SL("type"), &type, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "getvalue", NULL, 0, &id, ¶meters); - zephir_check_call_status(); - zephir_array_update_string(¶meters, SL("value"), &_2, PH_COPY | PH_SEPARATE); - ZEPHIR_INIT_NVAR(&_1); - ZVAL_STRING(&_1, "", &_5$$4, &_6$$4, "\t", &_8$$4); - zephir_concat_self(&output, &_9$$4 TSRMLS_CC); - continue; - } - if (Z_TYPE_P(value) == IS_ARRAY) { - if (zephir_fast_in_array(&optionValue, value TSRMLS_CC)) { - ZEPHIR_INIT_LNVAR(_10$$6); - ZEPHIR_CONCAT_SVSVV(&_10$$6, "\t", &_16$$12, &_17$$12, "\t", &_18$$12); - zephir_concat_self(&output, &_19$$12 TSRMLS_CC); - continue; - } - if (Z_TYPE_P(value) == IS_ARRAY) { - if (zephir_fast_in_array(&optionValue, value TSRMLS_CC)) { - ZEPHIR_INIT_LNVAR(_20$$14); - ZEPHIR_CONCAT_SVSVV(&_20$$14, "\t
            KeyValue
            ", &keyVar, "", &_62$$24, "
            ", &keyVar, "", &_65$$24, "
            ", &keyVar, "", &_65$$25, "
            ", &keyVar, "", &_68$$25, "